@commercetools-frontend-extensions/import-resources-modal 1.8.1 → 1.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{active-drag-drop-area-b84dd578.cjs.dev.js → active-drag-drop-area-1b036a1a.cjs.dev.js} +1 -1
- package/dist/{active-drag-drop-area-b855fcf6.esm.js → active-drag-drop-area-4c295594.esm.js} +1 -1
- package/dist/{active-drag-drop-area-c906211c.cjs.prod.js → active-drag-drop-area-dc11c9dd.cjs.prod.js} +1 -1
- package/dist/commercetools-frontend-extensions-import-resources-modal.cjs.dev.js +1 -1
- package/dist/commercetools-frontend-extensions-import-resources-modal.cjs.prod.js +1 -1
- package/dist/commercetools-frontend-extensions-import-resources-modal.esm.js +1 -1
- package/dist/{de-ce1e957d.esm.js → de-4d884a52.esm.js} +156 -20
- package/dist/{de-5181e779.cjs.dev.js → de-ba621f66.cjs.prod.js} +156 -20
- package/dist/{de-3c758072.cjs.prod.js → de-cd1c2b61.cjs.dev.js} +156 -20
- package/dist/{disabled-drop-area-48c8a29e.cjs.dev.js → disabled-drop-area-377a3c8d.cjs.dev.js} +1 -1
- package/dist/{disabled-drop-area-ead9d6e5.cjs.prod.js → disabled-drop-area-40108d06.cjs.prod.js} +1 -1
- package/dist/{disabled-drop-area-d56b2ffb.esm.js → disabled-drop-area-9ea4c457.esm.js} +1 -1
- package/dist/{en-d7cc7b15.cjs.prod.js → en-102ccf29.cjs.prod.js} +156 -20
- package/dist/{en-2f76b27a.esm.js → en-88aad148.esm.js} +156 -20
- package/dist/{en-7de3b07a.cjs.dev.js → en-c4f7d882.cjs.dev.js} +156 -20
- package/dist/{enabled-drop-area-5c4ea376.cjs.dev.js → enabled-drop-area-1bb3ba2c.cjs.dev.js} +1 -1
- package/dist/{enabled-drop-area-e81190f8.cjs.prod.js → enabled-drop-area-5629adf7.cjs.prod.js} +1 -1
- package/dist/{enabled-drop-area-4745c8da.esm.js → enabled-drop-area-e60beae7.esm.js} +1 -1
- package/dist/{es-d9a57b63.cjs.dev.js → es-09b5f26a.cjs.dev.js} +157 -21
- package/dist/{es-a3c0e9b3.cjs.prod.js → es-1877968a.cjs.prod.js} +157 -21
- package/dist/{es-2b81e0cd.esm.js → es-d589515f.esm.js} +157 -21
- package/dist/{file-dropped-area-48990997.cjs.prod.js → file-dropped-area-00056628.cjs.prod.js} +1 -1
- package/dist/{file-dropped-area-2d51d63b.cjs.dev.js → file-dropped-area-f251fc3d.cjs.dev.js} +1 -1
- package/dist/{file-dropped-area-bf648f2e.esm.js → file-dropped-area-f5cd314a.esm.js} +1 -1
- package/dist/{fr-FR-cac38097.cjs.dev.js → fr-FR-1d2ccb65.cjs.prod.js} +157 -21
- package/dist/{fr-FR-81499942.cjs.prod.js → fr-FR-a5fe152a.cjs.dev.js} +157 -21
- package/dist/{fr-FR-084be771.esm.js → fr-FR-d672a357.esm.js} +157 -21
- package/dist/{index-d6f6d164.esm.js → index-42eec0a4.esm.js} +45 -36
- package/dist/{index-a2c55a09.cjs.dev.js → index-bf0ed2a7.cjs.dev.js} +45 -36
- package/dist/{index-762eed18.cjs.prod.js → index-e152cdce.cjs.prod.js} +45 -36
- package/dist/{pt-BR-0fda1bcd.cjs.dev.js → pt-BR-0389b318.cjs.dev.js} +157 -21
- package/dist/{pt-BR-acd3f11d.esm.js → pt-BR-3512c390.esm.js} +157 -21
- package/dist/{pt-BR-0d2cb8bd.cjs.prod.js → pt-BR-606f307c.cjs.prod.js} +157 -21
- package/package.json +21 -21
|
@@ -87,27 +87,27 @@ let CurrentStep$1 = /*#__PURE__*/function (CurrentStep) {
|
|
|
87
87
|
return CurrentStep;
|
|
88
88
|
}({});
|
|
89
89
|
|
|
90
|
-
function ownKeys$
|
|
91
|
-
function _objectSpread$
|
|
90
|
+
function ownKeys$j(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
91
|
+
function _objectSpread$j(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$j(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$j(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
92
92
|
|
|
93
93
|
// TODO: make this resource type specific
|
|
94
94
|
|
|
95
95
|
function reducer(state, action) {
|
|
96
|
-
if (action.type === 'setCurrentStep') return _objectSpread$
|
|
96
|
+
if (action.type === 'setCurrentStep') return _objectSpread$j(_objectSpread$j({}, state), {}, {
|
|
97
97
|
currentStep: action.currentStep,
|
|
98
98
|
progress: 0
|
|
99
99
|
});
|
|
100
|
-
if (action.type === 'setUploadFileResponse') return _objectSpread$
|
|
100
|
+
if (action.type === 'setUploadFileResponse') return _objectSpread$j(_objectSpread$j({}, state), {}, {
|
|
101
101
|
uploadFileResponse: action.uploadFileResponse
|
|
102
102
|
});
|
|
103
|
-
if (action.type === 'setResourceType') return _objectSpread$
|
|
103
|
+
if (action.type === 'setResourceType') return _objectSpread$j(_objectSpread$j({}, state), {}, {
|
|
104
104
|
settings: undefined,
|
|
105
105
|
resourceType: action.resourceType
|
|
106
106
|
});
|
|
107
|
-
if (action.type === 'setContainerKey') return _objectSpread$
|
|
107
|
+
if (action.type === 'setContainerKey') return _objectSpread$j(_objectSpread$j({}, state), {}, {
|
|
108
108
|
containerKey: action.containerKey
|
|
109
109
|
});
|
|
110
|
-
if (action.type === 'cancelImport') return _objectSpread$
|
|
110
|
+
if (action.type === 'cancelImport') return _objectSpread$j(_objectSpread$j({}, state), {}, {
|
|
111
111
|
currentStep: CurrentStep$1.Upload,
|
|
112
112
|
containerKey: undefined,
|
|
113
113
|
fileUploadErrors: [],
|
|
@@ -116,7 +116,7 @@ function reducer(state, action) {
|
|
|
116
116
|
dropAreaState: 'disabled',
|
|
117
117
|
progress: 0
|
|
118
118
|
});
|
|
119
|
-
if (action.type === 'uploadNewFile') return _objectSpread$
|
|
119
|
+
if (action.type === 'uploadNewFile') return _objectSpread$j(_objectSpread$j({}, state), {}, {
|
|
120
120
|
currentStep: CurrentStep$1.Upload,
|
|
121
121
|
containerKey: undefined,
|
|
122
122
|
fileUploadErrors: [],
|
|
@@ -126,28 +126,28 @@ function reducer(state, action) {
|
|
|
126
126
|
progress: 0
|
|
127
127
|
});
|
|
128
128
|
if (action.type === 'setDroppedFile') {
|
|
129
|
-
return _objectSpread$
|
|
129
|
+
return _objectSpread$j(_objectSpread$j({}, state), {}, {
|
|
130
130
|
droppedFile: action.droppedFile
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
if (action.type === 'setFileUploadErrors') {
|
|
134
|
-
return _objectSpread$
|
|
134
|
+
return _objectSpread$j(_objectSpread$j({}, state), {}, {
|
|
135
135
|
fileUploadErrors: action.fileUploadErrors
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
138
|
if (action.type === 'setAbortController') {
|
|
139
|
-
return _objectSpread$
|
|
139
|
+
return _objectSpread$j(_objectSpread$j({}, state), {}, {
|
|
140
140
|
abortController: action.abortController
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
143
|
if (action.type === 'setProgress') {
|
|
144
|
-
return _objectSpread$
|
|
144
|
+
return _objectSpread$j(_objectSpread$j({}, state), {}, {
|
|
145
145
|
progress: action.progress
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
148
|
if (action.type === 'setUploadSettings') {
|
|
149
|
-
return _objectSpread$
|
|
150
|
-
settings: _objectSpread$
|
|
149
|
+
return _objectSpread$j(_objectSpread$j({}, state), {}, {
|
|
150
|
+
settings: _objectSpread$j(_objectSpread$j({}, state.settings), action.settings)
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
153
|
throw new Error(getUnknownActionError(action));
|
|
@@ -212,8 +212,8 @@ let HttpError = /*#__PURE__*/function (_Error) {
|
|
|
212
212
|
return _createClass(HttpError);
|
|
213
213
|
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
214
214
|
|
|
215
|
-
function ownKeys$
|
|
216
|
-
function _objectSpread$
|
|
215
|
+
function ownKeys$i(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
216
|
+
function _objectSpread$i(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$i(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$i(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
217
217
|
const addProxyPrefixToUrl = (uri, proxy) => {
|
|
218
218
|
return proxy ? `/proxy/${proxy}${uri}` : uri;
|
|
219
219
|
};
|
|
@@ -225,7 +225,7 @@ const fetchUsingXhr = _ref2 => {
|
|
|
225
225
|
onSuccess = _ref2.onSuccess,
|
|
226
226
|
onError = _ref2.onError;
|
|
227
227
|
const options = createHttpClientOptions({
|
|
228
|
-
headers: _objectSpread$
|
|
228
|
+
headers: _objectSpread$i({
|
|
229
229
|
'Content-Type': 'application/json'
|
|
230
230
|
}, config?.headers)
|
|
231
231
|
});
|
|
@@ -353,11 +353,11 @@ const ACTION_RIGHTS = {
|
|
|
353
353
|
}
|
|
354
354
|
};
|
|
355
355
|
|
|
356
|
-
function ownKeys$
|
|
357
|
-
function _objectSpread$
|
|
356
|
+
function ownKeys$h(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
357
|
+
function _objectSpread$h(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$h(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$h(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
358
358
|
const DEFAULT_SHORT_LIVED_FLAGS = {};
|
|
359
359
|
const DEFAULT_LONG_LIVED_FLAGS = {};
|
|
360
|
-
_objectSpread$
|
|
360
|
+
_objectSpread$h(_objectSpread$h({}, DEFAULT_SHORT_LIVED_FLAGS), DEFAULT_LONG_LIVED_FLAGS);
|
|
361
361
|
|
|
362
362
|
var sharedMessages = defineMessages({
|
|
363
363
|
[`modalTitle.${IMPORTABLE_RESOURCES.CATEGORY}`]: {
|
|
@@ -594,8 +594,8 @@ var sharedMessages = defineMessages({
|
|
|
594
594
|
//
|
|
595
595
|
});
|
|
596
596
|
|
|
597
|
-
function ownKeys$
|
|
598
|
-
function _objectSpread$
|
|
597
|
+
function ownKeys$g(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
598
|
+
function _objectSpread$g(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context3 = ownKeys$g(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context4 = ownKeys$g(Object(t))).call(_context4, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
599
599
|
|
|
600
600
|
// Delimiters not included in this array may be treated as part of a column content
|
|
601
601
|
// potentially causing the file to be parsed as a single-column CSV and pass this validation
|
|
@@ -644,7 +644,7 @@ const mapUploadFileErrorsResponseToUploadFileErrorRows = uploadFileErrorsRespons
|
|
|
644
644
|
};
|
|
645
645
|
const mapFileUploadErrorsToUploadFileErrorRows = uploadFileErrors => {
|
|
646
646
|
let idCounter = 1;
|
|
647
|
-
return _mapInstanceProperty(uploadFileErrors).call(uploadFileErrors, uploadFileError => _objectSpread$
|
|
647
|
+
return _mapInstanceProperty(uploadFileErrors).call(uploadFileErrors, uploadFileError => _objectSpread$g(_objectSpread$g({}, uploadFileError), {}, {
|
|
648
648
|
id: String(idCounter++)
|
|
649
649
|
}));
|
|
650
650
|
};
|
|
@@ -840,6 +840,8 @@ function uploadFileForImport(_ref) {
|
|
|
840
840
|
});
|
|
841
841
|
}
|
|
842
842
|
|
|
843
|
+
function ownKeys$f(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
844
|
+
function _objectSpread$f(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$f(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$f(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
843
845
|
function createImportContainerForFileUpload(importContainerDraft, projectKey, asyncDispatch) {
|
|
844
846
|
return asyncDispatch(actions.post({
|
|
845
847
|
mcApiProxyTarget: MC_API_PROXY_TARGETS.IMPORT,
|
|
@@ -848,7 +850,14 @@ function createImportContainerForFileUpload(importContainerDraft, projectKey, as
|
|
|
848
850
|
accept: 'application/json',
|
|
849
851
|
'Content-Type': 'application/json'
|
|
850
852
|
},
|
|
851
|
-
payload: _JSON$stringify(
|
|
853
|
+
payload: _JSON$stringify(_objectSpread$f({
|
|
854
|
+
retentionPolicy: {
|
|
855
|
+
strategy: 'ttl',
|
|
856
|
+
config: {
|
|
857
|
+
timeToLive: '54h' // 2 days and 6 hours
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
}, importContainerDraft))
|
|
852
861
|
}));
|
|
853
862
|
}
|
|
854
863
|
function deleteImportContainer(projectKey, containerKey, asyncDispatch) {
|
|
@@ -1034,13 +1043,13 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
|
|
|
1034
1043
|
return /*#__PURE__*/css(process.env.NODE_ENV === "production" ? "" : ";label:getDefaultDropWrapperStyles;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRyb3AtYXJlYS13cmFwcGVyLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUE0QlkiLCJmaWxlIjoiZHJvcC1hcmVhLXdyYXBwZXIudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgdHlwZSBEcm9wem9uZVJvb3RQcm9wcyB9IGZyb20gJ3JlYWN0LWRyb3B6b25lJ1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCB7IHN0eWxlcyB9IGZyb20gJy4vc3R5bGVzJ1xuaW1wb3J0IHsgdHlwZSBEcm9wQXJlYVN0YXRlIH0gZnJvbSAnLi4vLi4vLi4vQHR5cGVzJ1xuXG5pbnRlcmZhY2UgRHJvcFdyYXBwZXJQcm9wcyBleHRlbmRzIERyb3B6b25lUm9vdFByb3BzIHtcbiAgZHJvcEFyZWFTdGF0ZTogRHJvcEFyZWFTdGF0ZVxufVxuZXhwb3J0IGNvbnN0IERyb3BXcmFwcGVyID0gc3R5bGVkLmRpdjxEcm9wV3JhcHBlclByb3BzPmBcbiAgJHtzdHlsZXMuYmFzZX1cbiAgJHsocHJvcHMpID0+IHtcbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ2Rpc2FibGVkJykge1xuICAgICAgcmV0dXJuIHN0eWxlcy5kaXNhYmxlZFxuICAgIH1cbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ3JlYWR5LWZvci1kcm9wJykge1xuICAgICAgcmV0dXJuIHN0eWxlcy5yZWFkeUZvckRyb3BcbiAgICB9XG4gICAgaWYgKHByb3BzLmRyb3BBcmVhU3RhdGUgPT09ICdhY3RpdmUtZHJhZycpIHtcbiAgICAgIHJldHVybiBzdHlsZXMuYWN0aXZlRHJhZ1xuICAgIH1cbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ2ZpbGUtZHJvcHBlZCcpIHtcbiAgICAgIHJldHVybiBzdHlsZXMuZmlsZURyb3BwZWRcbiAgICB9XG4gICAgcmV0dXJuIGdldERlZmF1bHREcm9wV3JhcHBlclN0eWxlcyhwcm9wcy5kcm9wQXJlYVN0YXRlKVxuICB9fVxuYFxuZnVuY3Rpb24gZ2V0RGVmYXVsdERyb3BXcmFwcGVyU3R5bGVzKF9kcm9wQXJlYVN0YXRlOiBuZXZlcikge1xuICByZXR1cm4gY3NzYGBcbn1cbiJdfQ== */");
|
|
1035
1044
|
}
|
|
1036
1045
|
|
|
1037
|
-
var ActiveDragDropArea = /*#__PURE__*/lazy(() => import('./active-drag-drop-area-
|
|
1046
|
+
var ActiveDragDropArea = /*#__PURE__*/lazy(() => import('./active-drag-drop-area-4c295594.esm.js'));
|
|
1038
1047
|
|
|
1039
|
-
var DisabledDropArea = /*#__PURE__*/lazy(() => import('./disabled-drop-area-
|
|
1048
|
+
var DisabledDropArea = /*#__PURE__*/lazy(() => import('./disabled-drop-area-9ea4c457.esm.js'));
|
|
1040
1049
|
|
|
1041
|
-
var EnabledDropArea = /*#__PURE__*/lazy(() => import('./enabled-drop-area-
|
|
1050
|
+
var EnabledDropArea = /*#__PURE__*/lazy(() => import('./enabled-drop-area-e60beae7.esm.js'));
|
|
1042
1051
|
|
|
1043
|
-
var FileDropped = /*#__PURE__*/lazy(() => import('./file-dropped-area-
|
|
1052
|
+
var FileDropped = /*#__PURE__*/lazy(() => import('./file-dropped-area-f5cd314a.esm.js'));
|
|
1044
1053
|
|
|
1045
1054
|
function getDropArea(_ref) {
|
|
1046
1055
|
let dropAreaState = _ref.dropAreaState,
|
|
@@ -1168,8 +1177,8 @@ var messages$6 = defineMessages({
|
|
|
1168
1177
|
},
|
|
1169
1178
|
wrongSeparatorDescription: {
|
|
1170
1179
|
id: 'ImportResourcesModal.wrongSeparatorDescription',
|
|
1171
|
-
description: 'Message within the drop area when a CSV file uses an unexpected
|
|
1172
|
-
defaultMessage: 'The file is using an unsupported separator. Please use one of the allowed
|
|
1180
|
+
description: 'Message within the drop area when a CSV file uses an unexpected separator',
|
|
1181
|
+
defaultMessage: 'The file is using an unsupported separator. Please use one of the allowed separators: {delimiterList}.'
|
|
1173
1182
|
},
|
|
1174
1183
|
dropAreaNotEnoughRowsTitle: {
|
|
1175
1184
|
id: 'ImportResourcesModal.dropAreaNotEnoughRowsTitle',
|
|
@@ -2454,17 +2463,17 @@ const getChunkImport = locale => {
|
|
|
2454
2463
|
const intlLocale = mapLocaleToIntlLocale(locale);
|
|
2455
2464
|
switch (intlLocale) {
|
|
2456
2465
|
case 'de':
|
|
2457
|
-
return import(
|
|
2466
|
+
return import('./de-4d884a52.esm.js');
|
|
2458
2467
|
case 'es':
|
|
2459
|
-
return import(
|
|
2468
|
+
return import('./es-d589515f.esm.js');
|
|
2460
2469
|
case 'fr-FR':
|
|
2461
|
-
return import(
|
|
2470
|
+
return import('./fr-FR-d672a357.esm.js');
|
|
2462
2471
|
case 'ja':
|
|
2463
|
-
return import(
|
|
2472
|
+
return import('./ja-73c088a7.esm.js');
|
|
2464
2473
|
case 'pt-BR':
|
|
2465
|
-
return import(
|
|
2474
|
+
return import('./pt-BR-3512c390.esm.js');
|
|
2466
2475
|
default:
|
|
2467
|
-
return import(
|
|
2476
|
+
return import('./en-88aad148.esm.js');
|
|
2468
2477
|
}
|
|
2469
2478
|
};
|
|
2470
2479
|
const loadMessages = async locale => {
|
|
@@ -115,27 +115,27 @@ let CurrentStep$1 = /*#__PURE__*/function (CurrentStep) {
|
|
|
115
115
|
return CurrentStep;
|
|
116
116
|
}({});
|
|
117
117
|
|
|
118
|
-
function ownKeys$
|
|
119
|
-
function _objectSpread$
|
|
118
|
+
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; }
|
|
119
|
+
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; }
|
|
120
120
|
|
|
121
121
|
// TODO: make this resource type specific
|
|
122
122
|
|
|
123
123
|
function reducer(state, action) {
|
|
124
|
-
if (action.type === 'setCurrentStep') return _objectSpread$
|
|
124
|
+
if (action.type === 'setCurrentStep') return _objectSpread$j(_objectSpread$j({}, state), {}, {
|
|
125
125
|
currentStep: action.currentStep,
|
|
126
126
|
progress: 0
|
|
127
127
|
});
|
|
128
|
-
if (action.type === 'setUploadFileResponse') return _objectSpread$
|
|
128
|
+
if (action.type === 'setUploadFileResponse') return _objectSpread$j(_objectSpread$j({}, state), {}, {
|
|
129
129
|
uploadFileResponse: action.uploadFileResponse
|
|
130
130
|
});
|
|
131
|
-
if (action.type === 'setResourceType') return _objectSpread$
|
|
131
|
+
if (action.type === 'setResourceType') return _objectSpread$j(_objectSpread$j({}, state), {}, {
|
|
132
132
|
settings: undefined,
|
|
133
133
|
resourceType: action.resourceType
|
|
134
134
|
});
|
|
135
|
-
if (action.type === 'setContainerKey') return _objectSpread$
|
|
135
|
+
if (action.type === 'setContainerKey') return _objectSpread$j(_objectSpread$j({}, state), {}, {
|
|
136
136
|
containerKey: action.containerKey
|
|
137
137
|
});
|
|
138
|
-
if (action.type === 'cancelImport') return _objectSpread$
|
|
138
|
+
if (action.type === 'cancelImport') return _objectSpread$j(_objectSpread$j({}, state), {}, {
|
|
139
139
|
currentStep: CurrentStep$1.Upload,
|
|
140
140
|
containerKey: undefined,
|
|
141
141
|
fileUploadErrors: [],
|
|
@@ -144,7 +144,7 @@ function reducer(state, action) {
|
|
|
144
144
|
dropAreaState: 'disabled',
|
|
145
145
|
progress: 0
|
|
146
146
|
});
|
|
147
|
-
if (action.type === 'uploadNewFile') return _objectSpread$
|
|
147
|
+
if (action.type === 'uploadNewFile') return _objectSpread$j(_objectSpread$j({}, state), {}, {
|
|
148
148
|
currentStep: CurrentStep$1.Upload,
|
|
149
149
|
containerKey: undefined,
|
|
150
150
|
fileUploadErrors: [],
|
|
@@ -154,28 +154,28 @@ function reducer(state, action) {
|
|
|
154
154
|
progress: 0
|
|
155
155
|
});
|
|
156
156
|
if (action.type === 'setDroppedFile') {
|
|
157
|
-
return _objectSpread$
|
|
157
|
+
return _objectSpread$j(_objectSpread$j({}, state), {}, {
|
|
158
158
|
droppedFile: action.droppedFile
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
161
|
if (action.type === 'setFileUploadErrors') {
|
|
162
|
-
return _objectSpread$
|
|
162
|
+
return _objectSpread$j(_objectSpread$j({}, state), {}, {
|
|
163
163
|
fileUploadErrors: action.fileUploadErrors
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
166
|
if (action.type === 'setAbortController') {
|
|
167
|
-
return _objectSpread$
|
|
167
|
+
return _objectSpread$j(_objectSpread$j({}, state), {}, {
|
|
168
168
|
abortController: action.abortController
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
171
|
if (action.type === 'setProgress') {
|
|
172
|
-
return _objectSpread$
|
|
172
|
+
return _objectSpread$j(_objectSpread$j({}, state), {}, {
|
|
173
173
|
progress: action.progress
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
176
|
if (action.type === 'setUploadSettings') {
|
|
177
|
-
return _objectSpread$
|
|
178
|
-
settings: _objectSpread$
|
|
177
|
+
return _objectSpread$j(_objectSpread$j({}, state), {}, {
|
|
178
|
+
settings: _objectSpread$j(_objectSpread$j({}, state.settings), action.settings)
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
181
|
throw new Error(getUnknownActionError(action));
|
|
@@ -240,8 +240,8 @@ let HttpError = /*#__PURE__*/function (_Error) {
|
|
|
240
240
|
return _createClass(HttpError);
|
|
241
241
|
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
242
242
|
|
|
243
|
-
function ownKeys$
|
|
244
|
-
function _objectSpread$
|
|
243
|
+
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; }
|
|
244
|
+
function _objectSpread$i(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$i(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$i(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
245
245
|
const addProxyPrefixToUrl = (uri, proxy) => {
|
|
246
246
|
return proxy ? `/proxy/${proxy}${uri}` : uri;
|
|
247
247
|
};
|
|
@@ -253,7 +253,7 @@ const fetchUsingXhr = _ref2 => {
|
|
|
253
253
|
onSuccess = _ref2.onSuccess,
|
|
254
254
|
onError = _ref2.onError;
|
|
255
255
|
const options = applicationShell.createHttpClientOptions({
|
|
256
|
-
headers: _objectSpread$
|
|
256
|
+
headers: _objectSpread$i({
|
|
257
257
|
'Content-Type': 'application/json'
|
|
258
258
|
}, config?.headers)
|
|
259
259
|
});
|
|
@@ -381,11 +381,11 @@ const ACTION_RIGHTS = {
|
|
|
381
381
|
}
|
|
382
382
|
};
|
|
383
383
|
|
|
384
|
-
function ownKeys$
|
|
385
|
-
function _objectSpread$
|
|
384
|
+
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; }
|
|
385
|
+
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; }
|
|
386
386
|
const DEFAULT_SHORT_LIVED_FLAGS = {};
|
|
387
387
|
const DEFAULT_LONG_LIVED_FLAGS = {};
|
|
388
|
-
_objectSpread$
|
|
388
|
+
_objectSpread$h(_objectSpread$h({}, DEFAULT_SHORT_LIVED_FLAGS), DEFAULT_LONG_LIVED_FLAGS);
|
|
389
389
|
|
|
390
390
|
var sharedMessages = reactIntl.defineMessages({
|
|
391
391
|
[`modalTitle.${IMPORTABLE_RESOURCES.CATEGORY}`]: {
|
|
@@ -622,8 +622,8 @@ var sharedMessages = reactIntl.defineMessages({
|
|
|
622
622
|
//
|
|
623
623
|
});
|
|
624
624
|
|
|
625
|
-
function ownKeys$
|
|
626
|
-
function _objectSpread$
|
|
625
|
+
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; }
|
|
626
|
+
function _objectSpread$g(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$g(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$g(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
627
627
|
|
|
628
628
|
// Delimiters not included in this array may be treated as part of a column content
|
|
629
629
|
// potentially causing the file to be parsed as a single-column CSV and pass this validation
|
|
@@ -672,7 +672,7 @@ const mapUploadFileErrorsResponseToUploadFileErrorRows = uploadFileErrorsRespons
|
|
|
672
672
|
};
|
|
673
673
|
const mapFileUploadErrorsToUploadFileErrorRows = uploadFileErrors => {
|
|
674
674
|
let idCounter = 1;
|
|
675
|
-
return _mapInstanceProperty__default["default"](uploadFileErrors).call(uploadFileErrors, uploadFileError => _objectSpread$
|
|
675
|
+
return _mapInstanceProperty__default["default"](uploadFileErrors).call(uploadFileErrors, uploadFileError => _objectSpread$g(_objectSpread$g({}, uploadFileError), {}, {
|
|
676
676
|
id: String(idCounter++)
|
|
677
677
|
}));
|
|
678
678
|
};
|
|
@@ -868,6 +868,8 @@ function uploadFileForImport(_ref) {
|
|
|
868
868
|
});
|
|
869
869
|
}
|
|
870
870
|
|
|
871
|
+
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; }
|
|
872
|
+
function _objectSpread$f(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$f(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$f(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
871
873
|
function createImportContainerForFileUpload(importContainerDraft, projectKey, asyncDispatch) {
|
|
872
874
|
return asyncDispatch(sdk.actions.post({
|
|
873
875
|
mcApiProxyTarget: constants.MC_API_PROXY_TARGETS.IMPORT,
|
|
@@ -876,7 +878,14 @@ function createImportContainerForFileUpload(importContainerDraft, projectKey, as
|
|
|
876
878
|
accept: 'application/json',
|
|
877
879
|
'Content-Type': 'application/json'
|
|
878
880
|
},
|
|
879
|
-
payload: _JSON$stringify__default["default"](
|
|
881
|
+
payload: _JSON$stringify__default["default"](_objectSpread$f({
|
|
882
|
+
retentionPolicy: {
|
|
883
|
+
strategy: 'ttl',
|
|
884
|
+
config: {
|
|
885
|
+
timeToLive: '54h' // 2 days and 6 hours
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
}, importContainerDraft))
|
|
880
889
|
}));
|
|
881
890
|
}
|
|
882
891
|
function deleteImportContainer(projectKey, containerKey, asyncDispatch) {
|
|
@@ -1062,13 +1071,13 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
|
|
|
1062
1071
|
return /*#__PURE__*/react.css(process.env.NODE_ENV === "production" ? "" : ";label:getDefaultDropWrapperStyles;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRyb3AtYXJlYS13cmFwcGVyLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUE0QlkiLCJmaWxlIjoiZHJvcC1hcmVhLXdyYXBwZXIudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgdHlwZSBEcm9wem9uZVJvb3RQcm9wcyB9IGZyb20gJ3JlYWN0LWRyb3B6b25lJ1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCB7IHN0eWxlcyB9IGZyb20gJy4vc3R5bGVzJ1xuaW1wb3J0IHsgdHlwZSBEcm9wQXJlYVN0YXRlIH0gZnJvbSAnLi4vLi4vLi4vQHR5cGVzJ1xuXG5pbnRlcmZhY2UgRHJvcFdyYXBwZXJQcm9wcyBleHRlbmRzIERyb3B6b25lUm9vdFByb3BzIHtcbiAgZHJvcEFyZWFTdGF0ZTogRHJvcEFyZWFTdGF0ZVxufVxuZXhwb3J0IGNvbnN0IERyb3BXcmFwcGVyID0gc3R5bGVkLmRpdjxEcm9wV3JhcHBlclByb3BzPmBcbiAgJHtzdHlsZXMuYmFzZX1cbiAgJHsocHJvcHMpID0+IHtcbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ2Rpc2FibGVkJykge1xuICAgICAgcmV0dXJuIHN0eWxlcy5kaXNhYmxlZFxuICAgIH1cbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ3JlYWR5LWZvci1kcm9wJykge1xuICAgICAgcmV0dXJuIHN0eWxlcy5yZWFkeUZvckRyb3BcbiAgICB9XG4gICAgaWYgKHByb3BzLmRyb3BBcmVhU3RhdGUgPT09ICdhY3RpdmUtZHJhZycpIHtcbiAgICAgIHJldHVybiBzdHlsZXMuYWN0aXZlRHJhZ1xuICAgIH1cbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ2ZpbGUtZHJvcHBlZCcpIHtcbiAgICAgIHJldHVybiBzdHlsZXMuZmlsZURyb3BwZWRcbiAgICB9XG4gICAgcmV0dXJuIGdldERlZmF1bHREcm9wV3JhcHBlclN0eWxlcyhwcm9wcy5kcm9wQXJlYVN0YXRlKVxuICB9fVxuYFxuZnVuY3Rpb24gZ2V0RGVmYXVsdERyb3BXcmFwcGVyU3R5bGVzKF9kcm9wQXJlYVN0YXRlOiBuZXZlcikge1xuICByZXR1cm4gY3NzYGBcbn1cbiJdfQ== */");
|
|
1063
1072
|
}
|
|
1064
1073
|
|
|
1065
|
-
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-
|
|
1074
|
+
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-1b036a1a.cjs.dev.js'); }));
|
|
1066
1075
|
|
|
1067
|
-
var DisabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./disabled-drop-area-
|
|
1076
|
+
var DisabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./disabled-drop-area-377a3c8d.cjs.dev.js'); }));
|
|
1068
1077
|
|
|
1069
|
-
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-
|
|
1078
|
+
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-1bb3ba2c.cjs.dev.js'); }));
|
|
1070
1079
|
|
|
1071
|
-
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-
|
|
1080
|
+
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-f251fc3d.cjs.dev.js'); }));
|
|
1072
1081
|
|
|
1073
1082
|
function getDropArea(_ref) {
|
|
1074
1083
|
let dropAreaState = _ref.dropAreaState,
|
|
@@ -1196,8 +1205,8 @@ var messages$6 = reactIntl.defineMessages({
|
|
|
1196
1205
|
},
|
|
1197
1206
|
wrongSeparatorDescription: {
|
|
1198
1207
|
id: 'ImportResourcesModal.wrongSeparatorDescription',
|
|
1199
|
-
description: 'Message within the drop area when a CSV file uses an unexpected
|
|
1200
|
-
defaultMessage: 'The file is using an unsupported separator. Please use one of the allowed
|
|
1208
|
+
description: 'Message within the drop area when a CSV file uses an unexpected separator',
|
|
1209
|
+
defaultMessage: 'The file is using an unsupported separator. Please use one of the allowed separators: {delimiterList}.'
|
|
1201
1210
|
},
|
|
1202
1211
|
dropAreaNotEnoughRowsTitle: {
|
|
1203
1212
|
id: 'ImportResourcesModal.dropAreaNotEnoughRowsTitle',
|
|
@@ -2482,17 +2491,17 @@ const getChunkImport = locale => {
|
|
|
2482
2491
|
const intlLocale = i18n.mapLocaleToIntlLocale(locale);
|
|
2483
2492
|
switch (intlLocale) {
|
|
2484
2493
|
case 'de':
|
|
2485
|
-
return Promise.resolve().then(function () { return require(
|
|
2494
|
+
return Promise.resolve().then(function () { return require('./de-cd1c2b61.cjs.dev.js'); });
|
|
2486
2495
|
case 'es':
|
|
2487
|
-
return Promise.resolve().then(function () { return require(
|
|
2496
|
+
return Promise.resolve().then(function () { return require('./es-09b5f26a.cjs.dev.js'); });
|
|
2488
2497
|
case 'fr-FR':
|
|
2489
|
-
return Promise.resolve().then(function () { return require(
|
|
2498
|
+
return Promise.resolve().then(function () { return require('./fr-FR-a5fe152a.cjs.dev.js'); });
|
|
2490
2499
|
case 'ja':
|
|
2491
|
-
return Promise.resolve().then(function () { return require(
|
|
2500
|
+
return Promise.resolve().then(function () { return require('./ja-9bd5f452.cjs.dev.js'); });
|
|
2492
2501
|
case 'pt-BR':
|
|
2493
|
-
return Promise.resolve().then(function () { return require(
|
|
2502
|
+
return Promise.resolve().then(function () { return require('./pt-BR-0389b318.cjs.dev.js'); });
|
|
2494
2503
|
default:
|
|
2495
|
-
return Promise.resolve().then(function () { return require(
|
|
2504
|
+
return Promise.resolve().then(function () { return require('./en-c4f7d882.cjs.dev.js'); });
|
|
2496
2505
|
}
|
|
2497
2506
|
};
|
|
2498
2507
|
const loadMessages = async locale => {
|