mario-education 2.4.320-release → 2.4.321-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/components/layouts/hooks/useHeaderSideBar.d.ts +1 -1
- package/dist/containers/ConductSurvey/components/diaglog/hooks/useInterventionDialog.d.ts +1 -1
- package/dist/containers/Dashboard/components/ColumnChartAndPercent.d.ts +1 -2
- package/dist/containers/Dashboard/configs/types.d.ts +1 -1
- package/dist/containers/Dashboard/configs/utils.d.ts +1 -1
- package/dist/containers/Dashboard/hooks/useChartDatas.d.ts +5 -5
- package/dist/containers/Dashboard/hooks/useDashboard.d.ts +2 -2
- package/dist/containers/MyStudent/components/NewOverview/Chat/configs/utils.d.ts +3 -1
- package/dist/containers/SurveyDashboard/configs/chartOptions.d.ts +1 -1
- package/dist/containers/SurveyDashboard/configs/overviewFn.d.ts +3 -1
- package/dist/containers/SurveyDashboard/configs/types.d.ts +1 -4
- package/dist/containers/SurveyDashboard/configs/utils.d.ts +3 -1
- package/dist/containers/SurveyDashboard/hooks/useChartDatas.d.ts +3 -3
- package/dist/containers/SurveyDashboard/hooks/useDashboard.d.ts +2 -1
- package/dist/index.js +170 -357
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +170 -357
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/type.d.ts +0 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -80,6 +80,7 @@ var Typography = _interopDefault(require('@material-ui/core/Typography'));
|
|
|
80
80
|
var IconButton = _interopDefault(require('@material-ui/core/IconButton'));
|
|
81
81
|
var MenuIcon = _interopDefault(require('@material-ui/icons/Menu'));
|
|
82
82
|
var NotificationsIcon = _interopDefault(require('@material-ui/icons/Notifications'));
|
|
83
|
+
var HelpOutlineIcon = _interopDefault(require('@material-ui/icons/HelpOutline'));
|
|
83
84
|
|
|
84
85
|
// A type of promise-like that resolves synchronously and supports only one observer
|
|
85
86
|
const _Pact = /*#__PURE__*/(function() {
|
|
@@ -32334,9 +32335,11 @@ var GenerateChartData = function GenerateChartData(_ref) {
|
|
|
32334
32335
|
var newSeries = series.filter(function (_, index) {
|
|
32335
32336
|
return activeColumn[index];
|
|
32336
32337
|
}).map(function (r) {
|
|
32338
|
+
var _r$questionTranslatio;
|
|
32339
|
+
|
|
32337
32340
|
return {
|
|
32338
32341
|
data: r.data,
|
|
32339
|
-
name: r.questionTranslation,
|
|
32342
|
+
name: (_r$questionTranslatio = r.questionTranslation) != null ? _r$questionTranslatio : r.name,
|
|
32340
32343
|
questionTranslation: r.questionTranslation
|
|
32341
32344
|
};
|
|
32342
32345
|
});
|
|
@@ -32363,7 +32366,7 @@ var GenerateChartData = function GenerateChartData(_ref) {
|
|
|
32363
32366
|
})), React__default.createElement("div", {
|
|
32364
32367
|
className: styles$1["listItem"] + " " + (!onActiveColumn && styles$1["ml-10"])
|
|
32365
32368
|
}, series.map(function (item, index) {
|
|
32366
|
-
var _handleGenerateAvgQue, _Math$abs, _Math$abs2;
|
|
32369
|
+
var _item$questionTransla, _handleGenerateAvgQue, _Math$abs, _Math$abs2;
|
|
32367
32370
|
|
|
32368
32371
|
var isStressQuestion = item.name.toLocaleLowerCase().includes("stress");
|
|
32369
32372
|
var classArrowUp = !isStressQuestion ? "arrow-up" : "arrow-down";
|
|
@@ -32391,7 +32394,7 @@ var GenerateChartData = function GenerateChartData(_ref) {
|
|
|
32391
32394
|
}
|
|
32392
32395
|
}), React__default.createElement("label", {
|
|
32393
32396
|
className: "" + styles$1["label-chart"]
|
|
32394
|
-
}, item.questionTranslation)), React__default.createElement("p", {
|
|
32397
|
+
}, (_item$questionTransla = item.questionTranslation) != null ? _item$questionTransla : item.name)), React__default.createElement("p", {
|
|
32395
32398
|
className: "" + styles$1["avr-question"]
|
|
32396
32399
|
}, "" + ((_handleGenerateAvgQue = handleGenerateAvgQuestion(item.data, min == -100, avgContent)) != null ? _handleGenerateAvgQue : 0)), React__default.createElement("div", {
|
|
32397
32400
|
hidden: avgs.length == 0 || !timeOfDay,
|
|
@@ -50327,92 +50330,83 @@ var CustomTabComponent = function CustomTabComponent(_ref) {
|
|
|
50327
50330
|
|
|
50328
50331
|
var style$2 = {"font-large":"_356Xx","table-border":"_3rVdM","Close":"_2Vs6W","Active":"_fISYg","row_name":"_2-4H1","bg-red":"_1G8nL","bg-green":"_ATqes","bg-yellow":"_U2Fov","row-status":"_2mAty","table-class-type":"_2KRfC","box-form-input":"_3bgU2","box-content":"_4h5aW","confirm_btn_title":"_3vU-q","content":"_2eddN","btn-favorite-text":"_3bpqI","description-template-left":"_3BhUP","name-template-left":"_2CA9Q","data-grid-content":"_697ao","select-right":"_1J-bu","content-confirm-model":"_2pqFa","input-title":"_1Dfbh","total-card-title":"_2-hXf","title-filter":"_36snY","form-input-title":"_1FINV","list-favorite":"_3EcML","title":"_2sFa5","title-block":"_18vbq","box-additional-title":"_NUXao","dialog-title":"_1oyCk","title-chart":"_2Yhd1","btn-send-survey":"_1xze5","btn-cancel":"_1bqU6","chip-email-default":"_2xKhD","chip-email-checked":"_ouqj6","title-content":"_2O3Tp","create-btn":"_3Cux8","general-chart-title":"_2Lxtl","action-wrapper":"_rEUU_","action-item":"_2n3hL","survey-detail":"_3vJ-g","header-survey-detail":"_Ri4lG","content-header":"_M7dFA","survey-title":"_2APad","responses-distribution":"_1I0XZ","description":"_1hw5e","list-check-question":"_1Ejsc","select-question":"_2t6cX","question":"_2cNmh","ratings-of-questions":"_3225G","show-result":"_3KDFH","chart-result-for-question":"_N5fxX","parameter":"_1NNB0","percent":"_-Fj2n","chart":"_1Qyn4","legend":"_1tBch","avr":"_2TsdE","legend-item":"_3YpJk","name":"_2W9F-","action":"_Ldh2m","header-conduct":"_1npo6","student-detail":"_1pKV2","student-name":"_1GBNs","survey-name":"_2qlBy","conduct-body":"_1dxHK","response-question":"_3IlYT","title-model":"_1UBEA","total-cards":"_38gNv","card":"_C2FoT","response-body":"_3XFlg","student":"_2fuBW","date":"_QH_aS","answer":"_3Rool","none-answer":"_l65o6","font-small":"_1mTdj","option-select":"_32CPv","icon-add-header":"_2tltH","sup-require":"_3IAjJ","span-title":"_2vOMh","checked-favorite":"_JL458","flag":"_1jRbU","filter-desktop":"_1ByZl","h-75":"_2bC49","filter-mobile":"_39EFp","d-flex":"_3ILHs","flex-between":"_1Dy7M","pointer":"_1G7Oj","ml-10":"_3pvOS","mt-20":"_3QSsx","select-type":"_1zeZ3","all-student-survey":"_2rp1M","box-input-csv":"_HGXSI","icon":"_2jqP8","model-confirm-publish":"_1DLAE","box-email-content":"_3aA8I","input-mail-content":"_3HfSn","list-chip-email":"_2mJew","box-chip-email":"_2fwdD","table-desktop":"_3_y0a","table-container":"_DFKYF","data-grid":"_3EcnW","MuiDataGrid-columnSeparator":"_3P0hc","table-mobile":"_1iMfJ","block-list-survey":"_EuZ8_","box-filter":"_3utMA","block-total":"_qlUFF","list-card-right":"_Epdgt","filter-select":"_20eFs","box-filter-left":"_MtBqD","filter-item":"_1WJAo","box-filter-right":"_2VDGv","search-input-icon":"_1FexU","inputInput":"_2JzR2","external-item":"_2iP6U","action-view":"_6y3DH","time-Date":"_17nC2","time-Hours-Minute":"_1vEXB","table-row":"_1jd05","arrow-icon":"_3Urdb","table-cell":"_qPEQy","btn-function":"_2xh2d","btn-action-text":"_2KfG4","avatar_user":"_2mUU4","innerHtml":"_2fgAa","btn-open":"_fLtnC","date-schedule":"_1amhM","pending":"_38Q73","replied":"_2mi_L","actionneeded":"_3qg29","actionneed":"_3XKeC","noscheduled":"_salNB","scheduled":"_3vFP4","completed":"_FoXPx","notstartyet":"_3bhI6","flex-item":"_36RRe","mr-10":"_2A5LB","session":"_33gcZ","schedule-now":"_2BiiZ","block-filter":"_3qVjM","block-filter-right":"_1C7WS","create-survey-container":"_2_bhv","box-create-survey":"_1h2_-","box-list-favorite":"_2Np-n","check-box-btn":"_2KGDK","stepper":"_AHiUZ","step-label":"_6O2vy","dialog-select-template":"_Vb5G5","icon-btn":"_1aD3k","icon-remove":"_rxvBN","title-btn":"_3BDjW","title-box-model":"_3V3hO","box-content-select":"_1p5SM","title-content-select":"_1wY14","description-content-select":"_3AYvl","box-function":"_1yo2i","cancel_btn":"_2q0h5","confirm_btn":"_1wniK","confirm_btn_icon":"_3rnyp","remove_btn":"_3WkIH","remove_btn_title":"_14_xL","remove_btn_icon":"_3VptO","mid_btn":"_Psdg4","box-function-flex":"_2K1MV","box-collapse":"_2-Sse","box-collapse-top":"_miLBv","box-collapse-right":"_2xNTI","collapse-chip":"_13im8","collapse-left-title":"_aft4S","box-collapse-content-item":"_26SCl","block-review-detail":"_1d4Lf","block-content-review":"_12S3I","block-template-review":"_36gKq","block-template-left":"_lw5Ox","additional-box":"_3_5ab","header-item":"_1Q3h9","header-title":"_1WGNT","space-content":"_36P3O","table-title":"_1FCFx","table-status":"_L_uPM","box-header-select":"_1k-yH","header-select-name":"_32KLh","header-select-icon":"_28PLI","header-select-detail":"_ZI06k","list-question-select":"_2EaBh","new-survey":"_SLI97","box-survey":"_dVgqi","avt-user":"_2oBnh","infor":"_3HNaN","content-text":"_SIfgw","time":"_1Sje8","card-item-mobile":"_UEtvP","card-item-left":"_1IKvD","item-name":"_2vyTL","item-detail":"_1bzAB","item-date":"_vw-CP","item-date-content":"_3tsha","table-status-mobile":"_2yS_O","button-mobile":"_1WcRD","box-detail":"_2Mctt","btn-duplicate":"_3Gz-M","box-input":"_3VFOh","item-answer":"_1zSJi","box-favorite":"_2o2b0","overview-survey":"_2sVJR","chart-view-dashboard":"_1doPS","block-chart-wrapper":"_1lkE3","block-chart-title":"_9mzcE","block-chart-top":"_QLUQO","chart-left":"_2c6UE","chart-right":"_1Pmw_","block-header-chart":"_14hBc","column-chart-percent":"_1Ml_a","chart-background":"_2AO5K","custom-marker":"_21lNI","item-legend":"_3BpNG","mark-custom":"_tnwFd","label-legend-custom":"_2juK0","mark-legend":"_13l-r","label-chart":"_3KJlm","listItem":"_1sU--","item":"_397kU","item-checkbox":"_33URL","check-box":"_X-D1i","pie-chart":"_2-TOd","box-chart-title":"_Gijux","box-chart":"_3G2tI","legend-pie-custom":"_sm5jY","color-box":"_3LqNl","generate-flag":"_24iDw","flag-item":"_V8630","count":"_39_gg","red":"_1Qdq3","yellow":"_1ukSp","green":"_Aj1d4","select-filter-top":"_3vD8W","filter-box":"_2WhAK","accordion":"_QOqG1","expanded-summary":"_oa9O2","expanded-title":"_1gxS6","expanded-detail":"_1Uklu","oveview-style":"_DU0s_","item-container":"_17V8B","note-external":"_1Mvjg","icon-back-page":"_3ckSJ","dot":"_1vzYS","table-wrapper":"_z0mjD","pagination":"_kn_xp","dot-response":"_2Nrxx","dot-not-response":"_6GUzQ","middle":"_2gw2z","table-dropdown":"_13mck","table-header":"_nxpHH","tbody-table":"_34MIA"};
|
|
50329
50332
|
|
|
50330
|
-
|
|
50331
|
-
|
|
50332
|
-
|
|
50333
|
-
|
|
50334
|
-
|
|
50335
|
-
|
|
50336
|
-
|
|
50337
|
-
|
|
50338
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
|
|
50333
|
+
function warn() {
|
|
50334
|
+
if (console && console.warn) {
|
|
50335
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
50336
|
+
args[_key] = arguments[_key];
|
|
50337
|
+
}
|
|
50338
|
+
if (typeof args[0] === 'string') args[0] = `react-i18next:: ${args[0]}`;
|
|
50339
|
+
console.warn(...args);
|
|
50340
|
+
}
|
|
50339
50341
|
}
|
|
50340
|
-
|
|
50341
|
-
|
|
50342
|
-
|
|
50343
|
-
|
|
50344
|
-
|
|
50345
|
-
var toPrimitive_1 = createCommonjsModule(function (module) {
|
|
50346
|
-
var _typeof = _typeof_1$1["default"];
|
|
50347
|
-
function toPrimitive(t, r) {
|
|
50348
|
-
if ("object" != _typeof(t) || !t) return t;
|
|
50349
|
-
var e = t[Symbol.toPrimitive];
|
|
50350
|
-
if (void 0 !== e) {
|
|
50351
|
-
var i = e.call(t, r || "default");
|
|
50352
|
-
if ("object" != _typeof(i)) return i;
|
|
50353
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
50342
|
+
const alreadyWarned = {};
|
|
50343
|
+
function warnOnce() {
|
|
50344
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
50345
|
+
args[_key2] = arguments[_key2];
|
|
50354
50346
|
}
|
|
50355
|
-
|
|
50347
|
+
if (typeof args[0] === 'string' && alreadyWarned[args[0]]) return;
|
|
50348
|
+
if (typeof args[0] === 'string') alreadyWarned[args[0]] = new Date();
|
|
50349
|
+
warn(...args);
|
|
50356
50350
|
}
|
|
50357
|
-
|
|
50358
|
-
|
|
50359
|
-
|
|
50360
|
-
|
|
50361
|
-
|
|
50362
|
-
|
|
50363
|
-
|
|
50364
|
-
|
|
50365
|
-
|
|
50366
|
-
|
|
50367
|
-
|
|
50351
|
+
const loadedClb = (i18n, cb) => () => {
|
|
50352
|
+
if (i18n.isInitialized) {
|
|
50353
|
+
cb();
|
|
50354
|
+
} else {
|
|
50355
|
+
const initialized = () => {
|
|
50356
|
+
setTimeout(() => {
|
|
50357
|
+
i18n.off('initialized', initialized);
|
|
50358
|
+
}, 0);
|
|
50359
|
+
cb();
|
|
50360
|
+
};
|
|
50361
|
+
i18n.on('initialized', initialized);
|
|
50362
|
+
}
|
|
50363
|
+
};
|
|
50364
|
+
function loadNamespaces(i18n, ns, cb) {
|
|
50365
|
+
i18n.loadNamespaces(ns, loadedClb(i18n, cb));
|
|
50368
50366
|
}
|
|
50369
|
-
|
|
50370
|
-
|
|
50371
|
-
|
|
50372
|
-
|
|
50373
|
-
|
|
50374
|
-
|
|
50375
|
-
function _defineProperty(e, r, t) {
|
|
50376
|
-
return (r = toPropertyKey_1(r)) in e ? Object.defineProperty(e, r, {
|
|
50377
|
-
value: t,
|
|
50378
|
-
enumerable: !0,
|
|
50379
|
-
configurable: !0,
|
|
50380
|
-
writable: !0
|
|
50381
|
-
}) : e[r] = t, e;
|
|
50367
|
+
function loadLanguages(i18n, lng, ns, cb) {
|
|
50368
|
+
if (typeof ns === 'string') ns = [ns];
|
|
50369
|
+
ns.forEach(n => {
|
|
50370
|
+
if (i18n.options.ns.indexOf(n) < 0) i18n.options.ns.push(n);
|
|
50371
|
+
});
|
|
50372
|
+
i18n.loadLanguages(lng, loadedClb(i18n, cb));
|
|
50382
50373
|
}
|
|
50383
|
-
|
|
50384
|
-
}
|
|
50385
|
-
|
|
50386
|
-
|
|
50387
|
-
|
|
50388
|
-
|
|
50389
|
-
|
|
50390
|
-
|
|
50374
|
+
function oldI18nextHasLoadedNamespace(ns, i18n) {
|
|
50375
|
+
let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
50376
|
+
const lng = i18n.languages[0];
|
|
50377
|
+
const fallbackLng = i18n.options ? i18n.options.fallbackLng : false;
|
|
50378
|
+
const lastLng = i18n.languages[i18n.languages.length - 1];
|
|
50379
|
+
if (lng.toLowerCase() === 'cimode') return true;
|
|
50380
|
+
const loadNotPending = (l, n) => {
|
|
50381
|
+
const loadState = i18n.services.backendConnector.state[`${l}|${n}`];
|
|
50382
|
+
return loadState === -1 || loadState === 2;
|
|
50383
|
+
};
|
|
50384
|
+
if (options.bindI18n && options.bindI18n.indexOf('languageChanging') > -1 && i18n.services.backendConnector.backend && i18n.isLanguageChangingTo && !loadNotPending(i18n.isLanguageChangingTo, ns)) return false;
|
|
50385
|
+
if (i18n.hasResourceBundle(lng, ns)) return true;
|
|
50386
|
+
if (!i18n.services.backendConnector.backend || i18n.options.resources && !i18n.options.partialBundledLanguages) return true;
|
|
50387
|
+
if (loadNotPending(lng, ns) && (!fallbackLng || loadNotPending(lastLng, ns))) return true;
|
|
50388
|
+
return false;
|
|
50391
50389
|
}
|
|
50392
|
-
|
|
50393
|
-
}
|
|
50394
|
-
|
|
50395
|
-
|
|
50396
|
-
|
|
50397
|
-
var createClass = createCommonjsModule(function (module) {
|
|
50398
|
-
function _defineProperties(e, r) {
|
|
50399
|
-
for (var t = 0; t < r.length; t++) {
|
|
50400
|
-
var o = r[t];
|
|
50401
|
-
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey_1(o.key), o);
|
|
50390
|
+
function hasLoadedNamespace(ns, i18n) {
|
|
50391
|
+
let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
50392
|
+
if (!i18n.languages || !i18n.languages.length) {
|
|
50393
|
+
warnOnce('i18n.languages were undefined or empty', i18n.languages);
|
|
50394
|
+
return true;
|
|
50402
50395
|
}
|
|
50396
|
+
const isNewerI18next = i18n.options.ignoreJSONStructure !== undefined;
|
|
50397
|
+
if (!isNewerI18next) {
|
|
50398
|
+
return oldI18nextHasLoadedNamespace(ns, i18n, options);
|
|
50399
|
+
}
|
|
50400
|
+
return i18n.hasLoadedNamespace(ns, {
|
|
50401
|
+
lng: options.lng,
|
|
50402
|
+
precheck: (i18nInstance, loadNotPending) => {
|
|
50403
|
+
if (options.bindI18n && options.bindI18n.indexOf('languageChanging') > -1 && i18nInstance.services.backendConnector.backend && i18nInstance.isLanguageChangingTo && !loadNotPending(i18nInstance.isLanguageChangingTo, ns)) return false;
|
|
50404
|
+
}
|
|
50405
|
+
});
|
|
50403
50406
|
}
|
|
50404
|
-
function _createClass(e, r, t) {
|
|
50405
|
-
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
50406
|
-
writable: !1
|
|
50407
|
-
}), e;
|
|
50408
|
-
}
|
|
50409
|
-
module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
50410
|
-
});
|
|
50411
50407
|
|
|
50412
|
-
|
|
50413
|
-
|
|
50414
|
-
var matchHtmlEntity = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
|
|
50415
|
-
var htmlEntities = {
|
|
50408
|
+
const matchHtmlEntity = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
|
|
50409
|
+
const htmlEntities = {
|
|
50416
50410
|
'&': '&',
|
|
50417
50411
|
'&': '&',
|
|
50418
50412
|
'<': '<',
|
|
@@ -50434,16 +50428,10 @@ var htmlEntities = {
|
|
|
50434
50428
|
'/': '/',
|
|
50435
50429
|
'/': '/'
|
|
50436
50430
|
};
|
|
50431
|
+
const unescapeHtmlEntity = m => htmlEntities[m];
|
|
50432
|
+
const unescape = text => text.replace(matchHtmlEntity, unescapeHtmlEntity);
|
|
50437
50433
|
|
|
50438
|
-
|
|
50439
|
-
return htmlEntities[m];
|
|
50440
|
-
};
|
|
50441
|
-
|
|
50442
|
-
var unescape = function unescape(text) {
|
|
50443
|
-
return text.replace(matchHtmlEntity, unescapeHtmlEntity);
|
|
50444
|
-
};
|
|
50445
|
-
|
|
50446
|
-
var defaultOptions = {
|
|
50434
|
+
let defaultOptions = {
|
|
50447
50435
|
bindI18n: 'languageChanged',
|
|
50448
50436
|
bindI18nStore: '',
|
|
50449
50437
|
transEmptyNodeValue: '',
|
|
@@ -50451,317 +50439,139 @@ var defaultOptions = {
|
|
|
50451
50439
|
transWrapTextNodes: '',
|
|
50452
50440
|
transKeepBasicHtmlNodesFor: ['br', 'strong', 'i', 'p'],
|
|
50453
50441
|
useSuspense: true,
|
|
50454
|
-
unescape
|
|
50442
|
+
unescape
|
|
50455
50443
|
};
|
|
50456
|
-
var i18nInstance;
|
|
50457
|
-
var I18nContext = React.createContext();
|
|
50458
50444
|
function getDefaults() {
|
|
50459
50445
|
return defaultOptions;
|
|
50460
50446
|
}
|
|
50461
|
-
var ReportNamespaces = function () {
|
|
50462
|
-
function ReportNamespaces() {
|
|
50463
|
-
_classCallCheck$1(this, ReportNamespaces);
|
|
50464
|
-
|
|
50465
|
-
this.usedNamespaces = {};
|
|
50466
|
-
}
|
|
50467
50447
|
|
|
50468
|
-
|
|
50469
|
-
key: "addUsedNamespaces",
|
|
50470
|
-
value: function addUsedNamespaces(namespaces) {
|
|
50471
|
-
var _this = this;
|
|
50472
|
-
|
|
50473
|
-
namespaces.forEach(function (ns) {
|
|
50474
|
-
if (!_this.usedNamespaces[ns]) _this.usedNamespaces[ns] = true;
|
|
50475
|
-
});
|
|
50476
|
-
}
|
|
50477
|
-
}, {
|
|
50478
|
-
key: "getUsedNamespaces",
|
|
50479
|
-
value: function getUsedNamespaces() {
|
|
50480
|
-
return Object.keys(this.usedNamespaces);
|
|
50481
|
-
}
|
|
50482
|
-
}]);
|
|
50483
|
-
|
|
50484
|
-
return ReportNamespaces;
|
|
50485
|
-
}();
|
|
50448
|
+
let i18nInstance;
|
|
50486
50449
|
function getI18n() {
|
|
50487
50450
|
return i18nInstance;
|
|
50488
50451
|
}
|
|
50489
50452
|
|
|
50490
|
-
|
|
50491
|
-
|
|
50492
|
-
|
|
50493
|
-
|
|
50494
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
50495
|
-
args[_key] = arguments[_key];
|
|
50496
|
-
}
|
|
50497
|
-
|
|
50498
|
-
if (typeof args[0] === 'string') args[0] = "react-i18next:: ".concat(args[0]);
|
|
50499
|
-
|
|
50500
|
-
(_console = console).warn.apply(_console, args);
|
|
50501
|
-
}
|
|
50502
|
-
}
|
|
50503
|
-
var alreadyWarned = {};
|
|
50504
|
-
function warnOnce() {
|
|
50505
|
-
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
50506
|
-
args[_key2] = arguments[_key2];
|
|
50507
|
-
}
|
|
50508
|
-
|
|
50509
|
-
if (typeof args[0] === 'string' && alreadyWarned[args[0]]) return;
|
|
50510
|
-
if (typeof args[0] === 'string') alreadyWarned[args[0]] = new Date();
|
|
50511
|
-
warn.apply(void 0, args);
|
|
50512
|
-
}
|
|
50513
|
-
function loadNamespaces(i18n, ns, cb) {
|
|
50514
|
-
i18n.loadNamespaces(ns, function () {
|
|
50515
|
-
if (i18n.isInitialized) {
|
|
50516
|
-
cb();
|
|
50517
|
-
} else {
|
|
50518
|
-
var initialized = function initialized() {
|
|
50519
|
-
setTimeout(function () {
|
|
50520
|
-
i18n.off('initialized', initialized);
|
|
50521
|
-
}, 0);
|
|
50522
|
-
cb();
|
|
50523
|
-
};
|
|
50524
|
-
|
|
50525
|
-
i18n.on('initialized', initialized);
|
|
50526
|
-
}
|
|
50527
|
-
});
|
|
50528
|
-
}
|
|
50529
|
-
|
|
50530
|
-
function oldI18nextHasLoadedNamespace(ns, i18n) {
|
|
50531
|
-
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
50532
|
-
var lng = i18n.languages[0];
|
|
50533
|
-
var fallbackLng = i18n.options ? i18n.options.fallbackLng : false;
|
|
50534
|
-
var lastLng = i18n.languages[i18n.languages.length - 1];
|
|
50535
|
-
if (lng.toLowerCase() === 'cimode') return true;
|
|
50536
|
-
|
|
50537
|
-
var loadNotPending = function loadNotPending(l, n) {
|
|
50538
|
-
var loadState = i18n.services.backendConnector.state["".concat(l, "|").concat(n)];
|
|
50539
|
-
return loadState === -1 || loadState === 2;
|
|
50540
|
-
};
|
|
50541
|
-
|
|
50542
|
-
if (options.bindI18n && options.bindI18n.indexOf('languageChanging') > -1 && i18n.services.backendConnector.backend && i18n.isLanguageChangingTo && !loadNotPending(i18n.isLanguageChangingTo, ns)) return false;
|
|
50543
|
-
if (i18n.hasResourceBundle(lng, ns)) return true;
|
|
50544
|
-
if (!i18n.services.backendConnector.backend || i18n.options.resources && !i18n.options.partialBundledLanguages) return true;
|
|
50545
|
-
if (loadNotPending(lng, ns) && (!fallbackLng || loadNotPending(lastLng, ns))) return true;
|
|
50546
|
-
return false;
|
|
50547
|
-
}
|
|
50548
|
-
|
|
50549
|
-
function hasLoadedNamespace(ns, i18n) {
|
|
50550
|
-
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
50551
|
-
|
|
50552
|
-
if (!i18n.languages || !i18n.languages.length) {
|
|
50553
|
-
warnOnce('i18n.languages were undefined or empty', i18n.languages);
|
|
50554
|
-
return true;
|
|
50555
|
-
}
|
|
50556
|
-
|
|
50557
|
-
var isNewerI18next = i18n.options.ignoreJSONStructure !== undefined;
|
|
50558
|
-
|
|
50559
|
-
if (!isNewerI18next) {
|
|
50560
|
-
return oldI18nextHasLoadedNamespace(ns, i18n, options);
|
|
50453
|
+
const I18nContext = React.createContext();
|
|
50454
|
+
class ReportNamespaces {
|
|
50455
|
+
constructor() {
|
|
50456
|
+
this.usedNamespaces = {};
|
|
50561
50457
|
}
|
|
50562
|
-
|
|
50563
|
-
|
|
50564
|
-
|
|
50565
|
-
|
|
50566
|
-
}
|
|
50567
|
-
});
|
|
50568
|
-
}
|
|
50569
|
-
|
|
50570
|
-
var arrayWithHoles = createCommonjsModule(function (module) {
|
|
50571
|
-
function _arrayWithHoles(r) {
|
|
50572
|
-
if (Array.isArray(r)) return r;
|
|
50573
|
-
}
|
|
50574
|
-
module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
50575
|
-
});
|
|
50576
|
-
|
|
50577
|
-
unwrapExports(arrayWithHoles);
|
|
50578
|
-
|
|
50579
|
-
var iterableToArrayLimit = createCommonjsModule(function (module) {
|
|
50580
|
-
function _iterableToArrayLimit(r, l) {
|
|
50581
|
-
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
50582
|
-
if (null != t) {
|
|
50583
|
-
var e,
|
|
50584
|
-
n,
|
|
50585
|
-
i,
|
|
50586
|
-
u,
|
|
50587
|
-
a = [],
|
|
50588
|
-
f = !0,
|
|
50589
|
-
o = !1;
|
|
50590
|
-
try {
|
|
50591
|
-
if (i = (t = t.call(r)).next, 0 === l) {
|
|
50592
|
-
if (Object(t) !== t) return;
|
|
50593
|
-
f = !1;
|
|
50594
|
-
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
50595
|
-
} catch (r) {
|
|
50596
|
-
o = !0, n = r;
|
|
50597
|
-
} finally {
|
|
50598
|
-
try {
|
|
50599
|
-
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
50600
|
-
} finally {
|
|
50601
|
-
if (o) throw n;
|
|
50602
|
-
}
|
|
50603
|
-
}
|
|
50604
|
-
return a;
|
|
50458
|
+
addUsedNamespaces(namespaces) {
|
|
50459
|
+
namespaces.forEach(ns => {
|
|
50460
|
+
if (!this.usedNamespaces[ns]) this.usedNamespaces[ns] = true;
|
|
50461
|
+
});
|
|
50605
50462
|
}
|
|
50606
|
-
|
|
50607
|
-
|
|
50608
|
-
});
|
|
50609
|
-
|
|
50610
|
-
unwrapExports(iterableToArrayLimit);
|
|
50611
|
-
|
|
50612
|
-
var arrayLikeToArray = createCommonjsModule(function (module) {
|
|
50613
|
-
function _arrayLikeToArray(r, a) {
|
|
50614
|
-
(null == a || a > r.length) && (a = r.length);
|
|
50615
|
-
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
50616
|
-
return n;
|
|
50617
|
-
}
|
|
50618
|
-
module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
50619
|
-
});
|
|
50620
|
-
|
|
50621
|
-
unwrapExports(arrayLikeToArray);
|
|
50622
|
-
|
|
50623
|
-
var unsupportedIterableToArray = createCommonjsModule(function (module) {
|
|
50624
|
-
function _unsupportedIterableToArray(r, a) {
|
|
50625
|
-
if (r) {
|
|
50626
|
-
if ("string" == typeof r) return arrayLikeToArray(r, a);
|
|
50627
|
-
var t = {}.toString.call(r).slice(8, -1);
|
|
50628
|
-
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;
|
|
50463
|
+
getUsedNamespaces() {
|
|
50464
|
+
return Object.keys(this.usedNamespaces);
|
|
50629
50465
|
}
|
|
50630
50466
|
}
|
|
50631
|
-
module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
50632
|
-
});
|
|
50633
|
-
|
|
50634
|
-
unwrapExports(unsupportedIterableToArray);
|
|
50635
|
-
|
|
50636
|
-
var nonIterableRest = createCommonjsModule(function (module) {
|
|
50637
|
-
function _nonIterableRest() {
|
|
50638
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
50639
|
-
}
|
|
50640
|
-
module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
50641
|
-
});
|
|
50642
50467
|
|
|
50643
|
-
|
|
50644
|
-
|
|
50645
|
-
|
|
50646
|
-
function _slicedToArray(r, e) {
|
|
50647
|
-
return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();
|
|
50648
|
-
}
|
|
50649
|
-
module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
50650
|
-
});
|
|
50651
|
-
|
|
50652
|
-
var _slicedToArray = unwrapExports(slicedToArray);
|
|
50653
|
-
|
|
50654
|
-
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
50655
|
-
|
|
50656
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$1(Object(source), true).forEach(function (key) { _defineProperty$2(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
50657
|
-
|
|
50658
|
-
var usePrevious = function usePrevious(value, ignore) {
|
|
50659
|
-
var ref = React.useRef();
|
|
50660
|
-
React.useEffect(function () {
|
|
50468
|
+
const usePrevious = (value, ignore) => {
|
|
50469
|
+
const ref = React.useRef();
|
|
50470
|
+
React.useEffect(() => {
|
|
50661
50471
|
ref.current = ignore ? ref.current : value;
|
|
50662
50472
|
}, [value, ignore]);
|
|
50663
50473
|
return ref.current;
|
|
50664
50474
|
};
|
|
50665
|
-
|
|
50475
|
+
function alwaysNewT(i18n, language, namespace, keyPrefix) {
|
|
50476
|
+
return i18n.getFixedT(language, namespace, keyPrefix);
|
|
50477
|
+
}
|
|
50478
|
+
function useMemoizedT(i18n, language, namespace, keyPrefix) {
|
|
50479
|
+
return React.useCallback(alwaysNewT(i18n, language, namespace, keyPrefix), [i18n, language, namespace, keyPrefix]);
|
|
50480
|
+
}
|
|
50666
50481
|
function useTranslation(ns) {
|
|
50667
|
-
|
|
50668
|
-
|
|
50669
|
-
|
|
50670
|
-
|
|
50671
|
-
|
|
50672
|
-
|
|
50673
|
-
|
|
50674
|
-
|
|
50482
|
+
let props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
50483
|
+
const {
|
|
50484
|
+
i18n: i18nFromProps
|
|
50485
|
+
} = props;
|
|
50486
|
+
const {
|
|
50487
|
+
i18n: i18nFromContext,
|
|
50488
|
+
defaultNS: defaultNSFromContext
|
|
50489
|
+
} = React.useContext(I18nContext) || {};
|
|
50490
|
+
const i18n = i18nFromProps || i18nFromContext || getI18n();
|
|
50675
50491
|
if (i18n && !i18n.reportNamespaces) i18n.reportNamespaces = new ReportNamespaces();
|
|
50676
|
-
|
|
50677
50492
|
if (!i18n) {
|
|
50678
50493
|
warnOnce('You will need to pass in an i18next instance by using initReactI18next');
|
|
50679
|
-
|
|
50680
|
-
|
|
50494
|
+
const notReadyT = (k, optsOrDefaultValue) => {
|
|
50495
|
+
if (typeof optsOrDefaultValue === 'string') return optsOrDefaultValue;
|
|
50496
|
+
if (optsOrDefaultValue && typeof optsOrDefaultValue === 'object' && typeof optsOrDefaultValue.defaultValue === 'string') return optsOrDefaultValue.defaultValue;
|
|
50681
50497
|
return Array.isArray(k) ? k[k.length - 1] : k;
|
|
50682
50498
|
};
|
|
50683
|
-
|
|
50684
|
-
var retNotReady = [notReadyT, {}, false];
|
|
50499
|
+
const retNotReady = [notReadyT, {}, false];
|
|
50685
50500
|
retNotReady.t = notReadyT;
|
|
50686
50501
|
retNotReady.i18n = {};
|
|
50687
50502
|
retNotReady.ready = false;
|
|
50688
50503
|
return retNotReady;
|
|
50689
50504
|
}
|
|
50690
|
-
|
|
50691
50505
|
if (i18n.options.react && i18n.options.react.wait !== undefined) warnOnce('It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.');
|
|
50692
|
-
|
|
50693
|
-
|
|
50694
|
-
|
|
50695
|
-
|
|
50696
|
-
|
|
50697
|
-
|
|
50506
|
+
const i18nOptions = {
|
|
50507
|
+
...getDefaults(),
|
|
50508
|
+
...i18n.options.react,
|
|
50509
|
+
...props
|
|
50510
|
+
};
|
|
50511
|
+
const {
|
|
50512
|
+
useSuspense,
|
|
50513
|
+
keyPrefix
|
|
50514
|
+
} = i18nOptions;
|
|
50515
|
+
let namespaces = ns || defaultNSFromContext || i18n.options && i18n.options.defaultNS;
|
|
50698
50516
|
namespaces = typeof namespaces === 'string' ? [namespaces] : namespaces || ['translation'];
|
|
50699
50517
|
if (i18n.reportNamespaces.addUsedNamespaces) i18n.reportNamespaces.addUsedNamespaces(namespaces);
|
|
50700
|
-
|
|
50701
|
-
|
|
50702
|
-
|
|
50703
|
-
|
|
50704
|
-
|
|
50705
|
-
|
|
50706
|
-
}
|
|
50707
|
-
|
|
50708
|
-
|
|
50709
|
-
|
|
50710
|
-
|
|
50711
|
-
|
|
50712
|
-
|
|
50713
|
-
|
|
50714
|
-
var previousJoinedNS = usePrevious(joinedNS);
|
|
50715
|
-
var isMounted = React.useRef(true);
|
|
50716
|
-
React.useEffect(function () {
|
|
50717
|
-
var bindI18n = i18nOptions.bindI18n,
|
|
50718
|
-
bindI18nStore = i18nOptions.bindI18nStore;
|
|
50518
|
+
const ready = (i18n.isInitialized || i18n.initializedStoreOnce) && namespaces.every(n => hasLoadedNamespace(n, i18n, i18nOptions));
|
|
50519
|
+
const memoGetT = useMemoizedT(i18n, props.lng || null, i18nOptions.nsMode === 'fallback' ? namespaces : namespaces[0], keyPrefix);
|
|
50520
|
+
const getT = () => memoGetT;
|
|
50521
|
+
const getNewT = () => alwaysNewT(i18n, props.lng || null, i18nOptions.nsMode === 'fallback' ? namespaces : namespaces[0], keyPrefix);
|
|
50522
|
+
const [t, setT] = React.useState(getT);
|
|
50523
|
+
let joinedNS = namespaces.join();
|
|
50524
|
+
if (props.lng) joinedNS = `${props.lng}${joinedNS}`;
|
|
50525
|
+
const previousJoinedNS = usePrevious(joinedNS);
|
|
50526
|
+
const isMounted = React.useRef(true);
|
|
50527
|
+
React.useEffect(() => {
|
|
50528
|
+
const {
|
|
50529
|
+
bindI18n,
|
|
50530
|
+
bindI18nStore
|
|
50531
|
+
} = i18nOptions;
|
|
50719
50532
|
isMounted.current = true;
|
|
50720
|
-
|
|
50721
50533
|
if (!ready && !useSuspense) {
|
|
50722
|
-
|
|
50723
|
-
|
|
50724
|
-
|
|
50534
|
+
if (props.lng) {
|
|
50535
|
+
loadLanguages(i18n, props.lng, namespaces, () => {
|
|
50536
|
+
if (isMounted.current) setT(getNewT);
|
|
50537
|
+
});
|
|
50538
|
+
} else {
|
|
50539
|
+
loadNamespaces(i18n, namespaces, () => {
|
|
50540
|
+
if (isMounted.current) setT(getNewT);
|
|
50541
|
+
});
|
|
50542
|
+
}
|
|
50725
50543
|
}
|
|
50726
|
-
|
|
50727
50544
|
if (ready && previousJoinedNS && previousJoinedNS !== joinedNS && isMounted.current) {
|
|
50728
|
-
setT(
|
|
50545
|
+
setT(getNewT);
|
|
50729
50546
|
}
|
|
50730
|
-
|
|
50731
50547
|
function boundReset() {
|
|
50732
|
-
if (isMounted.current) setT(
|
|
50548
|
+
if (isMounted.current) setT(getNewT);
|
|
50733
50549
|
}
|
|
50734
|
-
|
|
50735
50550
|
if (bindI18n && i18n) i18n.on(bindI18n, boundReset);
|
|
50736
50551
|
if (bindI18nStore && i18n) i18n.store.on(bindI18nStore, boundReset);
|
|
50737
|
-
return
|
|
50552
|
+
return () => {
|
|
50738
50553
|
isMounted.current = false;
|
|
50739
|
-
if (bindI18n && i18n) bindI18n.split(' ').forEach(
|
|
50740
|
-
|
|
50741
|
-
});
|
|
50742
|
-
if (bindI18nStore && i18n) bindI18nStore.split(' ').forEach(function (e) {
|
|
50743
|
-
return i18n.store.off(e, boundReset);
|
|
50744
|
-
});
|
|
50554
|
+
if (bindI18n && i18n) bindI18n.split(' ').forEach(e => i18n.off(e, boundReset));
|
|
50555
|
+
if (bindI18nStore && i18n) bindI18nStore.split(' ').forEach(e => i18n.store.off(e, boundReset));
|
|
50745
50556
|
};
|
|
50746
50557
|
}, [i18n, joinedNS]);
|
|
50747
|
-
|
|
50748
|
-
|
|
50749
|
-
if (isMounted.current && !isInitial.current) {
|
|
50558
|
+
React.useEffect(() => {
|
|
50559
|
+
if (isMounted.current && ready) {
|
|
50750
50560
|
setT(getT);
|
|
50751
50561
|
}
|
|
50752
|
-
|
|
50753
|
-
|
|
50754
|
-
}, [i18n, keyPrefix]);
|
|
50755
|
-
var ret = [t, i18n, ready];
|
|
50562
|
+
}, [i18n, keyPrefix, ready]);
|
|
50563
|
+
const ret = [t, i18n, ready];
|
|
50756
50564
|
ret.t = t;
|
|
50757
50565
|
ret.i18n = i18n;
|
|
50758
50566
|
ret.ready = ready;
|
|
50759
50567
|
if (ready) return ret;
|
|
50760
50568
|
if (!ready && !useSuspense) return ret;
|
|
50761
|
-
throw new Promise(
|
|
50762
|
-
|
|
50763
|
-
resolve();
|
|
50764
|
-
}
|
|
50569
|
+
throw new Promise(resolve => {
|
|
50570
|
+
if (props.lng) {
|
|
50571
|
+
loadLanguages(i18n, props.lng, namespaces, () => resolve());
|
|
50572
|
+
} else {
|
|
50573
|
+
loadNamespaces(i18n, namespaces, () => resolve());
|
|
50574
|
+
}
|
|
50765
50575
|
});
|
|
50766
50576
|
}
|
|
50767
50577
|
|
|
@@ -66961,7 +66771,7 @@ module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
66961
66771
|
|
|
66962
66772
|
unwrapExports(_extends_1$1);
|
|
66963
66773
|
|
|
66964
|
-
var arrayLikeToArray
|
|
66774
|
+
var arrayLikeToArray = createCommonjsModule(function (module) {
|
|
66965
66775
|
function _arrayLikeToArray(arr, len) {
|
|
66966
66776
|
if (len == null || len > arr.length) len = arr.length;
|
|
66967
66777
|
|
|
@@ -66976,11 +66786,11 @@ module.exports = _arrayLikeToArray;
|
|
|
66976
66786
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
66977
66787
|
});
|
|
66978
66788
|
|
|
66979
|
-
unwrapExports(arrayLikeToArray
|
|
66789
|
+
unwrapExports(arrayLikeToArray);
|
|
66980
66790
|
|
|
66981
66791
|
var arrayWithoutHoles = createCommonjsModule(function (module) {
|
|
66982
66792
|
function _arrayWithoutHoles(arr) {
|
|
66983
|
-
if (Array.isArray(arr)) return arrayLikeToArray
|
|
66793
|
+
if (Array.isArray(arr)) return arrayLikeToArray(arr);
|
|
66984
66794
|
}
|
|
66985
66795
|
|
|
66986
66796
|
module.exports = _arrayWithoutHoles;
|
|
@@ -67000,21 +66810,21 @@ module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
67000
66810
|
|
|
67001
66811
|
unwrapExports(iterableToArray);
|
|
67002
66812
|
|
|
67003
|
-
var unsupportedIterableToArray
|
|
66813
|
+
var unsupportedIterableToArray = createCommonjsModule(function (module) {
|
|
67004
66814
|
function _unsupportedIterableToArray(o, minLen) {
|
|
67005
66815
|
if (!o) return;
|
|
67006
|
-
if (typeof o === "string") return arrayLikeToArray
|
|
66816
|
+
if (typeof o === "string") return arrayLikeToArray(o, minLen);
|
|
67007
66817
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
67008
66818
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
67009
66819
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
67010
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray
|
|
66820
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
|
|
67011
66821
|
}
|
|
67012
66822
|
|
|
67013
66823
|
module.exports = _unsupportedIterableToArray;
|
|
67014
66824
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
67015
66825
|
});
|
|
67016
66826
|
|
|
67017
|
-
unwrapExports(unsupportedIterableToArray
|
|
66827
|
+
unwrapExports(unsupportedIterableToArray);
|
|
67018
66828
|
|
|
67019
66829
|
var nonIterableSpread = createCommonjsModule(function (module) {
|
|
67020
66830
|
function _nonIterableSpread() {
|
|
@@ -67029,7 +66839,7 @@ unwrapExports(nonIterableSpread);
|
|
|
67029
66839
|
|
|
67030
66840
|
var toConsumableArray = createCommonjsModule(function (module) {
|
|
67031
66841
|
function _toConsumableArray(arr) {
|
|
67032
|
-
return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray
|
|
66842
|
+
return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
|
|
67033
66843
|
}
|
|
67034
66844
|
|
|
67035
66845
|
module.exports = _toConsumableArray;
|
|
@@ -71073,6 +70883,9 @@ var useHeaderSideBar = function useHeaderSideBar(_navigations) {
|
|
|
71073
70883
|
}, {
|
|
71074
70884
|
name: "mario_tools",
|
|
71075
70885
|
icon: React__default.createElement(ToolIcon, null)
|
|
70886
|
+
}, {
|
|
70887
|
+
name: "weekly_quests",
|
|
70888
|
+
icon: React__default.createElement(HelpOutlineIcon, null)
|
|
71076
70889
|
}, {
|
|
71077
70890
|
name: "question",
|
|
71078
70891
|
icon: React__default.createElement(QuestionIcon, null)
|