mario-education 2.4.296-release → 2.4.297-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.
|
@@ -39,5 +39,6 @@ declare const useQuestionDetail: (id?: number | undefined, type?: number | undef
|
|
|
39
39
|
setEditedTrue: () => Promise<void>;
|
|
40
40
|
handleGetLabelQuestions: (questionType: any) => Promise<void>;
|
|
41
41
|
labelQuestions: IQuestionLabel;
|
|
42
|
+
tinyMCEKey: string;
|
|
42
43
|
};
|
|
43
44
|
export default useQuestionDetail;
|
package/dist/index.js
CHANGED
|
@@ -1648,6 +1648,7 @@ var SkillSelector = function SkillSelector(_ref) {
|
|
|
1648
1648
|
};
|
|
1649
1649
|
|
|
1650
1650
|
var QUESTION_URL = marioCore.BASE_URL + "/api/question";
|
|
1651
|
+
var TINY_MCE_KEY_URL = "/api/TinyMCEKey";
|
|
1651
1652
|
var get$2 = function get(filter) {
|
|
1652
1653
|
return marioCore.api.get(QUESTION_URL, {
|
|
1653
1654
|
params: filter
|
|
@@ -1683,6 +1684,9 @@ var getLabelQuestions = function getLabelQuestions(filter) {
|
|
|
1683
1684
|
params: filter
|
|
1684
1685
|
});
|
|
1685
1686
|
};
|
|
1687
|
+
var getTinyMCEKeyApi = function getTinyMCEKeyApi() {
|
|
1688
|
+
return marioCore.api.get("" + TINY_MCE_KEY_URL);
|
|
1689
|
+
};
|
|
1686
1690
|
|
|
1687
1691
|
var QuestionSelector = function QuestionSelector(_ref) {
|
|
1688
1692
|
var value = _ref.value,
|
|
@@ -14452,7 +14456,9 @@ var SliderScale = function SliderScale(_ref) {
|
|
|
14452
14456
|
id: "combo-box-demo",
|
|
14453
14457
|
freeSolo: true,
|
|
14454
14458
|
options: fromLabels.filter(function (r) {
|
|
14455
|
-
|
|
14459
|
+
var _fromLabel$toLocaleLo;
|
|
14460
|
+
|
|
14461
|
+
return !(fromLabel !== null && fromLabel !== void 0 && fromLabel.trim()) ? true : r.toLocaleLowerCase().includes(fromLabel === null || fromLabel === void 0 ? void 0 : (_fromLabel$toLocaleLo = fromLabel.toLocaleLowerCase()) === null || _fromLabel$toLocaleLo === void 0 ? void 0 : _fromLabel$toLocaleLo.trim());
|
|
14456
14462
|
}) || [],
|
|
14457
14463
|
value: fromLabel || null,
|
|
14458
14464
|
onChange: function onChange(_e, value) {
|
|
@@ -14473,7 +14479,9 @@ var SliderScale = function SliderScale(_ref) {
|
|
|
14473
14479
|
id: "combo-box-demo",
|
|
14474
14480
|
freeSolo: true,
|
|
14475
14481
|
options: toLabels.filter(function (r) {
|
|
14476
|
-
|
|
14482
|
+
var _toLabel$toLocaleLowe;
|
|
14483
|
+
|
|
14484
|
+
return !(toLabel !== null && toLabel !== void 0 && toLabel.trim()) ? true : r.toLocaleLowerCase().includes(toLabel === null || toLabel === void 0 ? void 0 : (_toLabel$toLocaleLowe = toLabel.toLocaleLowerCase()) === null || _toLabel$toLocaleLowe === void 0 ? void 0 : _toLabel$toLocaleLowe.trim());
|
|
14477
14485
|
}) || [],
|
|
14478
14486
|
value: toLabel || null,
|
|
14479
14487
|
onChange: function onChange(_e, value) {
|
|
@@ -15102,6 +15110,10 @@ var useQuestionDetail$1 = function useQuestionDetail(id, type) {
|
|
|
15102
15110
|
labelQuestions = _useState3[0],
|
|
15103
15111
|
setLabelQuestions = _useState3[1];
|
|
15104
15112
|
|
|
15113
|
+
var _useState4 = React.useState(""),
|
|
15114
|
+
tinyMCEKey = _useState4[0],
|
|
15115
|
+
setTinyMCEKey = _useState4[1];
|
|
15116
|
+
|
|
15105
15117
|
var getMinIdCategory = function getMinIdCategory(categories) {
|
|
15106
15118
|
var sortedCategory = categories.sort(function (c1, c2) {
|
|
15107
15119
|
return c1.id - c2.id;
|
|
@@ -15110,7 +15122,7 @@ var useQuestionDetail$1 = function useQuestionDetail(id, type) {
|
|
|
15110
15122
|
return (firstCategory === null || firstCategory === void 0 ? void 0 : firstCategory.id) || 1;
|
|
15111
15123
|
};
|
|
15112
15124
|
|
|
15113
|
-
var
|
|
15125
|
+
var getTinyMCEKey = function getTinyMCEKey() {
|
|
15114
15126
|
try {
|
|
15115
15127
|
var _temp3 = function _temp3() {
|
|
15116
15128
|
dispatch(marioCore.setLoading(false));
|
|
@@ -15119,6 +15131,37 @@ var useQuestionDetail$1 = function useQuestionDetail(id, type) {
|
|
|
15119
15131
|
dispatch(marioCore.setLoading(true));
|
|
15120
15132
|
|
|
15121
15133
|
var _temp4 = _catch(function () {
|
|
15134
|
+
return Promise.resolve(getTinyMCEKeyApi()).then(function (res) {
|
|
15135
|
+
var data = res.data;
|
|
15136
|
+
|
|
15137
|
+
if (!!data) {
|
|
15138
|
+
setTinyMCEKey(data.key);
|
|
15139
|
+
}
|
|
15140
|
+
});
|
|
15141
|
+
}, function (err) {
|
|
15142
|
+
var _err$response, _err$response$data;
|
|
15143
|
+
|
|
15144
|
+
dispatch(marioCore.setAlert({
|
|
15145
|
+
type: "danger",
|
|
15146
|
+
message: ((_err$response = err.response) === null || _err$response === void 0 ? void 0 : (_err$response$data = _err$response.data) === null || _err$response$data === void 0 ? void 0 : _err$response$data.title) || "Get question failed"
|
|
15147
|
+
}));
|
|
15148
|
+
});
|
|
15149
|
+
|
|
15150
|
+
return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4));
|
|
15151
|
+
} catch (e) {
|
|
15152
|
+
return Promise.reject(e);
|
|
15153
|
+
}
|
|
15154
|
+
};
|
|
15155
|
+
|
|
15156
|
+
var getQuestionCategories = function getQuestionCategories() {
|
|
15157
|
+
try {
|
|
15158
|
+
var _temp7 = function _temp7() {
|
|
15159
|
+
dispatch(marioCore.setLoading(false));
|
|
15160
|
+
};
|
|
15161
|
+
|
|
15162
|
+
dispatch(marioCore.setLoading(true));
|
|
15163
|
+
|
|
15164
|
+
var _temp8 = _catch(function () {
|
|
15122
15165
|
return Promise.resolve(get$i()).then(function (res) {
|
|
15123
15166
|
var items = res.data.items;
|
|
15124
15167
|
var categoryId = getMinIdCategory(items);
|
|
@@ -15127,15 +15170,15 @@ var useQuestionDetail$1 = function useQuestionDetail(id, type) {
|
|
|
15127
15170
|
}));
|
|
15128
15171
|
});
|
|
15129
15172
|
}, function (err) {
|
|
15130
|
-
var _err$
|
|
15173
|
+
var _err$response2, _err$response2$data;
|
|
15131
15174
|
|
|
15132
15175
|
dispatch(marioCore.setAlert({
|
|
15133
15176
|
type: "danger",
|
|
15134
|
-
message: ((_err$
|
|
15177
|
+
message: ((_err$response2 = err.response) === null || _err$response2 === void 0 ? void 0 : (_err$response2$data = _err$response2.data) === null || _err$response2$data === void 0 ? void 0 : _err$response2$data.title) || "Get question failed"
|
|
15135
15178
|
}));
|
|
15136
15179
|
});
|
|
15137
15180
|
|
|
15138
|
-
return Promise.resolve(
|
|
15181
|
+
return Promise.resolve(_temp8 && _temp8.then ? _temp8.then(_temp7) : _temp7(_temp8));
|
|
15139
15182
|
} catch (e) {
|
|
15140
15183
|
return Promise.reject(e);
|
|
15141
15184
|
}
|
|
@@ -15154,13 +15197,13 @@ var useQuestionDetail$1 = function useQuestionDetail(id, type) {
|
|
|
15154
15197
|
}, [id, type]);
|
|
15155
15198
|
var getData = React.useCallback(function () {
|
|
15156
15199
|
try {
|
|
15157
|
-
var
|
|
15200
|
+
var _temp11 = function _temp11() {
|
|
15158
15201
|
dispatch(marioCore.setLoading(false));
|
|
15159
15202
|
};
|
|
15160
15203
|
|
|
15161
15204
|
dispatch(marioCore.setLoading(true));
|
|
15162
15205
|
|
|
15163
|
-
var
|
|
15206
|
+
var _temp12 = _catch(function () {
|
|
15164
15207
|
return Promise.resolve(getById$2(id)).then(function (res) {
|
|
15165
15208
|
var _res$data$category, _res$data, _res$data2, _res$data3;
|
|
15166
15209
|
|
|
@@ -15175,15 +15218,15 @@ var useQuestionDetail$1 = function useQuestionDetail(id, type) {
|
|
|
15175
15218
|
}
|
|
15176
15219
|
});
|
|
15177
15220
|
}, function (err) {
|
|
15178
|
-
var _err$
|
|
15221
|
+
var _err$response3, _err$response3$data;
|
|
15179
15222
|
|
|
15180
15223
|
dispatch(marioCore.setAlert({
|
|
15181
15224
|
type: "danger",
|
|
15182
|
-
message: ((_err$
|
|
15225
|
+
message: ((_err$response3 = err.response) === null || _err$response3 === void 0 ? void 0 : (_err$response3$data = _err$response3.data) === null || _err$response3$data === void 0 ? void 0 : _err$response3$data.title) || "Get key failed"
|
|
15183
15226
|
}));
|
|
15184
15227
|
});
|
|
15185
15228
|
|
|
15186
|
-
return Promise.resolve(
|
|
15229
|
+
return Promise.resolve(_temp12 && _temp12.then ? _temp12.then(_temp11) : _temp11(_temp12));
|
|
15187
15230
|
} catch (e) {
|
|
15188
15231
|
return Promise.reject(e);
|
|
15189
15232
|
}
|
|
@@ -15200,14 +15243,14 @@ var useQuestionDetail$1 = function useQuestionDetail(id, type) {
|
|
|
15200
15243
|
try {
|
|
15201
15244
|
var _exit2 = false;
|
|
15202
15245
|
|
|
15203
|
-
var
|
|
15246
|
+
var _temp15 = function _temp15(_result) {
|
|
15204
15247
|
if (_exit2) return _result;
|
|
15205
15248
|
dispatch(marioCore.setLoading(false));
|
|
15206
15249
|
};
|
|
15207
15250
|
|
|
15208
15251
|
dispatch(marioCore.setLoading(true));
|
|
15209
15252
|
|
|
15210
|
-
var
|
|
15253
|
+
var _temp16 = _catch(function () {
|
|
15211
15254
|
var next = !!id ? update$2 : create$2;
|
|
15212
15255
|
var validator = validationChoices(data);
|
|
15213
15256
|
if (validator.isError) throw new Error(validator.message);
|
|
@@ -15220,28 +15263,28 @@ var useQuestionDetail$1 = function useQuestionDetail(id, type) {
|
|
|
15220
15263
|
backToList();
|
|
15221
15264
|
});
|
|
15222
15265
|
}, function (err) {
|
|
15223
|
-
var _err$
|
|
15266
|
+
var _err$response4, _err$response4$data;
|
|
15224
15267
|
|
|
15225
15268
|
dispatch(marioCore.setAlert({
|
|
15226
15269
|
type: "danger",
|
|
15227
|
-
message: ((_err$
|
|
15270
|
+
message: ((_err$response4 = err.response) === null || _err$response4 === void 0 ? void 0 : (_err$response4$data = _err$response4.data) === null || _err$response4$data === void 0 ? void 0 : _err$response4$data.title) || err.message
|
|
15228
15271
|
}));
|
|
15229
15272
|
});
|
|
15230
15273
|
|
|
15231
|
-
return Promise.resolve(
|
|
15274
|
+
return Promise.resolve(_temp16 && _temp16.then ? _temp16.then(_temp15) : _temp15(_temp16));
|
|
15232
15275
|
} catch (e) {
|
|
15233
15276
|
return Promise.reject(e);
|
|
15234
15277
|
}
|
|
15235
15278
|
}, [id]);
|
|
15236
15279
|
var handleGetLabelQuestions = React.useCallback(function (questionType) {
|
|
15237
15280
|
try {
|
|
15238
|
-
var
|
|
15281
|
+
var _temp19 = function _temp19() {
|
|
15239
15282
|
dispatch(marioCore.setLoading(false));
|
|
15240
15283
|
};
|
|
15241
15284
|
|
|
15242
15285
|
dispatch(marioCore.setLoading(true));
|
|
15243
15286
|
|
|
15244
|
-
var
|
|
15287
|
+
var _temp20 = _catch(function () {
|
|
15245
15288
|
return Promise.resolve(getLabelQuestions({
|
|
15246
15289
|
isDefaultSurvey: true,
|
|
15247
15290
|
questionType: questionType
|
|
@@ -15249,19 +15292,22 @@ var useQuestionDetail$1 = function useQuestionDetail(id, type) {
|
|
|
15249
15292
|
setLabelQuestions(res.data);
|
|
15250
15293
|
});
|
|
15251
15294
|
}, function (err) {
|
|
15252
|
-
var _err$
|
|
15295
|
+
var _err$response5, _err$response5$data;
|
|
15253
15296
|
|
|
15254
15297
|
dispatch(marioCore.setAlert({
|
|
15255
15298
|
type: "danger",
|
|
15256
|
-
message: ((_err$
|
|
15299
|
+
message: ((_err$response5 = err.response) === null || _err$response5 === void 0 ? void 0 : (_err$response5$data = _err$response5.data) === null || _err$response5$data === void 0 ? void 0 : _err$response5$data.title) || err.message
|
|
15257
15300
|
}));
|
|
15258
15301
|
});
|
|
15259
15302
|
|
|
15260
|
-
return Promise.resolve(
|
|
15303
|
+
return Promise.resolve(_temp20 && _temp20.then ? _temp20.then(_temp19) : _temp19(_temp20));
|
|
15261
15304
|
} catch (e) {
|
|
15262
15305
|
return Promise.reject(e);
|
|
15263
15306
|
}
|
|
15264
15307
|
}, []);
|
|
15308
|
+
React.useEffect(function () {
|
|
15309
|
+
getTinyMCEKey();
|
|
15310
|
+
}, []);
|
|
15265
15311
|
return {
|
|
15266
15312
|
questionDetail: questionDetail,
|
|
15267
15313
|
setEditorRef: setEditorRef,
|
|
@@ -15271,7 +15317,8 @@ var useQuestionDetail$1 = function useQuestionDetail(id, type) {
|
|
|
15271
15317
|
setEdited: setEdited,
|
|
15272
15318
|
setEditedTrue: setEditedTrue,
|
|
15273
15319
|
handleGetLabelQuestions: handleGetLabelQuestions,
|
|
15274
|
-
labelQuestions: labelQuestions
|
|
15320
|
+
labelQuestions: labelQuestions,
|
|
15321
|
+
tinyMCEKey: tinyMCEKey
|
|
15275
15322
|
};
|
|
15276
15323
|
};
|
|
15277
15324
|
|
|
@@ -15348,7 +15395,8 @@ var QuestionDetail = function QuestionDetail() {
|
|
|
15348
15395
|
setEdited = _useQuestionDetail.setEdited,
|
|
15349
15396
|
setEditedTrue = _useQuestionDetail.setEditedTrue,
|
|
15350
15397
|
handleGetLabelQuestions = _useQuestionDetail.handleGetLabelQuestions,
|
|
15351
|
-
labelQuestions = _useQuestionDetail.labelQuestions
|
|
15398
|
+
labelQuestions = _useQuestionDetail.labelQuestions,
|
|
15399
|
+
tinyMCEKey = _useQuestionDetail.tinyMCEKey;
|
|
15352
15400
|
|
|
15353
15401
|
var header = !!id ? t(EDIT_QUESTION_HEADER) : t(CREATE_QUESTION_HEADER);
|
|
15354
15402
|
var confirmText = !!id ? t("update") : t("create");
|
|
@@ -15453,8 +15501,8 @@ var QuestionDetail = function QuestionDetail() {
|
|
|
15453
15501
|
className: styles["form-question-text"] + " mb-2"
|
|
15454
15502
|
}, React__default.createElement(marioCore.RequiredLabel, {
|
|
15455
15503
|
text: t("question_text")
|
|
15456
|
-
}), (questionDetail.text || !id) && React__default.createElement(tinymceReact.Editor, {
|
|
15457
|
-
apiKey:
|
|
15504
|
+
}), (questionDetail.text || !id) && !!tinyMCEKey && React__default.createElement(tinymceReact.Editor, {
|
|
15505
|
+
apiKey: tinyMCEKey,
|
|
15458
15506
|
initialValue: questionDetail.text,
|
|
15459
15507
|
init: marioCore.editorConfig.question,
|
|
15460
15508
|
onEditorChange: function onEditorChange(content) {
|
|
@@ -37871,18 +37919,13 @@ var Emotion$1 = Emotion;
|
|
|
37871
37919
|
|
|
37872
37920
|
var _extends_1 = createCommonjsModule(function (module) {
|
|
37873
37921
|
function _extends() {
|
|
37874
|
-
module.exports = _extends = Object.assign ? Object.assign.bind() : function (
|
|
37875
|
-
for (var
|
|
37876
|
-
var
|
|
37877
|
-
for (var
|
|
37878
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
37879
|
-
target[key] = source[key];
|
|
37880
|
-
}
|
|
37881
|
-
}
|
|
37922
|
+
return (module.exports = _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
37923
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
37924
|
+
var t = arguments[e];
|
|
37925
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
37882
37926
|
}
|
|
37883
|
-
return
|
|
37884
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
37885
|
-
return _extends.apply(this, arguments);
|
|
37927
|
+
return n;
|
|
37928
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _extends.apply(null, arguments);
|
|
37886
37929
|
}
|
|
37887
37930
|
module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
37888
37931
|
});
|
|
@@ -49893,19 +49936,13 @@ module.exports = toPropertyKey, module.exports.__esModule = true, module.exports
|
|
|
49893
49936
|
unwrapExports(toPropertyKey_1);
|
|
49894
49937
|
|
|
49895
49938
|
var defineProperty$1 = createCommonjsModule(function (module) {
|
|
49896
|
-
function _defineProperty(
|
|
49897
|
-
|
|
49898
|
-
|
|
49899
|
-
|
|
49900
|
-
|
|
49901
|
-
|
|
49902
|
-
|
|
49903
|
-
writable: true
|
|
49904
|
-
});
|
|
49905
|
-
} else {
|
|
49906
|
-
obj[key] = value;
|
|
49907
|
-
}
|
|
49908
|
-
return obj;
|
|
49939
|
+
function _defineProperty(e, r, t) {
|
|
49940
|
+
return (r = toPropertyKey_1(r)) in e ? Object.defineProperty(e, r, {
|
|
49941
|
+
value: t,
|
|
49942
|
+
enumerable: !0,
|
|
49943
|
+
configurable: !0,
|
|
49944
|
+
writable: !0
|
|
49945
|
+
}) : e[r] = t, e;
|
|
49909
49946
|
}
|
|
49910
49947
|
module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
49911
49948
|
});
|
|
@@ -49913,10 +49950,8 @@ module.exports = _defineProperty, module.exports.__esModule = true, module.expor
|
|
|
49913
49950
|
var _defineProperty$2 = unwrapExports(defineProperty$1);
|
|
49914
49951
|
|
|
49915
49952
|
var classCallCheck = createCommonjsModule(function (module) {
|
|
49916
|
-
function _classCallCheck(
|
|
49917
|
-
if (!(
|
|
49918
|
-
throw new TypeError("Cannot call a class as a function");
|
|
49919
|
-
}
|
|
49953
|
+
function _classCallCheck(a, n) {
|
|
49954
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
49920
49955
|
}
|
|
49921
49956
|
module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
49922
49957
|
});
|
|
@@ -49924,22 +49959,16 @@ module.exports = _classCallCheck, module.exports.__esModule = true, module.expor
|
|
|
49924
49959
|
var _classCallCheck$1 = unwrapExports(classCallCheck);
|
|
49925
49960
|
|
|
49926
49961
|
var createClass = createCommonjsModule(function (module) {
|
|
49927
|
-
function _defineProperties(
|
|
49928
|
-
for (var
|
|
49929
|
-
var
|
|
49930
|
-
|
|
49931
|
-
descriptor.configurable = true;
|
|
49932
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
49933
|
-
Object.defineProperty(target, toPropertyKey_1(descriptor.key), descriptor);
|
|
49962
|
+
function _defineProperties(e, r) {
|
|
49963
|
+
for (var t = 0; t < r.length; t++) {
|
|
49964
|
+
var o = r[t];
|
|
49965
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey_1(o.key), o);
|
|
49934
49966
|
}
|
|
49935
49967
|
}
|
|
49936
|
-
function _createClass(
|
|
49937
|
-
|
|
49938
|
-
|
|
49939
|
-
|
|
49940
|
-
writable: false
|
|
49941
|
-
});
|
|
49942
|
-
return Constructor;
|
|
49968
|
+
function _createClass(e, r, t) {
|
|
49969
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
49970
|
+
writable: !1
|
|
49971
|
+
}), e;
|
|
49943
49972
|
}
|
|
49944
49973
|
module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
49945
49974
|
});
|
|
@@ -50103,8 +50132,8 @@ function hasLoadedNamespace(ns, i18n) {
|
|
|
50103
50132
|
}
|
|
50104
50133
|
|
|
50105
50134
|
var arrayWithHoles = createCommonjsModule(function (module) {
|
|
50106
|
-
function _arrayWithHoles(
|
|
50107
|
-
if (Array.isArray(
|
|
50135
|
+
function _arrayWithHoles(r) {
|
|
50136
|
+
if (Array.isArray(r)) return r;
|
|
50108
50137
|
}
|
|
50109
50138
|
module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
50110
50139
|
});
|
|
@@ -50145,10 +50174,10 @@ module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module
|
|
|
50145
50174
|
unwrapExports(iterableToArrayLimit);
|
|
50146
50175
|
|
|
50147
50176
|
var arrayLikeToArray = createCommonjsModule(function (module) {
|
|
50148
|
-
function _arrayLikeToArray(
|
|
50149
|
-
|
|
50150
|
-
for (var
|
|
50151
|
-
return
|
|
50177
|
+
function _arrayLikeToArray(r, a) {
|
|
50178
|
+
(null == a || a > r.length) && (a = r.length);
|
|
50179
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
50180
|
+
return n;
|
|
50152
50181
|
}
|
|
50153
50182
|
module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
50154
50183
|
});
|
|
@@ -50156,13 +50185,12 @@ module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exp
|
|
|
50156
50185
|
unwrapExports(arrayLikeToArray);
|
|
50157
50186
|
|
|
50158
50187
|
var unsupportedIterableToArray = createCommonjsModule(function (module) {
|
|
50159
|
-
function _unsupportedIterableToArray(
|
|
50160
|
-
if (
|
|
50161
|
-
|
|
50162
|
-
|
|
50163
|
-
|
|
50164
|
-
|
|
50165
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
|
|
50188
|
+
function _unsupportedIterableToArray(r, a) {
|
|
50189
|
+
if (r) {
|
|
50190
|
+
if ("string" == typeof r) return arrayLikeToArray(r, a);
|
|
50191
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
50192
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0;
|
|
50193
|
+
}
|
|
50166
50194
|
}
|
|
50167
50195
|
module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
50168
50196
|
});
|
|
@@ -50179,8 +50207,8 @@ module.exports = _nonIterableRest, module.exports.__esModule = true, module.expo
|
|
|
50179
50207
|
unwrapExports(nonIterableRest);
|
|
50180
50208
|
|
|
50181
50209
|
var slicedToArray = createCommonjsModule(function (module) {
|
|
50182
|
-
function _slicedToArray(
|
|
50183
|
-
return arrayWithHoles(
|
|
50210
|
+
function _slicedToArray(r, e) {
|
|
50211
|
+
return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();
|
|
50184
50212
|
}
|
|
50185
50213
|
module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
50186
50214
|
});
|