@commercetools-frontend-extensions/delete-resources-modal 1.1.3 → 1.1.5
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-ae07a99f.cjs.dev.js → active-drag-drop-area-3b6d466e.cjs.dev.js} +1 -1
- package/dist/{active-drag-drop-area-02d32e56.cjs.prod.js → active-drag-drop-area-7ce4ad2e.cjs.prod.js} +1 -1
- package/dist/{active-drag-drop-area-92c5e785.esm.js → active-drag-drop-area-93f30ab1.esm.js} +1 -1
- package/dist/commercetools-frontend-extensions-delete-resources-modal.cjs.dev.js +1 -1
- package/dist/commercetools-frontend-extensions-delete-resources-modal.cjs.prod.js +1 -1
- package/dist/commercetools-frontend-extensions-delete-resources-modal.esm.js +1 -1
- package/dist/de-9dc6c41a.cjs.prod.js +262 -0
- package/dist/de-daab94cc.cjs.dev.js +262 -0
- package/dist/de-e0280d32.esm.js +260 -0
- package/dist/en-4441d5e8.cjs.dev.js +262 -0
- package/dist/en-a983f180.cjs.prod.js +262 -0
- package/dist/en-c8721699.esm.js +260 -0
- package/dist/{enabled-drop-area-5a49cc54.esm.js → enabled-drop-area-0f095b72.esm.js} +10 -10
- package/dist/{enabled-drop-area-e89e781d.cjs.dev.js → enabled-drop-area-2385b046.cjs.dev.js} +10 -10
- package/dist/{enabled-drop-area-8c18859d.cjs.prod.js → enabled-drop-area-eda91d8b.cjs.prod.js} +10 -10
- package/dist/es-062c28be.esm.js +260 -0
- package/dist/es-851a6220.cjs.prod.js +262 -0
- package/dist/es-87e55458.cjs.dev.js +262 -0
- package/dist/{file-dropped-area-a50c2310.cjs.dev.js → file-dropped-area-9eaa8d48.cjs.dev.js} +10 -10
- package/dist/{file-dropped-area-e4770d95.cjs.prod.js → file-dropped-area-b9ef2b25.cjs.prod.js} +10 -10
- package/dist/{file-dropped-area-59c4b6b7.esm.js → file-dropped-area-e1c05dd9.esm.js} +10 -10
- package/dist/fr-FR-3683a6e7.esm.js +260 -0
- package/dist/fr-FR-583a5353.cjs.prod.js +262 -0
- package/dist/fr-FR-db35778a.cjs.dev.js +262 -0
- package/dist/{index-6a1f6395.cjs.dev.js → index-38fb081c.cjs.dev.js} +31 -24
- package/dist/{index-8e75600e.cjs.prod.js → index-787342c4.cjs.prod.js} +31 -24
- package/dist/{index-c60573c8.esm.js → index-a5c6573b.esm.js} +31 -24
- package/dist/pt-BR-2da91387.cjs.prod.js +262 -0
- package/dist/pt-BR-46eadd76.esm.js +260 -0
- package/dist/pt-BR-5faf9bfa.cjs.dev.js +262 -0
- package/package.json +38 -37
- package/dist/de-a34c5dd4.cjs.dev.js +0 -6
- package/dist/de-cd6c45d3.esm.js +0 -4
- package/dist/de-d954fe3d.cjs.prod.js +0 -6
- package/dist/en-3a9aa2d4.esm.js +0 -4
- package/dist/en-6b3694f6.cjs.dev.js +0 -6
- package/dist/en-c7757448.cjs.prod.js +0 -6
- package/dist/es-042343bd.cjs.prod.js +0 -6
- package/dist/es-8b3ecab1.cjs.dev.js +0 -6
- package/dist/es-e544023d.esm.js +0 -4
- package/dist/fr-FR-9d9081ee.esm.js +0 -4
- package/dist/fr-FR-e7126fcc.cjs.dev.js +0 -6
- package/dist/fr-FR-fce1ca96.cjs.prod.js +0 -6
- package/dist/pt-BR-b37d730b.esm.js +0 -4
- package/dist/pt-BR-ea6b3251.cjs.dev.js +0 -6
- package/dist/pt-BR-ec2a1a11.cjs.prod.js +0 -6
- package/dist/zh-CN-4780d88e.esm.js +0 -4
- package/dist/zh-CN-52baa549.cjs.prod.js +0 -6
- package/dist/zh-CN-d4bc6d26.cjs.dev.js +0 -6
|
@@ -67,24 +67,24 @@ var _someInstanceProperty__default = /*#__PURE__*/_interopDefault(_someInstanceP
|
|
|
67
67
|
var _styled__default = /*#__PURE__*/_interopDefault(_styled);
|
|
68
68
|
var _sliceInstanceProperty__default = /*#__PURE__*/_interopDefault(_sliceInstanceProperty);
|
|
69
69
|
|
|
70
|
-
function ownKeys$
|
|
71
|
-
function _objectSpread$
|
|
70
|
+
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; }
|
|
71
|
+
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; }
|
|
72
72
|
function reducer(state, action) {
|
|
73
|
-
if (action.type === 'setCurrentStep') return _objectSpread$
|
|
73
|
+
if (action.type === 'setCurrentStep') return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
74
74
|
currentStep: action.currentStep,
|
|
75
75
|
progress: 0
|
|
76
76
|
});
|
|
77
|
-
if (action.type === 'setContainerKey') return _objectSpread$
|
|
77
|
+
if (action.type === 'setContainerKey') return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
78
78
|
containerKey: action.containerKey
|
|
79
79
|
});
|
|
80
|
-
if (action.type === 'cancelImport') return _objectSpread$
|
|
80
|
+
if (action.type === 'cancelImport') return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
81
81
|
currentStep: 'upload',
|
|
82
82
|
containerKey: undefined,
|
|
83
83
|
droppedFile: undefined,
|
|
84
84
|
dropAreaState: 'ready-for-drop',
|
|
85
85
|
progress: 0
|
|
86
86
|
});
|
|
87
|
-
if (action.type === 'uploadNewFile') return _objectSpread$
|
|
87
|
+
if (action.type === 'uploadNewFile') return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
88
88
|
currentStep: 'upload',
|
|
89
89
|
containerKey: undefined,
|
|
90
90
|
droppedFile: undefined,
|
|
@@ -92,27 +92,27 @@ function reducer(state, action) {
|
|
|
92
92
|
progress: 0
|
|
93
93
|
});
|
|
94
94
|
if (action.type === 'setDroppedFile') {
|
|
95
|
-
return _objectSpread$
|
|
95
|
+
return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
96
96
|
droppedFile: action.droppedFile
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
99
|
if (action.type === 'setAbortController') {
|
|
100
|
-
return _objectSpread$
|
|
100
|
+
return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
101
101
|
abortController: action.abortController
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
104
|
if (action.type === 'setProgress') {
|
|
105
|
-
return _objectSpread$
|
|
105
|
+
return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
106
106
|
progress: action.progress
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
109
|
if (action.type === 'setUploadFileResponse') {
|
|
110
|
-
return _objectSpread$
|
|
110
|
+
return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
111
111
|
uploadFileResponse: action.uploadFileResponse
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
114
|
if (action.type === 'setFileUploadErrors') {
|
|
115
|
-
return _objectSpread$
|
|
115
|
+
return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
116
116
|
fileUploadErrors: action.fileUploadErrors
|
|
117
117
|
});
|
|
118
118
|
}
|
|
@@ -181,6 +181,8 @@ function getProccessFileURL(_ref3) {
|
|
|
181
181
|
return `/${projectKey}/import-containers/${containerKey}/tasks`;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
+
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; }
|
|
185
|
+
function _objectSpread$a(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$a(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$a(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
184
186
|
function createImportContainerForFileUpload(importContainerDraft, projectKey, asyncDispatch) {
|
|
185
187
|
return asyncDispatch(sdk.actions.post({
|
|
186
188
|
mcApiProxyTarget: constants.MC_API_PROXY_TARGETS.IMPORT,
|
|
@@ -189,7 +191,14 @@ function createImportContainerForFileUpload(importContainerDraft, projectKey, as
|
|
|
189
191
|
accept: 'application/json',
|
|
190
192
|
'Content-Type': 'application/json'
|
|
191
193
|
},
|
|
192
|
-
payload:
|
|
194
|
+
payload: _objectSpread$a({
|
|
195
|
+
retentionPolicy: {
|
|
196
|
+
strategy: 'ttl',
|
|
197
|
+
config: {
|
|
198
|
+
timeToLive: '54h' // 2 days and 6 hours
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}, importContainerDraft)
|
|
193
202
|
}));
|
|
194
203
|
}
|
|
195
204
|
function deleteImportContainer(projectKey, containerKey, asyncDispatch) {
|
|
@@ -502,7 +511,7 @@ const hasSingleKeyColumn = file => {
|
|
|
502
511
|
preview: 1,
|
|
503
512
|
complete: results => {
|
|
504
513
|
const fields = results?.meta?.fields;
|
|
505
|
-
resolve(fields
|
|
514
|
+
resolve(fields?.length === 1 && fields[0] === 'key');
|
|
506
515
|
}
|
|
507
516
|
});
|
|
508
517
|
});
|
|
@@ -676,11 +685,11 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
|
|
|
676
685
|
return /*#__PURE__*/react.css("" , "" );
|
|
677
686
|
}
|
|
678
687
|
|
|
679
|
-
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-
|
|
688
|
+
var ActiveDragDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./active-drag-drop-area-7ce4ad2e.cjs.prod.js'); }));
|
|
680
689
|
|
|
681
|
-
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-
|
|
690
|
+
var EnabledDropArea = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./enabled-drop-area-eda91d8b.cjs.prod.js'); }));
|
|
682
691
|
|
|
683
|
-
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-
|
|
692
|
+
var FileDropped = /*#__PURE__*/React.lazy(() => Promise.resolve().then(function () { return require('./file-dropped-area-b9ef2b25.cjs.prod.js'); }));
|
|
684
693
|
|
|
685
694
|
function getDropArea(_ref) {
|
|
686
695
|
let dropAreaState = _ref.dropAreaState,
|
|
@@ -1712,19 +1721,17 @@ const getChunkImport = locale => {
|
|
|
1712
1721
|
const intlLocale = i18n.mapLocaleToIntlLocale(locale);
|
|
1713
1722
|
switch (intlLocale) {
|
|
1714
1723
|
case 'de':
|
|
1715
|
-
return Promise.resolve().then(function () { return require(
|
|
1724
|
+
return Promise.resolve().then(function () { return require('./de-9dc6c41a.cjs.prod.js'); });
|
|
1716
1725
|
case 'es':
|
|
1717
|
-
return Promise.resolve().then(function () { return require(
|
|
1726
|
+
return Promise.resolve().then(function () { return require('./es-851a6220.cjs.prod.js'); });
|
|
1718
1727
|
case 'fr-FR':
|
|
1719
|
-
return Promise.resolve().then(function () { return require(
|
|
1720
|
-
case 'zh-CN':
|
|
1721
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "delete-resources-modal-i18n-zh-CN" */'./zh-CN-52baa549.cjs.prod.js'); });
|
|
1728
|
+
return Promise.resolve().then(function () { return require('./fr-FR-583a5353.cjs.prod.js'); });
|
|
1722
1729
|
case 'ja':
|
|
1723
|
-
return Promise.resolve().then(function () { return require(
|
|
1730
|
+
return Promise.resolve().then(function () { return require('./ja-37632763.cjs.prod.js'); });
|
|
1724
1731
|
case 'pt-BR':
|
|
1725
|
-
return Promise.resolve().then(function () { return require(
|
|
1732
|
+
return Promise.resolve().then(function () { return require('./pt-BR-2da91387.cjs.prod.js'); });
|
|
1726
1733
|
default:
|
|
1727
|
-
return Promise.resolve().then(function () { return require(
|
|
1734
|
+
return Promise.resolve().then(function () { return require('./en-a983f180.cjs.prod.js'); });
|
|
1728
1735
|
}
|
|
1729
1736
|
};
|
|
1730
1737
|
const loadMessages = async locale => {
|
|
@@ -42,24 +42,24 @@ import { createHttpClientOptions, buildApiUrl } from '@commercetools-frontend/ap
|
|
|
42
42
|
import _sliceInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/slice';
|
|
43
43
|
import { parseChunkImport, mapLocaleToIntlLocale } from '@commercetools-frontend/i18n';
|
|
44
44
|
|
|
45
|
-
function ownKeys$
|
|
46
|
-
function _objectSpread$
|
|
45
|
+
function ownKeys$b(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
46
|
+
function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$b(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$b(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
47
47
|
function reducer(state, action) {
|
|
48
|
-
if (action.type === 'setCurrentStep') return _objectSpread$
|
|
48
|
+
if (action.type === 'setCurrentStep') return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
49
49
|
currentStep: action.currentStep,
|
|
50
50
|
progress: 0
|
|
51
51
|
});
|
|
52
|
-
if (action.type === 'setContainerKey') return _objectSpread$
|
|
52
|
+
if (action.type === 'setContainerKey') return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
53
53
|
containerKey: action.containerKey
|
|
54
54
|
});
|
|
55
|
-
if (action.type === 'cancelImport') return _objectSpread$
|
|
55
|
+
if (action.type === 'cancelImport') return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
56
56
|
currentStep: 'upload',
|
|
57
57
|
containerKey: undefined,
|
|
58
58
|
droppedFile: undefined,
|
|
59
59
|
dropAreaState: 'ready-for-drop',
|
|
60
60
|
progress: 0
|
|
61
61
|
});
|
|
62
|
-
if (action.type === 'uploadNewFile') return _objectSpread$
|
|
62
|
+
if (action.type === 'uploadNewFile') return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
63
63
|
currentStep: 'upload',
|
|
64
64
|
containerKey: undefined,
|
|
65
65
|
droppedFile: undefined,
|
|
@@ -67,27 +67,27 @@ function reducer(state, action) {
|
|
|
67
67
|
progress: 0
|
|
68
68
|
});
|
|
69
69
|
if (action.type === 'setDroppedFile') {
|
|
70
|
-
return _objectSpread$
|
|
70
|
+
return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
71
71
|
droppedFile: action.droppedFile
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
74
|
if (action.type === 'setAbortController') {
|
|
75
|
-
return _objectSpread$
|
|
75
|
+
return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
76
76
|
abortController: action.abortController
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
if (action.type === 'setProgress') {
|
|
80
|
-
return _objectSpread$
|
|
80
|
+
return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
81
81
|
progress: action.progress
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
84
|
if (action.type === 'setUploadFileResponse') {
|
|
85
|
-
return _objectSpread$
|
|
85
|
+
return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
86
86
|
uploadFileResponse: action.uploadFileResponse
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
if (action.type === 'setFileUploadErrors') {
|
|
90
|
-
return _objectSpread$
|
|
90
|
+
return _objectSpread$b(_objectSpread$b({}, state), {}, {
|
|
91
91
|
fileUploadErrors: action.fileUploadErrors
|
|
92
92
|
});
|
|
93
93
|
}
|
|
@@ -156,6 +156,8 @@ function getProccessFileURL(_ref3) {
|
|
|
156
156
|
return `/${projectKey}/import-containers/${containerKey}/tasks`;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
+
function ownKeys$a(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
160
|
+
function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$a(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$a(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
159
161
|
function createImportContainerForFileUpload(importContainerDraft, projectKey, asyncDispatch) {
|
|
160
162
|
return asyncDispatch(actions.post({
|
|
161
163
|
mcApiProxyTarget: MC_API_PROXY_TARGETS.IMPORT,
|
|
@@ -164,7 +166,14 @@ function createImportContainerForFileUpload(importContainerDraft, projectKey, as
|
|
|
164
166
|
accept: 'application/json',
|
|
165
167
|
'Content-Type': 'application/json'
|
|
166
168
|
},
|
|
167
|
-
payload:
|
|
169
|
+
payload: _objectSpread$a({
|
|
170
|
+
retentionPolicy: {
|
|
171
|
+
strategy: 'ttl',
|
|
172
|
+
config: {
|
|
173
|
+
timeToLive: '54h' // 2 days and 6 hours
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}, importContainerDraft)
|
|
168
177
|
}));
|
|
169
178
|
}
|
|
170
179
|
function deleteImportContainer(projectKey, containerKey, asyncDispatch) {
|
|
@@ -477,7 +486,7 @@ const hasSingleKeyColumn = file => {
|
|
|
477
486
|
preview: 1,
|
|
478
487
|
complete: results => {
|
|
479
488
|
const fields = results?.meta?.fields;
|
|
480
|
-
resolve(fields
|
|
489
|
+
resolve(fields?.length === 1 && fields[0] === 'key');
|
|
481
490
|
}
|
|
482
491
|
});
|
|
483
492
|
});
|
|
@@ -654,11 +663,11 @@ function getDefaultDropWrapperStyles(_dropAreaState) {
|
|
|
654
663
|
return /*#__PURE__*/css(process.env.NODE_ENV === "production" ? "" : ";label:getDefaultDropWrapperStyles;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRyb3AtYXJlYS13cmFwcGVyLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF5QlkiLCJmaWxlIjoiZHJvcC1hcmVhLXdyYXBwZXIudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgdHlwZSBEcm9wem9uZVJvb3RQcm9wcyB9IGZyb20gJ3JlYWN0LWRyb3B6b25lJ1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCB7IHN0eWxlcyB9IGZyb20gJy4vc3R5bGVzJ1xuaW1wb3J0IHsgdHlwZSBEcm9wQXJlYVN0YXRlIH0gZnJvbSAnLi4vLi4vLi4vQHR5cGVzJ1xuXG5pbnRlcmZhY2UgRHJvcFdyYXBwZXJQcm9wcyBleHRlbmRzIERyb3B6b25lUm9vdFByb3BzIHtcbiAgZHJvcEFyZWFTdGF0ZTogRHJvcEFyZWFTdGF0ZVxufVxuZXhwb3J0IGNvbnN0IERyb3BXcmFwcGVyID0gc3R5bGVkLmRpdjxEcm9wV3JhcHBlclByb3BzPmBcbiAgJHtzdHlsZXMuYmFzZX1cbiAgJHsocHJvcHMpID0+IHtcbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ3JlYWR5LWZvci1kcm9wJykge1xuICAgICAgcmV0dXJuIHN0eWxlcy5yZWFkeUZvckRyb3BcbiAgICB9XG4gICAgaWYgKHByb3BzLmRyb3BBcmVhU3RhdGUgPT09ICdhY3RpdmUtZHJhZycpIHtcbiAgICAgIHJldHVybiBzdHlsZXMuYWN0aXZlRHJhZ1xuICAgIH1cbiAgICBpZiAocHJvcHMuZHJvcEFyZWFTdGF0ZSA9PT0gJ2ZpbGUtZHJvcHBlZCcpIHtcbiAgICAgIHJldHVybiBzdHlsZXMuZmlsZURyb3BwZWRcbiAgICB9XG4gICAgcmV0dXJuIGdldERlZmF1bHREcm9wV3JhcHBlclN0eWxlcyhwcm9wcy5kcm9wQXJlYVN0YXRlKVxuICB9fVxuYFxuZnVuY3Rpb24gZ2V0RGVmYXVsdERyb3BXcmFwcGVyU3R5bGVzKF9kcm9wQXJlYVN0YXRlOiBuZXZlcikge1xuICByZXR1cm4gY3NzYGBcbn1cbiJdfQ== */");
|
|
655
664
|
}
|
|
656
665
|
|
|
657
|
-
var ActiveDragDropArea = /*#__PURE__*/lazy(() => import('./active-drag-drop-area-
|
|
666
|
+
var ActiveDragDropArea = /*#__PURE__*/lazy(() => import('./active-drag-drop-area-93f30ab1.esm.js'));
|
|
658
667
|
|
|
659
|
-
var EnabledDropArea = /*#__PURE__*/lazy(() => import('./enabled-drop-area-
|
|
668
|
+
var EnabledDropArea = /*#__PURE__*/lazy(() => import('./enabled-drop-area-0f095b72.esm.js'));
|
|
660
669
|
|
|
661
|
-
var FileDropped = /*#__PURE__*/lazy(() => import('./file-dropped-area-
|
|
670
|
+
var FileDropped = /*#__PURE__*/lazy(() => import('./file-dropped-area-e1c05dd9.esm.js'));
|
|
662
671
|
|
|
663
672
|
function getDropArea(_ref) {
|
|
664
673
|
let dropAreaState = _ref.dropAreaState,
|
|
@@ -1699,19 +1708,17 @@ const getChunkImport = locale => {
|
|
|
1699
1708
|
const intlLocale = mapLocaleToIntlLocale(locale);
|
|
1700
1709
|
switch (intlLocale) {
|
|
1701
1710
|
case 'de':
|
|
1702
|
-
return import(
|
|
1711
|
+
return import('./de-e0280d32.esm.js');
|
|
1703
1712
|
case 'es':
|
|
1704
|
-
return import(
|
|
1713
|
+
return import('./es-062c28be.esm.js');
|
|
1705
1714
|
case 'fr-FR':
|
|
1706
|
-
return import(
|
|
1707
|
-
case 'zh-CN':
|
|
1708
|
-
return import(/* webpackChunkName: "delete-resources-modal-i18n-zh-CN" */'./zh-CN-4780d88e.esm.js');
|
|
1715
|
+
return import('./fr-FR-3683a6e7.esm.js');
|
|
1709
1716
|
case 'ja':
|
|
1710
|
-
return import(
|
|
1717
|
+
return import('./ja-73c088a7.esm.js');
|
|
1711
1718
|
case 'pt-BR':
|
|
1712
|
-
return import(
|
|
1719
|
+
return import('./pt-BR-46eadd76.esm.js');
|
|
1713
1720
|
default:
|
|
1714
|
-
return import(
|
|
1721
|
+
return import('./en-c8721699.esm.js');
|
|
1715
1722
|
}
|
|
1716
1723
|
};
|
|
1717
1724
|
const loadMessages = async locale => {
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var ptBR = {
|
|
4
|
+
"DeleteResourcesModal.browseFile": {
|
|
5
|
+
string: "Procurar arquivo"
|
|
6
|
+
},
|
|
7
|
+
"DeleteResourcesModal.cancel": {
|
|
8
|
+
developer_comment: "The label for the cancel button",
|
|
9
|
+
string: "Cancelar"
|
|
10
|
+
},
|
|
11
|
+
"DeleteResourcesModal.cannotBeUndoneNote": {
|
|
12
|
+
developer_comment: "Cannot be undone note in the confirmation dialog",
|
|
13
|
+
string: "Esta ação não pode ser desfeita."
|
|
14
|
+
},
|
|
15
|
+
"DeleteResourcesModal.categories": {
|
|
16
|
+
developer_comment: "Plural form of category",
|
|
17
|
+
string: "categorias"
|
|
18
|
+
},
|
|
19
|
+
"DeleteResourcesModal.category": {
|
|
20
|
+
developer_comment: "Label for the category resource type",
|
|
21
|
+
string: "categoria"
|
|
22
|
+
},
|
|
23
|
+
"DeleteResourcesModal.chooseFile": {
|
|
24
|
+
developer_comment: "Label for a button on the file upload page, shown on ready to upload state",
|
|
25
|
+
string: "Escolher arquivo"
|
|
26
|
+
},
|
|
27
|
+
"DeleteResourcesModal.confirmationQuestion": {
|
|
28
|
+
developer_comment: "Confirmation question",
|
|
29
|
+
string: "Tem certeza de que deseja excluir {resourceTypePlural}?"
|
|
30
|
+
},
|
|
31
|
+
"DeleteResourcesModal.confirmationText": {
|
|
32
|
+
developer_comment: "Confirmation text",
|
|
33
|
+
string: "{count, plural, one {Você está prestes a excluir <b>{count}</b> {resourceType} no projeto: <b>{projectName}</b>.} many {Você está prestes a excluir <b>{count}</b> {resourceTypePlural} no projeto: <b>{projectName}</b>.} other {Você está prestes a excluir <b>{count}</b> {resourceTypePlural} no projeto: <b>{projectName}</b>.}}"
|
|
34
|
+
},
|
|
35
|
+
"DeleteResourcesModal.continue": {
|
|
36
|
+
developer_comment: "Continue button",
|
|
37
|
+
string: "Continuar"
|
|
38
|
+
},
|
|
39
|
+
"DeleteResourcesModal.csvFormatErrorTitle": {
|
|
40
|
+
developer_comment: "Error title shown when the uploaded CSV file is not formatted correctly",
|
|
41
|
+
string: "Arquivo CSV inválido"
|
|
42
|
+
},
|
|
43
|
+
"DeleteResourcesModal.customer": {
|
|
44
|
+
developer_comment: "Label for the customer resource type",
|
|
45
|
+
string: "cliente"
|
|
46
|
+
},
|
|
47
|
+
"DeleteResourcesModal.customers": {
|
|
48
|
+
developer_comment: "Plural form of customer",
|
|
49
|
+
string: "clientes"
|
|
50
|
+
},
|
|
51
|
+
"DeleteResourcesModal.dataType": {
|
|
52
|
+
developer_comment: "Label for the data type selection dropdown",
|
|
53
|
+
string: "Tipo de dados"
|
|
54
|
+
},
|
|
55
|
+
"DeleteResourcesModal.deleteModalTitle": {
|
|
56
|
+
developer_comment: "The title of the modal",
|
|
57
|
+
string: "Exclusão em massa via CSV"
|
|
58
|
+
},
|
|
59
|
+
"DeleteResourcesModal.details": {
|
|
60
|
+
developer_comment: "\"Details\" column",
|
|
61
|
+
string: "Detalhes"
|
|
62
|
+
},
|
|
63
|
+
"DeleteResourcesModal.discount-code": {
|
|
64
|
+
developer_comment: "Label for the discount-code resource type",
|
|
65
|
+
string: "código de desconto"
|
|
66
|
+
},
|
|
67
|
+
"DeleteResourcesModal.discount-codes": {
|
|
68
|
+
developer_comment: "Plural form of discount code",
|
|
69
|
+
string: "códigos de desconto"
|
|
70
|
+
},
|
|
71
|
+
"DeleteResourcesModal.dragAndDropCSV": {
|
|
72
|
+
developer_comment: "The message telling the user to drag and drop CSV file in the file drop area",
|
|
73
|
+
string: "Arraste e solte o CSV, JSON ou XLSX"
|
|
74
|
+
},
|
|
75
|
+
"DeleteResourcesModal.dropAreaNotEnoughRowsDescription": {
|
|
76
|
+
developer_comment: "Error description shown when the uploaded CSV file does not contain a header and at least one row of data",
|
|
77
|
+
string: "Certifique-se de que o arquivo tenha um cabeçalho e pelo menos uma linha de dados"
|
|
78
|
+
},
|
|
79
|
+
"DeleteResourcesModal.dropAreaNotEnoughRowsTitle": {
|
|
80
|
+
developer_comment: "Error title shown when the uploaded CSV file does not contain a header and at least one row of data",
|
|
81
|
+
string: "Arquivo CSV inválido"
|
|
82
|
+
},
|
|
83
|
+
"DeleteResourcesModal.errorType": {
|
|
84
|
+
developer_comment: "Error type\" column",
|
|
85
|
+
string: "Tipo de erro"
|
|
86
|
+
},
|
|
87
|
+
"DeleteResourcesModal.fileFormatNotSupported": {
|
|
88
|
+
developer_comment: "Error message displayed when a user drags and drops a non-CSV file",
|
|
89
|
+
string: "Formato de arquivo inválido: o arquivo não está no formato CSV e não pode ser processado."
|
|
90
|
+
},
|
|
91
|
+
"DeleteResourcesModal.fileUploadFailed": {
|
|
92
|
+
developer_comment: "A title on the file upload page, shown on file upload error state",
|
|
93
|
+
string: "Falha ao carregar o arquivo"
|
|
94
|
+
},
|
|
95
|
+
"DeleteResourcesModal.fileUploadInstruction": {
|
|
96
|
+
developer_comment: "Instructions for uploading a CSV file with resource keys to delete",
|
|
97
|
+
string: "O arquivo CSV deve conter as chaves {resourceType} a serem excluídas no cabeçalho 'key'."
|
|
98
|
+
},
|
|
99
|
+
"DeleteResourcesModal.fileUploadInstructionForMaxFileSize": {
|
|
100
|
+
developer_comment: "Instructions for uploading a CSV file with a max file size",
|
|
101
|
+
string: "O tamanho máximo do arquivo é {maxFileSize} MB com um limite de {maxRowCount} linhas. Baixe <csvTemplateLink>o modelo de CSV</csvTemplateLink> ou consulte <documentationLink>a documentação</documentationLink>."
|
|
102
|
+
},
|
|
103
|
+
"DeleteResourcesModal.genericError": {
|
|
104
|
+
developer_comment: "Default error message for unexpected file upload issues (for unhandled cases)",
|
|
105
|
+
string: "Ocorreu um erro: tente enviar o arquivo novamente ou entre em contato com nossa equipe de suporte para obter assistência."
|
|
106
|
+
},
|
|
107
|
+
"DeleteResourcesModal.heresAPreview": {
|
|
108
|
+
developer_comment: "Here is a preview",
|
|
109
|
+
string: "Aqui está uma prévia:"
|
|
110
|
+
},
|
|
111
|
+
"DeleteResourcesModal.importStarted": {
|
|
112
|
+
developer_comment: "Import started",
|
|
113
|
+
string: "<b>Sua importação para exclusão em massa foi iniciada.</b><newline></newline>Acesse <logsLink>Logs de importação</logsLink> para ver o progresso."
|
|
114
|
+
},
|
|
115
|
+
"DeleteResourcesModal.instructions": {
|
|
116
|
+
developer_comment: "Label for the instructions section",
|
|
117
|
+
string: "Instruções"
|
|
118
|
+
},
|
|
119
|
+
"DeleteResourcesModal.inventories": {
|
|
120
|
+
developer_comment: "Plural form of inventory entry",
|
|
121
|
+
string: "entradas de inventário"
|
|
122
|
+
},
|
|
123
|
+
"DeleteResourcesModal.inventory": {
|
|
124
|
+
developer_comment: "Label for the inventory entry resource type",
|
|
125
|
+
string: "entrada de inventário"
|
|
126
|
+
},
|
|
127
|
+
"DeleteResourcesModal.missingKeyError": {
|
|
128
|
+
developer_comment: "Error message displayed when the uploaded file is missing the key field",
|
|
129
|
+
string: "O campo 'key' está ausente ou incompleto em algumas linhas. Certifique-se de que cada linha tenha um valor de 'key'."
|
|
130
|
+
},
|
|
131
|
+
"DeleteResourcesModal.missingRequiredField": {
|
|
132
|
+
developer_comment: "Error message displayed when a required field is missing",
|
|
133
|
+
string: "Campo obrigatório ausente"
|
|
134
|
+
},
|
|
135
|
+
"DeleteResourcesModal.or": {
|
|
136
|
+
developer_comment: "The word \"or\" in the drag and drop message",
|
|
137
|
+
string: "ou"
|
|
138
|
+
},
|
|
139
|
+
"DeleteResourcesModal.order": {
|
|
140
|
+
developer_comment: "Label for the order resource type",
|
|
141
|
+
string: "pedido"
|
|
142
|
+
},
|
|
143
|
+
"DeleteResourcesModal.orders": {
|
|
144
|
+
developer_comment: "Plural form of order",
|
|
145
|
+
string: "pedidos"
|
|
146
|
+
},
|
|
147
|
+
"DeleteResourcesModal.preparingImport": {
|
|
148
|
+
developer_comment: "Preparing import",
|
|
149
|
+
string: "<b>Preparar exclusão em massa.</b><newline></newline> Após a conclusão da preparação, você poderá acompanhar o progresso <logsLink>nos logs de importação</logsLink>. Os dados serão excluídos após a finalização da importação."
|
|
150
|
+
},
|
|
151
|
+
"DeleteResourcesModal.price": {
|
|
152
|
+
developer_comment: "Label for the price resource type",
|
|
153
|
+
string: "preço"
|
|
154
|
+
},
|
|
155
|
+
"DeleteResourcesModal.prices": {
|
|
156
|
+
developer_comment: "Plural form of price",
|
|
157
|
+
string: "preços"
|
|
158
|
+
},
|
|
159
|
+
"DeleteResourcesModal.product": {
|
|
160
|
+
developer_comment: "Label for the product resource type",
|
|
161
|
+
string: "produto"
|
|
162
|
+
},
|
|
163
|
+
"DeleteResourcesModal.product-draft": {
|
|
164
|
+
developer_comment: "Label for the product-draft resource type",
|
|
165
|
+
string: "rascunho do produto"
|
|
166
|
+
},
|
|
167
|
+
"DeleteResourcesModal.product-drafts": {
|
|
168
|
+
developer_comment: "Plural form of product draft",
|
|
169
|
+
string: "rascunhos do produto"
|
|
170
|
+
},
|
|
171
|
+
"DeleteResourcesModal.product-type": {
|
|
172
|
+
developer_comment: "Label for the product-type resource type",
|
|
173
|
+
string: "tipo de produto"
|
|
174
|
+
},
|
|
175
|
+
"DeleteResourcesModal.product-types": {
|
|
176
|
+
developer_comment: "Plural form of product type",
|
|
177
|
+
string: "tipos de produto"
|
|
178
|
+
},
|
|
179
|
+
"DeleteResourcesModal.product-variant": {
|
|
180
|
+
developer_comment: "Label for the product-variant resource type",
|
|
181
|
+
string: "variante do produto"
|
|
182
|
+
},
|
|
183
|
+
"DeleteResourcesModal.product-variant-patch": {
|
|
184
|
+
developer_comment: "Label for the product-variant-patch resource type",
|
|
185
|
+
string: "correção da variante do produto"
|
|
186
|
+
},
|
|
187
|
+
"DeleteResourcesModal.product-variant-patches": {
|
|
188
|
+
developer_comment: "Plural form of product variant patch",
|
|
189
|
+
string: "correções da variante do produto"
|
|
190
|
+
},
|
|
191
|
+
"DeleteResourcesModal.product-variants": {
|
|
192
|
+
developer_comment: "Plural form of product variant",
|
|
193
|
+
string: "variantes do produto"
|
|
194
|
+
},
|
|
195
|
+
"DeleteResourcesModal.products": {
|
|
196
|
+
developer_comment: "Plural form of product",
|
|
197
|
+
string: "produtos"
|
|
198
|
+
},
|
|
199
|
+
"DeleteResourcesModal.resourcesToBeDeleted": {
|
|
200
|
+
developer_comment: "Resources to be deleted",
|
|
201
|
+
string: "{count, plural, one {<b>{count}</b> {resourceType} a ser excluído} many {<b>{count}</b> {resourceTypePlural} a serem excluídos} other {<b>{count}</b> {resourceTypePlural} a serem excluídos}}"
|
|
202
|
+
},
|
|
203
|
+
"DeleteResourcesModal.rowLimitExceededDescription": {
|
|
204
|
+
developer_comment: "Error description when the file contains more rows than the allowable maximum",
|
|
205
|
+
string: "O arquivo contém mais do que o máximo de {rowLimit} linhas permitidas"
|
|
206
|
+
},
|
|
207
|
+
"DeleteResourcesModal.rowLimitExceededTitle": {
|
|
208
|
+
string: "Limite de linhas excedido"
|
|
209
|
+
},
|
|
210
|
+
"DeleteResourcesModal.sizeExceededDescription": {
|
|
211
|
+
developer_comment: "Error description when the file size exceeds the allowable limit",
|
|
212
|
+
string: "O arquivo excede o tamanho máximo permitido de {fileSizeLimit} MB"
|
|
213
|
+
},
|
|
214
|
+
"DeleteResourcesModal.sizeExceededTitle": {
|
|
215
|
+
string: "Tamanho de arquivo excedido"
|
|
216
|
+
},
|
|
217
|
+
"DeleteResourcesModal.standalone-price": {
|
|
218
|
+
developer_comment: "Label for the standalone-price resource type",
|
|
219
|
+
string: "preço independente"
|
|
220
|
+
},
|
|
221
|
+
"DeleteResourcesModal.standalone-prices": {
|
|
222
|
+
developer_comment: "Plural form of standalone price",
|
|
223
|
+
string: "preços independentes"
|
|
224
|
+
},
|
|
225
|
+
"DeleteResourcesModal.startBulkDelete": {
|
|
226
|
+
developer_comment: "Start bulk delete button",
|
|
227
|
+
string: "Iniciar exclusão em massa"
|
|
228
|
+
},
|
|
229
|
+
"DeleteResourcesModal.tooManyFilesError": {
|
|
230
|
+
developer_comment: "Error message displayed when a user drags and drops multiple files at once",
|
|
231
|
+
string: "Vários arquivos detectados: você só pode arrastar e soltar um arquivo por vez."
|
|
232
|
+
},
|
|
233
|
+
"DeleteResourcesModal.unexpectedError": {
|
|
234
|
+
developer_comment: "Generic notification message when file upload fails",
|
|
235
|
+
string: "Um erro inesperado ocorreu durante o carregamento do arquivo. Tente novamente ou entre em contato com o suporte se o problema continuar ocorrendo."
|
|
236
|
+
},
|
|
237
|
+
"DeleteResourcesModal.unknown-resource-type": {
|
|
238
|
+
developer_comment: "Label for the unknown resource type",
|
|
239
|
+
string: "tipo de recurso desconhecido"
|
|
240
|
+
},
|
|
241
|
+
"DeleteResourcesModal.unpublishNote": {
|
|
242
|
+
developer_comment: "Note to unpublish products before deleting them",
|
|
243
|
+
string: "Observe que os produtos publicados <b>devem ter a publicação cancelada</b> antes de poderem ser excluídos."
|
|
244
|
+
},
|
|
245
|
+
"DeleteResourcesModal.uploadAndPreview": {
|
|
246
|
+
developer_comment: "Label for the button that uploads the file and shows the preview",
|
|
247
|
+
string: "Carregar e visualizar"
|
|
248
|
+
},
|
|
249
|
+
"DeleteResourcesModal.uploadError": {
|
|
250
|
+
developer_comment: "Title when errors detected while uploading file",
|
|
251
|
+
string: "Há {errorsCount, plural, one {<b>1</b> erro detectado} other {<b>{errorsCount}</b> erros detectados}} ao carregar o arquivo \"{fileName}\"."
|
|
252
|
+
},
|
|
253
|
+
"DeleteResourcesModal.uploadNewFile": {
|
|
254
|
+
string: "Carregar novo arquivo"
|
|
255
|
+
},
|
|
256
|
+
"UnpublishProductsModal.csvFormatErrorDescription": {
|
|
257
|
+
developer_comment: "Error message displayed when the CSV file is not formatted correctly",
|
|
258
|
+
string: "Seu arquivo CSV não está formatado corretamente. Certifique-se de que o arquivo contém apenas uma coluna chamada 'key' e valores de chave de produto."
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
exports["default"] = ptBR;
|