@commercetools-frontend-extensions/change-history 8.38.0 → 8.39.0
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-extensions-change-history.cjs.dev.js +901 -678
- package/dist/commercetools-frontend-extensions-change-history.cjs.prod.js +899 -676
- package/dist/commercetools-frontend-extensions-change-history.esm.js +900 -676
- package/dist/declarations/src/components/_types/change-history.d.ts +5 -0
- package/dist/declarations/src/components/change-history-list-connector/change-history-list-connector.d.ts +42 -0
- package/dist/declarations/src/components/change-history-list-connector/conversions.d.ts +49 -0
- package/dist/declarations/src/components/change-history-list-view/filter-definitions.d.ts +37 -0
- package/dist/declarations/src/components/search/filters-container/filter-configurations/filter-configurations.d.ts +36 -0
- package/dist/declarations/src/components/search/standard-filter-definitions/index.d.ts +1 -0
- package/dist/declarations/src/components/search/standard-filter-definitions/standard-filter-definitions.d.ts +24 -0
- package/dist/declarations/src/components/search/standard-filters/enum-filters/enum-filters.d.ts +9 -0
- package/dist/declarations/src/components/search/standard-filters/enum-filters/index.d.ts +1 -0
- package/dist/declarations/src/components/search/standard-filters/resource-change-filter/resource-change-filter.d.ts +16 -0
- package/dist/declarations/src/components/search/standard-filters/stores-filter/stores-filter.d.ts +12 -0
- package/dist/declarations/src/components/search/standard-filters/text-filter/index.d.ts +1 -0
- package/dist/declarations/src/components/search/standard-filters/text-filter/text-filter.d.ts +6 -0
- package/dist/declarations/src/constants/filters.d.ts +13 -7
- package/dist/declarations/src/constants/old-filters.d.ts +0 -5
- package/dist/declarations/src/hooks/use-search-query-state/types.d.ts +105 -0
- package/dist/declarations/src/types/filters-types.d.ts +152 -0
- package/dist/declarations/types/src/generated/ctp.d.ts +15067 -0
- package/dist/declarations/types/src/generated/mc.d.ts +604 -0
- package/package.json +15 -13
|
@@ -70,6 +70,7 @@ import _sliceInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instan
|
|
|
70
70
|
import _indexOfInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/index-of';
|
|
71
71
|
import { deepEqual } from 'fast-equals';
|
|
72
72
|
import orderBy from 'lodash/orderBy';
|
|
73
|
+
import { isEqual } from 'lodash';
|
|
73
74
|
import kebabCase from 'lodash/kebabCase';
|
|
74
75
|
import 'msw';
|
|
75
76
|
import debounce from 'debounce-promise';
|
|
@@ -80,14 +81,13 @@ import { useFormik } from 'formik';
|
|
|
80
81
|
import has from 'lodash/has';
|
|
81
82
|
import isFunction from 'lodash/isFunction';
|
|
82
83
|
import _Array$from from '@babel/runtime-corejs3/core-js-stable/array/from';
|
|
83
|
-
import
|
|
84
|
-
import isEqual from 'lodash/isEqual';
|
|
84
|
+
import RadioInput from '@commercetools-uikit/radio-input';
|
|
85
85
|
import { designTokens as designTokens$1 } from '@commercetools-uikit/design-system';
|
|
86
86
|
import { oneLineTrim } from 'common-tags';
|
|
87
87
|
import { parseChunkImport, mapLocaleToIntlLocale } from '@commercetools-frontend/i18n';
|
|
88
88
|
|
|
89
89
|
// NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file.
|
|
90
|
-
var version = "8.
|
|
90
|
+
var version = "8.39.0";
|
|
91
91
|
|
|
92
92
|
// EXAMPLE
|
|
93
93
|
// export const FEATURE_FLAG_NAME = 'featureFlagName';
|
|
@@ -706,19 +706,26 @@ const AVATAR_COLORS = {
|
|
|
706
706
|
BROWN: 'brown'
|
|
707
707
|
};
|
|
708
708
|
|
|
709
|
+
const quickFilterToday = 'today';
|
|
710
|
+
const quickFilterYesterday = 'yesterday';
|
|
711
|
+
const quickFilterLast7Days = 'last7Days';
|
|
712
|
+
const quickFilterLast30Days = 'last30Days';
|
|
713
|
+
const quickFilterCustom = 'custom';
|
|
714
|
+
|
|
715
|
+
// The values here will map to the props that are passed to the API to fetch data.
|
|
709
716
|
const FILTER_KEY = {
|
|
710
|
-
API_CLIENT: '
|
|
717
|
+
API_CLIENT: 'clientId',
|
|
711
718
|
BUSINESS_UNIT: 'businessUnit',
|
|
712
|
-
|
|
713
|
-
CHANGE_TYPE: '
|
|
719
|
+
CHANGES: 'changes',
|
|
720
|
+
CHANGE_TYPE: 'type',
|
|
721
|
+
CREATED_AT: 'date',
|
|
722
|
+
CREATED_BY: 'userId',
|
|
714
723
|
CUSTOMER_ID: 'customerId',
|
|
715
|
-
CREATED_AT: 'createdAt',
|
|
716
|
-
RESOURCE_ID: 'resourceId',
|
|
717
|
-
RESOURCE_TYPE: 'resource.typeId',
|
|
718
724
|
EXCLUDE_PLATFORM_CHANGES: 'excludePlatformInitiatedChanges',
|
|
719
725
|
IS_PLATFORM_CLIENT: 'isPlatformClient',
|
|
720
|
-
|
|
721
|
-
|
|
726
|
+
RESOURCE_ID: 'resourceId',
|
|
727
|
+
RESOURCE_TYPE: 'resourceType',
|
|
728
|
+
STORES: 'stores'
|
|
722
729
|
};
|
|
723
730
|
const FILTER_OPERATOR = {
|
|
724
731
|
lessThan: 'lessThan',
|
|
@@ -759,12 +766,6 @@ const FILTER_TYPES = {
|
|
|
759
766
|
in: 'in',
|
|
760
767
|
resourceChange: 'resourceChange'
|
|
761
768
|
};
|
|
762
|
-
const quickFilterToday = 'today';
|
|
763
|
-
const quickFilterYesterday = 'yesterday';
|
|
764
|
-
const quickFilterLast7Days = 'last7Days';
|
|
765
|
-
const quickFilterLast30Days = 'last30Days';
|
|
766
|
-
const quickFilterCustom = 'custom';
|
|
767
|
-
|
|
768
769
|
// ---------- Nested filter option menus ---------- //
|
|
769
770
|
|
|
770
771
|
const TOOL_OPTIONS = {
|
|
@@ -1591,8 +1592,8 @@ const PRECISION_TYPES = {
|
|
|
1591
1592
|
centPrecision: 'centPrecision'
|
|
1592
1593
|
};
|
|
1593
1594
|
|
|
1594
|
-
function ownKeys$
|
|
1595
|
-
function _objectSpread$
|
|
1595
|
+
function ownKeys$1q(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1596
|
+
function _objectSpread$1q(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1q(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1q(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1596
1597
|
function getFractionedAmount(moneyValue) {
|
|
1597
1598
|
const _moneyValue$fractionD = moneyValue.fractionDigits,
|
|
1598
1599
|
fractionDigits = _moneyValue$fractionD === void 0 ? 2 : _moneyValue$fractionD;
|
|
@@ -1603,7 +1604,7 @@ function getFractionedAmount(moneyValue) {
|
|
|
1603
1604
|
}
|
|
1604
1605
|
function formatMoney(moneyValue, intl, options) {
|
|
1605
1606
|
if (moneyValue === null) return;
|
|
1606
|
-
return intl.formatNumber(getFractionedAmount(moneyValue), _objectSpread$
|
|
1607
|
+
return intl.formatNumber(getFractionedAmount(moneyValue), _objectSpread$1q({
|
|
1607
1608
|
style: 'currency',
|
|
1608
1609
|
currency: moneyValue.currencyCode,
|
|
1609
1610
|
minimumFractionDigits: moneyValue.fractionDigits
|
|
@@ -1628,8 +1629,8 @@ function formatCustomerName(_ref) {
|
|
|
1628
1629
|
return jsx(NoValueFallback, {});
|
|
1629
1630
|
}
|
|
1630
1631
|
|
|
1631
|
-
function ownKeys$
|
|
1632
|
-
function _objectSpread$
|
|
1632
|
+
function ownKeys$1p(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1633
|
+
function _objectSpread$1p(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1p(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1p(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1633
1634
|
const resourceTypesWithNoLabel = ['key-value-document', 'review'];
|
|
1634
1635
|
const parentTypesWithNoLabel = ['product-selection'];
|
|
1635
1636
|
const getReferenceLabel = (referenceValue, language, languages) => {
|
|
@@ -1715,7 +1716,7 @@ const ReferenceTypeChange = props => {
|
|
|
1715
1716
|
referenceType: String(true)
|
|
1716
1717
|
}));
|
|
1717
1718
|
const resourceType = intl.formatMessage(getEntityTypeNameMessage(props.typeId));
|
|
1718
|
-
const label = getReferenceLabel(_objectSpread$
|
|
1719
|
+
const label = getReferenceLabel(_objectSpread$1p({
|
|
1719
1720
|
id: props.id,
|
|
1720
1721
|
typeId: props.typeId
|
|
1721
1722
|
}, props.expandedProps), language, languages);
|
|
@@ -1773,8 +1774,8 @@ const changeItemLabelStyles = process.env.NODE_ENV === "production" ? {
|
|
|
1773
1774
|
};
|
|
1774
1775
|
|
|
1775
1776
|
const _excluded$k = ["id", "typeId"];
|
|
1776
|
-
function ownKeys$
|
|
1777
|
-
function _objectSpread$
|
|
1777
|
+
function ownKeys$1o(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1778
|
+
function _objectSpread$1o(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context3 = ownKeys$1o(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context4 = ownKeys$1o(Object(t))).call(_context4, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1778
1779
|
const ChangeItemValueByType = props => {
|
|
1779
1780
|
const intl = useIntl();
|
|
1780
1781
|
if (props.value === null || props.value === undefined) return jsx(NoValueLabel, {});
|
|
@@ -1824,7 +1825,7 @@ const ChangeItemValueByType = props => {
|
|
|
1824
1825
|
css: productAttributeValuesStyles,
|
|
1825
1826
|
children: [jsx(Text.Detail, {
|
|
1826
1827
|
isItalic: true,
|
|
1827
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
1828
|
+
children: jsx(FormattedMessage, _objectSpread$1o(_objectSpread$1o({}, messages$1l.attributeItem), {}, {
|
|
1828
1829
|
values: {
|
|
1829
1830
|
b: getBoldText,
|
|
1830
1831
|
index: index + 1
|
|
@@ -1879,8 +1880,8 @@ const ComposedChange = props => jsx("div", {
|
|
|
1879
1880
|
});
|
|
1880
1881
|
ComposedChange.displayName = 'ComposedChange';
|
|
1881
1882
|
|
|
1882
|
-
function ownKeys$
|
|
1883
|
-
function _objectSpread$
|
|
1883
|
+
function ownKeys$1n(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1884
|
+
function _objectSpread$1n(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1n(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1n(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1884
1885
|
const CustomFieldChange = props => {
|
|
1885
1886
|
const _useApplicationContex = useApplicationContext(applicationContext => ({
|
|
1886
1887
|
language: applicationContext.dataLocale,
|
|
@@ -1904,7 +1905,7 @@ const CustomFieldChange = props => {
|
|
|
1904
1905
|
}
|
|
1905
1906
|
};
|
|
1906
1907
|
return jsx(ComposedChange, {
|
|
1907
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
1908
|
+
label: jsx(FormattedMessage, _objectSpread$1n(_objectSpread$1n({}, messages$1l.customFieldLabel), {}, {
|
|
1908
1909
|
values: {
|
|
1909
1910
|
b: getBoldText,
|
|
1910
1911
|
customField: props.change.previousValue?.label ? localize({
|
|
@@ -1921,8 +1922,8 @@ const CustomFieldChange = props => {
|
|
|
1921
1922
|
};
|
|
1922
1923
|
CustomFieldChange.displayName = 'CustomFieldChange';
|
|
1923
1924
|
|
|
1924
|
-
function ownKeys$
|
|
1925
|
-
function _objectSpread$
|
|
1925
|
+
function ownKeys$1m(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1926
|
+
function _objectSpread$1m(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1m(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$1m(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1926
1927
|
const CustomTypeChange = props => {
|
|
1927
1928
|
var _context;
|
|
1928
1929
|
const _useApplicationContex = useApplicationContext(applicationContext => ({
|
|
@@ -1941,7 +1942,7 @@ const CustomTypeChange = props => {
|
|
|
1941
1942
|
language: language,
|
|
1942
1943
|
fallbackOrder: languages
|
|
1943
1944
|
})
|
|
1944
|
-
}) : jsx(FormattedMessage, _objectSpread$
|
|
1945
|
+
}) : jsx(FormattedMessage, _objectSpread$1m(_objectSpread$1m({}, messages$1l.customTypeIdLabel), {}, {
|
|
1945
1946
|
values: {
|
|
1946
1947
|
customTypeId: props.value.type.id
|
|
1947
1948
|
}
|
|
@@ -1982,8 +1983,8 @@ const JsonDisplay = props => {
|
|
|
1982
1983
|
};
|
|
1983
1984
|
JsonDisplay.displayame = 'JsonDisplay';
|
|
1984
1985
|
|
|
1985
|
-
function ownKeys$
|
|
1986
|
-
function _objectSpread$
|
|
1986
|
+
function ownKeys$1l(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1987
|
+
function _objectSpread$1l(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1l(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$1l(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1987
1988
|
/**
|
|
1988
1989
|
* Maps custom type fields object property into an array
|
|
1989
1990
|
*
|
|
@@ -2008,13 +2009,13 @@ function transformCustomTypeValue(value) {
|
|
|
2008
2009
|
}
|
|
2009
2010
|
const mapCustomTypeFieldsToArray = value => {
|
|
2010
2011
|
var _context;
|
|
2011
|
-
return _objectSpread$
|
|
2012
|
+
return _objectSpread$1l(_objectSpread$1l({}, value), {}, {
|
|
2012
2013
|
fields: value?.fields ? _mapInstanceProperty(_context = _Object$entries(value.fields)).call(_context, _ref => {
|
|
2013
2014
|
let _ref2 = _slicedToArray(_ref, 2),
|
|
2014
2015
|
key = _ref2[0],
|
|
2015
2016
|
entry = _ref2[1];
|
|
2016
2017
|
const entryValue = entry.value !== undefined ? entry.value : entry;
|
|
2017
|
-
return _objectSpread$
|
|
2018
|
+
return _objectSpread$1l(_objectSpread$1l({}, entry), {}, {
|
|
2018
2019
|
name: key,
|
|
2019
2020
|
value: transformCustomTypeValue(entryValue)
|
|
2020
2021
|
});
|
|
@@ -2387,8 +2388,8 @@ var businessUnitChangeMessages = defineMessages({
|
|
|
2387
2388
|
}
|
|
2388
2389
|
});
|
|
2389
2390
|
|
|
2390
|
-
function ownKeys$
|
|
2391
|
-
function _objectSpread$
|
|
2391
|
+
function ownKeys$1k(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2392
|
+
function _objectSpread$1k(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context3 = ownKeys$1k(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context4 = ownKeys$1k(Object(t))).call(_context4, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2392
2393
|
const formatRoleAssignmentsForChangeAssociate = (roleAssignments, intl) => _mapInstanceProperty(roleAssignments).call(roleAssignments, roleAssignment => jsx(Text.Detail, {
|
|
2393
2394
|
children: `${roleAssignment.associateRole.key}: ${roleAssignment.inheritance === 'Disabled' ? intl.formatMessage(businessUnitChangeMessages.inheritanceDisabled) : intl.formatMessage(businessUnitChangeMessages.inheritanceEnabled)}`
|
|
2394
2395
|
}, roleAssignment.associateRole.key)) || jsx(NoValueLabel, {});
|
|
@@ -2452,7 +2453,7 @@ const BusinessUnitChanges = props => {
|
|
|
2452
2453
|
case ResourceChangeInput.ChangeAddress:
|
|
2453
2454
|
{
|
|
2454
2455
|
return jsx(ComposedChange, {
|
|
2455
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
2456
|
+
label: jsx(FormattedMessage, _objectSpread$1k(_objectSpread$1k({}, messages$1l.addressIdLabel), {}, {
|
|
2456
2457
|
values: {
|
|
2457
2458
|
b: getBoldText,
|
|
2458
2459
|
addressId: props.value.id
|
|
@@ -2506,7 +2507,7 @@ const BusinessUnitChanges = props => {
|
|
|
2506
2507
|
{
|
|
2507
2508
|
return jsx(ComposedChange, {
|
|
2508
2509
|
label: jsxs(Fragment, {
|
|
2509
|
-
children: [jsx(FormattedMessage, _objectSpread$
|
|
2510
|
+
children: [jsx(FormattedMessage, _objectSpread$1k(_objectSpread$1k({}, messages$1l.customFieldLabel), {}, {
|
|
2510
2511
|
values: {
|
|
2511
2512
|
b: getBoldText,
|
|
2512
2513
|
customField: props.change.previousValue?.label ? localize({
|
|
@@ -2516,7 +2517,7 @@ const BusinessUnitChanges = props => {
|
|
|
2516
2517
|
fallbackOrder: languages
|
|
2517
2518
|
}) : props.change.name
|
|
2518
2519
|
}
|
|
2519
|
-
})), jsx("br", {}), jsx(FormattedMessage, _objectSpread$
|
|
2520
|
+
})), jsx("br", {}), jsx(FormattedMessage, _objectSpread$1k(_objectSpread$1k({}, messages$1l.addressIdLabel), {}, {
|
|
2520
2521
|
values: {
|
|
2521
2522
|
b: getBoldText,
|
|
2522
2523
|
addressId: props.change.address.id
|
|
@@ -2536,7 +2537,7 @@ const BusinessUnitChanges = props => {
|
|
|
2536
2537
|
case ResourceChangeInput.SetAddressCustomType:
|
|
2537
2538
|
{
|
|
2538
2539
|
return jsx(ComposedChange, {
|
|
2539
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
2540
|
+
label: jsx(FormattedMessage, _objectSpread$1k(_objectSpread$1k({}, messages$1l.addressIdLabel), {}, {
|
|
2540
2541
|
values: {
|
|
2541
2542
|
b: getBoldText,
|
|
2542
2543
|
addressId: props.change.address.id
|
|
@@ -2587,10 +2588,10 @@ const BusinessUnitChanges = props => {
|
|
|
2587
2588
|
};
|
|
2588
2589
|
BusinessUnitChanges.displayName = 'BusinessUnitChanges';
|
|
2589
2590
|
|
|
2590
|
-
function ownKeys$
|
|
2591
|
-
function _objectSpread$
|
|
2591
|
+
function ownKeys$1j(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2592
|
+
function _objectSpread$1j(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1j(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1j(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2592
2593
|
const mapDiffToChange = (totalDiff, diff) => {
|
|
2593
|
-
return _objectSpread$
|
|
2594
|
+
return _objectSpread$1j(_objectSpread$1j({}, totalDiff), {}, {
|
|
2594
2595
|
[diff.path[0]]: {
|
|
2595
2596
|
previousValue: diff.lhs,
|
|
2596
2597
|
nextValue: diff.rhs
|
|
@@ -2631,8 +2632,8 @@ const LocalizeChange = props => {
|
|
|
2631
2632
|
};
|
|
2632
2633
|
LocalizeChange.displayName = 'LocalizeChange';
|
|
2633
2634
|
|
|
2634
|
-
function ownKeys$
|
|
2635
|
-
function _objectSpread$
|
|
2635
|
+
function ownKeys$1i(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2636
|
+
function _objectSpread$1i(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1i(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1i(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2636
2637
|
const getChangeValue = (change, value) => {
|
|
2637
2638
|
if (!value) return jsx(NoValueLabel, {});
|
|
2638
2639
|
switch (change.change) {
|
|
@@ -2668,7 +2669,7 @@ const AssetChange = props => {
|
|
|
2668
2669
|
});
|
|
2669
2670
|
}
|
|
2670
2671
|
return jsx(ComposedChange, {
|
|
2671
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
2672
|
+
label: jsx(FormattedMessage, _objectSpread$1i(_objectSpread$1i({}, messages$1l.assetLabel), {}, {
|
|
2672
2673
|
values: {
|
|
2673
2674
|
b: getBoldText,
|
|
2674
2675
|
asset: localize({
|
|
@@ -2804,8 +2805,8 @@ const CategoryChanges = props => {
|
|
|
2804
2805
|
};
|
|
2805
2806
|
CategoryChanges.displayName = 'CategoryChanges';
|
|
2806
2807
|
|
|
2807
|
-
function ownKeys$
|
|
2808
|
-
function _objectSpread$
|
|
2808
|
+
function ownKeys$1h(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2809
|
+
function _objectSpread$1h(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1h(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1h(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2809
2810
|
const ChannelChanges = props => {
|
|
2810
2811
|
switch (props.change.change) {
|
|
2811
2812
|
case ResourceChangeInput.ChangeDescription:
|
|
@@ -2836,7 +2837,7 @@ const ChannelChanges = props => {
|
|
|
2836
2837
|
return jsxs(Spacings.Stack, {
|
|
2837
2838
|
scale: "xs",
|
|
2838
2839
|
children: [jsx("div", {
|
|
2839
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
2840
|
+
children: jsx(FormattedMessage, _objectSpread$1h(_objectSpread$1h({}, messages$1l.averageRatingLabel), {}, {
|
|
2840
2841
|
values: {
|
|
2841
2842
|
averageRating: props.value?.averageRating,
|
|
2842
2843
|
highestRating: props.value?.highestRating,
|
|
@@ -2844,7 +2845,7 @@ const ChannelChanges = props => {
|
|
|
2844
2845
|
}
|
|
2845
2846
|
}))
|
|
2846
2847
|
}), jsx("div", {
|
|
2847
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
2848
|
+
children: jsx(FormattedMessage, _objectSpread$1h(_objectSpread$1h({}, messages$1l.numberOfReviewsLabel), {}, {
|
|
2848
2849
|
values: {
|
|
2849
2850
|
count: props.value?.count
|
|
2850
2851
|
}
|
|
@@ -2860,7 +2861,7 @@ const ChannelChanges = props => {
|
|
|
2860
2861
|
}
|
|
2861
2862
|
case ResourceChangeInput.SetGeoLocation:
|
|
2862
2863
|
{
|
|
2863
|
-
return props.value ? jsx(FormattedMessage, _objectSpread$
|
|
2864
|
+
return props.value ? jsx(FormattedMessage, _objectSpread$1h(_objectSpread$1h({}, messages$1l.geoLocationLabel), {}, {
|
|
2864
2865
|
values: {
|
|
2865
2866
|
type: props.value.type,
|
|
2866
2867
|
longitude: props.value.coordinates[0],
|
|
@@ -4401,9 +4402,9 @@ var messages$Y = defineMessages({
|
|
|
4401
4402
|
}
|
|
4402
4403
|
});
|
|
4403
4404
|
|
|
4404
|
-
function ownKeys$
|
|
4405
|
-
function _objectSpread$
|
|
4406
|
-
var changeMessages = _objectSpread$
|
|
4405
|
+
function ownKeys$1g(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4406
|
+
function _objectSpread$1g(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1g(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1g(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4407
|
+
var changeMessages = _objectSpread$1g(_objectSpread$1g(_objectSpread$1g(_objectSpread$1g(_objectSpread$1g(_objectSpread$1g(_objectSpread$1g(_objectSpread$1g(_objectSpread$1g(_objectSpread$1g(_objectSpread$1g(_objectSpread$1g(_objectSpread$1g(_objectSpread$1g(_objectSpread$1g(_objectSpread$1g(_objectSpread$1g(_objectSpread$1g(_objectSpread$1g(_objectSpread$1g(_objectSpread$1g(_objectSpread$1g(_objectSpread$1g(_objectSpread$1g(_objectSpread$1g(_objectSpread$1g(_objectSpread$1g({}, assetsMessages), messages$1k), messages$1j), messages$1i), messages$1h), messages$1g), commonMessages), messages$1e), messages$1f), messages$1d), messages$1c), messages$1b), messages$1a), messages$19), messages$18), messages$17), messages$16), messages$14), messages$15), messages$13), messages$12), messages$11), messages$10), messages$_), messages$Z), messages$Y), messages$$);
|
|
4407
4408
|
|
|
4408
4409
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$n() { 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)."; }
|
|
4409
4410
|
const tableStyles = process.env.NODE_ENV === "production" ? {
|
|
@@ -4528,8 +4529,8 @@ const FormattedDateTime = props => {
|
|
|
4528
4529
|
};
|
|
4529
4530
|
FormattedDateTime.displayName = 'FormattedDateTime';
|
|
4530
4531
|
|
|
4531
|
-
function ownKeys$
|
|
4532
|
-
function _objectSpread$
|
|
4532
|
+
function ownKeys$1f(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4533
|
+
function _objectSpread$1f(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1f(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$1f(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4533
4534
|
const MAX_LINES = 12;
|
|
4534
4535
|
const MAX_CHARS = 2000;
|
|
4535
4536
|
const isChangeValueLarge$1 = value => {
|
|
@@ -4634,7 +4635,7 @@ const CustomObjectChanges = props => {
|
|
|
4634
4635
|
{
|
|
4635
4636
|
return isChangeValueLarge$1(props.change.previousValue) || isChangeValueLarge$1(props.change.nextValue) ? jsxs("div", {
|
|
4636
4637
|
css: productAttributeValuesStyles,
|
|
4637
|
-
children: [jsx(FormattedMessage, _objectSpread$
|
|
4638
|
+
children: [jsx(FormattedMessage, _objectSpread$1f(_objectSpread$1f({}, messages$1l.pathLabel), {}, {
|
|
4638
4639
|
values: {
|
|
4639
4640
|
path: props.change.path,
|
|
4640
4641
|
b: getBoldText
|
|
@@ -4647,7 +4648,7 @@ const CustomObjectChanges = props => {
|
|
|
4647
4648
|
})
|
|
4648
4649
|
})]
|
|
4649
4650
|
}) : jsx(ComposedChange, {
|
|
4650
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
4651
|
+
label: jsx(FormattedMessage, _objectSpread$1f(_objectSpread$1f({}, messages$1l.pathLabel), {}, {
|
|
4651
4652
|
values: {
|
|
4652
4653
|
path: props.change.path,
|
|
4653
4654
|
b: getBoldText
|
|
@@ -4665,7 +4666,7 @@ const CustomObjectChanges = props => {
|
|
|
4665
4666
|
{
|
|
4666
4667
|
return jsxs("div", {
|
|
4667
4668
|
css: productAttributeValuesStyles,
|
|
4668
|
-
children: [jsx(FormattedMessage, _objectSpread$
|
|
4669
|
+
children: [jsx(FormattedMessage, _objectSpread$1f(_objectSpread$1f({}, messages$1l.pathLabel), {}, {
|
|
4669
4670
|
values: {
|
|
4670
4671
|
path: props.change.path,
|
|
4671
4672
|
b: getBoldText
|
|
@@ -4685,7 +4686,7 @@ const CustomObjectChanges = props => {
|
|
|
4685
4686
|
{
|
|
4686
4687
|
return jsxs("div", {
|
|
4687
4688
|
css: productAttributeValuesStyles,
|
|
4688
|
-
children: [jsx(FormattedMessage, _objectSpread$
|
|
4689
|
+
children: [jsx(FormattedMessage, _objectSpread$1f(_objectSpread$1f({}, messages$1l.pathLabel), {}, {
|
|
4689
4690
|
values: {
|
|
4690
4691
|
path: props.change.path,
|
|
4691
4692
|
b: getBoldText
|
|
@@ -4712,8 +4713,8 @@ const CustomObjectChanges = props => {
|
|
|
4712
4713
|
CustomObjectChanges.displayName = 'CustomObjectChanges';
|
|
4713
4714
|
|
|
4714
4715
|
const _excluded$i = ["typeId", "id"];
|
|
4715
|
-
function ownKeys$
|
|
4716
|
-
function _objectSpread$
|
|
4716
|
+
function ownKeys$1e(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4717
|
+
function _objectSpread$1e(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1e(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$1e(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4717
4718
|
const CustomerChanges = props => {
|
|
4718
4719
|
switch (props.change.change) {
|
|
4719
4720
|
case ResourceChangeInput.SetStores:
|
|
@@ -4752,7 +4753,7 @@ const CustomerChanges = props => {
|
|
|
4752
4753
|
case ResourceChangeInput.ChangeAddress:
|
|
4753
4754
|
{
|
|
4754
4755
|
return jsx(ComposedChange, {
|
|
4755
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
4756
|
+
label: jsx(FormattedMessage, _objectSpread$1e(_objectSpread$1e({}, messages$1l.addressIdLabel), {}, {
|
|
4756
4757
|
values: {
|
|
4757
4758
|
b: getBoldText,
|
|
4758
4759
|
addressId: props.value.id
|
|
@@ -4804,8 +4805,8 @@ const CustomerChanges = props => {
|
|
|
4804
4805
|
CustomerChanges.displayName = 'CustomerChanges';
|
|
4805
4806
|
|
|
4806
4807
|
const _excluded$h = ["typeId", "id"];
|
|
4807
|
-
function ownKeys$
|
|
4808
|
-
function _objectSpread$
|
|
4808
|
+
function ownKeys$1d(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4809
|
+
function _objectSpread$1d(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1d(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$1d(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4809
4810
|
const DiscountChanges = props => {
|
|
4810
4811
|
var _context;
|
|
4811
4812
|
const intl = useIntl();
|
|
@@ -4824,7 +4825,7 @@ const DiscountChanges = props => {
|
|
|
4824
4825
|
return jsxs(Spacings.Stack, {
|
|
4825
4826
|
scale: "xs",
|
|
4826
4827
|
children: [jsx("div", {
|
|
4827
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
4828
|
+
children: jsx(FormattedMessage, _objectSpread$1d(_objectSpread$1d({}, messages$1l.validFromLabel), {}, {
|
|
4828
4829
|
values: {
|
|
4829
4830
|
date: props.value.validFrom ? jsx(FormattedDateTime, {
|
|
4830
4831
|
type: "datetime",
|
|
@@ -4835,7 +4836,7 @@ const DiscountChanges = props => {
|
|
|
4835
4836
|
}
|
|
4836
4837
|
}))
|
|
4837
4838
|
}), jsx("div", {
|
|
4838
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
4839
|
+
children: jsx(FormattedMessage, _objectSpread$1d(_objectSpread$1d({}, messages$1l.validUntilLabel), {}, {
|
|
4839
4840
|
values: {
|
|
4840
4841
|
date: props.value.validUntil ? jsx(FormattedDateTime, {
|
|
4841
4842
|
type: "datetime",
|
|
@@ -4876,7 +4877,7 @@ const DiscountChanges = props => {
|
|
|
4876
4877
|
return jsxs(Spacings.Stack, {
|
|
4877
4878
|
scale: "xs",
|
|
4878
4879
|
children: [jsx("div", {
|
|
4879
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
4880
|
+
children: jsx(FormattedMessage, _objectSpread$1d(_objectSpread$1d({}, messages$1l.predicateTypeLabel), {}, {
|
|
4880
4881
|
values: {
|
|
4881
4882
|
predicateType: jsx("b", {
|
|
4882
4883
|
children: props.value.type
|
|
@@ -4929,8 +4930,8 @@ const DiscountChanges = props => {
|
|
|
4929
4930
|
DiscountChanges.displayName = 'DiscountChanges';
|
|
4930
4931
|
|
|
4931
4932
|
const _excluded$g = ["typeId", "id"];
|
|
4932
|
-
function ownKeys$
|
|
4933
|
-
function _objectSpread$
|
|
4933
|
+
function ownKeys$1c(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4934
|
+
function _objectSpread$1c(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1c(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1c(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4934
4935
|
const InventoryEntryChanges = props => {
|
|
4935
4936
|
switch (props.change.change) {
|
|
4936
4937
|
case ResourceChangeInput.SetCustomType:
|
|
@@ -4949,13 +4950,13 @@ const InventoryEntryChanges = props => {
|
|
|
4949
4950
|
return jsxs(Spacings.Stack, {
|
|
4950
4951
|
scale: "xs",
|
|
4951
4952
|
children: [jsx("div", {
|
|
4952
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
4953
|
+
children: jsx(FormattedMessage, _objectSpread$1c(_objectSpread$1c({}, messages$1l.quantityOnStockLabel), {}, {
|
|
4953
4954
|
values: {
|
|
4954
4955
|
quantity: props.value.quantityOnStock
|
|
4955
4956
|
}
|
|
4956
4957
|
}))
|
|
4957
4958
|
}), jsx("div", {
|
|
4958
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
4959
|
+
children: jsx(FormattedMessage, _objectSpread$1c(_objectSpread$1c({}, messages$1l.availableQuantityLabel), {}, {
|
|
4959
4960
|
values: {
|
|
4960
4961
|
quantity: props.value.availableQuantity
|
|
4961
4962
|
}
|
|
@@ -4963,7 +4964,7 @@ const InventoryEntryChanges = props => {
|
|
|
4963
4964
|
})]
|
|
4964
4965
|
});
|
|
4965
4966
|
case ResourceChangeInput.SetRestockableInDays:
|
|
4966
|
-
return jsx(FormattedMessage, _objectSpread$
|
|
4967
|
+
return jsx(FormattedMessage, _objectSpread$1c(_objectSpread$1c({}, messages$1l.setRestockableInDaysLabel), {}, {
|
|
4967
4968
|
values: {
|
|
4968
4969
|
day: props.value
|
|
4969
4970
|
}
|
|
@@ -5000,36 +5001,36 @@ const InventoryEntryChanges = props => {
|
|
|
5000
5001
|
};
|
|
5001
5002
|
InventoryEntryChanges.displayName = 'InventoryEntryChanges';
|
|
5002
5003
|
|
|
5003
|
-
function ownKeys$
|
|
5004
|
-
function _objectSpread$
|
|
5004
|
+
function ownKeys$1b(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5005
|
+
function _objectSpread$1b(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1b(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1b(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5005
5006
|
const TrackingDataChange = props => props.value ? jsxs(Spacings.Stack, {
|
|
5006
5007
|
scale: "xs",
|
|
5007
5008
|
children: [props.value.trackingId && jsx("div", {
|
|
5008
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
5009
|
+
children: jsx(FormattedMessage, _objectSpread$1b(_objectSpread$1b({}, messages$1l.trackingIdLabel), {}, {
|
|
5009
5010
|
values: {
|
|
5010
5011
|
trackingId: props.value.trackingId
|
|
5011
5012
|
}
|
|
5012
5013
|
}))
|
|
5013
5014
|
}), props.value.carrier && jsx("div", {
|
|
5014
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
5015
|
+
children: jsx(FormattedMessage, _objectSpread$1b(_objectSpread$1b({}, messages$1l.carrierLabel), {}, {
|
|
5015
5016
|
values: {
|
|
5016
5017
|
carrier: props.value.carrier
|
|
5017
5018
|
}
|
|
5018
5019
|
}))
|
|
5019
5020
|
}), props.value.provider && jsx("div", {
|
|
5020
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
5021
|
+
children: jsx(FormattedMessage, _objectSpread$1b(_objectSpread$1b({}, messages$1l.providerLabel), {}, {
|
|
5021
5022
|
values: {
|
|
5022
5023
|
provider: props.value.provider
|
|
5023
5024
|
}
|
|
5024
5025
|
}))
|
|
5025
5026
|
}), props.value.providerTransaction && jsx("div", {
|
|
5026
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
5027
|
+
children: jsx(FormattedMessage, _objectSpread$1b(_objectSpread$1b({}, messages$1l.providerTransactionLabel), {}, {
|
|
5027
5028
|
values: {
|
|
5028
5029
|
providerTransaction: props.value.providerTransaction
|
|
5029
5030
|
}
|
|
5030
5031
|
}))
|
|
5031
5032
|
}), props.value.isReturn !== undefined && jsx("div", {
|
|
5032
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
5033
|
+
children: jsx(FormattedMessage, _objectSpread$1b(_objectSpread$1b({}, messages$1l.isReturnLabel), {}, {
|
|
5033
5034
|
values: {
|
|
5034
5035
|
isReturn: _JSON$stringify(props.value.isReturn)
|
|
5035
5036
|
}
|
|
@@ -5040,25 +5041,25 @@ TrackingDataChange.displayName = 'TrackingDataChange';
|
|
|
5040
5041
|
const MeasurementsChange = props => props.value ? jsxs(Spacings.Stack, {
|
|
5041
5042
|
scale: "xs",
|
|
5042
5043
|
children: [props.value.heightInMillimeter && jsx("div", {
|
|
5043
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
5044
|
+
children: jsx(FormattedMessage, _objectSpread$1b(_objectSpread$1b({}, messages$1l.heightInMillimeterLabel), {}, {
|
|
5044
5045
|
values: {
|
|
5045
5046
|
heightInMillimeter: props.value.heightInMillimeter
|
|
5046
5047
|
}
|
|
5047
5048
|
}))
|
|
5048
5049
|
}), props.value.lengthInMillimeter && jsx("div", {
|
|
5049
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
5050
|
+
children: jsx(FormattedMessage, _objectSpread$1b(_objectSpread$1b({}, messages$1l.lengthInMillimeterLabel), {}, {
|
|
5050
5051
|
values: {
|
|
5051
5052
|
lengthInMillimeter: props.value.lengthInMillimeter
|
|
5052
5053
|
}
|
|
5053
5054
|
}))
|
|
5054
5055
|
}), props.value.widthInMillimeter && jsx("div", {
|
|
5055
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
5056
|
+
children: jsx(FormattedMessage, _objectSpread$1b(_objectSpread$1b({}, messages$1l.widthInMillimeterLabel), {}, {
|
|
5056
5057
|
values: {
|
|
5057
5058
|
widthInMillimeter: props.value.widthInMillimeter
|
|
5058
5059
|
}
|
|
5059
5060
|
}))
|
|
5060
5061
|
}), props.value.weightInGram && jsx("div", {
|
|
5061
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
5062
|
+
children: jsx(FormattedMessage, _objectSpread$1b(_objectSpread$1b({}, messages$1l.weightInGramLabel), {}, {
|
|
5062
5063
|
values: {
|
|
5063
5064
|
weightInGram: props.value.weightInGram
|
|
5064
5065
|
}
|
|
@@ -5067,8 +5068,8 @@ const MeasurementsChange = props => props.value ? jsxs(Spacings.Stack, {
|
|
|
5067
5068
|
}) : jsx(NoValueLabel, {});
|
|
5068
5069
|
MeasurementsChange.displayName = 'MeasurementsChange';
|
|
5069
5070
|
|
|
5070
|
-
function ownKeys$
|
|
5071
|
-
function _objectSpread$
|
|
5071
|
+
function ownKeys$1a(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5072
|
+
function _objectSpread$1a(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1a(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1a(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5072
5073
|
const SetCustomerChange = props => {
|
|
5073
5074
|
if (!props.value) return jsx(NoValueLabel, {});
|
|
5074
5075
|
if (!props.value.email) return props.value.id;
|
|
@@ -5076,19 +5077,19 @@ const SetCustomerChange = props => {
|
|
|
5076
5077
|
css: productAttributeValuesStyles,
|
|
5077
5078
|
children: jsxs(Spacings.Stack, {
|
|
5078
5079
|
scale: "xs",
|
|
5079
|
-
children: [props.value.email && jsx(FormattedMessage, _objectSpread$
|
|
5080
|
+
children: [props.value.email && jsx(FormattedMessage, _objectSpread$1a(_objectSpread$1a({}, messages$1l.customerEmailLabel), {}, {
|
|
5080
5081
|
values: {
|
|
5081
5082
|
email: props.value.email
|
|
5082
5083
|
}
|
|
5083
|
-
})), props.value.firstName && jsx(FormattedMessage, _objectSpread$
|
|
5084
|
+
})), props.value.firstName && jsx(FormattedMessage, _objectSpread$1a(_objectSpread$1a({}, messages$1l.customerFirstNameLabel), {}, {
|
|
5084
5085
|
values: {
|
|
5085
5086
|
firstName: props.value.firstName
|
|
5086
5087
|
}
|
|
5087
|
-
})), props.value.lastName && jsx(FormattedMessage, _objectSpread$
|
|
5088
|
+
})), props.value.lastName && jsx(FormattedMessage, _objectSpread$1a(_objectSpread$1a({}, messages$1l.customerLastNameLabel), {}, {
|
|
5088
5089
|
values: {
|
|
5089
5090
|
lastName: props.value.lastName
|
|
5090
5091
|
}
|
|
5091
|
-
})), props.value.customerNumber && jsx(FormattedMessage, _objectSpread$
|
|
5092
|
+
})), props.value.customerNumber && jsx(FormattedMessage, _objectSpread$1a(_objectSpread$1a({}, messages$1l.customerNumberLabel), {}, {
|
|
5092
5093
|
values: {
|
|
5093
5094
|
customerNumber: props.value.customerNumber
|
|
5094
5095
|
}
|
|
@@ -5098,21 +5099,21 @@ const SetCustomerChange = props => {
|
|
|
5098
5099
|
};
|
|
5099
5100
|
SetCustomerChange.displayName = 'SetCustomerChange';
|
|
5100
5101
|
|
|
5101
|
-
function ownKeys$
|
|
5102
|
-
function _objectSpread$
|
|
5102
|
+
function ownKeys$19(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5103
|
+
function _objectSpread$19(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$19(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$19(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5103
5104
|
const ShippingRateChange = props => {
|
|
5104
5105
|
var _context;
|
|
5105
5106
|
const intl = useIntl();
|
|
5106
5107
|
return jsxs(Spacings.Stack, {
|
|
5107
5108
|
scale: "xs",
|
|
5108
5109
|
children: [jsx(Text.Detail, {
|
|
5109
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
5110
|
+
children: jsx(FormattedMessage, _objectSpread$19(_objectSpread$19({}, messages$1l.shippingRatePriceLabel), {}, {
|
|
5110
5111
|
values: {
|
|
5111
5112
|
price: formatMoney(props.value.price, intl)
|
|
5112
5113
|
}
|
|
5113
5114
|
}))
|
|
5114
5115
|
}), props.value.freeAbove && jsx(Text.Detail, {
|
|
5115
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
5116
|
+
children: jsx(FormattedMessage, _objectSpread$19(_objectSpread$19({}, messages$1l.shippingRateFreeAboveLabel), {}, {
|
|
5116
5117
|
values: {
|
|
5117
5118
|
freeAbove: formatMoney(props.value.freeAbove, intl)
|
|
5118
5119
|
}
|
|
@@ -5131,7 +5132,7 @@ const ShippingRateChange = props => {
|
|
|
5131
5132
|
children: jsxs(Spacings.Stack, {
|
|
5132
5133
|
scale: "xs",
|
|
5133
5134
|
children: [jsx(Text.Detail, {
|
|
5134
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
5135
|
+
children: jsx(FormattedMessage, _objectSpread$19(_objectSpread$19({}, messages$1l.shippingRatePriceLabel), {}, {
|
|
5135
5136
|
values: {
|
|
5136
5137
|
price: formatMoney(tier.price, intl)
|
|
5137
5138
|
}
|
|
@@ -5139,17 +5140,17 @@ const ShippingRateChange = props => {
|
|
|
5139
5140
|
}), jsx(Spacings.Inline, {
|
|
5140
5141
|
scale: "xs",
|
|
5141
5142
|
children: jsxs(Text.Detail, {
|
|
5142
|
-
children: [tier.minimumCentAmount && jsx(FormattedMessage, _objectSpread$
|
|
5143
|
+
children: [tier.minimumCentAmount && jsx(FormattedMessage, _objectSpread$19(_objectSpread$19({}, messages$1l.cartValueShippingRateTierLabel), {}, {
|
|
5143
5144
|
values: {
|
|
5144
|
-
minimumCentAmount: formatMoney(_objectSpread$
|
|
5145
|
+
minimumCentAmount: formatMoney(_objectSpread$19(_objectSpread$19({}, tier.price), {}, {
|
|
5145
5146
|
centAmount: tier.minimumCentAmount
|
|
5146
5147
|
}), intl)
|
|
5147
5148
|
}
|
|
5148
|
-
})), tier.score && jsx(FormattedMessage, _objectSpread$
|
|
5149
|
+
})), tier.score && jsx(FormattedMessage, _objectSpread$19(_objectSpread$19({}, messages$1l.cartScoreShippingRateTierLabel), {}, {
|
|
5149
5150
|
values: {
|
|
5150
5151
|
score: tier.score
|
|
5151
5152
|
}
|
|
5152
|
-
})), tier.value && jsx(FormattedMessage, _objectSpread$
|
|
5153
|
+
})), tier.value && jsx(FormattedMessage, _objectSpread$19(_objectSpread$19({}, messages$1l.cartClassificationShippingRateTierLabel), {}, {
|
|
5153
5154
|
values: {
|
|
5154
5155
|
key: tier.value
|
|
5155
5156
|
}
|
|
@@ -5164,8 +5165,8 @@ const ShippingRateChange = props => {
|
|
|
5164
5165
|
};
|
|
5165
5166
|
ShippingRateChange.displayName = 'ShippingRateChange';
|
|
5166
5167
|
|
|
5167
|
-
function ownKeys$
|
|
5168
|
-
function _objectSpread$
|
|
5168
|
+
function ownKeys$18(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5169
|
+
function _objectSpread$18(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$18(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$18(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5169
5170
|
const ShippingRateInputChange = props => {
|
|
5170
5171
|
const _useApplicationContex = useApplicationContext(applicationContext => ({
|
|
5171
5172
|
language: applicationContext.dataLocale,
|
|
@@ -5187,7 +5188,7 @@ const ShippingRateInputChange = props => {
|
|
|
5187
5188
|
}), jsx(Spacings.Inline, {
|
|
5188
5189
|
scale: "xs",
|
|
5189
5190
|
children: jsx(Text.Detail, {
|
|
5190
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
5191
|
+
children: jsx(FormattedMessage, _objectSpread$18(_objectSpread$18({}, messages$1l.valueLabel), {}, {
|
|
5191
5192
|
values: {
|
|
5192
5193
|
value: props.value.score || localize({
|
|
5193
5194
|
obj: props.value,
|
|
@@ -5203,8 +5204,8 @@ const ShippingRateInputChange = props => {
|
|
|
5203
5204
|
};
|
|
5204
5205
|
ShippingRateInputChange.displayName = 'ShippingRateInputChange';
|
|
5205
5206
|
|
|
5206
|
-
function ownKeys$
|
|
5207
|
-
function _objectSpread$
|
|
5207
|
+
function ownKeys$17(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5208
|
+
function _objectSpread$17(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$17(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$17(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5208
5209
|
const TaxRateChange = props => {
|
|
5209
5210
|
var _context;
|
|
5210
5211
|
return jsxs(Spacings.Stack, {
|
|
@@ -5217,7 +5218,7 @@ const TaxRateChange = props => {
|
|
|
5217
5218
|
children: props.value.name
|
|
5218
5219
|
})]
|
|
5219
5220
|
}), jsx(Text.Detail, {
|
|
5220
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
5221
|
+
children: jsx(FormattedMessage, _objectSpread$17(_objectSpread$17({}, props.value.includedInPrice ? messages$1l.taxRateAmountIncludedInPriceLabel : messages$1l.taxRateAmountNotIncludedInPriceLabel), {}, {
|
|
5221
5222
|
values: {
|
|
5222
5223
|
amount: props.value.amount
|
|
5223
5224
|
}
|
|
@@ -5243,21 +5244,21 @@ const TaxRateChange = props => {
|
|
|
5243
5244
|
};
|
|
5244
5245
|
TaxRateChange.displayName = 'TaxRateChange';
|
|
5245
5246
|
|
|
5246
|
-
function ownKeys$
|
|
5247
|
-
function _objectSpread$
|
|
5247
|
+
function ownKeys$16(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5248
|
+
function _objectSpread$16(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$16(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$16(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5248
5249
|
const TaxedPriceChange = props => {
|
|
5249
5250
|
var _context;
|
|
5250
5251
|
const intl = useIntl();
|
|
5251
5252
|
return jsxs(Spacings.Stack, {
|
|
5252
5253
|
scale: "xs",
|
|
5253
5254
|
children: [jsx(Text.Detail, {
|
|
5254
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
5255
|
+
children: jsx(FormattedMessage, _objectSpread$16(_objectSpread$16({}, messages$1l.totalNetLabel), {}, {
|
|
5255
5256
|
values: {
|
|
5256
5257
|
totalNet: formatMoney(props.value.totalNet, intl)
|
|
5257
5258
|
}
|
|
5258
5259
|
}))
|
|
5259
5260
|
}), jsx(Text.Detail, {
|
|
5260
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
5261
|
+
children: jsx(FormattedMessage, _objectSpread$16(_objectSpread$16({}, messages$1l.totalGrossLabel), {}, {
|
|
5261
5262
|
values: {
|
|
5262
5263
|
totalGross: formatMoney(props.value.totalGross, intl)
|
|
5263
5264
|
}
|
|
@@ -5277,7 +5278,7 @@ const TaxedPriceChange = props => {
|
|
|
5277
5278
|
children: taxPortion.name
|
|
5278
5279
|
})]
|
|
5279
5280
|
}), jsx(Text.Detail, {
|
|
5280
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
5281
|
+
children: jsx(FormattedMessage, _objectSpread$16(_objectSpread$16({}, messages$1l.taxPortionItemLabel), {}, {
|
|
5281
5282
|
values: {
|
|
5282
5283
|
amount: formatMoney(taxPortion.amount, intl),
|
|
5283
5284
|
rate: taxPortion.rate
|
|
@@ -5453,23 +5454,23 @@ var messages$X = defineMessages({
|
|
|
5453
5454
|
|
|
5454
5455
|
const _excluded$f = ["typeId", "id"],
|
|
5455
5456
|
_excluded2$4 = ["typeId", "id"];
|
|
5456
|
-
function ownKeys$
|
|
5457
|
-
function _objectSpread$
|
|
5457
|
+
function ownKeys$15(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5458
|
+
function _objectSpread$15(e) { for (var r = 1; r < arguments.length; r++) { var _context7, _context8; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context7 = ownKeys$15(Object(t), !0)).call(_context7, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context8 = ownKeys$15(Object(t))).call(_context8, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5458
5459
|
const lineItemPropsMessages = {
|
|
5459
|
-
name: jsx(FormattedMessage, _objectSpread$
|
|
5460
|
-
price: jsx(FormattedMessage, _objectSpread$
|
|
5461
|
-
quantity: jsx(FormattedMessage, _objectSpread$
|
|
5462
|
-
totalPrice: jsx(FormattedMessage, _objectSpread$
|
|
5463
|
-
variantId: jsx(FormattedMessage, _objectSpread$
|
|
5464
|
-
variantSku: jsx(FormattedMessage, _objectSpread$
|
|
5460
|
+
name: jsx(FormattedMessage, _objectSpread$15({}, messages$X.nameColumnLabel)),
|
|
5461
|
+
price: jsx(FormattedMessage, _objectSpread$15({}, messages$X.priceColumnLabel)),
|
|
5462
|
+
quantity: jsx(FormattedMessage, _objectSpread$15({}, messages$X.quantityColumnLabel)),
|
|
5463
|
+
totalPrice: jsx(FormattedMessage, _objectSpread$15({}, messages$X.totalPriceColumnLabel)),
|
|
5464
|
+
variantId: jsx(FormattedMessage, _objectSpread$15({}, messages$X.variantIdColumnLabel)),
|
|
5465
|
+
variantSku: jsx(FormattedMessage, _objectSpread$15({}, messages$X.variantSkuColumnLabel))
|
|
5465
5466
|
};
|
|
5466
5467
|
const customLineItemsPropsMessages = {
|
|
5467
|
-
name: jsx(FormattedMessage, _objectSpread$
|
|
5468
|
-
slug: jsx(FormattedMessage, _objectSpread$
|
|
5469
|
-
quantity: jsx(FormattedMessage, _objectSpread$
|
|
5470
|
-
totalPrice: jsx(FormattedMessage, _objectSpread$
|
|
5468
|
+
name: jsx(FormattedMessage, _objectSpread$15({}, messages$X.nameColumnLabel)),
|
|
5469
|
+
slug: jsx(FormattedMessage, _objectSpread$15({}, messages$X.slugColumnLabel)),
|
|
5470
|
+
quantity: jsx(FormattedMessage, _objectSpread$15({}, messages$X.quantityColumnLabel)),
|
|
5471
|
+
totalPrice: jsx(FormattedMessage, _objectSpread$15({}, messages$X.totalPriceColumnLabel))
|
|
5471
5472
|
};
|
|
5472
|
-
const getLineItemLabel = (lineItemChange, language, languages) => jsx(FormattedMessage, _objectSpread$
|
|
5473
|
+
const getLineItemLabel = (lineItemChange, language, languages) => jsx(FormattedMessage, _objectSpread$15(_objectSpread$15({}, messages$1l.lineItemLabel), {}, {
|
|
5473
5474
|
values: {
|
|
5474
5475
|
b: getBoldText,
|
|
5475
5476
|
item: localize({
|
|
@@ -5482,7 +5483,7 @@ const getLineItemLabel = (lineItemChange, language, languages) => jsx(FormattedM
|
|
|
5482
5483
|
variant: lineItemChange.variant
|
|
5483
5484
|
}
|
|
5484
5485
|
}));
|
|
5485
|
-
const getCustomLineItemLabel = (customLineItemChange, language, languages) => jsx(FormattedMessage, _objectSpread$
|
|
5486
|
+
const getCustomLineItemLabel = (customLineItemChange, language, languages) => jsx(FormattedMessage, _objectSpread$15(_objectSpread$15({}, messages$1l.customLineItemLabel), {}, {
|
|
5486
5487
|
values: {
|
|
5487
5488
|
b: getBoldText,
|
|
5488
5489
|
item: localize({
|
|
@@ -5544,7 +5545,7 @@ const OrderChanges = props => {
|
|
|
5544
5545
|
{
|
|
5545
5546
|
var _context, _context2;
|
|
5546
5547
|
return jsx(ComposedChange, {
|
|
5547
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
5548
|
+
label: jsx(FormattedMessage, _objectSpread$15(_objectSpread$15({}, messages$1l.parcelLabel), {}, {
|
|
5548
5549
|
values: {
|
|
5549
5550
|
b: getBoldText,
|
|
5550
5551
|
parcelDate: formatDateTime('datetime', props.change.parcel?.createdAt, {
|
|
@@ -5555,7 +5556,7 @@ const OrderChanges = props => {
|
|
|
5555
5556
|
nextValue: jsx(Spacings.Stack, {
|
|
5556
5557
|
scale: "xs",
|
|
5557
5558
|
children: props.change.nextValue.length > 0 ? _mapInstanceProperty(_context = props.change.nextValue).call(_context, next => jsx("div", {
|
|
5558
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
5559
|
+
children: jsx(FormattedMessage, _objectSpread$15(_objectSpread$15({}, messages$1l.parcelInfoLabel), {}, {
|
|
5559
5560
|
values: {
|
|
5560
5561
|
parcelId: next.id,
|
|
5561
5562
|
parcelQuantity: next.quantity
|
|
@@ -5566,7 +5567,7 @@ const OrderChanges = props => {
|
|
|
5566
5567
|
previousValue: jsx(Spacings.Stack, {
|
|
5567
5568
|
scale: "xs",
|
|
5568
5569
|
children: props.change.previousValue.length > 0 ? _mapInstanceProperty(_context2 = props.change.previousValue).call(_context2, prev => jsx("div", {
|
|
5569
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
5570
|
+
children: jsx(FormattedMessage, _objectSpread$15(_objectSpread$15({}, messages$1l.parcelInfoLabel), {}, {
|
|
5570
5571
|
values: {
|
|
5571
5572
|
parcelId: prev.id,
|
|
5572
5573
|
parcelQuantity: prev.quantity
|
|
@@ -5580,7 +5581,7 @@ const OrderChanges = props => {
|
|
|
5580
5581
|
{
|
|
5581
5582
|
var _context3, _context4;
|
|
5582
5583
|
return jsx(ComposedChange, {
|
|
5583
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
5584
|
+
label: jsx(FormattedMessage, _objectSpread$15(_objectSpread$15({}, messages$1l.deliveryLabel), {}, {
|
|
5584
5585
|
values: {
|
|
5585
5586
|
b: getBoldText,
|
|
5586
5587
|
delivery: props.change.deliveryId
|
|
@@ -5589,7 +5590,7 @@ const OrderChanges = props => {
|
|
|
5589
5590
|
nextValue: jsx(Spacings.Stack, {
|
|
5590
5591
|
scale: "xs",
|
|
5591
5592
|
children: props.change.nextValue.length > 0 ? _mapInstanceProperty(_context3 = props.change.nextValue).call(_context3, next => jsx("div", {
|
|
5592
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
5593
|
+
children: jsx(FormattedMessage, _objectSpread$15(_objectSpread$15({}, messages$1l.parcelInfoLabel), {}, {
|
|
5593
5594
|
values: {
|
|
5594
5595
|
parcelId: next.id,
|
|
5595
5596
|
parcelQuantity: next.quantity
|
|
@@ -5600,7 +5601,7 @@ const OrderChanges = props => {
|
|
|
5600
5601
|
previousValue: jsx(Spacings.Stack, {
|
|
5601
5602
|
scale: "xs",
|
|
5602
5603
|
children: props.change.previousValue.length > 0 ? _mapInstanceProperty(_context4 = props.change.previousValue).call(_context4, prev => jsx("div", {
|
|
5603
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
5604
|
+
children: jsx(FormattedMessage, _objectSpread$15(_objectSpread$15({}, messages$1l.parcelInfoLabel), {}, {
|
|
5604
5605
|
values: {
|
|
5605
5606
|
parcelId: prev.id,
|
|
5606
5607
|
parcelQuantity: prev.quantity
|
|
@@ -5613,7 +5614,7 @@ const OrderChanges = props => {
|
|
|
5613
5614
|
case ResourceChangeInput.UpdateItemShippingAddress:
|
|
5614
5615
|
{
|
|
5615
5616
|
return jsx(ComposedChange, {
|
|
5616
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
5617
|
+
label: jsx(FormattedMessage, _objectSpread$15(_objectSpread$15({}, messages$1l.addressKeyLabel), {}, {
|
|
5617
5618
|
values: {
|
|
5618
5619
|
b: getBoldText,
|
|
5619
5620
|
addressKey: props.change.previousValue.key || props.change.nextValue.key
|
|
@@ -5631,7 +5632,7 @@ const OrderChanges = props => {
|
|
|
5631
5632
|
nextValue: jsx(Spacings.Stack, {
|
|
5632
5633
|
scale: "xs",
|
|
5633
5634
|
children: props.change.nextValue?.targets.length > 0 ? props.change.nextValue?.targets.map(target => jsx("div", {
|
|
5634
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
5635
|
+
children: jsx(FormattedMessage, _objectSpread$15(_objectSpread$15({}, messages$1l.itemShippingAddressLabel), {}, {
|
|
5635
5636
|
values: target
|
|
5636
5637
|
}))
|
|
5637
5638
|
}, `${props?.change?.change}-next-${target.id}-${target.quantity}`)) : jsx(NoValueLabel, {})
|
|
@@ -5639,7 +5640,7 @@ const OrderChanges = props => {
|
|
|
5639
5640
|
previousValue: jsx(Spacings.Stack, {
|
|
5640
5641
|
scale: "xs",
|
|
5641
5642
|
children: props.change.previousValue?.targets.length > 0 ? props.change.previousValue?.targets.map(target => jsx("div", {
|
|
5642
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
5643
|
+
children: jsx(FormattedMessage, _objectSpread$15(_objectSpread$15({}, messages$1l.itemShippingAddressLabel), {}, {
|
|
5643
5644
|
values: target
|
|
5644
5645
|
}))
|
|
5645
5646
|
}, `${props?.change?.change}-prev-${target.id}-${target.quantity}`)) : jsx(NoValueLabel, {})
|
|
@@ -5649,7 +5650,7 @@ const OrderChanges = props => {
|
|
|
5649
5650
|
case ResourceChangeInput.SetParcelTrackingData:
|
|
5650
5651
|
{
|
|
5651
5652
|
return jsx(ComposedChange, {
|
|
5652
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
5653
|
+
label: jsx(FormattedMessage, _objectSpread$15(_objectSpread$15({}, messages$1l.parcelLabel), {}, {
|
|
5653
5654
|
values: {
|
|
5654
5655
|
b: getBoldText,
|
|
5655
5656
|
parcelDate: formatDateTime('datetime', props.change.parcel?.createdAt, {
|
|
@@ -5668,7 +5669,7 @@ const OrderChanges = props => {
|
|
|
5668
5669
|
case ResourceChangeInput.SetParcelMeasurements:
|
|
5669
5670
|
{
|
|
5670
5671
|
return jsx(ComposedChange, {
|
|
5671
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
5672
|
+
label: jsx(FormattedMessage, _objectSpread$15(_objectSpread$15({}, messages$1l.parcelLabel), {}, {
|
|
5672
5673
|
values: {
|
|
5673
5674
|
b: getBoldText,
|
|
5674
5675
|
parcelDate: formatDateTime('datetime', props.change.parcel?.createdAt, {
|
|
@@ -5690,7 +5691,7 @@ const OrderChanges = props => {
|
|
|
5690
5691
|
const value = props.value || props.change.previousValue;
|
|
5691
5692
|
return jsx("div", {
|
|
5692
5693
|
css: productAttributeValuesStyles,
|
|
5693
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
5694
|
+
children: jsx(FormattedMessage, _objectSpread$15(_objectSpread$15({}, messages$1l.removeDeliveryLabel), {}, {
|
|
5694
5695
|
values: {
|
|
5695
5696
|
deliveryDate: value?.createdAt ? formatDateTime('datetime', value?.createdAt, {
|
|
5696
5697
|
locale: intl.locale
|
|
@@ -5707,7 +5708,7 @@ const OrderChanges = props => {
|
|
|
5707
5708
|
const value = props.value || props.change.previousValue;
|
|
5708
5709
|
return jsx("div", {
|
|
5709
5710
|
css: productAttributeValuesStyles,
|
|
5710
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
5711
|
+
children: jsx(FormattedMessage, _objectSpread$15(_objectSpread$15({}, messages$1l.removeParcelLabel), {}, {
|
|
5711
5712
|
values: {
|
|
5712
5713
|
parcelDate: value?.createdAt ? formatDateTime('datetime', value?.createdAt, {
|
|
5713
5714
|
locale: intl.locale
|
|
@@ -5720,7 +5721,7 @@ const OrderChanges = props => {
|
|
|
5720
5721
|
case ResourceChangeInput.SetDeliveryAddress:
|
|
5721
5722
|
{
|
|
5722
5723
|
return jsx(ComposedChange, {
|
|
5723
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
5724
|
+
label: jsx(FormattedMessage, _objectSpread$15(_objectSpread$15({}, messages$1l.deliveryLabel), {}, {
|
|
5724
5725
|
values: {
|
|
5725
5726
|
b: getBoldText,
|
|
5726
5727
|
delivery: props.change.deliveryId
|
|
@@ -5757,13 +5758,13 @@ const OrderChanges = props => {
|
|
|
5757
5758
|
case ResourceChangeInput.UpdateSyncInfo:
|
|
5758
5759
|
{
|
|
5759
5760
|
return jsx(ComposedChange, {
|
|
5760
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
5761
|
+
label: jsx(FormattedMessage, _objectSpread$15(_objectSpread$15({}, messages$1l.syncedChannelLabel), {}, {
|
|
5761
5762
|
values: {
|
|
5762
5763
|
channel: props.value.channel.key || props.value.channel.id
|
|
5763
5764
|
}
|
|
5764
5765
|
})),
|
|
5765
5766
|
previousValue: props.change.previousValue ? jsx("div", {
|
|
5766
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
5767
|
+
children: jsx(FormattedMessage, _objectSpread$15(_objectSpread$15({}, messages$1l.syncedAtLabel), {}, {
|
|
5767
5768
|
values: {
|
|
5768
5769
|
syncedAt: formatDateTime('datetime', props.change.previousValue.syncedAt, {
|
|
5769
5770
|
locale: intl.locale
|
|
@@ -5772,7 +5773,7 @@ const OrderChanges = props => {
|
|
|
5772
5773
|
}))
|
|
5773
5774
|
}) : jsx(NoValueLabel, {}),
|
|
5774
5775
|
nextValue: props.change.nextValue ? jsx("div", {
|
|
5775
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
5776
|
+
children: jsx(FormattedMessage, _objectSpread$15(_objectSpread$15({}, messages$1l.syncedAtLabel), {}, {
|
|
5776
5777
|
values: {
|
|
5777
5778
|
syncedAt: formatDateTime('datetime', props.change.nextValue.syncedAt, {
|
|
5778
5779
|
locale: intl.locale
|
|
@@ -5785,7 +5786,7 @@ const OrderChanges = props => {
|
|
|
5785
5786
|
case ResourceChangeInput.AddReturnInfo:
|
|
5786
5787
|
return jsx("div", {
|
|
5787
5788
|
css: productAttributeValuesStyles,
|
|
5788
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
5789
|
+
children: jsx(FormattedMessage, _objectSpread$15(_objectSpread$15({}, messages$1l.addReturnLabel), {}, {
|
|
5789
5790
|
values: {
|
|
5790
5791
|
returnDate: formatDateTime('datetime', props.change.nextValue.returnDate, {
|
|
5791
5792
|
locale: intl.locale
|
|
@@ -5825,18 +5826,18 @@ const OrderChanges = props => {
|
|
|
5825
5826
|
return jsxs("div", {
|
|
5826
5827
|
css: productAttributeValuesStyles,
|
|
5827
5828
|
children: [props?.change?.change === 'transitionCustomLineItemState' ? getCustomLineItemLabel(props.change, language, languages) : getLineItemLabel(props.change, language, languages), jsx(ComposedChange, {
|
|
5828
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
5829
|
+
label: jsx(FormattedMessage, _objectSpread$15(_objectSpread$15({}, messages$1l.stateLabel), {}, {
|
|
5829
5830
|
values: {
|
|
5830
5831
|
b: getBoldText,
|
|
5831
5832
|
state: stateLabel
|
|
5832
5833
|
}
|
|
5833
5834
|
})),
|
|
5834
|
-
nextValue: nextState ? jsx(FormattedMessage, _objectSpread$
|
|
5835
|
+
nextValue: nextState ? jsx(FormattedMessage, _objectSpread$15(_objectSpread$15({}, messages$1l.stateQuantityLabel), {}, {
|
|
5835
5836
|
values: {
|
|
5836
5837
|
quantity: nextState.quantity
|
|
5837
5838
|
}
|
|
5838
5839
|
})) : jsx(NoValueLabel, {}),
|
|
5839
|
-
previousValue: prevState ? jsx(FormattedMessage, _objectSpread$
|
|
5840
|
+
previousValue: prevState ? jsx(FormattedMessage, _objectSpread$15(_objectSpread$15({}, messages$1l.stateQuantityLabel), {}, {
|
|
5840
5841
|
values: {
|
|
5841
5842
|
quantity: prevState.quantity
|
|
5842
5843
|
}
|
|
@@ -5998,7 +5999,7 @@ const OrderChanges = props => {
|
|
|
5998
5999
|
scale: "s",
|
|
5999
6000
|
children: [jsxs(Spacings.Stack, {
|
|
6000
6001
|
scale: "xs",
|
|
6001
|
-
children: [jsx(FormattedMessage, _objectSpread$
|
|
6002
|
+
children: [jsx(FormattedMessage, _objectSpread$15({}, messages$1l.taxRateLabel)), jsxs(Spacings.Inline, {
|
|
6002
6003
|
scale: "l",
|
|
6003
6004
|
children: [jsx("div", {}), jsx(TaxRateChange, {
|
|
6004
6005
|
value: props.value.taxRate
|
|
@@ -6006,7 +6007,7 @@ const OrderChanges = props => {
|
|
|
6006
6007
|
})]
|
|
6007
6008
|
}), jsxs(Spacings.Stack, {
|
|
6008
6009
|
scale: "xs",
|
|
6009
|
-
children: [jsx(FormattedMessage, _objectSpread$
|
|
6010
|
+
children: [jsx(FormattedMessage, _objectSpread$15({}, messages$1l.taxedPriceLabel)), jsxs(Spacings.Inline, {
|
|
6010
6011
|
scale: "l",
|
|
6011
6012
|
children: [jsx("div", {}), jsx(TaxedPriceChange, {
|
|
6012
6013
|
value: props.value.taxedPrice
|
|
@@ -6045,13 +6046,13 @@ const OrderChanges = props => {
|
|
|
6045
6046
|
nextValue: props.change.nextValue ? jsxs(Spacings.Stack, {
|
|
6046
6047
|
scale: "xs",
|
|
6047
6048
|
children: [jsx(Text.Detail, {
|
|
6048
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
6049
|
+
children: jsx(FormattedMessage, _objectSpread$15(_objectSpread$15({}, messages$1l.stateQuantityLabel), {}, {
|
|
6049
6050
|
values: {
|
|
6050
6051
|
quantity: props.change.nextValue.quantity
|
|
6051
6052
|
}
|
|
6052
6053
|
}))
|
|
6053
6054
|
}), jsx(Text.Detail, {
|
|
6054
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
6055
|
+
children: jsx(FormattedMessage, _objectSpread$15(_objectSpread$15({}, messages$1l.discountedPriceLabel), {}, {
|
|
6055
6056
|
values: {
|
|
6056
6057
|
discountedPrice: formatMoney(props.change.nextValue.discountedPrice.value, intl)
|
|
6057
6058
|
}
|
|
@@ -6061,13 +6062,13 @@ const OrderChanges = props => {
|
|
|
6061
6062
|
previousValue: props.change.previousValue ? jsxs(Spacings.Stack, {
|
|
6062
6063
|
scale: "xs",
|
|
6063
6064
|
children: [jsx(Text.Detail, {
|
|
6064
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
6065
|
+
children: jsx(FormattedMessage, _objectSpread$15(_objectSpread$15({}, messages$1l.stateQuantityLabel), {}, {
|
|
6065
6066
|
values: {
|
|
6066
6067
|
quantity: props.change.previousValue.quantity
|
|
6067
6068
|
}
|
|
6068
6069
|
}))
|
|
6069
6070
|
}), jsx(Text.Detail, {
|
|
6070
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
6071
|
+
children: jsx(FormattedMessage, _objectSpread$15(_objectSpread$15({}, messages$1l.discountedPriceLabel), {}, {
|
|
6071
6072
|
values: {
|
|
6072
6073
|
discountedPrice: formatMoney(props.change.previousValue.discountedPrice.value, intl)
|
|
6073
6074
|
}
|
|
@@ -6392,8 +6393,8 @@ const ProductSelectionChanges = props => {
|
|
|
6392
6393
|
};
|
|
6393
6394
|
ProductSelectionChanges.displayName = 'ProductSelectionChanges';
|
|
6394
6395
|
|
|
6395
|
-
function ownKeys$
|
|
6396
|
-
function _objectSpread$
|
|
6396
|
+
function ownKeys$14(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6397
|
+
function _objectSpread$14(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$14(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$14(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6397
6398
|
const ProductTypeChanges = props => {
|
|
6398
6399
|
const _useApplicationContex = useApplicationContext(applicationContext => ({
|
|
6399
6400
|
language: applicationContext.dataLocale,
|
|
@@ -6418,7 +6419,7 @@ const ProductTypeChanges = props => {
|
|
|
6418
6419
|
{
|
|
6419
6420
|
return jsx("div", {
|
|
6420
6421
|
css: productAttributeValuesStyles,
|
|
6421
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
6422
|
+
children: jsx(FormattedMessage, _objectSpread$14(_objectSpread$14({}, messages$1l.attributeNameLabel), {}, {
|
|
6422
6423
|
values: {
|
|
6423
6424
|
attributeName: props.change.previousValue?.name
|
|
6424
6425
|
}
|
|
@@ -6429,7 +6430,7 @@ const ProductTypeChanges = props => {
|
|
|
6429
6430
|
{
|
|
6430
6431
|
return jsx("div", {
|
|
6431
6432
|
css: productAttributeValuesStyles,
|
|
6432
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
6433
|
+
children: jsx(FormattedMessage, _objectSpread$14(_objectSpread$14({}, messages$1l.attributeNameLabel), {}, {
|
|
6433
6434
|
values: {
|
|
6434
6435
|
attributeName: props.value.name
|
|
6435
6436
|
}
|
|
@@ -6441,7 +6442,7 @@ const ProductTypeChanges = props => {
|
|
|
6441
6442
|
{
|
|
6442
6443
|
return jsxs("div", {
|
|
6443
6444
|
css: productAttributeValuesStyles,
|
|
6444
|
-
children: [jsx(FormattedMessage, _objectSpread$
|
|
6445
|
+
children: [jsx(FormattedMessage, _objectSpread$14(_objectSpread$14({}, messages$1l.attributeChangeLabel), {}, {
|
|
6445
6446
|
values: {
|
|
6446
6447
|
b: getBoldText,
|
|
6447
6448
|
attribute: props.change.attributeName
|
|
@@ -6462,7 +6463,7 @@ const ProductTypeChanges = props => {
|
|
|
6462
6463
|
}) : props.change.previousValue?.label;
|
|
6463
6464
|
return jsxs("div", {
|
|
6464
6465
|
css: productAttributeValuesStyles,
|
|
6465
|
-
children: [jsx(FormattedMessage, _objectSpread$
|
|
6466
|
+
children: [jsx(FormattedMessage, _objectSpread$14(_objectSpread$14({}, messages$1l.attributeChangeLabel), {}, {
|
|
6466
6467
|
values: {
|
|
6467
6468
|
b: getBoldText,
|
|
6468
6469
|
attribute: props.change.attributeName
|
|
@@ -6479,7 +6480,7 @@ const ProductTypeChanges = props => {
|
|
|
6479
6480
|
case ResourceChangeInput.ChangeInputHint:
|
|
6480
6481
|
{
|
|
6481
6482
|
return jsx(ComposedChange, {
|
|
6482
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
6483
|
+
label: jsx(FormattedMessage, _objectSpread$14(_objectSpread$14({}, messages$1l.attributeChangeLabel), {}, {
|
|
6483
6484
|
values: {
|
|
6484
6485
|
b: getBoldText,
|
|
6485
6486
|
attribute: props.change.attributeName
|
|
@@ -6493,7 +6494,7 @@ const ProductTypeChanges = props => {
|
|
|
6493
6494
|
case ResourceChangeInput.ChangePlainEnumValueLabel:
|
|
6494
6495
|
{
|
|
6495
6496
|
return jsx(ComposedChange, {
|
|
6496
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
6497
|
+
label: jsx(FormattedMessage, _objectSpread$14(_objectSpread$14({}, messages$1l.attributeChangeLabel), {}, {
|
|
6497
6498
|
values: {
|
|
6498
6499
|
b: getBoldText,
|
|
6499
6500
|
attribute: props.change.attributeName
|
|
@@ -6506,7 +6507,7 @@ const ProductTypeChanges = props => {
|
|
|
6506
6507
|
case ResourceChangeInput.ChangeLocalizedEnumValueLabel:
|
|
6507
6508
|
{
|
|
6508
6509
|
return jsx(ComposedChange, {
|
|
6509
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
6510
|
+
label: jsx(FormattedMessage, _objectSpread$14(_objectSpread$14({}, messages$1l.attributeChangeLabel), {}, {
|
|
6510
6511
|
values: {
|
|
6511
6512
|
b: getBoldText,
|
|
6512
6513
|
attribute: props.change.attributeName
|
|
@@ -6546,7 +6547,7 @@ const ProductTypeChanges = props => {
|
|
|
6546
6547
|
}));
|
|
6547
6548
|
}
|
|
6548
6549
|
return jsx(ComposedChange, {
|
|
6549
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
6550
|
+
label: jsx(FormattedMessage, _objectSpread$14(_objectSpread$14({}, messages$1l.attributeChangeLabel), {}, {
|
|
6550
6551
|
values: {
|
|
6551
6552
|
b: getBoldText,
|
|
6552
6553
|
attribute: props.change.attributeName
|
|
@@ -6601,8 +6602,8 @@ const ProductTypeChanges = props => {
|
|
|
6601
6602
|
};
|
|
6602
6603
|
ProductTypeChanges.displayName = 'ProductTypeChanges';
|
|
6603
6604
|
|
|
6604
|
-
function ownKeys$
|
|
6605
|
-
function _objectSpread$
|
|
6605
|
+
function ownKeys$13(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6606
|
+
function _objectSpread$13(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$13(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$13(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6606
6607
|
const getAttributeType = value => {
|
|
6607
6608
|
if (value.typeId && value.id) {
|
|
6608
6609
|
return 'reference';
|
|
@@ -6636,7 +6637,7 @@ const AttributeChange = props => {
|
|
|
6636
6637
|
const hasNextValues = hasValues(props.change.nextValue?.filter(Boolean));
|
|
6637
6638
|
return jsxs("div", {
|
|
6638
6639
|
css: productAttributeValuesStyles,
|
|
6639
|
-
children: [jsx(FormattedMessage, _objectSpread$
|
|
6640
|
+
children: [jsx(FormattedMessage, _objectSpread$13(_objectSpread$13({}, messages$1l.variantLabel), {}, {
|
|
6640
6641
|
values: {
|
|
6641
6642
|
b: getBoldText,
|
|
6642
6643
|
variant: props.change.variant
|
|
@@ -6647,7 +6648,7 @@ const AttributeChange = props => {
|
|
|
6647
6648
|
const nextValue = getValue$2(v.name, props.change.nextValue?.filter(Boolean));
|
|
6648
6649
|
return jsxs("div", {
|
|
6649
6650
|
css: productAttributeValuesStyles,
|
|
6650
|
-
children: [jsx(FormattedMessage, _objectSpread$
|
|
6651
|
+
children: [jsx(FormattedMessage, _objectSpread$13(_objectSpread$13({}, messages$1l.attributeLabel), {}, {
|
|
6651
6652
|
values: {
|
|
6652
6653
|
b: getBoldText,
|
|
6653
6654
|
attribute: v.name
|
|
@@ -6712,8 +6713,8 @@ const AttributeChange = props => {
|
|
|
6712
6713
|
};
|
|
6713
6714
|
AttributeChange.displayName = 'AttributeChange';
|
|
6714
6715
|
|
|
6715
|
-
function ownKeys
|
|
6716
|
-
function _objectSpread
|
|
6716
|
+
function ownKeys$12(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6717
|
+
function _objectSpread$12(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$12(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$12(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6717
6718
|
const getPriceAttribute = attribute => {
|
|
6718
6719
|
if (_includesInstanceProperty(attribute).call(attribute, 'customerGroup')) return 'customerGroup';
|
|
6719
6720
|
if (_includesInstanceProperty(attribute).call(attribute, 'custom')) return 'custom';
|
|
@@ -6748,12 +6749,12 @@ function renderAttribute(changedAttribute, value, intl) {
|
|
|
6748
6749
|
scale: "s",
|
|
6749
6750
|
children: [jsxs(Spacings.Inline, {
|
|
6750
6751
|
scale: "xs",
|
|
6751
|
-
children: [jsx(FormattedMessage, _objectSpread
|
|
6752
|
+
children: [jsx(FormattedMessage, _objectSpread$12({}, messages$1l.customTypeLabel)), value.custom ? jsx("span", {
|
|
6752
6753
|
children: _JSON$stringify(value.custom.type.id, null, 2)
|
|
6753
6754
|
}) : jsx(NoValueLabel, {})]
|
|
6754
6755
|
}), jsxs(Spacings.Inline, {
|
|
6755
6756
|
scale: "xs",
|
|
6756
|
-
children: [jsx(FormattedMessage, _objectSpread
|
|
6757
|
+
children: [jsx(FormattedMessage, _objectSpread$12({}, messages$1l.customFieldsLabel)), value.custom ? jsx("span", {
|
|
6757
6758
|
children: _JSON$stringify(value.custom.fields, null, 2)
|
|
6758
6759
|
}) : jsx(NoValueLabel, {})]
|
|
6759
6760
|
})]
|
|
@@ -6761,7 +6762,7 @@ function renderAttribute(changedAttribute, value, intl) {
|
|
|
6761
6762
|
if (_includesInstanceProperty(changedAttribute).call(changedAttribute, 'tiers')) return value.tiers ? jsx(Spacings.Stack, {
|
|
6762
6763
|
scale: "s",
|
|
6763
6764
|
children: _mapInstanceProperty(_context = value.tiers).call(_context, tier => jsx("div", {
|
|
6764
|
-
children: jsx(FormattedMessage, _objectSpread
|
|
6765
|
+
children: jsx(FormattedMessage, _objectSpread$12(_objectSpread$12({}, messages$1l.priceTierLabel), {}, {
|
|
6765
6766
|
values: {
|
|
6766
6767
|
price: formatMoney(tier.value, intl),
|
|
6767
6768
|
quantity: tier.minimumQuantity
|
|
@@ -6788,14 +6789,14 @@ const PriceChangeAttributes = _ref => {
|
|
|
6788
6789
|
PriceChangeAttributes.displayName = 'PriceChangeAttributes';
|
|
6789
6790
|
var PriceChangeAttributes$1 = injectIntl(PriceChangeAttributes);
|
|
6790
6791
|
|
|
6791
|
-
function ownKeys$
|
|
6792
|
-
function _objectSpread$
|
|
6792
|
+
function ownKeys$11(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6793
|
+
function _objectSpread$11(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$11(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$11(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6793
6794
|
const VariantAvailabilityChange = props => {
|
|
6794
6795
|
var _context;
|
|
6795
6796
|
return jsxs("div", {
|
|
6796
6797
|
css: productAttributeValuesStyles,
|
|
6797
6798
|
children: [props.value.availableQuantity !== undefined && jsx("div", {
|
|
6798
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
6799
|
+
children: jsx(FormattedMessage, _objectSpread$11(_objectSpread$11({}, messages$1l.variantAvailabilityLabel), {}, {
|
|
6799
6800
|
values: {
|
|
6800
6801
|
isOnStock: _JSON$stringify(props.value.isOnStock),
|
|
6801
6802
|
availableQuantity: props.value.availableQuantity,
|
|
@@ -6808,14 +6809,14 @@ const VariantAvailabilityChange = props => {
|
|
|
6808
6809
|
channelInfo = _ref2[1];
|
|
6809
6810
|
return jsxs(Fragment$1, {
|
|
6810
6811
|
children: [jsx("div", {
|
|
6811
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
6812
|
+
children: jsx(FormattedMessage, _objectSpread$11(_objectSpread$11({}, messages$1l.channelLabel), {}, {
|
|
6812
6813
|
values: {
|
|
6813
6814
|
channel: channelId
|
|
6814
6815
|
}
|
|
6815
6816
|
}))
|
|
6816
6817
|
}), jsx("div", {
|
|
6817
6818
|
css: productAttributeValuesStyles,
|
|
6818
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
6819
|
+
children: jsx(FormattedMessage, _objectSpread$11(_objectSpread$11({}, messages$1l.variantAvailabilityLabel), {}, {
|
|
6819
6820
|
values: {
|
|
6820
6821
|
isOnStock: _JSON$stringify(channelInfo.isOnStock),
|
|
6821
6822
|
availableQuantity: channelInfo.availableQuantity,
|
|
@@ -6973,13 +6974,13 @@ const counterStyles = /*#__PURE__*/css("background:", designTokens.colorSurface,
|
|
|
6973
6974
|
|
|
6974
6975
|
const _excluded$b = ["children"],
|
|
6975
6976
|
_excluded2$1 = ["url", "size"];
|
|
6976
|
-
function ownKeys$
|
|
6977
|
-
function _objectSpread$
|
|
6977
|
+
function ownKeys$10(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6978
|
+
function _objectSpread$10(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$10(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$10(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6978
6979
|
var NoImageIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjYiIGhlaWdodD0iNjYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGlkPSJOb0ltYWdlSWNvbi1wYXRoLTEiIGQ9Ik0wIDBoNjZ2NjZIMHoiLz48L2RlZnM+PGcgaWQ9Ik5vSW1hZ2VJY29uLUFMTC1jb21wb25lbnRzIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48ZyBpZD0iTm9JbWFnZUljb24tU2hhcmVkLS8tSW1hZ2UtY29udGFpbmVyIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNzAyIC0yMzIpIj48ZyBpZD0iTm9JbWFnZUljb24tdGh1bWJuYWlsLTIiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDcwMiAyMzIpIj48bWFzayBpZD0iTm9JbWFnZUljb24tbWFzay0yIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNOb0ltYWdlSWNvbi1wYXRoLTEiLz48L21hc2s+PHVzZSBpZD0iTm9JbWFnZUljb24tTWFzayIgZmlsbD0iI0Q4RDhEOCIgeGxpbms6aHJlZj0iI05vSW1hZ2VJY29uLXBhdGgtMSIvPjxnIG1hc2s9InVybCgjTm9JbWFnZUljb24tbWFzay0yKSIgZmlsbC1ydWxlPSJub256ZXJvIiBpZD0iTm9JbWFnZUljb24tUGF0aCI+PHBhdGggZD0iTTAgNC4zMTZDMCAxLjkzMiAyLjA5IDAgNC42NjcgMGg2Ny42NjZDNzQuOTExIDAgNzcgMS45MzIgNzcgNC4zMTZ2NTcuMzY4Qzc3IDY0LjA2NyA3NC45MSA2NiA3Mi4zMzMgNjZINC42NjdDMi4wODkgNjYgMCA2NC4wNjcgMCA2MS42ODRWNC4zMTZ6IiBmaWxsPSIjQjRFMUZEIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNikiLz48cGF0aCBkPSJNMzUgMTdhNyA3IDAgMTEtMTQgMCA3IDcgMCAwMTE0IDB6IiBmaWxsPSIjRThGM0ZDIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNikiLz48cGF0aCBkPSJNMjEuNzc2IDM1LjUzTDAgNjEuMjc2VjY2aDc3VjQ0LjY1NEw2MC4yNDQgMjUuMjE4Yy0xLjQwMS0xLjYyNi00LTEuNjI0LTUuMzk4LjAwNEwzOS40NCA0My4xNWMtMS4zODEgMS42MDctMy45NCAxLjYzMi01LjM1NS4wNTJsLTYuOTM2LTcuNzQ2Yy0xLjQyMi0xLjU4OC0zLjk5Ny0xLjU1My01LjM3Mi4wNzN6IiBmaWxsPSIjRThGNEZDIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNikiLz48L2c+PC9nPjwvZz48L2c+PC9zdmc+";
|
|
6979
6980
|
const WrapperComponent = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
6980
6981
|
let children = _ref.children,
|
|
6981
6982
|
props = _objectWithoutProperties(_ref, _excluded$b);
|
|
6982
|
-
return jsx("div", _objectSpread$
|
|
6983
|
+
return jsx("div", _objectSpread$10(_objectSpread$10({}, props), {}, {
|
|
6983
6984
|
ref: ref,
|
|
6984
6985
|
children: children
|
|
6985
6986
|
}));
|
|
@@ -7058,10 +7059,10 @@ const ImageContainer = _ref3 => {
|
|
|
7058
7059
|
children: [isLoading && jsx(LoadingSpinner, {}), !isLoading && jsx(AccessibleImage, {
|
|
7059
7060
|
isSelectable: !!props.onClick,
|
|
7060
7061
|
label: props.label || '',
|
|
7061
|
-
children: jsx(Image, _objectSpread$
|
|
7062
|
+
children: jsx(Image, _objectSpread$10(_objectSpread$10({
|
|
7062
7063
|
css: imageStyles,
|
|
7063
7064
|
className: props.imageClassName
|
|
7064
|
-
}, omit(_objectSpread$
|
|
7065
|
+
}, omit(_objectSpread$10({
|
|
7065
7066
|
url,
|
|
7066
7067
|
size
|
|
7067
7068
|
}, props), ['counter'])), {}, {
|
|
@@ -7080,8 +7081,8 @@ const ImageContainer = _ref3 => {
|
|
|
7080
7081
|
ImageContainer.displayName = 'ImageContainer';
|
|
7081
7082
|
|
|
7082
7083
|
const _excluded$a = ["typeId", "id"];
|
|
7083
|
-
function ownKeys
|
|
7084
|
-
function _objectSpread
|
|
7084
|
+
function ownKeys$$(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7085
|
+
function _objectSpread$$(e) { for (var r = 1; r < arguments.length; r++) { var _context4, _context5; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context4 = ownKeys$$(Object(t), !0)).call(_context4, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context5 = ownKeys$$(Object(t))).call(_context5, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7085
7086
|
const ProductChanges = props => {
|
|
7086
7087
|
const intl = useIntl();
|
|
7087
7088
|
const _useApplicationContex = useApplicationContext(applicationContext => ({
|
|
@@ -7109,7 +7110,7 @@ const ProductChanges = props => {
|
|
|
7109
7110
|
return props.value && _Object$keys(props.value).length > 0 ? map(props.value, (value, key) => jsxs(Spacings.Stack, {
|
|
7110
7111
|
scale: "xs",
|
|
7111
7112
|
children: [jsx("div", {
|
|
7112
|
-
children: jsx(FormattedMessage, _objectSpread
|
|
7113
|
+
children: jsx(FormattedMessage, _objectSpread$$(_objectSpread$$({}, messages$1l.categoryOrderHintReferenceLabel), {}, {
|
|
7113
7114
|
values: {
|
|
7114
7115
|
category: value.name ? localize({
|
|
7115
7116
|
obj: value,
|
|
@@ -7120,7 +7121,7 @@ const ProductChanges = props => {
|
|
|
7120
7121
|
}
|
|
7121
7122
|
}))
|
|
7122
7123
|
}), jsx("div", {
|
|
7123
|
-
children: jsx(FormattedMessage, _objectSpread
|
|
7124
|
+
children: jsx(FormattedMessage, _objectSpread$$(_objectSpread$$({}, messages$1l.categoryOrderHintNumberLabel), {}, {
|
|
7124
7125
|
values: {
|
|
7125
7126
|
orderHint: value.orderHint
|
|
7126
7127
|
}
|
|
@@ -7142,7 +7143,7 @@ const ProductChanges = props => {
|
|
|
7142
7143
|
const priceDiff = getPropertyDifferences(props.change.previousValue, props.change.nextValue);
|
|
7143
7144
|
const changedAttributes = _Object$keys(priceDiff);
|
|
7144
7145
|
return jsx(ComposedChange, {
|
|
7145
|
-
label: jsx(FormattedMessage, _objectSpread
|
|
7146
|
+
label: jsx(FormattedMessage, _objectSpread$$(_objectSpread$$({}, messages$1l.variantLabel), {}, {
|
|
7146
7147
|
values: {
|
|
7147
7148
|
b: getBoldText,
|
|
7148
7149
|
variant: props.change.variant
|
|
@@ -7171,7 +7172,7 @@ const ProductChanges = props => {
|
|
|
7171
7172
|
const value = props.value || props.change.previousValue;
|
|
7172
7173
|
return jsxs("div", {
|
|
7173
7174
|
css: productAttributeValuesStyles,
|
|
7174
|
-
children: [jsx(FormattedMessage, _objectSpread
|
|
7175
|
+
children: [jsx(FormattedMessage, _objectSpread$$(_objectSpread$$({}, messages$1l.variantLabel), {}, {
|
|
7175
7176
|
values: {
|
|
7176
7177
|
b: getBoldText,
|
|
7177
7178
|
variant: props.change.variant
|
|
@@ -7217,7 +7218,7 @@ const ProductChanges = props => {
|
|
|
7217
7218
|
});
|
|
7218
7219
|
return jsxs("div", {
|
|
7219
7220
|
css: productAttributeValuesStyles,
|
|
7220
|
-
children: [jsx(FormattedMessage, _objectSpread
|
|
7221
|
+
children: [jsx(FormattedMessage, _objectSpread$$(_objectSpread$$({}, messages$1l.variantLabel), {}, {
|
|
7221
7222
|
values: {
|
|
7222
7223
|
b: getBoldText,
|
|
7223
7224
|
variant: props.change.variant
|
|
@@ -7237,7 +7238,7 @@ const ProductChanges = props => {
|
|
|
7237
7238
|
case ResourceChangeInput.SetAssetCustomType:
|
|
7238
7239
|
return jsxs("div", {
|
|
7239
7240
|
css: productAttributeValuesStyles,
|
|
7240
|
-
children: [jsx(FormattedMessage, _objectSpread
|
|
7241
|
+
children: [jsx(FormattedMessage, _objectSpread$$(_objectSpread$$({}, messages$1l.variantLabel), {}, {
|
|
7241
7242
|
values: {
|
|
7242
7243
|
b: getBoldText,
|
|
7243
7244
|
variant: props.change.variant
|
|
@@ -7250,7 +7251,7 @@ const ProductChanges = props => {
|
|
|
7250
7251
|
{
|
|
7251
7252
|
return jsxs("div", {
|
|
7252
7253
|
css: productAttributeValuesStyles,
|
|
7253
|
-
children: [jsx(FormattedMessage, _objectSpread
|
|
7254
|
+
children: [jsx(FormattedMessage, _objectSpread$$(_objectSpread$$({}, messages$1l.variantCatalogDataLabel), {}, {
|
|
7254
7255
|
values: {
|
|
7255
7256
|
i: getItalicText,
|
|
7256
7257
|
b: getBoldText,
|
|
@@ -7264,7 +7265,7 @@ const ProductChanges = props => {
|
|
|
7264
7265
|
children: [jsx("span", {
|
|
7265
7266
|
children: formatMoney(props.value.value, intl)
|
|
7266
7267
|
}), jsx("span", {
|
|
7267
|
-
children: jsx(FormattedMessage, _objectSpread
|
|
7268
|
+
children: jsx(FormattedMessage, _objectSpread$$(_objectSpread$$({}, messages$1l.productDiscountLabel), {}, {
|
|
7268
7269
|
values: {
|
|
7269
7270
|
productDiscount: props.value.discount?.name ? localize({
|
|
7270
7271
|
obj: props.value.discount,
|
|
@@ -7289,7 +7290,7 @@ const ProductChanges = props => {
|
|
|
7289
7290
|
const removedImages = props.value && props.value[0] || props.change.previousValue && props.change.previousValue[0];
|
|
7290
7291
|
return jsxs("div", {
|
|
7291
7292
|
css: productAttributeValuesStyles,
|
|
7292
|
-
children: [jsx(FormattedMessage, _objectSpread
|
|
7293
|
+
children: [jsx(FormattedMessage, _objectSpread$$(_objectSpread$$({}, messages$1l.variantLabel), {}, {
|
|
7293
7294
|
values: {
|
|
7294
7295
|
b: getBoldText,
|
|
7295
7296
|
variant: props.change.variant
|
|
@@ -7301,13 +7302,13 @@ const ProductChanges = props => {
|
|
|
7301
7302
|
size: "thumb",
|
|
7302
7303
|
withHover: true
|
|
7303
7304
|
}, image.url))
|
|
7304
|
-
}) : jsx(FormattedMessage, _objectSpread
|
|
7305
|
+
}) : jsx(FormattedMessage, _objectSpread$$({}, messages$1l.noImages))]
|
|
7305
7306
|
});
|
|
7306
7307
|
}
|
|
7307
7308
|
case ResourceChangeInput.MoveImageToPosition:
|
|
7308
7309
|
{
|
|
7309
7310
|
var _context3;
|
|
7310
|
-
if (props.value.length === 0) return jsx(FormattedMessage, _objectSpread
|
|
7311
|
+
if (props.value.length === 0) return jsx(FormattedMessage, _objectSpread$$({}, messages$1l.noImages));
|
|
7311
7312
|
return jsx(Spacings.Inline, {
|
|
7312
7313
|
scale: "xs",
|
|
7313
7314
|
children: _mapInstanceProperty(_context3 = props.value).call(_context3, image => jsx(ImageContainer, {
|
|
@@ -7339,7 +7340,7 @@ const ProductChanges = props => {
|
|
|
7339
7340
|
case ResourceChangeInput.SetVariantAvailability:
|
|
7340
7341
|
{
|
|
7341
7342
|
return jsx(ComposedChange, {
|
|
7342
|
-
label: jsx(FormattedMessage, _objectSpread
|
|
7343
|
+
label: jsx(FormattedMessage, _objectSpread$$(_objectSpread$$({}, messages$1l.variantCatalogDataLabel), {}, {
|
|
7343
7344
|
values: {
|
|
7344
7345
|
i: getItalicText,
|
|
7345
7346
|
b: getBoldText,
|
|
@@ -7376,7 +7377,7 @@ const ProductChanges = props => {
|
|
|
7376
7377
|
const value = props.change.nextValue || props.change.previousValue;
|
|
7377
7378
|
return jsxs("div", {
|
|
7378
7379
|
css: productAttributeValuesStyles,
|
|
7379
|
-
children: [jsx(FormattedMessage, _objectSpread
|
|
7380
|
+
children: [jsx(FormattedMessage, _objectSpread$$(_objectSpread$$({}, messages$1l.variantLabel), {}, {
|
|
7380
7381
|
values: {
|
|
7381
7382
|
b: getBoldText,
|
|
7382
7383
|
variant: props.change.variant
|
|
@@ -7416,7 +7417,7 @@ const ProductChanges = props => {
|
|
|
7416
7417
|
return props.value ? jsxs(Spacings.Stack, {
|
|
7417
7418
|
scale: "xs",
|
|
7418
7419
|
children: [jsx("div", {
|
|
7419
|
-
children: jsx(FormattedMessage, _objectSpread
|
|
7420
|
+
children: jsx(FormattedMessage, _objectSpread$$(_objectSpread$$({}, messages$1l.averageRatingLabel), {}, {
|
|
7420
7421
|
values: {
|
|
7421
7422
|
averageRating: props.value.averageRating,
|
|
7422
7423
|
highestRating: props.value.highestRating,
|
|
@@ -7424,7 +7425,7 @@ const ProductChanges = props => {
|
|
|
7424
7425
|
}
|
|
7425
7426
|
}))
|
|
7426
7427
|
}), jsx("div", {
|
|
7427
|
-
children: jsx(FormattedMessage, _objectSpread
|
|
7428
|
+
children: jsx(FormattedMessage, _objectSpread$$(_objectSpread$$({}, messages$1l.numberOfReviewsLabel), {}, {
|
|
7428
7429
|
values: {
|
|
7429
7430
|
count: props.value.count
|
|
7430
7431
|
}
|
|
@@ -7734,8 +7735,8 @@ const ReviewChanges = props => {
|
|
|
7734
7735
|
ReviewChanges.displayName = 'ReviewChanges';
|
|
7735
7736
|
|
|
7736
7737
|
const _excluded$8 = ["typeId", "id"];
|
|
7737
|
-
function ownKeys$
|
|
7738
|
-
function _objectSpread$
|
|
7738
|
+
function ownKeys$_(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7739
|
+
function _objectSpread$_(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$_(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$_(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7739
7740
|
const ShoppingListChanges = props => {
|
|
7740
7741
|
const _useApplicationContex = useApplicationContext(applicationContext => ({
|
|
7741
7742
|
language: applicationContext.dataLocale,
|
|
@@ -7758,7 +7759,7 @@ const ShoppingListChanges = props => {
|
|
|
7758
7759
|
});
|
|
7759
7760
|
}
|
|
7760
7761
|
case ResourceChangeInput.SetDeleteDaysAfterLastModification:
|
|
7761
|
-
return jsx(FormattedMessage, _objectSpread$
|
|
7762
|
+
return jsx(FormattedMessage, _objectSpread$_(_objectSpread$_({}, messages$1l.setRestockableInDaysLabel), {}, {
|
|
7762
7763
|
values: {
|
|
7763
7764
|
day: props.value
|
|
7764
7765
|
}
|
|
@@ -7783,7 +7784,7 @@ const ShoppingListChanges = props => {
|
|
|
7783
7784
|
case ResourceChangeInput.ChangeTextLineItemName:
|
|
7784
7785
|
{
|
|
7785
7786
|
return jsx(ComposedChange, {
|
|
7786
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
7787
|
+
label: jsx(FormattedMessage, _objectSpread$_(_objectSpread$_({}, messages$1l.textLineItemLabel), {}, {
|
|
7787
7788
|
values: {
|
|
7788
7789
|
b: getBoldText,
|
|
7789
7790
|
item: localize({
|
|
@@ -7812,7 +7813,7 @@ const ShoppingListChanges = props => {
|
|
|
7812
7813
|
case ResourceChangeInput.ChangeTextLineItemQuantity:
|
|
7813
7814
|
{
|
|
7814
7815
|
return jsx(ComposedChange, {
|
|
7815
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
7816
|
+
label: jsx(FormattedMessage, _objectSpread$_(_objectSpread$_({}, props.change.change === 'changeTextLineItemQuantity' ? messages$1l.textLineItemLabel : messages$1l.lineItemLabel), {}, {
|
|
7816
7817
|
values: {
|
|
7817
7818
|
b: getBoldText,
|
|
7818
7819
|
item: localize({
|
|
@@ -7850,7 +7851,7 @@ const ShoppingListChanges = props => {
|
|
|
7850
7851
|
{
|
|
7851
7852
|
return jsxs("div", {
|
|
7852
7853
|
css: productAttributeValuesStyles,
|
|
7853
|
-
children: [jsx(FormattedMessage, _objectSpread$
|
|
7854
|
+
children: [jsx(FormattedMessage, _objectSpread$_(_objectSpread$_({}, props.change.change === 'setTextLineItemCustomField' ? messages$1l.textLineItemLabel : messages$1l.lineItemLabel), {}, {
|
|
7854
7855
|
values: {
|
|
7855
7856
|
b: getBoldText,
|
|
7856
7857
|
item: localize({
|
|
@@ -7862,7 +7863,7 @@ const ShoppingListChanges = props => {
|
|
|
7862
7863
|
variant: props.change.lineItem?.variantId
|
|
7863
7864
|
}
|
|
7864
7865
|
})), jsx(CustomFieldChange, {
|
|
7865
|
-
change: _objectSpread$
|
|
7866
|
+
change: _objectSpread$_(_objectSpread$_({}, props.change), {}, {
|
|
7866
7867
|
name: props.change.name || props.change.fieldName
|
|
7867
7868
|
})
|
|
7868
7869
|
})]
|
|
@@ -7873,7 +7874,7 @@ const ShoppingListChanges = props => {
|
|
|
7873
7874
|
{
|
|
7874
7875
|
const item = props.change.textLineItem?.name ? props.change.textLineItem : props.change.lineItem;
|
|
7875
7876
|
return jsx(ComposedChange, {
|
|
7876
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
7877
|
+
label: jsx(FormattedMessage, _objectSpread$_(_objectSpread$_({}, props.change.change === 'setTextLineItemCustomType' ? messages$1l.textLineItemLabel : messages$1l.lineItemLabel), {}, {
|
|
7877
7878
|
values: {
|
|
7878
7879
|
b: getBoldText,
|
|
7879
7880
|
item: localize({
|
|
@@ -8071,13 +8072,13 @@ const StoreChanges = _ref => {
|
|
|
8071
8072
|
};
|
|
8072
8073
|
StoreChanges.displayName = 'StoreChanges';
|
|
8073
8074
|
|
|
8074
|
-
function ownKeys$
|
|
8075
|
-
function _objectSpread$
|
|
8076
|
-
const ResourceTypeCell = props => jsx(FormattedMessage, _objectSpread$
|
|
8075
|
+
function ownKeys$Z(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8076
|
+
function _objectSpread$Z(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$Z(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$Z(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8077
|
+
const ResourceTypeCell = props => jsx(FormattedMessage, _objectSpread$Z({}, getEntityTypeNameMessage(props.resourceType)));
|
|
8077
8078
|
ResourceTypeCell.displayName = 'ResourceTypeCell';
|
|
8078
8079
|
|
|
8079
|
-
function ownKeys$
|
|
8080
|
-
function _objectSpread$
|
|
8080
|
+
function ownKeys$Y(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8081
|
+
function _objectSpread$Y(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context3 = ownKeys$Y(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context4 = ownKeys$Y(Object(t))).call(_context4, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8081
8082
|
const SubscriptionChanges = props => {
|
|
8082
8083
|
var _context, _context2;
|
|
8083
8084
|
switch (props.change.change) {
|
|
@@ -8088,7 +8089,7 @@ const SubscriptionChanges = props => {
|
|
|
8088
8089
|
case SUBSCRIPTION_CHANGE_TYPE_NAME.ADD_TRIGGERS:
|
|
8089
8090
|
return jsxs("div", {
|
|
8090
8091
|
css: productAttributeValuesStyles,
|
|
8091
|
-
children: [jsx(FormattedMessage, _objectSpread$
|
|
8092
|
+
children: [jsx(FormattedMessage, _objectSpread$Y(_objectSpread$Y({}, messages$1l.subscriptionToLabel), {}, {
|
|
8092
8093
|
values: {
|
|
8093
8094
|
resourceType: jsx(ResourceTypeCell, {
|
|
8094
8095
|
resourceType: props.value.resourceTypeId
|
|
@@ -8147,8 +8148,8 @@ const TaxCategoryChanges = props => {
|
|
|
8147
8148
|
};
|
|
8148
8149
|
TaxCategoryChanges.displayName = 'TaxCategoryChanges';
|
|
8149
8150
|
|
|
8150
|
-
function ownKeys$
|
|
8151
|
-
function _objectSpread$
|
|
8151
|
+
function ownKeys$X(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8152
|
+
function _objectSpread$X(e) { for (var r = 1; r < arguments.length; r++) { var _context5, _context6; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context5 = ownKeys$X(Object(t), !0)).call(_context5, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context6 = ownKeys$X(Object(t))).call(_context6, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8152
8153
|
const TypeChanges = props => {
|
|
8153
8154
|
const _useApplicationContex = useApplicationContext(applicationContext => ({
|
|
8154
8155
|
language: applicationContext.dataLocale,
|
|
@@ -8173,7 +8174,7 @@ const TypeChanges = props => {
|
|
|
8173
8174
|
{
|
|
8174
8175
|
return jsxs("div", {
|
|
8175
8176
|
css: productAttributeValuesStyles,
|
|
8176
|
-
children: [jsx(FormattedMessage, _objectSpread$
|
|
8177
|
+
children: [jsx(FormattedMessage, _objectSpread$X(_objectSpread$X({}, messages$1l.fieldChangeLabel), {}, {
|
|
8177
8178
|
values: {
|
|
8178
8179
|
b: getBoldText,
|
|
8179
8180
|
fieldName: props.change.fieldName
|
|
@@ -8181,7 +8182,7 @@ const TypeChanges = props => {
|
|
|
8181
8182
|
})), jsx("div", {
|
|
8182
8183
|
css: productAttributeValuesStyles,
|
|
8183
8184
|
children: props.change.change === 'addLocalizedEnumValue' ? localize({
|
|
8184
|
-
obj: _objectSpread$
|
|
8185
|
+
obj: _objectSpread$X({}, props.change.nextValue),
|
|
8185
8186
|
key: 'label',
|
|
8186
8187
|
language: language,
|
|
8187
8188
|
fallbackOrder: languages
|
|
@@ -8192,7 +8193,7 @@ const TypeChanges = props => {
|
|
|
8192
8193
|
case ResourceChangeInput.ChangeEnumValueLabel:
|
|
8193
8194
|
case ResourceChangeInput.ChangeInputHint:
|
|
8194
8195
|
return jsx(ComposedChange, {
|
|
8195
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
8196
|
+
label: jsx(FormattedMessage, _objectSpread$X(_objectSpread$X({}, messages$1l.fieldChangeLabel), {}, {
|
|
8196
8197
|
values: {
|
|
8197
8198
|
b: getBoldText,
|
|
8198
8199
|
fieldName: props.change.fieldName
|
|
@@ -8204,7 +8205,7 @@ const TypeChanges = props => {
|
|
|
8204
8205
|
case ResourceChangeInput.ChangeLocalizedEnumValueLabel:
|
|
8205
8206
|
{
|
|
8206
8207
|
return jsx(ComposedChange, {
|
|
8207
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
8208
|
+
label: jsx(FormattedMessage, _objectSpread$X(_objectSpread$X({}, messages$1l.fieldChangeLabel), {}, {
|
|
8208
8209
|
values: {
|
|
8209
8210
|
b: getBoldText,
|
|
8210
8211
|
fieldName: props.change.fieldName
|
|
@@ -8224,13 +8225,13 @@ const TypeChanges = props => {
|
|
|
8224
8225
|
return jsxs("div", {
|
|
8225
8226
|
css: productAttributeValuesStyles,
|
|
8226
8227
|
children: [jsx("div", {
|
|
8227
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
8228
|
+
children: jsx(FormattedMessage, _objectSpread$X(_objectSpread$X({}, messages$1l.definitionTypeLabel), {}, {
|
|
8228
8229
|
values: {
|
|
8229
8230
|
type: props.value.type.name
|
|
8230
8231
|
}
|
|
8231
8232
|
}))
|
|
8232
8233
|
}), jsx("div", {
|
|
8233
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
8234
|
+
children: jsx(FormattedMessage, _objectSpread$X(_objectSpread$X({}, messages$1l.definitionNameLabel), {}, {
|
|
8234
8235
|
values: {
|
|
8235
8236
|
name: props.value.name
|
|
8236
8237
|
}
|
|
@@ -8301,7 +8302,7 @@ const TypeChanges = props => {
|
|
|
8301
8302
|
})) || [];
|
|
8302
8303
|
}
|
|
8303
8304
|
return jsx(ComposedChange, {
|
|
8304
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
8305
|
+
label: jsx(FormattedMessage, _objectSpread$X(_objectSpread$X({}, messages$1l.fieldChangeLabel), {}, {
|
|
8305
8306
|
values: {
|
|
8306
8307
|
b: getBoldText,
|
|
8307
8308
|
fieldName: props.change.fieldName
|
|
@@ -8352,8 +8353,8 @@ const ZoneChanges = props => {
|
|
|
8352
8353
|
};
|
|
8353
8354
|
ZoneChanges.displayName = 'ZoneChanges';
|
|
8354
8355
|
|
|
8355
|
-
function ownKeys$
|
|
8356
|
-
function _objectSpread$
|
|
8356
|
+
function ownKeys$W(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8357
|
+
function _objectSpread$W(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$W(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$W(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8357
8358
|
const GetChangesColumn = props => {
|
|
8358
8359
|
const resourceType = props.resourceType,
|
|
8359
8360
|
change = props.change,
|
|
@@ -8369,57 +8370,57 @@ const GetChangesColumn = props => {
|
|
|
8369
8370
|
}
|
|
8370
8371
|
switch (resourceType) {
|
|
8371
8372
|
case RESOURCE_TYPE_NAME.ASSOCIATE_ROLE:
|
|
8372
|
-
return jsx(AssociateRoleChanges, _objectSpread$
|
|
8373
|
+
return jsx(AssociateRoleChanges, _objectSpread$W({}, props));
|
|
8373
8374
|
case RESOURCE_TYPE_NAME.CART_DISCOUNT:
|
|
8374
8375
|
case RESOURCE_TYPE_NAME.DISCOUNT_CODE:
|
|
8375
8376
|
case RESOURCE_TYPE_NAME.PRODUCT_DISCOUNT:
|
|
8376
|
-
return jsx(DiscountChanges, _objectSpread$
|
|
8377
|
+
return jsx(DiscountChanges, _objectSpread$W({}, props));
|
|
8377
8378
|
case RESOURCE_TYPE_NAME.BUSINESS_UNIT:
|
|
8378
|
-
return jsx(BusinessUnitChanges, _objectSpread$
|
|
8379
|
+
return jsx(BusinessUnitChanges, _objectSpread$W({}, props));
|
|
8379
8380
|
case RESOURCE_TYPE_NAME.CATEGORY:
|
|
8380
|
-
return jsx(CategoryChanges, _objectSpread$
|
|
8381
|
+
return jsx(CategoryChanges, _objectSpread$W({}, props));
|
|
8381
8382
|
case RESOURCE_TYPE_NAME.CHANNEL:
|
|
8382
|
-
return jsx(ChannelChanges, _objectSpread$
|
|
8383
|
+
return jsx(ChannelChanges, _objectSpread$W({}, props));
|
|
8383
8384
|
case RESOURCE_TYPE_NAME.CUSTOMER_GROUP:
|
|
8384
8385
|
case RESOURCE_TYPE_NAME.CUSTOMER:
|
|
8385
|
-
return jsx(CustomerChanges, _objectSpread$
|
|
8386
|
+
return jsx(CustomerChanges, _objectSpread$W({}, props));
|
|
8386
8387
|
case RESOURCE_TYPE_NAME.EXTENSION:
|
|
8387
8388
|
case RESOURCE_TYPE_NAME.SUBSCRIPTION:
|
|
8388
|
-
return jsx(SubscriptionChanges$1, _objectSpread$
|
|
8389
|
+
return jsx(SubscriptionChanges$1, _objectSpread$W({}, props));
|
|
8389
8390
|
case RESOURCE_TYPE_NAME.INVENTORY_ENTRY:
|
|
8390
|
-
return jsx(InventoryEntryChanges, _objectSpread$
|
|
8391
|
+
return jsx(InventoryEntryChanges, _objectSpread$W({}, props));
|
|
8391
8392
|
case RESOURCE_TYPE_NAME.CUSTOM_OBJECT:
|
|
8392
|
-
return jsx(CustomObjectChanges, _objectSpread$
|
|
8393
|
+
return jsx(CustomObjectChanges, _objectSpread$W({}, props));
|
|
8393
8394
|
case RESOURCE_TYPE_NAME.ORDER:
|
|
8394
|
-
return jsx(OrderChanges, _objectSpread$
|
|
8395
|
+
return jsx(OrderChanges, _objectSpread$W({}, props));
|
|
8395
8396
|
case RESOURCE_TYPE_NAME.PAYMENT:
|
|
8396
|
-
return jsx(PaymentChanges, _objectSpread$
|
|
8397
|
+
return jsx(PaymentChanges, _objectSpread$W({}, props));
|
|
8397
8398
|
case RESOURCE_TYPE_NAME.PRODUCT:
|
|
8398
|
-
return jsx(ProductChanges, _objectSpread$
|
|
8399
|
+
return jsx(ProductChanges, _objectSpread$W({}, props));
|
|
8399
8400
|
case RESOURCE_TYPE_NAME.PRODUCT_SELECTION:
|
|
8400
|
-
return jsx(ProductSelectionChanges, _objectSpread$
|
|
8401
|
+
return jsx(ProductSelectionChanges, _objectSpread$W({}, props));
|
|
8401
8402
|
case RESOURCE_TYPE_NAME.PRODUCT_TYPE:
|
|
8402
|
-
return jsx(ProductTypeChanges, _objectSpread$
|
|
8403
|
+
return jsx(ProductTypeChanges, _objectSpread$W({}, props));
|
|
8403
8404
|
case RESOURCE_TYPE_NAME.QUOTE:
|
|
8404
|
-
return jsx(QuoteChanges, _objectSpread$
|
|
8405
|
+
return jsx(QuoteChanges, _objectSpread$W({}, props));
|
|
8405
8406
|
case RESOURCE_TYPE_NAME.QUOTE_REQUEST:
|
|
8406
|
-
return jsx(QuoteRequestChanges, _objectSpread$
|
|
8407
|
+
return jsx(QuoteRequestChanges, _objectSpread$W({}, props));
|
|
8407
8408
|
case RESOURCE_TYPE_NAME.STAGED_QUOTE:
|
|
8408
|
-
return jsx(StagedQuoteChanges, _objectSpread$
|
|
8409
|
+
return jsx(StagedQuoteChanges, _objectSpread$W({}, props));
|
|
8409
8410
|
case RESOURCE_TYPE_NAME.REVIEW:
|
|
8410
|
-
return jsx(ReviewChanges, _objectSpread$
|
|
8411
|
+
return jsx(ReviewChanges, _objectSpread$W({}, props));
|
|
8411
8412
|
case RESOURCE_TYPE_NAME.SHOPPING_LIST:
|
|
8412
|
-
return jsx(ShoppingListChanges, _objectSpread$
|
|
8413
|
+
return jsx(ShoppingListChanges, _objectSpread$W({}, props));
|
|
8413
8414
|
case RESOURCE_TYPE_NAME.STATE:
|
|
8414
|
-
return jsx(StateChanges, _objectSpread$
|
|
8415
|
+
return jsx(StateChanges, _objectSpread$W({}, props));
|
|
8415
8416
|
case RESOURCE_TYPE_NAME.STORE:
|
|
8416
|
-
return jsx(StoreChanges, _objectSpread$
|
|
8417
|
+
return jsx(StoreChanges, _objectSpread$W({}, props));
|
|
8417
8418
|
case RESOURCE_TYPE_NAME.TAX_CATEGORY:
|
|
8418
|
-
return jsx(TaxCategoryChanges, _objectSpread$
|
|
8419
|
+
return jsx(TaxCategoryChanges, _objectSpread$W({}, props));
|
|
8419
8420
|
case RESOURCE_TYPE_NAME.TYPE:
|
|
8420
|
-
return jsx(TypeChanges, _objectSpread$
|
|
8421
|
+
return jsx(TypeChanges, _objectSpread$W({}, props));
|
|
8421
8422
|
case RESOURCE_TYPE_NAME.ZONE:
|
|
8422
|
-
return jsx(ZoneChanges, _objectSpread$
|
|
8423
|
+
return jsx(ZoneChanges, _objectSpread$W({}, props));
|
|
8423
8424
|
default:
|
|
8424
8425
|
console.error('Unsupported resource type');
|
|
8425
8426
|
return jsx(Fragment, {});
|
|
@@ -8736,15 +8737,15 @@ const getEntityTypeNameMessage = resourceType => {
|
|
|
8736
8737
|
return message || messages$T.undefinedType;
|
|
8737
8738
|
};
|
|
8738
8739
|
|
|
8739
|
-
function ownKeys$
|
|
8740
|
-
function _objectSpread$
|
|
8740
|
+
function ownKeys$V(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8741
|
+
function _objectSpread$V(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$V(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$V(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8741
8742
|
const mapLocalizedValue = (propAllLocales, language, languages) => {
|
|
8742
8743
|
if (!propAllLocales) return;
|
|
8743
8744
|
const localizedField = {
|
|
8744
8745
|
field: _reduceInstanceProperty(propAllLocales).call(propAllLocales, (localized, _ref) => {
|
|
8745
8746
|
let locale = _ref.locale,
|
|
8746
8747
|
value = _ref.value;
|
|
8747
|
-
return _objectSpread$
|
|
8748
|
+
return _objectSpread$V(_objectSpread$V({}, localized), {}, {
|
|
8748
8749
|
[locale]: value
|
|
8749
8750
|
});
|
|
8750
8751
|
}, {})
|
|
@@ -9272,8 +9273,8 @@ var messages$O = defineMessages({
|
|
|
9272
9273
|
}
|
|
9273
9274
|
});
|
|
9274
9275
|
|
|
9275
|
-
function ownKeys$
|
|
9276
|
-
function _objectSpread$
|
|
9276
|
+
function ownKeys$U(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9277
|
+
function _objectSpread$U(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$U(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$U(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9277
9278
|
const mapChannelToPreview = _ref => {
|
|
9278
9279
|
let channel = _ref.resource,
|
|
9279
9280
|
intl = _ref.intl,
|
|
@@ -9294,7 +9295,7 @@ const mapChannelToPreview = _ref => {
|
|
|
9294
9295
|
}, {
|
|
9295
9296
|
fieldName: intl.formatMessage(messages$O.rolesLabel),
|
|
9296
9297
|
fieldValue: channel.roles
|
|
9297
|
-
}, _objectSpread$
|
|
9298
|
+
}, _objectSpread$U({}, channel.address || channel.geoLocation ? {
|
|
9298
9299
|
fieldName: 'address',
|
|
9299
9300
|
fieldValue: [{
|
|
9300
9301
|
fieldName: intl.formatMessage(messages$O.streetNameLabel),
|
|
@@ -9994,8 +9995,8 @@ var messages$G = defineMessages({
|
|
|
9994
9995
|
}
|
|
9995
9996
|
});
|
|
9996
9997
|
|
|
9997
|
-
function ownKeys$
|
|
9998
|
-
function _objectSpread$
|
|
9998
|
+
function ownKeys$T(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9999
|
+
function _objectSpread$T(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context3 = ownKeys$T(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context4 = ownKeys$T(Object(t))).call(_context4, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9999
10000
|
const mapOrderToPreview = _ref => {
|
|
10000
10001
|
var _context, _context2;
|
|
10001
10002
|
let order = _ref.resource,
|
|
@@ -10046,7 +10047,7 @@ const mapOrderToPreview = _ref => {
|
|
|
10046
10047
|
fieldValue: order.orderState
|
|
10047
10048
|
}, {
|
|
10048
10049
|
fieldName: 'lineItems',
|
|
10049
|
-
fieldValue: _mapInstanceProperty(_context = order.lineItems).call(_context, lItem => _objectSpread$
|
|
10050
|
+
fieldValue: _mapInstanceProperty(_context = order.lineItems).call(_context, lItem => _objectSpread$T(_objectSpread$T({}, lItem), {}, {
|
|
10050
10051
|
name: mapLocalizedValue(lItem.nameAllLocales, language, languages),
|
|
10051
10052
|
price: formatMoney(lItem.price.value, intl),
|
|
10052
10053
|
totalPrice: formatMoney(lItem.totalPrice, intl),
|
|
@@ -10055,7 +10056,7 @@ const mapOrderToPreview = _ref => {
|
|
|
10055
10056
|
}))
|
|
10056
10057
|
}, {
|
|
10057
10058
|
fieldName: 'customLineItems',
|
|
10058
|
-
fieldValue: _mapInstanceProperty(_context2 = order.customLineItems).call(_context2, clItem => _objectSpread$
|
|
10059
|
+
fieldValue: _mapInstanceProperty(_context2 = order.customLineItems).call(_context2, clItem => _objectSpread$T(_objectSpread$T({}, clItem), {}, {
|
|
10059
10060
|
name: mapLocalizedValue(clItem.nameAllLocales, language, languages) || clItem.slug,
|
|
10060
10061
|
totalPrice: formatMoney(clItem.totalPrice, intl)
|
|
10061
10062
|
}))
|
|
@@ -10125,8 +10126,8 @@ var messages$F = defineMessages({
|
|
|
10125
10126
|
}
|
|
10126
10127
|
});
|
|
10127
10128
|
|
|
10128
|
-
function ownKeys$
|
|
10129
|
-
function _objectSpread$
|
|
10129
|
+
function ownKeys$S(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
10130
|
+
function _objectSpread$S(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$S(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$S(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10130
10131
|
const mapPaymentToPreview = _ref => {
|
|
10131
10132
|
var _context;
|
|
10132
10133
|
let payment = _ref.resource,
|
|
@@ -10171,7 +10172,7 @@ const mapPaymentToPreview = _ref => {
|
|
|
10171
10172
|
fieldValue: mapLocalizedValue(payment.paymentStatus?.state?.nameAllLocales, language, languages) || payment.paymentStatus?.state?.key
|
|
10172
10173
|
}, {
|
|
10173
10174
|
fieldName: 'transactions',
|
|
10174
|
-
fieldValue: _mapInstanceProperty(_context = payment.transactions).call(_context, transaction => _objectSpread$
|
|
10175
|
+
fieldValue: _mapInstanceProperty(_context = payment.transactions).call(_context, transaction => _objectSpread$S(_objectSpread$S({}, transaction), {}, {
|
|
10175
10176
|
amount: transaction.amount && formatMoney(transaction.amount, intl),
|
|
10176
10177
|
timestamp: formatDateTime('datetime', transaction.timestamp)
|
|
10177
10178
|
}))
|
|
@@ -10775,8 +10776,8 @@ var messages$z = defineMessages({
|
|
|
10775
10776
|
}
|
|
10776
10777
|
});
|
|
10777
10778
|
|
|
10778
|
-
function ownKeys$
|
|
10779
|
-
function _objectSpread$
|
|
10779
|
+
function ownKeys$R(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
10780
|
+
function _objectSpread$R(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context3 = ownKeys$R(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context4 = ownKeys$R(Object(t))).call(_context4, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10780
10781
|
const mapShoppingListToPreview = _ref => {
|
|
10781
10782
|
var _context, _context2;
|
|
10782
10783
|
let shoppingList = _ref.resource,
|
|
@@ -10806,14 +10807,14 @@ const mapShoppingListToPreview = _ref => {
|
|
|
10806
10807
|
fieldValue: shoppingList.anonymousId
|
|
10807
10808
|
}, {
|
|
10808
10809
|
fieldName: 'lineItems',
|
|
10809
|
-
fieldValue: _mapInstanceProperty(_context = shoppingList.lineItems).call(_context, lItem => _objectSpread$
|
|
10810
|
+
fieldValue: _mapInstanceProperty(_context = shoppingList.lineItems).call(_context, lItem => _objectSpread$R(_objectSpread$R({}, lItem), {}, {
|
|
10810
10811
|
name: mapLocalizedValue(lItem.nameAllLocales, language, languages),
|
|
10811
10812
|
variantId: lItem.variant?.id,
|
|
10812
10813
|
variantSku: lItem.variant?.sku
|
|
10813
10814
|
}))
|
|
10814
10815
|
}, {
|
|
10815
10816
|
fieldName: 'textLineItems',
|
|
10816
|
-
fieldValue: _mapInstanceProperty(_context2 = shoppingList.textLineItems).call(_context2, tlItem => _objectSpread$
|
|
10817
|
+
fieldValue: _mapInstanceProperty(_context2 = shoppingList.textLineItems).call(_context2, tlItem => _objectSpread$R(_objectSpread$R({}, tlItem), {}, {
|
|
10817
10818
|
name: mapLocalizedValue(tlItem.nameAllLocales, language, languages),
|
|
10818
10819
|
description: mapLocalizedValue(tlItem.descriptionAllLocales, language, languages)
|
|
10819
10820
|
}))
|
|
@@ -10991,8 +10992,8 @@ var messages$w = defineMessages({
|
|
|
10991
10992
|
}
|
|
10992
10993
|
});
|
|
10993
10994
|
|
|
10994
|
-
function ownKeys$
|
|
10995
|
-
function _objectSpread$
|
|
10995
|
+
function ownKeys$Q(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
10996
|
+
function _objectSpread$Q(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context3 = ownKeys$Q(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context4 = ownKeys$Q(Object(t))).call(_context4, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10996
10997
|
const mapTaxCategoryToPreview = _ref => {
|
|
10997
10998
|
var _context;
|
|
10998
10999
|
let taxCategory = _ref.resource,
|
|
@@ -11013,7 +11014,7 @@ const mapTaxCategoryToPreview = _ref => {
|
|
|
11013
11014
|
fieldName: 'rates',
|
|
11014
11015
|
fieldValue: _mapInstanceProperty(_context = taxCategory.rates).call(_context, rate => {
|
|
11015
11016
|
var _context2;
|
|
11016
|
-
return _objectSpread$
|
|
11017
|
+
return _objectSpread$Q(_objectSpread$Q({}, rate), {}, {
|
|
11017
11018
|
state: rate.state || jsx(NoValueFallback, {}),
|
|
11018
11019
|
includedInPrice: intl.formatMessage(rate.includedInPrice ? messages$w.includedInPriceTrueLabel : messages$w.includedInPriceFalseLabel),
|
|
11019
11020
|
subRates: rate.subRates.length > 0 ? _mapInstanceProperty(_context2 = rate.subRates).call(_context2, _ref2 => {
|
|
@@ -12643,8 +12644,8 @@ const decode = value => {
|
|
|
12643
12644
|
}
|
|
12644
12645
|
};
|
|
12645
12646
|
|
|
12646
|
-
function ownKeys$
|
|
12647
|
-
function _objectSpread$
|
|
12647
|
+
function ownKeys$P(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12648
|
+
function _objectSpread$P(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$P(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$P(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12648
12649
|
const defaultOptions = {
|
|
12649
12650
|
storageType: 'local',
|
|
12650
12651
|
segregateByUser: true,
|
|
@@ -12654,7 +12655,7 @@ const getStorage = storageType => storageType === 'session' ? sessionStorage : l
|
|
|
12654
12655
|
const isNil = value => typeof value === 'undefined' || value === null;
|
|
12655
12656
|
const useStorage = (storageKey, initialStorageValue, options) => {
|
|
12656
12657
|
var _context;
|
|
12657
|
-
const storageOptions = _objectSpread$
|
|
12658
|
+
const storageOptions = _objectSpread$P(_objectSpread$P({}, defaultOptions), options);
|
|
12658
12659
|
const _useApplicationContex = useApplicationContext(context => ({
|
|
12659
12660
|
userId: context.user?.id,
|
|
12660
12661
|
projectKey: context.project?.key
|
|
@@ -12727,12 +12728,12 @@ const useStoreKeysInDataFences = _ref => {
|
|
|
12727
12728
|
return storeKeysInDataFences;
|
|
12728
12729
|
};
|
|
12729
12730
|
|
|
12730
|
-
function ownKeys$
|
|
12731
|
-
function _objectSpread$
|
|
12731
|
+
function ownKeys$O(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12732
|
+
function _objectSpread$O(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$O(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$O(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12732
12733
|
var FetchStoresListQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchStoresListQuery" }, 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: [] }], 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: "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: [] }, { 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: "excludeExtendedStoresList" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "active" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "productSelection" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }] } }] } }] } }] } }], loc: { start: 0, end: 1038, source: { body: "query FetchStoresListQuery(\n $limit: Int\n $offset: Int\n $sort: [String!]\n $where: String\n $excludeExtendedStoresList: Boolean!\n) {\n stores(limit: $limit, offset: $offset, sort: $sort, where: $where) {\n total\n count\n offset\n results {\n id\n key\n version\n nameAllLocales {\n locale\n value\n }\n createdAt\n lastModifiedAt\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: $excludeExtendedStoresList) {\n active\n productSelection {\n id\n nameAllLocales {\n locale\n value\n }\n }\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
12733
12734
|
const createQueryVariables$5 = ownProps => {
|
|
12734
12735
|
var _context;
|
|
12735
|
-
return _objectSpread$
|
|
12736
|
+
return _objectSpread$O(_objectSpread$O({
|
|
12736
12737
|
limit: ownProps.limit,
|
|
12737
12738
|
offset: ownProps.offset,
|
|
12738
12739
|
sort: _sortInstanceProperty(ownProps)
|
|
@@ -12814,10 +12815,10 @@ const useVersionTier = () => {
|
|
|
12814
12815
|
};
|
|
12815
12816
|
};
|
|
12816
12817
|
|
|
12817
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
12818
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[_Symbol$toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
12819
|
-
function ownKeys$
|
|
12820
|
-
function _objectSpread$
|
|
12818
|
+
function _toPropertyKey$1(t) { var i = _toPrimitive$1(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
12819
|
+
function _toPrimitive$1(t, r) { if ("object" != typeof t || !t) return t; var e = t[_Symbol$toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
12820
|
+
function ownKeys$N(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12821
|
+
function _objectSpread$N(e) { for (var r = 1; r < arguments.length; r++) { var _context4, _context5; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context4 = ownKeys$N(Object(t), !0)).call(_context4, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context5 = ownKeys$N(Object(t))).call(_context5, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12821
12822
|
// NOTE: The `version` can be updated to bust existing search queries in case of conflicting migrations.
|
|
12822
12823
|
const VERSION_KEY = '__version';
|
|
12823
12824
|
const OLD_SAVED_SEARCH_VERSION = 2;
|
|
@@ -12828,27 +12829,60 @@ const getCurrentVersion = useOldVersion => {
|
|
|
12828
12829
|
}
|
|
12829
12830
|
return OLD_SAVED_SEARCH_VERSION;
|
|
12830
12831
|
};
|
|
12831
|
-
const augmentWithVersion = (searchQuery, useOldVersion) => _objectSpread$
|
|
12832
|
+
const augmentWithVersion = (searchQuery, useOldVersion) => _objectSpread$N({
|
|
12832
12833
|
[VERSION_KEY]: getCurrentVersion(useOldVersion)
|
|
12833
12834
|
}, searchQuery);
|
|
12834
12835
|
const omitVersion = searchQuery => {
|
|
12835
12836
|
var _context;
|
|
12836
12837
|
searchQuery[VERSION_KEY];
|
|
12837
|
-
const searchQueryNoVersion = _objectWithoutProperties(searchQuery, _mapInstanceProperty(_context = [VERSION_KEY]).call(_context, _toPropertyKey));
|
|
12838
|
+
const searchQueryNoVersion = _objectWithoutProperties(searchQuery, _mapInstanceProperty(_context = [VERSION_KEY]).call(_context, _toPropertyKey$1));
|
|
12838
12839
|
return searchQueryNoVersion;
|
|
12839
12840
|
};
|
|
12840
12841
|
|
|
12841
12842
|
// This will get rid of any filters that may have been deprecated at some point
|
|
12842
|
-
const omitUnknownFilters = searchQuery
|
|
12843
|
+
const omitUnknownFilters = function (searchQuery) {
|
|
12844
|
+
let useOldVersion = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
12843
12845
|
if (!searchQuery) {
|
|
12844
12846
|
return null;
|
|
12845
12847
|
}
|
|
12846
|
-
|
|
12847
|
-
|
|
12848
|
-
|
|
12849
|
-
|
|
12848
|
+
const convertDatesNewToOldStructure = () => {
|
|
12849
|
+
if (searchQuery?.filters?.date) {
|
|
12850
|
+
return [searchQuery?.filters?.date];
|
|
12851
|
+
} else {
|
|
12852
|
+
return searchQuery?.filters?.createdAt;
|
|
12853
|
+
}
|
|
12854
|
+
};
|
|
12855
|
+
const convertDatesOldToNewStructure = () => {
|
|
12856
|
+
if (searchQuery?.filters?.createdAt) {
|
|
12857
|
+
return searchQuery?.filters?.createdAt[0];
|
|
12858
|
+
} else {
|
|
12859
|
+
return searchQuery?.filters?.date;
|
|
12860
|
+
}
|
|
12861
|
+
};
|
|
12862
|
+
if (useOldVersion) {
|
|
12863
|
+
return _objectSpread$N(_objectSpread$N({}, searchQuery), searchQuery?.filters && {
|
|
12864
|
+
filters: _objectSpread$N(_objectSpread$N({}, pickBy(searchQuery.filters, (_value, key) => {
|
|
12865
|
+
var _context2;
|
|
12866
|
+
return _includesInstanceProperty(_context2 = _Object$values(FILTER_OPTION_KEYS)).call(_context2, key);
|
|
12867
|
+
})), {}, {
|
|
12868
|
+
[FILTER_OPTION_KEYS.DATE_RANGE]: convertDatesNewToOldStructure() || [{
|
|
12869
|
+
hasHours: true,
|
|
12870
|
+
type: 'range',
|
|
12871
|
+
selectedFilterType: quickFilterToday
|
|
12872
|
+
}]
|
|
12873
|
+
})
|
|
12874
|
+
});
|
|
12875
|
+
}
|
|
12876
|
+
return _objectSpread$N(_objectSpread$N({}, searchQuery), searchQuery?.filters && {
|
|
12877
|
+
filters: _objectSpread$N(_objectSpread$N({}, pickBy(searchQuery.filters, (_value, key) => {
|
|
12878
|
+
var _context3;
|
|
12879
|
+
return _includesInstanceProperty(_context3 = _Object$values(FILTER_KEY)).call(_context3, key);
|
|
12850
12880
|
})), {}, {
|
|
12851
|
-
[
|
|
12881
|
+
[FILTER_KEY.CREATED_AT]: convertDatesOldToNewStructure() || {
|
|
12882
|
+
hasHours: true,
|
|
12883
|
+
type: 'range',
|
|
12884
|
+
selectedFilterType: quickFilterToday
|
|
12885
|
+
}
|
|
12852
12886
|
})
|
|
12853
12887
|
});
|
|
12854
12888
|
};
|
|
@@ -12869,7 +12903,7 @@ const useSearchQueryState = _ref => {
|
|
|
12869
12903
|
const updateHistory = nextSearchQuery => {
|
|
12870
12904
|
const encodedNextSearchQuery = nextSearchQuery ? encode(nextSearchQuery) : null;
|
|
12871
12905
|
if (encodedNextSearchQuery !== location?.state?.search) {
|
|
12872
|
-
history.replace(location?.pathname, _objectSpread$
|
|
12906
|
+
history.replace(location?.pathname, _objectSpread$N(_objectSpread$N({}, location?.state), {}, {
|
|
12873
12907
|
search: encodedNextSearchQuery
|
|
12874
12908
|
}));
|
|
12875
12909
|
}
|
|
@@ -12885,11 +12919,11 @@ const useSearchQueryState = _ref => {
|
|
|
12885
12919
|
if (locationHasSearchQuery()) {
|
|
12886
12920
|
currentSearchQuery = decode(location.state.search);
|
|
12887
12921
|
} else if (storedSearchQuery) {
|
|
12888
|
-
currentSearchQuery = omitVersion(_objectSpread$
|
|
12922
|
+
currentSearchQuery = omitVersion(_objectSpread$N(_objectSpread$N({}, defaultSearchQuery), storedSearchQuery));
|
|
12889
12923
|
}
|
|
12890
12924
|
|
|
12891
12925
|
// Just remove anything legacy that may accidentally be in there
|
|
12892
|
-
currentSearchQuery = omitUnknownFilters(currentSearchQuery);
|
|
12926
|
+
currentSearchQuery = omitUnknownFilters(currentSearchQuery, !isFilterRedesignEnabled);
|
|
12893
12927
|
} catch (e) {
|
|
12894
12928
|
reportErrorToSentry(new Error('SearchViewRouterQuery: failed to parse stored search query. Defaulting to initial query.'), {
|
|
12895
12929
|
extra: {
|
|
@@ -12930,8 +12964,8 @@ const useSearchQueryState = _ref => {
|
|
|
12930
12964
|
};
|
|
12931
12965
|
};
|
|
12932
12966
|
|
|
12933
|
-
function ownKeys$
|
|
12934
|
-
function _objectSpread$
|
|
12967
|
+
function ownKeys$M(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12968
|
+
function _objectSpread$M(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$M(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$M(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12935
12969
|
/**
|
|
12936
12970
|
* Transforms a `LocalizedString` object into a `LocalizedField` object.
|
|
12937
12971
|
*
|
|
@@ -12939,7 +12973,7 @@ function _objectSpread$J(e) { for (var r = 1; r < arguments.length; r++) { var _
|
|
|
12939
12973
|
*/
|
|
12940
12974
|
const transformLocalizedStringToLocalizedField = localizedFields => {
|
|
12941
12975
|
if (!localizedFields || localizedFields.length === 0) return null;
|
|
12942
|
-
return _reduceInstanceProperty(localizedFields).call(localizedFields, (updatedLocalizedString, field) => _objectSpread$
|
|
12976
|
+
return _reduceInstanceProperty(localizedFields).call(localizedFields, (updatedLocalizedString, field) => _objectSpread$M(_objectSpread$M({}, updatedLocalizedString), {}, {
|
|
12943
12977
|
[field.locale]: field.value
|
|
12944
12978
|
}), {});
|
|
12945
12979
|
};
|
|
@@ -12959,7 +12993,7 @@ const transformLocalizedStringToLocalizedField = localizedFields => {
|
|
|
12959
12993
|
*/
|
|
12960
12994
|
const injectTransformedLocalizedFields = (objectWithLocalizedFields, fieldNames) => {
|
|
12961
12995
|
// Create a new object excluding the 'from' fields
|
|
12962
|
-
const objectWithoutFromFields = _objectSpread$
|
|
12996
|
+
const objectWithoutFromFields = _objectSpread$M({}, objectWithLocalizedFields);
|
|
12963
12997
|
_forEachInstanceProperty(fieldNames).call(fieldNames, field => {
|
|
12964
12998
|
delete objectWithoutFromFields[field.from];
|
|
12965
12999
|
});
|
|
@@ -12970,14 +13004,14 @@ const injectTransformedLocalizedFields = (objectWithLocalizedFields, fieldNames)
|
|
|
12970
13004
|
_forEachInstanceProperty(fieldNames).call(fieldNames, field => {
|
|
12971
13005
|
transformedFields[field.to] = transformLocalizedStringToLocalizedField(objectWithLocalizedFields[field.from]);
|
|
12972
13006
|
});
|
|
12973
|
-
return _objectSpread$
|
|
13007
|
+
return _objectSpread$M(_objectSpread$M({}, objectWithoutFromFields), transformedFields);
|
|
12974
13008
|
};
|
|
12975
13009
|
|
|
12976
|
-
function ownKeys$
|
|
12977
|
-
function _objectSpread$
|
|
13010
|
+
function ownKeys$L(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13011
|
+
function _objectSpread$L(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context3 = ownKeys$L(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context4 = ownKeys$L(Object(t))).call(_context4, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12978
13012
|
const convertChangeHistoryLabel = (labelData, entityLabelCustomerData) => {
|
|
12979
13013
|
// result.label is frozen by apollo, so we need to spread it to make changes
|
|
12980
|
-
const label = _objectSpread$
|
|
13014
|
+
const label = _objectSpread$L({}, labelData);
|
|
12981
13015
|
if (labelData && 'customer' in labelData && labelData.customer?.id && entityLabelCustomerData?.[labelData.customer?.id]) {
|
|
12982
13016
|
// Update customer data with the data from the TFetchCustomersQuery query that matches the customer id,
|
|
12983
13017
|
// so we can access the customer's email address.
|
|
@@ -12999,7 +13033,7 @@ const convertChangeHistoryChange = change => {
|
|
|
12999
13033
|
if (!change) return null;
|
|
13000
13034
|
|
|
13001
13035
|
// Modifications at the root level of the change object
|
|
13002
|
-
const result = _objectSpread$
|
|
13036
|
+
const result = _objectSpread$L({}, injectTransformedLocalizedFields(change, [{
|
|
13003
13037
|
from: 'customLineItemNameAllLocales',
|
|
13004
13038
|
to: 'customLineItem'
|
|
13005
13039
|
}, {
|
|
@@ -13034,13 +13068,13 @@ const injectLocalizedDataToChangeHistoryStores = (store, storesData) => {
|
|
|
13034
13068
|
from: 'nameAllLocales',
|
|
13035
13069
|
to: 'name'
|
|
13036
13070
|
}])?.name : undefined;
|
|
13037
|
-
return _objectSpread$
|
|
13071
|
+
return _objectSpread$L(_objectSpread$L({}, store), {}, {
|
|
13038
13072
|
name
|
|
13039
13073
|
});
|
|
13040
13074
|
};
|
|
13041
13075
|
const convertChangeHistoryEntry = (entry, storesData, entityLabelCustomerData) => {
|
|
13042
13076
|
var _context;
|
|
13043
|
-
return _objectSpread$
|
|
13077
|
+
return _objectSpread$L(_objectSpread$L({}, entry), {}, {
|
|
13044
13078
|
label: convertChangeHistoryLabel(entry.label, entityLabelCustomerData),
|
|
13045
13079
|
previousLabel: convertChangeHistoryLabel(entry.previousLabel, entityLabelCustomerData),
|
|
13046
13080
|
changes: _mapInstanceProperty(_context = entry.changes).call(_context, convertChangeHistoryChange),
|
|
@@ -13049,7 +13083,7 @@ const convertChangeHistoryEntry = (entry, storesData, entityLabelCustomerData) =
|
|
|
13049
13083
|
};
|
|
13050
13084
|
const gatherChangeHistoryFromGraphqlResponse = (changeHistoryData, storesData, entityLabelCustomerData) => {
|
|
13051
13085
|
var _context2;
|
|
13052
|
-
return _objectSpread$
|
|
13086
|
+
return _objectSpread$L(_objectSpread$L({}, changeHistoryData.changeHistory), {}, {
|
|
13053
13087
|
results: _mapInstanceProperty(_context2 = changeHistoryData.changeHistory.results).call(_context2, entry => convertChangeHistoryEntry(entry, storesData, entityLabelCustomerData))
|
|
13054
13088
|
});
|
|
13055
13089
|
};
|
|
@@ -13063,7 +13097,7 @@ const gatherEntityLabelCustomerDataFromGraphqlResponse = data => _Object$fromEnt
|
|
|
13063
13097
|
const gatherCustomersFromGraphqlResponse = data => _Object$fromEntries(data?.customers?.results?.map(customer => [customer.id, customer.email]) || []);
|
|
13064
13098
|
|
|
13065
13099
|
const createDatesFromSelectedFilter = (timeZone, locale, dateFilter) => {
|
|
13066
|
-
const selectedFilter = dateFilter
|
|
13100
|
+
const selectedFilter = dateFilter.selectedFilterType;
|
|
13067
13101
|
if (selectedFilter === quickFilterToday) return {
|
|
13068
13102
|
from: moment.tz(timeZone).locale(locale).startOf('day').toISOString(),
|
|
13069
13103
|
to: moment.tz(timeZone).locale(locale).endOf('day').toISOString()
|
|
@@ -13076,65 +13110,100 @@ const createDatesFromSelectedFilter = (timeZone, locale, dateFilter) => {
|
|
|
13076
13110
|
};else if (selectedFilter === quickFilterLast30Days) return {
|
|
13077
13111
|
from: moment.tz(timeZone).subtract(30, 'days').locale(locale).startOf('day').toISOString(),
|
|
13078
13112
|
to: moment.tz(timeZone).locale(locale).endOf('day').toISOString()
|
|
13079
|
-
};
|
|
13080
|
-
|
|
13081
|
-
|
|
13082
|
-
|
|
13083
|
-
|
|
13084
|
-
|
|
13113
|
+
};else if (selectedFilter === quickFilterCustom && dateFilter.value) {
|
|
13114
|
+
// is custom range
|
|
13115
|
+
return {
|
|
13116
|
+
from: moment(dateFilter.value.from).tz(timeZone).locale(locale).startOf('day').toISOString(),
|
|
13117
|
+
to: moment(dateFilter.value.to).tz(timeZone).locale(locale).endOf('day').toISOString()
|
|
13118
|
+
};
|
|
13119
|
+
} else {
|
|
13120
|
+
// default to today
|
|
13121
|
+
return {
|
|
13122
|
+
from: moment.tz(timeZone).locale(locale).startOf('day').toISOString(),
|
|
13123
|
+
to: moment.tz(timeZone).locale(locale).endOf('day').toISOString()
|
|
13124
|
+
};
|
|
13125
|
+
}
|
|
13126
|
+
};
|
|
13127
|
+
const isExclusionFilterType = type => {
|
|
13128
|
+
return type === FILTER_TYPES.missing || type === FILTER_TYPES.missingIn;
|
|
13085
13129
|
};
|
|
13086
13130
|
const getResourceTypeFilter = (filters, allowedResourceTypes) => {
|
|
13087
|
-
|
|
13088
|
-
|
|
13089
|
-
|
|
13090
|
-
const
|
|
13091
|
-
const
|
|
13092
|
-
|
|
13093
|
-
//
|
|
13094
|
-
|
|
13095
|
-
const filterResourceTypes = _Array$isArray(
|
|
13096
|
-
|
|
13131
|
+
const resourceTypeFilter = filters[FILTER_KEY.RESOURCE_TYPE];
|
|
13132
|
+
const changesFilter = filters[FILTER_KEY.CHANGES];
|
|
13133
|
+
if (!resourceTypeFilter && !changesFilter) return allowedResourceTypes;
|
|
13134
|
+
const resourceTypeFilterOperator = resourceTypeFilter?.operator;
|
|
13135
|
+
const resourceTypeFilterValue = resourceTypeFilter?.appliedFilterValues?.map(filter => filter?.value).filter(Boolean);
|
|
13136
|
+
|
|
13137
|
+
// TODO: test with the resource change filter. Reevaluate if these should even be using the same function.
|
|
13138
|
+
const resourceChangeValue = changesFilter?.appliedFilterValues[0]?.value;
|
|
13139
|
+
const filterResourceTypes = _Array$isArray(resourceTypeFilterValue) ? resourceTypeFilterValue : [resourceTypeFilterValue];
|
|
13140
|
+
|
|
13141
|
+
// Build up the filtered values depending on if we are including or excluding values
|
|
13142
|
+
const excludingFilterOperators = [FILTER_OPERATOR.missing, FILTER_OPERATOR.missingIn];
|
|
13143
|
+
const resourceTypeFilterArray = resourceTypeFilterOperator && _includesInstanceProperty(excludingFilterOperators).call(excludingFilterOperators, resourceTypeFilterOperator) ? _filterInstanceProperty(allowedResourceTypes).call(allowedResourceTypes, resourceType => !_includesInstanceProperty(filterResourceTypes).call(filterResourceTypes, resourceType)) : _filterInstanceProperty(allowedResourceTypes).call(allowedResourceTypes, resourceType => _includesInstanceProperty(filterResourceTypes).call(filterResourceTypes, resourceType));
|
|
13097
13144
|
if (resourceChangeValue) resourceTypeFilterArray.push(resourceChangeValue);
|
|
13098
13145
|
return resourceTypeFilterArray;
|
|
13099
13146
|
};
|
|
13147
|
+
const getResourceTypeFilterOld = (filters, allowedResourceTypes) => {
|
|
13148
|
+
const resourceTypeFilter = filters[FILTER_OPTION_KEYS.ENTITY_TYPE]?.[0];
|
|
13149
|
+
const resourceChangeFilter = filters[FILTER_OPTION_KEYS.CHANGE]?.[0];
|
|
13150
|
+
// Return ALL allowed resource types if we are not filtering specifically on a resource type
|
|
13151
|
+
if (!resourceTypeFilter && !resourceChangeFilter) return allowedResourceTypes;
|
|
13152
|
+
let resourceTypeFilterArray = [];
|
|
13153
|
+
if (resourceTypeFilter) {
|
|
13154
|
+
const filterType = resourceTypeFilter.type;
|
|
13155
|
+
const filterValue = resourceTypeFilter.value?.value;
|
|
13156
|
+
// The SingleFilter component returns the value for a single selection as a string or in an object.
|
|
13157
|
+
// However, the resourceType value of the changeHistoryFilters object is expected to be an array,
|
|
13158
|
+
// so we need to convert the value from a string into an array.
|
|
13159
|
+
const filterResourceTypes = _Array$isArray(filterValue) ? filterValue : [filterValue];
|
|
13160
|
+
|
|
13161
|
+
// TODO: the casting to TResourceTypes can be removed when we can merge with the values in
|
|
13162
|
+
// TResourceType in resource-types.ts
|
|
13163
|
+
resourceTypeFilterArray = filterType && isExclusionFilterType(filterType) ? _filterInstanceProperty(allowedResourceTypes).call(allowedResourceTypes, resourceType => !_includesInstanceProperty(filterResourceTypes).call(filterResourceTypes, resourceType)) : _filterInstanceProperty(allowedResourceTypes).call(allowedResourceTypes, resourceType => _includesInstanceProperty(filterResourceTypes).call(filterResourceTypes, resourceType));
|
|
13164
|
+
}
|
|
13165
|
+
if (resourceChangeFilter) {
|
|
13166
|
+
const resourceChangeValue = resourceChangeFilter.value?.resource;
|
|
13167
|
+
if (resourceChangeValue) resourceTypeFilterArray.push(resourceChangeValue);
|
|
13168
|
+
}
|
|
13169
|
+
return resourceTypeFilterArray;
|
|
13170
|
+
};
|
|
13100
13171
|
const getCustomerWhereFromHistory = history => {
|
|
13101
|
-
var _context2, _context3
|
|
13172
|
+
var _context, _context2, _context3;
|
|
13102
13173
|
if (history.total === 0) return null;
|
|
13103
|
-
const customersIDs = _mapInstanceProperty(
|
|
13174
|
+
const customersIDs = _mapInstanceProperty(_context = _filterInstanceProperty(_context2 = _mapInstanceProperty(_context3 = history.results).call(_context3, row => row.modifiedBy?.customer?.id)).call(_context2, Boolean)).call(_context, id => `"${id}"`);
|
|
13104
13175
|
return customersIDs.length !== 0 ? `id in (${customersIDs.join(',')})` : null;
|
|
13105
13176
|
};
|
|
13106
13177
|
const getStoresWhereFromChangeHistoryData = data => {
|
|
13107
13178
|
if (data?.changeHistory?.total === (undefined)) return null;
|
|
13108
|
-
const
|
|
13179
|
+
const uniqueStoreKeys = uniq(data?.changeHistory?.results?.flatMap(result => result.stores?.map(storeReference => `"${storeReference.key}"`) || []) || []);
|
|
13180
|
+
|
|
13109
13181
|
// the length of this list can be evaluated for async loading of stores / handling getting names for more than 500 stores
|
|
13110
|
-
|
|
13111
|
-
return uniqueKeys.length !== 0 ? `key in (${uniqueKeys.join(',')})` : null;
|
|
13182
|
+
return uniqueStoreKeys.length ? `key in (${uniqueStoreKeys.join(',')})` : null;
|
|
13112
13183
|
};
|
|
13113
13184
|
|
|
13114
13185
|
// This builds up a where clause that represents a list of customer id's that were in the change history results.
|
|
13115
13186
|
// We use this list to fetch only these customers by id.
|
|
13116
13187
|
// The results are used to enrich the change history customer data with UI friendly customer data.
|
|
13188
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13189
|
+
const hasCustomerId = label => {
|
|
13190
|
+
return label && 'customer' in label && label.customer?.id;
|
|
13191
|
+
};
|
|
13117
13192
|
const getEntityLabelCustomerWhereFromChangeHistoryData = data => {
|
|
13118
|
-
|
|
13119
|
-
|
|
13120
|
-
|
|
13121
|
-
|
|
13122
|
-
}
|
|
13123
|
-
return customerIDs;
|
|
13124
|
-
}, []);
|
|
13125
|
-
const uniqueIDs = uniq(customerIDs);
|
|
13126
|
-
return uniqueIDs.length !== 0 ? `id in (${uniqueIDs.join(',')})` : null;
|
|
13193
|
+
var _context4, _context5;
|
|
13194
|
+
if (!data?.changeHistory?.total) return null;
|
|
13195
|
+
const uniqueCustomerIds = uniq(_mapInstanceProperty(_context4 = _filterInstanceProperty(_context5 = data.changeHistory.results).call(_context5, result => hasCustomerId(result.label))).call(_context4, result => `"${result.label.customer.id}"`));
|
|
13196
|
+
return uniqueCustomerIds.length ? `id in (${uniqueCustomerIds.join(',')})` : null;
|
|
13127
13197
|
};
|
|
13128
13198
|
|
|
13129
|
-
function ownKeys$
|
|
13130
|
-
function _objectSpread$
|
|
13199
|
+
function ownKeys$K(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13200
|
+
function _objectSpread$K(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$K(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$K(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13131
13201
|
var FetchAllUsersOfOrganization = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchAllUsersOfOrganization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "organizationId" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "allUsersOfOrganization" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "organizationId" }, value: { kind: "Variable", name: { kind: "Name", value: "organizationId" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "firstName" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "lastName" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "email" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 172, source: { body: "query FetchAllUsersOfOrganization($organizationId: String!) {\n allUsersOfOrganization(organizationId: $organizationId) {\n id\n firstName\n lastName\n email\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
13132
13202
|
var FetchApiClientsQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchOAuthClientsQuery" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "oAuthClients" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "limit" }, value: { kind: "IntValue", value: "500" } }, { kind: "Argument", name: { kind: "Name", value: "sort" }, value: { kind: "StringValue", value: "name asc", block: false } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "results" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }] } }] } }] } }], loc: { start: 0, end: 124, source: { body: "query FetchOAuthClientsQuery {\n oAuthClients(limit: 500, sort: \"name asc\") {\n results {\n id\n name\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
13133
13203
|
var FetchCurrentRecords = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchCurrentRecords" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "status" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "currentRecords" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 64, source: { body: "query FetchCurrentRecords {\n status {\n currentRecords\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
13134
13204
|
var FetchCustomersQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchCustomersQuery" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "where" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "customers" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "results" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "email" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "companyName" }, arguments: [], directives: [] }] } }] } }] } }], loc: { start: 0, end: 139, source: { body: "query FetchCustomersQuery($where: String!) {\n customers(where: $where) {\n results {\n id\n email\n companyName\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
13135
13205
|
var FetchStoresQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchStoresQuery" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "where" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "limit" } }, type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "stores" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }, { kind: "Argument", name: { kind: "Name", value: "limit" }, value: { kind: "Variable", name: { kind: "Name", value: "limit" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "results" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "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: 192, source: { body: "query FetchStoresQuery($where: String!, $limit: Int) {\n stores(where: $where, limit: $limit) {\n results {\n key\n nameAllLocales {\n locale\n value\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
13136
13206
|
const ChangeHistoryListConnector = props => {
|
|
13137
|
-
var _context;
|
|
13138
13207
|
const _useApplicationContex = useApplicationContext(applicationContext => ({
|
|
13139
13208
|
organizationId: applicationContext.project && applicationContext.project.ownerId,
|
|
13140
13209
|
locale: applicationContext.dataLocale ?? navigator.language,
|
|
@@ -13143,32 +13212,55 @@ const ChangeHistoryListConnector = props => {
|
|
|
13143
13212
|
organizationId = _useApplicationContex.organizationId,
|
|
13144
13213
|
locale = _useApplicationContex.locale,
|
|
13145
13214
|
timeZone = _useApplicationContex.timeZone;
|
|
13146
|
-
|
|
13147
|
-
|
|
13148
|
-
const filters = props.searchQuery.filters.createdAt ? props.searchQuery.filters : _objectSpread$H(_objectSpread$H({}, props.searchQuery.filters), {}, {
|
|
13149
|
-
createdAt: [{
|
|
13150
|
-
hasHours: true,
|
|
13151
|
-
type: 'range',
|
|
13152
|
-
selectedFilterType: quickFilterToday
|
|
13153
|
-
}]
|
|
13154
|
-
});
|
|
13215
|
+
const isFilterRedesignEnabled = useAlFilterRedesign();
|
|
13216
|
+
const filters = props.searchQuery.filters;
|
|
13155
13217
|
|
|
13156
13218
|
// Build the list of variables passed to the GraphQL API when fetching change history
|
|
13157
|
-
const
|
|
13158
|
-
|
|
13159
|
-
|
|
13160
|
-
resourceId:
|
|
13161
|
-
|
|
13162
|
-
|
|
13163
|
-
|
|
13164
|
-
|
|
13165
|
-
|
|
13166
|
-
|
|
13167
|
-
|
|
13168
|
-
|
|
13169
|
-
|
|
13170
|
-
|
|
13171
|
-
|
|
13219
|
+
const getOldChangeHistoryFilters = () => {
|
|
13220
|
+
var _context;
|
|
13221
|
+
const oldFilters = filters;
|
|
13222
|
+
const resourceId = props.resourceId || (oldFilters.resourceId ? oldFilters.resourceId[0].value : '');
|
|
13223
|
+
return omitBy({
|
|
13224
|
+
date: createDatesFromSelectedFilter(timeZone, locale, oldFilters.createdAt?.[0]),
|
|
13225
|
+
resourceId: resourceId,
|
|
13226
|
+
source: oldFilters.isPlatformClient ? SOURCE_OPTIONS[_Array$isArray(oldFilters.isPlatformClient[0].value.value) ? oldFilters.isPlatformClient[0].value.value[0] : oldFilters.isPlatformClient[0].value.value] : null,
|
|
13227
|
+
resourceTypes: getResourceTypeFilterOld(oldFilters, props.allowedResourceTypes),
|
|
13228
|
+
type: oldFilters.changeType ? oldFilters.changeType[0].value.value : null,
|
|
13229
|
+
userId: oldFilters['createdBy.id'] ? oldFilters['createdBy.id'][0].value.value : null,
|
|
13230
|
+
clientId: oldFilters.apiClientId ? oldFilters.apiClientId[0].value.value : null,
|
|
13231
|
+
changes: oldFilters.resourceChange ? [oldFilters.resourceChange[0].value.change] : null,
|
|
13232
|
+
customerId: oldFilters.customerId ? oldFilters.customerId[0].value : null,
|
|
13233
|
+
excludePlatformInitiatedChanges: oldFilters.excludePlatformInitiatedChanges ? oldFilters.excludePlatformInitiatedChanges[0].value.value : null,
|
|
13234
|
+
stores: oldFilters.stores && _Array$isArray(oldFilters.stores[0]?.value) ? _mapInstanceProperty(_context = oldFilters.stores[0].value).call(_context, store => store.key) : null,
|
|
13235
|
+
businessUnit: oldFilters.businessUnit ? oldFilters.businessUnit[0].value.value : null
|
|
13236
|
+
}, isNil$1);
|
|
13237
|
+
};
|
|
13238
|
+
const getChangeHistoryFilters = () => {
|
|
13239
|
+
const newFilters = filters; // @filters-cleanup - don't need to cast this once old filters no longer a potential type
|
|
13240
|
+
const allFilterKeys = _Object$values(FILTER_KEY);
|
|
13241
|
+
const filterValues = _reduceInstanceProperty(allFilterKeys).call(allFilterKeys, (acc, key) => {
|
|
13242
|
+
if (key === FILTER_KEY.CREATED_AT) {
|
|
13243
|
+
acc[key] = createDatesFromSelectedFilter(timeZone, locale, newFilters[key]);
|
|
13244
|
+
} else if (key === FILTER_KEY.RESOURCE_TYPE) {
|
|
13245
|
+
const resourceTypes = getResourceTypeFilter(newFilters, props.allowedResourceTypes);
|
|
13246
|
+
// This one has some additional logic to ensure we only fetch the allowed resource types
|
|
13247
|
+
if (resourceTypes) {
|
|
13248
|
+
acc['resourceTypes'] = resourceTypes;
|
|
13249
|
+
}
|
|
13250
|
+
} else {
|
|
13251
|
+
const value = newFilters[key];
|
|
13252
|
+
if (value !== undefined) {
|
|
13253
|
+
acc[key] = value.appliedFilterValues[0].value;
|
|
13254
|
+
}
|
|
13255
|
+
}
|
|
13256
|
+
return acc;
|
|
13257
|
+
}, {});
|
|
13258
|
+
return omitBy(filterValues, isNil$1);
|
|
13259
|
+
};
|
|
13260
|
+
|
|
13261
|
+
// This function can be easily deleted when filter redesign is fully enabled
|
|
13262
|
+
// Define a type that can handle both old and new filter formats
|
|
13263
|
+
const changeHistoryFilters = isFilterRedesignEnabled ? getChangeHistoryFilters() : getOldChangeHistoryFilters();
|
|
13172
13264
|
const _useMcQuery = useMcQuery(FetchCurrentRecords, {
|
|
13173
13265
|
context: {
|
|
13174
13266
|
target: GRAPHQL_TARGETS.CHANGE_HISTORY_SERVICE,
|
|
@@ -13188,7 +13280,7 @@ const ChangeHistoryListConnector = props => {
|
|
|
13188
13280
|
projectKey: props.projectKey
|
|
13189
13281
|
},
|
|
13190
13282
|
notifyOnNetworkStatusChange: true,
|
|
13191
|
-
variables: _objectSpread$
|
|
13283
|
+
variables: _objectSpread$K({
|
|
13192
13284
|
limit: props.searchQuery.perPage,
|
|
13193
13285
|
offset: (props.searchQuery.page - 1) * props.searchQuery.perPage,
|
|
13194
13286
|
// By default, the FE wants expanded changes
|
|
@@ -13366,8 +13458,8 @@ const BusinessUnitCell = _ref => {
|
|
|
13366
13458
|
};
|
|
13367
13459
|
BusinessUnitCell.displayName = 'BusinessUnitCell';
|
|
13368
13460
|
|
|
13369
|
-
function ownKeys$
|
|
13370
|
-
function _objectSpread$
|
|
13461
|
+
function ownKeys$J(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13462
|
+
function _objectSpread$J(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$J(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$J(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13371
13463
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$k() { 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)."; }
|
|
13372
13464
|
var _ref$b = process.env.NODE_ENV === "production" ? {
|
|
13373
13465
|
name: "1h52dri",
|
|
@@ -13383,20 +13475,20 @@ const ChangeItem = props => {
|
|
|
13383
13475
|
if (props.isWrappingChange) return jsx(Text.Detail, {
|
|
13384
13476
|
children: jsx("div", {
|
|
13385
13477
|
css: _ref$b,
|
|
13386
|
-
children: changeMessages[changeMessage] ? jsx(FormattedMessage, _objectSpread$
|
|
13478
|
+
children: changeMessages[changeMessage] ? jsx(FormattedMessage, _objectSpread$J({}, changeMessages[changeMessage])) : props.changeName
|
|
13387
13479
|
})
|
|
13388
13480
|
});
|
|
13389
13481
|
return jsxs(Spacings.Stack, {
|
|
13390
13482
|
scale: "xs",
|
|
13391
13483
|
children: [jsx(Text.Detail, {
|
|
13392
13484
|
fontWeight: "bold",
|
|
13393
|
-
children: changeMessages[changeMessage] ? jsx(FormattedMessage, _objectSpread$
|
|
13485
|
+
children: changeMessages[changeMessage] ? jsx(FormattedMessage, _objectSpread$J({}, changeMessages[changeMessage])) : props.changeName
|
|
13394
13486
|
}), !isCustomChangeRendering(props.changeName) ? _mapInstanceProperty(_context = props.change).call(_context, (change, index) => jsxs(Fragment$1, {
|
|
13395
13487
|
children: [isComposedValue(props.changeName) && jsx(Spacings.Inline, {
|
|
13396
13488
|
scale: "xs",
|
|
13397
13489
|
alignItems: "stretch",
|
|
13398
13490
|
children: jsx(Text.Detail, {
|
|
13399
|
-
children: jsx(GetChangesColumn, _objectSpread$
|
|
13491
|
+
children: jsx(GetChangesColumn, _objectSpread$J(_objectSpread$J({}, props), {}, {
|
|
13400
13492
|
change: change,
|
|
13401
13493
|
value: change.nextValue
|
|
13402
13494
|
}))
|
|
@@ -13413,7 +13505,7 @@ const ChangeItem = props => {
|
|
|
13413
13505
|
tone: "secondary"
|
|
13414
13506
|
})
|
|
13415
13507
|
}), jsx(Text.Detail, {
|
|
13416
|
-
children: jsx(GetChangesColumn, _objectSpread$
|
|
13508
|
+
children: jsx(GetChangesColumn, _objectSpread$J(_objectSpread$J({}, props), {}, {
|
|
13417
13509
|
change: change,
|
|
13418
13510
|
value: change.previousValue
|
|
13419
13511
|
}))
|
|
@@ -13429,7 +13521,7 @@ const ChangeItem = props => {
|
|
|
13429
13521
|
tone: "secondary"
|
|
13430
13522
|
})
|
|
13431
13523
|
}), jsx(Text.Detail, {
|
|
13432
|
-
children: jsx(GetChangesColumn, _objectSpread$
|
|
13524
|
+
children: jsx(GetChangesColumn, _objectSpread$J(_objectSpread$J({}, props), {}, {
|
|
13433
13525
|
change: change,
|
|
13434
13526
|
value: change.nextValue
|
|
13435
13527
|
}))
|
|
@@ -13437,7 +13529,7 @@ const ChangeItem = props => {
|
|
|
13437
13529
|
})]
|
|
13438
13530
|
})]
|
|
13439
13531
|
}, `${change.change}-${index}`)) : jsx(Text.Detail, {
|
|
13440
|
-
children: jsx(GetChangesColumn, _objectSpread$
|
|
13532
|
+
children: jsx(GetChangesColumn, _objectSpread$J(_objectSpread$J({}, props), {}, {
|
|
13441
13533
|
change: {
|
|
13442
13534
|
change: props.changeName
|
|
13443
13535
|
},
|
|
@@ -13448,8 +13540,8 @@ const ChangeItem = props => {
|
|
|
13448
13540
|
};
|
|
13449
13541
|
ChangeItem.displayName = 'ChangeItem';
|
|
13450
13542
|
|
|
13451
|
-
function ownKeys$
|
|
13452
|
-
function _objectSpread$
|
|
13543
|
+
function ownKeys$I(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13544
|
+
function _objectSpread$I(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$I(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$I(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13453
13545
|
function _callSuper$1(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$1() ? _Reflect$construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
13454
13546
|
function _isNativeReflectConstruct$1() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$1 = function () { return !!t; })(); }
|
|
13455
13547
|
let ChangeItemErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
@@ -13478,7 +13570,7 @@ let ChangeItemErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
|
13478
13570
|
if (this.state.hasError) {
|
|
13479
13571
|
return jsx(Text.Body, {
|
|
13480
13572
|
fontWeight: "bold",
|
|
13481
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
13573
|
+
children: jsx(FormattedMessage, _objectSpread$I({}, messages$1l.errorChangeLabel))
|
|
13482
13574
|
});
|
|
13483
13575
|
}
|
|
13484
13576
|
return this.props.children;
|
|
@@ -13648,19 +13740,19 @@ var messages$t = defineMessages({
|
|
|
13648
13740
|
}
|
|
13649
13741
|
});
|
|
13650
13742
|
|
|
13651
|
-
function ownKeys$
|
|
13652
|
-
function _objectSpread$
|
|
13743
|
+
function ownKeys$H(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13744
|
+
function _objectSpread$H(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$H(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$H(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13653
13745
|
const ChangesCell = _ref => {
|
|
13654
13746
|
let message = _ref.message,
|
|
13655
13747
|
isWrappingText = _ref.isWrappingText,
|
|
13656
13748
|
isRowCollapsed = _ref.isRowCollapsed;
|
|
13657
13749
|
if (message.type === ChangeType.ResourceDeleted) return jsx(Text.Detail, {
|
|
13658
13750
|
fontWeight: isWrappingText && !isRowCollapsed ? 'bold' : undefined,
|
|
13659
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
13751
|
+
children: jsx(FormattedMessage, _objectSpread$H({}, messages$t.deletedResource))
|
|
13660
13752
|
});
|
|
13661
13753
|
if (message.type === ChangeType.ResourceCreated) return jsx(Text.Detail, {
|
|
13662
13754
|
fontWeight: isWrappingText && !isRowCollapsed ? 'bold' : undefined,
|
|
13663
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
13755
|
+
children: jsx(FormattedMessage, _objectSpread$H({}, messages$t.createdResource))
|
|
13664
13756
|
});
|
|
13665
13757
|
|
|
13666
13758
|
//AuLo groups changes by changeName so that change data for changes with the same name are displayed under a single header in the changes cell.
|
|
@@ -13935,10 +14027,10 @@ const ModifiedByCell = _ref => {
|
|
|
13935
14027
|
};
|
|
13936
14028
|
ModifiedByCell.displayName = 'ModifiedByCell';
|
|
13937
14029
|
|
|
13938
|
-
function ownKeys$
|
|
13939
|
-
function _objectSpread$
|
|
14030
|
+
function ownKeys$G(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14031
|
+
function _objectSpread$G(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$G(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$G(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13940
14032
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$i() { 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)."; }
|
|
13941
|
-
const DeletedResource = () => jsx(FormattedMessage, _objectSpread$
|
|
14033
|
+
const DeletedResource = () => jsx(FormattedMessage, _objectSpread$G({}, messages$S.deletedResource));
|
|
13942
14034
|
DeletedResource.displayName = 'DeletedResource';
|
|
13943
14035
|
var _ref2$2 = process.env.NODE_ENV === "production" ? {
|
|
13944
14036
|
name: "1wbfu2h",
|
|
@@ -14085,7 +14177,7 @@ const getResourceLabel = (resourceType, resource, messageLabel, language, langua
|
|
|
14085
14177
|
});
|
|
14086
14178
|
default:
|
|
14087
14179
|
{
|
|
14088
|
-
return jsx(FormattedMessage, _objectSpread$
|
|
14180
|
+
return jsx(FormattedMessage, _objectSpread$G({}, messages$S.missingResource));
|
|
14089
14181
|
}
|
|
14090
14182
|
}
|
|
14091
14183
|
};
|
|
@@ -14143,8 +14235,8 @@ const ResourceCell = props => {
|
|
|
14143
14235
|
size: "10",
|
|
14144
14236
|
label: intl.formatMessage(messages$S.filterButtonLabel),
|
|
14145
14237
|
onClick: () => {
|
|
14146
|
-
const filters = _objectSpread$
|
|
14147
|
-
filters: _objectSpread$
|
|
14238
|
+
const filters = _objectSpread$G(_objectSpread$G({}, props.searchQuery), {}, {
|
|
14239
|
+
filters: _objectSpread$G(_objectSpread$G({}, props.searchQuery.filters), {}, {
|
|
14148
14240
|
resourceId: [{
|
|
14149
14241
|
type: 'equalTo',
|
|
14150
14242
|
value: props.message.resource?.id
|
|
@@ -14197,8 +14289,8 @@ var messages$r = defineMessages({
|
|
|
14197
14289
|
}
|
|
14198
14290
|
});
|
|
14199
14291
|
|
|
14200
|
-
function ownKeys$
|
|
14201
|
-
function _objectSpread$
|
|
14292
|
+
function ownKeys$F(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14293
|
+
function _objectSpread$F(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$F(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$F(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14202
14294
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$h() { 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)."; }
|
|
14203
14295
|
var _ref$8 = process.env.NODE_ENV === "production" ? {
|
|
14204
14296
|
name: "h6w7gh",
|
|
@@ -14214,7 +14306,7 @@ const VersionCell = _ref2 => {
|
|
|
14214
14306
|
return jsx(Text.Detail, {
|
|
14215
14307
|
children: jsx("div", {
|
|
14216
14308
|
css: _ref$8,
|
|
14217
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
14309
|
+
children: jsx(FormattedMessage, _objectSpread$F(_objectSpread$F({}, messages$r.versionLabel), {}, {
|
|
14218
14310
|
values: {
|
|
14219
14311
|
oldVersion,
|
|
14220
14312
|
newVersion
|
|
@@ -14305,9 +14397,9 @@ const getTableCellByColumnKey = _ref => {
|
|
|
14305
14397
|
// Matches max table height for other MC applications
|
|
14306
14398
|
const MAX_TABLE_HEIGHT = '100%'; // eslint-disable-line import/prefer-default-export
|
|
14307
14399
|
|
|
14308
|
-
function ownKeys$
|
|
14309
|
-
function _objectSpread$
|
|
14310
|
-
const handleTruncateColumns = (columns, isTruncated) => _mapInstanceProperty(columns).call(columns, column => _objectSpread$
|
|
14400
|
+
function ownKeys$E(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14401
|
+
function _objectSpread$E(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$E(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$E(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14402
|
+
const handleTruncateColumns = (columns, isTruncated) => _mapInstanceProperty(columns).call(columns, column => _objectSpread$E(_objectSpread$E({}, column), {}, {
|
|
14311
14403
|
isTruncated
|
|
14312
14404
|
}));
|
|
14313
14405
|
const ChangeHistoryDataTable = props => {
|
|
@@ -14316,7 +14408,7 @@ const ChangeHistoryDataTable = props => {
|
|
|
14316
14408
|
children: [jsx(DataTable, {
|
|
14317
14409
|
maxHeight: MAX_TABLE_HEIGHT,
|
|
14318
14410
|
columns: truncatedColumns,
|
|
14319
|
-
rows: props.results?.map(res => _objectSpread$
|
|
14411
|
+
rows: props.results?.map(res => _objectSpread$E(_objectSpread$E({}, res), {}, {
|
|
14320
14412
|
id: `${res.resource.id}-${res.version}-${res.previousVersion}-${res.type}`
|
|
14321
14413
|
})),
|
|
14322
14414
|
itemRenderer: (item, column, isRowCollapsed) => getTableCellByColumnKey({
|
|
@@ -14562,6 +14654,8 @@ const validateMultiOptionEnum = (selectedOption, intl) => {
|
|
|
14562
14654
|
return null;
|
|
14563
14655
|
};
|
|
14564
14656
|
|
|
14657
|
+
function ownKeys$D(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14658
|
+
function _objectSpread$D(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$D(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$D(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14565
14659
|
const getFilterOption = isPremiumFiltersDisabled => {
|
|
14566
14660
|
return isPremiumFiltersDisabled ? (_ref, inputValue) => {
|
|
14567
14661
|
var _context;
|
|
@@ -14570,6 +14664,19 @@ const getFilterOption = isPremiumFiltersDisabled => {
|
|
|
14570
14664
|
return !data.disabledForBasic && _includesInstanceProperty(_context = data.label.toLowerCase()).call(_context, inputValue.toLowerCase());
|
|
14571
14665
|
} : undefined;
|
|
14572
14666
|
};
|
|
14667
|
+
const areFiltersEqual = (filter1, filter2) => {
|
|
14668
|
+
if (isNil$1(filter1) && isNil$1(filter2)) return true;
|
|
14669
|
+
if (filter1?.appliedFilterValues?.length !== filter2?.appliedFilterValues?.length || isNil$1(filter1) || isNil$1(filter2)) return false;
|
|
14670
|
+
const sorted1 = [...filter1?.appliedFilterValues]?.sort((x, y) => x?.value.localeCompare(y?.value));
|
|
14671
|
+
const sorted2 = [...filter2?.appliedFilterValues]?.sort((x, y) => x?.value.localeCompare(y?.value));
|
|
14672
|
+
const sortedFilter1 = _objectSpread$D(_objectSpread$D({}, filter1), {}, {
|
|
14673
|
+
appliedFilterValues: sorted1
|
|
14674
|
+
});
|
|
14675
|
+
const sortedFilter2 = _objectSpread$D(_objectSpread$D({}, filter2), {}, {
|
|
14676
|
+
appliedFilterValues: sorted2
|
|
14677
|
+
});
|
|
14678
|
+
return isEqual(sortedFilter1, sortedFilter2);
|
|
14679
|
+
};
|
|
14573
14680
|
|
|
14574
14681
|
const inputStyles = /*#__PURE__*/css("min-width:584px;border-radius:", designTokens.borderRadius6, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:inputStyles;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0YW5kYXJkLWZpbHRlcnMuc3R5bGVzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUk4QiIsImZpbGUiOiJzdGFuZGFyZC1maWx0ZXJzLnN0eWxlcy5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGRlc2lnblRva2VucyB9IGZyb20gJ0Bjb21tZXJjZXRvb2xzLWZyb250ZW5kL3VpLWtpdCc7XG5cbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuZXhwb3J0IGNvbnN0IGlucHV0U3R5bGVzID0gY3NzYFxuICBtaW4td2lkdGg6IDU4NHB4O1xuICBib3JkZXItcmFkaXVzOiAke2Rlc2lnblRva2Vucy5ib3JkZXJSYWRpdXM2fTtcbmA7XG5cbmV4cG9ydCBjb25zdCBlcnJvckNvbnRhaW5lclN0eWxlcyA9IGNzc2BcbiAgbWFyZ2luLXRvcDogJHtkZXNpZ25Ub2tlbnMuc3BhY2luZ1hzfTtcbiAgbWluLXdpZHRoOiAxMzhweDtcbmA7XG5cbmV4cG9ydCBjb25zdCBzZWFyY2hhYmxlU2VsZWN0SW5wdXRTdHlsZXMgPSBjc3NgXG4gIGRpc3BsYXk6IGZsZXg7XG4gIGdhcDogOHB4O1xuICBib3JkZXItcmFkaXVzOiAke2Rlc2lnblRva2Vucy5ib3JkZXJSYWRpdXM2fTtcbiAgbWluLXdpZHRoOiA1ODRweDtcbiAgJiBpbnB1dCB7XG4gICAgbWluLXdpZHRoOiA1MjZweCAhaW1wb3J0YW50O1xuICB9XG5gO1xuXG5leHBvcnQgY29uc3QgY3VzdG9tZXJJZElucHV0U3R5bGVzID0gY3NzYFxuICBkaXNwbGF5OiBmbGV4O1xuICBnYXA6IDhweDtcbiAgYm9yZGVyLXJhZGl1czogJHtkZXNpZ25Ub2tlbnMuYm9yZGVyUmFkaXVzNn07XG4gICYgaW5wdXQge1xuICAgIG1pbi13aWR0aDogNTg0cHggIWltcG9ydGFudDtcbiAgfVxuYDtcbiJdfQ== */");
|
|
14575
14682
|
const errorContainerStyles = /*#__PURE__*/css("margin-top:", designTokens.spacingXs, ";min-width:138px;" + (process.env.NODE_ENV === "production" ? "" : ";label:errorContainerStyles;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0YW5kYXJkLWZpbHRlcnMuc3R5bGVzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVN1QyIsImZpbGUiOiJzdGFuZGFyZC1maWx0ZXJzLnN0eWxlcy5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGRlc2lnblRva2VucyB9IGZyb20gJ0Bjb21tZXJjZXRvb2xzLWZyb250ZW5kL3VpLWtpdCc7XG5cbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuZXhwb3J0IGNvbnN0IGlucHV0U3R5bGVzID0gY3NzYFxuICBtaW4td2lkdGg6IDU4NHB4O1xuICBib3JkZXItcmFkaXVzOiAke2Rlc2lnblRva2Vucy5ib3JkZXJSYWRpdXM2fTtcbmA7XG5cbmV4cG9ydCBjb25zdCBlcnJvckNvbnRhaW5lclN0eWxlcyA9IGNzc2BcbiAgbWFyZ2luLXRvcDogJHtkZXNpZ25Ub2tlbnMuc3BhY2luZ1hzfTtcbiAgbWluLXdpZHRoOiAxMzhweDtcbmA7XG5cbmV4cG9ydCBjb25zdCBzZWFyY2hhYmxlU2VsZWN0SW5wdXRTdHlsZXMgPSBjc3NgXG4gIGRpc3BsYXk6IGZsZXg7XG4gIGdhcDogOHB4O1xuICBib3JkZXItcmFkaXVzOiAke2Rlc2lnblRva2Vucy5ib3JkZXJSYWRpdXM2fTtcbiAgbWluLXdpZHRoOiA1ODRweDtcbiAgJiBpbnB1dCB7XG4gICAgbWluLXdpZHRoOiA1MjZweCAhaW1wb3J0YW50O1xuICB9XG5gO1xuXG5leHBvcnQgY29uc3QgY3VzdG9tZXJJZElucHV0U3R5bGVzID0gY3NzYFxuICBkaXNwbGF5OiBmbGV4O1xuICBnYXA6IDhweDtcbiAgYm9yZGVyLXJhZGl1czogJHtkZXNpZ25Ub2tlbnMuYm9yZGVyUmFkaXVzNn07XG4gICYgaW5wdXQge1xuICAgIG1pbi13aWR0aDogNTg0cHggIWltcG9ydGFudDtcbiAgfVxuYDtcbiJdfQ== */");
|
|
@@ -14612,8 +14719,8 @@ var messages$o = defineMessages({
|
|
|
14612
14719
|
});
|
|
14613
14720
|
|
|
14614
14721
|
const _excluded$5 = ["resources"];
|
|
14615
|
-
function ownKeys$
|
|
14616
|
-
function _objectSpread$
|
|
14722
|
+
function ownKeys$C(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14723
|
+
function _objectSpread$C(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context3 = ownKeys$C(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context4 = ownKeys$C(Object(t))).call(_context4, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14617
14724
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
14618
14725
|
const isResourceChangeFilterValue = input => {
|
|
14619
14726
|
var _context, _context2;
|
|
@@ -14658,7 +14765,7 @@ const ResourceChangeFilter = _ref => {
|
|
|
14658
14765
|
children: jsxs(Spacings.Inline, {
|
|
14659
14766
|
alignItems: "center",
|
|
14660
14767
|
children: [jsx("div", {
|
|
14661
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
14768
|
+
children: jsx(FormattedMessage, _objectSpread$C({}, messages$o.whenLabel))
|
|
14662
14769
|
}), jsx("div", {
|
|
14663
14770
|
css: /*#__PURE__*/css("min-width:", designTokens.constraint7, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:ResourceChangeFilter;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlc291cmNlLWNoYW5nZS1maWx0ZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWdHb0IiLCJmaWxlIjoicmVzb3VyY2UtY2hhbmdlLWZpbHRlci50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBGcmFnbWVudCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IEZvcm1hdHRlZE1lc3NhZ2UsIHVzZUludGwgfSBmcm9tICdyZWFjdC1pbnRsJztcblxuaW1wb3J0IG9yZGVyQnkgZnJvbSAnbG9kYXNoL29yZGVyQnknO1xuXG5pbXBvcnQge1xuICBkZXNpZ25Ub2tlbnMsXG4gIFNlbGVjdElucHV0LFxuICBTcGFjaW5ncyxcbiAgVE9wdGlvbixcbiAgVE9wdGlvbnMsXG59IGZyb20gJ0Bjb21tZ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5hbWU9XCJjaGFuZ2Utc2VsZWN0b3JcIlxuICAgICAgICAgICAgICB2YWx1ZT17cmVzb3VyY2V9XG4gICAgICAgICAgICAgIG9wdGlvbnM9e29wdGlvbnNHcm91cGluZyh7XG4gICAgICAgICAgICAgICAgb3B0aW9uczogc29ydGVkUmVzb3VyY2VzLFxuICAgICAgICAgICAgICAgIHRpZXIsXG4gICAgICAgICAgICAgIH0pfVxuICAgICAgICAgICAgICBpc09wdGlvbkRpc2FibGVkPXtcbiAgICAgICAgICAgICAgICBpc1ByZW1pdW1GaWx0ZXJzRGlzYWJsZWRcbiAgICAgICAgICAgICAgICAgID8gKG9wdGlvbjogdW5rbm93biwgX3NlbGVjdFZhbHVlOiB1bmtub3duKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgY29uc3QgdHlwZWRPcHRpb24gPSBvcHRpb24gYXMgVE9wdGlvbnNXaXRoRGlzYWJsZWRGb3JCYXNpYztcbiAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gdHlwZWRPcHRpb24uZGlzYWJsZWRGb3JCYXNpYyA/IHR5cGVkT3B0aW9uLmRpc2FibGVkRm9yQmFzaWMgOiBmYWxzZTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgOiAoX29wdGlvbjogdW5rbm93biwgX3NlbGVjdFZhbHVlOiB1bmtub3duKSA9PiBmYWxzZVxuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIGZpbHRlck9wdGlvbj17Z2V0RmlsdGVyT3B0aW9uKGlzUHJlbWl1bUZpbHRlcnNEaXNhYmxlZCl9XG4gICAgICAgICAgICAgIHBsYWNlaG9sZGVyPXtpbnRsLmZvcm1hdE1lc3NhZ2UobWVzc2FnZXMucmVzb3VyY2VJbnB1dFBsYWNlaG9sZGVyKX1cbiAgICAgICAgICAgICAgb25DaGFuZ2U9e25leHRWYWx1ZSA9PlxuICAgICAgICAgICAgICAgIHByb3BzLm9uVXBkYXRlRmlsdGVyKHtcbiAgICAgICAgICAgICAgICAgIHJlc291cmNlOiBuZXh0VmFsdWUudGFyZ2V0LnZhbHVlLFxuICAgICAgICAgICAgICAgICAgY2hhbmdlOiBudWxsLFxuICAgICAgICAgICAgICAgIH0gYXMgVFJlc291cmNlQ2hhbmdlRmlsdGVyVmFsdWUpXG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgaXNDbGVhcmFibGU9e2ZhbHNlfVxuICAgICAgICAgICAgICBpc0Rpc2FibGVkPXtyZXNvdXJjZXMubGVuZ3RoID09PSAxfVxuICAgICAgICAgICAgICBob3Jpem9udGFsQ29uc3RyYWludD17MTZ9XG4gICAgICAgICAgICAvPlxuICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgIHtyZXNvdXJjZSAmJiAoXG4gICAgICAgICAgICA8RnJhZ21lbnQ+XG4gICAgICAgICAgICAgIDxkaXYgZGF0YS10ZXN0aWQ9XCJwcnVlYmFcIj5cbiAgICAgICAgICAgICAgICA8Rm9ybWF0dGVkTWVzc2FnZSB7Li4ubWVzc2FnZXMuaGFzTGFiZWx9IC8+XG4gICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICA8ZGl2XG4gICAgICAgICAgICAgICAgY3NzPXtjc3NgXG4gICAgICAgICAgICAgICAgICBtaW4td2lkdGg6ICR7ZGVzaWduVG9rZW5zLmNvbnN0cmFpbnQ3fTtcbiAgICAgICAgICAgICAgICBgfVxuICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgPFNlbGVjdElucHV0XG4gICAgICAgICAgICAgICAgICBuYW1lPVwiY2hhbmdlLXNlbGVjdG9yXCJcbiAgICAgICAgICAgICAgICAgIGRhdGEtdGVzdGlkPXtgY2hhbmdlLXNlbGVjdG9yLSR7cmVzb3VyY2V9YH1cbiAgICAgICAgICAgICAgICAgIHZhbHVlPXtjaGFuZ2V9XG4gICAgICAgICAgICAgICAgICBwbGFjZWhvbGRlcj17aW50bC5mb3JtYXRNZXNzYWdlKG1lc3NhZ2VzLmNoYW5nZUlucHV0UGxhY2Vob2xkZXIpfVxuICAgICAgICAgICAgICAgICAgb3B0aW9ucz17Z2V0Q2hhbmdlc0J5UmVzb3VyY2VUeXBlKHJlc291cmNlIGFzIFRSZXNvdXJjZVR5cGUsIGludGwpfVxuICAgICAgICAgICAgICAgICAgb25DaGFuZ2U9e25leHRWYWx1ZSA9PlxuICAgICAgICAgICAgICAgICAgICBwcm9wcy5vblVwZGF0ZUZpbHRlcih7XG4gICAgICAgICAgICAgICAgICAgICAgcmVzb3VyY2U6IHJlc291cmNlLFxuICAgICAgICAgICAgICAgICAgICAgIGNoYW5nZTogbmV4dFZhbHVlLnRhcmdldC52YWx1ZSxcbiAgICAgICAgICAgICAgICAgICAgfSBhcyBUUmVzb3VyY2VDaGFuZ2VGaWx0ZXJWYWx1ZSlcbiAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgIGlzQ2xlYXJhYmxlPXtmYWxzZX1cbiAgICAgICAgICAgICAgICAgIGlzRGlzYWJsZWQ9e2ZhbHNlfVxuICAgICAgICAgICAgICAgICAgaG9yaXpvbnRhbENvbnN0cmFpbnQ9ezE2fVxuICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgPC9GcmFnbWVudD5cbiAgICAgICAgICApfVxuICAgICAgICA8L1NwYWNpbmdzLklubGluZT5cbiAgICAgIDwvZGl2PlxuICAgIDwvUmVxdWlyZWRGaWx0ZXI+XG4gICk7XG59O1xuUmVzb3VyY2VDaGFuZ2VGaWx0ZXIuZGlzcGxheU5hbWUgPSAnUmVzb3VyY2VDaGFuZ2VGaWx0ZXInO1xuXG5leHBvcnQgZGVmYXVsdCBSZXNvdXJjZUNoYW5nZUZpbHRlcjtcbiJdfQ== */"),
|
|
14664
14771
|
children: jsx(SelectInput, {
|
|
@@ -14685,7 +14792,7 @@ const ResourceChangeFilter = _ref => {
|
|
|
14685
14792
|
}), resource && jsxs(Fragment$1, {
|
|
14686
14793
|
children: [jsx("div", {
|
|
14687
14794
|
"data-testid": "prueba",
|
|
14688
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
14795
|
+
children: jsx(FormattedMessage, _objectSpread$C({}, messages$o.hasLabel))
|
|
14689
14796
|
}), jsx("div", {
|
|
14690
14797
|
css: /*#__PURE__*/css("min-width:", designTokens.constraint7, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:ResourceChangeFilter;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlc291cmNlLWNoYW5nZS1maWx0ZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXNJd0IiLCJmaWxlIjoicmVzb3VyY2UtY2hhbmdlLWZpbHRlci50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBGcmFnbWVudCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IEZvcm1hdHRlZE1lc3NhZ2UsIHVzZUludGwgfSBmcm9tICdyZWFjdC1pbnRsJztcblxuaW1wb3J0IG9yZGVyQnkgZnJvbSAnbG9kYXNoL29yZGVyQnknO1xuXG5pbXBvcnQge1xuICBkZXNpZ25Ub2tlbnMsXG4gIFNlbGVjdElucHV0LFxuICBTcGFjaW5ncyxcbiAgVE9wdGlvbixcbiAgVE9wdGlvbnMsXG59IGZyb20gJ0Bjb21tZXJjZXRvb2xzLWZyb250ZW5kL3VpLWtpdCc7XG5cbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgUmVzb3VyY2VDaGFuZ2VJbnB1dCwgVGllckxldmVscyB9IGZyb20gJy4uLy4uLy4uLy4uLy4uL3R5cGVzL3NyYy9nZW5lcmF0ZWQvY2hhbmdlLWhpc3RvcnknO1xuaW1wb3J0IHsgUkVTT1VSQ0VfVFlQRSwgVFJlc291cmNlQ2hhb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7XG4gIGNvbnN0IHsgcmVzb3VyY2UsIGNoYW5nZSB9ID0gZ2V0RGVmYXVsdFZhbHVlKHJlc291cmNlcywgcHJvcHMudmFsdWUpO1xuICBjb25zdCBzb3J0ZWRSZXNvdXJjZXMgPSBvcmRlckJ5PFRPcHRpb24+KHJlc291cmNlcywgWydsYWJlbCddLCBbJ2FzYyddKTtcblxuICByZXR1cm4gKFxuICAgIDxSZXF1aXJlZEZpbHRlciBlcnJvcj17cHJvcHMuZXJyb3J9PlxuICAgICAgPGRpdlxuICAgICAgICBjc3M9e2Nzc2BcbiAgICAgICAgICBtaW4td2lkdGg6ICR7ZGVzaWduVG9rZW5zLmNvbnN0cmFpbnQxNn07XG4gICAgICAgIGB9XG4gICAgICA+XG4gICAgICAgIDxTcGFjaW5ncy5JbmxpbmUgYWxpZ25JdGVtcz1cImNlbnRlclwiPlxuICAgICAgICAgIDxkaXY+XG4gICAgICAgICAgICA8Rm9ybWF0dGVkTWVzc2FnZSB7Li4ubWVzc2FnZXMud2hlbkxhYmVsfSAvPlxuICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgIDxkaXZcbiAgICAgICAgICAgIGNzcz17Y3NzYFxuICAgICAgICAgICAgICBtaW4td2lkdGg6ICR7ZGVzaWduVG9rZW5zLmNvbnN0cmFpbnQ3fTtcbiAgICAgICAgICAgIGB9XG4gICAgICAgICAgPlxuICAgICAgICAgICAgPFNlbGVjdElucHV0XG4gICAgICAgICAgICAgIG5hbWU9XCJjaGFuZ2Utc2VsZWN0b3JcIlxuICAgICAgICAgICAgICB2YWx1ZT17cmVzb3VyY2V9XG4gICAgICAgICAgICAgIG9wdGlvbnM9e29wdGlvbnNHcm91cGluZyh7XG4gICAgICAgICAgICAgICAgb3B0aW9uczogc29ydGVkUmVzb3VyY2VzLFxuICAgICAgICAgICAgICAgIHRpZXIsXG4gICAgICAgICAgICAgIH0pfVxuICAgICAgICAgICAgICBpc09wdGlvbkRpc2FibGVkPXtcbiAgICAgICAgICAgICAgICBpc1ByZW1pdW1GaWx0ZXJzRGlzYWJsZWRcbiAgICAgICAgICAgICAgICAgID8gKG9wdGlvbjogdW5rbm93biwgX3NlbGVjdFZhbHVlOiB1bmtub3duKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgY29uc3QgdHlwZWRPcHRpb24gPSBvcHRpb24gYXMgVE9wdGlvbnNXaXRoRGlzYWJsZWRGb3JCYXNpYztcbiAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gdHlwZWRPcHRpb24uZGlzYWJsZWRGb3JCYXNpYyA/IHR5cGVkT3B0aW9uLmRpc2FibGVkRm9yQmFzaWMgOiBmYWxzZTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgOiAoX29wdGlvbjogdW5rbm93biwgX3NlbGVjdFZhbHVlOiB1bmtub3duKSA9PiBmYWxzZVxuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIGZpbHRlck9wdGlvbj17Z2V0RmlsdGVyT3B0aW9uKGlzUHJlbWl1bUZpbHRlcnNEaXNhYmxlZCl9XG4gICAgICAgICAgICAgIHBsYWNlaG9sZGVyPXtpbnRsLmZvcm1hdE1lc3NhZ2UobWVzc2FnZXMucmVzb3VyY2VJbnB1dFBsYWNlaG9sZGVyKX1cbiAgICAgICAgICAgICAgb25DaGFuZ2U9e25leHRWYWx1ZSA9PlxuICAgICAgICAgICAgICAgIHByb3BzLm9uVXBkYXRlRmlsdGVyKHtcbiAgICAgICAgICAgICAgICAgIHJlc291cmNlOiBuZXh0VmFsdWUudGFyZ2V0LnZhbHVlLFxuICAgICAgICAgICAgICAgICAgY2hhbmdlOiBudWxsLFxuICAgICAgICAgICAgICAgIH0gYXMgVFJlc291cmNlQ2hhbmdlRmlsdGVyVmFsdWUpXG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgaXNDbGVhcmFibGU9e2ZhbHNlfVxuICAgICAgICAgICAgICBpc0Rpc2FibGVkPXtyZXNvdXJjZXMubGVuZ3RoID09PSAxfVxuICAgICAgICAgICAgICBob3Jpem9udGFsQ29uc3RyYWludD17MTZ9XG4gICAgICAgICAgICAvPlxuICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgIHtyZXNvdXJjZSAmJiAoXG4gICAgICAgICAgICA8RnJhZ21lbnQ+XG4gICAgICAgICAgICAgIDxkaXYgZGF0YS10ZXN0aWQ9XCJwcnVlYmFcIj5cbiAgICAgICAgICAgICAgICA8Rm9ybWF0dGVkTWVzc2FnZSB7Li4ubWVzc2FnZXMuaGFzTGFiZWx9IC8+XG4gICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICA8ZGl2XG4gICAgICAgICAgICAgICAgY3NzPXtjc3NgXG4gICAgICAgICAgICAgICAgICBtaW4td2lkdGg6ICR7ZGVzaWduVG9rZW5zLmNvbnN0cmFpbnQ3fTtcbiAgICAgICAgICAgICAgICBgfVxuICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgPFNlbGVjdElucHV0XG4gICAgICAgICAgICAgICAgICBuYW1lPVwiY2hhbmdlLXNlbGVjdG9yXCJcbiAgICAgICAgICAgICAgICAgIGRhdGEtdGVzdGlkPXtgY2hhbmdlLXNlbGVjdG9yLSR7cmVzb3VyY2V9YH1cbiAgICAgICAgICAgICAgICAgIHZhbHVlPXtjaGFuZ2V9XG4gICAgICAgICAgICAgICAgICBwbGFjZWhvbGRlcj17aW50bC5mb3JtYXRNZXNzYWdlKG1lc3NhZ2VzLmNoYW5nZUlucHV0UGxhY2Vob2xkZXIpfVxuICAgICAgICAgICAgICAgICAgb3B0aW9ucz17Z2V0Q2hhbmdlc0J5UmVzb3VyY2VUeXBlKHJlc291cmNlIGFzIFRSZXNvdXJjZVR5cGUsIGludGwpfVxuICAgICAgICAgICAgICAgICAgb25DaGFuZ2U9e25leHRWYWx1ZSA9PlxuICAgICAgICAgICAgICAgICAgICBwcm9wcy5vblVwZGF0ZUZpbHRlcih7XG4gICAgICAgICAgICAgICAgICAgICAgcmVzb3VyY2U6IHJlc291cmNlLFxuICAgICAgICAgICAgICAgICAgICAgIGNoYW5nZTogbmV4dFZhbHVlLnRhcmdldC52YWx1ZSxcbiAgICAgICAgICAgICAgICAgICAgfSBhcyBUUmVzb3VyY2VDaGFuZ2VGaWx0ZXJWYWx1ZSlcbiAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgIGlzQ2xlYXJhYmxlPXtmYWxzZX1cbiAgICAgICAgICAgICAgICAgIGlzRGlzYWJsZWQ9e2ZhbHNlfVxuICAgICAgICAgICAgICAgICAgaG9yaXpvbnRhbENvbnN0cmFpbnQ9ezE2fVxuICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgPC9GcmFnbWVudD5cbiAgICAgICAgICApfVxuICAgICAgICA8L1NwYWNpbmdzLklubGluZT5cbiAgICAgIDwvZGl2PlxuICAgIDwvUmVxdWlyZWRGaWx0ZXI+XG4gICk7XG59O1xuUmVzb3VyY2VDaGFuZ2VGaWx0ZXIuZGlzcGxheU5hbWUgPSAnUmVzb3VyY2VDaGFuZ2VGaWx0ZXInO1xuXG5leHBvcnQgZGVmYXVsdCBSZXNvdXJjZUNoYW5nZUZpbHRlcjtcbiJdfQ== */"),
|
|
14691
14798
|
children: jsx(SelectInput, {
|
|
@@ -14876,8 +14983,8 @@ var messages$l = defineMessages({
|
|
|
14876
14983
|
}
|
|
14877
14984
|
});
|
|
14878
14985
|
|
|
14879
|
-
function ownKeys$
|
|
14880
|
-
function _objectSpread$
|
|
14986
|
+
function ownKeys$B(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14987
|
+
function _objectSpread$B(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$B(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$B(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14881
14988
|
const ResourceChangeFilterTag = props => {
|
|
14882
14989
|
const _useIntl = useIntl(),
|
|
14883
14990
|
formatMessage = _useIntl.formatMessage;
|
|
@@ -14888,8 +14995,8 @@ const ResourceChangeFilterTag = props => {
|
|
|
14888
14995
|
value: props.value,
|
|
14889
14996
|
renderValue: value => jsx(Text.Detail, {
|
|
14890
14997
|
as: "span",
|
|
14891
|
-
intlMessage: _objectSpread$
|
|
14892
|
-
values: _objectSpread$
|
|
14998
|
+
intlMessage: _objectSpread$B(_objectSpread$B({}, messages$l.tagTxt), {}, {
|
|
14999
|
+
values: _objectSpread$B(_objectSpread$B({}, value), {}, {
|
|
14893
15000
|
resource: formatMessage(getEntityTypeNameMessage(kebabCase(props.value.resource))),
|
|
14894
15001
|
change: changeMessages[changeMessage] ? formatMessage(changeMessages[changeMessage]) : props.value.change,
|
|
14895
15002
|
bold: getBoldText
|
|
@@ -14928,12 +15035,12 @@ const CenteredLoadingSpinner = () => jsx("div", {
|
|
|
14928
15035
|
});
|
|
14929
15036
|
CenteredLoadingSpinner.displayName = 'CenteredLoadingSpinner';
|
|
14930
15037
|
|
|
14931
|
-
function ownKeys$
|
|
14932
|
-
function _objectSpread$
|
|
15038
|
+
function ownKeys$A(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15039
|
+
function _objectSpread$A(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$A(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$A(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14933
15040
|
var FetchBusinessUnitsListQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchBusinessUnitsListQuery" }, 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: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "businessUnits" }, 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: "BusinessUnitBasicInfo" }, directives: [] }] } }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "BusinessUnitBasicInfo" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "BusinessUnit" } }, 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: "name" }, arguments: [], directives: [] }] } }], loc: { start: 0, end: 333, source: { body: "query FetchBusinessUnitsListQuery($limit: Int, $offset: Int, $sort: [String!], $where: String) {\n businessUnits(limit: $limit, offset: $offset, sort: $sort, where: $where) {\n total\n count\n offset\n results {\n ...BusinessUnitBasicInfo\n }\n }\n}\n\nfragment BusinessUnitBasicInfo on BusinessUnit {\n id\n key\n name\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
14934
15041
|
const createQueryVariables$4 = ownProps => {
|
|
14935
15042
|
var _context;
|
|
14936
|
-
return _objectSpread$
|
|
15043
|
+
return _objectSpread$A(_objectSpread$A({
|
|
14937
15044
|
limit: ownProps.limit,
|
|
14938
15045
|
offset: ownProps.offset,
|
|
14939
15046
|
sort: _sortInstanceProperty(ownProps)
|
|
@@ -15023,8 +15130,8 @@ const getFirst60Options$1 = (businessUnitOptions, currentValues) => {
|
|
|
15023
15130
|
};
|
|
15024
15131
|
|
|
15025
15132
|
const _excluded$4 = ["shouldFetchProductSelections"];
|
|
15026
|
-
function ownKeys$
|
|
15027
|
-
function _objectSpread$
|
|
15133
|
+
function ownKeys$z(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15134
|
+
function _objectSpread$z(e) { for (var r = 1; r < arguments.length; r++) { var _context4, _context5; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context4 = ownKeys$z(Object(t), !0)).call(_context4, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context5 = ownKeys$z(Object(t))).call(_context5, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15028
15135
|
const hasErrors$4 = errors => {
|
|
15029
15136
|
var _context;
|
|
15030
15137
|
return errors && _someInstanceProperty(_context = _Object$values(errors)).call(_context, Boolean);
|
|
@@ -15066,7 +15173,7 @@ const BusinessUnitAsyncSelectInput = _ref => {
|
|
|
15066
15173
|
};
|
|
15067
15174
|
if (businessUnitsListFetcher.isLoading) return jsx(CenteredLoadingSpinner, {});
|
|
15068
15175
|
return jsxs(Fragment, {
|
|
15069
|
-
children: [jsx(AsyncSelectInput, _objectSpread$
|
|
15176
|
+
children: [jsx(AsyncSelectInput, _objectSpread$z(_objectSpread$z({
|
|
15070
15177
|
id: props.id,
|
|
15071
15178
|
name: props.name,
|
|
15072
15179
|
placeholder: props.placeholder || intl.formatMessage(messages$k.asyncSelectInputPlaceholder),
|
|
@@ -15099,8 +15206,8 @@ const BusinessUnitAsyncSelectInput = _ref => {
|
|
|
15099
15206
|
};
|
|
15100
15207
|
BusinessUnitAsyncSelectInput.displayName = 'BusinessUnitAsyncSelectInput';
|
|
15101
15208
|
|
|
15102
|
-
function ownKeys$
|
|
15103
|
-
function _objectSpread$
|
|
15209
|
+
function ownKeys$y(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15210
|
+
function _objectSpread$y(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$y(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$y(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15104
15211
|
const hasErrors$3 = errors => {
|
|
15105
15212
|
var _context;
|
|
15106
15213
|
return errors && _someInstanceProperty(_context = _Object$values(errors)).call(_context, Boolean);
|
|
@@ -15125,7 +15232,7 @@ const BusinessUnitBasicSelectInput = props => {
|
|
|
15125
15232
|
};
|
|
15126
15233
|
if (businessUnitsListFetcher.isLoading) return jsx(CenteredLoadingSpinner, {});
|
|
15127
15234
|
return jsxs(Fragment, {
|
|
15128
|
-
children: [jsx(SelectInput, _objectSpread$
|
|
15235
|
+
children: [jsx(SelectInput, _objectSpread$y(_objectSpread$y({
|
|
15129
15236
|
id: props.id,
|
|
15130
15237
|
name: props.name,
|
|
15131
15238
|
placeholder: props.placeholder || intl.formatMessage(messages$k.basicSelectInputPlaceholder),
|
|
@@ -15206,8 +15313,8 @@ const useTotalNumberOfBusinessUnitsFetcher = () => {
|
|
|
15206
15313
|
};
|
|
15207
15314
|
|
|
15208
15315
|
const _excluded$3 = ["shouldFetchProductSelections"];
|
|
15209
|
-
function ownKeys$
|
|
15210
|
-
function _objectSpread$
|
|
15316
|
+
function ownKeys$x(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15317
|
+
function _objectSpread$x(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context3 = ownKeys$x(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context4 = ownKeys$x(Object(t))).call(_context4, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15211
15318
|
var FetchBusinessUnitsByWherePredicate = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchBusinessUnitsByWherePredicate" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "where" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", alias: { kind: "Name", value: "businessUnitsByWherePredicate" }, name: { kind: "Name", value: "businessUnits" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "results" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }] } }] } }] } }], loc: { start: 0, end: 180, source: { body: "query FetchBusinessUnitsByWherePredicate($where: String!) {\n businessUnitsByWherePredicate: businessUnits(where: $where) {\n results {\n id\n key\n name\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
15212
15319
|
const hasErrors$2 = errors => {
|
|
15213
15320
|
var _context;
|
|
@@ -15257,7 +15364,7 @@ const BusinessUnitSearchSelectInput = _ref2 => {
|
|
|
15257
15364
|
const loadOptionsDebounced = debounce(handleLoadOptions, 500);
|
|
15258
15365
|
if (businessUnitsByFieldFetcher.isLoading) return jsx(CenteredLoadingSpinner, {});
|
|
15259
15366
|
return jsxs(Fragment, {
|
|
15260
|
-
children: [jsx(SearchSelectInput, _objectSpread$
|
|
15367
|
+
children: [jsx(SearchSelectInput, _objectSpread$x(_objectSpread$x({
|
|
15261
15368
|
id: props.id,
|
|
15262
15369
|
name: props.name,
|
|
15263
15370
|
placeholder: props.placeholder || intl.formatMessage(messages$k.searchSelectInputPlaceholder),
|
|
@@ -15293,8 +15400,8 @@ const BusinessUnitSearchSelectInput = _ref2 => {
|
|
|
15293
15400
|
BusinessUnitSearchSelectInput.displayName = 'BusinessUnitSearchSelectInput';
|
|
15294
15401
|
|
|
15295
15402
|
const _excluded$2 = ["lowerBusinessUnitsLimit", "upperBusinessUnitsLimit", "renderSelectInputOptionValuesByField", "optionType"];
|
|
15296
|
-
function ownKeys$
|
|
15297
|
-
function _objectSpread$
|
|
15403
|
+
function ownKeys$w(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15404
|
+
function _objectSpread$w(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$w(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$w(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15298
15405
|
const CustomSelectInputOption$1 = selectUtils.CustomSelectInputOption;
|
|
15299
15406
|
const BusinessUnitSelectInput = _ref => {
|
|
15300
15407
|
let _ref$lowerBusinessUni = _ref.lowerBusinessUnitsLimit,
|
|
@@ -15312,7 +15419,7 @@ const BusinessUnitSelectInput = _ref => {
|
|
|
15312
15419
|
// eslint-disable-next-line react/display-name
|
|
15313
15420
|
Option: optionInnerProps => {
|
|
15314
15421
|
if (optionInnerProps.isDisabled) {
|
|
15315
|
-
return jsx(SelectInput.Option, _objectSpread$
|
|
15422
|
+
return jsx(SelectInput.Option, _objectSpread$w({}, optionInnerProps));
|
|
15316
15423
|
}
|
|
15317
15424
|
return jsx(CustomSelectInputOption$1, {
|
|
15318
15425
|
optionType: optionType,
|
|
@@ -15330,7 +15437,7 @@ const BusinessUnitSelectInput = _ref => {
|
|
|
15330
15437
|
} else {
|
|
15331
15438
|
CustomSelectInput = BusinessUnitSearchSelectInput;
|
|
15332
15439
|
}
|
|
15333
|
-
return jsx(CustomSelectInput, _objectSpread$
|
|
15440
|
+
return jsx(CustomSelectInput, _objectSpread$w(_objectSpread$w({
|
|
15334
15441
|
id: props.id,
|
|
15335
15442
|
name: props.name,
|
|
15336
15443
|
components: components,
|
|
@@ -15418,10 +15525,10 @@ const containerStyles = process.env.NODE_ENV === "production" ? {
|
|
|
15418
15525
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$d
|
|
15419
15526
|
};
|
|
15420
15527
|
|
|
15421
|
-
function ownKeys$
|
|
15422
|
-
function _objectSpread$
|
|
15528
|
+
function ownKeys$v(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15529
|
+
function _objectSpread$v(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$v(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$v(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15423
15530
|
const processUpdateValue = newValue => {
|
|
15424
|
-
const processedValue = _objectSpread$
|
|
15531
|
+
const processedValue = _objectSpread$v({}, newValue);
|
|
15425
15532
|
if (newValue.to === '') processedValue.to = null;else if (newValue.from === '') processedValue.from = null;
|
|
15426
15533
|
return processedValue;
|
|
15427
15534
|
};
|
|
@@ -15711,8 +15818,8 @@ const getFirst60Options = (storesOptions, currentValues) => {
|
|
|
15711
15818
|
return _sliceInstanceProperty(storesOptions).call(storesOptions, 0, LOWER_STORES_LIMIT + currentValuesLength);
|
|
15712
15819
|
};
|
|
15713
15820
|
|
|
15714
|
-
function ownKeys$
|
|
15715
|
-
function _objectSpread$
|
|
15821
|
+
function ownKeys$u(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15822
|
+
function _objectSpread$u(e) { for (var r = 1; r < arguments.length; r++) { var _context5, _context6; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context5 = ownKeys$u(Object(t), !0)).call(_context5, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context6 = ownKeys$u(Object(t))).call(_context6, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15716
15823
|
const hasErrors$1 = errors => {
|
|
15717
15824
|
var _context;
|
|
15718
15825
|
return errors && _someInstanceProperty(_context = _Object$values(errors)).call(_context, Boolean);
|
|
@@ -15787,7 +15894,7 @@ const StoresAsyncSelectInput = props => {
|
|
|
15787
15894
|
};
|
|
15788
15895
|
if (storesListFetcher.isLoading) return jsx(CenteredLoadingSpinner, {});
|
|
15789
15896
|
return jsxs(Fragment, {
|
|
15790
|
-
children: [jsx(AsyncSelectInput, _objectSpread$
|
|
15897
|
+
children: [jsx(AsyncSelectInput, _objectSpread$u(_objectSpread$u({
|
|
15791
15898
|
id: props.id,
|
|
15792
15899
|
name: props.name,
|
|
15793
15900
|
placeholder: intl.formatMessage(messages$i.basicSelectInputPlaceholder),
|
|
@@ -15866,8 +15973,8 @@ const useStoresByFieldFetcher = (stores, predicateField, projectKey) => {
|
|
|
15866
15973
|
};
|
|
15867
15974
|
};
|
|
15868
15975
|
|
|
15869
|
-
function ownKeys$
|
|
15870
|
-
function _objectSpread$
|
|
15976
|
+
function ownKeys$t(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15977
|
+
function _objectSpread$t(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context3 = ownKeys$t(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context4 = ownKeys$t(Object(t))).call(_context4, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15871
15978
|
var FetchStoresByWherePredicate = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchStoresByWherePredicate" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "where" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "skipFetchingStores" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", alias: { kind: "Name", value: "storesByWherePredicate" }, 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: "skipFetchingStores" } } }] }], 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: 270, source: { body: "query FetchStoresByWherePredicate($where: String!, $skipFetchingStores: Boolean!) {\n storesByWherePredicate: stores(where: $where) @skip(if: $skipFetchingStores) {\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 } } } }; // check wether there are any errors
|
|
15872
15979
|
const hasErrors = errors => {
|
|
15873
15980
|
var _context;
|
|
@@ -15962,7 +16069,7 @@ const StoresSearchSelectInput = props => {
|
|
|
15962
16069
|
const loadOptionsDebounced = debounce(handleLoadOptions, 500);
|
|
15963
16070
|
if (storesByFieldFetcher.isLoading) return jsx(CenteredLoadingSpinner, {});
|
|
15964
16071
|
return jsxs(Fragment, {
|
|
15965
|
-
children: [jsx(SearchSelectInput, _objectSpread$
|
|
16072
|
+
children: [jsx(SearchSelectInput, _objectSpread$t(_objectSpread$t({
|
|
15966
16073
|
id: props.id,
|
|
15967
16074
|
name: props.name,
|
|
15968
16075
|
placeholder: intl.formatMessage(messages$i.searchSelectInputPlaceholder),
|
|
@@ -16006,8 +16113,8 @@ const StoresSearchSelectInput = props => {
|
|
|
16006
16113
|
StoresSearchSelectInput.displayName = 'StoresSearchSelectInput';
|
|
16007
16114
|
|
|
16008
16115
|
const _excluded = ["lowerStoresLimit", "upperStoresLimit", "renderSelectInputOptionValuesByField", "optionType"];
|
|
16009
|
-
function ownKeys$
|
|
16010
|
-
function _objectSpread$
|
|
16116
|
+
function ownKeys$s(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16117
|
+
function _objectSpread$s(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$s(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$s(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16011
16118
|
const CustomSelectInputOption = selectUtils.CustomSelectInputOption;
|
|
16012
16119
|
const StoreSelectInput = _ref => {
|
|
16013
16120
|
let _ref$lowerStoresLimit = _ref.lowerStoresLimit,
|
|
@@ -16025,7 +16132,7 @@ const StoreSelectInput = _ref => {
|
|
|
16025
16132
|
// eslint-disable-next-line react/display-name
|
|
16026
16133
|
Option: optionInnerProps => {
|
|
16027
16134
|
if (optionInnerProps.isDisabled) {
|
|
16028
|
-
return jsx(SelectInput.Option, _objectSpread$
|
|
16135
|
+
return jsx(SelectInput.Option, _objectSpread$s({}, optionInnerProps));
|
|
16029
16136
|
}
|
|
16030
16137
|
return jsx(CustomSelectInputOption, {
|
|
16031
16138
|
optionType: optionType,
|
|
@@ -16050,7 +16157,7 @@ const StoreSelectInput = _ref => {
|
|
|
16050
16157
|
} else {
|
|
16051
16158
|
CustomStoreSelectInput = StoresSearchSelectInput;
|
|
16052
16159
|
}
|
|
16053
|
-
return jsx(CustomStoreSelectInput, _objectSpread$
|
|
16160
|
+
return jsx(CustomStoreSelectInput, _objectSpread$s(_objectSpread$s({
|
|
16054
16161
|
projectKey: props.projectKey,
|
|
16055
16162
|
id: props.id,
|
|
16056
16163
|
name: props.name,
|
|
@@ -16232,8 +16339,8 @@ const filterTypeMissingMessages = defineMessages({
|
|
|
16232
16339
|
}
|
|
16233
16340
|
});
|
|
16234
16341
|
|
|
16235
|
-
function ownKeys$
|
|
16236
|
-
function _objectSpread$
|
|
16342
|
+
function ownKeys$r(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16343
|
+
function _objectSpread$r(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$r(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$r(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16237
16344
|
function createDateDefinitionsMap(intl) {
|
|
16238
16345
|
return {
|
|
16239
16346
|
[FILTER_TYPES.lessThan]: {
|
|
@@ -16266,7 +16373,7 @@ function createDateDefinitionsMap(intl) {
|
|
|
16266
16373
|
function createFilterTypeToDefinitionMap(intl, meta) {
|
|
16267
16374
|
return {
|
|
16268
16375
|
[FILTER_TYPES.in]: {
|
|
16269
|
-
filterComponent: createEnumFilter(_objectSpread$
|
|
16376
|
+
filterComponent: createEnumFilter(_objectSpread$r(_objectSpread$r({}, meta), {}, {
|
|
16270
16377
|
isMulti: true,
|
|
16271
16378
|
isSearchable: true
|
|
16272
16379
|
})),
|
|
@@ -16277,7 +16384,7 @@ function createFilterTypeToDefinitionMap(intl, meta) {
|
|
|
16277
16384
|
validator: filter => validateMultiOptionEnum(filter, intl)
|
|
16278
16385
|
},
|
|
16279
16386
|
[FILTER_TYPES.equalTo]: {
|
|
16280
|
-
filterComponent: createEnumFilter(_objectSpread$
|
|
16387
|
+
filterComponent: createEnumFilter(_objectSpread$r(_objectSpread$r({}, meta), {}, {
|
|
16281
16388
|
isSearchable: true
|
|
16282
16389
|
})),
|
|
16283
16390
|
tagComponent: EnumSingleFilterTag,
|
|
@@ -16287,7 +16394,7 @@ function createFilterTypeToDefinitionMap(intl, meta) {
|
|
|
16287
16394
|
validator: filter => validateSingleOptionEnum(filter, intl)
|
|
16288
16395
|
},
|
|
16289
16396
|
[FILTER_TYPES.missing]: {
|
|
16290
|
-
filterComponent: createEnumFilter(_objectSpread$
|
|
16397
|
+
filterComponent: createEnumFilter(_objectSpread$r(_objectSpread$r({}, meta), {}, {
|
|
16291
16398
|
isSearchable: true
|
|
16292
16399
|
})),
|
|
16293
16400
|
tagComponent: EnumSingleFilterTag,
|
|
@@ -16297,7 +16404,7 @@ function createFilterTypeToDefinitionMap(intl, meta) {
|
|
|
16297
16404
|
validator: filter => validateMultiOptionEnum(filter, intl)
|
|
16298
16405
|
},
|
|
16299
16406
|
[FILTER_TYPES.missingIn]: {
|
|
16300
|
-
filterComponent: createEnumFilter(_objectSpread$
|
|
16407
|
+
filterComponent: createEnumFilter(_objectSpread$r(_objectSpread$r({}, meta), {}, {
|
|
16301
16408
|
isMulti: true,
|
|
16302
16409
|
isSearchable: true
|
|
16303
16410
|
})),
|
|
@@ -16325,7 +16432,7 @@ function createUserDefinitionsMap(intl, meta) {
|
|
|
16325
16432
|
return {
|
|
16326
16433
|
[FILTER_TYPES.equalTo]: {
|
|
16327
16434
|
filterComponent: createEnumFilter(meta),
|
|
16328
|
-
tagComponent: props => jsx(EnumSingleFilterLabelTag, _objectSpread$
|
|
16435
|
+
tagComponent: props => jsx(EnumSingleFilterLabelTag, _objectSpread$r(_objectSpread$r({}, props), {}, {
|
|
16329
16436
|
options: meta.options
|
|
16330
16437
|
})),
|
|
16331
16438
|
label: intl.formatMessage(filterTypeTextMessages.equalTo),
|
|
@@ -16339,7 +16446,7 @@ function createToolOptionsDefinitionsMap(intl, meta) {
|
|
|
16339
16446
|
return {
|
|
16340
16447
|
[FILTER_TYPES.in]: {
|
|
16341
16448
|
filterComponent: createEnumFilter(meta),
|
|
16342
|
-
tagComponent: props => jsx(EnumSingleFilterLabelTag, _objectSpread$
|
|
16449
|
+
tagComponent: props => jsx(EnumSingleFilterLabelTag, _objectSpread$r(_objectSpread$r({}, props), {}, {
|
|
16343
16450
|
options: meta.options
|
|
16344
16451
|
})),
|
|
16345
16452
|
label: intl.formatMessage(filterTypeTextMessages.equalTo),
|
|
@@ -16352,7 +16459,7 @@ function createToolOptionsDefinitionsMap(intl, meta) {
|
|
|
16352
16459
|
function createResourceChangeDefinitionsMap(intl, meta) {
|
|
16353
16460
|
return {
|
|
16354
16461
|
[FILTER_TYPES.resourceChange]: {
|
|
16355
|
-
filterComponent: props => jsx(ResourceChangeFilter, _objectSpread$
|
|
16462
|
+
filterComponent: props => jsx(ResourceChangeFilter, _objectSpread$r(_objectSpread$r({}, props), {}, {
|
|
16356
16463
|
resources: meta.resources
|
|
16357
16464
|
})),
|
|
16358
16465
|
tagComponent: ResourceChangeFilterTag,
|
|
@@ -16367,7 +16474,7 @@ function createApiClientDefinitionsMap(intl, meta) {
|
|
|
16367
16474
|
return {
|
|
16368
16475
|
[FILTER_TYPES.equalTo]: {
|
|
16369
16476
|
filterComponent: createEnumFilter(meta),
|
|
16370
|
-
tagComponent: props => jsx(EnumSingleFilterLabelTag, _objectSpread$
|
|
16477
|
+
tagComponent: props => jsx(EnumSingleFilterLabelTag, _objectSpread$r(_objectSpread$r({}, props), {}, {
|
|
16371
16478
|
options: meta.options
|
|
16372
16479
|
})),
|
|
16373
16480
|
label: intl.formatMessage(filterTypeTextMessages.equalTo),
|
|
@@ -16380,7 +16487,7 @@ function createApiClientDefinitionsMap(intl, meta) {
|
|
|
16380
16487
|
function createCustomerIdDefinitionsMap(intl) {
|
|
16381
16488
|
return {
|
|
16382
16489
|
[FILTER_TYPES.equalTo]: {
|
|
16383
|
-
filterComponent: props => jsx(TextFilter, _objectSpread$
|
|
16490
|
+
filterComponent: props => jsx(TextFilter, _objectSpread$r({}, props)),
|
|
16384
16491
|
tagComponent: TextSingleFilterTag,
|
|
16385
16492
|
label: intl.formatMessage(filterTypeTextMessages.equalTo),
|
|
16386
16493
|
canBeAppliedMultipleTimes: false,
|
|
@@ -16392,7 +16499,7 @@ function createCustomerIdDefinitionsMap(intl) {
|
|
|
16392
16499
|
function createExcludePlatformChangesDefinitionsMap(intl) {
|
|
16393
16500
|
return {
|
|
16394
16501
|
[FILTER_TYPES.equalTo]: {
|
|
16395
|
-
filterComponent: props => jsx(TextFilter, _objectSpread$
|
|
16502
|
+
filterComponent: props => jsx(TextFilter, _objectSpread$r({}, props)),
|
|
16396
16503
|
label: intl.formatMessage(filterTypeTextMessages.equalTo),
|
|
16397
16504
|
tagComponent: TextSingleFilterTag
|
|
16398
16505
|
}
|
|
@@ -16401,7 +16508,7 @@ function createExcludePlatformChangesDefinitionsMap(intl) {
|
|
|
16401
16508
|
function createStoresDefinitionsMap(intl) {
|
|
16402
16509
|
return {
|
|
16403
16510
|
[FILTER_TYPES.equalTo]: {
|
|
16404
|
-
filterComponent: props => jsx(StoresFilter, _objectSpread$
|
|
16511
|
+
filterComponent: props => jsx(StoresFilter, _objectSpread$r({}, props)),
|
|
16405
16512
|
tagComponent: EnumSingleOptionFilterTag,
|
|
16406
16513
|
label: intl.formatMessage(filterTypeTextMessages.equalTo),
|
|
16407
16514
|
canBeAppliedMultipleTimes: false,
|
|
@@ -16413,7 +16520,7 @@ function createStoresDefinitionsMap(intl) {
|
|
|
16413
16520
|
function createBusinessUnitDefinitionsMap(intl) {
|
|
16414
16521
|
return {
|
|
16415
16522
|
[FILTER_TYPES.equalTo]: {
|
|
16416
|
-
filterComponent: props => jsx(BusinessUnitFilter, _objectSpread$
|
|
16523
|
+
filterComponent: props => jsx(BusinessUnitFilter, _objectSpread$r({}, props)),
|
|
16417
16524
|
tagComponent: EnumSingleFilterTag,
|
|
16418
16525
|
label: intl.formatMessage(filterTypeTextMessages.equalTo),
|
|
16419
16526
|
canBeAppliedMultipleTimes: false,
|
|
@@ -16425,7 +16532,7 @@ function createBusinessUnitDefinitionsMap(intl) {
|
|
|
16425
16532
|
function createEntityIdDefinitionsMap(intl) {
|
|
16426
16533
|
return {
|
|
16427
16534
|
[FILTER_TYPES.equalTo]: {
|
|
16428
|
-
filterComponent: props => jsx(TextFilter, _objectSpread$
|
|
16535
|
+
filterComponent: props => jsx(TextFilter, _objectSpread$r({}, props)),
|
|
16429
16536
|
tagComponent: TextSingleFilterTag,
|
|
16430
16537
|
label: intl.formatMessage(filterTypeTextMessages.equalTo),
|
|
16431
16538
|
canBeAppliedMultipleTimes: false,
|
|
@@ -16583,8 +16690,8 @@ var messages$h = defineMessages({
|
|
|
16583
16690
|
}
|
|
16584
16691
|
});
|
|
16585
16692
|
|
|
16586
|
-
function ownKeys$
|
|
16587
|
-
function _objectSpread$
|
|
16693
|
+
function ownKeys$q(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16694
|
+
function _objectSpread$q(e) { for (var r = 1; r < arguments.length; r++) { var _context7, _context8; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context7 = ownKeys$q(Object(t), !0)).call(_context7, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context8 = ownKeys$q(Object(t))).call(_context8, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16588
16695
|
const DisabledGroupTitleLabel = _ref => {
|
|
16589
16696
|
let group = _ref.group,
|
|
16590
16697
|
groupTitleMessage = _ref.groupTitleMessage;
|
|
@@ -16647,7 +16754,7 @@ const statusOptions = intl => [{
|
|
|
16647
16754
|
label: intl.formatMessage(messages$h.apiIntegrationFilter),
|
|
16648
16755
|
value: TOOL_OPTIONS.OUT_OF_PLATFORM
|
|
16649
16756
|
}];
|
|
16650
|
-
const createChangeTypeOptions = intl => [{
|
|
16757
|
+
const createChangeTypeOptions$1 = intl => [{
|
|
16651
16758
|
value: ChangeType.ResourceUpdated,
|
|
16652
16759
|
label: intl.formatMessage(changeTypeMessages.updateEvent)
|
|
16653
16760
|
}, {
|
|
@@ -16692,7 +16799,7 @@ const createFilterDefinitions = memoize(_ref3 => {
|
|
|
16692
16799
|
members = _ref3.members,
|
|
16693
16800
|
tier = _ref3.tier;
|
|
16694
16801
|
const defaultResourceFilterOptions = getResourceOptions(intl, allowedResourceTypes);
|
|
16695
|
-
const defaultFilters = _objectSpread$
|
|
16802
|
+
const defaultFilters = _objectSpread$q(_objectSpread$q(_objectSpread$q(_objectSpread$q({
|
|
16696
16803
|
[FILTER_OPTION_KEYS.SOURCE]: {
|
|
16697
16804
|
label: intl.formatMessage(messages$h.changeThroughMCFilter),
|
|
16698
16805
|
disabledForBasic: true,
|
|
@@ -16715,7 +16822,7 @@ const createFilterDefinitions = memoize(_ref3 => {
|
|
|
16715
16822
|
[FILTER_OPTION_KEYS.CHANGE_TYPE]: {
|
|
16716
16823
|
label: intl.formatMessage(messages$h.changeTypeFilter),
|
|
16717
16824
|
filterTypes: createTypeOfChangeDefinitionsMap(intl, {
|
|
16718
|
-
options: _sortInstanceProperty(_context2 = createChangeTypeOptions(intl)).call(_context2, (a, b) => a.label.localeCompare(b.label))
|
|
16825
|
+
options: _sortInstanceProperty(_context2 = createChangeTypeOptions$1(intl)).call(_context2, (a, b) => a.label.localeCompare(b.label))
|
|
16719
16826
|
})
|
|
16720
16827
|
},
|
|
16721
16828
|
[FILTER_OPTION_KEYS.CHANGE]: {
|
|
@@ -16793,7 +16900,7 @@ const createFilterDefinitions = memoize(_ref3 => {
|
|
|
16793
16900
|
return _reduceInstanceProperty(availableFilters).call(availableFilters, (filterDefinitions, filter) => {
|
|
16794
16901
|
const filterConfig = getFilterConfig(defaultFilters, defaultResourceFilterOptions, intl, filter, tier);
|
|
16795
16902
|
if (filterConfig) {
|
|
16796
|
-
return _objectSpread$
|
|
16903
|
+
return _objectSpread$q(_objectSpread$q({}, filterDefinitions), {}, {
|
|
16797
16904
|
[filter.key]: filterConfig
|
|
16798
16905
|
});
|
|
16799
16906
|
}
|
|
@@ -17018,8 +17125,8 @@ var messages$f = defineMessages({
|
|
|
17018
17125
|
}
|
|
17019
17126
|
});
|
|
17020
17127
|
|
|
17021
|
-
function ownKeys$
|
|
17022
|
-
function _objectSpread$
|
|
17128
|
+
function ownKeys$p(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17129
|
+
function _objectSpread$p(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$p(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$p(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17023
17130
|
const TotalResults = _ref => {
|
|
17024
17131
|
let _ref$total = _ref.total,
|
|
17025
17132
|
total = _ref$total === void 0 ? 0 : _ref$total;
|
|
@@ -17029,7 +17136,7 @@ const TotalResults = _ref => {
|
|
|
17029
17136
|
const intl = useIntl();
|
|
17030
17137
|
return jsx(Text.Detail, {
|
|
17031
17138
|
tone: "secondary",
|
|
17032
|
-
intlMessage: _objectSpread$
|
|
17139
|
+
intlMessage: _objectSpread$p(_objectSpread$p({}, messages$f.title), {}, {
|
|
17033
17140
|
values: {
|
|
17034
17141
|
total: intl.formatNumber(total)
|
|
17035
17142
|
}
|
|
@@ -17224,8 +17331,8 @@ var messages$c = defineMessages({
|
|
|
17224
17331
|
}
|
|
17225
17332
|
});
|
|
17226
17333
|
|
|
17227
|
-
function ownKeys$
|
|
17228
|
-
function _objectSpread$
|
|
17334
|
+
function ownKeys$o(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17335
|
+
function _objectSpread$o(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$o(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$o(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17229
17336
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? _Reflect$construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
17230
17337
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function () { return !!t; })(); }
|
|
17231
17338
|
var UnexpectedErrorSVG = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQ5IiBoZWlnaHQ9IjIyNyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHJlY3QgaWQ9IlVuZXhwZWN0ZWRFcnJvclNWRy1jIiB4PSIwIiB5PSIyMjYuNjk0IiB3aWR0aD0iMjQ4Ljc3NSIgaGVpZ2h0PSIyLjQ1MSIgcng9IjEuMjI1Ii8+PHBhdGggaWQ9IlVuZXhwZWN0ZWRFcnJvclNWRy1hIiBkPSJNMCAwaDI1MHYyMjYuNjk0SDB6Ii8+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAtMykiPjxtYXNrIGlkPSJVbmV4cGVjdGVkRXJyb3JTVkctYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjVW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LTEuMjYtMS40MDZhMS4wNjMgMS4wNjMgMCAwMC0xLjUzNS0uMDZsLTUuNTcxIDUuMzVhMS4xNTUgMS4xNTUgMCAwMC0uMDU4IDEuNTg4bTI3IDI5LjAwMWwxLjI2IDEuNDA1Yy40MDYuNDUzIDEuMDk3LjQ4IDEuNTM1LjA2bDUuNTctNS4zNWMuNDM5LS40Mi40NjUtMS4xMzYuMDU5LTEuNTg5bC0xLjI2LTEuNDA1YTEuMDYzIDEuMDYzIDAgMDAtMS41MzUtLjA2bC01LjU3IDUuMzVhMS4xNTUgMS4xNTUgMCAwMC0uMDU5IDEuNTg5bS0yMS4xMDgtMTIuNzdsLS45OTggMS41MjNjLS4zMjMuNDktLjIwNCAxLjE2OS4yNjIgMS41MDdsNS45NCA0LjMxMmExLjAwMiAxLjAwMiAwIDAwMS40MzUtLjI3NmwxLTEuNTIyYy4zMjItLjQ5LjIwMy0xLjE3LS4yNjQtMS41MDlsLTUuOTQtNC4zMTFhMS4wMDMgMS4wMDMgMCAwMC0xLjQzNC4yNzZtLTI1LjAwMS0zMWwtLjk5OCAxLjUyMmMtLjMyMy40OTEtLjIwNCAxLjE3LjI2MiAxLjUwOGw1Ljk0IDQuMzEyYTEuMDAzIDEuMDAzIDAgMDAxLjQzNS0uMjc2bDEtMS41MjJjLjMyMi0uNDkuMjAzLTEuMTctLjI2NC0xLjUwOWwtNS45NC00LjMxMWExLjAwMyAxLjAwMyAwIDAwLTEuNDM0LjI3NiIgZmlsbD0iI0ZGRiIvPjwvZz48L3N2Zz4=";
|
|
@@ -17257,8 +17364,8 @@ let ErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
|
17257
17364
|
if (this.state.hasError) {
|
|
17258
17365
|
return jsx(MaintenancePageLayout, {
|
|
17259
17366
|
imageSrc: UnexpectedErrorSVG,
|
|
17260
|
-
title: jsx(FormattedMessage, _objectSpread$
|
|
17261
|
-
paragraph1: jsx(FormattedMessage, _objectSpread$
|
|
17367
|
+
title: jsx(FormattedMessage, _objectSpread$o({}, messages$c.title)),
|
|
17368
|
+
paragraph1: jsx(FormattedMessage, _objectSpread$o({}, messages$c.notifiedTeam))
|
|
17262
17369
|
});
|
|
17263
17370
|
}
|
|
17264
17371
|
return this.props.children;
|
|
@@ -17289,38 +17396,38 @@ function isAddBusinessUnitColumnToView(entity) {
|
|
|
17289
17396
|
return _includesInstanceProperty(_context2 = ADD_BUSINESS_UNIT_COLUMN_TO_VIEW).call(_context2, entity);
|
|
17290
17397
|
}
|
|
17291
17398
|
|
|
17292
|
-
function ownKeys$
|
|
17293
|
-
function _objectSpread$
|
|
17399
|
+
function ownKeys$n(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17400
|
+
function _objectSpread$n(e) { for (var r = 1; r < arguments.length; r++) { var _context4, _context5; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context4 = ownKeys$n(Object(t), !0)).call(_context4, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context5 = ownKeys$n(Object(t))).call(_context5, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17294
17401
|
const createColumnDefinitions = (columnsToBeShown, _inContextEntity) => {
|
|
17295
17402
|
var _context, _context2;
|
|
17296
17403
|
return _filterInstanceProperty(_context = _filterInstanceProperty(_context2 = [{
|
|
17297
17404
|
key: COLUMNS.MODIFIED_BY,
|
|
17298
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
17405
|
+
label: jsx(FormattedMessage, _objectSpread$n({}, messages$h.modifiedByColumn)),
|
|
17299
17406
|
width: 'minmax(210px, 1fr)',
|
|
17300
17407
|
shouldIgnoreRowClick: true
|
|
17301
17408
|
}, {
|
|
17302
17409
|
key: COLUMNS.LAST_MODIFIED,
|
|
17303
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
17410
|
+
label: jsx(FormattedMessage, _objectSpread$n({}, messages$h.dateColumn)),
|
|
17304
17411
|
width: '1fr',
|
|
17305
17412
|
shouldIgnoreRowClick: true
|
|
17306
17413
|
}, {
|
|
17307
17414
|
key: COLUMNS.ACTION,
|
|
17308
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
17415
|
+
label: jsx(FormattedMessage, _objectSpread$n({}, messages$h.actionColumn)),
|
|
17309
17416
|
width: '1fr',
|
|
17310
17417
|
shouldIgnoreRowClick: true
|
|
17311
17418
|
}, {
|
|
17312
17419
|
key: COLUMNS.CHANGES,
|
|
17313
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
17420
|
+
label: jsx(FormattedMessage, _objectSpread$n({}, messages$h.additionalInformationColumn)),
|
|
17314
17421
|
width: '4fr',
|
|
17315
17422
|
shouldIgnoreRowClick: true
|
|
17316
17423
|
}, {
|
|
17317
17424
|
key: COLUMNS.RESOURCE,
|
|
17318
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
17425
|
+
label: jsx(FormattedMessage, _objectSpread$n({}, messages$h.resourceColumn)),
|
|
17319
17426
|
width: 'minmax(150px, 2fr)',
|
|
17320
17427
|
shouldIgnoreRowClick: true
|
|
17321
17428
|
}, {
|
|
17322
17429
|
key: COLUMNS.RESOURCE_TYPE,
|
|
17323
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
17430
|
+
label: jsx(FormattedMessage, _objectSpread$n({}, messages$h.resourceTypeColumn)),
|
|
17324
17431
|
width: '1fr',
|
|
17325
17432
|
shouldIgnoreRowClick: true
|
|
17326
17433
|
}]).call(_context2, col => _includesInstanceProperty(columnsToBeShown).call(columnsToBeShown, col?.key))).call(_context, Boolean);
|
|
@@ -17337,17 +17444,17 @@ const hiddenColumnsDefinition = (inContextEntity, canViewBusinessUnits) => {
|
|
|
17337
17444
|
const addBusinessUnitColumnToView = !inContextEntity || isAddBusinessUnitColumnToView(inContextEntity);
|
|
17338
17445
|
const columns = [{
|
|
17339
17446
|
key: COLUMNS.VERSION,
|
|
17340
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
17447
|
+
label: jsx(FormattedMessage, _objectSpread$n({}, messages$h.versionColumn)),
|
|
17341
17448
|
width: '1fr',
|
|
17342
17449
|
shouldIgnoreRowClick: true
|
|
17343
17450
|
}, (!inContextEntity || addStoreColumnToInContextView) && {
|
|
17344
17451
|
key: COLUMNS.STORES,
|
|
17345
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
17452
|
+
label: jsx(FormattedMessage, _objectSpread$n({}, messages$h.storesColumn)),
|
|
17346
17453
|
width: '1fr',
|
|
17347
17454
|
shouldIgnoreRowClick: true
|
|
17348
17455
|
}, canViewBusinessUnits && addBusinessUnitColumnToView && {
|
|
17349
17456
|
key: COLUMNS.BUSINESS_UNIT,
|
|
17350
|
-
label: jsx(FormattedMessage, _objectSpread$
|
|
17457
|
+
label: jsx(FormattedMessage, _objectSpread$n({}, messages$h.businessUnitColumn)),
|
|
17351
17458
|
width: '1fr',
|
|
17352
17459
|
shouldIgnoreRowClick: true
|
|
17353
17460
|
}];
|
|
@@ -17439,8 +17546,8 @@ var messages$b = defineMessages({
|
|
|
17439
17546
|
}
|
|
17440
17547
|
});
|
|
17441
17548
|
|
|
17442
|
-
function ownKeys$
|
|
17443
|
-
function _objectSpread$
|
|
17549
|
+
function ownKeys$m(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17550
|
+
function _objectSpread$m(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$m(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$m(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17444
17551
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$b() { 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)."; }
|
|
17445
17552
|
var _ref$4 = process.env.NODE_ENV === "production" ? {
|
|
17446
17553
|
name: "125wnaz",
|
|
@@ -17467,8 +17574,8 @@ function InternalFilterToggle(props) {
|
|
|
17467
17574
|
isChecked: !props.internalChangeFilter || !props.internalChangeFilter.value?.[0]?.includes('excludeAll'),
|
|
17468
17575
|
size: "small",
|
|
17469
17576
|
onChange: event => {
|
|
17470
|
-
props.setSearchQuery(_objectSpread$
|
|
17471
|
-
filters: _objectSpread$
|
|
17577
|
+
props.setSearchQuery(_objectSpread$m(_objectSpread$m({}, props.searchQuery), {}, {
|
|
17578
|
+
filters: _objectSpread$m(_objectSpread$m({}, props.searchQuery.filters), {}, {
|
|
17472
17579
|
excludePlatformInitiatedChanges: [{
|
|
17473
17580
|
type: FILTER_TYPES.equalTo,
|
|
17474
17581
|
value: {
|
|
@@ -17499,7 +17606,7 @@ function InternalFilterToggle(props) {
|
|
|
17499
17606
|
children: [jsx(Text.Body, {
|
|
17500
17607
|
children: intl.formatMessage(messages$b.modalIntroText)
|
|
17501
17608
|
}), jsx(Text.Detail, {
|
|
17502
|
-
intlMessage: _objectSpread$
|
|
17609
|
+
intlMessage: _objectSpread$m(_objectSpread$m({}, messages$b.modalDiscountCodesText), {}, {
|
|
17503
17610
|
values: {
|
|
17504
17611
|
b: getBoldText,
|
|
17505
17612
|
br: getNewLine,
|
|
@@ -17507,7 +17614,7 @@ function InternalFilterToggle(props) {
|
|
|
17507
17614
|
}
|
|
17508
17615
|
})
|
|
17509
17616
|
}), jsx(Text.Body, {
|
|
17510
|
-
intlMessage: _objectSpread$
|
|
17617
|
+
intlMessage: _objectSpread$m(_objectSpread$m({}, messages$b.modalProductDiscountsText), {}, {
|
|
17511
17618
|
values: {
|
|
17512
17619
|
b: getBoldText,
|
|
17513
17620
|
br: getNewLine,
|
|
@@ -17515,7 +17622,7 @@ function InternalFilterToggle(props) {
|
|
|
17515
17622
|
}
|
|
17516
17623
|
})
|
|
17517
17624
|
}), jsx(Text.Body, {
|
|
17518
|
-
intlMessage: _objectSpread$
|
|
17625
|
+
intlMessage: _objectSpread$m(_objectSpread$m({}, messages$b.modalProductText), {}, {
|
|
17519
17626
|
values: {
|
|
17520
17627
|
b: getBoldText,
|
|
17521
17628
|
br: getNewLine,
|
|
@@ -17523,7 +17630,7 @@ function InternalFilterToggle(props) {
|
|
|
17523
17630
|
}
|
|
17524
17631
|
})
|
|
17525
17632
|
}), jsx(Text.Body, {
|
|
17526
|
-
intlMessage: _objectSpread$
|
|
17633
|
+
intlMessage: _objectSpread$m(_objectSpread$m({}, messages$b.modalShoppingListText), {}, {
|
|
17527
17634
|
values: {
|
|
17528
17635
|
a: getAnchorTag('https://docs.commercetools.com/api/general-concepts#eventual-consistency'),
|
|
17529
17636
|
b: getBoldText,
|
|
@@ -18097,6 +18204,17 @@ const messages$6 = defineMessages({
|
|
|
18097
18204
|
id: 'ChangeHistory.filters.tooltips.entityIdDialogHowToFindParagraph',
|
|
18098
18205
|
description: 'How to locate an Entity ID',
|
|
18099
18206
|
defaultMessage: 'Navigate to the detail page of the desired entity instance, where the ID will appear within the URL.'
|
|
18207
|
+
},
|
|
18208
|
+
/* FILTER GROUPINGS */
|
|
18209
|
+
filterGroupBasicTier: {
|
|
18210
|
+
id: 'ChangeHistory.filters.filterGroupBasicTier',
|
|
18211
|
+
description: 'Label for the basic tier filter group',
|
|
18212
|
+
defaultMessage: 'Basic'
|
|
18213
|
+
},
|
|
18214
|
+
filterGroupPremiumTier: {
|
|
18215
|
+
id: 'ChangeHistory.filters.filterGroupPremiumTier',
|
|
18216
|
+
description: 'Label for the premium tier filter group',
|
|
18217
|
+
defaultMessage: 'Premium only'
|
|
18100
18218
|
}
|
|
18101
18219
|
});
|
|
18102
18220
|
|
|
@@ -18166,8 +18284,8 @@ const filtersStyles = {
|
|
|
18166
18284
|
filtersActions: () => /*#__PURE__*/css("display:flex;justify-content:space-between;padding:", designTokens.spacingL, " ", designTokens.spacingXl, ";background-color:", designTokens.colorSurface, ";border-radius:0px;border-top:1px solid ", designTokens.colorNeutral90, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:filtersActions;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZpbHRlcnMuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXVEMkIiLCJmaWxlIjoiZmlsdGVycy5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBkZXNpZ25Ub2tlbnMgfSBmcm9tICdAY29tbWVyY2V0b29scy1mcm9udGVuZC91aS1raXQnO1xuXG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IGZpbHRlcnNTdHlsZXMgPSB7XG4gIHRhZ0NvbXBvbmVudFdyYXBwZXI6IGNzc2BcbiAgICBwYWRkaW5nOiAke2Rlc2lnblRva2Vucy5zcGFjaW5nU30gJHtkZXNpZ25Ub2tlbnMuc3BhY2luZ1N9IDAgMDtcbiAgYCxcbiAgZmlsdGVyc0NvbXBvbmVudDogKHsgaXNFZGl0TW9kZSB9KSA9PiBjc3NgXG4gICAgLyoqIHRoZSBzaGFkb3dGb3JDYXJkV2hlblJhaXNlZCB2YXJpYWJsZSBpcyBkaWZmZXJlbnQgYmV0d2Vl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DBweDtcbiAgICBib3JkZXItdG9wOiAxcHggc29saWQgJHtkZXNpZ25Ub2tlbnMuY29sb3JOZXV0cmFsOTB9O1xuICBgLFxufTtcblxuZXhwb3J0IGRlZmF1bHQgZmlsdGVyc1N0eWxlcztcbiJdfQ== */")
|
|
18167
18285
|
};
|
|
18168
18286
|
|
|
18169
|
-
function ownKeys$
|
|
18170
|
-
function _objectSpread$
|
|
18287
|
+
function ownKeys$l(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18288
|
+
function _objectSpread$l(e) { for (var r = 1; r < arguments.length; r++) { var _context9, _context10; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context9 = ownKeys$l(Object(t), !0)).call(_context9, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context10 = ownKeys$l(Object(t))).call(_context10, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18171
18289
|
const FilterFieldInputs = _ref => {
|
|
18172
18290
|
let fieldName = _ref.fieldName,
|
|
18173
18291
|
fieldFilters = _ref.fieldFilters,
|
|
@@ -18181,14 +18299,14 @@ const FilterFieldInputs = _ref => {
|
|
|
18181
18299
|
label: filterConfig.label,
|
|
18182
18300
|
tooltip: filterConfig.tooltip,
|
|
18183
18301
|
onAddFilter: options => {
|
|
18184
|
-
onAddFilterToField(_objectSpread$
|
|
18302
|
+
onAddFilterToField(_objectSpread$l(_objectSpread$l({}, options), {}, {
|
|
18185
18303
|
fieldName
|
|
18186
18304
|
}));
|
|
18187
18305
|
},
|
|
18188
|
-
onRemoveFilter: options => onRemoveFilterFromField(_objectSpread$
|
|
18306
|
+
onRemoveFilter: options => onRemoveFilterFromField(_objectSpread$l(_objectSpread$l({}, options), {}, {
|
|
18189
18307
|
fieldName
|
|
18190
18308
|
})),
|
|
18191
|
-
onUpdateFilter: options => onUpdateFilterForField(_objectSpread$
|
|
18309
|
+
onUpdateFilter: options => onUpdateFilterForField(_objectSpread$l(_objectSpread$l({}, options), {}, {
|
|
18192
18310
|
fieldName
|
|
18193
18311
|
}))
|
|
18194
18312
|
}, fieldName);
|
|
@@ -18401,18 +18519,18 @@ const Filters = _ref4 => {
|
|
|
18401
18519
|
});
|
|
18402
18520
|
};
|
|
18403
18521
|
|
|
18404
|
-
function ownKeys$
|
|
18405
|
-
function _objectSpread$
|
|
18522
|
+
function ownKeys$k(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18523
|
+
function _objectSpread$k(e) { for (var r = 1; r < arguments.length; r++) { var _context5, _context6; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context5 = ownKeys$k(Object(t), !0)).call(_context5, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context6 = ownKeys$k(Object(t))).call(_context6, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18406
18524
|
function mergeFieldToCorrectPosition(fields, fieldName, fieldValue) {
|
|
18407
18525
|
var _context;
|
|
18408
|
-
if (has(fields, fieldName)) return _reduceInstanceProperty(_context = _Object$keys(fields)).call(_context, (acc, name) => _objectSpread$
|
|
18526
|
+
if (has(fields, fieldName)) return _reduceInstanceProperty(_context = _Object$keys(fields)).call(_context, (acc, name) => _objectSpread$k(_objectSpread$k({}, acc), name === fieldName && fieldValue.length > 0 ? {
|
|
18409
18527
|
[name]: fieldValue
|
|
18410
18528
|
} : {
|
|
18411
18529
|
[name]: fields[name]
|
|
18412
18530
|
}), {});
|
|
18413
18531
|
|
|
18414
18532
|
// If the key is not present yet, add it at the bottom
|
|
18415
|
-
return _objectSpread$
|
|
18533
|
+
return _objectSpread$k(_objectSpread$k({}, fields), {}, {
|
|
18416
18534
|
[fieldName]: fieldValue
|
|
18417
18535
|
});
|
|
18418
18536
|
}
|
|
@@ -18451,7 +18569,7 @@ const FiltersContainerOld = _ref => {
|
|
|
18451
18569
|
const intl = useIntl();
|
|
18452
18570
|
useEffect(() => {
|
|
18453
18571
|
if (!isEditMode) {
|
|
18454
|
-
setState(prevState => _objectSpread$
|
|
18572
|
+
setState(prevState => _objectSpread$k(_objectSpread$k({}, prevState), {}, {
|
|
18455
18573
|
filteredFields: filteredFields
|
|
18456
18574
|
}));
|
|
18457
18575
|
}
|
|
@@ -18462,7 +18580,7 @@ const FiltersContainerOld = _ref => {
|
|
|
18462
18580
|
const detectChangesInFilters = (nextState, prevState) => {
|
|
18463
18581
|
const changesInFiltersDraft = !isNil$1(nextState.filteredFields) && !deepEqual(prevState.filteredFields, nextState.filteredFields);
|
|
18464
18582
|
const changesInFiltersApplied = !isNil$1(nextState.filteredFields) && !deepEqual(nextState.filteredFields, filteredFields);
|
|
18465
|
-
if (changesInFiltersDraft) return _objectSpread$
|
|
18583
|
+
if (changesInFiltersDraft) return _objectSpread$k({
|
|
18466
18584
|
hasChangesInFilters: changesInFiltersApplied
|
|
18467
18585
|
}, nextState);
|
|
18468
18586
|
return nextState;
|
|
@@ -18508,7 +18626,7 @@ const FiltersContainerOld = _ref => {
|
|
|
18508
18626
|
fieldName = _ref4[0],
|
|
18509
18627
|
fieldValues = _ref4[1];
|
|
18510
18628
|
const nonEmptyFilters = _filterInstanceProperty(fieldValues).call(fieldValues, filterEmptyFilters(fieldName));
|
|
18511
|
-
if (nonEmptyFilters.length) return _objectSpread$
|
|
18629
|
+
if (nonEmptyFilters.length) return _objectSpread$k(_objectSpread$k({}, fields), {}, {
|
|
18512
18630
|
[fieldName]: nonEmptyFilters
|
|
18513
18631
|
});
|
|
18514
18632
|
return fields;
|
|
@@ -18562,7 +18680,7 @@ const FiltersContainerOld = _ref => {
|
|
|
18562
18680
|
filters: filteredFields,
|
|
18563
18681
|
page: 1
|
|
18564
18682
|
});
|
|
18565
|
-
setState(prevState => _objectSpread$
|
|
18683
|
+
setState(prevState => _objectSpread$k(_objectSpread$k({}, prevState), {}, {
|
|
18566
18684
|
hasChangesInFilters: false
|
|
18567
18685
|
}));
|
|
18568
18686
|
} else setState(prevState => detectChangesInFilters({
|
|
@@ -18643,34 +18761,34 @@ const FiltersContainerOld = _ref => {
|
|
|
18643
18761
|
const nextFilteredFields = removeFilterFromField(state.filteredFields, fieldName, index);
|
|
18644
18762
|
|
|
18645
18763
|
// Ensure the required date range filter is present
|
|
18646
|
-
const nextFilteredFieldsWithDateRange = _objectSpread$
|
|
18764
|
+
const nextFilteredFieldsWithDateRange = _objectSpread$k(_objectSpread$k({}, nextFilteredFields), {}, {
|
|
18647
18765
|
[FILTER_OPTION_KEYS.DATE_RANGE]: state.filteredFields[FILTER_OPTION_KEYS.DATE_RANGE]
|
|
18648
18766
|
});
|
|
18649
18767
|
onUpdateSearch({
|
|
18650
18768
|
filters: nextFilteredFieldsWithDateRange,
|
|
18651
18769
|
page: 1
|
|
18652
18770
|
});
|
|
18653
|
-
setState(prevState => _objectSpread$
|
|
18771
|
+
setState(prevState => _objectSpread$k(_objectSpread$k({}, prevState), {}, {
|
|
18654
18772
|
filteredFields: nextFilteredFieldsWithDateRange,
|
|
18655
18773
|
hasChangesInFilters: false
|
|
18656
18774
|
}));
|
|
18657
18775
|
};
|
|
18658
18776
|
const shouldShowClearAll = () => {
|
|
18659
|
-
if (state.filteredFields && _Object$keys(state.filteredFields).length === 1 && state.filteredFields
|
|
18777
|
+
if (state.filteredFields && _Object$keys(state.filteredFields).length === 1 && state.filteredFields?.createdAt) {
|
|
18660
18778
|
return false;
|
|
18661
18779
|
}
|
|
18662
18780
|
return state.filteredFields && _Object$keys(state.filteredFields).length > 0;
|
|
18663
18781
|
};
|
|
18664
18782
|
const handleClearAll = () => {
|
|
18665
|
-
setState(prevState => _objectSpread$
|
|
18783
|
+
setState(prevState => _objectSpread$k(_objectSpread$k({}, prevState), {}, {
|
|
18666
18784
|
filteredFields: {
|
|
18667
|
-
createdAt: prevState.filteredFields
|
|
18785
|
+
createdAt: prevState.filteredFields?.createdAt
|
|
18668
18786
|
},
|
|
18669
18787
|
hasChangesInFilters: false
|
|
18670
18788
|
}));
|
|
18671
18789
|
onUpdateSearch({
|
|
18672
18790
|
filters: {
|
|
18673
|
-
createdAt: state.filteredFields
|
|
18791
|
+
createdAt: state.filteredFields?.createdAt
|
|
18674
18792
|
},
|
|
18675
18793
|
page: 1
|
|
18676
18794
|
});
|
|
@@ -18687,15 +18805,15 @@ const FiltersContainerOld = _ref => {
|
|
|
18687
18805
|
scale: "m",
|
|
18688
18806
|
children: [jsx(DateRangeSelector, {
|
|
18689
18807
|
isDisabled: isCurrentRecordsTotalEmpty,
|
|
18690
|
-
dateFilter: filteredFields[FILTER_OPTION_KEYS.DATE_RANGE][0],
|
|
18808
|
+
dateFilter: filteredFields?.[FILTER_OPTION_KEYS.DATE_RANGE]?.[0],
|
|
18691
18809
|
onDateChange: _ref14 => {
|
|
18692
18810
|
let from = _ref14.from,
|
|
18693
18811
|
to = _ref14.to,
|
|
18694
18812
|
selectedFilterType = _ref14.selectedFilterType;
|
|
18695
|
-
setSearchQuery(_objectSpread$
|
|
18813
|
+
setSearchQuery(_objectSpread$k(_objectSpread$k({}, searchQuery), {}, {
|
|
18696
18814
|
searchText: '',
|
|
18697
18815
|
page: 1,
|
|
18698
|
-
filters: _objectSpread$
|
|
18816
|
+
filters: _objectSpread$k(_objectSpread$k({}, searchQuery.filters), {}, {
|
|
18699
18817
|
createdAt: [{
|
|
18700
18818
|
selectedFilterType,
|
|
18701
18819
|
type: 'range',
|
|
@@ -18745,6 +18863,26 @@ const FiltersContainerOld = _ref => {
|
|
|
18745
18863
|
};
|
|
18746
18864
|
FiltersContainerOld.displayName = 'FiltersContainerOld';
|
|
18747
18865
|
|
|
18866
|
+
const FILTER_GROUP_KEYS = {
|
|
18867
|
+
basicTier: 'basicTier',
|
|
18868
|
+
premiumTier: 'premiumTier'
|
|
18869
|
+
};
|
|
18870
|
+
const FILTER_GROUPS = [{
|
|
18871
|
+
key: FILTER_GROUP_KEYS.basicTier,
|
|
18872
|
+
label: jsx(Text.Caption, {
|
|
18873
|
+
fontWeight: "medium",
|
|
18874
|
+
tone: "secondary",
|
|
18875
|
+
intlMessage: messages$6.filterGroupBasicTier
|
|
18876
|
+
})
|
|
18877
|
+
}, {
|
|
18878
|
+
key: FILTER_GROUP_KEYS.premiumTier,
|
|
18879
|
+
label: jsx(Text.Caption, {
|
|
18880
|
+
fontWeight: "medium",
|
|
18881
|
+
tone: "secondary",
|
|
18882
|
+
intlMessage: messages$6.filterGroupPremiumTier
|
|
18883
|
+
})
|
|
18884
|
+
}];
|
|
18885
|
+
|
|
18748
18886
|
function CustomerIdTooltipDialogIcon() {
|
|
18749
18887
|
return jsxs("svg", {
|
|
18750
18888
|
width: "270",
|
|
@@ -19274,6 +19412,74 @@ const FilterApplyButton = _ref => {
|
|
|
19274
19412
|
});
|
|
19275
19413
|
};
|
|
19276
19414
|
|
|
19415
|
+
function ownKeys$j(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19416
|
+
function _objectSpread$j(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$j(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$j(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19417
|
+
const createRadioInputFilterConfig = _ref => {
|
|
19418
|
+
let key = _ref.key,
|
|
19419
|
+
label = _ref.label,
|
|
19420
|
+
groupKey = _ref.groupKey,
|
|
19421
|
+
filterValue = _ref.filterValue,
|
|
19422
|
+
setFilterValue = _ref.setFilterValue,
|
|
19423
|
+
searchQuery = _ref.searchQuery,
|
|
19424
|
+
onUpdateSearch = _ref.onUpdateSearch,
|
|
19425
|
+
removeFilter = _ref.removeFilter,
|
|
19426
|
+
options = _ref.options;
|
|
19427
|
+
const currentFilter = filterValue?.[key];
|
|
19428
|
+
const currentFilterValue = currentFilter?.appliedFilterValues?.[0]?.value;
|
|
19429
|
+
const storedFilter = searchQuery.filters?.[key];
|
|
19430
|
+
const storedFilterValue = storedFilter?.appliedFilterValues?.[0]?.value;
|
|
19431
|
+
const getCurrentValue = () => {
|
|
19432
|
+
return currentFilterValue ?? storedFilterValue;
|
|
19433
|
+
};
|
|
19434
|
+
return {
|
|
19435
|
+
key,
|
|
19436
|
+
label,
|
|
19437
|
+
groupKey,
|
|
19438
|
+
filterMenuConfiguration: {
|
|
19439
|
+
renderMenuBody: () => {
|
|
19440
|
+
return jsx(RadioInput.Group, {
|
|
19441
|
+
value: getCurrentValue(),
|
|
19442
|
+
onChange: event => setFilterValue(_objectSpread$j(_objectSpread$j({}, filterValue), {}, {
|
|
19443
|
+
[key]: {
|
|
19444
|
+
appliedFilterValues: [{
|
|
19445
|
+
value: event.target.value
|
|
19446
|
+
}]
|
|
19447
|
+
}
|
|
19448
|
+
})),
|
|
19449
|
+
children: _mapInstanceProperty(options).call(options, option => jsx(RadioInput.Option, {
|
|
19450
|
+
value: option.value,
|
|
19451
|
+
children: option.label
|
|
19452
|
+
}, option.value))
|
|
19453
|
+
});
|
|
19454
|
+
},
|
|
19455
|
+
renderApplyButton: () => {
|
|
19456
|
+
return jsx(FilterApplyButton, {
|
|
19457
|
+
isDisabled: areFiltersEqual(currentFilter, storedFilter),
|
|
19458
|
+
onApply: () => {
|
|
19459
|
+
if (currentFilterValue) {
|
|
19460
|
+
onUpdateSearch({
|
|
19461
|
+
filters: _objectSpread$j(_objectSpread$j({}, searchQuery.filters), {}, {
|
|
19462
|
+
[key]: {
|
|
19463
|
+
appliedFilterValues: [{
|
|
19464
|
+
value: currentFilterValue
|
|
19465
|
+
}]
|
|
19466
|
+
}
|
|
19467
|
+
})
|
|
19468
|
+
});
|
|
19469
|
+
} else {
|
|
19470
|
+
removeFilter(key);
|
|
19471
|
+
}
|
|
19472
|
+
}
|
|
19473
|
+
});
|
|
19474
|
+
},
|
|
19475
|
+
onClearRequest: () => {
|
|
19476
|
+
setFilterValue({});
|
|
19477
|
+
removeFilter(key);
|
|
19478
|
+
}
|
|
19479
|
+
}
|
|
19480
|
+
};
|
|
19481
|
+
};
|
|
19482
|
+
|
|
19277
19483
|
const OperatorsInput = _ref => {
|
|
19278
19484
|
let operatorValue = _ref.operatorValue,
|
|
19279
19485
|
onChange = _ref.onChange,
|
|
@@ -19301,69 +19507,66 @@ const OperatorsInput = _ref => {
|
|
|
19301
19507
|
});
|
|
19302
19508
|
};
|
|
19303
19509
|
|
|
19304
|
-
function ownKeys$
|
|
19305
|
-
function _objectSpread$
|
|
19510
|
+
function ownKeys$i(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19511
|
+
function _objectSpread$i(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$i(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$i(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19306
19512
|
const createSelectFilterConfig = _ref => {
|
|
19307
19513
|
let key = _ref.key,
|
|
19308
19514
|
label = _ref.label,
|
|
19515
|
+
groupKey = _ref.groupKey,
|
|
19309
19516
|
tooltip = _ref.tooltip,
|
|
19310
|
-
options = _ref.options,
|
|
19311
|
-
operatorOptions = _ref.operatorOptions,
|
|
19312
|
-
isMulti = _ref.isMulti,
|
|
19313
|
-
isSearchable = _ref.isSearchable,
|
|
19314
19517
|
filterValue = _ref.filterValue,
|
|
19315
19518
|
setFilterValue = _ref.setFilterValue,
|
|
19316
19519
|
searchQuery = _ref.searchQuery,
|
|
19317
19520
|
onUpdateSearch = _ref.onUpdateSearch,
|
|
19318
|
-
removeFilter = _ref.removeFilter
|
|
19319
|
-
|
|
19320
|
-
|
|
19321
|
-
|
|
19322
|
-
|
|
19323
|
-
|
|
19324
|
-
|
|
19325
|
-
|
|
19326
|
-
|
|
19327
|
-
|
|
19328
|
-
|
|
19329
|
-
|
|
19330
|
-
|
|
19331
|
-
|
|
19332
|
-
|
|
19333
|
-
const
|
|
19334
|
-
|
|
19335
|
-
operatorLabel = _currentOperator.label;
|
|
19521
|
+
removeFilter = _ref.removeFilter,
|
|
19522
|
+
options = _ref.options,
|
|
19523
|
+
operatorOptions = _ref.operatorOptions,
|
|
19524
|
+
isMulti = _ref.isMulti,
|
|
19525
|
+
isSearchable = _ref.isSearchable;
|
|
19526
|
+
// Get operator from local state, search query, or default to first option
|
|
19527
|
+
const operatorFromLocalState = filterValue?.[key]?.operator;
|
|
19528
|
+
const operatorFromSearchQuery = searchQuery.filters?.[key]?.operator;
|
|
19529
|
+
|
|
19530
|
+
// Find matching operator option or use first option as fallback
|
|
19531
|
+
const appliedOperator = _findInstanceProperty(operatorOptions).call(operatorOptions, option => option.value === operatorFromSearchQuery) || operatorOptions[0];
|
|
19532
|
+
const currentOperator = _findInstanceProperty(operatorOptions).call(operatorOptions, option => option.value === operatorFromLocalState) || appliedOperator;
|
|
19533
|
+
const operatorValue = currentOperator.value;
|
|
19534
|
+
const currentFilter = filterValue?.[key];
|
|
19535
|
+
const currentFilterValue = currentFilter?.appliedFilterValues;
|
|
19536
|
+
const storedFilter = searchQuery.filters?.[key];
|
|
19537
|
+
const storedFilterValue = storedFilter?.appliedFilterValues;
|
|
19336
19538
|
const getCurrentValues = () => {
|
|
19337
19539
|
// Try to get values from local state first
|
|
19338
|
-
|
|
19339
|
-
|
|
19340
|
-
return isMulti ? localValues : localValues[0] ?? '';
|
|
19341
|
-
}
|
|
19342
|
-
|
|
19343
|
-
// Fall back to stored search query values
|
|
19344
|
-
const filterStoredValue = searchQuery.filters?.[key]?.[0]?.value;
|
|
19345
|
-
if (filterStoredValue && typeof filterStoredValue === 'object' && 'value' in filterStoredValue && _Array$isArray(filterStoredValue.value)) {
|
|
19346
|
-
const storedValues = filterStoredValue.value;
|
|
19347
|
-
return isMulti ? storedValues : storedValues[0] ?? '';
|
|
19540
|
+
if (currentFilterValue) {
|
|
19541
|
+
return isMulti ? currentFilterValue?.map(appliedFilter => appliedFilter?.value) : currentFilterValue?.[0].value ?? '';
|
|
19348
19542
|
}
|
|
19349
19543
|
|
|
19350
|
-
//
|
|
19351
|
-
return isMulti ? [] : '';
|
|
19544
|
+
// Fall back to stored search query or default values
|
|
19545
|
+
return isMulti ? storedFilterValue?.map(storedValue => storedValue.value) ?? [] : storedFilterValue?.[0].value ?? '';
|
|
19352
19546
|
};
|
|
19353
19547
|
return {
|
|
19354
19548
|
key,
|
|
19355
19549
|
label,
|
|
19356
19550
|
tooltip,
|
|
19357
|
-
|
|
19551
|
+
groupKey,
|
|
19552
|
+
operatorLabel: appliedOperator.label,
|
|
19358
19553
|
filterMenuConfiguration: {
|
|
19359
19554
|
renderOperatorsInput: () => jsx(OperatorsInput, {
|
|
19360
19555
|
operatorValue: operatorValue,
|
|
19361
19556
|
onChange: newOperatorValue => {
|
|
19362
|
-
|
|
19363
|
-
|
|
19364
|
-
|
|
19365
|
-
|
|
19366
|
-
|
|
19557
|
+
if (currentFilter) {
|
|
19558
|
+
setFilterValue(_objectSpread$i(_objectSpread$i({}, filterValue), {}, {
|
|
19559
|
+
[key]: _objectSpread$i(_objectSpread$i({}, currentFilter), {}, {
|
|
19560
|
+
operator: newOperatorValue.value
|
|
19561
|
+
})
|
|
19562
|
+
}));
|
|
19563
|
+
} else {
|
|
19564
|
+
setFilterValue(_objectSpread$i(_objectSpread$i({}, filterValue), {}, {
|
|
19565
|
+
[key]: _objectSpread$i(_objectSpread$i({}, storedFilter), {}, {
|
|
19566
|
+
operator: newOperatorValue.value
|
|
19567
|
+
})
|
|
19568
|
+
}));
|
|
19569
|
+
}
|
|
19367
19570
|
},
|
|
19368
19571
|
options: operatorOptions
|
|
19369
19572
|
}),
|
|
@@ -19381,13 +19584,14 @@ const createSelectFilterConfig = _ref => {
|
|
|
19381
19584
|
onChange: event => {
|
|
19382
19585
|
/* Event.target.value is either a single string (if isMulti=false) or an array of strings (if isMulti=true). We will unify to always store an array in state.*/
|
|
19383
19586
|
const newValue = event.target.value;
|
|
19384
|
-
const valueArray = !isMulti && typeof newValue === 'string' ? [
|
|
19385
|
-
|
|
19587
|
+
const valueArray = !isMulti && typeof newValue === 'string' ? [{
|
|
19588
|
+
value: newValue
|
|
19589
|
+
}] : _Array$isArray(newValue) ? newValue?.map(arrValue => ({
|
|
19590
|
+
value: arrValue
|
|
19591
|
+
})) : [];
|
|
19592
|
+
setFilterValue(_objectSpread$i(_objectSpread$i({}, filterValue), {}, {
|
|
19386
19593
|
[key]: {
|
|
19387
|
-
operator:
|
|
19388
|
-
value: operatorValue,
|
|
19389
|
-
label: operatorLabel
|
|
19390
|
-
},
|
|
19594
|
+
operator: operatorValue,
|
|
19391
19595
|
appliedFilterValues: valueArray
|
|
19392
19596
|
}
|
|
19393
19597
|
}));
|
|
@@ -19395,21 +19599,20 @@ const createSelectFilterConfig = _ref => {
|
|
|
19395
19599
|
});
|
|
19396
19600
|
},
|
|
19397
19601
|
renderApplyButton: () => {
|
|
19398
|
-
const currentFilter = filterValue[key];
|
|
19399
|
-
const currentValue = currentFilter?.appliedFilterValues;
|
|
19400
|
-
const storedValue = searchQuery.filters?.[key]?.[0].value?.value;
|
|
19401
19602
|
return jsx(FilterApplyButton, {
|
|
19402
|
-
isDisabled:
|
|
19603
|
+
isDisabled: currentFilterValue === undefined || currentFilterValue.length === 0 && isNil$1(storedFilterValue) || areFiltersEqual(currentFilter, storedFilter),
|
|
19403
19604
|
onApply: () => {
|
|
19404
|
-
if (
|
|
19605
|
+
if (currentFilterValue && currentFilterValue.length > 0) {
|
|
19405
19606
|
onUpdateSearch({
|
|
19406
|
-
filters: _objectSpread$
|
|
19407
|
-
[key]:
|
|
19408
|
-
|
|
19409
|
-
|
|
19410
|
-
|
|
19411
|
-
|
|
19412
|
-
|
|
19607
|
+
filters: _objectSpread$i(_objectSpread$i({}, searchQuery.filters), {}, {
|
|
19608
|
+
[key]: _objectSpread$i(_objectSpread$i({}, currentFilter), {}, {
|
|
19609
|
+
appliedFilterValues: currentFilterValue?.map(_ref2 => {
|
|
19610
|
+
let value = _ref2.value;
|
|
19611
|
+
return {
|
|
19612
|
+
value
|
|
19613
|
+
};
|
|
19614
|
+
})
|
|
19615
|
+
})
|
|
19413
19616
|
})
|
|
19414
19617
|
});
|
|
19415
19618
|
} else {
|
|
@@ -19426,11 +19629,12 @@ const createSelectFilterConfig = _ref => {
|
|
|
19426
19629
|
};
|
|
19427
19630
|
};
|
|
19428
19631
|
|
|
19429
|
-
function ownKeys$
|
|
19430
|
-
function _objectSpread$
|
|
19632
|
+
function ownKeys$h(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19633
|
+
function _objectSpread$h(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$h(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$h(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19431
19634
|
const createTextFilterConfig = _ref => {
|
|
19432
19635
|
let key = _ref.key,
|
|
19433
19636
|
label = _ref.label,
|
|
19637
|
+
groupKey = _ref.groupKey,
|
|
19434
19638
|
tooltip = _ref.tooltip,
|
|
19435
19639
|
filterValue = _ref.filterValue,
|
|
19436
19640
|
setFilterValue = _ref.setFilterValue,
|
|
@@ -19440,10 +19644,11 @@ const createTextFilterConfig = _ref => {
|
|
|
19440
19644
|
return {
|
|
19441
19645
|
key,
|
|
19442
19646
|
label,
|
|
19647
|
+
groupKey,
|
|
19443
19648
|
tooltip,
|
|
19444
19649
|
filterMenuConfiguration: {
|
|
19445
19650
|
renderMenuBody: () => {
|
|
19446
|
-
const rawValue = filterValue?.[key]?.appliedFilterValues?.[0].value ?? searchQuery.filters?.[key]?.[0]
|
|
19651
|
+
const rawValue = filterValue?.[key]?.appliedFilterValues?.[0].value ?? searchQuery.filters?.[key]?.appliedFilterValues?.[0].value ?? '';
|
|
19447
19652
|
|
|
19448
19653
|
// ensure textValue is a string to appease typescript
|
|
19449
19654
|
const textValue = typeof rawValue === 'string' ? rawValue : '';
|
|
@@ -19451,9 +19656,8 @@ const createTextFilterConfig = _ref => {
|
|
|
19451
19656
|
value: textValue,
|
|
19452
19657
|
onChange: event => {
|
|
19453
19658
|
var _context;
|
|
19454
|
-
setFilterValue(_objectSpread$
|
|
19659
|
+
setFilterValue(_objectSpread$h(_objectSpread$h({}, filterValue), {}, {
|
|
19455
19660
|
[key]: {
|
|
19456
|
-
operator: FILTER_TYPES.equalTo,
|
|
19457
19661
|
appliedFilterValues: [{
|
|
19458
19662
|
value: _trimInstanceProperty(_context = event.target.value).call(_context)
|
|
19459
19663
|
}]
|
|
@@ -19465,17 +19669,18 @@ const createTextFilterConfig = _ref => {
|
|
|
19465
19669
|
renderOperatorsInput: () => tooltip,
|
|
19466
19670
|
renderApplyButton: () => {
|
|
19467
19671
|
const currentValue = filterValue?.[key]?.appliedFilterValues?.[0].value;
|
|
19468
|
-
const storedValue = searchQuery.filters?.[key]?.[0]
|
|
19672
|
+
const storedValue = searchQuery.filters?.[key]?.appliedFilterValues?.[0].value;
|
|
19469
19673
|
return jsx(FilterApplyButton, {
|
|
19470
19674
|
isDisabled: currentValue === undefined || currentValue === '' && isNil$1(storedValue) || currentValue === storedValue,
|
|
19471
19675
|
onApply: () => {
|
|
19472
19676
|
if (currentValue) {
|
|
19473
19677
|
onUpdateSearch({
|
|
19474
|
-
filters: _objectSpread$
|
|
19475
|
-
[key]:
|
|
19476
|
-
|
|
19477
|
-
|
|
19478
|
-
|
|
19678
|
+
filters: _objectSpread$h(_objectSpread$h({}, searchQuery.filters), {}, {
|
|
19679
|
+
[key]: {
|
|
19680
|
+
appliedFilterValues: [{
|
|
19681
|
+
value: currentValue ?? ''
|
|
19682
|
+
}]
|
|
19683
|
+
}
|
|
19479
19684
|
})
|
|
19480
19685
|
});
|
|
19481
19686
|
} else {
|
|
@@ -19485,15 +19690,15 @@ const createTextFilterConfig = _ref => {
|
|
|
19485
19690
|
});
|
|
19486
19691
|
},
|
|
19487
19692
|
onClearRequest: () => {
|
|
19488
|
-
setFilterValue(_objectSpread$
|
|
19693
|
+
setFilterValue(_objectSpread$h({}, omit(filterValue, [key])));
|
|
19489
19694
|
removeFilter(key);
|
|
19490
19695
|
}
|
|
19491
19696
|
}
|
|
19492
19697
|
};
|
|
19493
19698
|
};
|
|
19494
19699
|
|
|
19495
|
-
function ownKeys$
|
|
19496
|
-
function _objectSpread$
|
|
19700
|
+
function ownKeys$g(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19701
|
+
function _objectSpread$g(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$g(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$g(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19497
19702
|
const customerIdExternalLink = {
|
|
19498
19703
|
a: linkText => jsx(Link, {
|
|
19499
19704
|
isExternal: true,
|
|
@@ -19501,12 +19706,23 @@ const customerIdExternalLink = {
|
|
|
19501
19706
|
children: linkText
|
|
19502
19707
|
}, 'cust-id-ext-docs-link')
|
|
19503
19708
|
};
|
|
19709
|
+
const createChangeTypeOptions = intl => [{
|
|
19710
|
+
value: ChangeType.ResourceCreated,
|
|
19711
|
+
label: intl.formatMessage(changeTypeMessages.createEvent)
|
|
19712
|
+
}, {
|
|
19713
|
+
value: ChangeType.ResourceDeleted,
|
|
19714
|
+
label: intl.formatMessage(changeTypeMessages.removeEvent)
|
|
19715
|
+
}, {
|
|
19716
|
+
value: ChangeType.ResourceUpdated,
|
|
19717
|
+
label: intl.formatMessage(changeTypeMessages.updateEvent)
|
|
19718
|
+
}];
|
|
19504
19719
|
|
|
19505
19720
|
// Create all the filter configurations for the app
|
|
19506
19721
|
const createFilterConfigurations = _ref => {
|
|
19507
19722
|
let allowedResourceTypes = _ref.allowedResourceTypes,
|
|
19508
19723
|
intl = _ref.intl,
|
|
19509
19724
|
commonFilterProps = _ref.commonFilterProps;
|
|
19725
|
+
const changeTypeOptions = createChangeTypeOptions(intl);
|
|
19510
19726
|
const resourceTypeOptions = getResourceOptions(intl, allowedResourceTypes);
|
|
19511
19727
|
const RESOURCE_TYPE_OPERATOR_OPTIONS = [{
|
|
19512
19728
|
value: FILTER_OPERATOR.in,
|
|
@@ -19515,15 +19731,17 @@ const createFilterConfigurations = _ref => {
|
|
|
19515
19731
|
value: FILTER_OPERATOR.missingIn,
|
|
19516
19732
|
label: intl.formatMessage(filterTypeMissingMessages.missingIn)
|
|
19517
19733
|
}];
|
|
19518
|
-
return [createSelectFilterConfig(_objectSpread$
|
|
19734
|
+
return [createSelectFilterConfig(_objectSpread$g({
|
|
19519
19735
|
key: FILTER_KEY.RESOURCE_TYPE,
|
|
19736
|
+
groupKey: FILTER_GROUP_KEYS.basicTier,
|
|
19520
19737
|
label: intl.formatMessage(messages$h.resourceTypeFilter),
|
|
19521
19738
|
options: resourceTypeOptions,
|
|
19522
19739
|
operatorOptions: RESOURCE_TYPE_OPERATOR_OPTIONS,
|
|
19523
19740
|
isMulti: true,
|
|
19524
19741
|
isSearchable: true
|
|
19525
|
-
}, commonFilterProps)), createTextFilterConfig(_objectSpread$
|
|
19742
|
+
}, commonFilterProps)), createTextFilterConfig(_objectSpread$g({
|
|
19526
19743
|
key: FILTER_KEY.RESOURCE_ID,
|
|
19744
|
+
groupKey: FILTER_GROUP_KEYS.basicTier,
|
|
19527
19745
|
label: intl.formatMessage(messages$h.entityIdFilter),
|
|
19528
19746
|
tooltip: jsx(FilterTooltipDialog, {
|
|
19529
19747
|
title: messages$6.entityIdDialogTitle,
|
|
@@ -19541,9 +19759,10 @@ const createFilterConfigurations = _ref => {
|
|
|
19541
19759
|
})
|
|
19542
19760
|
})
|
|
19543
19761
|
})
|
|
19544
|
-
}, commonFilterProps)), createTextFilterConfig(_objectSpread$
|
|
19762
|
+
}, commonFilterProps)), createTextFilterConfig(_objectSpread$g({
|
|
19545
19763
|
key: FILTER_KEY.CUSTOMER_ID,
|
|
19546
19764
|
label: intl.formatMessage(messages$h.customerIdFilter),
|
|
19765
|
+
groupKey: FILTER_GROUP_KEYS.premiumTier,
|
|
19547
19766
|
tooltip: jsx(FilterTooltipDialog, {
|
|
19548
19767
|
title: messages$6.customerIdDialogHeader,
|
|
19549
19768
|
image: CustomerIdTooltipDialogIcon,
|
|
@@ -19565,18 +19784,41 @@ const createFilterConfigurations = _ref => {
|
|
|
19565
19784
|
})]
|
|
19566
19785
|
})
|
|
19567
19786
|
})
|
|
19787
|
+
}, commonFilterProps)), createRadioInputFilterConfig(_objectSpread$g({
|
|
19788
|
+
key: FILTER_KEY.CHANGE_TYPE,
|
|
19789
|
+
groupKey: FILTER_GROUP_KEYS.basicTier,
|
|
19790
|
+
label: intl.formatMessage(messages$h.changeTypeFilter),
|
|
19791
|
+
options: changeTypeOptions
|
|
19568
19792
|
}, commonFilterProps))];
|
|
19569
19793
|
};
|
|
19570
19794
|
|
|
19571
|
-
|
|
19572
|
-
|
|
19795
|
+
const getChangeTypeNameMessage = changeType => {
|
|
19796
|
+
switch (changeType) {
|
|
19797
|
+
case 'ResourceCreated':
|
|
19798
|
+
return changeTypeMessages.createEvent;
|
|
19799
|
+
case 'ResourceDeleted':
|
|
19800
|
+
return changeTypeMessages.removeEvent;
|
|
19801
|
+
case 'ResourceUpdated':
|
|
19802
|
+
return changeTypeMessages.updateEvent;
|
|
19803
|
+
default:
|
|
19804
|
+
return {
|
|
19805
|
+
id: changeType,
|
|
19806
|
+
defaultMessage: changeType
|
|
19807
|
+
};
|
|
19808
|
+
}
|
|
19809
|
+
};
|
|
19810
|
+
|
|
19811
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
19812
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[_Symbol$toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
19813
|
+
function ownKeys$f(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19814
|
+
function _objectSpread$f(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context3 = ownKeys$f(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context4 = ownKeys$f(Object(t))).call(_context4, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19573
19815
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$6() { 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)."; }
|
|
19574
19816
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
19575
19817
|
name: "1k70dft",
|
|
19576
19818
|
styles: "&>hr{width:calc(100% + 48px);}"
|
|
19577
19819
|
} : {
|
|
19578
19820
|
name: "j7fzvz-topBarHorizontalDividerStyles",
|
|
19579
|
-
styles: "&>hr{width:calc(100% + 48px);};label:topBarHorizontalDividerStyles;/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
19821
|
+
styles: "&>hr{width:calc(100% + 48px);};label:topBarHorizontalDividerStyles;/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJza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VyeSxcbiAgICAgICAgICAgICAgICAgICAgICBzZWFyY2hUZXh0OiAnJyxcbiAgICAgICAgICAgICAgICAgICAgICBwYWdlOiAxLFxuICAgICAgICAgICAgICAgICAgICAgIGZpbHRlcnM6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIC4uLnNlYXJjaFF1ZXJ5LmZpbHRlcnMsXG4gICAgICAgICAgICAgICAgICAgICAgICBbRklMVEVSX0tFWS5DUkVBVEVEX0FUXToge1xuICAgICAgICAgICAgICAgICAgICAgICAgICBzZWxlY3RlZEZpbHRlclR5cGUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgIHR5cGU6ICdyYW5nZScsXG4gICAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlOiB7IGZyb20sIHRvIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgIGhhc0hvdXJzOiB0cnVlLFxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgIH19XG4gICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgLz5cbiAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgfVxuICAgICAgLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbkZpbHRlcnNDb250YWluZXIuZGlzcGxheU5hbWUgPSAnRmlsdGVyc0NvbnRhaW5lcic7XG5cbmV4cG9ydCBkZWZhdWx0IEZpbHRlcnNDb250YWluZXI7XG4iXX0= */",
|
|
19580
19822
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$6
|
|
19581
19823
|
};
|
|
19582
19824
|
var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
@@ -19584,17 +19826,20 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
|
19584
19826
|
styles: "&>div>div>span{align-items:start;}&>div>div>span>div:nth-of-type(2){position:relative;bottom:3px;}"
|
|
19585
19827
|
} : {
|
|
19586
19828
|
name: "igacs6-filterContainerStyles",
|
|
19587
|
-
styles: "&>div>div>span{align-items:start;}&>div>div>span>div:nth-of-type(2){position:relative;bottom:3px;};label:filterContainerStyles;/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
19829
|
+
styles: "&>div>div>span{align-items:start;}&>div>div>span>div:nth-of-type(2){position:relative;bottom:3px;};label:filterContainerStyles;/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZpbHRlcnMtY29udGFpbmVyLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFvSG1DIiwiZmlsZSI6ImZpbHRlcnMtY29udGFpbmVyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IHVzZVN0YXRlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsgdXNlSW50bCB9IGZyb20gJ3JlYWN0LWludGwnO1xuXG5pbXBvcnQgdHlwZSB7IFRBcHBsaWVkRmlsdGVyIH0gZnJvbSAnQGNvbW1lcmNldG9vbHMtZnJvbnRlbmQvdWkta2l0JztcbmltcG9ydCB0eXBlIHsgVEZpbHRlckNvbmZpZ3VyYXRpb24gfSBmcm9tICdAY29tbWVyY2V0b29scy11aWtpdC9maWx0ZXJzJztcbmltcG9ydCB0eXBlIHsgVEZpbHRlcktleSwgVFJlc291cmNlVHlwZSB9IGZyb20gJy4uLy4uLy4uL2NvbnN0YW50cyc7XG5pbXBvcnQgdHlwZSB7XG4gIFRBTEZpbHRlclZhbHVlV2l0aG91dExhYmVscyxcbiAgVFNlYXJjaFF1ZXJ5LFxuICBUU2VhcmNoUXVlcnlGaWx0ZXJzLFxuICBUU2V0U2VhcmNoUXVlcnksXG59IGZyb20gJy4uLy4uLy4uL2hvb2tzL3VzZS1zZWFyY2gtcXVlcnktc3RhdGUvdHlwZXMnO1xuaW1wb3J0IHR5cGUgeyBURmlsdGVyVmFsdWVTdGF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gICBkYXRlRmlsdGVyPXtzZWFyY2hRdWVyeS5maWx0ZXJzPy5bRklMVEVSX0tFWS5DUkVBVEVEX0FUXX1cbiAgICAgICAgICAgICAgICAgIG9uRGF0ZUNoYW5nZT17KHsgZnJvbSwgdG8sIHNlbGVjdGVkRmlsdGVyVHlwZSB9KSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHNldFNlYXJjaFF1ZXJ5KHtcbiAgICAgICAgICAgICAgICAgICAgICAuLi5zZWFyY2hRdWVyeSxcbiAgICAgICAgICAgICAgICAgICAgICBzZWFyY2hUZXh0OiAnJyxcbiAgICAgICAgICAgICAgICAgICAgICBwYWdlOiAxLFxuICAgICAgICAgICAgICAgICAgICAgIGZpbHRlcnM6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIC4uLnNlYXJjaFF1ZXJ5LmZpbHRlcnMsXG4gICAgICAgICAgICAgICAgICAgICAgICBbRklMVEVSX0tFWS5DUkVBVEVEX0FUXToge1xuICAgICAgICAgICAgICAgICAgICAgICAgICBzZWxlY3RlZEZpbHRlclR5cGUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgIHR5cGU6ICdyYW5nZScsXG4gICAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlOiB7IGZyb20sIHRvIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgIGhhc0hvdXJzOiB0cnVlLFxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgIH19XG4gICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgLz5cbiAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgfVxuICAgICAgLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbkZpbHRlcnNDb250YWluZXIuZGlzcGxheU5hbWUgPSAnRmlsdGVyc0NvbnRhaW5lcic7XG5cbmV4cG9ydCBkZWZhdWx0IEZpbHRlcnNDb250YWluZXI7XG4iXX0= */",
|
|
19588
19830
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$6
|
|
19589
19831
|
};
|
|
19590
19832
|
const FiltersContainer = _ref3 => {
|
|
19591
|
-
var
|
|
19833
|
+
var _context2;
|
|
19592
19834
|
let allowedResourceTypes = _ref3.allowedResourceTypes,
|
|
19593
19835
|
isCurrentRecordsTotalEmpty = _ref3.isCurrentRecordsTotalEmpty,
|
|
19594
19836
|
onUpdateSearch = _ref3.onUpdateSearch,
|
|
19595
19837
|
searchQuery = _ref3.searchQuery,
|
|
19596
19838
|
setSearchQuery = _ref3.setSearchQuery;
|
|
19597
19839
|
const intl = useIntl();
|
|
19840
|
+
const _useVersionTier = useVersionTier(),
|
|
19841
|
+
tier = _useVersionTier.tier;
|
|
19842
|
+
const isPremiumFiltersDisabled = tier === TierLevels.Basic;
|
|
19598
19843
|
|
|
19599
19844
|
// User supplied filter values will go in here as the user opens filter menus and edits the values
|
|
19600
19845
|
const _useState = useState({}),
|
|
@@ -19604,7 +19849,7 @@ const FiltersContainer = _ref3 => {
|
|
|
19604
19849
|
const handleClearAll = () => {
|
|
19605
19850
|
onUpdateSearch({
|
|
19606
19851
|
filters: {
|
|
19607
|
-
|
|
19852
|
+
[FILTER_KEY.CREATED_AT]: searchQuery.filters[FILTER_KEY.CREATED_AT]
|
|
19608
19853
|
},
|
|
19609
19854
|
page: 1
|
|
19610
19855
|
});
|
|
@@ -19612,9 +19857,14 @@ const FiltersContainer = _ref3 => {
|
|
|
19612
19857
|
};
|
|
19613
19858
|
const removeFilter = key => {
|
|
19614
19859
|
onUpdateSearch({
|
|
19615
|
-
filters: _objectSpread$
|
|
19616
|
-
|
|
19617
|
-
|
|
19860
|
+
filters: _objectSpread$f({}, omit(searchQuery.filters, key)),
|
|
19861
|
+
page: 1
|
|
19862
|
+
});
|
|
19863
|
+
setFilterValue(_ref4 => {
|
|
19864
|
+
var _context;
|
|
19865
|
+
_ref4[key];
|
|
19866
|
+
let rest = _objectWithoutProperties(_ref4, _mapInstanceProperty(_context = [key]).call(_context, _toPropertyKey));
|
|
19867
|
+
return rest;
|
|
19618
19868
|
});
|
|
19619
19869
|
};
|
|
19620
19870
|
const alFilters = createFilterConfigurations({
|
|
@@ -19629,79 +19879,46 @@ const FiltersContainer = _ref3 => {
|
|
|
19629
19879
|
}
|
|
19630
19880
|
});
|
|
19631
19881
|
|
|
19632
|
-
//
|
|
19633
|
-
|
|
19634
|
-
//
|
|
19635
|
-
|
|
19636
|
-
|
|
19637
|
-
|
|
19638
|
-
|
|
19639
|
-
let _ref5 = _slicedToArray(_ref4, 1),
|
|
19640
|
-
filterKey = _ref5[0];
|
|
19882
|
+
// Take the saved search query and convert it to the format that the Filter component expects
|
|
19883
|
+
const appliedFilters = _filterInstanceProperty(_context2 = _Object$entries(searchQuery.filters)
|
|
19884
|
+
// 1) Filter out the date range as that's not one we pass to the Filter component
|
|
19885
|
+
).call(_context2, _ref5 => {
|
|
19886
|
+
let _ref6 = _slicedToArray(_ref5, 2),
|
|
19887
|
+
filterKey = _ref6[0];
|
|
19888
|
+
_ref6[1];
|
|
19641
19889
|
return filterKey !== FILTER_KEY.CREATED_AT;
|
|
19642
19890
|
})
|
|
19643
|
-
|
|
19644
|
-
|
|
19645
|
-
|
|
19646
|
-
|
|
19647
|
-
|
|
19648
|
-
filterValues = _ref7[1];
|
|
19891
|
+
// 2) Map the data to the expected structure
|
|
19892
|
+
?.map(_ref7 => {
|
|
19893
|
+
let _ref8 = _slicedToArray(_ref7, 2),
|
|
19894
|
+
filterKey = _ref8[0],
|
|
19895
|
+
alFilterValue = _ref8[1];
|
|
19649
19896
|
let lookupLabel;
|
|
19650
19897
|
switch (filterKey) {
|
|
19651
19898
|
case FILTER_KEY.RESOURCE_TYPE:
|
|
19652
19899
|
lookupLabel = type => intl.formatMessage(getEntityTypeNameMessage(type));
|
|
19653
19900
|
break;
|
|
19901
|
+
case FILTER_KEY.CHANGE_TYPE:
|
|
19902
|
+
lookupLabel = changeTypeValue => intl.formatMessage(getChangeTypeNameMessage(changeTypeValue));
|
|
19903
|
+
break;
|
|
19654
19904
|
// Anticipate more here...
|
|
19655
19905
|
default:
|
|
19656
19906
|
lookupLabel = () => '';
|
|
19657
19907
|
break;
|
|
19658
19908
|
}
|
|
19909
|
+
const _ref9 = alFilterValue,
|
|
19910
|
+
appliedFilterValues = _ref9.appliedFilterValues;
|
|
19911
|
+
// 3) Re-add translated labels that we stripped out before we stored filter values into local storage
|
|
19659
19912
|
return {
|
|
19660
|
-
filterKey
|
|
19661
|
-
|
|
19662
|
-
|
|
19663
|
-
|
|
19664
|
-
// [
|
|
19665
|
-
// "resource.typeId": [
|
|
19666
|
-
// {
|
|
19667
|
-
// "type": "in",
|
|
19668
|
-
// "value": {
|
|
19669
|
-
// "value": ["Category", "BusinessUnit"] <---- This is what we are looping through, aka 'filterValueValue'
|
|
19670
|
-
// }
|
|
19671
|
-
// }
|
|
19672
|
-
// ]
|
|
19673
|
-
// ]
|
|
19674
|
-
// New:
|
|
19675
|
-
// {
|
|
19676
|
-
// "filterKey": "resource.typeId",
|
|
19677
|
-
// "values": [
|
|
19678
|
-
// { "value": "category", "label": "Category" },
|
|
19679
|
-
// { "value": "businessUnit", "label": "Business Unit" }
|
|
19680
|
-
// ]
|
|
19681
|
-
// }
|
|
19682
|
-
values: _flatMapInstanceProperty(filterValues).call(filterValues, filter => {
|
|
19683
|
-
// I know this name is horrible. It will go away when the old data structure is no longer used.
|
|
19684
|
-
const filterValueValue = filter.value?.value;
|
|
19685
|
-
|
|
19686
|
-
// Handle array values (like those from multi-select filters)
|
|
19687
|
-
if (_Array$isArray(filterValueValue)) {
|
|
19688
|
-
return _mapInstanceProperty(filterValueValue).call(filterValueValue, singleValue => {
|
|
19689
|
-
// Try to find a translated label based on filterKey
|
|
19690
|
-
const label = lookupLabel?.(singleValue) || singleValue;
|
|
19691
|
-
return {
|
|
19692
|
-
value: singleValue,
|
|
19693
|
-
label
|
|
19694
|
-
};
|
|
19695
|
-
});
|
|
19696
|
-
}
|
|
19697
|
-
|
|
19698
|
-
// Handle single values
|
|
19699
|
-
const value = String(filter.value);
|
|
19913
|
+
filterKey,
|
|
19914
|
+
values: appliedFilterValues?.map(appliedFilterValue => {
|
|
19915
|
+
const value = appliedFilterValue.value;
|
|
19916
|
+
// Try to find a translated label based on filterKey, otherwise default to the value itself for the label
|
|
19700
19917
|
const label = lookupLabel?.(value) || value;
|
|
19701
|
-
return
|
|
19918
|
+
return {
|
|
19702
19919
|
value,
|
|
19703
19920
|
label
|
|
19704
|
-
}
|
|
19921
|
+
};
|
|
19705
19922
|
})
|
|
19706
19923
|
};
|
|
19707
19924
|
});
|
|
@@ -19716,19 +19933,20 @@ const FiltersContainer = _ref3 => {
|
|
|
19716
19933
|
children: jsx(Filters$1, {
|
|
19717
19934
|
appliedFilters: appliedFilters,
|
|
19718
19935
|
filters: alFilters,
|
|
19936
|
+
filterGroups: isPremiumFiltersDisabled ? FILTER_GROUPS : undefined,
|
|
19719
19937
|
onClearAllRequest: () => handleClearAll(),
|
|
19720
19938
|
renderSearchComponent: jsx(DateRangeSelector, {
|
|
19721
19939
|
isDisabled: isCurrentRecordsTotalEmpty,
|
|
19722
|
-
dateFilter: searchQuery.filters[FILTER_KEY.CREATED_AT]
|
|
19723
|
-
onDateChange:
|
|
19724
|
-
let from =
|
|
19725
|
-
to =
|
|
19726
|
-
selectedFilterType =
|
|
19727
|
-
setSearchQuery(_objectSpread$
|
|
19940
|
+
dateFilter: searchQuery.filters?.[FILTER_KEY.CREATED_AT],
|
|
19941
|
+
onDateChange: _ref10 => {
|
|
19942
|
+
let from = _ref10.from,
|
|
19943
|
+
to = _ref10.to,
|
|
19944
|
+
selectedFilterType = _ref10.selectedFilterType;
|
|
19945
|
+
setSearchQuery(_objectSpread$f(_objectSpread$f({}, searchQuery), {}, {
|
|
19728
19946
|
searchText: '',
|
|
19729
19947
|
page: 1,
|
|
19730
|
-
filters: _objectSpread$
|
|
19731
|
-
|
|
19948
|
+
filters: _objectSpread$f(_objectSpread$f({}, searchQuery.filters), {}, {
|
|
19949
|
+
[FILTER_KEY.CREATED_AT]: {
|
|
19732
19950
|
selectedFilterType,
|
|
19733
19951
|
type: 'range',
|
|
19734
19952
|
value: {
|
|
@@ -19736,7 +19954,7 @@ const FiltersContainer = _ref3 => {
|
|
|
19736
19954
|
to
|
|
19737
19955
|
},
|
|
19738
19956
|
hasHours: true
|
|
19739
|
-
}
|
|
19957
|
+
}
|
|
19740
19958
|
})
|
|
19741
19959
|
}));
|
|
19742
19960
|
}
|
|
@@ -19796,8 +20014,8 @@ const messages$4 = defineMessages({
|
|
|
19796
20014
|
}
|
|
19797
20015
|
});
|
|
19798
20016
|
|
|
19799
|
-
function ownKeys$
|
|
19800
|
-
function _objectSpread$
|
|
20017
|
+
function ownKeys$e(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20018
|
+
function _objectSpread$e(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$e(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$e(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19801
20019
|
const EmptyListMessage = _ref => {
|
|
19802
20020
|
let totalCount = _ref.totalCount,
|
|
19803
20021
|
_ref$suggestions = _ref.suggestions,
|
|
@@ -19818,12 +20036,12 @@ const EmptyListMessage = _ref => {
|
|
|
19818
20036
|
scale: "m",
|
|
19819
20037
|
children: [jsx(Text.Body, {
|
|
19820
20038
|
fontWeight: "bold",
|
|
19821
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
20039
|
+
children: jsx(FormattedMessage, _objectSpread$e({}, title))
|
|
19822
20040
|
}), jsx("div", {
|
|
19823
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
20041
|
+
children: jsx(FormattedMessage, _objectSpread$e({}, messages$4.suggestions))
|
|
19824
20042
|
}), jsx("ul", {
|
|
19825
20043
|
children: _mapInstanceProperty(suggestions).call(suggestions, (suggestion, index) => jsx("li", {
|
|
19826
|
-
children: jsx(FormattedMessage, _objectSpread$
|
|
20044
|
+
children: jsx(FormattedMessage, _objectSpread$e({}, suggestion))
|
|
19827
20045
|
}, index))
|
|
19828
20046
|
})]
|
|
19829
20047
|
});
|
|
@@ -19869,8 +20087,8 @@ const searchViewStyles = {
|
|
|
19869
20087
|
}
|
|
19870
20088
|
};
|
|
19871
20089
|
|
|
19872
|
-
function ownKeys$
|
|
19873
|
-
function _objectSpread$
|
|
20090
|
+
function ownKeys$d(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20091
|
+
function _objectSpread$d(e) { for (var r = 1; r < arguments.length; r++) { var _context5, _context6; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context5 = ownKeys$d(Object(t), !0)).call(_context5, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context6 = ownKeys$d(Object(t))).call(_context6, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19874
20092
|
const SearchView = props => {
|
|
19875
20093
|
var _context, _context2, _context3;
|
|
19876
20094
|
const intl = useIntl();
|
|
@@ -19889,7 +20107,7 @@ const SearchView = props => {
|
|
|
19889
20107
|
// ensure all previous values are still set in the event they are unchanged.
|
|
19890
20108
|
const handleUpdateSearch = useCallback(updatedSearchQuery => {
|
|
19891
20109
|
if (updatedSearchQuery) {
|
|
19892
|
-
props.setSearchQuery(_objectSpread$
|
|
20110
|
+
props.setSearchQuery(_objectSpread$d(_objectSpread$d({}, props.searchQuery), updatedSearchQuery));
|
|
19893
20111
|
}
|
|
19894
20112
|
}, [props]);
|
|
19895
20113
|
const handleSortChange = (columnKey, sortDirection) => {
|
|
@@ -19937,7 +20155,7 @@ const SearchView = props => {
|
|
|
19937
20155
|
isWrappingText: props.displaySettings.isWrappingText
|
|
19938
20156
|
},
|
|
19939
20157
|
onSubmit: values => {
|
|
19940
|
-
props.setSearchQuery(_objectSpread$
|
|
20158
|
+
props.setSearchQuery(_objectSpread$d(_objectSpread$d({}, props.searchQuery), {}, {
|
|
19941
20159
|
columns: values.visibleColumnKeys,
|
|
19942
20160
|
displaySettings: {
|
|
19943
20161
|
isCondensed: values.isCondensed,
|
|
@@ -20082,6 +20300,8 @@ const SearchView = props => {
|
|
|
20082
20300
|
};
|
|
20083
20301
|
SearchView.displayName = 'SearchView';
|
|
20084
20302
|
|
|
20303
|
+
function ownKeys$c(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20304
|
+
function _objectSpread$c(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$c(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$c(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20085
20305
|
const defaultColumns = _Object$values(COLUMNS);
|
|
20086
20306
|
const defaultFilters = [{
|
|
20087
20307
|
key: FILTER_OPTION_KEYS.SOURCE
|
|
@@ -20108,6 +20328,29 @@ const defaultFilters = [{
|
|
|
20108
20328
|
}, {
|
|
20109
20329
|
key: FILTER_OPTION_KEYS.ENTITY_ID
|
|
20110
20330
|
}];
|
|
20331
|
+
const defaultDateFilterValue = {
|
|
20332
|
+
hasHours: true,
|
|
20333
|
+
type: 'range',
|
|
20334
|
+
selectedFilterType: quickFilterToday
|
|
20335
|
+
};
|
|
20336
|
+
const defaultSearchQuery = isFilterRedesignEnabled => ({
|
|
20337
|
+
page: 1,
|
|
20338
|
+
perPage: 20,
|
|
20339
|
+
filters: _objectSpread$c({}, isFilterRedesignEnabled ? {
|
|
20340
|
+
[FILTER_KEY.CREATED_AT]: defaultDateFilterValue
|
|
20341
|
+
} : {
|
|
20342
|
+
createdAt: [defaultDateFilterValue]
|
|
20343
|
+
}),
|
|
20344
|
+
columns: [],
|
|
20345
|
+
displaySettings: {
|
|
20346
|
+
isCondensed: true,
|
|
20347
|
+
isWrappingText: false
|
|
20348
|
+
},
|
|
20349
|
+
sorting: {
|
|
20350
|
+
key: 'resource',
|
|
20351
|
+
order: 'asc'
|
|
20352
|
+
}
|
|
20353
|
+
});
|
|
20111
20354
|
const ChangeHistoryList = props => {
|
|
20112
20355
|
const hasViewAuditLogPermission = useIsAuthorized({
|
|
20113
20356
|
demandedPermissions: [PERMISSIONS.ViewAuditLog]
|
|
@@ -20117,28 +20360,9 @@ const ChangeHistoryList = props => {
|
|
|
20117
20360
|
const _useVersionTier = useVersionTier(),
|
|
20118
20361
|
tier = _useVersionTier.tier;
|
|
20119
20362
|
const storageSlice = props.storageSlice || SEARCH_SLICE_NAME_CHANGE_HISTORY;
|
|
20120
|
-
const
|
|
20121
|
-
page: 1,
|
|
20122
|
-
perPage: 20,
|
|
20123
|
-
filters: {
|
|
20124
|
-
createdAt: [{
|
|
20125
|
-
hasHours: true,
|
|
20126
|
-
type: 'range',
|
|
20127
|
-
selectedFilterType: quickFilterToday
|
|
20128
|
-
}]
|
|
20129
|
-
},
|
|
20130
|
-
columns: [],
|
|
20131
|
-
displaySettings: {
|
|
20132
|
-
isCondensed: true,
|
|
20133
|
-
isWrappingText: false
|
|
20134
|
-
},
|
|
20135
|
-
sorting: {
|
|
20136
|
-
key: 'resource',
|
|
20137
|
-
order: 'asc'
|
|
20138
|
-
}
|
|
20139
|
-
};
|
|
20363
|
+
const isFilterRedesignEnabled = useAlFilterRedesign();
|
|
20140
20364
|
const _useSearchQueryState = useSearchQueryState({
|
|
20141
|
-
defaultSearchQuery,
|
|
20365
|
+
defaultSearchQuery: defaultSearchQuery(isFilterRedesignEnabled),
|
|
20142
20366
|
storageSlice
|
|
20143
20367
|
}),
|
|
20144
20368
|
searchQuery = _useSearchQueryState.searchQuery,
|