mario-core 2.9.141-level → 2.9.143-up

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.
Files changed (82) hide show
  1. package/dist/components/Alerts/ReactNotification.d.ts +2 -2
  2. package/dist/components/Image/UploadImage.d.ts +2 -2
  3. package/dist/components/Modals/NotificationLogoutModal.d.ts +2 -2
  4. package/dist/components/Modals/NotificationModal.d.ts +2 -2
  5. package/dist/components/Others/QuitPrompt.d.ts +2 -2
  6. package/dist/components/Pagination/CustomPagination.d.ts +2 -2
  7. package/dist/components/Selectors/AcademicClassSelector.d.ts +2 -2
  8. package/dist/components/Selectors/CategorySelector.d.ts +2 -2
  9. package/dist/components/Selectors/CreatableSelector.d.ts +2 -2
  10. package/dist/components/Selectors/CustomSelector.d.ts +2 -2
  11. package/dist/components/Selectors/MailCategorySelectors.d.ts +2 -2
  12. package/dist/components/Selectors/QuestionCategorySelector.d.ts +2 -2
  13. package/dist/components/Selectors/QuestionTypeSelector.d.ts +2 -2
  14. package/dist/components/Selectors/StarRatingSelector.d.ts +2 -2
  15. package/dist/components/Selectors/SuggestionCategorySelector.d.ts +2 -2
  16. package/dist/components/Tabs/CustomTab.d.ts +2 -2
  17. package/dist/containers/Login/views/Dashboard.d.ts +2 -2
  18. package/dist/containers/Login/views/Login.d.ts +2 -2
  19. package/dist/containers/Login/views/block/BlockForgetPassword.d.ts +2 -2
  20. package/dist/containers/Login/views/block/BlockResetPassword.d.ts +2 -2
  21. package/dist/containers/Login/views/block/BlockTwoFactorLogin.d.ts +2 -2
  22. package/dist/containers/Login/views/block/QuoteContent.d.ts +2 -2
  23. package/dist/containers/Notifications/views/NotificationList.d.ts +2 -2
  24. package/dist/containers/Skill/components/SkillSelector.d.ts +2 -2
  25. package/dist/containers/User/views/UserDetail.d.ts +2 -2
  26. package/dist/containers/User/views/UserList.d.ts +2 -2
  27. package/dist/index.css +3 -3
  28. package/dist/index.js +84 -25
  29. package/dist/index.js.map +1 -1
  30. package/dist/index.modern.js +84 -25
  31. package/dist/index.modern.js.map +1 -1
  32. package/dist/layouts/TheContent.d.ts +1 -1
  33. package/dist/layouts/TheFooter.d.ts +1 -1
  34. package/dist/layouts/TheHeader.d.ts +2 -2
  35. package/dist/layouts/TheHeaderDropdown.d.ts +2 -2
  36. package/dist/layouts/TheLanguageDropdown.d.ts +2 -2
  37. package/dist/layouts/TheLayout.d.ts +2 -2
  38. package/dist/layouts/TheSidebar.d.ts +2 -2
  39. package/dist/redux/assessments/reducer.d.ts +2 -2
  40. package/dist/redux/assignment/reducer.d.ts +1 -1
  41. package/dist/redux/assistants/reducer.d.ts +1 -1
  42. package/dist/redux/badges/reducer.d.ts +1 -1
  43. package/dist/redux/bandScores/reducer.d.ts +1 -1
  44. package/dist/redux/certificate/reducer.d.ts +1 -1
  45. package/dist/redux/classes/reducer.d.ts +1 -1
  46. package/dist/redux/commons/reducer.d.ts +1 -1
  47. package/dist/redux/conferenceRubrics/reducer.d.ts +1 -1
  48. package/dist/redux/customAlert/reducer.d.ts +1 -1
  49. package/dist/redux/dashboard/reducer.d.ts +1 -1
  50. package/dist/redux/dataPlayer/reducer.d.ts +1 -1
  51. package/dist/redux/emailTemplates/reducer.d.ts +1 -1
  52. package/dist/redux/faqs/reducer.d.ts +1 -1
  53. package/dist/redux/feedback/reducer.d.ts +1 -1
  54. package/dist/redux/gallery/reducer.d.ts +1 -1
  55. package/dist/redux/goalExamples/reducer.d.ts +1 -1
  56. package/dist/redux/improveMyClass/reducer.d.ts +1 -1
  57. package/dist/redux/learningStrategies/reducer.d.ts +1 -1
  58. package/dist/redux/learningSupportCategories/reducer.d.ts +1 -1
  59. package/dist/redux/mailCategories/reducer.d.ts +1 -1
  60. package/dist/redux/navMobile/reducer.d.ts +1 -1
  61. package/dist/redux/notifications/reducer.d.ts +1 -1
  62. package/dist/redux/questionBanks/reducer.d.ts +1 -1
  63. package/dist/redux/questionByCategory/reducer.d.ts +1 -1
  64. package/dist/redux/questionCategory/reducer.d.ts +1 -1
  65. package/dist/redux/reflectionForms/reducer.d.ts +1 -1
  66. package/dist/redux/reflectionResults/reducer.d.ts +1 -1
  67. package/dist/redux/schoolBlankDays/reducer.d.ts +1 -1
  68. package/dist/redux/semester/reducer.d.ts +1 -1
  69. package/dist/redux/sessionPlayers/reducer.d.ts +1 -1
  70. package/dist/redux/sessionTemplateGeneralClasses/reducer.d.ts +1 -1
  71. package/dist/redux/sessionTemplates/reducer.d.ts +1 -1
  72. package/dist/redux/skills/reducer.d.ts +1 -1
  73. package/dist/redux/subjects/reducer.d.ts +1 -1
  74. package/dist/redux/suggestionBanks/reducer.d.ts +1 -1
  75. package/dist/redux/teacher/myStudent/reducer.d.ts +1 -1
  76. package/dist/redux/tutorialScreen/reducer.d.ts +2 -2
  77. package/dist/redux/users/reducer.d.ts +1 -1
  78. package/dist/redux/widget/reducer.d.ts +1 -1
  79. package/package.json +2 -2
  80. package/dist/containers/Login/constant/type.d.ts +0 -5
  81. package/dist/containers/Login/views/ModelSelectRole.d.ts +0 -4
  82. package/dist/utils/amplitude.d.ts +0 -1
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import "react-notifications-component/dist/theme.css";
3
- declare const _default: () => JSX.Element;
3
+ declare const _default: () => React.JSX.Element;
4
4
  export default _default;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const UploadImage: () => JSX.Element;
1
+ import React from "react";
2
+ declare const UploadImage: () => React.JSX.Element;
3
3
  export default UploadImage;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const NotificationLogoutModal: () => JSX.Element;
1
+ import React from "react";
2
+ declare const NotificationLogoutModal: () => React.JSX.Element;
3
3
  export default NotificationLogoutModal;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const NotificationModal: () => JSX.Element;
1
+ import React from "react";
2
+ declare const NotificationModal: () => React.JSX.Element;
3
3
  export default NotificationModal;
@@ -1,2 +1,2 @@
1
- /// <reference types="react" />
2
- export default function QuitPrompt(props: any): JSX.Element;
1
+ import React from "react";
2
+ export default function QuitPrompt(props: any): React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const CustomPagination: (props: any) => JSX.Element;
1
+ import React from "react";
2
+ declare const CustomPagination: (props: any) => React.JSX.Element;
3
3
  export default CustomPagination;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const AcademicClassSelector: (props: any) => JSX.Element;
1
+ import React from "react";
2
+ declare const AcademicClassSelector: (props: any) => React.JSX.Element;
3
3
  export default AcademicClassSelector;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const CategorySelector: ({ value, ...rest }: any) => JSX.Element;
1
+ import React from 'react';
2
+ declare const CategorySelector: ({ value, ...rest }: any) => React.JSX.Element;
3
3
  export default CategorySelector;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const CreatableSelector: (props: any) => JSX.Element;
1
+ import React from "react";
2
+ declare const CreatableSelector: (props: any) => React.JSX.Element;
3
3
  export default CreatableSelector;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const CustomSelector: ({ defaultValue, options, isDisabled, scrollBottom, ...rest }: any) => JSX.Element;
1
+ import React from "react";
2
+ declare const CustomSelector: ({ defaultValue, options, isDisabled, scrollBottom, ...rest }: any) => React.JSX.Element;
3
3
  export default CustomSelector;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const MailCategorySelector: (props: any) => JSX.Element;
1
+ import React from "react";
2
+ declare const MailCategorySelector: (props: any) => React.JSX.Element;
3
3
  export default MailCategorySelector;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const QuestionCategorySelector: (props: any) => JSX.Element;
1
+ import React from "react";
2
+ declare const QuestionCategorySelector: (props: any) => React.JSX.Element;
3
3
  export default QuestionCategorySelector;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const QuestionTypeSelector: (props: any) => JSX.Element;
1
+ import React from "react";
2
+ declare const QuestionTypeSelector: (props: any) => React.JSX.Element;
3
3
  export default QuestionTypeSelector;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const StarRatingSelector: (props: any) => JSX.Element;
1
+ import React from "react";
2
+ declare const StarRatingSelector: (props: any) => React.JSX.Element;
3
3
  export default StarRatingSelector;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const SuggestionCategorySelector: (props: any) => JSX.Element;
1
+ import React from "react";
2
+ declare const SuggestionCategorySelector: (props: any) => React.JSX.Element;
3
3
  export default SuggestionCategorySelector;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const CustomTabs: (props: any) => JSX.Element;
1
+ import React from "react";
2
+ declare const CustomTabs: (props: any) => React.JSX.Element;
3
3
  export default CustomTabs;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const Dashboard: () => JSX.Element;
1
+ import React from "react";
2
+ declare const Dashboard: () => React.JSX.Element;
3
3
  export default Dashboard;
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  interface loginProps {
3
3
  isLogin?: boolean;
4
4
  isForgotPassword?: boolean;
5
5
  isResetPassword?: boolean;
6
6
  isLoginTwoFactor?: boolean;
7
7
  }
8
- declare const Login: (props: loginProps) => JSX.Element;
8
+ declare const Login: (props: loginProps) => React.JSX.Element;
9
9
  export default Login;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const BlockForgetPassword: () => JSX.Element;
1
+ import React from "react";
2
+ declare const BlockForgetPassword: () => React.JSX.Element;
3
3
  export default BlockForgetPassword;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const BlockResetPassword: () => JSX.Element;
1
+ import React from "react";
2
+ declare const BlockResetPassword: () => React.JSX.Element;
3
3
  export default BlockResetPassword;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const BlockTwoFactorLogin: () => JSX.Element;
1
+ import React from "react";
2
+ declare const BlockTwoFactorLogin: () => React.JSX.Element;
3
3
  export default BlockTwoFactorLogin;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const QuoteContent: () => JSX.Element;
1
+ import React from "react";
2
+ declare const QuoteContent: () => React.JSX.Element;
3
3
  export default QuoteContent;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const NotificationList: () => JSX.Element;
1
+ import React from "react";
2
+ declare const NotificationList: () => React.JSX.Element;
3
3
  export default NotificationList;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const SkillSelector: (props: any) => JSX.Element;
1
+ import React from "react";
2
+ declare const SkillSelector: (props: any) => React.JSX.Element;
3
3
  export default SkillSelector;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const UserDetail: () => JSX.Element;
1
+ import React from "react";
2
+ declare const UserDetail: () => React.JSX.Element;
3
3
  export default UserDetail;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const UserList: () => JSX.Element;
1
+ import React from "react";
2
+ declare const UserList: () => React.JSX.Element;
3
3
  export default UserList;
package/dist/index.css CHANGED
@@ -299,13 +299,13 @@
299
299
  @keyframes _wnn2_ {
300
300
  0% {
301
301
  opacity: 0;
302
- background-image: url("/images/landing-page.jpg"); }
302
+ background-image: url("~/public/images/landing-page.jpg"); }
303
303
  50% {
304
304
  opacity: 1;
305
- background-image: url("/images/landing-page2.jpg"); }
305
+ background-image: url("~/public/images/landing-page2.jpg"); }
306
306
  100% {
307
307
  opacity: 2;
308
- background-image: url("/images/landing-page3.jpg"); } }
308
+ background-image: url("~/public/images/landing-page3.jpg"); } }
309
309
 
310
310
  ._F-hjL {
311
311
  background-color: #336dda;
package/dist/index.js CHANGED
@@ -34,7 +34,6 @@ var Creatable = _interopDefault(require('react-select/creatable'));
34
34
  var ReactNotification$1 = _interopDefault(require('react-notifications-component'));
35
35
  require('react-notifications-component/dist/theme.css');
36
36
  var ai = require('react-icons/ai');
37
- require('symbol-observable');
38
37
 
39
38
  var dashboard = "Dashboard";
40
39
  var user = "User";
@@ -8038,6 +8037,7 @@ var useNotificationList = function useNotificationList() {
8038
8037
  return state.common.user;
8039
8038
  });
8040
8039
  var userId = user === null || user === void 0 ? void 0 : user.id;
8040
+ var studentId = user === null || user === void 0 ? void 0 : user.studentId;
8041
8041
  var notificationList = reactRedux.useSelector(function (state) {
8042
8042
  return state.notification.notificationList;
8043
8043
  });
@@ -8063,7 +8063,7 @@ var useNotificationList = function useNotificationList() {
8063
8063
  return setFilters(_extends({}, filters, objectValue));
8064
8064
  };
8065
8065
  var viewNotification = function viewNotification(notification) {
8066
- var _JSON$parse, _JSON$parse2, _extraData$replace, _extraData$replace$sp, _extraData$replace2, _extraData$replace2$s, _JSON$parse3, _JSON$parse4, _JSON$parse5, _JSON$parse6, _JSON$parse7, _JSON$parse8, _JSON$parse9;
8066
+ var _JSON$parse, _JSON$parse2, _extraData$replace, _extraData$replace$sp, _extraData$replace2, _extraData$replace2$s, _JSON$parse3, _JSON$parse4, _JSON$parse5, _JSON$parse6, _JSON$parse7, _JSON$parse8, _JSON$parse9, _JSON$parse10, _JSON$parse11, _JSON$parse12;
8067
8067
  var source = notification.source,
8068
8068
  extraData = notification.extraData;
8069
8069
  switch (source) {
@@ -8102,6 +8102,12 @@ var useNotificationList = function useNotificationList() {
8102
8102
  break;
8103
8103
  case "RequestCheckIn":
8104
8104
  window.open("/start-question/" + ((_JSON$parse8 = JSON.parse(extraData)) === null || _JSON$parse8 === void 0 ? void 0 : _JSON$parse8[0]) + "/" + ((_JSON$parse9 = JSON.parse(extraData)) === null || _JSON$parse9 === void 0 ? void 0 : _JSON$parse9[1]));
8105
+ case "NewSurveyCreated":
8106
+ !!studentId && window.open("/start-survey/" + ((_JSON$parse10 = JSON.parse(extraData)) === null || _JSON$parse10 === void 0 ? void 0 : _JSON$parse10[0]) + "/" + studentId);
8107
+ break;
8108
+ case "StudentCompletedSurvey":
8109
+ !window.open("/start-survey/" + ((_JSON$parse11 = JSON.parse(extraData)) === null || _JSON$parse11 === void 0 ? void 0 : _JSON$parse11[0]) + "/" + ((_JSON$parse12 = JSON.parse(extraData)) === null || _JSON$parse12 === void 0 ? void 0 : _JSON$parse12[1]));
8110
+ break;
8105
8111
  }
8106
8112
  };
8107
8113
  var getData = React.useCallback(function () {
@@ -8308,7 +8314,7 @@ var NotificationList = function NotificationList() {
8308
8314
  }
8309
8315
  })), React__default.createElement("td", {
8310
8316
  className: "text-center align-middle"
8311
- }, ["AssessmentAssignment", "NewConferenceCreated", "NewSessionCreated", "CertificateApproved", "Class Reflection", "NewSessionComplete", "ActionPointReminder", "SendNotiPLP", "SendNotiGOAL", "Class Reflection Completed", "External Reflection Completed", "RequestCheckIn"].includes(record.source) && React__default.createElement(ai.AiOutlineEye, {
8317
+ }, ["AssessmentAssignment", "NewConferenceCreated", "NewSessionCreated", "CertificateApproved", "Class Reflection", "NewSessionComplete", "ActionPointReminder", "SendNotiPLP", "SendNotiGOAL", "Class Reflection Completed", "External Reflection Completed", "RequestCheckIn", "NewSurveyCreated", "StudentCompletedSurvey"].includes(record.source) && React__default.createElement(ai.AiOutlineEye, {
8312
8318
  className: "cursor-pointer",
8313
8319
  size: ICON_SIZE,
8314
8320
  title: "Detail",
@@ -9211,6 +9217,17 @@ var reduxLogger = createCommonjsModule(function (module, exports) {
9211
9217
 
9212
9218
  var logger = unwrapExports(reduxLogger);
9213
9219
 
9220
+ /**
9221
+ * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js
9222
+ *
9223
+ * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes
9224
+ * during build.
9225
+ * @param {number} code
9226
+ */
9227
+ function formatProdErrorMessage(code) {
9228
+ return "Minified Redux error #" + code + "; visit https://redux.js.org/Errors?code=" + code + " for the full message or " + 'use the non-minified dev environment for full errors. ';
9229
+ }
9230
+
9214
9231
  /**
9215
9232
  * These are private action types reserved by Redux.
9216
9233
  * For any unknown actions, you must return the current state.
@@ -9244,6 +9261,65 @@ function isPlainObject(obj) {
9244
9261
  return Object.getPrototypeOf(obj) === proto;
9245
9262
  }
9246
9263
 
9264
+ // Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of
9265
+ function miniKindOf(val) {
9266
+ if (val === void 0) return 'undefined';
9267
+ if (val === null) return 'null';
9268
+ var type = typeof val;
9269
+
9270
+ switch (type) {
9271
+ case 'boolean':
9272
+ case 'string':
9273
+ case 'number':
9274
+ case 'symbol':
9275
+ case 'function':
9276
+ {
9277
+ return type;
9278
+ }
9279
+ }
9280
+
9281
+ if (Array.isArray(val)) return 'array';
9282
+ if (isDate(val)) return 'date';
9283
+ if (isError(val)) return 'error';
9284
+ var constructorName = ctorName(val);
9285
+
9286
+ switch (constructorName) {
9287
+ case 'Symbol':
9288
+ case 'Promise':
9289
+ case 'WeakMap':
9290
+ case 'WeakSet':
9291
+ case 'Map':
9292
+ case 'Set':
9293
+ return constructorName;
9294
+ } // other
9295
+
9296
+
9297
+ return type.slice(8, -1).toLowerCase().replace(/\s/g, '');
9298
+ }
9299
+
9300
+ function ctorName(val) {
9301
+ return typeof val.constructor === 'function' ? val.constructor.name : null;
9302
+ }
9303
+
9304
+ function isError(val) {
9305
+ return val instanceof Error || typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number';
9306
+ }
9307
+
9308
+ function isDate(val) {
9309
+ if (val instanceof Date) return true;
9310
+ return typeof val.toDateString === 'function' && typeof val.getDate === 'function' && typeof val.setDate === 'function';
9311
+ }
9312
+
9313
+ function kindOf(val) {
9314
+ var typeOfVal = typeof val;
9315
+
9316
+ if (process.env.NODE_ENV !== 'production') {
9317
+ typeOfVal = miniKindOf(val);
9318
+ }
9319
+
9320
+ return typeOfVal;
9321
+ }
9322
+
9247
9323
  /**
9248
9324
  * Prints a warning in the console if it exists.
9249
9325
  *
@@ -9267,12 +9343,6 @@ function warning(message) {
9267
9343
 
9268
9344
  }
9269
9345
 
9270
- function getUndefinedStateErrorMessage(key, action) {
9271
- var actionType = action && action.type;
9272
- var actionDescription = actionType && "action \"" + String(actionType) + "\"" || 'an action';
9273
- return "Given " + actionDescription + ", reducer \"" + key + "\" returned undefined. " + "To ignore an action, you must explicitly return the previous state. " + "If you want this reducer to hold no value, you can return null instead of undefined.";
9274
- }
9275
-
9276
9346
  function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {
9277
9347
  var reducerKeys = Object.keys(reducers);
9278
9348
  var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';
@@ -9282,7 +9352,7 @@ function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, une
9282
9352
  }
9283
9353
 
9284
9354
  if (!isPlainObject(inputState)) {
9285
- return "The " + argumentName + " has unexpected type of \"" + {}.toString.call(inputState).match(/\s([a-z|A-Z]+)/)[1] + "\". Expected argument to be an object with the following " + ("keys: \"" + reducerKeys.join('", "') + "\"");
9355
+ return "The " + argumentName + " has unexpected type of \"" + kindOf(inputState) + "\". Expected argument to be an object with the following " + ("keys: \"" + reducerKeys.join('", "') + "\"");
9286
9356
  }
9287
9357
 
9288
9358
  var unexpectedKeys = Object.keys(inputState).filter(function (key) {
@@ -9306,13 +9376,13 @@ function assertReducerShape(reducers) {
9306
9376
  });
9307
9377
 
9308
9378
  if (typeof initialState === 'undefined') {
9309
- throw new Error("Reducer \"" + key + "\" returned undefined during initialization. " + "If the state passed to the reducer is undefined, you must " + "explicitly return the initial state. The initial state may " + "not be undefined. If you don't want to set a value for this reducer, " + "you can use null instead of undefined.");
9379
+ throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(12) : "The slice reducer for key \"" + key + "\" returned undefined during initialization. " + "If the state passed to the reducer is undefined, you must " + "explicitly return the initial state. The initial state may " + "not be undefined. If you don't want to set a value for this reducer, " + "you can use null instead of undefined.");
9310
9380
  }
9311
9381
 
9312
9382
  if (typeof reducer(undefined, {
9313
9383
  type: ActionTypes.PROBE_UNKNOWN_ACTION()
9314
9384
  }) === 'undefined') {
9315
- throw new Error("Reducer \"" + key + "\" returned undefined when probed with a random type. " + ("Don't try to handle " + ActionTypes.INIT + " or other actions in \"redux/*\" ") + "namespace. They are considered private. Instead, you must return the " + "current state for any unknown actions, unless it is undefined, " + "in which case you must return the initial state, regardless of the " + "action type. The initial state may not be undefined, but can be null.");
9385
+ throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(13) : "The slice reducer for key \"" + key + "\" returned undefined when probed with a random type. " + ("Don't try to handle '" + ActionTypes.INIT + "' or other actions in \"redux/*\" ") + "namespace. They are considered private. Instead, you must return the " + "current state for any unknown actions, unless it is undefined, " + "in which case you must return the initial state, regardless of the " + "action type. The initial state may not be undefined, but can be null.");
9316
9386
  }
9317
9387
  });
9318
9388
  }
@@ -9396,8 +9466,8 @@ function combineReducers(reducers) {
9396
9466
  var nextStateForKey = reducer(previousStateForKey, action);
9397
9467
 
9398
9468
  if (typeof nextStateForKey === 'undefined') {
9399
- var errorMessage = getUndefinedStateErrorMessage(_key, action);
9400
- throw new Error(errorMessage);
9469
+ var actionType = action && action.type;
9470
+ throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(14) : "When called with an action of type " + (actionType ? "\"" + String(actionType) + "\"" : '(unknown type)') + ", the slice reducer for key \"" + _key + "\" returned undefined. " + "To ignore an action, you must explicitly return the previous state. " + "If you want this reducer to hold no value, you can return null instead of undefined.");
9401
9471
  }
9402
9472
 
9403
9473
  nextState[_key] = nextStateForKey;
@@ -9409,17 +9479,6 @@ function combineReducers(reducers) {
9409
9479
  };
9410
9480
  }
9411
9481
 
9412
- /*
9413
- * This is a dummy function to check if the function name has been altered by minification.
9414
- * If the function has been minified and NODE_ENV !== 'production', warn the user.
9415
- */
9416
-
9417
- function isCrushed() {}
9418
-
9419
- if (process.env.NODE_ENV !== 'production' && typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') {
9420
- warning('You are currently using minified code outside of NODE_ENV === "production". ' + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) ' + 'to ensure you have the correct code for your production build.');
9421
- }
9422
-
9423
9482
  var _localStorage$getItem;
9424
9483
  var initialState = {
9425
9484
  sidebarShow: "responsive",