@commercetools-frontend/experimental-components 8.0.4 → 8.0.6
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.
- package/dist/commercetools-frontend-experimental-components.cjs.dev.js +308 -289
- package/dist/commercetools-frontend-experimental-components.cjs.prod.js +308 -289
- package/dist/commercetools-frontend-experimental-components.esm.js +309 -290
- package/dist/declarations/src/components/recurrent-interval-picker/recurrent-interval-picker.d.ts +4 -2
- package/dist/declarations/src/hooks/index.d.ts +0 -1
- package/dist/declarations/src/index.d.ts +3 -3
- package/dist/declarations/src/utils/pim-query-clauses.d.ts +10 -0
- package/package.json +15 -15
- package/dist/declarations/src/hooks/use-identity-banner-notification/index.d.ts +0 -1
- package/dist/declarations/src/hooks/use-identity-banner-notification/use-identity-banner-notification.d.ts +0 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _mapInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/map';
|
|
2
|
-
import { NO_VALUE_FALLBACK, MC_API_PROXY_TARGETS, GRAPHQL_TARGETS, DOMAINS,
|
|
2
|
+
import { NO_VALUE_FALLBACK, MC_API_PROXY_TARGETS, GRAPHQL_TARGETS, DOMAINS, SUPPORT_PORTAL_URL } from '@commercetools-frontend/constants';
|
|
3
3
|
import _Object$getOwnPropertySymbols from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
|
4
4
|
import _filterInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/filter';
|
|
5
5
|
import _Object$getOwnPropertyDescriptor from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor';
|
|
@@ -202,7 +202,7 @@ var commonPickerMessages = defineMessages({
|
|
|
202
202
|
}
|
|
203
203
|
});
|
|
204
204
|
|
|
205
|
-
var messages$
|
|
205
|
+
var messages$R = defineMessages({
|
|
206
206
|
noChannelsFound: {
|
|
207
207
|
id: 'Products.ChannelPickerInput.noChannelsFound',
|
|
208
208
|
description: 'The message to display when no channels were found',
|
|
@@ -215,8 +215,8 @@ var messages$S = defineMessages({
|
|
|
215
215
|
}
|
|
216
216
|
});
|
|
217
217
|
|
|
218
|
-
function ownKeys$
|
|
219
|
-
function _objectSpread$
|
|
218
|
+
function ownKeys$1v(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
219
|
+
function _objectSpread$1v(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1v(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$1v(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
220
220
|
var GetChannelsQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetChannelsQuery" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "where" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "sortByNamePath" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "channels" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }, { kind: "Argument", name: { kind: "Name", value: "sort" }, value: { kind: "ListValue", values: [{ kind: "Variable", name: { kind: "Name", value: "sortByNamePath" } }, { kind: "StringValue", value: "key", block: false }] } }, { kind: "Argument", name: { kind: "Name", value: "limit" }, value: { kind: "IntValue", value: "60" } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "results" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "PickerInputChannel" }, directives: [] }] } }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "PickerInputChannel" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Channel" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 392, source: { body: "fragment PickerInputChannel on Channel {\n id\n key\n nameAllLocales {\n locale\n value\n }\n}\n\nquery GetChannelsQuery($where: String, $sortByNamePath: String!) {\n channels(where: $where, sort: [$sortByNamePath, \"key\"], limit: 60) {\n total\n results {\n ...PickerInputChannel\n }\n }\n}\n\nquery GetChannelQuery($id: String) {\n channel(id: $id) {\n ...PickerInputChannel\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
221
221
|
var GetChannelQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetChannelQuery" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "channel" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "id" }, value: { kind: "Variable", name: { kind: "Name", value: "id" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "PickerInputChannel" }, directives: [] }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "PickerInputChannel" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Channel" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 392, source: { body: "fragment PickerInputChannel on Channel {\n id\n key\n nameAllLocales {\n locale\n value\n }\n}\n\nquery GetChannelsQuery($where: String, $sortByNamePath: String!) {\n channels(where: $where, sort: [$sortByNamePath, \"key\"], limit: 60) {\n total\n results {\n ...PickerInputChannel\n }\n }\n}\n\nquery GetChannelQuery($id: String) {\n channel(id: $id) {\n ...PickerInputChannel\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
222
222
|
var PickerInputChannel = { kind: "Document", definitions: [{ kind: "FragmentDefinition", name: { kind: "Name", value: "PickerInputChannel" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Channel" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 392, source: { body: "fragment PickerInputChannel on Channel {\n id\n key\n nameAllLocales {\n locale\n value\n }\n}\n\nquery GetChannelsQuery($where: String, $sortByNamePath: String!) {\n channels(where: $where, sort: [$sortByNamePath, \"key\"], limit: 60) {\n total\n results {\n ...PickerInputChannel\n }\n }\n}\n\nquery GetChannelQuery($id: String) {\n channel(id: $id) {\n ...PickerInputChannel\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
@@ -245,7 +245,7 @@ const ChannelPickerInput = _ref => {
|
|
|
245
245
|
const dataLocale = useApplicationContext(applicationContext => applicationContext.dataLocale);
|
|
246
246
|
const variables = useMemo(() => {
|
|
247
247
|
const rolesClause = getRolesClause(roles);
|
|
248
|
-
return _objectSpread$
|
|
248
|
+
return _objectSpread$1v({
|
|
249
249
|
sortByNamePath: `name.${dataLocale}`
|
|
250
250
|
}, rolesClause && {
|
|
251
251
|
extraWhere: rolesClause
|
|
@@ -321,7 +321,7 @@ const ChannelPickerInput = _ref => {
|
|
|
321
321
|
if (isCurrentOptionLoadingFailed && onError) onError(currentOptions.error);
|
|
322
322
|
}, [isCurrentOptionLoadingFailed, onError, currentOptions]);
|
|
323
323
|
const isLoadingFailed = isCurrentOptionLoadingFailed || Boolean(loadingError);
|
|
324
|
-
const handleNoOptions = useCallback(() => loadingError ? null : formatMessage(messages$
|
|
324
|
+
const handleNoOptions = useCallback(() => loadingError ? null : formatMessage(messages$R.noChannelsFound), [loadingError, formatMessage]);
|
|
325
325
|
const tooltipTitle = !isMulti ? currentSingleOption?.data?.label ?? '' : '';
|
|
326
326
|
const selectedValue = currentOptions.data ?? (isMulti ? [] : null);
|
|
327
327
|
return jsx(Constraints.Horizontal, {
|
|
@@ -333,7 +333,7 @@ const ChannelPickerInput = _ref => {
|
|
|
333
333
|
children: jsx(AsyncSelectInput, {
|
|
334
334
|
id: name,
|
|
335
335
|
name: name,
|
|
336
|
-
placeholder: placeholder ?? formatMessage(messages$
|
|
336
|
+
placeholder: placeholder ?? formatMessage(messages$R.placeholder),
|
|
337
337
|
loadOptions: loadOptionsDebounced,
|
|
338
338
|
defaultOptions: true,
|
|
339
339
|
showOptionGroupDivider: true,
|
|
@@ -389,7 +389,7 @@ let FormattedDateTime = /*#__PURE__*/function (_PureComponent) {
|
|
|
389
389
|
FormattedDateTime.displayName = 'FormattedDateTime';
|
|
390
390
|
var FormattedDateTime$1 = injectIntl(FormattedDateTime);
|
|
391
391
|
|
|
392
|
-
var messages$
|
|
392
|
+
var messages$Q = defineMessages({
|
|
393
393
|
noProductTypesFound: {
|
|
394
394
|
id: 'Products.ProductTypePickerInput.noProductTypesFound',
|
|
395
395
|
description: 'The message to display when no product types were found',
|
|
@@ -478,7 +478,7 @@ const ProductTypePickerInput = _ref => {
|
|
|
478
478
|
children: jsx(AsyncSelectInput, {
|
|
479
479
|
id: name,
|
|
480
480
|
name: name,
|
|
481
|
-
placeholder: formatMessage(messages$
|
|
481
|
+
placeholder: formatMessage(messages$Q.placeholder),
|
|
482
482
|
loadOptions: loadOptionsDebounced,
|
|
483
483
|
defaultOptions: [],
|
|
484
484
|
isClearable: isClearable,
|
|
@@ -491,7 +491,7 @@ const ProductTypePickerInput = _ref => {
|
|
|
491
491
|
onInputChange: handleInputChange,
|
|
492
492
|
onBlur: onBlur,
|
|
493
493
|
value: currentOption.data,
|
|
494
|
-
noOptionsMessage: () => loadingError ? null : formatMessage(messages$
|
|
494
|
+
noOptionsMessage: () => loadingError ? null : formatMessage(messages$Q.noProductTypesFound),
|
|
495
495
|
hasError: hasError || isLoadingFailed,
|
|
496
496
|
menuPortalZIndex: Z_INDEX_DROPDOWN,
|
|
497
497
|
menuPortalTarget: document.body,
|
|
@@ -507,7 +507,7 @@ const ProductTypePickerInput = _ref => {
|
|
|
507
507
|
ProductTypePickerInput.displayName = 'ProductTypePickerInput';
|
|
508
508
|
var ProductTypePickerInput$1 = ProductTypePickerInput;
|
|
509
509
|
|
|
510
|
-
var messages$
|
|
510
|
+
var messages$P = defineMessages({
|
|
511
511
|
noStatesFound: {
|
|
512
512
|
id: 'Products.StatePickerInput.noStatesFound',
|
|
513
513
|
description: 'The message to display when no states were found',
|
|
@@ -591,7 +591,7 @@ const StatePickerInput = _ref => {
|
|
|
591
591
|
if (isCurrentOptionLoadingFailed) onError(currentOption.error);
|
|
592
592
|
}, [isCurrentOptionLoadingFailed, onError, currentOption]);
|
|
593
593
|
const isLoadingFailed = isCurrentOptionLoadingFailed || Boolean(loadingError);
|
|
594
|
-
const handleNoOptions = useCallback(() => loadingError ? null : formatMessage(messages$
|
|
594
|
+
const handleNoOptions = useCallback(() => loadingError ? null : formatMessage(messages$P.noStatesFound), [loadingError, formatMessage]);
|
|
595
595
|
const tooltipTitle = currentOption?.data?.label ?? '';
|
|
596
596
|
return jsx(Constraints.Horizontal, {
|
|
597
597
|
max: "scale",
|
|
@@ -603,7 +603,7 @@ const StatePickerInput = _ref => {
|
|
|
603
603
|
id: name,
|
|
604
604
|
name: name,
|
|
605
605
|
horizontalConstraint: "scale",
|
|
606
|
-
placeholder: formatMessage(messages$
|
|
606
|
+
placeholder: formatMessage(messages$P.placeholder),
|
|
607
607
|
loadOptions: loadOptionsDebounced,
|
|
608
608
|
defaultOptions: true,
|
|
609
609
|
showOptionGroupDivider: true,
|
|
@@ -633,9 +633,9 @@ const StatePickerInput = _ref => {
|
|
|
633
633
|
StatePickerInput.displayName = 'StatePickerInput';
|
|
634
634
|
var StatePickerInput$1 = StatePickerInput;
|
|
635
635
|
|
|
636
|
-
function ownKeys$
|
|
637
|
-
function _objectSpread$
|
|
638
|
-
const TooltipWrapper = /*#__PURE__*/React__default.forwardRef((props, ref) => jsx("div", _objectSpread$
|
|
636
|
+
function ownKeys$1u(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
637
|
+
function _objectSpread$1u(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1u(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1u(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
638
|
+
const TooltipWrapper = /*#__PURE__*/React__default.forwardRef((props, ref) => jsx("div", _objectSpread$1u({
|
|
639
639
|
ref: ref,
|
|
640
640
|
style: {
|
|
641
641
|
display: 'block',
|
|
@@ -660,7 +660,7 @@ const CustomFieldTooltip = _ref => {
|
|
|
660
660
|
};
|
|
661
661
|
var CustomFieldTooltip$1 = CustomFieldTooltip;
|
|
662
662
|
|
|
663
|
-
var messages$
|
|
663
|
+
var messages$O = defineMessages({
|
|
664
664
|
bottomOption: {
|
|
665
665
|
id: 'Products.Pickers.bottomOption',
|
|
666
666
|
description: 'The message to display at the end of the options menu',
|
|
@@ -668,11 +668,11 @@ var messages$P = defineMessages({
|
|
|
668
668
|
}
|
|
669
669
|
});
|
|
670
670
|
|
|
671
|
-
function ownKeys$
|
|
672
|
-
function _objectSpread$
|
|
671
|
+
function ownKeys$1t(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
672
|
+
function _objectSpread$1t(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1t(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1t(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
673
673
|
const getBottomOption = formatMessage => ({
|
|
674
674
|
options: [{
|
|
675
|
-
label: formatMessage ? formatMessage(messages$
|
|
675
|
+
label: formatMessage ? formatMessage(messages$O.bottomOption) : messages$O.bottomOption,
|
|
676
676
|
isBottomOption: true,
|
|
677
677
|
isDisabled: true
|
|
678
678
|
}]
|
|
@@ -680,7 +680,7 @@ const getBottomOption = formatMessage => ({
|
|
|
680
680
|
const Option$2 = props => {
|
|
681
681
|
const _useIntl = useIntl(),
|
|
682
682
|
formatMessage = _useIntl.formatMessage;
|
|
683
|
-
return jsx(AsyncSelectInput.Option, _objectSpread$
|
|
683
|
+
return jsx(AsyncSelectInput.Option, _objectSpread$1t(_objectSpread$1t({}, props), {}, {
|
|
684
684
|
children: props.data.isBottomOption ? jsx(Text.Detail, {
|
|
685
685
|
tone: "secondary",
|
|
686
686
|
children: formatMessage(props.data.label)
|
|
@@ -697,8 +697,8 @@ const Option$2 = props => {
|
|
|
697
697
|
};
|
|
698
698
|
Option$2.displayName = 'Option';
|
|
699
699
|
|
|
700
|
-
function ownKeys$
|
|
701
|
-
function _objectSpread$
|
|
700
|
+
function ownKeys$1s(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
701
|
+
function _objectSpread$1s(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1s(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$1s(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
702
702
|
const useHandlers = onChange => {
|
|
703
703
|
const _useState = useState(),
|
|
704
704
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -709,8 +709,8 @@ const useHandlers = onChange => {
|
|
|
709
709
|
}, []);
|
|
710
710
|
const handleChange = useEventCallback$1(event => {
|
|
711
711
|
var _context;
|
|
712
|
-
const eventWithExtractedValue = _objectSpread$
|
|
713
|
-
target: _objectSpread$
|
|
712
|
+
const eventWithExtractedValue = _objectSpread$1s(_objectSpread$1s({}, event), {}, {
|
|
713
|
+
target: _objectSpread$1s(_objectSpread$1s({}, event.target), {}, {
|
|
714
714
|
value: _Array$isArray(event.target.value) ? _mapInstanceProperty(_context = event.target.value).call(_context, item => item?.value) : event.target.value?.value
|
|
715
715
|
})
|
|
716
716
|
});
|
|
@@ -721,19 +721,20 @@ const useHandlers = onChange => {
|
|
|
721
721
|
var useHandlers$1 = useHandlers;
|
|
722
722
|
|
|
723
723
|
const _excluded$f = ["extraWhere"];
|
|
724
|
-
function ownKeys$
|
|
725
|
-
function _objectSpread$
|
|
724
|
+
function ownKeys$1r(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
725
|
+
function _objectSpread$1r(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context3 = ownKeys$1r(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context4 = ownKeys$1r(Object(t))).call(_context4, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
726
|
+
function _arrayLikeToArray$1(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
726
727
|
const constructPrefixSearchPredicate$1 = function () {
|
|
727
728
|
let prefixSearchFields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
728
729
|
let lowerBound = arguments.length > 1 ? arguments[1] : undefined;
|
|
729
730
|
let upperBound = arguments.length > 2 ? arguments[2] : undefined;
|
|
730
731
|
const constructPrefixSearchExpression = field => {
|
|
731
|
-
var _context;
|
|
732
|
+
var _context, _context2;
|
|
732
733
|
const path = field.split('.');
|
|
733
734
|
const _path$slice$reverse = _reverseInstanceProperty(_context = _sliceInstanceProperty(path).call(path)).call(_context),
|
|
734
735
|
_path$slice$reverse2 = _toArray(_path$slice$reverse),
|
|
735
736
|
finalValueInPath = _path$slice$reverse2[0],
|
|
736
|
-
remainPathInReverse = _sliceInstanceProperty(_path$slice$reverse2).call(
|
|
737
|
+
remainPathInReverse = _sliceInstanceProperty(_context2 = _arrayLikeToArray$1(_path$slice$reverse2)).call(_context2, 1);
|
|
737
738
|
const comparison = `${finalValueInPath} >= "${lowerBound}" and ${finalValueInPath} < "${upperBound}"`;
|
|
738
739
|
if (remainPathInReverse.length) {
|
|
739
740
|
return _reduceInstanceProperty(remainPathInReverse).call(remainPathInReverse, (nestedPath, nextPath) => `${nextPath}(${nestedPath})`, comparison);
|
|
@@ -769,7 +770,7 @@ const useLoadOptions = _ref => {
|
|
|
769
770
|
}
|
|
770
771
|
return client.query({
|
|
771
772
|
query,
|
|
772
|
-
variables: _objectSpread$
|
|
773
|
+
variables: _objectSpread$1r({
|
|
773
774
|
where
|
|
774
775
|
}, restVariables),
|
|
775
776
|
context: {
|
|
@@ -782,6 +783,7 @@ const useLoadOptions = _ref => {
|
|
|
782
783
|
};
|
|
783
784
|
var useLoadOptions$1 = useLoadOptions;
|
|
784
785
|
|
|
786
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
785
787
|
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: [] }] } }, { kind: "Field", name: { kind: "Name", value: "productSelections" }, 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: 269, source: { body: "query FetchIndicesExist {\n indicesExist {\n products {\n searchableIndexExists\n newInProgress\n }\n productTypes {\n searchableIndexExists\n newInProgress\n }\n productSelections {\n searchableIndexExists\n newInProgress\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
786
788
|
const useExecuteGraphQLRequest = () => {
|
|
787
789
|
const apolloClient = useApolloClient$1();
|
|
@@ -858,12 +860,12 @@ const constructNestedExpression = (reversedPath, predicate) => {
|
|
|
858
860
|
};
|
|
859
861
|
const constructPrefixSearchPredicate = (prefixSearchFields, lowerBound, upperBound) => {
|
|
860
862
|
const constructPrefixSearchExpression = field => {
|
|
861
|
-
var _context3;
|
|
863
|
+
var _context3, _context4;
|
|
862
864
|
const parts = field.split('.');
|
|
863
865
|
const _parts$slice$reverse = _reverseInstanceProperty(_context3 = _sliceInstanceProperty(parts).call(parts)).call(_context3),
|
|
864
866
|
_parts$slice$reverse2 = _toArray(_parts$slice$reverse),
|
|
865
867
|
valueToNest = _parts$slice$reverse2[0],
|
|
866
|
-
reversedPathToNestedValue = _sliceInstanceProperty(_parts$slice$reverse2).call(
|
|
868
|
+
reversedPathToNestedValue = _sliceInstanceProperty(_context4 = _arrayLikeToArray(_parts$slice$reverse2)).call(_context4, 1);
|
|
867
869
|
const predicateExpression = `${valueToNest} >= "${lowerBound}" and ${valueToNest} < "${upperBound}"`;
|
|
868
870
|
return constructNestedExpression(reversedPathToNestedValue, predicateExpression);
|
|
869
871
|
};
|
|
@@ -1071,8 +1073,8 @@ var setDisplayName$1 = setDisplayName;
|
|
|
1071
1073
|
const wrapDisplayName = (BaseComponent, hocName) => `${hocName}(${getDisplayName$1(BaseComponent)})`;
|
|
1072
1074
|
var wrapDisplayName$1 = wrapDisplayName;
|
|
1073
1075
|
|
|
1074
|
-
function ownKeys$
|
|
1075
|
-
function _objectSpread$
|
|
1076
|
+
function ownKeys$1q(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1077
|
+
function _objectSpread$1q(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1q(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1q(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1076
1078
|
const injectDataTablePaginationState = initialValues => Component => {
|
|
1077
1079
|
const WithDataTablePaginationState = props => {
|
|
1078
1080
|
const _usePaginationState = usePaginationState({
|
|
@@ -1085,7 +1087,7 @@ const injectDataTablePaginationState = initialValues => Component => {
|
|
|
1085
1087
|
key: initialValues?.tableSorting?.key,
|
|
1086
1088
|
order: initialValues?.tableSorting?.order
|
|
1087
1089
|
});
|
|
1088
|
-
return jsx(Component, _objectSpread$
|
|
1090
|
+
return jsx(Component, _objectSpread$1q(_objectSpread$1q({}, props), {}, {
|
|
1089
1091
|
dataTablePaginationState: {
|
|
1090
1092
|
page,
|
|
1091
1093
|
perPage,
|
|
@@ -1098,8 +1100,8 @@ const injectDataTablePaginationState = initialValues => Component => {
|
|
|
1098
1100
|
};
|
|
1099
1101
|
var injectDataTablePaginationState$1 = injectDataTablePaginationState;
|
|
1100
1102
|
|
|
1101
|
-
function ownKeys$
|
|
1102
|
-
function _objectSpread$
|
|
1103
|
+
function ownKeys$1p(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1104
|
+
function _objectSpread$1p(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1p(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1p(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1103
1105
|
const injectNotifications = function () {
|
|
1104
1106
|
let propName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'notifications';
|
|
1105
1107
|
return Component => {
|
|
@@ -1114,7 +1116,7 @@ const injectNotifications = function () {
|
|
|
1114
1116
|
onActionError,
|
|
1115
1117
|
hideAllPageNotifications
|
|
1116
1118
|
};
|
|
1117
|
-
return jsx(Component, _objectSpread$
|
|
1119
|
+
return jsx(Component, _objectSpread$1p(_objectSpread$1p({}, props), {}, {
|
|
1118
1120
|
[propName]: notifications
|
|
1119
1121
|
}));
|
|
1120
1122
|
};
|
|
@@ -1124,23 +1126,23 @@ const injectNotifications = function () {
|
|
|
1124
1126
|
};
|
|
1125
1127
|
var injectNotifications$1 = injectNotifications;
|
|
1126
1128
|
|
|
1127
|
-
function ownKeys$
|
|
1128
|
-
function _objectSpread$
|
|
1129
|
+
function ownKeys$1o(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1130
|
+
function _objectSpread$1o(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1o(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1o(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1129
1131
|
function isPropsMapper(mapProps) {
|
|
1130
1132
|
return typeof mapProps === 'function';
|
|
1131
1133
|
}
|
|
1132
1134
|
const withProps = mapProps => Component => {
|
|
1133
1135
|
const EnhancedWithProps = ownProps => {
|
|
1134
|
-
const enhancedProps = isPropsMapper(mapProps) ? _objectSpread$
|
|
1135
|
-
return jsx(Component, _objectSpread$
|
|
1136
|
+
const enhancedProps = isPropsMapper(mapProps) ? _objectSpread$1o(_objectSpread$1o({}, ownProps), mapProps(ownProps)) : _objectSpread$1o(_objectSpread$1o({}, ownProps), mapProps);
|
|
1137
|
+
return jsx(Component, _objectSpread$1o({}, enhancedProps));
|
|
1136
1138
|
};
|
|
1137
1139
|
EnhancedWithProps.displayName = wrapDisplayName$1(Component, 'withProps');
|
|
1138
1140
|
return EnhancedWithProps;
|
|
1139
1141
|
};
|
|
1140
1142
|
var withProps$1 = withProps;
|
|
1141
1143
|
|
|
1142
|
-
function ownKeys$
|
|
1143
|
-
function _objectSpread$
|
|
1144
|
+
function ownKeys$1n(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1145
|
+
function _objectSpread$1n(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1n(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1n(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1144
1146
|
const useRedirectEffect = _ref => {
|
|
1145
1147
|
let goTo = _ref.goTo;
|
|
1146
1148
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -1160,31 +1162,31 @@ const defaultOptions$5 = {
|
|
|
1160
1162
|
skip: () => false
|
|
1161
1163
|
};
|
|
1162
1164
|
const withRedirectTo = options => Component => {
|
|
1163
|
-
const mergedOptions = _objectSpread$
|
|
1165
|
+
const mergedOptions = _objectSpread$1n(_objectSpread$1n({}, defaultOptions$5), options);
|
|
1164
1166
|
const WithRedirectTo = props => {
|
|
1165
1167
|
if (!mergedOptions.skip(props)) {
|
|
1166
1168
|
return jsx(RedirectTo, {
|
|
1167
1169
|
goTo: options.selectGoTo(props)
|
|
1168
1170
|
});
|
|
1169
1171
|
}
|
|
1170
|
-
return jsx(Component, _objectSpread$
|
|
1172
|
+
return jsx(Component, _objectSpread$1n({}, props));
|
|
1171
1173
|
};
|
|
1172
1174
|
WithRedirectTo.displayName = 'WithFirstStepRedirect';
|
|
1173
1175
|
return WithRedirectTo;
|
|
1174
1176
|
};
|
|
1175
1177
|
var withRedirectTo$1 = withRedirectTo;
|
|
1176
1178
|
|
|
1177
|
-
function ownKeys$
|
|
1178
|
-
function _objectSpread$
|
|
1179
|
+
function ownKeys$1m(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1180
|
+
function _objectSpread$1m(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1m(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1m(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1179
1181
|
const defaultOptions$4 = {
|
|
1180
1182
|
propName: 'modalState',
|
|
1181
1183
|
isInitiallyOpen: false
|
|
1182
1184
|
};
|
|
1183
1185
|
const injectModalState$2 = options => Component => {
|
|
1184
|
-
const mergedOptions = _objectSpread$
|
|
1186
|
+
const mergedOptions = _objectSpread$1m(_objectSpread$1m({}, defaultOptions$4), options);
|
|
1185
1187
|
const WithModalState = props => {
|
|
1186
1188
|
const modalState = useModalState(mergedOptions.isInitiallyOpen);
|
|
1187
|
-
return jsx(Component, _objectSpread$
|
|
1189
|
+
return jsx(Component, _objectSpread$1m(_objectSpread$1m({}, props), {}, {
|
|
1188
1190
|
[mergedOptions.propName]: modalState
|
|
1189
1191
|
}));
|
|
1190
1192
|
};
|
|
@@ -1193,17 +1195,17 @@ const injectModalState$2 = options => Component => {
|
|
|
1193
1195
|
};
|
|
1194
1196
|
var injectModalState$3 = injectModalState$2;
|
|
1195
1197
|
|
|
1196
|
-
function ownKeys$
|
|
1197
|
-
function _objectSpread$
|
|
1198
|
+
function ownKeys$1l(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1199
|
+
function _objectSpread$1l(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1l(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1l(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1198
1200
|
const defaultOptions$3 = {
|
|
1199
1201
|
propName: 'toggleState',
|
|
1200
1202
|
isInitiallyOpen: false
|
|
1201
1203
|
};
|
|
1202
1204
|
const injectModalState = options => Component => {
|
|
1203
|
-
const mergedOptions = _objectSpread$
|
|
1205
|
+
const mergedOptions = _objectSpread$1l(_objectSpread$1l({}, defaultOptions$3), options);
|
|
1204
1206
|
const WithToggleState = props => {
|
|
1205
1207
|
const toggleState = useToggleState(mergedOptions.isInitiallyOpen);
|
|
1206
|
-
return jsx(Component, _objectSpread$
|
|
1208
|
+
return jsx(Component, _objectSpread$1l(_objectSpread$1l({}, props), {}, {
|
|
1207
1209
|
[mergedOptions.propName]: toggleState
|
|
1208
1210
|
}));
|
|
1209
1211
|
};
|
|
@@ -1212,8 +1214,8 @@ const injectModalState = options => Component => {
|
|
|
1212
1214
|
};
|
|
1213
1215
|
var injectModalState$1 = injectModalState;
|
|
1214
1216
|
|
|
1215
|
-
function ownKeys$
|
|
1216
|
-
function _objectSpread$
|
|
1217
|
+
function ownKeys$1k(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1218
|
+
function _objectSpread$1k(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1k(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$1k(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1217
1219
|
const defaultOptions$2 = {
|
|
1218
1220
|
storageType: 'local',
|
|
1219
1221
|
segregateByUser: true
|
|
@@ -1231,7 +1233,7 @@ const getStorage = storageType => storageType === 'session' ? sessionStorage : l
|
|
|
1231
1233
|
const isNil = value => typeof value === 'undefined' || value === null;
|
|
1232
1234
|
const useStorage = (storageKey, initialStorageValue, options) => {
|
|
1233
1235
|
var _context;
|
|
1234
|
-
const mergedOptions = _objectSpread$
|
|
1236
|
+
const mergedOptions = _objectSpread$1k(_objectSpread$1k({}, defaultOptions$2), options);
|
|
1235
1237
|
const userId = useApplicationContext(context => context.user?.id);
|
|
1236
1238
|
const scopedStorageKey = _filterInstanceProperty(_context = [mergedOptions.segregateByUser && userId, storageKey]).call(_context, Boolean).join('/');
|
|
1237
1239
|
const readFromStorage = useCallback(() => {
|
|
@@ -1276,8 +1278,8 @@ const useStorage = (storageKey, initialStorageValue, options) => {
|
|
|
1276
1278
|
};
|
|
1277
1279
|
var useStorage$1 = useStorage;
|
|
1278
1280
|
|
|
1279
|
-
function ownKeys$
|
|
1280
|
-
function _objectSpread$
|
|
1281
|
+
function ownKeys$1j(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1282
|
+
function _objectSpread$1j(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1j(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1j(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1281
1283
|
const defaultOptions$1 = {
|
|
1282
1284
|
propName: 'storage',
|
|
1283
1285
|
storageKey: '',
|
|
@@ -1290,7 +1292,7 @@ const injectStorage = options => WrappedComponent => {
|
|
|
1290
1292
|
* Options are being merged by spreading as destructuring and defaulting in
|
|
1291
1293
|
* argument position does not allow passing specification of option(s).
|
|
1292
1294
|
*/
|
|
1293
|
-
const mergedOptions = _objectSpread$
|
|
1295
|
+
const mergedOptions = _objectSpread$1j(_objectSpread$1j({}, defaultOptions$1), options);
|
|
1294
1296
|
const WithStorage = props => {
|
|
1295
1297
|
const _useStorage = useStorage$1(mergedOptions.storageKey(props), mergedOptions.initalStorageValue, mergedOptions.options),
|
|
1296
1298
|
_useStorage2 = _slicedToArray(_useStorage, 3),
|
|
@@ -1304,7 +1306,7 @@ const injectStorage = options => WrappedComponent => {
|
|
|
1304
1306
|
readFromStorage
|
|
1305
1307
|
}
|
|
1306
1308
|
};
|
|
1307
|
-
return jsx(WrappedComponent, _objectSpread$
|
|
1309
|
+
return jsx(WrappedComponent, _objectSpread$1j(_objectSpread$1j({}, props), storageProp));
|
|
1308
1310
|
};
|
|
1309
1311
|
WithStorage.displayName = wrapDisplayName$1(WrappedComponent, 'WithStorage');
|
|
1310
1312
|
return WithStorage;
|
|
@@ -1349,8 +1351,8 @@ function useFormatLocalizedFieldToString() {
|
|
|
1349
1351
|
return formatLocalizedFieldToString;
|
|
1350
1352
|
}
|
|
1351
1353
|
|
|
1352
|
-
function ownKeys$
|
|
1353
|
-
function _objectSpread$
|
|
1354
|
+
function ownKeys$1i(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1355
|
+
function _objectSpread$1i(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1i(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1i(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1354
1356
|
var FetchResourceTypeDuplicatedField = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchResourceTypeDuplicatedField" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "where" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "skipAssociateRoles" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "skipAttributeGroups" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "skipBusinessUnits" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "skipCarts" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "skipCartDiscounts" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "skipCategories" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "skipChannels" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "skipCustomers" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "skipCustomerGroups" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "skipDiscountCodes" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "skipInventoryEntries" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "skipOrders" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "skipPayments" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "skipProducts" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "skipProductDiscounts" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "skipProductSelections" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "skipProductTypes" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "skipShippingMethods" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "skipShoppingLists" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "skipStores" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "skipTaxCategories" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "skipZones" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "associateRoles" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "skipAssociateRoles" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "attributeGroups" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "skipAttributeGroups" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "businessUnits" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "skipBusinessUnits" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "carts" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "skipCarts" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "cartDiscounts" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "skipCartDiscounts" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "categories" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "skipCategories" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "channels" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "skipChannels" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "customers" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "skipCustomers" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "customerGroups" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "skipCustomerGroups" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "discountCodes" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "skipDiscountCodes" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "inventoryEntries" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "skipInventoryEntries" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "orders" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "skipOrders" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "payments" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "skipPayments" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "products" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "skipProducts" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "productDiscounts" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "skipProductDiscounts" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "productSelections" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "skipProductSelections" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "productTypes" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "skipProductTypes" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "shippingMethods" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "skipShippingMethods" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "shoppingLists" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "skipShoppingLists" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "stores" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "skipStores" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "taxCategories" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "skipTaxCategories" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "zones" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "skipZones" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 2328, source: { body: "query FetchResourceTypeDuplicatedField(\n $where: String\n $skipAssociateRoles: Boolean!\n $skipAttributeGroups: Boolean!\n $skipBusinessUnits: Boolean!\n $skipCarts: Boolean!\n $skipCartDiscounts: Boolean!\n $skipCategories: Boolean!\n $skipChannels: Boolean!\n $skipCustomers: Boolean!\n $skipCustomerGroups: Boolean!\n $skipDiscountCodes: Boolean!\n $skipInventoryEntries: Boolean!\n $skipOrders: Boolean!\n $skipPayments: Boolean!\n $skipProducts: Boolean!\n $skipProductDiscounts: Boolean!\n $skipProductSelections: Boolean!\n $skipProductTypes: Boolean!\n $skipShippingMethods: Boolean!\n $skipShoppingLists: Boolean!\n $skipStores: Boolean!\n $skipTaxCategories: Boolean!\n $skipZones: Boolean!\n) {\n associateRoles(where: $where) @skip(if: $skipAssociateRoles) {\n total\n }\n attributeGroups(where: $where) @skip(if: $skipAttributeGroups) {\n total\n }\n businessUnits(where: $where) @skip(if: $skipBusinessUnits) {\n total\n }\n carts(where: $where) @skip(if: $skipCarts) {\n total\n }\n cartDiscounts(where: $where) @skip(if: $skipCartDiscounts) {\n total\n }\n categories(where: $where) @skip(if: $skipCategories) {\n total\n }\n channels(where: $where) @skip(if: $skipChannels) {\n total\n }\n customers(where: $where) @skip(if: $skipCustomers) {\n total\n }\n customerGroups(where: $where) @skip(if: $skipCustomerGroups) {\n total\n }\n discountCodes(where: $where) @skip(if: $skipDiscountCodes) {\n total\n }\n inventoryEntries(where: $where) @skip(if: $skipInventoryEntries) {\n total\n }\n orders(where: $where) @skip(if: $skipOrders) {\n total\n }\n payments(where: $where) @skip(if: $skipPayments) {\n total\n }\n products(where: $where) @skip(if: $skipProducts) {\n total\n }\n productDiscounts(where: $where) @skip(if: $skipProductDiscounts) {\n total\n }\n productSelections(where: $where) @skip(if: $skipProductSelections) {\n total\n }\n productTypes(where: $where) @skip(if: $skipProductTypes) {\n total\n }\n shippingMethods(where: $where) @skip(if: $skipShippingMethods) {\n total\n }\n shoppingLists(where: $where) @skip(if: $skipShoppingLists) {\n total\n }\n stores(where: $where) @skip(if: $skipStores) {\n total\n }\n taxCategories(where: $where) @skip(if: $skipTaxCategories) {\n total\n }\n zones(where: $where) @skip(if: $skipZones) {\n total\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
1355
1357
|
const MC_RESOURCES_WITH_KEYS = {
|
|
1356
1358
|
ASSOCIATE_ROLE: 'ASSOCIATE_ROLE',
|
|
@@ -1425,7 +1427,7 @@ const DEFAULT_SKIP_RESOURCE_TYPES_VARIABLES = {
|
|
|
1425
1427
|
[BASE_SKIP_RESOURCE_TYPES_VARIABLES.ZONE]: true
|
|
1426
1428
|
};
|
|
1427
1429
|
const getSkipVariables = resourceType => {
|
|
1428
|
-
return _objectSpread$
|
|
1430
|
+
return _objectSpread$1i(_objectSpread$1i({}, DEFAULT_SKIP_RESOURCE_TYPES_VARIABLES), {}, {
|
|
1429
1431
|
[BASE_SKIP_RESOURCE_TYPES_VARIABLES[resourceType]]: false
|
|
1430
1432
|
});
|
|
1431
1433
|
};
|
|
@@ -1450,7 +1452,7 @@ const getQueryVariables = _ref2 => {
|
|
|
1450
1452
|
fieldValue,
|
|
1451
1453
|
id
|
|
1452
1454
|
});
|
|
1453
|
-
return _objectSpread$
|
|
1455
|
+
return _objectSpread$1i({
|
|
1454
1456
|
where
|
|
1455
1457
|
}, skipVariables);
|
|
1456
1458
|
};
|
|
@@ -1484,8 +1486,8 @@ const usePrevious = value => {
|
|
|
1484
1486
|
};
|
|
1485
1487
|
var usePrevious$1 = usePrevious;
|
|
1486
1488
|
|
|
1487
|
-
function ownKeys$
|
|
1488
|
-
function _objectSpread$
|
|
1489
|
+
function ownKeys$1h(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1490
|
+
function _objectSpread$1h(e) { for (var r = 1; r < arguments.length; r++) { var _context7, _context8; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context7 = ownKeys$1h(Object(t), !0)).call(_context7, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context8 = ownKeys$1h(Object(t))).call(_context8, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1489
1491
|
var FetchStoresQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchStoresQuery" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "limit" } }, type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "offset" } }, type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "sort" } }, type: { kind: "ListType", type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "where" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "excludeExtendedStoresList" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "excludeProductSelections" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "stores" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "limit" }, value: { kind: "Variable", name: { kind: "Name", value: "limit" } } }, { kind: "Argument", name: { kind: "Name", value: "offset" }, value: { kind: "Variable", name: { kind: "Name", value: "offset" } } }, { kind: "Argument", name: { kind: "Name", value: "sort" }, value: { kind: "Variable", name: { kind: "Name", value: "sort" } } }, { kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "count" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "offset" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "results" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "StoreBasicInfo" }, directives: [] }, { kind: "Field", name: { kind: "Name", value: "countries" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "code" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "languages" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "excludeExtendedStoresList" } } }] }] }, { kind: "Field", name: { kind: "Name", value: "distributionChannelsRef" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "distributionChannels" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "excludeExtendedStoresList" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "supplyChannels" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "excludeExtendedStoresList" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "productSelections" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "excludeProductSelections" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "active" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "productSelection" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "mode" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }] } }] } }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "StoreBasicInfo" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Store" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "version" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "createdAt" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "lastModifiedAt" }, arguments: [], directives: [] }] } }], loc: { start: 0, end: 1089, source: { body: "#import '../../utils/graphql/fragments/store-basic-info.ctp.graphql'\n\nquery FetchStoresQuery(\n $limit: Int\n $offset: Int\n $sort: [String!]\n $where: String\n $excludeExtendedStoresList: Boolean!\n $excludeProductSelections: Boolean!\n) {\n stores(limit: $limit, offset: $offset, sort: $sort, where: $where) {\n total\n count\n offset\n results {\n ...StoreBasicInfo\n countries {\n code\n }\n languages @skip(if: $excludeExtendedStoresList)\n distributionChannelsRef {\n id\n }\n distributionChannels @skip(if: $excludeExtendedStoresList) {\n id\n key\n nameAllLocales {\n locale\n value\n }\n }\n supplyChannels @skip(if: $excludeExtendedStoresList) {\n id\n key\n nameAllLocales {\n locale\n value\n }\n }\n productSelections @skip(if: $excludeProductSelections) {\n active\n productSelection {\n id\n mode\n nameAllLocales {\n locale\n value\n }\n }\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
1490
1492
|
const filterStoresOutdatedDanglingProductSelections = storesQueryResult => {
|
|
1491
1493
|
var _context, _context2;
|
|
@@ -1496,7 +1498,7 @@ const filterStoresOutdatedDanglingProductSelections = storesQueryResult => {
|
|
|
1496
1498
|
offset: storesQueryResult.offset,
|
|
1497
1499
|
results: ((_context = storesQueryResult.results) == null ? void 0 : _bindInstanceProperty(_context2 = Function.call).call(_context2, _mapInstanceProperty(_context), _context))?.(store => {
|
|
1498
1500
|
var _context3, _context4;
|
|
1499
|
-
return _objectSpread$
|
|
1501
|
+
return _objectSpread$1h(_objectSpread$1h({}, store), {}, {
|
|
1500
1502
|
productSelections: ((_context3 = store.productSelections) == null ? void 0 : _bindInstanceProperty(_context4 = Function.call).call(_context4, _filterInstanceProperty(_context3), _context3))?.(productSelectionRef => Boolean(productSelectionRef.productSelection))
|
|
1501
1503
|
});
|
|
1502
1504
|
})
|
|
@@ -1504,7 +1506,7 @@ const filterStoresOutdatedDanglingProductSelections = storesQueryResult => {
|
|
|
1504
1506
|
};
|
|
1505
1507
|
const createQueryVariables$6 = ownProps => {
|
|
1506
1508
|
var _context5, _context6;
|
|
1507
|
-
return _objectSpread$
|
|
1509
|
+
return _objectSpread$1h(_objectSpread$1h(_objectSpread$1h({
|
|
1508
1510
|
limit: ownProps.limit,
|
|
1509
1511
|
offset: ownProps.offset,
|
|
1510
1512
|
sort: _sortInstanceProperty(ownProps)
|
|
@@ -1557,8 +1559,8 @@ const useStoresListFetcher = props => {
|
|
|
1557
1559
|
};
|
|
1558
1560
|
var useStoresListFetcher$1 = useStoresListFetcher;
|
|
1559
1561
|
|
|
1560
|
-
function ownKeys$
|
|
1561
|
-
function _objectSpread$
|
|
1562
|
+
function ownKeys$1g(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1563
|
+
function _objectSpread$1g(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1g(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1g(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1562
1564
|
const createSearchQuery = (searchBy, searchTerm, language) => {
|
|
1563
1565
|
if (searchBy === 'key/name') {
|
|
1564
1566
|
return {
|
|
@@ -1577,7 +1579,7 @@ const createSearchQuery = (searchBy, searchTerm, language) => {
|
|
|
1577
1579
|
};
|
|
1578
1580
|
} else {
|
|
1579
1581
|
return {
|
|
1580
|
-
fullTextPrefix: _objectSpread$
|
|
1582
|
+
fullTextPrefix: _objectSpread$1g(_objectSpread$1g({
|
|
1581
1583
|
field: searchBy
|
|
1582
1584
|
}, searchBy === 'name' ? {
|
|
1583
1585
|
language: language
|
|
@@ -1653,7 +1655,7 @@ const useStoresSearchFetcher = () => {
|
|
|
1653
1655
|
});
|
|
1654
1656
|
setIsLoading(false);
|
|
1655
1657
|
} catch (error) {
|
|
1656
|
-
setStoreSearchResults(prev => _objectSpread$
|
|
1658
|
+
setStoreSearchResults(prev => _objectSpread$1g(_objectSpread$1g({}, prev), {}, {
|
|
1657
1659
|
hits: [],
|
|
1658
1660
|
total: 0
|
|
1659
1661
|
}));
|
|
@@ -1664,7 +1666,7 @@ const useStoresSearchFetcher = () => {
|
|
|
1664
1666
|
fetchStoreSearchResults,
|
|
1665
1667
|
storeSearchResults,
|
|
1666
1668
|
isLoading,
|
|
1667
|
-
resetStoreSearchResults: () => setStoreSearchResults(prev => _objectSpread$
|
|
1669
|
+
resetStoreSearchResults: () => setStoreSearchResults(prev => _objectSpread$1g(_objectSpread$1g({}, prev), {}, {
|
|
1668
1670
|
hits: [],
|
|
1669
1671
|
total: 0
|
|
1670
1672
|
}))
|
|
@@ -1755,8 +1757,8 @@ const useStoreKeysInDataFences = _ref => {
|
|
|
1755
1757
|
};
|
|
1756
1758
|
var useStoreKeysInDataFences$1 = useStoreKeysInDataFences;
|
|
1757
1759
|
|
|
1758
|
-
function ownKeys$
|
|
1759
|
-
function _objectSpread$
|
|
1760
|
+
function ownKeys$1f(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1761
|
+
function _objectSpread$1f(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1f(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1f(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1760
1762
|
const TEN_MINUTES_IN_MS = 600000;
|
|
1761
1763
|
const defaultOptions = {
|
|
1762
1764
|
reminderInterval: REMINDER_OPTION_1_DAY,
|
|
@@ -1784,7 +1786,7 @@ const useHasReminderExpired = readReminderInterval => {
|
|
|
1784
1786
|
};
|
|
1785
1787
|
const usePersistedReminder = function () {
|
|
1786
1788
|
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
1787
|
-
const mergedOptions = _objectSpread$
|
|
1789
|
+
const mergedOptions = _objectSpread$1f(_objectSpread$1f({}, defaultOptions), options);
|
|
1788
1790
|
const _useStorage = useStorage$1(mergedOptions.storageKey, null),
|
|
1789
1791
|
_useStorage2 = _slicedToArray(_useStorage, 3),
|
|
1790
1792
|
initialChosenReminderInterval = _useStorage2[0],
|
|
@@ -1831,7 +1833,7 @@ const usePersistedReminder = function () {
|
|
|
1831
1833
|
};
|
|
1832
1834
|
var usePersistedReminder$1 = usePersistedReminder;
|
|
1833
1835
|
|
|
1834
|
-
var messages$
|
|
1836
|
+
var messages$N = defineMessages({
|
|
1835
1837
|
profileUpdated: {
|
|
1836
1838
|
id: 'NotificationText.profileUpdated',
|
|
1837
1839
|
description: 'Label for the notification header',
|
|
@@ -1849,8 +1851,8 @@ var messages$O = defineMessages({
|
|
|
1849
1851
|
}
|
|
1850
1852
|
});
|
|
1851
1853
|
|
|
1852
|
-
function ownKeys$
|
|
1853
|
-
function _objectSpread$
|
|
1854
|
+
function ownKeys$1e(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1855
|
+
function _objectSpread$1e(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1e(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1e(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1854
1856
|
const LinkToProfile = props => {
|
|
1855
1857
|
return jsx(Link, {
|
|
1856
1858
|
to: "/account/profile",
|
|
@@ -1868,9 +1870,9 @@ const NotificationText = () => jsxs(Spacings.Stack, {
|
|
|
1868
1870
|
children: [jsx(Text.Body, {
|
|
1869
1871
|
as: "p",
|
|
1870
1872
|
isBold: true,
|
|
1871
|
-
intlMessage: messages$
|
|
1873
|
+
intlMessage: messages$N.profileUpdated
|
|
1872
1874
|
}), jsx(Text.Body, {
|
|
1873
|
-
intlMessage: _objectSpread$
|
|
1875
|
+
intlMessage: _objectSpread$1e(_objectSpread$1e({}, messages$N.addMoreInformation), {}, {
|
|
1874
1876
|
values: {
|
|
1875
1877
|
newline: getNewLine
|
|
1876
1878
|
}
|
|
@@ -1879,7 +1881,7 @@ const NotificationText = () => jsxs(Spacings.Stack, {
|
|
|
1879
1881
|
}), jsx(Spacings.Stack, {
|
|
1880
1882
|
scale: "xs",
|
|
1881
1883
|
children: jsx(Text.Body, {
|
|
1882
|
-
intlMessage: _objectSpread$
|
|
1884
|
+
intlMessage: _objectSpread$1e(_objectSpread$1e({}, messages$N.informationAndProfileLink), {}, {
|
|
1883
1885
|
values: {
|
|
1884
1886
|
newline: getNewLine,
|
|
1885
1887
|
link: getLinkToProfile
|
|
@@ -2007,7 +2009,7 @@ const useEventCallback = (fn, dependencies) => {
|
|
|
2007
2009
|
};
|
|
2008
2010
|
var useEventCallback$1 = useEventCallback;
|
|
2009
2011
|
|
|
2010
|
-
var messages$
|
|
2012
|
+
var messages$M = defineMessages({
|
|
2011
2013
|
fallbackHint: {
|
|
2012
2014
|
id: 'KeyFallback.fallbackHint',
|
|
2013
2015
|
description: 'key fallback for a specified resource key (e.g name)',
|
|
@@ -2031,7 +2033,7 @@ const useLocalizedKeyFallback = () => {
|
|
|
2031
2033
|
return values => {
|
|
2032
2034
|
if (!values.resource) return null;
|
|
2033
2035
|
const localizedString = values.resource[values.localizedStringFieldName];
|
|
2034
|
-
const fallbackHintWithKey = intl.formatMessage(messages$
|
|
2036
|
+
const fallbackHintWithKey = intl.formatMessage(messages$M.fallbackHint, {
|
|
2035
2037
|
key: values.resource.key
|
|
2036
2038
|
});
|
|
2037
2039
|
if (!localizedString) return fallbackHintWithKey;
|
|
@@ -2045,8 +2047,8 @@ const useDebouncedPromiseCallback = (promiseCallback, wait) =>
|
|
|
2045
2047
|
useCallback(debounce(promiseCallback, wait), [promiseCallback]);
|
|
2046
2048
|
var useDebouncedPromiseCallback$1 = useDebouncedPromiseCallback;
|
|
2047
2049
|
|
|
2048
|
-
function ownKeys$
|
|
2049
|
-
function _objectSpread$
|
|
2050
|
+
function ownKeys$1d(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2051
|
+
function _objectSpread$1d(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1d(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$1d(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2050
2052
|
const prepareMutableColumnProps = (columnConfig, mutableColumnProps) => {
|
|
2051
2053
|
const updatedColumnProps = {};
|
|
2052
2054
|
_forEachInstanceProperty(mutableColumnProps).call(mutableColumnProps, columnProp => {
|
|
@@ -2066,14 +2068,14 @@ const retrieveColumnsWithCachedConfiguration = _ref => {
|
|
|
2066
2068
|
mutableColumnProps = _ref.mutableColumnProps;
|
|
2067
2069
|
return _mapInstanceProperty(_context = _filterInstanceProperty(cachedVisibleTableConfiguration).call(cachedVisibleTableConfiguration, cachedColumn => _findInstanceProperty(allAvailableColumnsConfiguration).call(allAvailableColumnsConfiguration, initialConfig => initialConfig.key === cachedColumn.key))).call(_context, cachedConfig => {
|
|
2068
2070
|
const initialColumnConfig = _findInstanceProperty(allAvailableColumnsConfiguration).call(allAvailableColumnsConfiguration, initialConfig => initialConfig.key === cachedConfig.key);
|
|
2069
|
-
return _objectSpread$
|
|
2071
|
+
return _objectSpread$1d(_objectSpread$1d({}, initialColumnConfig), prepareMutableColumnProps(cachedConfig, mutableColumnProps));
|
|
2070
2072
|
});
|
|
2071
2073
|
};
|
|
2072
2074
|
const handleCacheUpdate = _ref2 => {
|
|
2073
2075
|
let update = _ref2.update,
|
|
2074
2076
|
cachedVisibleTableConfiguration = _ref2.cachedVisibleTableConfiguration,
|
|
2075
2077
|
updateCachedTableConfiguration = _ref2.updateCachedTableConfiguration;
|
|
2076
|
-
return updateCachedTableConfiguration(_objectSpread$
|
|
2078
|
+
return updateCachedTableConfiguration(_objectSpread$1d(_objectSpread$1d({}, pick(cachedVisibleTableConfiguration, ['columnsConfig', 'displaySettings'])), update));
|
|
2077
2079
|
};
|
|
2078
2080
|
|
|
2079
2081
|
// Signature:
|
|
@@ -2102,7 +2104,7 @@ const usePersistedTableConfiguration = props => {
|
|
|
2102
2104
|
return {
|
|
2103
2105
|
columnsConfig: _mapInstanceProperty(initialVisibleColumnKeys).call(initialVisibleColumnKeys, visibleColumnKey => {
|
|
2104
2106
|
const visibleColumnConfig = _findInstanceProperty(allAvailableColumnsConfiguration).call(allAvailableColumnsConfiguration, columnConfig => columnConfig.key === visibleColumnKey);
|
|
2105
|
-
return _objectSpread$
|
|
2107
|
+
return _objectSpread$1d({
|
|
2106
2108
|
key: visibleColumnKey
|
|
2107
2109
|
}, prepareMutableColumnProps(visibleColumnConfig, mutableColumnProps));
|
|
2108
2110
|
}),
|
|
@@ -2165,14 +2167,14 @@ const useProductSelectionsTotalFetcher = props => {
|
|
|
2165
2167
|
};
|
|
2166
2168
|
var useProductSelectionsTotalFetcher$1 = useProductSelectionsTotalFetcher;
|
|
2167
2169
|
|
|
2168
|
-
function ownKeys$
|
|
2169
|
-
function _objectSpread$
|
|
2170
|
+
function ownKeys$1c(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2171
|
+
function _objectSpread$1c(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1c(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$1c(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2170
2172
|
|
|
2171
2173
|
// eslint-disable-next-line import/prefer-default-export
|
|
2172
2174
|
const convertProductSelectionsFromGraphQl = productSelections => {
|
|
2173
2175
|
var _context;
|
|
2174
|
-
return productSelections?.results && _objectSpread$
|
|
2175
|
-
results: _mapInstanceProperty(_context = productSelections.results).call(_context, productSelection => _objectSpread$
|
|
2176
|
+
return productSelections?.results && _objectSpread$1c(_objectSpread$1c({}, productSelections), {}, {
|
|
2177
|
+
results: _mapInstanceProperty(_context = productSelections.results).call(_context, productSelection => _objectSpread$1c({}, applyTransformedLocalizedFields(productSelection, [{
|
|
2176
2178
|
from: 'nameAllLocales',
|
|
2177
2179
|
to: 'name'
|
|
2178
2180
|
}])))
|
|
@@ -2215,61 +2217,6 @@ const useProductSelectionsFetcher = props => {
|
|
|
2215
2217
|
};
|
|
2216
2218
|
var useProductSelectionsFetcher$1 = useProductSelectionsFetcher;
|
|
2217
2219
|
|
|
2218
|
-
var messages$M = defineMessages({
|
|
2219
|
-
identityBannerNotification: {
|
|
2220
|
-
id: 'Global.identityBannerNotification',
|
|
2221
|
-
description: 'Identity banner notification',
|
|
2222
|
-
defaultMessage: '🎉 <b>Introducing Identity</b>: A more secure sign-in system is coming soon to unify user accounts across commercetools products. You will need to create your new identity account when the time comes but your current Merchant Center access will stay the same.'
|
|
2223
|
-
}
|
|
2224
|
-
});
|
|
2225
|
-
|
|
2226
|
-
const getBoldText = chunks => jsx(Text.Body, {
|
|
2227
|
-
tone: "inverted",
|
|
2228
|
-
as: "span",
|
|
2229
|
-
fontWeight: "bold",
|
|
2230
|
-
children: chunks
|
|
2231
|
-
}, "bold-text");
|
|
2232
|
-
const DISMISSED_IDENTITY_BANNER = 'dismissed-identity-banner';
|
|
2233
|
-
const PENDING_IDENTITY_BANNER = 'pending-identity-banner';
|
|
2234
|
-
// Hardcode feature flag name here instead of importing it from the private `constants` package.
|
|
2235
|
-
const ENABLE_IDENTITY_BANNER_NOTIFICATION = 'identityBannerNotification';
|
|
2236
|
-
const useIdentityBannerNotification = () => {
|
|
2237
|
-
const isIdentityBannerNotificationEnabled = useFeatureToggle(ENABLE_IDENTITY_BANNER_NOTIFICATION);
|
|
2238
|
-
const intl = useIntl();
|
|
2239
|
-
const showNotification = useShowNotification();
|
|
2240
|
-
const hasShownRef = useRef(false);
|
|
2241
|
-
useEffect(() => {
|
|
2242
|
-
// If running in Cypress, always mark the banner as dismissed
|
|
2243
|
-
if (typeof window !== 'undefined' && window.Cypress) {
|
|
2244
|
-
localStorage.setItem('dismissed-identity-banner', 'true');
|
|
2245
|
-
return;
|
|
2246
|
-
}
|
|
2247
|
-
if (isIdentityBannerNotificationEnabled !== true) return;
|
|
2248
|
-
const hasDismissedBanner = !!localStorage.getItem(DISMISSED_IDENTITY_BANNER);
|
|
2249
|
-
const isPending = !!localStorage.getItem(PENDING_IDENTITY_BANNER);
|
|
2250
|
-
if (!hasDismissedBanner && !isPending && !hasShownRef.current || isPending && !hasShownRef.current) {
|
|
2251
|
-
hasShownRef.current = true;
|
|
2252
|
-
localStorage.setItem(PENDING_IDENTITY_BANNER, 'true');
|
|
2253
|
-
showNotification({
|
|
2254
|
-
kind: NOTIFICATION_KINDS_SIDE.info,
|
|
2255
|
-
domain: DOMAINS.GLOBAL,
|
|
2256
|
-
// @ts-expect-error: notification `text` expects a string but the formatted message is a ReactNode
|
|
2257
|
-
// due to the injected `b` component. Apparently, it still works but the types are not correct.
|
|
2258
|
-
text: intl.formatMessage(messages$M.identityBannerNotification, {
|
|
2259
|
-
b: getBoldText
|
|
2260
|
-
})
|
|
2261
|
-
}, {
|
|
2262
|
-
onDismiss: () => {
|
|
2263
|
-
localStorage.setItem(DISMISSED_IDENTITY_BANNER, 'true');
|
|
2264
|
-
localStorage.removeItem(PENDING_IDENTITY_BANNER);
|
|
2265
|
-
hasShownRef.current = false;
|
|
2266
|
-
}
|
|
2267
|
-
});
|
|
2268
|
-
}
|
|
2269
|
-
// }
|
|
2270
|
-
}, [showNotification, intl, isIdentityBannerNotificationEnabled]);
|
|
2271
|
-
};
|
|
2272
|
-
|
|
2273
2220
|
const setToArray = function () {
|
|
2274
2221
|
let values = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
2275
2222
|
return `id in (${_mapInstanceProperty(values).call(values, value => `"${value}"`).join(', ')})`;
|
|
@@ -3712,8 +3659,8 @@ const getData = (code, field) => {
|
|
|
3712
3659
|
};
|
|
3713
3660
|
const getFractionDigit = code => getData(code, 'fractionDigit');
|
|
3714
3661
|
|
|
3715
|
-
function ownKeys$
|
|
3716
|
-
function _objectSpread$
|
|
3662
|
+
function ownKeys$1b(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3663
|
+
function _objectSpread$1b(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1b(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1b(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3717
3664
|
function formatMoneyRangeValue(value, intl) {
|
|
3718
3665
|
if (value.from === value.to) return formatMoneyValue(value.from, value.currency, intl);
|
|
3719
3666
|
if (value.from && value.to) return `${formatMoneyValue(value.from, value.currency, intl)} -
|
|
@@ -3723,7 +3670,7 @@ function formatMoneyRangeValue(value, intl) {
|
|
|
3723
3670
|
return '';
|
|
3724
3671
|
}
|
|
3725
3672
|
function formatMoneyValue(amount, currency, intl) {
|
|
3726
|
-
return formatMoney$2(_objectSpread$
|
|
3673
|
+
return formatMoney$2(_objectSpread$1b({
|
|
3727
3674
|
centAmount: amount,
|
|
3728
3675
|
fractionDigits: getFractionDigit(currency)
|
|
3729
3676
|
}, currency ? {
|
|
@@ -3739,7 +3686,7 @@ function getFractionedAmount(moneyValue) {
|
|
|
3739
3686
|
return amount / 10 ** fractionDigits;
|
|
3740
3687
|
}
|
|
3741
3688
|
function formatMoney$2(moneyValue, intl, options) {
|
|
3742
|
-
return intl.formatNumber(moneyValue.fractionedAmount ?? getFractionedAmount(moneyValue), _objectSpread$
|
|
3689
|
+
return intl.formatNumber(moneyValue.fractionedAmount ?? getFractionedAmount(moneyValue), _objectSpread$1b({
|
|
3743
3690
|
style: 'currency',
|
|
3744
3691
|
currency: moneyValue.currencyCode,
|
|
3745
3692
|
minimumFractionDigits: moneyValue.fractionDigits
|
|
@@ -4013,8 +3960,8 @@ const getPrefixSearchBounds = input => {
|
|
|
4013
3960
|
var getPrefixSearchBounds$1 = getPrefixSearchBounds;
|
|
4014
3961
|
|
|
4015
3962
|
const _excluded$e = ["action"];
|
|
4016
|
-
function ownKeys$
|
|
4017
|
-
function _objectSpread$
|
|
3963
|
+
function ownKeys$1a(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3964
|
+
function _objectSpread$1a(e) { for (var r = 1; r < arguments.length; r++) { var _context0, _context1; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context0 = ownKeys$1a(Object(t), !0)).call(_context0, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context1 = ownKeys$1a(Object(t))).call(_context1, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4018
3965
|
|
|
4019
3966
|
/**
|
|
4020
3967
|
* Checks if a value is a LocalizedString
|
|
@@ -4036,7 +3983,7 @@ const getIsLocalizedString = maybeLocalizedString => {
|
|
|
4036
3983
|
*/
|
|
4037
3984
|
const transformCustomFieldsRawToCustomFields = customFieldsRaw => {
|
|
4038
3985
|
if (!customFieldsRaw || customFieldsRaw.length === 0) return null;
|
|
4039
|
-
return _reduceInstanceProperty(customFieldsRaw).call(customFieldsRaw, (customFields, customField) => _objectSpread$
|
|
3986
|
+
return _reduceInstanceProperty(customFieldsRaw).call(customFieldsRaw, (customFields, customField) => _objectSpread$1a(_objectSpread$1a({}, customFields), {}, {
|
|
4040
3987
|
[customField.name]: customField.value
|
|
4041
3988
|
}), {});
|
|
4042
3989
|
};
|
|
@@ -4060,7 +4007,7 @@ function transformLocalizedFieldsForCategory(category) {
|
|
|
4060
4007
|
const transformedData = applyTransformedLocalizedFields(category, transformationOptions);
|
|
4061
4008
|
const parent = category.parent ? transformLocalizedFieldsForCategory(category.parent) : null;
|
|
4062
4009
|
const ancestors = category.ancestors ? _mapInstanceProperty(_context = category.ancestors).call(_context, ancestor => transformLocalizedFieldsForCategory(ancestor)) : null;
|
|
4063
|
-
return _objectSpread$
|
|
4010
|
+
return _objectSpread$1a(_objectSpread$1a(_objectSpread$1a({}, transformedData), parent ? {
|
|
4064
4011
|
parent
|
|
4065
4012
|
} : {}), ancestors ? {
|
|
4066
4013
|
ancestors
|
|
@@ -4153,7 +4100,7 @@ const formatMoney = valueType => money => {
|
|
|
4153
4100
|
case 'fixed':
|
|
4154
4101
|
case 'fixedCart':
|
|
4155
4102
|
return {
|
|
4156
|
-
[money.type]: _objectSpread$
|
|
4103
|
+
[money.type]: _objectSpread$1a({
|
|
4157
4104
|
centAmount: money.centAmount,
|
|
4158
4105
|
currencyCode: money.currencyCode
|
|
4159
4106
|
}, money.type === PRECISION_TYPES.highPrecision && {
|
|
@@ -4335,7 +4282,7 @@ const convertAction = (actionName, actionPayload) => {
|
|
|
4335
4282
|
case 'addAttributeDefinition':
|
|
4336
4283
|
return {
|
|
4337
4284
|
[actionName]: {
|
|
4338
|
-
attributeDefinition: _objectSpread$
|
|
4285
|
+
attributeDefinition: _objectSpread$1a(_objectSpread$1a({}, actionPayload.attribute), {}, {
|
|
4339
4286
|
label: transformLocalizedStringToLocalizedField(actionPayload.attribute.label),
|
|
4340
4287
|
inputTip: transformLocalizedStringToLocalizedField(actionPayload.attribute.inputTip),
|
|
4341
4288
|
type: createAttributeTypeValue(actionPayload.attribute)
|
|
@@ -4431,7 +4378,7 @@ const convertAction = (actionName, actionPayload) => {
|
|
|
4431
4378
|
return {
|
|
4432
4379
|
[actionName]: {
|
|
4433
4380
|
attributeName: actionPayload.attributeName,
|
|
4434
|
-
value: _objectSpread$
|
|
4381
|
+
value: _objectSpread$1a(_objectSpread$1a({}, actionPayload.value), {}, {
|
|
4435
4382
|
label: transformLocalizedStringToLocalizedField(actionPayload.value.label)
|
|
4436
4383
|
})
|
|
4437
4384
|
}
|
|
@@ -4440,7 +4387,7 @@ const convertAction = (actionName, actionPayload) => {
|
|
|
4440
4387
|
return {
|
|
4441
4388
|
[actionName]: {
|
|
4442
4389
|
attributeName: actionPayload.attributeName,
|
|
4443
|
-
newValue: _objectSpread$
|
|
4390
|
+
newValue: _objectSpread$1a(_objectSpread$1a({}, actionPayload.newValue), {}, {
|
|
4444
4391
|
label: transformLocalizedStringToLocalizedField(actionPayload.newValue.label)
|
|
4445
4392
|
})
|
|
4446
4393
|
}
|
|
@@ -4467,7 +4414,7 @@ const convertAction = (actionName, actionPayload) => {
|
|
|
4467
4414
|
name: transformLocalizedStringToLocalizedField(actionPayload.name),
|
|
4468
4415
|
taxCategory: actionPayload.taxCategory,
|
|
4469
4416
|
money: {
|
|
4470
|
-
[actionPayload.money.type]: _objectSpread$
|
|
4417
|
+
[actionPayload.money.type]: _objectSpread$1a({
|
|
4471
4418
|
centAmount: actionPayload.money.centAmount,
|
|
4472
4419
|
currencyCode: actionPayload.money.currencyCode
|
|
4473
4420
|
}, actionPayload.money.type === PRECISION_TYPES.highPrecision && {
|
|
@@ -4495,7 +4442,7 @@ const convertAction = (actionName, actionPayload) => {
|
|
|
4495
4442
|
return {
|
|
4496
4443
|
[actionName]: {
|
|
4497
4444
|
target: {
|
|
4498
|
-
[actionPayload.target.type]: _objectSpread$
|
|
4445
|
+
[actionPayload.target.type]: _objectSpread$1a(_objectSpread$1a(_objectSpread$1a({}, omit(actionPayload.target, ['type', '__typename'])), actionPayload.target.triggerPattern && {
|
|
4499
4446
|
triggerPattern: _mapInstanceProperty(_context6 = actionPayload.target.triggerPattern).call(_context6, pattern => ({
|
|
4500
4447
|
[pattern.type]: omit(pattern, ['type', '__typename'])
|
|
4501
4448
|
}))
|
|
@@ -4530,8 +4477,8 @@ const convertAction = (actionName, actionPayload) => {
|
|
|
4530
4477
|
fields: customFields
|
|
4531
4478
|
} : null;
|
|
4532
4479
|
return {
|
|
4533
|
-
[actionName]: _objectSpread$
|
|
4534
|
-
address: _objectSpread$
|
|
4480
|
+
[actionName]: _objectSpread$1a(_objectSpread$1a({}, actionPayload), {}, {
|
|
4481
|
+
address: _objectSpread$1a(_objectSpread$1a({}, omit(actionPayload.address, ['__typename'])), {}, {
|
|
4535
4482
|
custom
|
|
4536
4483
|
})
|
|
4537
4484
|
})
|
|
@@ -4639,8 +4586,8 @@ function omitDeep(obj, fieldsToOmit) {
|
|
|
4639
4586
|
return originalOmitDeep(obj, fieldsToOmit);
|
|
4640
4587
|
}
|
|
4641
4588
|
|
|
4642
|
-
function ownKeys$
|
|
4643
|
-
function _objectSpread$
|
|
4589
|
+
function ownKeys$19(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4590
|
+
function _objectSpread$19(e) { for (var r = 1; r < arguments.length; r++) { var _context5, _context6; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context5 = ownKeys$19(Object(t), !0)).call(_context5, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context6 = ownKeys$19(Object(t))).call(_context6, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4644
4591
|
function getPriceChannelName(price) {
|
|
4645
4592
|
return price.channel?.name ?? price.channel?.key ?? null;
|
|
4646
4593
|
}
|
|
@@ -4652,11 +4599,11 @@ function getDiscountValue(price) {
|
|
|
4652
4599
|
} else if (price.value?.type === PRECISION_TYPES.highPrecision && price.discounted?.value?.type === PRECISION_TYPES.centPrecision) {
|
|
4653
4600
|
fractionedAmount = getFractionedAmount(price.value) - getFractionedAmount(price.discounted.value);
|
|
4654
4601
|
}
|
|
4655
|
-
return price.discounted ? _objectSpread$
|
|
4602
|
+
return price.discounted ? _objectSpread$19(_objectSpread$19({}, price.value), {}, {
|
|
4656
4603
|
fractionedAmount,
|
|
4657
4604
|
centAmount: price.value.centAmount - price.discounted.value.centAmount,
|
|
4658
4605
|
preciseAmount
|
|
4659
|
-
}) : _objectSpread$
|
|
4606
|
+
}) : _objectSpread$19(_objectSpread$19({}, price.value), {}, {
|
|
4660
4607
|
centAmount: 0
|
|
4661
4608
|
});
|
|
4662
4609
|
}
|
|
@@ -4687,7 +4634,7 @@ function getNetUnitPrice(_ref) {
|
|
|
4687
4634
|
}
|
|
4688
4635
|
let preciseAmount;
|
|
4689
4636
|
if (price.value?.type === PRECISION_TYPES.highPrecision) preciseAmount = price.value.preciseAmount / (1 + taxRate.amount);
|
|
4690
|
-
return _objectSpread$
|
|
4637
|
+
return _objectSpread$19(_objectSpread$19({}, price.value), {}, {
|
|
4691
4638
|
centAmount,
|
|
4692
4639
|
preciseAmount
|
|
4693
4640
|
});
|
|
@@ -4703,7 +4650,7 @@ function getNetUnitPrice(_ref) {
|
|
|
4703
4650
|
}
|
|
4704
4651
|
let preciseAmount;
|
|
4705
4652
|
if (price.value?.type === PRECISION_TYPES.highPrecision) preciseAmount = price.value.preciseAmount / (1 + lineItem.taxRate.amount);
|
|
4706
|
-
return _objectSpread$
|
|
4653
|
+
return _objectSpread$19(_objectSpread$19({}, price.value), {}, {
|
|
4707
4654
|
centAmount,
|
|
4708
4655
|
preciseAmount
|
|
4709
4656
|
});
|
|
@@ -4715,7 +4662,7 @@ function getMinimumPricesByCurrencyCode(prices) {
|
|
|
4715
4662
|
const currencyCode = price.value.currencyCode;
|
|
4716
4663
|
const fractionedAmount = getFractionedAmount(price.value);
|
|
4717
4664
|
if (currencyCode && !isNil$1(fractionedAmount)) {
|
|
4718
|
-
if (!minPrices[currencyCode] || fractionedAmount < getFractionedAmount(minPrices[currencyCode])) return _objectSpread$
|
|
4665
|
+
if (!minPrices[currencyCode] || fractionedAmount < getFractionedAmount(minPrices[currencyCode])) return _objectSpread$19(_objectSpread$19({}, minPrices), {}, {
|
|
4719
4666
|
[currencyCode]: price.value
|
|
4720
4667
|
});
|
|
4721
4668
|
}
|
|
@@ -4724,8 +4671,8 @@ function getMinimumPricesByCurrencyCode(prices) {
|
|
|
4724
4671
|
return _Object$values(minPricesByCurrency);
|
|
4725
4672
|
}
|
|
4726
4673
|
|
|
4727
|
-
function ownKeys$
|
|
4728
|
-
function _objectSpread$
|
|
4674
|
+
function ownKeys$18(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4675
|
+
function _objectSpread$18(e) { for (var r = 1; r < arguments.length; r++) { var _context5, _context6; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context5 = ownKeys$18(Object(t), !0)).call(_context5, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context6 = ownKeys$18(Object(t))).call(_context6, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4729
4676
|
const transformCustomFieldFromGraphQLResponse = resource => {
|
|
4730
4677
|
var _context, _context4;
|
|
4731
4678
|
return {
|
|
@@ -4740,14 +4687,14 @@ const transformCustomFieldFromGraphQLResponse = resource => {
|
|
|
4740
4687
|
return {
|
|
4741
4688
|
name: fieldDefinition.name,
|
|
4742
4689
|
required: fieldDefinition.required,
|
|
4743
|
-
type: fieldDefinition.type?.elementType?.name === 'LocalizedEnum' ? _objectSpread$
|
|
4744
|
-
elementType: _objectSpread$
|
|
4690
|
+
type: fieldDefinition.type?.elementType?.name === 'LocalizedEnum' ? _objectSpread$18(_objectSpread$18({}, fieldDefinition.type), {}, {
|
|
4691
|
+
elementType: _objectSpread$18(_objectSpread$18({}, fieldDefinition.type.elementType), {}, {
|
|
4745
4692
|
values: _mapInstanceProperty(_context2 = _valuesInstanceProperty(fieldDefinition.type.elementType)).call(_context2, value => ({
|
|
4746
4693
|
key: value.key,
|
|
4747
4694
|
label: transformLocalizedFieldToLocalizedString(value.labelAllLocales)
|
|
4748
4695
|
}))
|
|
4749
4696
|
})
|
|
4750
|
-
}) : fieldDefinition.type?.name === 'LocalizedEnum' ? _objectSpread$
|
|
4697
|
+
}) : fieldDefinition.type?.name === 'LocalizedEnum' ? _objectSpread$18(_objectSpread$18({}, fieldDefinition.type), {}, {
|
|
4751
4698
|
values: _mapInstanceProperty(_context3 = _valuesInstanceProperty(fieldDefinition.type)).call(_context3, value => ({
|
|
4752
4699
|
key: value.key,
|
|
4753
4700
|
label: transformLocalizedFieldToLocalizedString(value.labelAllLocales)
|
|
@@ -4758,7 +4705,7 @@ const transformCustomFieldFromGraphQLResponse = resource => {
|
|
|
4758
4705
|
})
|
|
4759
4706
|
}
|
|
4760
4707
|
},
|
|
4761
|
-
fields: _reduceInstanceProperty(_context4 = resource.custom.customFieldsRaw).call(_context4, (fields, customField) => _objectSpread$
|
|
4708
|
+
fields: _reduceInstanceProperty(_context4 = resource.custom.customFieldsRaw).call(_context4, (fields, customField) => _objectSpread$18(_objectSpread$18({}, fields), {}, {
|
|
4762
4709
|
[customField.name]: customField.value
|
|
4763
4710
|
}), {})
|
|
4764
4711
|
};
|
|
@@ -4770,7 +4717,7 @@ const convertProductSelectionFromGraphQl = productSelection => {
|
|
|
4770
4717
|
// Incase the product selection is not missing or if the current project dose not yet have access to the feature,
|
|
4771
4718
|
// in either case we return null
|
|
4772
4719
|
if (!productSelection) return null;
|
|
4773
|
-
return _objectSpread$
|
|
4720
|
+
return _objectSpread$18(_objectSpread$18({}, applyTransformedLocalizedFields(productSelection, [{
|
|
4774
4721
|
from: 'nameAllLocales',
|
|
4775
4722
|
to: 'name'
|
|
4776
4723
|
}])), {}, {
|
|
@@ -4793,8 +4740,8 @@ const transformAllToProperNounCase = text => {
|
|
|
4793
4740
|
return _mapInstanceProperty(_context = text.split(' ')).call(_context, term => transformToProperNounCase(term)).join(' ');
|
|
4794
4741
|
};
|
|
4795
4742
|
|
|
4796
|
-
function ownKeys$
|
|
4797
|
-
function _objectSpread$
|
|
4743
|
+
function ownKeys$17(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4744
|
+
function _objectSpread$17(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context3 = ownKeys$17(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context4 = ownKeys$17(Object(t))).call(_context4, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4798
4745
|
const REGEX_ISO8601 = /(\d{4}-\d{2}-\d{2}[T]\d{2}:\d{2}:\d{2}(\.\d{3}[Z]?))/;
|
|
4799
4746
|
const REGEX_TIME = /\d{2}:\d{2}/;
|
|
4800
4747
|
const REGEX_DATE = /\d{4}-\d{2}-\d{2}/;
|
|
@@ -4811,7 +4758,7 @@ function filterCustomTypeUpdateActionValues() {
|
|
|
4811
4758
|
if (updateAction.action === 'setCustomField' && _Array$isArray(updateAction.value)) {
|
|
4812
4759
|
const definition = _findInstanceProperty(fieldDefinitions).call(fieldDefinitions, field => field.name === updateAction.name);
|
|
4813
4760
|
const definitionName = definition.type.elementType.name;
|
|
4814
|
-
return _objectSpread$
|
|
4761
|
+
return _objectSpread$17(_objectSpread$17({}, updateAction), {}, {
|
|
4815
4762
|
value: filterNotDefinedValues(updateAction.value, definitionName)
|
|
4816
4763
|
});
|
|
4817
4764
|
}
|
|
@@ -5320,8 +5267,8 @@ const messages$I = defineMessages({
|
|
|
5320
5267
|
});
|
|
5321
5268
|
var messages$J = messages$I;
|
|
5322
5269
|
|
|
5323
|
-
function ownKeys$
|
|
5324
|
-
function _objectSpread$
|
|
5270
|
+
function ownKeys$16(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5271
|
+
function _objectSpread$16(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$16(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$16(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5325
5272
|
function Option$1(props) {
|
|
5326
5273
|
const _useApplicationContex = useApplicationContext(applicationContext => ({
|
|
5327
5274
|
language: applicationContext.dataLocale,
|
|
@@ -5332,7 +5279,7 @@ function Option$1(props) {
|
|
|
5332
5279
|
const _useIntl = useIntl(),
|
|
5333
5280
|
formatMessage = _useIntl.formatMessage;
|
|
5334
5281
|
const cartDiscount = props.data;
|
|
5335
|
-
return jsx(AsyncSelectInput.Option, _objectSpread$
|
|
5282
|
+
return jsx(AsyncSelectInput.Option, _objectSpread$16(_objectSpread$16({}, props), {}, {
|
|
5336
5283
|
children: jsxs("div", {
|
|
5337
5284
|
"data-testid": "cart-discount-option",
|
|
5338
5285
|
children: [jsx(Text.Detail, {
|
|
@@ -5349,8 +5296,8 @@ function Option$1(props) {
|
|
|
5349
5296
|
}));
|
|
5350
5297
|
}
|
|
5351
5298
|
|
|
5352
|
-
function ownKeys$
|
|
5353
|
-
function _objectSpread$
|
|
5299
|
+
function ownKeys$15(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5300
|
+
function _objectSpread$15(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$15(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$15(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5354
5301
|
var CartDiscountsCount$1 = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "CartDiscountsCount" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "cartDiscounts" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 425, source: { body: "query SearchCartDiscount($where: String) {\n cartDiscounts(limit: 500, where: $where) {\n total\n results {\n id\n key\n nameAllLocales {\n locale\n value\n }\n }\n }\n}\n\nquery CartDiscountsCount {\n cartDiscounts {\n total\n }\n}\n\nquery FetchCartDiscountById($cartDiscountId: String!) {\n cartDiscount(id: $cartDiscountId) {\n id\n nameAllLocales {\n locale\n value\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
5355
5302
|
const returnNullIfEmpty = value => value && value.id === '' ? null : value;
|
|
5356
5303
|
const filterOption$1 = (option, text) => {
|
|
@@ -5376,7 +5323,7 @@ function CartDiscountReferenceSearch(props) {
|
|
|
5376
5323
|
})),
|
|
5377
5324
|
language = _useApplicationContex.language,
|
|
5378
5325
|
languages = _useApplicationContex.languages;
|
|
5379
|
-
const mapItemToOption = useCallback(cartDiscount => _objectSpread$
|
|
5326
|
+
const mapItemToOption = useCallback(cartDiscount => _objectSpread$15(_objectSpread$15({}, cartDiscount), {}, {
|
|
5380
5327
|
value: cartDiscount.id,
|
|
5381
5328
|
key: cartDiscount.key,
|
|
5382
5329
|
label: formatLocalizedString(cartDiscount, {
|
|
@@ -5466,8 +5413,8 @@ const messages$G = defineMessages({
|
|
|
5466
5413
|
});
|
|
5467
5414
|
var messages$H = messages$G;
|
|
5468
5415
|
|
|
5469
|
-
function ownKeys$
|
|
5470
|
-
function _objectSpread$
|
|
5416
|
+
function ownKeys$14(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5417
|
+
function _objectSpread$14(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$14(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$14(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5471
5418
|
function Option(props) {
|
|
5472
5419
|
const _useApplicationContex = useApplicationContext(applicationContext => ({
|
|
5473
5420
|
language: applicationContext.dataLocale,
|
|
@@ -5478,7 +5425,7 @@ function Option(props) {
|
|
|
5478
5425
|
const _useIntl = useIntl(),
|
|
5479
5426
|
formatMessage = _useIntl.formatMessage;
|
|
5480
5427
|
const category = props.data;
|
|
5481
|
-
return jsx(AsyncSelectInput.Option, _objectSpread$
|
|
5428
|
+
return jsx(AsyncSelectInput.Option, _objectSpread$14(_objectSpread$14({}, props), {}, {
|
|
5482
5429
|
children: jsxs("div", {
|
|
5483
5430
|
"data-testid": "category-option",
|
|
5484
5431
|
children: [jsx(Text.Body, {
|
|
@@ -5507,8 +5454,8 @@ function Option(props) {
|
|
|
5507
5454
|
}));
|
|
5508
5455
|
}
|
|
5509
5456
|
|
|
5510
|
-
function ownKeys$
|
|
5511
|
-
function _objectSpread$
|
|
5457
|
+
function ownKeys$13(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5458
|
+
function _objectSpread$13(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$13(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$13(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5512
5459
|
const filterOption = () => true;
|
|
5513
5460
|
function CategoryReferenceSearch(props) {
|
|
5514
5461
|
const _useIntl = useIntl(),
|
|
@@ -5520,7 +5467,7 @@ function CategoryReferenceSearch(props) {
|
|
|
5520
5467
|
})),
|
|
5521
5468
|
language = _useApplicationContex.language,
|
|
5522
5469
|
languages = _useApplicationContex.languages;
|
|
5523
|
-
const mapItemToOption = useCallback(category => _objectSpread$
|
|
5470
|
+
const mapItemToOption = useCallback(category => _objectSpread$13(_objectSpread$13({}, category), {}, {
|
|
5524
5471
|
value: category.id,
|
|
5525
5472
|
label: formatLocalizedString(category, {
|
|
5526
5473
|
key: 'name',
|
|
@@ -5538,7 +5485,7 @@ function CategoryReferenceSearch(props) {
|
|
|
5538
5485
|
}), [apolloClient]);
|
|
5539
5486
|
return jsx(ReferenceSearch, {
|
|
5540
5487
|
id: props.id,
|
|
5541
|
-
components: _objectSpread$
|
|
5488
|
+
components: _objectSpread$13({
|
|
5542
5489
|
Option
|
|
5543
5490
|
}, props.components),
|
|
5544
5491
|
isClearable: props.isClearable,
|
|
@@ -5588,8 +5535,8 @@ var messages$F = defineMessages({
|
|
|
5588
5535
|
});
|
|
5589
5536
|
|
|
5590
5537
|
const _excluded$d = ["children", "allowMultiple", "acceptTypes"];
|
|
5591
|
-
function ownKeys$
|
|
5592
|
-
function _objectSpread$
|
|
5538
|
+
function ownKeys$12(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5539
|
+
function _objectSpread$12(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$12(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$12(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5593
5540
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$e() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
5594
5541
|
var _ref$d = process.env.NODE_ENV === "production" ? {
|
|
5595
5542
|
name: "1wq0eh7",
|
|
@@ -5601,7 +5548,7 @@ var _ref$d = process.env.NODE_ENV === "production" ? {
|
|
|
5601
5548
|
};
|
|
5602
5549
|
const FileInput = _ref2 => {
|
|
5603
5550
|
let _ref2$children = _ref2.children,
|
|
5604
|
-
children = _ref2$children === void 0 ? jsx(FormattedMessage, _objectSpread$
|
|
5551
|
+
children = _ref2$children === void 0 ? jsx(FormattedMessage, _objectSpread$12({}, messages$F.chooseFile)) : _ref2$children,
|
|
5605
5552
|
_ref2$allowMultiple = _ref2.allowMultiple,
|
|
5606
5553
|
allowMultiple = _ref2$allowMultiple === void 0 ? false : _ref2$allowMultiple,
|
|
5607
5554
|
_ref2$acceptTypes = _ref2.acceptTypes,
|
|
@@ -5637,15 +5584,15 @@ const baseButtonStyles = process.env.NODE_ENV === "production" ? {
|
|
|
5637
5584
|
};
|
|
5638
5585
|
|
|
5639
5586
|
const _excluded$c = ["animationOrientation", "children", "onClick"];
|
|
5640
|
-
function ownKeys$
|
|
5641
|
-
function _objectSpread$
|
|
5587
|
+
function ownKeys$11(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5588
|
+
function _objectSpread$11(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$11(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$11(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5642
5589
|
const ICON_COLOR$1 = '#6359ff';
|
|
5643
5590
|
const PaginationIconButton = _ref => {
|
|
5644
5591
|
let animationOrientation = _ref.animationOrientation,
|
|
5645
5592
|
children = _ref.children,
|
|
5646
5593
|
onClick = _ref.onClick,
|
|
5647
5594
|
rest = _objectWithoutProperties(_ref, _excluded$c);
|
|
5648
|
-
return jsx("button", _objectSpread$
|
|
5595
|
+
return jsx("button", _objectSpread$11(_objectSpread$11({
|
|
5649
5596
|
css: [baseButtonStyles, /*#__PURE__*/css("svg{fill:", ICON_COLOR$1, ";}transition:transform ", designTokens.transitionStandard, ";:hover{transform:translateX(\n ", animationOrientation === 'left' ? `calc(0px - var(--spacing-10))` : `var(--spacing-10)`, "\n );}padding-left:1px;padding-right:1px;:focus{border:1px solid ", ICON_COLOR$1, ";border-radius:", designTokens.borderRadius1, ";padding-left:0px;padding-right:0px;}" + (process.env.NODE_ENV === "production" ? "" : ";label:PaginationIconButton;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBhZ2luYXRpb24taWNvbi1idXR0b24udHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXFCUyIsImZpbGUiOiJwYWdpbmF0aW9uLWljb24tYnV0dG9uLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IHR5cGUgUmVhY3RFbGVtZW50IH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgZGVzaWduVG9rZW5zIH0gZnJvbSAnQGNvbW1lcmNldG9vbHMtZnJvbnRlbmQvdWkta2l0JztcbmltcG9ydCB7IGJhc2VCdXR0b25TdHlsZXMgfSBmcm9tICcuL3NoYXJlZC9zdHlsZXMnO1xuXG4vLyBUT0RPOiBJbnRlZ3JhdGUgZGVzaWduIHRva2VuIHdoZW4gcmVkZXNpZ24gaXMgY29tcGxldGVcbmNvbnN0IElDT05fQ09MT1IgPSAnIzYzNTlmZic7XG5cbmNvbnN0IFBhZ2luYXRpb25JY29uQnV0dG9uID0gKHtcbiAgYW5pbWF0aW9uT3JpZW50YXRpb24sXG4gIGNoaWxkcmVuLFxuICBvbkNsaWNrLFxuICAuLi5yZXN0XG59OiB7XG4gIGFuaW1hdGlvbk9yaWVudGF0aW9uOiAnbGVmdCcgfCAncmlnaHQnO1xuICBjaGlsZHJlbjogUmVhY3RFbGVtZW50O1xuICBvbkNsaWNrOiAoKSA9PiB2b2lkO1xufSkgPT4gKFxuICA8YnV0dG9uXG4gICAgY3NzPXtbXG4gICAgICBiYXNlQnV0dG9uU3R5bGVzLFxuICAgICAgY3NzYFxuICAgICAgICBzdmcge1xuICAgICAgICAgIGZpbGw6ICR7SUNPTl9DT0xPUn07XG4gICAgICAgIH1cbiAgICAgICAgdHJhbnNpdGlvbjogdHJhbnNmb3JtICR7ZGVzaWduVG9rZW5zLnRyYW5zaXRpb25TdGFuZGFyZH07XG4gICAgICAgIDpob3ZlciB7XG4gICAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVYKFxuICAgICAgICAgICAgJHthbmltYXRpb25PcmllbnRhdGlvbiA9PT0gJ2xlZnQnXG4gICAgICAgICAgICAgID8gYGNhbGMoMHB4IC0gdmFyKC0tc3BhY2luZy0xMCkpYFxuICAgICAgICAgICAgICA6IGB2YXIoLS1zcGFjaW5nLTEwKWB9XG4gICAgICAgICAgKTtcbiAgICAgICAgfVxuICAgICAgICAvLyBDb21wZW5zYXRlIGZvciBmb2N1cyBib3JkZXJcbiAgICAgICAgcGFkZGluZy1sZWZ0OiAxcHg7XG4gICAgICAgIHBhZGRpbmctcmlnaHQ6IDFweDtcbiAgICAgICAgOmZvY3VzIHtcbiAgICAgICAgICBib3JkZXI6IDFweCBzb2xpZCAke0lDT05fQ09MT1J9O1xuICAgICAgICAgIGJvcmRlci1yYWRpdXM6ICR7ZGVzaWduVG9rZW5zLmJvcmRlclJhZGl1czF9O1xuICAgICAgICAgIHBhZGRpbmctbGVmdDogMHB4O1xuICAgICAgICAgIHBhZGRpbmctcmlnaHQ6IDBweDtcbiAgICAgICAgfVxuICAgICAgYCxcbiAgICBdfVxuICAgIG9uQ2xpY2s9e29uQ2xpY2t9XG4gICAgey4uLnJlc3R9XG4gID5cbiAgICB7Y2hpbGRyZW59XG4gIDwvYnV0dG9uPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgUGFnaW5hdGlvbkljb25CdXR0b247XG4iXX0= */"), process.env.NODE_ENV === "production" ? "" : ";label:PaginationIconButton;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBhZ2luYXRpb24taWNvbi1idXR0b24udHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1CSSIsImZpbGUiOiJwYWdpbmF0aW9uLWljb24tYnV0dG9uLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IHR5cGUgUmVhY3RFbGVtZW50IH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgZGVzaWduVG9rZW5zIH0gZnJvbSAnQGNvbW1lcmNldG9vbHMtZnJvbnRlbmQvdWkta2l0JztcbmltcG9ydCB7IGJhc2VCdXR0b25TdHlsZXMgfSBmcm9tICcuL3NoYXJlZC9zdHlsZXMnO1xuXG4vLyBUT0RPOiBJbnRlZ3JhdGUgZGVzaWduIHRva2VuIHdoZW4gcmVkZXNpZ24gaXMgY29tcGxldGVcbmNvbnN0IElDT05fQ09MT1IgPSAnIzYzNTlmZic7XG5cbmNvbnN0IFBhZ2luYXRpb25JY29uQnV0dG9uID0gKHtcbiAgYW5pbWF0aW9uT3JpZW50YXRpb24sXG4gIGNoaWxkcmVuLFxuICBvbkNsaWNrLFxuICAuLi5yZXN0XG59OiB7XG4gIGFuaW1hdGlvbk9yaWVudGF0aW9uOiAnbGVmdCcgfCAncmlnaHQnO1xuICBjaGlsZHJlbjogUmVhY3RFbGVtZW50O1xuICBvbkNsaWNrOiAoKSA9PiB2b2lkO1xufSkgPT4gKFxuICA8YnV0dG9uXG4gICAgY3NzPXtbXG4gICAgICBiYXNlQnV0dG9uU3R5bGVzLFxuICAgICAgY3NzYFxuICAgICAgICBzdmcge1xuICAgICAgICAgIGZpbGw6ICR7SUNPTl9DT0xPUn07XG4gICAgICAgIH1cbiAgICAgICAgdHJhbnNpdGlvbjogdHJhbnNmb3JtICR7ZGVzaWduVG9rZW5zLnRyYW5zaXRpb25TdGFuZGFyZH07XG4gICAgICAgIDpob3ZlciB7XG4gICAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVYKFxuICAgICAgICAgICAgJHthbmltYXRpb25PcmllbnRhdGlvbiA9PT0gJ2xlZnQnXG4gICAgICAgICAgICAgID8gYGNhbGMoMHB4IC0gdmFyKC0tc3BhY2luZy0xMCkpYFxuICAgICAgICAgICAgICA6IGB2YXIoLS1zcGFjaW5nLTEwKWB9XG4gICAgICAgICAgKTtcbiAgICAgICAgfVxuICAgICAgICAvLyBDb21wZW5zYXRlIGZvciBmb2N1cyBib3JkZXJcbiAgICAgICAgcGFkZGluZy1sZWZ0OiAxcHg7XG4gICAgICAgIHBhZGRpbmctcmlnaHQ6IDFweDtcbiAgICAgICAgOmZvY3VzIHtcbiAgICAgICAgICBib3JkZXI6IDFweCBzb2xpZCAke0lDT05fQ09MT1J9O1xuICAgICAgICAgIGJvcmRlci1yYWRpdXM6ICR7ZGVzaWduVG9rZW5zLmJvcmRlclJhZGl1czF9O1xuICAgICAgICAgIHBhZGRpbmctbGVmdDogMHB4O1xuICAgICAgICAgIHBhZGRpbmctcmlnaHQ6IDBweDtcbiAgICAgICAgfVxuICAgICAgYCxcbiAgICBdfVxuICAgIG9uQ2xpY2s9e29uQ2xpY2t9XG4gICAgey4uLnJlc3R9XG4gID5cbiAgICB7Y2hpbGRyZW59XG4gIDwvYnV0dG9uPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgUGFnaW5hdGlvbkljb25CdXR0b247XG4iXX0= */"],
|
|
5650
5597
|
onClick: onClick
|
|
5651
5598
|
}, rest), {}, {
|
|
@@ -5655,8 +5602,8 @@ const PaginationIconButton = _ref => {
|
|
|
5655
5602
|
var PaginationIconButton$1 = PaginationIconButton;
|
|
5656
5603
|
|
|
5657
5604
|
const _excluded$b = ["isFilled", "onClick"];
|
|
5658
|
-
function ownKeys
|
|
5659
|
-
function _objectSpread
|
|
5605
|
+
function ownKeys$10(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5606
|
+
function _objectSpread$10(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$10(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$10(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5660
5607
|
const ICON_HEIGHT = '10px';
|
|
5661
5608
|
const ICON_WIDTH = ICON_HEIGHT;
|
|
5662
5609
|
// TODO: Integrate design tokens when redesign is complete
|
|
@@ -5667,7 +5614,7 @@ const PaginationSelectionButton = _ref => {
|
|
|
5667
5614
|
isFilled = _ref$isFilled === void 0 ? false : _ref$isFilled,
|
|
5668
5615
|
onClick = _ref.onClick,
|
|
5669
5616
|
rest = _objectWithoutProperties(_ref, _excluded$b);
|
|
5670
|
-
return jsx("button", _objectSpread
|
|
5617
|
+
return jsx("button", _objectSpread$10({
|
|
5671
5618
|
css: [baseButtonStyles, /*#__PURE__*/css("height:", ICON_HEIGHT, ";width:", ICON_WIDTH, ";border-radius:", designTokens.borderRadius6, ";border:", isFilled ? 'none' : `${designTokens.borderWidth1} solid ${designTokens.colorNeutral}`, ";background:", isFilled ? ICON_COLOR : 'none', ";transition:", designTokens.transitionStandard, ";:hover{background:", isFilled ? undefined : ICON_HOVER_COLOR, ";}:focus{border:", designTokens.borderWidth1, " solid ", ICON_COLOR, ";}" + (process.env.NODE_ENV === "production" ? "" : ";label:PaginationSelectionButton;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBhZ2luYXRpb24tc2VsZWN0aW9uLWJ1dHRvbi50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBcUJTIiwiZmlsZSI6InBhZ2luYXRpb24tc2VsZWN0aW9uLWJ1dHRvbi50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyBkZXNpZ25Ub2tlbnMgfSBmcm9tICdAY29tbWVyY2V0b29scy1mcm9udGVuZC91aS1raXQnO1xuaW1wb3J0IHsgYmFzZUJ1dHRvblN0eWxlcyB9IGZyb20gJy4vc2hhcmVkL3N0eWxlcyc7XG5cbmNvbnN0IElDT05fSEVJR0hUID0gJzEwcHgnO1xuY29uc3QgSUNPTl9XSURUSCA9IElDT05fSEVJR0hUO1xuLy8gVE9ETzogSW50ZWdyYXRlIGRlc2lnbiB0b2tlbnMgd2hlbiByZWRlc2lnbiBpcyBjb21wbGV0ZVxuY29uc3QgSUNPTl9DT0xPUiA9ICcjNjM1OUZGJztcbmNvbnN0IElDT05fSE9WRVJfQ09MT1IgPSAnI0IxQUNGRic7XG5cbmNvbnN0IFBhZ2luYXRpb25TZWxlY3Rpb25CdXR0b24gPSAoe1xuICBpc0ZpbGxlZCA9IGZhbHNlLFxuICBvbkNsaWNrLFxuICAuLi5yZXN0XG59OiB7XG4gIGlzRmlsbGVkPzogYm9vbGVhbjtcbiAgb25DbGljazogKCkgPT4gdm9pZDtcbn0pID0+IChcbiAgPGJ1dHRvblxuICAgIGNzcz17W1xuICAgICAgYmFzZUJ1dHRvblN0eWxlcyxcbiAgICAgIGNzc2BcbiAgICAgICAgaGVpZ2h0OiAke0lDT05fSEVJR0hUfTtcbiAgICAgICAgd2lkdGg6ICR7SUNPTl9XSURUSH07XG4gICAgICAgIGJvcmRlci1yYWRpdXM6ICR7ZGVzaWduVG9rZW5zLmJvcmRlclJhZGl1czZ9O1xuICAgICAgICBib3JkZXI6ICR7aXNGaWxsZWRcbiAgICAgICAgICA/ICdub25lJ1xuICAgICAgICAgIDogYCR7ZGVzaWduVG9rZW5zLmJvcmRlcldpZHRoMX0gc29saWQgJHtkZXNpZ25Ub2tlbnMuY29sb3JOZXV0cmFsfWB9O1xuICAgICAgICBiYWNrZ3JvdW5kOiAke2lzRmlsbGVkID8gSUNPTl9DT0xPUiA6ICdub25lJ307XG4gICAgICAgIHRyYW5zaXRpb246ICR7ZGVzaWduVG9rZW5zLnRyYW5zaXRpb25TdGFuZGFyZH07XG4gICAgICAgIDpob3ZlciB7XG4gICAgICAgICAgYmFja2dyb3VuZDogJHtpc0ZpbGxlZCA/IHVuZGVmaW5lZCA6IElDT05fSE9WRVJfQ09MT1J9O1xuICAgICAgICB9XG4gICAgICAgIDpmb2N1cyB7XG4gICAgICAgICAgYm9yZGVyOiAke2Rlc2lnblRva2Vucy5ib3JkZXJXaWR0aDF9IHNvbGlkICR7SUNPTl9DT0xPUn07XG4gICAgICAgIH1cbiAgICAgIGAsXG4gICAgXX1cbiAgICBvbkNsaWNrPXtvbkNsaWNrfVxuICAgIHsuLi5yZXN0fVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgUGFnaW5hdGlvblNlbGVjdGlvbkJ1dHRvbjtcbiJdfQ== */"), process.env.NODE_ENV === "production" ? "" : ";label:PaginationSelectionButton;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBhZ2luYXRpb24tc2VsZWN0aW9uLWJ1dHRvbi50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBbUJJIiwiZmlsZSI6InBhZ2luYXRpb24tc2VsZWN0aW9uLWJ1dHRvbi50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyBkZXNpZ25Ub2tlbnMgfSBmcm9tICdAY29tbWVyY2V0b29scy1mcm9udGVuZC91aS1raXQnO1xuaW1wb3J0IHsgYmFzZUJ1dHRvblN0eWxlcyB9IGZyb20gJy4vc2hhcmVkL3N0eWxlcyc7XG5cbmNvbnN0IElDT05fSEVJR0hUID0gJzEwcHgnO1xuY29uc3QgSUNPTl9XSURUSCA9IElDT05fSEVJR0hUO1xuLy8gVE9ETzogSW50ZWdyYXRlIGRlc2lnbiB0b2tlbnMgd2hlbiByZWRlc2lnbiBpcyBjb21wbGV0ZVxuY29uc3QgSUNPTl9DT0xPUiA9ICcjNjM1OUZGJztcbmNvbnN0IElDT05fSE9WRVJfQ09MT1IgPSAnI0IxQUNGRic7XG5cbmNvbnN0IFBhZ2luYXRpb25TZWxlY3Rpb25CdXR0b24gPSAoe1xuICBpc0ZpbGxlZCA9IGZhbHNlLFxuICBvbkNsaWNrLFxuICAuLi5yZXN0XG59OiB7XG4gIGlzRmlsbGVkPzogYm9vbGVhbjtcbiAgb25DbGljazogKCkgPT4gdm9pZDtcbn0pID0+IChcbiAgPGJ1dHRvblxuICAgIGNzcz17W1xuICAgICAgYmFzZUJ1dHRvblN0eWxlcyxcbiAgICAgIGNzc2BcbiAgICAgICAgaGVpZ2h0OiAke0lDT05fSEVJR0hUfTtcbiAgICAgICAgd2lkdGg6ICR7SUNPTl9XSURUSH07XG4gICAgICAgIGJvcmRlci1yYWRpdXM6ICR7ZGVzaWduVG9rZW5zLmJvcmRlclJhZGl1czZ9O1xuICAgICAgICBib3JkZXI6ICR7aXNGaWxsZWRcbiAgICAgICAgICA/ICdub25lJ1xuICAgICAgICAgIDogYCR7ZGVzaWduVG9rZW5zLmJvcmRlcldpZHRoMX0gc29saWQgJHtkZXNpZ25Ub2tlbnMuY29sb3JOZXV0cmFsfWB9O1xuICAgICAgICBiYWNrZ3JvdW5kOiAke2lzRmlsbGVkID8gSUNPTl9DT0xPUiA6ICdub25lJ307XG4gICAgICAgIHRyYW5zaXRpb246ICR7ZGVzaWduVG9rZW5zLnRyYW5zaXRpb25TdGFuZGFyZH07XG4gICAgICAgIDpob3ZlciB7XG4gICAgICAgICAgYmFja2dyb3VuZDogJHtpc0ZpbGxlZCA/IHVuZGVmaW5lZCA6IElDT05fSE9WRVJfQ09MT1J9O1xuICAgICAgICB9XG4gICAgICAgIDpmb2N1cyB7XG4gICAgICAgICAgYm9yZGVyOiAke2Rlc2lnblRva2Vucy5ib3JkZXJXaWR0aDF9IHNvbGlkICR7SUNPTl9DT0xPUn07XG4gICAgICAgIH1cbiAgICAgIGAsXG4gICAgXX1cbiAgICBvbkNsaWNrPXtvbkNsaWNrfVxuICAgIHsuLi5yZXN0fVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgUGFnaW5hdGlvblNlbGVjdGlvbkJ1dHRvbjtcbiJdfQ== */"],
|
|
5672
5619
|
onClick: onClick
|
|
5673
5620
|
}, rest));
|
|
@@ -5891,8 +5838,8 @@ var messages$E = defineMessages({
|
|
|
5891
5838
|
}
|
|
5892
5839
|
});
|
|
5893
5840
|
|
|
5894
|
-
function ownKeys
|
|
5895
|
-
function _objectSpread
|
|
5841
|
+
function ownKeys$$(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5842
|
+
function _objectSpread$$(e) { for (var r = 1; r < arguments.length; r++) { var _context8, _context9; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context8 = ownKeys$$(Object(t), !0)).call(_context8, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context9 = ownKeys$$(Object(t))).call(_context9, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5896
5843
|
const emptyCountryOption = intl => [{
|
|
5897
5844
|
label: intl.formatMessage(messages$E.countriesAsyncSelectDropdownTypeAheadPrompt),
|
|
5898
5845
|
value: undefined,
|
|
@@ -5919,7 +5866,7 @@ function CountriesAsyncSelectDropdown(props) {
|
|
|
5919
5866
|
const onOptionChange = event => {
|
|
5920
5867
|
const countries = event.target.value;
|
|
5921
5868
|
props.onChange({
|
|
5922
|
-
target: _objectSpread
|
|
5869
|
+
target: _objectSpread$$(_objectSpread$$({}, event.target), {}, {
|
|
5923
5870
|
value: _mapInstanceProperty(countries).call(countries, country => country?.value ?? country)
|
|
5924
5871
|
})
|
|
5925
5872
|
});
|
|
@@ -5970,8 +5917,8 @@ function CountriesBasicSelectDropdown(props) {
|
|
|
5970
5917
|
const COUNTRIES_ASYNC_LOADING_LIMIT = 60;
|
|
5971
5918
|
|
|
5972
5919
|
const _excluded$a = ["countriesAsyncLoadingLimit", "isMulti", "isRequired", "hasWarning"];
|
|
5973
|
-
function ownKeys$
|
|
5974
|
-
function _objectSpread$
|
|
5920
|
+
function ownKeys$_(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5921
|
+
function _objectSpread$_(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$_(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$_(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5975
5922
|
function CountriesPicker(_ref) {
|
|
5976
5923
|
let _ref$countriesAsyncLo = _ref.countriesAsyncLoadingLimit,
|
|
5977
5924
|
countriesAsyncLoadingLimit = _ref$countriesAsyncLo === void 0 ? COUNTRIES_ASYNC_LOADING_LIMIT : _ref$countriesAsyncLo,
|
|
@@ -5984,7 +5931,7 @@ function CountriesPicker(_ref) {
|
|
|
5984
5931
|
props = _objectWithoutProperties(_ref, _excluded$a);
|
|
5985
5932
|
const CustomCountriesPicker = props.options?.length <= countriesAsyncLoadingLimit ? CountriesBasicSelectDropdown : CountriesAsyncSelectDropdown;
|
|
5986
5933
|
return jsx(Spacings.Stack, {
|
|
5987
|
-
children: jsx(CustomCountriesPicker, _objectSpread$
|
|
5934
|
+
children: jsx(CustomCountriesPicker, _objectSpread$_({
|
|
5988
5935
|
countriesAsyncLoadingLimit: countriesAsyncLoadingLimit,
|
|
5989
5936
|
isMulti: isMulti,
|
|
5990
5937
|
isRequired: isRequired,
|
|
@@ -6193,9 +6140,9 @@ const REFERENCED_TYPES = {
|
|
|
6193
6140
|
const ATTRIBUTE_TYPES = ['text', 'ltext', 'number', 'enum', 'lenum', 'money', 'boolean', 'date', 'datetime', 'reference', 'time'];
|
|
6194
6141
|
const SET_ATTRIBUTE_TYPES = ['text', 'ltext', 'number', 'enum', 'lenum', 'money', 'boolean', 'date', 'time', 'datetime', 'reference'];
|
|
6195
6142
|
|
|
6196
|
-
function ownKeys$
|
|
6197
|
-
function _objectSpread$
|
|
6198
|
-
const mergeSetItemsErrors = errors => _reduceInstanceProperty(errors).call(errors, (result, itemErrors) => _objectSpread$
|
|
6143
|
+
function ownKeys$Z(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6144
|
+
function _objectSpread$Z(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$Z(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$Z(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6145
|
+
const mergeSetItemsErrors = errors => _reduceInstanceProperty(errors).call(errors, (result, itemErrors) => _objectSpread$Z(_objectSpread$Z({}, result), itemErrors), {});
|
|
6199
6146
|
|
|
6200
6147
|
// TODO(pa3): worth splitting in two components: one of set errors and one for
|
|
6201
6148
|
// all the other types of fields. So that there will be no isArray check.
|
|
@@ -6353,8 +6300,8 @@ const SetButtons = props => {
|
|
|
6353
6300
|
SetButtons.displayName = 'SetButtons';
|
|
6354
6301
|
var SetButtons$1 = SetButtons;
|
|
6355
6302
|
|
|
6356
|
-
function ownKeys$
|
|
6357
|
-
function _objectSpread$
|
|
6303
|
+
function ownKeys$Y(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6304
|
+
function _objectSpread$Y(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$Y(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$Y(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6358
6305
|
const getDuplicateErrors = setValues => {
|
|
6359
6306
|
/* eslint-disable no-plusplus */
|
|
6360
6307
|
const result = [];
|
|
@@ -6407,7 +6354,7 @@ function CustomInputSet(props) {
|
|
|
6407
6354
|
touched = _useFormikContext.touched,
|
|
6408
6355
|
isSubmitting = _useFormikContext.isSubmitting,
|
|
6409
6356
|
dirty = _useFormikContext.dirty;
|
|
6410
|
-
const itemFieldDefinition = _objectSpread$
|
|
6357
|
+
const itemFieldDefinition = _objectSpread$Y(_objectSpread$Y({}, props.fieldDefinition), {}, {
|
|
6411
6358
|
type: props.fieldDefinition.type.elementType
|
|
6412
6359
|
});
|
|
6413
6360
|
const value = useMemo(() => props.value || [undefined], [props.value]);
|
|
@@ -6663,8 +6610,8 @@ function CustomLocalizedEnumInput(props) {
|
|
|
6663
6610
|
}
|
|
6664
6611
|
CustomLocalizedEnumInput.displayName = 'CustomLocalizedEnumInput';
|
|
6665
6612
|
|
|
6666
|
-
function ownKeys$
|
|
6667
|
-
function _objectSpread$
|
|
6613
|
+
function ownKeys$X(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6614
|
+
function _objectSpread$X(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$X(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$X(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6668
6615
|
const getSubfieldLanguage = subfieldName => {
|
|
6669
6616
|
const lastDotIndex = _lastIndexOfInstanceProperty(subfieldName).call(subfieldName, '.');
|
|
6670
6617
|
return subfieldName.substring(lastDotIndex + 1);
|
|
@@ -6687,7 +6634,7 @@ function CustomLocalizedTextInput(props) {
|
|
|
6687
6634
|
// as a whole.
|
|
6688
6635
|
|
|
6689
6636
|
const fieldLanguage = getSubfieldLanguage(subfieldName);
|
|
6690
|
-
const newValue = _objectSpread$
|
|
6637
|
+
const newValue = _objectSpread$X(_objectSpread$X({}, props.value), {}, {
|
|
6691
6638
|
[fieldLanguage]: rawValue
|
|
6692
6639
|
});
|
|
6693
6640
|
const nullifiedIfNeeded = LocalizedTextInput.isEmpty(newValue) ? undefined : newValue;
|
|
@@ -6715,19 +6662,19 @@ function CustomLocalizedTextInput(props) {
|
|
|
6715
6662
|
}
|
|
6716
6663
|
CustomLocalizedTextInput.displayName = 'CustomLocalizedTextInput';
|
|
6717
6664
|
|
|
6718
|
-
function ownKeys$
|
|
6719
|
-
function _objectSpread$
|
|
6665
|
+
function ownKeys$W(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6666
|
+
function _objectSpread$W(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$W(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$W(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6720
6667
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$a() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
6721
6668
|
const fixCurrencyCode = (value, currencies) => {
|
|
6722
6669
|
if (value.currencyCode) return value;
|
|
6723
6670
|
const firstCurrency = currencies[0];
|
|
6724
|
-
return _objectSpread$
|
|
6671
|
+
return _objectSpread$W(_objectSpread$W({}, value), {}, {
|
|
6725
6672
|
currencyCode: firstCurrency
|
|
6726
6673
|
});
|
|
6727
6674
|
};
|
|
6728
6675
|
const fixAmount = value => {
|
|
6729
6676
|
if (!value.amount) {
|
|
6730
|
-
return _objectSpread$
|
|
6677
|
+
return _objectSpread$W(_objectSpread$W({}, value), {}, {
|
|
6731
6678
|
amount: '0'
|
|
6732
6679
|
});
|
|
6733
6680
|
}
|
|
@@ -6777,7 +6724,7 @@ function CustomMoneyInput(props) {
|
|
|
6777
6724
|
}
|
|
6778
6725
|
const handleChange = makeChangeHandler((rawValue, subfieldName) => {
|
|
6779
6726
|
const isAmount = _endsWithInstanceProperty(subfieldName).call(subfieldName, 'amount');
|
|
6780
|
-
const newValue = _objectSpread$
|
|
6727
|
+
const newValue = _objectSpread$W({}, internalValue.current);
|
|
6781
6728
|
if (isAmount) newValue.amount = rawValue;else newValue.currencyCode = rawValue;
|
|
6782
6729
|
const fixedValue = fixEnteredValue(newValue, internalValue.current, currencies);
|
|
6783
6730
|
internalValue.current = fixedValue;
|
|
@@ -6814,23 +6761,23 @@ function CustomMoneyInput(props) {
|
|
|
6814
6761
|
}
|
|
6815
6762
|
CustomMoneyInput.displayName = 'CustomMoneyInput';
|
|
6816
6763
|
|
|
6817
|
-
function ownKeys$
|
|
6818
|
-
function _objectSpread$
|
|
6764
|
+
function ownKeys$V(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6765
|
+
function _objectSpread$V(e) { for (var r = 1; r < arguments.length; r++) { var _context8, _context9; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context8 = ownKeys$V(Object(t), !0)).call(_context8, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context9 = ownKeys$V(Object(t))).call(_context9, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6819
6766
|
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 } } } };
|
|
6820
6767
|
const mapAttributeDefinition = definition => {
|
|
6821
6768
|
var _context, _context2, _context3, _context4;
|
|
6822
|
-
return _objectSpread$
|
|
6769
|
+
return _objectSpread$V(_objectSpread$V({}, definition), {}, {
|
|
6823
6770
|
required: definition.isRequired,
|
|
6824
6771
|
inputTip: transformLocalizedFieldToLocalizedString(definition.inputTipAllLocales),
|
|
6825
6772
|
label: transformLocalizedFieldToLocalizedString(definition.labelAllLocales),
|
|
6826
|
-
type: _includesInstanceProperty(_context = ['enum', 'lenum']).call(_context, definition.type?.elementType?.name) ? _objectSpread$
|
|
6827
|
-
elementType: _objectSpread$
|
|
6773
|
+
type: _includesInstanceProperty(_context = ['enum', 'lenum']).call(_context, definition.type?.elementType?.name) ? _objectSpread$V(_objectSpread$V({}, definition.type), {}, {
|
|
6774
|
+
elementType: _objectSpread$V(_objectSpread$V({}, definition.type.elementType), {}, {
|
|
6828
6775
|
values: _mapInstanceProperty(_context2 = _valuesInstanceProperty(definition.type.elementType).results).call(_context2, value => ({
|
|
6829
6776
|
key: value.key,
|
|
6830
6777
|
label: value.label || transformLocalizedFieldToLocalizedString(value.labelAllLocales)
|
|
6831
6778
|
}))
|
|
6832
6779
|
})
|
|
6833
|
-
}) : _includesInstanceProperty(_context3 = ['enum', 'lenum']).call(_context3, definition.type?.name) ? _objectSpread$
|
|
6780
|
+
}) : _includesInstanceProperty(_context3 = ['enum', 'lenum']).call(_context3, definition.type?.name) ? _objectSpread$V(_objectSpread$V({}, definition.type), {}, {
|
|
6834
6781
|
values: _mapInstanceProperty(_context4 = _valuesInstanceProperty(definition.type).results).call(_context4, value => ({
|
|
6835
6782
|
key: value.key,
|
|
6836
6783
|
label: value.label || transformLocalizedFieldToLocalizedString(value.labelAllLocales)
|
|
@@ -6967,8 +6914,8 @@ var messages$A = defineMessages({
|
|
|
6967
6914
|
}
|
|
6968
6915
|
});
|
|
6969
6916
|
|
|
6970
|
-
function ownKeys$
|
|
6971
|
-
function _objectSpread$
|
|
6917
|
+
function ownKeys$U(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6918
|
+
function _objectSpread$U(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$U(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$U(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6972
6919
|
const EditButton = props => {
|
|
6973
6920
|
const _useIntl = useIntl(),
|
|
6974
6921
|
formatMessage = _useIntl.formatMessage;
|
|
@@ -7116,13 +7063,13 @@ const CustomNestedInput = /*#__PURE__*/memo(props => {
|
|
|
7116
7063
|
const valuesAsMap = nameValuePairsToMap(value);
|
|
7117
7064
|
const initialValues = omitUnknownValues(valuesAsMap, attributeDefinitionsAsMap);
|
|
7118
7065
|
const openNestedAttributesForm = () => {
|
|
7119
|
-
if (nestingLevel === 0) parentFormik.setStatus(_objectSpread$
|
|
7066
|
+
if (nestingLevel === 0) parentFormik.setStatus(_objectSpread$U(_objectSpread$U({}, parentFormik.status), {}, {
|
|
7120
7067
|
hideSaveToolbar: true
|
|
7121
7068
|
}));
|
|
7122
7069
|
attributesForm.openModal();
|
|
7123
7070
|
};
|
|
7124
7071
|
const closeNestedAttributesForm = () => {
|
|
7125
|
-
if (nestingLevel === 0) parentFormik.setStatus(_objectSpread$
|
|
7072
|
+
if (nestingLevel === 0) parentFormik.setStatus(_objectSpread$U(_objectSpread$U({}, parentFormik.status), {}, {
|
|
7126
7073
|
hideSaveToolbar: false
|
|
7127
7074
|
}));
|
|
7128
7075
|
attributesForm.closeModal();
|
|
@@ -7661,8 +7608,8 @@ var messages$y = defineMessages({
|
|
|
7661
7608
|
}
|
|
7662
7609
|
});
|
|
7663
7610
|
|
|
7664
|
-
function ownKeys$
|
|
7665
|
-
function _objectSpread$
|
|
7611
|
+
function ownKeys$T(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7612
|
+
function _objectSpread$T(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$T(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$T(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7666
7613
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$9() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
7667
7614
|
var CartDiscountsCount = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "CartDiscountsCount" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "cartDiscounts" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 61, source: { body: "query CartDiscountsCount {\n cartDiscounts {\n total\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
7668
7615
|
const CustomFieldsLabelHint = _ref2 => {
|
|
@@ -7692,7 +7639,7 @@ const CustomFieldsLabelHint = _ref2 => {
|
|
|
7692
7639
|
children: [jsx(WarningIcon, {
|
|
7693
7640
|
size: "medium",
|
|
7694
7641
|
color: "warning"
|
|
7695
|
-
}), jsx(FormattedMessage, _objectSpread$
|
|
7642
|
+
}), jsx(FormattedMessage, _objectSpread$T({}, messages$y.cartDiscountMoreThan500))]
|
|
7696
7643
|
});
|
|
7697
7644
|
}
|
|
7698
7645
|
return formatLocalizedString(fieldDefinition, {
|
|
@@ -7817,10 +7764,10 @@ var messages$x = defineMessages({
|
|
|
7817
7764
|
}
|
|
7818
7765
|
});
|
|
7819
7766
|
|
|
7820
|
-
function ownKeys$
|
|
7821
|
-
function _objectSpread$
|
|
7767
|
+
function ownKeys$S(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7768
|
+
function _objectSpread$S(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$S(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$S(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7822
7769
|
function ProductTypeReference(props) {
|
|
7823
|
-
const productTypeMessage = _objectSpread$
|
|
7770
|
+
const productTypeMessage = _objectSpread$S(_objectSpread$S({}, messages$x.referencedProductType), {}, {
|
|
7824
7771
|
values: {
|
|
7825
7772
|
productTypeName: props.productType.name
|
|
7826
7773
|
}
|
|
@@ -7869,10 +7816,10 @@ function CustomNestedFieldInput(props) {
|
|
|
7869
7816
|
}
|
|
7870
7817
|
CustomNestedFieldInput.displayName = 'CustomNestedFieldInput';
|
|
7871
7818
|
|
|
7872
|
-
function ownKeys$
|
|
7873
|
-
function _objectSpread$
|
|
7819
|
+
function ownKeys$R(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7820
|
+
function _objectSpread$R(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$R(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$R(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7874
7821
|
function DragHandle(props) {
|
|
7875
|
-
return jsx("div", _objectSpread$
|
|
7822
|
+
return jsx("div", _objectSpread$R(_objectSpread$R({}, props), {}, {
|
|
7876
7823
|
children: jsx(IconButton, {
|
|
7877
7824
|
icon: jsx(DragIcon, {}),
|
|
7878
7825
|
size: "medium",
|
|
@@ -7882,8 +7829,8 @@ function DragHandle(props) {
|
|
|
7882
7829
|
}
|
|
7883
7830
|
DragHandle.displayName = 'DragHandle';
|
|
7884
7831
|
|
|
7885
|
-
function ownKeys$
|
|
7886
|
-
function _objectSpread$
|
|
7832
|
+
function ownKeys$Q(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7833
|
+
function _objectSpread$Q(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$Q(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$Q(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7887
7834
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$8() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
7888
7835
|
var _ref$8 = process.env.NODE_ENV === "production" ? {
|
|
7889
7836
|
name: "1onfs6j",
|
|
@@ -7918,7 +7865,7 @@ const DraggableWrapper = _ref2 => {
|
|
|
7918
7865
|
draggableId: draggableId,
|
|
7919
7866
|
index: index,
|
|
7920
7867
|
children: (provided, snapshot) => {
|
|
7921
|
-
const child = jsx("div", _objectSpread$
|
|
7868
|
+
const child = jsx("div", _objectSpread$Q(_objectSpread$Q({
|
|
7922
7869
|
ref: provided.innerRef
|
|
7923
7870
|
}, provided.draggableProps), {}, {
|
|
7924
7871
|
css: _ref$8,
|
|
@@ -7929,7 +7876,7 @@ const DraggableWrapper = _ref2 => {
|
|
|
7929
7876
|
gridTemplateRows: "auto 1fr auto",
|
|
7930
7877
|
gridGap: snapshot.isDragging ? customProperties.spacingS : customProperties.spacingM,
|
|
7931
7878
|
children: [jsx(Grid.Item, {
|
|
7932
|
-
children: jsx(DragHandle, _objectSpread$
|
|
7879
|
+
children: jsx(DragHandle, _objectSpread$Q({}, provided.dragHandleProps))
|
|
7933
7880
|
}), jsx(Grid.Item, {
|
|
7934
7881
|
children: children
|
|
7935
7882
|
})]
|
|
@@ -7948,8 +7895,8 @@ const DraggableWrapper = _ref2 => {
|
|
|
7948
7895
|
}, draggableKey);
|
|
7949
7896
|
};
|
|
7950
7897
|
|
|
7951
|
-
function ownKeys$
|
|
7952
|
-
function _objectSpread$
|
|
7898
|
+
function ownKeys$P(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7899
|
+
function _objectSpread$P(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$P(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$P(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7953
7900
|
const DroppableWrapper = _ref => {
|
|
7954
7901
|
let children = _ref.children,
|
|
7955
7902
|
onDragEnd = _ref.onDragEnd;
|
|
@@ -7957,7 +7904,7 @@ const DroppableWrapper = _ref => {
|
|
|
7957
7904
|
onDragEnd: onDragEnd,
|
|
7958
7905
|
children: jsx(Droppable, {
|
|
7959
7906
|
droppableId: "droppable",
|
|
7960
|
-
children: provided => jsxs("div", _objectSpread$
|
|
7907
|
+
children: provided => jsxs("div", _objectSpread$P(_objectSpread$P({
|
|
7961
7908
|
ref: provided.innerRef
|
|
7962
7909
|
}, provided.droppableProps), {}, {
|
|
7963
7910
|
children: [children, provided.placeholder]
|
|
@@ -7966,8 +7913,8 @@ const DroppableWrapper = _ref => {
|
|
|
7966
7913
|
});
|
|
7967
7914
|
};
|
|
7968
7915
|
|
|
7969
|
-
function ownKeys$
|
|
7970
|
-
function _objectSpread$
|
|
7916
|
+
function ownKeys$O(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7917
|
+
function _objectSpread$O(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$O(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$O(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7971
7918
|
const DefaultWrapper = _ref => {
|
|
7972
7919
|
let children = _ref.children;
|
|
7973
7920
|
return jsx(Fragment, {
|
|
@@ -8003,7 +7950,7 @@ const DndProvider = _ref2 => {
|
|
|
8003
7950
|
});
|
|
8004
7951
|
}
|
|
8005
7952
|
return jsx(DnDContext.Provider, {
|
|
8006
|
-
value: _objectSpread$
|
|
7953
|
+
value: _objectSpread$O(_objectSpread$O({}, dndContextDefaultValues), {}, {
|
|
8007
7954
|
isDnDMode,
|
|
8008
7955
|
setDnDMode
|
|
8009
7956
|
}),
|
|
@@ -8015,8 +7962,8 @@ const useDnDContext = () => {
|
|
|
8015
7962
|
};
|
|
8016
7963
|
|
|
8017
7964
|
const _excluded$9 = ["renderCustomWarnings", "WrapperComponent"];
|
|
8018
|
-
function ownKeys$
|
|
8019
|
-
function _objectSpread$
|
|
7965
|
+
function ownKeys$N(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7966
|
+
function _objectSpread$N(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$N(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$N(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8020
7967
|
const ENABLED_FALLBACK_ATTRIBUTE_TYPES = [CUSTOM_FIELD_TYPES.enum, CUSTOM_FIELD_TYPES.lenum, CUSTOM_FIELD_TYPES.number, CUSTOM_FIELD_TYPES.text, CUSTOM_FIELD_TYPES.boolean, CUSTOM_FIELD_TYPES.money, CUSTOM_FIELD_TYPES.datetime, CUSTOM_FIELD_TYPES.date, CUSTOM_FIELD_TYPES.reference, CUSTOM_FIELD_TYPES.time, CUSTOM_FIELD_TYPES.set];
|
|
8021
7968
|
const getFieldName = (parentName, fieldName) => {
|
|
8022
7969
|
if (!parentName) return fieldName;
|
|
@@ -8098,7 +8045,7 @@ const CustomFieldsInternal = _ref => {
|
|
|
8098
8045
|
renderWarnings: props.renderWarnings,
|
|
8099
8046
|
additionalInfo: shouldUseAdditionalInfoProp && props?.additionalInfoHandler ? props.additionalInfoHandler(fieldDefinition, locale, timeZone, userLocale) : undefined
|
|
8100
8047
|
};
|
|
8101
|
-
const Field = jsx(FieldComponent, _objectSpread$
|
|
8048
|
+
const Field = jsx(FieldComponent, _objectSpread$N({}, fieldProps));
|
|
8102
8049
|
// the several values inside the key are needed to make sure the field is re-rendered when those values change
|
|
8103
8050
|
return jsx(FastField, {
|
|
8104
8051
|
name: fieldName,
|
|
@@ -8141,8 +8088,8 @@ const CustomFieldsInternal = _ref => {
|
|
|
8141
8088
|
CustomFieldsInternal.displayName = 'CustomFieldsInternal';
|
|
8142
8089
|
var CustomFieldsInternal$1 = CustomFieldsInternal;
|
|
8143
8090
|
|
|
8144
|
-
function ownKeys$
|
|
8145
|
-
function _objectSpread$
|
|
8091
|
+
function ownKeys$M(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8092
|
+
function _objectSpread$M(e) { for (var r = 1; r < arguments.length; r++) { var _context7, _context8; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context7 = ownKeys$M(Object(t), !0)).call(_context7, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context8 = ownKeys$M(Object(t))).call(_context8, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8146
8093
|
const getTypeName = type => type.name.toLowerCase();
|
|
8147
8094
|
const findLabel = (enumType, key) => {
|
|
8148
8095
|
var _context;
|
|
@@ -8193,7 +8140,7 @@ const attributeDefinitionToFieldDefinition = attributeDefinition => ({
|
|
|
8193
8140
|
const nameValuePairsToMap = pairs => _reduceInstanceProperty(pairs).call(pairs, (result, _ref2) => {
|
|
8194
8141
|
let name = _ref2.name,
|
|
8195
8142
|
value = _ref2.value;
|
|
8196
|
-
return _objectSpread$
|
|
8143
|
+
return _objectSpread$M(_objectSpread$M({}, result), {}, {
|
|
8197
8144
|
[name]: value
|
|
8198
8145
|
});
|
|
8199
8146
|
}, {});
|
|
@@ -8311,8 +8258,8 @@ var pickerMessages = defineMessages({
|
|
|
8311
8258
|
}
|
|
8312
8259
|
});
|
|
8313
8260
|
|
|
8314
|
-
function ownKeys$
|
|
8315
|
-
function _objectSpread$
|
|
8261
|
+
function ownKeys$L(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8262
|
+
function _objectSpread$L(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$L(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$L(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8316
8263
|
const PRODUCT_SELECTION_MODES = {
|
|
8317
8264
|
INCLUSION: 'Individual',
|
|
8318
8265
|
EXCLUSION: 'IndividualExclusion'
|
|
@@ -8325,7 +8272,7 @@ const getMode = mode => mode === PRODUCT_SELECTION_MODES.INCLUSION || mode === P
|
|
|
8325
8272
|
const addModeToLabel = function (ps) {
|
|
8326
8273
|
let enableExcludingProducts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
8327
8274
|
if (!ps) return undefined;
|
|
8328
|
-
return _objectSpread$
|
|
8275
|
+
return _objectSpread$L(_objectSpread$L({}, ps), {}, {
|
|
8329
8276
|
label: `${ps?.label}${enableExcludingProducts ? ` (type: ${getMode(ps?.mode)})` : ''}`
|
|
8330
8277
|
});
|
|
8331
8278
|
};
|
|
@@ -8689,12 +8636,12 @@ function ProductSelectionsSearchSelectDropdown(props) {
|
|
|
8689
8636
|
});
|
|
8690
8637
|
}
|
|
8691
8638
|
|
|
8692
|
-
function ownKeys$
|
|
8693
|
-
function _objectSpread$
|
|
8639
|
+
function ownKeys$K(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8640
|
+
function _objectSpread$K(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$K(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$K(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8694
8641
|
function ModeSelectInputOption(props) {
|
|
8695
8642
|
const data = props.data;
|
|
8696
8643
|
const noValueFallback = props.noValueFallback || NO_VALUE_FALLBACK;
|
|
8697
|
-
return jsx(SelectInput.Option, _objectSpread$
|
|
8644
|
+
return jsx(SelectInput.Option, _objectSpread$K(_objectSpread$K({}, props), {}, {
|
|
8698
8645
|
children: jsxs(Spacings.Stack, {
|
|
8699
8646
|
scale: "xs",
|
|
8700
8647
|
children: [jsx(Text.Detail, {
|
|
@@ -8710,8 +8657,8 @@ function ModeSelectInputOption(props) {
|
|
|
8710
8657
|
}
|
|
8711
8658
|
|
|
8712
8659
|
const _excluded$7 = ["lowerProductSelectionsLimit", "upperProductSelectionsLimit", "renderSelectInputOptionValuesByField", "optionType", "isMulti", "isRequired", "hasWarning", "hasError", "isClearable", "isReadOnly", "isDisabled", "excludedProductSelectionIds", "title"];
|
|
8713
|
-
function ownKeys$
|
|
8714
|
-
function _objectSpread$
|
|
8660
|
+
function ownKeys$J(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8661
|
+
function _objectSpread$J(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$J(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$J(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8715
8662
|
function ProductSelectionsPicker(_ref) {
|
|
8716
8663
|
let _ref$lowerProductSele = _ref.lowerProductSelectionsLimit,
|
|
8717
8664
|
lowerProductSelectionsLimit = _ref$lowerProductSele === void 0 ? LOWER_PRODUCT_SELECTIONS_LIMIT : _ref$lowerProductSele,
|
|
@@ -8745,10 +8692,10 @@ function ProductSelectionsPicker(_ref) {
|
|
|
8745
8692
|
return {
|
|
8746
8693
|
Option: optionInnerProps => {
|
|
8747
8694
|
if (optionInnerProps.isDisabled) {
|
|
8748
|
-
return jsx(SelectInput.Option, _objectSpread$
|
|
8695
|
+
return jsx(SelectInput.Option, _objectSpread$J({}, optionInnerProps));
|
|
8749
8696
|
}
|
|
8750
8697
|
if (optionType === TYPE_PROPERTY) {
|
|
8751
|
-
return jsx(ModeSelectInputOption, _objectSpread$
|
|
8698
|
+
return jsx(ModeSelectInputOption, _objectSpread$J({}, optionInnerProps));
|
|
8752
8699
|
}
|
|
8753
8700
|
return jsx(CustomSelectInputOption, {
|
|
8754
8701
|
optionType: optionType,
|
|
@@ -8761,7 +8708,7 @@ function ProductSelectionsPicker(_ref) {
|
|
|
8761
8708
|
let CustomProductSelectionsPicker;
|
|
8762
8709
|
if (productSelectionsTotalFetcher.total <= lowerProductSelectionsLimit) CustomProductSelectionsPicker = ProductSelectionBasicSelectDropdown;else if (productSelectionsTotalFetcher.total <= upperProductSelectionsLimit) CustomProductSelectionsPicker = ProductSelectionsAsyncSelectDropdown;else CustomProductSelectionsPicker = ProductSelectionsSearchSelectDropdown;
|
|
8763
8710
|
return jsx(Spacings.Stack, {
|
|
8764
|
-
children: jsx(CustomProductSelectionsPicker, _objectSpread$
|
|
8711
|
+
children: jsx(CustomProductSelectionsPicker, _objectSpread$J(_objectSpread$J({
|
|
8765
8712
|
lowerProductSelectionsLimit: lowerProductSelectionsLimit,
|
|
8766
8713
|
upperProductSelectionsLimit: upperProductSelectionsLimit,
|
|
8767
8714
|
renderSelectInputOptionValuesByField: renderSelectInputOptionValuesByField,
|
|
@@ -8798,14 +8745,14 @@ var messages$w = defineMessages({
|
|
|
8798
8745
|
defaultMessage: 'The selected recurrent interval could not be retrieved. Please check your recurrence policy configuration.'
|
|
8799
8746
|
},
|
|
8800
8747
|
noRecurrentIntervalsConfigured: {
|
|
8801
|
-
id: 'RecurrentIntervalPicker.noRecurrentIntervalsConfigured',
|
|
8748
|
+
id: 'RecurrentIntervalPicker.noRecurrentIntervalsConfigured.withLinkToSettings',
|
|
8802
8749
|
description: 'Banner warning message shown when no recurrent intervals are configured in the project',
|
|
8803
|
-
defaultMessage: 'No recurrent intervals configured. Please check your recurrence policy configuration
|
|
8750
|
+
defaultMessage: 'No recurrent intervals configured. Please check your <linkToSettings>recurrence policy configuration</linkToSettings>.'
|
|
8804
8751
|
}
|
|
8805
8752
|
});
|
|
8806
8753
|
|
|
8807
|
-
function ownKeys$
|
|
8808
|
-
function _objectSpread$
|
|
8754
|
+
function ownKeys$I(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8755
|
+
function _objectSpread$I(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$I(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$I(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8809
8756
|
var FetchRecurrencePolicies = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchRecurrencePolicies" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "where" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "limit" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Int" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "recurrencePolicies" }, 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: [] }] } }] } }] } }] } }], loc: { start: 0, end: 220, source: { body: "query FetchRecurrencePolicies($where: String, $limit: Int!) {\n recurrencePolicies(where: $where, limit: $limit) {\n results {\n id\n key\n nameAllLocales {\n locale\n value\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
8810
8757
|
const useRecurrenceIntervals = _ref => {
|
|
8811
8758
|
let where = _ref.where,
|
|
@@ -8816,7 +8763,7 @@ const useRecurrenceIntervals = _ref => {
|
|
|
8816
8763
|
target: GRAPHQL_TARGETS.COMMERCETOOLS_PLATFORM
|
|
8817
8764
|
},
|
|
8818
8765
|
fetchPolicy: 'cache-and-network',
|
|
8819
|
-
variables: _objectSpread$
|
|
8766
|
+
variables: _objectSpread$I({
|
|
8820
8767
|
limit: 500
|
|
8821
8768
|
}, where && {
|
|
8822
8769
|
where
|
|
@@ -8833,6 +8780,8 @@ const useRecurrenceIntervals = _ref => {
|
|
|
8833
8780
|
};
|
|
8834
8781
|
};
|
|
8835
8782
|
|
|
8783
|
+
function ownKeys$H(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8784
|
+
function _objectSpread$H(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$H(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$H(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8836
8785
|
const RecurrentIntervalPicker = _ref => {
|
|
8837
8786
|
let name = _ref.name,
|
|
8838
8787
|
value = _ref.value,
|
|
@@ -8844,13 +8793,27 @@ const RecurrentIntervalPicker = _ref => {
|
|
|
8844
8793
|
_ref$isDisabled = _ref.isDisabled,
|
|
8845
8794
|
isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
|
|
8846
8795
|
_ref$isReadOnly = _ref.isReadOnly,
|
|
8847
|
-
isReadOnly = _ref$isReadOnly === void 0 ? false : _ref$isReadOnly
|
|
8796
|
+
isReadOnly = _ref$isReadOnly === void 0 ? false : _ref$isReadOnly,
|
|
8797
|
+
_ref$isMulti = _ref.isMulti,
|
|
8798
|
+
isMulti = _ref$isMulti === void 0 ? false : _ref$isMulti,
|
|
8799
|
+
dataTestId = _ref['data-testid'];
|
|
8848
8800
|
const _useIntl = useIntl(),
|
|
8849
8801
|
formatMessage = _useIntl.formatMessage;
|
|
8850
|
-
const
|
|
8802
|
+
const _useApplicationContex = useApplicationContext(applicationContext => ({
|
|
8803
|
+
dataLocale: applicationContext.dataLocale,
|
|
8804
|
+
projectKey: applicationContext.project?.key
|
|
8805
|
+
})),
|
|
8806
|
+
dataLocale = _useApplicationContex.dataLocale,
|
|
8807
|
+
projectKey = _useApplicationContex.projectKey;
|
|
8851
8808
|
const formatLocalizedFieldToString = useFormatLocalizedFieldToString();
|
|
8852
8809
|
const skipFetch = isReadOnly && !value;
|
|
8853
|
-
const where =
|
|
8810
|
+
const where = useMemo(() => {
|
|
8811
|
+
if (!isReadOnly || !value) return undefined;
|
|
8812
|
+
if (_Array$isArray(value)) {
|
|
8813
|
+
return `id in (${_mapInstanceProperty(value).call(value, id => `"${id}"`).join(',')})`;
|
|
8814
|
+
}
|
|
8815
|
+
return `id="${value}"`;
|
|
8816
|
+
}, [isReadOnly, value]);
|
|
8854
8817
|
const _useRecurrenceInterva = useRecurrenceIntervals({
|
|
8855
8818
|
where,
|
|
8856
8819
|
skip: skipFetch
|
|
@@ -8858,7 +8821,13 @@ const RecurrentIntervalPicker = _ref => {
|
|
|
8858
8821
|
recurrencePolicies = _useRecurrenceInterva.recurrencePolicies,
|
|
8859
8822
|
loading = _useRecurrenceInterva.loading,
|
|
8860
8823
|
error = _useRecurrenceInterva.error;
|
|
8861
|
-
const selectedIsMissingInData =
|
|
8824
|
+
const selectedIsMissingInData = useMemo(() => {
|
|
8825
|
+
if (!value) return false;
|
|
8826
|
+
if (_Array$isArray(value)) {
|
|
8827
|
+
return _someInstanceProperty(value).call(value, val => !_someInstanceProperty(recurrencePolicies).call(recurrencePolicies, policy => policy.id === val));
|
|
8828
|
+
}
|
|
8829
|
+
return !_someInstanceProperty(recurrencePolicies).call(recurrencePolicies, policy => policy.id === value);
|
|
8830
|
+
}, [value, recurrencePolicies]);
|
|
8862
8831
|
const options = useMemo(() => {
|
|
8863
8832
|
if (loading) return [];
|
|
8864
8833
|
const mapped = _mapInstanceProperty(recurrencePolicies).call(recurrencePolicies, policy => ({
|
|
@@ -8866,15 +8835,17 @@ const RecurrentIntervalPicker = _ref => {
|
|
|
8866
8835
|
label: formatLocalizedFieldToString(policy.nameAllLocales, policy.key)
|
|
8867
8836
|
}));
|
|
8868
8837
|
|
|
8869
|
-
// If the selected value cannot be loaded, add
|
|
8838
|
+
// If the selected value(s) cannot be loaded, add them as missing options
|
|
8870
8839
|
if (selectedIsMissingInData && value) {
|
|
8871
|
-
|
|
8872
|
-
|
|
8873
|
-
|
|
8874
|
-
|
|
8875
|
-
|
|
8876
|
-
|
|
8877
|
-
|
|
8840
|
+
var _context;
|
|
8841
|
+
const valueArray = _Array$isArray(value) ? value : [value];
|
|
8842
|
+
const missingOptions = _mapInstanceProperty(_context = _filterInstanceProperty(valueArray).call(valueArray, val => !_someInstanceProperty(recurrencePolicies).call(recurrencePolicies, policy => policy.id === val))).call(_context, val => ({
|
|
8843
|
+
value: val,
|
|
8844
|
+
label: formatMessage(messages$w.missingOptionLabel, {
|
|
8845
|
+
value: val
|
|
8846
|
+
})
|
|
8847
|
+
}));
|
|
8848
|
+
return [...missingOptions, ...mapped];
|
|
8878
8849
|
}
|
|
8879
8850
|
return mapped;
|
|
8880
8851
|
}, [recurrencePolicies, selectedIsMissingInData, value, dataLocale, formatMessage, formatLocalizedFieldToString, loading]);
|
|
@@ -8894,10 +8865,12 @@ const RecurrentIntervalPicker = _ref => {
|
|
|
8894
8865
|
options: options,
|
|
8895
8866
|
isClearable: isClearable,
|
|
8896
8867
|
isReadOnly: isReadOnly,
|
|
8868
|
+
isMulti: isMulti,
|
|
8897
8869
|
isDisabled: isDisabled || loading || noRecurrentIntervalsConfigured,
|
|
8898
8870
|
onChange: onChange,
|
|
8899
8871
|
onBlur: onBlur,
|
|
8900
|
-
hasError: !loading && !error && selectedIsMissingInData
|
|
8872
|
+
hasError: !loading && !error && selectedIsMissingInData,
|
|
8873
|
+
"data-testid": dataTestId
|
|
8901
8874
|
}), error ? jsx(Text.Body, {
|
|
8902
8875
|
tone: "negative",
|
|
8903
8876
|
intlMessage: commonPickerMessages.loadingErrorMessage
|
|
@@ -8907,7 +8880,14 @@ const RecurrentIntervalPicker = _ref => {
|
|
|
8907
8880
|
}) : null, !error && noRecurrentIntervalsConfigured && jsx(ContentNotification, {
|
|
8908
8881
|
type: "info",
|
|
8909
8882
|
children: jsx(Text.Detail, {
|
|
8910
|
-
intlMessage: messages$w.noRecurrentIntervalsConfigured
|
|
8883
|
+
intlMessage: _objectSpread$H(_objectSpread$H({}, messages$w.noRecurrentIntervalsConfigured), {}, {
|
|
8884
|
+
values: {
|
|
8885
|
+
linkToSettings: msg => jsx(Link, {
|
|
8886
|
+
to: `/${projectKey}/settings/project/intervals`,
|
|
8887
|
+
children: msg
|
|
8888
|
+
}, "link-to-settings")
|
|
8889
|
+
}
|
|
8890
|
+
})
|
|
8911
8891
|
})
|
|
8912
8892
|
})]
|
|
8913
8893
|
});
|
|
@@ -14082,6 +14062,45 @@ const range = (field, attributeType, _ref) => {
|
|
|
14082
14062
|
}
|
|
14083
14063
|
};
|
|
14084
14064
|
};
|
|
14065
|
+
|
|
14066
|
+
/**
|
|
14067
|
+
* Serializes attribute values to primitives suitable for PIM search queries.
|
|
14068
|
+
* Handles complex attribute types like enum, lenum, ltext, money, and reference.
|
|
14069
|
+
*
|
|
14070
|
+
* @param {*} value - The attribute value to serialize
|
|
14071
|
+
* @param {string} typeName - The attribute type name (e.g., 'enum', 'lenum', 'ltext')
|
|
14072
|
+
* @param {string} [dataLocale] - The locale to use for localized text attributes
|
|
14073
|
+
* @returns {*} The serialized primitive value
|
|
14074
|
+
*/
|
|
14075
|
+
function serializeAttributeValueForPimSearch(value, typeName, dataLocale) {
|
|
14076
|
+
if (value == null) return value;
|
|
14077
|
+
switch (typeName) {
|
|
14078
|
+
case 'enum':
|
|
14079
|
+
case 'lenum':
|
|
14080
|
+
// Extract key from enum object { key: 'xl', label: '...' }
|
|
14081
|
+
return typeof value === 'object' && value.key ? value.key : value;
|
|
14082
|
+
case 'ltext':
|
|
14083
|
+
// For localized text, use the specified locale or first available
|
|
14084
|
+
if (typeof value === 'object' && !_Array$isArray(value)) {
|
|
14085
|
+
return dataLocale && value[dataLocale] ? value[dataLocale] : _Object$values(value)[0];
|
|
14086
|
+
}
|
|
14087
|
+
return value;
|
|
14088
|
+
case 'money':
|
|
14089
|
+
// Money objects have { centAmount, currencyCode }
|
|
14090
|
+
// For PIM search, return the object as-is - caller will handle it specially
|
|
14091
|
+
return value;
|
|
14092
|
+
case 'reference':
|
|
14093
|
+
// Reference objects have { id, typeId }
|
|
14094
|
+
// For PIM search, we need just the ID
|
|
14095
|
+
if (typeof value === 'object' && value.id) {
|
|
14096
|
+
return value.id;
|
|
14097
|
+
}
|
|
14098
|
+
return value;
|
|
14099
|
+
default:
|
|
14100
|
+
// Primitives (text, number, boolean, date/time) pass through unchanged
|
|
14101
|
+
return value;
|
|
14102
|
+
}
|
|
14103
|
+
}
|
|
14085
14104
|
const or = function () {
|
|
14086
14105
|
for (var _len = arguments.length, clauses = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
14087
14106
|
clauses[_key] = arguments[_key];
|
|
@@ -14502,4 +14521,4 @@ function withPendingRequests() {
|
|
|
14502
14521
|
|
|
14503
14522
|
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 } } } };
|
|
14504
14523
|
|
|
14505
|
-
export { booleanField as BooleanField, CUSTOM_FIELD_TYPES, Carousel$1 as Carousel, CartDiscountReferenceSearch, CategoryReferenceSearch, CategorySearchPickerOptionFragment, CenteredLoadingSpinner$1 as CenteredLoadingSpinner, ChannelPickerInput$1 as ChannelPickerInput, CountriesPicker, customFieldDefinitionsConnector as CustomFieldDefinitionsConnector, CustomFieldInput$1 as CustomFieldInput, CustomFieldTooltip$1 as CustomFieldTooltip, CustomFieldTypeDefinitionsConnector$1 as CustomFieldTypeDefinitionsConnector, CustomFields$1 as CustomFields, CustomFieldsErrorTextNotification$1 as CustomFieldsErrorTextNotification, CustomFieldsFormField$1 as CustomFieldsFormField, CustomerGroupPickerInput$1 as CustomerGroupPickerInput, DefaultPageSizes, Divider, EMAIL_REGEX, FILTER_TYPES, FileInput$1 as FileInput, FormattedDateTime$1 as FormattedDateTime, FormattedLocalizedString, LOWER_STORES_LIMIT, LabelRange$1 as LabelRange, MC_RESOURCES_WITH_KEYS, MissingValueField$1 as MissingValueField, MultiValueSearchInput$1 as MultiValueSearchInput, numericFormatInput as NumericFormatInput, Option$2 as Option, PRECISION_TYPES, pimIndexerProvider as PimIndexerProvider, PlatformLimitsFetcherQuery, ProductAttributeInput, ProductAttributes, ProductPickerInput$1 as ProductPickerInput, ProductSelectionsPicker as ProductSelectionPicker, QUERY_LIMIT, QUERY_MAX_LIMIT, RESOURCES_WITH_PLATFORM_LIMITS, RecurrentIntervalPicker$1 as RecurrentIntervalPicker, RequestCache$1 as RequestCache, RequiredIndicator$1 as RequiredIndicator, ScrollToFieldError$1 as ScrollToFieldError, SelectableFieldSearchInput$1 as SelectableFieldSearchInput, StoreSelectField$1 as StoreSelectField, StoreSelectInput$1 as StoreSelectInput, ThrottledField$1 as ThrottledField, UPPER_STORES_LIMIT, VALIDATOR_INTEGER, VALIDATOR_NUMERIC, VALIDATOR_REQUIRED, WithPimIndexer$1 as WithPimIndexer, allowedProperties, and, attributeToCustomField, attributesMapToNameValuePairs, base64ToString, messages$c as booleanMessages, buildSearchQuery$1 as buildSearchQuery, businessRoleConstants$1 as businessRoleConstants, messages$7 as businessRoleMessages, businessRoleKeys$1 as businessRoles, capitalizeFirst, clone, coerceToInteger, computedProperties, convertApolloNetworkStatusToLoadingState, convertApolloQueryDataToConnectorData, convertProductSelectionFromGraphQl, convertRatioToPercentage, createGraphQlUpdateActions, createNextSortDefinition$1 as createNextSortDefinition, createPlatformLimitsQueryVariables, createReducer, createResourceReducer, customFields as customFieldsTransformer, dateTransformer$1 as dateTransformer, exact, exists, extractErrorFromGraphQlResponse, filterCustomTypeUpdateActionValues, filterDataAttributes, filterEmptyValues, formatCustomField, formatCustomerAddress, formatCustomerName, formatDateRangeValue, formatDateTime$1 as formatDateTime, formatDiscount, formatMoney$2 as formatMoney, formatMoneyRangeValue, formatMoneyValue, formatPercentage, formatAttribute as formatProductAttribute, getAncestors, getAttributeValueByType, getAttributeValueType, getBottomOption, getBulkNotification, getCategoryLevel, getCountsFromBulkSummary, getDiscountValue, getDisplayName$1 as getDisplayName, getFractionDigit, getFractionedAmount, getIndexesOfInvalidValues, getMinimumPricesByCurrencyCode, getNetUnitPrice, getPathName, getPrefixSearchBounds$1 as getPrefixSearchBounds, getPriceChannelName, getProductAttributes, getProductLevelAttributes, getReferenceTypeId, getSelectedPrice, getStampToneByPublishState, getTimeZoneId, getTimeZoneLabel, getTypeNameOfType, graphqlCategoryLevelTransformer, dateTransformer as graphqlDateTransformer, missingLocaleTransformer as graphqlMissingLocaleTransformer, missingTransformer as graphqlMissingTransformer, numberTransformer as graphqlNumberTransformer, graphqlQueryBuilder, referenceTransformer as graphqlReferenceTransformer, textTransformer as graphqlTextTransformer, hasInvalidInputError$1 as hasInvalidInputError, hasSemanticError$1 as hasSemanticError, injectCustomerGroupsPlatformLimits$1 as injectCustomerGroupsPlatformLimits, injectCustomersPlatformLimits$1 as injectCustomersPlatformLimits, injectDataTablePaginationState$1 as injectDataTablePaginationState, injectModalState$3 as injectModalState, injectNotifications$1 as injectNotifications, injectPimIndexer, injectShippingMethodsPlatformLimits$1 as injectShippingMethodsPlatformLimits, injectStorage$1 as injectStorage, injectTaxCategoriesPlatformLimits$1 as injectTaxCategoriesPlatformLimits, injectModalState$1 as injectToggleState, injectZonesPlatformLimits$1 as injectZonesPlatformLimits, isEmptyFilter as isEmpty, isEmptyValue, isUUID$1 as isUUID, isValidISODate, isValidISODateTime, isValidISOTime, keepDisplayName$1 as keepDisplayName, mapShippingRateTierToGraphQL, mapStoresToOptions, mapTimeZonesToOptions, minusify, messages$9 as missingValueMessages, nameValuePairsToMap, normalizeProductSettings, not, omitDeep, omitSetsOfSets, or, commonPickerMessages as pickerMessages, range, reorderArrayItems, resolveStatusType, safelyAddFallback, sanitize, searchCategories, setDisplayName$1 as setDisplayName, setToArray, shallowEqual, shouldUpdateAttributeInput, slugify, sortDataByIdsArray, sortRequiresLanguage, splitProductAndVariantAttributes, splitVariantAttributesByConstraint, stringToBase64, swapArrayItems, transformAllToProperNounCase, transformCustomFieldsRawToCustomFields, transformLocalizedFieldsForCategory, truncate, unique, uniqueObjects, useBusinessUnitsLimits$1 as useBusinessUnitsPlatformLimits, useCachedCategoryOptions, useCurrentOption, useDnDContext as useCustomFieldsDnDContext, useCustomerGroupsPlatformLimits$1 as useCustomerGroupsPlatformLimits, useCustomersPlatformLimits$1 as useCustomersPlatformLimits, useDebouncedPromiseCallback$1 as useDebouncedPromiseCallback, useFormatCustomField, useFormatLocalizedFieldToString, useFormatLocalizedString,
|
|
14524
|
+
export { booleanField as BooleanField, CUSTOM_FIELD_TYPES, Carousel$1 as Carousel, CartDiscountReferenceSearch, CategoryReferenceSearch, CategorySearchPickerOptionFragment, CenteredLoadingSpinner$1 as CenteredLoadingSpinner, ChannelPickerInput$1 as ChannelPickerInput, CountriesPicker, customFieldDefinitionsConnector as CustomFieldDefinitionsConnector, CustomFieldInput$1 as CustomFieldInput, CustomFieldTooltip$1 as CustomFieldTooltip, CustomFieldTypeDefinitionsConnector$1 as CustomFieldTypeDefinitionsConnector, CustomFields$1 as CustomFields, CustomFieldsErrorTextNotification$1 as CustomFieldsErrorTextNotification, CustomFieldsFormField$1 as CustomFieldsFormField, CustomerGroupPickerInput$1 as CustomerGroupPickerInput, DefaultPageSizes, Divider, EMAIL_REGEX, FILTER_TYPES, FileInput$1 as FileInput, FormattedDateTime$1 as FormattedDateTime, FormattedLocalizedString, LOWER_STORES_LIMIT, LabelRange$1 as LabelRange, MC_RESOURCES_WITH_KEYS, MissingValueField$1 as MissingValueField, MultiValueSearchInput$1 as MultiValueSearchInput, numericFormatInput as NumericFormatInput, Option$2 as Option, PRECISION_TYPES, pimIndexerProvider as PimIndexerProvider, PlatformLimitsFetcherQuery, ProductAttributeInput, ProductAttributes, ProductPickerInput$1 as ProductPickerInput, ProductSelectionsPicker as ProductSelectionPicker, QUERY_LIMIT, QUERY_MAX_LIMIT, RESOURCES_WITH_PLATFORM_LIMITS, RecurrentIntervalPicker$1 as RecurrentIntervalPicker, RequestCache$1 as RequestCache, RequiredIndicator$1 as RequiredIndicator, ScrollToFieldError$1 as ScrollToFieldError, SelectableFieldSearchInput$1 as SelectableFieldSearchInput, StoreSelectField$1 as StoreSelectField, StoreSelectInput$1 as StoreSelectInput, ThrottledField$1 as ThrottledField, UPPER_STORES_LIMIT, VALIDATOR_INTEGER, VALIDATOR_NUMERIC, VALIDATOR_REQUIRED, WithPimIndexer$1 as WithPimIndexer, allowedProperties, and, attributeToCustomField, attributesMapToNameValuePairs, base64ToString, messages$c as booleanMessages, buildSearchQuery$1 as buildSearchQuery, businessRoleConstants$1 as businessRoleConstants, messages$7 as businessRoleMessages, businessRoleKeys$1 as businessRoles, capitalizeFirst, clone, coerceToInteger, computedProperties, convertApolloNetworkStatusToLoadingState, convertApolloQueryDataToConnectorData, convertProductSelectionFromGraphQl, convertRatioToPercentage, createGraphQlUpdateActions, createNextSortDefinition$1 as createNextSortDefinition, createPlatformLimitsQueryVariables, createReducer, createResourceReducer, customFields as customFieldsTransformer, dateTransformer$1 as dateTransformer, exact, exists, extractErrorFromGraphQlResponse, filterCustomTypeUpdateActionValues, filterDataAttributes, filterEmptyValues, formatCustomField, formatCustomerAddress, formatCustomerName, formatDateRangeValue, formatDateTime$1 as formatDateTime, formatDiscount, formatMoney$2 as formatMoney, formatMoneyRangeValue, formatMoneyValue, formatPercentage, formatAttribute as formatProductAttribute, getAncestors, getAttributeValueByType, getAttributeValueType, getBottomOption, getBulkNotification, getCategoryLevel, getCountsFromBulkSummary, getDiscountValue, getDisplayName$1 as getDisplayName, getFractionDigit, getFractionedAmount, getIndexesOfInvalidValues, getMinimumPricesByCurrencyCode, getNetUnitPrice, getPathName, getPrefixSearchBounds$1 as getPrefixSearchBounds, getPriceChannelName, getProductAttributes, getProductLevelAttributes, getReferenceTypeId, getSelectedPrice, getStampToneByPublishState, getTimeZoneId, getTimeZoneLabel, getTypeNameOfType, graphqlCategoryLevelTransformer, dateTransformer as graphqlDateTransformer, missingLocaleTransformer as graphqlMissingLocaleTransformer, missingTransformer as graphqlMissingTransformer, numberTransformer as graphqlNumberTransformer, graphqlQueryBuilder, referenceTransformer as graphqlReferenceTransformer, textTransformer as graphqlTextTransformer, hasInvalidInputError$1 as hasInvalidInputError, hasSemanticError$1 as hasSemanticError, injectCustomerGroupsPlatformLimits$1 as injectCustomerGroupsPlatformLimits, injectCustomersPlatformLimits$1 as injectCustomersPlatformLimits, injectDataTablePaginationState$1 as injectDataTablePaginationState, injectModalState$3 as injectModalState, injectNotifications$1 as injectNotifications, injectPimIndexer, injectShippingMethodsPlatformLimits$1 as injectShippingMethodsPlatformLimits, injectStorage$1 as injectStorage, injectTaxCategoriesPlatformLimits$1 as injectTaxCategoriesPlatformLimits, injectModalState$1 as injectToggleState, injectZonesPlatformLimits$1 as injectZonesPlatformLimits, isEmptyFilter as isEmpty, isEmptyValue, isUUID$1 as isUUID, isValidISODate, isValidISODateTime, isValidISOTime, keepDisplayName$1 as keepDisplayName, mapShippingRateTierToGraphQL, mapStoresToOptions, mapTimeZonesToOptions, minusify, messages$9 as missingValueMessages, nameValuePairsToMap, normalizeProductSettings, not, omitDeep, omitSetsOfSets, or, commonPickerMessages as pickerMessages, range, reorderArrayItems, resolveStatusType, safelyAddFallback, sanitize, searchCategories, serializeAttributeValueForPimSearch, setDisplayName$1 as setDisplayName, setToArray, shallowEqual, shouldUpdateAttributeInput, slugify, sortDataByIdsArray, sortRequiresLanguage, splitProductAndVariantAttributes, splitVariantAttributesByConstraint, stringToBase64, swapArrayItems, transformAllToProperNounCase, transformCustomFieldsRawToCustomFields, transformLocalizedFieldsForCategory, truncate, unique, uniqueObjects, useBusinessUnitsLimits$1 as useBusinessUnitsPlatformLimits, useCachedCategoryOptions, useCurrentOption, useDnDContext as useCustomFieldsDnDContext, useCustomerGroupsPlatformLimits$1 as useCustomerGroupsPlatformLimits, useCustomersPlatformLimits$1 as useCustomersPlatformLimits, useDebouncedPromiseCallback$1 as useDebouncedPromiseCallback, useFormatCustomField, useFormatLocalizedFieldToString, useFormatLocalizedString, useIsFieldDuplicated$1 as useIsFieldDuplicated, useLoadOptions$1 as useLoadOptions, useLocalizedKeyFallback$1 as useLocalizedKeyFallback, usePendingRequests, usePersistedReminder$1 as usePersistedReminder, usePersistedTableConfiguration$1 as usePersistedTableConfiguration, usePimIndexer, usePrevious$1 as usePrevious, useProductSelectionsFetcher$1 as useProductSelectionsFetcher, useProductSelectionsTotalFetcher$1 as useProductSelectionsTotalFetcher, useRecurrenceIntervals, useRoleNotificationEffect$1 as useRoleNotificationEffect, useShippingMethodsPlatformLimits, useShowBulkNotification, useStorage$1 as useStorage, useStoreKeysInDataFences$1 as useStoreKeysInDataFences, useStoreSearchIndexStatusFetcher$1 as useStoreSearchIndexStatusFetcher, useStoresListFetcher$1 as useStoresListFetcher, useStoresLimits$1 as useStoresPlatformLimits, useStoresSearchFetcher$1 as useStoresSearchFetcher, useTaxCategoriesPlatformLimits, useTotalNumberOfStoresFetcher$1 as useTotalNumberOfStoresFetcher, validateFilter$2 as validateCustomField, validations as validateCustomFields, validateFilter$1 as validateDate, validateMultiOptionEnum, validateFilter as validateNumber, validateSingleOptionEnum, validateText, validatedInput, validationMessages, valueMapping, withPendingRequests, withProps$1 as withProps, withRedirectTo$1 as withRedirectTo, withoutEmptyErrorsByField$1 as withoutEmptyErrorsByField, wrapDisplayName$1 as wrapDisplayName };
|