@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
  var warning = 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,73 +126,74 @@ 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
171
  var warning__default = /*#__PURE__*/_interopDefault(warning);
182
- var flatten__default = /*#__PURE__*/_interopDefault(flatten);
183
- var uniqBy__default = /*#__PURE__*/_interopDefault(uniqBy);
184
- var invariant__default = /*#__PURE__*/_interopDefault(invariant);
185
- var hoistNonReactStatics__default = /*#__PURE__*/_interopDefault(hoistNonReactStatics);
186
172
  var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
187
173
  var _Math$trunc__default = /*#__PURE__*/_interopDefault(_Math$trunc);
188
174
  var _Number$isNaN__default = /*#__PURE__*/_interopDefault(_Number$isNaN);
189
175
  var Cleave__default = /*#__PURE__*/_interopDefault(Cleave);
190
176
  var isFinite__default = /*#__PURE__*/_interopDefault(isFinite);
191
177
  var isUndefined__default = /*#__PURE__*/_interopDefault(isUndefined);
178
+ var flowRight__default = /*#__PURE__*/_interopDefault(flowRight);
179
+ var Textarea__default = /*#__PURE__*/_interopDefault(Textarea);
192
180
  var _Object$assign__default = /*#__PURE__*/_interopDefault(_Object$assign);
193
181
  var _findIndexInstanceProperty__default = /*#__PURE__*/_interopDefault(_findIndexInstanceProperty);
194
- var flatMap__default = /*#__PURE__*/_interopDefault(flatMap);
182
+ var moment__default = /*#__PURE__*/_interopDefault(moment);
183
+ var _Object$freeze__default = /*#__PURE__*/_interopDefault(_Object$freeze);
184
+ var originalOmitDeep__default = /*#__PURE__*/_interopDefault(originalOmitDeep);
195
185
  var compact__default = /*#__PURE__*/_interopDefault(compact);
196
186
  var _Set__default = /*#__PURE__*/_interopDefault(_Set);
187
+ var flatMap__default = /*#__PURE__*/_interopDefault(flatMap);
188
+ var _Date$now__default = /*#__PURE__*/_interopDefault(_Date$now);
197
189
  var _spliceInstanceProperty__default = /*#__PURE__*/_interopDefault(_spliceInstanceProperty);
190
+ var memoize__default = /*#__PURE__*/_interopDefault(memoize);
191
+ var omitEmpty__default = /*#__PURE__*/_interopDefault(omitEmpty);
192
+ var flatten__default = /*#__PURE__*/_interopDefault(flatten);
193
+ var uniqBy__default = /*#__PURE__*/_interopDefault(uniqBy);
194
+ var invariant__default = /*#__PURE__*/_interopDefault(invariant);
195
+ var hoistNonReactStatics__default = /*#__PURE__*/_interopDefault(hoistNonReactStatics);
196
+ var get__default = /*#__PURE__*/_interopDefault(get);
198
197
 
199
198
  var styles$k = {
200
199
  "loading-container": "centered-loading-spinner-module__loading-container___3_9-h"
@@ -209,6 +208,7 @@ const CenteredLoadingSpinner = () => jsxRuntime.jsx("div", {
209
208
  children: jsxRuntime.jsx(uiKit.LoadingSpinner, {})
210
209
  });
211
210
  CenteredLoadingSpinner.displayName = 'CenteredLoadingSpinner';
211
+ var CenteredLoadingSpinner$1 = CenteredLoadingSpinner;
212
212
 
213
213
  const QUERY_MAX_LIMIT = 500;
214
214
  const SHOW_TOOLTIP_CHARS_COUNT = 40;
@@ -264,7 +264,7 @@ var pickerMessages$1 = reactIntl.defineMessages({
264
264
  }
265
265
  });
266
266
 
267
- var messages$K = reactIntl.defineMessages({
267
+ var messages$Q = reactIntl.defineMessages({
268
268
  noChannelsFound: {
269
269
  id: 'Products.ChannelPickerInput.noChannelsFound',
270
270
  description: 'The message to display when no channels were found',
@@ -325,7 +325,7 @@ const ChannelPickerInput = _ref => {
325
325
  return channel;
326
326
  }, [formatLocalizedFieldToString]);
327
327
  const prefixSearchFields = React.useMemo(() => [`name.${dataLocale}`, 'key'], [dataLocale]);
328
- const loadOptions = useLoadOptions({
328
+ const loadOptions = useLoadOptions$1({
329
329
  query: GetChannelsQuery,
330
330
  variables,
331
331
  prefixSearchFields
@@ -350,8 +350,8 @@ const ChannelPickerInput = _ref => {
350
350
  setLoadingError(error);
351
351
  onError(error);
352
352
  }), [loadOptions, convertChannelToOption, onError]);
353
- const loadOptionsDebounced = useDebouncedPromiseCallback(handleLoadOptions, 300);
354
- const _useHandlers = useHandlers(onChange),
353
+ const loadOptionsDebounced = useDebouncedPromiseCallback$1(handleLoadOptions, 300);
354
+ const _useHandlers = useHandlers$1(onChange),
355
355
  _useHandlers2 = _slicedToArray(_useHandlers, 2),
356
356
  handleInternalInputChange = _useHandlers2[0],
357
357
  handleChange = _useHandlers2[1];
@@ -364,18 +364,18 @@ const ChannelPickerInput = _ref => {
364
364
  if (isCurrentOptionLoadingFailed) onError(currentOption.error);
365
365
  }, [isCurrentOptionLoadingFailed, onError, currentOption]);
366
366
  const isLoadingFailed = isCurrentOptionLoadingFailed || Boolean(loadingError);
367
- const handleNoOptions = React.useCallback(() => loadingError ? null : formatMessage(messages$K.noChannelsFound), [loadingError, formatMessage]);
367
+ const handleNoOptions = React.useCallback(() => loadingError ? null : formatMessage(messages$Q.noChannelsFound), [loadingError, formatMessage]);
368
368
  const tooltipTitle = currentOption?.data?.label ?? '';
369
369
  return jsxRuntime.jsx(uiKit.Constraints.Horizontal, {
370
370
  max: "scale",
371
371
  children: jsxRuntime.jsxs(uiKit.Spacings.Stack, {
372
372
  scale: "xs",
373
- children: [jsxRuntime.jsx(CustomFieldTooltip, {
373
+ children: [jsxRuntime.jsx(CustomFieldTooltip$1, {
374
374
  title: tooltipTitle,
375
375
  children: jsxRuntime.jsx(uiKit.AsyncSelectInput, {
376
376
  id: name,
377
377
  name: name,
378
- placeholder: placeholder ?? formatMessage(messages$K.placeholder),
378
+ placeholder: placeholder ?? formatMessage(messages$Q.placeholder),
379
379
  loadOptions: loadOptionsDebounced,
380
380
  defaultOptions: true,
381
381
  showOptionGroupDivider: true,
@@ -403,6 +403,7 @@ const ChannelPickerInput = _ref => {
403
403
  });
404
404
  };
405
405
  ChannelPickerInput.displayName = 'ChannelPickerInput';
406
+ var ChannelPickerInput$1 = ChannelPickerInput;
406
407
 
407
408
  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)); }
408
409
  function _isNativeReflectConstruct$9() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$9 = function () { return !!t; })(); }
@@ -430,7 +431,7 @@ let FormattedDateTime = /*#__PURE__*/function (_PureComponent) {
430
431
  FormattedDateTime.displayName = 'FormattedDateTime';
431
432
  var FormattedDateTime$1 = reactIntl.injectIntl(FormattedDateTime);
432
433
 
433
- var messages$J = reactIntl.defineMessages({
434
+ var messages$P = reactIntl.defineMessages({
434
435
  noProductTypesFound: {
435
436
  id: 'Products.ProductTypePickerInput.noProductTypesFound',
436
437
  description: 'The message to display when no product types were found',
@@ -475,7 +476,7 @@ const ProductTypePickerInput = _ref => {
475
476
  _useState2 = _slicedToArray(_useState, 2),
476
477
  loadingError = _useState2[0],
477
478
  setLoadingError = _useState2[1];
478
- const _useProductTypeOption = useProductTypeOptions({
479
+ const _useProductTypeOption = useProductTypeOptions$1({
479
480
  prefixSearchFields
480
481
  }),
481
482
  loadProductTypes = _useProductTypeOption.loadProductTypes;
@@ -495,8 +496,8 @@ const ProductTypePickerInput = _ref => {
495
496
  setLoadingError(error);
496
497
  onError(error);
497
498
  }), [loadProductTypes, onError]);
498
- const loadOptionsDebounced = useDebouncedPromiseCallback(handleLoadOptions, 300);
499
- const _useHandlers = useHandlers(onChange),
499
+ const loadOptionsDebounced = useDebouncedPromiseCallback$1(handleLoadOptions, 300);
500
+ const _useHandlers = useHandlers$1(onChange),
500
501
  _useHandlers2 = _slicedToArray(_useHandlers, 2),
501
502
  handleInternalInputChange = _useHandlers2[0],
502
503
  handleChange = _useHandlers2[1];
@@ -512,14 +513,14 @@ const ProductTypePickerInput = _ref => {
512
513
  const tooltipTitle = currentOption?.data?.label ?? '';
513
514
  return jsxRuntime.jsx(uiKit.Constraints.Horizontal, {
514
515
  max: "scale",
515
- children: currentOption.loading ? jsxRuntime.jsx(CenteredLoadingSpinner, {}) : jsxRuntime.jsxs(uiKit.Spacings.Stack, {
516
+ children: currentOption.loading ? jsxRuntime.jsx(CenteredLoadingSpinner$1, {}) : jsxRuntime.jsxs(uiKit.Spacings.Stack, {
516
517
  scale: "xs",
517
- children: [jsxRuntime.jsx(CustomFieldTooltip, {
518
+ children: [jsxRuntime.jsx(CustomFieldTooltip$1, {
518
519
  title: tooltipTitle,
519
520
  children: jsxRuntime.jsx(uiKit.AsyncSelectInput, {
520
521
  id: name,
521
522
  name: name,
522
- placeholder: formatMessage(messages$J.placeholder),
523
+ placeholder: formatMessage(messages$P.placeholder),
523
524
  loadOptions: loadOptionsDebounced,
524
525
  defaultOptions: [],
525
526
  isClearable: isClearable,
@@ -532,7 +533,7 @@ const ProductTypePickerInput = _ref => {
532
533
  onInputChange: handleInputChange,
533
534
  onBlur: onBlur,
534
535
  value: currentOption.data,
535
- noOptionsMessage: () => loadingError ? null : formatMessage(messages$J.noProductTypesFound),
536
+ noOptionsMessage: () => loadingError ? null : formatMessage(messages$P.noProductTypesFound),
536
537
  hasError: hasError || isLoadingFailed,
537
538
  menuPortalZIndex: Z_INDEX_DROPDOWN,
538
539
  menuPortalTarget: document.body,
@@ -546,8 +547,9 @@ const ProductTypePickerInput = _ref => {
546
547
  });
547
548
  };
548
549
  ProductTypePickerInput.displayName = 'ProductTypePickerInput';
550
+ var ProductTypePickerInput$1 = ProductTypePickerInput;
549
551
 
550
- var messages$I = reactIntl.defineMessages({
552
+ var messages$O = reactIntl.defineMessages({
551
553
  noStatesFound: {
552
554
  id: 'Products.StatePickerInput.noStatesFound',
553
555
  description: 'The message to display when no states were found',
@@ -594,7 +596,7 @@ const StatePickerInput = _ref => {
594
596
  loadingError = _useState2[0],
595
597
  setLoadingError = _useState2[1];
596
598
  const prefixSearchFields = React.useMemo(() => [`name.${dataLocale}`, 'key'], [dataLocale]);
597
- const loadOptions = useLoadOptions({
599
+ const loadOptions = useLoadOptions$1({
598
600
  query: GetStatesQuery,
599
601
  variables,
600
602
  prefixSearchFields
@@ -617,8 +619,8 @@ const StatePickerInput = _ref => {
617
619
  setLoadingError(error);
618
620
  onError(error);
619
621
  }), [loadOptions, convertStateToOption, onError]);
620
- const loadOptionsDebounced = useDebouncedPromiseCallback(handleLoadOptions, 300);
621
- const _useHandlers = useHandlers(onChange),
622
+ const loadOptionsDebounced = useDebouncedPromiseCallback$1(handleLoadOptions, 300);
623
+ const _useHandlers = useHandlers$1(onChange),
622
624
  _useHandlers2 = _slicedToArray(_useHandlers, 2),
623
625
  handleInternalInputChange = _useHandlers2[0],
624
626
  handleChange = _useHandlers2[1];
@@ -631,19 +633,19 @@ const StatePickerInput = _ref => {
631
633
  if (isCurrentOptionLoadingFailed) onError(currentOption.error);
632
634
  }, [isCurrentOptionLoadingFailed, onError, currentOption]);
633
635
  const isLoadingFailed = isCurrentOptionLoadingFailed || Boolean(loadingError);
634
- const handleNoOptions = React.useCallback(() => loadingError ? null : formatMessage(messages$I.noStatesFound), [loadingError, formatMessage]);
636
+ const handleNoOptions = React.useCallback(() => loadingError ? null : formatMessage(messages$O.noStatesFound), [loadingError, formatMessage]);
635
637
  const tooltipTitle = currentOption?.data?.label ?? '';
636
638
  return jsxRuntime.jsx(uiKit.Constraints.Horizontal, {
637
639
  max: "scale",
638
- children: currentOption.loading ? jsxRuntime.jsx(CenteredLoadingSpinner, {}) : jsxRuntime.jsxs(uiKit.Spacings.Stack, {
640
+ children: currentOption.loading ? jsxRuntime.jsx(CenteredLoadingSpinner$1, {}) : jsxRuntime.jsxs(uiKit.Spacings.Stack, {
639
641
  scale: "xs",
640
- children: [jsxRuntime.jsx(CustomFieldTooltip, {
642
+ children: [jsxRuntime.jsx(CustomFieldTooltip$1, {
641
643
  title: tooltipTitle,
642
644
  children: jsxRuntime.jsx(uiKit.AsyncSelectInput, {
643
645
  id: name,
644
646
  name: name,
645
647
  horizontalConstraint: "scale",
646
- placeholder: formatMessage(messages$I.placeholder),
648
+ placeholder: formatMessage(messages$O.placeholder),
647
649
  loadOptions: loadOptionsDebounced,
648
650
  defaultOptions: true,
649
651
  showOptionGroupDivider: true,
@@ -671,6 +673,7 @@ const StatePickerInput = _ref => {
671
673
  });
672
674
  };
673
675
  StatePickerInput.displayName = 'StatePickerInput';
676
+ var StatePickerInput$1 = StatePickerInput;
674
677
 
675
678
  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; }
676
679
  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; }
@@ -697,8 +700,9 @@ const CustomFieldTooltip = _ref => {
697
700
  children: children
698
701
  });
699
702
  };
703
+ var CustomFieldTooltip$1 = CustomFieldTooltip;
700
704
 
701
- var messages$H = reactIntl.defineMessages({
705
+ var messages$N = reactIntl.defineMessages({
702
706
  bottomOption: {
703
707
  id: 'Products.Pickers.bottomOption',
704
708
  description: 'The message to display at the end of the options menu',
@@ -710,7 +714,7 @@ function ownKeys$1p(e, r) { var t = _Object$keys__default["default"](e); if (_Ob
710
714
  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; }
711
715
  const getBottomOption = formatMessage => ({
712
716
  options: [{
713
- label: formatMessage ? formatMessage(messages$H.bottomOption) : messages$H.bottomOption,
717
+ label: formatMessage ? formatMessage(messages$N.bottomOption) : messages$N.bottomOption,
714
718
  isBottomOption: true,
715
719
  isDisabled: true
716
720
  }]
@@ -745,7 +749,7 @@ const useHandlers = onChange => {
745
749
  const handleInputChange = React.useCallback(changedValue => {
746
750
  setInputValue(changedValue);
747
751
  }, []);
748
- const handleChange = useEventCallback(event => {
752
+ const handleChange = useEventCallback$1(event => {
749
753
  const eventWithExtractedValue = _objectSpread$1o(_objectSpread$1o({}, event), {}, {
750
754
  target: _objectSpread$1o(_objectSpread$1o({}, event.target), {}, {
751
755
  value: event.target.value?.value
@@ -755,6 +759,7 @@ const useHandlers = onChange => {
755
759
  }, [onChange, inputValue]);
756
760
  return [handleInputChange, handleChange];
757
761
  };
762
+ var useHandlers$1 = useHandlers;
758
763
 
759
764
  const _excluded$3 = ["extraWhere"];
760
765
  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; }
@@ -787,10 +792,10 @@ const useLoadOptions = _ref => {
787
792
  let inputValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
788
793
  let where;
789
794
  if (inputValue.length) {
790
- if (isUUID(inputValue)) {
795
+ if (isUUID$1(inputValue)) {
791
796
  where = `id = "${inputValue}"`;
792
797
  } else {
793
- const _getPrefixSearchBound = getPrefixSearchBounds(inputValue),
798
+ const _getPrefixSearchBound = getPrefixSearchBounds$1(inputValue),
794
799
  _getPrefixSearchBound2 = _slicedToArray(_getPrefixSearchBound, 2),
795
800
  lowerBound = _getPrefixSearchBound2[0],
796
801
  upperBound = _getPrefixSearchBound2[1];
@@ -816,6 +821,7 @@ const useLoadOptions = _ref => {
816
821
  }, [client$1, query, variables, prefixSearchFields]);
817
822
  return loadOptions;
818
823
  };
824
+ var useLoadOptions$1 = useLoadOptions;
819
825
 
820
826
  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 } } } };
821
827
  const useExecuteGraphQLRequest = () => {
@@ -906,8 +912,8 @@ const constructPrefixSearchPredicate = (prefixSearchFields, lowerBound, upperBou
906
912
  const constructWherePredicate = (inputValue, prefixSearchFields) => {
907
913
  const wherePredicate = function () {
908
914
  if (inputValue.length) {
909
- if (isUUID(inputValue)) return `id = "${inputValue}"`;else {
910
- const _getPrefixSearchBound = getPrefixSearchBounds(inputValue),
915
+ if (isUUID$1(inputValue)) return `id = "${inputValue}"`;else {
916
+ const _getPrefixSearchBound = getPrefixSearchBounds$1(inputValue),
911
917
  _getPrefixSearchBound2 = _slicedToArray(_getPrefixSearchBound, 2),
912
918
  lowerBound = _getPrefixSearchBound2[0],
913
919
  upperBound = _getPrefixSearchBound2[1];
@@ -965,6 +971,7 @@ const useProductTypeOptions = _ref3 => {
965
971
  loadProductTypes: isProjectIndexed ? fetchProductTypesFromPim : fetchProductTypessFromCTP
966
972
  };
967
973
  };
974
+ var useProductTypeOptions$1 = useProductTypeOptions;
968
975
 
969
976
  function useCurrentOption(_ref) {
970
977
  let id = _ref.id,
@@ -1016,16 +1023,20 @@ const getDisplayName = Component => {
1016
1023
  }
1017
1024
  return Component.displayName || Component.name || 'Component';
1018
1025
  };
1026
+ var getDisplayName$1 = getDisplayName;
1019
1027
 
1020
1028
  const setDisplayName = nextDisplayName => Component => {
1021
1029
  // eslint-disable-next-line no-param-reassign
1022
1030
  Component.displayName = nextDisplayName;
1023
1031
  return Component;
1024
1032
  };
1033
+ var setDisplayName$1 = setDisplayName;
1025
1034
 
1026
- const keepDisplayName = component => setDisplayName(getDisplayName(component));
1035
+ const keepDisplayName = component => setDisplayName$1(getDisplayName$1(component));
1036
+ var keepDisplayName$1 = keepDisplayName;
1027
1037
 
1028
- const wrapDisplayName = (BaseComponent, hocName) => `${hocName}(${getDisplayName(BaseComponent)})`;
1038
+ const wrapDisplayName = (BaseComponent, hocName) => `${hocName}(${getDisplayName$1(BaseComponent)})`;
1039
+ var wrapDisplayName$1 = wrapDisplayName;
1029
1040
 
1030
1041
  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; }
1031
1042
  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; }
@@ -1063,9 +1074,10 @@ const withMouseOverState = BaseComponent => {
1063
1074
  }
1064
1075
  }]);
1065
1076
  }(React.Component);
1066
- WithMouseOverState.displayName = wrapDisplayName(BaseComponent, 'withMouseOverState');
1077
+ WithMouseOverState.displayName = wrapDisplayName$1(BaseComponent, 'withMouseOverState');
1067
1078
  return WithMouseOverState;
1068
1079
  };
1080
+ var withMouseOverState$1 = withMouseOverState;
1069
1081
 
1070
1082
  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; }
1071
1083
  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; }
@@ -1223,8 +1235,9 @@ ThrottledField.defaultProps = {
1223
1235
  autoFocus: false,
1224
1236
  label: 'Throttled field'
1225
1237
  };
1238
+ var ThrottledField$1 = ThrottledField;
1226
1239
 
1227
- var messages$G = reactIntl.defineMessages({
1240
+ var messages$M = reactIntl.defineMessages({
1228
1241
  buttonLabel: {
1229
1242
  id: 'SearchInput.buttonLabel',
1230
1243
  description: 'Label for "Search" button.',
@@ -1323,13 +1336,13 @@ let SearchInput = /*#__PURE__*/function (_Component) {
1323
1336
  [styles$i['input-container-disabled']]: this.props.disabled && this.props.enableDisabledStyle,
1324
1337
  [styles$i['input-container-granular']]: this.props.isGranular
1325
1338
  }),
1326
- children: jsxRuntime.jsx(ThrottledField, {
1339
+ children: jsxRuntime.jsx(ThrottledField$1, {
1327
1340
  style: "primary",
1328
1341
  name: "search-text",
1329
1342
  "data-testid": this.props.testId || 'search-input',
1330
1343
  value: this.state.text,
1331
1344
  label: this.props.label,
1332
- placeholder: this.props.placeholder || this.props.intl.formatMessage(messages$G.placeholder),
1345
+ placeholder: this.props.placeholder || this.props.intl.formatMessage(messages$M.placeholder),
1333
1346
  inputRef: this.props.inputRef || this.setInputRef,
1334
1347
  onChange: this.handleInputChange,
1335
1348
  onEnter: this.handleEnter,
@@ -1384,7 +1397,7 @@ SearchInput.defaultProps = {
1384
1397
  label: 'Search input',
1385
1398
  onChange: () => null
1386
1399
  };
1387
- var searchInput = flowRight__default["default"](keepDisplayName(SearchInput), withMouseOverState, reactIntl.injectIntl)(SearchInput);
1400
+ var searchInput = flowRight__default["default"](keepDisplayName$1(SearchInput), withMouseOverState$1, reactIntl.injectIntl)(SearchInput);
1388
1401
 
1389
1402
  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; }
1390
1403
  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; }
@@ -1408,9 +1421,10 @@ const injectDataTablePaginationState = initialValues => Component => {
1408
1421
  }
1409
1422
  }));
1410
1423
  };
1411
- WithDataTablePaginationState.displayName = wrapDisplayName(WithDataTablePaginationState, 'WithDataTablePaginationState');
1424
+ WithDataTablePaginationState.displayName = wrapDisplayName$1(WithDataTablePaginationState, 'WithDataTablePaginationState');
1412
1425
  return WithDataTablePaginationState;
1413
1426
  };
1427
+ var injectDataTablePaginationState$1 = injectDataTablePaginationState;
1414
1428
 
1415
1429
  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; }
1416
1430
  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; }
@@ -1432,10 +1446,11 @@ const injectNotifications = function () {
1432
1446
  [propName]: notifications
1433
1447
  }));
1434
1448
  };
1435
- WrappedComponent.displayName = `withNotifications(${getDisplayName(Component)}`;
1449
+ WrappedComponent.displayName = `withNotifications(${getDisplayName$1(Component)}`;
1436
1450
  return WrappedComponent;
1437
1451
  };
1438
1452
  };
1453
+ var injectNotifications$1 = injectNotifications;
1439
1454
 
1440
1455
  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; }
1441
1456
  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; }
@@ -1447,9 +1462,10 @@ const withProps = mapProps => Component => {
1447
1462
  const enhancedProps = isPropsMapper(mapProps) ? _objectSpread$1i(_objectSpread$1i({}, ownProps), mapProps(ownProps)) : _objectSpread$1i(_objectSpread$1i({}, ownProps), mapProps);
1448
1463
  return jsxRuntime.jsx(Component, _objectSpread$1i({}, enhancedProps));
1449
1464
  };
1450
- EnhancedWithProps.displayName = wrapDisplayName(Component, 'withProps');
1465
+ EnhancedWithProps.displayName = wrapDisplayName$1(Component, 'withProps');
1451
1466
  return EnhancedWithProps;
1452
1467
  };
1468
+ var withProps$1 = withProps;
1453
1469
 
1454
1470
  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; }
1455
1471
  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; }
@@ -1484,6 +1500,7 @@ const withRedirectTo = options => Component => {
1484
1500
  WithRedirectTo.displayName = 'WithFirstStepRedirect';
1485
1501
  return WithRedirectTo;
1486
1502
  };
1503
+ var withRedirectTo$1 = withRedirectTo;
1487
1504
 
1488
1505
  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; }
1489
1506
  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; }
@@ -1491,7 +1508,7 @@ const defaultOptions$4 = {
1491
1508
  propName: 'modalState',
1492
1509
  isInitiallyOpen: false
1493
1510
  };
1494
- const injectModalState$1 = options => Component => {
1511
+ const injectModalState$2 = options => Component => {
1495
1512
  const mergedOptions = _objectSpread$1g(_objectSpread$1g({}, defaultOptions$4), options);
1496
1513
  const WithModalState = props => {
1497
1514
  const modalState = applicationComponents.useModalState(mergedOptions.isInitiallyOpen);
@@ -1499,9 +1516,10 @@ const injectModalState$1 = options => Component => {
1499
1516
  [mergedOptions.propName]: modalState
1500
1517
  }));
1501
1518
  };
1502
- WithModalState.displayName = wrapDisplayName(WithModalState, 'WithModalState');
1519
+ WithModalState.displayName = wrapDisplayName$1(WithModalState, 'WithModalState');
1503
1520
  return WithModalState;
1504
1521
  };
1522
+ var injectModalState$3 = injectModalState$2;
1505
1523
 
1506
1524
  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; }
1507
1525
  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; }
@@ -1517,9 +1535,10 @@ const injectModalState = options => Component => {
1517
1535
  [mergedOptions.propName]: toggleState
1518
1536
  }));
1519
1537
  };
1520
- WithToggleState.displayName = wrapDisplayName(WithToggleState, 'WithToggleState');
1538
+ WithToggleState.displayName = wrapDisplayName$1(WithToggleState, 'WithToggleState');
1521
1539
  return WithToggleState;
1522
1540
  };
1541
+ var injectModalState$1 = injectModalState;
1523
1542
 
1524
1543
  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; }
1525
1544
  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; }
@@ -1583,6 +1602,7 @@ const useStorage = (storageKey, initialStorageValue, options) => {
1583
1602
  }, [actualStorageValue, initialStorageValue, readFromStorage, writeToStorage]);
1584
1603
  return [actualStorageValue, writeToStorage, readFromStorage];
1585
1604
  };
1605
+ var useStorage$1 = useStorage;
1586
1606
 
1587
1607
  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; }
1588
1608
  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; }
@@ -1600,7 +1620,7 @@ const injectStorage = options => WrappedComponent => {
1600
1620
  */
1601
1621
  const mergedOptions = _objectSpread$1d(_objectSpread$1d({}, defaultOptions$1), options);
1602
1622
  const WithStorage = props => {
1603
- const _useStorage = useStorage(mergedOptions.storageKey(props), mergedOptions.initalStorageValue, mergedOptions.options),
1623
+ const _useStorage = useStorage$1(mergedOptions.storageKey(props), mergedOptions.initalStorageValue, mergedOptions.options),
1604
1624
  _useStorage2 = _slicedToArray(_useStorage, 3),
1605
1625
  actualStorageValue = _useStorage2[0],
1606
1626
  writeToStorage = _useStorage2[1],
@@ -1614,9 +1634,10 @@ const injectStorage = options => WrappedComponent => {
1614
1634
  };
1615
1635
  return jsxRuntime.jsx(WrappedComponent, _objectSpread$1d(_objectSpread$1d({}, props), storageProp));
1616
1636
  };
1617
- WithStorage.displayName = wrapDisplayName(WrappedComponent, 'WithStorage');
1637
+ WithStorage.displayName = wrapDisplayName$1(WrappedComponent, 'WithStorage');
1618
1638
  return WithStorage;
1619
1639
  };
1640
+ var injectStorage$1 = injectStorage;
1620
1641
 
1621
1642
  /**
1622
1643
  * @returns function with the following parameters
@@ -1769,42 +1790,7 @@ const useIsFieldDuplicated = () => {
1769
1790
  queryIsFieldDuplicated: execute
1770
1791
  };
1771
1792
  };
1772
-
1773
- const graphqlQueries = {
1774
- ASSOCIATE_ROLE: 'associateRoles',
1775
- ATTRIBUTE_GROUP: 'attributeGroups',
1776
- BUSINESS_UNIT: 'businessUnits',
1777
- CART: 'carts',
1778
- CART_DISCOUNT: 'cartDiscounts',
1779
- CATEGORY: 'categories',
1780
- CHANNEL: 'channels',
1781
- CUSTOMER: 'customers',
1782
- CUSTOMER_GROUP: 'customerGroups',
1783
- DISCOUNT_CODE: 'discountCodes',
1784
- INVENTORY_ENTRY: 'inventoryEntries',
1785
- ORDER: 'orders',
1786
- PAYMENT: 'payments',
1787
- PRODUCT: 'products',
1788
- PRODUCT_DISCOUNT: 'productDiscounts',
1789
- PRODUCT_SELECTION: 'productSelections',
1790
- PRODUCT_TYPE: 'productTypes',
1791
- SHIPPING_METHOD: 'shippingMethods',
1792
- STORE: 'stores',
1793
- TAX_CATEGORY: 'taxCategories',
1794
- ZONE: 'zones'
1795
- };
1796
- const handlers$6 = {
1797
- DuplicatedField: {
1798
- total: (total, resourceType) => msw.graphql.query('FetchResourceTypeDuplicatedField', (req, res, ctx) => {
1799
- if (!graphqlQueries[resourceType]) return res(ctx.data({}));
1800
- return res(ctx.data({
1801
- [graphqlQueries[resourceType]]: {
1802
- total
1803
- }
1804
- }));
1805
- })
1806
- }
1807
- };
1793
+ var useIsFieldDuplicated$1 = useIsFieldDuplicated;
1808
1794
 
1809
1795
  const usePrevious = value => {
1810
1796
  const ref = React.useRef();
@@ -1813,6 +1799,7 @@ const usePrevious = value => {
1813
1799
  }, [value]);
1814
1800
  return ref.current;
1815
1801
  };
1802
+ var usePrevious$1 = usePrevious;
1816
1803
 
1817
1804
  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; }
1818
1805
  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; }
@@ -1880,59 +1867,7 @@ const useStoresListFetcher = props => {
1880
1867
  }
1881
1868
  };
1882
1869
  };
1883
-
1884
- const extractKeysFromWherePredicateClause = function () {
1885
- let whereClause = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
1886
- return whereClause.substring(_lastIndexOfInstanceProperty__default["default"](whereClause).call(whereClause, '("') + 1, _lastIndexOfInstanceProperty__default["default"](whereClause).call(whereClause, '")')).replace(/["]/g, '').split(', ');
1887
- };
1888
- const handlers$5 = {
1889
- StoresList: {
1890
- all: stores => msw.graphql.query('FetchStoresQuery', (req, res, ctx) => {
1891
- // GIVEN req.variables.where is specified
1892
- // THEN return only stores that are being requested (filtering stores based on IDs)
1893
- // ELSE return all the stores (without filtering any)
1894
- if (req.variables.where) {
1895
- var _context;
1896
- const requestedStoreKeys = extractKeysFromWherePredicateClause(req.variables.where);
1897
- const filteredStoreResults = _filterInstanceProperty__default["default"](_context = stores.results).call(_context, store => _includesInstanceProperty__default["default"](requestedStoreKeys).call(requestedStoreKeys, store.key));
1898
- return res(ctx.data({
1899
- stores: {
1900
- offset: 0,
1901
- total: filteredStoreResults.length,
1902
- count: filteredStoreResults.length,
1903
- results: filteredStoreResults,
1904
- __typename: 'StoresQueryResult'
1905
- }
1906
- }));
1907
- }
1908
- return res(ctx.data({
1909
- stores
1910
- }));
1911
- }),
1912
- withProductSelections: stores => msw.graphql.query('FetchStoresQuery', (req, res, ctx) => {
1913
- // GIVEN req.variables.where is specified
1914
- // THEN return only stores that are being requested (filtering stores based on IDs)
1915
- // ELSE return all the stores (without filtering any)
1916
- if (req.variables.where) {
1917
- var _context2;
1918
- const requestedStoreKeys = extractKeysFromWherePredicateClause(req.variables.where);
1919
- const filteredStoreResults = _filterInstanceProperty__default["default"](_context2 = stores.results).call(_context2, store => _includesInstanceProperty__default["default"](requestedStoreKeys).call(requestedStoreKeys, store.key));
1920
- return res(ctx.data({
1921
- stores: {
1922
- offset: 0,
1923
- total: filteredStoreResults.length,
1924
- count: filteredStoreResults.length,
1925
- results: filteredStoreResults,
1926
- __typename: 'StoresQueryResult'
1927
- }
1928
- }));
1929
- }
1930
- return res(ctx.data({
1931
- stores
1932
- }));
1933
- })
1934
- }
1935
- };
1870
+ var useStoresListFetcher$1 = useStoresListFetcher;
1936
1871
 
1937
1872
  const toPermission = (permission, resourceName) => camelCase__default["default"](`can ${permission} ${resourceName}`);
1938
1873
  const createPermissionsComposePath = permission =>
@@ -1962,6 +1897,7 @@ const useStoreKeysInDataFences = _ref => {
1962
1897
  });
1963
1898
  return storeKeysInDataFences;
1964
1899
  };
1900
+ var useStoreKeysInDataFences$1 = useStoreKeysInDataFences;
1965
1901
 
1966
1902
  function useDidFormValidationFail() {
1967
1903
  const _useState = React.useState(false),
@@ -2021,7 +1957,7 @@ const useHasReminderExpired = readReminderInterval => {
2021
1957
  const usePersistedReminder = function () {
2022
1958
  let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2023
1959
  const mergedOptions = _objectSpread$1a(_objectSpread$1a({}, defaultOptions), options);
2024
- const _useStorage = useStorage(mergedOptions.storageKey, null),
1960
+ const _useStorage = useStorage$1(mergedOptions.storageKey, null),
2025
1961
  _useStorage2 = _slicedToArray(_useStorage, 3),
2026
1962
  initialChosenReminderInterval = _useStorage2[0],
2027
1963
  choseReminderInterval = _useStorage2[1],
@@ -2065,8 +2001,9 @@ const usePersistedReminder = function () {
2065
2001
  }, []);
2066
2002
  return [hasReminderExpired, hasChosenReminderRef, scheduleReminder];
2067
2003
  };
2004
+ var usePersistedReminder$1 = usePersistedReminder;
2068
2005
 
2069
- var messages$F = reactIntl.defineMessages({
2006
+ var messages$L = reactIntl.defineMessages({
2070
2007
  profileUpdated: {
2071
2008
  id: 'NotificationText.profileUpdated',
2072
2009
  description: 'Label for the notification header',
@@ -2103,9 +2040,9 @@ const NotificationText = () => jsxRuntime.jsxs(uiKit.Spacings.Stack, {
2103
2040
  children: [jsxRuntime.jsx(uiKit.Text.Body, {
2104
2041
  as: "p",
2105
2042
  isBold: true,
2106
- intlMessage: messages$F.profileUpdated
2043
+ intlMessage: messages$L.profileUpdated
2107
2044
  }), jsxRuntime.jsx(uiKit.Text.Body, {
2108
- intlMessage: _objectSpread$19(_objectSpread$19({}, messages$F.addMoreInformation), {}, {
2045
+ intlMessage: _objectSpread$19(_objectSpread$19({}, messages$L.addMoreInformation), {}, {
2109
2046
  values: {
2110
2047
  newline: getNewLine
2111
2048
  }
@@ -2114,7 +2051,7 @@ const NotificationText = () => jsxRuntime.jsxs(uiKit.Spacings.Stack, {
2114
2051
  }), jsxRuntime.jsx(uiKit.Spacings.Stack, {
2115
2052
  scale: "xs",
2116
2053
  children: jsxRuntime.jsx(uiKit.Text.Body, {
2117
- intlMessage: _objectSpread$19(_objectSpread$19({}, messages$F.informationAndProfileLink), {}, {
2054
+ intlMessage: _objectSpread$19(_objectSpread$19({}, messages$L.informationAndProfileLink), {}, {
2118
2055
  values: {
2119
2056
  newline: getNewLine,
2120
2057
  link: getLinkToProfile
@@ -2124,6 +2061,7 @@ const NotificationText = () => jsxRuntime.jsxs(uiKit.Spacings.Stack, {
2124
2061
  })]
2125
2062
  });
2126
2063
  NotificationText.displayName = 'NotificationText';
2064
+ var NotificationText$1 = NotificationText;
2127
2065
 
2128
2066
  const useRoleNotification = _ref => {
2129
2067
  let dismissNotification = _ref.onDismiss;
@@ -2135,13 +2073,14 @@ const useRoleNotification = _ref => {
2135
2073
  return () => {
2136
2074
  if (isBusinessRoleNotificationEnabled) {
2137
2075
  notification({
2138
- text: jsxRuntime.jsx(NotificationText, {})
2076
+ text: jsxRuntime.jsx(NotificationText$1, {})
2139
2077
  }, {
2140
2078
  onDismiss: () => dismissNotification()
2141
2079
  });
2142
2080
  }
2143
2081
  };
2144
2082
  };
2083
+ var useRoleNotification$1 = useRoleNotification;
2145
2084
 
2146
2085
  const useRoleNotificationEffect = () => {
2147
2086
  const _useAdapterStatus = applicationShell.useAdapterStatus(),
@@ -2150,7 +2089,7 @@ const useRoleNotificationEffect = () => {
2150
2089
  const storageKey = 'roleExpiry';
2151
2090
  const userBusinessRole = user.businessRole;
2152
2091
  const scopedStorageKey = [user.id, storageKey].join('/');
2153
- const _usePersistedReminder = usePersistedReminder({
2092
+ const _usePersistedReminder = usePersistedReminder$1({
2154
2093
  storageKey,
2155
2094
  reminderInterval: REMINDER_OPTION_3_DAY
2156
2095
  }),
@@ -2158,7 +2097,7 @@ const useRoleNotificationEffect = () => {
2158
2097
  hasReminderExpired = _usePersistedReminder2[0],
2159
2098
  hasChosenReminderRef = _usePersistedReminder2[1],
2160
2099
  scheduleReminder = _usePersistedReminder2[2];
2161
- const roleNotification = useRoleNotification({
2100
+ const roleNotification = useRoleNotification$1({
2162
2101
  onDismiss: scheduleReminder
2163
2102
  });
2164
2103
  const isFirstTimeUser = !hasChosenReminderRef.current;
@@ -2187,6 +2126,7 @@ const useRoleNotificationEffect = () => {
2187
2126
  // eslint-disable-next-line react-hooks/exhaustive-deps
2188
2127
  [userBusinessRole, hasReminderExpired, isFlopFlipReady]);
2189
2128
  };
2129
+ var useRoleNotificationEffect$1 = useRoleNotificationEffect;
2190
2130
 
2191
2131
  function usePendingRequests() {
2192
2132
  const _useState = React.useState(0),
@@ -2234,8 +2174,9 @@ const useEventCallback = (fn, dependencies) => {
2234
2174
  return ref.current(...arguments);
2235
2175
  }, [ref]);
2236
2176
  };
2177
+ var useEventCallback$1 = useEventCallback;
2237
2178
 
2238
- var messages$E = reactIntl.defineMessages({
2179
+ var messages$K = reactIntl.defineMessages({
2239
2180
  fallbackHint: {
2240
2181
  id: 'KeyFallback.fallbackHint',
2241
2182
  description: 'key fallback for a specified resource key (e.g name)',
@@ -2259,17 +2200,19 @@ const useLocalizedKeyFallback = () => {
2259
2200
  return values => {
2260
2201
  if (!values.resource) return null;
2261
2202
  const localizedString = values.resource[values.localizedStringFieldName];
2262
- const fallbackHintWithKey = intl.formatMessage(messages$E.fallbackHint, {
2203
+ const fallbackHintWithKey = intl.formatMessage(messages$K.fallbackHint, {
2263
2204
  key: values.resource.key
2264
2205
  });
2265
2206
  if (!localizedString) return fallbackHintWithKey;
2266
2207
  return localizedString[language] || fallbackHintWithKey;
2267
2208
  };
2268
2209
  };
2210
+ var useLocalizedKeyFallback$1 = useLocalizedKeyFallback;
2269
2211
 
2270
2212
  const useDebouncedPromiseCallback = (promiseCallback, wait) =>
2271
2213
  // eslint-disable-next-line testing-library/await-async-utils
2272
2214
  React.useCallback(debounce__default["default"](promiseCallback, wait), [promiseCallback]);
2215
+ var useDebouncedPromiseCallback$1 = useDebouncedPromiseCallback;
2273
2216
 
2274
2217
  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; }
2275
2218
  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; }
@@ -2335,7 +2278,7 @@ const usePersistedTableConfiguration = props => {
2335
2278
  displaySettings
2336
2279
  };
2337
2280
  }, [allAvailableColumnsConfiguration, initialVisibleColumnKeys, mutableColumnProps, displaySettings]);
2338
- const _useStorage = useStorage(tableConfigurationStorageKey,
2281
+ const _useStorage = useStorage$1(tableConfigurationStorageKey,
2339
2282
  // initialize with all the available columns
2340
2283
  mappedInitialTableConfiguration, {
2341
2284
  storageType
@@ -2371,6 +2314,7 @@ const usePersistedTableConfiguration = props => {
2371
2314
  })
2372
2315
  };
2373
2316
  };
2317
+ var usePersistedTableConfiguration$1 = usePersistedTableConfiguration;
2374
2318
 
2375
2319
  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 } } } };
2376
2320
  const useProductSelectionsTotalFetcher = props => {
@@ -2386,17 +2330,7 @@ const useProductSelectionsTotalFetcher = props => {
2386
2330
  total: data?.productSelections?.total
2387
2331
  };
2388
2332
  };
2389
-
2390
- const handlers$4 = {
2391
- ProductSelections: {
2392
- total: total => msw.graphql.query('FetchProductSelectionsTotal', (req, res, ctx) => res(ctx.data({
2393
- productSelections: {
2394
- total,
2395
- __typename: 'ProductSelectionQueryResult'
2396
- }
2397
- })))
2398
- }
2399
- };
2333
+ var useProductSelectionsTotalFetcher$1 = useProductSelectionsTotalFetcher;
2400
2334
 
2401
2335
  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; }
2402
2336
  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; }
@@ -2445,14 +2379,7 @@ const useProductSelectionsFetcher = props => {
2445
2379
  refetch
2446
2380
  };
2447
2381
  };
2448
-
2449
- const handlers$3 = {
2450
- ProductSelections: {
2451
- all: productSelections => msw.graphql.query('FetchProductSelections', (req, res, ctx) => res(ctx.data({
2452
- productSelections
2453
- })))
2454
- }
2455
- };
2382
+ var useProductSelectionsFetcher$1 = useProductSelectionsFetcher;
2456
2383
 
2457
2384
  const setToArray = function () {
2458
2385
  let values = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
@@ -3863,6 +3790,7 @@ const currencyData = {
3863
3790
  countries: ['Zimbabwe']
3864
3791
  }
3865
3792
  };
3793
+ var currencyData$1 = currencyData;
3866
3794
 
3867
3795
  /* This is is short-term solution that patches fraction digits not being available from the Dashboard backend.
3868
3796
 
@@ -3889,8 +3817,8 @@ SOFTWARE.
3889
3817
 
3890
3818
  const getData = (code, field) => {
3891
3819
  code = code !== undefined && code !== '' ? code.toUpperCase() : code;
3892
- if (currencyData[code] !== undefined) {
3893
- if (field === 'all') return currencyData[code];else return currencyData[code][field];
3820
+ if (currencyData$1[code] !== undefined) {
3821
+ if (field === 'all') return currencyData$1[code];else return currencyData$1[code][field];
3894
3822
  } else return undefined;
3895
3823
  };
3896
3824
  const getFractionDigit = code => getData(code, 'fractionDigit');
@@ -3929,7 +3857,7 @@ function formatMoney$2(moneyValue, intl, options) {
3929
3857
  }, options));
3930
3858
  }
3931
3859
 
3932
- var messages$D = reactIntl.defineMessages({
3860
+ var messages$J = reactIntl.defineMessages({
3933
3861
  booleanYes: {
3934
3862
  id: 'AttributeTypeFormats.boolean.yes',
3935
3863
  description: 'The label for boolean attribute `true` value',
@@ -4011,7 +3939,7 @@ const formatDateTime = _ref7 => {
4011
3939
  const formatBoolean = _ref8 => {
4012
3940
  let value = _ref8.value,
4013
3941
  intl = _ref8.intl;
4014
- return value ? intl.formatMessage(messages$D.booleanYes) : intl.formatMessage(messages$D.booleanNo);
3942
+ return value ? intl.formatMessage(messages$J.booleanYes) : intl.formatMessage(messages$J.booleanNo);
4015
3943
  };
4016
3944
  const formatNilType = _ref9 => {
4017
3945
  let value = _ref9.value,
@@ -4168,6 +4096,7 @@ const getPrefixSearchBounds = input => {
4168
4096
  const getNextCharacter = character => String.fromCharCode(character.charCodeAt() + 1);
4169
4097
  return [input, `${_sliceInstanceProperty__default["default"](input).call(input, 0, input.length - 1)}${getNextCharacter(_sliceInstanceProperty__default["default"](input).call(input, input.length - 1))}`];
4170
4098
  };
4099
+ var getPrefixSearchBounds$1 = getPrefixSearchBounds;
4171
4100
 
4172
4101
  const _excluded$2 = ["action"];
4173
4102
  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; }
@@ -4727,6 +4656,7 @@ const extractErrorFromGraphQlResponse = graphQlResponse => {
4727
4656
  };
4728
4657
 
4729
4658
  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);
4659
+ var isUUID$1 = isUUID;
4730
4660
 
4731
4661
  const formats = {
4732
4662
  en: [',', '.'],
@@ -5116,7 +5046,7 @@ function uniqueObjects(items) {
5116
5046
 
5117
5047
  */
5118
5048
 
5119
- const messages$C = reactIntl.defineMessages({
5049
+ const messages$I = reactIntl.defineMessages({
5120
5050
  unique: {
5121
5051
  id: 'Validation.unique',
5122
5052
  description: 'An error message to show if the field must be unique',
@@ -5158,6 +5088,7 @@ const messages$C = reactIntl.defineMessages({
5158
5088
  defaultMessage: 'Invalid ID format. Please enter a valid ID.'
5159
5089
  }
5160
5090
  });
5091
+ var validationMessages = messages$I;
5161
5092
 
5162
5093
  function getIndexesOfInvalidValues(values) {
5163
5094
  let invalidValues = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
@@ -5171,6 +5102,7 @@ function getIndexesOfInvalidValues(values) {
5171
5102
  }
5172
5103
 
5173
5104
  const withoutEmptyErrorsByField = errorsByField => omitEmpty__default["default"](errorsByField);
5105
+ var withoutEmptyErrorsByField$1 = withoutEmptyErrorsByField;
5174
5106
 
5175
5107
  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 } } } };
5176
5108
 
@@ -5240,7 +5172,7 @@ const getWhereClause = function () {
5240
5172
  let searchText = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
5241
5173
  let language = arguments.length > 1 ? arguments[1] : undefined;
5242
5174
  const query = _trimInstanceProperty__default["default"](_context2 = _JSON$stringify__default["default"](searchText)).call(_context2);
5243
- const idQuery = isUUID(searchText) && `id = ${query}`;
5175
+ const idQuery = isUUID$1(searchText) && `id = ${query}`;
5244
5176
  const nameQuery = `name(${language} = ${query})`;
5245
5177
  const keyQuery = `key = ${query}`;
5246
5178
  return _filterInstanceProperty__default["default"](_context3 = [idQuery, nameQuery, keyQuery]).call(_context3, Boolean).join(' or ');
@@ -5307,7 +5239,7 @@ const useReferenceSearchItems = _ref => {
5307
5239
  const putToCache = React.useCallback(items => {
5308
5240
  _forEachInstanceProperty__default["default"](items).call(items, item => itemCache.set(item.id, item));
5309
5241
  }, []);
5310
- const prevIds = usePrevious(ids);
5242
+ const prevIds = usePrevious$1(ids);
5311
5243
  React.useEffect(() => {
5312
5244
  async function loadItems() {
5313
5245
  const loadedItems = ids.length > 0 ? await loadItemsByIds(ids) : [];
@@ -5380,7 +5312,7 @@ function ReferenceSearch(props) {
5380
5312
  children: [areSomeItemsMissing && jsxRuntime.jsx("div", {
5381
5313
  className: styles$h['missing-label'],
5382
5314
  children: props.referenceIsMissingLabel
5383
- }), jsxRuntime.jsx(CustomFieldTooltip, {
5315
+ }), jsxRuntime.jsx(CustomFieldTooltip$1, {
5384
5316
  title: tooltipTitle,
5385
5317
  children: jsxRuntime.jsxs("div", {
5386
5318
  children: [jsxRuntime.jsx(uiKit.AccessibleHidden, {
@@ -5412,7 +5344,7 @@ function ReferenceSearch(props) {
5412
5344
  });
5413
5345
  }
5414
5346
 
5415
- const messages$B = reactIntl.defineMessages({
5347
+ const messages$G = reactIntl.defineMessages({
5416
5348
  placeholder: {
5417
5349
  id: 'CartDiscountReferenceSearch.placeholder',
5418
5350
  description: 'Placeholder for search for a cart discount',
@@ -5439,6 +5371,7 @@ const messages$B = reactIntl.defineMessages({
5439
5371
  defaultMessage: 'Enter search term'
5440
5372
  }
5441
5373
  });
5374
+ var messages$H = messages$G;
5442
5375
 
5443
5376
  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; }
5444
5377
  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; }
@@ -5463,7 +5396,7 @@ function Option$1(props) {
5463
5396
  fallbackOrder: languages
5464
5397
  })
5465
5398
  }), jsxRuntime.jsxs(uiKit.Text.Detail, {
5466
- children: [formatMessage(messages$B.key), ": ", cartDiscount.key || constants.NO_VALUE_FALLBACK]
5399
+ children: [formatMessage(messages$H.key), ": ", cartDiscount.key || constants.NO_VALUE_FALLBACK]
5467
5400
  })]
5468
5401
  })
5469
5402
  }));
@@ -5539,10 +5472,10 @@ function CartDiscountReferenceSearch(props) {
5539
5472
  onBlur: props.onBlur,
5540
5473
  onChange: props.onChange,
5541
5474
  value: returnNullIfEmpty(props.value),
5542
- placeholderLabel: formatMessage(messages$B.placeholder),
5543
- searchPromptLabel: formatMessage(messages$B.searchPrompt),
5544
- noResultsLabel: formatMessage(messages$B.noResults),
5545
- referenceIsMissingLabel: formatMessage(messages$B.isMissing),
5475
+ placeholderLabel: formatMessage(messages$H.placeholder),
5476
+ searchPromptLabel: formatMessage(messages$H.searchPrompt),
5477
+ noResultsLabel: formatMessage(messages$H.noResults),
5478
+ referenceIsMissingLabel: formatMessage(messages$H.isMissing),
5546
5479
  mapItemToOption: mapItemToOption,
5547
5480
  loadItemsBySearchTerm: loadItemsBySearchTerm,
5548
5481
  loadItemsByIds: loadItemsByIds,
@@ -5552,7 +5485,7 @@ function CartDiscountReferenceSearch(props) {
5552
5485
  });
5553
5486
  }
5554
5487
 
5555
- const messages$A = reactIntl.defineMessages({
5488
+ const messages$E = reactIntl.defineMessages({
5556
5489
  placeholder: {
5557
5490
  id: 'CategoryReferenceSearch.placeholder',
5558
5491
  description: 'Placeholder for search for a category',
@@ -5584,6 +5517,7 @@ const messages$A = reactIntl.defineMessages({
5584
5517
  defaultMessage: 'Parent Category'
5585
5518
  }
5586
5519
  });
5520
+ var messages$F = messages$E;
5587
5521
 
5588
5522
  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; }
5589
5523
  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; }
@@ -5608,7 +5542,7 @@ function Option(props) {
5608
5542
  fallbackOrder: languages
5609
5543
  })
5610
5544
  }), category.parent && jsxRuntime.jsx(uiKit.Text.Detail, {
5611
- children: `${formatMessage(messages$A.parentCategory)}: ${l10n.formatLocalizedString(category.parent, {
5545
+ children: `${formatMessage(messages$F.parentCategory)}: ${l10n.formatLocalizedString(category.parent, {
5612
5546
  key: 'name',
5613
5547
  locale: language,
5614
5548
  fallbackOrder: languages
@@ -5620,7 +5554,7 @@ function Option(props) {
5620
5554
  fallbackOrder: languages
5621
5555
  })}`
5622
5556
  }), category.externalId && jsxRuntime.jsx(uiKit.Text.Detail, {
5623
- children: `${formatMessage(messages$A.externalId)}: ${category.externalId || constants.NO_VALUE_FALLBACK}`
5557
+ children: `${formatMessage(messages$F.externalId)}: ${category.externalId || constants.NO_VALUE_FALLBACK}`
5624
5558
  })]
5625
5559
  })
5626
5560
  }));
@@ -5668,10 +5602,10 @@ function CategoryReferenceSearch(props) {
5668
5602
  onBlur: props.onBlur,
5669
5603
  onChange: props.onChange,
5670
5604
  value: props.value,
5671
- placeholderLabel: formatMessage(messages$A.placeholder),
5672
- searchPromptLabel: formatMessage(messages$A.searchPrompt),
5673
- noResultsLabel: formatMessage(messages$A.noResults),
5674
- referenceIsMissingLabel: formatMessage(messages$A.isMissing),
5605
+ placeholderLabel: formatMessage(messages$F.placeholder),
5606
+ searchPromptLabel: formatMessage(messages$F.searchPrompt),
5607
+ noResultsLabel: formatMessage(messages$F.noResults),
5608
+ referenceIsMissingLabel: formatMessage(messages$F.isMissing),
5675
5609
  mapItemToOption: mapItemToOption,
5676
5610
  loadItemsBySearchTerm: loadItemsBySearchTerm,
5677
5611
  loadItemsByIds: loadItemsByIds,
@@ -5745,8 +5679,9 @@ Button.displayName = 'Button';
5745
5679
  Button.defaultProps = {
5746
5680
  type: 'button'
5747
5681
  };
5682
+ var Button$1 = Button;
5748
5683
 
5749
- var messages$z = reactIntl.defineMessages({
5684
+ var messages$D = reactIntl.defineMessages({
5750
5685
  chooseFile: {
5751
5686
  id: 'ButtonFileInput.chooseFile',
5752
5687
  description: 'The label text of the field for upload local file',
@@ -5775,12 +5710,13 @@ const FileInput = props => jsxRuntime.jsx("label", {
5775
5710
  });
5776
5711
  FileInput.displayName = 'FileInput';
5777
5712
  FileInput.defaultProps = {
5778
- children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$Y({}, messages$z.chooseFile)),
5713
+ children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$Y({}, messages$D.chooseFile)),
5779
5714
  allowMultiple: false,
5780
5715
  acceptTypes: 'image/png,image/jpeg,image/gif'
5781
5716
  };
5717
+ var FileInput$1 = FileInput;
5782
5718
 
5783
- var messages$y = reactIntl.defineMessages({
5719
+ var messages$C = reactIntl.defineMessages({
5784
5720
  countriesBasicSelectPlaceholder: {
5785
5721
  id: 'CountriesPicker.countriesBasicSelectPlaceholder',
5786
5722
  description: 'Placeholder of the basic field for countries',
@@ -5801,7 +5737,7 @@ var messages$y = reactIntl.defineMessages({
5801
5737
  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; }
5802
5738
  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; }
5803
5739
  const emptyCountryOption = intl => [{
5804
- label: intl.formatMessage(messages$y.countriesAsyncSelectDropdownTypeAheadPrompt),
5740
+ label: intl.formatMessage(messages$C.countriesAsyncSelectDropdownTypeAheadPrompt),
5805
5741
  value: undefined,
5806
5742
  isDisabled: true
5807
5743
  }];
@@ -5843,7 +5779,7 @@ function CountriesAsyncSelectDropdown(props) {
5843
5779
  var _context3;
5844
5780
  return _findInstanceProperty__default["default"](_context3 = props.options).call(_context3, country => country.value === countryCode);
5845
5781
  }),
5846
- placeholder: intl.formatMessage(messages$y.countriesAsyncSelectPlaceholder),
5782
+ placeholder: intl.formatMessage(messages$C.countriesAsyncSelectPlaceholder),
5847
5783
  loadOptions: handleLoadOptions,
5848
5784
  onChange: onOptionChange,
5849
5785
  isDisabled: props.isDisabled,
@@ -5863,7 +5799,7 @@ function CountriesBasicSelectDropdown(props) {
5863
5799
  value: props.value,
5864
5800
  isRequired: props.isRequired,
5865
5801
  description: props.description,
5866
- placeholder: intl.formatMessage(messages$y.countriesBasicSelectPlaceholder),
5802
+ placeholder: intl.formatMessage(messages$C.countriesBasicSelectPlaceholder),
5867
5803
  options: props.options,
5868
5804
  onChange: props.onChange,
5869
5805
  isDisabled: props.isDisabled,
@@ -5890,7 +5826,7 @@ CountriesPicker.defaultProps = {
5890
5826
  hasWarning: false
5891
5827
  };
5892
5828
 
5893
- var messages$x = reactIntl.defineMessages({
5829
+ var messages$B = reactIntl.defineMessages({
5894
5830
  noCustomerGroupsFound: {
5895
5831
  id: 'Prices.CustomerGroupPickerInput.noCustomerGroupsFound',
5896
5832
  description: 'The message to display when no customer groups were found',
@@ -5941,7 +5877,7 @@ const CustomerGroupPickerInput = _ref => {
5941
5877
  return customerGroup;
5942
5878
  }, []);
5943
5879
  const prefixSearchFields = React.useMemo(() => ['name', 'key'], []);
5944
- const loadOptions = useLoadOptions({
5880
+ const loadOptions = useLoadOptions$1({
5945
5881
  query: GetCustomerGroupsQuery,
5946
5882
  variables,
5947
5883
  prefixSearchFields
@@ -5966,8 +5902,8 @@ const CustomerGroupPickerInput = _ref => {
5966
5902
  setLoadingError(error);
5967
5903
  onError(error);
5968
5904
  }), [loadOptions, convertCustomerGroupToOption, onError]);
5969
- const loadOptionsDebounced = useDebouncedPromiseCallback(handleLoadOptions, 300);
5970
- const _useHandlers = useHandlers(onChange),
5905
+ const loadOptionsDebounced = useDebouncedPromiseCallback$1(handleLoadOptions, 300);
5906
+ const _useHandlers = useHandlers$1(onChange),
5971
5907
  _useHandlers2 = _slicedToArray(_useHandlers, 2),
5972
5908
  handleInternalInputChange = _useHandlers2[0],
5973
5909
  handleChange = _useHandlers2[1];
@@ -5980,18 +5916,18 @@ const CustomerGroupPickerInput = _ref => {
5980
5916
  if (isCurrentOptionLoadingFailed) onError(currentOption.error);
5981
5917
  }, [isCurrentOptionLoadingFailed, onError, currentOption]);
5982
5918
  const isLoadingFailed = isCurrentOptionLoadingFailed || Boolean(loadingError);
5983
- const handleNoOptions = React.useCallback(() => loadingError ? null : formatMessage(messages$x.noCustomerGroupsFound), [loadingError, formatMessage]);
5919
+ const handleNoOptions = React.useCallback(() => loadingError ? null : formatMessage(messages$B.noCustomerGroupsFound), [loadingError, formatMessage]);
5984
5920
  const tooltipTitle = currentOption?.data?.label ?? '';
5985
5921
  return jsxRuntime.jsx(uiKit.Constraints.Horizontal, {
5986
5922
  max: "scale",
5987
5923
  children: jsxRuntime.jsxs(uiKit.Spacings.Stack, {
5988
5924
  scale: "xs",
5989
- children: [jsxRuntime.jsx(CustomFieldTooltip, {
5925
+ children: [jsxRuntime.jsx(CustomFieldTooltip$1, {
5990
5926
  title: tooltipTitle,
5991
5927
  children: jsxRuntime.jsx(uiKit.AsyncSelectInput, {
5992
5928
  id: name,
5993
5929
  name: name,
5994
- placeholder: placeholder ?? formatMessage(messages$x.placeholder),
5930
+ placeholder: placeholder ?? formatMessage(messages$B.placeholder),
5995
5931
  loadOptions: loadOptionsDebounced,
5996
5932
  defaultOptions: true,
5997
5933
  showOptionGroupDivider: true,
@@ -6016,6 +5952,7 @@ const CustomerGroupPickerInput = _ref => {
6016
5952
  });
6017
5953
  };
6018
5954
  CustomerGroupPickerInput.displayName = 'CustomerGroupPickerInput';
5955
+ var CustomerGroupPickerInput$1 = CustomerGroupPickerInput;
6019
5956
 
6020
5957
  var styles$e = {
6021
5958
  "divider": "divider-module__divider___4-vdy",
@@ -6086,13 +6023,14 @@ const CustomFieldErrors = props => {
6086
6023
  const errors = _Array$isArray__default["default"](props.errors) ? mergeSetItemsErrors(props.errors) : props.errors;
6087
6024
  return jsxRuntime.jsxs(jsxRuntime.Fragment, {
6088
6025
  children: [props.isTouched || didFormValidationFail && errors?.missing && jsxRuntime.jsx(_.ErrorMessage, {
6089
- intlMessage: messages$C.required
6026
+ intlMessage: validationMessages.required
6090
6027
  }), props.isTouched || didFormValidationFail && errors?.duplicated && jsxRuntime.jsx(_.ErrorMessage, {
6091
- intlMessage: messages$C.unique
6028
+ intlMessage: validationMessages.unique
6092
6029
  })]
6093
6030
  });
6094
6031
  };
6095
6032
  CustomFieldErrors.displayName = 'CustomFieldErrors';
6033
+ var CustomFieldErrors$1 = CustomFieldErrors;
6096
6034
 
6097
6035
  const getType = fieldDefinition => {
6098
6036
  const fieldDefinitionType = fieldDefinition.type.name.toLowerCase() === 'set' ? fieldDefinition.type.elementType : fieldDefinition.type;
@@ -6176,6 +6114,7 @@ const ExpandButton = props => props.totalValues > 1 ? jsxRuntime.jsxs(uiKit.Spac
6176
6114
  })]
6177
6115
  }) : null;
6178
6116
  ExpandButton.displayName = 'ExpandButton';
6117
+ var ExpandButton$1 = ExpandButton;
6179
6118
 
6180
6119
  var styles$d = {
6181
6120
  "topAlign": "set-buttons-module__topAlign___3AZwc",
@@ -6204,6 +6143,7 @@ const SetButtons = props => {
6204
6143
  });
6205
6144
  };
6206
6145
  SetButtons.displayName = 'SetButtons';
6146
+ var SetButtons$1 = SetButtons;
6207
6147
 
6208
6148
  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; }
6209
6149
  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; }
@@ -6348,7 +6288,7 @@ function CustomInputSet(props) {
6348
6288
  const fieldValue = internalValue[index];
6349
6289
  return jsxRuntime.jsxs(uiKit.Spacings.Inline, {
6350
6290
  alignItems: areButtonsTopAligned ? 'flex-start' : 'center',
6351
- children: [jsxRuntime.jsx(CustomFieldInput, {
6291
+ children: [jsxRuntime.jsx(CustomFieldInput$1, {
6352
6292
  name: fieldName,
6353
6293
  fieldDefinition: itemFieldDefinition,
6354
6294
  isDisabled: props.isDisabled,
@@ -6361,7 +6301,7 @@ function CustomInputSet(props) {
6361
6301
  WrapperComponent: props.WrapperComponent,
6362
6302
  renderWarnings: props.renderWarnings,
6363
6303
  handleWarningChange: props.handleWarningChange
6364
- }), jsxRuntime.jsx(SetButtons, {
6304
+ }), jsxRuntime.jsx(SetButtons$1, {
6365
6305
  index: index,
6366
6306
  isFirstItem: !isExpanded || index === 0,
6367
6307
  onAddItem: addNewItem,
@@ -6371,7 +6311,7 @@ function CustomInputSet(props) {
6371
6311
  isTopAligned: areButtonsTopAligned
6372
6312
  })]
6373
6313
  }, keys[index]);
6374
- }), jsxRuntime.jsx(ExpandButton, {
6314
+ }), jsxRuntime.jsx(ExpandButton$1, {
6375
6315
  totalValues: totalAmount,
6376
6316
  isExpanded: isExpanded,
6377
6317
  onExpand: toggleExpansion
@@ -6444,11 +6384,11 @@ const convertTypeValuesToOptions$1 = reselect.defaultMemoize(typeValues => _mapI
6444
6384
  function CustomEnumInput(props) {
6445
6385
  const options = convertTypeValuesToOptions$1(_valuesInstanceProperty__default["default"](props.fieldDefinition.type));
6446
6386
  const handleChange = makeChangeHandler(rawValue => {
6447
- props.setFieldValue(props.name, rawValue);
6387
+ props.setFieldValue(props.name, !rawValue ? undefined : rawValue);
6448
6388
  props.renderWarnings && props.handleWarningChange(props.name, props.fieldDefinition, rawValue);
6449
6389
  });
6450
6390
  const tooltipTitle = props.value ? _findInstanceProperty__default["default"](options).call(options, option => option.value === props.value)?.label ?? '' : '';
6451
- return jsxRuntime.jsx(CustomFieldTooltip, {
6391
+ return jsxRuntime.jsx(CustomFieldTooltip$1, {
6452
6392
  title: tooltipTitle,
6453
6393
  children: jsxRuntime.jsx(uiKit.SelectInput, {
6454
6394
  isClearable: !props.fieldDefinition.required,
@@ -6494,7 +6434,7 @@ function CustomLocalizedEnumInput(props) {
6494
6434
  props.renderWarnings && props.handleWarningChange(props.name, props.fieldDefinition, rawValue);
6495
6435
  });
6496
6436
  const tooltipTitle = props.value ? _findInstanceProperty__default["default"](options).call(options, option => option.value === props.value)?.label ?? '' : '';
6497
- return jsxRuntime.jsx(CustomFieldTooltip, {
6437
+ return jsxRuntime.jsx(CustomFieldTooltip$1, {
6498
6438
  title: tooltipTitle,
6499
6439
  children: jsxRuntime.jsx(uiKit.SelectInput, {
6500
6440
  id: props.name,
@@ -6548,7 +6488,7 @@ function CustomLocalizedTextInput(props) {
6548
6488
  });
6549
6489
  const InputComponent = isMultiLine ? uiKit.LocalizedMultilineTextInput : uiKit.LocalizedTextInput;
6550
6490
  const tooltipTitle = isMultiLine ? '' : value ? value[language] ?? '' : '';
6551
- return jsxRuntime.jsx(CustomFieldTooltip, {
6491
+ return jsxRuntime.jsx(CustomFieldTooltip$1, {
6552
6492
  title: tooltipTitle,
6553
6493
  children: jsxRuntime.jsx(InputComponent, {
6554
6494
  id: props.name,
@@ -6660,7 +6600,7 @@ function CustomMoneyInput(props) {
6660
6600
  CustomMoneyInput.displayName = 'CustomMoneyInput';
6661
6601
 
6662
6602
  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; }
6663
- 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; }
6603
+ 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; }
6664
6604
  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 } } } };
6665
6605
  const mapAttributeDefinition = definition => {
6666
6606
  var _context, _context2, _context3, _context4;
@@ -6699,15 +6639,14 @@ function useNestedProductType(fieldDefinition) {
6699
6639
  loading = _useQuery.loading,
6700
6640
  error = _useQuery.error;
6701
6641
  if (!loading && !error) {
6702
- var _context5;
6703
- const attributeDefinitions = _mapInstanceProperty__default["default"](_context5 = data.productType.attributeDefinitions.results).call(_context5, mapAttributeDefinition);
6642
+ const attributeDefinitions = data.productType?.attributeDefinitions.results.map(mapAttributeDefinition);
6704
6643
  return {
6705
6644
  loading: false,
6706
6645
  error: false,
6707
- productType: {
6646
+ productType: data.productType ? {
6708
6647
  name: data.productType.name,
6709
6648
  attributeDefinitions
6710
- }
6649
+ } : null
6711
6650
  };
6712
6651
  }
6713
6652
  return {
@@ -6717,9 +6656,10 @@ function useNestedProductType(fieldDefinition) {
6717
6656
  }
6718
6657
 
6719
6658
  const NestingLevelContext = /*#__PURE__*/React.createContext(0);
6659
+ var NestingLevelContext$1 = NestingLevelContext;
6720
6660
 
6721
6661
  // eslint-disable-next-line import/prefer-default-export
6722
- const messages$w = reactIntl.defineMessages({
6662
+ const messages$A = reactIntl.defineMessages({
6723
6663
  aboveFifthLevelWarning: {
6724
6664
  id: 'attributeInputByType.nestedAttributes.aboveFifthLevelWarning',
6725
6665
  description: 'Warning message shown when nested attribute are above the fifth level',
@@ -6731,8 +6671,9 @@ const messages$w = reactIntl.defineMessages({
6731
6671
  defaultMessage: 'Empty'
6732
6672
  }
6733
6673
  });
6674
+ var customFieldsMessages = messages$A;
6734
6675
 
6735
- var messages$v = reactIntl.defineMessages({
6676
+ var messages$z = reactIntl.defineMessages({
6736
6677
  updateButton: {
6737
6678
  id: 'NestedAttributes.Details.updateButton',
6738
6679
  description: 'Update button label',
@@ -6817,7 +6758,7 @@ const EditButton = props => {
6817
6758
  formatMessage = _useIntl.formatMessage;
6818
6759
  return jsxRuntime.jsx(uiKit.Tooltip, {
6819
6760
  placement: "top",
6820
- title: formatMessage(messages$v.editTooltip),
6761
+ title: formatMessage(messages$z.editTooltip),
6821
6762
  children: jsxRuntime.jsx(uiKit.IconButton, {
6822
6763
  label: "Edit",
6823
6764
  isDisabled: props.isDisabled,
@@ -6833,12 +6774,12 @@ const DropChangesConfirmation = props => {
6833
6774
  formatMessage = _useIntl2.formatMessage;
6834
6775
  return jsxRuntime.jsx(applicationComponents.ConfirmationDialog, {
6835
6776
  isOpen: props.isOpen || false,
6836
- title: formatMessage(messages$v.confirmationDialogTitle),
6837
- labelPrimary: formatMessage(messages$v.nestedAttributesConfirmLabel),
6777
+ title: formatMessage(messages$z.confirmationDialogTitle),
6778
+ labelPrimary: formatMessage(messages$z.nestedAttributesConfirmLabel),
6838
6779
  onConfirm: props.onConfirm,
6839
6780
  onCancel: props.onCancel,
6840
6781
  children: jsxRuntime.jsx(uiKit.Text.Body, {
6841
- intlMessage: messages$v.confirmationDialogBody
6782
+ intlMessage: messages$z.confirmationDialogBody
6842
6783
  })
6843
6784
  });
6844
6785
  };
@@ -6863,11 +6804,11 @@ const NestedAttributeModalPage = props => {
6863
6804
  children: [jsxRuntime.jsx(uiKit.SecondaryButton, {
6864
6805
  isDisabled: !formik$1.dirty,
6865
6806
  iconLeft: jsxRuntime.jsx(uiKit.RevertIcon, {}),
6866
- label: formatMessage(messages$v.cancelButton),
6807
+ label: formatMessage(messages$z.cancelButton),
6867
6808
  onClick: formik$1.resetForm
6868
6809
  }), jsxRuntime.jsx(applicationComponents.CustomFormModalPage.FormPrimaryButton, {
6869
6810
  isDisabled: !formik$1.dirty,
6870
- label: formatMessage(messages$v.updateButton),
6811
+ label: formatMessage(messages$z.updateButton),
6871
6812
  onClick: formik$1.handleSubmit
6872
6813
  })]
6873
6814
  }),
@@ -6897,19 +6838,19 @@ NestedAttributeModalPage.displayName = 'NestedAttributeModalPage';
6897
6838
  const MaxNestingLevelReached = () => jsxRuntime.jsx(uiKit.FieldLabel, {
6898
6839
  title: "",
6899
6840
  hint: jsxRuntime.jsx(uiKit.Text.Body, {
6900
- intlMessage: messages$w.aboveFifthLevelWarning
6841
+ intlMessage: customFieldsMessages.aboveFifthLevelWarning
6901
6842
  }),
6902
6843
  hintIcon: jsxRuntime.jsx(uiKit.WarningIcon, {})
6903
6844
  });
6904
6845
  MaxNestingLevelReached.displayName = 'MaxNestingLevelReached';
6905
6846
  const NestedInputControls = props => {
6906
- const nextNestingLevel = React.useContext(NestingLevelContext);
6847
+ const nextNestingLevel = React.useContext(NestingLevelContext$1);
6907
6848
  const _useIntl4 = reactIntl.useIntl(),
6908
6849
  formatMessage = _useIntl4.formatMessage;
6909
6850
  if (nextNestingLevel >= 6) return jsxRuntime.jsx(MaxNestingLevelReached, {});
6910
6851
  const hasAttributes = props.productType.attributeDefinitions.length > 0;
6911
6852
  if (!hasAttributes) return jsxRuntime.jsx(uiKit.Text.Body, {
6912
- intlMessage: messages$v.emptyProductType,
6853
+ intlMessage: messages$z.emptyProductType,
6913
6854
  tone: "secondary"
6914
6855
  });
6915
6856
  return jsxRuntime.jsxs(uiKit.Spacings.Inline, {
@@ -6923,7 +6864,7 @@ const NestedInputControls = props => {
6923
6864
  children: props.productType.name
6924
6865
  }), props.isEmpty && jsxRuntime.jsx("span", {
6925
6866
  children: jsxRuntime.jsx(uiKit.Tag, {
6926
- children: formatMessage(messages$w.emptySetItem)
6867
+ children: formatMessage(customFieldsMessages.emptySetItem)
6927
6868
  })
6928
6869
  })]
6929
6870
  }), jsxRuntime.jsx(EditButton, {
@@ -6945,7 +6886,7 @@ const CustomNestedInput = /*#__PURE__*/React.memo(props => {
6945
6886
  const parentFormik = formik.useFormikContext();
6946
6887
  const showNotification = actionsGlobal.useShowNotification();
6947
6888
  const attributesForm = applicationComponents.useModalState();
6948
- const nestingLevel = React.useContext(NestingLevelContext);
6889
+ const nestingLevel = React.useContext(NestingLevelContext$1);
6949
6890
  const _useNestedProductType = useNestedProductType(props.fieldDefinition),
6950
6891
  productType = _useNestedProductType.productType;
6951
6892
  if (!productType) return null;
@@ -6974,7 +6915,7 @@ const CustomNestedInput = /*#__PURE__*/React.memo(props => {
6974
6915
  max: "scale",
6975
6916
  children: jsxRuntime.jsx("div", {
6976
6917
  "data-testid": props.name,
6977
- children: jsxRuntime.jsx(NestingLevelContext.Provider, {
6918
+ children: jsxRuntime.jsx(NestingLevelContext$1.Provider, {
6978
6919
  value: nestingLevel + 1,
6979
6920
  children: jsxRuntime.jsx(formik.Formik, {
6980
6921
  enableReinitialize: true,
@@ -6985,7 +6926,7 @@ const CustomNestedInput = /*#__PURE__*/React.memo(props => {
6985
6926
  if (nestingLevel !== 0) parentFormik.submitForm();else showNotification({
6986
6927
  kind: 'success',
6987
6928
  domain: constants.DOMAINS.SIDE,
6988
- text: formatMessage(messages$v.attributeUpdateSucceeded)
6929
+ text: formatMessage(messages$z.attributeUpdateSucceeded)
6989
6930
  });
6990
6931
  setSubmitting(false);
6991
6932
  },
@@ -7011,6 +6952,7 @@ const CustomNestedInput = /*#__PURE__*/React.memo(props => {
7011
6952
  });
7012
6953
  });
7013
6954
  CustomNestedInput.displayName = 'CustomNestedInput';
6955
+ var CustomNestedInput$1 = CustomNestedInput;
7014
6956
 
7015
6957
  function CustomNumberInput(props) {
7016
6958
  const value = props.value ?? '';
@@ -7088,7 +7030,7 @@ CustomCategoryReferenceInput.displayName = 'CustomCategoryReferenceInput';
7088
7030
 
7089
7031
  function CustomChannelReferenceInput(props) {
7090
7032
  const value = props.value?.id || '';
7091
- return jsxRuntime.jsx(ChannelPickerInput, {
7033
+ return jsxRuntime.jsx(ChannelPickerInput$1, {
7092
7034
  value: value,
7093
7035
  name: props.name,
7094
7036
  isClearable: !props.fieldDefinition.required,
@@ -7103,7 +7045,7 @@ function CustomChannelReferenceInput(props) {
7103
7045
  }
7104
7046
  CustomChannelReferenceInput.displayName = 'CustomChannelReferenceInput';
7105
7047
 
7106
- var messages$u = reactIntl.defineMessages({
7048
+ var messages$y = reactIntl.defineMessages({
7107
7049
  noProductsFound: {
7108
7050
  id: 'Shared.ProductPickerInput.noProductsFound',
7109
7051
  description: 'The message to display when no products were found',
@@ -7156,7 +7098,7 @@ const ProductPickerInput = _ref => {
7156
7098
  };
7157
7099
  }, [formatLocalizedFieldToString]);
7158
7100
  const prefixSearchFields = React.useMemo(() => [`masterData.current.name.${dataLocale}`, 'key'], [dataLocale]);
7159
- const loadOptions = useLoadOptions({
7101
+ const loadOptions = useLoadOptions$1({
7160
7102
  query: GetProductsQuery,
7161
7103
  prefixSearchFields
7162
7104
  });
@@ -7177,8 +7119,8 @@ const ProductPickerInput = _ref => {
7177
7119
  setLoadingError(error);
7178
7120
  onError(error);
7179
7121
  }), [loadOptions, onError, convertProductToOption]);
7180
- const loadOptionsDebounced = useDebouncedPromiseCallback(handleLoadOptions, 300);
7181
- const _useHandlers = useHandlers(onChange),
7122
+ const loadOptionsDebounced = useDebouncedPromiseCallback$1(handleLoadOptions, 300);
7123
+ const _useHandlers = useHandlers$1(onChange),
7182
7124
  _useHandlers2 = _slicedToArray(_useHandlers, 2),
7183
7125
  handleInternalInputChange = _useHandlers2[0],
7184
7126
  handleChange = _useHandlers2[1];
@@ -7194,14 +7136,14 @@ const ProductPickerInput = _ref => {
7194
7136
  const tooltipTitle = currentOption?.data?.label ?? '';
7195
7137
  return jsxRuntime.jsx(uiKit.Constraints.Horizontal, {
7196
7138
  max: "scale",
7197
- children: currentOption.loading ? jsxRuntime.jsx(CenteredLoadingSpinner, {}) : jsxRuntime.jsxs(uiKit.Spacings.Stack, {
7139
+ children: currentOption.loading ? jsxRuntime.jsx(CenteredLoadingSpinner$1, {}) : jsxRuntime.jsxs(uiKit.Spacings.Stack, {
7198
7140
  scale: "xs",
7199
- children: [jsxRuntime.jsx(CustomFieldTooltip, {
7141
+ children: [jsxRuntime.jsx(CustomFieldTooltip$1, {
7200
7142
  title: tooltipTitle,
7201
7143
  children: jsxRuntime.jsx(uiKit.AsyncSelectInput, {
7202
7144
  id: name,
7203
7145
  name: name,
7204
- placeholder: formatMessage(messages$u.placeholder),
7146
+ placeholder: formatMessage(messages$y.placeholder),
7205
7147
  loadOptions: loadOptionsDebounced,
7206
7148
  defaultOptions: [],
7207
7149
  isClearable: isClearable,
@@ -7215,7 +7157,7 @@ const ProductPickerInput = _ref => {
7215
7157
  onInputChange: handleInputChange,
7216
7158
  onBlur: onBlur,
7217
7159
  value: currentOption.data,
7218
- noOptionsMessage: () => isLoadingFailed ? null : formatMessage(messages$u.noProductsFound),
7160
+ noOptionsMessage: () => isLoadingFailed ? null : formatMessage(messages$y.noProductsFound),
7219
7161
  hasError: hasError || isLoadingFailed,
7220
7162
  menuPortalZIndex: Z_INDEX_DROPDOWN,
7221
7163
  menuPortalTarget: document.body,
@@ -7229,10 +7171,11 @@ const ProductPickerInput = _ref => {
7229
7171
  });
7230
7172
  };
7231
7173
  ProductPickerInput.displayName = 'ProductPickerInput';
7174
+ var ProductPickerInput$1 = ProductPickerInput;
7232
7175
 
7233
7176
  function CustomProductReferenceInput(props) {
7234
7177
  const value = props.value?.id || '';
7235
- return jsxRuntime.jsx(ProductPickerInput, {
7178
+ return jsxRuntime.jsx(ProductPickerInput$1, {
7236
7179
  value: value,
7237
7180
  name: props.name,
7238
7181
  isClearable: !props.fieldDefinition.required,
@@ -7250,7 +7193,7 @@ CustomProductReferenceInput.displayName = 'CustomProductReferenceInput';
7250
7193
 
7251
7194
  function CustomProductTypeReferenceInput(props) {
7252
7195
  const value = props.value?.id || '';
7253
- return jsxRuntime.jsx(ProductTypePickerInput, {
7196
+ return jsxRuntime.jsx(ProductTypePickerInput$1, {
7254
7197
  value: value,
7255
7198
  name: props.name,
7256
7199
  isClearable: !props.fieldDefinition.required,
@@ -7267,7 +7210,7 @@ CustomProductTypeReferenceInput.displayName = 'CustomProductTypeReferenceInput';
7267
7210
 
7268
7211
  function CustomRawIdReferenceInput(props) {
7269
7212
  const value = props.value?.id || '';
7270
- return jsxRuntime.jsx(CustomFieldTooltip, {
7213
+ return jsxRuntime.jsx(CustomFieldTooltip$1, {
7271
7214
  title: value,
7272
7215
  children: jsxRuntime.jsx(uiKit.TextInput, {
7273
7216
  id: props.name,
@@ -7285,7 +7228,7 @@ CustomRawIdReferenceInput.displayName = 'CustomRawIdReferenceInput';
7285
7228
 
7286
7229
  function CustomStateReferenceInput(props) {
7287
7230
  const value = props.value?.id || '';
7288
- return jsxRuntime.jsx(StatePickerInput, {
7231
+ return jsxRuntime.jsx(StatePickerInput$1, {
7289
7232
  value: value,
7290
7233
  name: props.name,
7291
7234
  isClearable: !props.fieldDefinition.required,
@@ -7337,7 +7280,7 @@ function CustomTextInput(props) {
7337
7280
  props.renderWarnings && props.handleWarningChange(props.name, props.fieldDefinition, rawValue);
7338
7281
  });
7339
7282
  const tooltipValue = isMultiLine ? '' : value;
7340
- return jsxRuntime.jsx(CustomFieldTooltip, {
7283
+ return jsxRuntime.jsx(CustomFieldTooltip$1, {
7341
7284
  title: tooltipValue,
7342
7285
  children: jsxRuntime.jsx(InputComponent, {
7343
7286
  id: props.name,
@@ -7416,7 +7359,7 @@ const nonSetComponents = {
7416
7359
  [CUSTOM_FIELD_TYPES.time]: CustomTimeInput,
7417
7360
  [CUSTOM_FIELD_TYPES.datetime]: CustomDateTimeInput,
7418
7361
  [CUSTOM_FIELD_TYPES.date]: CustomDateTimeInput,
7419
- [CUSTOM_FIELD_TYPES.nested]: CustomNestedInput
7362
+ [CUSTOM_FIELD_TYPES.nested]: CustomNestedInput$1
7420
7363
  };
7421
7364
  const CustomFieldInput = /*#__PURE__*/React.memo(props => {
7422
7365
  const InputComponent = React.useMemo(() => {
@@ -7449,8 +7392,9 @@ const CustomFieldInput = /*#__PURE__*/React.memo(props => {
7449
7392
  });
7450
7393
  });
7451
7394
  CustomFieldInput.displayName = 'CustomFieldInput';
7395
+ var CustomFieldInput$1 = CustomFieldInput;
7452
7396
 
7453
- var messages$t = reactIntl.defineMessages({
7397
+ var messages$x = reactIntl.defineMessages({
7454
7398
  productReferenceLabel: {
7455
7399
  id: 'CustomFieldsLabel.productReferenceLabel',
7456
7400
  description: 'Label shown above the product picker input.',
@@ -7519,7 +7463,7 @@ const CustomFieldsLabelHint = _ref2 => {
7519
7463
  children: [jsxRuntime.jsx(uiKit.WarningIcon, {
7520
7464
  size: "medium",
7521
7465
  color: "warning"
7522
- }), jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$P({}, messages$t.cartDiscountMoreThan500))]
7466
+ }), jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$P({}, messages$x.cartDiscountMoreThan500))]
7523
7467
  });
7524
7468
  }
7525
7469
  return l10n.formatLocalizedString(fieldDefinition, {
@@ -7533,8 +7477,8 @@ function CustomFieldsProductTypeReferenceSubtitle() {
7533
7477
  formatMessage = _useIntl.formatMessage;
7534
7478
  const _usePimStatus = usePimStatus(),
7535
7479
  isProjectIndexed = _usePimStatus.isProjectIndexed;
7536
- if (isProjectIndexed) return formatMessage(messages$t.productTypeReferenceLabelI);
7537
- return formatMessage(messages$t.productTypeReferenceLabel);
7480
+ if (isProjectIndexed) return formatMessage(messages$x.productTypeReferenceLabelI);
7481
+ return formatMessage(messages$x.productTypeReferenceLabel);
7538
7482
  }
7539
7483
 
7540
7484
  // TODO(pa3): this logic may be misplaced and probably
@@ -7550,7 +7494,7 @@ function CustomFieldsLabelSubtitle(_ref3) {
7550
7494
  const referenceTypeId = type.referenceTypeId;
7551
7495
  const referenceTypeName = capitalizeFirst(referenceTypeId);
7552
7496
  if (_includesInstanceProperty__default["default"](_context = [SEARCHABLE_REFERENCES.category, SEARCHABLE_REFERENCES.cartDiscount]).call(_context, referenceTypeId)) return referenceTypeName;
7553
- 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`;
7497
+ 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`;
7554
7498
  }
7555
7499
  const Portal = props => /*#__PURE__*/ReactDOM__default["default"].createPortal(props.children, document.body);
7556
7500
  var _ref$1 = process.env.NODE_ENV === "production" ? {
@@ -7568,7 +7512,7 @@ function CustomFieldsCountIndicator(_ref4) {
7568
7512
  const _useIntl3 = reactIntl.useIntl(),
7569
7513
  formatMessage = _useIntl3.formatMessage;
7570
7514
  return assignedAttributeGroups?.length > 1 ? jsxRuntime.jsx(uiKit.Tooltip, {
7571
- title: formatMessage(messages$t.attributeGroupCountTooltip, {
7515
+ title: formatMessage(messages$x.attributeGroupCountTooltip, {
7572
7516
  attributeGroups: _mapInstanceProperty__default["default"](assignedAttributeGroups).call(assignedAttributeGroups, assignedAttributeGroup => formatLocalizedField(assignedAttributeGroup.nameAllLocales)).join(', '),
7573
7517
  count: assignedAttributeGroups.length
7574
7518
  }),
@@ -7623,8 +7567,9 @@ const CustomFieldsLabel = /*#__PURE__*/React.memo(_ref5 => {
7623
7567
  });
7624
7568
  });
7625
7569
  CustomFieldsLabel.displayName = 'CustomFieldsTitle';
7570
+ var CustomFieldsLabel$1 = CustomFieldsLabel;
7626
7571
 
7627
- var messages$s = reactIntl.defineMessages({
7572
+ var messages$w = reactIntl.defineMessages({
7628
7573
  referencedProductType: {
7629
7574
  id: 'NestedAttributes.referencedProductType',
7630
7575
  description: 'Product type referenced hint',
@@ -7635,7 +7580,7 @@ var messages$s = reactIntl.defineMessages({
7635
7580
  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; }
7636
7581
  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; }
7637
7582
  function ProductTypeReference(props) {
7638
- const productTypeMessage = _objectSpread$O(_objectSpread$O({}, messages$s.referencedProductType), {}, {
7583
+ const productTypeMessage = _objectSpread$O(_objectSpread$O({}, messages$w.referencedProductType), {}, {
7639
7584
  values: {
7640
7585
  productTypeName: props.productType.name
7641
7586
  }
@@ -7663,7 +7608,7 @@ function CustomNestedFieldInput(props) {
7663
7608
  })]
7664
7609
  });
7665
7610
  if (!productType) return null;
7666
- const InputComponent = isSet ? CustomInputSet : CustomNestedInput;
7611
+ const InputComponent = isSet ? CustomInputSet : CustomNestedInput$1;
7667
7612
  return jsxRuntime.jsxs(jsxRuntime.Fragment, {
7668
7613
  children: [jsxRuntime.jsx(ProductTypeReference, {
7669
7614
  productType: productType
@@ -7887,7 +7832,7 @@ const CustomFieldsInternal = _ref => {
7887
7832
  };
7888
7833
  return undefined;
7889
7834
  };
7890
- const FieldComponent = isNested(fieldDefinition) ? CustomNestedFieldInput : CustomFieldInput;
7835
+ const FieldComponent = isNested(fieldDefinition) ? CustomNestedFieldInput : CustomFieldInput$1;
7891
7836
  const fieldProps = {
7892
7837
  name: fieldName,
7893
7838
  value: value,
@@ -7915,7 +7860,7 @@ const CustomFieldsInternal = _ref => {
7915
7860
  "aria-invalid": _Object$keys__default["default"](fieldErrors ?? {}).length > 0,
7916
7861
  "aria-errormessage": `${fieldName}-error`,
7917
7862
  id: `${fieldName}-error`,
7918
- children: [jsxRuntime.jsx(CustomFieldsLabel, {
7863
+ children: [jsxRuntime.jsx(CustomFieldsLabel$1, {
7919
7864
  name: fieldName,
7920
7865
  fieldDefinition: fieldDefinition
7921
7866
  }), jsxRuntime.jsxs(uiKit.Spacings.Stack, {
@@ -7923,7 +7868,7 @@ const CustomFieldsInternal = _ref => {
7923
7868
  alignItems: "stretch",
7924
7869
  children: [WrapperComponent ? jsxRuntime.jsx(WrapperComponent, {
7925
7870
  children: Field
7926
- }) : Field, props.renderWarnings && status?.warnings[fieldName] && props.renderCustomWarnings(fieldDefinition), jsxRuntime.jsx(CustomFieldErrors, {
7871
+ }) : Field, props.renderWarnings && status?.warnings[fieldName] && props.renderCustomWarnings(fieldDefinition), jsxRuntime.jsx(CustomFieldErrors$1, {
7927
7872
  isTouched: isTouched,
7928
7873
  errors: fieldErrors
7929
7874
  })]
@@ -7939,6 +7884,7 @@ CustomFieldsInternal.displayName = 'CustomFieldsInternal';
7939
7884
  CustomFieldsInternal.defaultProps = {
7940
7885
  renderCustomWarnings: () => null
7941
7886
  };
7887
+ var CustomFieldsInternal$1 = CustomFieldsInternal;
7942
7888
 
7943
7889
  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; }
7944
7890
  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; }
@@ -8034,7 +7980,7 @@ function ProductAttributes(_ref) {
8034
7980
  max: "scale",
8035
7981
  children: jsxRuntime.jsx(uiKit.Spacings.Stack, {
8036
7982
  scale: "xl",
8037
- children: jsxRuntime.jsx(CustomFieldsInternal, {
7983
+ children: jsxRuntime.jsx(CustomFieldsInternal$1, {
8038
7984
  name: props.name,
8039
7985
  isReadOnly: props.isReadOnly,
8040
7986
  isDisabled: props.isDisabled,
@@ -8069,7 +8015,7 @@ function ProductAttributeInput(props) {
8069
8015
  // Just don't want to go with another several-weeks long refactoring and
8070
8016
  // will address this step by step.
8071
8017
  return jsxRuntime.jsx(formik.Formik, {
8072
- children: jsxRuntime.jsx(CustomFieldInput, {
8018
+ children: jsxRuntime.jsx(CustomFieldInput$1, {
8073
8019
  value: value,
8074
8020
  name: props.name,
8075
8021
  isDisabled: props.isDisabled,
@@ -8155,7 +8101,7 @@ const emptyStoreOption$1 = intl => [{
8155
8101
  function ProductSelectionsAsyncSelectDropdown(props) {
8156
8102
  const intl = reactIntl.useIntl();
8157
8103
  const enableExcludingProducts = applicationShell.useFeatureToggle(EXCLUDING_PRODUCTS);
8158
- const productSelectionsFetcher = useProductSelectionsFetcher({
8104
+ const productSelectionsFetcher = useProductSelectionsFetcher$1({
8159
8105
  limit: props.upperProductSelectionsLimit
8160
8106
  });
8161
8107
  const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => ({
@@ -8211,7 +8157,7 @@ function ProductSelectionsAsyncSelectDropdown(props) {
8211
8157
  options: emptyStoreOption$1(intl)
8212
8158
  }];
8213
8159
  };
8214
- if (productSelectionsFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner, {});
8160
+ if (productSelectionsFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner$1, {});
8215
8161
  return jsxRuntime.jsx(uiKit.AsyncSelectField, {
8216
8162
  id: props.id,
8217
8163
  name: props.name,
@@ -8271,7 +8217,7 @@ const mapProductSelectionsToOptions$1 = memoize__default["default"](function ()
8271
8217
  function ProductSelectionBasicSelectDropdown(props) {
8272
8218
  const intl = reactIntl.useIntl();
8273
8219
  const enableExcludingProducts = applicationShell.useFeatureToggle(EXCLUDING_PRODUCTS);
8274
- const productSelectionsFetcher = useProductSelectionsFetcher({
8220
+ const productSelectionsFetcher = useProductSelectionsFetcher$1({
8275
8221
  limit: props.lowerProductSelectionsLimit
8276
8222
  });
8277
8223
  const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => ({
@@ -8280,7 +8226,7 @@ function ProductSelectionBasicSelectDropdown(props) {
8280
8226
  })),
8281
8227
  projectLanguages = _useApplicationContex.projectLanguages,
8282
8228
  dataLocale = _useApplicationContex.dataLocale;
8283
- if (productSelectionsFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner, {});
8229
+ if (productSelectionsFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner$1, {});
8284
8230
  const productSelections = productSelectionsFetcher.productSelections?.results ?? [];
8285
8231
  const filteredProductSelections = _filterInstanceProperty__default["default"](productSelections).call(productSelections, ps => {
8286
8232
  var _context;
@@ -8339,6 +8285,7 @@ const useProductSelectionsByFieldFetcher = (productSelections, predicateField) =
8339
8285
  isLoading: productSelectionsQuery.loading
8340
8286
  };
8341
8287
  };
8288
+ var useProductSelectionsByFieldFetcher$1 = useProductSelectionsByFieldFetcher;
8342
8289
 
8343
8290
  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 } } } };
8344
8291
  const mapProductSelectionsToOptions = memoize__default["default"](_ref => {
@@ -8376,7 +8323,7 @@ const createQueryVariables$3 = _ref3 => {
8376
8323
  var _context;
8377
8324
  let searchText = _ref3.searchText;
8378
8325
  const sanitizedSearchText = sanitize(_trimInstanceProperty__default["default"](searchText).call(searchText, searchText));
8379
- const idQuery = isUUID(sanitizedSearchText) && `id = "${sanitizedSearchText}"`;
8326
+ const idQuery = isUUID$1(sanitizedSearchText) && `id = "${sanitizedSearchText}"`;
8380
8327
  const keyQuery = `key = "${sanitizedSearchText}"`;
8381
8328
  const searchTextQuery = _filterInstanceProperty__default["default"](_context = [idQuery, keyQuery]).call(_context, Boolean).join(' or ');
8382
8329
  return {
@@ -8398,7 +8345,7 @@ function ProductSelectionsSearchSelectDropdown(props) {
8398
8345
  })),
8399
8346
  projectLanguages = _useApplicationContex.projectLanguages,
8400
8347
  dataLocale = _useApplicationContex.dataLocale;
8401
- const productSelectionsByFieldFetcher = useProductSelectionsByFieldFetcher(props.value, props.renderSelectInputOptionValuesByField);
8348
+ const productSelectionsByFieldFetcher = useProductSelectionsByFieldFetcher$1(props.value, props.renderSelectInputOptionValuesByField);
8402
8349
  const handleLoadOptions = async searchText => {
8403
8350
  const _await$client$query = await client$1.query({
8404
8351
  query: ProductSelectionsPickerFetcher,
@@ -8431,7 +8378,7 @@ function ProductSelectionsSearchSelectDropdown(props) {
8431
8378
  const currentProductSelection = _findInstanceProperty__default["default"](productionSelectionResults).call(productionSelectionResults, productSelection => productSelection.id === productSelectionId);
8432
8379
  props.onChange(currentProductSelection);
8433
8380
  };
8434
- if (productSelectionsByFieldFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner, {});
8381
+ if (productSelectionsByFieldFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner$1, {});
8435
8382
  return jsxRuntime.jsx(uiKit.SearchSelectField, {
8436
8383
  id: props.id,
8437
8384
  name: props.name,
@@ -8492,7 +8439,7 @@ function ModeSelectInputOption(props) {
8492
8439
  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; }
8493
8440
  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; }
8494
8441
  function ProductSelectionsPicker(props) {
8495
- const productSelectionsTotalFetcher = useProductSelectionsTotalFetcher();
8442
+ const productSelectionsTotalFetcher = useProductSelectionsTotalFetcher$1();
8496
8443
  const components = React.useMemo(() => {
8497
8444
  return {
8498
8445
  Option: optionInnerProps => {
@@ -8509,7 +8456,7 @@ function ProductSelectionsPicker(props) {
8509
8456
  }
8510
8457
  };
8511
8458
  }, [props.optionType]);
8512
- if (productSelectionsTotalFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner, {});
8459
+ if (productSelectionsTotalFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner$1, {});
8513
8460
  const CustomProductSelectionsPicker = productSelectionsTotalFetcher.total <= props.lowerProductSelectionsLimit ? ProductSelectionBasicSelectDropdown : productSelectionsTotalFetcher.total <= props.upperProductSelectionsLimit ? ProductSelectionsAsyncSelectDropdown : ProductSelectionsSearchSelectDropdown;
8514
8461
  return jsxRuntime.jsx(uiKit.Spacings.Stack, {
8515
8462
  children: jsxRuntime.jsx(CustomProductSelectionsPicker, _objectSpread$F(_objectSpread$F({}, props), {}, {
@@ -8549,6 +8496,7 @@ const RequiredIndicator = _ref => {
8549
8496
  });
8550
8497
  };
8551
8498
  RequiredIndicator.displayName = 'RequiredIndicator';
8499
+ var RequiredIndicator$1 = RequiredIndicator;
8552
8500
 
8553
8501
  const ScrollToFieldError = () => {
8554
8502
  const formik$1 = formik.useFormikContext();
@@ -8584,8 +8532,9 @@ const ScrollToFieldError = () => {
8584
8532
  }, [dataLocale, isValid, submitCount]);
8585
8533
  return null;
8586
8534
  };
8535
+ var ScrollToFieldError$1 = ScrollToFieldError;
8587
8536
 
8588
- var messages$r = reactIntl.defineMessages({
8537
+ var messages$v = reactIntl.defineMessages({
8589
8538
  buttonLabel: {
8590
8539
  id: 'SearchInput.buttonLabel',
8591
8540
  description: 'Label for "Search" button.',
@@ -8639,14 +8588,15 @@ const SelectableFieldSearchInput = props => {
8639
8588
  });
8640
8589
  },
8641
8590
  onReset: props.onReset,
8642
- placeholder: props.placeholder ?? intl.formatMessage(messages$r.placeholder),
8591
+ placeholder: props.placeholder ?? intl.formatMessage(messages$v.placeholder),
8643
8592
  isDisabled: props.disabled
8644
8593
  })
8645
8594
  });
8646
8595
  };
8647
8596
  SelectableFieldSearchInput.displayName = 'SelectableFieldSearchInput';
8597
+ var SelectableFieldSearchInput$1 = SelectableFieldSearchInput;
8648
8598
 
8649
- var messages$q = reactIntl.defineMessages({
8599
+ var messages$u = reactIntl.defineMessages({
8650
8600
  basicSelectInputPlaceholder: {
8651
8601
  id: 'Shared.StoreSelectInput.basicSelectInputPlaceholder',
8652
8602
  description: 'The placeholder shown for basic select input',
@@ -8749,7 +8699,7 @@ const getValueFromOptions$1 = _ref => {
8749
8699
  return _findInstanceProperty__default["default"](mappedStoresListOptions).call(mappedStoresListOptions, store => currentlySelectedStores === store.value);
8750
8700
  };
8751
8701
  const emptyStoreOption = intl => [{
8752
- label: intl.formatMessage(messages$q.asyncSelectDropdownTypeAheadPrompt),
8702
+ label: intl.formatMessage(messages$u.asyncSelectDropdownTypeAheadPrompt),
8753
8703
  value: undefined,
8754
8704
  isDisabled: true
8755
8705
  }];
@@ -8762,7 +8712,7 @@ const StoresAsyncSelectInput = props => {
8762
8712
  dataLocale = _useApplicationContex.dataLocale,
8763
8713
  projectLanguages = _useApplicationContex.projectLanguages;
8764
8714
  const keysOfStores = props.allAccessibleStoreKeysThroughDataFencePermissions;
8765
- const storesListFetcher = useStoresListFetcher({
8715
+ const storesListFetcher = useStoresListFetcher$1({
8766
8716
  limit: 500,
8767
8717
  offset: 0,
8768
8718
  sort: 'createdAt asc',
@@ -8804,12 +8754,12 @@ const StoresAsyncSelectInput = props => {
8804
8754
  options: emptyStoreOption(intl)
8805
8755
  }];
8806
8756
  };
8807
- if (storesListFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner, {});
8757
+ if (storesListFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner$1, {});
8808
8758
  return jsxRuntime.jsxs(jsxRuntime.Fragment, {
8809
8759
  children: [jsxRuntime.jsx(uiKit.AsyncSelectInput, _objectSpread$E(_objectSpread$E(_objectSpread$E({
8810
8760
  id: props.id,
8811
8761
  name: props.name,
8812
- placeholder: intl.formatMessage(messages$q.basicSelectInputPlaceholder),
8762
+ placeholder: intl.formatMessage(messages$u.basicSelectInputPlaceholder),
8813
8763
  horizontalConstraint: props.horizontalConstraint,
8814
8764
  loadOptions: handleLoadOptions,
8815
8765
  defaultOptions: true,
@@ -8851,6 +8801,7 @@ StoresAsyncSelectInput.displayName = 'StoresAsyncSelectInput';
8851
8801
  StoresAsyncSelectInput.defaultProps = {
8852
8802
  shouldFetchProductSelections: false
8853
8803
  };
8804
+ var StoresAsyncSelectInput$1 = StoresAsyncSelectInput;
8854
8805
 
8855
8806
  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; }
8856
8807
  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; }
@@ -8867,7 +8818,7 @@ const StoresBasicSelectInput = props => {
8867
8818
  dataLocale = _useApplicationContex.dataLocale,
8868
8819
  projectLanguages = _useApplicationContex.projectLanguages;
8869
8820
  const keysOfStores = props.allAccessibleStoreKeysThroughDataFencePermissions;
8870
- const storesListFetcher = useStoresListFetcher({
8821
+ const storesListFetcher = useStoresListFetcher$1({
8871
8822
  limit: 60,
8872
8823
  offset: 0,
8873
8824
  sort: 'createdAt asc',
@@ -8907,12 +8858,12 @@ const StoresBasicSelectInput = props => {
8907
8858
  });
8908
8859
  }
8909
8860
  };
8910
- if (storesListFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner, {});
8861
+ if (storesListFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner$1, {});
8911
8862
  return jsxRuntime.jsxs(jsxRuntime.Fragment, {
8912
8863
  children: [jsxRuntime.jsx(uiKit.SelectInput, _objectSpread$D(_objectSpread$D(_objectSpread$D({
8913
8864
  id: props.id,
8914
8865
  name: props.name,
8915
- placeholder: props.placeholder || intl.formatMessage(messages$q.basicSelectInputPlaceholder),
8866
+ placeholder: props.placeholder || intl.formatMessage(messages$u.basicSelectInputPlaceholder),
8916
8867
  horizontalConstraint: props.horizontalConstraint,
8917
8868
  options: mappedStoresListOptions,
8918
8869
  isMulti: props.isMulti,
@@ -8948,6 +8899,7 @@ StoresBasicSelectInput.displayName = 'StoresBasicSelectInput';
8948
8899
  StoresBasicSelectInput.defaultProps = {
8949
8900
  shouldFetchProductSelections: false
8950
8901
  };
8902
+ var StoresBasicSelectInput$1 = StoresBasicSelectInput;
8951
8903
 
8952
8904
  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 } } } };
8953
8905
  const useTotalNumberOfStoresFetcher = projectKey => {
@@ -8963,18 +8915,7 @@ const useTotalNumberOfStoresFetcher = projectKey => {
8963
8915
  isLoading: totalNumberOfStoresQuery.loading
8964
8916
  };
8965
8917
  };
8966
-
8967
- const handlers$2 = {
8968
- TotalNumberOfStores: {
8969
- all: total => msw.graphql.query('TotalNumberOfStores', (req, res, ctx) => {
8970
- return res(ctx.data({
8971
- totalNumberOfStores: {
8972
- total
8973
- }
8974
- }));
8975
- })
8976
- }
8977
- };
8918
+ var useTotalNumberOfStoresFetcher$1 = useTotalNumberOfStoresFetcher;
8978
8919
 
8979
8920
  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 } } } };
8980
8921
  const createQueryVariables$2 = (stores, predicateField, shouldFetchProductSelections) => ({
@@ -9002,6 +8943,7 @@ const useStoresByFieldFetcher = function (stores, predicateField, projectKey) {
9002
8943
  isLoading: storesQuery.loading
9003
8944
  };
9004
8945
  };
8946
+ var useStoresByFieldFetcher$1 = useStoresByFieldFetcher;
9005
8947
 
9006
8948
  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; }
9007
8949
  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; }
@@ -9040,7 +8982,7 @@ const createQueryVariables$1 = _ref => {
9040
8982
  excludeProductSelections: !shouldFetchProductSelections
9041
8983
  };
9042
8984
  }
9043
- const idQuery = isUUID(sanitizedSearchText) && `id = "${sanitizedSearchText}"`;
8985
+ const idQuery = isUUID$1(sanitizedSearchText) && `id = "${sanitizedSearchText}"`;
9044
8986
  const nameQuery = `name(${dataLocale} = "${sanitizedSearchText}")`;
9045
8987
  const searchTextQuery = _filterInstanceProperty__default["default"](_context2 = [idQuery, nameQuery, keyQuery]).call(_context2, Boolean).join(' or ');
9046
8988
  return {
@@ -9083,7 +9025,7 @@ const StoresSearchSelectInput = props => {
9083
9025
  projectLanguages = _useApplicationContex.projectLanguages;
9084
9026
  const intl = reactIntl.useIntl();
9085
9027
  const client$1 = client.useApolloClient();
9086
- const storesByFieldFetcher = useStoresByFieldFetcher(props.value, props.renderSelectInputOptionValuesByField, props.projectKey, props.shouldFetchProductSelections);
9028
+ const storesByFieldFetcher = useStoresByFieldFetcher$1(props.value, props.renderSelectInputOptionValuesByField, props.projectKey, props.shouldFetchProductSelections);
9087
9029
  const hasError = uiKit.AsyncSelectInput.isTouched(props.touched) && hasErrors(props.errors) || props.hasError;
9088
9030
  const handleLoadOptions = searchText => {
9089
9031
  const extractMatchedStores = client$1.query({
@@ -9125,16 +9067,16 @@ const StoresSearchSelectInput = props => {
9125
9067
  className: styles$9.customLabel,
9126
9068
  children: props?.renderLabel && props?.renderLabel
9127
9069
  }), jsxRuntime.jsx("div", {
9128
- children: intl.formatMessage(inputValue ? messages$q.searchSelectInputNoOptionsFoundMessage : messages$q.searchSelectInputNoValueMessage)
9070
+ children: intl.formatMessage(inputValue ? messages$u.searchSelectInputNoOptionsFoundMessage : messages$u.searchSelectInputNoValueMessage)
9129
9071
  })]
9130
9072
  });
9131
9073
  };
9132
- if (storesByFieldFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner, {});
9074
+ if (storesByFieldFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner$1, {});
9133
9075
  return jsxRuntime.jsxs(jsxRuntime.Fragment, {
9134
9076
  children: [jsxRuntime.jsx(uiKit.SearchSelectInput, _objectSpread$C(_objectSpread$C({
9135
9077
  id: props.id,
9136
9078
  name: props.name,
9137
- placeholder: intl.formatMessage(messages$q.searchSelectInputPlaceholder),
9079
+ placeholder: intl.formatMessage(messages$u.searchSelectInputPlaceholder),
9138
9080
  horizontalConstraint: props.horizontalConstraint,
9139
9081
  loadOptions: loadOptionsDebounced,
9140
9082
  defaultOptions: false,
@@ -9149,7 +9091,7 @@ const StoresSearchSelectInput = props => {
9149
9091
  }),
9150
9092
  onChange: props.onChange,
9151
9093
  onBlur: props.onBlur,
9152
- loadingMessage: intl.formatMessage(messages$q.searchSelectInputLoadingMessage),
9094
+ loadingMessage: intl.formatMessage(messages$u.searchSelectInputLoadingMessage),
9153
9095
  noOptionsMessage: renderNoOptions,
9154
9096
  isDisabled: props.isDisabled || storesByFieldFetcher.isLoading,
9155
9097
  isReadOnly: props.isReadOnly,
@@ -9178,6 +9120,7 @@ StoresSearchSelectInput.displayName = 'StoresSearchSelectInput';
9178
9120
  StoresSearchSelectInput.defaultProps = {
9179
9121
  shouldFetchProductSelections: false
9180
9122
  };
9123
+ var StoresSearchSelectInput$1 = StoresSearchSelectInput;
9181
9124
 
9182
9125
  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; }
9183
9126
  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; }
@@ -9185,7 +9128,7 @@ var styles$8 = {
9185
9128
  "customOption": "store-select-input-module__customOption___2SC00"
9186
9129
  };
9187
9130
  const StoreSelectInput = props => {
9188
- const totalNumberOfStoresFetcher = useTotalNumberOfStoresFetcher(props.projectKey);
9131
+ const totalNumberOfStoresFetcher = useTotalNumberOfStoresFetcher$1(props.projectKey);
9189
9132
  const components = React.useMemo(() => {
9190
9133
  return {
9191
9134
  // eslint-disable-next-line react/display-name
@@ -9204,8 +9147,8 @@ const StoreSelectInput = props => {
9204
9147
  }
9205
9148
  };
9206
9149
  }, [props.optionType, totalNumberOfStoresFetcher.total, props.upperStoresLimit]);
9207
- if (totalNumberOfStoresFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner, {});
9208
- const CustomStoreSelectInput = totalNumberOfStoresFetcher.total <= props.lowerStoresLimit ? StoresBasicSelectInput : totalNumberOfStoresFetcher.total <= props.upperStoresLimit ? StoresAsyncSelectInput : StoresSearchSelectInput;
9150
+ if (totalNumberOfStoresFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner$1, {});
9151
+ const CustomStoreSelectInput = totalNumberOfStoresFetcher.total <= props.lowerStoresLimit ? StoresBasicSelectInput$1 : totalNumberOfStoresFetcher.total <= props.upperStoresLimit ? StoresAsyncSelectInput$1 : StoresSearchSelectInput$1;
9209
9152
  return jsxRuntime.jsx(CustomStoreSelectInput, _objectSpread$B(_objectSpread$B({
9210
9153
  menuIsOpen: props.menuIsOpen,
9211
9154
  placeholder: props.placeholder,
@@ -9250,6 +9193,7 @@ StoreSelectInput.defaultProps = {
9250
9193
  optionType: 'double-property',
9251
9194
  shouldFetchProductSelections: false
9252
9195
  };
9196
+ var StoreSelectInput$1 = StoreSelectInput;
9253
9197
 
9254
9198
  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; }
9255
9199
  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; }
@@ -9266,7 +9210,7 @@ const StoreSelectField = props => {
9266
9210
  htmlFor: props.id,
9267
9211
  hasRequiredIndicator: props.isRequired,
9268
9212
  isBold: true
9269
- }), jsxRuntime.jsx(StoreSelectInput, _objectSpread$A(_objectSpread$A({
9213
+ }), jsxRuntime.jsx(StoreSelectInput$1, _objectSpread$A(_objectSpread$A({
9270
9214
  projectKey: props.projectKey,
9271
9215
  id: props.id,
9272
9216
  name: props.name,
@@ -9304,6 +9248,7 @@ StoreSelectField.defaultProps = {
9304
9248
  upperStoresLimit: UPPER_STORES_LIMIT,
9305
9249
  mappedValueField: 'id'
9306
9250
  };
9251
+ var StoreSelectField$1 = StoreSelectField;
9307
9252
 
9308
9253
  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; }
9309
9254
  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; }
@@ -9323,7 +9268,7 @@ const validateRequired = value => {
9323
9268
  };
9324
9269
  const VALIDATOR_REQUIRED = {
9325
9270
  name: 'required',
9326
- message: messages$C.required,
9271
+ message: validationMessages.required,
9327
9272
  permanent: true,
9328
9273
  validators: {
9329
9274
  change(value) {
@@ -9337,7 +9282,7 @@ const VALIDATOR_REQUIRED = {
9337
9282
  };
9338
9283
  const VALIDATOR_NUMERIC = {
9339
9284
  name: 'numeric',
9340
- message: messages$C.numeric,
9285
+ message: validationMessages.numeric,
9341
9286
  permanent: false,
9342
9287
  validators: {
9343
9288
  change: v => {
@@ -9352,7 +9297,7 @@ const VALIDATOR_NUMERIC = {
9352
9297
  };
9353
9298
  const VALIDATOR_INTEGER = {
9354
9299
  name: 'integer',
9355
- message: messages$C.integer,
9300
+ message: validationMessages.integer,
9356
9301
  permanent: false,
9357
9302
  validators: {
9358
9303
  change: v => {
@@ -9367,7 +9312,7 @@ const VALIDATOR_INTEGER = {
9367
9312
  };
9368
9313
  ({
9369
9314
  name: 'email',
9370
- message: messages$C.email,
9315
+ message: validationMessages.email,
9371
9316
  permanent: false,
9372
9317
  validators: {
9373
9318
  // Note: it's a bit weird to validate it on every change,
@@ -9660,14 +9605,6 @@ var customFieldDefinitionsConnector = flowRight__default["default"](hoc.graphql(
9660
9605
  props: mapDataToProps
9661
9606
  }))(CustomFieldDefinitionsConnector);
9662
9607
 
9663
- const handlers$1 = {
9664
- TypeDefinitions: {
9665
- all: typeDefinitions => msw.graphql.query('FetchTypeDefinitionsQuery', (req, res, ctx) => res(ctx.data({
9666
- typeDefinitions
9667
- })))
9668
- }
9669
- };
9670
-
9671
9608
  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; }
9672
9609
  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; }
9673
9610
  const restDocToForm = customFieldsFromRestResponse => {
@@ -9812,7 +9749,7 @@ const CustomFields = props => {
9812
9749
  css: /*#__PURE__*/react$1.css("min-width:", props.isWidthExpanded ? '100%' : uiKit.customProperties.constraint11, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:CustomFields;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImN1c3RvbS1maWVsZHMuanN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWVjIiwiZmlsZSI6ImN1c3RvbS1maWVsZHMuanN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFByb3BUeXBlcyBmcm9tICdwcm9wLXR5cGVzJztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcbmltcG9ydCB7IHVzZUZvcm1pa0NvbnRleHQgfSBmcm9tICdmb3JtaWsnO1xuaW1wb3J0IHsgY3VzdG9tUHJvcGVydGllcywgU3BhY2luZ3MgfSBmcm9tICdAY29tbWVyY2V0b29scy1mcm9udGVuZC91aS1raXQnO1xuaW1wb3J0IEN1c3RvbUZpZWxkc0ludGVybmFsIGZyb20gJy4vY3VzdG9tLWZpZWxkcy1pbnRlcm5hbCc7XG5cbmNvbnN0IG5vcENvbnZlcnRlciA9IChmaWVsZE5hbWUsIGZpZWxkVmFsdWUpID0+IGZpZWxkVmFsdWU7XG5cbmNvbnN0IEN1c3RvbUZpZWxkcyA9IChwcm9wcykgPT4ge1xuICBjb25zdCB7IHNldEZpZWxkVmFsdWUgfSA9IHVzZUZvcm1pa0NvbnRleHQoKTtcblxuICAvLyBFbnN1cmUgeW91IHBhc3MgaXNXaWR0aEV4cGFuZGVkPXRydWUgd2hlbiBhZGRpbmcgdGhlIG5ldyBsYXlvdXQgY29tcG9uZW50IHNvIHRoZSBjdXN0b20gZmllbGRzXG4gIC8vIGNhbiBleHBhbmQgdG8gZmlsbCB0aGUgd2lkdGggb2YgdGhlIGxheW91dC5cbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICBjc3M9e2Nzc2BcbiAgICAgICAgbWluLXdpZHRoOiAke3Byb3BzLmlzV2lkdGhFeHBhbmRlZFxuICAgICAgICAgID8gJzEwMCUnXG4gICAgICAgICAgOiBjdXN0b21Qcm9wZXJ0aWVzLmNvbnN0cmFpbnQxMX07XG4gICAgICBgfVxuICAgID5cbiAgICAgIDxTcGFjaW5ncy5TdGFjayBzY2FsZT1cInhsXCI+XG4gICAgICAgIDxDdXN0b21GaWVsZHNJbnRlcm5hbFxuICAgICAgICAgIG5hbWU9e3Byb3BzLm5hbWV9XG4gICAgICAgICAgaXNSZWFkT25seT17cHJvcHMuaXNSZWFkT25seX1cbiAgICAgICAgICBpc0Rpc2FibGVkPXtwcm9wcy5pc0Rpc2FibGVkfVxuICAgICAgICAgIGZpZWxkRGVmaW5pdGlvbnM9e3Byb3BzLmZpZWxkRGVmaW5pdGlvbnN9XG4gICAgICAgICAgc2V0RmllbGRWYWx1ZT17c2V0RmllbGRWYWx1ZX1cbiAgICAgICAgICBpbnB1dFZhbHVlc0NvbnZlcnRlcj17bm9wQ29udmVydGVyfVxuICAgICAgICAgIFdyYXBwZXJDb21wb25lbnQ9e3Byb3BzLldyYXBwZXJDb21wb25lbnR9XG4gICAgICAgIC8+XG4gICAgICA8L1NwYWNpbmdzLlN0YWNrPlxuICAgIDwvZGl2PlxuICApO1xufTtcbkN1c3RvbUZpZWxkcy5kaXNwbGF5TmFtZSA9ICdDdXN0b21GaWVsZHMnO1xuQ3VzdG9tRmllbGRzLnByb3BUeXBlcyA9IHtcbiAgaXNXaWR0aEV4cGFuZGVkOiBQcm9wVHlwZXMuYm9vbCxcbiAgaXNSZWFkT25seTogUHJvcFR5cGVzLmJvb2wsXG4gIGlzRGlzYWJsZWQ6IFByb3BUeXBlcy5ib29sLFxuICBuYW1lOiBQcm9wVHlwZXMuc3RyaW5nLFxuICBmaWVsZERlZmluaXRpb25zOiBQcm9wVHlwZXMuYXJyYXlPZihcbiAgICBQcm9wVHlwZXMuc2hhcGUoe1xuICAgICAgbmFtZTogUHJvcFR5cGVzLnN0cmluZyxcbiAgICAgIHJlcXVpcmVkOiBQcm9wVHlwZXMuYm9vbCxcblxuICAgICAgaW5wdXRIaW50OiBQcm9wVHlwZXMuc3RyaW5nLFxuICAgICAgaW5wdXRUaXA6IFByb3BUeXBlcy5vYmplY3QsXG4gICAgICBsYWJlbDogUHJvcFR5cGVzLm9iamVjdE9mKFByb3BUeXBlcy5zdHJpbmcpLFxuXG4gICAgICB0eXBlOiBQcm9wVHlwZXMub25lT2ZUeXBlKFtcbiAgICAgICAgUHJvcFR5cGVzLnNoYXBlKHtcbiAgICAgICAgICB0eXBlOiBQcm9wVHlwZXMuc2hhcGUoe1xuICAgICAgICAgICAgbmFtZTogUHJvcFR5cGVzLnN0cmluZyxcbiAgICAgICAgICB9KSxcbiAgICAgICAgfSksXG4gICAgICAgIC8vIFNldFxuICAgICAgICBQcm9wVHlwZXMuc2hhcGUoe1xuICAgICAgICAgIGVsZW1lbnRUeXBlOiBQcm9wVHlwZXMuc2hhcGUoe1xuICAgICAgICAgICAgdHlwZTogUHJvcFR5cGVzLnNoYXBlKHtcbiAgICAgICAgICAgICAgbmFtZTogUHJvcFR5cGVzLnN0cmluZyxcbiAgICAgICAgICAgIH0pLFxuICAgICAgICAgIH0pLFxuICAgICAgICB9KSxcbiAgICAgIF0pLFxuICAgIH0pXG4gICksXG4gIFdyYXBwZXJDb21wb25lbnQ6IFByb3BUeXBlcy5lbGVtZW50VHlwZSxcbn07XG5cbmV4cG9ydCBkZWZhdWx0IEN1c3RvbUZpZWxkcztcbiJdfQ== */"),
9813
9750
  children: jsxRuntime.jsx(uiKit.Spacings.Stack, {
9814
9751
  scale: "xl",
9815
- children: jsxRuntime.jsx(CustomFieldsInternal, {
9752
+ children: jsxRuntime.jsx(CustomFieldsInternal$1, {
9816
9753
  name: props.name,
9817
9754
  isReadOnly: props.isReadOnly,
9818
9755
  isDisabled: props.isDisabled,
@@ -9825,6 +9762,7 @@ const CustomFields = props => {
9825
9762
  });
9826
9763
  };
9827
9764
  CustomFields.displayName = 'CustomFields';
9765
+ var CustomFields$1 = CustomFields;
9828
9766
 
9829
9767
  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; }
9830
9768
  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; }
@@ -9897,12 +9835,12 @@ function validations (formValues, language, languages) {
9897
9835
  const errors = _reduceInstanceProperty__default["default"](fieldDefinitionsToValidate).call(fieldDefinitionsToValidate, (acc, fieldDefinition) => _objectSpread$w(_objectSpread$w({}, acc), {}, {
9898
9836
  [fieldDefinition.name]: _objectSpread$w(_objectSpread$w({}, setMissingIfRequired(formValues, fieldDefinition)), setDuplicatedIfSet(formValues, fieldDefinition, language, languages))
9899
9837
  }), {});
9900
- return withoutEmptyErrorsByField(errors);
9838
+ return withoutEmptyErrorsByField$1(errors);
9901
9839
  }
9902
9840
 
9903
- CustomFields.DndProvider = DndProvider;
9841
+ CustomFields$1.DndProvider = DndProvider;
9904
9842
 
9905
- var messages$p = reactIntl.defineMessages({
9843
+ var messages$t = reactIntl.defineMessages({
9906
9844
  customFieldsError: {
9907
9845
  id: 'CustomFieldsError.Error',
9908
9846
  description: 'The message when there are errors adding custom fields',
@@ -9917,7 +9855,7 @@ const CustomFieldsErrorTextNotification = props => {
9917
9855
  return jsxRuntime.jsxs(uiKit.Spacings.Stack, {
9918
9856
  scale: "s",
9919
9857
  children: [jsxRuntime.jsx(uiKit.Text.Wrap, {
9920
- intlMessage: _objectSpread$v({}, messages$p.customFieldsError)
9858
+ intlMessage: _objectSpread$v({}, messages$t.customFieldsError)
9921
9859
  }), jsxRuntime.jsx(uiKit.Spacings.Stack, {
9922
9860
  scale: "xs",
9923
9861
  children: _mapInstanceProperty__default["default"](_context = props.formErrors).call(_context, formError => jsxRuntime.jsx(uiKit.Text.Detail, {
@@ -9928,8 +9866,9 @@ const CustomFieldsErrorTextNotification = props => {
9928
9866
  });
9929
9867
  };
9930
9868
  CustomFieldsErrorTextNotification.displayName = 'CustomFieldsErrorTextNotification';
9869
+ var CustomFieldsErrorTextNotification$1 = CustomFieldsErrorTextNotification;
9931
9870
 
9932
- var messages$o = reactIntl.defineMessages({
9871
+ var messages$s = reactIntl.defineMessages({
9933
9872
  noCustomFields: {
9934
9873
  id: 'CustomTypesSubform.noCustomFields',
9935
9874
  description: 'The label when there are no custom fields defined',
@@ -10083,20 +10022,20 @@ const CustomFieldsInputWrapper = _ref2 => {
10083
10022
  formValues = _valuesInstanceProperty__default["default"](_useFormikContext);
10084
10023
  const rootFieldName = createRootFieldName(rootFormStateFieldName);
10085
10024
  if (!typeDefinitionsExist(typeDefinitions)) {
10086
- return jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$t({}, messages$o.noTypes));
10025
+ return jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$t({}, messages$s.noTypes));
10087
10026
  }
10088
10027
  if (!typeDefinitionSelected(formValues, rootFieldName)) {
10089
- return jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$t({}, messages$o.noCustomType));
10028
+ return jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$t({}, messages$s.noCustomType));
10090
10029
  }
10091
10030
  if (!typeDefinitionContainsFieldDefinitions(formValues, rootFieldName)) {
10092
- return jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$t({}, messages$o.noCustomFields));
10031
+ return jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$t({}, messages$s.noCustomFields));
10093
10032
  }
10094
10033
  if (fieldDefinitionsWithValues(formValues, rootFieldName).length === 0 && isReadOnly && hideEmptyFields) {
10095
- return jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$t({}, messages$o.noInputValues));
10034
+ return jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$t({}, messages$s.noInputValues));
10096
10035
  }
10097
10036
  return jsxRuntime.jsx(uiKit.Constraints.Horizontal, {
10098
10037
  max: "scale",
10099
- children: jsxRuntime.jsx(CustomFields, {
10038
+ children: jsxRuntime.jsx(CustomFields$1, {
10100
10039
  isReadOnly: isReadOnly,
10101
10040
  name: `${rootFieldName}.fields`,
10102
10041
  fieldDefinitions: isReadOnly && hideEmptyFields ? fieldDefinitionsWithValues(formValues, rootFieldName) : formik.getIn(formValues, rootFieldName).type.obj.fieldDefinitions
@@ -10104,6 +10043,7 @@ const CustomFieldsInputWrapper = _ref2 => {
10104
10043
  });
10105
10044
  };
10106
10045
  CustomFieldsInputWrapper.displayName = 'CustomFieldsInputWrapper';
10046
+ var CustomFieldsInputWrapper$1 = CustomFieldsInputWrapper;
10107
10047
 
10108
10048
  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; }
10109
10049
  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; }
@@ -10193,7 +10133,7 @@ const CustomTypeSubform = _ref => {
10193
10133
  return jsxRuntime.jsx(uiKit.CollapsiblePanel, {
10194
10134
  header: jsxRuntime.jsx(uiKit.CollapsiblePanel.Header, {
10195
10135
  isCondensed: isCondensed,
10196
- children: panelTitle || jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$s({}, messages$o.title))
10136
+ children: panelTitle || jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$s({}, messages$s.title))
10197
10137
  }),
10198
10138
  headerControls: typeDefinitions.length > 0 && jsxRuntime.jsx("div", {
10199
10139
  css: /*#__PURE__*/react$1.css("min-width:", uiKit.designTokens.constraint11, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:CustomTypeSubform;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImN1c3RvbS10eXBlLXN1YmZvcm0uanN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTBJb0IiLCJmaWxlIjoiY3VzdG9tLXR5cGUtc3ViZm9ybS5qc3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyB1c2VDYWxsYmFjayB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCBQcm9wVHlwZXMgZnJvbSAncHJvcC10eXBlcyc7XG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyB1c2VGb3JtaWtDb250ZXh0LCBnZXRJbiB9IGZyb20gJ2Zvcm1payc7XG5pbXBvcnQgeyBGb3JtYXR0ZWRNZXNzYWdlLCB1c2VJbnRsIH0gZnJvbSAncmVhY3QtaW50bCc7XG5pbXBvcnQgeyB1c2VBcHBsaWNhdGlvbkNvbnRleHQgfSBmcm9tICdAY29tbWVyY2V0b29scy1mcm9udGVuZC9hcHBsaWNhdGlvbi1zaGVsbC1jb25uZWN0b3JzJztcbmltcG9ydCB7IGZvcm1hdExvY2FsaXplZFN0cmluZyB9IGZyb20gJ0Bjb21tZXJjZXRvb2xzLWZyb250ZW5kL2wxMG4nO1xuaW1wb3J0IHtcbiAgQ29sbGFwc2libGVQYW5lbCxcbiAgU2VsZWN0SW5wdXQsXG4gIGRlc2lnblRva2Vucyxcbn0gZnJvbSAnQGNvbW1lcmNldG9vbHMtZnJvbnRlbmQvdWkta2l0JztcbmltcG9ydCBDdXN0b21GaWVsZHNJbnB1dFdyYXBwZXIgZnJvbSAnLi9jdXN0b20tZmllbGRzLWlucHV0LXdyYXBwZXInO1xuaW1wb3J0IG1lc3NhZ2VzIGZyb20gJy4vbWVzc2FnZXMnO1xuaW1wb3J0IHsgY3JlYXRlUm9vdEZpZWxkTmFtZSB9IGZyb20gJy4vdXRpbHMnO1xuXG4vKipcbiAqIE1hcHMgdGhlIHR5cGUgZGVmaW5pdGlvbnMgdG8gb3B0aW9ucyBmb3IgdGhlIGRyb3Bkb3duIHNlbGVjdG9yLlxuICovXG5leHBvcnQgY29uc3QgbWFwVHlwZURlZmluaXRpb25zVG9PcHRpb25zID0gKFxuICB0eXBlRGVmaW5pdGlvbnMsXG4gIGxhbmd1YWdlLFxuICBsYW5ndWFnZXMsXG4gIHNlbGVjdGVkVHlwZURlZmluaXRpb25JZFxuKSA9PiB7XG4gIHJldHVybiB0eXBlRGVmaW5pdGlvbnMubWFwKCh0eXBlRGVmaW5pdGlvbikgPT4gKHtcbiAgICBpc0Rpc2FibGVkOlxuICAgICAgc2VsZWN0ZWRUeXBlRGVmaW5pdGlvbklkICYmXG4gICAgICBzZWxlY3RlZFR5cGVEZWZpbml0aW9uSWQgPT09IHR5cGVEZWZpbml0aW9uLnR5cGUuaWQsXG4gICAgdmFsdWU6IHR5cGVEZWZpbml0aW9uLnR5cGUua2V5LFxuICAgIGxhYmVsOiBmb3JtYXRMb2NhbGl6ZWRTdHJpbmcodHlwZURlZmluaXRpb24udHlwZSwge1xuICAgICAga2V5OiAnbmFtZScsXG4gICAgICBsb2NhbGU6IGxhbmd1YWdlLFxuICAgICAgZmFsbGJhY2tPcmRlcjogbGFuZ3VhZ2VzLFxuICAgIH0pLFxuICB9KSk7XG59O1xuXG4vKipcbiAqIENyZWF0ZXMgYSBuZXcgZm9ybSBzdGF0ZSBiYXNlZCBvbiB0aGUgc2VsZWN0ZWQgdHlwZSBkZWZpbml0aW9uIGZyb20gdGhlIGRyb3Bkb3duLlxuICovXG5jb25zdCBjcmVhdGVGb3JtU3RhdGVGcm9tVHlwZURlZmluaXRpb24gPSAoc2VsZWN0ZWRUeXBlRGVmaW5pdGlvbikgPT4ge1xuICByZXR1cm4ge1xuICAgIHR5cGU6IHtcbiAgICAgIGlkOiBzZWxlY3RlZFR5cGVEZWZpbml0aW9uLnR5cGUuaWQsXG4gICAgICBvYmo6IHtcbiAgICAgICAgZmllbGREZWZpbml0aW9uczogc2VsZWN0ZWRUeXBlRGVmaW5pdGlvbi50eXBlLmZpZWxkRGVmaW5pdGlvbnMsXG4gICAgICAgIGtleTogc2VsZWN0ZWRUeXBlRGVmaW5pdGlvbi50eXBlLmtleSxcbiAgICAgIH0sXG4gICAgfSxcbiAgICBmaWVsZHM6IHt9LFxuICB9O1xufTtcblxuY29uc3QgQ3VzdG9tVHlwZVN1YmZvcm0gPSAoe1xuICB0eXBlRGVmaW5pdGlvbnMsXG4gIGlzUmVhZE9ubHksXG4gIGlzQ29uZGVuc2VkLFxuICBoaWRlRW1wdHlGaWVsZHMsXG4gIHJvb3RGb3JtU3RhdGVGaWVsZE5hbWUsXG4gIHBhbmVsVGl0bGUsXG59KSA9PiB7XG4gIGNvbnN0IHtcbiAgICB2YWx1ZXM6IGZvcm1WYWx1ZXMsXG4gICAgc2V0RmllbGRWYWx1ZSxcbiAgICB2YWxpZGF0ZUZvcm0sXG4gICAgaW5pdGlhbFZhbHVlcyxcbiAgfSA9IHVzZUZvcm1pa0NvbnRleHQoKTtcbiAgY29uc3QgeyBmb3JtYXRNZXNzYWdlIH0gPSB1c2VJbnRsKCk7XG4gIGNvbnN0IHsgbGFuZ3VhZ2UsIGxhbmd1YWdlcyB9ID0gdXNlQXBwbGljYXRpb25Db250ZXh0KFxuICAgIChhcHBsaWNhdGlvbkNvbnRleHQpID0+ICh7XG4gICAgICBsYW5ndWFnZTogYXBwbGljYXRpb25Db250ZXh0LmRhdGFMb2NhbGUsXG4gICAgICBsYW5ndWFnZXM6IGFwcGxpY2F0aW9uQ29udGV4dC5wcm9qZWN0Lmxhbmd1YWdlcyxcbiAgICB9KVxuICApO1xuICBjb25zdCByb290RmllbGROYW1lID0gY3JlYXRlUm9vdEZpZWxkTmFtZShyb290Rm9ybVN0YXRlRmllbGROYW1lKTtcblxuICBjb25zdCBoYW5kbGVUeXBlRGVmaW5pdGlvblNlbGVjdCA9IHVzZUNhbGxiYWNrKFxuICAgIChldmVudCkgPT4ge1xuICAgICAgY29uc3Qgc2VsZWN0ZWRUeXBlRGVmaW5pdGlvbiA9IHR5cGVEZWZpbml0aW9ucy5maW5kKFxuICAgICAgICAodHlwZURlZmluaXRpb24pID0+IHR5cGVEZWZpbml0aW9uLnR5cGUua2V5ID09PSBldmVudC50YXJnZXQudmFsdWVcbiAgICAgICk7XG5cbiAgICAgIGlmIChzZWxlY3RlZFR5cGVEZWZpbml0aW9uKSB7XG4gICAgICAgIGNvbnN0IGluaXRpYWxWYWx1ZUN1c3RvbVR5cGUgPSBpbml0aWFsVmFsdWVzW3Jvb3RGaWVsZE5hbWVdO1xuICAgICAgICBjb25zdCBzZWxlY3RlZEN1c3RvbVR5cGVLZXkgPSBzZWxlY3RlZFR5cGVEZWZpbml0aW9uPy50eXBlLmtleTtcblxuICAgICAgICBsZXQgbmV3RmllbGRWYWx1ZTtcblxuICAgICAgICAvKipcbiAgICAgICAgICogSWYgdGhlIHVzZXIgc2VsZWN0cyB0aGUgc2FtZSBjdXN0b20gdHlwZSB0aGF0IHdhcyBhbHJlYWR5IHNlbGVjdGVkLCB3ZSBuZWVkIHRvIHJlc2V0IHRoZSBgY3VzdG9tYCBmaWVsZFxuICAgICAgICAgKiBiYWNrIHRvIGl0cyBpbml0aWFsIHZhbHVlIHRvIGVuc3VyZSB0aGF0IHRoZSBmb3JtIHN0YXRlIGlzIGNvbnNpc3RlbnQgd2l0aCB0aGUgaW5pdGlhbCB2YWx1ZXMuXG4gICAgICAgICAqL1xuICAgICAgICBpZiAoaW5pdGlhbFZhbHVlQ3VzdG9tVHlwZT8udHlwZT8ub2JqPy5rZXkgPT09IHNlbGVjdGVkQ3VzdG9tVHlwZUtleSkge1xuICAgICAgICAgIG5ld0ZpZWxkVmFsdWUgPSBpbml0aWFsVmFsdWVDdXN0b21UeXBlO1xuICAgICAgICAgIC8qKlxuICAgICAgICAgICAqIE90aGVyd2lzZSwgc2V0IHRoZSBgY3VzdG9tYCBmaWVsZCB0byB0aGUgbmV3IGN1c3RvbSB0eXBlIGRlZmluaXRpb24uXG4gICAgICAgICAgICovXG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgbmV3RmllbGRWYWx1ZSA9IGNyZWF0ZUZvcm1TdGF0ZUZyb21UeXBlRGVmaW5pdGlvbihcbiAgICAgICAgICAgIHNlbGVjdGVkVHlwZURlZmluaXRpb25cbiAgICAgICAgICApO1xuICAgICAgICB9XG5cbiAgICAgICAgc2V0RmllbGRWYWx1ZShyb290RmllbGROYW1lLCBuZXdGaWVsZFZhbHVlKS50aGVuKCgpID0+IHtcbiAgICAgICAgICB2YWxpZGF0ZUZvcm0oKTtcbiAgICAgICAgfSk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICAvLyBpZiB0aGUgZHJvcGRvd24gc2VsZWN0b3IgaXMgY2xlYXJlZCwgcmVtb3ZlIHRoZSBgY3VzdG9tYCBmaWVsZCBmcm9tIHRoZSBmb3JtIHN0YXRlIGVudGlyZWx5XG4gICAgICAgIHNldEZpZWxkVmFsdWUocm9vdEZpZWxkTmFtZSwgdW5kZWZpbmVkKS50aGVuKCgpID0+IHtcbiAgICAgICAgICB2YWxpZGF0ZUZvcm0oKTtcbiAgICAgICAgfSk7XG4gICAgICB9XG4gICAgfSxcbiAgICBbdHlwZURlZmluaXRpb25zLCBzZXRGaWVsZFZhbHVlLCB2YWxpZGF0ZUZvcm0sIHJvb3RGaWVsZE5hbWVdXG4gICk7XG5cbiAgY29uc3QgdHlwZURlZmluaXRpb25TZWxlY3RlZCA9IChmb3JtVmFsdWVzKSA9PiB7XG4gICAgcmV0dXJuIChcbiAgICAgIGdldEluKGZvcm1WYWx1ZXMsIHJvb3RGaWVsZE5hbWUpPy50eXBlICYmXG4gICAgICBnZXRJbihmb3JtVmFsdWVzLCByb290RmllbGROYW1lKT8udHlwZT8ub2JqXG4gICAgKTtcbiAgfTtcblxuICAvLyBpZiB0aGUgdXNlciBoYXMgcmVhZC1vbmx5IHBlcm1pc3Npb25zLCBlbXB0eSBmaWVsZHMgYXJlIGhpZGRlbiwgYW5kIG5vIHR5cGUgZGVmaW5pdGlvbiBpcyBzZWxlY3RlZCwgaGlkZSB0aGUgY29tcG9uZW50XG4gIGlmIChpc1JlYWRPbmx5ICYmIGhpZGVFbXB0eUZpZWxkcyAmJiAhdHlwZURlZmluaXRpb25TZWxlY3RlZChmb3JtVmFsdWVzKSlcbiAgICByZXR1cm4gbnVsbDtcblxuICByZXR1cm4gKFxuICAgIDxDb2xsYXBzaWJsZVBhbmVsXG4gICAgICBoZWFkZXI9e1xuICAgICAgICA8Q29sbGFwc2libGVQYW5lbC5IZWFkZXIgaXNDb25kZW5zZWQ9e2lzQ29uZGVuc2VkfT5cbiAgICAgICAgICB7cGFuZWxUaXRsZSB8fCA8Rm9ybWF0dGVkTWVzc2FnZSB7Li4ubWVzc2FnZXMudGl0bGV9IC8+fVxuICAgICAgICA8L0NvbGxhcHNpYmxlUGFuZWwuSGVhZGVyPlxuICAgICAgfVxuICAgICAgaGVhZGVyQ29udHJvbHM9e1xuICAgICAgICB0eXBlRGVmaW5pdGlvbnMubGVuZ3RoID4gMCAmJiAoXG4gICAgICAgICAgPGRpdlxuICAgICAgICAgICAgY3NzPXtjc3NgXG4gICAgICAgICAgICAgIG1pbi13aWR0aDogJHtkZXNpZ25Ub2tlbnMuY29uc3RyYWludDExfTtcbiAgICAgICAgICAgIGB9XG4gICAgICAgICAgPlxuICAgICAgICAgICAgPFNlbGVjdElucHV0XG4gICAgICAgICAgICAgIGlzQ2xlYXJhYmxlXG4gICAgICAgICAgICAgIGRhdGEtdGVzdGlkPVwiY3VzdG9tLXR5cGUtc2VsZWN0XCJcbiAgICAgICAgICAgICAgbmFtZT17YCR7cm9vdEZpZWxkTmFtZX0udHlwZS5vYmoua2V5YH1cbiAgICAgICAgICAgICAgb3B0aW9ucz17bWFwVHlwZURlZmluaXRpb25zVG9PcHRpb25zKFxuICAgICAgICAgICAgICAgIHR5cGVEZWZpbml0aW9ucyxcbiAgICAgICAgICAgICAgICBsYW5ndWFnZSxcbiAgICAgICAgICAgICAgICBsYW5ndWFnZXMsXG5cbiAgICAgICAgICAgICAgICBnZXRJbihmb3JtVmFsdWVzLCByb290RmllbGROYW1lKT8udHlwZT8uaWRcbiAgICAgICAgICAgICAgKX1cbiAgICAgICAgICAgICAgdmFsdWU9e2dldEluKGZvcm1WYWx1ZXMsIHJvb3RGaWVsZE5hbWUpPy50eXBlPy5vYmo/LmtleX1cbiAgICAgICAgICAgICAgb25DaGFuZ2U9e2hhbmRsZVR5cGVEZWZpbml0aW9uU2VsZWN0fVxuICAgICAgICAgICAgICBwbGFjZWhvbGRlcj17Zm9ybWF0TWVzc2FnZShtZXNzYWdlcy50eXBlc1BsYWNlaG9sZGVyKX1cbiAgICAgICAgICAgICAgaXNSZWFkT25seT17aXNSZWFkT25seX1cbiAgICAgICAgICAgIC8+XG4gICAgICAgICAgPC9kaXY+XG4gICAgICAgIClcbiAgICAgIH1cbiAgICAgIGhlYWRlckNvbnRyb2xzQWxpZ25tZW50PVwicmlnaHRcIlxuICAgID5cbiAgICAgIDxDdXN0b21GaWVsZHNJbnB1dFdyYXBwZXJcbiAgICAgICAgdHlwZURlZmluaXRpb25zPXt0eXBlRGVmaW5pdGlvbnN9XG4gICAgICAgIGlzUmVhZE9ubHk9e2lzUmVhZE9ubHl9XG4gICAgICAgIGhpZGVFbXB0eUZpZWxkcz17aGlkZUVtcHR5RmllbGRzfVxuICAgICAgICByb290Rm9ybVN0YXRlRmllbGROYW1lPXtyb290Rm9ybVN0YXRlRmllbGROYW1lfVxuICAgICAgLz5cbiAgICA8L0NvbGxhcHNpYmxlUGFuZWw+XG4gICk7XG59O1xuXG5DdXN0b21UeXBlU3ViZm9ybS5kaXNwbGF5TmFtZSA9ICdDdXN0b21UeXBlU3ViZm9ybSc7XG5DdXN0b21UeXBlU3ViZm9ybS5wcm9wVHlwZXMgPSB7XG4gIHR5cGVEZWZpbml0aW9uczogUHJvcFR5cGVzLmFycmF5LmlzUmVxdWlyZWQsXG4gIGlzUmVhZE9ubHk6IFByb3BUeXBlcy5ib29sLFxuICBpc0NvbmRlbnNlZDogUHJvcFR5cGVzLmJvb2wsXG4gIGhpZGVFbXB0eUZpZWxkczogUHJvcFR5cGVzLmJvb2wsXG4gIHJvb3RGb3JtU3RhdGVGaWVsZE5hbWU6IFByb3BUeXBlcy5zdHJpbmcsXG4gIHBhbmVsVGl0bGU6IFByb3BUeXBlcy5ub2RlLFxufTtcblxuZXhwb3J0IGRlZmF1bHQgQ3VzdG9tVHlwZVN1YmZvcm07XG4iXX0= */"),
@@ -10204,12 +10144,12 @@ const CustomTypeSubform = _ref => {
10204
10144
  options: mapTypeDefinitionsToOptions(typeDefinitions, language, languages, formik.getIn(formValues, rootFieldName)?.type?.id),
10205
10145
  value: formik.getIn(formValues, rootFieldName)?.type?.obj?.key,
10206
10146
  onChange: handleTypeDefinitionSelect,
10207
- placeholder: formatMessage(messages$o.typesPlaceholder),
10147
+ placeholder: formatMessage(messages$s.typesPlaceholder),
10208
10148
  isReadOnly: isReadOnly
10209
10149
  })
10210
10150
  }),
10211
10151
  headerControlsAlignment: "right",
10212
- children: jsxRuntime.jsx(CustomFieldsInputWrapper, {
10152
+ children: jsxRuntime.jsx(CustomFieldsInputWrapper$1, {
10213
10153
  typeDefinitions: typeDefinitions,
10214
10154
  isReadOnly: isReadOnly,
10215
10155
  hideEmptyFields: hideEmptyFields,
@@ -10218,6 +10158,7 @@ const CustomTypeSubform = _ref => {
10218
10158
  });
10219
10159
  };
10220
10160
  CustomTypeSubform.displayName = 'CustomTypeSubform';
10161
+ var CustomTypeSubform$1 = CustomTypeSubform;
10221
10162
 
10222
10163
  const CustomFieldsFormField = _ref => {
10223
10164
  let resources = _ref.resources,
@@ -10239,7 +10180,7 @@ const CustomFieldsFormField = _ref => {
10239
10180
  return jsxRuntime.jsx(uiKit.LoadingSpinner, {});
10240
10181
  }
10241
10182
  const typeDefinitions = _mapInstanceProperty__default["default"](_context = customFieldTypeDefinitions.results).call(_context, CustomFieldTypeDefinitionsConnector$1.graphQlDocToForm);
10242
- return jsxRuntime.jsx(CustomTypeSubform, {
10183
+ return jsxRuntime.jsx(CustomTypeSubform$1, {
10243
10184
  typeDefinitions: typeDefinitions,
10244
10185
  isReadOnly: isReadOnly,
10245
10186
  isCondensed: isCondensed,
@@ -10252,6 +10193,7 @@ const CustomFieldsFormField = _ref => {
10252
10193
  };
10253
10194
  CustomFieldsFormField.createFormStateFromResource = createFormStateFromResource;
10254
10195
  CustomFieldsFormField.createGraphQlDocFromFormState = createGraphQlDocFromFormState;
10196
+ var CustomFieldsFormField$1 = CustomFieldsFormField;
10255
10197
 
10256
10198
  /**
10257
10199
  * @typedef {object} TPimIndexer
@@ -10277,6 +10219,7 @@ const defaultValue = {
10277
10219
  * @type {import('react').Context<TPimIndexer>}
10278
10220
  */
10279
10221
  const PimIndexerContext = /*#__PURE__*/React.createContext(defaultValue);
10222
+ var PimIndexerContext$1 = PimIndexerContext;
10280
10223
 
10281
10224
  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 } } } };
10282
10225
  var fetchPimIndexStatus = (apolloClient, projectKey) => async dispatch => {
@@ -10319,7 +10262,7 @@ var fetchPimIndexStatus = (apolloClient, projectKey) => async dispatch => {
10319
10262
  }
10320
10263
  };
10321
10264
 
10322
- var messages$n = reactIntl.defineMessages({
10265
+ var messages$r = reactIntl.defineMessages({
10323
10266
  indexingSucceed: {
10324
10267
  id: 'Products.PimIndexer.Notifications.indexingSucceed',
10325
10268
  description: 'Message to be shown to user when PIM successfully finishes initial project indexing.',
@@ -10425,7 +10368,7 @@ let PimIndexerProvider = /*#__PURE__*/function (_PureComponent) {
10425
10368
  _this.props.notifications.showNotification({
10426
10369
  kind: 'error',
10427
10370
  domain: constants.DOMAINS.SIDE,
10428
- text: _this.props.intl.formatMessage(messages$n.indexingFailed)
10371
+ text: _this.props.intl.formatMessage(messages$r.indexingFailed)
10429
10372
  });
10430
10373
  };
10431
10374
  _this.getIndexingProgress = async () => {
@@ -10466,7 +10409,7 @@ let PimIndexerProvider = /*#__PURE__*/function (_PureComponent) {
10466
10409
  _this.props.notifications.showNotification({
10467
10410
  kind: 'success',
10468
10411
  domain: constants.DOMAINS.SIDE,
10469
- text: _this.props.intl.formatMessage(messages$n.indexingSucceed)
10412
+ text: _this.props.intl.formatMessage(messages$r.indexingSucceed)
10470
10413
  },
10471
10414
  // because the indexing may take so long, the success notification
10472
10415
  // may be dismissed without being seen by the user. Set `dismissAfter`
@@ -10540,7 +10483,7 @@ let PimIndexerProvider = /*#__PURE__*/function (_PureComponent) {
10540
10483
  }, {
10541
10484
  key: "render",
10542
10485
  value: function render() {
10543
- return jsxRuntime.jsx(PimIndexerContext.Provider, {
10486
+ return jsxRuntime.jsx(PimIndexerContext$1.Provider, {
10544
10487
  value: _objectSpread$r(_objectSpread$r({}, this.state), {}, {
10545
10488
  attemptToRefreshProducts: this.attemptToRefreshProducts,
10546
10489
  indexProject: this.indexProject
@@ -10559,7 +10502,7 @@ var pimIndexerProvider = flowRight__default["default"](applicationShellConnector
10559
10502
  name: 'refreshProductIndicesByIds'
10560
10503
  }), hoc.graphql(IndexProject, {
10561
10504
  name: 'indexProject'
10562
- }), hoc.withApollo, reactIntl.injectIntl, injectNotifications())(PimIndexerProvider);
10505
+ }), hoc.withApollo, reactIntl.injectIntl, injectNotifications$1())(PimIndexerProvider);
10563
10506
 
10564
10507
  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)); }
10565
10508
  function _isNativeReflectConstruct$1() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$1 = function () { return !!t; })(); }
@@ -10572,31 +10515,32 @@ let WithPimIndexer = /*#__PURE__*/function (_PureComponent) {
10572
10515
  return _createClass(WithPimIndexer, [{
10573
10516
  key: "render",
10574
10517
  value: function render() {
10575
- return jsxRuntime.jsx(PimIndexerContext.Consumer, {
10518
+ return jsxRuntime.jsx(PimIndexerContext$1.Consumer, {
10576
10519
  children: pimIndexerProps => this.props.children(pimIndexerProps)
10577
10520
  });
10578
10521
  }
10579
10522
  }]);
10580
10523
  }(React.PureComponent);
10581
10524
  WithPimIndexer.displayName = 'WithPimIndexer';
10525
+ var WithPimIndexer$1 = WithPimIndexer;
10582
10526
 
10583
10527
  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; }
10584
10528
  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; }
10585
10529
  var injectPimIndexer = (function () {
10586
10530
  let propName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'pimIndexer';
10587
10531
  return Component => {
10588
- const WrappedComponent = props => jsxRuntime.jsx(WithPimIndexer, {
10532
+ const WrappedComponent = props => jsxRuntime.jsx(WithPimIndexer$1, {
10589
10533
  children: pimIndexerProps => jsxRuntime.jsx(Component, _objectSpread$q(_objectSpread$q({}, props), {}, {
10590
10534
  [propName]: pimIndexerProps
10591
10535
  }))
10592
10536
  });
10593
- WrappedComponent.displayName = wrapDisplayName(Component, 'InjectPimIndexer');
10537
+ WrappedComponent.displayName = wrapDisplayName$1(Component, 'InjectPimIndexer');
10594
10538
  return WrappedComponent;
10595
10539
  };
10596
10540
  });
10597
10541
 
10598
10542
  function usePimIndexer() {
10599
- return React.useContext(PimIndexerContext);
10543
+ return React.useContext(PimIndexerContext$1);
10600
10544
  }
10601
10545
 
10602
10546
  // eslint-disable-next-line import/prefer-default-export
@@ -10620,11 +10564,12 @@ const resourcesWithPlatformLimits = _Object$keys__default["default"](RESOURCES_W
10620
10564
  const createQueryVariables = platformLimit => _reduceInstanceProperty__default["default"](resourcesWithPlatformLimits).call(resourcesWithPlatformLimits, (previousIncludedLimits, nextNameOfLimit) => _objectSpread$p({
10621
10565
  [camelCase__default["default"](`should include ${nextNameOfLimit}`)]: platformLimit ? nextNameOfLimit === platformLimit : true
10622
10566
  }, previousIncludedLimits), {});
10567
+ var createPlatformLimitsQueryVariables = createQueryVariables;
10623
10568
 
10624
10569
  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 } } } };
10625
10570
  const usePlatformLimitsFetcher = platformLimit => {
10626
10571
  const _useQuery = react.useQuery(PlatformLimitsFetcherQuery, {
10627
- variables: createQueryVariables(platformLimit),
10572
+ variables: createPlatformLimitsQueryVariables(platformLimit),
10628
10573
  context: {
10629
10574
  target: constants.GRAPHQL_TARGETS.COMMERCETOOLS_PLATFORM
10630
10575
  },
@@ -10642,6 +10587,7 @@ const usePlatformLimitsFetcher = platformLimit => {
10642
10587
  refetch
10643
10588
  };
10644
10589
  };
10590
+ var usePlatformLimitsFetcher$1 = usePlatformLimitsFetcher;
10645
10591
 
10646
10592
  const useLimitsModalState = function () {
10647
10593
  let isInitiallyOpen = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
@@ -10657,6 +10603,7 @@ const useLimitsModalState = function () {
10657
10603
  openModal
10658
10604
  };
10659
10605
  };
10606
+ var useLimitsModalState$1 = useLimitsModalState;
10660
10607
 
10661
10608
  const useInterceptNavigation = hasReachedErrorLimit => {
10662
10609
  const _useState = React.useState(false),
@@ -10678,8 +10625,9 @@ const useInterceptNavigation = hasReachedErrorLimit => {
10678
10625
  setPlatformLimitToBeNotExceeded
10679
10626
  };
10680
10627
  };
10628
+ var useInterceptNavigation$1 = useInterceptNavigation;
10681
10629
 
10682
- var messages$m = reactIntl.defineMessages({
10630
+ var messages$q = reactIntl.defineMessages({
10683
10631
  shippingMethods: {
10684
10632
  id: 'PlatformLimits.Notifications.shippingMethodsError',
10685
10633
  description: 'error message about platform limit exceeded',
@@ -10719,7 +10667,7 @@ const PlatformLimitErrorNotification = _ref => {
10719
10667
  limit = _ref.limit;
10720
10668
  return jsxRuntime.jsx(uiKit.ContentNotification, {
10721
10669
  type: "error",
10722
- children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$o(_objectSpread$o({}, messages$m[resource]), {}, {
10670
+ children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$o(_objectSpread$o({}, messages$q[resource]), {}, {
10723
10671
  values: {
10724
10672
  limit,
10725
10673
  customersupport: getCustomerSupportLink$1
@@ -10731,8 +10679,9 @@ const PlatformLimitErrorNotification = _ref => {
10731
10679
  });
10732
10680
  };
10733
10681
  PlatformLimitErrorNotification.displayName = 'PlatformLimitErrorNotification';
10682
+ var Error$1 = PlatformLimitErrorNotification;
10734
10683
 
10735
- var messages$l = reactIntl.defineMessages({
10684
+ var messages$p = reactIntl.defineMessages({
10736
10685
  shippingMethods: {
10737
10686
  id: 'PlatformLimits.Notifications.shippingMethodsWarning',
10738
10687
  description: 'warning message about platform limit exceeded',
@@ -10772,7 +10721,7 @@ const PlatformLimitWarningNotification = _ref => {
10772
10721
  limit = _ref.limit;
10773
10722
  return jsxRuntime.jsx(uiKit.ContentNotification, {
10774
10723
  type: "warning",
10775
- children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$n(_objectSpread$n({}, messages$l[resource]), {}, {
10724
+ children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$n(_objectSpread$n({}, messages$p[resource]), {}, {
10776
10725
  values: {
10777
10726
  limit,
10778
10727
  customersupport: getCustomerSupportLink
@@ -10784,11 +10733,13 @@ const PlatformLimitWarningNotification = _ref => {
10784
10733
  });
10785
10734
  };
10786
10735
  PlatformLimitWarningNotification.displayName = 'PlatformLimitWarningNotification';
10736
+ var Warning = PlatformLimitWarningNotification;
10787
10737
 
10788
10738
  const Notifications = {
10789
- Warning: PlatformLimitWarningNotification,
10790
- Error: PlatformLimitErrorNotification
10739
+ Warning,
10740
+ Error: Error$1
10791
10741
  };
10742
+ var Notifications$1 = Notifications;
10792
10743
 
10793
10744
  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; }
10794
10745
  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; }
@@ -10808,6 +10759,7 @@ const PlatformLimitsStatusText = _ref => {
10808
10759
  });
10809
10760
  };
10810
10761
  PlatformLimitsStatusText.displayName = 'PlatformLimitsStatusText';
10762
+ var StatusText = PlatformLimitsStatusText;
10811
10763
 
10812
10764
  const getHasExceededWarningThreshold = _ref => {
10813
10765
  let limit = _ref.limit,
@@ -10834,7 +10786,7 @@ const getPlatformLimitsStatus = _ref3 => {
10834
10786
  };
10835
10787
 
10836
10788
  const useShippingMethodsPlatformLimitsFetcher = () => {
10837
- const _usePlatformLimitsFet = usePlatformLimitsFetcher(RESOURCES_WITH_PLATFORM_LIMITS.shippingMethods),
10789
+ const _usePlatformLimitsFet = usePlatformLimitsFetcher$1(RESOURCES_WITH_PLATFORM_LIMITS.shippingMethods),
10838
10790
  isLoading = _usePlatformLimitsFet.isLoading,
10839
10791
  error = _usePlatformLimitsFet.error,
10840
10792
  platformLimits = _usePlatformLimitsFet.platformLimits,
@@ -10846,9 +10798,10 @@ const useShippingMethodsPlatformLimitsFetcher = () => {
10846
10798
  refetch
10847
10799
  };
10848
10800
  };
10801
+ var useShippingMethodsPlatformLimitsFetcher$1 = useShippingMethodsPlatformLimitsFetcher;
10849
10802
 
10850
- const useShippingMethodsPlatformLimits = () => {
10851
- const _useShippingMethodsPl = useShippingMethodsPlatformLimitsFetcher(),
10803
+ const useShippingMethodsPlatformLimits$1 = () => {
10804
+ const _useShippingMethodsPl = useShippingMethodsPlatformLimitsFetcher$1(),
10852
10805
  platformLimits = _useShippingMethodsPl.platformLimits;
10853
10806
  if (!platformLimits?.shippingMethods?.total) {
10854
10807
  return {
@@ -10872,24 +10825,25 @@ const useShippingMethodsPlatformLimits = () => {
10872
10825
  hasReachedShippingMethodsErrorLimit
10873
10826
  };
10874
10827
  };
10828
+ var useShippingMethodsPlatformLimitsStatus = useShippingMethodsPlatformLimits$1;
10875
10829
 
10876
10830
  const PlatformLimitsShippingMethodsNotifications = () => {
10877
- const _useShippingMethodsPl = useShippingMethodsPlatformLimitsFetcher(),
10831
+ const _useShippingMethodsPl = useShippingMethodsPlatformLimitsFetcher$1(),
10878
10832
  platformLimits = _useShippingMethodsPl.platformLimits;
10879
- const _useShippingMethodsPl2 = useShippingMethodsPlatformLimits(),
10833
+ const _useShippingMethodsPl2 = useShippingMethodsPlatformLimitsStatus(),
10880
10834
  hasReachedShippingMethodsWarningLimit = _useShippingMethodsPl2.hasReachedShippingMethodsWarningLimit,
10881
10835
  hasReachedShippingMethodsErrorLimit = _useShippingMethodsPl2.hasReachedShippingMethodsErrorLimit;
10882
10836
  if (!platformLimits?.shippingMethods?.total) {
10883
10837
  return null;
10884
10838
  }
10885
10839
  if (hasReachedShippingMethodsErrorLimit) {
10886
- return jsxRuntime.jsx(Notifications.Error, {
10840
+ return jsxRuntime.jsx(Notifications$1.Error, {
10887
10841
  resource: RESOURCES_WITH_PLATFORM_LIMITS.shippingMethods,
10888
10842
  limit: platformLimits.shippingMethods.total.limit
10889
10843
  });
10890
10844
  }
10891
10845
  if (hasReachedShippingMethodsWarningLimit) {
10892
- return jsxRuntime.jsx(Notifications.Warning, {
10846
+ return jsxRuntime.jsx(Notifications$1.Warning, {
10893
10847
  resource: RESOURCES_WITH_PLATFORM_LIMITS.shippingMethods,
10894
10848
  limit: platformLimits.shippingMethods.total.limit
10895
10849
  });
@@ -10897,8 +10851,9 @@ const PlatformLimitsShippingMethodsNotifications = () => {
10897
10851
  return null;
10898
10852
  };
10899
10853
  PlatformLimitsShippingMethodsNotifications.displayName = 'PlatformLimitsShippingMethodsNotifications';
10854
+ var ShippingMethodsNotification = PlatformLimitsShippingMethodsNotifications;
10900
10855
 
10901
- var messages$k = reactIntl.defineMessages({
10856
+ var messages$o = reactIntl.defineMessages({
10902
10857
  shippingMethodsPlatformLimitReached: {
10903
10858
  id: 'PlatformLimits.Tooltip.shippingMethodsLimitReached',
10904
10859
  description: 'The message for shipping methods platform limit being reached',
@@ -10911,12 +10866,13 @@ function _objectSpread$l(e) { for (var r = 1; r < arguments.length; r++) { var _
10911
10866
  const PlatformLimitsShippingMethodsTooltip = props => {
10912
10867
  const intl = reactIntl.useIntl();
10913
10868
  return jsxRuntime.jsx(uiKit.Tooltip, _objectSpread$l(_objectSpread$l({}, props), {}, {
10914
- title: intl.formatMessage(messages$k.shippingMethodsPlatformLimitReached)
10869
+ title: intl.formatMessage(messages$o.shippingMethodsPlatformLimitReached)
10915
10870
  }));
10916
10871
  };
10917
10872
  PlatformLimitsShippingMethodsTooltip.displayName = 'PlatformLimitsShippingMethodsTooltip';
10873
+ var ShippingMethodsTooltip = PlatformLimitsShippingMethodsTooltip;
10918
10874
 
10919
- var messages$j = reactIntl.defineMessages({
10875
+ var messages$n = reactIntl.defineMessages({
10920
10876
  shippingMethodsStatus: {
10921
10877
  id: 'PlatformLimits.Status.shippingMethods',
10922
10878
  description: 'The message for shipping methods platform limit values',
@@ -10927,12 +10883,12 @@ var messages$j = reactIntl.defineMessages({
10927
10883
  const PlatformLimitsShippingMethodsStatus = _ref => {
10928
10884
  let total = _ref.total;
10929
10885
  const intl = reactIntl.useIntl();
10930
- const _useShippingMethodsPl = useShippingMethodsPlatformLimitsFetcher(),
10886
+ const _useShippingMethodsPl = useShippingMethodsPlatformLimitsFetcher$1(),
10931
10887
  platformLimits = _useShippingMethodsPl.platformLimits;
10932
10888
  const current = platformLimits?.shippingMethods?.total?.current;
10933
10889
  const limit = platformLimits?.shippingMethods?.total?.limit;
10934
- return jsxRuntime.jsx(PlatformLimitsStatusText, {
10935
- intlMessage: messages$j.shippingMethodsStatus,
10890
+ return jsxRuntime.jsx(StatusText, {
10891
+ intlMessage: messages$n.shippingMethodsStatus,
10936
10892
  children: getPlatformLimitsStatus({
10937
10893
  limit,
10938
10894
  current,
@@ -10942,18 +10898,19 @@ const PlatformLimitsShippingMethodsStatus = _ref => {
10942
10898
  });
10943
10899
  };
10944
10900
  PlatformLimitsShippingMethodsStatus.displayName = 'PlatformLimitsShippingMethodsStatus';
10901
+ var ShippingMethodsStatus = PlatformLimitsShippingMethodsStatus;
10945
10902
 
10946
10903
  const useShippingMethodsLimits = () => {
10947
- const _useShippingMethodsPl = useShippingMethodsPlatformLimitsFetcher(),
10904
+ const _useShippingMethodsPl = useShippingMethodsPlatformLimitsFetcher$1(),
10948
10905
  refetch = _useShippingMethodsPl.refetch;
10949
- const _useShippingMethodsPl2 = useShippingMethodsPlatformLimits(),
10906
+ const _useShippingMethodsPl2 = useShippingMethodsPlatformLimitsStatus(),
10950
10907
  hasReachedShippingMethodsWarningLimit = _useShippingMethodsPl2.hasReachedShippingMethodsWarningLimit,
10951
10908
  hasReachedShippingMethodsErrorLimit = _useShippingMethodsPl2.hasReachedShippingMethodsErrorLimit;
10952
10909
  return {
10953
10910
  ShippingMethodsLimits: {
10954
- Notifications: PlatformLimitsShippingMethodsNotifications,
10955
- Status: PlatformLimitsShippingMethodsStatus,
10956
- Tooltip: PlatformLimitsShippingMethodsTooltip
10911
+ Notifications: ShippingMethodsNotification,
10912
+ Status: ShippingMethodsStatus,
10913
+ Tooltip: ShippingMethodsTooltip
10957
10914
  },
10958
10915
  refetchShippingMethodsPlatformLimits: refetch,
10959
10916
  status: {
@@ -10962,23 +10919,25 @@ const useShippingMethodsLimits = () => {
10962
10919
  }
10963
10920
  };
10964
10921
  };
10922
+ var useShippingMethodsPlatformLimits = useShippingMethodsLimits;
10965
10923
 
10966
10924
  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; }
10967
10925
  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; }
10968
10926
  const injectShippingMethodsPlatformLimits = () => WrappedComponent => {
10969
10927
  const WithShippingMethodsPlatformLimits = props => {
10970
- const shippingMethodsPlatformLimits = useShippingMethodsLimits();
10928
+ const shippingMethodsPlatformLimits = useShippingMethodsPlatformLimits();
10971
10929
  const shippingMethodsProps = {
10972
10930
  platformLimits: shippingMethodsPlatformLimits
10973
10931
  };
10974
10932
  return jsxRuntime.jsx(WrappedComponent, _objectSpread$k(_objectSpread$k({}, props), shippingMethodsProps));
10975
10933
  };
10976
- WithShippingMethodsPlatformLimits.displayName = wrapDisplayName(WrappedComponent, 'WithShippingMethodsPlatformLimits');
10934
+ WithShippingMethodsPlatformLimits.displayName = wrapDisplayName$1(WrappedComponent, 'WithShippingMethodsPlatformLimits');
10977
10935
  return WithShippingMethodsPlatformLimits;
10978
10936
  };
10937
+ var injectShippingMethodsPlatformLimits$1 = injectShippingMethodsPlatformLimits;
10979
10938
 
10980
10939
  const useTaxCategoriesPlatformLimitsFetcher = () => {
10981
- const _usePlatformLimitsFet = usePlatformLimitsFetcher(RESOURCES_WITH_PLATFORM_LIMITS.taxCategories),
10940
+ const _usePlatformLimitsFet = usePlatformLimitsFetcher$1(RESOURCES_WITH_PLATFORM_LIMITS.taxCategories),
10982
10941
  isLoading = _usePlatformLimitsFet.isLoading,
10983
10942
  error = _usePlatformLimitsFet.error,
10984
10943
  platformLimits = _usePlatformLimitsFet.platformLimits,
@@ -10990,9 +10949,10 @@ const useTaxCategoriesPlatformLimitsFetcher = () => {
10990
10949
  refetch
10991
10950
  };
10992
10951
  };
10952
+ var useTaxCategoriesPlatformLimitsFetcher$1 = useTaxCategoriesPlatformLimitsFetcher;
10993
10953
 
10994
- const useTaxCategoriesPlatformLimits = () => {
10995
- const _useTaxCategoriesPlat = useTaxCategoriesPlatformLimitsFetcher(),
10954
+ const useTaxCategoriesPlatformLimits$1 = () => {
10955
+ const _useTaxCategoriesPlat = useTaxCategoriesPlatformLimitsFetcher$1(),
10996
10956
  platformLimits = _useTaxCategoriesPlat.platformLimits;
10997
10957
  if (!platformLimits?.taxCategories?.total) {
10998
10958
  return {
@@ -11016,24 +10976,25 @@ const useTaxCategoriesPlatformLimits = () => {
11016
10976
  hasReachedTaxCategoriesErrorLimit
11017
10977
  };
11018
10978
  };
10979
+ var useTaxCategoriesPlatformLimitsStatus = useTaxCategoriesPlatformLimits$1;
11019
10980
 
11020
10981
  const PlatformLimitsTaxCategoriesNotifications = () => {
11021
- const _useTaxCategoriesPlat = useTaxCategoriesPlatformLimitsFetcher(),
10982
+ const _useTaxCategoriesPlat = useTaxCategoriesPlatformLimitsFetcher$1(),
11022
10983
  platformLimits = _useTaxCategoriesPlat.platformLimits;
11023
- const _useTaxCategoriesPlat2 = useTaxCategoriesPlatformLimits(),
10984
+ const _useTaxCategoriesPlat2 = useTaxCategoriesPlatformLimitsStatus(),
11024
10985
  hasReachedTaxCategoriesWarningLimit = _useTaxCategoriesPlat2.hasReachedTaxCategoriesWarningLimit,
11025
10986
  hasReachedTaxCategoriesErrorLimit = _useTaxCategoriesPlat2.hasReachedTaxCategoriesErrorLimit;
11026
10987
  if (!platformLimits?.taxCategories?.total) {
11027
10988
  return null;
11028
10989
  }
11029
10990
  if (hasReachedTaxCategoriesErrorLimit) {
11030
- return jsxRuntime.jsx(Notifications.Error, {
10991
+ return jsxRuntime.jsx(Notifications$1.Error, {
11031
10992
  resource: RESOURCES_WITH_PLATFORM_LIMITS.taxCategories,
11032
10993
  limit: platformLimits.taxCategories.total.limit
11033
10994
  });
11034
10995
  }
11035
10996
  if (hasReachedTaxCategoriesWarningLimit) {
11036
- return jsxRuntime.jsx(Notifications.Warning, {
10997
+ return jsxRuntime.jsx(Notifications$1.Warning, {
11037
10998
  resource: RESOURCES_WITH_PLATFORM_LIMITS.taxCategories,
11038
10999
  limit: platformLimits.taxCategories.total.limit
11039
11000
  });
@@ -11041,8 +11002,9 @@ const PlatformLimitsTaxCategoriesNotifications = () => {
11041
11002
  return null;
11042
11003
  };
11043
11004
  PlatformLimitsTaxCategoriesNotifications.displayName = 'PlatformLimitsTaxCategoriesNotifications';
11005
+ var TaxCategoriesNotification = PlatformLimitsTaxCategoriesNotifications;
11044
11006
 
11045
- var messages$i = reactIntl.defineMessages({
11007
+ var messages$m = reactIntl.defineMessages({
11046
11008
  taxCategoriesPlatformLimitReached: {
11047
11009
  id: 'PlatformLimits.Tooltip.taxCategoriesLimitReached',
11048
11010
  description: 'The message for tax categories platform limit being reached',
@@ -11055,12 +11017,13 @@ function _objectSpread$j(e) { for (var r = 1; r < arguments.length; r++) { var _
11055
11017
  const PlatformLimitsTaxCategoriesTooltip = props => {
11056
11018
  const intl = reactIntl.useIntl();
11057
11019
  return jsxRuntime.jsx(uiKit.Tooltip, _objectSpread$j(_objectSpread$j({}, props), {}, {
11058
- title: intl.formatMessage(messages$i.taxCategoriesPlatformLimitReached)
11020
+ title: intl.formatMessage(messages$m.taxCategoriesPlatformLimitReached)
11059
11021
  }));
11060
11022
  };
11061
11023
  PlatformLimitsTaxCategoriesTooltip.displayName = 'PlatformLimitsTaxCategoriesTooltip';
11024
+ var TaxCategoriesTooltip = PlatformLimitsTaxCategoriesTooltip;
11062
11025
 
11063
- var messages$h = reactIntl.defineMessages({
11026
+ var messages$l = reactIntl.defineMessages({
11064
11027
  taxCategoriesStatus: {
11065
11028
  id: 'PlatformLimits.Status.taxCategories',
11066
11029
  description: 'The message for tax categories platform limit values',
@@ -11071,12 +11034,12 @@ var messages$h = reactIntl.defineMessages({
11071
11034
  const PlatformLimitsTaxCategoriesStatus = _ref => {
11072
11035
  let total = _ref.total;
11073
11036
  const intl = reactIntl.useIntl();
11074
- const _useTaxCategoriesPlat = useTaxCategoriesPlatformLimitsFetcher(),
11037
+ const _useTaxCategoriesPlat = useTaxCategoriesPlatformLimitsFetcher$1(),
11075
11038
  platformLimits = _useTaxCategoriesPlat.platformLimits;
11076
11039
  const current = platformLimits?.taxCategories?.total?.current;
11077
11040
  const limit = platformLimits?.taxCategories?.total?.limit;
11078
- return jsxRuntime.jsx(PlatformLimitsStatusText, {
11079
- intlMessage: messages$h.taxCategoriesStatus,
11041
+ return jsxRuntime.jsx(StatusText, {
11042
+ intlMessage: messages$l.taxCategoriesStatus,
11080
11043
  children: getPlatformLimitsStatus({
11081
11044
  limit,
11082
11045
  current,
@@ -11086,18 +11049,19 @@ const PlatformLimitsTaxCategoriesStatus = _ref => {
11086
11049
  });
11087
11050
  };
11088
11051
  PlatformLimitsTaxCategoriesStatus.displayName = 'PlatformLimitsTaxCategoriesStatus';
11052
+ var TaxCategoriesStatus = PlatformLimitsTaxCategoriesStatus;
11089
11053
 
11090
11054
  const useTaxCategoriesLimits = () => {
11091
- const _useTaxCategoriesPlat = useTaxCategoriesPlatformLimitsFetcher(),
11055
+ const _useTaxCategoriesPlat = useTaxCategoriesPlatformLimitsFetcher$1(),
11092
11056
  refetch = _useTaxCategoriesPlat.refetch;
11093
- const _useTaxCategoriesPlat2 = useTaxCategoriesPlatformLimits(),
11057
+ const _useTaxCategoriesPlat2 = useTaxCategoriesPlatformLimitsStatus(),
11094
11058
  hasReachedTaxCategoriesWarningLimit = _useTaxCategoriesPlat2.hasReachedTaxCategoriesWarningLimit,
11095
11059
  hasReachedTaxCategoriesErrorLimit = _useTaxCategoriesPlat2.hasReachedTaxCategoriesErrorLimit;
11096
11060
  return {
11097
11061
  TaxCategoriesLimits: {
11098
- Notifications: PlatformLimitsTaxCategoriesNotifications,
11099
- Status: PlatformLimitsTaxCategoriesStatus,
11100
- Tooltip: PlatformLimitsTaxCategoriesTooltip
11062
+ Notifications: TaxCategoriesNotification,
11063
+ Status: TaxCategoriesStatus,
11064
+ Tooltip: TaxCategoriesTooltip
11101
11065
  },
11102
11066
  refetchTaxCategoriesPlatformLimits: refetch,
11103
11067
  status: {
@@ -11106,23 +11070,25 @@ const useTaxCategoriesLimits = () => {
11106
11070
  }
11107
11071
  };
11108
11072
  };
11073
+ var useTaxCategoriesPlatformLimits = useTaxCategoriesLimits;
11109
11074
 
11110
11075
  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; }
11111
11076
  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; }
11112
11077
  const injectTaxCategoriesPlatformLimits = WrappedComponent => {
11113
11078
  const WithTaxCategoriesPlatformLimits = props => {
11114
- const taxCategoriesPlatformLimits = useTaxCategoriesLimits();
11079
+ const taxCategoriesPlatformLimits = useTaxCategoriesPlatformLimits();
11115
11080
  const taxCategoriesProps = {
11116
11081
  platformLimits: taxCategoriesPlatformLimits
11117
11082
  };
11118
11083
  return jsxRuntime.jsx(WrappedComponent, _objectSpread$i(_objectSpread$i({}, props), taxCategoriesProps));
11119
11084
  };
11120
- WithTaxCategoriesPlatformLimits.displayName = wrapDisplayName(WrappedComponent, 'WithTaxCategoriesPlatformLimits');
11085
+ WithTaxCategoriesPlatformLimits.displayName = wrapDisplayName$1(WrappedComponent, 'WithTaxCategoriesPlatformLimits');
11121
11086
  return WithTaxCategoriesPlatformLimits;
11122
11087
  };
11088
+ var injectTaxCategoriesPlatformLimits$1 = injectTaxCategoriesPlatformLimits;
11123
11089
 
11124
11090
  const useZonesPlatformLimitsFetcher = () => {
11125
- const _usePlatformLimitsFet = usePlatformLimitsFetcher(RESOURCES_WITH_PLATFORM_LIMITS.zones),
11091
+ const _usePlatformLimitsFet = usePlatformLimitsFetcher$1(RESOURCES_WITH_PLATFORM_LIMITS.zones),
11126
11092
  isLoading = _usePlatformLimitsFet.isLoading,
11127
11093
  error = _usePlatformLimitsFet.error,
11128
11094
  platformLimits = _usePlatformLimitsFet.platformLimits,
@@ -11134,9 +11100,10 @@ const useZonesPlatformLimitsFetcher = () => {
11134
11100
  refetch
11135
11101
  };
11136
11102
  };
11103
+ var useZonesPlatformLimitsFetcher$1 = useZonesPlatformLimitsFetcher;
11137
11104
 
11138
- const useZonesPlatformLimits = () => {
11139
- const _useZonesPlatformLimi = useZonesPlatformLimitsFetcher(),
11105
+ const useZonesPlatformLimits$1 = () => {
11106
+ const _useZonesPlatformLimi = useZonesPlatformLimitsFetcher$1(),
11140
11107
  platformLimits = _useZonesPlatformLimi.platformLimits;
11141
11108
  if (!platformLimits?.zones?.total) {
11142
11109
  return {
@@ -11160,24 +11127,25 @@ const useZonesPlatformLimits = () => {
11160
11127
  hasReachedZonesErrorLimit
11161
11128
  };
11162
11129
  };
11130
+ var useZonesPlatformLimitsStatus = useZonesPlatformLimits$1;
11163
11131
 
11164
11132
  const PlatformLimitsZonesNotifications = () => {
11165
- const _useZonesPlatformLimi = useZonesPlatformLimitsFetcher(),
11133
+ const _useZonesPlatformLimi = useZonesPlatformLimitsFetcher$1(),
11166
11134
  platformLimits = _useZonesPlatformLimi.platformLimits;
11167
- const _useZonesPlatformLimi2 = useZonesPlatformLimits(),
11135
+ const _useZonesPlatformLimi2 = useZonesPlatformLimitsStatus(),
11168
11136
  hasReachedZonesWarningLimit = _useZonesPlatformLimi2.hasReachedZonesWarningLimit,
11169
11137
  hasReachedZonesErrorLimit = _useZonesPlatformLimi2.hasReachedZonesErrorLimit;
11170
11138
  if (!platformLimits?.zones?.total) {
11171
11139
  return null;
11172
11140
  }
11173
11141
  if (hasReachedZonesErrorLimit) {
11174
- return jsxRuntime.jsx(Notifications.Error, {
11142
+ return jsxRuntime.jsx(Notifications$1.Error, {
11175
11143
  resource: RESOURCES_WITH_PLATFORM_LIMITS.zones,
11176
11144
  limit: platformLimits.zones.total.limit
11177
11145
  });
11178
11146
  }
11179
11147
  if (hasReachedZonesWarningLimit) {
11180
- return jsxRuntime.jsx(Notifications.Warning, {
11148
+ return jsxRuntime.jsx(Notifications$1.Warning, {
11181
11149
  resource: RESOURCES_WITH_PLATFORM_LIMITS.zones,
11182
11150
  limit: platformLimits.zones.total.limit
11183
11151
  });
@@ -11185,8 +11153,9 @@ const PlatformLimitsZonesNotifications = () => {
11185
11153
  return null;
11186
11154
  };
11187
11155
  PlatformLimitsZonesNotifications.displayName = 'PlatformLimitsZonesNotifications';
11156
+ var ZonesNotification = PlatformLimitsZonesNotifications;
11188
11157
 
11189
- var messages$g = reactIntl.defineMessages({
11158
+ var messages$k = reactIntl.defineMessages({
11190
11159
  zonesPlatformLimitReached: {
11191
11160
  id: 'PlatformLimits.Tooltip.zonesLimitReached',
11192
11161
  description: 'The message for zones platform limit being reached',
@@ -11199,12 +11168,13 @@ function _objectSpread$h(e) { for (var r = 1; r < arguments.length; r++) { var _
11199
11168
  const PlatformLimitsZonesTooltip = props => {
11200
11169
  const intl = reactIntl.useIntl();
11201
11170
  return jsxRuntime.jsx(uiKit.Tooltip, _objectSpread$h(_objectSpread$h({}, props), {}, {
11202
- title: intl.formatMessage(messages$g.zonesPlatformLimitReached)
11171
+ title: intl.formatMessage(messages$k.zonesPlatformLimitReached)
11203
11172
  }));
11204
11173
  };
11205
11174
  PlatformLimitsZonesTooltip.displayName = 'PlatformLimitsZonesTooltip';
11175
+ var ZonesTooltip = PlatformLimitsZonesTooltip;
11206
11176
 
11207
- var messages$f = reactIntl.defineMessages({
11177
+ var messages$j = reactIntl.defineMessages({
11208
11178
  zonesStatus: {
11209
11179
  id: 'PlatformLimits.Status.zones',
11210
11180
  description: 'The message for zones platform limit values',
@@ -11215,12 +11185,12 @@ var messages$f = reactIntl.defineMessages({
11215
11185
  const PlatformLimitsZonesStatus = _ref => {
11216
11186
  let total = _ref.total;
11217
11187
  const intl = reactIntl.useIntl();
11218
- const _useZonesPlatformLimi = useZonesPlatformLimitsFetcher(),
11188
+ const _useZonesPlatformLimi = useZonesPlatformLimitsFetcher$1(),
11219
11189
  platformLimits = _useZonesPlatformLimi.platformLimits;
11220
11190
  const current = platformLimits?.zones?.total?.current;
11221
11191
  const limit = platformLimits?.zones?.total?.limit;
11222
- return jsxRuntime.jsx(PlatformLimitsStatusText, {
11223
- intlMessage: messages$f.zonesStatus,
11192
+ return jsxRuntime.jsx(StatusText, {
11193
+ intlMessage: messages$j.zonesStatus,
11224
11194
  children: getPlatformLimitsStatus({
11225
11195
  limit,
11226
11196
  current,
@@ -11230,18 +11200,19 @@ const PlatformLimitsZonesStatus = _ref => {
11230
11200
  });
11231
11201
  };
11232
11202
  PlatformLimitsZonesStatus.displayName = 'PlatformLimitsZonesStatus';
11203
+ var ZonesStatus = PlatformLimitsZonesStatus;
11233
11204
 
11234
11205
  const useZonesLimits = () => {
11235
- const _useZonesPlatformLimi = useZonesPlatformLimitsFetcher(),
11206
+ const _useZonesPlatformLimi = useZonesPlatformLimitsFetcher$1(),
11236
11207
  refetch = _useZonesPlatformLimi.refetch;
11237
- const _useZonesPlatformLimi2 = useZonesPlatformLimits(),
11208
+ const _useZonesPlatformLimi2 = useZonesPlatformLimitsStatus(),
11238
11209
  hasReachedZonesWarningLimit = _useZonesPlatformLimi2.hasReachedZonesWarningLimit,
11239
11210
  hasReachedZonesErrorLimit = _useZonesPlatformLimi2.hasReachedZonesErrorLimit;
11240
11211
  return {
11241
11212
  ZonesLimits: {
11242
- Notifications: PlatformLimitsZonesNotifications,
11243
- Status: PlatformLimitsZonesStatus,
11244
- Tooltip: PlatformLimitsZonesTooltip
11213
+ Notifications: ZonesNotification,
11214
+ Status: ZonesStatus,
11215
+ Tooltip: ZonesTooltip
11245
11216
  },
11246
11217
  refetchZonesPlatformLimits: refetch,
11247
11218
  status: {
@@ -11250,23 +11221,25 @@ const useZonesLimits = () => {
11250
11221
  }
11251
11222
  };
11252
11223
  };
11224
+ var useZonesPlatformLimits = useZonesLimits;
11253
11225
 
11254
11226
  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; }
11255
11227
  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; }
11256
11228
  const injectZonesPlatformLimits = () => WrappedComponent => {
11257
11229
  const WithZonesPlatformLimits = props => {
11258
- const zonesPlatformLimits = useZonesLimits();
11230
+ const zonesPlatformLimits = useZonesPlatformLimits();
11259
11231
  const zonesProps = {
11260
11232
  platformLimits: zonesPlatformLimits
11261
11233
  };
11262
11234
  return jsxRuntime.jsx(WrappedComponent, _objectSpread$g(_objectSpread$g({}, props), zonesProps));
11263
11235
  };
11264
- WithZonesPlatformLimits.displayName = wrapDisplayName(WrappedComponent, 'WithZonesPlatformLimits');
11236
+ WithZonesPlatformLimits.displayName = wrapDisplayName$1(WrappedComponent, 'WithZonesPlatformLimits');
11265
11237
  return WithZonesPlatformLimits;
11266
11238
  };
11239
+ var injectZonesPlatformLimits$1 = injectZonesPlatformLimits;
11267
11240
 
11268
11241
  const useCustomersPlatformLimitsFetcher = () => {
11269
- const _usePlatformLimitsFet = usePlatformLimitsFetcher(RESOURCES_WITH_PLATFORM_LIMITS.customers),
11242
+ const _usePlatformLimitsFet = usePlatformLimitsFetcher$1(RESOURCES_WITH_PLATFORM_LIMITS.customers),
11270
11243
  isLoading = _usePlatformLimitsFet.isLoading,
11271
11244
  error = _usePlatformLimitsFet.error,
11272
11245
  platformLimits = _usePlatformLimitsFet.platformLimits,
@@ -11278,9 +11251,10 @@ const useCustomersPlatformLimitsFetcher = () => {
11278
11251
  refetch
11279
11252
  };
11280
11253
  };
11254
+ var useCustomersPlatformLimitsFetcher$1 = useCustomersPlatformLimitsFetcher;
11281
11255
 
11282
- const useCustomersPlatformLimits$1 = () => {
11283
- const _useCustomersPlatform = useCustomersPlatformLimitsFetcher(),
11256
+ const useCustomersPlatformLimits$2 = () => {
11257
+ const _useCustomersPlatform = useCustomersPlatformLimitsFetcher$1(),
11284
11258
  platformLimits = _useCustomersPlatform.platformLimits;
11285
11259
  if (!platformLimits?.customers?.total) {
11286
11260
  return {
@@ -11304,10 +11278,11 @@ const useCustomersPlatformLimits$1 = () => {
11304
11278
  hasReachedCustomersErrorLimit
11305
11279
  };
11306
11280
  };
11281
+ var useCustomersPlatformLimitsStatus = useCustomersPlatformLimits$2;
11307
11282
 
11308
11283
  const useCustomersPlatormLimitsModalState = () => {
11309
- const customersPlatformLimitsStatus = useCustomersPlatformLimits$1();
11310
- const limitsModalState = useLimitsModalState(false);
11284
+ const customersPlatformLimitsStatus = useCustomersPlatformLimitsStatus();
11285
+ const limitsModalState = useLimitsModalState$1(false);
11311
11286
  React.useEffect(() => {
11312
11287
  if (customersPlatformLimitsStatus.hasReachedCustomersErrorLimit) {
11313
11288
  limitsModalState.openModal();
@@ -11317,24 +11292,25 @@ const useCustomersPlatormLimitsModalState = () => {
11317
11292
  isModalOpen: limitsModalState.isModalOpen
11318
11293
  };
11319
11294
  };
11295
+ var useCustomersPlatormLimitsModalState$1 = useCustomersPlatormLimitsModalState;
11320
11296
 
11321
11297
  const PlatformLimitsCustomersNotifications = () => {
11322
- const _useCustomersPlatform = useCustomersPlatformLimitsFetcher(),
11298
+ const _useCustomersPlatform = useCustomersPlatformLimitsFetcher$1(),
11323
11299
  platformLimits = _useCustomersPlatform.platformLimits;
11324
- const _useCustomersPlatform2 = useCustomersPlatformLimits$1(),
11300
+ const _useCustomersPlatform2 = useCustomersPlatformLimitsStatus(),
11325
11301
  hasReachedCustomersWarningLimit = _useCustomersPlatform2.hasReachedCustomersWarningLimit,
11326
11302
  hasReachedCustomersErrorLimit = _useCustomersPlatform2.hasReachedCustomersErrorLimit;
11327
11303
  if (!platformLimits?.customers?.total) {
11328
11304
  return jsxRuntime.jsx("div", {});
11329
11305
  }
11330
11306
  if (hasReachedCustomersErrorLimit) {
11331
- return jsxRuntime.jsx(Notifications.Error, {
11307
+ return jsxRuntime.jsx(Notifications$1.Error, {
11332
11308
  resource: RESOURCES_WITH_PLATFORM_LIMITS.customers,
11333
11309
  limit: platformLimits.customers.total.limit
11334
11310
  });
11335
11311
  }
11336
11312
  if (hasReachedCustomersWarningLimit) {
11337
- return jsxRuntime.jsx(Notifications.Warning, {
11313
+ return jsxRuntime.jsx(Notifications$1.Warning, {
11338
11314
  resource: RESOURCES_WITH_PLATFORM_LIMITS.customers,
11339
11315
  limit: platformLimits.customers.total.limit
11340
11316
  });
@@ -11342,8 +11318,9 @@ const PlatformLimitsCustomersNotifications = () => {
11342
11318
  return jsxRuntime.jsx("div", {});
11343
11319
  };
11344
11320
  PlatformLimitsCustomersNotifications.displayName = 'PlatformLimitsCustomersNotifications';
11321
+ var CustomersNotification = PlatformLimitsCustomersNotifications;
11345
11322
 
11346
- var messages$e = reactIntl.defineMessages({
11323
+ var messages$i = reactIntl.defineMessages({
11347
11324
  customersPlatformLimitReached: {
11348
11325
  id: 'PlatformLimits.Tooltip.customersLimitReached',
11349
11326
  description: 'The message for customers platform limit being reached',
@@ -11356,12 +11333,13 @@ function _objectSpread$f(e) { for (var r = 1; r < arguments.length; r++) { var _
11356
11333
  const PlatformLimitsCustomersTooltip = props => {
11357
11334
  const intl = reactIntl.useIntl();
11358
11335
  return jsxRuntime.jsx(uiKit.Tooltip, _objectSpread$f(_objectSpread$f({}, props), {}, {
11359
- title: intl.formatMessage(messages$e.customersPlatformLimitReached)
11336
+ title: intl.formatMessage(messages$i.customersPlatformLimitReached)
11360
11337
  }));
11361
11338
  };
11362
11339
  PlatformLimitsCustomersTooltip.displayName = 'PlatformLimitsCustomersTooltip';
11340
+ var CustomersTooltip = PlatformLimitsCustomersTooltip;
11363
11341
 
11364
- var messages$d = reactIntl.defineMessages({
11342
+ var messages$h = reactIntl.defineMessages({
11365
11343
  customersStatus: {
11366
11344
  id: 'PlatformLimits.Status.customers',
11367
11345
  description: 'The message for customers platform limit values',
@@ -11376,7 +11354,7 @@ var styles$6 = {
11376
11354
  };
11377
11355
  const PlatformLimitsCustomersStatus = () => {
11378
11356
  const intl = reactIntl.useIntl();
11379
- const _useCustomersPlatform = useCustomersPlatformLimitsFetcher(),
11357
+ const _useCustomersPlatform = useCustomersPlatformLimitsFetcher$1(),
11380
11358
  platformLimits = _useCustomersPlatform.platformLimits;
11381
11359
  if (!platformLimits?.customers?.total) {
11382
11360
  return null;
@@ -11389,7 +11367,7 @@ const PlatformLimitsCustomersStatus = () => {
11389
11367
  children: jsxRuntime.jsx(uiKit.Text.Detail, {
11390
11368
  tone: "secondary",
11391
11369
  isInline: true,
11392
- intlMessage: _objectSpread$e(_objectSpread$e({}, messages$d.customersStatus), {}, {
11370
+ intlMessage: _objectSpread$e(_objectSpread$e({}, messages$h.customersStatus), {}, {
11393
11371
  values: {
11394
11372
  current: intl.formatNumber(current),
11395
11373
  limit: intl.formatNumber(limit)
@@ -11399,8 +11377,9 @@ const PlatformLimitsCustomersStatus = () => {
11399
11377
  });
11400
11378
  };
11401
11379
  PlatformLimitsCustomersStatus.displayName = 'PlatformLimitsCustomersStatus';
11380
+ var CustomersStatus = PlatformLimitsCustomersStatus;
11402
11381
 
11403
- var messages$c = reactIntl.defineMessages({
11382
+ var messages$g = reactIntl.defineMessages({
11404
11383
  title: {
11405
11384
  id: 'PlatformLimits.Customers.modalTitle',
11406
11385
  description: 'The modal title for the customer platform limits error',
@@ -11520,20 +11499,20 @@ LimitsReachedErrorGraphic$1.defaultProps = {
11520
11499
  const PlatformLimitsCustomersErrorModal = _ref => {
11521
11500
  let onClose = _ref.onClose;
11522
11501
  const intl = reactIntl.useIntl();
11523
- const customersPlatformLimitsModalState = useCustomersPlatormLimitsModalState();
11502
+ const customersPlatformLimitsModalState = useCustomersPlatormLimitsModalState$1();
11524
11503
  return jsxRuntime.jsx(applicationComponents.InfoDialog, {
11525
11504
  isOpen: customersPlatformLimitsModalState.isModalOpen,
11526
11505
  onClose: onClose,
11527
- title: intl.formatMessage(messages$c.title),
11506
+ title: intl.formatMessage(messages$g.title),
11528
11507
  children: jsxRuntime.jsxs(uiKit.Spacings.Stack, {
11529
11508
  scale: "m",
11530
11509
  alignItems: "center",
11531
11510
  children: [jsxRuntime.jsx(LimitsReachedErrorGraphic$1, {}), jsxRuntime.jsxs(uiKit.Spacings.Stack, {
11532
11511
  scale: "l",
11533
11512
  alignItems: "center",
11534
- children: [jsxRuntime.jsx(PlatformLimitsCustomersNotifications, {}), jsxRuntime.jsx(uiKit.FlatButton, {
11513
+ children: [jsxRuntime.jsx(CustomersNotification, {}), jsxRuntime.jsx(uiKit.FlatButton, {
11535
11514
  onClick: onClose,
11536
- label: intl.formatMessage(messages$c.backToList),
11515
+ label: intl.formatMessage(messages$g.backToList),
11537
11516
  icon: jsxRuntime.jsx(uiKit.ListIcon, {
11538
11517
  size: "medium",
11539
11518
  color: "primary"
@@ -11544,13 +11523,14 @@ const PlatformLimitsCustomersErrorModal = _ref => {
11544
11523
  });
11545
11524
  };
11546
11525
  PlatformLimitsCustomersErrorModal.displayName = 'PlatformLimitsCustomersErrorModal';
11526
+ var CustomersErrorModal = PlatformLimitsCustomersErrorModal;
11547
11527
 
11548
11528
  var styles$5 = {
11549
11529
  "combined": "platform-limits-customers-combined-module__combined___OszDd"
11550
11530
  };
11551
11531
  const PlatformLimitsCustomersCombined = () => {
11552
11532
  // on the customer create only show the warning message
11553
- const _useCustomersPlatform = useCustomersPlatformLimits$1(),
11533
+ const _useCustomersPlatform = useCustomersPlatformLimitsStatus(),
11554
11534
  hasReachedCustomersErrorLimit = _useCustomersPlatform.hasReachedCustomersErrorLimit,
11555
11535
  hasReachedCustomersWarningLimit = _useCustomersPlatform.hasReachedCustomersWarningLimit;
11556
11536
  return jsxRuntime.jsx("div", {
@@ -11558,26 +11538,27 @@ const PlatformLimitsCustomersCombined = () => {
11558
11538
  children: jsxRuntime.jsxs(uiKit.Spacings.Inline, {
11559
11539
  scale: "xl",
11560
11540
  justifyContent: "space-between",
11561
- children: [hasReachedCustomersWarningLimit && !hasReachedCustomersErrorLimit ? jsxRuntime.jsx(PlatformLimitsCustomersNotifications, {}) : null, jsxRuntime.jsx(PlatformLimitsCustomersStatus, {})]
11541
+ children: [hasReachedCustomersWarningLimit && !hasReachedCustomersErrorLimit ? jsxRuntime.jsx(CustomersNotification, {}) : null, jsxRuntime.jsx(CustomersStatus, {})]
11562
11542
  })
11563
11543
  });
11564
11544
  };
11565
11545
  PlatformLimitsCustomersCombined.displayName = 'PlatformLimitsCustomersCombined';
11546
+ var CustomersCombined = PlatformLimitsCustomersCombined;
11566
11547
 
11567
11548
  const useCustomersPlatformLimits = () => {
11568
- const _useCustomersPlatform = useCustomersPlatformLimitsFetcher(),
11549
+ const _useCustomersPlatform = useCustomersPlatformLimitsFetcher$1(),
11569
11550
  refetch = _useCustomersPlatform.refetch;
11570
- const _useCustomersPlatform2 = useCustomersPlatformLimits$1(),
11551
+ const _useCustomersPlatform2 = useCustomersPlatformLimitsStatus(),
11571
11552
  hasReachedCustomersWarningLimit = _useCustomersPlatform2.hasReachedCustomersWarningLimit,
11572
11553
  hasReachedCustomersErrorLimit = _useCustomersPlatform2.hasReachedCustomersErrorLimit;
11573
- const interceptNavigation = useInterceptNavigation(hasReachedCustomersErrorLimit);
11554
+ const interceptNavigation = useInterceptNavigation$1(hasReachedCustomersErrorLimit);
11574
11555
  return {
11575
11556
  CustomersLimits: {
11576
- Notifications: PlatformLimitsCustomersNotifications,
11577
- Status: PlatformLimitsCustomersStatus,
11578
- Combined: PlatformLimitsCustomersCombined,
11579
- Tooltip: PlatformLimitsCustomersTooltip,
11580
- ErrorModal: PlatformLimitsCustomersErrorModal
11557
+ Notifications: CustomersNotification,
11558
+ Status: CustomersStatus,
11559
+ Combined: CustomersCombined,
11560
+ Tooltip: CustomersTooltip,
11561
+ ErrorModal: CustomersErrorModal
11581
11562
  },
11582
11563
  refetchCustomersPlatformLimits: refetch,
11583
11564
  interceptNavigation,
@@ -11587,23 +11568,25 @@ const useCustomersPlatformLimits = () => {
11587
11568
  }
11588
11569
  };
11589
11570
  };
11571
+ var useCustomersPlatformLimits$1 = useCustomersPlatformLimits;
11590
11572
 
11591
11573
  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; }
11592
11574
  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; }
11593
11575
  const injectCustomersPlatformLimits = () => WrappedComponent => {
11594
11576
  const WithCustomersPlatformLimits = props => {
11595
- const CustomersPlatformLimits = useCustomersPlatformLimits();
11577
+ const CustomersPlatformLimits = useCustomersPlatformLimits$1();
11596
11578
  const customersProps = {
11597
11579
  platformLimits: CustomersPlatformLimits
11598
11580
  };
11599
11581
  return jsxRuntime.jsx(WrappedComponent, _objectSpread$c(_objectSpread$c({}, props), customersProps));
11600
11582
  };
11601
- WithCustomersPlatformLimits.displayName = wrapDisplayName(WrappedComponent, 'WithCustomersPlatformLimits');
11583
+ WithCustomersPlatformLimits.displayName = wrapDisplayName$1(WrappedComponent, 'WithCustomersPlatformLimits');
11602
11584
  return WithCustomersPlatformLimits;
11603
11585
  };
11586
+ var injectCustomersPlatformLimits$1 = injectCustomersPlatformLimits;
11604
11587
 
11605
11588
  const useCustomerGroupsPlatformLimitsFetcher = () => {
11606
- const _usePlatformLimitsFet = usePlatformLimitsFetcher(RESOURCES_WITH_PLATFORM_LIMITS.customerGroups),
11589
+ const _usePlatformLimitsFet = usePlatformLimitsFetcher$1(RESOURCES_WITH_PLATFORM_LIMITS.customerGroups),
11607
11590
  isLoading = _usePlatformLimitsFet.isLoading,
11608
11591
  error = _usePlatformLimitsFet.error,
11609
11592
  platformLimits = _usePlatformLimitsFet.platformLimits,
@@ -11615,9 +11598,10 @@ const useCustomerGroupsPlatformLimitsFetcher = () => {
11615
11598
  refetch
11616
11599
  };
11617
11600
  };
11601
+ var useCustomerGroupsPlatformLimitsFetcher$1 = useCustomerGroupsPlatformLimitsFetcher;
11618
11602
 
11619
11603
  const useCustomerGroupsPlatformLimitsStatus = () => {
11620
- const _useCustomerGroupsPla = useCustomerGroupsPlatformLimitsFetcher(),
11604
+ const _useCustomerGroupsPla = useCustomerGroupsPlatformLimitsFetcher$1(),
11621
11605
  platformLimits = _useCustomerGroupsPla.platformLimits;
11622
11606
  if (!platformLimits?.customerGroups?.total) {
11623
11607
  return {
@@ -11641,10 +11625,11 @@ const useCustomerGroupsPlatformLimitsStatus = () => {
11641
11625
  hasReachedCustomerGroupsErrorLimit
11642
11626
  };
11643
11627
  };
11628
+ var useCustomerGroupsPlatformLimitsStatus$1 = useCustomerGroupsPlatformLimitsStatus;
11644
11629
 
11645
11630
  const useCustomerGroupsPlatormLimitsModalState = () => {
11646
- const customerGroupsPlatformLimitsStatus = useCustomerGroupsPlatformLimitsStatus();
11647
- const limitsModalState = useLimitsModalState(false);
11631
+ const customerGroupsPlatformLimitsStatus = useCustomerGroupsPlatformLimitsStatus$1();
11632
+ const limitsModalState = useLimitsModalState$1(false);
11648
11633
  React.useEffect(() => {
11649
11634
  if (customerGroupsPlatformLimitsStatus.hasReachedCustomerGroupsErrorLimit) {
11650
11635
  limitsModalState.openModal();
@@ -11654,24 +11639,25 @@ const useCustomerGroupsPlatormLimitsModalState = () => {
11654
11639
  isModalOpen: limitsModalState.isModalOpen
11655
11640
  };
11656
11641
  };
11642
+ var useCustomerGroupsPlatormLimitsModalState$1 = useCustomerGroupsPlatormLimitsModalState;
11657
11643
 
11658
11644
  const PlatformLimitsCustomerGroupsNotifications = () => {
11659
- const _useCustomerGroupsPla = useCustomerGroupsPlatformLimitsFetcher(),
11645
+ const _useCustomerGroupsPla = useCustomerGroupsPlatformLimitsFetcher$1(),
11660
11646
  platformLimits = _useCustomerGroupsPla.platformLimits;
11661
- const _useCustomerGroupsPla2 = useCustomerGroupsPlatformLimitsStatus(),
11647
+ const _useCustomerGroupsPla2 = useCustomerGroupsPlatformLimitsStatus$1(),
11662
11648
  hasReachedCustomerGroupsWarningLimit = _useCustomerGroupsPla2.hasReachedCustomerGroupsWarningLimit,
11663
11649
  hasReachedCustomerGroupsErrorLimit = _useCustomerGroupsPla2.hasReachedCustomerGroupsErrorLimit;
11664
11650
  if (!platformLimits?.customerGroups?.total) {
11665
11651
  return jsxRuntime.jsx("div", {});
11666
11652
  }
11667
11653
  if (hasReachedCustomerGroupsErrorLimit) {
11668
- return jsxRuntime.jsx(Notifications.Error, {
11654
+ return jsxRuntime.jsx(Notifications$1.Error, {
11669
11655
  resource: RESOURCES_WITH_PLATFORM_LIMITS.customerGroups,
11670
11656
  limit: platformLimits.customerGroups.total.limit
11671
11657
  });
11672
11658
  }
11673
11659
  if (hasReachedCustomerGroupsWarningLimit) {
11674
- return jsxRuntime.jsx(Notifications.Warning, {
11660
+ return jsxRuntime.jsx(Notifications$1.Warning, {
11675
11661
  resource: RESOURCES_WITH_PLATFORM_LIMITS.customerGroups,
11676
11662
  limit: platformLimits.customerGroups.total.limit
11677
11663
  });
@@ -11679,8 +11665,9 @@ const PlatformLimitsCustomerGroupsNotifications = () => {
11679
11665
  return jsxRuntime.jsx("div", {});
11680
11666
  };
11681
11667
  PlatformLimitsCustomerGroupsNotifications.displayName = 'PlatformLimitsCustomerGroupsNotifications';
11668
+ var CustomerGroupsNotification = PlatformLimitsCustomerGroupsNotifications;
11682
11669
 
11683
- var messages$b = reactIntl.defineMessages({
11670
+ var messages$f = reactIntl.defineMessages({
11684
11671
  customerGroupsPlatformLimitReached: {
11685
11672
  id: 'PlatformLimits.Tooltip.customerGroupsLimitReached',
11686
11673
  description: 'The message for custome groups platform limit being reached',
@@ -11693,12 +11680,13 @@ function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var _
11693
11680
  const PlatformLimitsCustomerGroupsTooltip = props => {
11694
11681
  const intl = reactIntl.useIntl();
11695
11682
  return jsxRuntime.jsx(uiKit.Tooltip, _objectSpread$b(_objectSpread$b({}, props), {}, {
11696
- title: intl.formatMessage(messages$b.customerGroupsPlatformLimitReached)
11683
+ title: intl.formatMessage(messages$f.customerGroupsPlatformLimitReached)
11697
11684
  }));
11698
11685
  };
11699
11686
  PlatformLimitsCustomerGroupsTooltip.displayName = 'PlatformLimitsCustomerGroupsTooltip';
11687
+ var CustomerGroupsTooltip = PlatformLimitsCustomerGroupsTooltip;
11700
11688
 
11701
- var messages$a = reactIntl.defineMessages({
11689
+ var messages$e = reactIntl.defineMessages({
11702
11690
  customerGroupsStatus: {
11703
11691
  id: 'PlatformLimits.Status.customerGroups',
11704
11692
  description: 'The message for customer groups platform limit values',
@@ -11713,7 +11701,7 @@ var styles$4 = {
11713
11701
  };
11714
11702
  const PlatformLimitsCustomerGroupsStatus = () => {
11715
11703
  const intl = reactIntl.useIntl();
11716
- const _useCustomerGroupsPla = useCustomerGroupsPlatformLimitsFetcher(),
11704
+ const _useCustomerGroupsPla = useCustomerGroupsPlatformLimitsFetcher$1(),
11717
11705
  platformLimits = _useCustomerGroupsPla.platformLimits;
11718
11706
  if (!platformLimits?.customerGroups?.total) {
11719
11707
  return null;
@@ -11726,7 +11714,7 @@ const PlatformLimitsCustomerGroupsStatus = () => {
11726
11714
  children: jsxRuntime.jsx(uiKit.Text.Detail, {
11727
11715
  tone: "secondary",
11728
11716
  isInline: true,
11729
- intlMessage: _objectSpread$a(_objectSpread$a({}, messages$a.customerGroupsStatus), {}, {
11717
+ intlMessage: _objectSpread$a(_objectSpread$a({}, messages$e.customerGroupsStatus), {}, {
11730
11718
  values: {
11731
11719
  current: intl.formatNumber(current),
11732
11720
  limit: intl.formatNumber(limit)
@@ -11736,8 +11724,9 @@ const PlatformLimitsCustomerGroupsStatus = () => {
11736
11724
  });
11737
11725
  };
11738
11726
  PlatformLimitsCustomerGroupsStatus.displayName = 'PlatformLimitsCustomerGroupsStatus';
11727
+ var CustomerGroupsStatus = PlatformLimitsCustomerGroupsStatus;
11739
11728
 
11740
- var messages$9 = reactIntl.defineMessages({
11729
+ var messages$d = reactIntl.defineMessages({
11741
11730
  title: {
11742
11731
  id: 'PlatformLimits.CustomerGroups.modalTitle',
11743
11732
  description: 'The modal title for the customer groups platform limits error',
@@ -11857,20 +11846,20 @@ LimitsReachedErrorGraphic.defaultProps = {
11857
11846
  const PlatformLimitsCustomerGroupsErrorModal = _ref => {
11858
11847
  let onClose = _ref.onClose;
11859
11848
  const intl = reactIntl.useIntl();
11860
- const customerGroupsPlatformLimitsModalState = useCustomerGroupsPlatormLimitsModalState();
11849
+ const customerGroupsPlatformLimitsModalState = useCustomerGroupsPlatormLimitsModalState$1();
11861
11850
  return jsxRuntime.jsx(applicationComponents.InfoDialog, {
11862
11851
  isOpen: customerGroupsPlatformLimitsModalState.isModalOpen,
11863
11852
  onClose: onClose,
11864
- title: intl.formatMessage(messages$9.title),
11853
+ title: intl.formatMessage(messages$d.title),
11865
11854
  children: jsxRuntime.jsxs(uiKit.Spacings.Stack, {
11866
11855
  scale: "m",
11867
11856
  alignItems: "center",
11868
11857
  children: [jsxRuntime.jsx(LimitsReachedErrorGraphic, {}), jsxRuntime.jsxs(uiKit.Spacings.Stack, {
11869
11858
  scale: "l",
11870
11859
  alignItems: "center",
11871
- children: [jsxRuntime.jsx(PlatformLimitsCustomerGroupsNotifications, {}), jsxRuntime.jsx(uiKit.FlatButton, {
11860
+ children: [jsxRuntime.jsx(CustomerGroupsNotification, {}), jsxRuntime.jsx(uiKit.FlatButton, {
11872
11861
  onClick: onClose,
11873
- label: intl.formatMessage(messages$9.backToList),
11862
+ label: intl.formatMessage(messages$d.backToList),
11874
11863
  icon: jsxRuntime.jsx(uiKit.ListIcon, {
11875
11864
  size: "medium",
11876
11865
  color: "primary"
@@ -11881,13 +11870,14 @@ const PlatformLimitsCustomerGroupsErrorModal = _ref => {
11881
11870
  });
11882
11871
  };
11883
11872
  PlatformLimitsCustomerGroupsErrorModal.displayName = 'PlatformLimitsCustomerGroupsErrorModal';
11873
+ var CustomerGroupsErrorModal = PlatformLimitsCustomerGroupsErrorModal;
11884
11874
 
11885
11875
  var styles$3 = {
11886
11876
  "combined": "platform-limits-customer-groups-combined-module__combined___WjRoI"
11887
11877
  };
11888
11878
  const PlatformLimitsCustomerGroupsCombined = () => {
11889
11879
  // on the customer create only show the warning message
11890
- const _useCustomerGroupsPla = useCustomerGroupsPlatformLimitsStatus(),
11880
+ const _useCustomerGroupsPla = useCustomerGroupsPlatformLimitsStatus$1(),
11891
11881
  hasReachedCustomerGroupsErrorLimit = _useCustomerGroupsPla.hasReachedCustomerGroupsErrorLimit,
11892
11882
  hasReachedCustomerGroupsWarningLimit = _useCustomerGroupsPla.hasReachedCustomerGroupsWarningLimit;
11893
11883
  return jsxRuntime.jsx("div", {
@@ -11895,26 +11885,27 @@ const PlatformLimitsCustomerGroupsCombined = () => {
11895
11885
  children: jsxRuntime.jsxs(uiKit.Spacings.Inline, {
11896
11886
  scale: "xl",
11897
11887
  justifyContent: "space-between",
11898
- children: [hasReachedCustomerGroupsWarningLimit && !hasReachedCustomerGroupsErrorLimit ? jsxRuntime.jsx(PlatformLimitsCustomerGroupsNotifications, {}) : null, jsxRuntime.jsx(PlatformLimitsCustomerGroupsStatus, {})]
11888
+ children: [hasReachedCustomerGroupsWarningLimit && !hasReachedCustomerGroupsErrorLimit ? jsxRuntime.jsx(CustomerGroupsNotification, {}) : null, jsxRuntime.jsx(CustomerGroupsStatus, {})]
11899
11889
  })
11900
11890
  });
11901
11891
  };
11902
11892
  PlatformLimitsCustomerGroupsCombined.displayName = 'PlatformLimitsCustomerGroupsCombined';
11893
+ var CustomerGroupsCombined = PlatformLimitsCustomerGroupsCombined;
11903
11894
 
11904
11895
  const useCustomerGroupsPlatformLimits = () => {
11905
- const _useCustomerGroupsPla = useCustomerGroupsPlatformLimitsFetcher(),
11896
+ const _useCustomerGroupsPla = useCustomerGroupsPlatformLimitsFetcher$1(),
11906
11897
  refetch = _useCustomerGroupsPla.refetch;
11907
- const _useCustomerGroupsPla2 = useCustomerGroupsPlatformLimitsStatus(),
11898
+ const _useCustomerGroupsPla2 = useCustomerGroupsPlatformLimitsStatus$1(),
11908
11899
  hasReachedCustomerGroupsWarningLimit = _useCustomerGroupsPla2.hasReachedCustomerGroupsWarningLimit,
11909
11900
  hasReachedCustomerGroupsErrorLimit = _useCustomerGroupsPla2.hasReachedCustomerGroupsErrorLimit;
11910
- const interceptNavigation = useInterceptNavigation(hasReachedCustomerGroupsErrorLimit);
11901
+ const interceptNavigation = useInterceptNavigation$1(hasReachedCustomerGroupsErrorLimit);
11911
11902
  return {
11912
11903
  CustomerGroupsLimits: {
11913
- Notifications: PlatformLimitsCustomerGroupsNotifications,
11914
- Status: PlatformLimitsCustomerGroupsStatus,
11915
- Combined: PlatformLimitsCustomerGroupsCombined,
11916
- Tooltip: PlatformLimitsCustomerGroupsTooltip,
11917
- ErrorModal: PlatformLimitsCustomerGroupsErrorModal
11904
+ Notifications: CustomerGroupsNotification,
11905
+ Status: CustomerGroupsStatus,
11906
+ Combined: CustomerGroupsCombined,
11907
+ Tooltip: CustomerGroupsTooltip,
11908
+ ErrorModal: CustomerGroupsErrorModal
11918
11909
  },
11919
11910
  refetchCustomerGroupsPlatformLimits: refetch,
11920
11911
  interceptNavigation,
@@ -11924,30 +11915,24 @@ const useCustomerGroupsPlatformLimits = () => {
11924
11915
  }
11925
11916
  };
11926
11917
  };
11918
+ var useCustomerGroupsPlatformLimits$1 = useCustomerGroupsPlatformLimits;
11927
11919
 
11928
11920
  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; }
11929
11921
  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; }
11930
11922
  const injectCustomerGroupsPlatformLimits = () => WrappedComponent => {
11931
11923
  const WithCustomerGroupsPlatformLimits = props => {
11932
- const CustomerGroupsPlatformLimits = useCustomerGroupsPlatformLimits();
11924
+ const CustomerGroupsPlatformLimits = useCustomerGroupsPlatformLimits$1();
11933
11925
  const customersProps = {
11934
11926
  platformLimits: CustomerGroupsPlatformLimits
11935
11927
  };
11936
11928
  return jsxRuntime.jsx(WrappedComponent, _objectSpread$8(_objectSpread$8({}, props), customersProps));
11937
11929
  };
11938
- WithCustomerGroupsPlatformLimits.displayName = wrapDisplayName(WrappedComponent, 'WithCustomerGroupsPlatformLimits');
11930
+ WithCustomerGroupsPlatformLimits.displayName = wrapDisplayName$1(WrappedComponent, 'WithCustomerGroupsPlatformLimits');
11939
11931
  return WithCustomerGroupsPlatformLimits;
11940
11932
  };
11933
+ var injectCustomerGroupsPlatformLimits$1 = injectCustomerGroupsPlatformLimits;
11941
11934
 
11942
- const handlers = {
11943
- PlatformLimits: {
11944
- all: platformLimiits => msw.graphql.query('PlatformLimitsFetcherQuery', (req, res, ctx) => res(ctx.data({
11945
- limits: platformLimiits
11946
- })))
11947
- }
11948
- };
11949
-
11950
- var messages$8 = reactIntl.defineMessages({
11935
+ var messages$c = reactIntl.defineMessages({
11951
11936
  yes: {
11952
11937
  id: 'BooleanField.yes',
11953
11938
  description: 'The label for boolean attribute `true` value',
@@ -11968,8 +11953,8 @@ const valueMapping = {
11968
11953
  const BooleanField = props => {
11969
11954
  let selectedValue;
11970
11955
  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]);
11971
- const yesLabel = props.intl.formatMessage(messages$8.yes);
11972
- const noLabel = props.intl.formatMessage(messages$8.no);
11956
+ const yesLabel = props.intl.formatMessage(messages$c.yes);
11957
+ const noLabel = props.intl.formatMessage(messages$c.no);
11973
11958
  const options = [{
11974
11959
  value: 'yes',
11975
11960
  label: yesLabel
@@ -12007,7 +11992,7 @@ function getBooleanValue(value) {
12007
11992
  return value === false ? 'no' : 'yes';
12008
11993
  }
12009
11994
 
12010
- const messages$7 = reactIntl.defineMessages({
11995
+ const messages$a = reactIntl.defineMessages({
12011
11996
  from: {
12012
11997
  id: 'LabelRange.from',
12013
11998
  description: 'The label for "from" range',
@@ -12019,6 +12004,7 @@ const messages$7 = reactIntl.defineMessages({
12019
12004
  defaultMessage: 'To'
12020
12005
  }
12021
12006
  });
12007
+ var messages$b = messages$a;
12022
12008
 
12023
12009
  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; }
12024
12010
  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; }
@@ -12029,12 +12015,13 @@ const LabelRange = _ref => {
12029
12015
  let type = _ref.type;
12030
12016
  return jsxRuntime.jsx("label", {
12031
12017
  className: styles$2.label,
12032
- children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$7({}, messages$7[type]))
12018
+ children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$7({}, messages$b[type]))
12033
12019
  });
12034
12020
  };
12035
12021
  LabelRange.displayName = 'LabelRange';
12022
+ var LabelRange$1 = LabelRange;
12036
12023
 
12037
- var messages$6 = reactIntl.defineMessages({
12024
+ var messages$9 = reactIntl.defineMessages({
12038
12025
  label: {
12039
12026
  id: 'MissingValueField.label',
12040
12027
  description: 'The label text for the missing values option',
@@ -12048,13 +12035,14 @@ const MissingValueField = props => jsxRuntime.jsx(uiKit.CheckboxInput, {
12048
12035
  name: "missing-value",
12049
12036
  isChecked: props.isChecked,
12050
12037
  onChange: props.onChange,
12051
- children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$6({}, messages$6.label))
12038
+ children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$6({}, messages$9.label))
12052
12039
  });
12053
12040
  MissingValueField.defaultProps = {
12054
12041
  isChecked: false
12055
12042
  };
12043
+ var MissingValueField$1 = MissingValueField;
12056
12044
 
12057
- var messages$5 = reactIntl.defineMessages({
12045
+ var messages$8 = reactIntl.defineMessages({
12058
12046
  filterWholeInput: {
12059
12047
  id: 'MultiValueSearchInput.buttonLabel',
12060
12048
  description: 'Label for "MultiValueSearchInput" filter whole input.',
@@ -12092,7 +12080,7 @@ const MultiValueSelectorDropdown = props => {
12092
12080
  }),
12093
12081
  children: jsxRuntime.jsx(uiKit.Text.Body, {
12094
12082
  truncate: true,
12095
- intlMessage: _objectSpread$5(_objectSpread$5({}, messages$5.filterWholeInput), {}, {
12083
+ intlMessage: _objectSpread$5(_objectSpread$5({}, messages$8.filterWholeInput), {}, {
12096
12084
  values: {
12097
12085
  values: `"${props.value}"`
12098
12086
  }
@@ -12105,7 +12093,7 @@ const MultiValueSelectorDropdown = props => {
12105
12093
  }),
12106
12094
  children: jsxRuntime.jsx(uiKit.Text.Body, {
12107
12095
  truncate: true,
12108
- intlMessage: _objectSpread$5(_objectSpread$5({}, messages$5.filterSeparateValues), {}, {
12096
+ intlMessage: _objectSpread$5(_objectSpread$5({}, messages$8.filterSeparateValues), {}, {
12109
12097
  values: {
12110
12098
  values: `"${props.multiValue.join('", "')}"` || props.value
12111
12099
  }
@@ -12215,6 +12203,7 @@ const MultiValueSearchInput = props => {
12215
12203
  });
12216
12204
  };
12217
12205
  MultiValueSearchInput.displayName = 'MultiValueSearchInput';
12206
+ var MultiValueSearchInput$1 = MultiValueSearchInput;
12218
12207
 
12219
12208
  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; }
12220
12209
  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; }
@@ -12354,7 +12343,7 @@ const withPropsForMoney = ownProps => ownProps.numberFormatType === 'money' ? {
12354
12343
  },
12355
12344
  numeralDecimalScale: 2
12356
12345
  } : {};
12357
- var numericFormatInput = withProps(withPropsForMoney)(NumericFormatInput);
12346
+ var numericFormatInput = withProps$1(withPropsForMoney)(NumericFormatInput);
12358
12347
 
12359
12348
  /**
12360
12349
  * @param mixed value
@@ -12411,6 +12400,7 @@ const buildSearchQuery = (searchQuery, searchMode, fragments) => {
12411
12400
  }
12412
12401
  return fragments[searchMode].getQuery(trimmedSearchQuery);
12413
12402
  };
12403
+ var buildSearchQuery$1 = buildSearchQuery;
12414
12404
 
12415
12405
  const getBulkNotification = _ref => {
12416
12406
  let counts = _ref.counts,
@@ -12454,10 +12444,12 @@ const businessRoleConstants = {
12454
12444
  SalesAndECommerceManager: 'SalesAndECommerceManager',
12455
12445
  Other: 'Other'
12456
12446
  };
12447
+ var businessRoleConstants$1 = businessRoleConstants;
12457
12448
 
12458
- const businessRoleKeys = _Object$values__default["default"](businessRoleConstants);
12449
+ const businessRoleKeys = _Object$values__default["default"](businessRoleConstants$1);
12450
+ var businessRoleKeys$1 = businessRoleKeys;
12459
12451
 
12460
- var messages$4 = reactIntl.defineMessages({
12452
+ var messages$7 = reactIntl.defineMessages({
12461
12453
  ExecutiveManagement: {
12462
12454
  id: 'Shared.businessRoles.executiveManagement',
12463
12455
  description: 'The label for one of the selectable business roles',
@@ -12632,6 +12624,7 @@ const createNextSortDefinition = _ref => {
12632
12624
  };
12633
12625
  }
12634
12626
  };
12627
+ var createNextSortDefinition$1 = createNextSortDefinition;
12635
12628
 
12636
12629
  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; }
12637
12630
  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; }
@@ -13051,7 +13044,7 @@ function isEmptyFilter(_ref) {
13051
13044
  });
13052
13045
  }
13053
13046
 
13054
- const messages$3 = reactIntl.defineMessages({
13047
+ const messages$5 = reactIntl.defineMessages({
13055
13048
  inputFieldError: {
13056
13049
  id: 'Search.Filters.validation.customField.inputFieldError',
13057
13050
  description: 'Error message for empty input field ',
@@ -13063,6 +13056,7 @@ const messages$3 = reactIntl.defineMessages({
13063
13056
  defaultMessage: 'Please select an option.'
13064
13057
  }
13065
13058
  });
13059
+ var messages$6 = messages$5;
13066
13060
 
13067
13061
  const hasOptionDropdown = type => {
13068
13062
  var _context;
@@ -13072,14 +13066,14 @@ const validateValue = (value, type, intl) => {
13072
13066
  if (validateSingleFilter({
13073
13067
  value
13074
13068
  })) {
13075
- return intl.formatMessage(messages$3.inputFieldError);
13069
+ return intl.formatMessage(messages$6.inputFieldError);
13076
13070
  }
13077
13071
  if (type === FIELD_TYPES.Money && (validateSingleFilter({
13078
13072
  value: value.currencyCode
13079
13073
  }) || validateSingleFilter({
13080
13074
  value: value.amount
13081
13075
  }))) {
13082
- return intl.formatMessage(messages$3.inputFieldError);
13076
+ return intl.formatMessage(messages$6.inputFieldError);
13083
13077
  }
13084
13078
  return null;
13085
13079
  };
@@ -13087,7 +13081,7 @@ function validateFilter$2(_ref, intl) {
13087
13081
  let value = _ref.value;
13088
13082
  if (!value || !value.type) {
13089
13083
  return {
13090
- type: intl.formatMessage(messages$3.optionFieldError)
13084
+ type: intl.formatMessage(messages$6.optionFieldError)
13091
13085
  };
13092
13086
  }
13093
13087
  const typeName = value.type.name;
@@ -13095,7 +13089,7 @@ function validateFilter$2(_ref, intl) {
13095
13089
  const filterValue = value.value;
13096
13090
  if (hasOption && !value.option) {
13097
13091
  return {
13098
- option: intl.formatMessage(messages$3.optionFieldError)
13092
+ option: intl.formatMessage(messages$6.optionFieldError)
13099
13093
  };
13100
13094
  }
13101
13095
  if (value.option === FILTER_TYPES.range) {
@@ -13114,7 +13108,7 @@ function validateFilter$2(_ref, intl) {
13114
13108
  } : null;
13115
13109
  }
13116
13110
 
13117
- const messages$2 = reactIntl.defineMessages({
13111
+ const messages$3 = reactIntl.defineMessages({
13118
13112
  rangeMissingValue: {
13119
13113
  id: 'Search.Filters.validation.date.rangeMissingValue',
13120
13114
  description: 'error message if missing a value in a range',
@@ -13131,6 +13125,7 @@ const messages$2 = reactIntl.defineMessages({
13131
13125
  defaultMessage: 'Please enter a value for this field.'
13132
13126
  }
13133
13127
  });
13128
+ var messages$4 = messages$3;
13134
13129
 
13135
13130
  function validateFilter$1(_ref, intl) {
13136
13131
  let value = _ref.value,
@@ -13139,30 +13134,30 @@ function validateFilter$1(_ref, intl) {
13139
13134
  if (validateSingleFilter({
13140
13135
  value: value?.from
13141
13136
  })) return {
13142
- from: intl.formatMessage(messages$2.rangeMissingValue)
13137
+ from: intl.formatMessage(messages$4.rangeMissingValue)
13143
13138
  };
13144
13139
  if (validateSingleFilter({
13145
13140
  value: value?.to
13146
13141
  })) return {
13147
- to: intl.formatMessage(messages$2.rangeMissingValue)
13142
+ to: intl.formatMessage(messages$4.rangeMissingValue)
13148
13143
  };
13149
13144
  if (moment__default["default"](value?.to).isBefore(value?.from)) return {
13150
- from: intl.formatMessage(messages$2.rangeToSmallerThanFrom)
13145
+ from: intl.formatMessage(messages$4.rangeToSmallerThanFrom)
13151
13146
  };
13152
13147
  } else if (type === 'equalTo' || type === 'lessThan' || type === 'moreThan') {
13153
13148
  if (validateSingleFilter({
13154
13149
  value
13155
- })) return intl.formatMessage(messages$2.missingValue);
13150
+ })) return intl.formatMessage(messages$4.missingValue);
13156
13151
  }
13157
13152
  return null;
13158
13153
  }
13159
13154
 
13160
13155
  const validateSingleOptionEnum = (selectedOption, intl) => {
13161
- if (validateSingleFilter(selectedOption)) return intl.formatMessage(messages$C.required);
13156
+ if (validateSingleFilter(selectedOption)) return intl.formatMessage(validationMessages.required);
13162
13157
  return null;
13163
13158
  };
13164
13159
  const validateMultiOptionEnum = (selectedOption, intl) => {
13165
- if (validateSingleFilter(selectedOption) || selectedOption.value.length === 0) return intl.formatMessage(messages$C.required);
13160
+ if (validateSingleFilter(selectedOption) || selectedOption.value.length === 0) return intl.formatMessage(validationMessages.required);
13166
13161
  return null;
13167
13162
  };
13168
13163
 
@@ -13178,6 +13173,7 @@ const messages$1 = reactIntl.defineMessages({
13178
13173
  defaultMessage: 'Please enter the smaller number first.'
13179
13174
  }
13180
13175
  });
13176
+ var messages$2 = messages$1;
13181
13177
 
13182
13178
  function validateFilter(_ref, intl) {
13183
13179
  let value = _ref.value,
@@ -13185,30 +13181,30 @@ function validateFilter(_ref, intl) {
13185
13181
  _ref$allowFloat = _ref.allowFloat,
13186
13182
  allowFloat = _ref$allowFloat === void 0 ? true : _ref$allowFloat;
13187
13183
  if (type !== 'range') {
13188
- if (!allowFloat && !isInteger(value)) return intl.formatMessage(messages$C.integer);
13184
+ if (!allowFloat && !isInteger(value)) return intl.formatMessage(validationMessages.integer);
13189
13185
  return null;
13190
13186
  }
13191
13187
 
13192
13188
  // only range types from here
13193
13189
 
13194
13190
  if (!allowFloat && !isInteger(value.from)) return {
13195
- from: intl.formatMessage(messages$C.integer)
13191
+ from: intl.formatMessage(validationMessages.integer)
13196
13192
  };
13197
13193
  if (!allowFloat && !isInteger(value.to)) return {
13198
- to: intl.formatMessage(messages$C.integer)
13194
+ to: intl.formatMessage(validationMessages.integer)
13199
13195
  };
13200
13196
  if (validateSingleFilter({
13201
13197
  value: value.from
13202
13198
  })) return {
13203
- from: intl.formatMessage(messages$1.rangeMissingValue)
13199
+ from: intl.formatMessage(messages$2.rangeMissingValue)
13204
13200
  };
13205
13201
  if (validateSingleFilter({
13206
13202
  value: value.to
13207
13203
  })) return {
13208
- to: intl.formatMessage(messages$1.rangeMissingValue)
13204
+ to: intl.formatMessage(messages$2.rangeMissingValue)
13209
13205
  };
13210
13206
  if (_parseFloat__default["default"](value.to) < _parseFloat__default["default"](value.from)) return {
13211
- from: intl.formatMessage(messages$1.rangeToSmallerThanFrom)
13207
+ from: intl.formatMessage(messages$2.rangeToSmallerThanFrom)
13212
13208
  };
13213
13209
  return null;
13214
13210
  }
@@ -13216,8 +13212,8 @@ function validateFilter(_ref, intl) {
13216
13212
  // eslint-disable-next-line import/prefer-default-export
13217
13213
  const validateText = function (text, intl) {
13218
13214
  let type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
13219
- if (validateSingleFilter(text)) return intl.formatMessage(messages$C.required);
13220
- if (type === 'id' && !isUUID(text.value)) return intl.formatMessage(messages$C.uuid);
13215
+ if (validateSingleFilter(text)) return intl.formatMessage(validationMessages.required);
13216
+ if (type === 'id' && !isUUID$1(text.value)) return intl.formatMessage(validationMessages.uuid);
13221
13217
  return null;
13222
13218
  };
13223
13219
 
@@ -13246,10 +13242,13 @@ function convertRatioToPercentage(ratio) {
13246
13242
  const hasErrorCode = (unmappedApiErrors, errorCode) => {
13247
13243
  return _Array$isArray__default["default"](unmappedApiErrors) && _someInstanceProperty__default["default"](unmappedApiErrors).call(unmappedApiErrors, error => error.extensions?.code === errorCode);
13248
13244
  };
13245
+ var hasErrorCode$1 = hasErrorCode;
13249
13246
 
13250
- const hasInvalidInputError = errors => hasErrorCode(errors, ERROR_CODES.invalidInput);
13247
+ const hasInvalidInputError = errors => hasErrorCode$1(errors, ERROR_CODES.invalidInput);
13248
+ var hasInvalidInputError$1 = hasInvalidInputError;
13251
13249
 
13252
- const hasSemanticError = errors => hasErrorCode(errors, ERROR_CODES.semanticError);
13250
+ const hasSemanticError = errors => hasErrorCode$1(errors, ERROR_CODES.semanticError);
13251
+ var hasSemanticError$1 = hasSemanticError;
13253
13252
 
13254
13253
  function minusify(value) {
13255
13254
  const minus = '-';
@@ -13566,6 +13565,7 @@ let RequestCache = /*#__PURE__*/function () {
13566
13565
  }
13567
13566
  }]);
13568
13567
  }();
13568
+ var RequestCache$1 = RequestCache;
13569
13569
 
13570
13570
  // copied from
13571
13571
  // https://github.com/reactjs/react-redux/blob/master/src/utils/shallowEqual.js
@@ -13678,7 +13678,7 @@ function withPendingRequests() {
13678
13678
  };
13679
13679
  return jsxRuntime.jsx(Component, _objectSpread(_objectSpread({}, props), pendingProp));
13680
13680
  };
13681
- WrappedComponent.displayName = wrapDisplayName(Component, 'withPendingRequests');
13681
+ WrappedComponent.displayName = wrapDisplayName$1(Component, 'withPendingRequests');
13682
13682
  return WrappedComponent;
13683
13683
  };
13684
13684
  }
@@ -13686,58 +13686,58 @@ function withPendingRequests() {
13686
13686
  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 } } } };
13687
13687
 
13688
13688
  exports.BooleanField = booleanField;
13689
- exports.Button = Button;
13689
+ exports.Button = Button$1;
13690
13690
  exports.CartDiscountReferenceSearch = CartDiscountReferenceSearch;
13691
13691
  exports.CategoryReferenceSearch = CategoryReferenceSearch;
13692
13692
  exports.CategorySearchPickerOptionFragment = CategorySearchPickerOptionFragment;
13693
- exports.CenteredLoadingSpinner = CenteredLoadingSpinner;
13694
- exports.ChannelPickerInput = ChannelPickerInput;
13693
+ exports.CenteredLoadingSpinner = CenteredLoadingSpinner$1;
13694
+ exports.ChannelPickerInput = ChannelPickerInput$1;
13695
13695
  exports.CountriesPicker = CountriesPicker;
13696
13696
  exports.CustomFieldDefinitionsConnector = customFieldDefinitionsConnector;
13697
- exports.CustomFieldTooltip = CustomFieldTooltip;
13697
+ exports.CustomFieldTooltip = CustomFieldTooltip$1;
13698
13698
  exports.CustomFieldTypeDefinitionsConnector = CustomFieldTypeDefinitionsConnector$1;
13699
- exports.CustomFields = CustomFields;
13700
- exports.CustomFieldsErrorTextNotification = CustomFieldsErrorTextNotification;
13701
- exports.CustomFieldsFormField = CustomFieldsFormField;
13702
- exports.CustomerGroupPickerInput = CustomerGroupPickerInput;
13699
+ exports.CustomFields = CustomFields$1;
13700
+ exports.CustomFieldsErrorTextNotification = CustomFieldsErrorTextNotification$1;
13701
+ exports.CustomFieldsFormField = CustomFieldsFormField$1;
13702
+ exports.CustomerGroupPickerInput = CustomerGroupPickerInput$1;
13703
13703
  exports.DefaultPageSizes = DefaultPageSizes;
13704
13704
  exports.Divider = Divider;
13705
13705
  exports.EMAIL_REGEX = EMAIL_REGEX;
13706
- exports.FileInput = FileInput;
13706
+ exports.FileInput = FileInput$1;
13707
13707
  exports.FormattedDateTime = FormattedDateTime$1;
13708
- exports.LabelRange = LabelRange;
13708
+ exports.LabelRange = LabelRange$1;
13709
13709
  exports.MC_RESOURCES_WITH_KEYS = MC_RESOURCES_WITH_KEYS;
13710
- exports.MissingValueField = MissingValueField;
13711
- exports.MultiValueSearchInput = MultiValueSearchInput;
13710
+ exports.MissingValueField = MissingValueField$1;
13711
+ exports.MultiValueSearchInput = MultiValueSearchInput$1;
13712
13712
  exports.NumericFormatInput = numericFormatInput;
13713
13713
  exports.Option = Option$2;
13714
13714
  exports.PRECISION_TYPES = PRECISION_TYPES;
13715
13715
  exports.PimIndexerProvider = pimIndexerProvider;
13716
13716
  exports.ProductAttributeInput = ProductAttributeInput;
13717
13717
  exports.ProductAttributes = ProductAttributes;
13718
- exports.ProductPickerInput = ProductPickerInput;
13718
+ exports.ProductPickerInput = ProductPickerInput$1;
13719
13719
  exports.ProductSelectionPicker = ProductSelectionsPicker;
13720
- exports.RequestCache = RequestCache;
13721
- exports.RequiredIndicator = RequiredIndicator;
13722
- exports.ScrollToFieldError = ScrollToFieldError;
13720
+ exports.RequestCache = RequestCache$1;
13721
+ exports.RequiredIndicator = RequiredIndicator$1;
13722
+ exports.ScrollToFieldError = ScrollToFieldError$1;
13723
13723
  exports.SearchInput = searchInput;
13724
- exports.SelectableFieldSearchInput = SelectableFieldSearchInput;
13725
- exports.StoreSelectField = StoreSelectField;
13726
- exports.StoreSelectInput = StoreSelectInput;
13727
- exports.ThrottledField = ThrottledField;
13724
+ exports.SelectableFieldSearchInput = SelectableFieldSearchInput$1;
13725
+ exports.StoreSelectField = StoreSelectField$1;
13726
+ exports.StoreSelectInput = StoreSelectInput$1;
13727
+ exports.ThrottledField = ThrottledField$1;
13728
13728
  exports.VALIDATOR_INTEGER = VALIDATOR_INTEGER;
13729
13729
  exports.VALIDATOR_NUMERIC = VALIDATOR_NUMERIC;
13730
13730
  exports.VALIDATOR_REQUIRED = VALIDATOR_REQUIRED;
13731
- exports.WithPimIndexer = WithPimIndexer;
13731
+ exports.WithPimIndexer = WithPimIndexer$1;
13732
13732
  exports.allowedProperties = allowedProperties;
13733
13733
  exports.and = and;
13734
13734
  exports.attributesMapToNameValuePairs = attributesMapToNameValuePairs;
13735
13735
  exports.base64ToString = base64ToString;
13736
- exports.booleanMessages = messages$8;
13737
- exports.buildSearchQuery = buildSearchQuery;
13738
- exports.businessRoleConstants = businessRoleConstants;
13739
- exports.businessRoleMessages = messages$4;
13740
- exports.businessRoles = businessRoleKeys;
13736
+ exports.booleanMessages = messages$c;
13737
+ exports.buildSearchQuery = buildSearchQuery$1;
13738
+ exports.businessRoleConstants = businessRoleConstants$1;
13739
+ exports.businessRoleMessages = messages$7;
13740
+ exports.businessRoles = businessRoleKeys$1;
13741
13741
  exports.capitalizeFirst = capitalizeFirst;
13742
13742
  exports.clone = clone;
13743
13743
  exports.coerceToInteger = coerceToInteger;
@@ -13747,10 +13747,9 @@ exports.convertApolloQueryDataToConnectorData = convertApolloQueryDataToConnecto
13747
13747
  exports.convertProductSelectionFromGraphQl = convertProductSelectionFromGraphQl;
13748
13748
  exports.convertRatioToPercentage = convertRatioToPercentage;
13749
13749
  exports.createGraphQlUpdateActions = createGraphQlUpdateActions;
13750
- exports.createNextSortDefinition = createNextSortDefinition;
13750
+ exports.createNextSortDefinition = createNextSortDefinition$1;
13751
13751
  exports.createReducer = createReducer;
13752
13752
  exports.createResourceReducer = createResourceReducer;
13753
- exports.customFieldDefinitionsMockHanders = handlers$1;
13754
13753
  exports.customFieldsTransformer = customFields;
13755
13754
  exports.dateTransformer = dateTransformer$1;
13756
13755
  exports.exact = exact;
@@ -13778,13 +13777,13 @@ exports.getBulkNotification = getBulkNotification;
13778
13777
  exports.getCategoryLevel = getCategoryLevel;
13779
13778
  exports.getCountsFromBulkSummary = getCountsFromBulkSummary;
13780
13779
  exports.getDiscountValue = getDiscountValue;
13781
- exports.getDisplayName = getDisplayName;
13780
+ exports.getDisplayName = getDisplayName$1;
13782
13781
  exports.getFractionedAmount = getFractionedAmount;
13783
13782
  exports.getIndexesOfInvalidValues = getIndexesOfInvalidValues;
13784
13783
  exports.getMinimumPricesByCurrencyCode = getMinimumPricesByCurrencyCode;
13785
13784
  exports.getNetUnitPrice = getNetUnitPrice;
13786
13785
  exports.getPathName = getPathName;
13787
- exports.getPrefixSearchBounds = getPrefixSearchBounds;
13786
+ exports.getPrefixSearchBounds = getPrefixSearchBounds$1;
13788
13787
  exports.getPriceChannelName = getPriceChannelName;
13789
13788
  exports.getReferenceTypeId = getReferenceTypeId;
13790
13789
  exports.getSelectedPrice = getSelectedPrice;
@@ -13799,31 +13798,30 @@ exports.graphqlNumberTransformer = numberTransformer;
13799
13798
  exports.graphqlQueryBuilder = graphqlQueryBuilder;
13800
13799
  exports.graphqlReferenceTransformer = referenceTransformer;
13801
13800
  exports.graphqlTextTransformer = textTransformer;
13802
- exports.hasInvalidInputError = hasInvalidInputError;
13803
- exports.hasSemanticError = hasSemanticError;
13804
- exports.injectCustomerGroupsPlatformLimits = injectCustomerGroupsPlatformLimits;
13805
- exports.injectCustomersPlatformLimits = injectCustomersPlatformLimits;
13806
- exports.injectDataTablePaginationState = injectDataTablePaginationState;
13807
- exports.injectModalState = injectModalState$1;
13808
- exports.injectNotifications = injectNotifications;
13801
+ exports.hasInvalidInputError = hasInvalidInputError$1;
13802
+ exports.hasSemanticError = hasSemanticError$1;
13803
+ exports.injectCustomerGroupsPlatformLimits = injectCustomerGroupsPlatformLimits$1;
13804
+ exports.injectCustomersPlatformLimits = injectCustomersPlatformLimits$1;
13805
+ exports.injectDataTablePaginationState = injectDataTablePaginationState$1;
13806
+ exports.injectModalState = injectModalState$3;
13807
+ exports.injectNotifications = injectNotifications$1;
13809
13808
  exports.injectPimIndexer = injectPimIndexer;
13810
- exports.injectShippingMethodsPlatformLimits = injectShippingMethodsPlatformLimits;
13811
- exports.injectStorage = injectStorage;
13812
- exports.injectTaxCategoriesPlatformLimits = injectTaxCategoriesPlatformLimits;
13813
- exports.injectToggleState = injectModalState;
13814
- exports.injectZonesPlatformLimits = injectZonesPlatformLimits;
13809
+ exports.injectShippingMethodsPlatformLimits = injectShippingMethodsPlatformLimits$1;
13810
+ exports.injectStorage = injectStorage$1;
13811
+ exports.injectTaxCategoriesPlatformLimits = injectTaxCategoriesPlatformLimits$1;
13812
+ exports.injectToggleState = injectModalState$1;
13813
+ exports.injectZonesPlatformLimits = injectZonesPlatformLimits$1;
13815
13814
  exports.isEmpty = isEmptyFilter;
13816
13815
  exports.isEmptyValue = isEmptyValue;
13817
- exports.isFieldDuplicatedMockHandlers = handlers$6;
13818
- exports.isUUID = isUUID;
13816
+ exports.isUUID = isUUID$1;
13819
13817
  exports.isValidISODate = isValidISODate;
13820
13818
  exports.isValidISODateTime = isValidISODateTime;
13821
13819
  exports.isValidISOTime = isValidISOTime;
13822
- exports.keepDisplayName = keepDisplayName;
13820
+ exports.keepDisplayName = keepDisplayName$1;
13823
13821
  exports.mapStoresToOptions = mapStoresToOptions;
13824
13822
  exports.mapTimeZonesToOptions = mapTimeZonesToOptions;
13825
13823
  exports.minusify = minusify;
13826
- exports.missingValueMessages = messages$6;
13824
+ exports.missingValueMessages = messages$9;
13827
13825
  exports.nameValuePairsToMap = nameValuePairsToMap;
13828
13826
  exports.normalizeProductSettings = normalizeProductSettings;
13829
13827
  exports.not = not;
@@ -13831,17 +13829,14 @@ exports.omitDeep = omitDeep;
13831
13829
  exports.omitSetsOfSets = omitSetsOfSets;
13832
13830
  exports.or = or;
13833
13831
  exports.pickerMessages = pickerMessages$1;
13834
- exports.platformLimitsMockHandlers = handlers;
13835
- exports.productSelectionsFetcherMockHandler = handlers$3;
13836
- exports.productSelectionsTotalFetcherMockHandler = handlers$4;
13837
13832
  exports.range = range;
13838
13833
  exports.reorderArrayItems = reorderArrayItems;
13839
13834
  exports.resolveStatusType = resolveStatusType;
13840
13835
  exports.safelyAddFallback = safelyAddFallback;
13841
13836
  exports.sanitize = sanitize;
13842
13837
  exports.searchCategories = searchCategories;
13843
- exports.searchInputMessages = messages$G;
13844
- exports.setDisplayName = setDisplayName;
13838
+ exports.searchInputMessages = messages$M;
13839
+ exports.setDisplayName = setDisplayName$1;
13845
13840
  exports.setToArray = setToArray;
13846
13841
  exports.shallowEqual = shallowEqual;
13847
13842
  exports.shouldUpdateAttributeInput = shouldUpdateAttributeInput;
@@ -13849,7 +13844,6 @@ exports.slugify = slugify;
13849
13844
  exports.sortDataByIdsArray = sortDataByIdsArray;
13850
13845
  exports.sortRequiresLanguage = sortRequiresLanguage;
13851
13846
  exports.splitVariantAttributesByConstraint = splitVariantAttributesByConstraint;
13852
- exports.storesListConnectorMockHandlers = handlers$5;
13853
13847
  exports.stringToBase64 = stringToBase64;
13854
13848
  exports.swapArrayItems = swapArrayItems;
13855
13849
  exports.transformAllToProperNounCase = transformAllToProperNounCase;
@@ -13861,27 +13855,26 @@ exports.uniqueObjects = uniqueObjects;
13861
13855
  exports.useCachedCategoryOptions = useCachedCategoryOptions;
13862
13856
  exports.useCurrentOption = useCurrentOption;
13863
13857
  exports.useCustomFieldsDnDContext = useDnDContext;
13864
- exports.useCustomerGroupsPlatformLimits = useCustomerGroupsPlatformLimits;
13865
- exports.useCustomersPlatformLimits = useCustomersPlatformLimits;
13866
- exports.useDebouncedPromiseCallback = useDebouncedPromiseCallback;
13858
+ exports.useCustomerGroupsPlatformLimits = useCustomerGroupsPlatformLimits$1;
13859
+ exports.useCustomersPlatformLimits = useCustomersPlatformLimits$1;
13860
+ exports.useDebouncedPromiseCallback = useDebouncedPromiseCallback$1;
13867
13861
  exports.useFormatLocalizedFieldToString = useFormatLocalizedFieldToString;
13868
- exports.useIsFieldDuplicated = useIsFieldDuplicated;
13869
- exports.useLoadOptions = useLoadOptions;
13870
- exports.useLocalizedKeyFallback = useLocalizedKeyFallback;
13862
+ exports.useIsFieldDuplicated = useIsFieldDuplicated$1;
13863
+ exports.useLoadOptions = useLoadOptions$1;
13864
+ exports.useLocalizedKeyFallback = useLocalizedKeyFallback$1;
13871
13865
  exports.usePendingRequests = usePendingRequests;
13872
- exports.usePersistedTableConfiguration = usePersistedTableConfiguration;
13866
+ exports.usePersistedTableConfiguration = usePersistedTableConfiguration$1;
13873
13867
  exports.usePimIndexer = usePimIndexer;
13874
- exports.usePrevious = usePrevious;
13875
- exports.useProductSelectionsFetcher = useProductSelectionsFetcher;
13876
- exports.useProductSelectionsTotalFetcher = useProductSelectionsTotalFetcher;
13877
- exports.useRoleNotificationEffect = useRoleNotificationEffect;
13878
- exports.useShippingMethodsPlatformLimits = useShippingMethodsLimits;
13879
- exports.useStorage = useStorage;
13880
- exports.useStoreKeysInDataFences = useStoreKeysInDataFences;
13881
- exports.useStoresListFetcher = useStoresListFetcher;
13882
- exports.useTaxCategoriesPlatformLimits = useTaxCategoriesLimits;
13883
- exports.useTotalNumberOfStoresFetcher = useTotalNumberOfStoresFetcher;
13884
- exports.useTotalNumberOfStoresFetcherHandlers = handlers$2;
13868
+ exports.usePrevious = usePrevious$1;
13869
+ exports.useProductSelectionsFetcher = useProductSelectionsFetcher$1;
13870
+ exports.useProductSelectionsTotalFetcher = useProductSelectionsTotalFetcher$1;
13871
+ exports.useRoleNotificationEffect = useRoleNotificationEffect$1;
13872
+ exports.useShippingMethodsPlatformLimits = useShippingMethodsPlatformLimits;
13873
+ exports.useStorage = useStorage$1;
13874
+ exports.useStoreKeysInDataFences = useStoreKeysInDataFences$1;
13875
+ exports.useStoresListFetcher = useStoresListFetcher$1;
13876
+ exports.useTaxCategoriesPlatformLimits = useTaxCategoriesPlatformLimits;
13877
+ exports.useTotalNumberOfStoresFetcher = useTotalNumberOfStoresFetcher$1;
13885
13878
  exports.validateCustomField = validateFilter$2;
13886
13879
  exports.validateCustomFields = validations;
13887
13880
  exports.validateDate = validateFilter$1;
@@ -13890,9 +13883,9 @@ exports.validateNumber = validateFilter;
13890
13883
  exports.validateSingleOptionEnum = validateSingleOptionEnum;
13891
13884
  exports.validateText = validateText;
13892
13885
  exports.validatedInput = validatedInput;
13893
- exports.validationMessages = messages$C;
13886
+ exports.validationMessages = validationMessages;
13894
13887
  exports.withPendingRequests = withPendingRequests;
13895
- exports.withProps = withProps;
13896
- exports.withRedirectTo = withRedirectTo;
13897
- exports.withoutEmptyErrorsByField = withoutEmptyErrorsByField;
13898
- exports.wrapDisplayName = wrapDisplayName;
13888
+ exports.withProps = withProps$1;
13889
+ exports.withRedirectTo = withRedirectTo$1;
13890
+ exports.withoutEmptyErrorsByField = withoutEmptyErrorsByField$1;
13891
+ exports.wrapDisplayName = wrapDisplayName$1;