@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
|
@@ -317,8 +317,8 @@ var messages$T = reactIntl.defineMessages({
|
|
|
317
317
|
}
|
|
318
318
|
});
|
|
319
319
|
|
|
320
|
-
function ownKeys$
|
|
321
|
-
function _objectSpread$
|
|
320
|
+
function ownKeys$1w(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
321
|
+
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__default["default"](_context2 = ownKeys$1w(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$1w(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
322
322
|
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 } } } };
|
|
323
323
|
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 } } } };
|
|
324
324
|
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 } } } };
|
|
@@ -347,7 +347,7 @@ const ChannelPickerInput = _ref => {
|
|
|
347
347
|
const dataLocale = applicationShellConnectors.useApplicationContext(applicationContext => applicationContext.dataLocale);
|
|
348
348
|
const variables = React.useMemo(() => {
|
|
349
349
|
const rolesClause = getRolesClause(roles);
|
|
350
|
-
return _objectSpread$
|
|
350
|
+
return _objectSpread$1w({
|
|
351
351
|
sortByNamePath: `name.${dataLocale}`
|
|
352
352
|
}, rolesClause && {
|
|
353
353
|
extraWhere: rolesClause
|
|
@@ -735,9 +735,9 @@ const StatePickerInput = _ref => {
|
|
|
735
735
|
StatePickerInput.displayName = 'StatePickerInput';
|
|
736
736
|
var StatePickerInput$1 = StatePickerInput;
|
|
737
737
|
|
|
738
|
-
function ownKeys$
|
|
739
|
-
function _objectSpread$
|
|
740
|
-
const TooltipWrapper = /*#__PURE__*/React__namespace["default"].forwardRef((props, ref) => jsxRuntime.jsx("div", _objectSpread$
|
|
738
|
+
function ownKeys$1v(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
739
|
+
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__default["default"](_context = ownKeys$1v(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1v(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
740
|
+
const TooltipWrapper = /*#__PURE__*/React__namespace["default"].forwardRef((props, ref) => jsxRuntime.jsx("div", _objectSpread$1v({
|
|
741
741
|
ref: ref,
|
|
742
742
|
style: {
|
|
743
743
|
display: 'block',
|
|
@@ -770,8 +770,8 @@ var messages$Q = reactIntl.defineMessages({
|
|
|
770
770
|
}
|
|
771
771
|
});
|
|
772
772
|
|
|
773
|
-
function ownKeys$
|
|
774
|
-
function _objectSpread$
|
|
773
|
+
function ownKeys$1u(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
774
|
+
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__default["default"](_context = ownKeys$1u(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1u(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
775
775
|
const getBottomOption = formatMessage => ({
|
|
776
776
|
options: [{
|
|
777
777
|
label: formatMessage ? formatMessage(messages$Q.bottomOption) : messages$Q.bottomOption,
|
|
@@ -782,7 +782,7 @@ const getBottomOption = formatMessage => ({
|
|
|
782
782
|
const Option$2 = props => {
|
|
783
783
|
const _useIntl = reactIntl.useIntl(),
|
|
784
784
|
formatMessage = _useIntl.formatMessage;
|
|
785
|
-
return jsxRuntime.jsx(uiKit.AsyncSelectInput.Option, _objectSpread$
|
|
785
|
+
return jsxRuntime.jsx(uiKit.AsyncSelectInput.Option, _objectSpread$1u(_objectSpread$1u({}, props), {}, {
|
|
786
786
|
children: props.data.isBottomOption ? jsxRuntime.jsx(uiKit.Text.Detail, {
|
|
787
787
|
tone: "secondary",
|
|
788
788
|
children: formatMessage(props.data.label)
|
|
@@ -799,8 +799,8 @@ const Option$2 = props => {
|
|
|
799
799
|
};
|
|
800
800
|
Option$2.displayName = 'Option';
|
|
801
801
|
|
|
802
|
-
function ownKeys$
|
|
803
|
-
function _objectSpread$
|
|
802
|
+
function ownKeys$1t(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
803
|
+
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__default["default"](_context2 = ownKeys$1t(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$1t(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
804
804
|
const useHandlers = onChange => {
|
|
805
805
|
const _useState = React.useState(),
|
|
806
806
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -811,8 +811,8 @@ const useHandlers = onChange => {
|
|
|
811
811
|
}, []);
|
|
812
812
|
const handleChange = useEventCallback$1(event => {
|
|
813
813
|
var _context;
|
|
814
|
-
const eventWithExtractedValue = _objectSpread$
|
|
815
|
-
target: _objectSpread$
|
|
814
|
+
const eventWithExtractedValue = _objectSpread$1t(_objectSpread$1t({}, event), {}, {
|
|
815
|
+
target: _objectSpread$1t(_objectSpread$1t({}, event.target), {}, {
|
|
816
816
|
value: _Array$isArray__default["default"](event.target.value) ? _mapInstanceProperty__default["default"](_context = event.target.value).call(_context, item => item?.value) : event.target.value?.value
|
|
817
817
|
})
|
|
818
818
|
});
|
|
@@ -823,8 +823,8 @@ const useHandlers = onChange => {
|
|
|
823
823
|
var useHandlers$1 = useHandlers;
|
|
824
824
|
|
|
825
825
|
const _excluded$g = ["extraWhere"];
|
|
826
|
-
function ownKeys$
|
|
827
|
-
function _objectSpread$
|
|
826
|
+
function ownKeys$1s(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
827
|
+
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__default["default"](_context2 = ownKeys$1s(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$1s(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
828
828
|
const constructPrefixSearchPredicate$1 = function () {
|
|
829
829
|
let prefixSearchFields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
830
830
|
let lowerBound = arguments.length > 1 ? arguments[1] : undefined;
|
|
@@ -871,7 +871,7 @@ const useLoadOptions = _ref => {
|
|
|
871
871
|
}
|
|
872
872
|
return client$1.query({
|
|
873
873
|
query,
|
|
874
|
-
variables: _objectSpread$
|
|
874
|
+
variables: _objectSpread$1s({
|
|
875
875
|
where
|
|
876
876
|
}, restVariables),
|
|
877
877
|
context: {
|
|
@@ -1176,8 +1176,8 @@ var keepDisplayName$1 = keepDisplayName;
|
|
|
1176
1176
|
const wrapDisplayName = (BaseComponent, hocName) => `${hocName}(${getDisplayName$1(BaseComponent)})`;
|
|
1177
1177
|
var wrapDisplayName$1 = wrapDisplayName;
|
|
1178
1178
|
|
|
1179
|
-
function ownKeys$
|
|
1180
|
-
function _objectSpread$
|
|
1179
|
+
function ownKeys$1r(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1180
|
+
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__default["default"](_context = ownKeys$1r(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1r(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1181
1181
|
function _callSuper$8(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$8() ? _Reflect$construct__default["default"](o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
1182
1182
|
function _isNativeReflectConstruct$8() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$8 = function () { return !!t; })(); }
|
|
1183
1183
|
const withMouseOverState = BaseComponent => {
|
|
@@ -1208,7 +1208,7 @@ const withMouseOverState = BaseComponent => {
|
|
|
1208
1208
|
handleMouseOver: this.handleMouseOver,
|
|
1209
1209
|
handleMouseOut: this.handleMouseOut
|
|
1210
1210
|
};
|
|
1211
|
-
return jsxRuntime.jsx(BaseComponent, _objectSpread$
|
|
1211
|
+
return jsxRuntime.jsx(BaseComponent, _objectSpread$1r({}, _objectSpread$1r(_objectSpread$1r({}, this.props), injectedProps)));
|
|
1212
1212
|
}
|
|
1213
1213
|
}]);
|
|
1214
1214
|
}(React.Component);
|
|
@@ -1229,8 +1229,8 @@ var _ref$g = process.env.NODE_ENV === "production" ? {
|
|
|
1229
1229
|
};
|
|
1230
1230
|
const getInputStyles = props => /*#__PURE__*/react$1.css("transition:0.2s ease;border-radius:", designSystem.designTokens.borderRadiusForInput, ";border-style:solid;border-width:1px;color:", designSystem.designTokens.colorSolid, ";font-weight:", designSystem.designTokens.fontWeight500, ";font-size:", designSystem.designTokens.fontSize10, ";font-family:", designSystem.designTokens.fontFamily, ";padding:", designSystem.designTokens.spacingS, " ", designSystem.designTokens.spacingM, ";outline:none;box-shadow:none;appearance:none;width:100%;min-height:", designSystem.designTokens.heightForInput, ";", props.style === 'primary' && /*#__PURE__*/react$1.css("border-color:", designSystem.designTokens.colorNeutral, ";background-color:", designSystem.designTokens.colorSurface, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:getInputStyles;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRocm90dGxlZC1maWVsZC5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBNkVLIiwiZmlsZSI6InRocm90dGxlZC1maWVsZC5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBkZXNpZ25Ub2tlbnMgfSBmcm9tICdAY29tbWVyY2V0b29scy11aWtpdC9kZXNpZ24tc3lzdGVtJztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxudHlwZSBUVGV4dEFyZWFTdHlsZXNQcm9wcyA9IHtcbiAgc3R5bGU6ICdwcmltYXJ5JyB8ICdzZWNvbmRhcnknO1xuICBkaXNhYmxlZD86IGJvb2xlYW47XG4gIGlzVmFsaWQ/OiBib29sZWFuO1xufTtcblxudHlwZSBUSW5wdXRTdHlsZXNQcm9wcyA9IHtcbiAgc3R5bGU6ICdwcmltYXJ5JyB8ICdzZWNvbmRhcnknO1xuICBkaXNhYmxlZD86IGJvb2xlYW47XG4gIGlzVmFsaWQ/OiBib29sZWFuO1xuICBpc0dyYW51bGFyPzogYm9vbGVhbjtcbn07XG5cbmNvbnN0IGdldFRleHRhcmVhU3R5bGVzID0gKHByb3BzOiBUVGV4dEFyZWFTdHlsZXNQcm9wc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XRTdHlsZXMgfTtcbiJdfQ== */"), " ", props.style === 'secondary' && /*#__PURE__*/react$1.css("background-color:", designSystem.designTokens.colorNeutral95, ";border-color:", designSystem.designTokens.colorSurface, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:getInputStyles;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRocm90dGxlZC1maWVsZC5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBbUZLIiwiZmlsZSI6InRocm90dGxlZC1maWVsZC5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBkZXNpZ25Ub2tlbnMgfSBmcm9tICdAY29tbWVyY2V0b29scy11aWtpdC9kZXNpZ24tc3lzdGVtJztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxudHlwZSBUVGV4dEFyZWFTdHlsZXNQcm9wcyA9IHtcbiAgc3R5bGU6ICdwcmltYXJ5JyB8ICdzZWNvbmRhcnknO1xuICBkaXNhYmxlZD86IGJvb2xlYW47XG4gIGlzVmFsaWQ/OiBib29sZWFuO1xufTtcblxudHlwZSBUSW5wdXRTdHlsZXNQcm9wcyA9IHtcbiAgc3R5bGU6ICdwcmltYXJ5JyB8ICdzZWNvbmRhcnknO1xuICBkaXNhYmxlZD86IGJvb2xlYW47XG4gIGlzVmFsaWQ/OiBib29sZWFuO1xuICBpc0dyYW51bGFyPzogYm9vbGVhbjtcbn07XG5cbmNvbnN0IGdldFRleHRhcmVhU3R5bGVzID0gKHByb3BzOiBUVGV4dEFyZWFTdHlsZXNQcm9wcykgPT4gY3NzYFxuICB0cmFuc2l0aW9uOiAwLjJzIGVhc2U7XG4gIGJvcmRlci1yYWRpdXM6ICR7ZGVzaWduVG9rZW5zLmJvcmRlclJhZGl1c0ZvcklucHV0fTtcbiAgYm9yZGVyLXN0eWx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y5jb2xvck5ldXRyYWx9O1xuICAgIGJhY2tncm91bmQtY29sb3I6ICR7ZGVzaWduVG9rZW5zLmNvbG9yU3VyZmFjZX07XG4gIGB9XG5cbiAgJHtwcm9wcy5zdHlsZSA9PT0gJ3NlY29uZGFyeScgJiZcbiAgY3NzYFxuICAgIGJhY2tncm91bmQtY29sb3I6ICR7ZGVzaWduVG9rZW5zLmNvbG9yTmV1dHJhbDk1fTtcbiAgICBib3JkZXItY29sb3I6ICR7ZGVzaWduVG9rZW5zLmNvbG9yU3VyZmFjZX07XG4gIGB9XG5cbiAgJHtwcm9wcy5kaXNhYmxlZCAmJlxuICBjc3NgXG4gICAgY3Vyc29yOiBub3QtYWxsb3dlZDtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAke2Rlc2lnblRva2Vucy5jb2xvckFjY2VudDk4fTtcbiAgICBjb2xvcjogJHtkZXNpZ25Ub2tlbnMuY29sb3JTb2xpZH07XG4gICAgb3BhY2l0eTogMTtcbiAgYH1cblxuICAkeyFwcm9wcy5pc1ZhbGlkICYmXG4gIGNzc2BcbiAgICBib3JkZXItY29sb3I6ICR7ZGVzaWduVG9rZW5zLmNvbG9yRXJyb3J9ICFpbXBvcnRhbnQ7XG4gICAgYm9yZGVyOiAxcHggc29saWQ7XG4gIGB9XG5cbiAgJHtwcm9wcy5pc0dyYW51bGFyICYmXG4gIGNzc2BcbiAgICBib3JkZXItdG9wLWxlZnQtcmFkaXVzOiAwO1xuICAgIGJvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6IDA7XG4gICAgbWFyZ2luLWxlZnQ6IDA7XG4gIGB9XG5gO1xuXG5leHBvcnQgeyBnZXRUZXh0YXJlYVN0eWxlcywgZ2V0SW5wdXRTdHlsZXMgfTtcbiJdfQ== */"), " ", props.disabled && /*#__PURE__*/react$1.css("cursor:not-allowed;background-color:", designSystem.designTokens.colorAccent98, ";color:", designSystem.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/OiBib29sZWFuO1xufTtcblxudHlwZSBUSW5wdXRTdHlsZXNQcm9wcyA9IHtcbiAgc3R5bGU6ICdwcmltYXJ5JyB8ICdzZWNvbmRhcnknO1xuICBkaXNhYmxlZD86IGJvb2xlYW47XG4gIGlzVmFsaWQ/OiBib29sZWFuO1xuICBpc0dyYW51bGFyPzogYm9vbGVhbjtcbn07XG5cbmNvbnN0IGdldFRleHRhcmVhU3R5bGVzID0gKHByb3BzOiBUVGV4dEFyZWFTdHlsZXNQcm9wcykgPT4gY3NzYFxuICB0cmFuc2l0aW9uOiAwLjJzIGVhc2U7XG4gIGJvcmRlci1yYWRpdXM6ICR7ZGVzaWduVG9rZW5zLmJvcmRlclJhZGl1c0ZvcklucHV0fTtcbiAgYm9yZGVyLXN0eWxlOiBzb2xpZDtcbiAgYm9yZGVyLXdpZHRoOiAxcHg7XG4gIGNvbG9yOiAke2Rlc2lnblRva2Vucy5jb2xvclNvbGlkfTtcbiAgZm9udC13ZWlnaHQ6ICR7ZGVzaWduVG9rZW5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lY29uZGFyeScgJiZcbiAgY3NzYFxuICAgIGJhY2tncm91bmQtY29sb3I6ICR7ZGVzaWduVG9rZW5zLmNvbG9yTmV1dHJhbDk1fTtcbiAgICBib3JkZXItY29sb3I6ICR7ZGVzaWduVG9rZW5zLmNvbG9yU3VyZmFjZX07XG4gIGB9XG5cbiAgJHtwcm9wcy5kaXNhYmxlZCAmJlxuICBjc3NgXG4gICAgY3Vyc29yOiBub3QtYWxsb3dlZDtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAke2Rlc2lnblRva2Vucy5jb2xvckFjY2VudDk4fTtcbiAgICBjb2xvcjogJHtkZXNpZ25Ub2tlbnMuY29sb3JTb2xpZH07XG4gICAgb3BhY2l0eTogMTtcbiAgYH1cblxuICAkeyFwcm9wcy5pc1ZhbGlkICYmXG4gIGNzc2BcbiAgICBib3JkZXItY29sb3I6ICR7ZGVzaWduVG9rZW5zLmNvbG9yRXJyb3J9ICFpbXBvcnRhbnQ7XG4gICAgYm9yZGVyOiAxcHggc29saWQ7XG4gIGB9XG5cbiAgJHtwcm9wcy5pc0dyYW51bGFyICYmXG4gIGNzc2BcbiAgICBib3JkZXItdG9wLWxlZnQtcmFkaXVzOiAwO1xuICAgIGJvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6IDA7XG4gICAgbWFyZ2luLWxlZnQ6IDA7XG4gIGB9XG5gO1xuXG5leHBvcnQgeyBnZXRUZXh0YXJlYVN0eWxlcywgZ2V0SW5wdXRTdHlsZXMgfTtcbiJdfQ== */"), " ", !props.isValid && /*#__PURE__*/react$1.css("border-color:", designSystem.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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRocm90dGxlZC1maWVsZC5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFB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GB9XG5cbiAgJHtwcm9wcy5kaXNhYmxlZCAmJlxuICBjc3NgXG4gICAgY3Vyc29yOiBub3QtYWxsb3dlZDtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAke2Rlc2lnblRva2Vucy5jb2xvckFjY2VudDk4fTtcbiAgICBjb2xvcjogJHtkZXNpZ25Ub2tlbnMuY29sb3JTb2xpZH07XG4gICAgb3BhY2l0eTogMTtcbiAgYH1cblxuICAkeyFwcm9wcy5pc1ZhbGlkICYmXG4gIGNzc2BcbiAgICBib3JkZXItY29sb3I6ICR7ZGVzaWduVG9rZW5zLmNvbG9yRXJyb3J9ICFpbXBvcnRhbnQ7XG4gICAgYm9yZGVyOiAxcHggc29saWQ7XG4gIGB9XG5cbiAgJHtwcm9wcy5pc0dyYW51bGFyICYmXG4gIGNzc2BcbiAgICBib3JkZXItdG9wLWxlZnQtcmFkaXVzOiAwO1xuICAgIGJvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6IDA7XG4gICAgbWFyZ2luLWxlZnQ6IDA7XG4gIGB9XG5gO1xuXG5leHBvcnQgeyBnZXRUZXh0YXJlYVN0eWxlcywgZ2V0SW5wdXRTdHlsZXMgfTtcbiJdfQ== */"), " ", props.isGranular && _ref$g, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:getInputStyles;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRocm90dGxlZC1maWVsZC5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBNER3RCIsImZpbGUiOiJ0aHJvdHRsZWQtZmllbGQuc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgZGVzaWduVG9rZW5zIH0gZnJvbSAnQGNvbW1lcmNldG9vbHMtdWlraXQvZGVzaWduLXN5c3RlbSc7XG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGl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R9O1xuICAgIG9wYWNpdHk6IDE7XG4gIGB9XG5cbiAgJHshcHJvcHMuaXNWYWxpZCAmJlxuICBjc3NgXG4gICAgYm9yZGVyLWNvbG9yOiAke2Rlc2lnblRva2Vucy5jb2xvckVycm9yfSAhaW1wb3J0YW50O1xuICAgIGJvcmRlcjogMXB4IHNvbGlkO1xuICBgfVxuXG4gICR7cHJvcHMuaXNHcmFudWxhciAmJlxuICBjc3NgXG4gICAgYm9yZGVyLXRvcC1sZWZ0LXJhZGl1czogMDtcbiAgICBib3JkZXItYm90dG9tLWxlZnQtcmFkaXVzOiAwO1xuICAgIG1hcmdpbi1sZWZ0OiAwO1xuICBgfVxuYDtcblxuZXhwb3J0IHsgZ2V0VGV4dGFyZWFTdHlsZXMsIGdldElucHV0U3R5bGVzIH07XG4iXX0= */");
|
|
1231
1231
|
|
|
1232
|
-
function ownKeys$
|
|
1233
|
-
function _objectSpread$
|
|
1232
|
+
function ownKeys$1q(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1233
|
+
function _objectSpread$1q(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1q(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1q(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1234
1234
|
function _callSuper$7(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$7() ? _Reflect$construct__default["default"](o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
1235
1235
|
function _isNativeReflectConstruct$7() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$7 = function () { return !!t; })(); }
|
|
1236
1236
|
let ThrottledField = /*#__PURE__*/function (_PureComponent) {
|
|
@@ -1309,7 +1309,7 @@ let ThrottledField = /*#__PURE__*/function (_PureComponent) {
|
|
|
1309
1309
|
}, {
|
|
1310
1310
|
key: "render",
|
|
1311
1311
|
value: function render() {
|
|
1312
|
-
const commonProps = _objectSpread$
|
|
1312
|
+
const commonProps = _objectSpread$1q(_objectSpread$1q({
|
|
1313
1313
|
value: this.state.draftValue,
|
|
1314
1314
|
autoComplete: this.props.autoComplete,
|
|
1315
1315
|
onChange: this.handleChange,
|
|
@@ -1328,13 +1328,13 @@ let ThrottledField = /*#__PURE__*/function (_PureComponent) {
|
|
|
1328
1328
|
htmlFor: inputId,
|
|
1329
1329
|
children: this.props.label
|
|
1330
1330
|
})
|
|
1331
|
-
}), this.props.as === 'textarea' ? jsxRuntime.jsx(Textarea__default["default"], _objectSpread$
|
|
1331
|
+
}), this.props.as === 'textarea' ? jsxRuntime.jsx(Textarea__default["default"], _objectSpread$1q(_objectSpread$1q({}, commonProps), {}, {
|
|
1332
1332
|
id: inputId,
|
|
1333
1333
|
css: getTextareaStyles(this.props),
|
|
1334
1334
|
rows: 1,
|
|
1335
1335
|
maxRows: this.props.autoSize ? undefined : 1,
|
|
1336
1336
|
cacheMeasurements: true
|
|
1337
|
-
})) : jsxRuntime.jsx("input", _objectSpread$
|
|
1337
|
+
})) : jsxRuntime.jsx("input", _objectSpread$1q(_objectSpread$1q({}, commonProps), {}, {
|
|
1338
1338
|
id: inputId,
|
|
1339
1339
|
ref: this.props.inputRef,
|
|
1340
1340
|
type: this.props.as,
|
|
@@ -1552,8 +1552,8 @@ SearchInput.defaultProps = {
|
|
|
1552
1552
|
};
|
|
1553
1553
|
var searchInput = flowRight__default["default"](keepDisplayName$1(SearchInput), withMouseOverState$1, reactIntl.injectIntl)(SearchInput);
|
|
1554
1554
|
|
|
1555
|
-
function ownKeys$
|
|
1556
|
-
function _objectSpread$
|
|
1555
|
+
function ownKeys$1p(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1556
|
+
function _objectSpread$1p(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1p(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1p(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1557
1557
|
const injectDataTablePaginationState = initialValues => Component => {
|
|
1558
1558
|
const WithDataTablePaginationState = props => {
|
|
1559
1559
|
const _usePaginationState = uiKit.usePaginationState({
|
|
@@ -1566,7 +1566,7 @@ const injectDataTablePaginationState = initialValues => Component => {
|
|
|
1566
1566
|
key: initialValues?.tableSorting?.key,
|
|
1567
1567
|
order: initialValues?.tableSorting?.order
|
|
1568
1568
|
});
|
|
1569
|
-
return jsxRuntime.jsx(Component, _objectSpread$
|
|
1569
|
+
return jsxRuntime.jsx(Component, _objectSpread$1p(_objectSpread$1p({}, props), {}, {
|
|
1570
1570
|
dataTablePaginationState: {
|
|
1571
1571
|
page,
|
|
1572
1572
|
perPage,
|
|
@@ -1579,8 +1579,8 @@ const injectDataTablePaginationState = initialValues => Component => {
|
|
|
1579
1579
|
};
|
|
1580
1580
|
var injectDataTablePaginationState$1 = injectDataTablePaginationState;
|
|
1581
1581
|
|
|
1582
|
-
function ownKeys$
|
|
1583
|
-
function _objectSpread$
|
|
1582
|
+
function ownKeys$1o(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1583
|
+
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__default["default"](_context = ownKeys$1o(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1o(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1584
1584
|
const injectNotifications = function () {
|
|
1585
1585
|
let propName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'notifications';
|
|
1586
1586
|
return Component => {
|
|
@@ -1595,7 +1595,7 @@ const injectNotifications = function () {
|
|
|
1595
1595
|
onActionError,
|
|
1596
1596
|
hideAllPageNotifications
|
|
1597
1597
|
};
|
|
1598
|
-
return jsxRuntime.jsx(Component, _objectSpread$
|
|
1598
|
+
return jsxRuntime.jsx(Component, _objectSpread$1o(_objectSpread$1o({}, props), {}, {
|
|
1599
1599
|
[propName]: notifications
|
|
1600
1600
|
}));
|
|
1601
1601
|
};
|
|
@@ -1605,23 +1605,23 @@ const injectNotifications = function () {
|
|
|
1605
1605
|
};
|
|
1606
1606
|
var injectNotifications$1 = injectNotifications;
|
|
1607
1607
|
|
|
1608
|
-
function ownKeys$
|
|
1609
|
-
function _objectSpread$
|
|
1608
|
+
function ownKeys$1n(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1609
|
+
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__default["default"](_context = ownKeys$1n(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1n(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1610
1610
|
function isPropsMapper(mapProps) {
|
|
1611
1611
|
return typeof mapProps === 'function';
|
|
1612
1612
|
}
|
|
1613
1613
|
const withProps = mapProps => Component => {
|
|
1614
1614
|
const EnhancedWithProps = ownProps => {
|
|
1615
|
-
const enhancedProps = isPropsMapper(mapProps) ? _objectSpread$
|
|
1616
|
-
return jsxRuntime.jsx(Component, _objectSpread$
|
|
1615
|
+
const enhancedProps = isPropsMapper(mapProps) ? _objectSpread$1n(_objectSpread$1n({}, ownProps), mapProps(ownProps)) : _objectSpread$1n(_objectSpread$1n({}, ownProps), mapProps);
|
|
1616
|
+
return jsxRuntime.jsx(Component, _objectSpread$1n({}, enhancedProps));
|
|
1617
1617
|
};
|
|
1618
1618
|
EnhancedWithProps.displayName = wrapDisplayName$1(Component, 'withProps');
|
|
1619
1619
|
return EnhancedWithProps;
|
|
1620
1620
|
};
|
|
1621
1621
|
var withProps$1 = withProps;
|
|
1622
1622
|
|
|
1623
|
-
function ownKeys$
|
|
1624
|
-
function _objectSpread$
|
|
1623
|
+
function ownKeys$1m(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1624
|
+
function _objectSpread$1m(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1m(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1m(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1625
1625
|
const useRedirectEffect = _ref => {
|
|
1626
1626
|
let goTo = _ref.goTo;
|
|
1627
1627
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -1641,31 +1641,31 @@ const defaultOptions$5 = {
|
|
|
1641
1641
|
skip: () => false
|
|
1642
1642
|
};
|
|
1643
1643
|
const withRedirectTo = options => Component => {
|
|
1644
|
-
const mergedOptions = _objectSpread$
|
|
1644
|
+
const mergedOptions = _objectSpread$1m(_objectSpread$1m({}, defaultOptions$5), options);
|
|
1645
1645
|
const WithRedirectTo = props => {
|
|
1646
1646
|
if (!mergedOptions.skip(props)) {
|
|
1647
1647
|
return jsxRuntime.jsx(RedirectTo, {
|
|
1648
1648
|
goTo: options.selectGoTo(props)
|
|
1649
1649
|
});
|
|
1650
1650
|
}
|
|
1651
|
-
return jsxRuntime.jsx(Component, _objectSpread$
|
|
1651
|
+
return jsxRuntime.jsx(Component, _objectSpread$1m({}, props));
|
|
1652
1652
|
};
|
|
1653
1653
|
WithRedirectTo.displayName = 'WithFirstStepRedirect';
|
|
1654
1654
|
return WithRedirectTo;
|
|
1655
1655
|
};
|
|
1656
1656
|
var withRedirectTo$1 = withRedirectTo;
|
|
1657
1657
|
|
|
1658
|
-
function ownKeys$
|
|
1659
|
-
function _objectSpread$
|
|
1658
|
+
function ownKeys$1l(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1659
|
+
function _objectSpread$1l(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1l(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1l(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1660
1660
|
const defaultOptions$4 = {
|
|
1661
1661
|
propName: 'modalState',
|
|
1662
1662
|
isInitiallyOpen: false
|
|
1663
1663
|
};
|
|
1664
1664
|
const injectModalState$2 = options => Component => {
|
|
1665
|
-
const mergedOptions = _objectSpread$
|
|
1665
|
+
const mergedOptions = _objectSpread$1l(_objectSpread$1l({}, defaultOptions$4), options);
|
|
1666
1666
|
const WithModalState = props => {
|
|
1667
1667
|
const modalState = applicationComponents.useModalState(mergedOptions.isInitiallyOpen);
|
|
1668
|
-
return jsxRuntime.jsx(Component, _objectSpread$
|
|
1668
|
+
return jsxRuntime.jsx(Component, _objectSpread$1l(_objectSpread$1l({}, props), {}, {
|
|
1669
1669
|
[mergedOptions.propName]: modalState
|
|
1670
1670
|
}));
|
|
1671
1671
|
};
|
|
@@ -1674,17 +1674,17 @@ const injectModalState$2 = options => Component => {
|
|
|
1674
1674
|
};
|
|
1675
1675
|
var injectModalState$3 = injectModalState$2;
|
|
1676
1676
|
|
|
1677
|
-
function ownKeys$
|
|
1678
|
-
function _objectSpread$
|
|
1677
|
+
function ownKeys$1k(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1678
|
+
function _objectSpread$1k(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1k(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1k(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1679
1679
|
const defaultOptions$3 = {
|
|
1680
1680
|
propName: 'toggleState',
|
|
1681
1681
|
isInitiallyOpen: false
|
|
1682
1682
|
};
|
|
1683
1683
|
const injectModalState = options => Component => {
|
|
1684
|
-
const mergedOptions = _objectSpread$
|
|
1684
|
+
const mergedOptions = _objectSpread$1k(_objectSpread$1k({}, defaultOptions$3), options);
|
|
1685
1685
|
const WithToggleState = props => {
|
|
1686
1686
|
const toggleState = uiKit.useToggleState(mergedOptions.isInitiallyOpen);
|
|
1687
|
-
return jsxRuntime.jsx(Component, _objectSpread$
|
|
1687
|
+
return jsxRuntime.jsx(Component, _objectSpread$1k(_objectSpread$1k({}, props), {}, {
|
|
1688
1688
|
[mergedOptions.propName]: toggleState
|
|
1689
1689
|
}));
|
|
1690
1690
|
};
|
|
@@ -1693,8 +1693,8 @@ const injectModalState = options => Component => {
|
|
|
1693
1693
|
};
|
|
1694
1694
|
var injectModalState$1 = injectModalState;
|
|
1695
1695
|
|
|
1696
|
-
function ownKeys$
|
|
1697
|
-
function _objectSpread$
|
|
1696
|
+
function ownKeys$1j(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1697
|
+
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__default["default"](_context2 = ownKeys$1j(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$1j(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1698
1698
|
const defaultOptions$2 = {
|
|
1699
1699
|
storageType: 'local',
|
|
1700
1700
|
segregateByUser: true
|
|
@@ -1712,7 +1712,7 @@ const getStorage = storageType => storageType === 'session' ? sessionStorage : l
|
|
|
1712
1712
|
const isNil = value => typeof value === 'undefined' || value === null;
|
|
1713
1713
|
const useStorage = (storageKey, initialStorageValue, options) => {
|
|
1714
1714
|
var _context;
|
|
1715
|
-
const mergedOptions = _objectSpread$
|
|
1715
|
+
const mergedOptions = _objectSpread$1j(_objectSpread$1j({}, defaultOptions$2), options);
|
|
1716
1716
|
const userId = applicationShellConnectors.useApplicationContext(context => context.user?.id);
|
|
1717
1717
|
const scopedStorageKey = _filterInstanceProperty__default["default"](_context = [mergedOptions.segregateByUser && userId, storageKey]).call(_context, Boolean).join('/');
|
|
1718
1718
|
const readFromStorage = React.useCallback(() => {
|
|
@@ -1757,8 +1757,8 @@ const useStorage = (storageKey, initialStorageValue, options) => {
|
|
|
1757
1757
|
};
|
|
1758
1758
|
var useStorage$1 = useStorage;
|
|
1759
1759
|
|
|
1760
|
-
function ownKeys$
|
|
1761
|
-
function _objectSpread$
|
|
1760
|
+
function ownKeys$1i(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1761
|
+
function _objectSpread$1i(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1i(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1i(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1762
1762
|
const defaultOptions$1 = {
|
|
1763
1763
|
propName: 'storage',
|
|
1764
1764
|
storageKey: '',
|
|
@@ -1771,7 +1771,7 @@ const injectStorage = options => WrappedComponent => {
|
|
|
1771
1771
|
* Options are being merged by spreading as destructuring and defaulting in
|
|
1772
1772
|
* argument position does not allow passing specification of option(s).
|
|
1773
1773
|
*/
|
|
1774
|
-
const mergedOptions = _objectSpread$
|
|
1774
|
+
const mergedOptions = _objectSpread$1i(_objectSpread$1i({}, defaultOptions$1), options);
|
|
1775
1775
|
const WithStorage = props => {
|
|
1776
1776
|
const _useStorage = useStorage$1(mergedOptions.storageKey(props), mergedOptions.initalStorageValue, mergedOptions.options),
|
|
1777
1777
|
_useStorage2 = _slicedToArray(_useStorage, 3),
|
|
@@ -1785,7 +1785,7 @@ const injectStorage = options => WrappedComponent => {
|
|
|
1785
1785
|
readFromStorage
|
|
1786
1786
|
}
|
|
1787
1787
|
};
|
|
1788
|
-
return jsxRuntime.jsx(WrappedComponent, _objectSpread$
|
|
1788
|
+
return jsxRuntime.jsx(WrappedComponent, _objectSpread$1i(_objectSpread$1i({}, props), storageProp));
|
|
1789
1789
|
};
|
|
1790
1790
|
WithStorage.displayName = wrapDisplayName$1(WrappedComponent, 'WithStorage');
|
|
1791
1791
|
return WithStorage;
|
|
@@ -1830,8 +1830,8 @@ function useFormatLocalizedFieldToString() {
|
|
|
1830
1830
|
return formatLocalizedFieldToString;
|
|
1831
1831
|
}
|
|
1832
1832
|
|
|
1833
|
-
function ownKeys$
|
|
1834
|
-
function _objectSpread$
|
|
1833
|
+
function ownKeys$1h(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1834
|
+
function _objectSpread$1h(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1h(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1h(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1835
1835
|
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 } } } };
|
|
1836
1836
|
const MC_RESOURCES_WITH_KEYS = {
|
|
1837
1837
|
ASSOCIATE_ROLE: 'ASSOCIATE_ROLE',
|
|
@@ -1906,7 +1906,7 @@ const DEFAULT_SKIP_RESOURCE_TYPES_VARIABLES = {
|
|
|
1906
1906
|
[BASE_SKIP_RESOURCE_TYPES_VARIABLES.ZONE]: true
|
|
1907
1907
|
};
|
|
1908
1908
|
const getSkipVariables = resourceType => {
|
|
1909
|
-
return _objectSpread$
|
|
1909
|
+
return _objectSpread$1h(_objectSpread$1h({}, DEFAULT_SKIP_RESOURCE_TYPES_VARIABLES), {}, {
|
|
1910
1910
|
[BASE_SKIP_RESOURCE_TYPES_VARIABLES[resourceType]]: false
|
|
1911
1911
|
});
|
|
1912
1912
|
};
|
|
@@ -1931,7 +1931,7 @@ const getQueryVariables = _ref2 => {
|
|
|
1931
1931
|
fieldValue,
|
|
1932
1932
|
id
|
|
1933
1933
|
});
|
|
1934
|
-
return _objectSpread$
|
|
1934
|
+
return _objectSpread$1h({
|
|
1935
1935
|
where
|
|
1936
1936
|
}, skipVariables);
|
|
1937
1937
|
};
|
|
@@ -1965,8 +1965,8 @@ const usePrevious = value => {
|
|
|
1965
1965
|
};
|
|
1966
1966
|
var usePrevious$1 = usePrevious;
|
|
1967
1967
|
|
|
1968
|
-
function ownKeys$
|
|
1969
|
-
function _objectSpread$
|
|
1968
|
+
function ownKeys$1g(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1969
|
+
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__default["default"](_context7 = ownKeys$1g(Object(t), !0)).call(_context7, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context8 = ownKeys$1g(Object(t))).call(_context8, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1970
1970
|
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 } } } };
|
|
1971
1971
|
const filterStoresOutdatedDanglingProductSelections = storesQueryResult => {
|
|
1972
1972
|
var _context, _context2;
|
|
@@ -1977,7 +1977,7 @@ const filterStoresOutdatedDanglingProductSelections = storesQueryResult => {
|
|
|
1977
1977
|
offset: storesQueryResult.offset,
|
|
1978
1978
|
results: ((_context = storesQueryResult.results) == null ? void 0 : _bindInstanceProperty__default["default"](_context2 = Function.call).call(_context2, _mapInstanceProperty__default["default"](_context), _context))?.(store => {
|
|
1979
1979
|
var _context3, _context4;
|
|
1980
|
-
return _objectSpread$
|
|
1980
|
+
return _objectSpread$1g(_objectSpread$1g({}, store), {}, {
|
|
1981
1981
|
productSelections: ((_context3 = store.productSelections) == null ? void 0 : _bindInstanceProperty__default["default"](_context4 = Function.call).call(_context4, _filterInstanceProperty__default["default"](_context3), _context3))?.(productSelectionRef => Boolean(productSelectionRef.productSelection))
|
|
1982
1982
|
});
|
|
1983
1983
|
})
|
|
@@ -1985,7 +1985,7 @@ const filterStoresOutdatedDanglingProductSelections = storesQueryResult => {
|
|
|
1985
1985
|
};
|
|
1986
1986
|
const createQueryVariables$6 = ownProps => {
|
|
1987
1987
|
var _context5, _context6;
|
|
1988
|
-
return _objectSpread$
|
|
1988
|
+
return _objectSpread$1g(_objectSpread$1g(_objectSpread$1g({
|
|
1989
1989
|
limit: ownProps.limit,
|
|
1990
1990
|
offset: ownProps.offset,
|
|
1991
1991
|
sort: _sortInstanceProperty__default["default"](ownProps)
|
|
@@ -2038,8 +2038,8 @@ const useStoresListFetcher = props => {
|
|
|
2038
2038
|
};
|
|
2039
2039
|
var useStoresListFetcher$1 = useStoresListFetcher;
|
|
2040
2040
|
|
|
2041
|
-
function ownKeys$
|
|
2042
|
-
function _objectSpread$
|
|
2041
|
+
function ownKeys$1f(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2042
|
+
function _objectSpread$1f(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1f(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1f(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
2043
2043
|
const createSearchQuery = (searchBy, searchTerm, language) => {
|
|
2044
2044
|
if (searchBy === 'key/name') {
|
|
2045
2045
|
return {
|
|
@@ -2058,7 +2058,7 @@ const createSearchQuery = (searchBy, searchTerm, language) => {
|
|
|
2058
2058
|
};
|
|
2059
2059
|
} else {
|
|
2060
2060
|
return {
|
|
2061
|
-
fullTextPrefix: _objectSpread$
|
|
2061
|
+
fullTextPrefix: _objectSpread$1f(_objectSpread$1f({
|
|
2062
2062
|
field: searchBy
|
|
2063
2063
|
}, searchBy === 'name' ? {
|
|
2064
2064
|
language: language
|
|
@@ -2134,7 +2134,7 @@ const useStoresSearchFetcher = () => {
|
|
|
2134
2134
|
});
|
|
2135
2135
|
setIsLoading(false);
|
|
2136
2136
|
} catch (error) {
|
|
2137
|
-
setStoreSearchResults(prev => _objectSpread$
|
|
2137
|
+
setStoreSearchResults(prev => _objectSpread$1f(_objectSpread$1f({}, prev), {}, {
|
|
2138
2138
|
hits: [],
|
|
2139
2139
|
total: 0
|
|
2140
2140
|
}));
|
|
@@ -2145,7 +2145,7 @@ const useStoresSearchFetcher = () => {
|
|
|
2145
2145
|
fetchStoreSearchResults,
|
|
2146
2146
|
storeSearchResults,
|
|
2147
2147
|
isLoading,
|
|
2148
|
-
resetStoreSearchResults: () => setStoreSearchResults(prev => _objectSpread$
|
|
2148
|
+
resetStoreSearchResults: () => setStoreSearchResults(prev => _objectSpread$1f(_objectSpread$1f({}, prev), {}, {
|
|
2149
2149
|
hits: [],
|
|
2150
2150
|
total: 0
|
|
2151
2151
|
}))
|
|
@@ -2236,8 +2236,8 @@ const useStoreKeysInDataFences = _ref => {
|
|
|
2236
2236
|
};
|
|
2237
2237
|
var useStoreKeysInDataFences$1 = useStoreKeysInDataFences;
|
|
2238
2238
|
|
|
2239
|
-
function ownKeys$
|
|
2240
|
-
function _objectSpread$
|
|
2239
|
+
function ownKeys$1e(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2240
|
+
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__default["default"](_context = ownKeys$1e(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1e(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
2241
2241
|
const TEN_MINUTES_IN_MS = 600000;
|
|
2242
2242
|
const defaultOptions = {
|
|
2243
2243
|
reminderInterval: REMINDER_OPTION_1_DAY,
|
|
@@ -2265,7 +2265,7 @@ const useHasReminderExpired = readReminderInterval => {
|
|
|
2265
2265
|
};
|
|
2266
2266
|
const usePersistedReminder = function () {
|
|
2267
2267
|
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
2268
|
-
const mergedOptions = _objectSpread$
|
|
2268
|
+
const mergedOptions = _objectSpread$1e(_objectSpread$1e({}, defaultOptions), options);
|
|
2269
2269
|
const _useStorage = useStorage$1(mergedOptions.storageKey, null),
|
|
2270
2270
|
_useStorage2 = _slicedToArray(_useStorage, 3),
|
|
2271
2271
|
initialChosenReminderInterval = _useStorage2[0],
|
|
@@ -2330,8 +2330,8 @@ var messages$O = reactIntl.defineMessages({
|
|
|
2330
2330
|
}
|
|
2331
2331
|
});
|
|
2332
2332
|
|
|
2333
|
-
function ownKeys$
|
|
2334
|
-
function _objectSpread$
|
|
2333
|
+
function ownKeys$1d(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2334
|
+
function _objectSpread$1d(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1d(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1d(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
2335
2335
|
const LinkToProfile = props => {
|
|
2336
2336
|
return jsxRuntime.jsx(uiKit.Link, {
|
|
2337
2337
|
to: "/account/profile",
|
|
@@ -2351,7 +2351,7 @@ const NotificationText = () => jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
|
2351
2351
|
isBold: true,
|
|
2352
2352
|
intlMessage: messages$O.profileUpdated
|
|
2353
2353
|
}), jsxRuntime.jsx(uiKit.Text.Body, {
|
|
2354
|
-
intlMessage: _objectSpread$
|
|
2354
|
+
intlMessage: _objectSpread$1d(_objectSpread$1d({}, messages$O.addMoreInformation), {}, {
|
|
2355
2355
|
values: {
|
|
2356
2356
|
newline: getNewLine
|
|
2357
2357
|
}
|
|
@@ -2360,7 +2360,7 @@ const NotificationText = () => jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
|
2360
2360
|
}), jsxRuntime.jsx(uiKit.Spacings.Stack, {
|
|
2361
2361
|
scale: "xs",
|
|
2362
2362
|
children: jsxRuntime.jsx(uiKit.Text.Body, {
|
|
2363
|
-
intlMessage: _objectSpread$
|
|
2363
|
+
intlMessage: _objectSpread$1d(_objectSpread$1d({}, messages$O.informationAndProfileLink), {}, {
|
|
2364
2364
|
values: {
|
|
2365
2365
|
newline: getNewLine,
|
|
2366
2366
|
link: getLinkToProfile
|
|
@@ -2526,8 +2526,8 @@ const useDebouncedPromiseCallback = (promiseCallback, wait) =>
|
|
|
2526
2526
|
React.useCallback(debounce__default["default"](promiseCallback, wait), [promiseCallback]);
|
|
2527
2527
|
var useDebouncedPromiseCallback$1 = useDebouncedPromiseCallback;
|
|
2528
2528
|
|
|
2529
|
-
function ownKeys$
|
|
2530
|
-
function _objectSpread$
|
|
2529
|
+
function ownKeys$1c(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2530
|
+
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__default["default"](_context2 = ownKeys$1c(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$1c(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
2531
2531
|
const prepareMutableColumnProps = (columnConfig, mutableColumnProps) => {
|
|
2532
2532
|
const updatedColumnProps = {};
|
|
2533
2533
|
_forEachInstanceProperty__default["default"](mutableColumnProps).call(mutableColumnProps, columnProp => {
|
|
@@ -2547,14 +2547,14 @@ const retrieveColumnsWithCachedConfiguration = _ref => {
|
|
|
2547
2547
|
mutableColumnProps = _ref.mutableColumnProps;
|
|
2548
2548
|
return _mapInstanceProperty__default["default"](_context = _filterInstanceProperty__default["default"](cachedVisibleTableConfiguration).call(cachedVisibleTableConfiguration, cachedColumn => _findInstanceProperty__default["default"](allAvailableColumnsConfiguration).call(allAvailableColumnsConfiguration, initialConfig => initialConfig.key === cachedColumn.key))).call(_context, cachedConfig => {
|
|
2549
2549
|
const initialColumnConfig = _findInstanceProperty__default["default"](allAvailableColumnsConfiguration).call(allAvailableColumnsConfiguration, initialConfig => initialConfig.key === cachedConfig.key);
|
|
2550
|
-
return _objectSpread$
|
|
2550
|
+
return _objectSpread$1c(_objectSpread$1c({}, initialColumnConfig), prepareMutableColumnProps(cachedConfig, mutableColumnProps));
|
|
2551
2551
|
});
|
|
2552
2552
|
};
|
|
2553
2553
|
const handleCacheUpdate = _ref2 => {
|
|
2554
2554
|
let update = _ref2.update,
|
|
2555
2555
|
cachedVisibleTableConfiguration = _ref2.cachedVisibleTableConfiguration,
|
|
2556
2556
|
updateCachedTableConfiguration = _ref2.updateCachedTableConfiguration;
|
|
2557
|
-
return updateCachedTableConfiguration(_objectSpread$
|
|
2557
|
+
return updateCachedTableConfiguration(_objectSpread$1c(_objectSpread$1c({}, pick__default["default"](cachedVisibleTableConfiguration, ['columnsConfig', 'displaySettings'])), update));
|
|
2558
2558
|
};
|
|
2559
2559
|
|
|
2560
2560
|
// Signature:
|
|
@@ -2583,7 +2583,7 @@ const usePersistedTableConfiguration = props => {
|
|
|
2583
2583
|
return {
|
|
2584
2584
|
columnsConfig: _mapInstanceProperty__default["default"](initialVisibleColumnKeys).call(initialVisibleColumnKeys, visibleColumnKey => {
|
|
2585
2585
|
const visibleColumnConfig = _findInstanceProperty__default["default"](allAvailableColumnsConfiguration).call(allAvailableColumnsConfiguration, columnConfig => columnConfig.key === visibleColumnKey);
|
|
2586
|
-
return _objectSpread$
|
|
2586
|
+
return _objectSpread$1c({
|
|
2587
2587
|
key: visibleColumnKey
|
|
2588
2588
|
}, prepareMutableColumnProps(visibleColumnConfig, mutableColumnProps));
|
|
2589
2589
|
}),
|
|
@@ -2646,14 +2646,14 @@ const useProductSelectionsTotalFetcher = props => {
|
|
|
2646
2646
|
};
|
|
2647
2647
|
var useProductSelectionsTotalFetcher$1 = useProductSelectionsTotalFetcher;
|
|
2648
2648
|
|
|
2649
|
-
function ownKeys$
|
|
2650
|
-
function _objectSpread$
|
|
2649
|
+
function ownKeys$1b(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2650
|
+
function _objectSpread$1b(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$1b(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$1b(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
2651
2651
|
|
|
2652
2652
|
// eslint-disable-next-line import/prefer-default-export
|
|
2653
2653
|
const convertProductSelectionsFromGraphQl = productSelections => {
|
|
2654
2654
|
var _context;
|
|
2655
|
-
return productSelections?.results && _objectSpread$
|
|
2656
|
-
results: _mapInstanceProperty__default["default"](_context = productSelections.results).call(_context, productSelection => _objectSpread$
|
|
2655
|
+
return productSelections?.results && _objectSpread$1b(_objectSpread$1b({}, productSelections), {}, {
|
|
2656
|
+
results: _mapInstanceProperty__default["default"](_context = productSelections.results).call(_context, productSelection => _objectSpread$1b({}, l10n.applyTransformedLocalizedFields(productSelection, [{
|
|
2657
2657
|
from: 'nameAllLocales',
|
|
2658
2658
|
to: 'name'
|
|
2659
2659
|
}])))
|
|
@@ -4193,8 +4193,8 @@ const getData = (code, field) => {
|
|
|
4193
4193
|
};
|
|
4194
4194
|
const getFractionDigit = code => getData(code, 'fractionDigit');
|
|
4195
4195
|
|
|
4196
|
-
function ownKeys$
|
|
4197
|
-
function _objectSpread$
|
|
4196
|
+
function ownKeys$1a(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4197
|
+
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__default["default"](_context = ownKeys$1a(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1a(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
4198
4198
|
function formatMoneyRangeValue(value, intl) {
|
|
4199
4199
|
if (value.from === value.to) return formatMoneyValue(value.from, value.currency, intl);
|
|
4200
4200
|
if (value.from && value.to) return `${formatMoneyValue(value.from, value.currency, intl)} -
|
|
@@ -4204,7 +4204,7 @@ function formatMoneyRangeValue(value, intl) {
|
|
|
4204
4204
|
return '';
|
|
4205
4205
|
}
|
|
4206
4206
|
function formatMoneyValue(amount, currency, intl) {
|
|
4207
|
-
return formatMoney$2(_objectSpread$
|
|
4207
|
+
return formatMoney$2(_objectSpread$1a({
|
|
4208
4208
|
centAmount: amount,
|
|
4209
4209
|
fractionDigits: getFractionDigit(currency)
|
|
4210
4210
|
}, currency ? {
|
|
@@ -4220,7 +4220,7 @@ function getFractionedAmount(moneyValue) {
|
|
|
4220
4220
|
return amount / 10 ** fractionDigits;
|
|
4221
4221
|
}
|
|
4222
4222
|
function formatMoney$2(moneyValue, intl, options) {
|
|
4223
|
-
return intl.formatNumber(moneyValue.fractionedAmount ?? getFractionedAmount(moneyValue), _objectSpread$
|
|
4223
|
+
return intl.formatNumber(moneyValue.fractionedAmount ?? getFractionedAmount(moneyValue), _objectSpread$1a({
|
|
4224
4224
|
style: 'currency',
|
|
4225
4225
|
currency: moneyValue.currencyCode,
|
|
4226
4226
|
minimumFractionDigits: moneyValue.fractionDigits
|
|
@@ -4494,8 +4494,8 @@ const getPrefixSearchBounds = input => {
|
|
|
4494
4494
|
var getPrefixSearchBounds$1 = getPrefixSearchBounds;
|
|
4495
4495
|
|
|
4496
4496
|
const _excluded$f = ["action"];
|
|
4497
|
-
function ownKeys$
|
|
4498
|
-
function _objectSpread$
|
|
4497
|
+
function ownKeys$19(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4498
|
+
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__default["default"](_context0 = ownKeys$19(Object(t), !0)).call(_context0, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context1 = ownKeys$19(Object(t))).call(_context1, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
4499
4499
|
|
|
4500
4500
|
/**
|
|
4501
4501
|
* Checks if a value is a LocalizedString
|
|
@@ -4517,7 +4517,7 @@ const getIsLocalizedString = maybeLocalizedString => {
|
|
|
4517
4517
|
*/
|
|
4518
4518
|
const transformCustomFieldsRawToCustomFields = customFieldsRaw => {
|
|
4519
4519
|
if (!customFieldsRaw || customFieldsRaw.length === 0) return null;
|
|
4520
|
-
return _reduceInstanceProperty__default["default"](customFieldsRaw).call(customFieldsRaw, (customFields, customField) => _objectSpread$
|
|
4520
|
+
return _reduceInstanceProperty__default["default"](customFieldsRaw).call(customFieldsRaw, (customFields, customField) => _objectSpread$19(_objectSpread$19({}, customFields), {}, {
|
|
4521
4521
|
[customField.name]: customField.value
|
|
4522
4522
|
}), {});
|
|
4523
4523
|
};
|
|
@@ -4541,7 +4541,7 @@ function transformLocalizedFieldsForCategory(category) {
|
|
|
4541
4541
|
const transformedData = l10n.applyTransformedLocalizedFields(category, transformationOptions);
|
|
4542
4542
|
const parent = category.parent ? transformLocalizedFieldsForCategory(category.parent) : null;
|
|
4543
4543
|
const ancestors = category.ancestors ? _mapInstanceProperty__default["default"](_context = category.ancestors).call(_context, ancestor => transformLocalizedFieldsForCategory(ancestor)) : null;
|
|
4544
|
-
return _objectSpread$
|
|
4544
|
+
return _objectSpread$19(_objectSpread$19(_objectSpread$19({}, transformedData), parent ? {
|
|
4545
4545
|
parent
|
|
4546
4546
|
} : {}), ancestors ? {
|
|
4547
4547
|
ancestors
|
|
@@ -4634,7 +4634,7 @@ const formatMoney = valueType => money => {
|
|
|
4634
4634
|
case 'fixed':
|
|
4635
4635
|
case 'fixedCart':
|
|
4636
4636
|
return {
|
|
4637
|
-
[money.type]: _objectSpread$
|
|
4637
|
+
[money.type]: _objectSpread$19({
|
|
4638
4638
|
centAmount: money.centAmount,
|
|
4639
4639
|
currencyCode: money.currencyCode
|
|
4640
4640
|
}, money.type === PRECISION_TYPES.highPrecision && {
|
|
@@ -4816,7 +4816,7 @@ const convertAction = (actionName, actionPayload) => {
|
|
|
4816
4816
|
case 'addAttributeDefinition':
|
|
4817
4817
|
return {
|
|
4818
4818
|
[actionName]: {
|
|
4819
|
-
attributeDefinition: _objectSpread$
|
|
4819
|
+
attributeDefinition: _objectSpread$19(_objectSpread$19({}, actionPayload.attribute), {}, {
|
|
4820
4820
|
label: l10n.transformLocalizedStringToLocalizedField(actionPayload.attribute.label),
|
|
4821
4821
|
inputTip: l10n.transformLocalizedStringToLocalizedField(actionPayload.attribute.inputTip),
|
|
4822
4822
|
type: createAttributeTypeValue(actionPayload.attribute)
|
|
@@ -4912,7 +4912,7 @@ const convertAction = (actionName, actionPayload) => {
|
|
|
4912
4912
|
return {
|
|
4913
4913
|
[actionName]: {
|
|
4914
4914
|
attributeName: actionPayload.attributeName,
|
|
4915
|
-
value: _objectSpread$
|
|
4915
|
+
value: _objectSpread$19(_objectSpread$19({}, actionPayload.value), {}, {
|
|
4916
4916
|
label: l10n.transformLocalizedStringToLocalizedField(actionPayload.value.label)
|
|
4917
4917
|
})
|
|
4918
4918
|
}
|
|
@@ -4921,7 +4921,7 @@ const convertAction = (actionName, actionPayload) => {
|
|
|
4921
4921
|
return {
|
|
4922
4922
|
[actionName]: {
|
|
4923
4923
|
attributeName: actionPayload.attributeName,
|
|
4924
|
-
newValue: _objectSpread$
|
|
4924
|
+
newValue: _objectSpread$19(_objectSpread$19({}, actionPayload.newValue), {}, {
|
|
4925
4925
|
label: l10n.transformLocalizedStringToLocalizedField(actionPayload.newValue.label)
|
|
4926
4926
|
})
|
|
4927
4927
|
}
|
|
@@ -4948,7 +4948,7 @@ const convertAction = (actionName, actionPayload) => {
|
|
|
4948
4948
|
name: l10n.transformLocalizedStringToLocalizedField(actionPayload.name),
|
|
4949
4949
|
taxCategory: actionPayload.taxCategory,
|
|
4950
4950
|
money: {
|
|
4951
|
-
[actionPayload.money.type]: _objectSpread$
|
|
4951
|
+
[actionPayload.money.type]: _objectSpread$19({
|
|
4952
4952
|
centAmount: actionPayload.money.centAmount,
|
|
4953
4953
|
currencyCode: actionPayload.money.currencyCode
|
|
4954
4954
|
}, actionPayload.money.type === PRECISION_TYPES.highPrecision && {
|
|
@@ -4976,7 +4976,7 @@ const convertAction = (actionName, actionPayload) => {
|
|
|
4976
4976
|
return {
|
|
4977
4977
|
[actionName]: {
|
|
4978
4978
|
target: {
|
|
4979
|
-
[actionPayload.target.type]: _objectSpread$
|
|
4979
|
+
[actionPayload.target.type]: _objectSpread$19(_objectSpread$19(_objectSpread$19({}, omit__default["default"](actionPayload.target, ['type', '__typename'])), actionPayload.target.triggerPattern && {
|
|
4980
4980
|
triggerPattern: _mapInstanceProperty__default["default"](_context6 = actionPayload.target.triggerPattern).call(_context6, pattern => ({
|
|
4981
4981
|
[pattern.type]: omit__default["default"](pattern, ['type', '__typename'])
|
|
4982
4982
|
}))
|
|
@@ -5011,8 +5011,8 @@ const convertAction = (actionName, actionPayload) => {
|
|
|
5011
5011
|
fields: customFields
|
|
5012
5012
|
} : null;
|
|
5013
5013
|
return {
|
|
5014
|
-
[actionName]: _objectSpread$
|
|
5015
|
-
address: _objectSpread$
|
|
5014
|
+
[actionName]: _objectSpread$19(_objectSpread$19({}, actionPayload), {}, {
|
|
5015
|
+
address: _objectSpread$19(_objectSpread$19({}, omit__default["default"](actionPayload.address, ['__typename'])), {}, {
|
|
5016
5016
|
custom
|
|
5017
5017
|
})
|
|
5018
5018
|
})
|
|
@@ -5120,8 +5120,8 @@ function omitDeep(obj, fieldsToOmit) {
|
|
|
5120
5120
|
return originalOmitDeep__default["default"](obj, fieldsToOmit);
|
|
5121
5121
|
}
|
|
5122
5122
|
|
|
5123
|
-
function ownKeys$
|
|
5124
|
-
function _objectSpread$
|
|
5123
|
+
function ownKeys$18(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5124
|
+
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__default["default"](_context5 = ownKeys$18(Object(t), !0)).call(_context5, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context6 = ownKeys$18(Object(t))).call(_context6, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
5125
5125
|
function getPriceChannelName(price) {
|
|
5126
5126
|
return price.channel?.name ?? price.channel?.key ?? null;
|
|
5127
5127
|
}
|
|
@@ -5133,11 +5133,11 @@ function getDiscountValue(price) {
|
|
|
5133
5133
|
} else if (price.value?.type === PRECISION_TYPES.highPrecision && price.discounted?.value?.type === PRECISION_TYPES.centPrecision) {
|
|
5134
5134
|
fractionedAmount = getFractionedAmount(price.value) - getFractionedAmount(price.discounted.value);
|
|
5135
5135
|
}
|
|
5136
|
-
return price.discounted ? _objectSpread$
|
|
5136
|
+
return price.discounted ? _objectSpread$18(_objectSpread$18({}, price.value), {}, {
|
|
5137
5137
|
fractionedAmount,
|
|
5138
5138
|
centAmount: price.value.centAmount - price.discounted.value.centAmount,
|
|
5139
5139
|
preciseAmount
|
|
5140
|
-
}) : _objectSpread$
|
|
5140
|
+
}) : _objectSpread$18(_objectSpread$18({}, price.value), {}, {
|
|
5141
5141
|
centAmount: 0
|
|
5142
5142
|
});
|
|
5143
5143
|
}
|
|
@@ -5168,7 +5168,7 @@ function getNetUnitPrice(_ref) {
|
|
|
5168
5168
|
}
|
|
5169
5169
|
let preciseAmount;
|
|
5170
5170
|
if (price.value?.type === PRECISION_TYPES.highPrecision) preciseAmount = price.value.preciseAmount / (1 + taxRate.amount);
|
|
5171
|
-
return _objectSpread$
|
|
5171
|
+
return _objectSpread$18(_objectSpread$18({}, price.value), {}, {
|
|
5172
5172
|
centAmount,
|
|
5173
5173
|
preciseAmount
|
|
5174
5174
|
});
|
|
@@ -5184,7 +5184,7 @@ function getNetUnitPrice(_ref) {
|
|
|
5184
5184
|
}
|
|
5185
5185
|
let preciseAmount;
|
|
5186
5186
|
if (price.value?.type === PRECISION_TYPES.highPrecision) preciseAmount = price.value.preciseAmount / (1 + lineItem.taxRate.amount);
|
|
5187
|
-
return _objectSpread$
|
|
5187
|
+
return _objectSpread$18(_objectSpread$18({}, price.value), {}, {
|
|
5188
5188
|
centAmount,
|
|
5189
5189
|
preciseAmount
|
|
5190
5190
|
});
|
|
@@ -5196,7 +5196,7 @@ function getMinimumPricesByCurrencyCode(prices) {
|
|
|
5196
5196
|
const currencyCode = price.value.currencyCode;
|
|
5197
5197
|
const fractionedAmount = getFractionedAmount(price.value);
|
|
5198
5198
|
if (currencyCode && !isNil__default["default"](fractionedAmount)) {
|
|
5199
|
-
if (!minPrices[currencyCode] || fractionedAmount < getFractionedAmount(minPrices[currencyCode])) return _objectSpread$
|
|
5199
|
+
if (!minPrices[currencyCode] || fractionedAmount < getFractionedAmount(minPrices[currencyCode])) return _objectSpread$18(_objectSpread$18({}, minPrices), {}, {
|
|
5200
5200
|
[currencyCode]: price.value
|
|
5201
5201
|
});
|
|
5202
5202
|
}
|
|
@@ -5205,8 +5205,8 @@ function getMinimumPricesByCurrencyCode(prices) {
|
|
|
5205
5205
|
return _Object$values__default["default"](minPricesByCurrency);
|
|
5206
5206
|
}
|
|
5207
5207
|
|
|
5208
|
-
function ownKeys$
|
|
5209
|
-
function _objectSpread$
|
|
5208
|
+
function ownKeys$17(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5209
|
+
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__default["default"](_context5 = ownKeys$17(Object(t), !0)).call(_context5, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context6 = ownKeys$17(Object(t))).call(_context6, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
5210
5210
|
const transformCustomFieldFromGraphQLResponse = resource => {
|
|
5211
5211
|
var _context, _context4;
|
|
5212
5212
|
return {
|
|
@@ -5221,14 +5221,14 @@ const transformCustomFieldFromGraphQLResponse = resource => {
|
|
|
5221
5221
|
return {
|
|
5222
5222
|
name: fieldDefinition.name,
|
|
5223
5223
|
required: fieldDefinition.required,
|
|
5224
|
-
type: fieldDefinition.type?.elementType?.name === 'LocalizedEnum' ? _objectSpread$
|
|
5225
|
-
elementType: _objectSpread$
|
|
5224
|
+
type: fieldDefinition.type?.elementType?.name === 'LocalizedEnum' ? _objectSpread$17(_objectSpread$17({}, fieldDefinition.type), {}, {
|
|
5225
|
+
elementType: _objectSpread$17(_objectSpread$17({}, fieldDefinition.type.elementType), {}, {
|
|
5226
5226
|
values: _mapInstanceProperty__default["default"](_context2 = _valuesInstanceProperty__default["default"](fieldDefinition.type.elementType)).call(_context2, value => ({
|
|
5227
5227
|
key: value.key,
|
|
5228
5228
|
label: l10n.transformLocalizedFieldToLocalizedString(value.labelAllLocales)
|
|
5229
5229
|
}))
|
|
5230
5230
|
})
|
|
5231
|
-
}) : fieldDefinition.type?.name === 'LocalizedEnum' ? _objectSpread$
|
|
5231
|
+
}) : fieldDefinition.type?.name === 'LocalizedEnum' ? _objectSpread$17(_objectSpread$17({}, fieldDefinition.type), {}, {
|
|
5232
5232
|
values: _mapInstanceProperty__default["default"](_context3 = _valuesInstanceProperty__default["default"](fieldDefinition.type)).call(_context3, value => ({
|
|
5233
5233
|
key: value.key,
|
|
5234
5234
|
label: l10n.transformLocalizedFieldToLocalizedString(value.labelAllLocales)
|
|
@@ -5239,7 +5239,7 @@ const transformCustomFieldFromGraphQLResponse = resource => {
|
|
|
5239
5239
|
})
|
|
5240
5240
|
}
|
|
5241
5241
|
},
|
|
5242
|
-
fields: _reduceInstanceProperty__default["default"](_context4 = resource.custom.customFieldsRaw).call(_context4, (fields, customField) => _objectSpread$
|
|
5242
|
+
fields: _reduceInstanceProperty__default["default"](_context4 = resource.custom.customFieldsRaw).call(_context4, (fields, customField) => _objectSpread$17(_objectSpread$17({}, fields), {}, {
|
|
5243
5243
|
[customField.name]: customField.value
|
|
5244
5244
|
}), {})
|
|
5245
5245
|
};
|
|
@@ -5251,7 +5251,7 @@ const convertProductSelectionFromGraphQl = productSelection => {
|
|
|
5251
5251
|
// Incase the product selection is not missing or if the current project dose not yet have access to the feature,
|
|
5252
5252
|
// in either case we return null
|
|
5253
5253
|
if (!productSelection) return null;
|
|
5254
|
-
return _objectSpread$
|
|
5254
|
+
return _objectSpread$17(_objectSpread$17({}, l10n.applyTransformedLocalizedFields(productSelection, [{
|
|
5255
5255
|
from: 'nameAllLocales',
|
|
5256
5256
|
to: 'name'
|
|
5257
5257
|
}])), {}, {
|
|
@@ -5274,8 +5274,8 @@ const transformAllToProperNounCase = text => {
|
|
|
5274
5274
|
return _mapInstanceProperty__default["default"](_context = text.split(' ')).call(_context, term => transformToProperNounCase(term)).join(' ');
|
|
5275
5275
|
};
|
|
5276
5276
|
|
|
5277
|
-
function ownKeys$
|
|
5278
|
-
function _objectSpread$
|
|
5277
|
+
function ownKeys$16(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5278
|
+
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__default["default"](_context3 = ownKeys$16(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys$16(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
5279
5279
|
const REGEX_ISO8601 = /(\d{4}-\d{2}-\d{2}[T]\d{2}:\d{2}:\d{2}(\.\d{3}[Z]?))/;
|
|
5280
5280
|
const REGEX_TIME = /\d{2}:\d{2}/;
|
|
5281
5281
|
const REGEX_DATE = /\d{4}-\d{2}-\d{2}/;
|
|
@@ -5292,7 +5292,7 @@ function filterCustomTypeUpdateActionValues() {
|
|
|
5292
5292
|
if (updateAction.action === 'setCustomField' && _Array$isArray__default["default"](updateAction.value)) {
|
|
5293
5293
|
const definition = _findInstanceProperty__default["default"](fieldDefinitions).call(fieldDefinitions, field => field.name === updateAction.name);
|
|
5294
5294
|
const definitionName = definition.type.elementType.name;
|
|
5295
|
-
return _objectSpread$
|
|
5295
|
+
return _objectSpread$16(_objectSpread$16({}, updateAction), {}, {
|
|
5296
5296
|
value: filterNotDefinedValues(updateAction.value, definitionName)
|
|
5297
5297
|
});
|
|
5298
5298
|
}
|
|
@@ -5801,8 +5801,8 @@ const messages$I = reactIntl.defineMessages({
|
|
|
5801
5801
|
});
|
|
5802
5802
|
var messages$J = messages$I;
|
|
5803
5803
|
|
|
5804
|
-
function ownKeys$
|
|
5805
|
-
function _objectSpread$
|
|
5804
|
+
function ownKeys$15(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5805
|
+
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__default["default"](_context = ownKeys$15(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$15(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
5806
5806
|
function Option$1(props) {
|
|
5807
5807
|
const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => ({
|
|
5808
5808
|
language: applicationContext.dataLocale,
|
|
@@ -5813,7 +5813,7 @@ function Option$1(props) {
|
|
|
5813
5813
|
const _useIntl = reactIntl.useIntl(),
|
|
5814
5814
|
formatMessage = _useIntl.formatMessage;
|
|
5815
5815
|
const cartDiscount = props.data;
|
|
5816
|
-
return jsxRuntime.jsx(uiKit.AsyncSelectInput.Option, _objectSpread$
|
|
5816
|
+
return jsxRuntime.jsx(uiKit.AsyncSelectInput.Option, _objectSpread$15(_objectSpread$15({}, props), {}, {
|
|
5817
5817
|
children: jsxRuntime.jsxs("div", {
|
|
5818
5818
|
"data-testid": "cart-discount-option",
|
|
5819
5819
|
children: [jsxRuntime.jsx(uiKit.Text.Detail, {
|
|
@@ -5830,8 +5830,8 @@ function Option$1(props) {
|
|
|
5830
5830
|
}));
|
|
5831
5831
|
}
|
|
5832
5832
|
|
|
5833
|
-
function ownKeys$
|
|
5834
|
-
function _objectSpread$
|
|
5833
|
+
function ownKeys$14(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5834
|
+
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__default["default"](_context2 = ownKeys$14(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$14(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
5835
5835
|
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 } } } };
|
|
5836
5836
|
const returnNullIfEmpty = value => value && value.id === '' ? null : value;
|
|
5837
5837
|
const filterOption$1 = (option, text) => {
|
|
@@ -5857,7 +5857,7 @@ function CartDiscountReferenceSearch(props) {
|
|
|
5857
5857
|
})),
|
|
5858
5858
|
language = _useApplicationContex.language,
|
|
5859
5859
|
languages = _useApplicationContex.languages;
|
|
5860
|
-
const mapItemToOption = React.useCallback(cartDiscount => _objectSpread$
|
|
5860
|
+
const mapItemToOption = React.useCallback(cartDiscount => _objectSpread$14(_objectSpread$14({}, cartDiscount), {}, {
|
|
5861
5861
|
value: cartDiscount.id,
|
|
5862
5862
|
key: cartDiscount.key,
|
|
5863
5863
|
label: l10n.formatLocalizedString(cartDiscount, {
|
|
@@ -5947,8 +5947,8 @@ const messages$G = reactIntl.defineMessages({
|
|
|
5947
5947
|
});
|
|
5948
5948
|
var messages$H = messages$G;
|
|
5949
5949
|
|
|
5950
|
-
function ownKeys$
|
|
5951
|
-
function _objectSpread$
|
|
5950
|
+
function ownKeys$13(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5951
|
+
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__default["default"](_context = ownKeys$13(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$13(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
5952
5952
|
function Option(props) {
|
|
5953
5953
|
const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => ({
|
|
5954
5954
|
language: applicationContext.dataLocale,
|
|
@@ -5959,7 +5959,7 @@ function Option(props) {
|
|
|
5959
5959
|
const _useIntl = reactIntl.useIntl(),
|
|
5960
5960
|
formatMessage = _useIntl.formatMessage;
|
|
5961
5961
|
const category = props.data;
|
|
5962
|
-
return jsxRuntime.jsx(uiKit.AsyncSelectInput.Option, _objectSpread$
|
|
5962
|
+
return jsxRuntime.jsx(uiKit.AsyncSelectInput.Option, _objectSpread$13(_objectSpread$13({}, props), {}, {
|
|
5963
5963
|
children: jsxRuntime.jsxs("div", {
|
|
5964
5964
|
"data-testid": "category-option",
|
|
5965
5965
|
children: [jsxRuntime.jsx(uiKit.Text.Body, {
|
|
@@ -5988,8 +5988,8 @@ function Option(props) {
|
|
|
5988
5988
|
}));
|
|
5989
5989
|
}
|
|
5990
5990
|
|
|
5991
|
-
function ownKeys$
|
|
5992
|
-
function _objectSpread$
|
|
5991
|
+
function ownKeys$12(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5992
|
+
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__default["default"](_context = ownKeys$12(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$12(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
5993
5993
|
const filterOption = () => true;
|
|
5994
5994
|
function CategoryReferenceSearch(props) {
|
|
5995
5995
|
const _useIntl = reactIntl.useIntl(),
|
|
@@ -6001,7 +6001,7 @@ function CategoryReferenceSearch(props) {
|
|
|
6001
6001
|
})),
|
|
6002
6002
|
language = _useApplicationContex.language,
|
|
6003
6003
|
languages = _useApplicationContex.languages;
|
|
6004
|
-
const mapItemToOption = React.useCallback(category => _objectSpread$
|
|
6004
|
+
const mapItemToOption = React.useCallback(category => _objectSpread$12(_objectSpread$12({}, category), {}, {
|
|
6005
6005
|
value: category.id,
|
|
6006
6006
|
label: l10n.formatLocalizedString(category, {
|
|
6007
6007
|
key: 'name',
|
|
@@ -6019,7 +6019,7 @@ function CategoryReferenceSearch(props) {
|
|
|
6019
6019
|
}), [apolloClient]);
|
|
6020
6020
|
return jsxRuntime.jsx(ReferenceSearch, {
|
|
6021
6021
|
id: props.id,
|
|
6022
|
-
components: _objectSpread$
|
|
6022
|
+
components: _objectSpread$12({
|
|
6023
6023
|
Option
|
|
6024
6024
|
}, props.components),
|
|
6025
6025
|
isClearable: props.isClearable,
|
|
@@ -6079,8 +6079,8 @@ const getButtonStyles = props => /*#__PURE__*/react$1.css("transition:background
|
|
|
6079
6079
|
var getButtonStyles$1 = getButtonStyles;
|
|
6080
6080
|
|
|
6081
6081
|
const _excluded$e = ["type"];
|
|
6082
|
-
function ownKeys$
|
|
6083
|
-
function _objectSpread$
|
|
6082
|
+
function ownKeys$11(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6083
|
+
function _objectSpread$11(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$11(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$11(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
6084
6084
|
const Button = _ref => {
|
|
6085
6085
|
let _ref$type = _ref.type,
|
|
6086
6086
|
type = _ref$type === void 0 ? 'button' : _ref$type,
|
|
@@ -6092,7 +6092,7 @@ const Button = _ref => {
|
|
|
6092
6092
|
|
|
6093
6093
|
// Pass only `data-*` props
|
|
6094
6094
|
const dataProps = filterDataAttributes(props);
|
|
6095
|
-
return jsxRuntime.jsx("button", _objectSpread$
|
|
6095
|
+
return jsxRuntime.jsx("button", _objectSpread$11(_objectSpread$11({
|
|
6096
6096
|
onClick: isDisabled ? null : onClick,
|
|
6097
6097
|
type: type,
|
|
6098
6098
|
className: classnames__default["default"](className),
|
|
@@ -6117,8 +6117,8 @@ var messages$F = reactIntl.defineMessages({
|
|
|
6117
6117
|
});
|
|
6118
6118
|
|
|
6119
6119
|
const _excluded$d = ["children", "allowMultiple", "acceptTypes"];
|
|
6120
|
-
function ownKeys
|
|
6121
|
-
function _objectSpread
|
|
6120
|
+
function ownKeys$10(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6121
|
+
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__default["default"](_context = ownKeys$10(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$10(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
6122
6122
|
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)."; }
|
|
6123
6123
|
var _ref$c = process.env.NODE_ENV === "production" ? {
|
|
6124
6124
|
name: "1wq0eh7",
|
|
@@ -6130,7 +6130,7 @@ var _ref$c = process.env.NODE_ENV === "production" ? {
|
|
|
6130
6130
|
};
|
|
6131
6131
|
const FileInput = _ref2 => {
|
|
6132
6132
|
let _ref2$children = _ref2.children,
|
|
6133
|
-
children = _ref2$children === void 0 ? jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread
|
|
6133
|
+
children = _ref2$children === void 0 ? jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$10({}, messages$F.chooseFile)) : _ref2$children,
|
|
6134
6134
|
_ref2$allowMultiple = _ref2.allowMultiple,
|
|
6135
6135
|
allowMultiple = _ref2$allowMultiple === void 0 ? false : _ref2$allowMultiple,
|
|
6136
6136
|
_ref2$acceptTypes = _ref2.acceptTypes,
|
|
@@ -6166,15 +6166,15 @@ const baseButtonStyles = process.env.NODE_ENV === "production" ? {
|
|
|
6166
6166
|
};
|
|
6167
6167
|
|
|
6168
6168
|
const _excluded$c = ["animationOrientation", "children", "onClick"];
|
|
6169
|
-
function ownKeys
|
|
6170
|
-
function _objectSpread
|
|
6169
|
+
function ownKeys$$(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6170
|
+
function _objectSpread$$(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$$(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$$(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
6171
6171
|
const ICON_COLOR$1 = '#6359ff';
|
|
6172
6172
|
const PaginationIconButton = _ref => {
|
|
6173
6173
|
let animationOrientation = _ref.animationOrientation,
|
|
6174
6174
|
children = _ref.children,
|
|
6175
6175
|
onClick = _ref.onClick,
|
|
6176
6176
|
rest = _objectWithoutProperties(_ref, _excluded$c);
|
|
6177
|
-
return jsxRuntime.jsx("button", _objectSpread
|
|
6177
|
+
return jsxRuntime.jsx("button", _objectSpread$$(_objectSpread$$({
|
|
6178
6178
|
css: [baseButtonStyles, /*#__PURE__*/react$1.css("svg{fill:", ICON_COLOR$1, ";}transition:transform ", uiKit.designTokens.transitionStandard, ";:hover{transform:translateX(\n ", animationOrientation === 'left' ? `calc(0px - var(--spacing-10))` : `var(--spacing-10)`, "\n );}padding-left:1px;padding-right:1px;:focus{border:1px solid ", ICON_COLOR$1, ";border-radius:", uiKit.designTokens.borderRadius1, ";padding-left:0px;padding-right:0px;}" + (process.env.NODE_ENV === "production" ? "" : ";label:PaginationIconButton;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBhZ2luYXRpb24taWNvbi1idXR0b24udHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXFCUyIsImZpbGUiOiJwYWdpbmF0aW9uLWljb24tYnV0dG9uLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IHR5cGUgUmVhY3RFbGVtZW50IH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgZGVzaWduVG9rZW5zIH0gZnJvbSAnQGNvbW1lcmNldG9vbHMtZnJvbnRlbmQvdWkta2l0JztcbmltcG9ydCB7IGJhc2VCdXR0b25TdHlsZXMgfSBmcm9tICcuL3NoYXJlZC9zdHlsZXMnO1xuXG4vLyBUT0RPOiBJbnRlZ3JhdGUgZGVzaWduIHRva2VuIHdoZW4gcmVkZXNpZ24gaXMgY29tcGxldGVcbmNvbnN0IElDT05fQ09MT1IgPSAnIzYzNTlmZic7XG5cbmNvbnN0IFBhZ2luYXRpb25JY29uQnV0dG9uID0gKHtcbiAgYW5pbWF0aW9uT3JpZW50YXRpb24sXG4gIGNoaWxkcmVuLFxuICBvbkNsaWNrLFxuICAuLi5yZXN0XG59OiB7XG4gIGFuaW1hdGlvbk9yaWVudGF0aW9uOiAnbGVmdCcgfCAncmlnaHQnO1xuICBjaGlsZHJlbjogUmVhY3RFbGVtZW50O1xuICBvbkNsaWNrOiAoKSA9PiB2b2lkO1xufSkgPT4gKFxuICA8YnV0dG9uXG4gICAgY3NzPXtbXG4gICAgICBiYXNlQnV0dG9uU3R5bGVzLFxuICAgICAgY3NzYFxuICAgICAgICBzdmcge1xuICAgICAgICAgIGZpbGw6ICR7SUNPTl9DT0xPUn07XG4gICAgICAgIH1cbiAgICAgICAgdHJhbnNpdGlvbjogdHJhbnNmb3JtICR7ZGVzaWduVG9rZW5zLnRyYW5zaXRpb25TdGFuZGFyZH07XG4gICAgICAgIDpob3ZlciB7XG4gICAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVYKFxuICAgICAgICAgICAgJHthbmltYXRpb25PcmllbnRhdGlvbiA9PT0gJ2xlZnQnXG4gICAgICAgICAgICAgID8gYGNhbGMoMHB4IC0gdmFyKC0tc3BhY2luZy0xMCkpYFxuICAgICAgICAgICAgICA6IGB2YXIoLS1zcGFjaW5nLTEwKWB9XG4gICAgICAgICAgKTtcbiAgICAgICAgfVxuICAgICAgICAvLyBDb21wZW5zYXRlIGZvciBmb2N1cyBib3JkZXJcbiAgICAgICAgcGFkZGluZy1sZWZ0OiAxcHg7XG4gICAgICAgIHBhZGRpbmctcmlnaHQ6IDFweDtcbiAgICAgICAgOmZvY3VzIHtcbiAgICAgICAgICBib3JkZXI6IDFweCBzb2xpZCAke0lDT05fQ09MT1J9O1xuICAgICAgICAgIGJvcmRlci1yYWRpdXM6ICR7ZGVzaWduVG9rZW5zLmJvcmRlclJhZGl1czF9O1xuICAgICAgICAgIHBhZGRpbmctbGVmdDogMHB4O1xuICAgICAgICAgIHBhZGRpbmctcmlnaHQ6IDBweDtcbiAgICAgICAgfVxuICAgICAgYCxcbiAgICBdfVxuICAgIG9uQ2xpY2s9e29uQ2xpY2t9XG4gICAgey4uLnJlc3R9XG4gID5cbiAgICB7Y2hpbGRyZW59XG4gIDwvYnV0dG9uPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgUGFnaW5hdGlvbkljb25CdXR0b247XG4iXX0= */"), process.env.NODE_ENV === "production" ? "" : ";label:PaginationIconButton;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBhZ2luYXRpb24taWNvbi1idXR0b24udHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1CSSIsImZpbGUiOiJwYWdpbmF0aW9uLWljb24tYnV0dG9uLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IHR5cGUgUmVhY3RFbGVtZW50IH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgZGVzaWduVG9rZW5zIH0gZnJvbSAnQGNvbW1lcmNldG9vbHMtZnJvbnRlbmQvdWkta2l0JztcbmltcG9ydCB7IGJhc2VCdXR0b25TdHlsZXMgfSBmcm9tICcuL3NoYXJlZC9zdHlsZXMnO1xuXG4vLyBUT0RPOiBJbnRlZ3JhdGUgZGVzaWduIHRva2VuIHdoZW4gcmVkZXNpZ24gaXMgY29tcGxldGVcbmNvbnN0IElDT05fQ09MT1IgPSAnIzYzNTlmZic7XG5cbmNvbnN0IFBhZ2luYXRpb25JY29uQnV0dG9uID0gKHtcbiAgYW5pbWF0aW9uT3JpZW50YXRpb24sXG4gIGNoaWxkcmVuLFxuICBvbkNsaWNrLFxuICAuLi5yZXN0XG59OiB7XG4gIGFuaW1hdGlvbk9yaWVudGF0aW9uOiAnbGVmdCcgfCAncmlnaHQnO1xuICBjaGlsZHJlbjogUmVhY3RFbGVtZW50O1xuICBvbkNsaWNrOiAoKSA9PiB2b2lkO1xufSkgPT4gKFxuICA8YnV0dG9uXG4gICAgY3NzPXtbXG4gICAgICBiYXNlQnV0dG9uU3R5bGVzLFxuICAgICAgY3NzYFxuICAgICAgICBzdmcge1xuICAgICAgICAgIGZpbGw6ICR7SUNPTl9DT0xPUn07XG4gICAgICAgIH1cbiAgICAgICAgdHJhbnNpdGlvbjogdHJhbnNmb3JtICR7ZGVzaWduVG9rZW5zLnRyYW5zaXRpb25TdGFuZGFyZH07XG4gICAgICAgIDpob3ZlciB7XG4gICAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVYKFxuICAgICAgICAgICAgJHthbmltYXRpb25PcmllbnRhdGlvbiA9PT0gJ2xlZnQnXG4gICAgICAgICAgICAgID8gYGNhbGMoMHB4IC0gdmFyKC0tc3BhY2luZy0xMCkpYFxuICAgICAgICAgICAgICA6IGB2YXIoLS1zcGFjaW5nLTEwKWB9XG4gICAgICAgICAgKTtcbiAgICAgICAgfVxuICAgICAgICAvLyBDb21wZW5zYXRlIGZvciBmb2N1cyBib3JkZXJcbiAgICAgICAgcGFkZGluZy1sZWZ0OiAxcHg7XG4gICAgICAgIHBhZGRpbmctcmlnaHQ6IDFweDtcbiAgICAgICAgOmZvY3VzIHtcbiAgICAgICAgICBib3JkZXI6IDFweCBzb2xpZCAke0lDT05fQ09MT1J9O1xuICAgICAgICAgIGJvcmRlci1yYWRpdXM6ICR7ZGVzaWduVG9rZW5zLmJvcmRlclJhZGl1czF9O1xuICAgICAgICAgIHBhZGRpbmctbGVmdDogMHB4O1xuICAgICAgICAgIHBhZGRpbmctcmlnaHQ6IDBweDtcbiAgICAgICAgfVxuICAgICAgYCxcbiAgICBdfVxuICAgIG9uQ2xpY2s9e29uQ2xpY2t9XG4gICAgey4uLnJlc3R9XG4gID5cbiAgICB7Y2hpbGRyZW59XG4gIDwvYnV0dG9uPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgUGFnaW5hdGlvbkljb25CdXR0b247XG4iXX0= */"],
|
|
6179
6179
|
onClick: onClick
|
|
6180
6180
|
}, rest), {}, {
|
|
@@ -6184,8 +6184,8 @@ const PaginationIconButton = _ref => {
|
|
|
6184
6184
|
var PaginationIconButton$1 = PaginationIconButton;
|
|
6185
6185
|
|
|
6186
6186
|
const _excluded$b = ["isFilled", "onClick"];
|
|
6187
|
-
function ownKeys$
|
|
6188
|
-
function _objectSpread$
|
|
6187
|
+
function ownKeys$_(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6188
|
+
function _objectSpread$_(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$_(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$_(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
6189
6189
|
const ICON_HEIGHT = '10px';
|
|
6190
6190
|
const ICON_WIDTH = ICON_HEIGHT;
|
|
6191
6191
|
// TODO: Integrate design tokens when redesign is complete
|
|
@@ -6196,7 +6196,7 @@ const PaginationSelectionButton = _ref => {
|
|
|
6196
6196
|
isFilled = _ref$isFilled === void 0 ? false : _ref$isFilled,
|
|
6197
6197
|
onClick = _ref.onClick,
|
|
6198
6198
|
rest = _objectWithoutProperties(_ref, _excluded$b);
|
|
6199
|
-
return jsxRuntime.jsx("button", _objectSpread$
|
|
6199
|
+
return jsxRuntime.jsx("button", _objectSpread$_({
|
|
6200
6200
|
css: [baseButtonStyles, /*#__PURE__*/react$1.css("height:", ICON_HEIGHT, ";width:", ICON_WIDTH, ";border-radius:", uiKit.designTokens.borderRadius6, ";border:", isFilled ? 'none' : `${uiKit.designTokens.borderWidth1} solid ${uiKit.designTokens.colorNeutral}`, ";background:", isFilled ? ICON_COLOR : 'none', ";transition:", uiKit.designTokens.transitionStandard, ";:hover{background:", isFilled ? undefined : ICON_HOVER_COLOR, ";}:focus{border:", uiKit.designTokens.borderWidth1, " solid ", ICON_COLOR, ";}" + (process.env.NODE_ENV === "production" ? "" : ";label:PaginationSelectionButton;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBhZ2luYXRpb24tc2VsZWN0aW9uLWJ1dHRvbi50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBcUJTIiwiZmlsZSI6InBhZ2luYXRpb24tc2VsZWN0aW9uLWJ1dHRvbi50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyBkZXNpZ25Ub2tlbnMgfSBmcm9tICdAY29tbWVyY2V0b29scy1mcm9udGVuZC91aS1raXQnO1xuaW1wb3J0IHsgYmFzZUJ1dHRvblN0eWxlcyB9IGZyb20gJy4vc2hhcmVkL3N0eWxlcyc7XG5cbmNvbnN0IElDT05fSEVJR0hUID0gJzEwcHgnO1xuY29uc3QgSUNPTl9XSURUSCA9IElDT05fSEVJR0hUO1xuLy8gVE9ETzogSW50ZWdyYXRlIGRlc2lnbiB0b2tlbnMgd2hlbiByZWRlc2lnbiBpcyBjb21wbGV0ZVxuY29uc3QgSUNPTl9DT0xPUiA9ICcjNjM1OUZGJztcbmNvbnN0IElDT05fSE9WRVJfQ09MT1IgPSAnI0IxQUNGRic7XG5cbmNvbnN0IFBhZ2luYXRpb25TZWxlY3Rpb25CdXR0b24gPSAoe1xuICBpc0ZpbGxlZCA9IGZhbHNlLFxuICBvbkNsaWNrLFxuICAuLi5yZXN0XG59OiB7XG4gIGlzRmlsbGVkPzogYm9vbGVhbjtcbiAgb25DbGljazogKCkgPT4gdm9pZDtcbn0pID0+IChcbiAgPGJ1dHRvblxuICAgIGNzcz17W1xuICAgICAgYmFzZUJ1dHRvblN0eWxlcyxcbiAgICAgIGNzc2BcbiAgICAgICAgaGVpZ2h0OiAke0lDT05fSEVJR0hUfTtcbiAgICAgICAgd2lkdGg6ICR7SUNPTl9XSURUSH07XG4gICAgICAgIGJvcmRlci1yYWRpdXM6ICR7ZGVzaWduVG9rZW5zLmJvcmRlclJhZGl1czZ9O1xuICAgICAgICBib3JkZXI6ICR7aXNGaWxsZWRcbiAgICAgICAgICA/ICdub25lJ1xuICAgICAgICAgIDogYCR7ZGVzaWduVG9rZW5zLmJvcmRlcldpZHRoMX0gc29saWQgJHtkZXNpZ25Ub2tlbnMuY29sb3JOZXV0cmFsfWB9O1xuICAgICAgICBiYWNrZ3JvdW5kOiAke2lzRmlsbGVkID8gSUNPTl9DT0xPUiA6ICdub25lJ307XG4gICAgICAgIHRyYW5zaXRpb246ICR7ZGVzaWduVG9rZW5zLnRyYW5zaXRpb25TdGFuZGFyZH07XG4gICAgICAgIDpob3ZlciB7XG4gICAgICAgICAgYmFja2dyb3VuZDogJHtpc0ZpbGxlZCA/IHVuZGVmaW5lZCA6IElDT05fSE9WRVJfQ09MT1J9O1xuICAgICAgICB9XG4gICAgICAgIDpmb2N1cyB7XG4gICAgICAgICAgYm9yZGVyOiAke2Rlc2lnblRva2Vucy5ib3JkZXJXaWR0aDF9IHNvbGlkICR7SUNPTl9DT0xPUn07XG4gICAgICAgIH1cbiAgICAgIGAsXG4gICAgXX1cbiAgICBvbkNsaWNrPXtvbkNsaWNrfVxuICAgIHsuLi5yZXN0fVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgUGFnaW5hdGlvblNlbGVjdGlvbkJ1dHRvbjtcbiJdfQ== */"), process.env.NODE_ENV === "production" ? "" : ";label:PaginationSelectionButton;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBhZ2luYXRpb24tc2VsZWN0aW9uL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dub25lJ1xuICAgICAgICAgIDogYCR7ZGVzaWduVG9rZW5zLmJvcmRlcldpZHRoMX0gc29saWQgJHtkZXNpZ25Ub2tlbnMuY29sb3JOZXV0cmFsfWB9O1xuICAgICAgICBiYWNrZ3JvdW5kOiAke2lzRmlsbGVkID8gSUNPTl9DT0xPUiA6ICdub25lJ307XG4gICAgICAgIHRyYW5zaXRpb246ICR7ZGVzaWduVG9rZW5zLnRyYW5zaXRpb25TdGFuZGFyZH07XG4gICAgICAgIDpob3ZlciB7XG4gICAgICAgICAgYmFja2dyb3VuZDogJHtpc0ZpbGxlZCA/IHVuZGVmaW5lZCA6IElDT05fSE9WRVJfQ09MT1J9O1xuICAgICAgICB9XG4gICAgICAgIDpmb2N1cyB7XG4gICAgICAgICAgYm9yZGVyOiAke2Rlc2lnblRva2Vucy5ib3JkZXJXaWR0aDF9IHNvbGlkICR7SUNPTl9DT0xPUn07XG4gICAgICAgIH1cbiAgICAgIGAsXG4gICAgXX1cbiAgICBvbkNsaWNrPXtvbkNsaWNrfVxuICAgIHsuLi5yZXN0fVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgUGFnaW5hdGlvblNlbGVjdGlvbkJ1dHRvbjtcbiJdfQ== */"],
|
|
6201
6201
|
onClick: onClick
|
|
6202
6202
|
}, rest));
|
|
@@ -6420,8 +6420,8 @@ var messages$E = reactIntl.defineMessages({
|
|
|
6420
6420
|
}
|
|
6421
6421
|
});
|
|
6422
6422
|
|
|
6423
|
-
function ownKeys$
|
|
6424
|
-
function _objectSpread$
|
|
6423
|
+
function ownKeys$Z(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6424
|
+
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__default["default"](_context8 = ownKeys$Z(Object(t), !0)).call(_context8, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context9 = ownKeys$Z(Object(t))).call(_context9, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
6425
6425
|
const emptyCountryOption = intl => [{
|
|
6426
6426
|
label: intl.formatMessage(messages$E.countriesAsyncSelectDropdownTypeAheadPrompt),
|
|
6427
6427
|
value: undefined,
|
|
@@ -6448,7 +6448,7 @@ function CountriesAsyncSelectDropdown(props) {
|
|
|
6448
6448
|
const onOptionChange = event => {
|
|
6449
6449
|
const countries = event.target.value;
|
|
6450
6450
|
props.onChange({
|
|
6451
|
-
target: _objectSpread$
|
|
6451
|
+
target: _objectSpread$Z(_objectSpread$Z({}, event.target), {}, {
|
|
6452
6452
|
value: _mapInstanceProperty__default["default"](countries).call(countries, country => country?.value ?? country)
|
|
6453
6453
|
})
|
|
6454
6454
|
});
|
|
@@ -6499,8 +6499,8 @@ function CountriesBasicSelectDropdown(props) {
|
|
|
6499
6499
|
const COUNTRIES_ASYNC_LOADING_LIMIT = 60;
|
|
6500
6500
|
|
|
6501
6501
|
const _excluded$a = ["countriesAsyncLoadingLimit", "isMulti", "isRequired", "hasWarning"];
|
|
6502
|
-
function ownKeys$
|
|
6503
|
-
function _objectSpread$
|
|
6502
|
+
function ownKeys$Y(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6503
|
+
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__default["default"](_context = ownKeys$Y(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$Y(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
6504
6504
|
function CountriesPicker(_ref) {
|
|
6505
6505
|
let _ref$countriesAsyncLo = _ref.countriesAsyncLoadingLimit,
|
|
6506
6506
|
countriesAsyncLoadingLimit = _ref$countriesAsyncLo === void 0 ? COUNTRIES_ASYNC_LOADING_LIMIT : _ref$countriesAsyncLo,
|
|
@@ -6513,7 +6513,7 @@ function CountriesPicker(_ref) {
|
|
|
6513
6513
|
props = _objectWithoutProperties(_ref, _excluded$a);
|
|
6514
6514
|
const CustomCountriesPicker = props.options?.length <= countriesAsyncLoadingLimit ? CountriesBasicSelectDropdown : CountriesAsyncSelectDropdown;
|
|
6515
6515
|
return jsxRuntime.jsx(uiKit.Spacings.Stack, {
|
|
6516
|
-
children: jsxRuntime.jsx(CustomCountriesPicker, _objectSpread$
|
|
6516
|
+
children: jsxRuntime.jsx(CustomCountriesPicker, _objectSpread$Y({
|
|
6517
6517
|
countriesAsyncLoadingLimit: countriesAsyncLoadingLimit,
|
|
6518
6518
|
isMulti: isMulti,
|
|
6519
6519
|
isRequired: isRequired,
|
|
@@ -6719,9 +6719,9 @@ const REFERENCED_TYPES = {
|
|
|
6719
6719
|
const ATTRIBUTE_TYPES = ['text', 'ltext', 'number', 'enum', 'lenum', 'money', 'boolean', 'date', 'datetime', 'reference', 'time'];
|
|
6720
6720
|
const SET_ATTRIBUTE_TYPES = ['text', 'ltext', 'number', 'enum', 'lenum', 'money', 'boolean', 'date', 'time', 'datetime', 'reference'];
|
|
6721
6721
|
|
|
6722
|
-
function ownKeys$
|
|
6723
|
-
function _objectSpread$
|
|
6724
|
-
const mergeSetItemsErrors = errors => _reduceInstanceProperty__default["default"](errors).call(errors, (result, itemErrors) => _objectSpread$
|
|
6722
|
+
function ownKeys$X(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6723
|
+
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__default["default"](_context = ownKeys$X(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$X(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
6724
|
+
const mergeSetItemsErrors = errors => _reduceInstanceProperty__default["default"](errors).call(errors, (result, itemErrors) => _objectSpread$X(_objectSpread$X({}, result), itemErrors), {});
|
|
6725
6725
|
|
|
6726
6726
|
// TODO(pa3): worth splitting in two components: one of set errors and one for
|
|
6727
6727
|
// all the other types of fields. So that there will be no isArray check.
|
|
@@ -6879,8 +6879,8 @@ const SetButtons = props => {
|
|
|
6879
6879
|
SetButtons.displayName = 'SetButtons';
|
|
6880
6880
|
var SetButtons$1 = SetButtons;
|
|
6881
6881
|
|
|
6882
|
-
function ownKeys$
|
|
6883
|
-
function _objectSpread$
|
|
6882
|
+
function ownKeys$W(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6883
|
+
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__default["default"](_context2 = ownKeys$W(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$W(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
6884
6884
|
const getDuplicateErrors = setValues => {
|
|
6885
6885
|
/* eslint-disable no-plusplus */
|
|
6886
6886
|
const result = [];
|
|
@@ -6933,7 +6933,7 @@ function CustomInputSet(props) {
|
|
|
6933
6933
|
touched = _useFormikContext.touched,
|
|
6934
6934
|
isSubmitting = _useFormikContext.isSubmitting,
|
|
6935
6935
|
dirty = _useFormikContext.dirty;
|
|
6936
|
-
const itemFieldDefinition = _objectSpread$
|
|
6936
|
+
const itemFieldDefinition = _objectSpread$W(_objectSpread$W({}, props.fieldDefinition), {}, {
|
|
6937
6937
|
type: props.fieldDefinition.type.elementType
|
|
6938
6938
|
});
|
|
6939
6939
|
const value = React.useMemo(() => props.value || [undefined], [props.value]);
|
|
@@ -7189,8 +7189,8 @@ function CustomLocalizedEnumInput(props) {
|
|
|
7189
7189
|
}
|
|
7190
7190
|
CustomLocalizedEnumInput.displayName = 'CustomLocalizedEnumInput';
|
|
7191
7191
|
|
|
7192
|
-
function ownKeys$
|
|
7193
|
-
function _objectSpread$
|
|
7192
|
+
function ownKeys$V(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7193
|
+
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__default["default"](_context = ownKeys$V(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$V(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
7194
7194
|
const getSubfieldLanguage = subfieldName => {
|
|
7195
7195
|
const lastDotIndex = _lastIndexOfInstanceProperty__default["default"](subfieldName).call(subfieldName, '.');
|
|
7196
7196
|
return subfieldName.substring(lastDotIndex + 1);
|
|
@@ -7213,7 +7213,7 @@ function CustomLocalizedTextInput(props) {
|
|
|
7213
7213
|
// as a whole.
|
|
7214
7214
|
|
|
7215
7215
|
const fieldLanguage = getSubfieldLanguage(subfieldName);
|
|
7216
|
-
const newValue = _objectSpread$
|
|
7216
|
+
const newValue = _objectSpread$V(_objectSpread$V({}, props.value), {}, {
|
|
7217
7217
|
[fieldLanguage]: rawValue
|
|
7218
7218
|
});
|
|
7219
7219
|
const nullifiedIfNeeded = uiKit.LocalizedTextInput.isEmpty(newValue) ? undefined : newValue;
|
|
@@ -7241,19 +7241,19 @@ function CustomLocalizedTextInput(props) {
|
|
|
7241
7241
|
}
|
|
7242
7242
|
CustomLocalizedTextInput.displayName = 'CustomLocalizedTextInput';
|
|
7243
7243
|
|
|
7244
|
-
function ownKeys$
|
|
7245
|
-
function _objectSpread$
|
|
7244
|
+
function ownKeys$U(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7245
|
+
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__default["default"](_context = ownKeys$U(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$U(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
7246
7246
|
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)."; }
|
|
7247
7247
|
const fixCurrencyCode = (value, currencies) => {
|
|
7248
7248
|
if (value.currencyCode) return value;
|
|
7249
7249
|
const firstCurrency = currencies[0];
|
|
7250
|
-
return _objectSpread$
|
|
7250
|
+
return _objectSpread$U(_objectSpread$U({}, value), {}, {
|
|
7251
7251
|
currencyCode: firstCurrency
|
|
7252
7252
|
});
|
|
7253
7253
|
};
|
|
7254
7254
|
const fixAmount = value => {
|
|
7255
7255
|
if (!value.amount) {
|
|
7256
|
-
return _objectSpread$
|
|
7256
|
+
return _objectSpread$U(_objectSpread$U({}, value), {}, {
|
|
7257
7257
|
amount: '0'
|
|
7258
7258
|
});
|
|
7259
7259
|
}
|
|
@@ -7303,7 +7303,7 @@ function CustomMoneyInput(props) {
|
|
|
7303
7303
|
}
|
|
7304
7304
|
const handleChange = makeChangeHandler((rawValue, subfieldName) => {
|
|
7305
7305
|
const isAmount = _endsWithInstanceProperty__default["default"](subfieldName).call(subfieldName, 'amount');
|
|
7306
|
-
const newValue = _objectSpread$
|
|
7306
|
+
const newValue = _objectSpread$U({}, internalValue.current);
|
|
7307
7307
|
if (isAmount) newValue.amount = rawValue;else newValue.currencyCode = rawValue;
|
|
7308
7308
|
const fixedValue = fixEnteredValue(newValue, internalValue.current, currencies);
|
|
7309
7309
|
internalValue.current = fixedValue;
|
|
@@ -7340,23 +7340,23 @@ function CustomMoneyInput(props) {
|
|
|
7340
7340
|
}
|
|
7341
7341
|
CustomMoneyInput.displayName = 'CustomMoneyInput';
|
|
7342
7342
|
|
|
7343
|
-
function ownKeys$
|
|
7344
|
-
function _objectSpread$
|
|
7343
|
+
function ownKeys$T(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7344
|
+
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__default["default"](_context8 = ownKeys$T(Object(t), !0)).call(_context8, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context9 = ownKeys$T(Object(t))).call(_context9, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
7345
7345
|
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 } } } };
|
|
7346
7346
|
const mapAttributeDefinition = definition => {
|
|
7347
7347
|
var _context, _context2, _context3, _context4;
|
|
7348
|
-
return _objectSpread$
|
|
7348
|
+
return _objectSpread$T(_objectSpread$T({}, definition), {}, {
|
|
7349
7349
|
required: definition.isRequired,
|
|
7350
7350
|
inputTip: l10n.transformLocalizedFieldToLocalizedString(definition.inputTipAllLocales),
|
|
7351
7351
|
label: l10n.transformLocalizedFieldToLocalizedString(definition.labelAllLocales),
|
|
7352
|
-
type: _includesInstanceProperty__default["default"](_context = ['enum', 'lenum']).call(_context, definition.type?.elementType?.name) ? _objectSpread$
|
|
7353
|
-
elementType: _objectSpread$
|
|
7352
|
+
type: _includesInstanceProperty__default["default"](_context = ['enum', 'lenum']).call(_context, definition.type?.elementType?.name) ? _objectSpread$T(_objectSpread$T({}, definition.type), {}, {
|
|
7353
|
+
elementType: _objectSpread$T(_objectSpread$T({}, definition.type.elementType), {}, {
|
|
7354
7354
|
values: _mapInstanceProperty__default["default"](_context2 = _valuesInstanceProperty__default["default"](definition.type.elementType).results).call(_context2, value => ({
|
|
7355
7355
|
key: value.key,
|
|
7356
7356
|
label: value.label || l10n.transformLocalizedFieldToLocalizedString(value.labelAllLocales)
|
|
7357
7357
|
}))
|
|
7358
7358
|
})
|
|
7359
|
-
}) : _includesInstanceProperty__default["default"](_context3 = ['enum', 'lenum']).call(_context3, definition.type?.name) ? _objectSpread$
|
|
7359
|
+
}) : _includesInstanceProperty__default["default"](_context3 = ['enum', 'lenum']).call(_context3, definition.type?.name) ? _objectSpread$T(_objectSpread$T({}, definition.type), {}, {
|
|
7360
7360
|
values: _mapInstanceProperty__default["default"](_context4 = _valuesInstanceProperty__default["default"](definition.type).results).call(_context4, value => ({
|
|
7361
7361
|
key: value.key,
|
|
7362
7362
|
label: value.label || l10n.transformLocalizedFieldToLocalizedString(value.labelAllLocales)
|
|
@@ -7493,8 +7493,8 @@ var messages$A = reactIntl.defineMessages({
|
|
|
7493
7493
|
}
|
|
7494
7494
|
});
|
|
7495
7495
|
|
|
7496
|
-
function ownKeys$
|
|
7497
|
-
function _objectSpread$
|
|
7496
|
+
function ownKeys$S(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7497
|
+
function _objectSpread$S(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$S(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$S(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
7498
7498
|
const EditButton = props => {
|
|
7499
7499
|
const _useIntl = reactIntl.useIntl(),
|
|
7500
7500
|
formatMessage = _useIntl.formatMessage;
|
|
@@ -7642,13 +7642,13 @@ const CustomNestedInput = /*#__PURE__*/React.memo(props => {
|
|
|
7642
7642
|
const valuesAsMap = nameValuePairsToMap(value);
|
|
7643
7643
|
const initialValues = omitUnknownValues(valuesAsMap, attributeDefinitionsAsMap);
|
|
7644
7644
|
const openNestedAttributesForm = () => {
|
|
7645
|
-
if (nestingLevel === 0) parentFormik.setStatus(_objectSpread$
|
|
7645
|
+
if (nestingLevel === 0) parentFormik.setStatus(_objectSpread$S(_objectSpread$S({}, parentFormik.status), {}, {
|
|
7646
7646
|
hideSaveToolbar: true
|
|
7647
7647
|
}));
|
|
7648
7648
|
attributesForm.openModal();
|
|
7649
7649
|
};
|
|
7650
7650
|
const closeNestedAttributesForm = () => {
|
|
7651
|
-
if (nestingLevel === 0) parentFormik.setStatus(_objectSpread$
|
|
7651
|
+
if (nestingLevel === 0) parentFormik.setStatus(_objectSpread$S(_objectSpread$S({}, parentFormik.status), {}, {
|
|
7652
7652
|
hideSaveToolbar: false
|
|
7653
7653
|
}));
|
|
7654
7654
|
attributesForm.closeModal();
|
|
@@ -8187,8 +8187,8 @@ var messages$y = reactIntl.defineMessages({
|
|
|
8187
8187
|
}
|
|
8188
8188
|
});
|
|
8189
8189
|
|
|
8190
|
-
function ownKeys$
|
|
8191
|
-
function _objectSpread$
|
|
8190
|
+
function ownKeys$R(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8191
|
+
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__default["default"](_context2 = ownKeys$R(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$R(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
8192
8192
|
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)."; }
|
|
8193
8193
|
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 } } } };
|
|
8194
8194
|
const CustomFieldsLabelHint = _ref2 => {
|
|
@@ -8218,7 +8218,7 @@ const CustomFieldsLabelHint = _ref2 => {
|
|
|
8218
8218
|
children: [jsxRuntime.jsx(uiKit.WarningIcon, {
|
|
8219
8219
|
size: "medium",
|
|
8220
8220
|
color: "warning"
|
|
8221
|
-
}), jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
8221
|
+
}), jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$R({}, messages$y.cartDiscountMoreThan500))]
|
|
8222
8222
|
});
|
|
8223
8223
|
}
|
|
8224
8224
|
return l10n.formatLocalizedString(fieldDefinition, {
|
|
@@ -8343,10 +8343,10 @@ var messages$x = reactIntl.defineMessages({
|
|
|
8343
8343
|
}
|
|
8344
8344
|
});
|
|
8345
8345
|
|
|
8346
|
-
function ownKeys$
|
|
8347
|
-
function _objectSpread$
|
|
8346
|
+
function ownKeys$Q(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8347
|
+
function _objectSpread$Q(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$Q(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$Q(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
8348
8348
|
function ProductTypeReference(props) {
|
|
8349
|
-
const productTypeMessage = _objectSpread$
|
|
8349
|
+
const productTypeMessage = _objectSpread$Q(_objectSpread$Q({}, messages$x.referencedProductType), {}, {
|
|
8350
8350
|
values: {
|
|
8351
8351
|
productTypeName: props.productType.name
|
|
8352
8352
|
}
|
|
@@ -8395,10 +8395,10 @@ function CustomNestedFieldInput(props) {
|
|
|
8395
8395
|
}
|
|
8396
8396
|
CustomNestedFieldInput.displayName = 'CustomNestedFieldInput';
|
|
8397
8397
|
|
|
8398
|
-
function ownKeys$
|
|
8399
|
-
function _objectSpread$
|
|
8398
|
+
function ownKeys$P(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8399
|
+
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__default["default"](_context = ownKeys$P(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$P(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
8400
8400
|
function DragHandle(props) {
|
|
8401
|
-
return jsxRuntime.jsx("div", _objectSpread$
|
|
8401
|
+
return jsxRuntime.jsx("div", _objectSpread$P(_objectSpread$P({}, props), {}, {
|
|
8402
8402
|
children: jsxRuntime.jsx(uiKit.IconButton, {
|
|
8403
8403
|
icon: jsxRuntime.jsx(uiKit.DragIcon, {}),
|
|
8404
8404
|
size: "medium",
|
|
@@ -8408,8 +8408,8 @@ function DragHandle(props) {
|
|
|
8408
8408
|
}
|
|
8409
8409
|
DragHandle.displayName = 'DragHandle';
|
|
8410
8410
|
|
|
8411
|
-
function ownKeys$
|
|
8412
|
-
function _objectSpread$
|
|
8411
|
+
function ownKeys$O(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8412
|
+
function _objectSpread$O(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$O(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$O(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
8413
8413
|
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)."; }
|
|
8414
8414
|
var _ref$7 = process.env.NODE_ENV === "production" ? {
|
|
8415
8415
|
name: "1onfs6j",
|
|
@@ -8444,7 +8444,7 @@ const DraggableWrapper = _ref2 => {
|
|
|
8444
8444
|
draggableId: draggableId,
|
|
8445
8445
|
index: index,
|
|
8446
8446
|
children: (provided, snapshot) => {
|
|
8447
|
-
const child = jsxRuntime.jsx("div", _objectSpread$
|
|
8447
|
+
const child = jsxRuntime.jsx("div", _objectSpread$O(_objectSpread$O({
|
|
8448
8448
|
ref: provided.innerRef
|
|
8449
8449
|
}, provided.draggableProps), {}, {
|
|
8450
8450
|
css: _ref$7,
|
|
@@ -8455,7 +8455,7 @@ const DraggableWrapper = _ref2 => {
|
|
|
8455
8455
|
gridTemplateRows: "auto 1fr auto",
|
|
8456
8456
|
gridGap: snapshot.isDragging ? uiKit.customProperties.spacingS : uiKit.customProperties.spacingM,
|
|
8457
8457
|
children: [jsxRuntime.jsx(uiKit.Grid.Item, {
|
|
8458
|
-
children: jsxRuntime.jsx(DragHandle, _objectSpread$
|
|
8458
|
+
children: jsxRuntime.jsx(DragHandle, _objectSpread$O({}, provided.dragHandleProps))
|
|
8459
8459
|
}), jsxRuntime.jsx(uiKit.Grid.Item, {
|
|
8460
8460
|
children: children
|
|
8461
8461
|
})]
|
|
@@ -8474,8 +8474,8 @@ const DraggableWrapper = _ref2 => {
|
|
|
8474
8474
|
}, draggableKey);
|
|
8475
8475
|
};
|
|
8476
8476
|
|
|
8477
|
-
function ownKeys$
|
|
8478
|
-
function _objectSpread$
|
|
8477
|
+
function ownKeys$N(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8478
|
+
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__default["default"](_context = ownKeys$N(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$N(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
8479
8479
|
const DroppableWrapper = _ref => {
|
|
8480
8480
|
let children = _ref.children,
|
|
8481
8481
|
onDragEnd = _ref.onDragEnd;
|
|
@@ -8483,7 +8483,7 @@ const DroppableWrapper = _ref => {
|
|
|
8483
8483
|
onDragEnd: onDragEnd,
|
|
8484
8484
|
children: jsxRuntime.jsx(dnd.Droppable, {
|
|
8485
8485
|
droppableId: "droppable",
|
|
8486
|
-
children: provided => jsxRuntime.jsxs("div", _objectSpread$
|
|
8486
|
+
children: provided => jsxRuntime.jsxs("div", _objectSpread$N(_objectSpread$N({
|
|
8487
8487
|
ref: provided.innerRef
|
|
8488
8488
|
}, provided.droppableProps), {}, {
|
|
8489
8489
|
children: [children, provided.placeholder]
|
|
@@ -8492,8 +8492,8 @@ const DroppableWrapper = _ref => {
|
|
|
8492
8492
|
});
|
|
8493
8493
|
};
|
|
8494
8494
|
|
|
8495
|
-
function ownKeys$
|
|
8496
|
-
function _objectSpread$
|
|
8495
|
+
function ownKeys$M(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8496
|
+
function _objectSpread$M(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$M(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$M(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
8497
8497
|
const DefaultWrapper = _ref => {
|
|
8498
8498
|
let children = _ref.children;
|
|
8499
8499
|
return jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
@@ -8529,7 +8529,7 @@ const DndProvider = _ref2 => {
|
|
|
8529
8529
|
});
|
|
8530
8530
|
}
|
|
8531
8531
|
return jsxRuntime.jsx(DnDContext.Provider, {
|
|
8532
|
-
value: _objectSpread$
|
|
8532
|
+
value: _objectSpread$M(_objectSpread$M({}, dndContextDefaultValues), {}, {
|
|
8533
8533
|
isDnDMode,
|
|
8534
8534
|
setDnDMode
|
|
8535
8535
|
}),
|
|
@@ -8541,8 +8541,8 @@ const useDnDContext = () => {
|
|
|
8541
8541
|
};
|
|
8542
8542
|
|
|
8543
8543
|
const _excluded$9 = ["renderCustomWarnings", "WrapperComponent"];
|
|
8544
|
-
function ownKeys$
|
|
8545
|
-
function _objectSpread$
|
|
8544
|
+
function ownKeys$L(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8545
|
+
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__default["default"](_context2 = ownKeys$L(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$L(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
8546
8546
|
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];
|
|
8547
8547
|
const getFieldName = (parentName, fieldName) => {
|
|
8548
8548
|
if (!parentName) return fieldName;
|
|
@@ -8624,7 +8624,7 @@ const CustomFieldsInternal = _ref => {
|
|
|
8624
8624
|
renderWarnings: props.renderWarnings,
|
|
8625
8625
|
additionalInfo: shouldUseAdditionalInfoProp && props?.additionalInfoHandler ? props.additionalInfoHandler(fieldDefinition, locale, timeZone, userLocale) : undefined
|
|
8626
8626
|
};
|
|
8627
|
-
const Field = jsxRuntime.jsx(FieldComponent, _objectSpread$
|
|
8627
|
+
const Field = jsxRuntime.jsx(FieldComponent, _objectSpread$L({}, fieldProps));
|
|
8628
8628
|
// the several values inside the key are needed to make sure the field is re-rendered when those values change
|
|
8629
8629
|
return jsxRuntime.jsx(formik.FastField, {
|
|
8630
8630
|
name: fieldName,
|
|
@@ -8667,8 +8667,8 @@ const CustomFieldsInternal = _ref => {
|
|
|
8667
8667
|
CustomFieldsInternal.displayName = 'CustomFieldsInternal';
|
|
8668
8668
|
var CustomFieldsInternal$1 = CustomFieldsInternal;
|
|
8669
8669
|
|
|
8670
|
-
function ownKeys$
|
|
8671
|
-
function _objectSpread$
|
|
8670
|
+
function ownKeys$K(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8671
|
+
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__default["default"](_context7 = ownKeys$K(Object(t), !0)).call(_context7, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context8 = ownKeys$K(Object(t))).call(_context8, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
8672
8672
|
const getTypeName = type => type.name.toLowerCase();
|
|
8673
8673
|
const findLabel = (enumType, key) => {
|
|
8674
8674
|
var _context;
|
|
@@ -8719,7 +8719,7 @@ const attributeDefinitionToFieldDefinition = attributeDefinition => ({
|
|
|
8719
8719
|
const nameValuePairsToMap = pairs => _reduceInstanceProperty__default["default"](pairs).call(pairs, (result, _ref2) => {
|
|
8720
8720
|
let name = _ref2.name,
|
|
8721
8721
|
value = _ref2.value;
|
|
8722
|
-
return _objectSpread$
|
|
8722
|
+
return _objectSpread$K(_objectSpread$K({}, result), {}, {
|
|
8723
8723
|
[name]: value
|
|
8724
8724
|
});
|
|
8725
8725
|
}, {});
|
|
@@ -8837,8 +8837,8 @@ var pickerMessages = reactIntl.defineMessages({
|
|
|
8837
8837
|
}
|
|
8838
8838
|
});
|
|
8839
8839
|
|
|
8840
|
-
function ownKeys$
|
|
8841
|
-
function _objectSpread$
|
|
8840
|
+
function ownKeys$J(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8841
|
+
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__default["default"](_context = ownKeys$J(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$J(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
8842
8842
|
const PRODUCT_SELECTION_MODES = {
|
|
8843
8843
|
INCLUSION: 'Individual',
|
|
8844
8844
|
EXCLUSION: 'IndividualExclusion'
|
|
@@ -8851,7 +8851,7 @@ const getMode = mode => mode === PRODUCT_SELECTION_MODES.INCLUSION || mode === P
|
|
|
8851
8851
|
const addModeToLabel = function (ps) {
|
|
8852
8852
|
let enableExcludingProducts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
8853
8853
|
if (!ps) return undefined;
|
|
8854
|
-
return _objectSpread$
|
|
8854
|
+
return _objectSpread$J(_objectSpread$J({}, ps), {}, {
|
|
8855
8855
|
label: `${ps?.label}${enableExcludingProducts ? ` (type: ${getMode(ps?.mode)})` : ''}`
|
|
8856
8856
|
});
|
|
8857
8857
|
};
|
|
@@ -9215,12 +9215,12 @@ function ProductSelectionsSearchSelectDropdown(props) {
|
|
|
9215
9215
|
});
|
|
9216
9216
|
}
|
|
9217
9217
|
|
|
9218
|
-
function ownKeys$
|
|
9219
|
-
function _objectSpread$
|
|
9218
|
+
function ownKeys$I(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9219
|
+
function _objectSpread$I(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$I(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$I(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
9220
9220
|
function ModeSelectInputOption(props) {
|
|
9221
9221
|
const data = props.data;
|
|
9222
9222
|
const noValueFallback = props.noValueFallback || constants.NO_VALUE_FALLBACK;
|
|
9223
|
-
return jsxRuntime.jsx(uiKit.SelectInput.Option, _objectSpread$
|
|
9223
|
+
return jsxRuntime.jsx(uiKit.SelectInput.Option, _objectSpread$I(_objectSpread$I({}, props), {}, {
|
|
9224
9224
|
children: jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
9225
9225
|
scale: "xs",
|
|
9226
9226
|
children: [jsxRuntime.jsx(uiKit.Text.Detail, {
|
|
@@ -9236,8 +9236,8 @@ function ModeSelectInputOption(props) {
|
|
|
9236
9236
|
}
|
|
9237
9237
|
|
|
9238
9238
|
const _excluded$7 = ["lowerProductSelectionsLimit", "upperProductSelectionsLimit", "renderSelectInputOptionValuesByField", "optionType", "isMulti", "isRequired", "hasWarning", "hasError", "isClearable", "isReadOnly", "isDisabled", "excludedProductSelectionIds", "title"];
|
|
9239
|
-
function ownKeys$
|
|
9240
|
-
function _objectSpread$
|
|
9239
|
+
function ownKeys$H(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9240
|
+
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__default["default"](_context = ownKeys$H(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$H(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
9241
9241
|
function ProductSelectionsPicker(_ref) {
|
|
9242
9242
|
let _ref$lowerProductSele = _ref.lowerProductSelectionsLimit,
|
|
9243
9243
|
lowerProductSelectionsLimit = _ref$lowerProductSele === void 0 ? LOWER_PRODUCT_SELECTIONS_LIMIT : _ref$lowerProductSele,
|
|
@@ -9271,10 +9271,10 @@ function ProductSelectionsPicker(_ref) {
|
|
|
9271
9271
|
return {
|
|
9272
9272
|
Option: optionInnerProps => {
|
|
9273
9273
|
if (optionInnerProps.isDisabled) {
|
|
9274
|
-
return jsxRuntime.jsx(uiKit.SelectInput.Option, _objectSpread$
|
|
9274
|
+
return jsxRuntime.jsx(uiKit.SelectInput.Option, _objectSpread$H({}, optionInnerProps));
|
|
9275
9275
|
}
|
|
9276
9276
|
if (optionType === TYPE_PROPERTY) {
|
|
9277
|
-
return jsxRuntime.jsx(ModeSelectInputOption, _objectSpread$
|
|
9277
|
+
return jsxRuntime.jsx(ModeSelectInputOption, _objectSpread$H({}, optionInnerProps));
|
|
9278
9278
|
}
|
|
9279
9279
|
return jsxRuntime.jsx(selectUtils.CustomSelectInputOption, {
|
|
9280
9280
|
optionType: optionType,
|
|
@@ -9287,7 +9287,7 @@ function ProductSelectionsPicker(_ref) {
|
|
|
9287
9287
|
let CustomProductSelectionsPicker;
|
|
9288
9288
|
if (productSelectionsTotalFetcher.total <= lowerProductSelectionsLimit) CustomProductSelectionsPicker = ProductSelectionBasicSelectDropdown;else if (productSelectionsTotalFetcher.total <= upperProductSelectionsLimit) CustomProductSelectionsPicker = ProductSelectionsAsyncSelectDropdown;else CustomProductSelectionsPicker = ProductSelectionsSearchSelectDropdown;
|
|
9289
9289
|
return jsxRuntime.jsx(uiKit.Spacings.Stack, {
|
|
9290
|
-
children: jsxRuntime.jsx(CustomProductSelectionsPicker, _objectSpread$
|
|
9290
|
+
children: jsxRuntime.jsx(CustomProductSelectionsPicker, _objectSpread$H(_objectSpread$H({
|
|
9291
9291
|
lowerProductSelectionsLimit: lowerProductSelectionsLimit,
|
|
9292
9292
|
upperProductSelectionsLimit: upperProductSelectionsLimit,
|
|
9293
9293
|
renderSelectInputOptionValuesByField: renderSelectInputOptionValuesByField,
|
|
@@ -9330,7 +9330,9 @@ var messages$w = reactIntl.defineMessages({
|
|
|
9330
9330
|
}
|
|
9331
9331
|
});
|
|
9332
9332
|
|
|
9333
|
-
|
|
9333
|
+
function ownKeys$G(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9334
|
+
function _objectSpread$G(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$G(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$G(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
9335
|
+
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 } } } };
|
|
9334
9336
|
const useRecurrenceIntervals = _ref => {
|
|
9335
9337
|
let where = _ref.where,
|
|
9336
9338
|
_ref$skip = _ref.skip,
|
|
@@ -9340,9 +9342,11 @@ const useRecurrenceIntervals = _ref => {
|
|
|
9340
9342
|
target: constants.GRAPHQL_TARGETS.COMMERCETOOLS_PLATFORM
|
|
9341
9343
|
},
|
|
9342
9344
|
fetchPolicy: 'cache-and-network',
|
|
9343
|
-
variables:
|
|
9345
|
+
variables: _objectSpread$G({
|
|
9346
|
+
limit: 500
|
|
9347
|
+
}, where && {
|
|
9344
9348
|
where
|
|
9345
|
-
}
|
|
9349
|
+
}),
|
|
9346
9350
|
skip
|
|
9347
9351
|
}),
|
|
9348
9352
|
data = _useQuery.data,
|
|
@@ -14890,6 +14894,7 @@ exports.CustomerGroupPickerInput = CustomerGroupPickerInput$1;
|
|
|
14890
14894
|
exports.DefaultPageSizes = DefaultPageSizes;
|
|
14891
14895
|
exports.Divider = Divider;
|
|
14892
14896
|
exports.EMAIL_REGEX = EMAIL_REGEX;
|
|
14897
|
+
exports.FILTER_TYPES = FILTER_TYPES;
|
|
14893
14898
|
exports.FileInput = FileInput$1;
|
|
14894
14899
|
exports.FormattedDateTime = FormattedDateTime$1;
|
|
14895
14900
|
exports.FormattedLocalizedString = FormattedLocalizedString;
|