@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.
@@ -4,9 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
6
6
  var constants = require('@commercetools-frontend/constants');
7
- var uiKit = require('@commercetools-frontend/ui-kit');
8
- var jsxRuntime = require('@emotion/react/jsx-runtime');
9
- var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
10
7
  var _Object$getOwnPropertySymbols = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
11
8
  var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/filter');
12
9
  var _Object$getOwnPropertyDescriptor = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
@@ -14,113 +11,114 @@ var _forEachInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/in
14
11
  var _Object$getOwnPropertyDescriptors = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors');
15
12
  var _Object$defineProperties = require('@babel/runtime-corejs3/core-js-stable/object/define-properties');
16
13
  var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/object/define-property');
14
+ var _objectWithoutProperties = require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
17
15
  var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray');
18
16
  var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
17
+ var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
18
+ var _reduceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
19
+ var _JSON$stringify = require('@babel/runtime-corejs3/core-js-stable/json/stringify');
20
+ var _Object$entries = require('@babel/runtime-corejs3/core-js-stable/object/entries');
21
+ var _parseFloat = require('@babel/runtime-corejs3/core-js-stable/parse-float');
22
+ var _valuesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/values');
23
+ var isEmpty$3 = require('lodash/isEmpty');
24
+ var omit = require('lodash/omit');
25
+ var pick = require('lodash/pick');
26
+ var l10n = require('@commercetools-frontend/l10n');
27
+ var _includesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/includes');
19
28
  var React = require('react');
29
+ var client = require('@apollo/client');
30
+ var react = require('@apollo/client/react');
20
31
  var reactIntl = require('react-intl');
21
32
  var applicationShellConnectors = require('@commercetools-frontend/application-shell-connectors');
33
+ var uiKit = require('@commercetools-frontend/ui-kit');
34
+ var _Map = require('@babel/runtime-corejs3/core-js-stable/map');
35
+ var _everyInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/every');
36
+ var _Promise = require('@babel/runtime-corejs3/core-js-stable/promise');
37
+ var _setTimeout = require('@babel/runtime-corejs3/core-js-stable/set-timeout');
38
+ var fastEquals = require('fast-equals');
39
+ var jsxRuntime = require('@emotion/react/jsx-runtime');
40
+ var _trimInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/trim');
41
+ var classnames = require('classnames');
42
+ var camelCase = require('lodash/camelCase');
22
43
  var _Reflect$construct = require('@babel/runtime-corejs3/core-js-stable/reflect/construct');
23
44
  var _classCallCheck = require('@babel/runtime-corejs3/helpers/classCallCheck');
24
45
  var _createClass = require('@babel/runtime-corejs3/helpers/createClass');
25
46
  var _possibleConstructorReturn = require('@babel/runtime-corejs3/helpers/possibleConstructorReturn');
26
47
  var _getPrototypeOf = require('@babel/runtime-corejs3/helpers/getPrototypeOf');
27
48
  var _inherits = require('@babel/runtime-corejs3/helpers/inherits');
28
- var _objectWithoutProperties = require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
29
- var _toArray = require('@babel/runtime-corejs3/helpers/toArray');
30
- var _reverseInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/reverse');
31
- var _sliceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/slice');
32
- var _reduceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
33
- var client = require('@apollo/client');
34
- var react = require('@apollo/client/react');
35
- var sdk = require('@commercetools-frontend/sdk');
36
- var classnames = require('classnames');
37
- var fastEquals = require('fast-equals');
38
- var flowRight = require('lodash/flowRight');
39
- require('react-required-if');
40
- var _setTimeout = require('@babel/runtime-corejs3/core-js-stable/set-timeout');
41
- var Textarea = require('react-textarea-autosize');
42
- var actionsGlobal = require('@commercetools-frontend/actions-global');
43
- var PropTypes = require('prop-types');
44
- var applicationComponents = require('@commercetools-frontend/application-components');
45
- var _JSON$stringify = require('@babel/runtime-corejs3/core-js-stable/json/stringify');
46
- var l10n = require('@commercetools-frontend/l10n');
47
- var _Object$values = require('@babel/runtime-corejs3/core-js-stable/object/values');
48
- var hooks = require('@apollo/client/react/hooks');
49
- var msw = require('msw');
50
- var _sortInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/sort');
51
- var _lastIndexOfInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/last-index-of');
52
- var _includesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/includes');
53
- var camelCase = require('lodash/camelCase');
54
- var get = require('lodash/get');
55
- var formik = require('formik');
56
- var _Date$now = require('@babel/runtime-corejs3/core-js-stable/date/now');
57
- var applicationShell = require('@commercetools-frontend/application-shell');
58
- var debounce = require('debounce-promise');
59
- var _findInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/find');
60
- var pick = require('lodash/pick');
61
- var oneLine = require('common-tags/lib/oneLine');
62
- var moment = require('moment');
63
49
  var _someInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/some');
50
+ var oneLine = require('common-tags/lib/oneLine');
64
51
  var moment$1 = require('moment-timezone');
52
+ var formik = require('formik');
65
53
  var isNil$1 = require('lodash/isNil');
66
- var sentry = require('@commercetools-frontend/sentry');
67
- var _valuesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/values');
68
- var _Object$entries = require('@babel/runtime-corejs3/core-js-stable/object/entries');
69
- var _parseFloat = require('@babel/runtime-corejs3/core-js-stable/parse-float');
70
- var isEmpty$3 = require('lodash/isEmpty');
71
- var omit = require('lodash/omit');
72
- var _Object$freeze = require('@babel/runtime-corejs3/core-js-stable/object/freeze');
73
- var originalOmitDeep = require('omit-deep');
74
- var _parseInt = require('@babel/runtime-corejs3/core-js-stable/parse-int');
75
- var _Array$isArray = require('@babel/runtime-corejs3/core-js-stable/array/is-array');
76
- var _indexOfInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/index-of');
77
- var omitEmpty = require('omit-empty-es');
78
- var _trimInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/trim');
79
- var _Map = require('@babel/runtime-corejs3/core-js-stable/map');
80
- var _everyInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/every');
81
- var _Promise = require('@babel/runtime-corejs3/core-js-stable/promise');
82
- var keyBy = require('lodash/keyBy');
83
- var _ = require('@commercetools-frontend/ui-kit/');
84
54
  var omitBy = require('lodash/omitBy');
55
+ var _Array$isArray = require('@babel/runtime-corejs3/core-js-stable/array/is-array');
56
+ var _sliceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/slice');
57
+ var _lastIndexOfInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/last-index-of');
58
+ var _parseInt = require('@babel/runtime-corejs3/core-js-stable/parse-int');
85
59
  var merge = require('lodash/merge');
86
60
  var set = require('lodash/set');
87
61
  var times = require('lodash/times');
88
62
  var uuid = require('uuid');
63
+ var _findInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/find');
89
64
  var reselect = require('reselect');
90
65
  var _endsWithInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/ends-with');
66
+ var _toArray = require('@babel/runtime-corejs3/helpers/toArray');
67
+ var _reverseInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/reverse');
68
+ var debounce = require('debounce-promise');
69
+ var sdk = require('@commercetools-frontend/sdk');
70
+ var keyBy = require('lodash/keyBy');
71
+ var actionsGlobal = require('@commercetools-frontend/actions-global');
72
+ var applicationComponents = require('@commercetools-frontend/application-components');
73
+ var applicationShell = require('@commercetools-frontend/application-shell');
74
+ var _ = require('@commercetools-frontend/ui-kit/');
75
+ var PropTypes = require('prop-types');
91
76
  var react$1 = require('@emotion/react');
92
- var ReactDOM = require('react-dom');
93
77
  var reactBeautifulDnd = require('react-beautiful-dnd');
78
+ var ReactDOM = require('react-dom');
79
+ var _indexOfInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/index-of');
94
80
  var selectUtils = require('@commercetools-uikit/select-utils');
95
- var memoize = require('memoize-one');
96
81
  var utils = require('@commercetools-uikit/utils');
82
+ require('react-required-if');
83
+ var _Object$values = require('@babel/runtime-corejs3/core-js-stable/object/values');
84
+ var _sortInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/sort');
97
85
  var commonTags = require('common-tags');
98
86
  var has = require('lodash/has');
99
87
  require('tiny-warning');
100
- var hoc = require('@apollo/client/react/hoc');
101
- var flatten = require('lodash/flatten');
102
- var uniqBy = require('lodash/uniqBy');
103
- var invariant = require('tiny-invariant');
104
- var hoistNonReactStatics = require('hoist-non-react-statics');
105
- var reactRedux = require('react-redux');
106
88
  var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
107
89
  var _Math$trunc = require('@babel/runtime-corejs3/core-js-stable/math/trunc');
108
90
  var _Number$isNaN = require('@babel/runtime-corejs3/core-js-stable/number/is-nan');
109
91
  var Cleave = require('cleave.js/react');
110
92
  var isFinite = require('lodash/isFinite');
111
93
  var isUndefined = require('lodash/isUndefined');
94
+ var flowRight = require('lodash/flowRight');
95
+ var Textarea = require('react-textarea-autosize');
112
96
  var _Object$assign = require('@babel/runtime-corejs3/core-js-stable/object/assign');
113
97
  var _findIndexInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/find-index');
114
- var flatMap = require('lodash/flatMap');
98
+ var moment = require('moment');
99
+ var _Object$freeze = require('@babel/runtime-corejs3/core-js-stable/object/freeze');
100
+ var originalOmitDeep = require('omit-deep');
115
101
  var compact = require('lodash/compact');
116
102
  var _Set = require('@babel/runtime-corejs3/core-js-stable/set');
103
+ var flatMap = require('lodash/flatMap');
117
104
  require('@babel/runtime-corejs3/helpers/get');
105
+ var _Date$now = require('@babel/runtime-corejs3/core-js-stable/date/now');
118
106
  var _spliceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/splice');
107
+ var memoize = require('memoize-one');
108
+ var omitEmpty = require('omit-empty-es');
109
+ var hoc = require('@apollo/client/react/hoc');
110
+ var flatten = require('lodash/flatten');
111
+ var uniqBy = require('lodash/uniqBy');
112
+ var invariant = require('tiny-invariant');
113
+ var hoistNonReactStatics = require('hoist-non-react-statics');
114
+ var sentry = require('@commercetools-frontend/sentry');
115
+ var hooks = require('@apollo/client/react/hooks');
116
+ var reactRedux = require('react-redux');
117
+ var get = require('lodash/get');
119
118
 
120
119
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
121
120
 
122
121
  var _mapInstanceProperty__default = /*#__PURE__*/_interopDefault(_mapInstanceProperty);
123
- var _Object$keys__default = /*#__PURE__*/_interopDefault(_Object$keys);
124
122
  var _Object$getOwnPropertySymbols__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertySymbols);
125
123
  var _filterInstanceProperty__default = /*#__PURE__*/_interopDefault(_filterInstanceProperty);
126
124
  var _Object$getOwnPropertyDescriptor__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertyDescriptor);
@@ -128,72 +126,73 @@ var _forEachInstanceProperty__default = /*#__PURE__*/_interopDefault(_forEachIns
128
126
  var _Object$getOwnPropertyDescriptors__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertyDescriptors);
129
127
  var _Object$defineProperties__default = /*#__PURE__*/_interopDefault(_Object$defineProperties);
130
128
  var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defineProperty);
131
- var React__default = /*#__PURE__*/_interopDefault(React);
132
- var _Reflect$construct__default = /*#__PURE__*/_interopDefault(_Reflect$construct);
133
- var _reverseInstanceProperty__default = /*#__PURE__*/_interopDefault(_reverseInstanceProperty);
134
- var _sliceInstanceProperty__default = /*#__PURE__*/_interopDefault(_sliceInstanceProperty);
129
+ var _Object$keys__default = /*#__PURE__*/_interopDefault(_Object$keys);
135
130
  var _reduceInstanceProperty__default = /*#__PURE__*/_interopDefault(_reduceInstanceProperty);
136
- var classnames__default = /*#__PURE__*/_interopDefault(classnames);
137
- var flowRight__default = /*#__PURE__*/_interopDefault(flowRight);
138
- var _setTimeout__default = /*#__PURE__*/_interopDefault(_setTimeout);
139
- var Textarea__default = /*#__PURE__*/_interopDefault(Textarea);
140
- var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
141
131
  var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
142
- var _Object$values__default = /*#__PURE__*/_interopDefault(_Object$values);
143
- var _sortInstanceProperty__default = /*#__PURE__*/_interopDefault(_sortInstanceProperty);
144
- var _lastIndexOfInstanceProperty__default = /*#__PURE__*/_interopDefault(_lastIndexOfInstanceProperty);
145
- var _includesInstanceProperty__default = /*#__PURE__*/_interopDefault(_includesInstanceProperty);
146
- var camelCase__default = /*#__PURE__*/_interopDefault(camelCase);
147
- var get__default = /*#__PURE__*/_interopDefault(get);
148
- var _Date$now__default = /*#__PURE__*/_interopDefault(_Date$now);
149
- var debounce__default = /*#__PURE__*/_interopDefault(debounce);
150
- var _findInstanceProperty__default = /*#__PURE__*/_interopDefault(_findInstanceProperty);
151
- var pick__default = /*#__PURE__*/_interopDefault(pick);
152
- var oneLine__default = /*#__PURE__*/_interopDefault(oneLine);
153
- var moment__default = /*#__PURE__*/_interopDefault(moment);
154
- var _someInstanceProperty__default = /*#__PURE__*/_interopDefault(_someInstanceProperty);
155
- var moment__default$1 = /*#__PURE__*/_interopDefault(moment$1);
156
- var isNil__default = /*#__PURE__*/_interopDefault(isNil$1);
157
- var _valuesInstanceProperty__default = /*#__PURE__*/_interopDefault(_valuesInstanceProperty);
158
132
  var _Object$entries__default = /*#__PURE__*/_interopDefault(_Object$entries);
159
133
  var _parseFloat__default = /*#__PURE__*/_interopDefault(_parseFloat);
134
+ var _valuesInstanceProperty__default = /*#__PURE__*/_interopDefault(_valuesInstanceProperty);
160
135
  var isEmpty__default = /*#__PURE__*/_interopDefault(isEmpty$3);
161
136
  var omit__default = /*#__PURE__*/_interopDefault(omit);
162
- var _Object$freeze__default = /*#__PURE__*/_interopDefault(_Object$freeze);
163
- var originalOmitDeep__default = /*#__PURE__*/_interopDefault(originalOmitDeep);
164
- var _parseInt__default = /*#__PURE__*/_interopDefault(_parseInt);
165
- var _Array$isArray__default = /*#__PURE__*/_interopDefault(_Array$isArray);
166
- var _indexOfInstanceProperty__default = /*#__PURE__*/_interopDefault(_indexOfInstanceProperty);
167
- var omitEmpty__default = /*#__PURE__*/_interopDefault(omitEmpty);
168
- var _trimInstanceProperty__default = /*#__PURE__*/_interopDefault(_trimInstanceProperty);
137
+ var pick__default = /*#__PURE__*/_interopDefault(pick);
138
+ var _includesInstanceProperty__default = /*#__PURE__*/_interopDefault(_includesInstanceProperty);
139
+ var React__default = /*#__PURE__*/_interopDefault(React);
169
140
  var _Map__default = /*#__PURE__*/_interopDefault(_Map);
170
141
  var _everyInstanceProperty__default = /*#__PURE__*/_interopDefault(_everyInstanceProperty);
171
142
  var _Promise__default = /*#__PURE__*/_interopDefault(_Promise);
172
- var keyBy__default = /*#__PURE__*/_interopDefault(keyBy);
143
+ var _setTimeout__default = /*#__PURE__*/_interopDefault(_setTimeout);
144
+ var _trimInstanceProperty__default = /*#__PURE__*/_interopDefault(_trimInstanceProperty);
145
+ var classnames__default = /*#__PURE__*/_interopDefault(classnames);
146
+ var camelCase__default = /*#__PURE__*/_interopDefault(camelCase);
147
+ var _Reflect$construct__default = /*#__PURE__*/_interopDefault(_Reflect$construct);
148
+ var _someInstanceProperty__default = /*#__PURE__*/_interopDefault(_someInstanceProperty);
149
+ var oneLine__default = /*#__PURE__*/_interopDefault(oneLine);
150
+ var moment__default$1 = /*#__PURE__*/_interopDefault(moment$1);
151
+ var isNil__default = /*#__PURE__*/_interopDefault(isNil$1);
173
152
  var omitBy__default = /*#__PURE__*/_interopDefault(omitBy);
153
+ var _Array$isArray__default = /*#__PURE__*/_interopDefault(_Array$isArray);
154
+ var _sliceInstanceProperty__default = /*#__PURE__*/_interopDefault(_sliceInstanceProperty);
155
+ var _lastIndexOfInstanceProperty__default = /*#__PURE__*/_interopDefault(_lastIndexOfInstanceProperty);
156
+ var _parseInt__default = /*#__PURE__*/_interopDefault(_parseInt);
174
157
  var merge__default = /*#__PURE__*/_interopDefault(merge);
175
158
  var set__default = /*#__PURE__*/_interopDefault(set);
176
159
  var times__default = /*#__PURE__*/_interopDefault(times);
160
+ var _findInstanceProperty__default = /*#__PURE__*/_interopDefault(_findInstanceProperty);
177
161
  var _endsWithInstanceProperty__default = /*#__PURE__*/_interopDefault(_endsWithInstanceProperty);
162
+ var _reverseInstanceProperty__default = /*#__PURE__*/_interopDefault(_reverseInstanceProperty);
163
+ var debounce__default = /*#__PURE__*/_interopDefault(debounce);
164
+ var keyBy__default = /*#__PURE__*/_interopDefault(keyBy);
165
+ var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
178
166
  var ReactDOM__default = /*#__PURE__*/_interopDefault(ReactDOM);
179
- var memoize__default = /*#__PURE__*/_interopDefault(memoize);
167
+ var _indexOfInstanceProperty__default = /*#__PURE__*/_interopDefault(_indexOfInstanceProperty);
168
+ var _Object$values__default = /*#__PURE__*/_interopDefault(_Object$values);
169
+ var _sortInstanceProperty__default = /*#__PURE__*/_interopDefault(_sortInstanceProperty);
180
170
  var has__default = /*#__PURE__*/_interopDefault(has);
181
- var flatten__default = /*#__PURE__*/_interopDefault(flatten);
182
- var uniqBy__default = /*#__PURE__*/_interopDefault(uniqBy);
183
- var invariant__default = /*#__PURE__*/_interopDefault(invariant);
184
- var hoistNonReactStatics__default = /*#__PURE__*/_interopDefault(hoistNonReactStatics);
185
171
  var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
186
172
  var _Math$trunc__default = /*#__PURE__*/_interopDefault(_Math$trunc);
187
173
  var _Number$isNaN__default = /*#__PURE__*/_interopDefault(_Number$isNaN);
188
174
  var Cleave__default = /*#__PURE__*/_interopDefault(Cleave);
189
175
  var isFinite__default = /*#__PURE__*/_interopDefault(isFinite);
190
176
  var isUndefined__default = /*#__PURE__*/_interopDefault(isUndefined);
177
+ var flowRight__default = /*#__PURE__*/_interopDefault(flowRight);
178
+ var Textarea__default = /*#__PURE__*/_interopDefault(Textarea);
191
179
  var _Object$assign__default = /*#__PURE__*/_interopDefault(_Object$assign);
192
180
  var _findIndexInstanceProperty__default = /*#__PURE__*/_interopDefault(_findIndexInstanceProperty);
193
- var flatMap__default = /*#__PURE__*/_interopDefault(flatMap);
181
+ var moment__default = /*#__PURE__*/_interopDefault(moment);
182
+ var _Object$freeze__default = /*#__PURE__*/_interopDefault(_Object$freeze);
183
+ var originalOmitDeep__default = /*#__PURE__*/_interopDefault(originalOmitDeep);
194
184
  var compact__default = /*#__PURE__*/_interopDefault(compact);
195
185
  var _Set__default = /*#__PURE__*/_interopDefault(_Set);
186
+ var flatMap__default = /*#__PURE__*/_interopDefault(flatMap);
187
+ var _Date$now__default = /*#__PURE__*/_interopDefault(_Date$now);
196
188
  var _spliceInstanceProperty__default = /*#__PURE__*/_interopDefault(_spliceInstanceProperty);
189
+ var memoize__default = /*#__PURE__*/_interopDefault(memoize);
190
+ var omitEmpty__default = /*#__PURE__*/_interopDefault(omitEmpty);
191
+ var flatten__default = /*#__PURE__*/_interopDefault(flatten);
192
+ var uniqBy__default = /*#__PURE__*/_interopDefault(uniqBy);
193
+ var invariant__default = /*#__PURE__*/_interopDefault(invariant);
194
+ var hoistNonReactStatics__default = /*#__PURE__*/_interopDefault(hoistNonReactStatics);
195
+ var get__default = /*#__PURE__*/_interopDefault(get);
197
196
 
198
197
  var styles$k = {
199
198
  "loading-container": "centered-loading-spinner-module__loading-container___3_9-h"
@@ -208,6 +207,7 @@ const CenteredLoadingSpinner = () => jsxRuntime.jsx("div", {
208
207
  children: jsxRuntime.jsx(uiKit.LoadingSpinner, {})
209
208
  });
210
209
  CenteredLoadingSpinner.displayName = 'CenteredLoadingSpinner';
210
+ var CenteredLoadingSpinner$1 = CenteredLoadingSpinner;
211
211
 
212
212
  const QUERY_MAX_LIMIT = 500;
213
213
  const SHOW_TOOLTIP_CHARS_COUNT = 40;
@@ -263,7 +263,7 @@ var pickerMessages$1 = reactIntl.defineMessages({
263
263
  }
264
264
  });
265
265
 
266
- var messages$K = reactIntl.defineMessages({
266
+ var messages$Q = reactIntl.defineMessages({
267
267
  noChannelsFound: {
268
268
  id: 'Products.ChannelPickerInput.noChannelsFound',
269
269
  description: 'The message to display when no channels were found',
@@ -324,7 +324,7 @@ const ChannelPickerInput = _ref => {
324
324
  return channel;
325
325
  }, [formatLocalizedFieldToString]);
326
326
  const prefixSearchFields = React.useMemo(() => [`name.${dataLocale}`, 'key'], [dataLocale]);
327
- const loadOptions = useLoadOptions({
327
+ const loadOptions = useLoadOptions$1({
328
328
  query: GetChannelsQuery,
329
329
  variables,
330
330
  prefixSearchFields
@@ -349,8 +349,8 @@ const ChannelPickerInput = _ref => {
349
349
  setLoadingError(error);
350
350
  onError(error);
351
351
  }), [loadOptions, convertChannelToOption, onError]);
352
- const loadOptionsDebounced = useDebouncedPromiseCallback(handleLoadOptions, 300);
353
- const _useHandlers = useHandlers(onChange),
352
+ const loadOptionsDebounced = useDebouncedPromiseCallback$1(handleLoadOptions, 300);
353
+ const _useHandlers = useHandlers$1(onChange),
354
354
  _useHandlers2 = _slicedToArray(_useHandlers, 2),
355
355
  handleInternalInputChange = _useHandlers2[0],
356
356
  handleChange = _useHandlers2[1];
@@ -363,18 +363,18 @@ const ChannelPickerInput = _ref => {
363
363
  if (isCurrentOptionLoadingFailed) onError(currentOption.error);
364
364
  }, [isCurrentOptionLoadingFailed, onError, currentOption]);
365
365
  const isLoadingFailed = isCurrentOptionLoadingFailed || Boolean(loadingError);
366
- const handleNoOptions = React.useCallback(() => loadingError ? null : formatMessage(messages$K.noChannelsFound), [loadingError, formatMessage]);
366
+ const handleNoOptions = React.useCallback(() => loadingError ? null : formatMessage(messages$Q.noChannelsFound), [loadingError, formatMessage]);
367
367
  const tooltipTitle = currentOption?.data?.label ?? '';
368
368
  return jsxRuntime.jsx(uiKit.Constraints.Horizontal, {
369
369
  max: "scale",
370
370
  children: jsxRuntime.jsxs(uiKit.Spacings.Stack, {
371
371
  scale: "xs",
372
- children: [jsxRuntime.jsx(CustomFieldTooltip, {
372
+ children: [jsxRuntime.jsx(CustomFieldTooltip$1, {
373
373
  title: tooltipTitle,
374
374
  children: jsxRuntime.jsx(uiKit.AsyncSelectInput, {
375
375
  id: name,
376
376
  name: name,
377
- placeholder: placeholder ?? formatMessage(messages$K.placeholder),
377
+ placeholder: placeholder ?? formatMessage(messages$Q.placeholder),
378
378
  loadOptions: loadOptionsDebounced,
379
379
  defaultOptions: true,
380
380
  showOptionGroupDivider: true,
@@ -402,6 +402,7 @@ const ChannelPickerInput = _ref => {
402
402
  });
403
403
  };
404
404
  ChannelPickerInput.displayName = 'ChannelPickerInput';
405
+ var ChannelPickerInput$1 = ChannelPickerInput;
405
406
 
406
407
  function _callSuper$9(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$9() ? _Reflect$construct__default["default"](o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
407
408
  function _isNativeReflectConstruct$9() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$9 = function () { return !!t; })(); }
@@ -429,7 +430,7 @@ let FormattedDateTime = /*#__PURE__*/function (_PureComponent) {
429
430
  FormattedDateTime.displayName = 'FormattedDateTime';
430
431
  var FormattedDateTime$1 = reactIntl.injectIntl(FormattedDateTime);
431
432
 
432
- var messages$J = reactIntl.defineMessages({
433
+ var messages$P = reactIntl.defineMessages({
433
434
  noProductTypesFound: {
434
435
  id: 'Products.ProductTypePickerInput.noProductTypesFound',
435
436
  description: 'The message to display when no product types were found',
@@ -474,7 +475,7 @@ const ProductTypePickerInput = _ref => {
474
475
  _useState2 = _slicedToArray(_useState, 2),
475
476
  loadingError = _useState2[0],
476
477
  setLoadingError = _useState2[1];
477
- const _useProductTypeOption = useProductTypeOptions({
478
+ const _useProductTypeOption = useProductTypeOptions$1({
478
479
  prefixSearchFields
479
480
  }),
480
481
  loadProductTypes = _useProductTypeOption.loadProductTypes;
@@ -494,8 +495,8 @@ const ProductTypePickerInput = _ref => {
494
495
  setLoadingError(error);
495
496
  onError(error);
496
497
  }), [loadProductTypes, onError]);
497
- const loadOptionsDebounced = useDebouncedPromiseCallback(handleLoadOptions, 300);
498
- const _useHandlers = useHandlers(onChange),
498
+ const loadOptionsDebounced = useDebouncedPromiseCallback$1(handleLoadOptions, 300);
499
+ const _useHandlers = useHandlers$1(onChange),
499
500
  _useHandlers2 = _slicedToArray(_useHandlers, 2),
500
501
  handleInternalInputChange = _useHandlers2[0],
501
502
  handleChange = _useHandlers2[1];
@@ -511,14 +512,14 @@ const ProductTypePickerInput = _ref => {
511
512
  const tooltipTitle = currentOption?.data?.label ?? '';
512
513
  return jsxRuntime.jsx(uiKit.Constraints.Horizontal, {
513
514
  max: "scale",
514
- children: currentOption.loading ? jsxRuntime.jsx(CenteredLoadingSpinner, {}) : jsxRuntime.jsxs(uiKit.Spacings.Stack, {
515
+ children: currentOption.loading ? jsxRuntime.jsx(CenteredLoadingSpinner$1, {}) : jsxRuntime.jsxs(uiKit.Spacings.Stack, {
515
516
  scale: "xs",
516
- children: [jsxRuntime.jsx(CustomFieldTooltip, {
517
+ children: [jsxRuntime.jsx(CustomFieldTooltip$1, {
517
518
  title: tooltipTitle,
518
519
  children: jsxRuntime.jsx(uiKit.AsyncSelectInput, {
519
520
  id: name,
520
521
  name: name,
521
- placeholder: formatMessage(messages$J.placeholder),
522
+ placeholder: formatMessage(messages$P.placeholder),
522
523
  loadOptions: loadOptionsDebounced,
523
524
  defaultOptions: [],
524
525
  isClearable: isClearable,
@@ -531,7 +532,7 @@ const ProductTypePickerInput = _ref => {
531
532
  onInputChange: handleInputChange,
532
533
  onBlur: onBlur,
533
534
  value: currentOption.data,
534
- noOptionsMessage: () => loadingError ? null : formatMessage(messages$J.noProductTypesFound),
535
+ noOptionsMessage: () => loadingError ? null : formatMessage(messages$P.noProductTypesFound),
535
536
  hasError: hasError || isLoadingFailed,
536
537
  menuPortalZIndex: Z_INDEX_DROPDOWN,
537
538
  menuPortalTarget: document.body,
@@ -545,8 +546,9 @@ const ProductTypePickerInput = _ref => {
545
546
  });
546
547
  };
547
548
  ProductTypePickerInput.displayName = 'ProductTypePickerInput';
549
+ var ProductTypePickerInput$1 = ProductTypePickerInput;
548
550
 
549
- var messages$I = reactIntl.defineMessages({
551
+ var messages$O = reactIntl.defineMessages({
550
552
  noStatesFound: {
551
553
  id: 'Products.StatePickerInput.noStatesFound',
552
554
  description: 'The message to display when no states were found',
@@ -593,7 +595,7 @@ const StatePickerInput = _ref => {
593
595
  loadingError = _useState2[0],
594
596
  setLoadingError = _useState2[1];
595
597
  const prefixSearchFields = React.useMemo(() => [`name.${dataLocale}`, 'key'], [dataLocale]);
596
- const loadOptions = useLoadOptions({
598
+ const loadOptions = useLoadOptions$1({
597
599
  query: GetStatesQuery,
598
600
  variables,
599
601
  prefixSearchFields
@@ -616,8 +618,8 @@ const StatePickerInput = _ref => {
616
618
  setLoadingError(error);
617
619
  onError(error);
618
620
  }), [loadOptions, convertStateToOption, onError]);
619
- const loadOptionsDebounced = useDebouncedPromiseCallback(handleLoadOptions, 300);
620
- const _useHandlers = useHandlers(onChange),
621
+ const loadOptionsDebounced = useDebouncedPromiseCallback$1(handleLoadOptions, 300);
622
+ const _useHandlers = useHandlers$1(onChange),
621
623
  _useHandlers2 = _slicedToArray(_useHandlers, 2),
622
624
  handleInternalInputChange = _useHandlers2[0],
623
625
  handleChange = _useHandlers2[1];
@@ -630,19 +632,19 @@ const StatePickerInput = _ref => {
630
632
  if (isCurrentOptionLoadingFailed) onError(currentOption.error);
631
633
  }, [isCurrentOptionLoadingFailed, onError, currentOption]);
632
634
  const isLoadingFailed = isCurrentOptionLoadingFailed || Boolean(loadingError);
633
- const handleNoOptions = React.useCallback(() => loadingError ? null : formatMessage(messages$I.noStatesFound), [loadingError, formatMessage]);
635
+ const handleNoOptions = React.useCallback(() => loadingError ? null : formatMessage(messages$O.noStatesFound), [loadingError, formatMessage]);
634
636
  const tooltipTitle = currentOption?.data?.label ?? '';
635
637
  return jsxRuntime.jsx(uiKit.Constraints.Horizontal, {
636
638
  max: "scale",
637
- children: currentOption.loading ? jsxRuntime.jsx(CenteredLoadingSpinner, {}) : jsxRuntime.jsxs(uiKit.Spacings.Stack, {
639
+ children: currentOption.loading ? jsxRuntime.jsx(CenteredLoadingSpinner$1, {}) : jsxRuntime.jsxs(uiKit.Spacings.Stack, {
638
640
  scale: "xs",
639
- children: [jsxRuntime.jsx(CustomFieldTooltip, {
641
+ children: [jsxRuntime.jsx(CustomFieldTooltip$1, {
640
642
  title: tooltipTitle,
641
643
  children: jsxRuntime.jsx(uiKit.AsyncSelectInput, {
642
644
  id: name,
643
645
  name: name,
644
646
  horizontalConstraint: "scale",
645
- placeholder: formatMessage(messages$I.placeholder),
647
+ placeholder: formatMessage(messages$O.placeholder),
646
648
  loadOptions: loadOptionsDebounced,
647
649
  defaultOptions: true,
648
650
  showOptionGroupDivider: true,
@@ -670,6 +672,7 @@ const StatePickerInput = _ref => {
670
672
  });
671
673
  };
672
674
  StatePickerInput.displayName = 'StatePickerInput';
675
+ var StatePickerInput$1 = StatePickerInput;
673
676
 
674
677
  function ownKeys$1q(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
675
678
  function _objectSpread$1q(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1q(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1q(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
@@ -696,8 +699,9 @@ const CustomFieldTooltip = _ref => {
696
699
  children: children
697
700
  });
698
701
  };
702
+ var CustomFieldTooltip$1 = CustomFieldTooltip;
699
703
 
700
- var messages$H = reactIntl.defineMessages({
704
+ var messages$N = reactIntl.defineMessages({
701
705
  bottomOption: {
702
706
  id: 'Products.Pickers.bottomOption',
703
707
  description: 'The message to display at the end of the options menu',
@@ -709,7 +713,7 @@ function ownKeys$1p(e, r) { var t = _Object$keys__default["default"](e); if (_Ob
709
713
  function _objectSpread$1p(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1p(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1p(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
710
714
  const getBottomOption = formatMessage => ({
711
715
  options: [{
712
- label: formatMessage ? formatMessage(messages$H.bottomOption) : messages$H.bottomOption,
716
+ label: formatMessage ? formatMessage(messages$N.bottomOption) : messages$N.bottomOption,
713
717
  isBottomOption: true,
714
718
  isDisabled: true
715
719
  }]
@@ -744,7 +748,7 @@ const useHandlers = onChange => {
744
748
  const handleInputChange = React.useCallback(changedValue => {
745
749
  setInputValue(changedValue);
746
750
  }, []);
747
- const handleChange = useEventCallback(event => {
751
+ const handleChange = useEventCallback$1(event => {
748
752
  const eventWithExtractedValue = _objectSpread$1o(_objectSpread$1o({}, event), {}, {
749
753
  target: _objectSpread$1o(_objectSpread$1o({}, event.target), {}, {
750
754
  value: event.target.value?.value
@@ -754,6 +758,7 @@ const useHandlers = onChange => {
754
758
  }, [onChange, inputValue]);
755
759
  return [handleInputChange, handleChange];
756
760
  };
761
+ var useHandlers$1 = useHandlers;
757
762
 
758
763
  const _excluded$3 = ["extraWhere"];
759
764
  function ownKeys$1n(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -786,10 +791,10 @@ const useLoadOptions = _ref => {
786
791
  let inputValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
787
792
  let where;
788
793
  if (inputValue.length) {
789
- if (isUUID(inputValue)) {
794
+ if (isUUID$1(inputValue)) {
790
795
  where = `id = "${inputValue}"`;
791
796
  } else {
792
- const _getPrefixSearchBound = getPrefixSearchBounds(inputValue),
797
+ const _getPrefixSearchBound = getPrefixSearchBounds$1(inputValue),
793
798
  _getPrefixSearchBound2 = _slicedToArray(_getPrefixSearchBound, 2),
794
799
  lowerBound = _getPrefixSearchBound2[0],
795
800
  upperBound = _getPrefixSearchBound2[1];
@@ -815,6 +820,7 @@ const useLoadOptions = _ref => {
815
820
  }, [client$1, query, variables, prefixSearchFields]);
816
821
  return loadOptions;
817
822
  };
823
+ var useLoadOptions$1 = useLoadOptions;
818
824
 
819
825
  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 } } } };
820
826
  const useExecuteGraphQLRequest = () => {
@@ -905,8 +911,8 @@ const constructPrefixSearchPredicate = (prefixSearchFields, lowerBound, upperBou
905
911
  const constructWherePredicate = (inputValue, prefixSearchFields) => {
906
912
  const wherePredicate = function () {
907
913
  if (inputValue.length) {
908
- if (isUUID(inputValue)) return `id = "${inputValue}"`;else {
909
- const _getPrefixSearchBound = getPrefixSearchBounds(inputValue),
914
+ if (isUUID$1(inputValue)) return `id = "${inputValue}"`;else {
915
+ const _getPrefixSearchBound = getPrefixSearchBounds$1(inputValue),
910
916
  _getPrefixSearchBound2 = _slicedToArray(_getPrefixSearchBound, 2),
911
917
  lowerBound = _getPrefixSearchBound2[0],
912
918
  upperBound = _getPrefixSearchBound2[1];
@@ -964,6 +970,7 @@ const useProductTypeOptions = _ref3 => {
964
970
  loadProductTypes: isProjectIndexed ? fetchProductTypesFromPim : fetchProductTypessFromCTP
965
971
  };
966
972
  };
973
+ var useProductTypeOptions$1 = useProductTypeOptions;
967
974
 
968
975
  function useCurrentOption(_ref) {
969
976
  let id = _ref.id,
@@ -1015,16 +1022,20 @@ const getDisplayName = Component => {
1015
1022
  }
1016
1023
  return Component.displayName || Component.name || 'Component';
1017
1024
  };
1025
+ var getDisplayName$1 = getDisplayName;
1018
1026
 
1019
1027
  const setDisplayName = nextDisplayName => Component => {
1020
1028
  // eslint-disable-next-line no-param-reassign
1021
1029
  Component.displayName = nextDisplayName;
1022
1030
  return Component;
1023
1031
  };
1032
+ var setDisplayName$1 = setDisplayName;
1024
1033
 
1025
- const keepDisplayName = component => setDisplayName(getDisplayName(component));
1034
+ const keepDisplayName = component => setDisplayName$1(getDisplayName$1(component));
1035
+ var keepDisplayName$1 = keepDisplayName;
1026
1036
 
1027
- const wrapDisplayName = (BaseComponent, hocName) => `${hocName}(${getDisplayName(BaseComponent)})`;
1037
+ const wrapDisplayName = (BaseComponent, hocName) => `${hocName}(${getDisplayName$1(BaseComponent)})`;
1038
+ var wrapDisplayName$1 = wrapDisplayName;
1028
1039
 
1029
1040
  function ownKeys$1m(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
1030
1041
  function _objectSpread$1m(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1m(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1m(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
@@ -1062,9 +1073,10 @@ const withMouseOverState = BaseComponent => {
1062
1073
  }
1063
1074
  }]);
1064
1075
  }(React.Component);
1065
- WithMouseOverState.displayName = wrapDisplayName(BaseComponent, 'withMouseOverState');
1076
+ WithMouseOverState.displayName = wrapDisplayName$1(BaseComponent, 'withMouseOverState');
1066
1077
  return WithMouseOverState;
1067
1078
  };
1079
+ var withMouseOverState$1 = withMouseOverState;
1068
1080
 
1069
1081
  function ownKeys$1l(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
1070
1082
  function _objectSpread$1l(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1l(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1l(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
@@ -1222,8 +1234,9 @@ ThrottledField.defaultProps = {
1222
1234
  autoFocus: false,
1223
1235
  label: 'Throttled field'
1224
1236
  };
1237
+ var ThrottledField$1 = ThrottledField;
1225
1238
 
1226
- var messages$G = reactIntl.defineMessages({
1239
+ var messages$M = reactIntl.defineMessages({
1227
1240
  buttonLabel: {
1228
1241
  id: 'SearchInput.buttonLabel',
1229
1242
  description: 'Label for "Search" button.',
@@ -1322,13 +1335,13 @@ let SearchInput = /*#__PURE__*/function (_Component) {
1322
1335
  [styles$i['input-container-disabled']]: this.props.disabled && this.props.enableDisabledStyle,
1323
1336
  [styles$i['input-container-granular']]: this.props.isGranular
1324
1337
  }),
1325
- children: jsxRuntime.jsx(ThrottledField, {
1338
+ children: jsxRuntime.jsx(ThrottledField$1, {
1326
1339
  style: "primary",
1327
1340
  name: "search-text",
1328
1341
  "data-testid": this.props.testId || 'search-input',
1329
1342
  value: this.state.text,
1330
1343
  label: this.props.label,
1331
- placeholder: this.props.placeholder || this.props.intl.formatMessage(messages$G.placeholder),
1344
+ placeholder: this.props.placeholder || this.props.intl.formatMessage(messages$M.placeholder),
1332
1345
  inputRef: this.props.inputRef || this.setInputRef,
1333
1346
  onChange: this.handleInputChange,
1334
1347
  onEnter: this.handleEnter,
@@ -1383,7 +1396,7 @@ SearchInput.defaultProps = {
1383
1396
  label: 'Search input',
1384
1397
  onChange: () => null
1385
1398
  };
1386
- var searchInput = flowRight__default["default"](keepDisplayName(SearchInput), withMouseOverState, reactIntl.injectIntl)(SearchInput);
1399
+ var searchInput = flowRight__default["default"](keepDisplayName$1(SearchInput), withMouseOverState$1, reactIntl.injectIntl)(SearchInput);
1387
1400
 
1388
1401
  function ownKeys$1k(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
1389
1402
  function _objectSpread$1k(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1k(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1k(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
@@ -1407,9 +1420,10 @@ const injectDataTablePaginationState = initialValues => Component => {
1407
1420
  }
1408
1421
  }));
1409
1422
  };
1410
- WithDataTablePaginationState.displayName = wrapDisplayName(WithDataTablePaginationState, 'WithDataTablePaginationState');
1423
+ WithDataTablePaginationState.displayName = wrapDisplayName$1(WithDataTablePaginationState, 'WithDataTablePaginationState');
1411
1424
  return WithDataTablePaginationState;
1412
1425
  };
1426
+ var injectDataTablePaginationState$1 = injectDataTablePaginationState;
1413
1427
 
1414
1428
  function ownKeys$1j(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
1415
1429
  function _objectSpread$1j(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1j(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1j(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
@@ -1431,10 +1445,11 @@ const injectNotifications = function () {
1431
1445
  [propName]: notifications
1432
1446
  }));
1433
1447
  };
1434
- WrappedComponent.displayName = `withNotifications(${getDisplayName(Component)}`;
1448
+ WrappedComponent.displayName = `withNotifications(${getDisplayName$1(Component)}`;
1435
1449
  return WrappedComponent;
1436
1450
  };
1437
1451
  };
1452
+ var injectNotifications$1 = injectNotifications;
1438
1453
 
1439
1454
  function ownKeys$1i(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
1440
1455
  function _objectSpread$1i(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1i(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1i(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
@@ -1446,9 +1461,10 @@ const withProps = mapProps => Component => {
1446
1461
  const enhancedProps = isPropsMapper(mapProps) ? _objectSpread$1i(_objectSpread$1i({}, ownProps), mapProps(ownProps)) : _objectSpread$1i(_objectSpread$1i({}, ownProps), mapProps);
1447
1462
  return jsxRuntime.jsx(Component, _objectSpread$1i({}, enhancedProps));
1448
1463
  };
1449
- EnhancedWithProps.displayName = wrapDisplayName(Component, 'withProps');
1464
+ EnhancedWithProps.displayName = wrapDisplayName$1(Component, 'withProps');
1450
1465
  return EnhancedWithProps;
1451
1466
  };
1467
+ var withProps$1 = withProps;
1452
1468
 
1453
1469
  function ownKeys$1h(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
1454
1470
  function _objectSpread$1h(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1h(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1h(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
@@ -1483,6 +1499,7 @@ const withRedirectTo = options => Component => {
1483
1499
  WithRedirectTo.displayName = 'WithFirstStepRedirect';
1484
1500
  return WithRedirectTo;
1485
1501
  };
1502
+ var withRedirectTo$1 = withRedirectTo;
1486
1503
 
1487
1504
  function ownKeys$1g(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
1488
1505
  function _objectSpread$1g(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1g(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1g(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
@@ -1490,7 +1507,7 @@ const defaultOptions$4 = {
1490
1507
  propName: 'modalState',
1491
1508
  isInitiallyOpen: false
1492
1509
  };
1493
- const injectModalState$1 = options => Component => {
1510
+ const injectModalState$2 = options => Component => {
1494
1511
  const mergedOptions = _objectSpread$1g(_objectSpread$1g({}, defaultOptions$4), options);
1495
1512
  const WithModalState = props => {
1496
1513
  const modalState = applicationComponents.useModalState(mergedOptions.isInitiallyOpen);
@@ -1498,9 +1515,10 @@ const injectModalState$1 = options => Component => {
1498
1515
  [mergedOptions.propName]: modalState
1499
1516
  }));
1500
1517
  };
1501
- WithModalState.displayName = wrapDisplayName(WithModalState, 'WithModalState');
1518
+ WithModalState.displayName = wrapDisplayName$1(WithModalState, 'WithModalState');
1502
1519
  return WithModalState;
1503
1520
  };
1521
+ var injectModalState$3 = injectModalState$2;
1504
1522
 
1505
1523
  function ownKeys$1f(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
1506
1524
  function _objectSpread$1f(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1f(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1f(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
@@ -1516,9 +1534,10 @@ const injectModalState = options => Component => {
1516
1534
  [mergedOptions.propName]: toggleState
1517
1535
  }));
1518
1536
  };
1519
- WithToggleState.displayName = wrapDisplayName(WithToggleState, 'WithToggleState');
1537
+ WithToggleState.displayName = wrapDisplayName$1(WithToggleState, 'WithToggleState');
1520
1538
  return WithToggleState;
1521
1539
  };
1540
+ var injectModalState$1 = injectModalState;
1522
1541
 
1523
1542
  function ownKeys$1e(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
1524
1543
  function _objectSpread$1e(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$1e(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$1e(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
@@ -1582,6 +1601,7 @@ const useStorage = (storageKey, initialStorageValue, options) => {
1582
1601
  }, [actualStorageValue, initialStorageValue, readFromStorage, writeToStorage]);
1583
1602
  return [actualStorageValue, writeToStorage, readFromStorage];
1584
1603
  };
1604
+ var useStorage$1 = useStorage;
1585
1605
 
1586
1606
  function ownKeys$1d(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
1587
1607
  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__default["default"](_context = ownKeys$1d(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1d(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
@@ -1599,7 +1619,7 @@ const injectStorage = options => WrappedComponent => {
1599
1619
  */
1600
1620
  const mergedOptions = _objectSpread$1d(_objectSpread$1d({}, defaultOptions$1), options);
1601
1621
  const WithStorage = props => {
1602
- const _useStorage = useStorage(mergedOptions.storageKey(props), mergedOptions.initalStorageValue, mergedOptions.options),
1622
+ const _useStorage = useStorage$1(mergedOptions.storageKey(props), mergedOptions.initalStorageValue, mergedOptions.options),
1603
1623
  _useStorage2 = _slicedToArray(_useStorage, 3),
1604
1624
  actualStorageValue = _useStorage2[0],
1605
1625
  writeToStorage = _useStorage2[1],
@@ -1613,9 +1633,10 @@ const injectStorage = options => WrappedComponent => {
1613
1633
  };
1614
1634
  return jsxRuntime.jsx(WrappedComponent, _objectSpread$1d(_objectSpread$1d({}, props), storageProp));
1615
1635
  };
1616
- WithStorage.displayName = wrapDisplayName(WrappedComponent, 'WithStorage');
1636
+ WithStorage.displayName = wrapDisplayName$1(WrappedComponent, 'WithStorage');
1617
1637
  return WithStorage;
1618
1638
  };
1639
+ var injectStorage$1 = injectStorage;
1619
1640
 
1620
1641
  /**
1621
1642
  * @returns function with the following parameters
@@ -1768,42 +1789,7 @@ const useIsFieldDuplicated = () => {
1768
1789
  queryIsFieldDuplicated: execute
1769
1790
  };
1770
1791
  };
1771
-
1772
- const graphqlQueries = {
1773
- ASSOCIATE_ROLE: 'associateRoles',
1774
- ATTRIBUTE_GROUP: 'attributeGroups',
1775
- BUSINESS_UNIT: 'businessUnits',
1776
- CART: 'carts',
1777
- CART_DISCOUNT: 'cartDiscounts',
1778
- CATEGORY: 'categories',
1779
- CHANNEL: 'channels',
1780
- CUSTOMER: 'customers',
1781
- CUSTOMER_GROUP: 'customerGroups',
1782
- DISCOUNT_CODE: 'discountCodes',
1783
- INVENTORY_ENTRY: 'inventoryEntries',
1784
- ORDER: 'orders',
1785
- PAYMENT: 'payments',
1786
- PRODUCT: 'products',
1787
- PRODUCT_DISCOUNT: 'productDiscounts',
1788
- PRODUCT_SELECTION: 'productSelections',
1789
- PRODUCT_TYPE: 'productTypes',
1790
- SHIPPING_METHOD: 'shippingMethods',
1791
- STORE: 'stores',
1792
- TAX_CATEGORY: 'taxCategories',
1793
- ZONE: 'zones'
1794
- };
1795
- const handlers$6 = {
1796
- DuplicatedField: {
1797
- total: (total, resourceType) => msw.graphql.query('FetchResourceTypeDuplicatedField', (req, res, ctx) => {
1798
- if (!graphqlQueries[resourceType]) return res(ctx.data({}));
1799
- return res(ctx.data({
1800
- [graphqlQueries[resourceType]]: {
1801
- total
1802
- }
1803
- }));
1804
- })
1805
- }
1806
- };
1792
+ var useIsFieldDuplicated$1 = useIsFieldDuplicated;
1807
1793
 
1808
1794
  const usePrevious = value => {
1809
1795
  const ref = React.useRef();
@@ -1812,6 +1798,7 @@ const usePrevious = value => {
1812
1798
  }, [value]);
1813
1799
  return ref.current;
1814
1800
  };
1801
+ var usePrevious$1 = usePrevious;
1815
1802
 
1816
1803
  function ownKeys$1b(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
1817
1804
  function _objectSpread$1b(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$1b(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$1b(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
@@ -1879,59 +1866,7 @@ const useStoresListFetcher = props => {
1879
1866
  }
1880
1867
  };
1881
1868
  };
1882
-
1883
- const extractKeysFromWherePredicateClause = function () {
1884
- let whereClause = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
1885
- return whereClause.substring(_lastIndexOfInstanceProperty__default["default"](whereClause).call(whereClause, '("') + 1, _lastIndexOfInstanceProperty__default["default"](whereClause).call(whereClause, '")')).replace(/["]/g, '').split(', ');
1886
- };
1887
- const handlers$5 = {
1888
- StoresList: {
1889
- all: stores => msw.graphql.query('FetchStoresQuery', (req, res, ctx) => {
1890
- // GIVEN req.variables.where is specified
1891
- // THEN return only stores that are being requested (filtering stores based on IDs)
1892
- // ELSE return all the stores (without filtering any)
1893
- if (req.variables.where) {
1894
- var _context;
1895
- const requestedStoreKeys = extractKeysFromWherePredicateClause(req.variables.where);
1896
- const filteredStoreResults = _filterInstanceProperty__default["default"](_context = stores.results).call(_context, store => _includesInstanceProperty__default["default"](requestedStoreKeys).call(requestedStoreKeys, store.key));
1897
- return res(ctx.data({
1898
- stores: {
1899
- offset: 0,
1900
- total: filteredStoreResults.length,
1901
- count: filteredStoreResults.length,
1902
- results: filteredStoreResults,
1903
- __typename: 'StoresQueryResult'
1904
- }
1905
- }));
1906
- }
1907
- return res(ctx.data({
1908
- stores
1909
- }));
1910
- }),
1911
- withProductSelections: stores => msw.graphql.query('FetchStoresQuery', (req, res, ctx) => {
1912
- // GIVEN req.variables.where is specified
1913
- // THEN return only stores that are being requested (filtering stores based on IDs)
1914
- // ELSE return all the stores (without filtering any)
1915
- if (req.variables.where) {
1916
- var _context2;
1917
- const requestedStoreKeys = extractKeysFromWherePredicateClause(req.variables.where);
1918
- const filteredStoreResults = _filterInstanceProperty__default["default"](_context2 = stores.results).call(_context2, store => _includesInstanceProperty__default["default"](requestedStoreKeys).call(requestedStoreKeys, store.key));
1919
- return res(ctx.data({
1920
- stores: {
1921
- offset: 0,
1922
- total: filteredStoreResults.length,
1923
- count: filteredStoreResults.length,
1924
- results: filteredStoreResults,
1925
- __typename: 'StoresQueryResult'
1926
- }
1927
- }));
1928
- }
1929
- return res(ctx.data({
1930
- stores
1931
- }));
1932
- })
1933
- }
1934
- };
1869
+ var useStoresListFetcher$1 = useStoresListFetcher;
1935
1870
 
1936
1871
  const toPermission = (permission, resourceName) => camelCase__default["default"](`can ${permission} ${resourceName}`);
1937
1872
  const createPermissionsComposePath = permission =>
@@ -1961,6 +1896,7 @@ const useStoreKeysInDataFences = _ref => {
1961
1896
  });
1962
1897
  return storeKeysInDataFences;
1963
1898
  };
1899
+ var useStoreKeysInDataFences$1 = useStoreKeysInDataFences;
1964
1900
 
1965
1901
  function useDidFormValidationFail() {
1966
1902
  const _useState = React.useState(false),
@@ -2020,7 +1956,7 @@ const useHasReminderExpired = readReminderInterval => {
2020
1956
  const usePersistedReminder = function () {
2021
1957
  let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2022
1958
  const mergedOptions = _objectSpread$1a(_objectSpread$1a({}, defaultOptions), options);
2023
- const _useStorage = useStorage(mergedOptions.storageKey, null),
1959
+ const _useStorage = useStorage$1(mergedOptions.storageKey, null),
2024
1960
  _useStorage2 = _slicedToArray(_useStorage, 3),
2025
1961
  initialChosenReminderInterval = _useStorage2[0],
2026
1962
  choseReminderInterval = _useStorage2[1],
@@ -2064,8 +2000,9 @@ const usePersistedReminder = function () {
2064
2000
  }, []);
2065
2001
  return [hasReminderExpired, hasChosenReminderRef, scheduleReminder];
2066
2002
  };
2003
+ var usePersistedReminder$1 = usePersistedReminder;
2067
2004
 
2068
- var messages$F = reactIntl.defineMessages({
2005
+ var messages$L = reactIntl.defineMessages({
2069
2006
  profileUpdated: {
2070
2007
  id: 'NotificationText.profileUpdated',
2071
2008
  description: 'Label for the notification header',
@@ -2102,9 +2039,9 @@ const NotificationText = () => jsxRuntime.jsxs(uiKit.Spacings.Stack, {
2102
2039
  children: [jsxRuntime.jsx(uiKit.Text.Body, {
2103
2040
  as: "p",
2104
2041
  isBold: true,
2105
- intlMessage: messages$F.profileUpdated
2042
+ intlMessage: messages$L.profileUpdated
2106
2043
  }), jsxRuntime.jsx(uiKit.Text.Body, {
2107
- intlMessage: _objectSpread$19(_objectSpread$19({}, messages$F.addMoreInformation), {}, {
2044
+ intlMessage: _objectSpread$19(_objectSpread$19({}, messages$L.addMoreInformation), {}, {
2108
2045
  values: {
2109
2046
  newline: getNewLine
2110
2047
  }
@@ -2113,7 +2050,7 @@ const NotificationText = () => jsxRuntime.jsxs(uiKit.Spacings.Stack, {
2113
2050
  }), jsxRuntime.jsx(uiKit.Spacings.Stack, {
2114
2051
  scale: "xs",
2115
2052
  children: jsxRuntime.jsx(uiKit.Text.Body, {
2116
- intlMessage: _objectSpread$19(_objectSpread$19({}, messages$F.informationAndProfileLink), {}, {
2053
+ intlMessage: _objectSpread$19(_objectSpread$19({}, messages$L.informationAndProfileLink), {}, {
2117
2054
  values: {
2118
2055
  newline: getNewLine,
2119
2056
  link: getLinkToProfile
@@ -2123,6 +2060,7 @@ const NotificationText = () => jsxRuntime.jsxs(uiKit.Spacings.Stack, {
2123
2060
  })]
2124
2061
  });
2125
2062
  NotificationText.displayName = 'NotificationText';
2063
+ var NotificationText$1 = NotificationText;
2126
2064
 
2127
2065
  const useRoleNotification = _ref => {
2128
2066
  let dismissNotification = _ref.onDismiss;
@@ -2134,13 +2072,14 @@ const useRoleNotification = _ref => {
2134
2072
  return () => {
2135
2073
  if (isBusinessRoleNotificationEnabled) {
2136
2074
  notification({
2137
- text: jsxRuntime.jsx(NotificationText, {})
2075
+ text: jsxRuntime.jsx(NotificationText$1, {})
2138
2076
  }, {
2139
2077
  onDismiss: () => dismissNotification()
2140
2078
  });
2141
2079
  }
2142
2080
  };
2143
2081
  };
2082
+ var useRoleNotification$1 = useRoleNotification;
2144
2083
 
2145
2084
  const useRoleNotificationEffect = () => {
2146
2085
  const _useAdapterStatus = applicationShell.useAdapterStatus(),
@@ -2149,7 +2088,7 @@ const useRoleNotificationEffect = () => {
2149
2088
  const storageKey = 'roleExpiry';
2150
2089
  const userBusinessRole = user.businessRole;
2151
2090
  const scopedStorageKey = [user.id, storageKey].join('/');
2152
- const _usePersistedReminder = usePersistedReminder({
2091
+ const _usePersistedReminder = usePersistedReminder$1({
2153
2092
  storageKey,
2154
2093
  reminderInterval: REMINDER_OPTION_3_DAY
2155
2094
  }),
@@ -2157,7 +2096,7 @@ const useRoleNotificationEffect = () => {
2157
2096
  hasReminderExpired = _usePersistedReminder2[0],
2158
2097
  hasChosenReminderRef = _usePersistedReminder2[1],
2159
2098
  scheduleReminder = _usePersistedReminder2[2];
2160
- const roleNotification = useRoleNotification({
2099
+ const roleNotification = useRoleNotification$1({
2161
2100
  onDismiss: scheduleReminder
2162
2101
  });
2163
2102
  const isFirstTimeUser = !hasChosenReminderRef.current;
@@ -2186,6 +2125,7 @@ const useRoleNotificationEffect = () => {
2186
2125
  // eslint-disable-next-line react-hooks/exhaustive-deps
2187
2126
  [userBusinessRole, hasReminderExpired, isFlopFlipReady]);
2188
2127
  };
2128
+ var useRoleNotificationEffect$1 = useRoleNotificationEffect;
2189
2129
 
2190
2130
  function usePendingRequests() {
2191
2131
  const _useState = React.useState(0),
@@ -2233,8 +2173,9 @@ const useEventCallback = (fn, dependencies) => {
2233
2173
  return ref.current(...arguments);
2234
2174
  }, [ref]);
2235
2175
  };
2176
+ var useEventCallback$1 = useEventCallback;
2236
2177
 
2237
- var messages$E = reactIntl.defineMessages({
2178
+ var messages$K = reactIntl.defineMessages({
2238
2179
  fallbackHint: {
2239
2180
  id: 'KeyFallback.fallbackHint',
2240
2181
  description: 'key fallback for a specified resource key (e.g name)',
@@ -2258,17 +2199,19 @@ const useLocalizedKeyFallback = () => {
2258
2199
  return values => {
2259
2200
  if (!values.resource) return null;
2260
2201
  const localizedString = values.resource[values.localizedStringFieldName];
2261
- const fallbackHintWithKey = intl.formatMessage(messages$E.fallbackHint, {
2202
+ const fallbackHintWithKey = intl.formatMessage(messages$K.fallbackHint, {
2262
2203
  key: values.resource.key
2263
2204
  });
2264
2205
  if (!localizedString) return fallbackHintWithKey;
2265
2206
  return localizedString[language] || fallbackHintWithKey;
2266
2207
  };
2267
2208
  };
2209
+ var useLocalizedKeyFallback$1 = useLocalizedKeyFallback;
2268
2210
 
2269
2211
  const useDebouncedPromiseCallback = (promiseCallback, wait) =>
2270
2212
  // eslint-disable-next-line testing-library/await-async-utils
2271
2213
  React.useCallback(debounce__default["default"](promiseCallback, wait), [promiseCallback]);
2214
+ var useDebouncedPromiseCallback$1 = useDebouncedPromiseCallback;
2272
2215
 
2273
2216
  function ownKeys$18(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
2274
2217
  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__default["default"](_context2 = ownKeys$18(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$18(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
@@ -2334,7 +2277,7 @@ const usePersistedTableConfiguration = props => {
2334
2277
  displaySettings
2335
2278
  };
2336
2279
  }, [allAvailableColumnsConfiguration, initialVisibleColumnKeys, mutableColumnProps, displaySettings]);
2337
- const _useStorage = useStorage(tableConfigurationStorageKey,
2280
+ const _useStorage = useStorage$1(tableConfigurationStorageKey,
2338
2281
  // initialize with all the available columns
2339
2282
  mappedInitialTableConfiguration, {
2340
2283
  storageType
@@ -2370,6 +2313,7 @@ const usePersistedTableConfiguration = props => {
2370
2313
  })
2371
2314
  };
2372
2315
  };
2316
+ var usePersistedTableConfiguration$1 = usePersistedTableConfiguration;
2373
2317
 
2374
2318
  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 } } } };
2375
2319
  const useProductSelectionsTotalFetcher = props => {
@@ -2385,17 +2329,7 @@ const useProductSelectionsTotalFetcher = props => {
2385
2329
  total: data?.productSelections?.total
2386
2330
  };
2387
2331
  };
2388
-
2389
- const handlers$4 = {
2390
- ProductSelections: {
2391
- total: total => msw.graphql.query('FetchProductSelectionsTotal', (req, res, ctx) => res(ctx.data({
2392
- productSelections: {
2393
- total,
2394
- __typename: 'ProductSelectionQueryResult'
2395
- }
2396
- })))
2397
- }
2398
- };
2332
+ var useProductSelectionsTotalFetcher$1 = useProductSelectionsTotalFetcher;
2399
2333
 
2400
2334
  function ownKeys$17(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
2401
2335
  function _objectSpread$17(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$17(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$17(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
@@ -2444,14 +2378,7 @@ const useProductSelectionsFetcher = props => {
2444
2378
  refetch
2445
2379
  };
2446
2380
  };
2447
-
2448
- const handlers$3 = {
2449
- ProductSelections: {
2450
- all: productSelections => msw.graphql.query('FetchProductSelections', (req, res, ctx) => res(ctx.data({
2451
- productSelections
2452
- })))
2453
- }
2454
- };
2381
+ var useProductSelectionsFetcher$1 = useProductSelectionsFetcher;
2455
2382
 
2456
2383
  const setToArray = function () {
2457
2384
  let values = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
@@ -3862,6 +3789,7 @@ const currencyData = {
3862
3789
  countries: ['Zimbabwe']
3863
3790
  }
3864
3791
  };
3792
+ var currencyData$1 = currencyData;
3865
3793
 
3866
3794
  /* This is is short-term solution that patches fraction digits not being available from the Dashboard backend.
3867
3795
 
@@ -3888,8 +3816,8 @@ SOFTWARE.
3888
3816
 
3889
3817
  const getData = (code, field) => {
3890
3818
  code = code !== undefined && code !== '' ? code.toUpperCase() : code;
3891
- if (currencyData[code] !== undefined) {
3892
- if (field === 'all') return currencyData[code];else return currencyData[code][field];
3819
+ if (currencyData$1[code] !== undefined) {
3820
+ if (field === 'all') return currencyData$1[code];else return currencyData$1[code][field];
3893
3821
  } else return undefined;
3894
3822
  };
3895
3823
  const getFractionDigit = code => getData(code, 'fractionDigit');
@@ -3928,7 +3856,7 @@ function formatMoney$2(moneyValue, intl, options) {
3928
3856
  }, options));
3929
3857
  }
3930
3858
 
3931
- var messages$D = reactIntl.defineMessages({
3859
+ var messages$J = reactIntl.defineMessages({
3932
3860
  booleanYes: {
3933
3861
  id: 'AttributeTypeFormats.boolean.yes',
3934
3862
  description: 'The label for boolean attribute `true` value',
@@ -4010,7 +3938,7 @@ const formatDateTime = _ref7 => {
4010
3938
  const formatBoolean = _ref8 => {
4011
3939
  let value = _ref8.value,
4012
3940
  intl = _ref8.intl;
4013
- return value ? intl.formatMessage(messages$D.booleanYes) : intl.formatMessage(messages$D.booleanNo);
3941
+ return value ? intl.formatMessage(messages$J.booleanYes) : intl.formatMessage(messages$J.booleanNo);
4014
3942
  };
4015
3943
  const formatNilType = _ref9 => {
4016
3944
  let value = _ref9.value,
@@ -4167,6 +4095,7 @@ const getPrefixSearchBounds = input => {
4167
4095
  const getNextCharacter = character => String.fromCharCode(character.charCodeAt() + 1);
4168
4096
  return [input, `${_sliceInstanceProperty__default["default"](input).call(input, 0, input.length - 1)}${getNextCharacter(_sliceInstanceProperty__default["default"](input).call(input, input.length - 1))}`];
4169
4097
  };
4098
+ var getPrefixSearchBounds$1 = getPrefixSearchBounds;
4170
4099
 
4171
4100
  const _excluded$2 = ["action"];
4172
4101
  function ownKeys$15(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -4726,6 +4655,7 @@ const extractErrorFromGraphQlResponse = graphQlResponse => {
4726
4655
  };
4727
4656
 
4728
4657
  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);
4658
+ var isUUID$1 = isUUID;
4729
4659
 
4730
4660
  const formats = {
4731
4661
  en: [',', '.'],
@@ -5115,7 +5045,7 @@ function uniqueObjects(items) {
5115
5045
 
5116
5046
  */
5117
5047
 
5118
- const messages$C = reactIntl.defineMessages({
5048
+ const messages$I = reactIntl.defineMessages({
5119
5049
  unique: {
5120
5050
  id: 'Validation.unique',
5121
5051
  description: 'An error message to show if the field must be unique',
@@ -5157,6 +5087,7 @@ const messages$C = reactIntl.defineMessages({
5157
5087
  defaultMessage: 'Invalid ID format. Please enter a valid ID.'
5158
5088
  }
5159
5089
  });
5090
+ var validationMessages = messages$I;
5160
5091
 
5161
5092
  function getIndexesOfInvalidValues(values) {
5162
5093
  let invalidValues = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
@@ -5170,6 +5101,7 @@ function getIndexesOfInvalidValues(values) {
5170
5101
  }
5171
5102
 
5172
5103
  const withoutEmptyErrorsByField = errorsByField => omitEmpty__default["default"](errorsByField);
5104
+ var withoutEmptyErrorsByField$1 = withoutEmptyErrorsByField;
5173
5105
 
5174
5106
  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 } } } };
5175
5107
 
@@ -5239,7 +5171,7 @@ const getWhereClause = function () {
5239
5171
  let searchText = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
5240
5172
  let language = arguments.length > 1 ? arguments[1] : undefined;
5241
5173
  const query = _trimInstanceProperty__default["default"](_context2 = _JSON$stringify__default["default"](searchText)).call(_context2);
5242
- const idQuery = isUUID(searchText) && `id = ${query}`;
5174
+ const idQuery = isUUID$1(searchText) && `id = ${query}`;
5243
5175
  const nameQuery = `name(${language} = ${query})`;
5244
5176
  const keyQuery = `key = ${query}`;
5245
5177
  return _filterInstanceProperty__default["default"](_context3 = [idQuery, nameQuery, keyQuery]).call(_context3, Boolean).join(' or ');
@@ -5306,7 +5238,7 @@ const useReferenceSearchItems = _ref => {
5306
5238
  const putToCache = React.useCallback(items => {
5307
5239
  _forEachInstanceProperty__default["default"](items).call(items, item => itemCache.set(item.id, item));
5308
5240
  }, []);
5309
- const prevIds = usePrevious(ids);
5241
+ const prevIds = usePrevious$1(ids);
5310
5242
  React.useEffect(() => {
5311
5243
  async function loadItems() {
5312
5244
  const loadedItems = ids.length > 0 ? await loadItemsByIds(ids) : [];
@@ -5379,7 +5311,7 @@ function ReferenceSearch(props) {
5379
5311
  children: [areSomeItemsMissing && jsxRuntime.jsx("div", {
5380
5312
  className: styles$h['missing-label'],
5381
5313
  children: props.referenceIsMissingLabel
5382
- }), jsxRuntime.jsx(CustomFieldTooltip, {
5314
+ }), jsxRuntime.jsx(CustomFieldTooltip$1, {
5383
5315
  title: tooltipTitle,
5384
5316
  children: jsxRuntime.jsxs("div", {
5385
5317
  children: [jsxRuntime.jsx(uiKit.AccessibleHidden, {
@@ -5411,7 +5343,7 @@ function ReferenceSearch(props) {
5411
5343
  });
5412
5344
  }
5413
5345
 
5414
- const messages$B = reactIntl.defineMessages({
5346
+ const messages$G = reactIntl.defineMessages({
5415
5347
  placeholder: {
5416
5348
  id: 'CartDiscountReferenceSearch.placeholder',
5417
5349
  description: 'Placeholder for search for a cart discount',
@@ -5438,6 +5370,7 @@ const messages$B = reactIntl.defineMessages({
5438
5370
  defaultMessage: 'Enter search term'
5439
5371
  }
5440
5372
  });
5373
+ var messages$H = messages$G;
5441
5374
 
5442
5375
  function ownKeys$11(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
5443
5376
  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__default["default"](_context = ownKeys$11(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$11(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
@@ -5462,7 +5395,7 @@ function Option$1(props) {
5462
5395
  fallbackOrder: languages
5463
5396
  })
5464
5397
  }), jsxRuntime.jsxs(uiKit.Text.Detail, {
5465
- children: [formatMessage(messages$B.key), ": ", cartDiscount.key || constants.NO_VALUE_FALLBACK]
5398
+ children: [formatMessage(messages$H.key), ": ", cartDiscount.key || constants.NO_VALUE_FALLBACK]
5466
5399
  })]
5467
5400
  })
5468
5401
  }));
@@ -5538,10 +5471,10 @@ function CartDiscountReferenceSearch(props) {
5538
5471
  onBlur: props.onBlur,
5539
5472
  onChange: props.onChange,
5540
5473
  value: returnNullIfEmpty(props.value),
5541
- placeholderLabel: formatMessage(messages$B.placeholder),
5542
- searchPromptLabel: formatMessage(messages$B.searchPrompt),
5543
- noResultsLabel: formatMessage(messages$B.noResults),
5544
- referenceIsMissingLabel: formatMessage(messages$B.isMissing),
5474
+ placeholderLabel: formatMessage(messages$H.placeholder),
5475
+ searchPromptLabel: formatMessage(messages$H.searchPrompt),
5476
+ noResultsLabel: formatMessage(messages$H.noResults),
5477
+ referenceIsMissingLabel: formatMessage(messages$H.isMissing),
5545
5478
  mapItemToOption: mapItemToOption,
5546
5479
  loadItemsBySearchTerm: loadItemsBySearchTerm,
5547
5480
  loadItemsByIds: loadItemsByIds,
@@ -5551,7 +5484,7 @@ function CartDiscountReferenceSearch(props) {
5551
5484
  });
5552
5485
  }
5553
5486
 
5554
- const messages$A = reactIntl.defineMessages({
5487
+ const messages$E = reactIntl.defineMessages({
5555
5488
  placeholder: {
5556
5489
  id: 'CategoryReferenceSearch.placeholder',
5557
5490
  description: 'Placeholder for search for a category',
@@ -5583,6 +5516,7 @@ const messages$A = reactIntl.defineMessages({
5583
5516
  defaultMessage: 'Parent Category'
5584
5517
  }
5585
5518
  });
5519
+ var messages$F = messages$E;
5586
5520
 
5587
5521
  function ownKeys$$(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
5588
5522
  function _objectSpread$$(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$$(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$$(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
@@ -5607,7 +5541,7 @@ function Option(props) {
5607
5541
  fallbackOrder: languages
5608
5542
  })
5609
5543
  }), category.parent && jsxRuntime.jsx(uiKit.Text.Detail, {
5610
- children: `${formatMessage(messages$A.parentCategory)}: ${l10n.formatLocalizedString(category.parent, {
5544
+ children: `${formatMessage(messages$F.parentCategory)}: ${l10n.formatLocalizedString(category.parent, {
5611
5545
  key: 'name',
5612
5546
  locale: language,
5613
5547
  fallbackOrder: languages
@@ -5619,7 +5553,7 @@ function Option(props) {
5619
5553
  fallbackOrder: languages
5620
5554
  })}`
5621
5555
  }), category.externalId && jsxRuntime.jsx(uiKit.Text.Detail, {
5622
- children: `${formatMessage(messages$A.externalId)}: ${category.externalId || constants.NO_VALUE_FALLBACK}`
5556
+ children: `${formatMessage(messages$F.externalId)}: ${category.externalId || constants.NO_VALUE_FALLBACK}`
5623
5557
  })]
5624
5558
  })
5625
5559
  }));
@@ -5667,10 +5601,10 @@ function CategoryReferenceSearch(props) {
5667
5601
  onBlur: props.onBlur,
5668
5602
  onChange: props.onChange,
5669
5603
  value: props.value,
5670
- placeholderLabel: formatMessage(messages$A.placeholder),
5671
- searchPromptLabel: formatMessage(messages$A.searchPrompt),
5672
- noResultsLabel: formatMessage(messages$A.noResults),
5673
- referenceIsMissingLabel: formatMessage(messages$A.isMissing),
5604
+ placeholderLabel: formatMessage(messages$F.placeholder),
5605
+ searchPromptLabel: formatMessage(messages$F.searchPrompt),
5606
+ noResultsLabel: formatMessage(messages$F.noResults),
5607
+ referenceIsMissingLabel: formatMessage(messages$F.isMissing),
5674
5608
  mapItemToOption: mapItemToOption,
5675
5609
  loadItemsBySearchTerm: loadItemsBySearchTerm,
5676
5610
  loadItemsByIds: loadItemsByIds,
@@ -5744,8 +5678,9 @@ Button.displayName = 'Button';
5744
5678
  Button.defaultProps = {
5745
5679
  type: 'button'
5746
5680
  };
5681
+ var Button$1 = Button;
5747
5682
 
5748
- var messages$z = reactIntl.defineMessages({
5683
+ var messages$D = reactIntl.defineMessages({
5749
5684
  chooseFile: {
5750
5685
  id: 'ButtonFileInput.chooseFile',
5751
5686
  description: 'The label text of the field for upload local file',
@@ -5774,12 +5709,13 @@ const FileInput = props => jsxRuntime.jsx("label", {
5774
5709
  });
5775
5710
  FileInput.displayName = 'FileInput';
5776
5711
  FileInput.defaultProps = {
5777
- children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$Y({}, messages$z.chooseFile)),
5712
+ children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$Y({}, messages$D.chooseFile)),
5778
5713
  allowMultiple: false,
5779
5714
  acceptTypes: 'image/png,image/jpeg,image/gif'
5780
5715
  };
5716
+ var FileInput$1 = FileInput;
5781
5717
 
5782
- var messages$y = reactIntl.defineMessages({
5718
+ var messages$C = reactIntl.defineMessages({
5783
5719
  countriesBasicSelectPlaceholder: {
5784
5720
  id: 'CountriesPicker.countriesBasicSelectPlaceholder',
5785
5721
  description: 'Placeholder of the basic field for countries',
@@ -5800,7 +5736,7 @@ var messages$y = reactIntl.defineMessages({
5800
5736
  function ownKeys$X(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
5801
5737
  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__default["default"](_context4 = ownKeys$X(Object(t), !0)).call(_context4, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context5 = ownKeys$X(Object(t))).call(_context5, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
5802
5738
  const emptyCountryOption = intl => [{
5803
- label: intl.formatMessage(messages$y.countriesAsyncSelectDropdownTypeAheadPrompt),
5739
+ label: intl.formatMessage(messages$C.countriesAsyncSelectDropdownTypeAheadPrompt),
5804
5740
  value: undefined,
5805
5741
  isDisabled: true
5806
5742
  }];
@@ -5842,7 +5778,7 @@ function CountriesAsyncSelectDropdown(props) {
5842
5778
  var _context3;
5843
5779
  return _findInstanceProperty__default["default"](_context3 = props.options).call(_context3, country => country.value === countryCode);
5844
5780
  }),
5845
- placeholder: intl.formatMessage(messages$y.countriesAsyncSelectPlaceholder),
5781
+ placeholder: intl.formatMessage(messages$C.countriesAsyncSelectPlaceholder),
5846
5782
  loadOptions: handleLoadOptions,
5847
5783
  onChange: onOptionChange,
5848
5784
  isDisabled: props.isDisabled,
@@ -5862,7 +5798,7 @@ function CountriesBasicSelectDropdown(props) {
5862
5798
  value: props.value,
5863
5799
  isRequired: props.isRequired,
5864
5800
  description: props.description,
5865
- placeholder: intl.formatMessage(messages$y.countriesBasicSelectPlaceholder),
5801
+ placeholder: intl.formatMessage(messages$C.countriesBasicSelectPlaceholder),
5866
5802
  options: props.options,
5867
5803
  onChange: props.onChange,
5868
5804
  isDisabled: props.isDisabled,
@@ -5889,7 +5825,7 @@ CountriesPicker.defaultProps = {
5889
5825
  hasWarning: false
5890
5826
  };
5891
5827
 
5892
- var messages$x = reactIntl.defineMessages({
5828
+ var messages$B = reactIntl.defineMessages({
5893
5829
  noCustomerGroupsFound: {
5894
5830
  id: 'Prices.CustomerGroupPickerInput.noCustomerGroupsFound',
5895
5831
  description: 'The message to display when no customer groups were found',
@@ -5940,7 +5876,7 @@ const CustomerGroupPickerInput = _ref => {
5940
5876
  return customerGroup;
5941
5877
  }, []);
5942
5878
  const prefixSearchFields = React.useMemo(() => ['name', 'key'], []);
5943
- const loadOptions = useLoadOptions({
5879
+ const loadOptions = useLoadOptions$1({
5944
5880
  query: GetCustomerGroupsQuery,
5945
5881
  variables,
5946
5882
  prefixSearchFields
@@ -5965,8 +5901,8 @@ const CustomerGroupPickerInput = _ref => {
5965
5901
  setLoadingError(error);
5966
5902
  onError(error);
5967
5903
  }), [loadOptions, convertCustomerGroupToOption, onError]);
5968
- const loadOptionsDebounced = useDebouncedPromiseCallback(handleLoadOptions, 300);
5969
- const _useHandlers = useHandlers(onChange),
5904
+ const loadOptionsDebounced = useDebouncedPromiseCallback$1(handleLoadOptions, 300);
5905
+ const _useHandlers = useHandlers$1(onChange),
5970
5906
  _useHandlers2 = _slicedToArray(_useHandlers, 2),
5971
5907
  handleInternalInputChange = _useHandlers2[0],
5972
5908
  handleChange = _useHandlers2[1];
@@ -5979,18 +5915,18 @@ const CustomerGroupPickerInput = _ref => {
5979
5915
  if (isCurrentOptionLoadingFailed) onError(currentOption.error);
5980
5916
  }, [isCurrentOptionLoadingFailed, onError, currentOption]);
5981
5917
  const isLoadingFailed = isCurrentOptionLoadingFailed || Boolean(loadingError);
5982
- const handleNoOptions = React.useCallback(() => loadingError ? null : formatMessage(messages$x.noCustomerGroupsFound), [loadingError, formatMessage]);
5918
+ const handleNoOptions = React.useCallback(() => loadingError ? null : formatMessage(messages$B.noCustomerGroupsFound), [loadingError, formatMessage]);
5983
5919
  const tooltipTitle = currentOption?.data?.label ?? '';
5984
5920
  return jsxRuntime.jsx(uiKit.Constraints.Horizontal, {
5985
5921
  max: "scale",
5986
5922
  children: jsxRuntime.jsxs(uiKit.Spacings.Stack, {
5987
5923
  scale: "xs",
5988
- children: [jsxRuntime.jsx(CustomFieldTooltip, {
5924
+ children: [jsxRuntime.jsx(CustomFieldTooltip$1, {
5989
5925
  title: tooltipTitle,
5990
5926
  children: jsxRuntime.jsx(uiKit.AsyncSelectInput, {
5991
5927
  id: name,
5992
5928
  name: name,
5993
- placeholder: placeholder ?? formatMessage(messages$x.placeholder),
5929
+ placeholder: placeholder ?? formatMessage(messages$B.placeholder),
5994
5930
  loadOptions: loadOptionsDebounced,
5995
5931
  defaultOptions: true,
5996
5932
  showOptionGroupDivider: true,
@@ -6015,6 +5951,7 @@ const CustomerGroupPickerInput = _ref => {
6015
5951
  });
6016
5952
  };
6017
5953
  CustomerGroupPickerInput.displayName = 'CustomerGroupPickerInput';
5954
+ var CustomerGroupPickerInput$1 = CustomerGroupPickerInput;
6018
5955
 
6019
5956
  var styles$e = {
6020
5957
  "divider": "divider-module__divider___4-vdy",
@@ -6085,13 +6022,14 @@ const CustomFieldErrors = props => {
6085
6022
  const errors = _Array$isArray__default["default"](props.errors) ? mergeSetItemsErrors(props.errors) : props.errors;
6086
6023
  return jsxRuntime.jsxs(jsxRuntime.Fragment, {
6087
6024
  children: [props.isTouched || didFormValidationFail && errors?.missing && jsxRuntime.jsx(_.ErrorMessage, {
6088
- intlMessage: messages$C.required
6025
+ intlMessage: validationMessages.required
6089
6026
  }), props.isTouched || didFormValidationFail && errors?.duplicated && jsxRuntime.jsx(_.ErrorMessage, {
6090
- intlMessage: messages$C.unique
6027
+ intlMessage: validationMessages.unique
6091
6028
  })]
6092
6029
  });
6093
6030
  };
6094
6031
  CustomFieldErrors.displayName = 'CustomFieldErrors';
6032
+ var CustomFieldErrors$1 = CustomFieldErrors;
6095
6033
 
6096
6034
  const getType = fieldDefinition => {
6097
6035
  const fieldDefinitionType = fieldDefinition.type.name.toLowerCase() === 'set' ? fieldDefinition.type.elementType : fieldDefinition.type;
@@ -6175,6 +6113,7 @@ const ExpandButton = props => props.totalValues > 1 ? jsxRuntime.jsxs(uiKit.Spac
6175
6113
  })]
6176
6114
  }) : null;
6177
6115
  ExpandButton.displayName = 'ExpandButton';
6116
+ var ExpandButton$1 = ExpandButton;
6178
6117
 
6179
6118
  var styles$d = {
6180
6119
  "topAlign": "set-buttons-module__topAlign___3AZwc",
@@ -6203,6 +6142,7 @@ const SetButtons = props => {
6203
6142
  });
6204
6143
  };
6205
6144
  SetButtons.displayName = 'SetButtons';
6145
+ var SetButtons$1 = SetButtons;
6206
6146
 
6207
6147
  function ownKeys$U(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
6208
6148
  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__default["default"](_context2 = ownKeys$U(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$U(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
@@ -6347,7 +6287,7 @@ function CustomInputSet(props) {
6347
6287
  const fieldValue = internalValue[index];
6348
6288
  return jsxRuntime.jsxs(uiKit.Spacings.Inline, {
6349
6289
  alignItems: areButtonsTopAligned ? 'flex-start' : 'center',
6350
- children: [jsxRuntime.jsx(CustomFieldInput, {
6290
+ children: [jsxRuntime.jsx(CustomFieldInput$1, {
6351
6291
  name: fieldName,
6352
6292
  fieldDefinition: itemFieldDefinition,
6353
6293
  isDisabled: props.isDisabled,
@@ -6360,7 +6300,7 @@ function CustomInputSet(props) {
6360
6300
  WrapperComponent: props.WrapperComponent,
6361
6301
  renderWarnings: props.renderWarnings,
6362
6302
  handleWarningChange: props.handleWarningChange
6363
- }), jsxRuntime.jsx(SetButtons, {
6303
+ }), jsxRuntime.jsx(SetButtons$1, {
6364
6304
  index: index,
6365
6305
  isFirstItem: !isExpanded || index === 0,
6366
6306
  onAddItem: addNewItem,
@@ -6370,7 +6310,7 @@ function CustomInputSet(props) {
6370
6310
  isTopAligned: areButtonsTopAligned
6371
6311
  })]
6372
6312
  }, keys[index]);
6373
- }), jsxRuntime.jsx(ExpandButton, {
6313
+ }), jsxRuntime.jsx(ExpandButton$1, {
6374
6314
  totalValues: totalAmount,
6375
6315
  isExpanded: isExpanded,
6376
6316
  onExpand: toggleExpansion
@@ -6443,11 +6383,11 @@ const convertTypeValuesToOptions$1 = reselect.defaultMemoize(typeValues => _mapI
6443
6383
  function CustomEnumInput(props) {
6444
6384
  const options = convertTypeValuesToOptions$1(_valuesInstanceProperty__default["default"](props.fieldDefinition.type));
6445
6385
  const handleChange = makeChangeHandler(rawValue => {
6446
- props.setFieldValue(props.name, rawValue);
6386
+ props.setFieldValue(props.name, !rawValue ? undefined : rawValue);
6447
6387
  props.renderWarnings && props.handleWarningChange(props.name, props.fieldDefinition, rawValue);
6448
6388
  });
6449
6389
  const tooltipTitle = props.value ? _findInstanceProperty__default["default"](options).call(options, option => option.value === props.value)?.label ?? '' : '';
6450
- return jsxRuntime.jsx(CustomFieldTooltip, {
6390
+ return jsxRuntime.jsx(CustomFieldTooltip$1, {
6451
6391
  title: tooltipTitle,
6452
6392
  children: jsxRuntime.jsx(uiKit.SelectInput, {
6453
6393
  isClearable: !props.fieldDefinition.required,
@@ -6493,7 +6433,7 @@ function CustomLocalizedEnumInput(props) {
6493
6433
  props.renderWarnings && props.handleWarningChange(props.name, props.fieldDefinition, rawValue);
6494
6434
  });
6495
6435
  const tooltipTitle = props.value ? _findInstanceProperty__default["default"](options).call(options, option => option.value === props.value)?.label ?? '' : '';
6496
- return jsxRuntime.jsx(CustomFieldTooltip, {
6436
+ return jsxRuntime.jsx(CustomFieldTooltip$1, {
6497
6437
  title: tooltipTitle,
6498
6438
  children: jsxRuntime.jsx(uiKit.SelectInput, {
6499
6439
  id: props.name,
@@ -6547,7 +6487,7 @@ function CustomLocalizedTextInput(props) {
6547
6487
  });
6548
6488
  const InputComponent = isMultiLine ? uiKit.LocalizedMultilineTextInput : uiKit.LocalizedTextInput;
6549
6489
  const tooltipTitle = isMultiLine ? '' : value ? value[language] ?? '' : '';
6550
- return jsxRuntime.jsx(CustomFieldTooltip, {
6490
+ return jsxRuntime.jsx(CustomFieldTooltip$1, {
6551
6491
  title: tooltipTitle,
6552
6492
  children: jsxRuntime.jsx(InputComponent, {
6553
6493
  id: props.name,
@@ -6659,7 +6599,7 @@ function CustomMoneyInput(props) {
6659
6599
  CustomMoneyInput.displayName = 'CustomMoneyInput';
6660
6600
 
6661
6601
  function ownKeys$R(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
6662
- 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__default["default"](_context6 = ownKeys$R(Object(t), !0)).call(_context6, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context7 = ownKeys$R(Object(t))).call(_context7, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
6602
+ 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__default["default"](_context5 = ownKeys$R(Object(t), !0)).call(_context5, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context6 = ownKeys$R(Object(t))).call(_context6, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
6663
6603
  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 } } } };
6664
6604
  const mapAttributeDefinition = definition => {
6665
6605
  var _context, _context2, _context3, _context4;
@@ -6698,15 +6638,14 @@ function useNestedProductType(fieldDefinition) {
6698
6638
  loading = _useQuery.loading,
6699
6639
  error = _useQuery.error;
6700
6640
  if (!loading && !error) {
6701
- var _context5;
6702
- const attributeDefinitions = _mapInstanceProperty__default["default"](_context5 = data.productType.attributeDefinitions.results).call(_context5, mapAttributeDefinition);
6641
+ const attributeDefinitions = data.productType?.attributeDefinitions.results.map(mapAttributeDefinition);
6703
6642
  return {
6704
6643
  loading: false,
6705
6644
  error: false,
6706
- productType: {
6645
+ productType: data.productType ? {
6707
6646
  name: data.productType.name,
6708
6647
  attributeDefinitions
6709
- }
6648
+ } : null
6710
6649
  };
6711
6650
  }
6712
6651
  return {
@@ -6716,9 +6655,10 @@ function useNestedProductType(fieldDefinition) {
6716
6655
  }
6717
6656
 
6718
6657
  const NestingLevelContext = /*#__PURE__*/React.createContext(0);
6658
+ var NestingLevelContext$1 = NestingLevelContext;
6719
6659
 
6720
6660
  // eslint-disable-next-line import/prefer-default-export
6721
- const messages$w = reactIntl.defineMessages({
6661
+ const messages$A = reactIntl.defineMessages({
6722
6662
  aboveFifthLevelWarning: {
6723
6663
  id: 'attributeInputByType.nestedAttributes.aboveFifthLevelWarning',
6724
6664
  description: 'Warning message shown when nested attribute are above the fifth level',
@@ -6730,8 +6670,9 @@ const messages$w = reactIntl.defineMessages({
6730
6670
  defaultMessage: 'Empty'
6731
6671
  }
6732
6672
  });
6673
+ var customFieldsMessages = messages$A;
6733
6674
 
6734
- var messages$v = reactIntl.defineMessages({
6675
+ var messages$z = reactIntl.defineMessages({
6735
6676
  updateButton: {
6736
6677
  id: 'NestedAttributes.Details.updateButton',
6737
6678
  description: 'Update button label',
@@ -6816,7 +6757,7 @@ const EditButton = props => {
6816
6757
  formatMessage = _useIntl.formatMessage;
6817
6758
  return jsxRuntime.jsx(uiKit.Tooltip, {
6818
6759
  placement: "top",
6819
- title: formatMessage(messages$v.editTooltip),
6760
+ title: formatMessage(messages$z.editTooltip),
6820
6761
  children: jsxRuntime.jsx(uiKit.IconButton, {
6821
6762
  label: "Edit",
6822
6763
  isDisabled: props.isDisabled,
@@ -6832,12 +6773,12 @@ const DropChangesConfirmation = props => {
6832
6773
  formatMessage = _useIntl2.formatMessage;
6833
6774
  return jsxRuntime.jsx(applicationComponents.ConfirmationDialog, {
6834
6775
  isOpen: props.isOpen || false,
6835
- title: formatMessage(messages$v.confirmationDialogTitle),
6836
- labelPrimary: formatMessage(messages$v.nestedAttributesConfirmLabel),
6776
+ title: formatMessage(messages$z.confirmationDialogTitle),
6777
+ labelPrimary: formatMessage(messages$z.nestedAttributesConfirmLabel),
6837
6778
  onConfirm: props.onConfirm,
6838
6779
  onCancel: props.onCancel,
6839
6780
  children: jsxRuntime.jsx(uiKit.Text.Body, {
6840
- intlMessage: messages$v.confirmationDialogBody
6781
+ intlMessage: messages$z.confirmationDialogBody
6841
6782
  })
6842
6783
  });
6843
6784
  };
@@ -6862,11 +6803,11 @@ const NestedAttributeModalPage = props => {
6862
6803
  children: [jsxRuntime.jsx(uiKit.SecondaryButton, {
6863
6804
  isDisabled: !formik$1.dirty,
6864
6805
  iconLeft: jsxRuntime.jsx(uiKit.RevertIcon, {}),
6865
- label: formatMessage(messages$v.cancelButton),
6806
+ label: formatMessage(messages$z.cancelButton),
6866
6807
  onClick: formik$1.resetForm
6867
6808
  }), jsxRuntime.jsx(applicationComponents.CustomFormModalPage.FormPrimaryButton, {
6868
6809
  isDisabled: !formik$1.dirty,
6869
- label: formatMessage(messages$v.updateButton),
6810
+ label: formatMessage(messages$z.updateButton),
6870
6811
  onClick: formik$1.handleSubmit
6871
6812
  })]
6872
6813
  }),
@@ -6896,19 +6837,19 @@ NestedAttributeModalPage.displayName = 'NestedAttributeModalPage';
6896
6837
  const MaxNestingLevelReached = () => jsxRuntime.jsx(uiKit.FieldLabel, {
6897
6838
  title: "",
6898
6839
  hint: jsxRuntime.jsx(uiKit.Text.Body, {
6899
- intlMessage: messages$w.aboveFifthLevelWarning
6840
+ intlMessage: customFieldsMessages.aboveFifthLevelWarning
6900
6841
  }),
6901
6842
  hintIcon: jsxRuntime.jsx(uiKit.WarningIcon, {})
6902
6843
  });
6903
6844
  MaxNestingLevelReached.displayName = 'MaxNestingLevelReached';
6904
6845
  const NestedInputControls = props => {
6905
- const nextNestingLevel = React.useContext(NestingLevelContext);
6846
+ const nextNestingLevel = React.useContext(NestingLevelContext$1);
6906
6847
  const _useIntl4 = reactIntl.useIntl(),
6907
6848
  formatMessage = _useIntl4.formatMessage;
6908
6849
  if (nextNestingLevel >= 6) return jsxRuntime.jsx(MaxNestingLevelReached, {});
6909
6850
  const hasAttributes = props.productType.attributeDefinitions.length > 0;
6910
6851
  if (!hasAttributes) return jsxRuntime.jsx(uiKit.Text.Body, {
6911
- intlMessage: messages$v.emptyProductType,
6852
+ intlMessage: messages$z.emptyProductType,
6912
6853
  tone: "secondary"
6913
6854
  });
6914
6855
  return jsxRuntime.jsxs(uiKit.Spacings.Inline, {
@@ -6922,7 +6863,7 @@ const NestedInputControls = props => {
6922
6863
  children: props.productType.name
6923
6864
  }), props.isEmpty && jsxRuntime.jsx("span", {
6924
6865
  children: jsxRuntime.jsx(uiKit.Tag, {
6925
- children: formatMessage(messages$w.emptySetItem)
6866
+ children: formatMessage(customFieldsMessages.emptySetItem)
6926
6867
  })
6927
6868
  })]
6928
6869
  }), jsxRuntime.jsx(EditButton, {
@@ -6944,7 +6885,7 @@ const CustomNestedInput = /*#__PURE__*/React.memo(props => {
6944
6885
  const parentFormik = formik.useFormikContext();
6945
6886
  const showNotification = actionsGlobal.useShowNotification();
6946
6887
  const attributesForm = applicationComponents.useModalState();
6947
- const nestingLevel = React.useContext(NestingLevelContext);
6888
+ const nestingLevel = React.useContext(NestingLevelContext$1);
6948
6889
  const _useNestedProductType = useNestedProductType(props.fieldDefinition),
6949
6890
  productType = _useNestedProductType.productType;
6950
6891
  if (!productType) return null;
@@ -6973,7 +6914,7 @@ const CustomNestedInput = /*#__PURE__*/React.memo(props => {
6973
6914
  max: "scale",
6974
6915
  children: jsxRuntime.jsx("div", {
6975
6916
  "data-testid": props.name,
6976
- children: jsxRuntime.jsx(NestingLevelContext.Provider, {
6917
+ children: jsxRuntime.jsx(NestingLevelContext$1.Provider, {
6977
6918
  value: nestingLevel + 1,
6978
6919
  children: jsxRuntime.jsx(formik.Formik, {
6979
6920
  enableReinitialize: true,
@@ -6984,7 +6925,7 @@ const CustomNestedInput = /*#__PURE__*/React.memo(props => {
6984
6925
  if (nestingLevel !== 0) parentFormik.submitForm();else showNotification({
6985
6926
  kind: 'success',
6986
6927
  domain: constants.DOMAINS.SIDE,
6987
- text: formatMessage(messages$v.attributeUpdateSucceeded)
6928
+ text: formatMessage(messages$z.attributeUpdateSucceeded)
6988
6929
  });
6989
6930
  setSubmitting(false);
6990
6931
  },
@@ -7010,6 +6951,7 @@ const CustomNestedInput = /*#__PURE__*/React.memo(props => {
7010
6951
  });
7011
6952
  });
7012
6953
  CustomNestedInput.displayName = 'CustomNestedInput';
6954
+ var CustomNestedInput$1 = CustomNestedInput;
7013
6955
 
7014
6956
  function CustomNumberInput(props) {
7015
6957
  const value = props.value ?? '';
@@ -7087,7 +7029,7 @@ CustomCategoryReferenceInput.displayName = 'CustomCategoryReferenceInput';
7087
7029
 
7088
7030
  function CustomChannelReferenceInput(props) {
7089
7031
  const value = props.value?.id || '';
7090
- return jsxRuntime.jsx(ChannelPickerInput, {
7032
+ return jsxRuntime.jsx(ChannelPickerInput$1, {
7091
7033
  value: value,
7092
7034
  name: props.name,
7093
7035
  isClearable: !props.fieldDefinition.required,
@@ -7102,7 +7044,7 @@ function CustomChannelReferenceInput(props) {
7102
7044
  }
7103
7045
  CustomChannelReferenceInput.displayName = 'CustomChannelReferenceInput';
7104
7046
 
7105
- var messages$u = reactIntl.defineMessages({
7047
+ var messages$y = reactIntl.defineMessages({
7106
7048
  noProductsFound: {
7107
7049
  id: 'Shared.ProductPickerInput.noProductsFound',
7108
7050
  description: 'The message to display when no products were found',
@@ -7155,7 +7097,7 @@ const ProductPickerInput = _ref => {
7155
7097
  };
7156
7098
  }, [formatLocalizedFieldToString]);
7157
7099
  const prefixSearchFields = React.useMemo(() => [`masterData.current.name.${dataLocale}`, 'key'], [dataLocale]);
7158
- const loadOptions = useLoadOptions({
7100
+ const loadOptions = useLoadOptions$1({
7159
7101
  query: GetProductsQuery,
7160
7102
  prefixSearchFields
7161
7103
  });
@@ -7176,8 +7118,8 @@ const ProductPickerInput = _ref => {
7176
7118
  setLoadingError(error);
7177
7119
  onError(error);
7178
7120
  }), [loadOptions, onError, convertProductToOption]);
7179
- const loadOptionsDebounced = useDebouncedPromiseCallback(handleLoadOptions, 300);
7180
- const _useHandlers = useHandlers(onChange),
7121
+ const loadOptionsDebounced = useDebouncedPromiseCallback$1(handleLoadOptions, 300);
7122
+ const _useHandlers = useHandlers$1(onChange),
7181
7123
  _useHandlers2 = _slicedToArray(_useHandlers, 2),
7182
7124
  handleInternalInputChange = _useHandlers2[0],
7183
7125
  handleChange = _useHandlers2[1];
@@ -7193,14 +7135,14 @@ const ProductPickerInput = _ref => {
7193
7135
  const tooltipTitle = currentOption?.data?.label ?? '';
7194
7136
  return jsxRuntime.jsx(uiKit.Constraints.Horizontal, {
7195
7137
  max: "scale",
7196
- children: currentOption.loading ? jsxRuntime.jsx(CenteredLoadingSpinner, {}) : jsxRuntime.jsxs(uiKit.Spacings.Stack, {
7138
+ children: currentOption.loading ? jsxRuntime.jsx(CenteredLoadingSpinner$1, {}) : jsxRuntime.jsxs(uiKit.Spacings.Stack, {
7197
7139
  scale: "xs",
7198
- children: [jsxRuntime.jsx(CustomFieldTooltip, {
7140
+ children: [jsxRuntime.jsx(CustomFieldTooltip$1, {
7199
7141
  title: tooltipTitle,
7200
7142
  children: jsxRuntime.jsx(uiKit.AsyncSelectInput, {
7201
7143
  id: name,
7202
7144
  name: name,
7203
- placeholder: formatMessage(messages$u.placeholder),
7145
+ placeholder: formatMessage(messages$y.placeholder),
7204
7146
  loadOptions: loadOptionsDebounced,
7205
7147
  defaultOptions: [],
7206
7148
  isClearable: isClearable,
@@ -7214,7 +7156,7 @@ const ProductPickerInput = _ref => {
7214
7156
  onInputChange: handleInputChange,
7215
7157
  onBlur: onBlur,
7216
7158
  value: currentOption.data,
7217
- noOptionsMessage: () => isLoadingFailed ? null : formatMessage(messages$u.noProductsFound),
7159
+ noOptionsMessage: () => isLoadingFailed ? null : formatMessage(messages$y.noProductsFound),
7218
7160
  hasError: hasError || isLoadingFailed,
7219
7161
  menuPortalZIndex: Z_INDEX_DROPDOWN,
7220
7162
  menuPortalTarget: document.body,
@@ -7228,10 +7170,11 @@ const ProductPickerInput = _ref => {
7228
7170
  });
7229
7171
  };
7230
7172
  ProductPickerInput.displayName = 'ProductPickerInput';
7173
+ var ProductPickerInput$1 = ProductPickerInput;
7231
7174
 
7232
7175
  function CustomProductReferenceInput(props) {
7233
7176
  const value = props.value?.id || '';
7234
- return jsxRuntime.jsx(ProductPickerInput, {
7177
+ return jsxRuntime.jsx(ProductPickerInput$1, {
7235
7178
  value: value,
7236
7179
  name: props.name,
7237
7180
  isClearable: !props.fieldDefinition.required,
@@ -7249,7 +7192,7 @@ CustomProductReferenceInput.displayName = 'CustomProductReferenceInput';
7249
7192
 
7250
7193
  function CustomProductTypeReferenceInput(props) {
7251
7194
  const value = props.value?.id || '';
7252
- return jsxRuntime.jsx(ProductTypePickerInput, {
7195
+ return jsxRuntime.jsx(ProductTypePickerInput$1, {
7253
7196
  value: value,
7254
7197
  name: props.name,
7255
7198
  isClearable: !props.fieldDefinition.required,
@@ -7266,7 +7209,7 @@ CustomProductTypeReferenceInput.displayName = 'CustomProductTypeReferenceInput';
7266
7209
 
7267
7210
  function CustomRawIdReferenceInput(props) {
7268
7211
  const value = props.value?.id || '';
7269
- return jsxRuntime.jsx(CustomFieldTooltip, {
7212
+ return jsxRuntime.jsx(CustomFieldTooltip$1, {
7270
7213
  title: value,
7271
7214
  children: jsxRuntime.jsx(uiKit.TextInput, {
7272
7215
  id: props.name,
@@ -7284,7 +7227,7 @@ CustomRawIdReferenceInput.displayName = 'CustomRawIdReferenceInput';
7284
7227
 
7285
7228
  function CustomStateReferenceInput(props) {
7286
7229
  const value = props.value?.id || '';
7287
- return jsxRuntime.jsx(StatePickerInput, {
7230
+ return jsxRuntime.jsx(StatePickerInput$1, {
7288
7231
  value: value,
7289
7232
  name: props.name,
7290
7233
  isClearable: !props.fieldDefinition.required,
@@ -7336,7 +7279,7 @@ function CustomTextInput(props) {
7336
7279
  props.renderWarnings && props.handleWarningChange(props.name, props.fieldDefinition, rawValue);
7337
7280
  });
7338
7281
  const tooltipValue = isMultiLine ? '' : value;
7339
- return jsxRuntime.jsx(CustomFieldTooltip, {
7282
+ return jsxRuntime.jsx(CustomFieldTooltip$1, {
7340
7283
  title: tooltipValue,
7341
7284
  children: jsxRuntime.jsx(InputComponent, {
7342
7285
  id: props.name,
@@ -7415,7 +7358,7 @@ const nonSetComponents = {
7415
7358
  [CUSTOM_FIELD_TYPES.time]: CustomTimeInput,
7416
7359
  [CUSTOM_FIELD_TYPES.datetime]: CustomDateTimeInput,
7417
7360
  [CUSTOM_FIELD_TYPES.date]: CustomDateTimeInput,
7418
- [CUSTOM_FIELD_TYPES.nested]: CustomNestedInput
7361
+ [CUSTOM_FIELD_TYPES.nested]: CustomNestedInput$1
7419
7362
  };
7420
7363
  const CustomFieldInput = /*#__PURE__*/React.memo(props => {
7421
7364
  const InputComponent = React.useMemo(() => {
@@ -7448,8 +7391,9 @@ const CustomFieldInput = /*#__PURE__*/React.memo(props => {
7448
7391
  });
7449
7392
  });
7450
7393
  CustomFieldInput.displayName = 'CustomFieldInput';
7394
+ var CustomFieldInput$1 = CustomFieldInput;
7451
7395
 
7452
- var messages$t = reactIntl.defineMessages({
7396
+ var messages$x = reactIntl.defineMessages({
7453
7397
  productReferenceLabel: {
7454
7398
  id: 'CustomFieldsLabel.productReferenceLabel',
7455
7399
  description: 'Label shown above the product picker input.',
@@ -7517,7 +7461,7 @@ const CustomFieldsLabelHint = _ref2 => {
7517
7461
  children: [jsxRuntime.jsx(uiKit.WarningIcon, {
7518
7462
  size: "medium",
7519
7463
  color: "warning"
7520
- }), jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$P({}, messages$t.cartDiscountMoreThan500))]
7464
+ }), jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$P({}, messages$x.cartDiscountMoreThan500))]
7521
7465
  });
7522
7466
  }
7523
7467
  return l10n.formatLocalizedString(fieldDefinition, {
@@ -7531,8 +7475,8 @@ function CustomFieldsProductTypeReferenceSubtitle() {
7531
7475
  formatMessage = _useIntl.formatMessage;
7532
7476
  const _usePimStatus = usePimStatus(),
7533
7477
  isProjectIndexed = _usePimStatus.isProjectIndexed;
7534
- if (isProjectIndexed) return formatMessage(messages$t.productTypeReferenceLabelI);
7535
- return formatMessage(messages$t.productTypeReferenceLabel);
7478
+ if (isProjectIndexed) return formatMessage(messages$x.productTypeReferenceLabelI);
7479
+ return formatMessage(messages$x.productTypeReferenceLabel);
7536
7480
  }
7537
7481
 
7538
7482
  // TODO(pa3): this logic may be misplaced and probably
@@ -7548,7 +7492,7 @@ function CustomFieldsLabelSubtitle(_ref3) {
7548
7492
  const referenceTypeId = type.referenceTypeId;
7549
7493
  const referenceTypeName = capitalizeFirst(referenceTypeId);
7550
7494
  if (_includesInstanceProperty__default["default"](_context = [SEARCHABLE_REFERENCES.category, SEARCHABLE_REFERENCES.cartDiscount]).call(_context, referenceTypeId)) return referenceTypeName;
7551
- return referenceTypeId === SEARCHABLE_REFERENCES.product ? formatMessage(messages$t.productReferenceLabel) : referenceTypeId === SEARCHABLE_REFERENCES.productType ? jsxRuntime.jsx(CustomFieldsProductTypeReferenceSubtitle, {}) : referenceTypeId === SEARCHABLE_REFERENCES.channel ? formatMessage(messages$t.channelReferenceLabel) : referenceTypeId === SEARCHABLE_REFERENCES.state ? formatMessage(messages$t.stateReferenceLabel) : `${referenceTypeName} ID`;
7495
+ return referenceTypeId === SEARCHABLE_REFERENCES.product ? formatMessage(messages$x.productReferenceLabel) : referenceTypeId === SEARCHABLE_REFERENCES.productType ? jsxRuntime.jsx(CustomFieldsProductTypeReferenceSubtitle, {}) : referenceTypeId === SEARCHABLE_REFERENCES.channel ? formatMessage(messages$x.channelReferenceLabel) : referenceTypeId === SEARCHABLE_REFERENCES.state ? formatMessage(messages$x.stateReferenceLabel) : `${referenceTypeName} ID`;
7552
7496
  }
7553
7497
  const Portal = props => /*#__PURE__*/ReactDOM__default["default"].createPortal(props.children, document.body);
7554
7498
  var _ref$1 = {
@@ -7561,7 +7505,7 @@ function CustomFieldsCountIndicator(_ref4) {
7561
7505
  const _useIntl3 = reactIntl.useIntl(),
7562
7506
  formatMessage = _useIntl3.formatMessage;
7563
7507
  return assignedAttributeGroups?.length > 1 ? jsxRuntime.jsx(uiKit.Tooltip, {
7564
- title: formatMessage(messages$t.attributeGroupCountTooltip, {
7508
+ title: formatMessage(messages$x.attributeGroupCountTooltip, {
7565
7509
  attributeGroups: _mapInstanceProperty__default["default"](assignedAttributeGroups).call(assignedAttributeGroups, assignedAttributeGroup => formatLocalizedField(assignedAttributeGroup.nameAllLocales)).join(', '),
7566
7510
  count: assignedAttributeGroups.length
7567
7511
  }),
@@ -7616,8 +7560,9 @@ const CustomFieldsLabel = /*#__PURE__*/React.memo(_ref5 => {
7616
7560
  });
7617
7561
  });
7618
7562
  CustomFieldsLabel.displayName = 'CustomFieldsTitle';
7563
+ var CustomFieldsLabel$1 = CustomFieldsLabel;
7619
7564
 
7620
- var messages$s = reactIntl.defineMessages({
7565
+ var messages$w = reactIntl.defineMessages({
7621
7566
  referencedProductType: {
7622
7567
  id: 'NestedAttributes.referencedProductType',
7623
7568
  description: 'Product type referenced hint',
@@ -7628,7 +7573,7 @@ var messages$s = reactIntl.defineMessages({
7628
7573
  function ownKeys$O(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
7629
7574
  function _objectSpread$O(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$O(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$O(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
7630
7575
  function ProductTypeReference(props) {
7631
- const productTypeMessage = _objectSpread$O(_objectSpread$O({}, messages$s.referencedProductType), {}, {
7576
+ const productTypeMessage = _objectSpread$O(_objectSpread$O({}, messages$w.referencedProductType), {}, {
7632
7577
  values: {
7633
7578
  productTypeName: props.productType.name
7634
7579
  }
@@ -7656,7 +7601,7 @@ function CustomNestedFieldInput(props) {
7656
7601
  })]
7657
7602
  });
7658
7603
  if (!productType) return null;
7659
- const InputComponent = isSet ? CustomInputSet : CustomNestedInput;
7604
+ const InputComponent = isSet ? CustomInputSet : CustomNestedInput$1;
7660
7605
  return jsxRuntime.jsxs(jsxRuntime.Fragment, {
7661
7606
  children: [jsxRuntime.jsx(ProductTypeReference, {
7662
7607
  productType: productType
@@ -7874,7 +7819,7 @@ const CustomFieldsInternal = _ref => {
7874
7819
  };
7875
7820
  return undefined;
7876
7821
  };
7877
- const FieldComponent = isNested(fieldDefinition) ? CustomNestedFieldInput : CustomFieldInput;
7822
+ const FieldComponent = isNested(fieldDefinition) ? CustomNestedFieldInput : CustomFieldInput$1;
7878
7823
  const fieldProps = {
7879
7824
  name: fieldName,
7880
7825
  value: value,
@@ -7902,7 +7847,7 @@ const CustomFieldsInternal = _ref => {
7902
7847
  "aria-invalid": _Object$keys__default["default"](fieldErrors ?? {}).length > 0,
7903
7848
  "aria-errormessage": `${fieldName}-error`,
7904
7849
  id: `${fieldName}-error`,
7905
- children: [jsxRuntime.jsx(CustomFieldsLabel, {
7850
+ children: [jsxRuntime.jsx(CustomFieldsLabel$1, {
7906
7851
  name: fieldName,
7907
7852
  fieldDefinition: fieldDefinition
7908
7853
  }), jsxRuntime.jsxs(uiKit.Spacings.Stack, {
@@ -7910,7 +7855,7 @@ const CustomFieldsInternal = _ref => {
7910
7855
  alignItems: "stretch",
7911
7856
  children: [WrapperComponent ? jsxRuntime.jsx(WrapperComponent, {
7912
7857
  children: Field
7913
- }) : Field, props.renderWarnings && status?.warnings[fieldName] && props.renderCustomWarnings(fieldDefinition), jsxRuntime.jsx(CustomFieldErrors, {
7858
+ }) : Field, props.renderWarnings && status?.warnings[fieldName] && props.renderCustomWarnings(fieldDefinition), jsxRuntime.jsx(CustomFieldErrors$1, {
7914
7859
  isTouched: isTouched,
7915
7860
  errors: fieldErrors
7916
7861
  })]
@@ -7926,6 +7871,7 @@ CustomFieldsInternal.displayName = 'CustomFieldsInternal';
7926
7871
  CustomFieldsInternal.defaultProps = {
7927
7872
  renderCustomWarnings: () => null
7928
7873
  };
7874
+ var CustomFieldsInternal$1 = CustomFieldsInternal;
7929
7875
 
7930
7876
  function ownKeys$I(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
7931
7877
  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__default["default"](_context7 = ownKeys$I(Object(t), !0)).call(_context7, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context8 = ownKeys$I(Object(t))).call(_context8, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
@@ -8021,7 +7967,7 @@ function ProductAttributes(_ref) {
8021
7967
  max: "scale",
8022
7968
  children: jsxRuntime.jsx(uiKit.Spacings.Stack, {
8023
7969
  scale: "xl",
8024
- children: jsxRuntime.jsx(CustomFieldsInternal, {
7970
+ children: jsxRuntime.jsx(CustomFieldsInternal$1, {
8025
7971
  name: props.name,
8026
7972
  isReadOnly: props.isReadOnly,
8027
7973
  isDisabled: props.isDisabled,
@@ -8056,7 +8002,7 @@ function ProductAttributeInput(props) {
8056
8002
  // Just don't want to go with another several-weeks long refactoring and
8057
8003
  // will address this step by step.
8058
8004
  return jsxRuntime.jsx(formik.Formik, {
8059
- children: jsxRuntime.jsx(CustomFieldInput, {
8005
+ children: jsxRuntime.jsx(CustomFieldInput$1, {
8060
8006
  value: value,
8061
8007
  name: props.name,
8062
8008
  isDisabled: props.isDisabled,
@@ -8142,7 +8088,7 @@ const emptyStoreOption$1 = intl => [{
8142
8088
  function ProductSelectionsAsyncSelectDropdown(props) {
8143
8089
  const intl = reactIntl.useIntl();
8144
8090
  const enableExcludingProducts = applicationShell.useFeatureToggle(EXCLUDING_PRODUCTS);
8145
- const productSelectionsFetcher = useProductSelectionsFetcher({
8091
+ const productSelectionsFetcher = useProductSelectionsFetcher$1({
8146
8092
  limit: props.upperProductSelectionsLimit
8147
8093
  });
8148
8094
  const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => ({
@@ -8198,7 +8144,7 @@ function ProductSelectionsAsyncSelectDropdown(props) {
8198
8144
  options: emptyStoreOption$1(intl)
8199
8145
  }];
8200
8146
  };
8201
- if (productSelectionsFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner, {});
8147
+ if (productSelectionsFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner$1, {});
8202
8148
  return jsxRuntime.jsx(uiKit.AsyncSelectField, {
8203
8149
  id: props.id,
8204
8150
  name: props.name,
@@ -8258,7 +8204,7 @@ const mapProductSelectionsToOptions$1 = memoize__default["default"](function ()
8258
8204
  function ProductSelectionBasicSelectDropdown(props) {
8259
8205
  const intl = reactIntl.useIntl();
8260
8206
  const enableExcludingProducts = applicationShell.useFeatureToggle(EXCLUDING_PRODUCTS);
8261
- const productSelectionsFetcher = useProductSelectionsFetcher({
8207
+ const productSelectionsFetcher = useProductSelectionsFetcher$1({
8262
8208
  limit: props.lowerProductSelectionsLimit
8263
8209
  });
8264
8210
  const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => ({
@@ -8267,7 +8213,7 @@ function ProductSelectionBasicSelectDropdown(props) {
8267
8213
  })),
8268
8214
  projectLanguages = _useApplicationContex.projectLanguages,
8269
8215
  dataLocale = _useApplicationContex.dataLocale;
8270
- if (productSelectionsFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner, {});
8216
+ if (productSelectionsFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner$1, {});
8271
8217
  const productSelections = productSelectionsFetcher.productSelections?.results ?? [];
8272
8218
  const filteredProductSelections = _filterInstanceProperty__default["default"](productSelections).call(productSelections, ps => {
8273
8219
  var _context;
@@ -8326,6 +8272,7 @@ const useProductSelectionsByFieldFetcher = (productSelections, predicateField) =
8326
8272
  isLoading: productSelectionsQuery.loading
8327
8273
  };
8328
8274
  };
8275
+ var useProductSelectionsByFieldFetcher$1 = useProductSelectionsByFieldFetcher;
8329
8276
 
8330
8277
  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 } } } };
8331
8278
  const mapProductSelectionsToOptions = memoize__default["default"](_ref => {
@@ -8363,7 +8310,7 @@ const createQueryVariables$3 = _ref3 => {
8363
8310
  var _context;
8364
8311
  let searchText = _ref3.searchText;
8365
8312
  const sanitizedSearchText = sanitize(_trimInstanceProperty__default["default"](searchText).call(searchText, searchText));
8366
- const idQuery = isUUID(sanitizedSearchText) && `id = "${sanitizedSearchText}"`;
8313
+ const idQuery = isUUID$1(sanitizedSearchText) && `id = "${sanitizedSearchText}"`;
8367
8314
  const keyQuery = `key = "${sanitizedSearchText}"`;
8368
8315
  const searchTextQuery = _filterInstanceProperty__default["default"](_context = [idQuery, keyQuery]).call(_context, Boolean).join(' or ');
8369
8316
  return {
@@ -8385,7 +8332,7 @@ function ProductSelectionsSearchSelectDropdown(props) {
8385
8332
  })),
8386
8333
  projectLanguages = _useApplicationContex.projectLanguages,
8387
8334
  dataLocale = _useApplicationContex.dataLocale;
8388
- const productSelectionsByFieldFetcher = useProductSelectionsByFieldFetcher(props.value, props.renderSelectInputOptionValuesByField);
8335
+ const productSelectionsByFieldFetcher = useProductSelectionsByFieldFetcher$1(props.value, props.renderSelectInputOptionValuesByField);
8389
8336
  const handleLoadOptions = async searchText => {
8390
8337
  const _await$client$query = await client$1.query({
8391
8338
  query: ProductSelectionsPickerFetcher,
@@ -8418,7 +8365,7 @@ function ProductSelectionsSearchSelectDropdown(props) {
8418
8365
  const currentProductSelection = _findInstanceProperty__default["default"](productionSelectionResults).call(productionSelectionResults, productSelection => productSelection.id === productSelectionId);
8419
8366
  props.onChange(currentProductSelection);
8420
8367
  };
8421
- if (productSelectionsByFieldFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner, {});
8368
+ if (productSelectionsByFieldFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner$1, {});
8422
8369
  return jsxRuntime.jsx(uiKit.SearchSelectField, {
8423
8370
  id: props.id,
8424
8371
  name: props.name,
@@ -8479,7 +8426,7 @@ function ModeSelectInputOption(props) {
8479
8426
  function ownKeys$F(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
8480
8427
  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__default["default"](_context = ownKeys$F(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$F(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
8481
8428
  function ProductSelectionsPicker(props) {
8482
- const productSelectionsTotalFetcher = useProductSelectionsTotalFetcher();
8429
+ const productSelectionsTotalFetcher = useProductSelectionsTotalFetcher$1();
8483
8430
  const components = React.useMemo(() => {
8484
8431
  return {
8485
8432
  Option: optionInnerProps => {
@@ -8496,7 +8443,7 @@ function ProductSelectionsPicker(props) {
8496
8443
  }
8497
8444
  };
8498
8445
  }, [props.optionType]);
8499
- if (productSelectionsTotalFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner, {});
8446
+ if (productSelectionsTotalFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner$1, {});
8500
8447
  const CustomProductSelectionsPicker = productSelectionsTotalFetcher.total <= props.lowerProductSelectionsLimit ? ProductSelectionBasicSelectDropdown : productSelectionsTotalFetcher.total <= props.upperProductSelectionsLimit ? ProductSelectionsAsyncSelectDropdown : ProductSelectionsSearchSelectDropdown;
8501
8448
  return jsxRuntime.jsx(uiKit.Spacings.Stack, {
8502
8449
  children: jsxRuntime.jsx(CustomProductSelectionsPicker, _objectSpread$F(_objectSpread$F({}, props), {}, {
@@ -8536,6 +8483,7 @@ const RequiredIndicator = _ref => {
8536
8483
  });
8537
8484
  };
8538
8485
  RequiredIndicator.displayName = 'RequiredIndicator';
8486
+ var RequiredIndicator$1 = RequiredIndicator;
8539
8487
 
8540
8488
  const ScrollToFieldError = () => {
8541
8489
  const formik$1 = formik.useFormikContext();
@@ -8571,8 +8519,9 @@ const ScrollToFieldError = () => {
8571
8519
  }, [dataLocale, isValid, submitCount]);
8572
8520
  return null;
8573
8521
  };
8522
+ var ScrollToFieldError$1 = ScrollToFieldError;
8574
8523
 
8575
- var messages$r = reactIntl.defineMessages({
8524
+ var messages$v = reactIntl.defineMessages({
8576
8525
  buttonLabel: {
8577
8526
  id: 'SearchInput.buttonLabel',
8578
8527
  description: 'Label for "Search" button.',
@@ -8626,14 +8575,15 @@ const SelectableFieldSearchInput = props => {
8626
8575
  });
8627
8576
  },
8628
8577
  onReset: props.onReset,
8629
- placeholder: props.placeholder ?? intl.formatMessage(messages$r.placeholder),
8578
+ placeholder: props.placeholder ?? intl.formatMessage(messages$v.placeholder),
8630
8579
  isDisabled: props.disabled
8631
8580
  })
8632
8581
  });
8633
8582
  };
8634
8583
  SelectableFieldSearchInput.displayName = 'SelectableFieldSearchInput';
8584
+ var SelectableFieldSearchInput$1 = SelectableFieldSearchInput;
8635
8585
 
8636
- var messages$q = reactIntl.defineMessages({
8586
+ var messages$u = reactIntl.defineMessages({
8637
8587
  basicSelectInputPlaceholder: {
8638
8588
  id: 'Shared.StoreSelectInput.basicSelectInputPlaceholder',
8639
8589
  description: 'The placeholder shown for basic select input',
@@ -8736,7 +8686,7 @@ const getValueFromOptions$1 = _ref => {
8736
8686
  return _findInstanceProperty__default["default"](mappedStoresListOptions).call(mappedStoresListOptions, store => currentlySelectedStores === store.value);
8737
8687
  };
8738
8688
  const emptyStoreOption = intl => [{
8739
- label: intl.formatMessage(messages$q.asyncSelectDropdownTypeAheadPrompt),
8689
+ label: intl.formatMessage(messages$u.asyncSelectDropdownTypeAheadPrompt),
8740
8690
  value: undefined,
8741
8691
  isDisabled: true
8742
8692
  }];
@@ -8749,7 +8699,7 @@ const StoresAsyncSelectInput = props => {
8749
8699
  dataLocale = _useApplicationContex.dataLocale,
8750
8700
  projectLanguages = _useApplicationContex.projectLanguages;
8751
8701
  const keysOfStores = props.allAccessibleStoreKeysThroughDataFencePermissions;
8752
- const storesListFetcher = useStoresListFetcher({
8702
+ const storesListFetcher = useStoresListFetcher$1({
8753
8703
  limit: 500,
8754
8704
  offset: 0,
8755
8705
  sort: 'createdAt asc',
@@ -8791,12 +8741,12 @@ const StoresAsyncSelectInput = props => {
8791
8741
  options: emptyStoreOption(intl)
8792
8742
  }];
8793
8743
  };
8794
- if (storesListFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner, {});
8744
+ if (storesListFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner$1, {});
8795
8745
  return jsxRuntime.jsxs(jsxRuntime.Fragment, {
8796
8746
  children: [jsxRuntime.jsx(uiKit.AsyncSelectInput, _objectSpread$E(_objectSpread$E(_objectSpread$E({
8797
8747
  id: props.id,
8798
8748
  name: props.name,
8799
- placeholder: intl.formatMessage(messages$q.basicSelectInputPlaceholder),
8749
+ placeholder: intl.formatMessage(messages$u.basicSelectInputPlaceholder),
8800
8750
  horizontalConstraint: props.horizontalConstraint,
8801
8751
  loadOptions: handleLoadOptions,
8802
8752
  defaultOptions: true,
@@ -8838,6 +8788,7 @@ StoresAsyncSelectInput.displayName = 'StoresAsyncSelectInput';
8838
8788
  StoresAsyncSelectInput.defaultProps = {
8839
8789
  shouldFetchProductSelections: false
8840
8790
  };
8791
+ var StoresAsyncSelectInput$1 = StoresAsyncSelectInput;
8841
8792
 
8842
8793
  function ownKeys$D(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
8843
8794
  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__default["default"](_context3 = ownKeys$D(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys$D(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
@@ -8854,7 +8805,7 @@ const StoresBasicSelectInput = props => {
8854
8805
  dataLocale = _useApplicationContex.dataLocale,
8855
8806
  projectLanguages = _useApplicationContex.projectLanguages;
8856
8807
  const keysOfStores = props.allAccessibleStoreKeysThroughDataFencePermissions;
8857
- const storesListFetcher = useStoresListFetcher({
8808
+ const storesListFetcher = useStoresListFetcher$1({
8858
8809
  limit: 60,
8859
8810
  offset: 0,
8860
8811
  sort: 'createdAt asc',
@@ -8894,12 +8845,12 @@ const StoresBasicSelectInput = props => {
8894
8845
  });
8895
8846
  }
8896
8847
  };
8897
- if (storesListFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner, {});
8848
+ if (storesListFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner$1, {});
8898
8849
  return jsxRuntime.jsxs(jsxRuntime.Fragment, {
8899
8850
  children: [jsxRuntime.jsx(uiKit.SelectInput, _objectSpread$D(_objectSpread$D(_objectSpread$D({
8900
8851
  id: props.id,
8901
8852
  name: props.name,
8902
- placeholder: props.placeholder || intl.formatMessage(messages$q.basicSelectInputPlaceholder),
8853
+ placeholder: props.placeholder || intl.formatMessage(messages$u.basicSelectInputPlaceholder),
8903
8854
  horizontalConstraint: props.horizontalConstraint,
8904
8855
  options: mappedStoresListOptions,
8905
8856
  isMulti: props.isMulti,
@@ -8935,6 +8886,7 @@ StoresBasicSelectInput.displayName = 'StoresBasicSelectInput';
8935
8886
  StoresBasicSelectInput.defaultProps = {
8936
8887
  shouldFetchProductSelections: false
8937
8888
  };
8889
+ var StoresBasicSelectInput$1 = StoresBasicSelectInput;
8938
8890
 
8939
8891
  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 } } } };
8940
8892
  const useTotalNumberOfStoresFetcher = projectKey => {
@@ -8950,18 +8902,7 @@ const useTotalNumberOfStoresFetcher = projectKey => {
8950
8902
  isLoading: totalNumberOfStoresQuery.loading
8951
8903
  };
8952
8904
  };
8953
-
8954
- const handlers$2 = {
8955
- TotalNumberOfStores: {
8956
- all: total => msw.graphql.query('TotalNumberOfStores', (req, res, ctx) => {
8957
- return res(ctx.data({
8958
- totalNumberOfStores: {
8959
- total
8960
- }
8961
- }));
8962
- })
8963
- }
8964
- };
8905
+ var useTotalNumberOfStoresFetcher$1 = useTotalNumberOfStoresFetcher;
8965
8906
 
8966
8907
  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 } } } };
8967
8908
  const createQueryVariables$2 = (stores, predicateField, shouldFetchProductSelections) => ({
@@ -8989,6 +8930,7 @@ const useStoresByFieldFetcher = function (stores, predicateField, projectKey) {
8989
8930
  isLoading: storesQuery.loading
8990
8931
  };
8991
8932
  };
8933
+ var useStoresByFieldFetcher$1 = useStoresByFieldFetcher;
8992
8934
 
8993
8935
  function ownKeys$C(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
8994
8936
  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__default["default"](_context3 = ownKeys$C(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys$C(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
@@ -9027,7 +8969,7 @@ const createQueryVariables$1 = _ref => {
9027
8969
  excludeProductSelections: !shouldFetchProductSelections
9028
8970
  };
9029
8971
  }
9030
- const idQuery = isUUID(sanitizedSearchText) && `id = "${sanitizedSearchText}"`;
8972
+ const idQuery = isUUID$1(sanitizedSearchText) && `id = "${sanitizedSearchText}"`;
9031
8973
  const nameQuery = `name(${dataLocale} = "${sanitizedSearchText}")`;
9032
8974
  const searchTextQuery = _filterInstanceProperty__default["default"](_context2 = [idQuery, nameQuery, keyQuery]).call(_context2, Boolean).join(' or ');
9033
8975
  return {
@@ -9070,7 +9012,7 @@ const StoresSearchSelectInput = props => {
9070
9012
  projectLanguages = _useApplicationContex.projectLanguages;
9071
9013
  const intl = reactIntl.useIntl();
9072
9014
  const client$1 = client.useApolloClient();
9073
- const storesByFieldFetcher = useStoresByFieldFetcher(props.value, props.renderSelectInputOptionValuesByField, props.projectKey, props.shouldFetchProductSelections);
9015
+ const storesByFieldFetcher = useStoresByFieldFetcher$1(props.value, props.renderSelectInputOptionValuesByField, props.projectKey, props.shouldFetchProductSelections);
9074
9016
  const hasError = uiKit.AsyncSelectInput.isTouched(props.touched) && hasErrors(props.errors) || props.hasError;
9075
9017
  const handleLoadOptions = searchText => {
9076
9018
  const extractMatchedStores = client$1.query({
@@ -9112,16 +9054,16 @@ const StoresSearchSelectInput = props => {
9112
9054
  className: styles$9.customLabel,
9113
9055
  children: props?.renderLabel && props?.renderLabel
9114
9056
  }), jsxRuntime.jsx("div", {
9115
- children: intl.formatMessage(inputValue ? messages$q.searchSelectInputNoOptionsFoundMessage : messages$q.searchSelectInputNoValueMessage)
9057
+ children: intl.formatMessage(inputValue ? messages$u.searchSelectInputNoOptionsFoundMessage : messages$u.searchSelectInputNoValueMessage)
9116
9058
  })]
9117
9059
  });
9118
9060
  };
9119
- if (storesByFieldFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner, {});
9061
+ if (storesByFieldFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner$1, {});
9120
9062
  return jsxRuntime.jsxs(jsxRuntime.Fragment, {
9121
9063
  children: [jsxRuntime.jsx(uiKit.SearchSelectInput, _objectSpread$C(_objectSpread$C({
9122
9064
  id: props.id,
9123
9065
  name: props.name,
9124
- placeholder: intl.formatMessage(messages$q.searchSelectInputPlaceholder),
9066
+ placeholder: intl.formatMessage(messages$u.searchSelectInputPlaceholder),
9125
9067
  horizontalConstraint: props.horizontalConstraint,
9126
9068
  loadOptions: loadOptionsDebounced,
9127
9069
  defaultOptions: false,
@@ -9136,7 +9078,7 @@ const StoresSearchSelectInput = props => {
9136
9078
  }),
9137
9079
  onChange: props.onChange,
9138
9080
  onBlur: props.onBlur,
9139
- loadingMessage: intl.formatMessage(messages$q.searchSelectInputLoadingMessage),
9081
+ loadingMessage: intl.formatMessage(messages$u.searchSelectInputLoadingMessage),
9140
9082
  noOptionsMessage: renderNoOptions,
9141
9083
  isDisabled: props.isDisabled || storesByFieldFetcher.isLoading,
9142
9084
  isReadOnly: props.isReadOnly,
@@ -9165,6 +9107,7 @@ StoresSearchSelectInput.displayName = 'StoresSearchSelectInput';
9165
9107
  StoresSearchSelectInput.defaultProps = {
9166
9108
  shouldFetchProductSelections: false
9167
9109
  };
9110
+ var StoresSearchSelectInput$1 = StoresSearchSelectInput;
9168
9111
 
9169
9112
  function ownKeys$B(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
9170
9113
  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__default["default"](_context = ownKeys$B(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$B(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
@@ -9172,7 +9115,7 @@ var styles$8 = {
9172
9115
  "customOption": "store-select-input-module__customOption___2SC00"
9173
9116
  };
9174
9117
  const StoreSelectInput = props => {
9175
- const totalNumberOfStoresFetcher = useTotalNumberOfStoresFetcher(props.projectKey);
9118
+ const totalNumberOfStoresFetcher = useTotalNumberOfStoresFetcher$1(props.projectKey);
9176
9119
  const components = React.useMemo(() => {
9177
9120
  return {
9178
9121
  // eslint-disable-next-line react/display-name
@@ -9191,8 +9134,8 @@ const StoreSelectInput = props => {
9191
9134
  }
9192
9135
  };
9193
9136
  }, [props.optionType, totalNumberOfStoresFetcher.total, props.upperStoresLimit]);
9194
- if (totalNumberOfStoresFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner, {});
9195
- const CustomStoreSelectInput = totalNumberOfStoresFetcher.total <= props.lowerStoresLimit ? StoresBasicSelectInput : totalNumberOfStoresFetcher.total <= props.upperStoresLimit ? StoresAsyncSelectInput : StoresSearchSelectInput;
9137
+ if (totalNumberOfStoresFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner$1, {});
9138
+ const CustomStoreSelectInput = totalNumberOfStoresFetcher.total <= props.lowerStoresLimit ? StoresBasicSelectInput$1 : totalNumberOfStoresFetcher.total <= props.upperStoresLimit ? StoresAsyncSelectInput$1 : StoresSearchSelectInput$1;
9196
9139
  return jsxRuntime.jsx(CustomStoreSelectInput, _objectSpread$B(_objectSpread$B({
9197
9140
  menuIsOpen: props.menuIsOpen,
9198
9141
  placeholder: props.placeholder,
@@ -9237,6 +9180,7 @@ StoreSelectInput.defaultProps = {
9237
9180
  optionType: 'double-property',
9238
9181
  shouldFetchProductSelections: false
9239
9182
  };
9183
+ var StoreSelectInput$1 = StoreSelectInput;
9240
9184
 
9241
9185
  function ownKeys$A(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
9242
9186
  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__default["default"](_context = ownKeys$A(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$A(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
@@ -9253,7 +9197,7 @@ const StoreSelectField = props => {
9253
9197
  htmlFor: props.id,
9254
9198
  hasRequiredIndicator: props.isRequired,
9255
9199
  isBold: true
9256
- }), jsxRuntime.jsx(StoreSelectInput, _objectSpread$A(_objectSpread$A({
9200
+ }), jsxRuntime.jsx(StoreSelectInput$1, _objectSpread$A(_objectSpread$A({
9257
9201
  projectKey: props.projectKey,
9258
9202
  id: props.id,
9259
9203
  name: props.name,
@@ -9291,6 +9235,7 @@ StoreSelectField.defaultProps = {
9291
9235
  upperStoresLimit: UPPER_STORES_LIMIT,
9292
9236
  mappedValueField: 'id'
9293
9237
  };
9238
+ var StoreSelectField$1 = StoreSelectField;
9294
9239
 
9295
9240
  function ownKeys$z(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
9296
9241
  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__default["default"](_context5 = ownKeys$z(Object(t), !0)).call(_context5, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context6 = ownKeys$z(Object(t))).call(_context6, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
@@ -9310,7 +9255,7 @@ const validateRequired = value => {
9310
9255
  };
9311
9256
  const VALIDATOR_REQUIRED = {
9312
9257
  name: 'required',
9313
- message: messages$C.required,
9258
+ message: validationMessages.required,
9314
9259
  permanent: true,
9315
9260
  validators: {
9316
9261
  change(value) {
@@ -9324,7 +9269,7 @@ const VALIDATOR_REQUIRED = {
9324
9269
  };
9325
9270
  const VALIDATOR_NUMERIC = {
9326
9271
  name: 'numeric',
9327
- message: messages$C.numeric,
9272
+ message: validationMessages.numeric,
9328
9273
  permanent: false,
9329
9274
  validators: {
9330
9275
  change: v => {
@@ -9339,7 +9284,7 @@ const VALIDATOR_NUMERIC = {
9339
9284
  };
9340
9285
  const VALIDATOR_INTEGER = {
9341
9286
  name: 'integer',
9342
- message: messages$C.integer,
9287
+ message: validationMessages.integer,
9343
9288
  permanent: false,
9344
9289
  validators: {
9345
9290
  change: v => {
@@ -9354,7 +9299,7 @@ const VALIDATOR_INTEGER = {
9354
9299
  };
9355
9300
  ({
9356
9301
  name: 'email',
9357
- message: messages$C.email,
9302
+ message: validationMessages.email,
9358
9303
  permanent: false,
9359
9304
  validators: {
9360
9305
  // Note: it's a bit weird to validate it on every change,
@@ -9639,14 +9584,6 @@ var customFieldDefinitionsConnector = flowRight__default["default"](hoc.graphql(
9639
9584
  props: mapDataToProps
9640
9585
  }))(CustomFieldDefinitionsConnector);
9641
9586
 
9642
- const handlers$1 = {
9643
- TypeDefinitions: {
9644
- all: typeDefinitions => msw.graphql.query('FetchTypeDefinitionsQuery', (req, res, ctx) => res(ctx.data({
9645
- typeDefinitions
9646
- })))
9647
- }
9648
- };
9649
-
9650
9587
  function ownKeys$x(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
9651
9588
  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__default["default"](_context4 = ownKeys$x(Object(t), !0)).call(_context4, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context5 = ownKeys$x(Object(t))).call(_context5, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
9652
9589
  const restDocToForm = customFieldsFromRestResponse => {
@@ -9791,7 +9728,7 @@ const CustomFields = props => {
9791
9728
  css: /*#__PURE__*/react$1.css("min-width:", props.isWidthExpanded ? '100%' : uiKit.customProperties.constraint11, ";" + ("" ), "" ),
9792
9729
  children: jsxRuntime.jsx(uiKit.Spacings.Stack, {
9793
9730
  scale: "xl",
9794
- children: jsxRuntime.jsx(CustomFieldsInternal, {
9731
+ children: jsxRuntime.jsx(CustomFieldsInternal$1, {
9795
9732
  name: props.name,
9796
9733
  isReadOnly: props.isReadOnly,
9797
9734
  isDisabled: props.isDisabled,
@@ -9804,6 +9741,7 @@ const CustomFields = props => {
9804
9741
  });
9805
9742
  };
9806
9743
  CustomFields.displayName = 'CustomFields';
9744
+ var CustomFields$1 = CustomFields;
9807
9745
 
9808
9746
  function ownKeys$w(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
9809
9747
  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__default["default"](_context3 = ownKeys$w(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys$w(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
@@ -9876,12 +9814,12 @@ function validations (formValues, language, languages) {
9876
9814
  const errors = _reduceInstanceProperty__default["default"](fieldDefinitionsToValidate).call(fieldDefinitionsToValidate, (acc, fieldDefinition) => _objectSpread$w(_objectSpread$w({}, acc), {}, {
9877
9815
  [fieldDefinition.name]: _objectSpread$w(_objectSpread$w({}, setMissingIfRequired(formValues, fieldDefinition)), setDuplicatedIfSet(formValues, fieldDefinition, language, languages))
9878
9816
  }), {});
9879
- return withoutEmptyErrorsByField(errors);
9817
+ return withoutEmptyErrorsByField$1(errors);
9880
9818
  }
9881
9819
 
9882
- CustomFields.DndProvider = DndProvider;
9820
+ CustomFields$1.DndProvider = DndProvider;
9883
9821
 
9884
- var messages$p = reactIntl.defineMessages({
9822
+ var messages$t = reactIntl.defineMessages({
9885
9823
  customFieldsError: {
9886
9824
  id: 'CustomFieldsError.Error',
9887
9825
  description: 'The message when there are errors adding custom fields',
@@ -9896,7 +9834,7 @@ const CustomFieldsErrorTextNotification = props => {
9896
9834
  return jsxRuntime.jsxs(uiKit.Spacings.Stack, {
9897
9835
  scale: "s",
9898
9836
  children: [jsxRuntime.jsx(uiKit.Text.Wrap, {
9899
- intlMessage: _objectSpread$v({}, messages$p.customFieldsError)
9837
+ intlMessage: _objectSpread$v({}, messages$t.customFieldsError)
9900
9838
  }), jsxRuntime.jsx(uiKit.Spacings.Stack, {
9901
9839
  scale: "xs",
9902
9840
  children: _mapInstanceProperty__default["default"](_context = props.formErrors).call(_context, formError => jsxRuntime.jsx(uiKit.Text.Detail, {
@@ -9907,8 +9845,9 @@ const CustomFieldsErrorTextNotification = props => {
9907
9845
  });
9908
9846
  };
9909
9847
  CustomFieldsErrorTextNotification.displayName = 'CustomFieldsErrorTextNotification';
9848
+ var CustomFieldsErrorTextNotification$1 = CustomFieldsErrorTextNotification;
9910
9849
 
9911
- var messages$o = reactIntl.defineMessages({
9850
+ var messages$s = reactIntl.defineMessages({
9912
9851
  noCustomFields: {
9913
9852
  id: 'CustomTypesSubform.noCustomFields',
9914
9853
  description: 'The label when there are no custom fields defined',
@@ -10062,20 +10001,20 @@ const CustomFieldsInputWrapper = _ref2 => {
10062
10001
  formValues = _valuesInstanceProperty__default["default"](_useFormikContext);
10063
10002
  const rootFieldName = createRootFieldName(rootFormStateFieldName);
10064
10003
  if (!typeDefinitionsExist(typeDefinitions)) {
10065
- return jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$t({}, messages$o.noTypes));
10004
+ return jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$t({}, messages$s.noTypes));
10066
10005
  }
10067
10006
  if (!typeDefinitionSelected(formValues, rootFieldName)) {
10068
- return jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$t({}, messages$o.noCustomType));
10007
+ return jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$t({}, messages$s.noCustomType));
10069
10008
  }
10070
10009
  if (!typeDefinitionContainsFieldDefinitions(formValues, rootFieldName)) {
10071
- return jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$t({}, messages$o.noCustomFields));
10010
+ return jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$t({}, messages$s.noCustomFields));
10072
10011
  }
10073
10012
  if (fieldDefinitionsWithValues(formValues, rootFieldName).length === 0 && isReadOnly && hideEmptyFields) {
10074
- return jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$t({}, messages$o.noInputValues));
10013
+ return jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$t({}, messages$s.noInputValues));
10075
10014
  }
10076
10015
  return jsxRuntime.jsx(uiKit.Constraints.Horizontal, {
10077
10016
  max: "scale",
10078
- children: jsxRuntime.jsx(CustomFields, {
10017
+ children: jsxRuntime.jsx(CustomFields$1, {
10079
10018
  isReadOnly: isReadOnly,
10080
10019
  name: `${rootFieldName}.fields`,
10081
10020
  fieldDefinitions: isReadOnly && hideEmptyFields ? fieldDefinitionsWithValues(formValues, rootFieldName) : formik.getIn(formValues, rootFieldName).type.obj.fieldDefinitions
@@ -10083,6 +10022,7 @@ const CustomFieldsInputWrapper = _ref2 => {
10083
10022
  });
10084
10023
  };
10085
10024
  CustomFieldsInputWrapper.displayName = 'CustomFieldsInputWrapper';
10025
+ var CustomFieldsInputWrapper$1 = CustomFieldsInputWrapper;
10086
10026
 
10087
10027
  function ownKeys$s(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
10088
10028
  function _objectSpread$s(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$s(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$s(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
@@ -10172,7 +10112,7 @@ const CustomTypeSubform = _ref => {
10172
10112
  return jsxRuntime.jsx(uiKit.CollapsiblePanel, {
10173
10113
  header: jsxRuntime.jsx(uiKit.CollapsiblePanel.Header, {
10174
10114
  isCondensed: isCondensed,
10175
- children: panelTitle || jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$s({}, messages$o.title))
10115
+ children: panelTitle || jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$s({}, messages$s.title))
10176
10116
  }),
10177
10117
  headerControls: typeDefinitions.length > 0 && jsxRuntime.jsx("div", {
10178
10118
  css: /*#__PURE__*/react$1.css("min-width:", uiKit.designTokens.constraint11, ";" + ("" ), "" ),
@@ -10183,12 +10123,12 @@ const CustomTypeSubform = _ref => {
10183
10123
  options: mapTypeDefinitionsToOptions(typeDefinitions, language, languages, formik.getIn(formValues, rootFieldName)?.type?.id),
10184
10124
  value: formik.getIn(formValues, rootFieldName)?.type?.obj?.key,
10185
10125
  onChange: handleTypeDefinitionSelect,
10186
- placeholder: formatMessage(messages$o.typesPlaceholder),
10126
+ placeholder: formatMessage(messages$s.typesPlaceholder),
10187
10127
  isReadOnly: isReadOnly
10188
10128
  })
10189
10129
  }),
10190
10130
  headerControlsAlignment: "right",
10191
- children: jsxRuntime.jsx(CustomFieldsInputWrapper, {
10131
+ children: jsxRuntime.jsx(CustomFieldsInputWrapper$1, {
10192
10132
  typeDefinitions: typeDefinitions,
10193
10133
  isReadOnly: isReadOnly,
10194
10134
  hideEmptyFields: hideEmptyFields,
@@ -10197,6 +10137,7 @@ const CustomTypeSubform = _ref => {
10197
10137
  });
10198
10138
  };
10199
10139
  CustomTypeSubform.displayName = 'CustomTypeSubform';
10140
+ var CustomTypeSubform$1 = CustomTypeSubform;
10200
10141
 
10201
10142
  const CustomFieldsFormField = _ref => {
10202
10143
  let resources = _ref.resources,
@@ -10218,7 +10159,7 @@ const CustomFieldsFormField = _ref => {
10218
10159
  return jsxRuntime.jsx(uiKit.LoadingSpinner, {});
10219
10160
  }
10220
10161
  const typeDefinitions = _mapInstanceProperty__default["default"](_context = customFieldTypeDefinitions.results).call(_context, CustomFieldTypeDefinitionsConnector$1.graphQlDocToForm);
10221
- return jsxRuntime.jsx(CustomTypeSubform, {
10162
+ return jsxRuntime.jsx(CustomTypeSubform$1, {
10222
10163
  typeDefinitions: typeDefinitions,
10223
10164
  isReadOnly: isReadOnly,
10224
10165
  isCondensed: isCondensed,
@@ -10231,6 +10172,7 @@ const CustomFieldsFormField = _ref => {
10231
10172
  };
10232
10173
  CustomFieldsFormField.createFormStateFromResource = createFormStateFromResource;
10233
10174
  CustomFieldsFormField.createGraphQlDocFromFormState = createGraphQlDocFromFormState;
10175
+ var CustomFieldsFormField$1 = CustomFieldsFormField;
10234
10176
 
10235
10177
  /**
10236
10178
  * @typedef {object} TPimIndexer
@@ -10256,6 +10198,7 @@ const defaultValue = {
10256
10198
  * @type {import('react').Context<TPimIndexer>}
10257
10199
  */
10258
10200
  const PimIndexerContext = /*#__PURE__*/React.createContext(defaultValue);
10201
+ var PimIndexerContext$1 = PimIndexerContext;
10259
10202
 
10260
10203
  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 } } } };
10261
10204
  var fetchPimIndexStatus = (apolloClient, projectKey) => async dispatch => {
@@ -10298,7 +10241,7 @@ var fetchPimIndexStatus = (apolloClient, projectKey) => async dispatch => {
10298
10241
  }
10299
10242
  };
10300
10243
 
10301
- var messages$n = reactIntl.defineMessages({
10244
+ var messages$r = reactIntl.defineMessages({
10302
10245
  indexingSucceed: {
10303
10246
  id: 'Products.PimIndexer.Notifications.indexingSucceed',
10304
10247
  description: 'Message to be shown to user when PIM successfully finishes initial project indexing.',
@@ -10404,7 +10347,7 @@ let PimIndexerProvider = /*#__PURE__*/function (_PureComponent) {
10404
10347
  _this.props.notifications.showNotification({
10405
10348
  kind: 'error',
10406
10349
  domain: constants.DOMAINS.SIDE,
10407
- text: _this.props.intl.formatMessage(messages$n.indexingFailed)
10350
+ text: _this.props.intl.formatMessage(messages$r.indexingFailed)
10408
10351
  });
10409
10352
  };
10410
10353
  _this.getIndexingProgress = async () => {
@@ -10445,7 +10388,7 @@ let PimIndexerProvider = /*#__PURE__*/function (_PureComponent) {
10445
10388
  _this.props.notifications.showNotification({
10446
10389
  kind: 'success',
10447
10390
  domain: constants.DOMAINS.SIDE,
10448
- text: _this.props.intl.formatMessage(messages$n.indexingSucceed)
10391
+ text: _this.props.intl.formatMessage(messages$r.indexingSucceed)
10449
10392
  },
10450
10393
  // because the indexing may take so long, the success notification
10451
10394
  // may be dismissed without being seen by the user. Set `dismissAfter`
@@ -10519,7 +10462,7 @@ let PimIndexerProvider = /*#__PURE__*/function (_PureComponent) {
10519
10462
  }, {
10520
10463
  key: "render",
10521
10464
  value: function render() {
10522
- return jsxRuntime.jsx(PimIndexerContext.Provider, {
10465
+ return jsxRuntime.jsx(PimIndexerContext$1.Provider, {
10523
10466
  value: _objectSpread$r(_objectSpread$r({}, this.state), {}, {
10524
10467
  attemptToRefreshProducts: this.attemptToRefreshProducts,
10525
10468
  indexProject: this.indexProject
@@ -10538,7 +10481,7 @@ var pimIndexerProvider = flowRight__default["default"](applicationShellConnector
10538
10481
  name: 'refreshProductIndicesByIds'
10539
10482
  }), hoc.graphql(IndexProject, {
10540
10483
  name: 'indexProject'
10541
- }), hoc.withApollo, reactIntl.injectIntl, injectNotifications())(PimIndexerProvider);
10484
+ }), hoc.withApollo, reactIntl.injectIntl, injectNotifications$1())(PimIndexerProvider);
10542
10485
 
10543
10486
  function _callSuper$1(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$1() ? _Reflect$construct__default["default"](o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
10544
10487
  function _isNativeReflectConstruct$1() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$1 = function () { return !!t; })(); }
@@ -10551,31 +10494,32 @@ let WithPimIndexer = /*#__PURE__*/function (_PureComponent) {
10551
10494
  return _createClass(WithPimIndexer, [{
10552
10495
  key: "render",
10553
10496
  value: function render() {
10554
- return jsxRuntime.jsx(PimIndexerContext.Consumer, {
10497
+ return jsxRuntime.jsx(PimIndexerContext$1.Consumer, {
10555
10498
  children: pimIndexerProps => this.props.children(pimIndexerProps)
10556
10499
  });
10557
10500
  }
10558
10501
  }]);
10559
10502
  }(React.PureComponent);
10560
10503
  WithPimIndexer.displayName = 'WithPimIndexer';
10504
+ var WithPimIndexer$1 = WithPimIndexer;
10561
10505
 
10562
10506
  function ownKeys$q(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
10563
10507
  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__default["default"](_context = ownKeys$q(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$q(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
10564
10508
  var injectPimIndexer = (function () {
10565
10509
  let propName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'pimIndexer';
10566
10510
  return Component => {
10567
- const WrappedComponent = props => jsxRuntime.jsx(WithPimIndexer, {
10511
+ const WrappedComponent = props => jsxRuntime.jsx(WithPimIndexer$1, {
10568
10512
  children: pimIndexerProps => jsxRuntime.jsx(Component, _objectSpread$q(_objectSpread$q({}, props), {}, {
10569
10513
  [propName]: pimIndexerProps
10570
10514
  }))
10571
10515
  });
10572
- WrappedComponent.displayName = wrapDisplayName(Component, 'InjectPimIndexer');
10516
+ WrappedComponent.displayName = wrapDisplayName$1(Component, 'InjectPimIndexer');
10573
10517
  return WrappedComponent;
10574
10518
  };
10575
10519
  });
10576
10520
 
10577
10521
  function usePimIndexer() {
10578
- return React.useContext(PimIndexerContext);
10522
+ return React.useContext(PimIndexerContext$1);
10579
10523
  }
10580
10524
 
10581
10525
  // eslint-disable-next-line import/prefer-default-export
@@ -10599,11 +10543,12 @@ const resourcesWithPlatformLimits = _Object$keys__default["default"](RESOURCES_W
10599
10543
  const createQueryVariables = platformLimit => _reduceInstanceProperty__default["default"](resourcesWithPlatformLimits).call(resourcesWithPlatformLimits, (previousIncludedLimits, nextNameOfLimit) => _objectSpread$p({
10600
10544
  [camelCase__default["default"](`should include ${nextNameOfLimit}`)]: platformLimit ? nextNameOfLimit === platformLimit : true
10601
10545
  }, previousIncludedLimits), {});
10546
+ var createPlatformLimitsQueryVariables = createQueryVariables;
10602
10547
 
10603
10548
  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 } } } };
10604
10549
  const usePlatformLimitsFetcher = platformLimit => {
10605
10550
  const _useQuery = react.useQuery(PlatformLimitsFetcherQuery, {
10606
- variables: createQueryVariables(platformLimit),
10551
+ variables: createPlatformLimitsQueryVariables(platformLimit),
10607
10552
  context: {
10608
10553
  target: constants.GRAPHQL_TARGETS.COMMERCETOOLS_PLATFORM
10609
10554
  },
@@ -10621,6 +10566,7 @@ const usePlatformLimitsFetcher = platformLimit => {
10621
10566
  refetch
10622
10567
  };
10623
10568
  };
10569
+ var usePlatformLimitsFetcher$1 = usePlatformLimitsFetcher;
10624
10570
 
10625
10571
  const useLimitsModalState = function () {
10626
10572
  let isInitiallyOpen = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
@@ -10636,6 +10582,7 @@ const useLimitsModalState = function () {
10636
10582
  openModal
10637
10583
  };
10638
10584
  };
10585
+ var useLimitsModalState$1 = useLimitsModalState;
10639
10586
 
10640
10587
  const useInterceptNavigation = hasReachedErrorLimit => {
10641
10588
  const _useState = React.useState(false),
@@ -10657,8 +10604,9 @@ const useInterceptNavigation = hasReachedErrorLimit => {
10657
10604
  setPlatformLimitToBeNotExceeded
10658
10605
  };
10659
10606
  };
10607
+ var useInterceptNavigation$1 = useInterceptNavigation;
10660
10608
 
10661
- var messages$m = reactIntl.defineMessages({
10609
+ var messages$q = reactIntl.defineMessages({
10662
10610
  shippingMethods: {
10663
10611
  id: 'PlatformLimits.Notifications.shippingMethodsError',
10664
10612
  description: 'error message about platform limit exceeded',
@@ -10698,7 +10646,7 @@ const PlatformLimitErrorNotification = _ref => {
10698
10646
  limit = _ref.limit;
10699
10647
  return jsxRuntime.jsx(uiKit.ContentNotification, {
10700
10648
  type: "error",
10701
- children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$o(_objectSpread$o({}, messages$m[resource]), {}, {
10649
+ children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$o(_objectSpread$o({}, messages$q[resource]), {}, {
10702
10650
  values: {
10703
10651
  limit,
10704
10652
  customersupport: getCustomerSupportLink$1
@@ -10710,8 +10658,9 @@ const PlatformLimitErrorNotification = _ref => {
10710
10658
  });
10711
10659
  };
10712
10660
  PlatformLimitErrorNotification.displayName = 'PlatformLimitErrorNotification';
10661
+ var Error$1 = PlatformLimitErrorNotification;
10713
10662
 
10714
- var messages$l = reactIntl.defineMessages({
10663
+ var messages$p = reactIntl.defineMessages({
10715
10664
  shippingMethods: {
10716
10665
  id: 'PlatformLimits.Notifications.shippingMethodsWarning',
10717
10666
  description: 'warning message about platform limit exceeded',
@@ -10751,7 +10700,7 @@ const PlatformLimitWarningNotification = _ref => {
10751
10700
  limit = _ref.limit;
10752
10701
  return jsxRuntime.jsx(uiKit.ContentNotification, {
10753
10702
  type: "warning",
10754
- children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$n(_objectSpread$n({}, messages$l[resource]), {}, {
10703
+ children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$n(_objectSpread$n({}, messages$p[resource]), {}, {
10755
10704
  values: {
10756
10705
  limit,
10757
10706
  customersupport: getCustomerSupportLink
@@ -10763,11 +10712,13 @@ const PlatformLimitWarningNotification = _ref => {
10763
10712
  });
10764
10713
  };
10765
10714
  PlatformLimitWarningNotification.displayName = 'PlatformLimitWarningNotification';
10715
+ var Warning = PlatformLimitWarningNotification;
10766
10716
 
10767
10717
  const Notifications = {
10768
- Warning: PlatformLimitWarningNotification,
10769
- Error: PlatformLimitErrorNotification
10718
+ Warning,
10719
+ Error: Error$1
10770
10720
  };
10721
+ var Notifications$1 = Notifications;
10771
10722
 
10772
10723
  function ownKeys$m(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
10773
10724
  function _objectSpread$m(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$m(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$m(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
@@ -10787,6 +10738,7 @@ const PlatformLimitsStatusText = _ref => {
10787
10738
  });
10788
10739
  };
10789
10740
  PlatformLimitsStatusText.displayName = 'PlatformLimitsStatusText';
10741
+ var StatusText = PlatformLimitsStatusText;
10790
10742
 
10791
10743
  const getHasExceededWarningThreshold = _ref => {
10792
10744
  let limit = _ref.limit,
@@ -10813,7 +10765,7 @@ const getPlatformLimitsStatus = _ref3 => {
10813
10765
  };
10814
10766
 
10815
10767
  const useShippingMethodsPlatformLimitsFetcher = () => {
10816
- const _usePlatformLimitsFet = usePlatformLimitsFetcher(RESOURCES_WITH_PLATFORM_LIMITS.shippingMethods),
10768
+ const _usePlatformLimitsFet = usePlatformLimitsFetcher$1(RESOURCES_WITH_PLATFORM_LIMITS.shippingMethods),
10817
10769
  isLoading = _usePlatformLimitsFet.isLoading,
10818
10770
  error = _usePlatformLimitsFet.error,
10819
10771
  platformLimits = _usePlatformLimitsFet.platformLimits,
@@ -10825,9 +10777,10 @@ const useShippingMethodsPlatformLimitsFetcher = () => {
10825
10777
  refetch
10826
10778
  };
10827
10779
  };
10780
+ var useShippingMethodsPlatformLimitsFetcher$1 = useShippingMethodsPlatformLimitsFetcher;
10828
10781
 
10829
- const useShippingMethodsPlatformLimits = () => {
10830
- const _useShippingMethodsPl = useShippingMethodsPlatformLimitsFetcher(),
10782
+ const useShippingMethodsPlatformLimits$1 = () => {
10783
+ const _useShippingMethodsPl = useShippingMethodsPlatformLimitsFetcher$1(),
10831
10784
  platformLimits = _useShippingMethodsPl.platformLimits;
10832
10785
  if (!platformLimits?.shippingMethods?.total) {
10833
10786
  return {
@@ -10851,24 +10804,25 @@ const useShippingMethodsPlatformLimits = () => {
10851
10804
  hasReachedShippingMethodsErrorLimit
10852
10805
  };
10853
10806
  };
10807
+ var useShippingMethodsPlatformLimitsStatus = useShippingMethodsPlatformLimits$1;
10854
10808
 
10855
10809
  const PlatformLimitsShippingMethodsNotifications = () => {
10856
- const _useShippingMethodsPl = useShippingMethodsPlatformLimitsFetcher(),
10810
+ const _useShippingMethodsPl = useShippingMethodsPlatformLimitsFetcher$1(),
10857
10811
  platformLimits = _useShippingMethodsPl.platformLimits;
10858
- const _useShippingMethodsPl2 = useShippingMethodsPlatformLimits(),
10812
+ const _useShippingMethodsPl2 = useShippingMethodsPlatformLimitsStatus(),
10859
10813
  hasReachedShippingMethodsWarningLimit = _useShippingMethodsPl2.hasReachedShippingMethodsWarningLimit,
10860
10814
  hasReachedShippingMethodsErrorLimit = _useShippingMethodsPl2.hasReachedShippingMethodsErrorLimit;
10861
10815
  if (!platformLimits?.shippingMethods?.total) {
10862
10816
  return null;
10863
10817
  }
10864
10818
  if (hasReachedShippingMethodsErrorLimit) {
10865
- return jsxRuntime.jsx(Notifications.Error, {
10819
+ return jsxRuntime.jsx(Notifications$1.Error, {
10866
10820
  resource: RESOURCES_WITH_PLATFORM_LIMITS.shippingMethods,
10867
10821
  limit: platformLimits.shippingMethods.total.limit
10868
10822
  });
10869
10823
  }
10870
10824
  if (hasReachedShippingMethodsWarningLimit) {
10871
- return jsxRuntime.jsx(Notifications.Warning, {
10825
+ return jsxRuntime.jsx(Notifications$1.Warning, {
10872
10826
  resource: RESOURCES_WITH_PLATFORM_LIMITS.shippingMethods,
10873
10827
  limit: platformLimits.shippingMethods.total.limit
10874
10828
  });
@@ -10876,8 +10830,9 @@ const PlatformLimitsShippingMethodsNotifications = () => {
10876
10830
  return null;
10877
10831
  };
10878
10832
  PlatformLimitsShippingMethodsNotifications.displayName = 'PlatformLimitsShippingMethodsNotifications';
10833
+ var ShippingMethodsNotification = PlatformLimitsShippingMethodsNotifications;
10879
10834
 
10880
- var messages$k = reactIntl.defineMessages({
10835
+ var messages$o = reactIntl.defineMessages({
10881
10836
  shippingMethodsPlatformLimitReached: {
10882
10837
  id: 'PlatformLimits.Tooltip.shippingMethodsLimitReached',
10883
10838
  description: 'The message for shipping methods platform limit being reached',
@@ -10890,12 +10845,13 @@ function _objectSpread$l(e) { for (var r = 1; r < arguments.length; r++) { var _
10890
10845
  const PlatformLimitsShippingMethodsTooltip = props => {
10891
10846
  const intl = reactIntl.useIntl();
10892
10847
  return jsxRuntime.jsx(uiKit.Tooltip, _objectSpread$l(_objectSpread$l({}, props), {}, {
10893
- title: intl.formatMessage(messages$k.shippingMethodsPlatformLimitReached)
10848
+ title: intl.formatMessage(messages$o.shippingMethodsPlatformLimitReached)
10894
10849
  }));
10895
10850
  };
10896
10851
  PlatformLimitsShippingMethodsTooltip.displayName = 'PlatformLimitsShippingMethodsTooltip';
10852
+ var ShippingMethodsTooltip = PlatformLimitsShippingMethodsTooltip;
10897
10853
 
10898
- var messages$j = reactIntl.defineMessages({
10854
+ var messages$n = reactIntl.defineMessages({
10899
10855
  shippingMethodsStatus: {
10900
10856
  id: 'PlatformLimits.Status.shippingMethods',
10901
10857
  description: 'The message for shipping methods platform limit values',
@@ -10906,12 +10862,12 @@ var messages$j = reactIntl.defineMessages({
10906
10862
  const PlatformLimitsShippingMethodsStatus = _ref => {
10907
10863
  let total = _ref.total;
10908
10864
  const intl = reactIntl.useIntl();
10909
- const _useShippingMethodsPl = useShippingMethodsPlatformLimitsFetcher(),
10865
+ const _useShippingMethodsPl = useShippingMethodsPlatformLimitsFetcher$1(),
10910
10866
  platformLimits = _useShippingMethodsPl.platformLimits;
10911
10867
  const current = platformLimits?.shippingMethods?.total?.current;
10912
10868
  const limit = platformLimits?.shippingMethods?.total?.limit;
10913
- return jsxRuntime.jsx(PlatformLimitsStatusText, {
10914
- intlMessage: messages$j.shippingMethodsStatus,
10869
+ return jsxRuntime.jsx(StatusText, {
10870
+ intlMessage: messages$n.shippingMethodsStatus,
10915
10871
  children: getPlatformLimitsStatus({
10916
10872
  limit,
10917
10873
  current,
@@ -10921,18 +10877,19 @@ const PlatformLimitsShippingMethodsStatus = _ref => {
10921
10877
  });
10922
10878
  };
10923
10879
  PlatformLimitsShippingMethodsStatus.displayName = 'PlatformLimitsShippingMethodsStatus';
10880
+ var ShippingMethodsStatus = PlatformLimitsShippingMethodsStatus;
10924
10881
 
10925
10882
  const useShippingMethodsLimits = () => {
10926
- const _useShippingMethodsPl = useShippingMethodsPlatformLimitsFetcher(),
10883
+ const _useShippingMethodsPl = useShippingMethodsPlatformLimitsFetcher$1(),
10927
10884
  refetch = _useShippingMethodsPl.refetch;
10928
- const _useShippingMethodsPl2 = useShippingMethodsPlatformLimits(),
10885
+ const _useShippingMethodsPl2 = useShippingMethodsPlatformLimitsStatus(),
10929
10886
  hasReachedShippingMethodsWarningLimit = _useShippingMethodsPl2.hasReachedShippingMethodsWarningLimit,
10930
10887
  hasReachedShippingMethodsErrorLimit = _useShippingMethodsPl2.hasReachedShippingMethodsErrorLimit;
10931
10888
  return {
10932
10889
  ShippingMethodsLimits: {
10933
- Notifications: PlatformLimitsShippingMethodsNotifications,
10934
- Status: PlatformLimitsShippingMethodsStatus,
10935
- Tooltip: PlatformLimitsShippingMethodsTooltip
10890
+ Notifications: ShippingMethodsNotification,
10891
+ Status: ShippingMethodsStatus,
10892
+ Tooltip: ShippingMethodsTooltip
10936
10893
  },
10937
10894
  refetchShippingMethodsPlatformLimits: refetch,
10938
10895
  status: {
@@ -10941,23 +10898,25 @@ const useShippingMethodsLimits = () => {
10941
10898
  }
10942
10899
  };
10943
10900
  };
10901
+ var useShippingMethodsPlatformLimits = useShippingMethodsLimits;
10944
10902
 
10945
10903
  function ownKeys$k(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
10946
10904
  function _objectSpread$k(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$k(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$k(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
10947
10905
  const injectShippingMethodsPlatformLimits = () => WrappedComponent => {
10948
10906
  const WithShippingMethodsPlatformLimits = props => {
10949
- const shippingMethodsPlatformLimits = useShippingMethodsLimits();
10907
+ const shippingMethodsPlatformLimits = useShippingMethodsPlatformLimits();
10950
10908
  const shippingMethodsProps = {
10951
10909
  platformLimits: shippingMethodsPlatformLimits
10952
10910
  };
10953
10911
  return jsxRuntime.jsx(WrappedComponent, _objectSpread$k(_objectSpread$k({}, props), shippingMethodsProps));
10954
10912
  };
10955
- WithShippingMethodsPlatformLimits.displayName = wrapDisplayName(WrappedComponent, 'WithShippingMethodsPlatformLimits');
10913
+ WithShippingMethodsPlatformLimits.displayName = wrapDisplayName$1(WrappedComponent, 'WithShippingMethodsPlatformLimits');
10956
10914
  return WithShippingMethodsPlatformLimits;
10957
10915
  };
10916
+ var injectShippingMethodsPlatformLimits$1 = injectShippingMethodsPlatformLimits;
10958
10917
 
10959
10918
  const useTaxCategoriesPlatformLimitsFetcher = () => {
10960
- const _usePlatformLimitsFet = usePlatformLimitsFetcher(RESOURCES_WITH_PLATFORM_LIMITS.taxCategories),
10919
+ const _usePlatformLimitsFet = usePlatformLimitsFetcher$1(RESOURCES_WITH_PLATFORM_LIMITS.taxCategories),
10961
10920
  isLoading = _usePlatformLimitsFet.isLoading,
10962
10921
  error = _usePlatformLimitsFet.error,
10963
10922
  platformLimits = _usePlatformLimitsFet.platformLimits,
@@ -10969,9 +10928,10 @@ const useTaxCategoriesPlatformLimitsFetcher = () => {
10969
10928
  refetch
10970
10929
  };
10971
10930
  };
10931
+ var useTaxCategoriesPlatformLimitsFetcher$1 = useTaxCategoriesPlatformLimitsFetcher;
10972
10932
 
10973
- const useTaxCategoriesPlatformLimits = () => {
10974
- const _useTaxCategoriesPlat = useTaxCategoriesPlatformLimitsFetcher(),
10933
+ const useTaxCategoriesPlatformLimits$1 = () => {
10934
+ const _useTaxCategoriesPlat = useTaxCategoriesPlatformLimitsFetcher$1(),
10975
10935
  platformLimits = _useTaxCategoriesPlat.platformLimits;
10976
10936
  if (!platformLimits?.taxCategories?.total) {
10977
10937
  return {
@@ -10995,24 +10955,25 @@ const useTaxCategoriesPlatformLimits = () => {
10995
10955
  hasReachedTaxCategoriesErrorLimit
10996
10956
  };
10997
10957
  };
10958
+ var useTaxCategoriesPlatformLimitsStatus = useTaxCategoriesPlatformLimits$1;
10998
10959
 
10999
10960
  const PlatformLimitsTaxCategoriesNotifications = () => {
11000
- const _useTaxCategoriesPlat = useTaxCategoriesPlatformLimitsFetcher(),
10961
+ const _useTaxCategoriesPlat = useTaxCategoriesPlatformLimitsFetcher$1(),
11001
10962
  platformLimits = _useTaxCategoriesPlat.platformLimits;
11002
- const _useTaxCategoriesPlat2 = useTaxCategoriesPlatformLimits(),
10963
+ const _useTaxCategoriesPlat2 = useTaxCategoriesPlatformLimitsStatus(),
11003
10964
  hasReachedTaxCategoriesWarningLimit = _useTaxCategoriesPlat2.hasReachedTaxCategoriesWarningLimit,
11004
10965
  hasReachedTaxCategoriesErrorLimit = _useTaxCategoriesPlat2.hasReachedTaxCategoriesErrorLimit;
11005
10966
  if (!platformLimits?.taxCategories?.total) {
11006
10967
  return null;
11007
10968
  }
11008
10969
  if (hasReachedTaxCategoriesErrorLimit) {
11009
- return jsxRuntime.jsx(Notifications.Error, {
10970
+ return jsxRuntime.jsx(Notifications$1.Error, {
11010
10971
  resource: RESOURCES_WITH_PLATFORM_LIMITS.taxCategories,
11011
10972
  limit: platformLimits.taxCategories.total.limit
11012
10973
  });
11013
10974
  }
11014
10975
  if (hasReachedTaxCategoriesWarningLimit) {
11015
- return jsxRuntime.jsx(Notifications.Warning, {
10976
+ return jsxRuntime.jsx(Notifications$1.Warning, {
11016
10977
  resource: RESOURCES_WITH_PLATFORM_LIMITS.taxCategories,
11017
10978
  limit: platformLimits.taxCategories.total.limit
11018
10979
  });
@@ -11020,8 +10981,9 @@ const PlatformLimitsTaxCategoriesNotifications = () => {
11020
10981
  return null;
11021
10982
  };
11022
10983
  PlatformLimitsTaxCategoriesNotifications.displayName = 'PlatformLimitsTaxCategoriesNotifications';
10984
+ var TaxCategoriesNotification = PlatformLimitsTaxCategoriesNotifications;
11023
10985
 
11024
- var messages$i = reactIntl.defineMessages({
10986
+ var messages$m = reactIntl.defineMessages({
11025
10987
  taxCategoriesPlatformLimitReached: {
11026
10988
  id: 'PlatformLimits.Tooltip.taxCategoriesLimitReached',
11027
10989
  description: 'The message for tax categories platform limit being reached',
@@ -11034,12 +10996,13 @@ function _objectSpread$j(e) { for (var r = 1; r < arguments.length; r++) { var _
11034
10996
  const PlatformLimitsTaxCategoriesTooltip = props => {
11035
10997
  const intl = reactIntl.useIntl();
11036
10998
  return jsxRuntime.jsx(uiKit.Tooltip, _objectSpread$j(_objectSpread$j({}, props), {}, {
11037
- title: intl.formatMessage(messages$i.taxCategoriesPlatformLimitReached)
10999
+ title: intl.formatMessage(messages$m.taxCategoriesPlatformLimitReached)
11038
11000
  }));
11039
11001
  };
11040
11002
  PlatformLimitsTaxCategoriesTooltip.displayName = 'PlatformLimitsTaxCategoriesTooltip';
11003
+ var TaxCategoriesTooltip = PlatformLimitsTaxCategoriesTooltip;
11041
11004
 
11042
- var messages$h = reactIntl.defineMessages({
11005
+ var messages$l = reactIntl.defineMessages({
11043
11006
  taxCategoriesStatus: {
11044
11007
  id: 'PlatformLimits.Status.taxCategories',
11045
11008
  description: 'The message for tax categories platform limit values',
@@ -11050,12 +11013,12 @@ var messages$h = reactIntl.defineMessages({
11050
11013
  const PlatformLimitsTaxCategoriesStatus = _ref => {
11051
11014
  let total = _ref.total;
11052
11015
  const intl = reactIntl.useIntl();
11053
- const _useTaxCategoriesPlat = useTaxCategoriesPlatformLimitsFetcher(),
11016
+ const _useTaxCategoriesPlat = useTaxCategoriesPlatformLimitsFetcher$1(),
11054
11017
  platformLimits = _useTaxCategoriesPlat.platformLimits;
11055
11018
  const current = platformLimits?.taxCategories?.total?.current;
11056
11019
  const limit = platformLimits?.taxCategories?.total?.limit;
11057
- return jsxRuntime.jsx(PlatformLimitsStatusText, {
11058
- intlMessage: messages$h.taxCategoriesStatus,
11020
+ return jsxRuntime.jsx(StatusText, {
11021
+ intlMessage: messages$l.taxCategoriesStatus,
11059
11022
  children: getPlatformLimitsStatus({
11060
11023
  limit,
11061
11024
  current,
@@ -11065,18 +11028,19 @@ const PlatformLimitsTaxCategoriesStatus = _ref => {
11065
11028
  });
11066
11029
  };
11067
11030
  PlatformLimitsTaxCategoriesStatus.displayName = 'PlatformLimitsTaxCategoriesStatus';
11031
+ var TaxCategoriesStatus = PlatformLimitsTaxCategoriesStatus;
11068
11032
 
11069
11033
  const useTaxCategoriesLimits = () => {
11070
- const _useTaxCategoriesPlat = useTaxCategoriesPlatformLimitsFetcher(),
11034
+ const _useTaxCategoriesPlat = useTaxCategoriesPlatformLimitsFetcher$1(),
11071
11035
  refetch = _useTaxCategoriesPlat.refetch;
11072
- const _useTaxCategoriesPlat2 = useTaxCategoriesPlatformLimits(),
11036
+ const _useTaxCategoriesPlat2 = useTaxCategoriesPlatformLimitsStatus(),
11073
11037
  hasReachedTaxCategoriesWarningLimit = _useTaxCategoriesPlat2.hasReachedTaxCategoriesWarningLimit,
11074
11038
  hasReachedTaxCategoriesErrorLimit = _useTaxCategoriesPlat2.hasReachedTaxCategoriesErrorLimit;
11075
11039
  return {
11076
11040
  TaxCategoriesLimits: {
11077
- Notifications: PlatformLimitsTaxCategoriesNotifications,
11078
- Status: PlatformLimitsTaxCategoriesStatus,
11079
- Tooltip: PlatformLimitsTaxCategoriesTooltip
11041
+ Notifications: TaxCategoriesNotification,
11042
+ Status: TaxCategoriesStatus,
11043
+ Tooltip: TaxCategoriesTooltip
11080
11044
  },
11081
11045
  refetchTaxCategoriesPlatformLimits: refetch,
11082
11046
  status: {
@@ -11085,23 +11049,25 @@ const useTaxCategoriesLimits = () => {
11085
11049
  }
11086
11050
  };
11087
11051
  };
11052
+ var useTaxCategoriesPlatformLimits = useTaxCategoriesLimits;
11088
11053
 
11089
11054
  function ownKeys$i(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
11090
11055
  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__default["default"](_context = ownKeys$i(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$i(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
11091
11056
  const injectTaxCategoriesPlatformLimits = WrappedComponent => {
11092
11057
  const WithTaxCategoriesPlatformLimits = props => {
11093
- const taxCategoriesPlatformLimits = useTaxCategoriesLimits();
11058
+ const taxCategoriesPlatformLimits = useTaxCategoriesPlatformLimits();
11094
11059
  const taxCategoriesProps = {
11095
11060
  platformLimits: taxCategoriesPlatformLimits
11096
11061
  };
11097
11062
  return jsxRuntime.jsx(WrappedComponent, _objectSpread$i(_objectSpread$i({}, props), taxCategoriesProps));
11098
11063
  };
11099
- WithTaxCategoriesPlatformLimits.displayName = wrapDisplayName(WrappedComponent, 'WithTaxCategoriesPlatformLimits');
11064
+ WithTaxCategoriesPlatformLimits.displayName = wrapDisplayName$1(WrappedComponent, 'WithTaxCategoriesPlatformLimits');
11100
11065
  return WithTaxCategoriesPlatformLimits;
11101
11066
  };
11067
+ var injectTaxCategoriesPlatformLimits$1 = injectTaxCategoriesPlatformLimits;
11102
11068
 
11103
11069
  const useZonesPlatformLimitsFetcher = () => {
11104
- const _usePlatformLimitsFet = usePlatformLimitsFetcher(RESOURCES_WITH_PLATFORM_LIMITS.zones),
11070
+ const _usePlatformLimitsFet = usePlatformLimitsFetcher$1(RESOURCES_WITH_PLATFORM_LIMITS.zones),
11105
11071
  isLoading = _usePlatformLimitsFet.isLoading,
11106
11072
  error = _usePlatformLimitsFet.error,
11107
11073
  platformLimits = _usePlatformLimitsFet.platformLimits,
@@ -11113,9 +11079,10 @@ const useZonesPlatformLimitsFetcher = () => {
11113
11079
  refetch
11114
11080
  };
11115
11081
  };
11082
+ var useZonesPlatformLimitsFetcher$1 = useZonesPlatformLimitsFetcher;
11116
11083
 
11117
- const useZonesPlatformLimits = () => {
11118
- const _useZonesPlatformLimi = useZonesPlatformLimitsFetcher(),
11084
+ const useZonesPlatformLimits$1 = () => {
11085
+ const _useZonesPlatformLimi = useZonesPlatformLimitsFetcher$1(),
11119
11086
  platformLimits = _useZonesPlatformLimi.platformLimits;
11120
11087
  if (!platformLimits?.zones?.total) {
11121
11088
  return {
@@ -11139,24 +11106,25 @@ const useZonesPlatformLimits = () => {
11139
11106
  hasReachedZonesErrorLimit
11140
11107
  };
11141
11108
  };
11109
+ var useZonesPlatformLimitsStatus = useZonesPlatformLimits$1;
11142
11110
 
11143
11111
  const PlatformLimitsZonesNotifications = () => {
11144
- const _useZonesPlatformLimi = useZonesPlatformLimitsFetcher(),
11112
+ const _useZonesPlatformLimi = useZonesPlatformLimitsFetcher$1(),
11145
11113
  platformLimits = _useZonesPlatformLimi.platformLimits;
11146
- const _useZonesPlatformLimi2 = useZonesPlatformLimits(),
11114
+ const _useZonesPlatformLimi2 = useZonesPlatformLimitsStatus(),
11147
11115
  hasReachedZonesWarningLimit = _useZonesPlatformLimi2.hasReachedZonesWarningLimit,
11148
11116
  hasReachedZonesErrorLimit = _useZonesPlatformLimi2.hasReachedZonesErrorLimit;
11149
11117
  if (!platformLimits?.zones?.total) {
11150
11118
  return null;
11151
11119
  }
11152
11120
  if (hasReachedZonesErrorLimit) {
11153
- return jsxRuntime.jsx(Notifications.Error, {
11121
+ return jsxRuntime.jsx(Notifications$1.Error, {
11154
11122
  resource: RESOURCES_WITH_PLATFORM_LIMITS.zones,
11155
11123
  limit: platformLimits.zones.total.limit
11156
11124
  });
11157
11125
  }
11158
11126
  if (hasReachedZonesWarningLimit) {
11159
- return jsxRuntime.jsx(Notifications.Warning, {
11127
+ return jsxRuntime.jsx(Notifications$1.Warning, {
11160
11128
  resource: RESOURCES_WITH_PLATFORM_LIMITS.zones,
11161
11129
  limit: platformLimits.zones.total.limit
11162
11130
  });
@@ -11164,8 +11132,9 @@ const PlatformLimitsZonesNotifications = () => {
11164
11132
  return null;
11165
11133
  };
11166
11134
  PlatformLimitsZonesNotifications.displayName = 'PlatformLimitsZonesNotifications';
11135
+ var ZonesNotification = PlatformLimitsZonesNotifications;
11167
11136
 
11168
- var messages$g = reactIntl.defineMessages({
11137
+ var messages$k = reactIntl.defineMessages({
11169
11138
  zonesPlatformLimitReached: {
11170
11139
  id: 'PlatformLimits.Tooltip.zonesLimitReached',
11171
11140
  description: 'The message for zones platform limit being reached',
@@ -11178,12 +11147,13 @@ function _objectSpread$h(e) { for (var r = 1; r < arguments.length; r++) { var _
11178
11147
  const PlatformLimitsZonesTooltip = props => {
11179
11148
  const intl = reactIntl.useIntl();
11180
11149
  return jsxRuntime.jsx(uiKit.Tooltip, _objectSpread$h(_objectSpread$h({}, props), {}, {
11181
- title: intl.formatMessage(messages$g.zonesPlatformLimitReached)
11150
+ title: intl.formatMessage(messages$k.zonesPlatformLimitReached)
11182
11151
  }));
11183
11152
  };
11184
11153
  PlatformLimitsZonesTooltip.displayName = 'PlatformLimitsZonesTooltip';
11154
+ var ZonesTooltip = PlatformLimitsZonesTooltip;
11185
11155
 
11186
- var messages$f = reactIntl.defineMessages({
11156
+ var messages$j = reactIntl.defineMessages({
11187
11157
  zonesStatus: {
11188
11158
  id: 'PlatformLimits.Status.zones',
11189
11159
  description: 'The message for zones platform limit values',
@@ -11194,12 +11164,12 @@ var messages$f = reactIntl.defineMessages({
11194
11164
  const PlatformLimitsZonesStatus = _ref => {
11195
11165
  let total = _ref.total;
11196
11166
  const intl = reactIntl.useIntl();
11197
- const _useZonesPlatformLimi = useZonesPlatformLimitsFetcher(),
11167
+ const _useZonesPlatformLimi = useZonesPlatformLimitsFetcher$1(),
11198
11168
  platformLimits = _useZonesPlatformLimi.platformLimits;
11199
11169
  const current = platformLimits?.zones?.total?.current;
11200
11170
  const limit = platformLimits?.zones?.total?.limit;
11201
- return jsxRuntime.jsx(PlatformLimitsStatusText, {
11202
- intlMessage: messages$f.zonesStatus,
11171
+ return jsxRuntime.jsx(StatusText, {
11172
+ intlMessage: messages$j.zonesStatus,
11203
11173
  children: getPlatformLimitsStatus({
11204
11174
  limit,
11205
11175
  current,
@@ -11209,18 +11179,19 @@ const PlatformLimitsZonesStatus = _ref => {
11209
11179
  });
11210
11180
  };
11211
11181
  PlatformLimitsZonesStatus.displayName = 'PlatformLimitsZonesStatus';
11182
+ var ZonesStatus = PlatformLimitsZonesStatus;
11212
11183
 
11213
11184
  const useZonesLimits = () => {
11214
- const _useZonesPlatformLimi = useZonesPlatformLimitsFetcher(),
11185
+ const _useZonesPlatformLimi = useZonesPlatformLimitsFetcher$1(),
11215
11186
  refetch = _useZonesPlatformLimi.refetch;
11216
- const _useZonesPlatformLimi2 = useZonesPlatformLimits(),
11187
+ const _useZonesPlatformLimi2 = useZonesPlatformLimitsStatus(),
11217
11188
  hasReachedZonesWarningLimit = _useZonesPlatformLimi2.hasReachedZonesWarningLimit,
11218
11189
  hasReachedZonesErrorLimit = _useZonesPlatformLimi2.hasReachedZonesErrorLimit;
11219
11190
  return {
11220
11191
  ZonesLimits: {
11221
- Notifications: PlatformLimitsZonesNotifications,
11222
- Status: PlatformLimitsZonesStatus,
11223
- Tooltip: PlatformLimitsZonesTooltip
11192
+ Notifications: ZonesNotification,
11193
+ Status: ZonesStatus,
11194
+ Tooltip: ZonesTooltip
11224
11195
  },
11225
11196
  refetchZonesPlatformLimits: refetch,
11226
11197
  status: {
@@ -11229,23 +11200,25 @@ const useZonesLimits = () => {
11229
11200
  }
11230
11201
  };
11231
11202
  };
11203
+ var useZonesPlatformLimits = useZonesLimits;
11232
11204
 
11233
11205
  function ownKeys$g(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
11234
11206
  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__default["default"](_context = ownKeys$g(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$g(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
11235
11207
  const injectZonesPlatformLimits = () => WrappedComponent => {
11236
11208
  const WithZonesPlatformLimits = props => {
11237
- const zonesPlatformLimits = useZonesLimits();
11209
+ const zonesPlatformLimits = useZonesPlatformLimits();
11238
11210
  const zonesProps = {
11239
11211
  platformLimits: zonesPlatformLimits
11240
11212
  };
11241
11213
  return jsxRuntime.jsx(WrappedComponent, _objectSpread$g(_objectSpread$g({}, props), zonesProps));
11242
11214
  };
11243
- WithZonesPlatformLimits.displayName = wrapDisplayName(WrappedComponent, 'WithZonesPlatformLimits');
11215
+ WithZonesPlatformLimits.displayName = wrapDisplayName$1(WrappedComponent, 'WithZonesPlatformLimits');
11244
11216
  return WithZonesPlatformLimits;
11245
11217
  };
11218
+ var injectZonesPlatformLimits$1 = injectZonesPlatformLimits;
11246
11219
 
11247
11220
  const useCustomersPlatformLimitsFetcher = () => {
11248
- const _usePlatformLimitsFet = usePlatformLimitsFetcher(RESOURCES_WITH_PLATFORM_LIMITS.customers),
11221
+ const _usePlatformLimitsFet = usePlatformLimitsFetcher$1(RESOURCES_WITH_PLATFORM_LIMITS.customers),
11249
11222
  isLoading = _usePlatformLimitsFet.isLoading,
11250
11223
  error = _usePlatformLimitsFet.error,
11251
11224
  platformLimits = _usePlatformLimitsFet.platformLimits,
@@ -11257,9 +11230,10 @@ const useCustomersPlatformLimitsFetcher = () => {
11257
11230
  refetch
11258
11231
  };
11259
11232
  };
11233
+ var useCustomersPlatformLimitsFetcher$1 = useCustomersPlatformLimitsFetcher;
11260
11234
 
11261
- const useCustomersPlatformLimits$1 = () => {
11262
- const _useCustomersPlatform = useCustomersPlatformLimitsFetcher(),
11235
+ const useCustomersPlatformLimits$2 = () => {
11236
+ const _useCustomersPlatform = useCustomersPlatformLimitsFetcher$1(),
11263
11237
  platformLimits = _useCustomersPlatform.platformLimits;
11264
11238
  if (!platformLimits?.customers?.total) {
11265
11239
  return {
@@ -11283,10 +11257,11 @@ const useCustomersPlatformLimits$1 = () => {
11283
11257
  hasReachedCustomersErrorLimit
11284
11258
  };
11285
11259
  };
11260
+ var useCustomersPlatformLimitsStatus = useCustomersPlatformLimits$2;
11286
11261
 
11287
11262
  const useCustomersPlatormLimitsModalState = () => {
11288
- const customersPlatformLimitsStatus = useCustomersPlatformLimits$1();
11289
- const limitsModalState = useLimitsModalState(false);
11263
+ const customersPlatformLimitsStatus = useCustomersPlatformLimitsStatus();
11264
+ const limitsModalState = useLimitsModalState$1(false);
11290
11265
  React.useEffect(() => {
11291
11266
  if (customersPlatformLimitsStatus.hasReachedCustomersErrorLimit) {
11292
11267
  limitsModalState.openModal();
@@ -11296,24 +11271,25 @@ const useCustomersPlatormLimitsModalState = () => {
11296
11271
  isModalOpen: limitsModalState.isModalOpen
11297
11272
  };
11298
11273
  };
11274
+ var useCustomersPlatormLimitsModalState$1 = useCustomersPlatormLimitsModalState;
11299
11275
 
11300
11276
  const PlatformLimitsCustomersNotifications = () => {
11301
- const _useCustomersPlatform = useCustomersPlatformLimitsFetcher(),
11277
+ const _useCustomersPlatform = useCustomersPlatformLimitsFetcher$1(),
11302
11278
  platformLimits = _useCustomersPlatform.platformLimits;
11303
- const _useCustomersPlatform2 = useCustomersPlatformLimits$1(),
11279
+ const _useCustomersPlatform2 = useCustomersPlatformLimitsStatus(),
11304
11280
  hasReachedCustomersWarningLimit = _useCustomersPlatform2.hasReachedCustomersWarningLimit,
11305
11281
  hasReachedCustomersErrorLimit = _useCustomersPlatform2.hasReachedCustomersErrorLimit;
11306
11282
  if (!platformLimits?.customers?.total) {
11307
11283
  return jsxRuntime.jsx("div", {});
11308
11284
  }
11309
11285
  if (hasReachedCustomersErrorLimit) {
11310
- return jsxRuntime.jsx(Notifications.Error, {
11286
+ return jsxRuntime.jsx(Notifications$1.Error, {
11311
11287
  resource: RESOURCES_WITH_PLATFORM_LIMITS.customers,
11312
11288
  limit: platformLimits.customers.total.limit
11313
11289
  });
11314
11290
  }
11315
11291
  if (hasReachedCustomersWarningLimit) {
11316
- return jsxRuntime.jsx(Notifications.Warning, {
11292
+ return jsxRuntime.jsx(Notifications$1.Warning, {
11317
11293
  resource: RESOURCES_WITH_PLATFORM_LIMITS.customers,
11318
11294
  limit: platformLimits.customers.total.limit
11319
11295
  });
@@ -11321,8 +11297,9 @@ const PlatformLimitsCustomersNotifications = () => {
11321
11297
  return jsxRuntime.jsx("div", {});
11322
11298
  };
11323
11299
  PlatformLimitsCustomersNotifications.displayName = 'PlatformLimitsCustomersNotifications';
11300
+ var CustomersNotification = PlatformLimitsCustomersNotifications;
11324
11301
 
11325
- var messages$e = reactIntl.defineMessages({
11302
+ var messages$i = reactIntl.defineMessages({
11326
11303
  customersPlatformLimitReached: {
11327
11304
  id: 'PlatformLimits.Tooltip.customersLimitReached',
11328
11305
  description: 'The message for customers platform limit being reached',
@@ -11335,12 +11312,13 @@ function _objectSpread$f(e) { for (var r = 1; r < arguments.length; r++) { var _
11335
11312
  const PlatformLimitsCustomersTooltip = props => {
11336
11313
  const intl = reactIntl.useIntl();
11337
11314
  return jsxRuntime.jsx(uiKit.Tooltip, _objectSpread$f(_objectSpread$f({}, props), {}, {
11338
- title: intl.formatMessage(messages$e.customersPlatformLimitReached)
11315
+ title: intl.formatMessage(messages$i.customersPlatformLimitReached)
11339
11316
  }));
11340
11317
  };
11341
11318
  PlatformLimitsCustomersTooltip.displayName = 'PlatformLimitsCustomersTooltip';
11319
+ var CustomersTooltip = PlatformLimitsCustomersTooltip;
11342
11320
 
11343
- var messages$d = reactIntl.defineMessages({
11321
+ var messages$h = reactIntl.defineMessages({
11344
11322
  customersStatus: {
11345
11323
  id: 'PlatformLimits.Status.customers',
11346
11324
  description: 'The message for customers platform limit values',
@@ -11355,7 +11333,7 @@ var styles$6 = {
11355
11333
  };
11356
11334
  const PlatformLimitsCustomersStatus = () => {
11357
11335
  const intl = reactIntl.useIntl();
11358
- const _useCustomersPlatform = useCustomersPlatformLimitsFetcher(),
11336
+ const _useCustomersPlatform = useCustomersPlatformLimitsFetcher$1(),
11359
11337
  platformLimits = _useCustomersPlatform.platformLimits;
11360
11338
  if (!platformLimits?.customers?.total) {
11361
11339
  return null;
@@ -11368,7 +11346,7 @@ const PlatformLimitsCustomersStatus = () => {
11368
11346
  children: jsxRuntime.jsx(uiKit.Text.Detail, {
11369
11347
  tone: "secondary",
11370
11348
  isInline: true,
11371
- intlMessage: _objectSpread$e(_objectSpread$e({}, messages$d.customersStatus), {}, {
11349
+ intlMessage: _objectSpread$e(_objectSpread$e({}, messages$h.customersStatus), {}, {
11372
11350
  values: {
11373
11351
  current: intl.formatNumber(current),
11374
11352
  limit: intl.formatNumber(limit)
@@ -11378,8 +11356,9 @@ const PlatformLimitsCustomersStatus = () => {
11378
11356
  });
11379
11357
  };
11380
11358
  PlatformLimitsCustomersStatus.displayName = 'PlatformLimitsCustomersStatus';
11359
+ var CustomersStatus = PlatformLimitsCustomersStatus;
11381
11360
 
11382
- var messages$c = reactIntl.defineMessages({
11361
+ var messages$g = reactIntl.defineMessages({
11383
11362
  title: {
11384
11363
  id: 'PlatformLimits.Customers.modalTitle',
11385
11364
  description: 'The modal title for the customer platform limits error',
@@ -11499,20 +11478,20 @@ LimitsReachedErrorGraphic$1.defaultProps = {
11499
11478
  const PlatformLimitsCustomersErrorModal = _ref => {
11500
11479
  let onClose = _ref.onClose;
11501
11480
  const intl = reactIntl.useIntl();
11502
- const customersPlatformLimitsModalState = useCustomersPlatormLimitsModalState();
11481
+ const customersPlatformLimitsModalState = useCustomersPlatormLimitsModalState$1();
11503
11482
  return jsxRuntime.jsx(applicationComponents.InfoDialog, {
11504
11483
  isOpen: customersPlatformLimitsModalState.isModalOpen,
11505
11484
  onClose: onClose,
11506
- title: intl.formatMessage(messages$c.title),
11485
+ title: intl.formatMessage(messages$g.title),
11507
11486
  children: jsxRuntime.jsxs(uiKit.Spacings.Stack, {
11508
11487
  scale: "m",
11509
11488
  alignItems: "center",
11510
11489
  children: [jsxRuntime.jsx(LimitsReachedErrorGraphic$1, {}), jsxRuntime.jsxs(uiKit.Spacings.Stack, {
11511
11490
  scale: "l",
11512
11491
  alignItems: "center",
11513
- children: [jsxRuntime.jsx(PlatformLimitsCustomersNotifications, {}), jsxRuntime.jsx(uiKit.FlatButton, {
11492
+ children: [jsxRuntime.jsx(CustomersNotification, {}), jsxRuntime.jsx(uiKit.FlatButton, {
11514
11493
  onClick: onClose,
11515
- label: intl.formatMessage(messages$c.backToList),
11494
+ label: intl.formatMessage(messages$g.backToList),
11516
11495
  icon: jsxRuntime.jsx(uiKit.ListIcon, {
11517
11496
  size: "medium",
11518
11497
  color: "primary"
@@ -11523,13 +11502,14 @@ const PlatformLimitsCustomersErrorModal = _ref => {
11523
11502
  });
11524
11503
  };
11525
11504
  PlatformLimitsCustomersErrorModal.displayName = 'PlatformLimitsCustomersErrorModal';
11505
+ var CustomersErrorModal = PlatformLimitsCustomersErrorModal;
11526
11506
 
11527
11507
  var styles$5 = {
11528
11508
  "combined": "platform-limits-customers-combined-module__combined___OszDd"
11529
11509
  };
11530
11510
  const PlatformLimitsCustomersCombined = () => {
11531
11511
  // on the customer create only show the warning message
11532
- const _useCustomersPlatform = useCustomersPlatformLimits$1(),
11512
+ const _useCustomersPlatform = useCustomersPlatformLimitsStatus(),
11533
11513
  hasReachedCustomersErrorLimit = _useCustomersPlatform.hasReachedCustomersErrorLimit,
11534
11514
  hasReachedCustomersWarningLimit = _useCustomersPlatform.hasReachedCustomersWarningLimit;
11535
11515
  return jsxRuntime.jsx("div", {
@@ -11537,26 +11517,27 @@ const PlatformLimitsCustomersCombined = () => {
11537
11517
  children: jsxRuntime.jsxs(uiKit.Spacings.Inline, {
11538
11518
  scale: "xl",
11539
11519
  justifyContent: "space-between",
11540
- children: [hasReachedCustomersWarningLimit && !hasReachedCustomersErrorLimit ? jsxRuntime.jsx(PlatformLimitsCustomersNotifications, {}) : null, jsxRuntime.jsx(PlatformLimitsCustomersStatus, {})]
11520
+ children: [hasReachedCustomersWarningLimit && !hasReachedCustomersErrorLimit ? jsxRuntime.jsx(CustomersNotification, {}) : null, jsxRuntime.jsx(CustomersStatus, {})]
11541
11521
  })
11542
11522
  });
11543
11523
  };
11544
11524
  PlatformLimitsCustomersCombined.displayName = 'PlatformLimitsCustomersCombined';
11525
+ var CustomersCombined = PlatformLimitsCustomersCombined;
11545
11526
 
11546
11527
  const useCustomersPlatformLimits = () => {
11547
- const _useCustomersPlatform = useCustomersPlatformLimitsFetcher(),
11528
+ const _useCustomersPlatform = useCustomersPlatformLimitsFetcher$1(),
11548
11529
  refetch = _useCustomersPlatform.refetch;
11549
- const _useCustomersPlatform2 = useCustomersPlatformLimits$1(),
11530
+ const _useCustomersPlatform2 = useCustomersPlatformLimitsStatus(),
11550
11531
  hasReachedCustomersWarningLimit = _useCustomersPlatform2.hasReachedCustomersWarningLimit,
11551
11532
  hasReachedCustomersErrorLimit = _useCustomersPlatform2.hasReachedCustomersErrorLimit;
11552
- const interceptNavigation = useInterceptNavigation(hasReachedCustomersErrorLimit);
11533
+ const interceptNavigation = useInterceptNavigation$1(hasReachedCustomersErrorLimit);
11553
11534
  return {
11554
11535
  CustomersLimits: {
11555
- Notifications: PlatformLimitsCustomersNotifications,
11556
- Status: PlatformLimitsCustomersStatus,
11557
- Combined: PlatformLimitsCustomersCombined,
11558
- Tooltip: PlatformLimitsCustomersTooltip,
11559
- ErrorModal: PlatformLimitsCustomersErrorModal
11536
+ Notifications: CustomersNotification,
11537
+ Status: CustomersStatus,
11538
+ Combined: CustomersCombined,
11539
+ Tooltip: CustomersTooltip,
11540
+ ErrorModal: CustomersErrorModal
11560
11541
  },
11561
11542
  refetchCustomersPlatformLimits: refetch,
11562
11543
  interceptNavigation,
@@ -11566,23 +11547,25 @@ const useCustomersPlatformLimits = () => {
11566
11547
  }
11567
11548
  };
11568
11549
  };
11550
+ var useCustomersPlatformLimits$1 = useCustomersPlatformLimits;
11569
11551
 
11570
11552
  function ownKeys$c(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
11571
11553
  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__default["default"](_context = ownKeys$c(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$c(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
11572
11554
  const injectCustomersPlatformLimits = () => WrappedComponent => {
11573
11555
  const WithCustomersPlatformLimits = props => {
11574
- const CustomersPlatformLimits = useCustomersPlatformLimits();
11556
+ const CustomersPlatformLimits = useCustomersPlatformLimits$1();
11575
11557
  const customersProps = {
11576
11558
  platformLimits: CustomersPlatformLimits
11577
11559
  };
11578
11560
  return jsxRuntime.jsx(WrappedComponent, _objectSpread$c(_objectSpread$c({}, props), customersProps));
11579
11561
  };
11580
- WithCustomersPlatformLimits.displayName = wrapDisplayName(WrappedComponent, 'WithCustomersPlatformLimits');
11562
+ WithCustomersPlatformLimits.displayName = wrapDisplayName$1(WrappedComponent, 'WithCustomersPlatformLimits');
11581
11563
  return WithCustomersPlatformLimits;
11582
11564
  };
11565
+ var injectCustomersPlatformLimits$1 = injectCustomersPlatformLimits;
11583
11566
 
11584
11567
  const useCustomerGroupsPlatformLimitsFetcher = () => {
11585
- const _usePlatformLimitsFet = usePlatformLimitsFetcher(RESOURCES_WITH_PLATFORM_LIMITS.customerGroups),
11568
+ const _usePlatformLimitsFet = usePlatformLimitsFetcher$1(RESOURCES_WITH_PLATFORM_LIMITS.customerGroups),
11586
11569
  isLoading = _usePlatformLimitsFet.isLoading,
11587
11570
  error = _usePlatformLimitsFet.error,
11588
11571
  platformLimits = _usePlatformLimitsFet.platformLimits,
@@ -11594,9 +11577,10 @@ const useCustomerGroupsPlatformLimitsFetcher = () => {
11594
11577
  refetch
11595
11578
  };
11596
11579
  };
11580
+ var useCustomerGroupsPlatformLimitsFetcher$1 = useCustomerGroupsPlatformLimitsFetcher;
11597
11581
 
11598
11582
  const useCustomerGroupsPlatformLimitsStatus = () => {
11599
- const _useCustomerGroupsPla = useCustomerGroupsPlatformLimitsFetcher(),
11583
+ const _useCustomerGroupsPla = useCustomerGroupsPlatformLimitsFetcher$1(),
11600
11584
  platformLimits = _useCustomerGroupsPla.platformLimits;
11601
11585
  if (!platformLimits?.customerGroups?.total) {
11602
11586
  return {
@@ -11620,10 +11604,11 @@ const useCustomerGroupsPlatformLimitsStatus = () => {
11620
11604
  hasReachedCustomerGroupsErrorLimit
11621
11605
  };
11622
11606
  };
11607
+ var useCustomerGroupsPlatformLimitsStatus$1 = useCustomerGroupsPlatformLimitsStatus;
11623
11608
 
11624
11609
  const useCustomerGroupsPlatormLimitsModalState = () => {
11625
- const customerGroupsPlatformLimitsStatus = useCustomerGroupsPlatformLimitsStatus();
11626
- const limitsModalState = useLimitsModalState(false);
11610
+ const customerGroupsPlatformLimitsStatus = useCustomerGroupsPlatformLimitsStatus$1();
11611
+ const limitsModalState = useLimitsModalState$1(false);
11627
11612
  React.useEffect(() => {
11628
11613
  if (customerGroupsPlatformLimitsStatus.hasReachedCustomerGroupsErrorLimit) {
11629
11614
  limitsModalState.openModal();
@@ -11633,24 +11618,25 @@ const useCustomerGroupsPlatormLimitsModalState = () => {
11633
11618
  isModalOpen: limitsModalState.isModalOpen
11634
11619
  };
11635
11620
  };
11621
+ var useCustomerGroupsPlatormLimitsModalState$1 = useCustomerGroupsPlatormLimitsModalState;
11636
11622
 
11637
11623
  const PlatformLimitsCustomerGroupsNotifications = () => {
11638
- const _useCustomerGroupsPla = useCustomerGroupsPlatformLimitsFetcher(),
11624
+ const _useCustomerGroupsPla = useCustomerGroupsPlatformLimitsFetcher$1(),
11639
11625
  platformLimits = _useCustomerGroupsPla.platformLimits;
11640
- const _useCustomerGroupsPla2 = useCustomerGroupsPlatformLimitsStatus(),
11626
+ const _useCustomerGroupsPla2 = useCustomerGroupsPlatformLimitsStatus$1(),
11641
11627
  hasReachedCustomerGroupsWarningLimit = _useCustomerGroupsPla2.hasReachedCustomerGroupsWarningLimit,
11642
11628
  hasReachedCustomerGroupsErrorLimit = _useCustomerGroupsPla2.hasReachedCustomerGroupsErrorLimit;
11643
11629
  if (!platformLimits?.customerGroups?.total) {
11644
11630
  return jsxRuntime.jsx("div", {});
11645
11631
  }
11646
11632
  if (hasReachedCustomerGroupsErrorLimit) {
11647
- return jsxRuntime.jsx(Notifications.Error, {
11633
+ return jsxRuntime.jsx(Notifications$1.Error, {
11648
11634
  resource: RESOURCES_WITH_PLATFORM_LIMITS.customerGroups,
11649
11635
  limit: platformLimits.customerGroups.total.limit
11650
11636
  });
11651
11637
  }
11652
11638
  if (hasReachedCustomerGroupsWarningLimit) {
11653
- return jsxRuntime.jsx(Notifications.Warning, {
11639
+ return jsxRuntime.jsx(Notifications$1.Warning, {
11654
11640
  resource: RESOURCES_WITH_PLATFORM_LIMITS.customerGroups,
11655
11641
  limit: platformLimits.customerGroups.total.limit
11656
11642
  });
@@ -11658,8 +11644,9 @@ const PlatformLimitsCustomerGroupsNotifications = () => {
11658
11644
  return jsxRuntime.jsx("div", {});
11659
11645
  };
11660
11646
  PlatformLimitsCustomerGroupsNotifications.displayName = 'PlatformLimitsCustomerGroupsNotifications';
11647
+ var CustomerGroupsNotification = PlatformLimitsCustomerGroupsNotifications;
11661
11648
 
11662
- var messages$b = reactIntl.defineMessages({
11649
+ var messages$f = reactIntl.defineMessages({
11663
11650
  customerGroupsPlatformLimitReached: {
11664
11651
  id: 'PlatformLimits.Tooltip.customerGroupsLimitReached',
11665
11652
  description: 'The message for custome groups platform limit being reached',
@@ -11672,12 +11659,13 @@ function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var _
11672
11659
  const PlatformLimitsCustomerGroupsTooltip = props => {
11673
11660
  const intl = reactIntl.useIntl();
11674
11661
  return jsxRuntime.jsx(uiKit.Tooltip, _objectSpread$b(_objectSpread$b({}, props), {}, {
11675
- title: intl.formatMessage(messages$b.customerGroupsPlatformLimitReached)
11662
+ title: intl.formatMessage(messages$f.customerGroupsPlatformLimitReached)
11676
11663
  }));
11677
11664
  };
11678
11665
  PlatformLimitsCustomerGroupsTooltip.displayName = 'PlatformLimitsCustomerGroupsTooltip';
11666
+ var CustomerGroupsTooltip = PlatformLimitsCustomerGroupsTooltip;
11679
11667
 
11680
- var messages$a = reactIntl.defineMessages({
11668
+ var messages$e = reactIntl.defineMessages({
11681
11669
  customerGroupsStatus: {
11682
11670
  id: 'PlatformLimits.Status.customerGroups',
11683
11671
  description: 'The message for customer groups platform limit values',
@@ -11692,7 +11680,7 @@ var styles$4 = {
11692
11680
  };
11693
11681
  const PlatformLimitsCustomerGroupsStatus = () => {
11694
11682
  const intl = reactIntl.useIntl();
11695
- const _useCustomerGroupsPla = useCustomerGroupsPlatformLimitsFetcher(),
11683
+ const _useCustomerGroupsPla = useCustomerGroupsPlatformLimitsFetcher$1(),
11696
11684
  platformLimits = _useCustomerGroupsPla.platformLimits;
11697
11685
  if (!platformLimits?.customerGroups?.total) {
11698
11686
  return null;
@@ -11705,7 +11693,7 @@ const PlatformLimitsCustomerGroupsStatus = () => {
11705
11693
  children: jsxRuntime.jsx(uiKit.Text.Detail, {
11706
11694
  tone: "secondary",
11707
11695
  isInline: true,
11708
- intlMessage: _objectSpread$a(_objectSpread$a({}, messages$a.customerGroupsStatus), {}, {
11696
+ intlMessage: _objectSpread$a(_objectSpread$a({}, messages$e.customerGroupsStatus), {}, {
11709
11697
  values: {
11710
11698
  current: intl.formatNumber(current),
11711
11699
  limit: intl.formatNumber(limit)
@@ -11715,8 +11703,9 @@ const PlatformLimitsCustomerGroupsStatus = () => {
11715
11703
  });
11716
11704
  };
11717
11705
  PlatformLimitsCustomerGroupsStatus.displayName = 'PlatformLimitsCustomerGroupsStatus';
11706
+ var CustomerGroupsStatus = PlatformLimitsCustomerGroupsStatus;
11718
11707
 
11719
- var messages$9 = reactIntl.defineMessages({
11708
+ var messages$d = reactIntl.defineMessages({
11720
11709
  title: {
11721
11710
  id: 'PlatformLimits.CustomerGroups.modalTitle',
11722
11711
  description: 'The modal title for the customer groups platform limits error',
@@ -11836,20 +11825,20 @@ LimitsReachedErrorGraphic.defaultProps = {
11836
11825
  const PlatformLimitsCustomerGroupsErrorModal = _ref => {
11837
11826
  let onClose = _ref.onClose;
11838
11827
  const intl = reactIntl.useIntl();
11839
- const customerGroupsPlatformLimitsModalState = useCustomerGroupsPlatormLimitsModalState();
11828
+ const customerGroupsPlatformLimitsModalState = useCustomerGroupsPlatormLimitsModalState$1();
11840
11829
  return jsxRuntime.jsx(applicationComponents.InfoDialog, {
11841
11830
  isOpen: customerGroupsPlatformLimitsModalState.isModalOpen,
11842
11831
  onClose: onClose,
11843
- title: intl.formatMessage(messages$9.title),
11832
+ title: intl.formatMessage(messages$d.title),
11844
11833
  children: jsxRuntime.jsxs(uiKit.Spacings.Stack, {
11845
11834
  scale: "m",
11846
11835
  alignItems: "center",
11847
11836
  children: [jsxRuntime.jsx(LimitsReachedErrorGraphic, {}), jsxRuntime.jsxs(uiKit.Spacings.Stack, {
11848
11837
  scale: "l",
11849
11838
  alignItems: "center",
11850
- children: [jsxRuntime.jsx(PlatformLimitsCustomerGroupsNotifications, {}), jsxRuntime.jsx(uiKit.FlatButton, {
11839
+ children: [jsxRuntime.jsx(CustomerGroupsNotification, {}), jsxRuntime.jsx(uiKit.FlatButton, {
11851
11840
  onClick: onClose,
11852
- label: intl.formatMessage(messages$9.backToList),
11841
+ label: intl.formatMessage(messages$d.backToList),
11853
11842
  icon: jsxRuntime.jsx(uiKit.ListIcon, {
11854
11843
  size: "medium",
11855
11844
  color: "primary"
@@ -11860,13 +11849,14 @@ const PlatformLimitsCustomerGroupsErrorModal = _ref => {
11860
11849
  });
11861
11850
  };
11862
11851
  PlatformLimitsCustomerGroupsErrorModal.displayName = 'PlatformLimitsCustomerGroupsErrorModal';
11852
+ var CustomerGroupsErrorModal = PlatformLimitsCustomerGroupsErrorModal;
11863
11853
 
11864
11854
  var styles$3 = {
11865
11855
  "combined": "platform-limits-customer-groups-combined-module__combined___WjRoI"
11866
11856
  };
11867
11857
  const PlatformLimitsCustomerGroupsCombined = () => {
11868
11858
  // on the customer create only show the warning message
11869
- const _useCustomerGroupsPla = useCustomerGroupsPlatformLimitsStatus(),
11859
+ const _useCustomerGroupsPla = useCustomerGroupsPlatformLimitsStatus$1(),
11870
11860
  hasReachedCustomerGroupsErrorLimit = _useCustomerGroupsPla.hasReachedCustomerGroupsErrorLimit,
11871
11861
  hasReachedCustomerGroupsWarningLimit = _useCustomerGroupsPla.hasReachedCustomerGroupsWarningLimit;
11872
11862
  return jsxRuntime.jsx("div", {
@@ -11874,26 +11864,27 @@ const PlatformLimitsCustomerGroupsCombined = () => {
11874
11864
  children: jsxRuntime.jsxs(uiKit.Spacings.Inline, {
11875
11865
  scale: "xl",
11876
11866
  justifyContent: "space-between",
11877
- children: [hasReachedCustomerGroupsWarningLimit && !hasReachedCustomerGroupsErrorLimit ? jsxRuntime.jsx(PlatformLimitsCustomerGroupsNotifications, {}) : null, jsxRuntime.jsx(PlatformLimitsCustomerGroupsStatus, {})]
11867
+ children: [hasReachedCustomerGroupsWarningLimit && !hasReachedCustomerGroupsErrorLimit ? jsxRuntime.jsx(CustomerGroupsNotification, {}) : null, jsxRuntime.jsx(CustomerGroupsStatus, {})]
11878
11868
  })
11879
11869
  });
11880
11870
  };
11881
11871
  PlatformLimitsCustomerGroupsCombined.displayName = 'PlatformLimitsCustomerGroupsCombined';
11872
+ var CustomerGroupsCombined = PlatformLimitsCustomerGroupsCombined;
11882
11873
 
11883
11874
  const useCustomerGroupsPlatformLimits = () => {
11884
- const _useCustomerGroupsPla = useCustomerGroupsPlatformLimitsFetcher(),
11875
+ const _useCustomerGroupsPla = useCustomerGroupsPlatformLimitsFetcher$1(),
11885
11876
  refetch = _useCustomerGroupsPla.refetch;
11886
- const _useCustomerGroupsPla2 = useCustomerGroupsPlatformLimitsStatus(),
11877
+ const _useCustomerGroupsPla2 = useCustomerGroupsPlatformLimitsStatus$1(),
11887
11878
  hasReachedCustomerGroupsWarningLimit = _useCustomerGroupsPla2.hasReachedCustomerGroupsWarningLimit,
11888
11879
  hasReachedCustomerGroupsErrorLimit = _useCustomerGroupsPla2.hasReachedCustomerGroupsErrorLimit;
11889
- const interceptNavigation = useInterceptNavigation(hasReachedCustomerGroupsErrorLimit);
11880
+ const interceptNavigation = useInterceptNavigation$1(hasReachedCustomerGroupsErrorLimit);
11890
11881
  return {
11891
11882
  CustomerGroupsLimits: {
11892
- Notifications: PlatformLimitsCustomerGroupsNotifications,
11893
- Status: PlatformLimitsCustomerGroupsStatus,
11894
- Combined: PlatformLimitsCustomerGroupsCombined,
11895
- Tooltip: PlatformLimitsCustomerGroupsTooltip,
11896
- ErrorModal: PlatformLimitsCustomerGroupsErrorModal
11883
+ Notifications: CustomerGroupsNotification,
11884
+ Status: CustomerGroupsStatus,
11885
+ Combined: CustomerGroupsCombined,
11886
+ Tooltip: CustomerGroupsTooltip,
11887
+ ErrorModal: CustomerGroupsErrorModal
11897
11888
  },
11898
11889
  refetchCustomerGroupsPlatformLimits: refetch,
11899
11890
  interceptNavigation,
@@ -11903,30 +11894,24 @@ const useCustomerGroupsPlatformLimits = () => {
11903
11894
  }
11904
11895
  };
11905
11896
  };
11897
+ var useCustomerGroupsPlatformLimits$1 = useCustomerGroupsPlatformLimits;
11906
11898
 
11907
11899
  function ownKeys$8(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
11908
11900
  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__default["default"](_context = ownKeys$8(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$8(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
11909
11901
  const injectCustomerGroupsPlatformLimits = () => WrappedComponent => {
11910
11902
  const WithCustomerGroupsPlatformLimits = props => {
11911
- const CustomerGroupsPlatformLimits = useCustomerGroupsPlatformLimits();
11903
+ const CustomerGroupsPlatformLimits = useCustomerGroupsPlatformLimits$1();
11912
11904
  const customersProps = {
11913
11905
  platformLimits: CustomerGroupsPlatformLimits
11914
11906
  };
11915
11907
  return jsxRuntime.jsx(WrappedComponent, _objectSpread$8(_objectSpread$8({}, props), customersProps));
11916
11908
  };
11917
- WithCustomerGroupsPlatformLimits.displayName = wrapDisplayName(WrappedComponent, 'WithCustomerGroupsPlatformLimits');
11909
+ WithCustomerGroupsPlatformLimits.displayName = wrapDisplayName$1(WrappedComponent, 'WithCustomerGroupsPlatformLimits');
11918
11910
  return WithCustomerGroupsPlatformLimits;
11919
11911
  };
11912
+ var injectCustomerGroupsPlatformLimits$1 = injectCustomerGroupsPlatformLimits;
11920
11913
 
11921
- const handlers = {
11922
- PlatformLimits: {
11923
- all: platformLimiits => msw.graphql.query('PlatformLimitsFetcherQuery', (req, res, ctx) => res(ctx.data({
11924
- limits: platformLimiits
11925
- })))
11926
- }
11927
- };
11928
-
11929
- var messages$8 = reactIntl.defineMessages({
11914
+ var messages$c = reactIntl.defineMessages({
11930
11915
  yes: {
11931
11916
  id: 'BooleanField.yes',
11932
11917
  description: 'The label for boolean attribute `true` value',
@@ -11947,8 +11932,8 @@ const valueMapping = {
11947
11932
  const BooleanField = props => {
11948
11933
  let selectedValue;
11949
11934
  if (typeof props.value === 'boolean') selectedValue = getBooleanValue(props.value);else if (props.isMulti && _Array$isArray__default["default"](props.value) && props.value.length) selectedValue = props.value.length === 2 ? 'all' : getBooleanValue(props.value[0]);
11950
- const yesLabel = props.intl.formatMessage(messages$8.yes);
11951
- const noLabel = props.intl.formatMessage(messages$8.no);
11935
+ const yesLabel = props.intl.formatMessage(messages$c.yes);
11936
+ const noLabel = props.intl.formatMessage(messages$c.no);
11952
11937
  const options = [{
11953
11938
  value: 'yes',
11954
11939
  label: yesLabel
@@ -11986,7 +11971,7 @@ function getBooleanValue(value) {
11986
11971
  return value === false ? 'no' : 'yes';
11987
11972
  }
11988
11973
 
11989
- const messages$7 = reactIntl.defineMessages({
11974
+ const messages$a = reactIntl.defineMessages({
11990
11975
  from: {
11991
11976
  id: 'LabelRange.from',
11992
11977
  description: 'The label for "from" range',
@@ -11998,6 +11983,7 @@ const messages$7 = reactIntl.defineMessages({
11998
11983
  defaultMessage: 'To'
11999
11984
  }
12000
11985
  });
11986
+ var messages$b = messages$a;
12001
11987
 
12002
11988
  function ownKeys$7(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
12003
11989
  function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$7(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$7(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
@@ -12008,12 +11994,13 @@ const LabelRange = _ref => {
12008
11994
  let type = _ref.type;
12009
11995
  return jsxRuntime.jsx("label", {
12010
11996
  className: styles$2.label,
12011
- children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$7({}, messages$7[type]))
11997
+ children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$7({}, messages$b[type]))
12012
11998
  });
12013
11999
  };
12014
12000
  LabelRange.displayName = 'LabelRange';
12001
+ var LabelRange$1 = LabelRange;
12015
12002
 
12016
- var messages$6 = reactIntl.defineMessages({
12003
+ var messages$9 = reactIntl.defineMessages({
12017
12004
  label: {
12018
12005
  id: 'MissingValueField.label',
12019
12006
  description: 'The label text for the missing values option',
@@ -12027,13 +12014,14 @@ const MissingValueField = props => jsxRuntime.jsx(uiKit.CheckboxInput, {
12027
12014
  name: "missing-value",
12028
12015
  isChecked: props.isChecked,
12029
12016
  onChange: props.onChange,
12030
- children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$6({}, messages$6.label))
12017
+ children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$6({}, messages$9.label))
12031
12018
  });
12032
12019
  MissingValueField.defaultProps = {
12033
12020
  isChecked: false
12034
12021
  };
12022
+ var MissingValueField$1 = MissingValueField;
12035
12023
 
12036
- var messages$5 = reactIntl.defineMessages({
12024
+ var messages$8 = reactIntl.defineMessages({
12037
12025
  filterWholeInput: {
12038
12026
  id: 'MultiValueSearchInput.buttonLabel',
12039
12027
  description: 'Label for "MultiValueSearchInput" filter whole input.',
@@ -12071,7 +12059,7 @@ const MultiValueSelectorDropdown = props => {
12071
12059
  }),
12072
12060
  children: jsxRuntime.jsx(uiKit.Text.Body, {
12073
12061
  truncate: true,
12074
- intlMessage: _objectSpread$5(_objectSpread$5({}, messages$5.filterWholeInput), {}, {
12062
+ intlMessage: _objectSpread$5(_objectSpread$5({}, messages$8.filterWholeInput), {}, {
12075
12063
  values: {
12076
12064
  values: `"${props.value}"`
12077
12065
  }
@@ -12084,7 +12072,7 @@ const MultiValueSelectorDropdown = props => {
12084
12072
  }),
12085
12073
  children: jsxRuntime.jsx(uiKit.Text.Body, {
12086
12074
  truncate: true,
12087
- intlMessage: _objectSpread$5(_objectSpread$5({}, messages$5.filterSeparateValues), {}, {
12075
+ intlMessage: _objectSpread$5(_objectSpread$5({}, messages$8.filterSeparateValues), {}, {
12088
12076
  values: {
12089
12077
  values: `"${props.multiValue.join('", "')}"` || props.value
12090
12078
  }
@@ -12194,6 +12182,7 @@ const MultiValueSearchInput = props => {
12194
12182
  });
12195
12183
  };
12196
12184
  MultiValueSearchInput.displayName = 'MultiValueSearchInput';
12185
+ var MultiValueSearchInput$1 = MultiValueSearchInput;
12197
12186
 
12198
12187
  function ownKeys$4(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
12199
12188
  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__default["default"](_context = ownKeys$4(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$4(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
@@ -12333,7 +12322,7 @@ const withPropsForMoney = ownProps => ownProps.numberFormatType === 'money' ? {
12333
12322
  },
12334
12323
  numeralDecimalScale: 2
12335
12324
  } : {};
12336
- var numericFormatInput = withProps(withPropsForMoney)(NumericFormatInput);
12325
+ var numericFormatInput = withProps$1(withPropsForMoney)(NumericFormatInput);
12337
12326
 
12338
12327
  /**
12339
12328
  * @param mixed value
@@ -12390,6 +12379,7 @@ const buildSearchQuery = (searchQuery, searchMode, fragments) => {
12390
12379
  }
12391
12380
  return fragments[searchMode].getQuery(trimmedSearchQuery);
12392
12381
  };
12382
+ var buildSearchQuery$1 = buildSearchQuery;
12393
12383
 
12394
12384
  const getBulkNotification = _ref => {
12395
12385
  let counts = _ref.counts,
@@ -12433,10 +12423,12 @@ const businessRoleConstants = {
12433
12423
  SalesAndECommerceManager: 'SalesAndECommerceManager',
12434
12424
  Other: 'Other'
12435
12425
  };
12426
+ var businessRoleConstants$1 = businessRoleConstants;
12436
12427
 
12437
- const businessRoleKeys = _Object$values__default["default"](businessRoleConstants);
12428
+ const businessRoleKeys = _Object$values__default["default"](businessRoleConstants$1);
12429
+ var businessRoleKeys$1 = businessRoleKeys;
12438
12430
 
12439
- var messages$4 = reactIntl.defineMessages({
12431
+ var messages$7 = reactIntl.defineMessages({
12440
12432
  ExecutiveManagement: {
12441
12433
  id: 'Shared.businessRoles.executiveManagement',
12442
12434
  description: 'The label for one of the selectable business roles',
@@ -12611,6 +12603,7 @@ const createNextSortDefinition = _ref => {
12611
12603
  };
12612
12604
  }
12613
12605
  };
12606
+ var createNextSortDefinition$1 = createNextSortDefinition;
12614
12607
 
12615
12608
  function ownKeys$3(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
12616
12609
  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__default["default"](_context = ownKeys$3(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$3(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
@@ -13030,7 +13023,7 @@ function isEmptyFilter(_ref) {
13030
13023
  });
13031
13024
  }
13032
13025
 
13033
- const messages$3 = reactIntl.defineMessages({
13026
+ const messages$5 = reactIntl.defineMessages({
13034
13027
  inputFieldError: {
13035
13028
  id: 'Search.Filters.validation.customField.inputFieldError',
13036
13029
  description: 'Error message for empty input field ',
@@ -13042,6 +13035,7 @@ const messages$3 = reactIntl.defineMessages({
13042
13035
  defaultMessage: 'Please select an option.'
13043
13036
  }
13044
13037
  });
13038
+ var messages$6 = messages$5;
13045
13039
 
13046
13040
  const hasOptionDropdown = type => {
13047
13041
  var _context;
@@ -13051,14 +13045,14 @@ const validateValue = (value, type, intl) => {
13051
13045
  if (validateSingleFilter({
13052
13046
  value
13053
13047
  })) {
13054
- return intl.formatMessage(messages$3.inputFieldError);
13048
+ return intl.formatMessage(messages$6.inputFieldError);
13055
13049
  }
13056
13050
  if (type === FIELD_TYPES.Money && (validateSingleFilter({
13057
13051
  value: value.currencyCode
13058
13052
  }) || validateSingleFilter({
13059
13053
  value: value.amount
13060
13054
  }))) {
13061
- return intl.formatMessage(messages$3.inputFieldError);
13055
+ return intl.formatMessage(messages$6.inputFieldError);
13062
13056
  }
13063
13057
  return null;
13064
13058
  };
@@ -13066,7 +13060,7 @@ function validateFilter$2(_ref, intl) {
13066
13060
  let value = _ref.value;
13067
13061
  if (!value || !value.type) {
13068
13062
  return {
13069
- type: intl.formatMessage(messages$3.optionFieldError)
13063
+ type: intl.formatMessage(messages$6.optionFieldError)
13070
13064
  };
13071
13065
  }
13072
13066
  const typeName = value.type.name;
@@ -13074,7 +13068,7 @@ function validateFilter$2(_ref, intl) {
13074
13068
  const filterValue = value.value;
13075
13069
  if (hasOption && !value.option) {
13076
13070
  return {
13077
- option: intl.formatMessage(messages$3.optionFieldError)
13071
+ option: intl.formatMessage(messages$6.optionFieldError)
13078
13072
  };
13079
13073
  }
13080
13074
  if (value.option === FILTER_TYPES.range) {
@@ -13093,7 +13087,7 @@ function validateFilter$2(_ref, intl) {
13093
13087
  } : null;
13094
13088
  }
13095
13089
 
13096
- const messages$2 = reactIntl.defineMessages({
13090
+ const messages$3 = reactIntl.defineMessages({
13097
13091
  rangeMissingValue: {
13098
13092
  id: 'Search.Filters.validation.date.rangeMissingValue',
13099
13093
  description: 'error message if missing a value in a range',
@@ -13110,6 +13104,7 @@ const messages$2 = reactIntl.defineMessages({
13110
13104
  defaultMessage: 'Please enter a value for this field.'
13111
13105
  }
13112
13106
  });
13107
+ var messages$4 = messages$3;
13113
13108
 
13114
13109
  function validateFilter$1(_ref, intl) {
13115
13110
  let value = _ref.value,
@@ -13118,30 +13113,30 @@ function validateFilter$1(_ref, intl) {
13118
13113
  if (validateSingleFilter({
13119
13114
  value: value?.from
13120
13115
  })) return {
13121
- from: intl.formatMessage(messages$2.rangeMissingValue)
13116
+ from: intl.formatMessage(messages$4.rangeMissingValue)
13122
13117
  };
13123
13118
  if (validateSingleFilter({
13124
13119
  value: value?.to
13125
13120
  })) return {
13126
- to: intl.formatMessage(messages$2.rangeMissingValue)
13121
+ to: intl.formatMessage(messages$4.rangeMissingValue)
13127
13122
  };
13128
13123
  if (moment__default["default"](value?.to).isBefore(value?.from)) return {
13129
- from: intl.formatMessage(messages$2.rangeToSmallerThanFrom)
13124
+ from: intl.formatMessage(messages$4.rangeToSmallerThanFrom)
13130
13125
  };
13131
13126
  } else if (type === 'equalTo' || type === 'lessThan' || type === 'moreThan') {
13132
13127
  if (validateSingleFilter({
13133
13128
  value
13134
- })) return intl.formatMessage(messages$2.missingValue);
13129
+ })) return intl.formatMessage(messages$4.missingValue);
13135
13130
  }
13136
13131
  return null;
13137
13132
  }
13138
13133
 
13139
13134
  const validateSingleOptionEnum = (selectedOption, intl) => {
13140
- if (validateSingleFilter(selectedOption)) return intl.formatMessage(messages$C.required);
13135
+ if (validateSingleFilter(selectedOption)) return intl.formatMessage(validationMessages.required);
13141
13136
  return null;
13142
13137
  };
13143
13138
  const validateMultiOptionEnum = (selectedOption, intl) => {
13144
- if (validateSingleFilter(selectedOption) || selectedOption.value.length === 0) return intl.formatMessage(messages$C.required);
13139
+ if (validateSingleFilter(selectedOption) || selectedOption.value.length === 0) return intl.formatMessage(validationMessages.required);
13145
13140
  return null;
13146
13141
  };
13147
13142
 
@@ -13157,6 +13152,7 @@ const messages$1 = reactIntl.defineMessages({
13157
13152
  defaultMessage: 'Please enter the smaller number first.'
13158
13153
  }
13159
13154
  });
13155
+ var messages$2 = messages$1;
13160
13156
 
13161
13157
  function validateFilter(_ref, intl) {
13162
13158
  let value = _ref.value,
@@ -13164,30 +13160,30 @@ function validateFilter(_ref, intl) {
13164
13160
  _ref$allowFloat = _ref.allowFloat,
13165
13161
  allowFloat = _ref$allowFloat === void 0 ? true : _ref$allowFloat;
13166
13162
  if (type !== 'range') {
13167
- if (!allowFloat && !isInteger(value)) return intl.formatMessage(messages$C.integer);
13163
+ if (!allowFloat && !isInteger(value)) return intl.formatMessage(validationMessages.integer);
13168
13164
  return null;
13169
13165
  }
13170
13166
 
13171
13167
  // only range types from here
13172
13168
 
13173
13169
  if (!allowFloat && !isInteger(value.from)) return {
13174
- from: intl.formatMessage(messages$C.integer)
13170
+ from: intl.formatMessage(validationMessages.integer)
13175
13171
  };
13176
13172
  if (!allowFloat && !isInteger(value.to)) return {
13177
- to: intl.formatMessage(messages$C.integer)
13173
+ to: intl.formatMessage(validationMessages.integer)
13178
13174
  };
13179
13175
  if (validateSingleFilter({
13180
13176
  value: value.from
13181
13177
  })) return {
13182
- from: intl.formatMessage(messages$1.rangeMissingValue)
13178
+ from: intl.formatMessage(messages$2.rangeMissingValue)
13183
13179
  };
13184
13180
  if (validateSingleFilter({
13185
13181
  value: value.to
13186
13182
  })) return {
13187
- to: intl.formatMessage(messages$1.rangeMissingValue)
13183
+ to: intl.formatMessage(messages$2.rangeMissingValue)
13188
13184
  };
13189
13185
  if (_parseFloat__default["default"](value.to) < _parseFloat__default["default"](value.from)) return {
13190
- from: intl.formatMessage(messages$1.rangeToSmallerThanFrom)
13186
+ from: intl.formatMessage(messages$2.rangeToSmallerThanFrom)
13191
13187
  };
13192
13188
  return null;
13193
13189
  }
@@ -13195,8 +13191,8 @@ function validateFilter(_ref, intl) {
13195
13191
  // eslint-disable-next-line import/prefer-default-export
13196
13192
  const validateText = function (text, intl) {
13197
13193
  let type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
13198
- if (validateSingleFilter(text)) return intl.formatMessage(messages$C.required);
13199
- if (type === 'id' && !isUUID(text.value)) return intl.formatMessage(messages$C.uuid);
13194
+ if (validateSingleFilter(text)) return intl.formatMessage(validationMessages.required);
13195
+ if (type === 'id' && !isUUID$1(text.value)) return intl.formatMessage(validationMessages.uuid);
13200
13196
  return null;
13201
13197
  };
13202
13198
 
@@ -13225,10 +13221,13 @@ function convertRatioToPercentage(ratio) {
13225
13221
  const hasErrorCode = (unmappedApiErrors, errorCode) => {
13226
13222
  return _Array$isArray__default["default"](unmappedApiErrors) && _someInstanceProperty__default["default"](unmappedApiErrors).call(unmappedApiErrors, error => error.extensions?.code === errorCode);
13227
13223
  };
13224
+ var hasErrorCode$1 = hasErrorCode;
13228
13225
 
13229
- const hasInvalidInputError = errors => hasErrorCode(errors, ERROR_CODES.invalidInput);
13226
+ const hasInvalidInputError = errors => hasErrorCode$1(errors, ERROR_CODES.invalidInput);
13227
+ var hasInvalidInputError$1 = hasInvalidInputError;
13230
13228
 
13231
- const hasSemanticError = errors => hasErrorCode(errors, ERROR_CODES.semanticError);
13229
+ const hasSemanticError = errors => hasErrorCode$1(errors, ERROR_CODES.semanticError);
13230
+ var hasSemanticError$1 = hasSemanticError;
13232
13231
 
13233
13232
  function minusify(value) {
13234
13233
  const minus = '-';
@@ -13545,6 +13544,7 @@ let RequestCache = /*#__PURE__*/function () {
13545
13544
  }
13546
13545
  }]);
13547
13546
  }();
13547
+ var RequestCache$1 = RequestCache;
13548
13548
 
13549
13549
  // copied from
13550
13550
  // https://github.com/reactjs/react-redux/blob/master/src/utils/shallowEqual.js
@@ -13657,7 +13657,7 @@ function withPendingRequests() {
13657
13657
  };
13658
13658
  return jsxRuntime.jsx(Component, _objectSpread(_objectSpread({}, props), pendingProp));
13659
13659
  };
13660
- WrappedComponent.displayName = wrapDisplayName(Component, 'withPendingRequests');
13660
+ WrappedComponent.displayName = wrapDisplayName$1(Component, 'withPendingRequests');
13661
13661
  return WrappedComponent;
13662
13662
  };
13663
13663
  }
@@ -13665,58 +13665,58 @@ function withPendingRequests() {
13665
13665
  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 } } } };
13666
13666
 
13667
13667
  exports.BooleanField = booleanField;
13668
- exports.Button = Button;
13668
+ exports.Button = Button$1;
13669
13669
  exports.CartDiscountReferenceSearch = CartDiscountReferenceSearch;
13670
13670
  exports.CategoryReferenceSearch = CategoryReferenceSearch;
13671
13671
  exports.CategorySearchPickerOptionFragment = CategorySearchPickerOptionFragment;
13672
- exports.CenteredLoadingSpinner = CenteredLoadingSpinner;
13673
- exports.ChannelPickerInput = ChannelPickerInput;
13672
+ exports.CenteredLoadingSpinner = CenteredLoadingSpinner$1;
13673
+ exports.ChannelPickerInput = ChannelPickerInput$1;
13674
13674
  exports.CountriesPicker = CountriesPicker;
13675
13675
  exports.CustomFieldDefinitionsConnector = customFieldDefinitionsConnector;
13676
- exports.CustomFieldTooltip = CustomFieldTooltip;
13676
+ exports.CustomFieldTooltip = CustomFieldTooltip$1;
13677
13677
  exports.CustomFieldTypeDefinitionsConnector = CustomFieldTypeDefinitionsConnector$1;
13678
- exports.CustomFields = CustomFields;
13679
- exports.CustomFieldsErrorTextNotification = CustomFieldsErrorTextNotification;
13680
- exports.CustomFieldsFormField = CustomFieldsFormField;
13681
- exports.CustomerGroupPickerInput = CustomerGroupPickerInput;
13678
+ exports.CustomFields = CustomFields$1;
13679
+ exports.CustomFieldsErrorTextNotification = CustomFieldsErrorTextNotification$1;
13680
+ exports.CustomFieldsFormField = CustomFieldsFormField$1;
13681
+ exports.CustomerGroupPickerInput = CustomerGroupPickerInput$1;
13682
13682
  exports.DefaultPageSizes = DefaultPageSizes;
13683
13683
  exports.Divider = Divider;
13684
13684
  exports.EMAIL_REGEX = EMAIL_REGEX;
13685
- exports.FileInput = FileInput;
13685
+ exports.FileInput = FileInput$1;
13686
13686
  exports.FormattedDateTime = FormattedDateTime$1;
13687
- exports.LabelRange = LabelRange;
13687
+ exports.LabelRange = LabelRange$1;
13688
13688
  exports.MC_RESOURCES_WITH_KEYS = MC_RESOURCES_WITH_KEYS;
13689
- exports.MissingValueField = MissingValueField;
13690
- exports.MultiValueSearchInput = MultiValueSearchInput;
13689
+ exports.MissingValueField = MissingValueField$1;
13690
+ exports.MultiValueSearchInput = MultiValueSearchInput$1;
13691
13691
  exports.NumericFormatInput = numericFormatInput;
13692
13692
  exports.Option = Option$2;
13693
13693
  exports.PRECISION_TYPES = PRECISION_TYPES;
13694
13694
  exports.PimIndexerProvider = pimIndexerProvider;
13695
13695
  exports.ProductAttributeInput = ProductAttributeInput;
13696
13696
  exports.ProductAttributes = ProductAttributes;
13697
- exports.ProductPickerInput = ProductPickerInput;
13697
+ exports.ProductPickerInput = ProductPickerInput$1;
13698
13698
  exports.ProductSelectionPicker = ProductSelectionsPicker;
13699
- exports.RequestCache = RequestCache;
13700
- exports.RequiredIndicator = RequiredIndicator;
13701
- exports.ScrollToFieldError = ScrollToFieldError;
13699
+ exports.RequestCache = RequestCache$1;
13700
+ exports.RequiredIndicator = RequiredIndicator$1;
13701
+ exports.ScrollToFieldError = ScrollToFieldError$1;
13702
13702
  exports.SearchInput = searchInput;
13703
- exports.SelectableFieldSearchInput = SelectableFieldSearchInput;
13704
- exports.StoreSelectField = StoreSelectField;
13705
- exports.StoreSelectInput = StoreSelectInput;
13706
- exports.ThrottledField = ThrottledField;
13703
+ exports.SelectableFieldSearchInput = SelectableFieldSearchInput$1;
13704
+ exports.StoreSelectField = StoreSelectField$1;
13705
+ exports.StoreSelectInput = StoreSelectInput$1;
13706
+ exports.ThrottledField = ThrottledField$1;
13707
13707
  exports.VALIDATOR_INTEGER = VALIDATOR_INTEGER;
13708
13708
  exports.VALIDATOR_NUMERIC = VALIDATOR_NUMERIC;
13709
13709
  exports.VALIDATOR_REQUIRED = VALIDATOR_REQUIRED;
13710
- exports.WithPimIndexer = WithPimIndexer;
13710
+ exports.WithPimIndexer = WithPimIndexer$1;
13711
13711
  exports.allowedProperties = allowedProperties;
13712
13712
  exports.and = and;
13713
13713
  exports.attributesMapToNameValuePairs = attributesMapToNameValuePairs;
13714
13714
  exports.base64ToString = base64ToString;
13715
- exports.booleanMessages = messages$8;
13716
- exports.buildSearchQuery = buildSearchQuery;
13717
- exports.businessRoleConstants = businessRoleConstants;
13718
- exports.businessRoleMessages = messages$4;
13719
- exports.businessRoles = businessRoleKeys;
13715
+ exports.booleanMessages = messages$c;
13716
+ exports.buildSearchQuery = buildSearchQuery$1;
13717
+ exports.businessRoleConstants = businessRoleConstants$1;
13718
+ exports.businessRoleMessages = messages$7;
13719
+ exports.businessRoles = businessRoleKeys$1;
13720
13720
  exports.capitalizeFirst = capitalizeFirst;
13721
13721
  exports.clone = clone;
13722
13722
  exports.coerceToInteger = coerceToInteger;
@@ -13726,10 +13726,9 @@ exports.convertApolloQueryDataToConnectorData = convertApolloQueryDataToConnecto
13726
13726
  exports.convertProductSelectionFromGraphQl = convertProductSelectionFromGraphQl;
13727
13727
  exports.convertRatioToPercentage = convertRatioToPercentage;
13728
13728
  exports.createGraphQlUpdateActions = createGraphQlUpdateActions;
13729
- exports.createNextSortDefinition = createNextSortDefinition;
13729
+ exports.createNextSortDefinition = createNextSortDefinition$1;
13730
13730
  exports.createReducer = createReducer;
13731
13731
  exports.createResourceReducer = createResourceReducer;
13732
- exports.customFieldDefinitionsMockHanders = handlers$1;
13733
13732
  exports.customFieldsTransformer = customFields;
13734
13733
  exports.dateTransformer = dateTransformer$1;
13735
13734
  exports.exact = exact;
@@ -13757,13 +13756,13 @@ exports.getBulkNotification = getBulkNotification;
13757
13756
  exports.getCategoryLevel = getCategoryLevel;
13758
13757
  exports.getCountsFromBulkSummary = getCountsFromBulkSummary;
13759
13758
  exports.getDiscountValue = getDiscountValue;
13760
- exports.getDisplayName = getDisplayName;
13759
+ exports.getDisplayName = getDisplayName$1;
13761
13760
  exports.getFractionedAmount = getFractionedAmount;
13762
13761
  exports.getIndexesOfInvalidValues = getIndexesOfInvalidValues;
13763
13762
  exports.getMinimumPricesByCurrencyCode = getMinimumPricesByCurrencyCode;
13764
13763
  exports.getNetUnitPrice = getNetUnitPrice;
13765
13764
  exports.getPathName = getPathName;
13766
- exports.getPrefixSearchBounds = getPrefixSearchBounds;
13765
+ exports.getPrefixSearchBounds = getPrefixSearchBounds$1;
13767
13766
  exports.getPriceChannelName = getPriceChannelName;
13768
13767
  exports.getReferenceTypeId = getReferenceTypeId;
13769
13768
  exports.getSelectedPrice = getSelectedPrice;
@@ -13778,31 +13777,30 @@ exports.graphqlNumberTransformer = numberTransformer;
13778
13777
  exports.graphqlQueryBuilder = graphqlQueryBuilder;
13779
13778
  exports.graphqlReferenceTransformer = referenceTransformer;
13780
13779
  exports.graphqlTextTransformer = textTransformer;
13781
- exports.hasInvalidInputError = hasInvalidInputError;
13782
- exports.hasSemanticError = hasSemanticError;
13783
- exports.injectCustomerGroupsPlatformLimits = injectCustomerGroupsPlatformLimits;
13784
- exports.injectCustomersPlatformLimits = injectCustomersPlatformLimits;
13785
- exports.injectDataTablePaginationState = injectDataTablePaginationState;
13786
- exports.injectModalState = injectModalState$1;
13787
- exports.injectNotifications = injectNotifications;
13780
+ exports.hasInvalidInputError = hasInvalidInputError$1;
13781
+ exports.hasSemanticError = hasSemanticError$1;
13782
+ exports.injectCustomerGroupsPlatformLimits = injectCustomerGroupsPlatformLimits$1;
13783
+ exports.injectCustomersPlatformLimits = injectCustomersPlatformLimits$1;
13784
+ exports.injectDataTablePaginationState = injectDataTablePaginationState$1;
13785
+ exports.injectModalState = injectModalState$3;
13786
+ exports.injectNotifications = injectNotifications$1;
13788
13787
  exports.injectPimIndexer = injectPimIndexer;
13789
- exports.injectShippingMethodsPlatformLimits = injectShippingMethodsPlatformLimits;
13790
- exports.injectStorage = injectStorage;
13791
- exports.injectTaxCategoriesPlatformLimits = injectTaxCategoriesPlatformLimits;
13792
- exports.injectToggleState = injectModalState;
13793
- exports.injectZonesPlatformLimits = injectZonesPlatformLimits;
13788
+ exports.injectShippingMethodsPlatformLimits = injectShippingMethodsPlatformLimits$1;
13789
+ exports.injectStorage = injectStorage$1;
13790
+ exports.injectTaxCategoriesPlatformLimits = injectTaxCategoriesPlatformLimits$1;
13791
+ exports.injectToggleState = injectModalState$1;
13792
+ exports.injectZonesPlatformLimits = injectZonesPlatformLimits$1;
13794
13793
  exports.isEmpty = isEmptyFilter;
13795
13794
  exports.isEmptyValue = isEmptyValue;
13796
- exports.isFieldDuplicatedMockHandlers = handlers$6;
13797
- exports.isUUID = isUUID;
13795
+ exports.isUUID = isUUID$1;
13798
13796
  exports.isValidISODate = isValidISODate;
13799
13797
  exports.isValidISODateTime = isValidISODateTime;
13800
13798
  exports.isValidISOTime = isValidISOTime;
13801
- exports.keepDisplayName = keepDisplayName;
13799
+ exports.keepDisplayName = keepDisplayName$1;
13802
13800
  exports.mapStoresToOptions = mapStoresToOptions;
13803
13801
  exports.mapTimeZonesToOptions = mapTimeZonesToOptions;
13804
13802
  exports.minusify = minusify;
13805
- exports.missingValueMessages = messages$6;
13803
+ exports.missingValueMessages = messages$9;
13806
13804
  exports.nameValuePairsToMap = nameValuePairsToMap;
13807
13805
  exports.normalizeProductSettings = normalizeProductSettings;
13808
13806
  exports.not = not;
@@ -13810,17 +13808,14 @@ exports.omitDeep = omitDeep;
13810
13808
  exports.omitSetsOfSets = omitSetsOfSets;
13811
13809
  exports.or = or;
13812
13810
  exports.pickerMessages = pickerMessages$1;
13813
- exports.platformLimitsMockHandlers = handlers;
13814
- exports.productSelectionsFetcherMockHandler = handlers$3;
13815
- exports.productSelectionsTotalFetcherMockHandler = handlers$4;
13816
13811
  exports.range = range;
13817
13812
  exports.reorderArrayItems = reorderArrayItems;
13818
13813
  exports.resolveStatusType = resolveStatusType;
13819
13814
  exports.safelyAddFallback = safelyAddFallback;
13820
13815
  exports.sanitize = sanitize;
13821
13816
  exports.searchCategories = searchCategories;
13822
- exports.searchInputMessages = messages$G;
13823
- exports.setDisplayName = setDisplayName;
13817
+ exports.searchInputMessages = messages$M;
13818
+ exports.setDisplayName = setDisplayName$1;
13824
13819
  exports.setToArray = setToArray;
13825
13820
  exports.shallowEqual = shallowEqual;
13826
13821
  exports.shouldUpdateAttributeInput = shouldUpdateAttributeInput;
@@ -13828,7 +13823,6 @@ exports.slugify = slugify;
13828
13823
  exports.sortDataByIdsArray = sortDataByIdsArray;
13829
13824
  exports.sortRequiresLanguage = sortRequiresLanguage;
13830
13825
  exports.splitVariantAttributesByConstraint = splitVariantAttributesByConstraint;
13831
- exports.storesListConnectorMockHandlers = handlers$5;
13832
13826
  exports.stringToBase64 = stringToBase64;
13833
13827
  exports.swapArrayItems = swapArrayItems;
13834
13828
  exports.transformAllToProperNounCase = transformAllToProperNounCase;
@@ -13840,27 +13834,26 @@ exports.uniqueObjects = uniqueObjects;
13840
13834
  exports.useCachedCategoryOptions = useCachedCategoryOptions;
13841
13835
  exports.useCurrentOption = useCurrentOption;
13842
13836
  exports.useCustomFieldsDnDContext = useDnDContext;
13843
- exports.useCustomerGroupsPlatformLimits = useCustomerGroupsPlatformLimits;
13844
- exports.useCustomersPlatformLimits = useCustomersPlatformLimits;
13845
- exports.useDebouncedPromiseCallback = useDebouncedPromiseCallback;
13837
+ exports.useCustomerGroupsPlatformLimits = useCustomerGroupsPlatformLimits$1;
13838
+ exports.useCustomersPlatformLimits = useCustomersPlatformLimits$1;
13839
+ exports.useDebouncedPromiseCallback = useDebouncedPromiseCallback$1;
13846
13840
  exports.useFormatLocalizedFieldToString = useFormatLocalizedFieldToString;
13847
- exports.useIsFieldDuplicated = useIsFieldDuplicated;
13848
- exports.useLoadOptions = useLoadOptions;
13849
- exports.useLocalizedKeyFallback = useLocalizedKeyFallback;
13841
+ exports.useIsFieldDuplicated = useIsFieldDuplicated$1;
13842
+ exports.useLoadOptions = useLoadOptions$1;
13843
+ exports.useLocalizedKeyFallback = useLocalizedKeyFallback$1;
13850
13844
  exports.usePendingRequests = usePendingRequests;
13851
- exports.usePersistedTableConfiguration = usePersistedTableConfiguration;
13845
+ exports.usePersistedTableConfiguration = usePersistedTableConfiguration$1;
13852
13846
  exports.usePimIndexer = usePimIndexer;
13853
- exports.usePrevious = usePrevious;
13854
- exports.useProductSelectionsFetcher = useProductSelectionsFetcher;
13855
- exports.useProductSelectionsTotalFetcher = useProductSelectionsTotalFetcher;
13856
- exports.useRoleNotificationEffect = useRoleNotificationEffect;
13857
- exports.useShippingMethodsPlatformLimits = useShippingMethodsLimits;
13858
- exports.useStorage = useStorage;
13859
- exports.useStoreKeysInDataFences = useStoreKeysInDataFences;
13860
- exports.useStoresListFetcher = useStoresListFetcher;
13861
- exports.useTaxCategoriesPlatformLimits = useTaxCategoriesLimits;
13862
- exports.useTotalNumberOfStoresFetcher = useTotalNumberOfStoresFetcher;
13863
- exports.useTotalNumberOfStoresFetcherHandlers = handlers$2;
13847
+ exports.usePrevious = usePrevious$1;
13848
+ exports.useProductSelectionsFetcher = useProductSelectionsFetcher$1;
13849
+ exports.useProductSelectionsTotalFetcher = useProductSelectionsTotalFetcher$1;
13850
+ exports.useRoleNotificationEffect = useRoleNotificationEffect$1;
13851
+ exports.useShippingMethodsPlatformLimits = useShippingMethodsPlatformLimits;
13852
+ exports.useStorage = useStorage$1;
13853
+ exports.useStoreKeysInDataFences = useStoreKeysInDataFences$1;
13854
+ exports.useStoresListFetcher = useStoresListFetcher$1;
13855
+ exports.useTaxCategoriesPlatformLimits = useTaxCategoriesPlatformLimits;
13856
+ exports.useTotalNumberOfStoresFetcher = useTotalNumberOfStoresFetcher$1;
13864
13857
  exports.validateCustomField = validateFilter$2;
13865
13858
  exports.validateCustomFields = validations;
13866
13859
  exports.validateDate = validateFilter$1;
@@ -13869,9 +13862,9 @@ exports.validateNumber = validateFilter;
13869
13862
  exports.validateSingleOptionEnum = validateSingleOptionEnum;
13870
13863
  exports.validateText = validateText;
13871
13864
  exports.validatedInput = validatedInput;
13872
- exports.validationMessages = messages$C;
13865
+ exports.validationMessages = validationMessages;
13873
13866
  exports.withPendingRequests = withPendingRequests;
13874
- exports.withProps = withProps;
13875
- exports.withRedirectTo = withRedirectTo;
13876
- exports.withoutEmptyErrorsByField = withoutEmptyErrorsByField;
13877
- exports.wrapDisplayName = wrapDisplayName;
13867
+ exports.withProps = withProps$1;
13868
+ exports.withRedirectTo = withRedirectTo$1;
13869
+ exports.withoutEmptyErrorsByField = withoutEmptyErrorsByField$1;
13870
+ exports.wrapDisplayName = wrapDisplayName$1;