mario-core 2.9.417-feedback → 2.9.417-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 +115 -151
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +115 -151
- package/dist/index.modern.js.map +1 -1
- package/dist/services/csvImportService.d.ts +0 -2
- package/dist/services/weeklyQuestService.d.ts +1 -0
- package/dist/types/WeeklyQuest.d.ts +37 -0
- package/dist/utils/constants.d.ts +0 -4
- 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,
|
|
@@ -22169,12 +22167,6 @@ var LANGUAGES = [{
|
|
|
22169
22167
|
var DEFAULT_LANGUAGE_CODE = "en-US";
|
|
22170
22168
|
var SUPPORTED_LANGUAGES_CODE = ["en-US", "en-GB", "ar", "es", "zh"];
|
|
22171
22169
|
var screenWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
|
|
22172
|
-
var CsvImportType;
|
|
22173
|
-
|
|
22174
|
-
(function (CsvImportType) {
|
|
22175
|
-
CsvImportType[CsvImportType["Teacher"] = 0] = "Teacher";
|
|
22176
|
-
CsvImportType[CsvImportType["Admin"] = 1] = "Admin";
|
|
22177
|
-
})(CsvImportType || (CsvImportType = {}));
|
|
22178
22170
|
|
|
22179
22171
|
var resources$5 = {
|
|
22180
22172
|
"en-US": {
|
|
@@ -39659,7 +39651,7 @@ var BlockLogin = function BlockLogin(_ref) {
|
|
|
39659
39651
|
|
|
39660
39652
|
var onSuccessGoogle = function onSuccessGoogle(res) {
|
|
39661
39653
|
if (!!(res !== null && res !== void 0 && res.accessToken)) {
|
|
39662
|
-
var _hostName$split, _email$split;
|
|
39654
|
+
var _hostName$split, _email$split, _extensionEmail$split, _extensionEmail$split2;
|
|
39663
39655
|
|
|
39664
39656
|
var _res$profileObj = res.profileObj,
|
|
39665
39657
|
email = _res$profileObj.email,
|
|
@@ -39672,8 +39664,15 @@ var BlockLogin = function BlockLogin(_ref) {
|
|
|
39672
39664
|
var hostName = window.location.hostname;
|
|
39673
39665
|
var subDomain = (_hostName$split = hostName.split(".marioforme.com")) === null || _hostName$split === void 0 ? void 0 : _hostName$split[0];
|
|
39674
39666
|
var emailDomain = (_email$split = email.split("@")) === null || _email$split === void 0 ? void 0 : _email$split[1];
|
|
39667
|
+
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) {
|
|
39668
|
+
return x.trim();
|
|
39669
|
+
})) === null || _extensionEmail$split2 === void 0 ? void 0 : _extensionEmail$split2.filter(function (x) {
|
|
39670
|
+
return x;
|
|
39671
|
+
}).some(function (ext) {
|
|
39672
|
+
return emailDomain.includes(ext);
|
|
39673
|
+
});
|
|
39675
39674
|
|
|
39676
|
-
if (!emailDomain.includes(subDomain) && !
|
|
39675
|
+
if (!emailDomain.includes(subDomain) && !matchExtension) {
|
|
39677
39676
|
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");
|
|
39678
39677
|
return;
|
|
39679
39678
|
}
|
|
@@ -41316,14 +41315,7 @@ var BlockCreatePassword = function BlockCreatePassword() {
|
|
|
41316
41315
|
className: "" + styles["img-login-rectangle"]
|
|
41317
41316
|
}), React__default.createElement("p", {
|
|
41318
41317
|
className: "" + styles["title-login"]
|
|
41319
|
-
}, "You cannot regenerate the password"))))
|
|
41320
|
-
lg: 4,
|
|
41321
|
-
md: 4,
|
|
41322
|
-
className: "" + styles["img-box"]
|
|
41323
|
-
}, React__default.createElement("img", {
|
|
41324
|
-
src: "/images/img-login.png",
|
|
41325
|
-
className: "" + styles["img-login"]
|
|
41326
|
-
})));
|
|
41318
|
+
}, "You cannot regenerate the password")))));
|
|
41327
41319
|
});
|
|
41328
41320
|
};
|
|
41329
41321
|
|
|
@@ -45849,9 +45841,6 @@ var importUsersCSV = function importUsersCSV(formData) {
|
|
|
45849
45841
|
var downloadTemplateFileUser = function downloadTemplateFileUser() {
|
|
45850
45842
|
return api.get(CSV_FILE_TEACHER + "/download-template-file-user");
|
|
45851
45843
|
};
|
|
45852
|
-
var validateCsvApi = function validateCsvApi(formData, type) {
|
|
45853
|
-
return api.post(CSV_FILE_TEACHER + "/validate-csv-template-student/" + type, formData);
|
|
45854
|
-
};
|
|
45855
45844
|
|
|
45856
45845
|
var CSVType;
|
|
45857
45846
|
|
|
@@ -49648,7 +49637,7 @@ var style$2 = {
|
|
|
49648
49637
|
color: "#fff",
|
|
49649
49638
|
fontWeight: 500,
|
|
49650
49639
|
fontSize: "14px",
|
|
49651
|
-
height: "
|
|
49640
|
+
height: "100%",
|
|
49652
49641
|
justifyContent: "center"
|
|
49653
49642
|
};
|
|
49654
49643
|
|
|
@@ -49747,19 +49736,15 @@ var useCSVImportTab = function useCSVImportTab() {
|
|
|
49747
49736
|
studentDataFile = _useState5[0],
|
|
49748
49737
|
setStudentDataFile = _useState5[1];
|
|
49749
49738
|
|
|
49750
|
-
var _useState6 = React.useState([]),
|
|
49751
|
-
errorsValidate = _useState6[0],
|
|
49752
|
-
setErrorsValidate = _useState6[1];
|
|
49753
|
-
|
|
49754
49739
|
var isCheckDomainIBS = true;
|
|
49755
49740
|
|
|
49756
|
-
var
|
|
49757
|
-
defaultTeacher =
|
|
49758
|
-
setDefaultTeacher =
|
|
49741
|
+
var _useState6 = React.useState(0),
|
|
49742
|
+
defaultTeacher = _useState6[0],
|
|
49743
|
+
setDefaultTeacher = _useState6[1];
|
|
49759
49744
|
|
|
49760
|
-
var
|
|
49761
|
-
fileName =
|
|
49762
|
-
setFileName =
|
|
49745
|
+
var _useState7 = React.useState(""),
|
|
49746
|
+
fileName = _useState7[0],
|
|
49747
|
+
setFileName = _useState7[1];
|
|
49763
49748
|
|
|
49764
49749
|
React.useEffect(function () {
|
|
49765
49750
|
document.title = title$5;
|
|
@@ -49804,10 +49789,10 @@ var useCSVImportTab = function useCSVImportTab() {
|
|
|
49804
49789
|
|
|
49805
49790
|
var upload = React.useCallback(function (file) {
|
|
49806
49791
|
try {
|
|
49807
|
-
var
|
|
49792
|
+
var _exit2 = false;
|
|
49808
49793
|
|
|
49809
|
-
var _temp12 = function _temp12(
|
|
49810
|
-
if (
|
|
49794
|
+
var _temp12 = function _temp12(_result2) {
|
|
49795
|
+
if (_exit2) return _result2;
|
|
49811
49796
|
dispatch(setLoading(false));
|
|
49812
49797
|
var inputId = document.getElementById(id$1);
|
|
49813
49798
|
var input = document.getElementById('import-student');
|
|
@@ -49821,114 +49806,103 @@ var useCSVImportTab = function useCSVImportTab() {
|
|
|
49821
49806
|
dispatch(setLoading(true));
|
|
49822
49807
|
|
|
49823
49808
|
var _temp13 = _catch(function () {
|
|
49809
|
+
function _temp9(_result) {
|
|
49810
|
+
if (_exit2) return _result;
|
|
49811
|
+
dispatch(setAlert({
|
|
49812
|
+
type: "success",
|
|
49813
|
+
message: "Import CSV successfully"
|
|
49814
|
+
}));
|
|
49815
|
+
}
|
|
49816
|
+
|
|
49824
49817
|
var formData = new FormData();
|
|
49825
49818
|
formData.append("file", file, file.name);
|
|
49826
|
-
var typeOfCsv = type === CSVType$1.AllUser ? CsvImportType.Admin : CsvImportType.Teacher;
|
|
49827
|
-
return Promise.resolve(validateCsvApi(formData, typeOfCsv)).then(function (res) {
|
|
49828
|
-
var _exit2 = false;
|
|
49829
|
-
|
|
49830
|
-
function _temp9(_result2) {
|
|
49831
|
-
if (_exit2) return _result2;
|
|
49832
|
-
dispatch(setAlert({
|
|
49833
|
-
type: "success",
|
|
49834
|
-
message: "Import CSV successfully"
|
|
49835
|
-
}));
|
|
49836
|
-
}
|
|
49837
49819
|
|
|
49838
|
-
|
|
49839
|
-
|
|
49840
|
-
|
|
49841
|
-
|
|
49842
|
-
|
|
49843
|
-
|
|
49844
|
-
|
|
49845
|
-
|
|
49846
|
-
|
|
49847
|
-
|
|
49848
|
-
var fileText = fileTextRaw.trim();
|
|
49849
|
-
var rows = fileText.split("\n").map(function (row) {
|
|
49850
|
-
return row.trim();
|
|
49851
|
-
});
|
|
49852
|
-
var headerIndex = rows.findIndex(function (row) {
|
|
49853
|
-
return row.split(",").includes("First Name");
|
|
49854
|
-
});
|
|
49820
|
+
var _temp8 = function () {
|
|
49821
|
+
if (type == CSVType$1.AllUser) {
|
|
49822
|
+
return Promise.resolve(file.text()).then(function (fileTextRaw) {
|
|
49823
|
+
var fileText = fileTextRaw.trim();
|
|
49824
|
+
var rows = fileText.split("\n").map(function (row) {
|
|
49825
|
+
return row.trim();
|
|
49826
|
+
});
|
|
49827
|
+
var headerIndex = rows.findIndex(function (row) {
|
|
49828
|
+
return row.split(",").includes("First Name");
|
|
49829
|
+
});
|
|
49855
49830
|
|
|
49856
|
-
|
|
49857
|
-
|
|
49858
|
-
|
|
49831
|
+
if (headerIndex === 0) {
|
|
49832
|
+
throw new Error("Invalid CSV: Missing header row.");
|
|
49833
|
+
}
|
|
49859
49834
|
|
|
49860
|
-
|
|
49861
|
-
|
|
49862
|
-
|
|
49863
|
-
|
|
49864
|
-
|
|
49865
|
-
|
|
49866
|
-
|
|
49835
|
+
fileText = rows.slice(headerIndex).join("\n");
|
|
49836
|
+
var parsedData = Papa.parse(fileText, {
|
|
49837
|
+
header: true,
|
|
49838
|
+
skipEmptyLines: true
|
|
49839
|
+
});
|
|
49840
|
+
var header = parsedData.meta.fields;
|
|
49841
|
+
var dataRows = parsedData.data;
|
|
49867
49842
|
|
|
49868
|
-
|
|
49869
|
-
|
|
49870
|
-
|
|
49871
|
-
|
|
49872
|
-
|
|
49873
|
-
|
|
49874
|
-
|
|
49875
|
-
|
|
49876
|
-
|
|
49843
|
+
if (!!!dataRows.length) {
|
|
49844
|
+
dispatch(setLoading(false));
|
|
49845
|
+
dispatch(setAlert({
|
|
49846
|
+
type: "danger",
|
|
49847
|
+
message: 'The file has no data or some column names are misformed.'
|
|
49848
|
+
}));
|
|
49849
|
+
_exit2 = true;
|
|
49850
|
+
return;
|
|
49851
|
+
}
|
|
49877
49852
|
|
|
49878
|
-
|
|
49879
|
-
|
|
49853
|
+
var chunkSize = 10;
|
|
49854
|
+
var chunks = [];
|
|
49880
49855
|
|
|
49881
|
-
|
|
49882
|
-
|
|
49883
|
-
|
|
49884
|
-
|
|
49885
|
-
|
|
49886
|
-
});
|
|
49856
|
+
for (var _i = 0; _i < dataRows.length; _i += chunkSize) {
|
|
49857
|
+
var chunkData = dataRows.slice(_i, _i + chunkSize);
|
|
49858
|
+
var valuesOnly = chunkData.map(function (row) {
|
|
49859
|
+
return Object.values(row).map(function (v) {
|
|
49860
|
+
return (v != null ? v : "").toString().trim();
|
|
49887
49861
|
});
|
|
49862
|
+
});
|
|
49888
49863
|
|
|
49889
|
-
|
|
49890
|
-
|
|
49891
|
-
}
|
|
49892
|
-
|
|
49893
|
-
console.log({
|
|
49894
|
-
valuesOnly: valuesOnly
|
|
49895
|
-
});
|
|
49896
|
-
chunks.push(valuesOnly);
|
|
49864
|
+
if (header) {
|
|
49865
|
+
valuesOnly.unshift(header);
|
|
49897
49866
|
}
|
|
49898
49867
|
|
|
49899
|
-
|
|
49900
|
-
|
|
49901
|
-
chunks: chunks[i]
|
|
49902
|
-
})).then(function () {
|
|
49903
|
-
return Promise.resolve(new Promise(function (res) {
|
|
49904
|
-
return setTimeout(res, 500);
|
|
49905
|
-
})).then(function () {});
|
|
49906
|
-
});
|
|
49868
|
+
console.log({
|
|
49869
|
+
valuesOnly: valuesOnly
|
|
49907
49870
|
});
|
|
49871
|
+
chunks.push(valuesOnly);
|
|
49872
|
+
}
|
|
49908
49873
|
|
|
49909
|
-
|
|
49874
|
+
var _temp5 = _forTo(chunks, function (i) {
|
|
49875
|
+
return Promise.resolve(importChunkFileUsers({
|
|
49876
|
+
chunks: chunks[i]
|
|
49877
|
+
})).then(function () {
|
|
49878
|
+
return Promise.resolve(new Promise(function (res) {
|
|
49879
|
+
return setTimeout(res, 500);
|
|
49880
|
+
})).then(function () {});
|
|
49881
|
+
});
|
|
49910
49882
|
});
|
|
49911
|
-
} else {
|
|
49912
|
-
var _temp14 = function () {
|
|
49913
|
-
if (isCheckDomainIBS) {
|
|
49914
|
-
var _temp15 = function () {
|
|
49915
|
-
if (type == CSVType$1.ClassReflection) {
|
|
49916
|
-
return Promise.resolve(importClassReflectionCSV$1(formData)).then(function () {});
|
|
49917
|
-
}
|
|
49918
|
-
}();
|
|
49919
|
-
|
|
49920
|
-
if (_temp15 && _temp15.then) return _temp15.then(function () {});
|
|
49921
|
-
} else {
|
|
49922
|
-
return Promise.resolve(importCSV$1(formData, type.toString())).then(function () {});
|
|
49923
|
-
}
|
|
49924
|
-
}();
|
|
49925
49883
|
|
|
49926
|
-
if (
|
|
49927
|
-
}
|
|
49928
|
-
}
|
|
49884
|
+
if (_temp5 && _temp5.then) return _temp5.then(function () {});
|
|
49885
|
+
});
|
|
49886
|
+
} else {
|
|
49887
|
+
var _temp14 = function () {
|
|
49888
|
+
if (isCheckDomainIBS) {
|
|
49889
|
+
var _temp15 = function () {
|
|
49890
|
+
if (type == CSVType$1.ClassReflection) {
|
|
49891
|
+
return Promise.resolve(importClassReflectionCSV$1(formData)).then(function () {});
|
|
49892
|
+
}
|
|
49893
|
+
}();
|
|
49929
49894
|
|
|
49930
|
-
|
|
49931
|
-
|
|
49895
|
+
if (_temp15 && _temp15.then) return _temp15.then(function () {});
|
|
49896
|
+
} else {
|
|
49897
|
+
return Promise.resolve(importCSV$1(formData, type.toString())).then(function () {});
|
|
49898
|
+
}
|
|
49899
|
+
}();
|
|
49900
|
+
|
|
49901
|
+
if (_temp14 && _temp14.then) return _temp14.then(function () {});
|
|
49902
|
+
}
|
|
49903
|
+
}();
|
|
49904
|
+
|
|
49905
|
+
return _temp8 && _temp8.then ? _temp8.then(_temp9) : _temp9(_temp8);
|
|
49932
49906
|
}, function (err) {
|
|
49933
49907
|
var _err$response, _err$response$data;
|
|
49934
49908
|
|
|
@@ -50083,9 +50057,7 @@ var useCSVImportTab = function useCSVImportTab() {
|
|
|
50083
50057
|
defaultTeacher: defaultTeacher,
|
|
50084
50058
|
fileName: fileName,
|
|
50085
50059
|
onStudentSubmit: onStudentSubmit,
|
|
50086
|
-
downloadTemplateUser: downloadTemplateUser
|
|
50087
|
-
errorsValidate: errorsValidate,
|
|
50088
|
-
setErrorsValidate: setErrorsValidate
|
|
50060
|
+
downloadTemplateUser: downloadTemplateUser
|
|
50089
50061
|
};
|
|
50090
50062
|
};
|
|
50091
50063
|
|
|
@@ -50112,8 +50084,7 @@ var CSVImport = function CSVImport() {
|
|
|
50112
50084
|
setArrStudent = _useCSVImportTab.setArrStudent,
|
|
50113
50085
|
buttons = _useCSVImportTab.buttons,
|
|
50114
50086
|
upload = _useCSVImportTab.upload,
|
|
50115
|
-
downloadTemplateUser = _useCSVImportTab.downloadTemplateUser
|
|
50116
|
-
errorsValidate = _useCSVImportTab.errorsValidate;
|
|
50087
|
+
downloadTemplateUser = _useCSVImportTab.downloadTemplateUser;
|
|
50117
50088
|
|
|
50118
50089
|
var _useTranslation = reactI18next.useTranslation(),
|
|
50119
50090
|
t = _useTranslation.t;
|
|
@@ -50166,9 +50137,9 @@ var CSVImport = function CSVImport() {
|
|
|
50166
50137
|
accept: "text/csv"
|
|
50167
50138
|
}), React__default.createElement(reactstrap.Col, {
|
|
50168
50139
|
md: 6,
|
|
50169
|
-
className: "mb-2 d-flex
|
|
50140
|
+
className: "mb-2 d-flex align-items-end"
|
|
50170
50141
|
}, React__default.createElement(reactstrap.Row, {
|
|
50171
|
-
className: "w-100
|
|
50142
|
+
className: "w-100"
|
|
50172
50143
|
}, React__default.createElement(reactstrap.Col, {
|
|
50173
50144
|
md: 12,
|
|
50174
50145
|
className: ""
|
|
@@ -50197,9 +50168,7 @@ var CSVImport = function CSVImport() {
|
|
|
50197
50168
|
})))), React__default.createElement(reactstrap.Col, {
|
|
50198
50169
|
md: 6,
|
|
50199
50170
|
className: "mb-2"
|
|
50200
|
-
}, React__default.createElement(reactstrap.Row, {
|
|
50201
|
-
className: "flex-column"
|
|
50202
|
-
}, React__default.createElement(reactstrap.Col, {
|
|
50171
|
+
}, React__default.createElement(reactstrap.Row, null, React__default.createElement(reactstrap.Col, {
|
|
50203
50172
|
md: 12,
|
|
50204
50173
|
className: "mb-2 text-right"
|
|
50205
50174
|
}, React__default.createElement(reactstrap.Button, {
|
|
@@ -50229,12 +50198,7 @@ var CSVImport = function CSVImport() {
|
|
|
50229
50198
|
return setType(button.type);
|
|
50230
50199
|
}
|
|
50231
50200
|
});
|
|
50232
|
-
}))
|
|
50233
|
-
return React__default.createElement(ErrorHandler, {
|
|
50234
|
-
key: index,
|
|
50235
|
-
text: error
|
|
50236
|
-
});
|
|
50237
|
-
}))));
|
|
50201
|
+
})))));
|
|
50238
50202
|
}))) );
|
|
50239
50203
|
};
|
|
50240
50204
|
|