mario-core 2.9.418-feedback → 2.9.418-release
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/containers/User/hooks/useCSVImportTab.d.ts +0 -2
- package/dist/index.js +118 -146
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +118 -146
- package/dist/index.modern.js.map +1 -1
- package/dist/services/csvImportService.d.ts +0 -2
- package/package.json +1 -1
|
@@ -40,7 +40,5 @@ declare const useCSVImportTab: () => {
|
|
|
40
40
|
fileName: string;
|
|
41
41
|
onStudentSubmit: () => void;
|
|
42
42
|
downloadTemplateUser: () => Promise<void>;
|
|
43
|
-
errorsValidate: string[];
|
|
44
|
-
setErrorsValidate: import("react").Dispatch<import("react").SetStateAction<string[]>>;
|
|
45
43
|
};
|
|
46
44
|
export default useCSVImportTab;
|
package/dist/index.js
CHANGED
|
@@ -2190,7 +2190,6 @@ var save_new_password = "Save new password";
|
|
|
2190
2190
|
var teacher_code = "Teacher code";
|
|
2191
2191
|
var number_of_conversations = "Number of conversations";
|
|
2192
2192
|
var number_of_expected_conversations_based_on_the_goal = "Number of expected conversations based on the goal";
|
|
2193
|
-
var check_in = "Check-in";
|
|
2194
2193
|
var lang_us = {
|
|
2195
2194
|
dashboard: dashboard,
|
|
2196
2195
|
user: user,
|
|
@@ -4396,8 +4395,7 @@ var lang_us = {
|
|
|
4396
4395
|
save_new_password: save_new_password,
|
|
4397
4396
|
teacher_code: teacher_code,
|
|
4398
4397
|
number_of_conversations: number_of_conversations,
|
|
4399
|
-
number_of_expected_conversations_based_on_the_goal: number_of_expected_conversations_based_on_the_goal
|
|
4400
|
-
check_in: check_in
|
|
4398
|
+
number_of_expected_conversations_based_on_the_goal: number_of_expected_conversations_based_on_the_goal
|
|
4401
4399
|
};
|
|
4402
4400
|
|
|
4403
4401
|
var dashboard$1 = "Dashboard";
|
|
@@ -4415,7 +4413,7 @@ var cancel$1 = "Cancel";
|
|
|
4415
4413
|
var hey$1 = "Hey";
|
|
4416
4414
|
var readiness_to_learn$1 = "Readiness to Learn";
|
|
4417
4415
|
var high_impact_learning_strategies$1 = "High Impact Learning Strategies";
|
|
4418
|
-
var check_in
|
|
4416
|
+
var check_in = "Check In";
|
|
4419
4417
|
var check_ins$1 = "Check Ins";
|
|
4420
4418
|
var reflection$1 = "Reflection";
|
|
4421
4419
|
var conferences$1 = "Conferences";
|
|
@@ -6568,7 +6566,7 @@ var lang_uk = {
|
|
|
6568
6566
|
readiness_to_learn: readiness_to_learn$1,
|
|
6569
6567
|
high_impact_learning_strategies: high_impact_learning_strategies$1,
|
|
6570
6568
|
"1_to_1": "1 to 1",
|
|
6571
|
-
check_in: check_in
|
|
6569
|
+
check_in: check_in,
|
|
6572
6570
|
check_ins: check_ins$1,
|
|
6573
6571
|
reflection: reflection$1,
|
|
6574
6572
|
conferences: conferences$1,
|
|
@@ -8772,7 +8770,7 @@ var cancel$2 = "إلغاء";
|
|
|
8772
8770
|
var hey$2 = "مرحبًا";
|
|
8773
8771
|
var readiness_to_learn$2 = "الاستعداد للتعلم";
|
|
8774
8772
|
var high_impact_learning_strategies$2 = "استراتيجيات التعلم عالية التأثير";
|
|
8775
|
-
var check_in$
|
|
8773
|
+
var check_in$1 = "تسجيل الحضور";
|
|
8776
8774
|
var check_ins$2 = "عمليات تسجيل الحضور";
|
|
8777
8775
|
var reflection$2 = "التفكير";
|
|
8778
8776
|
var conferences$2 = "اللقاءات";
|
|
@@ -10955,7 +10953,7 @@ var lang_ar = {
|
|
|
10955
10953
|
readiness_to_learn: readiness_to_learn$2,
|
|
10956
10954
|
high_impact_learning_strategies: high_impact_learning_strategies$2,
|
|
10957
10955
|
"1_to_1": "1 إلى 1",
|
|
10958
|
-
check_in: check_in$
|
|
10956
|
+
check_in: check_in$1,
|
|
10959
10957
|
check_ins: check_ins$2,
|
|
10960
10958
|
reflection: reflection$2,
|
|
10961
10959
|
conferences: conferences$2,
|
|
@@ -13191,7 +13189,7 @@ var cancel$3 = "Cancelar";
|
|
|
13191
13189
|
var hey$3 = "Hola";
|
|
13192
13190
|
var readiness_to_learn$3 = "Preparación para el aprendizaje";
|
|
13193
13191
|
var high_impact_learning_strategies$3 = "Estrategias de aprendizaje de alto impacto";
|
|
13194
|
-
var check_in$
|
|
13192
|
+
var check_in$2 = "Registro";
|
|
13195
13193
|
var check_ins$3 = "Registro de entrada";
|
|
13196
13194
|
var reflection$3 = "Reflexión";
|
|
13197
13195
|
var conferences$3 = "Conferencias";
|
|
@@ -15374,7 +15372,7 @@ var lang_es = {
|
|
|
15374
15372
|
readiness_to_learn: readiness_to_learn$3,
|
|
15375
15373
|
high_impact_learning_strategies: high_impact_learning_strategies$3,
|
|
15376
15374
|
"1_to_1": "1 a 1",
|
|
15377
|
-
check_in: check_in$
|
|
15375
|
+
check_in: check_in$2,
|
|
15378
15376
|
check_ins: check_ins$3,
|
|
15379
15377
|
reflection: reflection$3,
|
|
15380
15378
|
conferences: conferences$3,
|
|
@@ -17610,7 +17608,7 @@ var cancel$4 = "取消";
|
|
|
17610
17608
|
var hey$4 = "您好";
|
|
17611
17609
|
var readiness_to_learn$4 = "准备学习";
|
|
17612
17610
|
var high_impact_learning_strategies$4 = "高效学习策略";
|
|
17613
|
-
var check_in$
|
|
17611
|
+
var check_in$3 = "签到";
|
|
17614
17612
|
var check_ins$4 = "签到";
|
|
17615
17613
|
var reflection$4 = "反思";
|
|
17616
17614
|
var conferences$4 = "讨论会";
|
|
@@ -19793,7 +19791,7 @@ var lang_zh = {
|
|
|
19793
19791
|
readiness_to_learn: readiness_to_learn$4,
|
|
19794
19792
|
high_impact_learning_strategies: high_impact_learning_strategies$4,
|
|
19795
19793
|
"1_to_1": "一对一",
|
|
19796
|
-
check_in: check_in$
|
|
19794
|
+
check_in: check_in$3,
|
|
19797
19795
|
check_ins: check_ins$4,
|
|
19798
19796
|
reflection: reflection$4,
|
|
19799
19797
|
conferences: conferences$4,
|
|
@@ -22178,7 +22176,9 @@ var CsvImportType;
|
|
|
22178
22176
|
|
|
22179
22177
|
var domainName = window.location.hostname;
|
|
22180
22178
|
var listCheckMalvernCollege = ['malverncollege', 'stage', 'localhost'];
|
|
22181
|
-
var isMalvernCollege = listCheckMalvernCollege.
|
|
22179
|
+
var isMalvernCollege = listCheckMalvernCollege.some(function (e) {
|
|
22180
|
+
return domainName.includes(e);
|
|
22181
|
+
});
|
|
22182
22182
|
|
|
22183
22183
|
var resources$5 = {
|
|
22184
22184
|
"en-US": {
|
|
@@ -39663,7 +39663,7 @@ var BlockLogin = function BlockLogin(_ref) {
|
|
|
39663
39663
|
|
|
39664
39664
|
var onSuccessGoogle = function onSuccessGoogle(res) {
|
|
39665
39665
|
if (!!(res !== null && res !== void 0 && res.accessToken)) {
|
|
39666
|
-
var _hostName$split, _email$split;
|
|
39666
|
+
var _hostName$split, _email$split, _extensionEmail$split, _extensionEmail$split2;
|
|
39667
39667
|
|
|
39668
39668
|
var _res$profileObj = res.profileObj,
|
|
39669
39669
|
email = _res$profileObj.email,
|
|
@@ -39676,8 +39676,15 @@ var BlockLogin = function BlockLogin(_ref) {
|
|
|
39676
39676
|
var hostName = window.location.hostname;
|
|
39677
39677
|
var subDomain = (_hostName$split = hostName.split(".marioforme.com")) === null || _hostName$split === void 0 ? void 0 : _hostName$split[0];
|
|
39678
39678
|
var emailDomain = (_email$split = email.split("@")) === null || _email$split === void 0 ? void 0 : _email$split[1];
|
|
39679
|
+
var matchExtension = extensionEmail === null || extensionEmail === void 0 ? void 0 : (_extensionEmail$split = extensionEmail.split(",")) === null || _extensionEmail$split === void 0 ? void 0 : (_extensionEmail$split2 = _extensionEmail$split.map(function (x) {
|
|
39680
|
+
return x.trim();
|
|
39681
|
+
})) === null || _extensionEmail$split2 === void 0 ? void 0 : _extensionEmail$split2.filter(function (x) {
|
|
39682
|
+
return x;
|
|
39683
|
+
}).some(function (ext) {
|
|
39684
|
+
return emailDomain.includes(ext);
|
|
39685
|
+
});
|
|
39679
39686
|
|
|
39680
|
-
if (!emailDomain.includes(subDomain) && !
|
|
39687
|
+
if (!emailDomain.includes(subDomain) && !matchExtension) {
|
|
39681
39688
|
alert("The email address you used does not match the login information in the database. Please check that you are using your school assigned email address to log into MARIO for Me. If you have further trouble please notify your school site administrator");
|
|
39682
39689
|
return;
|
|
39683
39690
|
}
|
|
@@ -41320,14 +41327,7 @@ var BlockCreatePassword = function BlockCreatePassword() {
|
|
|
41320
41327
|
className: "" + styles["img-login-rectangle"]
|
|
41321
41328
|
}), React__default.createElement("p", {
|
|
41322
41329
|
className: "" + styles["title-login"]
|
|
41323
|
-
}, "You cannot regenerate the password"))))
|
|
41324
|
-
lg: 4,
|
|
41325
|
-
md: 4,
|
|
41326
|
-
className: "" + styles["img-box"]
|
|
41327
|
-
}, React__default.createElement("img", {
|
|
41328
|
-
src: "/images/img-login.png",
|
|
41329
|
-
className: "" + styles["img-login"]
|
|
41330
|
-
})));
|
|
41330
|
+
}, "You cannot regenerate the password")))));
|
|
41331
41331
|
});
|
|
41332
41332
|
};
|
|
41333
41333
|
|
|
@@ -46317,9 +46317,6 @@ var importUsersCSV = function importUsersCSV(formData) {
|
|
|
46317
46317
|
var downloadTemplateFileUser = function downloadTemplateFileUser() {
|
|
46318
46318
|
return api.get(CSV_FILE_TEACHER + "/download-template-file-user");
|
|
46319
46319
|
};
|
|
46320
|
-
var validateCsvApi = function validateCsvApi(formData, type) {
|
|
46321
|
-
return api.post(CSV_FILE_TEACHER + "/validate-csv-template-student/" + type, formData);
|
|
46322
|
-
};
|
|
46323
46320
|
|
|
46324
46321
|
var CSVType;
|
|
46325
46322
|
|
|
@@ -50116,7 +50113,7 @@ var style$2 = {
|
|
|
50116
50113
|
color: "#fff",
|
|
50117
50114
|
fontWeight: 500,
|
|
50118
50115
|
fontSize: "14px",
|
|
50119
|
-
height: "
|
|
50116
|
+
height: "100%",
|
|
50120
50117
|
justifyContent: "center"
|
|
50121
50118
|
};
|
|
50122
50119
|
|
|
@@ -50215,19 +50212,15 @@ var useCSVImportTab = function useCSVImportTab() {
|
|
|
50215
50212
|
studentDataFile = _useState5[0],
|
|
50216
50213
|
setStudentDataFile = _useState5[1];
|
|
50217
50214
|
|
|
50218
|
-
var _useState6 = React.useState([]),
|
|
50219
|
-
errorsValidate = _useState6[0],
|
|
50220
|
-
setErrorsValidate = _useState6[1];
|
|
50221
|
-
|
|
50222
50215
|
var isCheckDomainIBS = true;
|
|
50223
50216
|
|
|
50224
|
-
var
|
|
50225
|
-
defaultTeacher =
|
|
50226
|
-
setDefaultTeacher =
|
|
50217
|
+
var _useState6 = React.useState(0),
|
|
50218
|
+
defaultTeacher = _useState6[0],
|
|
50219
|
+
setDefaultTeacher = _useState6[1];
|
|
50227
50220
|
|
|
50228
|
-
var
|
|
50229
|
-
fileName =
|
|
50230
|
-
setFileName =
|
|
50221
|
+
var _useState7 = React.useState(""),
|
|
50222
|
+
fileName = _useState7[0],
|
|
50223
|
+
setFileName = _useState7[1];
|
|
50231
50224
|
|
|
50232
50225
|
React.useEffect(function () {
|
|
50233
50226
|
document.title = title$5;
|
|
@@ -50272,10 +50265,10 @@ var useCSVImportTab = function useCSVImportTab() {
|
|
|
50272
50265
|
|
|
50273
50266
|
var upload = React.useCallback(function (file) {
|
|
50274
50267
|
try {
|
|
50275
|
-
var
|
|
50268
|
+
var _exit2 = false;
|
|
50276
50269
|
|
|
50277
|
-
var _temp12 = function _temp12(
|
|
50278
|
-
if (
|
|
50270
|
+
var _temp12 = function _temp12(_result2) {
|
|
50271
|
+
if (_exit2) return _result2;
|
|
50279
50272
|
dispatch(setLoading(false));
|
|
50280
50273
|
var inputId = document.getElementById(id$1);
|
|
50281
50274
|
var input = document.getElementById('import-student');
|
|
@@ -50289,114 +50282,103 @@ var useCSVImportTab = function useCSVImportTab() {
|
|
|
50289
50282
|
dispatch(setLoading(true));
|
|
50290
50283
|
|
|
50291
50284
|
var _temp13 = _catch(function () {
|
|
50285
|
+
function _temp9(_result) {
|
|
50286
|
+
if (_exit2) return _result;
|
|
50287
|
+
dispatch(setAlert({
|
|
50288
|
+
type: "success",
|
|
50289
|
+
message: "Import CSV successfully"
|
|
50290
|
+
}));
|
|
50291
|
+
}
|
|
50292
|
+
|
|
50292
50293
|
var formData = new FormData();
|
|
50293
50294
|
formData.append("file", file, file.name);
|
|
50294
|
-
var typeOfCsv = type === CSVType$1.AllUser ? CsvImportType.Admin : CsvImportType.Teacher;
|
|
50295
|
-
return Promise.resolve(validateCsvApi(formData, typeOfCsv)).then(function (res) {
|
|
50296
|
-
var _exit2 = false;
|
|
50297
|
-
|
|
50298
|
-
function _temp9(_result2) {
|
|
50299
|
-
if (_exit2) return _result2;
|
|
50300
|
-
dispatch(setAlert({
|
|
50301
|
-
type: "success",
|
|
50302
|
-
message: "Import CSV successfully"
|
|
50303
|
-
}));
|
|
50304
|
-
}
|
|
50305
50295
|
|
|
50306
|
-
|
|
50307
|
-
|
|
50308
|
-
|
|
50309
|
-
|
|
50310
|
-
|
|
50311
|
-
|
|
50312
|
-
|
|
50313
|
-
|
|
50314
|
-
|
|
50315
|
-
|
|
50316
|
-
var fileText = fileTextRaw.trim();
|
|
50317
|
-
var rows = fileText.split("\n").map(function (row) {
|
|
50318
|
-
return row.trim();
|
|
50319
|
-
});
|
|
50320
|
-
var headerIndex = rows.findIndex(function (row) {
|
|
50321
|
-
return row.split(",").includes("First Name");
|
|
50322
|
-
});
|
|
50296
|
+
var _temp8 = function () {
|
|
50297
|
+
if (type == CSVType$1.AllUser) {
|
|
50298
|
+
return Promise.resolve(file.text()).then(function (fileTextRaw) {
|
|
50299
|
+
var fileText = fileTextRaw.trim();
|
|
50300
|
+
var rows = fileText.split("\n").map(function (row) {
|
|
50301
|
+
return row.trim();
|
|
50302
|
+
});
|
|
50303
|
+
var headerIndex = rows.findIndex(function (row) {
|
|
50304
|
+
return row.split(",").includes("First Name");
|
|
50305
|
+
});
|
|
50323
50306
|
|
|
50324
|
-
|
|
50325
|
-
|
|
50326
|
-
|
|
50307
|
+
if (headerIndex === 0) {
|
|
50308
|
+
throw new Error("Invalid CSV: Missing header row.");
|
|
50309
|
+
}
|
|
50327
50310
|
|
|
50328
|
-
|
|
50329
|
-
|
|
50330
|
-
|
|
50331
|
-
|
|
50332
|
-
|
|
50333
|
-
|
|
50334
|
-
|
|
50311
|
+
fileText = rows.slice(headerIndex).join("\n");
|
|
50312
|
+
var parsedData = Papa.parse(fileText, {
|
|
50313
|
+
header: true,
|
|
50314
|
+
skipEmptyLines: true
|
|
50315
|
+
});
|
|
50316
|
+
var header = parsedData.meta.fields;
|
|
50317
|
+
var dataRows = parsedData.data;
|
|
50335
50318
|
|
|
50336
|
-
|
|
50337
|
-
|
|
50338
|
-
|
|
50339
|
-
|
|
50340
|
-
|
|
50341
|
-
|
|
50342
|
-
|
|
50343
|
-
|
|
50344
|
-
|
|
50319
|
+
if (!!!dataRows.length) {
|
|
50320
|
+
dispatch(setLoading(false));
|
|
50321
|
+
dispatch(setAlert({
|
|
50322
|
+
type: "danger",
|
|
50323
|
+
message: 'The file has no data or some column names are misformed.'
|
|
50324
|
+
}));
|
|
50325
|
+
_exit2 = true;
|
|
50326
|
+
return;
|
|
50327
|
+
}
|
|
50345
50328
|
|
|
50346
|
-
|
|
50347
|
-
|
|
50329
|
+
var chunkSize = 10;
|
|
50330
|
+
var chunks = [];
|
|
50348
50331
|
|
|
50349
|
-
|
|
50350
|
-
|
|
50351
|
-
|
|
50352
|
-
|
|
50353
|
-
|
|
50354
|
-
});
|
|
50332
|
+
for (var _i = 0; _i < dataRows.length; _i += chunkSize) {
|
|
50333
|
+
var chunkData = dataRows.slice(_i, _i + chunkSize);
|
|
50334
|
+
var valuesOnly = chunkData.map(function (row) {
|
|
50335
|
+
return Object.values(row).map(function (v) {
|
|
50336
|
+
return (v != null ? v : "").toString().trim();
|
|
50355
50337
|
});
|
|
50338
|
+
});
|
|
50356
50339
|
|
|
50357
|
-
|
|
50358
|
-
|
|
50359
|
-
}
|
|
50360
|
-
|
|
50361
|
-
console.log({
|
|
50362
|
-
valuesOnly: valuesOnly
|
|
50363
|
-
});
|
|
50364
|
-
chunks.push(valuesOnly);
|
|
50340
|
+
if (header) {
|
|
50341
|
+
valuesOnly.unshift(header);
|
|
50365
50342
|
}
|
|
50366
50343
|
|
|
50367
|
-
|
|
50368
|
-
|
|
50369
|
-
chunks: chunks[i]
|
|
50370
|
-
})).then(function () {
|
|
50371
|
-
return Promise.resolve(new Promise(function (res) {
|
|
50372
|
-
return setTimeout(res, 500);
|
|
50373
|
-
})).then(function () {});
|
|
50374
|
-
});
|
|
50344
|
+
console.log({
|
|
50345
|
+
valuesOnly: valuesOnly
|
|
50375
50346
|
});
|
|
50347
|
+
chunks.push(valuesOnly);
|
|
50348
|
+
}
|
|
50376
50349
|
|
|
50377
|
-
|
|
50350
|
+
var _temp5 = _forTo(chunks, function (i) {
|
|
50351
|
+
return Promise.resolve(importChunkFileUsers({
|
|
50352
|
+
chunks: chunks[i]
|
|
50353
|
+
})).then(function () {
|
|
50354
|
+
return Promise.resolve(new Promise(function (res) {
|
|
50355
|
+
return setTimeout(res, 500);
|
|
50356
|
+
})).then(function () {});
|
|
50357
|
+
});
|
|
50378
50358
|
});
|
|
50379
|
-
} else {
|
|
50380
|
-
var _temp14 = function () {
|
|
50381
|
-
if (isCheckDomainIBS) {
|
|
50382
|
-
var _temp15 = function () {
|
|
50383
|
-
if (type == CSVType$1.ClassReflection) {
|
|
50384
|
-
return Promise.resolve(importClassReflectionCSV$1(formData)).then(function () {});
|
|
50385
|
-
}
|
|
50386
|
-
}();
|
|
50387
|
-
|
|
50388
|
-
if (_temp15 && _temp15.then) return _temp15.then(function () {});
|
|
50389
|
-
} else {
|
|
50390
|
-
return Promise.resolve(importCSV$1(formData, type.toString())).then(function () {});
|
|
50391
|
-
}
|
|
50392
|
-
}();
|
|
50393
50359
|
|
|
50394
|
-
if (
|
|
50395
|
-
}
|
|
50396
|
-
}
|
|
50360
|
+
if (_temp5 && _temp5.then) return _temp5.then(function () {});
|
|
50361
|
+
});
|
|
50362
|
+
} else {
|
|
50363
|
+
var _temp14 = function () {
|
|
50364
|
+
if (isCheckDomainIBS) {
|
|
50365
|
+
var _temp15 = function () {
|
|
50366
|
+
if (type == CSVType$1.ClassReflection) {
|
|
50367
|
+
return Promise.resolve(importClassReflectionCSV$1(formData)).then(function () {});
|
|
50368
|
+
}
|
|
50369
|
+
}();
|
|
50397
50370
|
|
|
50398
|
-
|
|
50399
|
-
|
|
50371
|
+
if (_temp15 && _temp15.then) return _temp15.then(function () {});
|
|
50372
|
+
} else {
|
|
50373
|
+
return Promise.resolve(importCSV$1(formData, type.toString())).then(function () {});
|
|
50374
|
+
}
|
|
50375
|
+
}();
|
|
50376
|
+
|
|
50377
|
+
if (_temp14 && _temp14.then) return _temp14.then(function () {});
|
|
50378
|
+
}
|
|
50379
|
+
}();
|
|
50380
|
+
|
|
50381
|
+
return _temp8 && _temp8.then ? _temp8.then(_temp9) : _temp9(_temp8);
|
|
50400
50382
|
}, function (err) {
|
|
50401
50383
|
var _err$response, _err$response$data;
|
|
50402
50384
|
|
|
@@ -50551,9 +50533,7 @@ var useCSVImportTab = function useCSVImportTab() {
|
|
|
50551
50533
|
defaultTeacher: defaultTeacher,
|
|
50552
50534
|
fileName: fileName,
|
|
50553
50535
|
onStudentSubmit: onStudentSubmit,
|
|
50554
|
-
downloadTemplateUser: downloadTemplateUser
|
|
50555
|
-
errorsValidate: errorsValidate,
|
|
50556
|
-
setErrorsValidate: setErrorsValidate
|
|
50536
|
+
downloadTemplateUser: downloadTemplateUser
|
|
50557
50537
|
};
|
|
50558
50538
|
};
|
|
50559
50539
|
|
|
@@ -50580,8 +50560,7 @@ var CSVImport = function CSVImport() {
|
|
|
50580
50560
|
setArrStudent = _useCSVImportTab.setArrStudent,
|
|
50581
50561
|
buttons = _useCSVImportTab.buttons,
|
|
50582
50562
|
upload = _useCSVImportTab.upload,
|
|
50583
|
-
downloadTemplateUser = _useCSVImportTab.downloadTemplateUser
|
|
50584
|
-
errorsValidate = _useCSVImportTab.errorsValidate;
|
|
50563
|
+
downloadTemplateUser = _useCSVImportTab.downloadTemplateUser;
|
|
50585
50564
|
|
|
50586
50565
|
var _useTranslation = reactI18next.useTranslation(),
|
|
50587
50566
|
t = _useTranslation.t;
|
|
@@ -50634,9 +50613,9 @@ var CSVImport = function CSVImport() {
|
|
|
50634
50613
|
accept: "text/csv"
|
|
50635
50614
|
}), React__default.createElement(reactstrap.Col, {
|
|
50636
50615
|
md: 6,
|
|
50637
|
-
className: "mb-2 d-flex
|
|
50616
|
+
className: "mb-2 d-flex align-items-end"
|
|
50638
50617
|
}, React__default.createElement(reactstrap.Row, {
|
|
50639
|
-
className: "w-100
|
|
50618
|
+
className: "w-100"
|
|
50640
50619
|
}, React__default.createElement(reactstrap.Col, {
|
|
50641
50620
|
md: 12,
|
|
50642
50621
|
className: ""
|
|
@@ -50665,9 +50644,7 @@ var CSVImport = function CSVImport() {
|
|
|
50665
50644
|
})))), React__default.createElement(reactstrap.Col, {
|
|
50666
50645
|
md: 6,
|
|
50667
50646
|
className: "mb-2"
|
|
50668
|
-
}, React__default.createElement(reactstrap.Row, {
|
|
50669
|
-
className: "flex-column"
|
|
50670
|
-
}, React__default.createElement(reactstrap.Col, {
|
|
50647
|
+
}, React__default.createElement(reactstrap.Row, null, React__default.createElement(reactstrap.Col, {
|
|
50671
50648
|
md: 12,
|
|
50672
50649
|
className: "mb-2 text-right"
|
|
50673
50650
|
}, React__default.createElement(reactstrap.Button, {
|
|
@@ -50697,12 +50674,7 @@ var CSVImport = function CSVImport() {
|
|
|
50697
50674
|
return setType(button.type);
|
|
50698
50675
|
}
|
|
50699
50676
|
});
|
|
50700
|
-
}))
|
|
50701
|
-
return React__default.createElement(ErrorHandler, {
|
|
50702
|
-
key: index,
|
|
50703
|
-
text: error
|
|
50704
|
-
});
|
|
50705
|
-
}))));
|
|
50677
|
+
})))));
|
|
50706
50678
|
}))) );
|
|
50707
50679
|
};
|
|
50708
50680
|
|