@commercetools-frontend/experimental-components 8.0.2 → 8.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commercetools-frontend-experimental-components.cjs.dev.js +214 -209
- package/dist/commercetools-frontend-experimental-components.cjs.prod.js +214 -209
- package/dist/commercetools-frontend-experimental-components.esm.js +214 -210
- package/dist/declarations/src/index.d.ts +2 -2
- package/dist/declarations/src/utils/constants.d.ts +38 -39
- package/package.json +18 -19
|
@@ -215,8 +215,8 @@ var messages$T = defineMessages({
|
|
|
215
215
|
}
|
|
216
216
|
});
|
|
217
217
|
|
|
218
|
-
function ownKeys$
|
|
219
|
-
function _objectSpread$
|
|
218
|
+
function ownKeys$1w(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$1w(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1w(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$1w(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$1w({
|
|
249
249
|
sortByNamePath: `name.${dataLocale}`
|
|
250
250
|
}, rolesClause && {
|
|
251
251
|
extraWhere: rolesClause
|
|
@@ -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$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; }
|
|
637
|
+
function _objectSpread$1v(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1v(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1v(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$1v({
|
|
639
639
|
ref: ref,
|
|
640
640
|
style: {
|
|
641
641
|
display: 'block',
|
|
@@ -668,8 +668,8 @@ var messages$Q = defineMessages({
|
|
|
668
668
|
}
|
|
669
669
|
});
|
|
670
670
|
|
|
671
|
-
function ownKeys$
|
|
672
|
-
function _objectSpread$
|
|
671
|
+
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; }
|
|
672
|
+
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; }
|
|
673
673
|
const getBottomOption = formatMessage => ({
|
|
674
674
|
options: [{
|
|
675
675
|
label: formatMessage ? formatMessage(messages$Q.bottomOption) : messages$Q.bottomOption,
|
|
@@ -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$1u(_objectSpread$1u({}, 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$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; }
|
|
701
|
+
function _objectSpread$1t(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1t(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$1t(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$1t(_objectSpread$1t({}, event), {}, {
|
|
713
|
+
target: _objectSpread$1t(_objectSpread$1t({}, 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,8 +721,8 @@ const useHandlers = onChange => {
|
|
|
721
721
|
var useHandlers$1 = useHandlers;
|
|
722
722
|
|
|
723
723
|
const _excluded$g = ["extraWhere"];
|
|
724
|
-
function ownKeys$
|
|
725
|
-
function _objectSpread$
|
|
724
|
+
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; }
|
|
725
|
+
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; }
|
|
726
726
|
const constructPrefixSearchPredicate$1 = function () {
|
|
727
727
|
let prefixSearchFields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
728
728
|
let lowerBound = arguments.length > 1 ? arguments[1] : undefined;
|
|
@@ -769,7 +769,7 @@ const useLoadOptions = _ref => {
|
|
|
769
769
|
}
|
|
770
770
|
return client.query({
|
|
771
771
|
query,
|
|
772
|
-
variables: _objectSpread$
|
|
772
|
+
variables: _objectSpread$1s({
|
|
773
773
|
where
|
|
774
774
|
}, restVariables),
|
|
775
775
|
context: {
|
|
@@ -1074,8 +1074,8 @@ var keepDisplayName$1 = keepDisplayName;
|
|
|
1074
1074
|
const wrapDisplayName = (BaseComponent, hocName) => `${hocName}(${getDisplayName$1(BaseComponent)})`;
|
|
1075
1075
|
var wrapDisplayName$1 = wrapDisplayName;
|
|
1076
1076
|
|
|
1077
|
-
function ownKeys$
|
|
1078
|
-
function _objectSpread$
|
|
1077
|
+
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; }
|
|
1078
|
+
function _objectSpread$1r(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1r(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1r(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1079
1079
|
function _callSuper$8(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$8() ? _Reflect$construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
1080
1080
|
function _isNativeReflectConstruct$8() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$8 = function () { return !!t; })(); }
|
|
1081
1081
|
const withMouseOverState = BaseComponent => {
|
|
@@ -1106,7 +1106,7 @@ const withMouseOverState = BaseComponent => {
|
|
|
1106
1106
|
handleMouseOver: this.handleMouseOver,
|
|
1107
1107
|
handleMouseOut: this.handleMouseOut
|
|
1108
1108
|
};
|
|
1109
|
-
return jsx(BaseComponent, _objectSpread$
|
|
1109
|
+
return jsx(BaseComponent, _objectSpread$1r({}, _objectSpread$1r(_objectSpread$1r({}, this.props), injectedProps)));
|
|
1110
1110
|
}
|
|
1111
1111
|
}]);
|
|
1112
1112
|
}(Component);
|
|
@@ -1127,8 +1127,8 @@ var _ref$g = process.env.NODE_ENV === "production" ? {
|
|
|
1127
1127
|
};
|
|
1128
1128
|
const getInputStyles = props => /*#__PURE__*/css("transition:0.2s ease;border-radius:", designTokens.borderRadiusForInput, ";border-style:solid;border-width:1px;color:", designTokens.colorSolid, ";font-weight:", designTokens.fontWeight500, ";font-size:", designTokens.fontSize10, ";font-family:", designTokens.fontFamily, ";padding:", designTokens.spacingS, " ", designTokens.spacingM, ";outline:none;box-shadow:none;appearance:none;width:100%;min-height:", designTokens.heightForInput, ";", props.style === 'primary' && /*#__PURE__*/css("border-color:", designTokens.colorNeutral, ";background-color:", designTokens.colorSurface, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:getInputStyles;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRocm90dGxlZC1maWVsZC5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBNkVLIiwiZmlsZSI6InRocm90dGxlZC1maWVsZC5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBkZXNpZ25Ub2tlbnMgfSBmcm9tICdAY29tbWVyY2V0b29scy11aWtpdC9kZXNpZ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k4fTtcbiAgICBjb2xvcjogJHtkZXNpZ25Ub2tlbnMuY29sb3JTb2xpZH07XG4gICAgb3BhY2l0eTogMTtcbiAgYH1cblxuICAkeyFwcm9wcy5pc1ZhbGlkICYmXG4gIGNzc2BcbiAgICBib3JkZXItY29sb3I6ICR7ZGVzaWduVG9rZW5zLmNvbG9yRXJyb3J9ICFpbXBvcnRhbnQ7XG4gICAgYm9yZGVyOiAxcHggc29saWQ7XG4gIGB9XG5cbiAgJHtwcm9wcy5pc0dyYW51bGFyICYmXG4gIGNzc2BcbiAgICBib3JkZXItdG9wLWxlZnQtcmFkaXVzOiAwO1xuICAgIGJvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6IDA7XG4gICAgbWFyZ2luLWxlZnQ6IDA7XG4gIGB9XG5gO1xuXG5leHBvcnQgeyBnZXRUZXh0YXJlYVN0eWxlcywgZ2V0SW5wdXRTdHlsZXMgfTtcbiJdfQ== */"), " ", props.style === 'secondary' && /*#__PURE__*/css("background-color:", designTokens.colorNeutral95, ";border-color:", designTokens.colorSurface, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:getInputStyles;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRocm90dGxlZC1maWVsZC5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBbUZLIiwiZmlsZSI6InRocm90dGxlZC1maWVsZC5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBkZXNpZ25Ub2tlbnMgfSBmcm9tICdAY29tbWVyY2V0b29scy11aWtpdC9kZXNpZ24tc3lzdGVtJztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxudHlwZSBUVGV4dEFyZWFTdHlsZXNQcm9wcyA9IHtcbiAgc3R5bGU6ICdwcmltYXJ5JyB8ICdzZWNvbmRhcnknO1x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ZGVzaWduVG9rZW5zLmNvbG9yRXJyb3J9ICFpbXBvcnRhbnQ7XG4gICAgYm9yZGVyOiAxcHggc29saWQ7XG4gIGB9XG5cbiAgJHtwcm9wcy5pc0dyYW51bGFyICYmXG4gIGNzc2BcbiAgICBib3JkZXItdG9wLWxlZnQtcmFkaXVzOiAwO1xuICAgIGJvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6IDA7XG4gICAgbWFyZ2luLWxlZnQ6IDA7XG4gIGB9XG5gO1xuXG5leHBvcnQgeyBnZXRUZXh0YXJlYVN0eWxlcywgZ2V0SW5wdXRTdHlsZXMgfTtcbiJdfQ== */"), " ", props.disabled && /*#__PURE__*/css("cursor:not-allowed;background-color:", designTokens.colorAccent98, ";color:", designTokens.colorSolid, ";opacity:1;" + (process.env.NODE_ENV === "production" ? "" : ";label:getInputStyles;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRocm90dGxlZC1maWVsZC5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBeUZLIiwiZmlsZSI6InRocm90dGxlZC1maWVsZC5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBkZXNpZ25Ub2tlbnMgfSBmcm9tICdAY29tbWVyY2V0b29scy11aWtpdC9kZXNpZ24tc3lzdGVtJztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxudHlwZSBUVGV4dEFyZWFTdHlsZXNQcm9wcyA9IHtcbiAgc3R5bGU6ICdwcmltYXJ5JyB8ICdzZWNvbmRhcnknO1xuICBkaXNhYmxlZD86IGJvb2xlYW47XG4gIGlzVmFsaWQ/OiBib29sZWFuO1xufTtcblxudHlwZSBUSW5wdXRTdHlsZXNQcm9wcyA9IHtcbiAgc3R5bGU6ICdwcmltYXJ5JyB8ICdzZWNvbmRhcnknO1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XItdG9wLWxlZnQtcmFkaXVzOiAwO1xuICAgIGJvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6IDA7XG4gICAgbWFyZ2luLWxlZnQ6IDA7XG4gIGB9XG5gO1xuXG5leHBvcnQgeyBnZXRUZXh0YXJlYVN0eWxlcywgZ2V0SW5wdXRTdHlsZXMgfTtcbiJdfQ== */"), " ", !props.isValid && /*#__PURE__*/css("border-color:", designTokens.colorError, "!important;border:1px solid;" + (process.env.NODE_ENV === "production" ? "" : ";label:getInputStyles;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRocm90dGxlZC1maWVsZC5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBaUdLIiwiZmlsZSI6InRocm90dGxlZC1maWVsZC5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBkZXNpZ25Ub2tlbnMgfSBmcm9tICdAY29tbWVyY2V0b29scy11aWtpdC9kZXNpZ24tc3lzdGVtJztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxudHlwZSBUVGV4dEFyZWFTdHlsZXNQcm9wcyA9IHtcbiAgc3R5bGU6ICdwcmltYXJ5JyB8ICdzZWNvbmRhcnknO1xuICBkaXNhYmxlZD86IGJvb2xlYW47XG4gIGlzVmFsaWQ/OiBib29sZWFuO1xufTtcblxudHlwZSBUSW5wdXRTdHlsZXNQcm9wcyA9IHtcbiAgc3R5bGU6ICdwcmltYXJ5JyB8ICdzZWNvbmRhcnknO1xuICBkaXNhYmxlZD86IGJvb2xlYW47XG4gIGlzVmFsaWQ/OiBib29sZWFuO1xuICBpc0dyYW51bGFyPzogYm9vbGVhbjtcbn07XG5cbmNvbnN0IGdldFRleHRhcmVhU3R5bGVzID0gKHByb3BzOiBUVGV4dEFyZWFTdHlsZXNQcm9wcykgPT4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lsZXMgfTtcbiJdfQ== */"), " ", props.isGranular && _ref$g, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:getInputStyles;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRocm90dGxlZC1maWVsZC5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBNER3RCIsImZpbGUiOiJ0aHJvdHRsZWQtZmllbGQuc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgZGVzaWduVG9rZW5zIH0gZnJvbSAnQGNvbW1lcmNldG9vbHMtdWlraXQvZGVzaWduLXN5c3RlbSc7XG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbnR5cGUgVFRleHRBcmVhU3R5bGVzUHJvcHMgPSB7XG4gIHN0eWxlOiAncHJpbWFyeScgfCAnc2Vjb25kYXJ5JztcbiAgZGlzYWJsZWQ/OiBib29sZWFuO1xuICBpc1ZhbGlkPzogYm9vbGVhbjtcbn07XG5cbnR5cGUgVElucHV0U3R5bGVzUHJvcHMgPSB7XG4gIHN0eWxlOiAncHJpbWFyeScgfCAnc2Vjb25kYXJ5JztcbiAgZGlzYWJsZWQ/OiBib29sZWFuO1xuICBpc1ZhbGlkPzogYm9vbGVhbjtcbiAgaXNHcmFudWxhcj86IGJvb2xlYW47XG59O1xuXG5jb25zdCBnZXRUZXh0YXJlYVN0eWxlcyA9IChwcm9wczogVFRleHRBcmVhU3R5bGVzUHJvcHMpID0+IGNzc2BcbiAgdHJhbnNpdGlvbjogMC4ycyBlYXNlO1xuICBib3JkZXItcmFkaXVzOiAke2Rlc2lnblRva2Vucy5ib3JkZXJSYWRpdXNGb3JJbnB1dH07XG4gIGJvcmRlci1zdHlsZTogc29saWQ7XG4gIGJvcmRlci13aWR0aDogMXB4O1xuICBjb2xvcjogJHtkZXNpZ25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nblRva2Vucy5jb2xvclN1cmZhY2V9O1xuICBgfVxuXG4gICR7cHJvcHMuc3R5bGUgPT09ICdzZWNvbmRhcnknICYmXG4gIGNzc2BcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAke2Rlc2lnblRva2Vucy5jb2xvck5ldXRyYWw5NX07XG4gICAgYm9yZGVyLWNvbG9yOiAke2Rlc2lnblRva2Vucy5jb2xvclN1cmZhY2V9O1xuICBgfVxuXG4gICR7cHJvcHMuZGlzYWJsZWQgJiZcbiAgY3NzYFxuICAgIGN1cnNvcjogbm90LWFsbG93ZWQ7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogJHtkZXNpZ25Ub2tlbnMuY29sb3JBY2NlbnQ5OH07XG4gICAgY29sb3I6ICR7ZGVzaWduVG9rZW5zLmNvbG9yU29saWR9O1xuICAgIG9wYWNpdHk6IDE7XG4gIGB9XG5cbiAgJHshcHJvcHMuaXNWYWxpZCAmJlxuICBjc3NgXG4gICAgYm9yZGVyLWNvbG9yOiAke2Rlc2lnblRva2Vucy5jb2xvckVycm9yfSAhaW1wb3J0YW50O1xuICAgIGJvcmRlcjogMXB4IHNvbGlkO1xuICBgfVxuXG4gICR7cHJvcHMuaXNHcmFudWxhciAmJlxuICBjc3NgXG4gICAgYm9yZGVyLXRvcC1sZWZ0LXJhZGl1czogMDtcbiAgICBib3JkZXItYm90dG9tLWxlZnQtcmFkaXVzOiAwO1xuICAgIG1hcmdpbi1sZWZ0OiAwO1xuICBgfVxuYDtcblxuZXhwb3J0IHsgZ2V0VGV4dGFyZWFTdHlsZXMsIGdldElucHV0U3R5bGVzIH07XG4iXX0= */");
|
|
1129
1129
|
|
|
1130
|
-
function ownKeys$
|
|
1131
|
-
function _objectSpread$
|
|
1130
|
+
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; }
|
|
1131
|
+
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; }
|
|
1132
1132
|
function _callSuper$7(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$7() ? _Reflect$construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
1133
1133
|
function _isNativeReflectConstruct$7() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$7 = function () { return !!t; })(); }
|
|
1134
1134
|
let ThrottledField = /*#__PURE__*/function (_PureComponent) {
|
|
@@ -1207,7 +1207,7 @@ let ThrottledField = /*#__PURE__*/function (_PureComponent) {
|
|
|
1207
1207
|
}, {
|
|
1208
1208
|
key: "render",
|
|
1209
1209
|
value: function render() {
|
|
1210
|
-
const commonProps = _objectSpread$
|
|
1210
|
+
const commonProps = _objectSpread$1q(_objectSpread$1q({
|
|
1211
1211
|
value: this.state.draftValue,
|
|
1212
1212
|
autoComplete: this.props.autoComplete,
|
|
1213
1213
|
onChange: this.handleChange,
|
|
@@ -1226,13 +1226,13 @@ let ThrottledField = /*#__PURE__*/function (_PureComponent) {
|
|
|
1226
1226
|
htmlFor: inputId,
|
|
1227
1227
|
children: this.props.label
|
|
1228
1228
|
})
|
|
1229
|
-
}), this.props.as === 'textarea' ? jsx(Textarea, _objectSpread$
|
|
1229
|
+
}), this.props.as === 'textarea' ? jsx(Textarea, _objectSpread$1q(_objectSpread$1q({}, commonProps), {}, {
|
|
1230
1230
|
id: inputId,
|
|
1231
1231
|
css: getTextareaStyles(this.props),
|
|
1232
1232
|
rows: 1,
|
|
1233
1233
|
maxRows: this.props.autoSize ? undefined : 1,
|
|
1234
1234
|
cacheMeasurements: true
|
|
1235
|
-
})) : jsx("input", _objectSpread$
|
|
1235
|
+
})) : jsx("input", _objectSpread$1q(_objectSpread$1q({}, commonProps), {}, {
|
|
1236
1236
|
id: inputId,
|
|
1237
1237
|
ref: this.props.inputRef,
|
|
1238
1238
|
type: this.props.as,
|
|
@@ -1450,8 +1450,8 @@ SearchInput.defaultProps = {
|
|
|
1450
1450
|
};
|
|
1451
1451
|
var searchInput = flowRight(keepDisplayName$1(SearchInput), withMouseOverState$1, injectIntl)(SearchInput);
|
|
1452
1452
|
|
|
1453
|
-
function ownKeys$
|
|
1454
|
-
function _objectSpread$
|
|
1453
|
+
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; }
|
|
1454
|
+
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; }
|
|
1455
1455
|
const injectDataTablePaginationState = initialValues => Component => {
|
|
1456
1456
|
const WithDataTablePaginationState = props => {
|
|
1457
1457
|
const _usePaginationState = usePaginationState({
|
|
@@ -1464,7 +1464,7 @@ const injectDataTablePaginationState = initialValues => Component => {
|
|
|
1464
1464
|
key: initialValues?.tableSorting?.key,
|
|
1465
1465
|
order: initialValues?.tableSorting?.order
|
|
1466
1466
|
});
|
|
1467
|
-
return jsx(Component, _objectSpread$
|
|
1467
|
+
return jsx(Component, _objectSpread$1p(_objectSpread$1p({}, props), {}, {
|
|
1468
1468
|
dataTablePaginationState: {
|
|
1469
1469
|
page,
|
|
1470
1470
|
perPage,
|
|
@@ -1477,8 +1477,8 @@ const injectDataTablePaginationState = initialValues => Component => {
|
|
|
1477
1477
|
};
|
|
1478
1478
|
var injectDataTablePaginationState$1 = injectDataTablePaginationState;
|
|
1479
1479
|
|
|
1480
|
-
function ownKeys$
|
|
1481
|
-
function _objectSpread$
|
|
1480
|
+
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; }
|
|
1481
|
+
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; }
|
|
1482
1482
|
const injectNotifications = function () {
|
|
1483
1483
|
let propName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'notifications';
|
|
1484
1484
|
return Component => {
|
|
@@ -1493,7 +1493,7 @@ const injectNotifications = function () {
|
|
|
1493
1493
|
onActionError,
|
|
1494
1494
|
hideAllPageNotifications
|
|
1495
1495
|
};
|
|
1496
|
-
return jsx(Component, _objectSpread$
|
|
1496
|
+
return jsx(Component, _objectSpread$1o(_objectSpread$1o({}, props), {}, {
|
|
1497
1497
|
[propName]: notifications
|
|
1498
1498
|
}));
|
|
1499
1499
|
};
|
|
@@ -1503,23 +1503,23 @@ const injectNotifications = function () {
|
|
|
1503
1503
|
};
|
|
1504
1504
|
var injectNotifications$1 = injectNotifications;
|
|
1505
1505
|
|
|
1506
|
-
function ownKeys$
|
|
1507
|
-
function _objectSpread$
|
|
1506
|
+
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; }
|
|
1507
|
+
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; }
|
|
1508
1508
|
function isPropsMapper(mapProps) {
|
|
1509
1509
|
return typeof mapProps === 'function';
|
|
1510
1510
|
}
|
|
1511
1511
|
const withProps = mapProps => Component => {
|
|
1512
1512
|
const EnhancedWithProps = ownProps => {
|
|
1513
|
-
const enhancedProps = isPropsMapper(mapProps) ? _objectSpread$
|
|
1514
|
-
return jsx(Component, _objectSpread$
|
|
1513
|
+
const enhancedProps = isPropsMapper(mapProps) ? _objectSpread$1n(_objectSpread$1n({}, ownProps), mapProps(ownProps)) : _objectSpread$1n(_objectSpread$1n({}, ownProps), mapProps);
|
|
1514
|
+
return jsx(Component, _objectSpread$1n({}, enhancedProps));
|
|
1515
1515
|
};
|
|
1516
1516
|
EnhancedWithProps.displayName = wrapDisplayName$1(Component, 'withProps');
|
|
1517
1517
|
return EnhancedWithProps;
|
|
1518
1518
|
};
|
|
1519
1519
|
var withProps$1 = withProps;
|
|
1520
1520
|
|
|
1521
|
-
function ownKeys$
|
|
1522
|
-
function _objectSpread$
|
|
1521
|
+
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; }
|
|
1522
|
+
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; }
|
|
1523
1523
|
const useRedirectEffect = _ref => {
|
|
1524
1524
|
let goTo = _ref.goTo;
|
|
1525
1525
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -1539,31 +1539,31 @@ const defaultOptions$5 = {
|
|
|
1539
1539
|
skip: () => false
|
|
1540
1540
|
};
|
|
1541
1541
|
const withRedirectTo = options => Component => {
|
|
1542
|
-
const mergedOptions = _objectSpread$
|
|
1542
|
+
const mergedOptions = _objectSpread$1m(_objectSpread$1m({}, defaultOptions$5), options);
|
|
1543
1543
|
const WithRedirectTo = props => {
|
|
1544
1544
|
if (!mergedOptions.skip(props)) {
|
|
1545
1545
|
return jsx(RedirectTo, {
|
|
1546
1546
|
goTo: options.selectGoTo(props)
|
|
1547
1547
|
});
|
|
1548
1548
|
}
|
|
1549
|
-
return jsx(Component, _objectSpread$
|
|
1549
|
+
return jsx(Component, _objectSpread$1m({}, props));
|
|
1550
1550
|
};
|
|
1551
1551
|
WithRedirectTo.displayName = 'WithFirstStepRedirect';
|
|
1552
1552
|
return WithRedirectTo;
|
|
1553
1553
|
};
|
|
1554
1554
|
var withRedirectTo$1 = withRedirectTo;
|
|
1555
1555
|
|
|
1556
|
-
function ownKeys$
|
|
1557
|
-
function _objectSpread$
|
|
1556
|
+
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; }
|
|
1557
|
+
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; }
|
|
1558
1558
|
const defaultOptions$4 = {
|
|
1559
1559
|
propName: 'modalState',
|
|
1560
1560
|
isInitiallyOpen: false
|
|
1561
1561
|
};
|
|
1562
1562
|
const injectModalState$2 = options => Component => {
|
|
1563
|
-
const mergedOptions = _objectSpread$
|
|
1563
|
+
const mergedOptions = _objectSpread$1l(_objectSpread$1l({}, defaultOptions$4), options);
|
|
1564
1564
|
const WithModalState = props => {
|
|
1565
1565
|
const modalState = useModalState(mergedOptions.isInitiallyOpen);
|
|
1566
|
-
return jsx(Component, _objectSpread$
|
|
1566
|
+
return jsx(Component, _objectSpread$1l(_objectSpread$1l({}, props), {}, {
|
|
1567
1567
|
[mergedOptions.propName]: modalState
|
|
1568
1568
|
}));
|
|
1569
1569
|
};
|
|
@@ -1572,17 +1572,17 @@ const injectModalState$2 = options => Component => {
|
|
|
1572
1572
|
};
|
|
1573
1573
|
var injectModalState$3 = injectModalState$2;
|
|
1574
1574
|
|
|
1575
|
-
function ownKeys$
|
|
1576
|
-
function _objectSpread$
|
|
1575
|
+
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; }
|
|
1576
|
+
function _objectSpread$1k(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1k(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1k(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1577
1577
|
const defaultOptions$3 = {
|
|
1578
1578
|
propName: 'toggleState',
|
|
1579
1579
|
isInitiallyOpen: false
|
|
1580
1580
|
};
|
|
1581
1581
|
const injectModalState = options => Component => {
|
|
1582
|
-
const mergedOptions = _objectSpread$
|
|
1582
|
+
const mergedOptions = _objectSpread$1k(_objectSpread$1k({}, defaultOptions$3), options);
|
|
1583
1583
|
const WithToggleState = props => {
|
|
1584
1584
|
const toggleState = useToggleState(mergedOptions.isInitiallyOpen);
|
|
1585
|
-
return jsx(Component, _objectSpread$
|
|
1585
|
+
return jsx(Component, _objectSpread$1k(_objectSpread$1k({}, props), {}, {
|
|
1586
1586
|
[mergedOptions.propName]: toggleState
|
|
1587
1587
|
}));
|
|
1588
1588
|
};
|
|
@@ -1591,8 +1591,8 @@ const injectModalState = options => Component => {
|
|
|
1591
1591
|
};
|
|
1592
1592
|
var injectModalState$1 = injectModalState;
|
|
1593
1593
|
|
|
1594
|
-
function ownKeys$
|
|
1595
|
-
function _objectSpread$
|
|
1594
|
+
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; }
|
|
1595
|
+
function _objectSpread$1j(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1j(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$1j(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1596
1596
|
const defaultOptions$2 = {
|
|
1597
1597
|
storageType: 'local',
|
|
1598
1598
|
segregateByUser: true
|
|
@@ -1610,7 +1610,7 @@ const getStorage = storageType => storageType === 'session' ? sessionStorage : l
|
|
|
1610
1610
|
const isNil = value => typeof value === 'undefined' || value === null;
|
|
1611
1611
|
const useStorage = (storageKey, initialStorageValue, options) => {
|
|
1612
1612
|
var _context;
|
|
1613
|
-
const mergedOptions = _objectSpread$
|
|
1613
|
+
const mergedOptions = _objectSpread$1j(_objectSpread$1j({}, defaultOptions$2), options);
|
|
1614
1614
|
const userId = useApplicationContext(context => context.user?.id);
|
|
1615
1615
|
const scopedStorageKey = _filterInstanceProperty(_context = [mergedOptions.segregateByUser && userId, storageKey]).call(_context, Boolean).join('/');
|
|
1616
1616
|
const readFromStorage = useCallback(() => {
|
|
@@ -1655,8 +1655,8 @@ const useStorage = (storageKey, initialStorageValue, options) => {
|
|
|
1655
1655
|
};
|
|
1656
1656
|
var useStorage$1 = useStorage;
|
|
1657
1657
|
|
|
1658
|
-
function ownKeys$
|
|
1659
|
-
function _objectSpread$
|
|
1658
|
+
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; }
|
|
1659
|
+
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; }
|
|
1660
1660
|
const defaultOptions$1 = {
|
|
1661
1661
|
propName: 'storage',
|
|
1662
1662
|
storageKey: '',
|
|
@@ -1669,7 +1669,7 @@ const injectStorage = options => WrappedComponent => {
|
|
|
1669
1669
|
* Options are being merged by spreading as destructuring and defaulting in
|
|
1670
1670
|
* argument position does not allow passing specification of option(s).
|
|
1671
1671
|
*/
|
|
1672
|
-
const mergedOptions = _objectSpread$
|
|
1672
|
+
const mergedOptions = _objectSpread$1i(_objectSpread$1i({}, defaultOptions$1), options);
|
|
1673
1673
|
const WithStorage = props => {
|
|
1674
1674
|
const _useStorage = useStorage$1(mergedOptions.storageKey(props), mergedOptions.initalStorageValue, mergedOptions.options),
|
|
1675
1675
|
_useStorage2 = _slicedToArray(_useStorage, 3),
|
|
@@ -1683,7 +1683,7 @@ const injectStorage = options => WrappedComponent => {
|
|
|
1683
1683
|
readFromStorage
|
|
1684
1684
|
}
|
|
1685
1685
|
};
|
|
1686
|
-
return jsx(WrappedComponent, _objectSpread$
|
|
1686
|
+
return jsx(WrappedComponent, _objectSpread$1i(_objectSpread$1i({}, props), storageProp));
|
|
1687
1687
|
};
|
|
1688
1688
|
WithStorage.displayName = wrapDisplayName$1(WrappedComponent, 'WithStorage');
|
|
1689
1689
|
return WithStorage;
|
|
@@ -1728,8 +1728,8 @@ function useFormatLocalizedFieldToString() {
|
|
|
1728
1728
|
return formatLocalizedFieldToString;
|
|
1729
1729
|
}
|
|
1730
1730
|
|
|
1731
|
-
function ownKeys$
|
|
1732
|
-
function _objectSpread$
|
|
1731
|
+
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; }
|
|
1732
|
+
function _objectSpread$1h(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1h(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1h(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1733
1733
|
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 } } } };
|
|
1734
1734
|
const MC_RESOURCES_WITH_KEYS = {
|
|
1735
1735
|
ASSOCIATE_ROLE: 'ASSOCIATE_ROLE',
|
|
@@ -1804,7 +1804,7 @@ const DEFAULT_SKIP_RESOURCE_TYPES_VARIABLES = {
|
|
|
1804
1804
|
[BASE_SKIP_RESOURCE_TYPES_VARIABLES.ZONE]: true
|
|
1805
1805
|
};
|
|
1806
1806
|
const getSkipVariables = resourceType => {
|
|
1807
|
-
return _objectSpread$
|
|
1807
|
+
return _objectSpread$1h(_objectSpread$1h({}, DEFAULT_SKIP_RESOURCE_TYPES_VARIABLES), {}, {
|
|
1808
1808
|
[BASE_SKIP_RESOURCE_TYPES_VARIABLES[resourceType]]: false
|
|
1809
1809
|
});
|
|
1810
1810
|
};
|
|
@@ -1829,7 +1829,7 @@ const getQueryVariables = _ref2 => {
|
|
|
1829
1829
|
fieldValue,
|
|
1830
1830
|
id
|
|
1831
1831
|
});
|
|
1832
|
-
return _objectSpread$
|
|
1832
|
+
return _objectSpread$1h({
|
|
1833
1833
|
where
|
|
1834
1834
|
}, skipVariables);
|
|
1835
1835
|
};
|
|
@@ -1863,8 +1863,8 @@ const usePrevious = value => {
|
|
|
1863
1863
|
};
|
|
1864
1864
|
var usePrevious$1 = usePrevious;
|
|
1865
1865
|
|
|
1866
|
-
function ownKeys$
|
|
1867
|
-
function _objectSpread$
|
|
1866
|
+
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; }
|
|
1867
|
+
function _objectSpread$1g(e) { for (var r = 1; r < arguments.length; r++) { var _context7, _context8; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context7 = ownKeys$1g(Object(t), !0)).call(_context7, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context8 = ownKeys$1g(Object(t))).call(_context8, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1868
1868
|
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 } } } };
|
|
1869
1869
|
const filterStoresOutdatedDanglingProductSelections = storesQueryResult => {
|
|
1870
1870
|
var _context, _context2;
|
|
@@ -1875,7 +1875,7 @@ const filterStoresOutdatedDanglingProductSelections = storesQueryResult => {
|
|
|
1875
1875
|
offset: storesQueryResult.offset,
|
|
1876
1876
|
results: ((_context = storesQueryResult.results) == null ? void 0 : _bindInstanceProperty(_context2 = Function.call).call(_context2, _mapInstanceProperty(_context), _context))?.(store => {
|
|
1877
1877
|
var _context3, _context4;
|
|
1878
|
-
return _objectSpread$
|
|
1878
|
+
return _objectSpread$1g(_objectSpread$1g({}, store), {}, {
|
|
1879
1879
|
productSelections: ((_context3 = store.productSelections) == null ? void 0 : _bindInstanceProperty(_context4 = Function.call).call(_context4, _filterInstanceProperty(_context3), _context3))?.(productSelectionRef => Boolean(productSelectionRef.productSelection))
|
|
1880
1880
|
});
|
|
1881
1881
|
})
|
|
@@ -1883,7 +1883,7 @@ const filterStoresOutdatedDanglingProductSelections = storesQueryResult => {
|
|
|
1883
1883
|
};
|
|
1884
1884
|
const createQueryVariables$6 = ownProps => {
|
|
1885
1885
|
var _context5, _context6;
|
|
1886
|
-
return _objectSpread$
|
|
1886
|
+
return _objectSpread$1g(_objectSpread$1g(_objectSpread$1g({
|
|
1887
1887
|
limit: ownProps.limit,
|
|
1888
1888
|
offset: ownProps.offset,
|
|
1889
1889
|
sort: _sortInstanceProperty(ownProps)
|
|
@@ -1936,8 +1936,8 @@ const useStoresListFetcher = props => {
|
|
|
1936
1936
|
};
|
|
1937
1937
|
var useStoresListFetcher$1 = useStoresListFetcher;
|
|
1938
1938
|
|
|
1939
|
-
function ownKeys$
|
|
1940
|
-
function _objectSpread$
|
|
1939
|
+
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; }
|
|
1940
|
+
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; }
|
|
1941
1941
|
const createSearchQuery = (searchBy, searchTerm, language) => {
|
|
1942
1942
|
if (searchBy === 'key/name') {
|
|
1943
1943
|
return {
|
|
@@ -1956,7 +1956,7 @@ const createSearchQuery = (searchBy, searchTerm, language) => {
|
|
|
1956
1956
|
};
|
|
1957
1957
|
} else {
|
|
1958
1958
|
return {
|
|
1959
|
-
fullTextPrefix: _objectSpread$
|
|
1959
|
+
fullTextPrefix: _objectSpread$1f(_objectSpread$1f({
|
|
1960
1960
|
field: searchBy
|
|
1961
1961
|
}, searchBy === 'name' ? {
|
|
1962
1962
|
language: language
|
|
@@ -2032,7 +2032,7 @@ const useStoresSearchFetcher = () => {
|
|
|
2032
2032
|
});
|
|
2033
2033
|
setIsLoading(false);
|
|
2034
2034
|
} catch (error) {
|
|
2035
|
-
setStoreSearchResults(prev => _objectSpread$
|
|
2035
|
+
setStoreSearchResults(prev => _objectSpread$1f(_objectSpread$1f({}, prev), {}, {
|
|
2036
2036
|
hits: [],
|
|
2037
2037
|
total: 0
|
|
2038
2038
|
}));
|
|
@@ -2043,7 +2043,7 @@ const useStoresSearchFetcher = () => {
|
|
|
2043
2043
|
fetchStoreSearchResults,
|
|
2044
2044
|
storeSearchResults,
|
|
2045
2045
|
isLoading,
|
|
2046
|
-
resetStoreSearchResults: () => setStoreSearchResults(prev => _objectSpread$
|
|
2046
|
+
resetStoreSearchResults: () => setStoreSearchResults(prev => _objectSpread$1f(_objectSpread$1f({}, prev), {}, {
|
|
2047
2047
|
hits: [],
|
|
2048
2048
|
total: 0
|
|
2049
2049
|
}))
|
|
@@ -2134,8 +2134,8 @@ const useStoreKeysInDataFences = _ref => {
|
|
|
2134
2134
|
};
|
|
2135
2135
|
var useStoreKeysInDataFences$1 = useStoreKeysInDataFences;
|
|
2136
2136
|
|
|
2137
|
-
function ownKeys$
|
|
2138
|
-
function _objectSpread$
|
|
2137
|
+
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; }
|
|
2138
|
+
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; }
|
|
2139
2139
|
const TEN_MINUTES_IN_MS = 600000;
|
|
2140
2140
|
const defaultOptions = {
|
|
2141
2141
|
reminderInterval: REMINDER_OPTION_1_DAY,
|
|
@@ -2163,7 +2163,7 @@ const useHasReminderExpired = readReminderInterval => {
|
|
|
2163
2163
|
};
|
|
2164
2164
|
const usePersistedReminder = function () {
|
|
2165
2165
|
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
2166
|
-
const mergedOptions = _objectSpread$
|
|
2166
|
+
const mergedOptions = _objectSpread$1e(_objectSpread$1e({}, defaultOptions), options);
|
|
2167
2167
|
const _useStorage = useStorage$1(mergedOptions.storageKey, null),
|
|
2168
2168
|
_useStorage2 = _slicedToArray(_useStorage, 3),
|
|
2169
2169
|
initialChosenReminderInterval = _useStorage2[0],
|
|
@@ -2228,8 +2228,8 @@ var messages$O = defineMessages({
|
|
|
2228
2228
|
}
|
|
2229
2229
|
});
|
|
2230
2230
|
|
|
2231
|
-
function ownKeys$
|
|
2232
|
-
function _objectSpread$
|
|
2231
|
+
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; }
|
|
2232
|
+
function _objectSpread$1d(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1d(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1d(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2233
2233
|
const LinkToProfile = props => {
|
|
2234
2234
|
return jsx(Link, {
|
|
2235
2235
|
to: "/account/profile",
|
|
@@ -2249,7 +2249,7 @@ const NotificationText = () => jsxs(Spacings.Stack, {
|
|
|
2249
2249
|
isBold: true,
|
|
2250
2250
|
intlMessage: messages$O.profileUpdated
|
|
2251
2251
|
}), jsx(Text.Body, {
|
|
2252
|
-
intlMessage: _objectSpread$
|
|
2252
|
+
intlMessage: _objectSpread$1d(_objectSpread$1d({}, messages$O.addMoreInformation), {}, {
|
|
2253
2253
|
values: {
|
|
2254
2254
|
newline: getNewLine
|
|
2255
2255
|
}
|
|
@@ -2258,7 +2258,7 @@ const NotificationText = () => jsxs(Spacings.Stack, {
|
|
|
2258
2258
|
}), jsx(Spacings.Stack, {
|
|
2259
2259
|
scale: "xs",
|
|
2260
2260
|
children: jsx(Text.Body, {
|
|
2261
|
-
intlMessage: _objectSpread$
|
|
2261
|
+
intlMessage: _objectSpread$1d(_objectSpread$1d({}, messages$O.informationAndProfileLink), {}, {
|
|
2262
2262
|
values: {
|
|
2263
2263
|
newline: getNewLine,
|
|
2264
2264
|
link: getLinkToProfile
|
|
@@ -2424,8 +2424,8 @@ const useDebouncedPromiseCallback = (promiseCallback, wait) =>
|
|
|
2424
2424
|
useCallback(debounce(promiseCallback, wait), [promiseCallback]);
|
|
2425
2425
|
var useDebouncedPromiseCallback$1 = useDebouncedPromiseCallback;
|
|
2426
2426
|
|
|
2427
|
-
function ownKeys$
|
|
2428
|
-
function _objectSpread$
|
|
2427
|
+
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; }
|
|
2428
|
+
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; }
|
|
2429
2429
|
const prepareMutableColumnProps = (columnConfig, mutableColumnProps) => {
|
|
2430
2430
|
const updatedColumnProps = {};
|
|
2431
2431
|
_forEachInstanceProperty(mutableColumnProps).call(mutableColumnProps, columnProp => {
|
|
@@ -2445,14 +2445,14 @@ const retrieveColumnsWithCachedConfiguration = _ref => {
|
|
|
2445
2445
|
mutableColumnProps = _ref.mutableColumnProps;
|
|
2446
2446
|
return _mapInstanceProperty(_context = _filterInstanceProperty(cachedVisibleTableConfiguration).call(cachedVisibleTableConfiguration, cachedColumn => _findInstanceProperty(allAvailableColumnsConfiguration).call(allAvailableColumnsConfiguration, initialConfig => initialConfig.key === cachedColumn.key))).call(_context, cachedConfig => {
|
|
2447
2447
|
const initialColumnConfig = _findInstanceProperty(allAvailableColumnsConfiguration).call(allAvailableColumnsConfiguration, initialConfig => initialConfig.key === cachedConfig.key);
|
|
2448
|
-
return _objectSpread$
|
|
2448
|
+
return _objectSpread$1c(_objectSpread$1c({}, initialColumnConfig), prepareMutableColumnProps(cachedConfig, mutableColumnProps));
|
|
2449
2449
|
});
|
|
2450
2450
|
};
|
|
2451
2451
|
const handleCacheUpdate = _ref2 => {
|
|
2452
2452
|
let update = _ref2.update,
|
|
2453
2453
|
cachedVisibleTableConfiguration = _ref2.cachedVisibleTableConfiguration,
|
|
2454
2454
|
updateCachedTableConfiguration = _ref2.updateCachedTableConfiguration;
|
|
2455
|
-
return updateCachedTableConfiguration(_objectSpread$
|
|
2455
|
+
return updateCachedTableConfiguration(_objectSpread$1c(_objectSpread$1c({}, pick(cachedVisibleTableConfiguration, ['columnsConfig', 'displaySettings'])), update));
|
|
2456
2456
|
};
|
|
2457
2457
|
|
|
2458
2458
|
// Signature:
|
|
@@ -2481,7 +2481,7 @@ const usePersistedTableConfiguration = props => {
|
|
|
2481
2481
|
return {
|
|
2482
2482
|
columnsConfig: _mapInstanceProperty(initialVisibleColumnKeys).call(initialVisibleColumnKeys, visibleColumnKey => {
|
|
2483
2483
|
const visibleColumnConfig = _findInstanceProperty(allAvailableColumnsConfiguration).call(allAvailableColumnsConfiguration, columnConfig => columnConfig.key === visibleColumnKey);
|
|
2484
|
-
return _objectSpread$
|
|
2484
|
+
return _objectSpread$1c({
|
|
2485
2485
|
key: visibleColumnKey
|
|
2486
2486
|
}, prepareMutableColumnProps(visibleColumnConfig, mutableColumnProps));
|
|
2487
2487
|
}),
|
|
@@ -2544,14 +2544,14 @@ const useProductSelectionsTotalFetcher = props => {
|
|
|
2544
2544
|
};
|
|
2545
2545
|
var useProductSelectionsTotalFetcher$1 = useProductSelectionsTotalFetcher;
|
|
2546
2546
|
|
|
2547
|
-
function ownKeys$
|
|
2548
|
-
function _objectSpread$
|
|
2547
|
+
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; }
|
|
2548
|
+
function _objectSpread$1b(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1b(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$1b(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2549
2549
|
|
|
2550
2550
|
// eslint-disable-next-line import/prefer-default-export
|
|
2551
2551
|
const convertProductSelectionsFromGraphQl = productSelections => {
|
|
2552
2552
|
var _context;
|
|
2553
|
-
return productSelections?.results && _objectSpread$
|
|
2554
|
-
results: _mapInstanceProperty(_context = productSelections.results).call(_context, productSelection => _objectSpread$
|
|
2553
|
+
return productSelections?.results && _objectSpread$1b(_objectSpread$1b({}, productSelections), {}, {
|
|
2554
|
+
results: _mapInstanceProperty(_context = productSelections.results).call(_context, productSelection => _objectSpread$1b({}, applyTransformedLocalizedFields(productSelection, [{
|
|
2555
2555
|
from: 'nameAllLocales',
|
|
2556
2556
|
to: 'name'
|
|
2557
2557
|
}])))
|
|
@@ -4091,8 +4091,8 @@ const getData = (code, field) => {
|
|
|
4091
4091
|
};
|
|
4092
4092
|
const getFractionDigit = code => getData(code, 'fractionDigit');
|
|
4093
4093
|
|
|
4094
|
-
function ownKeys$
|
|
4095
|
-
function _objectSpread$
|
|
4094
|
+
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; }
|
|
4095
|
+
function _objectSpread$1a(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1a(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1a(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4096
4096
|
function formatMoneyRangeValue(value, intl) {
|
|
4097
4097
|
if (value.from === value.to) return formatMoneyValue(value.from, value.currency, intl);
|
|
4098
4098
|
if (value.from && value.to) return `${formatMoneyValue(value.from, value.currency, intl)} -
|
|
@@ -4102,7 +4102,7 @@ function formatMoneyRangeValue(value, intl) {
|
|
|
4102
4102
|
return '';
|
|
4103
4103
|
}
|
|
4104
4104
|
function formatMoneyValue(amount, currency, intl) {
|
|
4105
|
-
return formatMoney$2(_objectSpread$
|
|
4105
|
+
return formatMoney$2(_objectSpread$1a({
|
|
4106
4106
|
centAmount: amount,
|
|
4107
4107
|
fractionDigits: getFractionDigit(currency)
|
|
4108
4108
|
}, currency ? {
|
|
@@ -4118,7 +4118,7 @@ function getFractionedAmount(moneyValue) {
|
|
|
4118
4118
|
return amount / 10 ** fractionDigits;
|
|
4119
4119
|
}
|
|
4120
4120
|
function formatMoney$2(moneyValue, intl, options) {
|
|
4121
|
-
return intl.formatNumber(moneyValue.fractionedAmount ?? getFractionedAmount(moneyValue), _objectSpread$
|
|
4121
|
+
return intl.formatNumber(moneyValue.fractionedAmount ?? getFractionedAmount(moneyValue), _objectSpread$1a({
|
|
4122
4122
|
style: 'currency',
|
|
4123
4123
|
currency: moneyValue.currencyCode,
|
|
4124
4124
|
minimumFractionDigits: moneyValue.fractionDigits
|
|
@@ -4392,8 +4392,8 @@ const getPrefixSearchBounds = input => {
|
|
|
4392
4392
|
var getPrefixSearchBounds$1 = getPrefixSearchBounds;
|
|
4393
4393
|
|
|
4394
4394
|
const _excluded$f = ["action"];
|
|
4395
|
-
function ownKeys$
|
|
4396
|
-
function _objectSpread$
|
|
4395
|
+
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; }
|
|
4396
|
+
function _objectSpread$19(e) { for (var r = 1; r < arguments.length; r++) { var _context0, _context1; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context0 = ownKeys$19(Object(t), !0)).call(_context0, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context1 = ownKeys$19(Object(t))).call(_context1, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4397
4397
|
|
|
4398
4398
|
/**
|
|
4399
4399
|
* Checks if a value is a LocalizedString
|
|
@@ -4415,7 +4415,7 @@ const getIsLocalizedString = maybeLocalizedString => {
|
|
|
4415
4415
|
*/
|
|
4416
4416
|
const transformCustomFieldsRawToCustomFields = customFieldsRaw => {
|
|
4417
4417
|
if (!customFieldsRaw || customFieldsRaw.length === 0) return null;
|
|
4418
|
-
return _reduceInstanceProperty(customFieldsRaw).call(customFieldsRaw, (customFields, customField) => _objectSpread$
|
|
4418
|
+
return _reduceInstanceProperty(customFieldsRaw).call(customFieldsRaw, (customFields, customField) => _objectSpread$19(_objectSpread$19({}, customFields), {}, {
|
|
4419
4419
|
[customField.name]: customField.value
|
|
4420
4420
|
}), {});
|
|
4421
4421
|
};
|
|
@@ -4439,7 +4439,7 @@ function transformLocalizedFieldsForCategory(category) {
|
|
|
4439
4439
|
const transformedData = applyTransformedLocalizedFields(category, transformationOptions);
|
|
4440
4440
|
const parent = category.parent ? transformLocalizedFieldsForCategory(category.parent) : null;
|
|
4441
4441
|
const ancestors = category.ancestors ? _mapInstanceProperty(_context = category.ancestors).call(_context, ancestor => transformLocalizedFieldsForCategory(ancestor)) : null;
|
|
4442
|
-
return _objectSpread$
|
|
4442
|
+
return _objectSpread$19(_objectSpread$19(_objectSpread$19({}, transformedData), parent ? {
|
|
4443
4443
|
parent
|
|
4444
4444
|
} : {}), ancestors ? {
|
|
4445
4445
|
ancestors
|
|
@@ -4532,7 +4532,7 @@ const formatMoney = valueType => money => {
|
|
|
4532
4532
|
case 'fixed':
|
|
4533
4533
|
case 'fixedCart':
|
|
4534
4534
|
return {
|
|
4535
|
-
[money.type]: _objectSpread$
|
|
4535
|
+
[money.type]: _objectSpread$19({
|
|
4536
4536
|
centAmount: money.centAmount,
|
|
4537
4537
|
currencyCode: money.currencyCode
|
|
4538
4538
|
}, money.type === PRECISION_TYPES.highPrecision && {
|
|
@@ -4714,7 +4714,7 @@ const convertAction = (actionName, actionPayload) => {
|
|
|
4714
4714
|
case 'addAttributeDefinition':
|
|
4715
4715
|
return {
|
|
4716
4716
|
[actionName]: {
|
|
4717
|
-
attributeDefinition: _objectSpread$
|
|
4717
|
+
attributeDefinition: _objectSpread$19(_objectSpread$19({}, actionPayload.attribute), {}, {
|
|
4718
4718
|
label: transformLocalizedStringToLocalizedField(actionPayload.attribute.label),
|
|
4719
4719
|
inputTip: transformLocalizedStringToLocalizedField(actionPayload.attribute.inputTip),
|
|
4720
4720
|
type: createAttributeTypeValue(actionPayload.attribute)
|
|
@@ -4810,7 +4810,7 @@ const convertAction = (actionName, actionPayload) => {
|
|
|
4810
4810
|
return {
|
|
4811
4811
|
[actionName]: {
|
|
4812
4812
|
attributeName: actionPayload.attributeName,
|
|
4813
|
-
value: _objectSpread$
|
|
4813
|
+
value: _objectSpread$19(_objectSpread$19({}, actionPayload.value), {}, {
|
|
4814
4814
|
label: transformLocalizedStringToLocalizedField(actionPayload.value.label)
|
|
4815
4815
|
})
|
|
4816
4816
|
}
|
|
@@ -4819,7 +4819,7 @@ const convertAction = (actionName, actionPayload) => {
|
|
|
4819
4819
|
return {
|
|
4820
4820
|
[actionName]: {
|
|
4821
4821
|
attributeName: actionPayload.attributeName,
|
|
4822
|
-
newValue: _objectSpread$
|
|
4822
|
+
newValue: _objectSpread$19(_objectSpread$19({}, actionPayload.newValue), {}, {
|
|
4823
4823
|
label: transformLocalizedStringToLocalizedField(actionPayload.newValue.label)
|
|
4824
4824
|
})
|
|
4825
4825
|
}
|
|
@@ -4846,7 +4846,7 @@ const convertAction = (actionName, actionPayload) => {
|
|
|
4846
4846
|
name: transformLocalizedStringToLocalizedField(actionPayload.name),
|
|
4847
4847
|
taxCategory: actionPayload.taxCategory,
|
|
4848
4848
|
money: {
|
|
4849
|
-
[actionPayload.money.type]: _objectSpread$
|
|
4849
|
+
[actionPayload.money.type]: _objectSpread$19({
|
|
4850
4850
|
centAmount: actionPayload.money.centAmount,
|
|
4851
4851
|
currencyCode: actionPayload.money.currencyCode
|
|
4852
4852
|
}, actionPayload.money.type === PRECISION_TYPES.highPrecision && {
|
|
@@ -4874,7 +4874,7 @@ const convertAction = (actionName, actionPayload) => {
|
|
|
4874
4874
|
return {
|
|
4875
4875
|
[actionName]: {
|
|
4876
4876
|
target: {
|
|
4877
|
-
[actionPayload.target.type]: _objectSpread$
|
|
4877
|
+
[actionPayload.target.type]: _objectSpread$19(_objectSpread$19(_objectSpread$19({}, omit(actionPayload.target, ['type', '__typename'])), actionPayload.target.triggerPattern && {
|
|
4878
4878
|
triggerPattern: _mapInstanceProperty(_context6 = actionPayload.target.triggerPattern).call(_context6, pattern => ({
|
|
4879
4879
|
[pattern.type]: omit(pattern, ['type', '__typename'])
|
|
4880
4880
|
}))
|
|
@@ -4909,8 +4909,8 @@ const convertAction = (actionName, actionPayload) => {
|
|
|
4909
4909
|
fields: customFields
|
|
4910
4910
|
} : null;
|
|
4911
4911
|
return {
|
|
4912
|
-
[actionName]: _objectSpread$
|
|
4913
|
-
address: _objectSpread$
|
|
4912
|
+
[actionName]: _objectSpread$19(_objectSpread$19({}, actionPayload), {}, {
|
|
4913
|
+
address: _objectSpread$19(_objectSpread$19({}, omit(actionPayload.address, ['__typename'])), {}, {
|
|
4914
4914
|
custom
|
|
4915
4915
|
})
|
|
4916
4916
|
})
|
|
@@ -5018,8 +5018,8 @@ function omitDeep(obj, fieldsToOmit) {
|
|
|
5018
5018
|
return originalOmitDeep(obj, fieldsToOmit);
|
|
5019
5019
|
}
|
|
5020
5020
|
|
|
5021
|
-
function ownKeys$
|
|
5022
|
-
function _objectSpread$
|
|
5021
|
+
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; }
|
|
5022
|
+
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; }
|
|
5023
5023
|
function getPriceChannelName(price) {
|
|
5024
5024
|
return price.channel?.name ?? price.channel?.key ?? null;
|
|
5025
5025
|
}
|
|
@@ -5031,11 +5031,11 @@ function getDiscountValue(price) {
|
|
|
5031
5031
|
} else if (price.value?.type === PRECISION_TYPES.highPrecision && price.discounted?.value?.type === PRECISION_TYPES.centPrecision) {
|
|
5032
5032
|
fractionedAmount = getFractionedAmount(price.value) - getFractionedAmount(price.discounted.value);
|
|
5033
5033
|
}
|
|
5034
|
-
return price.discounted ? _objectSpread$
|
|
5034
|
+
return price.discounted ? _objectSpread$18(_objectSpread$18({}, price.value), {}, {
|
|
5035
5035
|
fractionedAmount,
|
|
5036
5036
|
centAmount: price.value.centAmount - price.discounted.value.centAmount,
|
|
5037
5037
|
preciseAmount
|
|
5038
|
-
}) : _objectSpread$
|
|
5038
|
+
}) : _objectSpread$18(_objectSpread$18({}, price.value), {}, {
|
|
5039
5039
|
centAmount: 0
|
|
5040
5040
|
});
|
|
5041
5041
|
}
|
|
@@ -5066,7 +5066,7 @@ function getNetUnitPrice(_ref) {
|
|
|
5066
5066
|
}
|
|
5067
5067
|
let preciseAmount;
|
|
5068
5068
|
if (price.value?.type === PRECISION_TYPES.highPrecision) preciseAmount = price.value.preciseAmount / (1 + taxRate.amount);
|
|
5069
|
-
return _objectSpread$
|
|
5069
|
+
return _objectSpread$18(_objectSpread$18({}, price.value), {}, {
|
|
5070
5070
|
centAmount,
|
|
5071
5071
|
preciseAmount
|
|
5072
5072
|
});
|
|
@@ -5082,7 +5082,7 @@ function getNetUnitPrice(_ref) {
|
|
|
5082
5082
|
}
|
|
5083
5083
|
let preciseAmount;
|
|
5084
5084
|
if (price.value?.type === PRECISION_TYPES.highPrecision) preciseAmount = price.value.preciseAmount / (1 + lineItem.taxRate.amount);
|
|
5085
|
-
return _objectSpread$
|
|
5085
|
+
return _objectSpread$18(_objectSpread$18({}, price.value), {}, {
|
|
5086
5086
|
centAmount,
|
|
5087
5087
|
preciseAmount
|
|
5088
5088
|
});
|
|
@@ -5094,7 +5094,7 @@ function getMinimumPricesByCurrencyCode(prices) {
|
|
|
5094
5094
|
const currencyCode = price.value.currencyCode;
|
|
5095
5095
|
const fractionedAmount = getFractionedAmount(price.value);
|
|
5096
5096
|
if (currencyCode && !isNil$1(fractionedAmount)) {
|
|
5097
|
-
if (!minPrices[currencyCode] || fractionedAmount < getFractionedAmount(minPrices[currencyCode])) return _objectSpread$
|
|
5097
|
+
if (!minPrices[currencyCode] || fractionedAmount < getFractionedAmount(minPrices[currencyCode])) return _objectSpread$18(_objectSpread$18({}, minPrices), {}, {
|
|
5098
5098
|
[currencyCode]: price.value
|
|
5099
5099
|
});
|
|
5100
5100
|
}
|
|
@@ -5103,8 +5103,8 @@ function getMinimumPricesByCurrencyCode(prices) {
|
|
|
5103
5103
|
return _Object$values(minPricesByCurrency);
|
|
5104
5104
|
}
|
|
5105
5105
|
|
|
5106
|
-
function ownKeys$
|
|
5107
|
-
function _objectSpread$
|
|
5106
|
+
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; }
|
|
5107
|
+
function _objectSpread$17(e) { for (var r = 1; r < arguments.length; r++) { var _context5, _context6; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context5 = ownKeys$17(Object(t), !0)).call(_context5, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context6 = ownKeys$17(Object(t))).call(_context6, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5108
5108
|
const transformCustomFieldFromGraphQLResponse = resource => {
|
|
5109
5109
|
var _context, _context4;
|
|
5110
5110
|
return {
|
|
@@ -5119,14 +5119,14 @@ const transformCustomFieldFromGraphQLResponse = resource => {
|
|
|
5119
5119
|
return {
|
|
5120
5120
|
name: fieldDefinition.name,
|
|
5121
5121
|
required: fieldDefinition.required,
|
|
5122
|
-
type: fieldDefinition.type?.elementType?.name === 'LocalizedEnum' ? _objectSpread$
|
|
5123
|
-
elementType: _objectSpread$
|
|
5122
|
+
type: fieldDefinition.type?.elementType?.name === 'LocalizedEnum' ? _objectSpread$17(_objectSpread$17({}, fieldDefinition.type), {}, {
|
|
5123
|
+
elementType: _objectSpread$17(_objectSpread$17({}, fieldDefinition.type.elementType), {}, {
|
|
5124
5124
|
values: _mapInstanceProperty(_context2 = _valuesInstanceProperty(fieldDefinition.type.elementType)).call(_context2, value => ({
|
|
5125
5125
|
key: value.key,
|
|
5126
5126
|
label: transformLocalizedFieldToLocalizedString(value.labelAllLocales)
|
|
5127
5127
|
}))
|
|
5128
5128
|
})
|
|
5129
|
-
}) : fieldDefinition.type?.name === 'LocalizedEnum' ? _objectSpread$
|
|
5129
|
+
}) : fieldDefinition.type?.name === 'LocalizedEnum' ? _objectSpread$17(_objectSpread$17({}, fieldDefinition.type), {}, {
|
|
5130
5130
|
values: _mapInstanceProperty(_context3 = _valuesInstanceProperty(fieldDefinition.type)).call(_context3, value => ({
|
|
5131
5131
|
key: value.key,
|
|
5132
5132
|
label: transformLocalizedFieldToLocalizedString(value.labelAllLocales)
|
|
@@ -5137,7 +5137,7 @@ const transformCustomFieldFromGraphQLResponse = resource => {
|
|
|
5137
5137
|
})
|
|
5138
5138
|
}
|
|
5139
5139
|
},
|
|
5140
|
-
fields: _reduceInstanceProperty(_context4 = resource.custom.customFieldsRaw).call(_context4, (fields, customField) => _objectSpread$
|
|
5140
|
+
fields: _reduceInstanceProperty(_context4 = resource.custom.customFieldsRaw).call(_context4, (fields, customField) => _objectSpread$17(_objectSpread$17({}, fields), {}, {
|
|
5141
5141
|
[customField.name]: customField.value
|
|
5142
5142
|
}), {})
|
|
5143
5143
|
};
|
|
@@ -5149,7 +5149,7 @@ const convertProductSelectionFromGraphQl = productSelection => {
|
|
|
5149
5149
|
// Incase the product selection is not missing or if the current project dose not yet have access to the feature,
|
|
5150
5150
|
// in either case we return null
|
|
5151
5151
|
if (!productSelection) return null;
|
|
5152
|
-
return _objectSpread$
|
|
5152
|
+
return _objectSpread$17(_objectSpread$17({}, applyTransformedLocalizedFields(productSelection, [{
|
|
5153
5153
|
from: 'nameAllLocales',
|
|
5154
5154
|
to: 'name'
|
|
5155
5155
|
}])), {}, {
|
|
@@ -5172,8 +5172,8 @@ const transformAllToProperNounCase = text => {
|
|
|
5172
5172
|
return _mapInstanceProperty(_context = text.split(' ')).call(_context, term => transformToProperNounCase(term)).join(' ');
|
|
5173
5173
|
};
|
|
5174
5174
|
|
|
5175
|
-
function ownKeys$
|
|
5176
|
-
function _objectSpread$
|
|
5175
|
+
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; }
|
|
5176
|
+
function _objectSpread$16(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context3 = ownKeys$16(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context4 = ownKeys$16(Object(t))).call(_context4, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5177
5177
|
const REGEX_ISO8601 = /(\d{4}-\d{2}-\d{2}[T]\d{2}:\d{2}:\d{2}(\.\d{3}[Z]?))/;
|
|
5178
5178
|
const REGEX_TIME = /\d{2}:\d{2}/;
|
|
5179
5179
|
const REGEX_DATE = /\d{4}-\d{2}-\d{2}/;
|
|
@@ -5190,7 +5190,7 @@ function filterCustomTypeUpdateActionValues() {
|
|
|
5190
5190
|
if (updateAction.action === 'setCustomField' && _Array$isArray(updateAction.value)) {
|
|
5191
5191
|
const definition = _findInstanceProperty(fieldDefinitions).call(fieldDefinitions, field => field.name === updateAction.name);
|
|
5192
5192
|
const definitionName = definition.type.elementType.name;
|
|
5193
|
-
return _objectSpread$
|
|
5193
|
+
return _objectSpread$16(_objectSpread$16({}, updateAction), {}, {
|
|
5194
5194
|
value: filterNotDefinedValues(updateAction.value, definitionName)
|
|
5195
5195
|
});
|
|
5196
5196
|
}
|
|
@@ -5699,8 +5699,8 @@ const messages$I = defineMessages({
|
|
|
5699
5699
|
});
|
|
5700
5700
|
var messages$J = messages$I;
|
|
5701
5701
|
|
|
5702
|
-
function ownKeys$
|
|
5703
|
-
function _objectSpread$
|
|
5702
|
+
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; }
|
|
5703
|
+
function _objectSpread$15(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$15(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$15(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5704
5704
|
function Option$1(props) {
|
|
5705
5705
|
const _useApplicationContex = useApplicationContext(applicationContext => ({
|
|
5706
5706
|
language: applicationContext.dataLocale,
|
|
@@ -5711,7 +5711,7 @@ function Option$1(props) {
|
|
|
5711
5711
|
const _useIntl = useIntl(),
|
|
5712
5712
|
formatMessage = _useIntl.formatMessage;
|
|
5713
5713
|
const cartDiscount = props.data;
|
|
5714
|
-
return jsx(AsyncSelectInput.Option, _objectSpread$
|
|
5714
|
+
return jsx(AsyncSelectInput.Option, _objectSpread$15(_objectSpread$15({}, props), {}, {
|
|
5715
5715
|
children: jsxs("div", {
|
|
5716
5716
|
"data-testid": "cart-discount-option",
|
|
5717
5717
|
children: [jsx(Text.Detail, {
|
|
@@ -5728,8 +5728,8 @@ function Option$1(props) {
|
|
|
5728
5728
|
}));
|
|
5729
5729
|
}
|
|
5730
5730
|
|
|
5731
|
-
function ownKeys$
|
|
5732
|
-
function _objectSpread$
|
|
5731
|
+
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; }
|
|
5732
|
+
function _objectSpread$14(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$14(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$14(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5733
5733
|
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 } } } };
|
|
5734
5734
|
const returnNullIfEmpty = value => value && value.id === '' ? null : value;
|
|
5735
5735
|
const filterOption$1 = (option, text) => {
|
|
@@ -5755,7 +5755,7 @@ function CartDiscountReferenceSearch(props) {
|
|
|
5755
5755
|
})),
|
|
5756
5756
|
language = _useApplicationContex.language,
|
|
5757
5757
|
languages = _useApplicationContex.languages;
|
|
5758
|
-
const mapItemToOption = useCallback(cartDiscount => _objectSpread$
|
|
5758
|
+
const mapItemToOption = useCallback(cartDiscount => _objectSpread$14(_objectSpread$14({}, cartDiscount), {}, {
|
|
5759
5759
|
value: cartDiscount.id,
|
|
5760
5760
|
key: cartDiscount.key,
|
|
5761
5761
|
label: formatLocalizedString(cartDiscount, {
|
|
@@ -5845,8 +5845,8 @@ const messages$G = defineMessages({
|
|
|
5845
5845
|
});
|
|
5846
5846
|
var messages$H = messages$G;
|
|
5847
5847
|
|
|
5848
|
-
function ownKeys$
|
|
5849
|
-
function _objectSpread$
|
|
5848
|
+
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; }
|
|
5849
|
+
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; }
|
|
5850
5850
|
function Option(props) {
|
|
5851
5851
|
const _useApplicationContex = useApplicationContext(applicationContext => ({
|
|
5852
5852
|
language: applicationContext.dataLocale,
|
|
@@ -5857,7 +5857,7 @@ function Option(props) {
|
|
|
5857
5857
|
const _useIntl = useIntl(),
|
|
5858
5858
|
formatMessage = _useIntl.formatMessage;
|
|
5859
5859
|
const category = props.data;
|
|
5860
|
-
return jsx(AsyncSelectInput.Option, _objectSpread$
|
|
5860
|
+
return jsx(AsyncSelectInput.Option, _objectSpread$13(_objectSpread$13({}, props), {}, {
|
|
5861
5861
|
children: jsxs("div", {
|
|
5862
5862
|
"data-testid": "category-option",
|
|
5863
5863
|
children: [jsx(Text.Body, {
|
|
@@ -5886,8 +5886,8 @@ function Option(props) {
|
|
|
5886
5886
|
}));
|
|
5887
5887
|
}
|
|
5888
5888
|
|
|
5889
|
-
function ownKeys$
|
|
5890
|
-
function _objectSpread$
|
|
5889
|
+
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; }
|
|
5890
|
+
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; }
|
|
5891
5891
|
const filterOption = () => true;
|
|
5892
5892
|
function CategoryReferenceSearch(props) {
|
|
5893
5893
|
const _useIntl = useIntl(),
|
|
@@ -5899,7 +5899,7 @@ function CategoryReferenceSearch(props) {
|
|
|
5899
5899
|
})),
|
|
5900
5900
|
language = _useApplicationContex.language,
|
|
5901
5901
|
languages = _useApplicationContex.languages;
|
|
5902
|
-
const mapItemToOption = useCallback(category => _objectSpread$
|
|
5902
|
+
const mapItemToOption = useCallback(category => _objectSpread$12(_objectSpread$12({}, category), {}, {
|
|
5903
5903
|
value: category.id,
|
|
5904
5904
|
label: formatLocalizedString(category, {
|
|
5905
5905
|
key: 'name',
|
|
@@ -5917,7 +5917,7 @@ function CategoryReferenceSearch(props) {
|
|
|
5917
5917
|
}), [apolloClient]);
|
|
5918
5918
|
return jsx(ReferenceSearch, {
|
|
5919
5919
|
id: props.id,
|
|
5920
|
-
components: _objectSpread$
|
|
5920
|
+
components: _objectSpread$12({
|
|
5921
5921
|
Option
|
|
5922
5922
|
}, props.components),
|
|
5923
5923
|
isClearable: props.isClearable,
|
|
@@ -5977,8 +5977,8 @@ const getButtonStyles = props => /*#__PURE__*/css("transition:background-color 0
|
|
|
5977
5977
|
var getButtonStyles$1 = getButtonStyles;
|
|
5978
5978
|
|
|
5979
5979
|
const _excluded$e = ["type"];
|
|
5980
|
-
function ownKeys$
|
|
5981
|
-
function _objectSpread$
|
|
5980
|
+
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; }
|
|
5981
|
+
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; }
|
|
5982
5982
|
const Button = _ref => {
|
|
5983
5983
|
let _ref$type = _ref.type,
|
|
5984
5984
|
type = _ref$type === void 0 ? 'button' : _ref$type,
|
|
@@ -5990,7 +5990,7 @@ const Button = _ref => {
|
|
|
5990
5990
|
|
|
5991
5991
|
// Pass only `data-*` props
|
|
5992
5992
|
const dataProps = filterDataAttributes(props);
|
|
5993
|
-
return jsx("button", _objectSpread$
|
|
5993
|
+
return jsx("button", _objectSpread$11(_objectSpread$11({
|
|
5994
5994
|
onClick: isDisabled ? null : onClick,
|
|
5995
5995
|
type: type,
|
|
5996
5996
|
className: classnames(className),
|
|
@@ -6015,8 +6015,8 @@ var messages$F = defineMessages({
|
|
|
6015
6015
|
});
|
|
6016
6016
|
|
|
6017
6017
|
const _excluded$d = ["children", "allowMultiple", "acceptTypes"];
|
|
6018
|
-
function ownKeys
|
|
6019
|
-
function _objectSpread
|
|
6018
|
+
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; }
|
|
6019
|
+
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; }
|
|
6020
6020
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$d() { 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)."; }
|
|
6021
6021
|
var _ref$c = process.env.NODE_ENV === "production" ? {
|
|
6022
6022
|
name: "1wq0eh7",
|
|
@@ -6028,7 +6028,7 @@ var _ref$c = process.env.NODE_ENV === "production" ? {
|
|
|
6028
6028
|
};
|
|
6029
6029
|
const FileInput = _ref2 => {
|
|
6030
6030
|
let _ref2$children = _ref2.children,
|
|
6031
|
-
children = _ref2$children === void 0 ? jsx(FormattedMessage, _objectSpread
|
|
6031
|
+
children = _ref2$children === void 0 ? jsx(FormattedMessage, _objectSpread$10({}, messages$F.chooseFile)) : _ref2$children,
|
|
6032
6032
|
_ref2$allowMultiple = _ref2.allowMultiple,
|
|
6033
6033
|
allowMultiple = _ref2$allowMultiple === void 0 ? false : _ref2$allowMultiple,
|
|
6034
6034
|
_ref2$acceptTypes = _ref2.acceptTypes,
|
|
@@ -6064,15 +6064,15 @@ const baseButtonStyles = process.env.NODE_ENV === "production" ? {
|
|
|
6064
6064
|
};
|
|
6065
6065
|
|
|
6066
6066
|
const _excluded$c = ["animationOrientation", "children", "onClick"];
|
|
6067
|
-
function ownKeys
|
|
6068
|
-
function _objectSpread
|
|
6067
|
+
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; }
|
|
6068
|
+
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; }
|
|
6069
6069
|
const ICON_COLOR$1 = '#6359ff';
|
|
6070
6070
|
const PaginationIconButton = _ref => {
|
|
6071
6071
|
let animationOrientation = _ref.animationOrientation,
|
|
6072
6072
|
children = _ref.children,
|
|
6073
6073
|
onClick = _ref.onClick,
|
|
6074
6074
|
rest = _objectWithoutProperties(_ref, _excluded$c);
|
|
6075
|
-
return jsx("button", _objectSpread
|
|
6075
|
+
return jsx("button", _objectSpread$$(_objectSpread$$({
|
|
6076
6076
|
css: [baseButtonStyles, /*#__PURE__*/css("svg{fill:", ICON_COLOR$1, ";}transition:transform ", designTokens$1.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$1.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= */"],
|
|
6077
6077
|
onClick: onClick
|
|
6078
6078
|
}, rest), {}, {
|
|
@@ -6082,8 +6082,8 @@ const PaginationIconButton = _ref => {
|
|
|
6082
6082
|
var PaginationIconButton$1 = PaginationIconButton;
|
|
6083
6083
|
|
|
6084
6084
|
const _excluded$b = ["isFilled", "onClick"];
|
|
6085
|
-
function ownKeys$
|
|
6086
|
-
function _objectSpread$
|
|
6085
|
+
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; }
|
|
6086
|
+
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; }
|
|
6087
6087
|
const ICON_HEIGHT = '10px';
|
|
6088
6088
|
const ICON_WIDTH = ICON_HEIGHT;
|
|
6089
6089
|
// TODO: Integrate design tokens when redesign is complete
|
|
@@ -6094,7 +6094,7 @@ const PaginationSelectionButton = _ref => {
|
|
|
6094
6094
|
isFilled = _ref$isFilled === void 0 ? false : _ref$isFilled,
|
|
6095
6095
|
onClick = _ref.onClick,
|
|
6096
6096
|
rest = _objectWithoutProperties(_ref, _excluded$b);
|
|
6097
|
-
return jsx("button", _objectSpread$
|
|
6097
|
+
return jsx("button", _objectSpread$_({
|
|
6098
6098
|
css: [baseButtonStyles, /*#__PURE__*/css("height:", ICON_HEIGHT, ";width:", ICON_WIDTH, ";border-radius:", designTokens$1.borderRadius6, ";border:", isFilled ? 'none' : `${designTokens$1.borderWidth1} solid ${designTokens$1.colorNeutral}`, ";background:", isFilled ? ICON_COLOR : 'none', ";transition:", designTokens$1.transitionStandard, ";:hover{background:", isFilled ? undefined : ICON_HOVER_COLOR, ";}:focus{border:", designTokens$1.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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBhZ2luYXRpb24tc2VsZWN0aW9uLWJ1dHRvbi50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBbUJJIiwiZmlsZSI6InBhZ2luYXRpb24tc2VsZWN0aW9uLWJ1dHRvbi50c3giLCJzb3VyY2VzQ29udGVudCI6WyJ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5kOiAke2lzRmlsbGVkID8gSUNPTl9DT0xPUiA6ICdub25lJ307XG4gICAgICAgIHRyYW5zaXRpb246ICR7ZGVzaWduVG9rZW5zLnRyYW5zaXRpb25TdGFuZGFyZH07XG4gICAgICAgIDpob3ZlciB7XG4gICAgICAgICAgYmFja2dyb3VuZDogJHtpc0ZpbGxlZCA/IHVuZGVmaW5lZCA6IElDT05fSE9WRVJfQ09MT1J9O1xuICAgICAgICB9XG4gICAgICAgIDpmb2N1cyB7XG4gICAgICAgICAgYm9yZGVyOiAke2Rlc2lnblRva2Vucy5ib3JkZXJXaWR0aDF9IHNvbGlkICR7SUNPTl9DT0xPUn07XG4gICAgICAgIH1cbiAgICAgIGAsXG4gICAgXX1cbiAgICBvbkNsaWNrPXtvbkNsaWNrfVxuICAgIHsuLi5yZXN0fVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgUGFnaW5hdGlvblNlbGVjdGlvbkJ1dHRvbjtcbiJdfQ== */"],
|
|
6099
6099
|
onClick: onClick
|
|
6100
6100
|
}, rest));
|
|
@@ -6318,8 +6318,8 @@ var messages$E = defineMessages({
|
|
|
6318
6318
|
}
|
|
6319
6319
|
});
|
|
6320
6320
|
|
|
6321
|
-
function ownKeys$
|
|
6322
|
-
function _objectSpread$
|
|
6321
|
+
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; }
|
|
6322
|
+
function _objectSpread$Z(e) { for (var r = 1; r < arguments.length; r++) { var _context8, _context9; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context8 = ownKeys$Z(Object(t), !0)).call(_context8, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context9 = ownKeys$Z(Object(t))).call(_context9, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6323
6323
|
const emptyCountryOption = intl => [{
|
|
6324
6324
|
label: intl.formatMessage(messages$E.countriesAsyncSelectDropdownTypeAheadPrompt),
|
|
6325
6325
|
value: undefined,
|
|
@@ -6346,7 +6346,7 @@ function CountriesAsyncSelectDropdown(props) {
|
|
|
6346
6346
|
const onOptionChange = event => {
|
|
6347
6347
|
const countries = event.target.value;
|
|
6348
6348
|
props.onChange({
|
|
6349
|
-
target: _objectSpread$
|
|
6349
|
+
target: _objectSpread$Z(_objectSpread$Z({}, event.target), {}, {
|
|
6350
6350
|
value: _mapInstanceProperty(countries).call(countries, country => country?.value ?? country)
|
|
6351
6351
|
})
|
|
6352
6352
|
});
|
|
@@ -6397,8 +6397,8 @@ function CountriesBasicSelectDropdown(props) {
|
|
|
6397
6397
|
const COUNTRIES_ASYNC_LOADING_LIMIT = 60;
|
|
6398
6398
|
|
|
6399
6399
|
const _excluded$a = ["countriesAsyncLoadingLimit", "isMulti", "isRequired", "hasWarning"];
|
|
6400
|
-
function ownKeys$
|
|
6401
|
-
function _objectSpread$
|
|
6400
|
+
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; }
|
|
6401
|
+
function _objectSpread$Y(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$Y(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$Y(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6402
6402
|
function CountriesPicker(_ref) {
|
|
6403
6403
|
let _ref$countriesAsyncLo = _ref.countriesAsyncLoadingLimit,
|
|
6404
6404
|
countriesAsyncLoadingLimit = _ref$countriesAsyncLo === void 0 ? COUNTRIES_ASYNC_LOADING_LIMIT : _ref$countriesAsyncLo,
|
|
@@ -6411,7 +6411,7 @@ function CountriesPicker(_ref) {
|
|
|
6411
6411
|
props = _objectWithoutProperties(_ref, _excluded$a);
|
|
6412
6412
|
const CustomCountriesPicker = props.options?.length <= countriesAsyncLoadingLimit ? CountriesBasicSelectDropdown : CountriesAsyncSelectDropdown;
|
|
6413
6413
|
return jsx(Spacings.Stack, {
|
|
6414
|
-
children: jsx(CustomCountriesPicker, _objectSpread$
|
|
6414
|
+
children: jsx(CustomCountriesPicker, _objectSpread$Y({
|
|
6415
6415
|
countriesAsyncLoadingLimit: countriesAsyncLoadingLimit,
|
|
6416
6416
|
isMulti: isMulti,
|
|
6417
6417
|
isRequired: isRequired,
|
|
@@ -6617,9 +6617,9 @@ const REFERENCED_TYPES = {
|
|
|
6617
6617
|
const ATTRIBUTE_TYPES = ['text', 'ltext', 'number', 'enum', 'lenum', 'money', 'boolean', 'date', 'datetime', 'reference', 'time'];
|
|
6618
6618
|
const SET_ATTRIBUTE_TYPES = ['text', 'ltext', 'number', 'enum', 'lenum', 'money', 'boolean', 'date', 'time', 'datetime', 'reference'];
|
|
6619
6619
|
|
|
6620
|
-
function ownKeys$
|
|
6621
|
-
function _objectSpread$
|
|
6622
|
-
const mergeSetItemsErrors = errors => _reduceInstanceProperty(errors).call(errors, (result, itemErrors) => _objectSpread$
|
|
6620
|
+
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; }
|
|
6621
|
+
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; }
|
|
6622
|
+
const mergeSetItemsErrors = errors => _reduceInstanceProperty(errors).call(errors, (result, itemErrors) => _objectSpread$X(_objectSpread$X({}, result), itemErrors), {});
|
|
6623
6623
|
|
|
6624
6624
|
// TODO(pa3): worth splitting in two components: one of set errors and one for
|
|
6625
6625
|
// all the other types of fields. So that there will be no isArray check.
|
|
@@ -6777,8 +6777,8 @@ const SetButtons = props => {
|
|
|
6777
6777
|
SetButtons.displayName = 'SetButtons';
|
|
6778
6778
|
var SetButtons$1 = SetButtons;
|
|
6779
6779
|
|
|
6780
|
-
function ownKeys$
|
|
6781
|
-
function _objectSpread$
|
|
6780
|
+
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; }
|
|
6781
|
+
function _objectSpread$W(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$W(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$W(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6782
6782
|
const getDuplicateErrors = setValues => {
|
|
6783
6783
|
/* eslint-disable no-plusplus */
|
|
6784
6784
|
const result = [];
|
|
@@ -6831,7 +6831,7 @@ function CustomInputSet(props) {
|
|
|
6831
6831
|
touched = _useFormikContext.touched,
|
|
6832
6832
|
isSubmitting = _useFormikContext.isSubmitting,
|
|
6833
6833
|
dirty = _useFormikContext.dirty;
|
|
6834
|
-
const itemFieldDefinition = _objectSpread$
|
|
6834
|
+
const itemFieldDefinition = _objectSpread$W(_objectSpread$W({}, props.fieldDefinition), {}, {
|
|
6835
6835
|
type: props.fieldDefinition.type.elementType
|
|
6836
6836
|
});
|
|
6837
6837
|
const value = useMemo(() => props.value || [undefined], [props.value]);
|
|
@@ -7087,8 +7087,8 @@ function CustomLocalizedEnumInput(props) {
|
|
|
7087
7087
|
}
|
|
7088
7088
|
CustomLocalizedEnumInput.displayName = 'CustomLocalizedEnumInput';
|
|
7089
7089
|
|
|
7090
|
-
function ownKeys$
|
|
7091
|
-
function _objectSpread$
|
|
7090
|
+
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; }
|
|
7091
|
+
function _objectSpread$V(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$V(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$V(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7092
7092
|
const getSubfieldLanguage = subfieldName => {
|
|
7093
7093
|
const lastDotIndex = _lastIndexOfInstanceProperty(subfieldName).call(subfieldName, '.');
|
|
7094
7094
|
return subfieldName.substring(lastDotIndex + 1);
|
|
@@ -7111,7 +7111,7 @@ function CustomLocalizedTextInput(props) {
|
|
|
7111
7111
|
// as a whole.
|
|
7112
7112
|
|
|
7113
7113
|
const fieldLanguage = getSubfieldLanguage(subfieldName);
|
|
7114
|
-
const newValue = _objectSpread$
|
|
7114
|
+
const newValue = _objectSpread$V(_objectSpread$V({}, props.value), {}, {
|
|
7115
7115
|
[fieldLanguage]: rawValue
|
|
7116
7116
|
});
|
|
7117
7117
|
const nullifiedIfNeeded = LocalizedTextInput.isEmpty(newValue) ? undefined : newValue;
|
|
@@ -7139,19 +7139,19 @@ function CustomLocalizedTextInput(props) {
|
|
|
7139
7139
|
}
|
|
7140
7140
|
CustomLocalizedTextInput.displayName = 'CustomLocalizedTextInput';
|
|
7141
7141
|
|
|
7142
|
-
function ownKeys$
|
|
7143
|
-
function _objectSpread$
|
|
7142
|
+
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; }
|
|
7143
|
+
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; }
|
|
7144
7144
|
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)."; }
|
|
7145
7145
|
const fixCurrencyCode = (value, currencies) => {
|
|
7146
7146
|
if (value.currencyCode) return value;
|
|
7147
7147
|
const firstCurrency = currencies[0];
|
|
7148
|
-
return _objectSpread$
|
|
7148
|
+
return _objectSpread$U(_objectSpread$U({}, value), {}, {
|
|
7149
7149
|
currencyCode: firstCurrency
|
|
7150
7150
|
});
|
|
7151
7151
|
};
|
|
7152
7152
|
const fixAmount = value => {
|
|
7153
7153
|
if (!value.amount) {
|
|
7154
|
-
return _objectSpread$
|
|
7154
|
+
return _objectSpread$U(_objectSpread$U({}, value), {}, {
|
|
7155
7155
|
amount: '0'
|
|
7156
7156
|
});
|
|
7157
7157
|
}
|
|
@@ -7201,7 +7201,7 @@ function CustomMoneyInput(props) {
|
|
|
7201
7201
|
}
|
|
7202
7202
|
const handleChange = makeChangeHandler((rawValue, subfieldName) => {
|
|
7203
7203
|
const isAmount = _endsWithInstanceProperty(subfieldName).call(subfieldName, 'amount');
|
|
7204
|
-
const newValue = _objectSpread$
|
|
7204
|
+
const newValue = _objectSpread$U({}, internalValue.current);
|
|
7205
7205
|
if (isAmount) newValue.amount = rawValue;else newValue.currencyCode = rawValue;
|
|
7206
7206
|
const fixedValue = fixEnteredValue(newValue, internalValue.current, currencies);
|
|
7207
7207
|
internalValue.current = fixedValue;
|
|
@@ -7238,23 +7238,23 @@ function CustomMoneyInput(props) {
|
|
|
7238
7238
|
}
|
|
7239
7239
|
CustomMoneyInput.displayName = 'CustomMoneyInput';
|
|
7240
7240
|
|
|
7241
|
-
function ownKeys$
|
|
7242
|
-
function _objectSpread$
|
|
7241
|
+
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; }
|
|
7242
|
+
function _objectSpread$T(e) { for (var r = 1; r < arguments.length; r++) { var _context8, _context9; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context8 = ownKeys$T(Object(t), !0)).call(_context8, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context9 = ownKeys$T(Object(t))).call(_context9, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7243
7243
|
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 } } } };
|
|
7244
7244
|
const mapAttributeDefinition = definition => {
|
|
7245
7245
|
var _context, _context2, _context3, _context4;
|
|
7246
|
-
return _objectSpread$
|
|
7246
|
+
return _objectSpread$T(_objectSpread$T({}, definition), {}, {
|
|
7247
7247
|
required: definition.isRequired,
|
|
7248
7248
|
inputTip: transformLocalizedFieldToLocalizedString(definition.inputTipAllLocales),
|
|
7249
7249
|
label: transformLocalizedFieldToLocalizedString(definition.labelAllLocales),
|
|
7250
|
-
type: _includesInstanceProperty(_context = ['enum', 'lenum']).call(_context, definition.type?.elementType?.name) ? _objectSpread$
|
|
7251
|
-
elementType: _objectSpread$
|
|
7250
|
+
type: _includesInstanceProperty(_context = ['enum', 'lenum']).call(_context, definition.type?.elementType?.name) ? _objectSpread$T(_objectSpread$T({}, definition.type), {}, {
|
|
7251
|
+
elementType: _objectSpread$T(_objectSpread$T({}, definition.type.elementType), {}, {
|
|
7252
7252
|
values: _mapInstanceProperty(_context2 = _valuesInstanceProperty(definition.type.elementType).results).call(_context2, value => ({
|
|
7253
7253
|
key: value.key,
|
|
7254
7254
|
label: value.label || transformLocalizedFieldToLocalizedString(value.labelAllLocales)
|
|
7255
7255
|
}))
|
|
7256
7256
|
})
|
|
7257
|
-
}) : _includesInstanceProperty(_context3 = ['enum', 'lenum']).call(_context3, definition.type?.name) ? _objectSpread$
|
|
7257
|
+
}) : _includesInstanceProperty(_context3 = ['enum', 'lenum']).call(_context3, definition.type?.name) ? _objectSpread$T(_objectSpread$T({}, definition.type), {}, {
|
|
7258
7258
|
values: _mapInstanceProperty(_context4 = _valuesInstanceProperty(definition.type).results).call(_context4, value => ({
|
|
7259
7259
|
key: value.key,
|
|
7260
7260
|
label: value.label || transformLocalizedFieldToLocalizedString(value.labelAllLocales)
|
|
@@ -7391,8 +7391,8 @@ var messages$A = defineMessages({
|
|
|
7391
7391
|
}
|
|
7392
7392
|
});
|
|
7393
7393
|
|
|
7394
|
-
function ownKeys$
|
|
7395
|
-
function _objectSpread$
|
|
7394
|
+
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; }
|
|
7395
|
+
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; }
|
|
7396
7396
|
const EditButton = props => {
|
|
7397
7397
|
const _useIntl = useIntl(),
|
|
7398
7398
|
formatMessage = _useIntl.formatMessage;
|
|
@@ -7540,13 +7540,13 @@ const CustomNestedInput = /*#__PURE__*/memo(props => {
|
|
|
7540
7540
|
const valuesAsMap = nameValuePairsToMap(value);
|
|
7541
7541
|
const initialValues = omitUnknownValues(valuesAsMap, attributeDefinitionsAsMap);
|
|
7542
7542
|
const openNestedAttributesForm = () => {
|
|
7543
|
-
if (nestingLevel === 0) parentFormik.setStatus(_objectSpread$
|
|
7543
|
+
if (nestingLevel === 0) parentFormik.setStatus(_objectSpread$S(_objectSpread$S({}, parentFormik.status), {}, {
|
|
7544
7544
|
hideSaveToolbar: true
|
|
7545
7545
|
}));
|
|
7546
7546
|
attributesForm.openModal();
|
|
7547
7547
|
};
|
|
7548
7548
|
const closeNestedAttributesForm = () => {
|
|
7549
|
-
if (nestingLevel === 0) parentFormik.setStatus(_objectSpread$
|
|
7549
|
+
if (nestingLevel === 0) parentFormik.setStatus(_objectSpread$S(_objectSpread$S({}, parentFormik.status), {}, {
|
|
7550
7550
|
hideSaveToolbar: false
|
|
7551
7551
|
}));
|
|
7552
7552
|
attributesForm.closeModal();
|
|
@@ -8085,8 +8085,8 @@ var messages$y = defineMessages({
|
|
|
8085
8085
|
}
|
|
8086
8086
|
});
|
|
8087
8087
|
|
|
8088
|
-
function ownKeys$
|
|
8089
|
-
function _objectSpread$
|
|
8088
|
+
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; }
|
|
8089
|
+
function _objectSpread$R(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$R(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$R(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8090
8090
|
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)."; }
|
|
8091
8091
|
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 } } } };
|
|
8092
8092
|
const CustomFieldsLabelHint = _ref2 => {
|
|
@@ -8116,7 +8116,7 @@ const CustomFieldsLabelHint = _ref2 => {
|
|
|
8116
8116
|
children: [jsx(WarningIcon, {
|
|
8117
8117
|
size: "medium",
|
|
8118
8118
|
color: "warning"
|
|
8119
|
-
}), jsx(FormattedMessage, _objectSpread$
|
|
8119
|
+
}), jsx(FormattedMessage, _objectSpread$R({}, messages$y.cartDiscountMoreThan500))]
|
|
8120
8120
|
});
|
|
8121
8121
|
}
|
|
8122
8122
|
return formatLocalizedString(fieldDefinition, {
|
|
@@ -8241,10 +8241,10 @@ var messages$x = defineMessages({
|
|
|
8241
8241
|
}
|
|
8242
8242
|
});
|
|
8243
8243
|
|
|
8244
|
-
function ownKeys$
|
|
8245
|
-
function _objectSpread$
|
|
8244
|
+
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; }
|
|
8245
|
+
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; }
|
|
8246
8246
|
function ProductTypeReference(props) {
|
|
8247
|
-
const productTypeMessage = _objectSpread$
|
|
8247
|
+
const productTypeMessage = _objectSpread$Q(_objectSpread$Q({}, messages$x.referencedProductType), {}, {
|
|
8248
8248
|
values: {
|
|
8249
8249
|
productTypeName: props.productType.name
|
|
8250
8250
|
}
|
|
@@ -8293,10 +8293,10 @@ function CustomNestedFieldInput(props) {
|
|
|
8293
8293
|
}
|
|
8294
8294
|
CustomNestedFieldInput.displayName = 'CustomNestedFieldInput';
|
|
8295
8295
|
|
|
8296
|
-
function ownKeys$
|
|
8297
|
-
function _objectSpread$
|
|
8296
|
+
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; }
|
|
8297
|
+
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; }
|
|
8298
8298
|
function DragHandle(props) {
|
|
8299
|
-
return jsx("div", _objectSpread$
|
|
8299
|
+
return jsx("div", _objectSpread$P(_objectSpread$P({}, props), {}, {
|
|
8300
8300
|
children: jsx(IconButton, {
|
|
8301
8301
|
icon: jsx(DragIcon, {}),
|
|
8302
8302
|
size: "medium",
|
|
@@ -8306,8 +8306,8 @@ function DragHandle(props) {
|
|
|
8306
8306
|
}
|
|
8307
8307
|
DragHandle.displayName = 'DragHandle';
|
|
8308
8308
|
|
|
8309
|
-
function ownKeys$
|
|
8310
|
-
function _objectSpread$
|
|
8309
|
+
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; }
|
|
8310
|
+
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; }
|
|
8311
8311
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$7() { 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)."; }
|
|
8312
8312
|
var _ref$7 = process.env.NODE_ENV === "production" ? {
|
|
8313
8313
|
name: "1onfs6j",
|
|
@@ -8342,7 +8342,7 @@ const DraggableWrapper = _ref2 => {
|
|
|
8342
8342
|
draggableId: draggableId,
|
|
8343
8343
|
index: index,
|
|
8344
8344
|
children: (provided, snapshot) => {
|
|
8345
|
-
const child = jsx("div", _objectSpread$
|
|
8345
|
+
const child = jsx("div", _objectSpread$O(_objectSpread$O({
|
|
8346
8346
|
ref: provided.innerRef
|
|
8347
8347
|
}, provided.draggableProps), {}, {
|
|
8348
8348
|
css: _ref$7,
|
|
@@ -8353,7 +8353,7 @@ const DraggableWrapper = _ref2 => {
|
|
|
8353
8353
|
gridTemplateRows: "auto 1fr auto",
|
|
8354
8354
|
gridGap: snapshot.isDragging ? customProperties.spacingS : customProperties.spacingM,
|
|
8355
8355
|
children: [jsx(Grid.Item, {
|
|
8356
|
-
children: jsx(DragHandle, _objectSpread$
|
|
8356
|
+
children: jsx(DragHandle, _objectSpread$O({}, provided.dragHandleProps))
|
|
8357
8357
|
}), jsx(Grid.Item, {
|
|
8358
8358
|
children: children
|
|
8359
8359
|
})]
|
|
@@ -8372,8 +8372,8 @@ const DraggableWrapper = _ref2 => {
|
|
|
8372
8372
|
}, draggableKey);
|
|
8373
8373
|
};
|
|
8374
8374
|
|
|
8375
|
-
function ownKeys$
|
|
8376
|
-
function _objectSpread$
|
|
8375
|
+
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; }
|
|
8376
|
+
function _objectSpread$N(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$N(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$N(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8377
8377
|
const DroppableWrapper = _ref => {
|
|
8378
8378
|
let children = _ref.children,
|
|
8379
8379
|
onDragEnd = _ref.onDragEnd;
|
|
@@ -8381,7 +8381,7 @@ const DroppableWrapper = _ref => {
|
|
|
8381
8381
|
onDragEnd: onDragEnd,
|
|
8382
8382
|
children: jsx(Droppable, {
|
|
8383
8383
|
droppableId: "droppable",
|
|
8384
|
-
children: provided => jsxs("div", _objectSpread$
|
|
8384
|
+
children: provided => jsxs("div", _objectSpread$N(_objectSpread$N({
|
|
8385
8385
|
ref: provided.innerRef
|
|
8386
8386
|
}, provided.droppableProps), {}, {
|
|
8387
8387
|
children: [children, provided.placeholder]
|
|
@@ -8390,8 +8390,8 @@ const DroppableWrapper = _ref => {
|
|
|
8390
8390
|
});
|
|
8391
8391
|
};
|
|
8392
8392
|
|
|
8393
|
-
function ownKeys$
|
|
8394
|
-
function _objectSpread$
|
|
8393
|
+
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; }
|
|
8394
|
+
function _objectSpread$M(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$M(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$M(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8395
8395
|
const DefaultWrapper = _ref => {
|
|
8396
8396
|
let children = _ref.children;
|
|
8397
8397
|
return jsx(Fragment, {
|
|
@@ -8427,7 +8427,7 @@ const DndProvider = _ref2 => {
|
|
|
8427
8427
|
});
|
|
8428
8428
|
}
|
|
8429
8429
|
return jsx(DnDContext.Provider, {
|
|
8430
|
-
value: _objectSpread$
|
|
8430
|
+
value: _objectSpread$M(_objectSpread$M({}, dndContextDefaultValues), {}, {
|
|
8431
8431
|
isDnDMode,
|
|
8432
8432
|
setDnDMode
|
|
8433
8433
|
}),
|
|
@@ -8439,8 +8439,8 @@ const useDnDContext = () => {
|
|
|
8439
8439
|
};
|
|
8440
8440
|
|
|
8441
8441
|
const _excluded$9 = ["renderCustomWarnings", "WrapperComponent"];
|
|
8442
|
-
function ownKeys$
|
|
8443
|
-
function _objectSpread$
|
|
8442
|
+
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; }
|
|
8443
|
+
function _objectSpread$L(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$L(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$L(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8444
8444
|
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];
|
|
8445
8445
|
const getFieldName = (parentName, fieldName) => {
|
|
8446
8446
|
if (!parentName) return fieldName;
|
|
@@ -8522,7 +8522,7 @@ const CustomFieldsInternal = _ref => {
|
|
|
8522
8522
|
renderWarnings: props.renderWarnings,
|
|
8523
8523
|
additionalInfo: shouldUseAdditionalInfoProp && props?.additionalInfoHandler ? props.additionalInfoHandler(fieldDefinition, locale, timeZone, userLocale) : undefined
|
|
8524
8524
|
};
|
|
8525
|
-
const Field = jsx(FieldComponent, _objectSpread$
|
|
8525
|
+
const Field = jsx(FieldComponent, _objectSpread$L({}, fieldProps));
|
|
8526
8526
|
// the several values inside the key are needed to make sure the field is re-rendered when those values change
|
|
8527
8527
|
return jsx(FastField, {
|
|
8528
8528
|
name: fieldName,
|
|
@@ -8565,8 +8565,8 @@ const CustomFieldsInternal = _ref => {
|
|
|
8565
8565
|
CustomFieldsInternal.displayName = 'CustomFieldsInternal';
|
|
8566
8566
|
var CustomFieldsInternal$1 = CustomFieldsInternal;
|
|
8567
8567
|
|
|
8568
|
-
function ownKeys$
|
|
8569
|
-
function _objectSpread$
|
|
8568
|
+
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; }
|
|
8569
|
+
function _objectSpread$K(e) { for (var r = 1; r < arguments.length; r++) { var _context7, _context8; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context7 = ownKeys$K(Object(t), !0)).call(_context7, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context8 = ownKeys$K(Object(t))).call(_context8, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8570
8570
|
const getTypeName = type => type.name.toLowerCase();
|
|
8571
8571
|
const findLabel = (enumType, key) => {
|
|
8572
8572
|
var _context;
|
|
@@ -8617,7 +8617,7 @@ const attributeDefinitionToFieldDefinition = attributeDefinition => ({
|
|
|
8617
8617
|
const nameValuePairsToMap = pairs => _reduceInstanceProperty(pairs).call(pairs, (result, _ref2) => {
|
|
8618
8618
|
let name = _ref2.name,
|
|
8619
8619
|
value = _ref2.value;
|
|
8620
|
-
return _objectSpread$
|
|
8620
|
+
return _objectSpread$K(_objectSpread$K({}, result), {}, {
|
|
8621
8621
|
[name]: value
|
|
8622
8622
|
});
|
|
8623
8623
|
}, {});
|
|
@@ -8735,8 +8735,8 @@ var pickerMessages = defineMessages({
|
|
|
8735
8735
|
}
|
|
8736
8736
|
});
|
|
8737
8737
|
|
|
8738
|
-
function ownKeys$
|
|
8739
|
-
function _objectSpread$
|
|
8738
|
+
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; }
|
|
8739
|
+
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; }
|
|
8740
8740
|
const PRODUCT_SELECTION_MODES = {
|
|
8741
8741
|
INCLUSION: 'Individual',
|
|
8742
8742
|
EXCLUSION: 'IndividualExclusion'
|
|
@@ -8749,7 +8749,7 @@ const getMode = mode => mode === PRODUCT_SELECTION_MODES.INCLUSION || mode === P
|
|
|
8749
8749
|
const addModeToLabel = function (ps) {
|
|
8750
8750
|
let enableExcludingProducts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
8751
8751
|
if (!ps) return undefined;
|
|
8752
|
-
return _objectSpread$
|
|
8752
|
+
return _objectSpread$J(_objectSpread$J({}, ps), {}, {
|
|
8753
8753
|
label: `${ps?.label}${enableExcludingProducts ? ` (type: ${getMode(ps?.mode)})` : ''}`
|
|
8754
8754
|
});
|
|
8755
8755
|
};
|
|
@@ -9113,12 +9113,12 @@ function ProductSelectionsSearchSelectDropdown(props) {
|
|
|
9113
9113
|
});
|
|
9114
9114
|
}
|
|
9115
9115
|
|
|
9116
|
-
function ownKeys$
|
|
9117
|
-
function _objectSpread$
|
|
9116
|
+
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; }
|
|
9117
|
+
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; }
|
|
9118
9118
|
function ModeSelectInputOption(props) {
|
|
9119
9119
|
const data = props.data;
|
|
9120
9120
|
const noValueFallback = props.noValueFallback || NO_VALUE_FALLBACK;
|
|
9121
|
-
return jsx(SelectInput.Option, _objectSpread$
|
|
9121
|
+
return jsx(SelectInput.Option, _objectSpread$I(_objectSpread$I({}, props), {}, {
|
|
9122
9122
|
children: jsxs(Spacings.Stack, {
|
|
9123
9123
|
scale: "xs",
|
|
9124
9124
|
children: [jsx(Text.Detail, {
|
|
@@ -9134,8 +9134,8 @@ function ModeSelectInputOption(props) {
|
|
|
9134
9134
|
}
|
|
9135
9135
|
|
|
9136
9136
|
const _excluded$7 = ["lowerProductSelectionsLimit", "upperProductSelectionsLimit", "renderSelectInputOptionValuesByField", "optionType", "isMulti", "isRequired", "hasWarning", "hasError", "isClearable", "isReadOnly", "isDisabled", "excludedProductSelectionIds", "title"];
|
|
9137
|
-
function ownKeys$
|
|
9138
|
-
function _objectSpread$
|
|
9137
|
+
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; }
|
|
9138
|
+
function _objectSpread$H(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$H(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$H(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9139
9139
|
function ProductSelectionsPicker(_ref) {
|
|
9140
9140
|
let _ref$lowerProductSele = _ref.lowerProductSelectionsLimit,
|
|
9141
9141
|
lowerProductSelectionsLimit = _ref$lowerProductSele === void 0 ? LOWER_PRODUCT_SELECTIONS_LIMIT : _ref$lowerProductSele,
|
|
@@ -9169,10 +9169,10 @@ function ProductSelectionsPicker(_ref) {
|
|
|
9169
9169
|
return {
|
|
9170
9170
|
Option: optionInnerProps => {
|
|
9171
9171
|
if (optionInnerProps.isDisabled) {
|
|
9172
|
-
return jsx(SelectInput.Option, _objectSpread$
|
|
9172
|
+
return jsx(SelectInput.Option, _objectSpread$H({}, optionInnerProps));
|
|
9173
9173
|
}
|
|
9174
9174
|
if (optionType === TYPE_PROPERTY) {
|
|
9175
|
-
return jsx(ModeSelectInputOption, _objectSpread$
|
|
9175
|
+
return jsx(ModeSelectInputOption, _objectSpread$H({}, optionInnerProps));
|
|
9176
9176
|
}
|
|
9177
9177
|
return jsx(CustomSelectInputOption, {
|
|
9178
9178
|
optionType: optionType,
|
|
@@ -9185,7 +9185,7 @@ function ProductSelectionsPicker(_ref) {
|
|
|
9185
9185
|
let CustomProductSelectionsPicker;
|
|
9186
9186
|
if (productSelectionsTotalFetcher.total <= lowerProductSelectionsLimit) CustomProductSelectionsPicker = ProductSelectionBasicSelectDropdown;else if (productSelectionsTotalFetcher.total <= upperProductSelectionsLimit) CustomProductSelectionsPicker = ProductSelectionsAsyncSelectDropdown;else CustomProductSelectionsPicker = ProductSelectionsSearchSelectDropdown;
|
|
9187
9187
|
return jsx(Spacings.Stack, {
|
|
9188
|
-
children: jsx(CustomProductSelectionsPicker, _objectSpread$
|
|
9188
|
+
children: jsx(CustomProductSelectionsPicker, _objectSpread$H(_objectSpread$H({
|
|
9189
9189
|
lowerProductSelectionsLimit: lowerProductSelectionsLimit,
|
|
9190
9190
|
upperProductSelectionsLimit: upperProductSelectionsLimit,
|
|
9191
9191
|
renderSelectInputOptionValuesByField: renderSelectInputOptionValuesByField,
|
|
@@ -9228,7 +9228,9 @@ var messages$w = defineMessages({
|
|
|
9228
9228
|
}
|
|
9229
9229
|
});
|
|
9230
9230
|
|
|
9231
|
-
|
|
9231
|
+
function ownKeys$G(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9232
|
+
function _objectSpread$G(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$G(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$G(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9233
|
+
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 } } } };
|
|
9232
9234
|
const useRecurrenceIntervals = _ref => {
|
|
9233
9235
|
let where = _ref.where,
|
|
9234
9236
|
_ref$skip = _ref.skip,
|
|
@@ -9238,9 +9240,11 @@ const useRecurrenceIntervals = _ref => {
|
|
|
9238
9240
|
target: GRAPHQL_TARGETS.COMMERCETOOLS_PLATFORM
|
|
9239
9241
|
},
|
|
9240
9242
|
fetchPolicy: 'cache-and-network',
|
|
9241
|
-
variables:
|
|
9243
|
+
variables: _objectSpread$G({
|
|
9244
|
+
limit: 500
|
|
9245
|
+
}, where && {
|
|
9242
9246
|
where
|
|
9243
|
-
}
|
|
9247
|
+
}),
|
|
9244
9248
|
skip
|
|
9245
9249
|
}),
|
|
9246
9250
|
data = _useQuery.data,
|
|
@@ -14767,4 +14771,4 @@ function withPendingRequests() {
|
|
|
14767
14771
|
|
|
14768
14772
|
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 } } } };
|
|
14769
14773
|
|
|
14770
|
-
export { booleanField as BooleanField, Button$1 as Button, 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, 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, searchInput as SearchInput, 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, messages$P as searchInputMessages, 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, useIdentityBannerNotification, 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 };
|
|
14774
|
+
export { booleanField as BooleanField, Button$1 as Button, 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, searchInput as SearchInput, 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, messages$P as searchInputMessages, 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, useIdentityBannerNotification, 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 };
|