@commercetools-frontend-extensions/change-history 8.36.0 → 8.38.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 +766 -783
- package/dist/commercetools-frontend-extensions-change-history.cjs.prod.js +747 -768
- package/dist/commercetools-frontend-extensions-change-history.esm.js +764 -783
- package/dist/{en-27cab1c8.cjs.prod.js → en-53fa62aa.cjs.prod.js} +4 -4
- package/dist/{en-3ca2b453.esm.js → en-d9a07b89.esm.js} +4 -4
- package/dist/{en-ec3472f0.cjs.dev.js → en-db0832e3.cjs.dev.js} +4 -4
- package/package.json +3 -3
|
@@ -62,7 +62,6 @@ var isNil$1 = require('lodash/isNil');
|
|
|
62
62
|
var omitBy = require('lodash/omitBy');
|
|
63
63
|
var _Object$fromEntries = require('@babel/runtime-corejs3/core-js-stable/object/from-entries');
|
|
64
64
|
var uniq = require('lodash/uniq');
|
|
65
|
-
var designSystem = require('@commercetools-uikit/design-system');
|
|
66
65
|
var _Reflect$construct = require('@babel/runtime-corejs3/core-js-stable/reflect/construct');
|
|
67
66
|
var _classCallCheck = require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
68
67
|
var _createClass = require('@babel/runtime-corejs3/helpers/createClass');
|
|
@@ -85,6 +84,9 @@ var formik = require('formik');
|
|
|
85
84
|
var has = require('lodash/has');
|
|
86
85
|
var isFunction = require('lodash/isFunction');
|
|
87
86
|
var _Array$from = require('@babel/runtime-corejs3/core-js-stable/array/from');
|
|
87
|
+
var _flatMapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/flat-map');
|
|
88
|
+
var isEqual = require('lodash/isEqual');
|
|
89
|
+
var designSystem = require('@commercetools-uikit/design-system');
|
|
88
90
|
var commonTags = require('common-tags');
|
|
89
91
|
var i18n = require('@commercetools-frontend/i18n');
|
|
90
92
|
|
|
@@ -143,9 +145,11 @@ var _valuesInstanceProperty__default = /*#__PURE__*/_interopDefault(_valuesInsta
|
|
|
143
145
|
var has__default = /*#__PURE__*/_interopDefault(has);
|
|
144
146
|
var isFunction__default = /*#__PURE__*/_interopDefault(isFunction);
|
|
145
147
|
var _Array$from__default = /*#__PURE__*/_interopDefault(_Array$from);
|
|
148
|
+
var _flatMapInstanceProperty__default = /*#__PURE__*/_interopDefault(_flatMapInstanceProperty);
|
|
149
|
+
var isEqual__default = /*#__PURE__*/_interopDefault(isEqual);
|
|
146
150
|
|
|
147
151
|
// NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file.
|
|
148
|
-
var version = "8.
|
|
152
|
+
var version = "8.38.0";
|
|
149
153
|
|
|
150
154
|
// EXAMPLE
|
|
151
155
|
// export const FEATURE_FLAG_NAME = 'featureFlagName';
|
|
@@ -764,6 +768,31 @@ const AVATAR_COLORS = {
|
|
|
764
768
|
BROWN: 'brown'
|
|
765
769
|
};
|
|
766
770
|
|
|
771
|
+
const FILTER_KEY = {
|
|
772
|
+
API_CLIENT: 'apiClientId',
|
|
773
|
+
BUSINESS_UNIT: 'businessUnit',
|
|
774
|
+
RESOURCE_CHANGE: 'resourceChange',
|
|
775
|
+
CHANGE_TYPE: 'changeType',
|
|
776
|
+
CUSTOMER_ID: 'customerId',
|
|
777
|
+
CREATED_AT: 'createdAt',
|
|
778
|
+
RESOURCE_ID: 'resourceId',
|
|
779
|
+
RESOURCE_TYPE: 'resource.typeId',
|
|
780
|
+
EXCLUDE_PLATFORM_CHANGES: 'excludePlatformInitiatedChanges',
|
|
781
|
+
IS_PLATFORM_CLIENT: 'isPlatformClient',
|
|
782
|
+
STORES: 'stores',
|
|
783
|
+
CREATED_BY: 'createdBy.id'
|
|
784
|
+
};
|
|
785
|
+
const FILTER_OPERATOR = {
|
|
786
|
+
lessThan: 'lessThan',
|
|
787
|
+
moreThan: 'moreThan',
|
|
788
|
+
equalTo: 'equalTo',
|
|
789
|
+
range: 'range',
|
|
790
|
+
missing: 'missing',
|
|
791
|
+
missingIn: 'missingIn',
|
|
792
|
+
in: 'in',
|
|
793
|
+
resourceChange: 'resourceChange'
|
|
794
|
+
};
|
|
795
|
+
|
|
767
796
|
// Root level filter options users can select to filter on
|
|
768
797
|
const FILTER_OPTION_KEYS = {
|
|
769
798
|
API_CLIENT: 'apiClientId',
|
|
@@ -1788,7 +1817,7 @@ const changeItemLabelStyles = {
|
|
|
1788
1817
|
styles: "min-width:30px;margin-left:6px"
|
|
1789
1818
|
} ;
|
|
1790
1819
|
|
|
1791
|
-
const _excluded$
|
|
1820
|
+
const _excluded$k = ["id", "typeId"];
|
|
1792
1821
|
function ownKeys$1l(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1793
1822
|
function _objectSpread$1l(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context3 = ownKeys$1l(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys$1l(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1794
1823
|
const ChangeItemValueByType = props => {
|
|
@@ -1807,7 +1836,7 @@ const ChangeItemValueByType = props => {
|
|
|
1807
1836
|
const _props$value = props.value,
|
|
1808
1837
|
id = _props$value.id,
|
|
1809
1838
|
typeId = _props$value.typeId,
|
|
1810
|
-
expandedProps = _objectWithoutProperties(_props$value, _excluded$
|
|
1839
|
+
expandedProps = _objectWithoutProperties(_props$value, _excluded$k);
|
|
1811
1840
|
return jsxRuntime.jsx(ReferenceTypeChange, {
|
|
1812
1841
|
id: id,
|
|
1813
1842
|
typeId: typeId,
|
|
@@ -2696,7 +2725,7 @@ const AssetChange = props => {
|
|
|
2696
2725
|
};
|
|
2697
2726
|
AssetChange.displayName = 'AssetChange';
|
|
2698
2727
|
|
|
2699
|
-
const _excluded$
|
|
2728
|
+
const _excluded$j = ["typeId", "id"];
|
|
2700
2729
|
const CategoryChanges = props => {
|
|
2701
2730
|
const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => ({
|
|
2702
2731
|
language: applicationContext.dataLocale,
|
|
@@ -2786,7 +2815,7 @@ const CategoryChanges = props => {
|
|
|
2786
2815
|
const _ref = props.value || {},
|
|
2787
2816
|
typeId = _ref.typeId,
|
|
2788
2817
|
id = _ref.id,
|
|
2789
|
-
expandedProps = _objectWithoutProperties(_ref, _excluded$
|
|
2818
|
+
expandedProps = _objectWithoutProperties(_ref, _excluded$j);
|
|
2790
2819
|
return props.value?.id ? jsxRuntime.jsx(ReferenceTypeChange, {
|
|
2791
2820
|
id: id,
|
|
2792
2821
|
typeId: typeId,
|
|
@@ -4504,10 +4533,12 @@ function formatDateTime(type, value) {
|
|
|
4504
4533
|
}
|
|
4505
4534
|
|
|
4506
4535
|
const FormattedDateTime = props => {
|
|
4507
|
-
const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext =>
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4536
|
+
const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => {
|
|
4537
|
+
return {
|
|
4538
|
+
locale: applicationContext.user?.locale,
|
|
4539
|
+
timeZone: applicationContext.user?.timeZone
|
|
4540
|
+
};
|
|
4541
|
+
}),
|
|
4511
4542
|
locale = _useApplicationContex.locale,
|
|
4512
4543
|
timeZone = _useApplicationContex.timeZone;
|
|
4513
4544
|
return jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
@@ -4702,7 +4733,7 @@ const CustomObjectChanges = props => {
|
|
|
4702
4733
|
};
|
|
4703
4734
|
CustomObjectChanges.displayName = 'CustomObjectChanges';
|
|
4704
4735
|
|
|
4705
|
-
const _excluded$
|
|
4736
|
+
const _excluded$i = ["typeId", "id"];
|
|
4706
4737
|
function ownKeys$1b(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4707
4738
|
function _objectSpread$1b(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$1b(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$1b(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
4708
4739
|
const CustomerChanges = props => {
|
|
@@ -4723,7 +4754,7 @@ const CustomerChanges = props => {
|
|
|
4723
4754
|
const _ref = props.value || {},
|
|
4724
4755
|
typeId = _ref.typeId,
|
|
4725
4756
|
id = _ref.id,
|
|
4726
|
-
expandedProps = _objectWithoutProperties(_ref, _excluded$
|
|
4757
|
+
expandedProps = _objectWithoutProperties(_ref, _excluded$i);
|
|
4727
4758
|
return props.value?.id ? jsxRuntime.jsx(ReferenceTypeChange, {
|
|
4728
4759
|
id: id,
|
|
4729
4760
|
typeId: typeId,
|
|
@@ -4794,7 +4825,7 @@ const CustomerChanges = props => {
|
|
|
4794
4825
|
};
|
|
4795
4826
|
CustomerChanges.displayName = 'CustomerChanges';
|
|
4796
4827
|
|
|
4797
|
-
const _excluded$
|
|
4828
|
+
const _excluded$h = ["typeId", "id"];
|
|
4798
4829
|
function ownKeys$1a(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4799
4830
|
function _objectSpread$1a(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$1a(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$1a(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
4800
4831
|
const DiscountChanges = props => {
|
|
@@ -4889,7 +4920,7 @@ const DiscountChanges = props => {
|
|
|
4889
4920
|
children: _mapInstanceProperty__default["default"](_context = props.value).call(_context, cartDiscount => {
|
|
4890
4921
|
const typeId = cartDiscount.typeId,
|
|
4891
4922
|
id = cartDiscount.id,
|
|
4892
|
-
expandedProps = _objectWithoutProperties(cartDiscount, _excluded$
|
|
4923
|
+
expandedProps = _objectWithoutProperties(cartDiscount, _excluded$h);
|
|
4893
4924
|
return jsxRuntime.jsx(ReferenceTypeChange, {
|
|
4894
4925
|
id: id,
|
|
4895
4926
|
typeId: typeId,
|
|
@@ -4919,7 +4950,7 @@ const DiscountChanges = props => {
|
|
|
4919
4950
|
};
|
|
4920
4951
|
DiscountChanges.displayName = 'DiscountChanges';
|
|
4921
4952
|
|
|
4922
|
-
const _excluded$
|
|
4953
|
+
const _excluded$g = ["typeId", "id"];
|
|
4923
4954
|
function ownKeys$19(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4924
4955
|
function _objectSpread$19(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$19(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$19(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
4925
4956
|
const InventoryEntryChanges = props => {
|
|
@@ -4964,7 +4995,7 @@ const InventoryEntryChanges = props => {
|
|
|
4964
4995
|
const _ref = props.value || {},
|
|
4965
4996
|
typeId = _ref.typeId,
|
|
4966
4997
|
id = _ref.id,
|
|
4967
|
-
expandedProps = _objectWithoutProperties(_ref, _excluded$
|
|
4998
|
+
expandedProps = _objectWithoutProperties(_ref, _excluded$g);
|
|
4968
4999
|
return props.value?.id ? jsxRuntime.jsx(ReferenceTypeChange, {
|
|
4969
5000
|
id: id,
|
|
4970
5001
|
typeId: typeId,
|
|
@@ -5442,7 +5473,7 @@ var messages$X = reactIntl.defineMessages({
|
|
|
5442
5473
|
}
|
|
5443
5474
|
});
|
|
5444
5475
|
|
|
5445
|
-
const _excluded$
|
|
5476
|
+
const _excluded$f = ["typeId", "id"],
|
|
5446
5477
|
_excluded2$4 = ["typeId", "id"];
|
|
5447
5478
|
function ownKeys$12(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5448
5479
|
function _objectSpread$12(e) { for (var r = 1; r < arguments.length; r++) { var _context7, _context8; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context7 = ownKeys$12(Object(t), !0)).call(_context7, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context8 = ownKeys$12(Object(t))).call(_context8, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
@@ -5840,7 +5871,7 @@ const OrderChanges = props => {
|
|
|
5840
5871
|
const _ref = props.value || {},
|
|
5841
5872
|
typeId = _ref.typeId,
|
|
5842
5873
|
id = _ref.id,
|
|
5843
|
-
expandedProps = _objectWithoutProperties(_ref, _excluded$
|
|
5874
|
+
expandedProps = _objectWithoutProperties(_ref, _excluded$f);
|
|
5844
5875
|
return props.value?.id ? jsxRuntime.jsx(ReferenceTypeChange, {
|
|
5845
5876
|
id: id,
|
|
5846
5877
|
typeId: typeId,
|
|
@@ -6162,7 +6193,7 @@ const OrderChanges = props => {
|
|
|
6162
6193
|
};
|
|
6163
6194
|
OrderChanges.displayName = 'OrderChanges';
|
|
6164
6195
|
|
|
6165
|
-
const _excluded$
|
|
6196
|
+
const _excluded$e = ["typeId", "id"],
|
|
6166
6197
|
_excluded2$3 = ["typeId", "id"];
|
|
6167
6198
|
const PaymentChanges = props => {
|
|
6168
6199
|
const intl = reactIntl.useIntl();
|
|
@@ -6185,7 +6216,7 @@ const PaymentChanges = props => {
|
|
|
6185
6216
|
const _ref = props.value || {},
|
|
6186
6217
|
typeId = _ref.typeId,
|
|
6187
6218
|
id = _ref.id,
|
|
6188
|
-
expandedProps = _objectWithoutProperties(_ref, _excluded$
|
|
6219
|
+
expandedProps = _objectWithoutProperties(_ref, _excluded$e);
|
|
6189
6220
|
return props.value?.id ? jsxRuntime.jsx(ReferenceTypeChange, {
|
|
6190
6221
|
id: id,
|
|
6191
6222
|
typeId: typeId,
|
|
@@ -6245,7 +6276,7 @@ const PaymentChanges = props => {
|
|
|
6245
6276
|
};
|
|
6246
6277
|
PaymentChanges.displayName = 'PaymentChanges';
|
|
6247
6278
|
|
|
6248
|
-
const _excluded$
|
|
6279
|
+
const _excluded$d = ["typeId", "id"],
|
|
6249
6280
|
_excluded2$2 = ["typeId", "id"];
|
|
6250
6281
|
const MAX_REFERENCES = 20;
|
|
6251
6282
|
const isChangeValueLarge = value => value.length > MAX_REFERENCES;
|
|
@@ -6298,7 +6329,7 @@ const AddRemoveProductModalDisplayChange = props => {
|
|
|
6298
6329
|
const _ref2 = value || {},
|
|
6299
6330
|
typeId = _ref2.typeId,
|
|
6300
6331
|
id = _ref2.id,
|
|
6301
|
-
expandedProps = _objectWithoutProperties(_ref2, _excluded$
|
|
6332
|
+
expandedProps = _objectWithoutProperties(_ref2, _excluded$d);
|
|
6302
6333
|
return jsxRuntime.jsx(ReferenceTypeChange, {
|
|
6303
6334
|
id: id,
|
|
6304
6335
|
typeId: typeId,
|
|
@@ -6820,224 +6851,11 @@ const VariantAvailabilityChange = props => {
|
|
|
6820
6851
|
};
|
|
6821
6852
|
VariantAvailabilityChange.displayName = 'VariantAvailabilityChange';
|
|
6822
6853
|
|
|
6823
|
-
const _excluded$
|
|
6824
|
-
|
|
6825
|
-
|
|
6826
|
-
var
|
|
6827
|
-
|
|
6828
|
-
children: [jsxRuntime.jsxs("defs", {
|
|
6829
|
-
children: [jsxRuntime.jsx("path", {
|
|
6830
|
-
id: "a",
|
|
6831
|
-
d: "M0 0h50v50H0z"
|
|
6832
|
-
}), jsxRuntime.jsx("path", {
|
|
6833
|
-
d: "M45 5 5 45",
|
|
6834
|
-
id: "c"
|
|
6835
|
-
})]
|
|
6836
|
-
}), jsxRuntime.jsxs("g", {
|
|
6837
|
-
fill: "none",
|
|
6838
|
-
fillRule: "evenodd",
|
|
6839
|
-
children: [jsxRuntime.jsx("path", {
|
|
6840
|
-
d: "M0 0h50v50H0z",
|
|
6841
|
-
fill: "#D8D8D8",
|
|
6842
|
-
fillRule: "nonzero"
|
|
6843
|
-
}), jsxRuntime.jsxs("g", {
|
|
6844
|
-
children: [jsxRuntime.jsx("mask", {
|
|
6845
|
-
id: "b",
|
|
6846
|
-
fill: "#fff",
|
|
6847
|
-
children: jsxRuntime.jsx("use", {
|
|
6848
|
-
xlinkHref: "#a"
|
|
6849
|
-
})
|
|
6850
|
-
}), jsxRuntime.jsxs("g", {
|
|
6851
|
-
fillRule: "nonzero",
|
|
6852
|
-
mask: "url(#b)",
|
|
6853
|
-
children: [jsxRuntime.jsx("path", {
|
|
6854
|
-
d: "M-4.545 3.27C-4.545 1.464-2.963 0-1.01 0h51.262c1.953 0 3.536 1.464 3.536 3.27v43.46c0 1.806-1.583 3.27-3.536 3.27H-1.01c-1.953 0-3.535-1.464-3.535-3.27V3.27Z",
|
|
6855
|
-
fill: "#B4E1FD"
|
|
6856
|
-
}), jsxRuntime.jsx("path", {
|
|
6857
|
-
d: "M21.97 12.879a5.303 5.303 0 1 1-10.606 0 5.303 5.303 0 0 1 10.606 0Z",
|
|
6858
|
-
fill: "#E8F3FC"
|
|
6859
|
-
}), jsxRuntime.jsx("path", {
|
|
6860
|
-
d: "M11.951 26.917-4.545 46.42V50h58.333V33.83L41.094 19.103c-1.062-1.231-3.03-1.23-4.09.003L25.334 32.69c-1.047 1.218-2.985 1.237-4.057.04l-5.255-5.868c-1.077-1.204-3.028-1.178-4.07.055Z",
|
|
6861
|
-
fill: "#E8F4FC"
|
|
6862
|
-
})]
|
|
6863
|
-
})]
|
|
6864
|
-
}), jsxRuntime.jsxs("g", {
|
|
6865
|
-
strokeLinecap: "round",
|
|
6866
|
-
strokeLinejoin: "round",
|
|
6867
|
-
children: [jsxRuntime.jsx("use", {
|
|
6868
|
-
stroke: "#FFF",
|
|
6869
|
-
strokeWidth: "6",
|
|
6870
|
-
xlinkHref: "#c"
|
|
6871
|
-
}), jsxRuntime.jsx("use", {
|
|
6872
|
-
stroke: "#E60050",
|
|
6873
|
-
strokeWidth: "2",
|
|
6874
|
-
xlinkHref: "#c"
|
|
6875
|
-
})]
|
|
6876
|
-
})]
|
|
6877
|
-
})]
|
|
6878
|
-
}));
|
|
6879
|
-
};
|
|
6880
|
-
BrokenIcon.defaultProps = {
|
|
6881
|
-
width: "50",
|
|
6882
|
-
height: "50",
|
|
6883
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6884
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink"
|
|
6885
|
-
};
|
|
6886
|
-
var BrokenExternalIcon = function BrokenExternalIcon(props) {
|
|
6887
|
-
return jsxRuntime.jsxs("svg", _objectSpread$Z(_objectSpread$Z({}, props), {}, {
|
|
6888
|
-
children: [jsxRuntime.jsx("defs", {
|
|
6889
|
-
children: jsxRuntime.jsx("path", {
|
|
6890
|
-
id: "a",
|
|
6891
|
-
d: "M0 0h50v50H0z"
|
|
6892
|
-
})
|
|
6893
|
-
}), jsxRuntime.jsxs("g", {
|
|
6894
|
-
fill: "none",
|
|
6895
|
-
fillRule: "evenodd",
|
|
6896
|
-
children: [jsxRuntime.jsx("path", {
|
|
6897
|
-
d: "M0 0h50v50H0z",
|
|
6898
|
-
fill: "#D8D8D8",
|
|
6899
|
-
fillRule: "nonzero"
|
|
6900
|
-
}), jsxRuntime.jsxs("g", {
|
|
6901
|
-
children: [jsxRuntime.jsx("mask", {
|
|
6902
|
-
id: "b",
|
|
6903
|
-
fill: "#fff",
|
|
6904
|
-
children: jsxRuntime.jsx("use", {
|
|
6905
|
-
xlinkHref: "#a"
|
|
6906
|
-
})
|
|
6907
|
-
}), jsxRuntime.jsxs("g", {
|
|
6908
|
-
fillRule: "nonzero",
|
|
6909
|
-
mask: "url(#b)",
|
|
6910
|
-
children: [jsxRuntime.jsx("path", {
|
|
6911
|
-
d: "M-4.545 3.27C-4.545 1.464-2.963 0-1.01 0h51.262c1.953 0 3.536 1.464 3.536 3.27v43.46c0 1.806-1.583 3.27-3.536 3.27H-1.01c-1.953 0-3.535-1.464-3.535-3.27V3.27Z",
|
|
6912
|
-
fill: "#B4E1FD"
|
|
6913
|
-
}), jsxRuntime.jsx("path", {
|
|
6914
|
-
d: "M21.97 12.879a5.303 5.303 0 1 1-10.606 0 5.303 5.303 0 0 1 10.606 0Z",
|
|
6915
|
-
fill: "#E8F3FC"
|
|
6916
|
-
}), jsxRuntime.jsx("path", {
|
|
6917
|
-
d: "M11.951 26.917-4.545 46.42V50h58.333V33.83L41.094 19.103c-1.062-1.231-3.03-1.23-4.09.003L25.334 32.69c-1.047 1.218-2.985 1.237-4.057.04l-5.255-5.868c-1.077-1.204-3.028-1.178-4.07.055Z",
|
|
6918
|
-
fill: "#E8F4FC"
|
|
6919
|
-
})]
|
|
6920
|
-
})]
|
|
6921
|
-
}), jsxRuntime.jsxs("g", {
|
|
6922
|
-
transform: "translate(22 22)",
|
|
6923
|
-
children: [jsxRuntime.jsx("circle", {
|
|
6924
|
-
fill: "#E60050",
|
|
6925
|
-
cx: "12",
|
|
6926
|
-
cy: "12",
|
|
6927
|
-
r: "12"
|
|
6928
|
-
}), jsxRuntime.jsx("path", {
|
|
6929
|
-
d: "m14.458 12.082-1.092-1.074h1.092c.146 0 .276.051.392.155a.483.483 0 0 1 .173.373.511.511 0 0 1-.173.382.554.554 0 0 1-.392.164Zm2.931 2.931-1.001-.983a2.659 2.659 0 0 0 1.53-.865c.4-.455.6-.986.6-1.593 0-.716-.237-1.314-.71-1.793-.473-.48-1.068-.72-1.784-.72h-2.167a.612.612 0 0 1-.437-.172.588.588 0 0 1-.182-.446c0-.182.061-.33.182-.446a.612.612 0 0 1 .437-.173h2.149c1.068 0 1.963.36 2.685 1.083.722.722 1.083 1.611 1.083 2.667 0 .801-.23 1.505-.692 2.112a4.08 4.08 0 0 1-1.693 1.329Zm.62 3.805L5.172 6A.637.637 0 0 1 5 5.591a.534.534 0 0 1 .173-.409.566.566 0 0 1 .41-.182c.152 0 .288.06.41.182l12.834 12.835a.557.557 0 0 1 .183.4c0 .146-.061.28-.183.4a.519.519 0 0 1-.4.183.576.576 0 0 1-.419-.182Zm-6.791-3.55H8.796c-1.068 0-1.963-.361-2.685-1.083s-1.083-1.612-1.083-2.667c0-.899.267-1.681.8-2.349a3.605 3.605 0 0 1 2.058-1.293l1.129 1.13h-.219c-.728 0-1.329.239-1.802.718-.473.48-.71 1.077-.71 1.794 0 .716.237 1.313.71 1.793s1.074.719 1.802.719h2.422c.17 0 .315.058.437.173a.588.588 0 0 1 .182.446c0 .182-.061.33-.182.446a.612.612 0 0 1-.437.173Zm.892-3.186h-1.748a.585.585 0 0 1-.419-.155.537.537 0 0 1-.164-.41c0-.17.055-.306.164-.41a.585.585 0 0 1 .419-.154h.6l1.148 1.129Z",
|
|
6930
|
-
fill: "#FFF",
|
|
6931
|
-
fillRule: "nonzero"
|
|
6932
|
-
})]
|
|
6933
|
-
})]
|
|
6934
|
-
})]
|
|
6935
|
-
}));
|
|
6936
|
-
};
|
|
6937
|
-
BrokenExternalIcon.defaultProps = {
|
|
6938
|
-
width: "50",
|
|
6939
|
-
height: "50",
|
|
6940
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6941
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink"
|
|
6942
|
-
};
|
|
6943
|
-
var ExternalIcon = function ExternalIcon(props) {
|
|
6944
|
-
return jsxRuntime.jsxs("svg", _objectSpread$Z(_objectSpread$Z({}, props), {}, {
|
|
6945
|
-
children: [jsxRuntime.jsx("defs", {
|
|
6946
|
-
children: jsxRuntime.jsx("path", {
|
|
6947
|
-
id: "a",
|
|
6948
|
-
d: "M0 0h50v50H0z"
|
|
6949
|
-
})
|
|
6950
|
-
}), jsxRuntime.jsxs("g", {
|
|
6951
|
-
fill: "none",
|
|
6952
|
-
fillRule: "evenodd",
|
|
6953
|
-
children: [jsxRuntime.jsx("path", {
|
|
6954
|
-
d: "M0 0h50v50H0z",
|
|
6955
|
-
fill: "#D8D8D8",
|
|
6956
|
-
fillRule: "nonzero"
|
|
6957
|
-
}), jsxRuntime.jsxs("g", {
|
|
6958
|
-
children: [jsxRuntime.jsx("mask", {
|
|
6959
|
-
id: "b",
|
|
6960
|
-
fill: "#fff",
|
|
6961
|
-
children: jsxRuntime.jsx("use", {
|
|
6962
|
-
xlinkHref: "#a"
|
|
6963
|
-
})
|
|
6964
|
-
}), jsxRuntime.jsxs("g", {
|
|
6965
|
-
fillRule: "nonzero",
|
|
6966
|
-
mask: "url(#b)",
|
|
6967
|
-
children: [jsxRuntime.jsx("path", {
|
|
6968
|
-
d: "M-4.545 3.27C-4.545 1.464-2.963 0-1.01 0h51.262c1.953 0 3.536 1.464 3.536 3.27v43.46c0 1.806-1.583 3.27-3.536 3.27H-1.01c-1.953 0-3.535-1.464-3.535-3.27V3.27Z",
|
|
6969
|
-
fill: "#B4E1FD"
|
|
6970
|
-
}), jsxRuntime.jsx("path", {
|
|
6971
|
-
d: "M21.97 12.879a5.303 5.303 0 1 1-10.606 0 5.303 5.303 0 0 1 10.606 0Z",
|
|
6972
|
-
fill: "#E8F3FC"
|
|
6973
|
-
}), jsxRuntime.jsx("path", {
|
|
6974
|
-
d: "M11.951 26.917-4.545 46.42V50h58.333V33.83L41.094 19.103c-1.062-1.231-3.03-1.23-4.09.003L25.334 32.69c-1.047 1.218-2.985 1.237-4.057.04l-5.255-5.868c-1.077-1.204-3.028-1.178-4.07.055Z",
|
|
6975
|
-
fill: "#E8F4FC"
|
|
6976
|
-
})]
|
|
6977
|
-
})]
|
|
6978
|
-
}), jsxRuntime.jsxs("g", {
|
|
6979
|
-
transform: "translate(22 22)",
|
|
6980
|
-
children: [jsxRuntime.jsx("circle", {
|
|
6981
|
-
fill: "#078CDF",
|
|
6982
|
-
cx: "12",
|
|
6983
|
-
cy: "12",
|
|
6984
|
-
r: "12"
|
|
6985
|
-
}), jsxRuntime.jsx("path", {
|
|
6986
|
-
d: "M8.625 15c-.934 0-1.73-.33-2.387-.988a3.251 3.251 0 0 1-.988-2.387c0-.934.33-1.73.988-2.388a3.252 3.252 0 0 1 2.387-.987h2.025c.191 0 .352.065.481.194.13.13.194.29.194.481a.653.653 0 0 1-.194.48.654.654 0 0 1-.481.195H8.625c-.562 0-1.04.197-1.434.59-.394.394-.591.873-.591 1.435s.197 1.04.59 1.434c.394.394.873.591 1.435.591h2.025c.191 0 .352.065.481.194.13.13.194.29.194.481a.653.653 0 0 1-.194.48.654.654 0 0 1-.481.195H8.625Zm1.35-2.7a.651.651 0 0 1-.48-.194.651.651 0 0 1-.195-.481c0-.191.065-.352.194-.481.13-.13.29-.194.481-.194h4.05c.191 0 .352.065.481.194.13.13.194.29.194.481a.653.653 0 0 1-.194.48.654.654 0 0 1-.481.195h-4.05ZM13.35 15a.651.651 0 0 1-.48-.194.651.651 0 0 1-.195-.481c0-.191.065-.352.194-.481.13-.13.29-.194.481-.194h2.025c.562 0 1.04-.197 1.434-.59.394-.394.591-.873.591-1.435s-.197-1.04-.59-1.434a1.953 1.953 0 0 0-1.435-.591H13.35a.651.651 0 0 1-.48-.194.651.651 0 0 1-.195-.481c0-.191.065-.352.194-.481.13-.13.29-.194.481-.194h2.025c.934 0 1.73.329 2.388.987.658.658.987 1.454.987 2.388 0 .934-.329 1.73-.987 2.387a3.253 3.253 0 0 1-2.388.988H13.35Z",
|
|
6987
|
-
fill: "#FFF"
|
|
6988
|
-
})]
|
|
6989
|
-
})]
|
|
6990
|
-
})]
|
|
6991
|
-
}));
|
|
6992
|
-
};
|
|
6993
|
-
ExternalIcon.defaultProps = {
|
|
6994
|
-
width: "50",
|
|
6995
|
-
height: "50",
|
|
6996
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6997
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink"
|
|
6998
|
-
};
|
|
6999
|
-
var NoImageIcon$1 = function NoImageIcon(props) {
|
|
7000
|
-
return jsxRuntime.jsxs("svg", _objectSpread$Z(_objectSpread$Z({}, props), {}, {
|
|
7001
|
-
children: [jsxRuntime.jsx("defs", {
|
|
7002
|
-
children: jsxRuntime.jsx("path", {
|
|
7003
|
-
id: "a",
|
|
7004
|
-
d: "M0 0h66v66H0z"
|
|
7005
|
-
})
|
|
7006
|
-
}), jsxRuntime.jsxs("g", {
|
|
7007
|
-
fill: "none",
|
|
7008
|
-
fillRule: "evenodd",
|
|
7009
|
-
children: [jsxRuntime.jsx("mask", {
|
|
7010
|
-
id: "b",
|
|
7011
|
-
fill: "#fff",
|
|
7012
|
-
children: jsxRuntime.jsx("use", {
|
|
7013
|
-
xlinkHref: "#a"
|
|
7014
|
-
})
|
|
7015
|
-
}), jsxRuntime.jsx("use", {
|
|
7016
|
-
fill: "#D8D8D8",
|
|
7017
|
-
xlinkHref: "#a"
|
|
7018
|
-
}), jsxRuntime.jsxs("g", {
|
|
7019
|
-
mask: "url(#b)",
|
|
7020
|
-
fillRule: "nonzero",
|
|
7021
|
-
children: [jsxRuntime.jsx("path", {
|
|
7022
|
-
d: "M-6 4.316C-6 1.932-3.91 0-1.333 0h67.666C68.911 0 71 1.932 71 4.316v57.368C71 64.067 68.91 66 66.333 66H-1.333C-3.911 66-6 64.067-6 61.684V4.316Z",
|
|
7023
|
-
fill: "#B4E1FD"
|
|
7024
|
-
}), jsxRuntime.jsx("path", {
|
|
7025
|
-
d: "M29 17a7 7 0 1 1-14 0 7 7 0 0 1 14 0Z",
|
|
7026
|
-
fill: "#E8F3FC"
|
|
7027
|
-
}), jsxRuntime.jsx("path", {
|
|
7028
|
-
d: "M15.776 35.53-6 61.276V66h77V44.654L54.244 25.218c-1.401-1.626-4-1.624-5.398.004L33.44 43.15c-1.381 1.607-3.94 1.632-5.355.052l-6.936-7.746c-1.422-1.588-3.997-1.553-5.372.073Z",
|
|
7029
|
-
fill: "#E8F4FC"
|
|
7030
|
-
})]
|
|
7031
|
-
})]
|
|
7032
|
-
})]
|
|
7033
|
-
}));
|
|
7034
|
-
};
|
|
7035
|
-
NoImageIcon$1.defaultProps = {
|
|
7036
|
-
width: "66",
|
|
7037
|
-
height: "66",
|
|
7038
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
7039
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink"
|
|
7040
|
-
};
|
|
6854
|
+
const _excluded$c = ["label", "className", "size", "useExternalIconAsFallback"];
|
|
6855
|
+
var BrokenIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGlkPSJCcm9rZW5JY29uLXBhdGgtMSIgZD0iTTAgMGg1MHY1MEgweiIvPjxwYXRoIGQ9Ik00NSA1TDUgNDUiIGlkPSJCcm9rZW5JY29uLXBhdGgtMyIvPjwvZGVmcz48ZyBpZD0iQnJva2VuSWNvbi1BTEwtY29tcG9uZW50cyIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGcgaWQ9IkJyb2tlbkljb24tU2hhcmVkLS8tSW1hZ2UtY29udGFpbmVyIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtOTE5IC0xMTA3KSI+PGcgaWQ9IkJyb2tlbkljb24tR3JvdXAtNSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoOTE5IDExMDcpIj48ZyBpZD0iQnJva2VuSWNvbi1JbWFnZS1jb250YWluZXItdGh1bWJuYWlsLSI+PGcgaWQ9IkJyb2tlbkljb24tTWFzayIgZmlsbD0iI0Q4RDhEOCIgZmlsbC1ydW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MC4yNDQgMjUuMjE4Yy0xLjQwMS0xLjYyNi00LTEuNjI0LTUuMzk4LjAwNEwzOS40NCA0My4xNWMtMS4zODEgMS42MDctMy45NCAxLjYzMi01LjM1NS4wNTJsLTYuOTM2LTcuNzQ2Yy0xLjQyMi0xLjU4OC0zLjk5Ny0xLjU1My01LjM3Mi4wNzN6IiBmaWxsPSIjRThGNEZDIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNikiLz48L2c+PC9nPjwvZz48L2c+PC9zdmc+";
|
|
7041
6859
|
const imgExtRegex = /.[^.]+$/;
|
|
7042
6860
|
const imageStyles$1 = {
|
|
7043
6861
|
name: "18vlefn",
|
|
@@ -7051,7 +6869,7 @@ const Image = _ref => {
|
|
|
7051
6869
|
size = _ref$size === void 0 ? 'thumb' : _ref$size,
|
|
7052
6870
|
_ref$useExternalIconA = _ref.useExternalIconAsFallback,
|
|
7053
6871
|
useExternalIconAsFallback = _ref$useExternalIconA === void 0 ? true : _ref$useExternalIconA,
|
|
7054
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6872
|
+
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
7055
6873
|
const _useState = react.useState(formatUrl(props)),
|
|
7056
6874
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7057
6875
|
src = _useState2[0],
|
|
@@ -7157,56 +6975,15 @@ const imageStyles = {
|
|
|
7157
6975
|
} ;
|
|
7158
6976
|
const counterStyles = /*#__PURE__*/react$1.css("background:", uiKit.designTokens.colorSurface, ";border-left:1px solid ", uiKit.designTokens.colorNeutral, ";color:", uiKit.designTokens.colorSolid, ";margin-left:0;padding:17px 12px;height:", IMAGE_DIMENSION.DEFAULT, ";.condensed &{height:", IMAGE_DIMENSION.CONDENSED, ";}" + ("" ), "" );
|
|
7159
6977
|
|
|
7160
|
-
const _excluded$
|
|
6978
|
+
const _excluded$b = ["children"],
|
|
7161
6979
|
_excluded2$1 = ["url", "size"];
|
|
7162
|
-
function ownKeys$
|
|
7163
|
-
function _objectSpread$
|
|
7164
|
-
var NoImageIcon =
|
|
7165
|
-
return jsxRuntime.jsxs("svg", _objectSpread$Y(_objectSpread$Y({}, props), {}, {
|
|
7166
|
-
children: [jsxRuntime.jsx("defs", {
|
|
7167
|
-
children: jsxRuntime.jsx("path", {
|
|
7168
|
-
id: "a",
|
|
7169
|
-
d: "M0 0h66v66H0z"
|
|
7170
|
-
})
|
|
7171
|
-
}), jsxRuntime.jsxs("g", {
|
|
7172
|
-
fill: "none",
|
|
7173
|
-
fillRule: "evenodd",
|
|
7174
|
-
children: [jsxRuntime.jsx("mask", {
|
|
7175
|
-
id: "b",
|
|
7176
|
-
fill: "#fff",
|
|
7177
|
-
children: jsxRuntime.jsx("use", {
|
|
7178
|
-
xlinkHref: "#a"
|
|
7179
|
-
})
|
|
7180
|
-
}), jsxRuntime.jsx("use", {
|
|
7181
|
-
fill: "#D8D8D8",
|
|
7182
|
-
xlinkHref: "#a"
|
|
7183
|
-
}), jsxRuntime.jsxs("g", {
|
|
7184
|
-
mask: "url(#b)",
|
|
7185
|
-
fillRule: "nonzero",
|
|
7186
|
-
children: [jsxRuntime.jsx("path", {
|
|
7187
|
-
d: "M-6 4.316C-6 1.932-3.91 0-1.333 0h67.666C68.911 0 71 1.932 71 4.316v57.368C71 64.067 68.91 66 66.333 66H-1.333C-3.911 66-6 64.067-6 61.684V4.316Z",
|
|
7188
|
-
fill: "#B4E1FD"
|
|
7189
|
-
}), jsxRuntime.jsx("path", {
|
|
7190
|
-
d: "M29 17a7 7 0 1 1-14 0 7 7 0 0 1 14 0Z",
|
|
7191
|
-
fill: "#E8F3FC"
|
|
7192
|
-
}), jsxRuntime.jsx("path", {
|
|
7193
|
-
d: "M15.776 35.53-6 61.276V66h77V44.654L54.244 25.218c-1.401-1.626-4-1.624-5.398.004L33.44 43.15c-1.381 1.607-3.94 1.632-5.355.052l-6.936-7.746c-1.422-1.588-3.997-1.553-5.372.073Z",
|
|
7194
|
-
fill: "#E8F4FC"
|
|
7195
|
-
})]
|
|
7196
|
-
})]
|
|
7197
|
-
})]
|
|
7198
|
-
}));
|
|
7199
|
-
};
|
|
7200
|
-
NoImageIcon.defaultProps = {
|
|
7201
|
-
width: "66",
|
|
7202
|
-
height: "66",
|
|
7203
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
7204
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink"
|
|
7205
|
-
};
|
|
6980
|
+
function ownKeys$Z(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6981
|
+
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__default["default"](_context = ownKeys$Z(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$Z(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
6982
|
+
var NoImageIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjYiIGhlaWdodD0iNjYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGlkPSJOb0ltYWdlSWNvbi1wYXRoLTEiIGQ9Ik0wIDBoNjZ2NjZIMHoiLz48L2RlZnM+PGcgaWQ9Ik5vSW1hZ2VJY29uLUFMTC1jb21wb25lbnRzIiBzdHJva2U9Im5v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UuMzk4LjAwNEwzOS40NCA0My4xNWMtMS4zODEgMS42MDctMy45NCAxLjYzMi01LjM1NS4wNTJsLTYuOTM2LTcuNzQ2Yy0xLjQyMi0xLjU4OC0zLjk5Ny0xLjU1My01LjM3Mi4wNzN6IiBmaWxsPSIjRThGNEZDIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNikiLz48L2c+PC9nPjwvZz48L2c+PC9zdmc+";
|
|
7206
6983
|
const WrapperComponent = /*#__PURE__*/react.forwardRef((_ref, ref) => {
|
|
7207
6984
|
let children = _ref.children,
|
|
7208
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7209
|
-
return jsxRuntime.jsx("div", _objectSpread$
|
|
6985
|
+
props = _objectWithoutProperties(_ref, _excluded$b);
|
|
6986
|
+
return jsxRuntime.jsx("div", _objectSpread$Z(_objectSpread$Z({}, props), {}, {
|
|
7210
6987
|
ref: ref,
|
|
7211
6988
|
children: children
|
|
7212
6989
|
}));
|
|
@@ -7285,10 +7062,10 @@ const ImageContainer = _ref3 => {
|
|
|
7285
7062
|
children: [isLoading && jsxRuntime.jsx(uiKit.LoadingSpinner, {}), !isLoading && jsxRuntime.jsx(AccessibleImage, {
|
|
7286
7063
|
isSelectable: !!props.onClick,
|
|
7287
7064
|
label: props.label || '',
|
|
7288
|
-
children: jsxRuntime.jsx(Image, _objectSpread$
|
|
7065
|
+
children: jsxRuntime.jsx(Image, _objectSpread$Z(_objectSpread$Z({
|
|
7289
7066
|
css: imageStyles,
|
|
7290
7067
|
className: props.imageClassName
|
|
7291
|
-
}, omit__default["default"](_objectSpread$
|
|
7068
|
+
}, omit__default["default"](_objectSpread$Z({
|
|
7292
7069
|
url,
|
|
7293
7070
|
size
|
|
7294
7071
|
}, props), ['counter'])), {}, {
|
|
@@ -7306,9 +7083,9 @@ const ImageContainer = _ref3 => {
|
|
|
7306
7083
|
};
|
|
7307
7084
|
ImageContainer.displayName = 'ImageContainer';
|
|
7308
7085
|
|
|
7309
|
-
const _excluded$
|
|
7310
|
-
function ownKeys$
|
|
7311
|
-
function _objectSpread$
|
|
7086
|
+
const _excluded$a = ["typeId", "id"];
|
|
7087
|
+
function ownKeys$Y(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7088
|
+
function _objectSpread$Y(e) { for (var r = 1; r < arguments.length; r++) { var _context4, _context5; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context4 = ownKeys$Y(Object(t), !0)).call(_context4, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context5 = ownKeys$Y(Object(t))).call(_context5, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
7312
7089
|
const ProductChanges = props => {
|
|
7313
7090
|
const intl = reactIntl.useIntl();
|
|
7314
7091
|
const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => ({
|
|
@@ -7336,7 +7113,7 @@ const ProductChanges = props => {
|
|
|
7336
7113
|
return props.value && _Object$keys__default["default"](props.value).length > 0 ? map__default["default"](props.value, (value, key) => jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
7337
7114
|
scale: "xs",
|
|
7338
7115
|
children: [jsxRuntime.jsx("div", {
|
|
7339
|
-
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
7116
|
+
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$Y(_objectSpread$Y({}, messages$1l.categoryOrderHintReferenceLabel), {}, {
|
|
7340
7117
|
values: {
|
|
7341
7118
|
category: value.name ? localize({
|
|
7342
7119
|
obj: value,
|
|
@@ -7347,7 +7124,7 @@ const ProductChanges = props => {
|
|
|
7347
7124
|
}
|
|
7348
7125
|
}))
|
|
7349
7126
|
}), jsxRuntime.jsx("div", {
|
|
7350
|
-
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
7127
|
+
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$Y(_objectSpread$Y({}, messages$1l.categoryOrderHintNumberLabel), {}, {
|
|
7351
7128
|
values: {
|
|
7352
7129
|
orderHint: value.orderHint
|
|
7353
7130
|
}
|
|
@@ -7369,7 +7146,7 @@ const ProductChanges = props => {
|
|
|
7369
7146
|
const priceDiff = getPropertyDifferences(props.change.previousValue, props.change.nextValue);
|
|
7370
7147
|
const changedAttributes = _Object$keys__default["default"](priceDiff);
|
|
7371
7148
|
return jsxRuntime.jsx(ComposedChange, {
|
|
7372
|
-
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
7149
|
+
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$Y(_objectSpread$Y({}, messages$1l.variantLabel), {}, {
|
|
7373
7150
|
values: {
|
|
7374
7151
|
b: getBoldText,
|
|
7375
7152
|
variant: props.change.variant
|
|
@@ -7398,7 +7175,7 @@ const ProductChanges = props => {
|
|
|
7398
7175
|
const value = props.value || props.change.previousValue;
|
|
7399
7176
|
return jsxRuntime.jsxs("div", {
|
|
7400
7177
|
css: productAttributeValuesStyles,
|
|
7401
|
-
children: [jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
7178
|
+
children: [jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$Y(_objectSpread$Y({}, messages$1l.variantLabel), {}, {
|
|
7402
7179
|
values: {
|
|
7403
7180
|
b: getBoldText,
|
|
7404
7181
|
variant: props.change.variant
|
|
@@ -7444,7 +7221,7 @@ const ProductChanges = props => {
|
|
|
7444
7221
|
});
|
|
7445
7222
|
return jsxRuntime.jsxs("div", {
|
|
7446
7223
|
css: productAttributeValuesStyles,
|
|
7447
|
-
children: [jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
7224
|
+
children: [jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$Y(_objectSpread$Y({}, messages$1l.variantLabel), {}, {
|
|
7448
7225
|
values: {
|
|
7449
7226
|
b: getBoldText,
|
|
7450
7227
|
variant: props.change.variant
|
|
@@ -7464,7 +7241,7 @@ const ProductChanges = props => {
|
|
|
7464
7241
|
case ResourceChangeInput.SetAssetCustomType:
|
|
7465
7242
|
return jsxRuntime.jsxs("div", {
|
|
7466
7243
|
css: productAttributeValuesStyles,
|
|
7467
|
-
children: [jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
7244
|
+
children: [jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$Y(_objectSpread$Y({}, messages$1l.variantLabel), {}, {
|
|
7468
7245
|
values: {
|
|
7469
7246
|
b: getBoldText,
|
|
7470
7247
|
variant: props.change.variant
|
|
@@ -7477,7 +7254,7 @@ const ProductChanges = props => {
|
|
|
7477
7254
|
{
|
|
7478
7255
|
return jsxRuntime.jsxs("div", {
|
|
7479
7256
|
css: productAttributeValuesStyles,
|
|
7480
|
-
children: [jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
7257
|
+
children: [jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$Y(_objectSpread$Y({}, messages$1l.variantCatalogDataLabel), {}, {
|
|
7481
7258
|
values: {
|
|
7482
7259
|
i: getItalicText,
|
|
7483
7260
|
b: getBoldText,
|
|
@@ -7491,7 +7268,7 @@ const ProductChanges = props => {
|
|
|
7491
7268
|
children: [jsxRuntime.jsx("span", {
|
|
7492
7269
|
children: formatMoney(props.value.value, intl)
|
|
7493
7270
|
}), jsxRuntime.jsx("span", {
|
|
7494
|
-
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
7271
|
+
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$Y(_objectSpread$Y({}, messages$1l.productDiscountLabel), {}, {
|
|
7495
7272
|
values: {
|
|
7496
7273
|
productDiscount: props.value.discount?.name ? localize({
|
|
7497
7274
|
obj: props.value.discount,
|
|
@@ -7516,7 +7293,7 @@ const ProductChanges = props => {
|
|
|
7516
7293
|
const removedImages = props.value && props.value[0] || props.change.previousValue && props.change.previousValue[0];
|
|
7517
7294
|
return jsxRuntime.jsxs("div", {
|
|
7518
7295
|
css: productAttributeValuesStyles,
|
|
7519
|
-
children: [jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
7296
|
+
children: [jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$Y(_objectSpread$Y({}, messages$1l.variantLabel), {}, {
|
|
7520
7297
|
values: {
|
|
7521
7298
|
b: getBoldText,
|
|
7522
7299
|
variant: props.change.variant
|
|
@@ -7528,13 +7305,13 @@ const ProductChanges = props => {
|
|
|
7528
7305
|
size: "thumb",
|
|
7529
7306
|
withHover: true
|
|
7530
7307
|
}, image.url))
|
|
7531
|
-
}) : jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
7308
|
+
}) : jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$Y({}, messages$1l.noImages))]
|
|
7532
7309
|
});
|
|
7533
7310
|
}
|
|
7534
7311
|
case ResourceChangeInput.MoveImageToPosition:
|
|
7535
7312
|
{
|
|
7536
7313
|
var _context3;
|
|
7537
|
-
if (props.value.length === 0) return jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
7314
|
+
if (props.value.length === 0) return jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$Y({}, messages$1l.noImages));
|
|
7538
7315
|
return jsxRuntime.jsx(uiKit.Spacings.Inline, {
|
|
7539
7316
|
scale: "xs",
|
|
7540
7317
|
children: _mapInstanceProperty__default["default"](_context3 = props.value).call(_context3, image => jsxRuntime.jsx(ImageContainer, {
|
|
@@ -7566,7 +7343,7 @@ const ProductChanges = props => {
|
|
|
7566
7343
|
case ResourceChangeInput.SetVariantAvailability:
|
|
7567
7344
|
{
|
|
7568
7345
|
return jsxRuntime.jsx(ComposedChange, {
|
|
7569
|
-
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
7346
|
+
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$Y(_objectSpread$Y({}, messages$1l.variantCatalogDataLabel), {}, {
|
|
7570
7347
|
values: {
|
|
7571
7348
|
i: getItalicText,
|
|
7572
7349
|
b: getBoldText,
|
|
@@ -7603,7 +7380,7 @@ const ProductChanges = props => {
|
|
|
7603
7380
|
const value = props.change.nextValue || props.change.previousValue;
|
|
7604
7381
|
return jsxRuntime.jsxs("div", {
|
|
7605
7382
|
css: productAttributeValuesStyles,
|
|
7606
|
-
children: [jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
7383
|
+
children: [jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$Y(_objectSpread$Y({}, messages$1l.variantLabel), {}, {
|
|
7607
7384
|
values: {
|
|
7608
7385
|
b: getBoldText,
|
|
7609
7386
|
variant: props.change.variant
|
|
@@ -7624,7 +7401,7 @@ const ProductChanges = props => {
|
|
|
7624
7401
|
const _ref = props.value || {},
|
|
7625
7402
|
typeId = _ref.typeId,
|
|
7626
7403
|
id = _ref.id,
|
|
7627
|
-
expandedProps = _objectWithoutProperties(_ref, _excluded$
|
|
7404
|
+
expandedProps = _objectWithoutProperties(_ref, _excluded$a);
|
|
7628
7405
|
return props.value?.id ? jsxRuntime.jsx(ReferenceTypeChange, {
|
|
7629
7406
|
id: id,
|
|
7630
7407
|
typeId: typeId,
|
|
@@ -7643,7 +7420,7 @@ const ProductChanges = props => {
|
|
|
7643
7420
|
return props.value ? jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
7644
7421
|
scale: "xs",
|
|
7645
7422
|
children: [jsxRuntime.jsx("div", {
|
|
7646
|
-
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
7423
|
+
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$Y(_objectSpread$Y({}, messages$1l.averageRatingLabel), {}, {
|
|
7647
7424
|
values: {
|
|
7648
7425
|
averageRating: props.value.averageRating,
|
|
7649
7426
|
highestRating: props.value.highestRating,
|
|
@@ -7651,7 +7428,7 @@ const ProductChanges = props => {
|
|
|
7651
7428
|
}
|
|
7652
7429
|
}))
|
|
7653
7430
|
}), jsxRuntime.jsx("div", {
|
|
7654
|
-
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
7431
|
+
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$Y(_objectSpread$Y({}, messages$1l.numberOfReviewsLabel), {}, {
|
|
7655
7432
|
values: {
|
|
7656
7433
|
count: props.value.count
|
|
7657
7434
|
}
|
|
@@ -7921,7 +7698,7 @@ const StagedQuoteChanges = props => {
|
|
|
7921
7698
|
};
|
|
7922
7699
|
StagedQuoteChanges.displayName = 'StagedQuoteChangeItem';
|
|
7923
7700
|
|
|
7924
|
-
const _excluded$
|
|
7701
|
+
const _excluded$9 = ["typeId", "id"];
|
|
7925
7702
|
const ReviewChanges = props => {
|
|
7926
7703
|
switch (props.change.change) {
|
|
7927
7704
|
case ResourceChangeInput.SetCustomType:
|
|
@@ -7943,7 +7720,7 @@ const ReviewChanges = props => {
|
|
|
7943
7720
|
const _ref = props.value || {},
|
|
7944
7721
|
typeId = _ref.typeId,
|
|
7945
7722
|
id = _ref.id,
|
|
7946
|
-
expandedProps = _objectWithoutProperties(_ref, _excluded$
|
|
7723
|
+
expandedProps = _objectWithoutProperties(_ref, _excluded$9);
|
|
7947
7724
|
return props.value?.id ? jsxRuntime.jsx(ReferenceTypeChange, {
|
|
7948
7725
|
id: id,
|
|
7949
7726
|
typeId: typeId,
|
|
@@ -7960,9 +7737,9 @@ const ReviewChanges = props => {
|
|
|
7960
7737
|
};
|
|
7961
7738
|
ReviewChanges.displayName = 'ReviewChanges';
|
|
7962
7739
|
|
|
7963
|
-
const _excluded$
|
|
7964
|
-
function ownKeys$
|
|
7965
|
-
function _objectSpread$
|
|
7740
|
+
const _excluded$8 = ["typeId", "id"];
|
|
7741
|
+
function ownKeys$X(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7742
|
+
function _objectSpread$X(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$X(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$X(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
7966
7743
|
const ShoppingListChanges = props => {
|
|
7967
7744
|
const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => ({
|
|
7968
7745
|
language: applicationContext.dataLocale,
|
|
@@ -7985,7 +7762,7 @@ const ShoppingListChanges = props => {
|
|
|
7985
7762
|
});
|
|
7986
7763
|
}
|
|
7987
7764
|
case ResourceChangeInput.SetDeleteDaysAfterLastModification:
|
|
7988
|
-
return jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
7765
|
+
return jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$X(_objectSpread$X({}, messages$1l.setRestockableInDaysLabel), {}, {
|
|
7989
7766
|
values: {
|
|
7990
7767
|
day: props.value
|
|
7991
7768
|
}
|
|
@@ -8010,7 +7787,7 @@ const ShoppingListChanges = props => {
|
|
|
8010
7787
|
case ResourceChangeInput.ChangeTextLineItemName:
|
|
8011
7788
|
{
|
|
8012
7789
|
return jsxRuntime.jsx(ComposedChange, {
|
|
8013
|
-
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
7790
|
+
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$X(_objectSpread$X({}, messages$1l.textLineItemLabel), {}, {
|
|
8014
7791
|
values: {
|
|
8015
7792
|
b: getBoldText,
|
|
8016
7793
|
item: localize({
|
|
@@ -8039,7 +7816,7 @@ const ShoppingListChanges = props => {
|
|
|
8039
7816
|
case ResourceChangeInput.ChangeTextLineItemQuantity:
|
|
8040
7817
|
{
|
|
8041
7818
|
return jsxRuntime.jsx(ComposedChange, {
|
|
8042
|
-
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
7819
|
+
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$X(_objectSpread$X({}, props.change.change === 'changeTextLineItemQuantity' ? messages$1l.textLineItemLabel : messages$1l.lineItemLabel), {}, {
|
|
8043
7820
|
values: {
|
|
8044
7821
|
b: getBoldText,
|
|
8045
7822
|
item: localize({
|
|
@@ -8077,7 +7854,7 @@ const ShoppingListChanges = props => {
|
|
|
8077
7854
|
{
|
|
8078
7855
|
return jsxRuntime.jsxs("div", {
|
|
8079
7856
|
css: productAttributeValuesStyles,
|
|
8080
|
-
children: [jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
7857
|
+
children: [jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$X(_objectSpread$X({}, props.change.change === 'setTextLineItemCustomField' ? messages$1l.textLineItemLabel : messages$1l.lineItemLabel), {}, {
|
|
8081
7858
|
values: {
|
|
8082
7859
|
b: getBoldText,
|
|
8083
7860
|
item: localize({
|
|
@@ -8089,7 +7866,7 @@ const ShoppingListChanges = props => {
|
|
|
8089
7866
|
variant: props.change.lineItem?.variantId
|
|
8090
7867
|
}
|
|
8091
7868
|
})), jsxRuntime.jsx(CustomFieldChange, {
|
|
8092
|
-
change: _objectSpread$
|
|
7869
|
+
change: _objectSpread$X(_objectSpread$X({}, props.change), {}, {
|
|
8093
7870
|
name: props.change.name || props.change.fieldName
|
|
8094
7871
|
})
|
|
8095
7872
|
})]
|
|
@@ -8100,7 +7877,7 @@ const ShoppingListChanges = props => {
|
|
|
8100
7877
|
{
|
|
8101
7878
|
const item = props.change.textLineItem?.name ? props.change.textLineItem : props.change.lineItem;
|
|
8102
7879
|
return jsxRuntime.jsx(ComposedChange, {
|
|
8103
|
-
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
7880
|
+
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$X(_objectSpread$X({}, props.change.change === 'setTextLineItemCustomType' ? messages$1l.textLineItemLabel : messages$1l.lineItemLabel), {}, {
|
|
8104
7881
|
values: {
|
|
8105
7882
|
b: getBoldText,
|
|
8106
7883
|
item: localize({
|
|
@@ -8140,7 +7917,7 @@ const ShoppingListChanges = props => {
|
|
|
8140
7917
|
const _ref = props.value || {},
|
|
8141
7918
|
typeId = _ref.typeId,
|
|
8142
7919
|
id = _ref.id,
|
|
8143
|
-
expandedProps = _objectWithoutProperties(_ref, _excluded$
|
|
7920
|
+
expandedProps = _objectWithoutProperties(_ref, _excluded$8);
|
|
8144
7921
|
return props.value?.id ? jsxRuntime.jsx(ReferenceTypeChange, {
|
|
8145
7922
|
id: id,
|
|
8146
7923
|
typeId: typeId,
|
|
@@ -8157,7 +7934,7 @@ const ShoppingListChanges = props => {
|
|
|
8157
7934
|
};
|
|
8158
7935
|
ShoppingListChanges.displayName = 'ShoppingListChanges';
|
|
8159
7936
|
|
|
8160
|
-
const _excluded$
|
|
7937
|
+
const _excluded$7 = ["typeId", "id"];
|
|
8161
7938
|
const StateChanges = props => {
|
|
8162
7939
|
var _context;
|
|
8163
7940
|
switch (props.change.change) {
|
|
@@ -8188,7 +7965,7 @@ const StateChanges = props => {
|
|
|
8188
7965
|
children: _mapInstanceProperty__default["default"](_context = props.value).call(_context, resource => {
|
|
8189
7966
|
const typeId = resource.typeId,
|
|
8190
7967
|
id = resource.id,
|
|
8191
|
-
expandedProps = _objectWithoutProperties(resource, _excluded$
|
|
7968
|
+
expandedProps = _objectWithoutProperties(resource, _excluded$7);
|
|
8192
7969
|
return jsxRuntime.jsx(ReferenceTypeChange, {
|
|
8193
7970
|
id: id,
|
|
8194
7971
|
typeId: typeId,
|
|
@@ -8206,7 +7983,7 @@ const StateChanges = props => {
|
|
|
8206
7983
|
};
|
|
8207
7984
|
StateChanges.displayName = 'StateChanges';
|
|
8208
7985
|
|
|
8209
|
-
const _excluded$
|
|
7986
|
+
const _excluded$6 = ["typeId", "id"],
|
|
8210
7987
|
_excluded2 = ["typeId", "id"];
|
|
8211
7988
|
const StoreChanges = _ref => {
|
|
8212
7989
|
let change = _ref.change,
|
|
@@ -8236,7 +8013,7 @@ const StoreChanges = _ref => {
|
|
|
8236
8013
|
{
|
|
8237
8014
|
const typeId = value.typeId,
|
|
8238
8015
|
id = value.id,
|
|
8239
|
-
expandedProps = _objectWithoutProperties(value, _excluded$
|
|
8016
|
+
expandedProps = _objectWithoutProperties(value, _excluded$6);
|
|
8240
8017
|
return jsxRuntime.jsx(ReferenceTypeChange, {
|
|
8241
8018
|
id: id,
|
|
8242
8019
|
typeId: typeId,
|
|
@@ -8298,13 +8075,13 @@ const StoreChanges = _ref => {
|
|
|
8298
8075
|
};
|
|
8299
8076
|
StoreChanges.displayName = 'StoreChanges';
|
|
8300
8077
|
|
|
8301
|
-
function ownKeys$
|
|
8302
|
-
function _objectSpread$
|
|
8303
|
-
const ResourceTypeCell = props => jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
8078
|
+
function ownKeys$W(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8079
|
+
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__default["default"](_context = ownKeys$W(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$W(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
8080
|
+
const ResourceTypeCell = props => jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$W({}, getEntityTypeNameMessage(props.resourceType)));
|
|
8304
8081
|
ResourceTypeCell.displayName = 'ResourceTypeCell';
|
|
8305
8082
|
|
|
8306
|
-
function ownKeys$
|
|
8307
|
-
function _objectSpread$
|
|
8083
|
+
function ownKeys$V(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8084
|
+
function _objectSpread$V(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context3 = ownKeys$V(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys$V(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
8308
8085
|
const SubscriptionChanges = props => {
|
|
8309
8086
|
var _context, _context2;
|
|
8310
8087
|
switch (props.change.change) {
|
|
@@ -8315,7 +8092,7 @@ const SubscriptionChanges = props => {
|
|
|
8315
8092
|
case SUBSCRIPTION_CHANGE_TYPE_NAME.ADD_TRIGGERS:
|
|
8316
8093
|
return jsxRuntime.jsxs("div", {
|
|
8317
8094
|
css: productAttributeValuesStyles,
|
|
8318
|
-
children: [jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
8095
|
+
children: [jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$V(_objectSpread$V({}, messages$1l.subscriptionToLabel), {}, {
|
|
8319
8096
|
values: {
|
|
8320
8097
|
resourceType: jsxRuntime.jsx(ResourceTypeCell, {
|
|
8321
8098
|
resourceType: props.value.resourceTypeId
|
|
@@ -8374,8 +8151,8 @@ const TaxCategoryChanges = props => {
|
|
|
8374
8151
|
};
|
|
8375
8152
|
TaxCategoryChanges.displayName = 'TaxCategoryChanges';
|
|
8376
8153
|
|
|
8377
|
-
function ownKeys$
|
|
8378
|
-
function _objectSpread$
|
|
8154
|
+
function ownKeys$U(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8155
|
+
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__default["default"](_context5 = ownKeys$U(Object(t), !0)).call(_context5, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context6 = ownKeys$U(Object(t))).call(_context6, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
8379
8156
|
const TypeChanges = props => {
|
|
8380
8157
|
const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => ({
|
|
8381
8158
|
language: applicationContext.dataLocale,
|
|
@@ -8400,7 +8177,7 @@ const TypeChanges = props => {
|
|
|
8400
8177
|
{
|
|
8401
8178
|
return jsxRuntime.jsxs("div", {
|
|
8402
8179
|
css: productAttributeValuesStyles,
|
|
8403
|
-
children: [jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
8180
|
+
children: [jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$U(_objectSpread$U({}, messages$1l.fieldChangeLabel), {}, {
|
|
8404
8181
|
values: {
|
|
8405
8182
|
b: getBoldText,
|
|
8406
8183
|
fieldName: props.change.fieldName
|
|
@@ -8408,7 +8185,7 @@ const TypeChanges = props => {
|
|
|
8408
8185
|
})), jsxRuntime.jsx("div", {
|
|
8409
8186
|
css: productAttributeValuesStyles,
|
|
8410
8187
|
children: props.change.change === 'addLocalizedEnumValue' ? localize({
|
|
8411
|
-
obj: _objectSpread$
|
|
8188
|
+
obj: _objectSpread$U({}, props.change.nextValue),
|
|
8412
8189
|
key: 'label',
|
|
8413
8190
|
language: language,
|
|
8414
8191
|
fallbackOrder: languages
|
|
@@ -8419,7 +8196,7 @@ const TypeChanges = props => {
|
|
|
8419
8196
|
case ResourceChangeInput.ChangeEnumValueLabel:
|
|
8420
8197
|
case ResourceChangeInput.ChangeInputHint:
|
|
8421
8198
|
return jsxRuntime.jsx(ComposedChange, {
|
|
8422
|
-
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
8199
|
+
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$U(_objectSpread$U({}, messages$1l.fieldChangeLabel), {}, {
|
|
8423
8200
|
values: {
|
|
8424
8201
|
b: getBoldText,
|
|
8425
8202
|
fieldName: props.change.fieldName
|
|
@@ -8431,7 +8208,7 @@ const TypeChanges = props => {
|
|
|
8431
8208
|
case ResourceChangeInput.ChangeLocalizedEnumValueLabel:
|
|
8432
8209
|
{
|
|
8433
8210
|
return jsxRuntime.jsx(ComposedChange, {
|
|
8434
|
-
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
8211
|
+
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$U(_objectSpread$U({}, messages$1l.fieldChangeLabel), {}, {
|
|
8435
8212
|
values: {
|
|
8436
8213
|
b: getBoldText,
|
|
8437
8214
|
fieldName: props.change.fieldName
|
|
@@ -8451,13 +8228,13 @@ const TypeChanges = props => {
|
|
|
8451
8228
|
return jsxRuntime.jsxs("div", {
|
|
8452
8229
|
css: productAttributeValuesStyles,
|
|
8453
8230
|
children: [jsxRuntime.jsx("div", {
|
|
8454
|
-
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
8231
|
+
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$U(_objectSpread$U({}, messages$1l.definitionTypeLabel), {}, {
|
|
8455
8232
|
values: {
|
|
8456
8233
|
type: props.value.type.name
|
|
8457
8234
|
}
|
|
8458
8235
|
}))
|
|
8459
8236
|
}), jsxRuntime.jsx("div", {
|
|
8460
|
-
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
8237
|
+
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$U(_objectSpread$U({}, messages$1l.definitionNameLabel), {}, {
|
|
8461
8238
|
values: {
|
|
8462
8239
|
name: props.value.name
|
|
8463
8240
|
}
|
|
@@ -8528,7 +8305,7 @@ const TypeChanges = props => {
|
|
|
8528
8305
|
})) || [];
|
|
8529
8306
|
}
|
|
8530
8307
|
return jsxRuntime.jsx(ComposedChange, {
|
|
8531
|
-
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
8308
|
+
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$U(_objectSpread$U({}, messages$1l.fieldChangeLabel), {}, {
|
|
8532
8309
|
values: {
|
|
8533
8310
|
b: getBoldText,
|
|
8534
8311
|
fieldName: props.change.fieldName
|
|
@@ -8579,8 +8356,8 @@ const ZoneChanges = props => {
|
|
|
8579
8356
|
};
|
|
8580
8357
|
ZoneChanges.displayName = 'ZoneChanges';
|
|
8581
8358
|
|
|
8582
|
-
function ownKeys$
|
|
8583
|
-
function _objectSpread$
|
|
8359
|
+
function ownKeys$T(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8360
|
+
function _objectSpread$T(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$T(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$T(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
8584
8361
|
const GetChangesColumn = props => {
|
|
8585
8362
|
const resourceType = props.resourceType,
|
|
8586
8363
|
change = props.change,
|
|
@@ -8596,57 +8373,57 @@ const GetChangesColumn = props => {
|
|
|
8596
8373
|
}
|
|
8597
8374
|
switch (resourceType) {
|
|
8598
8375
|
case RESOURCE_TYPE_NAME.ASSOCIATE_ROLE:
|
|
8599
|
-
return jsxRuntime.jsx(AssociateRoleChanges, _objectSpread$
|
|
8376
|
+
return jsxRuntime.jsx(AssociateRoleChanges, _objectSpread$T({}, props));
|
|
8600
8377
|
case RESOURCE_TYPE_NAME.CART_DISCOUNT:
|
|
8601
8378
|
case RESOURCE_TYPE_NAME.DISCOUNT_CODE:
|
|
8602
8379
|
case RESOURCE_TYPE_NAME.PRODUCT_DISCOUNT:
|
|
8603
|
-
return jsxRuntime.jsx(DiscountChanges, _objectSpread$
|
|
8380
|
+
return jsxRuntime.jsx(DiscountChanges, _objectSpread$T({}, props));
|
|
8604
8381
|
case RESOURCE_TYPE_NAME.BUSINESS_UNIT:
|
|
8605
|
-
return jsxRuntime.jsx(BusinessUnitChanges, _objectSpread$
|
|
8382
|
+
return jsxRuntime.jsx(BusinessUnitChanges, _objectSpread$T({}, props));
|
|
8606
8383
|
case RESOURCE_TYPE_NAME.CATEGORY:
|
|
8607
|
-
return jsxRuntime.jsx(CategoryChanges, _objectSpread$
|
|
8384
|
+
return jsxRuntime.jsx(CategoryChanges, _objectSpread$T({}, props));
|
|
8608
8385
|
case RESOURCE_TYPE_NAME.CHANNEL:
|
|
8609
|
-
return jsxRuntime.jsx(ChannelChanges, _objectSpread$
|
|
8386
|
+
return jsxRuntime.jsx(ChannelChanges, _objectSpread$T({}, props));
|
|
8610
8387
|
case RESOURCE_TYPE_NAME.CUSTOMER_GROUP:
|
|
8611
8388
|
case RESOURCE_TYPE_NAME.CUSTOMER:
|
|
8612
|
-
return jsxRuntime.jsx(CustomerChanges, _objectSpread$
|
|
8389
|
+
return jsxRuntime.jsx(CustomerChanges, _objectSpread$T({}, props));
|
|
8613
8390
|
case RESOURCE_TYPE_NAME.EXTENSION:
|
|
8614
8391
|
case RESOURCE_TYPE_NAME.SUBSCRIPTION:
|
|
8615
|
-
return jsxRuntime.jsx(SubscriptionChanges$1, _objectSpread$
|
|
8392
|
+
return jsxRuntime.jsx(SubscriptionChanges$1, _objectSpread$T({}, props));
|
|
8616
8393
|
case RESOURCE_TYPE_NAME.INVENTORY_ENTRY:
|
|
8617
|
-
return jsxRuntime.jsx(InventoryEntryChanges, _objectSpread$
|
|
8394
|
+
return jsxRuntime.jsx(InventoryEntryChanges, _objectSpread$T({}, props));
|
|
8618
8395
|
case RESOURCE_TYPE_NAME.CUSTOM_OBJECT:
|
|
8619
|
-
return jsxRuntime.jsx(CustomObjectChanges, _objectSpread$
|
|
8396
|
+
return jsxRuntime.jsx(CustomObjectChanges, _objectSpread$T({}, props));
|
|
8620
8397
|
case RESOURCE_TYPE_NAME.ORDER:
|
|
8621
|
-
return jsxRuntime.jsx(OrderChanges, _objectSpread$
|
|
8398
|
+
return jsxRuntime.jsx(OrderChanges, _objectSpread$T({}, props));
|
|
8622
8399
|
case RESOURCE_TYPE_NAME.PAYMENT:
|
|
8623
|
-
return jsxRuntime.jsx(PaymentChanges, _objectSpread$
|
|
8400
|
+
return jsxRuntime.jsx(PaymentChanges, _objectSpread$T({}, props));
|
|
8624
8401
|
case RESOURCE_TYPE_NAME.PRODUCT:
|
|
8625
|
-
return jsxRuntime.jsx(ProductChanges, _objectSpread$
|
|
8402
|
+
return jsxRuntime.jsx(ProductChanges, _objectSpread$T({}, props));
|
|
8626
8403
|
case RESOURCE_TYPE_NAME.PRODUCT_SELECTION:
|
|
8627
|
-
return jsxRuntime.jsx(ProductSelectionChanges, _objectSpread$
|
|
8404
|
+
return jsxRuntime.jsx(ProductSelectionChanges, _objectSpread$T({}, props));
|
|
8628
8405
|
case RESOURCE_TYPE_NAME.PRODUCT_TYPE:
|
|
8629
|
-
return jsxRuntime.jsx(ProductTypeChanges, _objectSpread$
|
|
8406
|
+
return jsxRuntime.jsx(ProductTypeChanges, _objectSpread$T({}, props));
|
|
8630
8407
|
case RESOURCE_TYPE_NAME.QUOTE:
|
|
8631
|
-
return jsxRuntime.jsx(QuoteChanges, _objectSpread$
|
|
8408
|
+
return jsxRuntime.jsx(QuoteChanges, _objectSpread$T({}, props));
|
|
8632
8409
|
case RESOURCE_TYPE_NAME.QUOTE_REQUEST:
|
|
8633
|
-
return jsxRuntime.jsx(QuoteRequestChanges, _objectSpread$
|
|
8410
|
+
return jsxRuntime.jsx(QuoteRequestChanges, _objectSpread$T({}, props));
|
|
8634
8411
|
case RESOURCE_TYPE_NAME.STAGED_QUOTE:
|
|
8635
|
-
return jsxRuntime.jsx(StagedQuoteChanges, _objectSpread$
|
|
8412
|
+
return jsxRuntime.jsx(StagedQuoteChanges, _objectSpread$T({}, props));
|
|
8636
8413
|
case RESOURCE_TYPE_NAME.REVIEW:
|
|
8637
|
-
return jsxRuntime.jsx(ReviewChanges, _objectSpread$
|
|
8414
|
+
return jsxRuntime.jsx(ReviewChanges, _objectSpread$T({}, props));
|
|
8638
8415
|
case RESOURCE_TYPE_NAME.SHOPPING_LIST:
|
|
8639
|
-
return jsxRuntime.jsx(ShoppingListChanges, _objectSpread$
|
|
8416
|
+
return jsxRuntime.jsx(ShoppingListChanges, _objectSpread$T({}, props));
|
|
8640
8417
|
case RESOURCE_TYPE_NAME.STATE:
|
|
8641
|
-
return jsxRuntime.jsx(StateChanges, _objectSpread$
|
|
8418
|
+
return jsxRuntime.jsx(StateChanges, _objectSpread$T({}, props));
|
|
8642
8419
|
case RESOURCE_TYPE_NAME.STORE:
|
|
8643
|
-
return jsxRuntime.jsx(StoreChanges, _objectSpread$
|
|
8420
|
+
return jsxRuntime.jsx(StoreChanges, _objectSpread$T({}, props));
|
|
8644
8421
|
case RESOURCE_TYPE_NAME.TAX_CATEGORY:
|
|
8645
|
-
return jsxRuntime.jsx(TaxCategoryChanges, _objectSpread$
|
|
8422
|
+
return jsxRuntime.jsx(TaxCategoryChanges, _objectSpread$T({}, props));
|
|
8646
8423
|
case RESOURCE_TYPE_NAME.TYPE:
|
|
8647
|
-
return jsxRuntime.jsx(TypeChanges, _objectSpread$
|
|
8424
|
+
return jsxRuntime.jsx(TypeChanges, _objectSpread$T({}, props));
|
|
8648
8425
|
case RESOURCE_TYPE_NAME.ZONE:
|
|
8649
|
-
return jsxRuntime.jsx(ZoneChanges, _objectSpread$
|
|
8426
|
+
return jsxRuntime.jsx(ZoneChanges, _objectSpread$T({}, props));
|
|
8650
8427
|
default:
|
|
8651
8428
|
console.error('Unsupported resource type');
|
|
8652
8429
|
return jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
|
@@ -8923,7 +8700,34 @@ const MESSAGE_MAPPER = {
|
|
|
8923
8700
|
[RESOURCE_TYPE_NAME.STORE]: storeMessages.storeType,
|
|
8924
8701
|
[RESOURCE_TYPE_NAME.TAX_CATEGORY]: taxCategoryMessages.taxCategoryType,
|
|
8925
8702
|
[RESOURCE_TYPE_NAME.TYPE]: typeMessages.typeType,
|
|
8926
|
-
[RESOURCE_TYPE_NAME.ZONE]: zoneMessages.zoneType
|
|
8703
|
+
[RESOURCE_TYPE_NAME.ZONE]: zoneMessages.zoneType,
|
|
8704
|
+
// We will also allow looking up by the RESOURCE_TYPE
|
|
8705
|
+
[RESOURCE_TYPE.ASSOCIATE_ROLE]: associateRoleMessages.associateRoleType,
|
|
8706
|
+
[RESOURCE_TYPE.BUSINESS_UNIT]: businessUnitMessages.businessUnitType,
|
|
8707
|
+
[RESOURCE_TYPE.CART_DISCOUNT]: cartDiscountMessages.cartDiscountType,
|
|
8708
|
+
[RESOURCE_TYPE.CATEGORY]: categoryMessages.categoryType,
|
|
8709
|
+
[RESOURCE_TYPE.CHANNEL]: channelMessages.channelType,
|
|
8710
|
+
[RESOURCE_TYPE.CUSTOM_OBJECT]: customObjectMessages.customObjectType,
|
|
8711
|
+
[RESOURCE_TYPE.CUSTOMER]: customerMessages.customerType,
|
|
8712
|
+
[RESOURCE_TYPE.CUSTOMER_GROUP]: customerGroupMessages.customerGroupType,
|
|
8713
|
+
[RESOURCE_TYPE.DISCOUNT_CODE]: discountCodeMessages.discountCodeType,
|
|
8714
|
+
[RESOURCE_TYPE.INVENTORY_ENTRY]: inventoryEntryMessages.inventoryEntryType,
|
|
8715
|
+
[RESOURCE_TYPE.ORDER]: orderMessages.orderType,
|
|
8716
|
+
[RESOURCE_TYPE.PAYMENT]: paymentMessages.paymentType,
|
|
8717
|
+
[RESOURCE_TYPE.PRODUCT]: productMessages.productType,
|
|
8718
|
+
[RESOURCE_TYPE.PRODUCT_DISCOUNT]: productDiscountMessages.productDiscountType,
|
|
8719
|
+
[RESOURCE_TYPE.PRODUCT_SELECTION]: productSelectionMessages.productSelectionType,
|
|
8720
|
+
[RESOURCE_TYPE.PRODUCT_TYPE]: productTypeMessages.productTypeType,
|
|
8721
|
+
[RESOURCE_TYPE.QUOTE]: quotesMessages.quoteType,
|
|
8722
|
+
[RESOURCE_TYPE.QUOTE_REQUEST]: quoteRequestMessages.quoteRequestType,
|
|
8723
|
+
[RESOURCE_TYPE.REVIEW]: reviewMessages.reviewType,
|
|
8724
|
+
[RESOURCE_TYPE.SHOPPING_LIST]: shoppingListMessages.shoppingListType,
|
|
8725
|
+
[RESOURCE_TYPE.STAGED_QUOTE]: stagedQuoteMessages.stagedQuoteType,
|
|
8726
|
+
[RESOURCE_TYPE.STATE]: stateMessages.stateType,
|
|
8727
|
+
[RESOURCE_TYPE.STORE]: storeMessages.storeType,
|
|
8728
|
+
[RESOURCE_TYPE.TAX_CATEGORY]: taxCategoryMessages.taxCategoryType,
|
|
8729
|
+
[RESOURCE_TYPE.TYPE]: typeMessages.typeType,
|
|
8730
|
+
[RESOURCE_TYPE.ZONE]: zoneMessages.zoneType
|
|
8927
8731
|
};
|
|
8928
8732
|
const getEntityTypeNameMessage = resourceType => {
|
|
8929
8733
|
let message;
|
|
@@ -8936,15 +8740,15 @@ const getEntityTypeNameMessage = resourceType => {
|
|
|
8936
8740
|
return message || messages$T.undefinedType;
|
|
8937
8741
|
};
|
|
8938
8742
|
|
|
8939
|
-
function ownKeys$
|
|
8940
|
-
function _objectSpread$
|
|
8743
|
+
function ownKeys$S(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8744
|
+
function _objectSpread$S(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$S(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$S(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
8941
8745
|
const mapLocalizedValue = (propAllLocales, language, languages) => {
|
|
8942
8746
|
if (!propAllLocales) return;
|
|
8943
8747
|
const localizedField = {
|
|
8944
8748
|
field: _reduceInstanceProperty__default["default"](propAllLocales).call(propAllLocales, (localized, _ref) => {
|
|
8945
8749
|
let locale = _ref.locale,
|
|
8946
8750
|
value = _ref.value;
|
|
8947
|
-
return _objectSpread$
|
|
8751
|
+
return _objectSpread$S(_objectSpread$S({}, localized), {}, {
|
|
8948
8752
|
[locale]: value
|
|
8949
8753
|
});
|
|
8950
8754
|
}, {})
|
|
@@ -8996,7 +8800,7 @@ var messages$S = reactIntl.defineMessages({
|
|
|
8996
8800
|
tooltipTitle: {
|
|
8997
8801
|
id: 'ResourceCell.tooltipTitle',
|
|
8998
8802
|
description: 'Label for the filter tooltip',
|
|
8999
|
-
defaultMessage:
|
|
8803
|
+
defaultMessage: 'Quick filter on entity ID'
|
|
9000
8804
|
},
|
|
9001
8805
|
customObjectResource: {
|
|
9002
8806
|
id: 'ResourceCell.customObjectResource',
|
|
@@ -9472,8 +9276,8 @@ var messages$O = reactIntl.defineMessages({
|
|
|
9472
9276
|
}
|
|
9473
9277
|
});
|
|
9474
9278
|
|
|
9475
|
-
function ownKeys$
|
|
9476
|
-
function _objectSpread$
|
|
9279
|
+
function ownKeys$R(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9280
|
+
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__default["default"](_context = ownKeys$R(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$R(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
9477
9281
|
const mapChannelToPreview = _ref => {
|
|
9478
9282
|
let channel = _ref.resource,
|
|
9479
9283
|
intl = _ref.intl,
|
|
@@ -9494,7 +9298,7 @@ const mapChannelToPreview = _ref => {
|
|
|
9494
9298
|
}, {
|
|
9495
9299
|
fieldName: intl.formatMessage(messages$O.rolesLabel),
|
|
9496
9300
|
fieldValue: channel.roles
|
|
9497
|
-
}, _objectSpread$
|
|
9301
|
+
}, _objectSpread$R({}, channel.address || channel.geoLocation ? {
|
|
9498
9302
|
fieldName: 'address',
|
|
9499
9303
|
fieldValue: [{
|
|
9500
9304
|
fieldName: intl.formatMessage(messages$O.streetNameLabel),
|
|
@@ -10194,8 +9998,8 @@ var messages$G = reactIntl.defineMessages({
|
|
|
10194
9998
|
}
|
|
10195
9999
|
});
|
|
10196
10000
|
|
|
10197
|
-
function ownKeys$
|
|
10198
|
-
function _objectSpread$
|
|
10001
|
+
function ownKeys$Q(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
10002
|
+
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__default["default"](_context3 = ownKeys$Q(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys$Q(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
10199
10003
|
const mapOrderToPreview = _ref => {
|
|
10200
10004
|
var _context, _context2;
|
|
10201
10005
|
let order = _ref.resource,
|
|
@@ -10246,7 +10050,7 @@ const mapOrderToPreview = _ref => {
|
|
|
10246
10050
|
fieldValue: order.orderState
|
|
10247
10051
|
}, {
|
|
10248
10052
|
fieldName: 'lineItems',
|
|
10249
|
-
fieldValue: _mapInstanceProperty__default["default"](_context = order.lineItems).call(_context, lItem => _objectSpread$
|
|
10053
|
+
fieldValue: _mapInstanceProperty__default["default"](_context = order.lineItems).call(_context, lItem => _objectSpread$Q(_objectSpread$Q({}, lItem), {}, {
|
|
10250
10054
|
name: mapLocalizedValue(lItem.nameAllLocales, language, languages),
|
|
10251
10055
|
price: formatMoney(lItem.price.value, intl),
|
|
10252
10056
|
totalPrice: formatMoney(lItem.totalPrice, intl),
|
|
@@ -10255,7 +10059,7 @@ const mapOrderToPreview = _ref => {
|
|
|
10255
10059
|
}))
|
|
10256
10060
|
}, {
|
|
10257
10061
|
fieldName: 'customLineItems',
|
|
10258
|
-
fieldValue: _mapInstanceProperty__default["default"](_context2 = order.customLineItems).call(_context2, clItem => _objectSpread$
|
|
10062
|
+
fieldValue: _mapInstanceProperty__default["default"](_context2 = order.customLineItems).call(_context2, clItem => _objectSpread$Q(_objectSpread$Q({}, clItem), {}, {
|
|
10259
10063
|
name: mapLocalizedValue(clItem.nameAllLocales, language, languages) || clItem.slug,
|
|
10260
10064
|
totalPrice: formatMoney(clItem.totalPrice, intl)
|
|
10261
10065
|
}))
|
|
@@ -10325,8 +10129,8 @@ var messages$F = reactIntl.defineMessages({
|
|
|
10325
10129
|
}
|
|
10326
10130
|
});
|
|
10327
10131
|
|
|
10328
|
-
function ownKeys$
|
|
10329
|
-
function _objectSpread$
|
|
10132
|
+
function ownKeys$P(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
10133
|
+
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__default["default"](_context2 = ownKeys$P(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$P(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
10330
10134
|
const mapPaymentToPreview = _ref => {
|
|
10331
10135
|
var _context;
|
|
10332
10136
|
let payment = _ref.resource,
|
|
@@ -10371,7 +10175,7 @@ const mapPaymentToPreview = _ref => {
|
|
|
10371
10175
|
fieldValue: mapLocalizedValue(payment.paymentStatus?.state?.nameAllLocales, language, languages) || payment.paymentStatus?.state?.key
|
|
10372
10176
|
}, {
|
|
10373
10177
|
fieldName: 'transactions',
|
|
10374
|
-
fieldValue: _mapInstanceProperty__default["default"](_context = payment.transactions).call(_context, transaction => _objectSpread$
|
|
10178
|
+
fieldValue: _mapInstanceProperty__default["default"](_context = payment.transactions).call(_context, transaction => _objectSpread$P(_objectSpread$P({}, transaction), {}, {
|
|
10375
10179
|
amount: transaction.amount && formatMoney(transaction.amount, intl),
|
|
10376
10180
|
timestamp: formatDateTime('datetime', transaction.timestamp)
|
|
10377
10181
|
}))
|
|
@@ -10975,8 +10779,8 @@ var messages$z = reactIntl.defineMessages({
|
|
|
10975
10779
|
}
|
|
10976
10780
|
});
|
|
10977
10781
|
|
|
10978
|
-
function ownKeys$
|
|
10979
|
-
function _objectSpread$
|
|
10782
|
+
function ownKeys$O(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
10783
|
+
function _objectSpread$O(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context3 = ownKeys$O(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys$O(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
10980
10784
|
const mapShoppingListToPreview = _ref => {
|
|
10981
10785
|
var _context, _context2;
|
|
10982
10786
|
let shoppingList = _ref.resource,
|
|
@@ -11006,14 +10810,14 @@ const mapShoppingListToPreview = _ref => {
|
|
|
11006
10810
|
fieldValue: shoppingList.anonymousId
|
|
11007
10811
|
}, {
|
|
11008
10812
|
fieldName: 'lineItems',
|
|
11009
|
-
fieldValue: _mapInstanceProperty__default["default"](_context = shoppingList.lineItems).call(_context, lItem => _objectSpread$
|
|
10813
|
+
fieldValue: _mapInstanceProperty__default["default"](_context = shoppingList.lineItems).call(_context, lItem => _objectSpread$O(_objectSpread$O({}, lItem), {}, {
|
|
11010
10814
|
name: mapLocalizedValue(lItem.nameAllLocales, language, languages),
|
|
11011
10815
|
variantId: lItem.variant?.id,
|
|
11012
10816
|
variantSku: lItem.variant?.sku
|
|
11013
10817
|
}))
|
|
11014
10818
|
}, {
|
|
11015
10819
|
fieldName: 'textLineItems',
|
|
11016
|
-
fieldValue: _mapInstanceProperty__default["default"](_context2 = shoppingList.textLineItems).call(_context2, tlItem => _objectSpread$
|
|
10820
|
+
fieldValue: _mapInstanceProperty__default["default"](_context2 = shoppingList.textLineItems).call(_context2, tlItem => _objectSpread$O(_objectSpread$O({}, tlItem), {}, {
|
|
11017
10821
|
name: mapLocalizedValue(tlItem.nameAllLocales, language, languages),
|
|
11018
10822
|
description: mapLocalizedValue(tlItem.descriptionAllLocales, language, languages)
|
|
11019
10823
|
}))
|
|
@@ -11191,8 +10995,8 @@ var messages$w = reactIntl.defineMessages({
|
|
|
11191
10995
|
}
|
|
11192
10996
|
});
|
|
11193
10997
|
|
|
11194
|
-
function ownKeys$
|
|
11195
|
-
function _objectSpread$
|
|
10998
|
+
function ownKeys$N(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
10999
|
+
function _objectSpread$N(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context3 = ownKeys$N(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys$N(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
11196
11000
|
const mapTaxCategoryToPreview = _ref => {
|
|
11197
11001
|
var _context;
|
|
11198
11002
|
let taxCategory = _ref.resource,
|
|
@@ -11213,7 +11017,7 @@ const mapTaxCategoryToPreview = _ref => {
|
|
|
11213
11017
|
fieldName: 'rates',
|
|
11214
11018
|
fieldValue: _mapInstanceProperty__default["default"](_context = taxCategory.rates).call(_context, rate => {
|
|
11215
11019
|
var _context2;
|
|
11216
|
-
return _objectSpread$
|
|
11020
|
+
return _objectSpread$N(_objectSpread$N({}, rate), {}, {
|
|
11217
11021
|
state: rate.state || jsxRuntime.jsx(NoValueFallback, {}),
|
|
11218
11022
|
includedInPrice: intl.formatMessage(rate.includedInPrice ? messages$w.includedInPriceTrueLabel : messages$w.includedInPriceFalseLabel),
|
|
11219
11023
|
subRates: rate.subRates.length > 0 ? _mapInstanceProperty__default["default"](_context2 = rate.subRates).call(_context2, _ref2 => {
|
|
@@ -12800,7 +12604,7 @@ const useRoutes = () => {
|
|
|
12800
12604
|
const routes = {
|
|
12801
12605
|
changeHistory: createRoute(`${path}`),
|
|
12802
12606
|
resourcePreview: createRoute(`${path}/:resourceType/:resourceId`),
|
|
12803
|
-
explorePremium: createRoute(
|
|
12607
|
+
explorePremium: createRoute(`/:projectKey/audit-log/change-history/explore-premium`)
|
|
12804
12608
|
};
|
|
12805
12609
|
return routes;
|
|
12806
12610
|
};
|
|
@@ -12843,8 +12647,8 @@ const decode = value => {
|
|
|
12843
12647
|
}
|
|
12844
12648
|
};
|
|
12845
12649
|
|
|
12846
|
-
function ownKeys$
|
|
12847
|
-
function _objectSpread$
|
|
12650
|
+
function ownKeys$M(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12651
|
+
function _objectSpread$M(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$M(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$M(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
12848
12652
|
const defaultOptions = {
|
|
12849
12653
|
storageType: 'local',
|
|
12850
12654
|
segregateByUser: true,
|
|
@@ -12854,19 +12658,19 @@ const getStorage = storageType => storageType === 'session' ? sessionStorage : l
|
|
|
12854
12658
|
const isNil = value => typeof value === 'undefined' || value === null;
|
|
12855
12659
|
const useStorage = (storageKey, initialStorageValue, options) => {
|
|
12856
12660
|
var _context;
|
|
12857
|
-
const
|
|
12661
|
+
const storageOptions = _objectSpread$M(_objectSpread$M({}, defaultOptions), options);
|
|
12858
12662
|
const _useApplicationContex = applicationShellConnectors.useApplicationContext(context => ({
|
|
12859
12663
|
userId: context.user?.id,
|
|
12860
12664
|
projectKey: context.project?.key
|
|
12861
12665
|
})),
|
|
12862
12666
|
userId = _useApplicationContex.userId,
|
|
12863
12667
|
projectKey = _useApplicationContex.projectKey;
|
|
12864
|
-
const scopedStorageKey = _filterInstanceProperty__default["default"](_context = [
|
|
12668
|
+
const scopedStorageKey = _filterInstanceProperty__default["default"](_context = [storageOptions.segregateByUser && userId, storageOptions.segregateByProject && projectKey, storageKey]).call(_context, Boolean).join('/');
|
|
12865
12669
|
const removeFromStorage = react.useCallback(() => {
|
|
12866
|
-
getStorage(
|
|
12867
|
-
}, [
|
|
12670
|
+
getStorage(storageOptions.storageType).removeItem(scopedStorageKey);
|
|
12671
|
+
}, [storageOptions.storageType, scopedStorageKey]);
|
|
12868
12672
|
const readFromStorage = react.useCallback(() => {
|
|
12869
|
-
const encodedStorageValue = getStorage(
|
|
12673
|
+
const encodedStorageValue = getStorage(storageOptions.storageType).getItem(scopedStorageKey);
|
|
12870
12674
|
const storageValue = encodedStorageValue ? decode(encodedStorageValue) : null;
|
|
12871
12675
|
/**
|
|
12872
12676
|
* NOTE:
|
|
@@ -12879,9 +12683,10 @@ const useStorage = (storageKey, initialStorageValue, options) => {
|
|
|
12879
12683
|
return null;
|
|
12880
12684
|
}
|
|
12881
12685
|
return storageValue;
|
|
12882
|
-
}, [
|
|
12686
|
+
}, [storageOptions.storageType, removeFromStorage, scopedStorageKey]);
|
|
12883
12687
|
const initializeStorageValue = () => {
|
|
12884
|
-
//
|
|
12688
|
+
// Default to the currently stored value.
|
|
12689
|
+
// If no stored value, default to the initial value.
|
|
12885
12690
|
return readFromStorage() ?? initialStorageValue ?? null;
|
|
12886
12691
|
};
|
|
12887
12692
|
const _useState = react.useState(initializeStorageValue),
|
|
@@ -12890,23 +12695,21 @@ const useStorage = (storageKey, initialStorageValue, options) => {
|
|
|
12890
12695
|
setStorageValue = _useState2[1];
|
|
12891
12696
|
const writeToStorage = react.useCallback(nextStorageValue => {
|
|
12892
12697
|
if (nextStorageValue) {
|
|
12893
|
-
getStorage(
|
|
12698
|
+
getStorage(storageOptions.storageType).setItem(scopedStorageKey, encode(nextStorageValue));
|
|
12894
12699
|
} else {
|
|
12895
12700
|
removeFromStorage();
|
|
12896
12701
|
}
|
|
12897
12702
|
setStorageValue(nextStorageValue);
|
|
12898
|
-
}, [
|
|
12703
|
+
}, [storageOptions.storageType, removeFromStorage, scopedStorageKey]);
|
|
12899
12704
|
|
|
12900
|
-
//
|
|
12901
|
-
//
|
|
12902
|
-
//
|
|
12903
|
-
// https://beta.reactjs.org/apis/react/useState#my-initializer-or-updater-function-runs-twice
|
|
12705
|
+
// Set the initial storage value in the storage. This should not be done in
|
|
12706
|
+
// initializeStorageValue because the state initializer function should be pure.
|
|
12707
|
+
// https://react.dev/reference/react/useState#my-initializer-or-updater-function-runs-twice
|
|
12904
12708
|
react.useEffect(() => {
|
|
12905
12709
|
if (isNil(readFromStorage()) && !isNil(initialStorageValue) && storageValue !== initialStorageValue) {
|
|
12906
|
-
|
|
12907
|
-
setStorageValue(initialStorageValue);
|
|
12710
|
+
writeToStorage(initialStorageValue);
|
|
12908
12711
|
}
|
|
12909
|
-
}, []);
|
|
12712
|
+
}, [storageValue, initialStorageValue, readFromStorage, writeToStorage, storageOptions.storageType, scopedStorageKey]);
|
|
12910
12713
|
return [storageValue, writeToStorage, readFromStorage];
|
|
12911
12714
|
};
|
|
12912
12715
|
|
|
@@ -12928,12 +12731,12 @@ const useStoreKeysInDataFences = _ref => {
|
|
|
12928
12731
|
return storeKeysInDataFences;
|
|
12929
12732
|
};
|
|
12930
12733
|
|
|
12931
|
-
function ownKeys$
|
|
12932
|
-
function _objectSpread$
|
|
12734
|
+
function ownKeys$L(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12735
|
+
function _objectSpread$L(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$L(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$L(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
12933
12736
|
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 } } } };
|
|
12934
12737
|
const createQueryVariables$5 = ownProps => {
|
|
12935
12738
|
var _context;
|
|
12936
|
-
return _objectSpread$
|
|
12739
|
+
return _objectSpread$L(_objectSpread$L({
|
|
12937
12740
|
limit: ownProps.limit,
|
|
12938
12741
|
offset: ownProps.offset,
|
|
12939
12742
|
sort: _sortInstanceProperty__default["default"](ownProps)
|
|
@@ -13017,19 +12820,20 @@ const useVersionTier = () => {
|
|
|
13017
12820
|
|
|
13018
12821
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
13019
12822
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[_Symbol$toPrimitive__default["default"]]; 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); }
|
|
13020
|
-
function ownKeys$
|
|
13021
|
-
function _objectSpread$
|
|
12823
|
+
function ownKeys$K(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12824
|
+
function _objectSpread$K(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context3 = ownKeys$K(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys$K(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
13022
12825
|
// NOTE: The `version` can be updated to bust existing search queries in case of conflicting migrations.
|
|
13023
12826
|
const VERSION_KEY = '__version';
|
|
13024
12827
|
const OLD_SAVED_SEARCH_VERSION = 2;
|
|
13025
|
-
const
|
|
13026
|
-
|
|
13027
|
-
|
|
13028
|
-
|
|
12828
|
+
const SAVED_SEARCH_VERSION = 3;
|
|
12829
|
+
const getCurrentVersion = useOldVersion => {
|
|
12830
|
+
if (!useOldVersion) {
|
|
12831
|
+
return SAVED_SEARCH_VERSION;
|
|
12832
|
+
}
|
|
13029
12833
|
return OLD_SAVED_SEARCH_VERSION;
|
|
13030
12834
|
};
|
|
13031
|
-
const augmentWithVersion = (searchQuery, useOldVersion) => _objectSpread$
|
|
13032
|
-
[VERSION_KEY]: getCurrentVersion()
|
|
12835
|
+
const augmentWithVersion = (searchQuery, useOldVersion) => _objectSpread$K({
|
|
12836
|
+
[VERSION_KEY]: getCurrentVersion(useOldVersion)
|
|
13033
12837
|
}, searchQuery);
|
|
13034
12838
|
const omitVersion = searchQuery => {
|
|
13035
12839
|
var _context;
|
|
@@ -13039,27 +12843,29 @@ const omitVersion = searchQuery => {
|
|
|
13039
12843
|
};
|
|
13040
12844
|
|
|
13041
12845
|
// This will get rid of any filters that may have been deprecated at some point
|
|
13042
|
-
const omitUnknownFilters = searchQuery =>
|
|
13043
|
-
|
|
13044
|
-
|
|
13045
|
-
return _includesInstanceProperty__default["default"](_context2 = _Object$values__default["default"](FILTER_OPTION_KEYS)).call(_context2, key);
|
|
13046
|
-
})), {}, {
|
|
13047
|
-
[FILTER_OPTION_KEYS.DATE_RANGE]: searchQuery.filters[FILTER_OPTION_KEYS.DATE_RANGE] || []
|
|
13048
|
-
})
|
|
13049
|
-
});
|
|
13050
|
-
const isStoredSearchQueryInvalid = (storedSearchQuery, useOldVersion) => {
|
|
13051
|
-
if (!storedSearchQuery) {
|
|
13052
|
-
return false;
|
|
12846
|
+
const omitUnknownFilters = searchQuery => {
|
|
12847
|
+
if (!searchQuery) {
|
|
12848
|
+
return null;
|
|
13053
12849
|
}
|
|
13054
|
-
return
|
|
12850
|
+
return _objectSpread$K(_objectSpread$K({}, searchQuery), searchQuery?.filters && {
|
|
12851
|
+
filters: _objectSpread$K(_objectSpread$K({}, pickBy__default["default"](searchQuery.filters, (_value, key) => {
|
|
12852
|
+
var _context2;
|
|
12853
|
+
return _includesInstanceProperty__default["default"](_context2 = _Object$values__default["default"](FILTER_OPTION_KEYS)).call(_context2, key);
|
|
12854
|
+
})), {}, {
|
|
12855
|
+
[FILTER_OPTION_KEYS.DATE_RANGE]: searchQuery.filters[FILTER_OPTION_KEYS.DATE_RANGE] || []
|
|
12856
|
+
})
|
|
12857
|
+
});
|
|
12858
|
+
};
|
|
12859
|
+
const isStoredSearchQueryValid = (storedSearchQuery, useOldVersion) => {
|
|
12860
|
+
return !!storedSearchQuery && storedSearchQuery.__version === getCurrentVersion(useOldVersion);
|
|
13055
12861
|
};
|
|
13056
12862
|
const useSearchQueryState = _ref => {
|
|
13057
12863
|
let storageSlice = _ref.storageSlice,
|
|
13058
|
-
|
|
12864
|
+
defaultSearchQuery = _ref.defaultSearchQuery;
|
|
13059
12865
|
const location = reactRouterDom.useLocation();
|
|
13060
12866
|
const history = reactRouterDom.useHistory();
|
|
13061
|
-
useAlFilterRedesign();
|
|
13062
|
-
const _useStorage = useStorage(storageSlice,
|
|
12867
|
+
const isFilterRedesignEnabled = useAlFilterRedesign();
|
|
12868
|
+
const _useStorage = useStorage(storageSlice, null),
|
|
13063
12869
|
_useStorage2 = _slicedToArray(_useStorage, 2),
|
|
13064
12870
|
storedSearchQuery = _useStorage2[0],
|
|
13065
12871
|
setStoredSearchQuery = _useStorage2[1];
|
|
@@ -13067,52 +12873,59 @@ const useSearchQueryState = _ref => {
|
|
|
13067
12873
|
const updateHistory = nextSearchQuery => {
|
|
13068
12874
|
const encodedNextSearchQuery = nextSearchQuery ? encode(nextSearchQuery) : null;
|
|
13069
12875
|
if (encodedNextSearchQuery !== location?.state?.search) {
|
|
13070
|
-
history.replace(location?.pathname, _objectSpread$
|
|
12876
|
+
history.replace(location?.pathname, _objectSpread$K(_objectSpread$K({}, location?.state), {}, {
|
|
13071
12877
|
search: encodedNextSearchQuery
|
|
13072
12878
|
}));
|
|
13073
12879
|
}
|
|
13074
12880
|
};
|
|
13075
12881
|
const setSearchQuery = nextSearchQuery => {
|
|
13076
|
-
setStoredSearchQuery(nextSearchQuery ? augmentWithVersion(nextSearchQuery) : null);
|
|
12882
|
+
setStoredSearchQuery(nextSearchQuery ? augmentWithVersion(nextSearchQuery, !isFilterRedesignEnabled) : null);
|
|
13077
12883
|
updateHistory(nextSearchQuery);
|
|
13078
12884
|
};
|
|
13079
|
-
const resetSearchQuery = () => {
|
|
13080
|
-
setStoredSearchQuery(null);
|
|
13081
|
-
updateHistory(initialSearchQuery);
|
|
13082
|
-
};
|
|
13083
12885
|
const getSearchQuery = () => {
|
|
13084
12886
|
let currentSearchQuery = null;
|
|
13085
|
-
let isReset = false;
|
|
13086
12887
|
try {
|
|
12888
|
+
// Pull from browser history first, then local storage
|
|
13087
12889
|
if (locationHasSearchQuery()) {
|
|
13088
|
-
currentSearchQuery = decode(location
|
|
13089
|
-
} else {
|
|
13090
|
-
currentSearchQuery =
|
|
12890
|
+
currentSearchQuery = decode(location.state.search);
|
|
12891
|
+
} else if (storedSearchQuery) {
|
|
12892
|
+
currentSearchQuery = omitVersion(_objectSpread$K(_objectSpread$K({}, defaultSearchQuery), storedSearchQuery));
|
|
13091
12893
|
}
|
|
12894
|
+
|
|
12895
|
+
// Just remove anything legacy that may accidentally be in there
|
|
12896
|
+
currentSearchQuery = omitUnknownFilters(currentSearchQuery);
|
|
13092
12897
|
} catch (e) {
|
|
13093
12898
|
sentry.reportErrorToSentry(new Error('SearchViewRouterQuery: failed to parse stored search query. Defaulting to initial query.'), {
|
|
13094
12899
|
extra: {
|
|
13095
12900
|
rawQuery: location.state?.search,
|
|
13096
|
-
version: getCurrentVersion()
|
|
12901
|
+
version: getCurrentVersion(!isFilterRedesignEnabled)
|
|
13097
12902
|
}
|
|
13098
12903
|
});
|
|
13099
|
-
isReset = true;
|
|
13100
12904
|
}
|
|
13101
|
-
|
|
13102
|
-
|
|
13103
|
-
|
|
12905
|
+
let isReset = false;
|
|
12906
|
+
// We don't store version with the history, so if we have location, assume we are good. Otherwise...
|
|
12907
|
+
if (locationHasSearchQuery() && currentSearchQuery === null) {
|
|
12908
|
+
// There was history, but it failed to decode, so set to default
|
|
12909
|
+
currentSearchQuery = defaultSearchQuery;
|
|
12910
|
+
updateHistory(defaultSearchQuery);
|
|
12911
|
+
} else if (!locationHasSearchQuery()) {
|
|
12912
|
+
if (storedSearchQuery && isStoredSearchQueryValid(storedSearchQuery, !isFilterRedesignEnabled)) {
|
|
12913
|
+
// No history but valid stored search, so update history
|
|
12914
|
+
updateHistory(currentSearchQuery);
|
|
12915
|
+
} else if (storedSearchQuery) {
|
|
12916
|
+
// No history and invalid stored search, so set to default and clear local storage
|
|
13104
12917
|
isReset = true;
|
|
12918
|
+
setStoredSearchQuery(null); // This will make it so local storage value is removed
|
|
13105
12919
|
} else {
|
|
13106
|
-
// No history
|
|
13107
|
-
|
|
12920
|
+
// No history and no stored search, so set to default
|
|
12921
|
+
isReset = true;
|
|
13108
12922
|
}
|
|
13109
12923
|
}
|
|
13110
12924
|
if (isReset) {
|
|
13111
|
-
currentSearchQuery =
|
|
13112
|
-
|
|
12925
|
+
currentSearchQuery = defaultSearchQuery;
|
|
12926
|
+
updateHistory(defaultSearchQuery);
|
|
13113
12927
|
}
|
|
13114
|
-
|
|
13115
|
-
return filteredSearchQuery;
|
|
12928
|
+
return currentSearchQuery;
|
|
13116
12929
|
};
|
|
13117
12930
|
return {
|
|
13118
12931
|
searchQuery: getSearchQuery(),
|
|
@@ -13121,8 +12934,8 @@ const useSearchQueryState = _ref => {
|
|
|
13121
12934
|
};
|
|
13122
12935
|
};
|
|
13123
12936
|
|
|
13124
|
-
function ownKeys$
|
|
13125
|
-
function _objectSpread$
|
|
12937
|
+
function ownKeys$J(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12938
|
+
function _objectSpread$J(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$J(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$J(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
13126
12939
|
/**
|
|
13127
12940
|
* Transforms a `LocalizedString` object into a `LocalizedField` object.
|
|
13128
12941
|
*
|
|
@@ -13130,7 +12943,7 @@ function _objectSpread$I(e) { for (var r = 1; r < arguments.length; r++) { var _
|
|
|
13130
12943
|
*/
|
|
13131
12944
|
const transformLocalizedStringToLocalizedField = localizedFields => {
|
|
13132
12945
|
if (!localizedFields || localizedFields.length === 0) return null;
|
|
13133
|
-
return _reduceInstanceProperty__default["default"](localizedFields).call(localizedFields, (updatedLocalizedString, field) => _objectSpread$
|
|
12946
|
+
return _reduceInstanceProperty__default["default"](localizedFields).call(localizedFields, (updatedLocalizedString, field) => _objectSpread$J(_objectSpread$J({}, updatedLocalizedString), {}, {
|
|
13134
12947
|
[field.locale]: field.value
|
|
13135
12948
|
}), {});
|
|
13136
12949
|
};
|
|
@@ -13150,7 +12963,7 @@ const transformLocalizedStringToLocalizedField = localizedFields => {
|
|
|
13150
12963
|
*/
|
|
13151
12964
|
const injectTransformedLocalizedFields = (objectWithLocalizedFields, fieldNames) => {
|
|
13152
12965
|
// Create a new object excluding the 'from' fields
|
|
13153
|
-
const objectWithoutFromFields = _objectSpread$
|
|
12966
|
+
const objectWithoutFromFields = _objectSpread$J({}, objectWithLocalizedFields);
|
|
13154
12967
|
_forEachInstanceProperty__default["default"](fieldNames).call(fieldNames, field => {
|
|
13155
12968
|
delete objectWithoutFromFields[field.from];
|
|
13156
12969
|
});
|
|
@@ -13161,14 +12974,14 @@ const injectTransformedLocalizedFields = (objectWithLocalizedFields, fieldNames)
|
|
|
13161
12974
|
_forEachInstanceProperty__default["default"](fieldNames).call(fieldNames, field => {
|
|
13162
12975
|
transformedFields[field.to] = transformLocalizedStringToLocalizedField(objectWithLocalizedFields[field.from]);
|
|
13163
12976
|
});
|
|
13164
|
-
return _objectSpread$
|
|
12977
|
+
return _objectSpread$J(_objectSpread$J({}, objectWithoutFromFields), transformedFields);
|
|
13165
12978
|
};
|
|
13166
12979
|
|
|
13167
|
-
function ownKeys$
|
|
13168
|
-
function _objectSpread$
|
|
12980
|
+
function ownKeys$I(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12981
|
+
function _objectSpread$I(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context3 = ownKeys$I(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys$I(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
13169
12982
|
const convertChangeHistoryLabel = (labelData, entityLabelCustomerData) => {
|
|
13170
12983
|
// result.label is frozen by apollo, so we need to spread it to make changes
|
|
13171
|
-
const label = _objectSpread$
|
|
12984
|
+
const label = _objectSpread$I({}, labelData);
|
|
13172
12985
|
if (labelData && 'customer' in labelData && labelData.customer?.id && entityLabelCustomerData?.[labelData.customer?.id]) {
|
|
13173
12986
|
// Update customer data with the data from the TFetchCustomersQuery query that matches the customer id,
|
|
13174
12987
|
// so we can access the customer's email address.
|
|
@@ -13190,7 +13003,7 @@ const convertChangeHistoryChange = change => {
|
|
|
13190
13003
|
if (!change) return null;
|
|
13191
13004
|
|
|
13192
13005
|
// Modifications at the root level of the change object
|
|
13193
|
-
const result = _objectSpread$
|
|
13006
|
+
const result = _objectSpread$I({}, injectTransformedLocalizedFields(change, [{
|
|
13194
13007
|
from: 'customLineItemNameAllLocales',
|
|
13195
13008
|
to: 'customLineItem'
|
|
13196
13009
|
}, {
|
|
@@ -13225,13 +13038,13 @@ const injectLocalizedDataToChangeHistoryStores = (store, storesData) => {
|
|
|
13225
13038
|
from: 'nameAllLocales',
|
|
13226
13039
|
to: 'name'
|
|
13227
13040
|
}])?.name : undefined;
|
|
13228
|
-
return _objectSpread$
|
|
13041
|
+
return _objectSpread$I(_objectSpread$I({}, store), {}, {
|
|
13229
13042
|
name
|
|
13230
13043
|
});
|
|
13231
13044
|
};
|
|
13232
13045
|
const convertChangeHistoryEntry = (entry, storesData, entityLabelCustomerData) => {
|
|
13233
13046
|
var _context;
|
|
13234
|
-
return _objectSpread$
|
|
13047
|
+
return _objectSpread$I(_objectSpread$I({}, entry), {}, {
|
|
13235
13048
|
label: convertChangeHistoryLabel(entry.label, entityLabelCustomerData),
|
|
13236
13049
|
previousLabel: convertChangeHistoryLabel(entry.previousLabel, entityLabelCustomerData),
|
|
13237
13050
|
changes: _mapInstanceProperty__default["default"](_context = entry.changes).call(_context, convertChangeHistoryChange),
|
|
@@ -13240,7 +13053,7 @@ const convertChangeHistoryEntry = (entry, storesData, entityLabelCustomerData) =
|
|
|
13240
13053
|
};
|
|
13241
13054
|
const gatherChangeHistoryFromGraphqlResponse = (changeHistoryData, storesData, entityLabelCustomerData) => {
|
|
13242
13055
|
var _context2;
|
|
13243
|
-
return _objectSpread$
|
|
13056
|
+
return _objectSpread$I(_objectSpread$I({}, changeHistoryData.changeHistory), {}, {
|
|
13244
13057
|
results: _mapInstanceProperty__default["default"](_context2 = changeHistoryData.changeHistory.results).call(_context2, entry => convertChangeHistoryEntry(entry, storesData, entityLabelCustomerData))
|
|
13245
13058
|
});
|
|
13246
13059
|
};
|
|
@@ -13317,8 +13130,8 @@ const getEntityLabelCustomerWhereFromChangeHistoryData = data => {
|
|
|
13317
13130
|
return uniqueIDs.length !== 0 ? `id in (${uniqueIDs.join(',')})` : null;
|
|
13318
13131
|
};
|
|
13319
13132
|
|
|
13320
|
-
function ownKeys$
|
|
13321
|
-
function _objectSpread$
|
|
13133
|
+
function ownKeys$H(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13134
|
+
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__default["default"](_context2 = ownKeys$H(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$H(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
13322
13135
|
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 } } } };
|
|
13323
13136
|
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 } } } };
|
|
13324
13137
|
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 } } } };
|
|
@@ -13336,7 +13149,7 @@ const ChangeHistoryListConnector = props => {
|
|
|
13336
13149
|
timeZone = _useApplicationContex.timeZone;
|
|
13337
13150
|
|
|
13338
13151
|
// Make sure we always have a date filter applied
|
|
13339
|
-
const filters = props.searchQuery.filters.createdAt ? props.searchQuery.filters : _objectSpread$
|
|
13152
|
+
const filters = props.searchQuery.filters.createdAt ? props.searchQuery.filters : _objectSpread$H(_objectSpread$H({}, props.searchQuery.filters), {}, {
|
|
13340
13153
|
createdAt: [{
|
|
13341
13154
|
hasHours: true,
|
|
13342
13155
|
type: 'range',
|
|
@@ -13379,7 +13192,7 @@ const ChangeHistoryListConnector = props => {
|
|
|
13379
13192
|
projectKey: props.projectKey
|
|
13380
13193
|
},
|
|
13381
13194
|
notifyOnNetworkStatusChange: true,
|
|
13382
|
-
variables: _objectSpread$
|
|
13195
|
+
variables: _objectSpread$H({
|
|
13383
13196
|
limit: props.searchQuery.perPage,
|
|
13384
13197
|
offset: (props.searchQuery.page - 1) * props.searchQuery.perPage,
|
|
13385
13198
|
// By default, the FE wants expanded changes
|
|
@@ -13557,8 +13370,8 @@ const BusinessUnitCell = _ref => {
|
|
|
13557
13370
|
};
|
|
13558
13371
|
BusinessUnitCell.displayName = 'BusinessUnitCell';
|
|
13559
13372
|
|
|
13560
|
-
function ownKeys$
|
|
13561
|
-
function _objectSpread$
|
|
13373
|
+
function ownKeys$G(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13374
|
+
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__default["default"](_context2 = ownKeys$G(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$G(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
13562
13375
|
var _ref$b = {
|
|
13563
13376
|
name: "1h52dri",
|
|
13564
13377
|
styles: "overflow:hidden;text-overflow:ellipsis;white-space:nowrap"
|
|
@@ -13569,20 +13382,20 @@ const ChangeItem = props => {
|
|
|
13569
13382
|
if (props.isWrappingChange) return jsxRuntime.jsx(uiKit.Text.Detail, {
|
|
13570
13383
|
children: jsxRuntime.jsx("div", {
|
|
13571
13384
|
css: _ref$b,
|
|
13572
|
-
children: changeMessages[changeMessage] ? jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
13385
|
+
children: changeMessages[changeMessage] ? jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$G({}, changeMessages[changeMessage])) : props.changeName
|
|
13573
13386
|
})
|
|
13574
13387
|
});
|
|
13575
13388
|
return jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
13576
13389
|
scale: "xs",
|
|
13577
13390
|
children: [jsxRuntime.jsx(uiKit.Text.Detail, {
|
|
13578
13391
|
fontWeight: "bold",
|
|
13579
|
-
children: changeMessages[changeMessage] ? jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
13392
|
+
children: changeMessages[changeMessage] ? jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$G({}, changeMessages[changeMessage])) : props.changeName
|
|
13580
13393
|
}), !isCustomChangeRendering(props.changeName) ? _mapInstanceProperty__default["default"](_context = props.change).call(_context, (change, index) => jsxRuntime.jsxs(react.Fragment, {
|
|
13581
13394
|
children: [isComposedValue(props.changeName) && jsxRuntime.jsx(uiKit.Spacings.Inline, {
|
|
13582
13395
|
scale: "xs",
|
|
13583
13396
|
alignItems: "stretch",
|
|
13584
13397
|
children: jsxRuntime.jsx(uiKit.Text.Detail, {
|
|
13585
|
-
children: jsxRuntime.jsx(GetChangesColumn, _objectSpread$
|
|
13398
|
+
children: jsxRuntime.jsx(GetChangesColumn, _objectSpread$G(_objectSpread$G({}, props), {}, {
|
|
13586
13399
|
change: change,
|
|
13587
13400
|
value: change.nextValue
|
|
13588
13401
|
}))
|
|
@@ -13599,7 +13412,7 @@ const ChangeItem = props => {
|
|
|
13599
13412
|
tone: "secondary"
|
|
13600
13413
|
})
|
|
13601
13414
|
}), jsxRuntime.jsx(uiKit.Text.Detail, {
|
|
13602
|
-
children: jsxRuntime.jsx(GetChangesColumn, _objectSpread$
|
|
13415
|
+
children: jsxRuntime.jsx(GetChangesColumn, _objectSpread$G(_objectSpread$G({}, props), {}, {
|
|
13603
13416
|
change: change,
|
|
13604
13417
|
value: change.previousValue
|
|
13605
13418
|
}))
|
|
@@ -13615,7 +13428,7 @@ const ChangeItem = props => {
|
|
|
13615
13428
|
tone: "secondary"
|
|
13616
13429
|
})
|
|
13617
13430
|
}), jsxRuntime.jsx(uiKit.Text.Detail, {
|
|
13618
|
-
children: jsxRuntime.jsx(GetChangesColumn, _objectSpread$
|
|
13431
|
+
children: jsxRuntime.jsx(GetChangesColumn, _objectSpread$G(_objectSpread$G({}, props), {}, {
|
|
13619
13432
|
change: change,
|
|
13620
13433
|
value: change.nextValue
|
|
13621
13434
|
}))
|
|
@@ -13623,7 +13436,7 @@ const ChangeItem = props => {
|
|
|
13623
13436
|
})]
|
|
13624
13437
|
})]
|
|
13625
13438
|
}, `${change.change}-${index}`)) : jsxRuntime.jsx(uiKit.Text.Detail, {
|
|
13626
|
-
children: jsxRuntime.jsx(GetChangesColumn, _objectSpread$
|
|
13439
|
+
children: jsxRuntime.jsx(GetChangesColumn, _objectSpread$G(_objectSpread$G({}, props), {}, {
|
|
13627
13440
|
change: {
|
|
13628
13441
|
change: props.changeName
|
|
13629
13442
|
},
|
|
@@ -13634,8 +13447,8 @@ const ChangeItem = props => {
|
|
|
13634
13447
|
};
|
|
13635
13448
|
ChangeItem.displayName = 'ChangeItem';
|
|
13636
13449
|
|
|
13637
|
-
function ownKeys$
|
|
13638
|
-
function _objectSpread$
|
|
13450
|
+
function ownKeys$F(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13451
|
+
function _objectSpread$F(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$F(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$F(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
13639
13452
|
function _callSuper$1(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$1() ? _Reflect$construct__default["default"](o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
13640
13453
|
function _isNativeReflectConstruct$1() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$1 = function () { return !!t; })(); }
|
|
13641
13454
|
let ChangeItemErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
@@ -13664,7 +13477,7 @@ let ChangeItemErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
|
13664
13477
|
if (this.state.hasError) {
|
|
13665
13478
|
return jsxRuntime.jsx(uiKit.Text.Body, {
|
|
13666
13479
|
fontWeight: "bold",
|
|
13667
|
-
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
13480
|
+
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$F({}, messages$1l.errorChangeLabel))
|
|
13668
13481
|
});
|
|
13669
13482
|
}
|
|
13670
13483
|
return this.props.children;
|
|
@@ -13834,19 +13647,19 @@ var messages$t = reactIntl.defineMessages({
|
|
|
13834
13647
|
}
|
|
13835
13648
|
});
|
|
13836
13649
|
|
|
13837
|
-
function ownKeys$
|
|
13838
|
-
function _objectSpread$
|
|
13650
|
+
function ownKeys$E(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13651
|
+
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__default["default"](_context = ownKeys$E(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$E(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
13839
13652
|
const ChangesCell = _ref => {
|
|
13840
13653
|
let message = _ref.message,
|
|
13841
13654
|
isWrappingText = _ref.isWrappingText,
|
|
13842
13655
|
isRowCollapsed = _ref.isRowCollapsed;
|
|
13843
13656
|
if (message.type === ChangeType.ResourceDeleted) return jsxRuntime.jsx(uiKit.Text.Detail, {
|
|
13844
13657
|
fontWeight: isWrappingText && !isRowCollapsed ? 'bold' : undefined,
|
|
13845
|
-
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
13658
|
+
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$E({}, messages$t.deletedResource))
|
|
13846
13659
|
});
|
|
13847
13660
|
if (message.type === ChangeType.ResourceCreated) return jsxRuntime.jsx(uiKit.Text.Detail, {
|
|
13848
13661
|
fontWeight: isWrappingText && !isRowCollapsed ? 'bold' : undefined,
|
|
13849
|
-
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
13662
|
+
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$E({}, messages$t.createdResource))
|
|
13850
13663
|
});
|
|
13851
13664
|
|
|
13852
13665
|
//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.
|
|
@@ -14116,15 +13929,15 @@ const ModifiedByCell = _ref => {
|
|
|
14116
13929
|
};
|
|
14117
13930
|
ModifiedByCell.displayName = 'ModifiedByCell';
|
|
14118
13931
|
|
|
14119
|
-
function ownKeys$
|
|
14120
|
-
function _objectSpread$
|
|
14121
|
-
const DeletedResource = () => jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
13932
|
+
function ownKeys$D(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13933
|
+
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__default["default"](_context2 = ownKeys$D(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$D(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
13934
|
+
const DeletedResource = () => jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$D({}, messages$S.deletedResource));
|
|
14122
13935
|
DeletedResource.displayName = 'DeletedResource';
|
|
14123
13936
|
var _ref2$2 = {
|
|
14124
13937
|
name: "1wbfu2h",
|
|
14125
13938
|
styles: "white-space:pre-line;overflow-wrap:anywhere"
|
|
14126
13939
|
} ;
|
|
14127
|
-
var _ref3 = {
|
|
13940
|
+
var _ref3$1 = {
|
|
14128
13941
|
name: "db5oe9",
|
|
14129
13942
|
styles: "width:100%;overflow:hidden;& span{width:100%;}& span span{width:100%;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}"
|
|
14130
13943
|
} ;
|
|
@@ -14138,7 +13951,7 @@ const ResourceInfo = _ref4 => {
|
|
|
14138
13951
|
return (
|
|
14139
13952
|
// custom css to allow for column truncation (display text preview option w/in table layout settings)
|
|
14140
13953
|
jsxRuntime.jsx("div", {
|
|
14141
|
-
css: isWrappingText ? _ref3 : _ref2$2,
|
|
13954
|
+
css: isWrappingText ? _ref3$1 : _ref2$2,
|
|
14142
13955
|
children: jsxRuntime.jsx(uiKit.FlatButton, {
|
|
14143
13956
|
onClick: onButtonClick,
|
|
14144
13957
|
label: label,
|
|
@@ -14257,7 +14070,7 @@ const getResourceLabel = (resourceType, resource, messageLabel, language, langua
|
|
|
14257
14070
|
});
|
|
14258
14071
|
default:
|
|
14259
14072
|
{
|
|
14260
|
-
return jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
14073
|
+
return jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$D({}, messages$S.missingResource));
|
|
14261
14074
|
}
|
|
14262
14075
|
}
|
|
14263
14076
|
};
|
|
@@ -14311,8 +14124,8 @@ const ResourceCell = props => {
|
|
|
14311
14124
|
size: "10",
|
|
14312
14125
|
label: intl.formatMessage(messages$S.filterButtonLabel),
|
|
14313
14126
|
onClick: () => {
|
|
14314
|
-
const filters = _objectSpread$
|
|
14315
|
-
filters: _objectSpread$
|
|
14127
|
+
const filters = _objectSpread$D(_objectSpread$D({}, props.searchQuery), {}, {
|
|
14128
|
+
filters: _objectSpread$D(_objectSpread$D({}, props.searchQuery.filters), {}, {
|
|
14316
14129
|
resourceId: [{
|
|
14317
14130
|
type: 'equalTo',
|
|
14318
14131
|
value: props.message.resource?.id
|
|
@@ -14365,8 +14178,8 @@ var messages$r = reactIntl.defineMessages({
|
|
|
14365
14178
|
}
|
|
14366
14179
|
});
|
|
14367
14180
|
|
|
14368
|
-
function ownKeys$
|
|
14369
|
-
function _objectSpread$
|
|
14181
|
+
function ownKeys$C(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14182
|
+
function _objectSpread$C(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$C(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$C(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
14370
14183
|
var _ref$8 = {
|
|
14371
14184
|
name: "h6w7gh",
|
|
14372
14185
|
styles: "text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"
|
|
@@ -14377,7 +14190,7 @@ const VersionCell = _ref2 => {
|
|
|
14377
14190
|
return jsxRuntime.jsx(uiKit.Text.Detail, {
|
|
14378
14191
|
children: jsxRuntime.jsx("div", {
|
|
14379
14192
|
css: _ref$8,
|
|
14380
|
-
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
14193
|
+
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$C(_objectSpread$C({}, messages$r.versionLabel), {}, {
|
|
14381
14194
|
values: {
|
|
14382
14195
|
oldVersion,
|
|
14383
14196
|
newVersion
|
|
@@ -14468,9 +14281,9 @@ const getTableCellByColumnKey = _ref => {
|
|
|
14468
14281
|
// Matches max table height for other MC applications
|
|
14469
14282
|
const MAX_TABLE_HEIGHT = '100%'; // eslint-disable-line import/prefer-default-export
|
|
14470
14283
|
|
|
14471
|
-
function ownKeys$
|
|
14472
|
-
function _objectSpread$
|
|
14473
|
-
const handleTruncateColumns = (columns, isTruncated) => _mapInstanceProperty__default["default"](columns).call(columns, column => _objectSpread$
|
|
14284
|
+
function ownKeys$B(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14285
|
+
function _objectSpread$B(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$B(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$B(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
14286
|
+
const handleTruncateColumns = (columns, isTruncated) => _mapInstanceProperty__default["default"](columns).call(columns, column => _objectSpread$B(_objectSpread$B({}, column), {}, {
|
|
14474
14287
|
isTruncated
|
|
14475
14288
|
}));
|
|
14476
14289
|
const ChangeHistoryDataTable = props => {
|
|
@@ -14479,7 +14292,7 @@ const ChangeHistoryDataTable = props => {
|
|
|
14479
14292
|
children: [jsxRuntime.jsx(uiKit.DataTable, {
|
|
14480
14293
|
maxHeight: MAX_TABLE_HEIGHT,
|
|
14481
14294
|
columns: truncatedColumns,
|
|
14482
|
-
rows: props.results?.map(res => _objectSpread$
|
|
14295
|
+
rows: props.results?.map(res => _objectSpread$B(_objectSpread$B({}, res), {}, {
|
|
14483
14296
|
id: `${res.resource.id}-${res.version}-${res.previousVersion}-${res.type}`
|
|
14484
14297
|
})),
|
|
14485
14298
|
itemRenderer: (item, column, isRowCollapsed) => getTableCellByColumnKey({
|
|
@@ -14512,6 +14325,10 @@ var _ref$7 = {
|
|
|
14512
14325
|
styles: "display:flex;flex-direction:column;-webkit-box-align:stretch;align-items:stretch"
|
|
14513
14326
|
} ;
|
|
14514
14327
|
var _ref2$1 = {
|
|
14328
|
+
name: "1wqzpu2",
|
|
14329
|
+
styles: "position:absolute;top:0;right:0;bottom:0;left:0;&>div{height:100%;}"
|
|
14330
|
+
} ;
|
|
14331
|
+
var _ref3 = {
|
|
14515
14332
|
name: "1qkt16r",
|
|
14516
14333
|
styles: "position:relative;height:100%;width:100%"
|
|
14517
14334
|
} ;
|
|
@@ -14519,9 +14336,9 @@ const ChangeHistoryListView = props => {
|
|
|
14519
14336
|
return props.isLoading ?
|
|
14520
14337
|
// TODO: stop replacing the table with the loading spinner every time we call the api, it's an a11y issue
|
|
14521
14338
|
jsxRuntime.jsx(uiKit.LoadingSpinner, {}) : jsxRuntime.jsx("div", {
|
|
14522
|
-
css:
|
|
14339
|
+
css: _ref3,
|
|
14523
14340
|
children: jsxRuntime.jsx("div", {
|
|
14524
|
-
css:
|
|
14341
|
+
css: _ref2$1,
|
|
14525
14342
|
children: jsxRuntime.jsx("div", {
|
|
14526
14343
|
css: _ref$7,
|
|
14527
14344
|
children: jsxRuntime.jsx(ChangeHistoryDataTable, {
|
|
@@ -14757,9 +14574,9 @@ var messages$o = reactIntl.defineMessages({
|
|
|
14757
14574
|
}
|
|
14758
14575
|
});
|
|
14759
14576
|
|
|
14760
|
-
const _excluded$
|
|
14761
|
-
function ownKeys$
|
|
14762
|
-
function _objectSpread$
|
|
14577
|
+
const _excluded$5 = ["resources"];
|
|
14578
|
+
function ownKeys$A(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14579
|
+
function _objectSpread$A(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context3 = ownKeys$A(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys$A(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
14763
14580
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
14764
14581
|
const isResourceChangeFilterValue = input => {
|
|
14765
14582
|
var _context, _context2;
|
|
@@ -14788,7 +14605,7 @@ const getDefaultValue = (resources, value) => {
|
|
|
14788
14605
|
const ResourceChangeFilter = _ref => {
|
|
14789
14606
|
let _ref$resources = _ref.resources,
|
|
14790
14607
|
resources = _ref$resources === void 0 ? [] : _ref$resources,
|
|
14791
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
14608
|
+
props = _objectWithoutProperties(_ref, _excluded$5);
|
|
14792
14609
|
const intl = reactIntl.useIntl();
|
|
14793
14610
|
const _useVersionTier = useVersionTier(),
|
|
14794
14611
|
tier = _useVersionTier.tier;
|
|
@@ -14804,7 +14621,7 @@ const ResourceChangeFilter = _ref => {
|
|
|
14804
14621
|
children: jsxRuntime.jsxs(uiKit.Spacings.Inline, {
|
|
14805
14622
|
alignItems: "center",
|
|
14806
14623
|
children: [jsxRuntime.jsx("div", {
|
|
14807
|
-
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
14624
|
+
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$A({}, messages$o.whenLabel))
|
|
14808
14625
|
}), jsxRuntime.jsx("div", {
|
|
14809
14626
|
css: /*#__PURE__*/react$1.css("min-width:", uiKit.designTokens.constraint7, ";" + ("" ), "" ),
|
|
14810
14627
|
children: jsxRuntime.jsx(uiKit.SelectInput, {
|
|
@@ -14831,7 +14648,7 @@ const ResourceChangeFilter = _ref => {
|
|
|
14831
14648
|
}), resource && jsxRuntime.jsxs(react.Fragment, {
|
|
14832
14649
|
children: [jsxRuntime.jsx("div", {
|
|
14833
14650
|
"data-testid": "prueba",
|
|
14834
|
-
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
14651
|
+
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$A({}, messages$o.hasLabel))
|
|
14835
14652
|
}), jsxRuntime.jsx("div", {
|
|
14836
14653
|
css: /*#__PURE__*/react$1.css("min-width:", uiKit.designTokens.constraint7, ";" + ("" ), "" ),
|
|
14837
14654
|
children: jsxRuntime.jsx(uiKit.SelectInput, {
|
|
@@ -15017,8 +14834,8 @@ var messages$l = reactIntl.defineMessages({
|
|
|
15017
14834
|
}
|
|
15018
14835
|
});
|
|
15019
14836
|
|
|
15020
|
-
function ownKeys$
|
|
15021
|
-
function _objectSpread$
|
|
14837
|
+
function ownKeys$z(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14838
|
+
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__default["default"](_context = ownKeys$z(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$z(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
15022
14839
|
const ResourceChangeFilterTag = props => {
|
|
15023
14840
|
const _useIntl = reactIntl.useIntl(),
|
|
15024
14841
|
formatMessage = _useIntl.formatMessage;
|
|
@@ -15029,8 +14846,8 @@ const ResourceChangeFilterTag = props => {
|
|
|
15029
14846
|
value: props.value,
|
|
15030
14847
|
renderValue: value => jsxRuntime.jsx(uiKit.Text.Detail, {
|
|
15031
14848
|
as: "span",
|
|
15032
|
-
intlMessage: _objectSpread$
|
|
15033
|
-
values: _objectSpread$
|
|
14849
|
+
intlMessage: _objectSpread$z(_objectSpread$z({}, messages$l.tagTxt), {}, {
|
|
14850
|
+
values: _objectSpread$z(_objectSpread$z({}, value), {}, {
|
|
15034
14851
|
resource: formatMessage(getEntityTypeNameMessage(kebabCase__default["default"](props.value.resource))),
|
|
15035
14852
|
change: changeMessages[changeMessage] ? formatMessage(changeMessages[changeMessage]) : props.value.change,
|
|
15036
14853
|
bold: getBoldText
|
|
@@ -15064,12 +14881,12 @@ const CenteredLoadingSpinner = () => jsxRuntime.jsx("div", {
|
|
|
15064
14881
|
});
|
|
15065
14882
|
CenteredLoadingSpinner.displayName = 'CenteredLoadingSpinner';
|
|
15066
14883
|
|
|
15067
|
-
function ownKeys$
|
|
15068
|
-
function _objectSpread$
|
|
14884
|
+
function ownKeys$y(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14885
|
+
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__default["default"](_context2 = ownKeys$y(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$y(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
15069
14886
|
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 } } } };
|
|
15070
14887
|
const createQueryVariables$4 = ownProps => {
|
|
15071
14888
|
var _context;
|
|
15072
|
-
return _objectSpread$
|
|
14889
|
+
return _objectSpread$y(_objectSpread$y({
|
|
15073
14890
|
limit: ownProps.limit,
|
|
15074
14891
|
offset: ownProps.offset,
|
|
15075
14892
|
sort: _sortInstanceProperty__default["default"](ownProps)
|
|
@@ -15158,16 +14975,16 @@ const getFirst60Options$1 = (businessUnitOptions, currentValues) => {
|
|
|
15158
14975
|
return _sliceInstanceProperty__default["default"](businessUnitOptions).call(businessUnitOptions, 0, LOWER_BUSINESS_UNITS_LIMIT + currentValuesLength);
|
|
15159
14976
|
};
|
|
15160
14977
|
|
|
15161
|
-
const _excluded$
|
|
15162
|
-
function ownKeys$
|
|
15163
|
-
function _objectSpread$
|
|
14978
|
+
const _excluded$4 = ["shouldFetchProductSelections"];
|
|
14979
|
+
function ownKeys$x(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14980
|
+
function _objectSpread$x(e) { for (var r = 1; r < arguments.length; r++) { var _context4, _context5; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context4 = ownKeys$x(Object(t), !0)).call(_context4, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context5 = ownKeys$x(Object(t))).call(_context5, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
15164
14981
|
const hasErrors$4 = errors => {
|
|
15165
14982
|
var _context;
|
|
15166
14983
|
return errors && _someInstanceProperty__default["default"](_context = _Object$values__default["default"](errors)).call(_context, Boolean);
|
|
15167
14984
|
};
|
|
15168
14985
|
const BusinessUnitAsyncSelectInput = _ref => {
|
|
15169
14986
|
_ref.shouldFetchProductSelections;
|
|
15170
|
-
let props = _objectWithoutProperties(_ref, _excluded$
|
|
14987
|
+
let props = _objectWithoutProperties(_ref, _excluded$4);
|
|
15171
14988
|
const intl = reactIntl.useIntl();
|
|
15172
14989
|
const businessUnitsListFetcher = useBusinessUnitsListFetcher({
|
|
15173
14990
|
limit: UPPER_BUSINESS_UNITS_LIMIT,
|
|
@@ -15202,7 +15019,7 @@ const BusinessUnitAsyncSelectInput = _ref => {
|
|
|
15202
15019
|
};
|
|
15203
15020
|
if (businessUnitsListFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner, {});
|
|
15204
15021
|
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
15205
|
-
children: [jsxRuntime.jsx(uiKit.AsyncSelectInput, _objectSpread$
|
|
15022
|
+
children: [jsxRuntime.jsx(uiKit.AsyncSelectInput, _objectSpread$x(_objectSpread$x({
|
|
15206
15023
|
id: props.id,
|
|
15207
15024
|
name: props.name,
|
|
15208
15025
|
placeholder: props.placeholder || intl.formatMessage(messages$k.asyncSelectInputPlaceholder),
|
|
@@ -15235,8 +15052,8 @@ const BusinessUnitAsyncSelectInput = _ref => {
|
|
|
15235
15052
|
};
|
|
15236
15053
|
BusinessUnitAsyncSelectInput.displayName = 'BusinessUnitAsyncSelectInput';
|
|
15237
15054
|
|
|
15238
|
-
function ownKeys$
|
|
15239
|
-
function _objectSpread$
|
|
15055
|
+
function ownKeys$w(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15056
|
+
function _objectSpread$w(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$w(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$w(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
15240
15057
|
const hasErrors$3 = errors => {
|
|
15241
15058
|
var _context;
|
|
15242
15059
|
return errors && _someInstanceProperty__default["default"](_context = _Object$values__default["default"](errors)).call(_context, Boolean);
|
|
@@ -15261,7 +15078,7 @@ const BusinessUnitBasicSelectInput = props => {
|
|
|
15261
15078
|
};
|
|
15262
15079
|
if (businessUnitsListFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner, {});
|
|
15263
15080
|
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
15264
|
-
children: [jsxRuntime.jsx(uiKit.SelectInput, _objectSpread$
|
|
15081
|
+
children: [jsxRuntime.jsx(uiKit.SelectInput, _objectSpread$w(_objectSpread$w({
|
|
15265
15082
|
id: props.id,
|
|
15266
15083
|
name: props.name,
|
|
15267
15084
|
placeholder: props.placeholder || intl.formatMessage(messages$k.basicSelectInputPlaceholder),
|
|
@@ -15341,9 +15158,9 @@ const useTotalNumberOfBusinessUnitsFetcher = () => {
|
|
|
15341
15158
|
};
|
|
15342
15159
|
};
|
|
15343
15160
|
|
|
15344
|
-
const _excluded$
|
|
15345
|
-
function ownKeys$
|
|
15346
|
-
function _objectSpread$
|
|
15161
|
+
const _excluded$3 = ["shouldFetchProductSelections"];
|
|
15162
|
+
function ownKeys$v(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15163
|
+
function _objectSpread$v(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context3 = ownKeys$v(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys$v(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
15347
15164
|
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 } } } };
|
|
15348
15165
|
const hasErrors$2 = errors => {
|
|
15349
15166
|
var _context;
|
|
@@ -15363,7 +15180,7 @@ const createQueryVariables$2 = _ref => {
|
|
|
15363
15180
|
};
|
|
15364
15181
|
const BusinessUnitSearchSelectInput = _ref2 => {
|
|
15365
15182
|
_ref2.shouldFetchProductSelections;
|
|
15366
|
-
let props = _objectWithoutProperties(_ref2, _excluded$
|
|
15183
|
+
let props = _objectWithoutProperties(_ref2, _excluded$3);
|
|
15367
15184
|
const intl = reactIntl.useIntl();
|
|
15368
15185
|
const client$1 = client.useApolloClient();
|
|
15369
15186
|
const businessUnitsByFieldFetcher = useBusinessUnitsByFieldFetcher(props.value);
|
|
@@ -15393,7 +15210,7 @@ const BusinessUnitSearchSelectInput = _ref2 => {
|
|
|
15393
15210
|
const loadOptionsDebounced = debounce__default["default"](handleLoadOptions, 500);
|
|
15394
15211
|
if (businessUnitsByFieldFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner, {});
|
|
15395
15212
|
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
15396
|
-
children: [jsxRuntime.jsx(uiKit.SearchSelectInput, _objectSpread$
|
|
15213
|
+
children: [jsxRuntime.jsx(uiKit.SearchSelectInput, _objectSpread$v(_objectSpread$v({
|
|
15397
15214
|
id: props.id,
|
|
15398
15215
|
name: props.name,
|
|
15399
15216
|
placeholder: props.placeholder || intl.formatMessage(messages$k.searchSelectInputPlaceholder),
|
|
@@ -15428,9 +15245,9 @@ const BusinessUnitSearchSelectInput = _ref2 => {
|
|
|
15428
15245
|
};
|
|
15429
15246
|
BusinessUnitSearchSelectInput.displayName = 'BusinessUnitSearchSelectInput';
|
|
15430
15247
|
|
|
15431
|
-
const _excluded$
|
|
15432
|
-
function ownKeys$
|
|
15433
|
-
function _objectSpread$
|
|
15248
|
+
const _excluded$2 = ["lowerBusinessUnitsLimit", "upperBusinessUnitsLimit", "renderSelectInputOptionValuesByField", "optionType"];
|
|
15249
|
+
function ownKeys$u(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15250
|
+
function _objectSpread$u(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$u(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$u(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
15434
15251
|
const CustomSelectInputOption$1 = uiKit.selectUtils.CustomSelectInputOption;
|
|
15435
15252
|
const BusinessUnitSelectInput = _ref => {
|
|
15436
15253
|
let _ref$lowerBusinessUni = _ref.lowerBusinessUnitsLimit,
|
|
@@ -15441,14 +15258,14 @@ const BusinessUnitSelectInput = _ref => {
|
|
|
15441
15258
|
renderSelectInputOptionValuesByField = _ref$renderSelectInpu === void 0 ? 'id' : _ref$renderSelectInpu,
|
|
15442
15259
|
_ref$optionType = _ref.optionType,
|
|
15443
15260
|
optionType = _ref$optionType === void 0 ? 'double-property' : _ref$optionType,
|
|
15444
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
15261
|
+
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
15445
15262
|
const totalNumberOfBusinessUnitsFetcher = useTotalNumberOfBusinessUnitsFetcher();
|
|
15446
15263
|
const components = react.useMemo(() => {
|
|
15447
15264
|
return {
|
|
15448
15265
|
// eslint-disable-next-line react/display-name
|
|
15449
15266
|
Option: optionInnerProps => {
|
|
15450
15267
|
if (optionInnerProps.isDisabled) {
|
|
15451
|
-
return jsxRuntime.jsx(uiKit.SelectInput.Option, _objectSpread$
|
|
15268
|
+
return jsxRuntime.jsx(uiKit.SelectInput.Option, _objectSpread$u({}, optionInnerProps));
|
|
15452
15269
|
}
|
|
15453
15270
|
return jsxRuntime.jsx(CustomSelectInputOption$1, {
|
|
15454
15271
|
optionType: optionType,
|
|
@@ -15466,7 +15283,7 @@ const BusinessUnitSelectInput = _ref => {
|
|
|
15466
15283
|
} else {
|
|
15467
15284
|
CustomSelectInput = BusinessUnitSearchSelectInput;
|
|
15468
15285
|
}
|
|
15469
|
-
return jsxRuntime.jsx(CustomSelectInput, _objectSpread$
|
|
15286
|
+
return jsxRuntime.jsx(CustomSelectInput, _objectSpread$u(_objectSpread$u({
|
|
15470
15287
|
id: props.id,
|
|
15471
15288
|
name: props.name,
|
|
15472
15289
|
components: components,
|
|
@@ -15549,10 +15366,10 @@ const containerStyles = {
|
|
|
15549
15366
|
styles: "display:inline-flex;flex-direction:column"
|
|
15550
15367
|
} ;
|
|
15551
15368
|
|
|
15552
|
-
function ownKeys$
|
|
15553
|
-
function _objectSpread$
|
|
15369
|
+
function ownKeys$t(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15370
|
+
function _objectSpread$t(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$t(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$t(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
15554
15371
|
const processUpdateValue = newValue => {
|
|
15555
|
-
const processedValue = _objectSpread$
|
|
15372
|
+
const processedValue = _objectSpread$t({}, newValue);
|
|
15556
15373
|
if (newValue.to === '') processedValue.to = null;else if (newValue.from === '') processedValue.from = null;
|
|
15557
15374
|
return processedValue;
|
|
15558
15375
|
};
|
|
@@ -15616,7 +15433,7 @@ const RangeFilter = props => jsxRuntime.jsxs("div", {
|
|
|
15616
15433
|
});
|
|
15617
15434
|
RangeFilter.displayName = 'RangeFilter';
|
|
15618
15435
|
|
|
15619
|
-
const _excluded$
|
|
15436
|
+
const _excluded$1 = ["disabled"];
|
|
15620
15437
|
const minwidth = '268px';
|
|
15621
15438
|
const createDateFilter = function () {
|
|
15622
15439
|
let _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
@@ -15628,7 +15445,7 @@ const createDateFilter = function () {
|
|
|
15628
15445
|
const DateFilter = _ref2 => {
|
|
15629
15446
|
let _ref2$disabled = _ref2.disabled,
|
|
15630
15447
|
disabled = _ref2$disabled === void 0 ? false : _ref2$disabled,
|
|
15631
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
15448
|
+
props = _objectWithoutProperties(_ref2, _excluded$1);
|
|
15632
15449
|
return jsxRuntime.jsx(FilterType, {
|
|
15633
15450
|
renderInput: _ref3 => {
|
|
15634
15451
|
let value = _ref3.value,
|
|
@@ -15842,8 +15659,8 @@ const getFirst60Options = (storesOptions, currentValues) => {
|
|
|
15842
15659
|
return _sliceInstanceProperty__default["default"](storesOptions).call(storesOptions, 0, LOWER_STORES_LIMIT + currentValuesLength);
|
|
15843
15660
|
};
|
|
15844
15661
|
|
|
15845
|
-
function ownKeys$
|
|
15846
|
-
function _objectSpread$
|
|
15662
|
+
function ownKeys$s(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15663
|
+
function _objectSpread$s(e) { for (var r = 1; r < arguments.length; r++) { var _context5, _context6; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context5 = ownKeys$s(Object(t), !0)).call(_context5, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context6 = ownKeys$s(Object(t))).call(_context6, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
15847
15664
|
const hasErrors$1 = errors => {
|
|
15848
15665
|
var _context;
|
|
15849
15666
|
return errors && _someInstanceProperty__default["default"](_context = _Object$values__default["default"](errors)).call(_context, Boolean);
|
|
@@ -15918,7 +15735,7 @@ const StoresAsyncSelectInput = props => {
|
|
|
15918
15735
|
};
|
|
15919
15736
|
if (storesListFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner, {});
|
|
15920
15737
|
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
15921
|
-
children: [jsxRuntime.jsx(uiKit.AsyncSelectInput, _objectSpread$
|
|
15738
|
+
children: [jsxRuntime.jsx(uiKit.AsyncSelectInput, _objectSpread$s(_objectSpread$s({
|
|
15922
15739
|
id: props.id,
|
|
15923
15740
|
name: props.name,
|
|
15924
15741
|
placeholder: intl.formatMessage(messages$i.basicSelectInputPlaceholder),
|
|
@@ -15997,8 +15814,8 @@ const useStoresByFieldFetcher = (stores, predicateField, projectKey) => {
|
|
|
15997
15814
|
};
|
|
15998
15815
|
};
|
|
15999
15816
|
|
|
16000
|
-
function ownKeys$
|
|
16001
|
-
function _objectSpread$
|
|
15817
|
+
function ownKeys$r(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15818
|
+
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__default["default"](_context3 = ownKeys$r(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys$r(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
16002
15819
|
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
|
|
16003
15820
|
const hasErrors = errors => {
|
|
16004
15821
|
var _context;
|
|
@@ -16093,7 +15910,7 @@ const StoresSearchSelectInput = props => {
|
|
|
16093
15910
|
const loadOptionsDebounced = debounce__default["default"](handleLoadOptions, 500);
|
|
16094
15911
|
if (storesByFieldFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner, {});
|
|
16095
15912
|
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
16096
|
-
children: [jsxRuntime.jsx(uiKit.SearchSelectInput, _objectSpread$
|
|
15913
|
+
children: [jsxRuntime.jsx(uiKit.SearchSelectInput, _objectSpread$r(_objectSpread$r({
|
|
16097
15914
|
id: props.id,
|
|
16098
15915
|
name: props.name,
|
|
16099
15916
|
placeholder: intl.formatMessage(messages$i.searchSelectInputPlaceholder),
|
|
@@ -16136,9 +15953,9 @@ const StoresSearchSelectInput = props => {
|
|
|
16136
15953
|
};
|
|
16137
15954
|
StoresSearchSelectInput.displayName = 'StoresSearchSelectInput';
|
|
16138
15955
|
|
|
16139
|
-
const _excluded
|
|
16140
|
-
function ownKeys$
|
|
16141
|
-
function _objectSpread$
|
|
15956
|
+
const _excluded = ["lowerStoresLimit", "upperStoresLimit", "renderSelectInputOptionValuesByField", "optionType"];
|
|
15957
|
+
function ownKeys$q(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15958
|
+
function _objectSpread$q(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$q(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$q(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
16142
15959
|
const CustomSelectInputOption = uiKit.selectUtils.CustomSelectInputOption;
|
|
16143
15960
|
const StoreSelectInput = _ref => {
|
|
16144
15961
|
let _ref$lowerStoresLimit = _ref.lowerStoresLimit,
|
|
@@ -16149,14 +15966,14 @@ const StoreSelectInput = _ref => {
|
|
|
16149
15966
|
renderSelectInputOptionValuesByField = _ref$renderSelectInpu === void 0 ? 'id' : _ref$renderSelectInpu,
|
|
16150
15967
|
_ref$optionType = _ref.optionType,
|
|
16151
15968
|
optionType = _ref$optionType === void 0 ? 'double-property' : _ref$optionType,
|
|
16152
|
-
props = _objectWithoutProperties(_ref, _excluded
|
|
15969
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
16153
15970
|
const totalNumberOfStoresFetcher = useTotalNumberOfStoresFetcher(props.projectKey);
|
|
16154
15971
|
const components = react.useMemo(() => {
|
|
16155
15972
|
return {
|
|
16156
15973
|
// eslint-disable-next-line react/display-name
|
|
16157
15974
|
Option: optionInnerProps => {
|
|
16158
15975
|
if (optionInnerProps.isDisabled) {
|
|
16159
|
-
return jsxRuntime.jsx(uiKit.SelectInput.Option, _objectSpread$
|
|
15976
|
+
return jsxRuntime.jsx(uiKit.SelectInput.Option, _objectSpread$q({}, optionInnerProps));
|
|
16160
15977
|
}
|
|
16161
15978
|
return jsxRuntime.jsx(CustomSelectInputOption, {
|
|
16162
15979
|
optionType: optionType,
|
|
@@ -16181,7 +15998,7 @@ const StoreSelectInput = _ref => {
|
|
|
16181
15998
|
} else {
|
|
16182
15999
|
CustomStoreSelectInput = StoresSearchSelectInput;
|
|
16183
16000
|
}
|
|
16184
|
-
return jsxRuntime.jsx(CustomStoreSelectInput, _objectSpread$
|
|
16001
|
+
return jsxRuntime.jsx(CustomStoreSelectInput, _objectSpread$q(_objectSpread$q({
|
|
16185
16002
|
projectKey: props.projectKey,
|
|
16186
16003
|
id: props.id,
|
|
16187
16004
|
name: props.name,
|
|
@@ -16363,8 +16180,8 @@ const filterTypeMissingMessages = reactIntl.defineMessages({
|
|
|
16363
16180
|
}
|
|
16364
16181
|
});
|
|
16365
16182
|
|
|
16366
|
-
function ownKeys$
|
|
16367
|
-
function _objectSpread$
|
|
16183
|
+
function ownKeys$p(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16184
|
+
function _objectSpread$p(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$p(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$p(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
16368
16185
|
function createDateDefinitionsMap(intl) {
|
|
16369
16186
|
return {
|
|
16370
16187
|
[FILTER_TYPES.lessThan]: {
|
|
@@ -16397,7 +16214,7 @@ function createDateDefinitionsMap(intl) {
|
|
|
16397
16214
|
function createFilterTypeToDefinitionMap(intl, meta) {
|
|
16398
16215
|
return {
|
|
16399
16216
|
[FILTER_TYPES.in]: {
|
|
16400
|
-
filterComponent: createEnumFilter(_objectSpread$
|
|
16217
|
+
filterComponent: createEnumFilter(_objectSpread$p(_objectSpread$p({}, meta), {}, {
|
|
16401
16218
|
isMulti: true,
|
|
16402
16219
|
isSearchable: true
|
|
16403
16220
|
})),
|
|
@@ -16408,7 +16225,7 @@ function createFilterTypeToDefinitionMap(intl, meta) {
|
|
|
16408
16225
|
validator: filter => validateMultiOptionEnum(filter, intl)
|
|
16409
16226
|
},
|
|
16410
16227
|
[FILTER_TYPES.equalTo]: {
|
|
16411
|
-
filterComponent: createEnumFilter(_objectSpread$
|
|
16228
|
+
filterComponent: createEnumFilter(_objectSpread$p(_objectSpread$p({}, meta), {}, {
|
|
16412
16229
|
isSearchable: true
|
|
16413
16230
|
})),
|
|
16414
16231
|
tagComponent: EnumSingleFilterTag,
|
|
@@ -16418,7 +16235,7 @@ function createFilterTypeToDefinitionMap(intl, meta) {
|
|
|
16418
16235
|
validator: filter => validateSingleOptionEnum(filter, intl)
|
|
16419
16236
|
},
|
|
16420
16237
|
[FILTER_TYPES.missing]: {
|
|
16421
|
-
filterComponent: createEnumFilter(_objectSpread$
|
|
16238
|
+
filterComponent: createEnumFilter(_objectSpread$p(_objectSpread$p({}, meta), {}, {
|
|
16422
16239
|
isSearchable: true
|
|
16423
16240
|
})),
|
|
16424
16241
|
tagComponent: EnumSingleFilterTag,
|
|
@@ -16428,7 +16245,7 @@ function createFilterTypeToDefinitionMap(intl, meta) {
|
|
|
16428
16245
|
validator: filter => validateMultiOptionEnum(filter, intl)
|
|
16429
16246
|
},
|
|
16430
16247
|
[FILTER_TYPES.missingIn]: {
|
|
16431
|
-
filterComponent: createEnumFilter(_objectSpread$
|
|
16248
|
+
filterComponent: createEnumFilter(_objectSpread$p(_objectSpread$p({}, meta), {}, {
|
|
16432
16249
|
isMulti: true,
|
|
16433
16250
|
isSearchable: true
|
|
16434
16251
|
})),
|
|
@@ -16456,7 +16273,7 @@ function createUserDefinitionsMap(intl, meta) {
|
|
|
16456
16273
|
return {
|
|
16457
16274
|
[FILTER_TYPES.equalTo]: {
|
|
16458
16275
|
filterComponent: createEnumFilter(meta),
|
|
16459
|
-
tagComponent: props => jsxRuntime.jsx(EnumSingleFilterLabelTag, _objectSpread$
|
|
16276
|
+
tagComponent: props => jsxRuntime.jsx(EnumSingleFilterLabelTag, _objectSpread$p(_objectSpread$p({}, props), {}, {
|
|
16460
16277
|
options: meta.options
|
|
16461
16278
|
})),
|
|
16462
16279
|
label: intl.formatMessage(filterTypeTextMessages.equalTo),
|
|
@@ -16470,7 +16287,7 @@ function createToolOptionsDefinitionsMap(intl, meta) {
|
|
|
16470
16287
|
return {
|
|
16471
16288
|
[FILTER_TYPES.in]: {
|
|
16472
16289
|
filterComponent: createEnumFilter(meta),
|
|
16473
|
-
tagComponent: props => jsxRuntime.jsx(EnumSingleFilterLabelTag, _objectSpread$
|
|
16290
|
+
tagComponent: props => jsxRuntime.jsx(EnumSingleFilterLabelTag, _objectSpread$p(_objectSpread$p({}, props), {}, {
|
|
16474
16291
|
options: meta.options
|
|
16475
16292
|
})),
|
|
16476
16293
|
label: intl.formatMessage(filterTypeTextMessages.equalTo),
|
|
@@ -16483,7 +16300,7 @@ function createToolOptionsDefinitionsMap(intl, meta) {
|
|
|
16483
16300
|
function createResourceChangeDefinitionsMap(intl, meta) {
|
|
16484
16301
|
return {
|
|
16485
16302
|
[FILTER_TYPES.resourceChange]: {
|
|
16486
|
-
filterComponent: props => jsxRuntime.jsx(ResourceChangeFilter, _objectSpread$
|
|
16303
|
+
filterComponent: props => jsxRuntime.jsx(ResourceChangeFilter, _objectSpread$p(_objectSpread$p({}, props), {}, {
|
|
16487
16304
|
resources: meta.resources
|
|
16488
16305
|
})),
|
|
16489
16306
|
tagComponent: ResourceChangeFilterTag,
|
|
@@ -16498,7 +16315,7 @@ function createApiClientDefinitionsMap(intl, meta) {
|
|
|
16498
16315
|
return {
|
|
16499
16316
|
[FILTER_TYPES.equalTo]: {
|
|
16500
16317
|
filterComponent: createEnumFilter(meta),
|
|
16501
|
-
tagComponent: props => jsxRuntime.jsx(EnumSingleFilterLabelTag, _objectSpread$
|
|
16318
|
+
tagComponent: props => jsxRuntime.jsx(EnumSingleFilterLabelTag, _objectSpread$p(_objectSpread$p({}, props), {}, {
|
|
16502
16319
|
options: meta.options
|
|
16503
16320
|
})),
|
|
16504
16321
|
label: intl.formatMessage(filterTypeTextMessages.equalTo),
|
|
@@ -16511,7 +16328,7 @@ function createApiClientDefinitionsMap(intl, meta) {
|
|
|
16511
16328
|
function createCustomerIdDefinitionsMap(intl) {
|
|
16512
16329
|
return {
|
|
16513
16330
|
[FILTER_TYPES.equalTo]: {
|
|
16514
|
-
filterComponent: props => jsxRuntime.jsx(TextFilter, _objectSpread$
|
|
16331
|
+
filterComponent: props => jsxRuntime.jsx(TextFilter, _objectSpread$p({}, props)),
|
|
16515
16332
|
tagComponent: TextSingleFilterTag,
|
|
16516
16333
|
label: intl.formatMessage(filterTypeTextMessages.equalTo),
|
|
16517
16334
|
canBeAppliedMultipleTimes: false,
|
|
@@ -16523,7 +16340,7 @@ function createCustomerIdDefinitionsMap(intl) {
|
|
|
16523
16340
|
function createExcludePlatformChangesDefinitionsMap(intl) {
|
|
16524
16341
|
return {
|
|
16525
16342
|
[FILTER_TYPES.equalTo]: {
|
|
16526
|
-
filterComponent: props => jsxRuntime.jsx(TextFilter, _objectSpread$
|
|
16343
|
+
filterComponent: props => jsxRuntime.jsx(TextFilter, _objectSpread$p({}, props)),
|
|
16527
16344
|
label: intl.formatMessage(filterTypeTextMessages.equalTo),
|
|
16528
16345
|
tagComponent: TextSingleFilterTag
|
|
16529
16346
|
}
|
|
@@ -16532,7 +16349,7 @@ function createExcludePlatformChangesDefinitionsMap(intl) {
|
|
|
16532
16349
|
function createStoresDefinitionsMap(intl) {
|
|
16533
16350
|
return {
|
|
16534
16351
|
[FILTER_TYPES.equalTo]: {
|
|
16535
|
-
filterComponent: props => jsxRuntime.jsx(StoresFilter, _objectSpread$
|
|
16352
|
+
filterComponent: props => jsxRuntime.jsx(StoresFilter, _objectSpread$p({}, props)),
|
|
16536
16353
|
tagComponent: EnumSingleOptionFilterTag,
|
|
16537
16354
|
label: intl.formatMessage(filterTypeTextMessages.equalTo),
|
|
16538
16355
|
canBeAppliedMultipleTimes: false,
|
|
@@ -16544,7 +16361,7 @@ function createStoresDefinitionsMap(intl) {
|
|
|
16544
16361
|
function createBusinessUnitDefinitionsMap(intl) {
|
|
16545
16362
|
return {
|
|
16546
16363
|
[FILTER_TYPES.equalTo]: {
|
|
16547
|
-
filterComponent: props => jsxRuntime.jsx(BusinessUnitFilter, _objectSpread$
|
|
16364
|
+
filterComponent: props => jsxRuntime.jsx(BusinessUnitFilter, _objectSpread$p({}, props)),
|
|
16548
16365
|
tagComponent: EnumSingleFilterTag,
|
|
16549
16366
|
label: intl.formatMessage(filterTypeTextMessages.equalTo),
|
|
16550
16367
|
canBeAppliedMultipleTimes: false,
|
|
@@ -16556,7 +16373,7 @@ function createBusinessUnitDefinitionsMap(intl) {
|
|
|
16556
16373
|
function createEntityIdDefinitionsMap(intl) {
|
|
16557
16374
|
return {
|
|
16558
16375
|
[FILTER_TYPES.equalTo]: {
|
|
16559
|
-
filterComponent: props => jsxRuntime.jsx(TextFilter, _objectSpread$
|
|
16376
|
+
filterComponent: props => jsxRuntime.jsx(TextFilter, _objectSpread$p({}, props)),
|
|
16560
16377
|
tagComponent: TextSingleFilterTag,
|
|
16561
16378
|
label: intl.formatMessage(filterTypeTextMessages.equalTo),
|
|
16562
16379
|
canBeAppliedMultipleTimes: false,
|
|
@@ -16714,8 +16531,8 @@ var messages$h = reactIntl.defineMessages({
|
|
|
16714
16531
|
}
|
|
16715
16532
|
});
|
|
16716
16533
|
|
|
16717
|
-
function ownKeys$
|
|
16718
|
-
function _objectSpread$
|
|
16534
|
+
function ownKeys$o(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16535
|
+
function _objectSpread$o(e) { for (var r = 1; r < arguments.length; r++) { var _context7, _context8; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context7 = ownKeys$o(Object(t), !0)).call(_context7, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context8 = ownKeys$o(Object(t))).call(_context8, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
16719
16536
|
const DisabledGroupTitleLabel = _ref => {
|
|
16720
16537
|
let group = _ref.group,
|
|
16721
16538
|
groupTitleMessage = _ref.groupTitleMessage;
|
|
@@ -16823,7 +16640,7 @@ const createFilterDefinitions = memoize__default["default"](_ref3 => {
|
|
|
16823
16640
|
members = _ref3.members,
|
|
16824
16641
|
tier = _ref3.tier;
|
|
16825
16642
|
const defaultResourceFilterOptions = getResourceOptions(intl, allowedResourceTypes);
|
|
16826
|
-
const defaultFilters = _objectSpread$
|
|
16643
|
+
const defaultFilters = _objectSpread$o(_objectSpread$o(_objectSpread$o(_objectSpread$o({
|
|
16827
16644
|
[FILTER_OPTION_KEYS.SOURCE]: {
|
|
16828
16645
|
label: intl.formatMessage(messages$h.changeThroughMCFilter),
|
|
16829
16646
|
disabledForBasic: true,
|
|
@@ -16924,11 +16741,10 @@ const createFilterDefinitions = memoize__default["default"](_ref3 => {
|
|
|
16924
16741
|
return _reduceInstanceProperty__default["default"](availableFilters).call(availableFilters, (filterDefinitions, filter) => {
|
|
16925
16742
|
const filterConfig = getFilterConfig(defaultFilters, defaultResourceFilterOptions, intl, filter, tier);
|
|
16926
16743
|
if (filterConfig) {
|
|
16927
|
-
return _objectSpread$
|
|
16744
|
+
return _objectSpread$o(_objectSpread$o({}, filterDefinitions), {}, {
|
|
16928
16745
|
[filter.key]: filterConfig
|
|
16929
16746
|
});
|
|
16930
16747
|
}
|
|
16931
|
-
console.debug('Unexpected filter encountered when creating filter definitions; no config defined for ', filter.key);
|
|
16932
16748
|
return filterDefinitions;
|
|
16933
16749
|
}, {});
|
|
16934
16750
|
});
|
|
@@ -17150,8 +16966,8 @@ var messages$f = reactIntl.defineMessages({
|
|
|
17150
16966
|
}
|
|
17151
16967
|
});
|
|
17152
16968
|
|
|
17153
|
-
function ownKeys$
|
|
17154
|
-
function _objectSpread$
|
|
16969
|
+
function ownKeys$n(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16970
|
+
function _objectSpread$n(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$n(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$n(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
17155
16971
|
const TotalResults = _ref => {
|
|
17156
16972
|
let _ref$total = _ref.total,
|
|
17157
16973
|
total = _ref$total === void 0 ? 0 : _ref$total;
|
|
@@ -17161,7 +16977,7 @@ const TotalResults = _ref => {
|
|
|
17161
16977
|
const intl = reactIntl.useIntl();
|
|
17162
16978
|
return jsxRuntime.jsx(uiKit.Text.Detail, {
|
|
17163
16979
|
tone: "secondary",
|
|
17164
|
-
intlMessage: _objectSpread$
|
|
16980
|
+
intlMessage: _objectSpread$n(_objectSpread$n({}, messages$f.title), {}, {
|
|
17165
16981
|
values: {
|
|
17166
16982
|
total: intl.formatNumber(total)
|
|
17167
16983
|
}
|
|
@@ -17219,6 +17035,7 @@ const VersionTier = () => {
|
|
|
17219
17035
|
const _useVersionTier = useVersionTier(),
|
|
17220
17036
|
hasFoundData = _useVersionTier.hasFoundData,
|
|
17221
17037
|
tier = _useVersionTier.tier;
|
|
17038
|
+
const projectKey = applicationShellConnectors.useApplicationContext(applicationContext => applicationContext.project && applicationContext.project.key);
|
|
17222
17039
|
if (!hasFoundData) {
|
|
17223
17040
|
return null;
|
|
17224
17041
|
}
|
|
@@ -17232,7 +17049,11 @@ const VersionTier = () => {
|
|
|
17232
17049
|
label: intl.formatMessage(messages$e.basicCardStampLabel)
|
|
17233
17050
|
}), jsxRuntime.jsx(uiKit.Card, {
|
|
17234
17051
|
insetScale: "xs",
|
|
17235
|
-
onClick: () =>
|
|
17052
|
+
onClick: () => {
|
|
17053
|
+
routes.explorePremium.go({
|
|
17054
|
+
projectKey
|
|
17055
|
+
});
|
|
17056
|
+
},
|
|
17236
17057
|
children: jsxRuntime.jsx("div", {
|
|
17237
17058
|
css: goPremiumCardStyles,
|
|
17238
17059
|
children: jsxRuntime.jsxs(uiKit.Spacings.Inline, {
|
|
@@ -17346,93 +17167,11 @@ var messages$c = reactIntl.defineMessages({
|
|
|
17346
17167
|
}
|
|
17347
17168
|
});
|
|
17348
17169
|
|
|
17349
|
-
function ownKeys$
|
|
17350
|
-
function _objectSpread$
|
|
17170
|
+
function ownKeys$m(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17171
|
+
function _objectSpread$m(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$m(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$m(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
17351
17172
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? _Reflect$construct__default["default"](o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
17352
17173
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function () { return !!t; })(); }
|
|
17353
|
-
var UnexpectedErrorSVG =
|
|
17354
|
-
return jsxRuntime.jsxs("svg", _objectSpread$l(_objectSpread$l({}, props), {}, {
|
|
17355
|
-
children: [jsxRuntime.jsxs("defs", {
|
|
17356
|
-
children: [jsxRuntime.jsx("rect", {
|
|
17357
|
-
id: "c",
|
|
17358
|
-
x: "0",
|
|
17359
|
-
y: "226.694",
|
|
17360
|
-
width: "248.775",
|
|
17361
|
-
height: "2.451",
|
|
17362
|
-
rx: "1.225"
|
|
17363
|
-
}), jsxRuntime.jsx("path", {
|
|
17364
|
-
id: "a",
|
|
17365
|
-
d: "M0 0h250v226.694H0z"
|
|
17366
|
-
})]
|
|
17367
|
-
}), jsxRuntime.jsxs("g", {
|
|
17368
|
-
fill: "none",
|
|
17369
|
-
fillRule: "evenodd",
|
|
17370
|
-
children: [jsxRuntime.jsxs("g", {
|
|
17371
|
-
transform: "translate(0 -3)",
|
|
17372
|
-
children: [jsxRuntime.jsx("mask", {
|
|
17373
|
-
id: "b",
|
|
17374
|
-
fill: "#fff",
|
|
17375
|
-
children: jsxRuntime.jsx("use", {
|
|
17376
|
-
xlinkHref: "#a"
|
|
17377
|
-
})
|
|
17378
|
-
}), jsxRuntime.jsx("ellipse", {
|
|
17379
|
-
fill: "#F2F2F2",
|
|
17380
|
-
mask: "url(#b)",
|
|
17381
|
-
cx: "124.387",
|
|
17382
|
-
cy: "126.213",
|
|
17383
|
-
rx: "123.162",
|
|
17384
|
-
ry: "122.537"
|
|
17385
|
-
})]
|
|
17386
|
-
}), jsxRuntime.jsxs("g", {
|
|
17387
|
-
transform: "translate(0 -3)",
|
|
17388
|
-
children: [jsxRuntime.jsx("use", {
|
|
17389
|
-
fill: "#000",
|
|
17390
|
-
xlinkHref: "#c"
|
|
17391
|
-
}), jsxRuntime.jsx("rect", {
|
|
17392
|
-
stroke: "#000",
|
|
17393
|
-
x: ".5",
|
|
17394
|
-
y: "227.194",
|
|
17395
|
-
width: "247.775",
|
|
17396
|
-
height: "1.451",
|
|
17397
|
-
rx: ".725"
|
|
17398
|
-
})]
|
|
17399
|
-
}), jsxRuntime.jsx("path", {
|
|
17400
|
-
d: "M160.922 215.16c0-4.66-3.826-8.473-8.502-8.473h-6.498c11.232-9.168 18.4-23.096 18.4-38.694 0-27.61-22.457-49.993-50.16-49.993C86.457 118 64 140.383 64 167.993c0 18.441 10.02 34.548 24.93 43.213H73.068c-4.676 0-8.502 3.813-8.502 8.474 0 4.66-1.842 3.954 2.834 3.954h85.02c24.371 1.13 8.501 0 8.501-8.473",
|
|
17401
|
-
fill: "#00B49F"
|
|
17402
|
-
}), jsxRuntime.jsx("path", {
|
|
17403
|
-
d: "M95.652 189.2c0 2.48-2.04 4.51-4.534 4.51h-1.7c-2.494 0-4.535-2.03-4.535-4.51v-20.29c0 2.48-2.04 4.508-4.534 4.508h-1.7c-2.495 0-4.535-2.029-4.535-4.509V152c0 2.48-2.04 4.509-4.535 4.509h-1.7c-.86 0-1.661-.245-2.348-.662A49.7 49.7 0 0 0 64 168.117c0 18.4 10.02 34.472 24.93 43.118H73.069c-4.676 0-8.502 3.804-8.502 8.454s-1.842 3.946 2.834 3.946h85.02c24.371 1.127 8.501 0 8.501-8.455 0-4.65-3.826-8.455-8.502-8.455h-6.498c11.232-9.147 18.401-23.044 18.401-38.608 0-.472-.008-.941-.021-1.41h-.83c-2.493 0-4.534-2.029-4.534-4.508v12.4c0 2.48-2.04 4.508-4.534 4.508h-1.7c-2.494 0-4.535-2.029-4.535-4.509v-7.89c0 2.48-2.04 4.509-4.534 4.509h-1.7c-2.494 0-4.535-2.03-4.535-4.51v25.364c0 2.48-2.04 4.51-4.534 4.51h-1.7c-2.495 0-4.535-2.03-4.535-4.51v-23.109c0 2.48-2.04 4.51-4.534 4.51h-1.7c-1.63 0-3.063-.87-3.862-2.163v6.706c0 2.48-2.04 4.51-4.535 4.51h-1.7c-2.494 0-4.534-2.03-4.534-4.51v-16.288a4.544 4.544 0 0 1-3.862 2.162h-1.7c-2.494 0-4.534-2.029-4.534-4.509",
|
|
17404
|
-
fill: "#A8DBD5"
|
|
17405
|
-
}), jsxRuntime.jsx("path", {
|
|
17406
|
-
d: "M160.975 216.16c0-4.66-3.787-8.473-8.417-8.473h-6.433c11.12-9.168 18.217-23.096 18.217-38.694 0-27.61-22.233-49.993-49.66-49.993-1.238 0-2.466.048-3.682.137 25.74 1.927 46.047 24.268 46.047 51.548 0 16.126-11.586 30.526-22.706 40.005h10.923c4.63 0 8.417 3.942 8.417 8.76 0 2.25 1.036 3.997 2.167 5.334 19.32.85 5.127-.569 5.127-8.623",
|
|
17407
|
-
fill: "#FFF"
|
|
17408
|
-
}), jsxRuntime.jsx("path", {
|
|
17409
|
-
d: "M67.522 222.383h84.795c4.647.214 9.386.436 11.609.345l-.021-.02c-1.585-1.45-4.24-3.88-4.24-7.65 0-4.04-3.296-7.327-7.348-7.327h-9.646l2.448-1.999c11.4-9.308 17.939-23.06 17.939-37.73 0-26.88-21.936-48.748-48.899-48.748-26.962 0-48.898 21.868-48.898 48.747 0 17.276 9.313 33.423 24.303 42.138l3.613 2.1H73.175c-4.052 0-7.349 3.287-7.349 7.327 0 1.304-.139 2.238-.244 2.85.103-.002.21-.004.318-.008.428-.01.96-.025 1.622-.025M162.59 225c-2.12 0-5.346-.133-10.324-.363H67.522c-.637 0-1.15.014-1.563.025-1.221.03-1.891.049-2.398-.538-.48-.555-.366-1.196-.245-1.875.1-.56.25-1.405.25-2.683 0-5.283 4.31-9.58 9.61-9.58h11.936C71.382 200.515 63 184.765 63 168c0-28.12 22.95-51 51.16-51 28.21 0 51.159 22.879 51.159 51.001 0 14.331-5.962 27.823-16.46 37.476h3.458c5.299 0 9.61 4.298 9.61 9.58 0 2.78 2.111 4.713 3.508 5.991 1.013.928 1.887 1.729 1.45 2.777-.348.833-.897 1.175-4.296 1.175",
|
|
17410
|
-
fill: "#000"
|
|
17411
|
-
}), jsxRuntime.jsx("path", {
|
|
17412
|
-
d: "m178.728 31.282-75.405 74.574c-3.804 3.763-2.794 10.167 1.99 12.554 11.591 5.783 31.878 16.381 52.437 29.379 4.58 2.896 10.637.346 11.772-4.965l22.29-104.342c1.62-7.585-7.578-12.646-13.084-7.2",
|
|
17413
|
-
fill: "#A8DBD5"
|
|
17414
|
-
}), jsxRuntime.jsx("path", {
|
|
17415
|
-
fill: "#FFF",
|
|
17416
|
-
d: "M168.832 142 146 62.632l2.167-.632L171 141.368zm-23.038 0L128 80.63l2.206-.63L148 141.37zm-19.9-11L113 95.767l2.107-.767L128 130.233zm53.017-35L161 48.817l2.089-.817L181 95.183zm6.967-37L177 32.711l2.122-.711L188 58.289z"
|
|
17417
|
-
}), jsxRuntime.jsx("path", {
|
|
17418
|
-
fill: "#FFF",
|
|
17419
|
-
d: "M118.334 92 118 89.767 183.666 80l.334 2.233zm-17.167 18-.167-2.246L178.833 102l.167 2.246zm72.831 15L115 124.95l.002-1.95 58.998.05zm-30.805-58L143 64.769 187.807 61l.193 2.231zm20.197-19-.39-2.234L190.61 41l.39 2.234z"
|
|
17420
|
-
}), jsxRuntime.jsx("path", {
|
|
17421
|
-
d: "m179.432 32.215-75.197 74.406a6.613 6.613 0 0 0-1.898 5.803 6.576 6.576 0 0 0 3.592 4.907c10.564 5.274 31.418 16.103 52.393 29.369a6.544 6.544 0 0 0 6.128.506 6.567 6.567 0 0 0 3.91-4.74l22.23-104.107c.765-3.582-1.3-6.14-3.3-7.242-2-1.1-5.26-1.474-7.858 1.098M161.85 150a8.815 8.815 0 0 1-4.728-1.39c-20.891-13.213-41.67-24.002-52.195-29.257-2.6-1.298-4.354-3.694-4.813-6.573-.459-2.885.467-5.715 2.54-7.766l75.197-74.407c2.865-2.834 6.996-3.41 10.52-1.47 3.526 1.943 5.26 5.748 4.418 9.695L170.56 142.938c-.617 2.889-2.526 5.203-5.239 6.349a8.893 8.893 0 0 1-3.471.713",
|
|
17422
|
-
fill: "#000"
|
|
17423
|
-
}), jsxRuntime.jsx("path", {
|
|
17424
|
-
d: "m88.322 148.347 1.331 1.331c.43.43 1.132.43 1.561 0l5.464-5.464c.43-.429.43-1.131 0-1.56l-1.331-1.332a1.107 1.107 0 0 0-1.561 0l-5.464 5.464a1.105 1.105 0 0 0 0 1.56m39.971 2.148 1.213 1.213a1.009 1.009 0 0 0 1.423 0l1.778-1.778a1.009 1.009 0 0 0 0-1.423l-1.214-1.213a1.008 1.008 0 0 0-1.422 0l-1.778 1.778a1.009 1.009 0 0 0 0 1.423m-20 7.999 1.213 1.214a1.009 1.009 0 0 0 1.423 0l1.778-1.778a1.01 1.01 0 0 0 0-1.422l-1.214-1.214a1.008 1.008 0 0 0-1.422 0l-1.778 1.778a1.008 1.008 0 0 0 0 1.422m5.995-18.257 1.26 1.406c.406.453 1.097.48 1.535.06l5.571-5.35c.438-.42.464-1.135.058-1.588l-1.26-1.406a1.063 1.063 0 0 0-1.535-.06l-5.571 5.35a1.155 1.155 0 0 0-.058 1.588m27 29.001 1.26 1.405c.406.453 1.097.48 1.535.06l5.57-5.35c.439-.42.465-1.136.059-1.589l-1.26-1.405a1.063 1.063 0 0 0-1.535-.06l-5.57 5.35a1.155 1.155 0 0 0-.059 1.589m-21.108-12.77-.998 1.523c-.323.49-.204 1.169.262 1.507l5.94 4.312a1.002 1.002 0 0 0 1.435-.276l1-1.522c.322-.49.203-1.17-.264-1.509l-5.94-4.311a1.003 1.003 0 0 0-1.434.276m-25.001-31-.998 1.522c-.323.491-.204 1.17.262 1.508l5.94 4.312a1.003 1.003 0 0 0 1.435-.276l1-1.522c.322-.49.203-1.17-.264-1.509l-5.94-4.311a1.003 1.003 0 0 0-1.434.276",
|
|
17425
|
-
fill: "#FFF"
|
|
17426
|
-
})]
|
|
17427
|
-
})]
|
|
17428
|
-
}));
|
|
17429
|
-
};
|
|
17430
|
-
UnexpectedErrorSVG.defaultProps = {
|
|
17431
|
-
width: "249",
|
|
17432
|
-
height: "227",
|
|
17433
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
17434
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink"
|
|
17435
|
-
};
|
|
17174
|
+
var UnexpectedErrorSVG = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQ5IiBoZWlnaHQ9IjIyNyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp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xLjE3LjI2MiAxLjUwOGw1Ljk0IDQuMzEyYTEuMDAzIDEuMDAzIDAgMDAxLjQzNS0uMjc2bDEtMS41MjJjLjMyMi0uNDkuMjAzLTEuMTctLjI2NC0xLjUwOWwtNS45NC00LjMxMWExLjAwMyAxLjAwMyAwIDAwLTEuNDM0LjI3NiIgZmlsbD0iI0ZGRiIvPjwvZz48L3N2Zz4=";
|
|
17436
17175
|
let ErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
17437
17176
|
function ErrorBoundary() {
|
|
17438
17177
|
var _this;
|
|
@@ -17461,8 +17200,8 @@ let ErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
|
17461
17200
|
if (this.state.hasError) {
|
|
17462
17201
|
return jsxRuntime.jsx(applicationComponents.MaintenancePageLayout, {
|
|
17463
17202
|
imageSrc: UnexpectedErrorSVG,
|
|
17464
|
-
title: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
17465
|
-
paragraph1: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
17203
|
+
title: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$m({}, messages$c.title)),
|
|
17204
|
+
paragraph1: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$m({}, messages$c.notifiedTeam))
|
|
17466
17205
|
});
|
|
17467
17206
|
}
|
|
17468
17207
|
return this.props.children;
|
|
@@ -17493,38 +17232,38 @@ function isAddBusinessUnitColumnToView(entity) {
|
|
|
17493
17232
|
return _includesInstanceProperty__default["default"](_context2 = ADD_BUSINESS_UNIT_COLUMN_TO_VIEW).call(_context2, entity);
|
|
17494
17233
|
}
|
|
17495
17234
|
|
|
17496
|
-
function ownKeys$
|
|
17497
|
-
function _objectSpread$
|
|
17235
|
+
function ownKeys$l(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17236
|
+
function _objectSpread$l(e) { for (var r = 1; r < arguments.length; r++) { var _context4, _context5; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context4 = ownKeys$l(Object(t), !0)).call(_context4, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context5 = ownKeys$l(Object(t))).call(_context5, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
17498
17237
|
const createColumnDefinitions = (columnsToBeShown, _inContextEntity) => {
|
|
17499
17238
|
var _context, _context2;
|
|
17500
17239
|
return _filterInstanceProperty__default["default"](_context = _filterInstanceProperty__default["default"](_context2 = [{
|
|
17501
17240
|
key: COLUMNS.MODIFIED_BY,
|
|
17502
|
-
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
17241
|
+
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$l({}, messages$h.modifiedByColumn)),
|
|
17503
17242
|
width: 'minmax(210px, 1fr)',
|
|
17504
17243
|
shouldIgnoreRowClick: true
|
|
17505
17244
|
}, {
|
|
17506
17245
|
key: COLUMNS.LAST_MODIFIED,
|
|
17507
|
-
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
17246
|
+
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$l({}, messages$h.dateColumn)),
|
|
17508
17247
|
width: '1fr',
|
|
17509
17248
|
shouldIgnoreRowClick: true
|
|
17510
17249
|
}, {
|
|
17511
17250
|
key: COLUMNS.ACTION,
|
|
17512
|
-
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
17251
|
+
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$l({}, messages$h.actionColumn)),
|
|
17513
17252
|
width: '1fr',
|
|
17514
17253
|
shouldIgnoreRowClick: true
|
|
17515
17254
|
}, {
|
|
17516
17255
|
key: COLUMNS.CHANGES,
|
|
17517
|
-
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
17256
|
+
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$l({}, messages$h.additionalInformationColumn)),
|
|
17518
17257
|
width: '4fr',
|
|
17519
17258
|
shouldIgnoreRowClick: true
|
|
17520
17259
|
}, {
|
|
17521
17260
|
key: COLUMNS.RESOURCE,
|
|
17522
|
-
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
17261
|
+
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$l({}, messages$h.resourceColumn)),
|
|
17523
17262
|
width: 'minmax(150px, 2fr)',
|
|
17524
17263
|
shouldIgnoreRowClick: true
|
|
17525
17264
|
}, {
|
|
17526
17265
|
key: COLUMNS.RESOURCE_TYPE,
|
|
17527
|
-
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
17266
|
+
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$l({}, messages$h.resourceTypeColumn)),
|
|
17528
17267
|
width: '1fr',
|
|
17529
17268
|
shouldIgnoreRowClick: true
|
|
17530
17269
|
}]).call(_context2, col => _includesInstanceProperty__default["default"](columnsToBeShown).call(columnsToBeShown, col?.key))).call(_context, Boolean);
|
|
@@ -17541,17 +17280,17 @@ const hiddenColumnsDefinition = (inContextEntity, canViewBusinessUnits) => {
|
|
|
17541
17280
|
const addBusinessUnitColumnToView = !inContextEntity || isAddBusinessUnitColumnToView(inContextEntity);
|
|
17542
17281
|
const columns = [{
|
|
17543
17282
|
key: COLUMNS.VERSION,
|
|
17544
|
-
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
17283
|
+
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$l({}, messages$h.versionColumn)),
|
|
17545
17284
|
width: '1fr',
|
|
17546
17285
|
shouldIgnoreRowClick: true
|
|
17547
17286
|
}, (!inContextEntity || addStoreColumnToInContextView) && {
|
|
17548
17287
|
key: COLUMNS.STORES,
|
|
17549
|
-
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
17288
|
+
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$l({}, messages$h.storesColumn)),
|
|
17550
17289
|
width: '1fr',
|
|
17551
17290
|
shouldIgnoreRowClick: true
|
|
17552
17291
|
}, canViewBusinessUnits && addBusinessUnitColumnToView && {
|
|
17553
17292
|
key: COLUMNS.BUSINESS_UNIT,
|
|
17554
|
-
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$
|
|
17293
|
+
label: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$l({}, messages$h.businessUnitColumn)),
|
|
17555
17294
|
width: '1fr',
|
|
17556
17295
|
shouldIgnoreRowClick: true
|
|
17557
17296
|
}];
|
|
@@ -17643,8 +17382,8 @@ var messages$b = reactIntl.defineMessages({
|
|
|
17643
17382
|
}
|
|
17644
17383
|
});
|
|
17645
17384
|
|
|
17646
|
-
function ownKeys$
|
|
17647
|
-
function _objectSpread$
|
|
17385
|
+
function ownKeys$k(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17386
|
+
function _objectSpread$k(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$k(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$k(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
17648
17387
|
var _ref$4 = {
|
|
17649
17388
|
name: "125wnaz",
|
|
17650
17389
|
styles: "z-index:0"
|
|
@@ -17666,8 +17405,8 @@ function InternalFilterToggle(props) {
|
|
|
17666
17405
|
isChecked: !props.internalChangeFilter || !props.internalChangeFilter.value?.[0]?.includes('excludeAll'),
|
|
17667
17406
|
size: "small",
|
|
17668
17407
|
onChange: event => {
|
|
17669
|
-
props.setSearchQuery(_objectSpread$
|
|
17670
|
-
filters: _objectSpread$
|
|
17408
|
+
props.setSearchQuery(_objectSpread$k(_objectSpread$k({}, props.searchQuery), {}, {
|
|
17409
|
+
filters: _objectSpread$k(_objectSpread$k({}, props.searchQuery.filters), {}, {
|
|
17671
17410
|
excludePlatformInitiatedChanges: [{
|
|
17672
17411
|
type: FILTER_TYPES.equalTo,
|
|
17673
17412
|
value: {
|
|
@@ -17698,7 +17437,7 @@ function InternalFilterToggle(props) {
|
|
|
17698
17437
|
children: [jsxRuntime.jsx(uiKit.Text.Body, {
|
|
17699
17438
|
children: intl.formatMessage(messages$b.modalIntroText)
|
|
17700
17439
|
}), jsxRuntime.jsx(uiKit.Text.Detail, {
|
|
17701
|
-
intlMessage: _objectSpread$
|
|
17440
|
+
intlMessage: _objectSpread$k(_objectSpread$k({}, messages$b.modalDiscountCodesText), {}, {
|
|
17702
17441
|
values: {
|
|
17703
17442
|
b: getBoldText,
|
|
17704
17443
|
br: getNewLine,
|
|
@@ -17706,7 +17445,7 @@ function InternalFilterToggle(props) {
|
|
|
17706
17445
|
}
|
|
17707
17446
|
})
|
|
17708
17447
|
}), jsxRuntime.jsx(uiKit.Text.Body, {
|
|
17709
|
-
intlMessage: _objectSpread$
|
|
17448
|
+
intlMessage: _objectSpread$k(_objectSpread$k({}, messages$b.modalProductDiscountsText), {}, {
|
|
17710
17449
|
values: {
|
|
17711
17450
|
b: getBoldText,
|
|
17712
17451
|
br: getNewLine,
|
|
@@ -17714,7 +17453,7 @@ function InternalFilterToggle(props) {
|
|
|
17714
17453
|
}
|
|
17715
17454
|
})
|
|
17716
17455
|
}), jsxRuntime.jsx(uiKit.Text.Body, {
|
|
17717
|
-
intlMessage: _objectSpread$
|
|
17456
|
+
intlMessage: _objectSpread$k(_objectSpread$k({}, messages$b.modalProductText), {}, {
|
|
17718
17457
|
values: {
|
|
17719
17458
|
b: getBoldText,
|
|
17720
17459
|
br: getNewLine,
|
|
@@ -17722,7 +17461,7 @@ function InternalFilterToggle(props) {
|
|
|
17722
17461
|
}
|
|
17723
17462
|
})
|
|
17724
17463
|
}), jsxRuntime.jsx(uiKit.Text.Body, {
|
|
17725
|
-
intlMessage: _objectSpread$
|
|
17464
|
+
intlMessage: _objectSpread$k(_objectSpread$k({}, messages$b.modalShoppingListText), {}, {
|
|
17726
17465
|
values: {
|
|
17727
17466
|
a: getAnchorTag('https://docs.commercetools.com/api/general-concepts#eventual-consistency'),
|
|
17728
17467
|
b: getBoldText,
|
|
@@ -18345,8 +18084,8 @@ const filtersStyles = {
|
|
|
18345
18084
|
filtersActions: () => /*#__PURE__*/react$1.css("display:flex;justify-content:space-between;padding:", uiKit.designTokens.spacingL, " ", uiKit.designTokens.spacingXl, ";background-color:", uiKit.designTokens.colorSurface, ";border-radius:0px;border-top:1px solid ", uiKit.designTokens.colorNeutral90, ";" + ("" ), "" )
|
|
18346
18085
|
};
|
|
18347
18086
|
|
|
18348
|
-
function ownKeys$
|
|
18349
|
-
function _objectSpread$
|
|
18087
|
+
function ownKeys$j(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18088
|
+
function _objectSpread$j(e) { for (var r = 1; r < arguments.length; r++) { var _context9, _context10; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context9 = ownKeys$j(Object(t), !0)).call(_context9, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context10 = ownKeys$j(Object(t))).call(_context10, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
18350
18089
|
const FilterFieldInputs = _ref => {
|
|
18351
18090
|
let fieldName = _ref.fieldName,
|
|
18352
18091
|
fieldFilters = _ref.fieldFilters,
|
|
@@ -18360,14 +18099,14 @@ const FilterFieldInputs = _ref => {
|
|
|
18360
18099
|
label: filterConfig.label,
|
|
18361
18100
|
tooltip: filterConfig.tooltip,
|
|
18362
18101
|
onAddFilter: options => {
|
|
18363
|
-
onAddFilterToField(_objectSpread$
|
|
18102
|
+
onAddFilterToField(_objectSpread$j(_objectSpread$j({}, options), {}, {
|
|
18364
18103
|
fieldName
|
|
18365
18104
|
}));
|
|
18366
18105
|
},
|
|
18367
|
-
onRemoveFilter: options => onRemoveFilterFromField(_objectSpread$
|
|
18106
|
+
onRemoveFilter: options => onRemoveFilterFromField(_objectSpread$j(_objectSpread$j({}, options), {}, {
|
|
18368
18107
|
fieldName
|
|
18369
18108
|
})),
|
|
18370
|
-
onUpdateFilter: options => onUpdateFilterForField(_objectSpread$
|
|
18109
|
+
onUpdateFilter: options => onUpdateFilterForField(_objectSpread$j(_objectSpread$j({}, options), {}, {
|
|
18371
18110
|
fieldName
|
|
18372
18111
|
}))
|
|
18373
18112
|
}, fieldName);
|
|
@@ -18580,18 +18319,18 @@ const Filters = _ref4 => {
|
|
|
18580
18319
|
});
|
|
18581
18320
|
};
|
|
18582
18321
|
|
|
18583
|
-
function ownKeys$
|
|
18584
|
-
function _objectSpread$
|
|
18322
|
+
function ownKeys$i(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18323
|
+
function _objectSpread$i(e) { for (var r = 1; r < arguments.length; r++) { var _context5, _context6; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context5 = ownKeys$i(Object(t), !0)).call(_context5, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context6 = ownKeys$i(Object(t))).call(_context6, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
18585
18324
|
function mergeFieldToCorrectPosition(fields, fieldName, fieldValue) {
|
|
18586
18325
|
var _context;
|
|
18587
|
-
if (has__default["default"](fields, fieldName)) return _reduceInstanceProperty__default["default"](_context = _Object$keys__default["default"](fields)).call(_context, (acc, name) => _objectSpread$
|
|
18326
|
+
if (has__default["default"](fields, fieldName)) return _reduceInstanceProperty__default["default"](_context = _Object$keys__default["default"](fields)).call(_context, (acc, name) => _objectSpread$i(_objectSpread$i({}, acc), name === fieldName && fieldValue.length > 0 ? {
|
|
18588
18327
|
[name]: fieldValue
|
|
18589
18328
|
} : {
|
|
18590
18329
|
[name]: fields[name]
|
|
18591
18330
|
}), {});
|
|
18592
18331
|
|
|
18593
18332
|
// If the key is not present yet, add it at the bottom
|
|
18594
|
-
return _objectSpread$
|
|
18333
|
+
return _objectSpread$i(_objectSpread$i({}, fields), {}, {
|
|
18595
18334
|
[fieldName]: fieldValue
|
|
18596
18335
|
});
|
|
18597
18336
|
}
|
|
@@ -18630,7 +18369,7 @@ const FiltersContainerOld = _ref => {
|
|
|
18630
18369
|
const intl = reactIntl.useIntl();
|
|
18631
18370
|
react.useEffect(() => {
|
|
18632
18371
|
if (!isEditMode) {
|
|
18633
|
-
setState(prevState => _objectSpread$
|
|
18372
|
+
setState(prevState => _objectSpread$i(_objectSpread$i({}, prevState), {}, {
|
|
18634
18373
|
filteredFields: filteredFields
|
|
18635
18374
|
}));
|
|
18636
18375
|
}
|
|
@@ -18641,7 +18380,7 @@ const FiltersContainerOld = _ref => {
|
|
|
18641
18380
|
const detectChangesInFilters = (nextState, prevState) => {
|
|
18642
18381
|
const changesInFiltersDraft = !isNil__default["default"](nextState.filteredFields) && !fastEquals.deepEqual(prevState.filteredFields, nextState.filteredFields);
|
|
18643
18382
|
const changesInFiltersApplied = !isNil__default["default"](nextState.filteredFields) && !fastEquals.deepEqual(nextState.filteredFields, filteredFields);
|
|
18644
|
-
if (changesInFiltersDraft) return _objectSpread$
|
|
18383
|
+
if (changesInFiltersDraft) return _objectSpread$i({
|
|
18645
18384
|
hasChangesInFilters: changesInFiltersApplied
|
|
18646
18385
|
}, nextState);
|
|
18647
18386
|
return nextState;
|
|
@@ -18687,7 +18426,7 @@ const FiltersContainerOld = _ref => {
|
|
|
18687
18426
|
fieldName = _ref4[0],
|
|
18688
18427
|
fieldValues = _ref4[1];
|
|
18689
18428
|
const nonEmptyFilters = _filterInstanceProperty__default["default"](fieldValues).call(fieldValues, filterEmptyFilters(fieldName));
|
|
18690
|
-
if (nonEmptyFilters.length) return _objectSpread$
|
|
18429
|
+
if (nonEmptyFilters.length) return _objectSpread$i(_objectSpread$i({}, fields), {}, {
|
|
18691
18430
|
[fieldName]: nonEmptyFilters
|
|
18692
18431
|
});
|
|
18693
18432
|
return fields;
|
|
@@ -18741,7 +18480,7 @@ const FiltersContainerOld = _ref => {
|
|
|
18741
18480
|
filters: filteredFields,
|
|
18742
18481
|
page: 1
|
|
18743
18482
|
});
|
|
18744
|
-
setState(prevState => _objectSpread$
|
|
18483
|
+
setState(prevState => _objectSpread$i(_objectSpread$i({}, prevState), {}, {
|
|
18745
18484
|
hasChangesInFilters: false
|
|
18746
18485
|
}));
|
|
18747
18486
|
} else setState(prevState => detectChangesInFilters({
|
|
@@ -18822,14 +18561,14 @@ const FiltersContainerOld = _ref => {
|
|
|
18822
18561
|
const nextFilteredFields = removeFilterFromField(state.filteredFields, fieldName, index);
|
|
18823
18562
|
|
|
18824
18563
|
// Ensure the required date range filter is present
|
|
18825
|
-
const nextFilteredFieldsWithDateRange = _objectSpread$
|
|
18564
|
+
const nextFilteredFieldsWithDateRange = _objectSpread$i(_objectSpread$i({}, nextFilteredFields), {}, {
|
|
18826
18565
|
[FILTER_OPTION_KEYS.DATE_RANGE]: state.filteredFields[FILTER_OPTION_KEYS.DATE_RANGE]
|
|
18827
18566
|
});
|
|
18828
18567
|
onUpdateSearch({
|
|
18829
18568
|
filters: nextFilteredFieldsWithDateRange,
|
|
18830
18569
|
page: 1
|
|
18831
18570
|
});
|
|
18832
|
-
setState(prevState => _objectSpread$
|
|
18571
|
+
setState(prevState => _objectSpread$i(_objectSpread$i({}, prevState), {}, {
|
|
18833
18572
|
filteredFields: nextFilteredFieldsWithDateRange,
|
|
18834
18573
|
hasChangesInFilters: false
|
|
18835
18574
|
}));
|
|
@@ -18841,7 +18580,7 @@ const FiltersContainerOld = _ref => {
|
|
|
18841
18580
|
return state.filteredFields && _Object$keys__default["default"](state.filteredFields).length > 0;
|
|
18842
18581
|
};
|
|
18843
18582
|
const handleClearAll = () => {
|
|
18844
|
-
setState(prevState => _objectSpread$
|
|
18583
|
+
setState(prevState => _objectSpread$i(_objectSpread$i({}, prevState), {}, {
|
|
18845
18584
|
filteredFields: {
|
|
18846
18585
|
createdAt: prevState.filteredFields.createdAt
|
|
18847
18586
|
},
|
|
@@ -18871,10 +18610,10 @@ const FiltersContainerOld = _ref => {
|
|
|
18871
18610
|
let from = _ref14.from,
|
|
18872
18611
|
to = _ref14.to,
|
|
18873
18612
|
selectedFilterType = _ref14.selectedFilterType;
|
|
18874
|
-
setSearchQuery(_objectSpread$
|
|
18613
|
+
setSearchQuery(_objectSpread$i(_objectSpread$i({}, searchQuery), {}, {
|
|
18875
18614
|
searchText: '',
|
|
18876
18615
|
page: 1,
|
|
18877
|
-
filters: _objectSpread$
|
|
18616
|
+
filters: _objectSpread$i(_objectSpread$i({}, searchQuery.filters), {}, {
|
|
18878
18617
|
createdAt: [{
|
|
18879
18618
|
selectedFilterType,
|
|
18880
18619
|
type: 'range',
|
|
@@ -19442,19 +19181,171 @@ const FilterTooltipDialog = _ref => {
|
|
|
19442
19181
|
FilterTooltipDialog.displayName = 'FilterTooltipDialog';
|
|
19443
19182
|
|
|
19444
19183
|
const FilterApplyButton = _ref => {
|
|
19445
|
-
let
|
|
19184
|
+
let isDisabled = _ref.isDisabled,
|
|
19446
19185
|
onApply = _ref.onApply;
|
|
19447
19186
|
const intl = reactIntl.useIntl();
|
|
19448
19187
|
return jsxRuntime.jsx(uiKit.PrimaryButton, {
|
|
19449
|
-
isDisabled:
|
|
19188
|
+
isDisabled: isDisabled,
|
|
19450
19189
|
label: intl.formatMessage(messages$6.apply),
|
|
19451
19190
|
size: "10",
|
|
19452
19191
|
onClick: onApply
|
|
19453
19192
|
});
|
|
19454
19193
|
};
|
|
19455
19194
|
|
|
19195
|
+
const OperatorsInput = _ref => {
|
|
19196
|
+
let operatorValue = _ref.operatorValue,
|
|
19197
|
+
onChange = _ref.onChange,
|
|
19198
|
+
options = _ref.options;
|
|
19199
|
+
const handleChange = event => {
|
|
19200
|
+
const newValue = event.target?.value;
|
|
19201
|
+
if (typeof newValue !== 'string') {
|
|
19202
|
+
return;
|
|
19203
|
+
}
|
|
19204
|
+
const selectedOption = _findInstanceProperty__default["default"](options).call(options, option => option.value === newValue);
|
|
19205
|
+
if (selectedOption) {
|
|
19206
|
+
onChange(selectedOption);
|
|
19207
|
+
}
|
|
19208
|
+
};
|
|
19209
|
+
return jsxRuntime.jsx(uiKit.SelectInput, {
|
|
19210
|
+
name: "operators-input",
|
|
19211
|
+
id: "operators-input",
|
|
19212
|
+
"aria-label": "select operators",
|
|
19213
|
+
appearance: "quiet",
|
|
19214
|
+
isCondensed: true,
|
|
19215
|
+
isSearchable: false,
|
|
19216
|
+
value: operatorValue,
|
|
19217
|
+
options: options,
|
|
19218
|
+
onChange: handleChange
|
|
19219
|
+
});
|
|
19220
|
+
};
|
|
19221
|
+
|
|
19222
|
+
function ownKeys$h(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19223
|
+
function _objectSpread$h(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$h(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$h(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
19224
|
+
const createSelectFilterConfig = _ref => {
|
|
19225
|
+
let key = _ref.key,
|
|
19226
|
+
label = _ref.label,
|
|
19227
|
+
tooltip = _ref.tooltip,
|
|
19228
|
+
options = _ref.options,
|
|
19229
|
+
operatorOptions = _ref.operatorOptions,
|
|
19230
|
+
isMulti = _ref.isMulti,
|
|
19231
|
+
isSearchable = _ref.isSearchable,
|
|
19232
|
+
filterValue = _ref.filterValue,
|
|
19233
|
+
setFilterValue = _ref.setFilterValue,
|
|
19234
|
+
searchQuery = _ref.searchQuery,
|
|
19235
|
+
onUpdateSearch = _ref.onUpdateSearch,
|
|
19236
|
+
removeFilter = _ref.removeFilter;
|
|
19237
|
+
// Try and first read the operator from local state otherwise read from searchQuery
|
|
19238
|
+
// or default to first option in operatorOptions
|
|
19239
|
+
let currentOperator = filterValue[key]?.operator;
|
|
19240
|
+
// If local operator is empty, check the searchQuery
|
|
19241
|
+
if (!currentOperator) {
|
|
19242
|
+
const operatorFromSearchQuery = searchQuery.filters?.[key]?.[0];
|
|
19243
|
+
if (operatorFromSearchQuery && typeof operatorFromSearchQuery.type === 'string') {
|
|
19244
|
+
const foundOperator = _findInstanceProperty__default["default"](operatorOptions).call(operatorOptions, option => option.value === operatorFromSearchQuery.type);
|
|
19245
|
+
if (foundOperator) {
|
|
19246
|
+
currentOperator = foundOperator;
|
|
19247
|
+
}
|
|
19248
|
+
}
|
|
19249
|
+
}
|
|
19250
|
+
currentOperator = currentOperator || operatorOptions[0];
|
|
19251
|
+
const _currentOperator = currentOperator,
|
|
19252
|
+
operatorValue = _currentOperator.value,
|
|
19253
|
+
operatorLabel = _currentOperator.label;
|
|
19254
|
+
const getCurrentValues = () => {
|
|
19255
|
+
// Try to get values from local state first
|
|
19256
|
+
const localValues = filterValue?.[key]?.appliedFilterValues;
|
|
19257
|
+
if (localValues) {
|
|
19258
|
+
return isMulti ? localValues : localValues[0] ?? '';
|
|
19259
|
+
}
|
|
19260
|
+
|
|
19261
|
+
// Fall back to stored search query values
|
|
19262
|
+
const filterStoredValue = searchQuery.filters?.[key]?.[0]?.value;
|
|
19263
|
+
if (filterStoredValue && typeof filterStoredValue === 'object' && 'value' in filterStoredValue && _Array$isArray__default["default"](filterStoredValue.value)) {
|
|
19264
|
+
const storedValues = filterStoredValue.value;
|
|
19265
|
+
return isMulti ? storedValues : storedValues[0] ?? '';
|
|
19266
|
+
}
|
|
19267
|
+
|
|
19268
|
+
// Default empty value
|
|
19269
|
+
return isMulti ? [] : '';
|
|
19270
|
+
};
|
|
19271
|
+
return {
|
|
19272
|
+
key,
|
|
19273
|
+
label,
|
|
19274
|
+
tooltip,
|
|
19275
|
+
operatorLabel,
|
|
19276
|
+
filterMenuConfiguration: {
|
|
19277
|
+
renderOperatorsInput: () => jsxRuntime.jsx(OperatorsInput, {
|
|
19278
|
+
operatorValue: operatorValue,
|
|
19279
|
+
onChange: newOperatorValue => {
|
|
19280
|
+
setFilterValue(_objectSpread$h(_objectSpread$h({}, filterValue), {}, {
|
|
19281
|
+
[key]: _objectSpread$h(_objectSpread$h({}, filterValue[key]), {}, {
|
|
19282
|
+
operator: newOperatorValue
|
|
19283
|
+
})
|
|
19284
|
+
}));
|
|
19285
|
+
},
|
|
19286
|
+
options: operatorOptions
|
|
19287
|
+
}),
|
|
19288
|
+
renderMenuBody: () => {
|
|
19289
|
+
return jsxRuntime.jsx(uiKit.SelectInput, {
|
|
19290
|
+
name: "enumFilterSelect",
|
|
19291
|
+
id: "enumFilterSelect",
|
|
19292
|
+
"aria-label": "enum filter select",
|
|
19293
|
+
options: options,
|
|
19294
|
+
value: getCurrentValues(),
|
|
19295
|
+
isSearchable: isSearchable,
|
|
19296
|
+
appearance: "filter",
|
|
19297
|
+
optionStyle: "checkbox",
|
|
19298
|
+
isMulti: isMulti,
|
|
19299
|
+
onChange: event => {
|
|
19300
|
+
/* 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.*/
|
|
19301
|
+
const newValue = event.target.value;
|
|
19302
|
+
const valueArray = !isMulti && typeof newValue === 'string' ? [newValue] : _Array$isArray__default["default"](newValue) ? newValue : [];
|
|
19303
|
+
setFilterValue(_objectSpread$h(_objectSpread$h({}, filterValue), {}, {
|
|
19304
|
+
[key]: {
|
|
19305
|
+
operator: {
|
|
19306
|
+
value: operatorValue,
|
|
19307
|
+
label: operatorLabel
|
|
19308
|
+
},
|
|
19309
|
+
appliedFilterValues: valueArray
|
|
19310
|
+
}
|
|
19311
|
+
}));
|
|
19312
|
+
}
|
|
19313
|
+
});
|
|
19314
|
+
},
|
|
19315
|
+
renderApplyButton: () => {
|
|
19316
|
+
const currentFilter = filterValue[key];
|
|
19317
|
+
const currentValue = currentFilter?.appliedFilterValues;
|
|
19318
|
+
const storedValue = searchQuery.filters?.[key]?.[0].value?.value;
|
|
19319
|
+
return jsxRuntime.jsx(FilterApplyButton, {
|
|
19320
|
+
isDisabled: currentValue === undefined || currentValue.length === 0 && isNil__default["default"](storedValue) || isEqual__default["default"](currentValue, storedValue),
|
|
19321
|
+
onApply: () => {
|
|
19322
|
+
if (currentFilter && currentFilter.appliedFilterValues.length > 0) {
|
|
19323
|
+
onUpdateSearch({
|
|
19324
|
+
filters: _objectSpread$h(_objectSpread$h({}, searchQuery.filters), {}, {
|
|
19325
|
+
[key]: [{
|
|
19326
|
+
type: operatorValue,
|
|
19327
|
+
value: {
|
|
19328
|
+
value: currentFilter.appliedFilterValues
|
|
19329
|
+
}
|
|
19330
|
+
}]
|
|
19331
|
+
})
|
|
19332
|
+
});
|
|
19333
|
+
} else {
|
|
19334
|
+
removeFilter(key);
|
|
19335
|
+
}
|
|
19336
|
+
}
|
|
19337
|
+
});
|
|
19338
|
+
},
|
|
19339
|
+
onClearRequest: () => {
|
|
19340
|
+
setFilterValue({});
|
|
19341
|
+
removeFilter(key);
|
|
19342
|
+
}
|
|
19343
|
+
}
|
|
19344
|
+
};
|
|
19345
|
+
};
|
|
19346
|
+
|
|
19456
19347
|
function ownKeys$g(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19457
|
-
function _objectSpread$g(e) { for (var r = 1; r < arguments.length; r++) { var
|
|
19348
|
+
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__default["default"](_context2 = ownKeys$g(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$g(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
19458
19349
|
const createTextFilterConfig = _ref => {
|
|
19459
19350
|
let key = _ref.key,
|
|
19460
19351
|
label = _ref.label,
|
|
@@ -19470,17 +19361,20 @@ const createTextFilterConfig = _ref => {
|
|
|
19470
19361
|
tooltip,
|
|
19471
19362
|
filterMenuConfiguration: {
|
|
19472
19363
|
renderMenuBody: () => {
|
|
19473
|
-
const rawValue = filterValue?.[key]?.
|
|
19364
|
+
const rawValue = filterValue?.[key]?.appliedFilterValues?.[0].value ?? searchQuery.filters?.[key]?.[0]?.value ?? '';
|
|
19474
19365
|
|
|
19475
|
-
// ensure textValue is a string to
|
|
19366
|
+
// ensure textValue is a string to appease typescript
|
|
19476
19367
|
const textValue = typeof rawValue === 'string' ? rawValue : '';
|
|
19477
19368
|
return jsxRuntime.jsx(uiKit.TextInput, {
|
|
19478
19369
|
value: textValue,
|
|
19479
19370
|
onChange: event => {
|
|
19371
|
+
var _context;
|
|
19480
19372
|
setFilterValue(_objectSpread$g(_objectSpread$g({}, filterValue), {}, {
|
|
19481
19373
|
[key]: {
|
|
19482
19374
|
operator: FILTER_TYPES.equalTo,
|
|
19483
|
-
|
|
19375
|
+
appliedFilterValues: [{
|
|
19376
|
+
value: _trimInstanceProperty__default["default"](_context = event.target.value).call(_context)
|
|
19377
|
+
}]
|
|
19484
19378
|
}
|
|
19485
19379
|
}));
|
|
19486
19380
|
}
|
|
@@ -19488,16 +19382,17 @@ const createTextFilterConfig = _ref => {
|
|
|
19488
19382
|
},
|
|
19489
19383
|
renderOperatorsInput: () => tooltip,
|
|
19490
19384
|
renderApplyButton: () => {
|
|
19491
|
-
const
|
|
19385
|
+
const currentValue = filterValue?.[key]?.appliedFilterValues?.[0].value;
|
|
19386
|
+
const storedValue = searchQuery.filters?.[key]?.[0]?.value;
|
|
19492
19387
|
return jsxRuntime.jsx(FilterApplyButton, {
|
|
19493
|
-
|
|
19388
|
+
isDisabled: currentValue === undefined || currentValue === '' && isNil__default["default"](storedValue) || currentValue === storedValue,
|
|
19494
19389
|
onApply: () => {
|
|
19495
|
-
if (
|
|
19390
|
+
if (currentValue) {
|
|
19496
19391
|
onUpdateSearch({
|
|
19497
19392
|
filters: _objectSpread$g(_objectSpread$g({}, searchQuery.filters), {}, {
|
|
19498
19393
|
[key]: [{
|
|
19499
19394
|
type: FILTER_TYPES.equalTo,
|
|
19500
|
-
value:
|
|
19395
|
+
value: currentValue ?? ''
|
|
19501
19396
|
}]
|
|
19502
19397
|
})
|
|
19503
19398
|
});
|
|
@@ -19508,13 +19403,13 @@ const createTextFilterConfig = _ref => {
|
|
|
19508
19403
|
});
|
|
19509
19404
|
},
|
|
19510
19405
|
onClearRequest: () => {
|
|
19406
|
+
setFilterValue(_objectSpread$g({}, omit__default["default"](filterValue, [key])));
|
|
19511
19407
|
removeFilter(key);
|
|
19512
19408
|
}
|
|
19513
19409
|
}
|
|
19514
19410
|
};
|
|
19515
19411
|
};
|
|
19516
19412
|
|
|
19517
|
-
const _excluded = ["intl"];
|
|
19518
19413
|
function ownKeys$f(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19519
19414
|
function _objectSpread$f(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$f(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$f(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
19520
19415
|
const customerIdExternalLink = {
|
|
@@ -19524,11 +19419,29 @@ const customerIdExternalLink = {
|
|
|
19524
19419
|
children: linkText
|
|
19525
19420
|
}, 'cust-id-ext-docs-link')
|
|
19526
19421
|
};
|
|
19422
|
+
|
|
19423
|
+
// Create all the filter configurations for the app
|
|
19527
19424
|
const createFilterConfigurations = _ref => {
|
|
19528
|
-
let
|
|
19529
|
-
|
|
19530
|
-
|
|
19531
|
-
|
|
19425
|
+
let allowedResourceTypes = _ref.allowedResourceTypes,
|
|
19426
|
+
intl = _ref.intl,
|
|
19427
|
+
commonFilterProps = _ref.commonFilterProps;
|
|
19428
|
+
const resourceTypeOptions = getResourceOptions(intl, allowedResourceTypes);
|
|
19429
|
+
const RESOURCE_TYPE_OPERATOR_OPTIONS = [{
|
|
19430
|
+
value: FILTER_OPERATOR.in,
|
|
19431
|
+
label: intl.formatMessage(filterTypeInMessages.in)
|
|
19432
|
+
}, {
|
|
19433
|
+
value: FILTER_OPERATOR.missingIn,
|
|
19434
|
+
label: intl.formatMessage(filterTypeMissingMessages.missingIn)
|
|
19435
|
+
}];
|
|
19436
|
+
return [createSelectFilterConfig(_objectSpread$f({
|
|
19437
|
+
key: FILTER_KEY.RESOURCE_TYPE,
|
|
19438
|
+
label: intl.formatMessage(messages$h.resourceTypeFilter),
|
|
19439
|
+
options: resourceTypeOptions,
|
|
19440
|
+
operatorOptions: RESOURCE_TYPE_OPERATOR_OPTIONS,
|
|
19441
|
+
isMulti: true,
|
|
19442
|
+
isSearchable: true
|
|
19443
|
+
}, commonFilterProps)), createTextFilterConfig(_objectSpread$f({
|
|
19444
|
+
key: FILTER_KEY.RESOURCE_ID,
|
|
19532
19445
|
label: intl.formatMessage(messages$h.entityIdFilter),
|
|
19533
19446
|
tooltip: jsxRuntime.jsx(FilterTooltipDialog, {
|
|
19534
19447
|
title: messages$6.entityIdDialogTitle,
|
|
@@ -19546,8 +19459,8 @@ const createFilterConfigurations = _ref => {
|
|
|
19546
19459
|
})
|
|
19547
19460
|
})
|
|
19548
19461
|
})
|
|
19549
|
-
},
|
|
19550
|
-
key:
|
|
19462
|
+
}, commonFilterProps)), createTextFilterConfig(_objectSpread$f({
|
|
19463
|
+
key: FILTER_KEY.CUSTOMER_ID,
|
|
19551
19464
|
label: intl.formatMessage(messages$h.customerIdFilter),
|
|
19552
19465
|
tooltip: jsxRuntime.jsx(FilterTooltipDialog, {
|
|
19553
19466
|
title: messages$6.customerIdDialogHeader,
|
|
@@ -19570,14 +19483,14 @@ const createFilterConfigurations = _ref => {
|
|
|
19570
19483
|
})]
|
|
19571
19484
|
})
|
|
19572
19485
|
})
|
|
19573
|
-
},
|
|
19486
|
+
}, commonFilterProps))];
|
|
19574
19487
|
};
|
|
19575
19488
|
|
|
19576
19489
|
function ownKeys$e(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19577
|
-
function _objectSpread$e(e) { for (var r = 1; r < arguments.length; r++) { var
|
|
19490
|
+
function _objectSpread$e(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context3 = ownKeys$e(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys$e(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
19578
19491
|
var _ref = {
|
|
19579
|
-
name: "
|
|
19580
|
-
styles: "&>hr{width:calc(100% +
|
|
19492
|
+
name: "1k70dft",
|
|
19493
|
+
styles: "&>hr{width:calc(100% + 48px);}"
|
|
19581
19494
|
} ;
|
|
19582
19495
|
var _ref2 = {
|
|
19583
19496
|
name: "3hwmgz",
|
|
@@ -19585,11 +19498,14 @@ var _ref2 = {
|
|
|
19585
19498
|
} ;
|
|
19586
19499
|
const FiltersContainer = _ref3 => {
|
|
19587
19500
|
var _context, _context2;
|
|
19588
|
-
let
|
|
19501
|
+
let allowedResourceTypes = _ref3.allowedResourceTypes,
|
|
19502
|
+
isCurrentRecordsTotalEmpty = _ref3.isCurrentRecordsTotalEmpty,
|
|
19589
19503
|
onUpdateSearch = _ref3.onUpdateSearch,
|
|
19590
19504
|
searchQuery = _ref3.searchQuery,
|
|
19591
19505
|
setSearchQuery = _ref3.setSearchQuery;
|
|
19592
19506
|
const intl = reactIntl.useIntl();
|
|
19507
|
+
|
|
19508
|
+
// User supplied filter values will go in here as the user opens filter menus and edits the values
|
|
19593
19509
|
const _useState = react.useState({}),
|
|
19594
19510
|
_useState2 = _slicedToArray(_useState, 2),
|
|
19595
19511
|
filterValue = _useState2[0],
|
|
@@ -19612,36 +19528,89 @@ const FiltersContainer = _ref3 => {
|
|
|
19612
19528
|
};
|
|
19613
19529
|
const alFilters = createFilterConfigurations({
|
|
19614
19530
|
intl,
|
|
19615
|
-
|
|
19616
|
-
|
|
19617
|
-
|
|
19618
|
-
|
|
19619
|
-
|
|
19531
|
+
allowedResourceTypes,
|
|
19532
|
+
commonFilterProps: {
|
|
19533
|
+
filterValue,
|
|
19534
|
+
setFilterValue,
|
|
19535
|
+
searchQuery,
|
|
19536
|
+
onUpdateSearch,
|
|
19537
|
+
removeFilter
|
|
19538
|
+
}
|
|
19620
19539
|
});
|
|
19621
19540
|
|
|
19622
|
-
// This is mapping the filters that are in
|
|
19623
|
-
// the
|
|
19624
|
-
//
|
|
19625
|
-
//
|
|
19626
|
-
|
|
19627
|
-
|
|
19541
|
+
// This is mapping the filters that are stored in local storage to the structure that is needed to pass into the Filters component.
|
|
19542
|
+
// TODO: In the future, this will just be re-adding translated labels that we stripped out before we stored values into local storage.
|
|
19543
|
+
// However, we haven't done that yet! So right now, we need to do more massaging to get the old structure to look like
|
|
19544
|
+
// the new structure.
|
|
19545
|
+
const appliedFilters = _mapInstanceProperty__default["default"](_context = _filterInstanceProperty__default["default"](_context2 = _Object$entries__default["default"](searchQuery.filters)
|
|
19546
|
+
// Filter out the date as that's not one we pass to the Filter component
|
|
19547
|
+
).call(_context2, _ref4 => {
|
|
19628
19548
|
let _ref5 = _slicedToArray(_ref4, 1),
|
|
19629
19549
|
filterKey = _ref5[0];
|
|
19630
|
-
return filterKey !==
|
|
19631
|
-
})
|
|
19632
|
-
|
|
19550
|
+
return filterKey !== FILTER_KEY.CREATED_AT;
|
|
19551
|
+
})
|
|
19552
|
+
|
|
19553
|
+
// Loop over all the remaining filters to get them into the shape of a TAppliedFilter
|
|
19554
|
+
).call(_context, _ref6 => {
|
|
19633
19555
|
let _ref7 = _slicedToArray(_ref6, 2),
|
|
19634
19556
|
filterKey = _ref7[0],
|
|
19635
19557
|
filterValues = _ref7[1];
|
|
19558
|
+
let lookupLabel;
|
|
19559
|
+
switch (filterKey) {
|
|
19560
|
+
case FILTER_KEY.RESOURCE_TYPE:
|
|
19561
|
+
lookupLabel = type => intl.formatMessage(getEntityTypeNameMessage(type));
|
|
19562
|
+
break;
|
|
19563
|
+
// Anticipate more here...
|
|
19564
|
+
default:
|
|
19565
|
+
lookupLabel = () => '';
|
|
19566
|
+
break;
|
|
19567
|
+
}
|
|
19636
19568
|
return {
|
|
19637
19569
|
filterKey: filterKey,
|
|
19638
|
-
values
|
|
19639
|
-
|
|
19640
|
-
|
|
19641
|
-
|
|
19642
|
-
|
|
19643
|
-
|
|
19644
|
-
|
|
19570
|
+
// We use a flat map here because the data structure looks different for multi values between what we store using
|
|
19571
|
+
// the old structure and what we need to have/build for the new structure.
|
|
19572
|
+
// Old:
|
|
19573
|
+
// [
|
|
19574
|
+
// "resource.typeId": [
|
|
19575
|
+
// {
|
|
19576
|
+
// "type": "in",
|
|
19577
|
+
// "value": {
|
|
19578
|
+
// "value": ["Category", "BusinessUnit"] <---- This is what we are looping through, aka 'filterValueValue'
|
|
19579
|
+
// }
|
|
19580
|
+
// }
|
|
19581
|
+
// ]
|
|
19582
|
+
// ]
|
|
19583
|
+
// New:
|
|
19584
|
+
// {
|
|
19585
|
+
// "filterKey": "resource.typeId",
|
|
19586
|
+
// "values": [
|
|
19587
|
+
// { "value": "category", "label": "Category" },
|
|
19588
|
+
// { "value": "businessUnit", "label": "Business Unit" }
|
|
19589
|
+
// ]
|
|
19590
|
+
// }
|
|
19591
|
+
values: _flatMapInstanceProperty__default["default"](filterValues).call(filterValues, filter => {
|
|
19592
|
+
// I know this name is horrible. It will go away when the old data structure is no longer used.
|
|
19593
|
+
const filterValueValue = filter.value?.value;
|
|
19594
|
+
|
|
19595
|
+
// Handle array values (like those from multi-select filters)
|
|
19596
|
+
if (_Array$isArray__default["default"](filterValueValue)) {
|
|
19597
|
+
return _mapInstanceProperty__default["default"](filterValueValue).call(filterValueValue, singleValue => {
|
|
19598
|
+
// Try to find a translated label based on filterKey
|
|
19599
|
+
const label = lookupLabel?.(singleValue) || singleValue;
|
|
19600
|
+
return {
|
|
19601
|
+
value: singleValue,
|
|
19602
|
+
label
|
|
19603
|
+
};
|
|
19604
|
+
});
|
|
19605
|
+
}
|
|
19606
|
+
|
|
19607
|
+
// Handle single values
|
|
19608
|
+
const value = String(filter.value);
|
|
19609
|
+
const label = lookupLabel?.(value) || value;
|
|
19610
|
+
return [{
|
|
19611
|
+
value,
|
|
19612
|
+
label
|
|
19613
|
+
}];
|
|
19645
19614
|
})
|
|
19646
19615
|
};
|
|
19647
19616
|
});
|
|
@@ -19659,7 +19628,7 @@ const FiltersContainer = _ref3 => {
|
|
|
19659
19628
|
onClearAllRequest: () => handleClearAll(),
|
|
19660
19629
|
renderSearchComponent: jsxRuntime.jsx(DateRangeSelector, {
|
|
19661
19630
|
isDisabled: isCurrentRecordsTotalEmpty,
|
|
19662
|
-
dateFilter: searchQuery.filters[
|
|
19631
|
+
dateFilter: searchQuery.filters[FILTER_KEY.CREATED_AT][0],
|
|
19663
19632
|
onDateChange: _ref8 => {
|
|
19664
19633
|
let from = _ref8.from,
|
|
19665
19634
|
to = _ref8.to,
|
|
@@ -19697,7 +19666,7 @@ const messages$4 = reactIntl.defineMessages({
|
|
|
19697
19666
|
noResultsTitle: {
|
|
19698
19667
|
id: 'ChangeHistory.list.search.noResultsTitle',
|
|
19699
19668
|
description: 'Message for no search result for change history.',
|
|
19700
|
-
defaultMessage: 'There are no results that match your
|
|
19669
|
+
defaultMessage: 'There are no results that match your filter combination.'
|
|
19701
19670
|
},
|
|
19702
19671
|
suggestions: {
|
|
19703
19672
|
id: 'NoResultsSuggestions.suggestions',
|
|
@@ -19707,12 +19676,12 @@ const messages$4 = reactIntl.defineMessages({
|
|
|
19707
19676
|
noResultsSuggestion1: {
|
|
19708
19677
|
id: 'ChangeHistory.list.search.noResultsSuggestion1',
|
|
19709
19678
|
description: 'One of suggestions when no results are found.',
|
|
19710
|
-
defaultMessage: 'Check the
|
|
19679
|
+
defaultMessage: 'Check the date range applied. Premium users can access up to 3 years of historical data. Basic accounts are limited to the past year.'
|
|
19711
19680
|
},
|
|
19712
19681
|
noResultsSuggestion2: {
|
|
19713
19682
|
id: 'ChangeHistory.list.search.noResultsSuggestion2',
|
|
19714
19683
|
description: 'One of suggestions when no results are found.',
|
|
19715
|
-
defaultMessage: '
|
|
19684
|
+
defaultMessage: 'Check the spelling on any text filters applied.'
|
|
19716
19685
|
},
|
|
19717
19686
|
noChangeHistory: {
|
|
19718
19687
|
id: 'ChangeHistory.list.noChangeHistory',
|
|
@@ -19755,11 +19724,13 @@ const EmptyListMessage = _ref => {
|
|
|
19755
19724
|
});
|
|
19756
19725
|
} else if (!totalCount) {
|
|
19757
19726
|
return jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
19758
|
-
scale: "
|
|
19727
|
+
scale: "m",
|
|
19759
19728
|
children: [jsxRuntime.jsx(uiKit.Text.Body, {
|
|
19760
19729
|
fontWeight: "bold",
|
|
19761
19730
|
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$d({}, title))
|
|
19762
|
-
}), jsxRuntime.jsx(
|
|
19731
|
+
}), jsxRuntime.jsx("div", {
|
|
19732
|
+
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$d({}, messages$4.suggestions))
|
|
19733
|
+
}), jsxRuntime.jsx("ul", {
|
|
19763
19734
|
children: _mapInstanceProperty__default["default"](suggestions).call(suggestions, (suggestion, index) => jsxRuntime.jsx("li", {
|
|
19764
19735
|
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$d({}, suggestion))
|
|
19765
19736
|
}, index))
|
|
@@ -19779,7 +19750,7 @@ const searchViewStyles = {
|
|
|
19779
19750
|
name: "1ykowef",
|
|
19780
19751
|
styles: "margin-bottom:0"
|
|
19781
19752
|
} ,
|
|
19782
|
-
resultsWrapperSection: /*#__PURE__*/react$1.css("margin-top:", uiKit.designTokens.spacing25, ";" + ("" ), "" ),
|
|
19753
|
+
resultsWrapperSection: /*#__PURE__*/react$1.css("margin-top:", uiKit.designTokens.spacing25, ";display:flex;flex-direction:column;flex-grow:1;height:100%;" + ("" ), "" ),
|
|
19783
19754
|
contentSection: {
|
|
19784
19755
|
name: "1bb7ujj",
|
|
19785
19756
|
styles: "display:flex;flex-direction:column;flex:1;animation:show 0.3s forwards linear;width:100%"
|
|
@@ -19949,6 +19920,7 @@ const SearchView = props => {
|
|
|
19949
19920
|
children: [jsxRuntime.jsx("section", {
|
|
19950
19921
|
css: searchViewStyles.searchSection,
|
|
19951
19922
|
children: isFilterRedesignEnabled ? jsxRuntime.jsx(FiltersContainer, {
|
|
19923
|
+
allowedResourceTypes: props.allowedResourceTypes,
|
|
19952
19924
|
inContextEntity: props.inContextEntity,
|
|
19953
19925
|
isCurrentRecordsTotalEmpty: props.currentRecordsTotal === 0,
|
|
19954
19926
|
onUpdateSearch: handleUpdateSearch,
|
|
@@ -20037,7 +20009,7 @@ const ChangeHistoryList = props => {
|
|
|
20037
20009
|
const _useVersionTier = useVersionTier(),
|
|
20038
20010
|
tier = _useVersionTier.tier;
|
|
20039
20011
|
const storageSlice = props.storageSlice || SEARCH_SLICE_NAME_CHANGE_HISTORY;
|
|
20040
|
-
const
|
|
20012
|
+
const defaultSearchQuery = {
|
|
20041
20013
|
page: 1,
|
|
20042
20014
|
perPage: 20,
|
|
20043
20015
|
filters: {
|
|
@@ -20058,7 +20030,7 @@ const ChangeHistoryList = props => {
|
|
|
20058
20030
|
}
|
|
20059
20031
|
};
|
|
20060
20032
|
const _useSearchQueryState = useSearchQueryState({
|
|
20061
|
-
|
|
20033
|
+
defaultSearchQuery,
|
|
20062
20034
|
storageSlice
|
|
20063
20035
|
}),
|
|
20064
20036
|
searchQuery = _useSearchQueryState.searchQuery,
|
|
@@ -20095,6 +20067,7 @@ const ChangeHistoryList = props => {
|
|
|
20095
20067
|
total: changeHistoryFetcher.history.total,
|
|
20096
20068
|
isInContextView: props.isInContextView ?? false,
|
|
20097
20069
|
children: jsxRuntime.jsx(SearchView, {
|
|
20070
|
+
allowedResourceTypes: allowedResourceTypes,
|
|
20098
20071
|
isLoading: isLoading,
|
|
20099
20072
|
setSearchQuery: setSearchQuery,
|
|
20100
20073
|
searchQuery: changeHistoryFetcher.searchQuery
|
|
@@ -20413,8 +20386,8 @@ const benefitsAPIStylesHeadline = {
|
|
|
20413
20386
|
styles: "padding-bottom:20px;margin-bottom:32px;border-bottom:2px solid var(--color-neutral-90)"
|
|
20414
20387
|
} ;
|
|
20415
20388
|
const featureCardStyles = {
|
|
20416
|
-
name: "
|
|
20417
|
-
styles: "
|
|
20389
|
+
name: "13udsys",
|
|
20390
|
+
styles: "height:100%"
|
|
20418
20391
|
} ;
|
|
20419
20392
|
|
|
20420
20393
|
const BenefitsApiLogging = () => {
|
|
@@ -20429,23 +20402,24 @@ const BenefitsApiLogging = () => {
|
|
|
20429
20402
|
})
|
|
20430
20403
|
}), jsxRuntime.jsx("div", {
|
|
20431
20404
|
css: benefitsAPIStyles,
|
|
20432
|
-
children: jsxRuntime.jsx(uiKit.
|
|
20433
|
-
|
|
20434
|
-
|
|
20435
|
-
justifyContent: "space-between",
|
|
20405
|
+
children: jsxRuntime.jsx(uiKit.Grid, {
|
|
20406
|
+
gridGap: designSystem.designTokens.spacingM,
|
|
20407
|
+
gridTemplateColumns: "repeat(4, 1fr)",
|
|
20436
20408
|
children: _mapInstanceProperty__default["default"](featureCards).call(featureCards, (_ref, index) => {
|
|
20437
20409
|
let cardContent = _ref.cardContent,
|
|
20438
20410
|
icon = _ref.icon,
|
|
20439
20411
|
iconColor = _ref.iconColor;
|
|
20440
|
-
return jsxRuntime.jsx(
|
|
20441
|
-
|
|
20442
|
-
|
|
20443
|
-
|
|
20444
|
-
|
|
20445
|
-
|
|
20446
|
-
|
|
20447
|
-
|
|
20448
|
-
|
|
20412
|
+
return jsxRuntime.jsx(uiKit.Grid.Item, {
|
|
20413
|
+
children: jsxRuntime.jsx(FeatureCard, {
|
|
20414
|
+
css: featureCardStyles,
|
|
20415
|
+
content: cardContent,
|
|
20416
|
+
icon: jsxRuntime.jsx(uiKit.LeadingIcon, {
|
|
20417
|
+
color: iconColor,
|
|
20418
|
+
icon: icon
|
|
20419
|
+
}),
|
|
20420
|
+
layout: "vertical"
|
|
20421
|
+
})
|
|
20422
|
+
}, `feature-card${index}`);
|
|
20449
20423
|
})
|
|
20450
20424
|
})
|
|
20451
20425
|
})]
|
|
@@ -22755,6 +22729,7 @@ const WelcomeDialog = _ref => {
|
|
|
22755
22729
|
hasFoundData = _useVersionTier.hasFoundData,
|
|
22756
22730
|
tier = _useVersionTier.tier;
|
|
22757
22731
|
const routes = useRoutes();
|
|
22732
|
+
const projectKey = applicationShellConnectors.useApplicationContext(applicationContext => applicationContext.project && applicationContext.project.key);
|
|
22758
22733
|
const _useStorage = useStorage(`${SEARCH_SLICE_NAME_CHANGE_HISTORY}/${STORAGE_KEYS.WELCOME_DIALOG}`, false),
|
|
22759
22734
|
_useStorage2 = _slicedToArray(_useStorage, 2),
|
|
22760
22735
|
hasDismissedModal = _useStorage2[0],
|
|
@@ -22778,7 +22753,11 @@ const WelcomeDialog = _ref => {
|
|
|
22778
22753
|
onCancel: dismissModal,
|
|
22779
22754
|
onConfirm: () => {
|
|
22780
22755
|
dismissModal();
|
|
22781
|
-
|
|
22756
|
+
if (projectKey) {
|
|
22757
|
+
routes.explorePremium.go({
|
|
22758
|
+
projectKey
|
|
22759
|
+
});
|
|
22760
|
+
}
|
|
22782
22761
|
},
|
|
22783
22762
|
children: jsxRuntime.jsxs("div", {
|
|
22784
22763
|
css: welcomeDialogDimensions,
|
|
@@ -22921,7 +22900,7 @@ const loadMessages = locale => {
|
|
|
22921
22900
|
case 'pt-BR':
|
|
22922
22901
|
return Promise.resolve().then(function () { return require( /* webpackChunkName: "change-history-i18n-pt-BR" */'./pt-BR-77d373fe.cjs.prod.js'); });
|
|
22923
22902
|
default:
|
|
22924
|
-
return Promise.resolve().then(function () { return require( /* webpackChunkName: "change-history-i18n-en" */'./en-
|
|
22903
|
+
return Promise.resolve().then(function () { return require( /* webpackChunkName: "change-history-i18n-en" */'./en-53fa62aa.cjs.prod.js'); });
|
|
22925
22904
|
}
|
|
22926
22905
|
};
|
|
22927
22906
|
|