mario-core 2.9.411-feedback → 2.9.412-feedback
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/index.js +16 -15
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +16 -15
- package/dist/index.modern.js.map +1 -1
- package/dist/services/weeklyQuestService.d.ts +1 -0
- package/dist/types/WeeklyQuest.d.ts +37 -0
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -39773,7 +39773,8 @@ var BlockLogin = function BlockLogin(_ref) {
|
|
|
39773
39773
|
lg: 6,
|
|
39774
39774
|
md: 6,
|
|
39775
39775
|
xs: 12,
|
|
39776
|
-
className: styles["btn-login-sso"] + " pl-md-2"
|
|
39776
|
+
className: styles["btn-login-sso"] + " pl-md-2",
|
|
39777
|
+
hidden: !(school !== null && school !== void 0 && school.schoolId)
|
|
39777
39778
|
}, React.createElement("div", {
|
|
39778
39779
|
className: styles["btn-login-with-sso"],
|
|
39779
39780
|
onClick: function onClick() {
|
|
@@ -40964,6 +40965,8 @@ var useLogin = function useLogin() {
|
|
|
40964
40965
|
try {
|
|
40965
40966
|
msalInstance.handleRedirectPromise().then(function (tokenResponse) {
|
|
40966
40967
|
try {
|
|
40968
|
+
if (!(school !== null && school !== void 0 && school.schoolId)) return Promise.resolve();
|
|
40969
|
+
|
|
40967
40970
|
var _temp38 = function () {
|
|
40968
40971
|
if (!tokenResponse) {
|
|
40969
40972
|
var accounts = msalInstance.getAllAccounts();
|
|
@@ -49801,7 +49804,7 @@ var useCSVImportTab = function useCSVImportTab() {
|
|
|
49801
49804
|
return row.trim();
|
|
49802
49805
|
});
|
|
49803
49806
|
var headerIndex = rows.findIndex(function (row) {
|
|
49804
|
-
return row.split(",").includes("
|
|
49807
|
+
return row.split(",").includes("First Name");
|
|
49805
49808
|
});
|
|
49806
49809
|
|
|
49807
49810
|
if (headerIndex === 0) {
|
|
@@ -49815,6 +49818,17 @@ var useCSVImportTab = function useCSVImportTab() {
|
|
|
49815
49818
|
});
|
|
49816
49819
|
var header = parsedData.meta.fields;
|
|
49817
49820
|
var dataRows = parsedData.data;
|
|
49821
|
+
|
|
49822
|
+
if (!!!dataRows.length) {
|
|
49823
|
+
dispatch(setLoading(false));
|
|
49824
|
+
dispatch(setAlert({
|
|
49825
|
+
type: "danger",
|
|
49826
|
+
message: 'The file has no data or some column names are misformed.'
|
|
49827
|
+
}));
|
|
49828
|
+
_exit2 = true;
|
|
49829
|
+
return;
|
|
49830
|
+
}
|
|
49831
|
+
|
|
49818
49832
|
var chunkSize = 10;
|
|
49819
49833
|
var chunks = [];
|
|
49820
49834
|
|
|
@@ -49825,12 +49839,6 @@ var useCSVImportTab = function useCSVImportTab() {
|
|
|
49825
49839
|
return (v != null ? v : "").toString().trim();
|
|
49826
49840
|
});
|
|
49827
49841
|
});
|
|
49828
|
-
console.log({
|
|
49829
|
-
valuesOnly: valuesOnly
|
|
49830
|
-
});
|
|
49831
|
-
console.log({
|
|
49832
|
-
chunkData: chunkData
|
|
49833
|
-
});
|
|
49834
49842
|
|
|
49835
49843
|
if (header) {
|
|
49836
49844
|
valuesOnly.unshift(header);
|
|
@@ -49842,13 +49850,6 @@ var useCSVImportTab = function useCSVImportTab() {
|
|
|
49842
49850
|
chunks.push(valuesOnly);
|
|
49843
49851
|
}
|
|
49844
49852
|
|
|
49845
|
-
console.log({
|
|
49846
|
-
chunks: chunks
|
|
49847
|
-
});
|
|
49848
|
-
console.log({
|
|
49849
|
-
header: header
|
|
49850
|
-
});
|
|
49851
|
-
|
|
49852
49853
|
var _temp5 = _forTo(chunks, function (i) {
|
|
49853
49854
|
return Promise.resolve(importChunkFileUsers({
|
|
49854
49855
|
chunks: chunks[i]
|