mario-education 2.2.0 → 2.2.6

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 (405) hide show
  1. package/dist/MarioFramework.Education/ClientApp/src/containers/CSVImport/hooks/useCSVImport.d.ts +1 -0
  2. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useDashboard.d.ts +1 -3
  3. package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionBank/hooks/useQuestionDetail.d.ts +1 -0
  4. package/dist/index.js +106 -3889
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.modern.js +106 -3889
  7. package/dist/index.modern.js.map +1 -1
  8. package/package.json +91 -91
  9. package/dist/components/Questions/QuestionList.d.ts +0 -7
  10. package/dist/components/Questions/QuestionSelector.d.ts +0 -9
  11. package/dist/containers/Assessment/components/AssessmentDetailModal.d.ts +0 -3
  12. package/dist/containers/Assessment/components/QuestionSplitPaneSelector.d.ts +0 -3
  13. package/dist/containers/Assessment/hooks/useAssessmentDetail.d.ts +0 -24
  14. package/dist/containers/Assessment/hooks/useAssessmentList.d.ts +0 -10
  15. package/dist/containers/Assessment/hooks/useQuestionCategory.d.ts +0 -13
  16. package/dist/containers/Assessment/views/AssessmentList.d.ts +0 -3
  17. package/dist/containers/AssessmentAssignment/views/AssessmentAssignmentContainer.d.ts +0 -3
  18. package/dist/containers/Assignment/components/AcademicClassSelector.d.ts +0 -3
  19. package/dist/containers/Assignment/components/AssessmentSelector.d.ts +0 -3
  20. package/dist/containers/Assignment/components/AssignmentDetailModal.d.ts +0 -3
  21. package/dist/containers/Assignment/configs/types.d.ts +0 -12
  22. package/dist/containers/Assignment/hooks/useAssignmentDetail.d.ts +0 -24
  23. package/dist/containers/Assignment/hooks/useAssignmentList.d.ts +0 -10
  24. package/dist/containers/Assignment/hooks/useAssignmentResultDetail.d.ts +0 -8
  25. package/dist/containers/Assignment/hooks/useAssignmentResultList.d.ts +0 -10
  26. package/dist/containers/Assignment/views/AssignmentList.d.ts +0 -3
  27. package/dist/containers/Assignment/views/AssignmentResultList.d.ts +0 -3
  28. package/dist/containers/Badge/components/BadgeDetailModal.d.ts +0 -3
  29. package/dist/containers/Badge/hooks/useBadgeDetail.d.ts +0 -20
  30. package/dist/containers/Badge/hooks/useBadgeList.d.ts +0 -10
  31. package/dist/containers/Badge/views/BadgeList.d.ts +0 -3
  32. package/dist/containers/CSVImport/components/UploadCSVButton.d.ts +0 -10
  33. package/dist/containers/CSVImport/hooks/useCSVImport.d.ts +0 -21
  34. package/dist/containers/CSVImport/views/CSVImport.d.ts +0 -3
  35. package/dist/containers/Classes/components/ClassDetailModal.d.ts +0 -3
  36. package/dist/containers/Classes/components/ClassStudentModal.d.ts +0 -3
  37. package/dist/containers/Classes/components/StudentList.d.ts +0 -8
  38. package/dist/containers/Classes/components/StudentSelector.d.ts +0 -8
  39. package/dist/containers/Classes/components/TeacherSelector.d.ts +0 -7
  40. package/dist/containers/Classes/hooks/useClassDetail.d.ts +0 -25
  41. package/dist/containers/Classes/hooks/useClassList.d.ts +0 -13
  42. package/dist/containers/Classes/views/ClassList.d.ts +0 -3
  43. package/dist/containers/ConferenceRubric/components/ConferenceRubricItem.d.ts +0 -14
  44. package/dist/containers/ConferenceRubric/components/ConferenceRubricTypeSelector.d.ts +0 -7
  45. package/dist/containers/ConferenceRubric/components/SkillSelector.d.ts +0 -8
  46. package/dist/containers/ConferenceRubric/components/ToggleInput.d.ts +0 -9
  47. package/dist/containers/ConferenceRubric/configs/types.d.ts +0 -44
  48. package/dist/containers/ConferenceRubric/hooks/useConferenceRubricDetail.d.ts +0 -36
  49. package/dist/containers/ConferenceRubric/hooks/useConferenceRubricList.d.ts +0 -11
  50. package/dist/containers/ConferenceRubric/views/ConferenceRubricDetail.d.ts +0 -3
  51. package/dist/containers/ConferenceRubric/views/ConferenceRubricList.d.ts +0 -3
  52. package/dist/containers/CustomAlert/components/CustomAlertDetailModal.d.ts +0 -3
  53. package/dist/containers/CustomAlert/hooks/useCustomAlertDetail.d.ts +0 -22
  54. package/dist/containers/CustomAlert/hooks/useCustomAlertList.d.ts +0 -10
  55. package/dist/containers/CustomAlert/views/CustomAlertList.d.ts +0 -3
  56. package/dist/containers/Feedback/components/FeedbackDetailModal.d.ts +0 -3
  57. package/dist/containers/Feedback/hooks/useFeedbackDetail.d.ts +0 -11
  58. package/dist/containers/Feedback/hooks/useFeedbackList.d.ts +0 -9
  59. package/dist/containers/Feedback/views/FeedbackList.d.ts +0 -3
  60. package/dist/containers/GoalExample/components/GoalExampleDetailModal.d.ts +0 -3
  61. package/dist/containers/GoalExample/hooks/useGoalExampleDetail.d.ts +0 -27
  62. package/dist/containers/GoalExample/hooks/useGoalExampleList.d.ts +0 -11
  63. package/dist/containers/GoalExample/hooks/useShortTermTargetExampleList.d.ts +0 -12
  64. package/dist/containers/GoalExample/views/GoalExampleList.d.ts +0 -3
  65. package/dist/containers/LearningStrategy/components/StrategyDetailModal.d.ts +0 -3
  66. package/dist/containers/LearningStrategy/hooks/useLearningStrategyList.d.ts +0 -10
  67. package/dist/containers/LearningStrategy/hooks/useStrategyDetail.d.ts +0 -18
  68. package/dist/containers/LearningStrategy/views/LearningStrategyList.d.ts +0 -3
  69. package/dist/containers/LearningSupportCategory/components/LearningSupportCategoryDetailModal.d.ts +0 -3
  70. package/dist/containers/LearningSupportCategory/components/LearningSupportCategorySelector.d.ts +0 -7
  71. package/dist/containers/LearningSupportCategory/hooks/useLearningSupportCategoryDetail.d.ts +0 -19
  72. package/dist/containers/LearningSupportCategory/hooks/useLearningSupportCategoryList.d.ts +0 -10
  73. package/dist/containers/LearningSupportCategory/views/LearningSupportCategoryList.d.ts +0 -3
  74. package/dist/containers/ManageAssistant/views/ManageAssistantList.d.ts +0 -3
  75. package/dist/containers/QuestionBank/components/AdditionalComponent.d.ts +0 -7
  76. package/dist/containers/QuestionBank/components/AgGridComponents.d.ts +0 -11
  77. package/dist/containers/QuestionBank/components/AnswerList.d.ts +0 -9
  78. package/dist/containers/QuestionBank/components/DefaultQuestionStudentTeacherFilter.d.ts +0 -8
  79. package/dist/containers/QuestionBank/components/DefaultQuestionTypeSelector.d.ts +0 -7
  80. package/dist/containers/QuestionBank/components/QuestionPreview.d.ts +0 -3
  81. package/dist/containers/QuestionBank/components/SliderScale.d.ts +0 -8
  82. package/dist/containers/QuestionBank/components/StarRating.d.ts +0 -7
  83. package/dist/containers/QuestionBank/components/SubQuestions.d.ts +0 -7
  84. package/dist/containers/QuestionBank/configs/questionDetailSchema.d.ts +0 -25
  85. package/dist/containers/QuestionBank/configs/validationAnswerId.d.ts +0 -2
  86. package/dist/containers/QuestionBank/configs/validationChoices.d.ts +0 -2
  87. package/dist/containers/QuestionBank/hooks/useQuestionAnswerList.d.ts +0 -7
  88. package/dist/containers/QuestionBank/hooks/useQuestionDetail.d.ts +0 -31
  89. package/dist/containers/QuestionBank/hooks/useQuestionList.d.ts +0 -12
  90. package/dist/containers/QuestionBank/hooks/useSubQuestionList.d.ts +0 -6
  91. package/dist/containers/QuestionBank/views/QuestionBankContainer.d.ts +0 -3
  92. package/dist/containers/QuestionBank/views/QuestionBankList.d.ts +0 -6
  93. package/dist/containers/QuestionBank/views/QuestionDetail.d.ts +0 -3
  94. package/dist/containers/QuestionCategory/components/QuestionCateModal.d.ts +0 -3
  95. package/dist/containers/QuestionCategory/hooks/useQuestionCateDetail.d.ts +0 -18
  96. package/dist/containers/QuestionCategory/hooks/useQuestionCateList.d.ts +0 -10
  97. package/dist/containers/QuestionCategory/views/QuestionCategogyList.d.ts +0 -3
  98. package/dist/containers/ReflectionForm/components/QuestionResponse/EmotionalResponse.d.ts +0 -3
  99. package/dist/containers/ReflectionForm/components/QuestionResponse/MultipleChoiceResponse.d.ts +0 -3
  100. package/dist/containers/ReflectionForm/components/QuestionResponse/RatingReponse.d.ts +0 -3
  101. package/dist/containers/ReflectionForm/components/QuestionResponse/RatingStarReponse.d.ts +0 -3
  102. package/dist/containers/ReflectionForm/components/QuestionResponse/TextInputResponse.d.ts +0 -3
  103. package/dist/containers/ReflectionForm/components/QuestionSplitPaneSelector.d.ts +0 -3
  104. package/dist/containers/ReflectionForm/components/ReflectionDetailModal.d.ts +0 -3
  105. package/dist/containers/ReflectionForm/components/ReflectionResultDetailModal.d.ts +0 -3
  106. package/dist/containers/ReflectionForm/configs/types.d.ts +0 -43
  107. package/dist/containers/ReflectionForm/hooks/useQuestionCategory.d.ts +0 -13
  108. package/dist/containers/ReflectionForm/hooks/useReflectionFormDetail.d.ts +0 -21
  109. package/dist/containers/ReflectionForm/hooks/useReflectionFormList.d.ts +0 -10
  110. package/dist/containers/ReflectionForm/hooks/useReflectionResultDetail.d.ts +0 -8
  111. package/dist/containers/ReflectionForm/hooks/useReflectionResultList.d.ts +0 -9
  112. package/dist/containers/ReflectionForm/views/ReflectionContainer.d.ts +0 -3
  113. package/dist/containers/ReflectionForm/views/ReflectionFormList.d.ts +0 -3
  114. package/dist/containers/ReflectionForm/views/ReflectionResultList.d.ts +0 -3
  115. package/dist/containers/Semester/components/BreakingMonthModal.d.ts +0 -3
  116. package/dist/containers/Semester/components/SemesterDetailModal.d.ts +0 -3
  117. package/dist/containers/Semester/hooks/useBreakingMonth.d.ts +0 -14
  118. package/dist/containers/Semester/hooks/useSemesterDetail.d.ts +0 -19
  119. package/dist/containers/Semester/hooks/useSemesterList.d.ts +0 -10
  120. package/dist/containers/Semester/views/SemesterList.d.ts +0 -3
  121. package/dist/containers/SessionTemplate/components/AddQuestionModal.d.ts +0 -11
  122. package/dist/containers/SessionTemplate/components/CategorySelector.d.ts +0 -7
  123. package/dist/containers/SessionTemplate/components/ConferenceRubricSelector.d.ts +0 -7
  124. package/dist/containers/SessionTemplate/components/ReflectionFormSelector.d.ts +0 -7
  125. package/dist/containers/SessionTemplate/components/SkillSelector.d.ts +0 -7
  126. package/dist/containers/SessionTemplate/configs/validationSchema.d.ts +0 -21
  127. package/dist/containers/SessionTemplate/hooks/useAddQuestion.d.ts +0 -8
  128. package/dist/containers/SessionTemplate/hooks/useSessionTemplateDetail.d.ts +0 -29
  129. package/dist/containers/SessionTemplate/hooks/useSessionTemplateList.d.ts +0 -11
  130. package/dist/containers/SessionTemplate/views/SessionTemplateDetail.d.ts +0 -3
  131. package/dist/containers/SessionTemplate/views/SessionTemplateList.d.ts +0 -3
  132. package/dist/containers/SessionTemplateContainer/views/SessionTemplateContainer.d.ts +0 -3
  133. package/dist/containers/SessionTemplateGeneralClass/components/SubjectSelector.d.ts +0 -7
  134. package/dist/containers/SessionTemplateGeneralClass/hooks/useSessionTemplateGeneralClassDetail.d.ts +0 -27
  135. package/dist/containers/SessionTemplateGeneralClass/hooks/useSessionTemplateGeneralClassList.d.ts +0 -11
  136. package/dist/containers/SessionTemplateGeneralClass/views/SessionTemplateGeneralClassDetail.d.ts +0 -3
  137. package/dist/containers/SessionTemplateGeneralClass/views/SessionTemplateGeneralClassList.d.ts +0 -3
  138. package/dist/containers/Setup/views/SetupContainer.d.ts +0 -3
  139. package/dist/containers/Subject/components/SubjectDetailModal.d.ts +0 -3
  140. package/dist/containers/Subject/hooks/useSubjectDetail.d.ts +0 -19
  141. package/dist/containers/Subject/hooks/useSubjectList.d.ts +0 -10
  142. package/dist/containers/Subject/views/SubjectList.d.ts +0 -3
  143. package/dist/containers/SuggestionBank/components/SuggestionDetailModal.d.ts +0 -3
  144. package/dist/containers/SuggestionBank/hooks/useKeywordList.d.ts +0 -12
  145. package/dist/containers/SuggestionBank/hooks/useSuggestionDetail.d.ts +0 -30
  146. package/dist/containers/SuggestionBank/hooks/useSuggestionList.d.ts +0 -11
  147. package/dist/containers/SuggestionBank/views/SuggestionList.d.ts +0 -3
  148. package/dist/containers/TutorialScreen/components/TutorialScreenDetailModal.d.ts +0 -3
  149. package/dist/containers/TutorialScreen/components/TutorialScreenList.d.ts +0 -7
  150. package/dist/containers/TutorialScreen/enums/TutorialScreenType.d.ts +0 -7
  151. package/dist/containers/TutorialScreen/hooks/useTutorialScreenDetail.d.ts +0 -20
  152. package/dist/containers/TutorialScreen/hooks/useTutorialScreenList.d.ts +0 -11
  153. package/dist/containers/TutorialScreen/views/TutorialScreenContainer.d.ts +0 -3
  154. package/dist/containers/TutorialScreen/views/TutorialScreenList.d.ts +0 -3
  155. package/dist/index.d.ts +0 -26
  156. package/dist/index.test.d.ts +0 -1
  157. package/dist/services/academicYearService.d.ts +0 -2
  158. package/dist/services/assessmentService.d.ts +0 -6
  159. package/dist/services/assignmentResultService.d.ts +0 -3
  160. package/dist/services/assignmentService.d.ts +0 -7
  161. package/dist/services/assistantService.d.ts +0 -2
  162. package/dist/services/badgeService.d.ts +0 -6
  163. package/dist/services/classService.d.ts +0 -9
  164. package/dist/services/conferenceRubricService.d.ts +0 -9
  165. package/dist/services/csvService.d.ts +0 -1
  166. package/dist/services/customAlertService.d.ts +0 -7
  167. package/dist/services/feedbackService.d.ts +0 -6
  168. package/dist/services/goalExampleService.d.ts +0 -6
  169. package/dist/services/learningStrategyService.d.ts +0 -6
  170. package/dist/services/learningSupportCategoryService.d.ts +0 -6
  171. package/dist/services/questionCategoryService.d.ts +0 -6
  172. package/dist/services/questionService.d.ts +0 -6
  173. package/dist/services/reflectionFormResponseService.d.ts +0 -3
  174. package/dist/services/reflectionFormService.d.ts +0 -6
  175. package/dist/services/semesterService.d.ts +0 -6
  176. package/dist/services/sessionTemplateGeneralClassService.d.ts +0 -6
  177. package/dist/services/sessionTemplateService.d.ts +0 -11
  178. package/dist/services/studentService.d.ts +0 -2
  179. package/dist/services/subjectService.d.ts +0 -6
  180. package/dist/services/suggestionService.d.ts +0 -6
  181. package/dist/services/tutorialScreenService.d.ts +0 -5
  182. package/dist/src/components/Input/ToggleInput.d.ts +0 -10
  183. package/dist/src/components/Questions/QuestionList.d.ts +0 -7
  184. package/dist/src/components/Questions/QuestionSelector.d.ts +0 -9
  185. package/dist/src/containers/Assessment/components/AssessmentDetailModal.d.ts +0 -3
  186. package/dist/src/containers/Assessment/components/QuestionSplitPaneSelector.d.ts +0 -3
  187. package/dist/src/containers/Assessment/hooks/useAssessmentDetail.d.ts +0 -24
  188. package/dist/src/containers/Assessment/hooks/useAssessmentList.d.ts +0 -10
  189. package/dist/src/containers/Assessment/hooks/useQuestionCategory.d.ts +0 -13
  190. package/dist/src/containers/Assessment/views/AssessmentList.d.ts +0 -3
  191. package/dist/src/containers/AssessmentAssignment/views/AssessmentAssignmentContainer.d.ts +0 -3
  192. package/dist/src/containers/Assignment/components/AcademicClassSelector.d.ts +0 -3
  193. package/dist/src/containers/Assignment/components/AssessmentSelector.d.ts +0 -3
  194. package/dist/src/containers/Assignment/components/AssignmentDetailModal.d.ts +0 -3
  195. package/dist/src/containers/Assignment/components/SemesterSelector.d.ts +0 -8
  196. package/dist/src/containers/Assignment/configs/types.d.ts +0 -13
  197. package/dist/src/containers/Assignment/hooks/useAssignmentDetail.d.ts +0 -27
  198. package/dist/src/containers/Assignment/hooks/useAssignmentList.d.ts +0 -18
  199. package/dist/src/containers/Assignment/hooks/useAssignmentResultDetail.d.ts +0 -8
  200. package/dist/src/containers/Assignment/hooks/useAssignmentResultList.d.ts +0 -10
  201. package/dist/src/containers/Assignment/views/AssignmentList.d.ts +0 -3
  202. package/dist/src/containers/Assignment/views/AssignmentResultList.d.ts +0 -3
  203. package/dist/src/containers/Badge/components/BadgeDetailModal.d.ts +0 -3
  204. package/dist/src/containers/Badge/hooks/useBadgeDetail.d.ts +0 -20
  205. package/dist/src/containers/Badge/hooks/useBadgeList.d.ts +0 -10
  206. package/dist/src/containers/Badge/views/BadgeList.d.ts +0 -3
  207. package/dist/src/containers/BandScore/components/BandScoreDetailModal.d.ts +0 -3
  208. package/dist/src/containers/BandScore/hooks/useBandScoreDetail.d.ts +0 -18
  209. package/dist/src/containers/BandScore/hooks/useBandScoreList.d.ts +0 -7
  210. package/dist/src/containers/BandScore/hooks/useBreakPoint.d.ts +0 -12
  211. package/dist/src/containers/BandScore/views/BandScoreList.d.ts +0 -3
  212. package/dist/src/containers/CSVImport/components/UploadCSVButton.d.ts +0 -10
  213. package/dist/src/containers/CSVImport/hooks/useCSVImport.d.ts +0 -21
  214. package/dist/src/containers/CSVImport/views/CSVImport.d.ts +0 -3
  215. package/dist/src/containers/Certificate/components/CertificateApproved.d.ts +0 -3
  216. package/dist/src/containers/Certificate/components/CertificateDetailModal.d.ts +0 -3
  217. package/dist/src/containers/Certificate/components/CertificateItem.d.ts +0 -9
  218. package/dist/src/containers/Certificate/components/CertificateList.d.ts +0 -3
  219. package/dist/src/containers/Certificate/components/CertificateReview.d.ts +0 -3
  220. package/dist/src/containers/Certificate/config/constants.d.ts +0 -19
  221. package/dist/src/containers/Certificate/hooks/useCertificateDetail.d.ts +0 -26
  222. package/dist/src/containers/Certificate/hooks/useCertificateList.d.ts +0 -10
  223. package/dist/src/containers/Certificate/hooks/useCertificateReview.d.ts +0 -7
  224. package/dist/src/containers/Certificate/views/CertificateContainer.d.ts +0 -3
  225. package/dist/src/containers/Classes/components/ClassDetailModal.d.ts +0 -3
  226. package/dist/src/containers/Classes/components/ClassStudentModal.d.ts +0 -3
  227. package/dist/src/containers/Classes/components/StudentList.d.ts +0 -8
  228. package/dist/src/containers/Classes/components/StudentSelector.d.ts +0 -8
  229. package/dist/src/containers/Classes/components/TeacherMultiSelector.d.ts +0 -7
  230. package/dist/src/containers/Classes/components/TeacherSelector.d.ts +0 -7
  231. package/dist/src/containers/Classes/hooks/useClassDetail.d.ts +0 -25
  232. package/dist/src/containers/Classes/hooks/useClassList.d.ts +0 -13
  233. package/dist/src/containers/Classes/views/ClassList.d.ts +0 -3
  234. package/dist/src/containers/CompareTeacher/components/TeacherItem.d.ts +0 -8
  235. package/dist/src/containers/CompareTeacher/configs/constants.d.ts +0 -18
  236. package/dist/src/containers/CompareTeacher/hooks/useCompareTeacher.d.ts +0 -17
  237. package/dist/src/containers/CompareTeacher/views/CompareTeacher.d.ts +0 -3
  238. package/dist/src/containers/ConferenceRubric/components/ConferenceRubricItem.d.ts +0 -14
  239. package/dist/src/containers/ConferenceRubric/components/ConferenceRubricTypeSelector.d.ts +0 -7
  240. package/dist/src/containers/ConferenceRubric/components/SkillSelector.d.ts +0 -8
  241. package/dist/src/containers/ConferenceRubric/configs/types.d.ts +0 -44
  242. package/dist/src/containers/ConferenceRubric/hooks/useConferenceRubricDetail.d.ts +0 -36
  243. package/dist/src/containers/ConferenceRubric/hooks/useConferenceRubricList.d.ts +0 -11
  244. package/dist/src/containers/ConferenceRubric/views/ConferenceRubricDetail.d.ts +0 -3
  245. package/dist/src/containers/ConferenceRubric/views/ConferenceRubricList.d.ts +0 -3
  246. package/dist/src/containers/CurrentLicense/hooks/useCurrentLicense.d.ts +0 -6
  247. package/dist/src/containers/CurrentLicense/views/CurrentLicense.d.ts +0 -3
  248. package/dist/src/containers/CustomAlert/components/CustomAlertDetailModal.d.ts +0 -3
  249. package/dist/src/containers/CustomAlert/hooks/useCustomAlertDetail.d.ts +0 -22
  250. package/dist/src/containers/CustomAlert/hooks/useCustomAlertList.d.ts +0 -10
  251. package/dist/src/containers/CustomAlert/views/CustomAlertList.d.ts +0 -3
  252. package/dist/src/containers/Dashboard/components/CustomCheckbox.d.ts +0 -9
  253. package/dist/src/containers/Dashboard/components/DashboardCard.d.ts +0 -7
  254. package/dist/src/containers/Dashboard/components/GoalProgress.d.ts +0 -7
  255. package/dist/src/containers/Dashboard/components/Grade.d.ts +0 -7
  256. package/dist/src/containers/Dashboard/components/HighImpact.d.ts +0 -6
  257. package/dist/src/containers/Dashboard/components/Loading.d.ts +0 -3
  258. package/dist/src/containers/Dashboard/components/LoginCouting.d.ts +0 -7
  259. package/dist/src/containers/Dashboard/components/PerceivedImpact.d.ts +0 -7
  260. package/dist/src/containers/Dashboard/components/Quantity.d.ts +0 -7
  261. package/dist/src/containers/Dashboard/components/Skill.d.ts +0 -7
  262. package/dist/src/containers/Dashboard/components/TimeInSession.d.ts +0 -7
  263. package/dist/src/containers/Dashboard/configs/constants.d.ts +0 -1
  264. package/dist/src/containers/Dashboard/configs/types.d.ts +0 -48
  265. package/dist/src/containers/Dashboard/configs/utils.d.ts +0 -1
  266. package/dist/src/containers/Dashboard/hooks/useDashboard.d.ts +0 -12
  267. package/dist/src/containers/Dashboard/hooks/useSkillFormat.d.ts +0 -9
  268. package/dist/src/containers/Dashboard/views/Dashboard.d.ts +0 -3
  269. package/dist/src/containers/Feedback/components/FeedbackDetailModal.d.ts +0 -3
  270. package/dist/src/containers/Feedback/hooks/useFeedbackDetail.d.ts +0 -11
  271. package/dist/src/containers/Feedback/hooks/useFeedbackList.d.ts +0 -9
  272. package/dist/src/containers/Feedback/views/FeedbackList.d.ts +0 -3
  273. package/dist/src/containers/GoalExample/components/GoalExampleDetailModal.d.ts +0 -3
  274. package/dist/src/containers/GoalExample/hooks/useGoalExampleDetail.d.ts +0 -27
  275. package/dist/src/containers/GoalExample/hooks/useGoalExampleList.d.ts +0 -11
  276. package/dist/src/containers/GoalExample/hooks/useShortTermTargetExampleList.d.ts +0 -12
  277. package/dist/src/containers/GoalExample/views/GoalExampleList.d.ts +0 -3
  278. package/dist/src/containers/LearningStrategy/components/StrategyDetailModal.d.ts +0 -3
  279. package/dist/src/containers/LearningStrategy/hooks/useLearningStrategyList.d.ts +0 -10
  280. package/dist/src/containers/LearningStrategy/hooks/useStrategyDetail.d.ts +0 -18
  281. package/dist/src/containers/LearningStrategy/views/LearningStrategyList.d.ts +0 -3
  282. package/dist/src/containers/LearningSupportCategory/components/LearningSupportCategoryDetailModal.d.ts +0 -3
  283. package/dist/src/containers/LearningSupportCategory/components/LearningSupportCategorySelector.d.ts +0 -7
  284. package/dist/src/containers/LearningSupportCategory/hooks/useLearningSupportCategoryDetail.d.ts +0 -19
  285. package/dist/src/containers/LearningSupportCategory/hooks/useLearningSupportCategoryList.d.ts +0 -10
  286. package/dist/src/containers/LearningSupportCategory/views/LearningSupportCategoryList.d.ts +0 -3
  287. package/dist/src/containers/ManageAssistant/views/ManageAssistantList.d.ts +0 -3
  288. package/dist/src/containers/QuestionBank/components/AdditionalComponent.d.ts +0 -7
  289. package/dist/src/containers/QuestionBank/components/AgGridComponents.d.ts +0 -11
  290. package/dist/src/containers/QuestionBank/components/AnswerList.d.ts +0 -9
  291. package/dist/src/containers/QuestionBank/components/DefaultQuestionStudentTeacherFilter.d.ts +0 -8
  292. package/dist/src/containers/QuestionBank/components/DefaultQuestionTypeSelector.d.ts +0 -7
  293. package/dist/src/containers/QuestionBank/components/QuestionPreview.d.ts +0 -3
  294. package/dist/src/containers/QuestionBank/components/SliderScale.d.ts +0 -8
  295. package/dist/src/containers/QuestionBank/components/StarRating.d.ts +0 -7
  296. package/dist/src/containers/QuestionBank/components/SubQuestions.d.ts +0 -7
  297. package/dist/src/containers/QuestionBank/configs/questionDetailSchema.d.ts +0 -25
  298. package/dist/src/containers/QuestionBank/configs/validationAnswerId.d.ts +0 -2
  299. package/dist/src/containers/QuestionBank/configs/validationChoices.d.ts +0 -2
  300. package/dist/src/containers/QuestionBank/hooks/useQuestionAnswerList.d.ts +0 -7
  301. package/dist/src/containers/QuestionBank/hooks/useQuestionDetail.d.ts +0 -32
  302. package/dist/src/containers/QuestionBank/hooks/useQuestionList.d.ts +0 -12
  303. package/dist/src/containers/QuestionBank/hooks/useSubQuestionList.d.ts +0 -6
  304. package/dist/src/containers/QuestionBank/views/QuestionBankContainer.d.ts +0 -3
  305. package/dist/src/containers/QuestionBank/views/QuestionBankList.d.ts +0 -6
  306. package/dist/src/containers/QuestionBank/views/QuestionDetail.d.ts +0 -3
  307. package/dist/src/containers/QuestionCategory/components/QuestionCateModal.d.ts +0 -3
  308. package/dist/src/containers/QuestionCategory/hooks/useQuestionCateDetail.d.ts +0 -18
  309. package/dist/src/containers/QuestionCategory/hooks/useQuestionCateList.d.ts +0 -10
  310. package/dist/src/containers/QuestionCategory/views/QuestionCategogyList.d.ts +0 -3
  311. package/dist/src/containers/ReflectionForm/components/QuestionResponse/EmotionalResponse.d.ts +0 -3
  312. package/dist/src/containers/ReflectionForm/components/QuestionResponse/MultipleChoiceResponse.d.ts +0 -3
  313. package/dist/src/containers/ReflectionForm/components/QuestionResponse/RatingReponse.d.ts +0 -3
  314. package/dist/src/containers/ReflectionForm/components/QuestionResponse/RatingStarReponse.d.ts +0 -3
  315. package/dist/src/containers/ReflectionForm/components/QuestionResponse/TextInputResponse.d.ts +0 -3
  316. package/dist/src/containers/ReflectionForm/components/QuestionSplitPaneSelector.d.ts +0 -3
  317. package/dist/src/containers/ReflectionForm/components/ReflectionDetailModal.d.ts +0 -3
  318. package/dist/src/containers/ReflectionForm/components/ReflectionResultDetailModal.d.ts +0 -3
  319. package/dist/src/containers/ReflectionForm/configs/types.d.ts +0 -43
  320. package/dist/src/containers/ReflectionForm/hooks/useQuestionCategory.d.ts +0 -13
  321. package/dist/src/containers/ReflectionForm/hooks/useReflectionFormDetail.d.ts +0 -21
  322. package/dist/src/containers/ReflectionForm/hooks/useReflectionFormList.d.ts +0 -10
  323. package/dist/src/containers/ReflectionForm/hooks/useReflectionResultDetail.d.ts +0 -8
  324. package/dist/src/containers/ReflectionForm/hooks/useReflectionResultList.d.ts +0 -9
  325. package/dist/src/containers/ReflectionForm/views/ReflectionContainer.d.ts +0 -3
  326. package/dist/src/containers/ReflectionForm/views/ReflectionFormList.d.ts +0 -3
  327. package/dist/src/containers/ReflectionForm/views/ReflectionResultList.d.ts +0 -3
  328. package/dist/src/containers/SchoolBlankDay/components/SchoolBlankDayDetailModal.d.ts +0 -3
  329. package/dist/src/containers/SchoolBlankDay/hooks/useSchoolBlankDayDetail.d.ts +0 -19
  330. package/dist/src/containers/SchoolBlankDay/hooks/useSchoolBlankDayList.d.ts +0 -10
  331. package/dist/src/containers/SchoolBlankDay/views/SchoolBlankDayList.d.ts +0 -3
  332. package/dist/src/containers/Semester/components/BreakingMonthModal.d.ts +0 -3
  333. package/dist/src/containers/Semester/components/SemesterDetailModal.d.ts +0 -3
  334. package/dist/src/containers/Semester/hooks/useBreakingMonth.d.ts +0 -14
  335. package/dist/src/containers/Semester/hooks/useSemesterDetail.d.ts +0 -19
  336. package/dist/src/containers/Semester/hooks/useSemesterList.d.ts +0 -10
  337. package/dist/src/containers/Semester/views/SemesterList.d.ts +0 -3
  338. package/dist/src/containers/SessionTemplate/components/AddQuestionModal.d.ts +0 -11
  339. package/dist/src/containers/SessionTemplate/components/CategorySelector.d.ts +0 -7
  340. package/dist/src/containers/SessionTemplate/components/ConferenceRubricSelector.d.ts +0 -7
  341. package/dist/src/containers/SessionTemplate/components/ReflectionFormSelector.d.ts +0 -7
  342. package/dist/src/containers/SessionTemplate/components/SkillSelector.d.ts +0 -7
  343. package/dist/src/containers/SessionTemplate/configs/validationSchema.d.ts +0 -21
  344. package/dist/src/containers/SessionTemplate/hooks/useAddQuestion.d.ts +0 -8
  345. package/dist/src/containers/SessionTemplate/hooks/useSessionTemplateDetail.d.ts +0 -29
  346. package/dist/src/containers/SessionTemplate/hooks/useSessionTemplateList.d.ts +0 -11
  347. package/dist/src/containers/SessionTemplate/views/SessionTemplateDetail.d.ts +0 -3
  348. package/dist/src/containers/SessionTemplate/views/SessionTemplateList.d.ts +0 -3
  349. package/dist/src/containers/SessionTemplateContainer/views/SessionTemplateContainer.d.ts +0 -3
  350. package/dist/src/containers/SessionTemplateGeneralClass/components/SubjectSelector.d.ts +0 -7
  351. package/dist/src/containers/SessionTemplateGeneralClass/hooks/useSessionTemplateGeneralClassDetail.d.ts +0 -27
  352. package/dist/src/containers/SessionTemplateGeneralClass/hooks/useSessionTemplateGeneralClassList.d.ts +0 -11
  353. package/dist/src/containers/SessionTemplateGeneralClass/views/SessionTemplateGeneralClassDetail.d.ts +0 -3
  354. package/dist/src/containers/SessionTemplateGeneralClass/views/SessionTemplateGeneralClassList.d.ts +0 -3
  355. package/dist/src/containers/Setup/views/SetupContainer.d.ts +0 -3
  356. package/dist/src/containers/Subject/components/SubjectDetailModal.d.ts +0 -3
  357. package/dist/src/containers/Subject/hooks/useSubjectDetail.d.ts +0 -19
  358. package/dist/src/containers/Subject/hooks/useSubjectList.d.ts +0 -10
  359. package/dist/src/containers/Subject/views/SubjectList.d.ts +0 -3
  360. package/dist/src/containers/SuggestionBank/components/SuggestionDetailModal.d.ts +0 -3
  361. package/dist/src/containers/SuggestionBank/hooks/useKeywordList.d.ts +0 -12
  362. package/dist/src/containers/SuggestionBank/hooks/useSuggestionDetail.d.ts +0 -30
  363. package/dist/src/containers/SuggestionBank/hooks/useSuggestionList.d.ts +0 -11
  364. package/dist/src/containers/SuggestionBank/views/SuggestionList.d.ts +0 -3
  365. package/dist/src/containers/TutorialScreen/components/TutorialScreenDetailModal.d.ts +0 -3
  366. package/dist/src/containers/TutorialScreen/components/TutorialScreenList.d.ts +0 -7
  367. package/dist/src/containers/TutorialScreen/enums/TutorialScreenType.d.ts +0 -7
  368. package/dist/src/containers/TutorialScreen/hooks/useTutorialScreenDetail.d.ts +0 -20
  369. package/dist/src/containers/TutorialScreen/hooks/useTutorialScreenList.d.ts +0 -11
  370. package/dist/src/containers/TutorialScreen/views/TutorialScreenContainer.d.ts +0 -3
  371. package/dist/src/index.d.ts +0 -29
  372. package/dist/src/index.test.d.ts +0 -1
  373. package/dist/src/services/academicYearService.d.ts +0 -2
  374. package/dist/src/services/assessmentService.d.ts +0 -6
  375. package/dist/src/services/assignmentResultService.d.ts +0 -3
  376. package/dist/src/services/assignmentService.d.ts +0 -8
  377. package/dist/src/services/assistantService.d.ts +0 -2
  378. package/dist/src/services/badgeService.d.ts +0 -6
  379. package/dist/src/services/bandScoreService.d.ts +0 -7
  380. package/dist/src/services/certificateService.d.ts +0 -8
  381. package/dist/src/services/classService.d.ts +0 -9
  382. package/dist/src/services/compareService.d.ts +0 -1
  383. package/dist/src/services/conferenceRubricService.d.ts +0 -9
  384. package/dist/src/services/csvService.d.ts +0 -1
  385. package/dist/src/services/currentLicenseService.d.ts +0 -3
  386. package/dist/src/services/customAlertService.d.ts +0 -7
  387. package/dist/src/services/dashboardService.d.ts +0 -8
  388. package/dist/src/services/feedbackService.d.ts +0 -6
  389. package/dist/src/services/goalExampleService.d.ts +0 -6
  390. package/dist/src/services/learningStrategyService.d.ts +0 -6
  391. package/dist/src/services/learningSupportCategoryService.d.ts +0 -6
  392. package/dist/src/services/questionCategoryService.d.ts +0 -6
  393. package/dist/src/services/questionService.d.ts +0 -6
  394. package/dist/src/services/reflectionFormResponseService.d.ts +0 -3
  395. package/dist/src/services/reflectionFormService.d.ts +0 -6
  396. package/dist/src/services/schoolBlankDayService.d.ts +0 -6
  397. package/dist/src/services/semesterService.d.ts +0 -6
  398. package/dist/src/services/sessionTemplateGeneralClassService.d.ts +0 -6
  399. package/dist/src/services/sessionTemplateService.d.ts +0 -11
  400. package/dist/src/services/studentService.d.ts +0 -2
  401. package/dist/src/services/subjectService.d.ts +0 -6
  402. package/dist/src/services/suggestionService.d.ts +0 -6
  403. package/dist/src/services/tutorialScreenService.d.ts +0 -5
  404. package/dist/src/utils/constants.d.ts +0 -7
  405. package/dist/utils/constants.d.ts +0 -7
package/dist/index.js CHANGED
@@ -5223,14 +5223,11 @@ var CSVType;
5223
5223
  CSVType["Subjects"] = "subjects";
5224
5224
  CSVType["Grades"] = "grades";
5225
5225
  CSVType["Attendances"] = "attendances";
5226
+ CSVType["ClassReflection"] = "classReflection";
5226
5227
  CSVType["Others"] = "others";
5227
5228
  })(CSVType || (CSVType = {}));
5228
5229
 
5229
5230
  var buttons = [{
5230
- text: "Import students",
5231
- backgroundColor: "#0abde3",
5232
- type: CSVType.Students
5233
- }, {
5234
5231
  text: "Import subjects",
5235
5232
  backgroundColor: "#1dd1a1",
5236
5233
  type: CSVType.Subjects
@@ -5242,6 +5239,10 @@ var buttons = [{
5242
5239
  text: "Import attendances",
5243
5240
  backgroundColor: "#feca57",
5244
5241
  type: CSVType.Attendances
5242
+ }, {
5243
+ text: "Import class reflections",
5244
+ backgroundColor: "#e74c3c",
5245
+ type: CSVType.ClassReflection
5245
5246
  }, {
5246
5247
  text: "Import others",
5247
5248
  backgroundColor: "#8395a7",
@@ -5328,6 +5329,7 @@ var CSVImport = function CSVImport() {
5328
5329
  className: "d-flex align-items-center"
5329
5330
  }, buttons.map(function (button) {
5330
5331
  return React__default.createElement(UploadCSVButton, {
5332
+ key: button.text,
5331
5333
  htmlFor: id,
5332
5334
  text: button.text,
5333
5335
  isDisabled: isLoading,
@@ -9850,7 +9852,8 @@ var initValue$e = {
9850
9852
  answers: [],
9851
9853
  isSurvey: true,
9852
9854
  subQuestions: [],
9853
- isMandatory: false
9855
+ isMandatory: false,
9856
+ isBeforeSession: false
9854
9857
  };
9855
9858
  var TITLE$e = "Question detail";
9856
9859
 
@@ -9975,6 +9978,7 @@ var useQuestionDetail = function useQuestionDetail(id) {
9975
9978
 
9976
9979
  var CREATE_QUESTION_HEADER = "Create question";
9977
9980
  var EDIT_QUESTION_HEADER = "Edit question";
9981
+ var EMOTIONALS_LENGTH = marioCore.EMOTIONS.length;
9978
9982
 
9979
9983
  var QuestionDetail = function QuestionDetail() {
9980
9984
  var _useParams = reactRouterDom.useParams(),
@@ -10022,7 +10026,7 @@ var QuestionDetail = function QuestionDetail() {
10022
10026
  }
10023
10027
 
10024
10028
  if (marioCore.QUESTION_TYPES.EMOTIONAL == e.value && values.type !== marioCore.QUESTION_TYPES.EMOTIONAL) {
10025
- var defaultAnswerList = new Array(10).fill("").map(function (_item, index) {
10029
+ var defaultAnswerList = new Array(EMOTIONALS_LENGTH).fill("").map(function (_item, index) {
10026
10030
  return {
10027
10031
  text: "",
10028
10032
  id: marioCore.generateRandomString(),
@@ -10143,11 +10147,11 @@ var QuestionDetail = function QuestionDetail() {
10143
10147
  md: 12
10144
10148
  }, React__default.createElement(reactstrap.CustomInput, {
10145
10149
  type: "checkbox",
10146
- id: "question-default-mandatory-checkbox",
10147
- label: "Mandatory",
10148
- checked: values.isMandatory,
10150
+ id: "question-default-before-session-checkbox",
10151
+ label: "Before session",
10152
+ checked: values.isBeforeSession,
10149
10153
  onChange: function onChange() {
10150
- setFieldValue("isMandatory", !values.isMandatory);
10154
+ setFieldValue("isBeforeSession", !values.isBeforeSession);
10151
10155
  setEditedTrue();
10152
10156
  }
10153
10157
  })))))))), React__default.createElement(AdditionalComponent, {
@@ -17163,18 +17167,12 @@ var getQuantityReport = function getQuantityReport() {
17163
17167
  var getLoginCountingReport = function getLoginCountingReport() {
17164
17168
  return marioCore.api.get(REPORT_URL + "/logincouting");
17165
17169
  };
17166
- var getSkillReport = function getSkillReport() {
17167
- return marioCore.api.get(REPORT_URL + "/skill");
17168
- };
17169
17170
  var getGoalProgressReport = function getGoalProgressReport() {
17170
17171
  return marioCore.api.get(REPORT_URL + "/goalprogress");
17171
17172
  };
17172
17173
  var getHighImpactLearningStrategyReport = function getHighImpactLearningStrategyReport() {
17173
17174
  return marioCore.api.get(REPORT_URL + "/highimpactlearningstrategy");
17174
17175
  };
17175
- var getTimeInSessionReport = function getTimeInSessionReport() {
17176
- return marioCore.api.get(REPORT_URL + "/timeinsession");
17177
- };
17178
17176
  var getPerceivedImpactReport = function getPerceivedImpactReport() {
17179
17177
  return marioCore.api.get(REPORT_URL + "/perceivedimpact");
17180
17178
  };
@@ -17196,28 +17194,20 @@ var useDashboard = function useDashboard() {
17196
17194
  setQuantity = _useState2[1];
17197
17195
 
17198
17196
  var _useState3 = React.useState(null),
17199
- skill = _useState3[0],
17200
- setSkill = _useState3[1];
17197
+ goalProgress = _useState3[0],
17198
+ setGoalProgress = _useState3[1];
17201
17199
 
17202
17200
  var _useState4 = React.useState(null),
17203
- goalProgress = _useState4[0],
17204
- setGoalProgress = _useState4[1];
17201
+ highImpact = _useState4[0],
17202
+ setHighImpact = _useState4[1];
17205
17203
 
17206
17204
  var _useState5 = React.useState(null),
17207
- highImpact = _useState5[0],
17208
- setHighImpact = _useState5[1];
17205
+ perceivedImpact = _useState5[0],
17206
+ setPerceivedImpact = _useState5[1];
17209
17207
 
17210
17208
  var _useState6 = React.useState(null),
17211
- perceivedImpact = _useState6[0],
17212
- setPerceivedImpact = _useState6[1];
17213
-
17214
- var _useState7 = React.useState(null),
17215
- timeInSession = _useState7[0],
17216
- setTimeInSession = _useState7[1];
17217
-
17218
- var _useState8 = React.useState(null),
17219
- grade = _useState8[0],
17220
- setGrade = _useState8[1];
17209
+ grade = _useState6[0],
17210
+ setGrade = _useState6[1];
17221
17211
 
17222
17212
  var callApi = React.useCallback(function (apiCaller, setData, defaultData) {
17223
17213
  try {
@@ -17244,7 +17234,7 @@ var useDashboard = function useDashboard() {
17244
17234
  try {
17245
17235
  document.title = TITLE$p;
17246
17236
  dispatch(marioCore.setLoading(true));
17247
- return Promise.resolve(Promise.any([callApi(getLoginCountingReport, setLoginCounting, []), callApi(getQuantityReport, setQuantity, {}), callApi(getSkillReport, setSkill, []), callApi(getGoalProgressReport, setGoalProgress, []), callApi(getHighImpactLearningStrategyReport, setHighImpact, {}), callApi(getPerceivedImpactReport, setPerceivedImpact, []), callApi(getTimeInSessionReport, setTimeInSession, []), callApi(getGradeReport, setGrade, {})])).then(function () {
17237
+ return Promise.resolve(Promise.any([callApi(getLoginCountingReport, setLoginCounting, []), callApi(getQuantityReport, setQuantity, {}), callApi(getGoalProgressReport, setGoalProgress, []), callApi(getHighImpactLearningStrategyReport, setHighImpact, {}), callApi(getPerceivedImpactReport, setPerceivedImpact, []), callApi(getGradeReport, setGrade, {})])).then(function () {
17248
17238
  dispatch(marioCore.setLoading(false));
17249
17239
  });
17250
17240
  } catch (e) {
@@ -17257,11 +17247,9 @@ var useDashboard = function useDashboard() {
17257
17247
  return {
17258
17248
  loginCounting: loginCounting,
17259
17249
  quantity: quantity,
17260
- skill: skill,
17261
17250
  goalProgress: goalProgress,
17262
17251
  highImpact: highImpact,
17263
17252
  perceivedImpact: perceivedImpact,
17264
- timeInSession: timeInSession,
17265
17253
  grade: grade
17266
17254
  };
17267
17255
  };
@@ -17712,3858 +17700,107 @@ var Quantity = function Quantity(_ref) {
17712
17700
  })));
17713
17701
  };
17714
17702
 
17715
- /**
17716
- * Appends the elements of `values` to `array`.
17717
- *
17718
- * @private
17719
- * @param {Array} array The array to modify.
17720
- * @param {Array} values The values to append.
17721
- * @returns {Array} Returns `array`.
17722
- */
17723
- function arrayPush(array, values) {
17724
- var index = -1,
17725
- length = values.length,
17726
- offset = array.length;
17727
-
17728
- while (++index < length) {
17729
- array[offset + index] = values[index];
17730
- }
17731
- return array;
17732
- }
17733
-
17734
- var _arrayPush = arrayPush;
17735
-
17736
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
17737
-
17738
- function createCommonjsModule(fn, module) {
17739
- return module = { exports: {} }, fn(module, module.exports), module.exports;
17740
- }
17741
-
17742
- /** Detect free variable `global` from Node.js. */
17743
- var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
17744
-
17745
- var _freeGlobal = freeGlobal;
17746
-
17747
- /** Detect free variable `self`. */
17748
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
17749
-
17750
- /** Used as a reference to the global object. */
17751
- var root = _freeGlobal || freeSelf || Function('return this')();
17752
-
17753
- var _root = root;
17754
-
17755
- /** Built-in value references. */
17756
- var Symbol$1 = _root.Symbol;
17757
-
17758
- var _Symbol = Symbol$1;
17759
-
17760
- /** Used for built-in method references. */
17761
- var objectProto = Object.prototype;
17762
-
17763
- /** Used to check objects for own properties. */
17764
- var hasOwnProperty = objectProto.hasOwnProperty;
17765
-
17766
- /**
17767
- * Used to resolve the
17768
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
17769
- * of values.
17770
- */
17771
- var nativeObjectToString = objectProto.toString;
17772
-
17773
- /** Built-in value references. */
17774
- var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
17775
-
17776
- /**
17777
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
17778
- *
17779
- * @private
17780
- * @param {*} value The value to query.
17781
- * @returns {string} Returns the raw `toStringTag`.
17782
- */
17783
- function getRawTag(value) {
17784
- var isOwn = hasOwnProperty.call(value, symToStringTag),
17785
- tag = value[symToStringTag];
17786
-
17787
- try {
17788
- value[symToStringTag] = undefined;
17789
- var unmasked = true;
17790
- } catch (e) {}
17791
-
17792
- var result = nativeObjectToString.call(value);
17793
- if (unmasked) {
17794
- if (isOwn) {
17795
- value[symToStringTag] = tag;
17796
- } else {
17797
- delete value[symToStringTag];
17798
- }
17799
- }
17800
- return result;
17801
- }
17802
-
17803
- var _getRawTag = getRawTag;
17804
-
17805
- /** Used for built-in method references. */
17806
- var objectProto$1 = Object.prototype;
17807
-
17808
- /**
17809
- * Used to resolve the
17810
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
17811
- * of values.
17812
- */
17813
- var nativeObjectToString$1 = objectProto$1.toString;
17814
-
17815
- /**
17816
- * Converts `value` to a string using `Object.prototype.toString`.
17817
- *
17818
- * @private
17819
- * @param {*} value The value to convert.
17820
- * @returns {string} Returns the converted string.
17821
- */
17822
- function objectToString(value) {
17823
- return nativeObjectToString$1.call(value);
17824
- }
17825
-
17826
- var _objectToString = objectToString;
17827
-
17828
- /** `Object#toString` result references. */
17829
- var nullTag = '[object Null]',
17830
- undefinedTag = '[object Undefined]';
17831
-
17832
- /** Built-in value references. */
17833
- var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
17834
-
17835
- /**
17836
- * The base implementation of `getTag` without fallbacks for buggy environments.
17837
- *
17838
- * @private
17839
- * @param {*} value The value to query.
17840
- * @returns {string} Returns the `toStringTag`.
17841
- */
17842
- function baseGetTag(value) {
17843
- if (value == null) {
17844
- return value === undefined ? undefinedTag : nullTag;
17845
- }
17846
- return (symToStringTag$1 && symToStringTag$1 in Object(value))
17847
- ? _getRawTag(value)
17848
- : _objectToString(value);
17849
- }
17703
+ var colors$5 = ["#f0932b", "#22a6b3", "#6ab04c"];
17704
+ var categories = ["Before intervention", "During intervention", "After intervention"];
17850
17705
 
17851
- var _baseGetTag = baseGetTag;
17852
-
17853
- /**
17854
- * Checks if `value` is object-like. A value is object-like if it's not `null`
17855
- * and has a `typeof` result of "object".
17856
- *
17857
- * @static
17858
- * @memberOf _
17859
- * @since 4.0.0
17860
- * @category Lang
17861
- * @param {*} value The value to check.
17862
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
17863
- * @example
17864
- *
17865
- * _.isObjectLike({});
17866
- * // => true
17867
- *
17868
- * _.isObjectLike([1, 2, 3]);
17869
- * // => true
17870
- *
17871
- * _.isObjectLike(_.noop);
17872
- * // => false
17873
- *
17874
- * _.isObjectLike(null);
17875
- * // => false
17876
- */
17877
- function isObjectLike(value) {
17878
- return value != null && typeof value == 'object';
17879
- }
17706
+ var findGradeLabel = function findGradeLabel(value, bandScores) {
17707
+ var sortedBandScores = bandScores === null || bandScores === void 0 ? void 0 : bandScores.sort(function (item1, item2) {
17708
+ return item1.value - item2.value;
17709
+ });
17880
17710
 
17881
- var isObjectLike_1 = isObjectLike;
17711
+ if ((sortedBandScores === null || sortedBandScores === void 0 ? void 0 : sortedBandScores.length) > 0) {
17712
+ for (var i = 0; i < sortedBandScores.length; i++) {
17713
+ var _sortedBandScores$i, _sortedBandScores;
17882
17714
 
17883
- /** `Object#toString` result references. */
17884
- var argsTag = '[object Arguments]';
17715
+ if (((_sortedBandScores$i = sortedBandScores[i]) === null || _sortedBandScores$i === void 0 ? void 0 : _sortedBandScores$i.value) <= value && value <= ((_sortedBandScores = sortedBandScores[i + 1]) === null || _sortedBandScores === void 0 ? void 0 : _sortedBandScores.value)) {
17716
+ var _sortedBandScores$i2, _sortedBandScores2, _sortedBandScores3;
17885
17717
 
17886
- /**
17887
- * The base implementation of `_.isArguments`.
17888
- *
17889
- * @private
17890
- * @param {*} value The value to check.
17891
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
17892
- */
17893
- function baseIsArguments(value) {
17894
- return isObjectLike_1(value) && _baseGetTag(value) == argsTag;
17895
- }
17718
+ if (value - ((_sortedBandScores$i2 = sortedBandScores[i]) === null || _sortedBandScores$i2 === void 0 ? void 0 : _sortedBandScores$i2.value) <= ((_sortedBandScores2 = sortedBandScores[i + 1]) === null || _sortedBandScores2 === void 0 ? void 0 : _sortedBandScores2.value) - value) {
17719
+ var _sortedBandScores$i3;
17896
17720
 
17897
- var _baseIsArguments = baseIsArguments;
17898
-
17899
- /** Used for built-in method references. */
17900
- var objectProto$2 = Object.prototype;
17901
-
17902
- /** Used to check objects for own properties. */
17903
- var hasOwnProperty$1 = objectProto$2.hasOwnProperty;
17904
-
17905
- /** Built-in value references. */
17906
- var propertyIsEnumerable = objectProto$2.propertyIsEnumerable;
17907
-
17908
- /**
17909
- * Checks if `value` is likely an `arguments` object.
17910
- *
17911
- * @static
17912
- * @memberOf _
17913
- * @since 0.1.0
17914
- * @category Lang
17915
- * @param {*} value The value to check.
17916
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
17917
- * else `false`.
17918
- * @example
17919
- *
17920
- * _.isArguments(function() { return arguments; }());
17921
- * // => true
17922
- *
17923
- * _.isArguments([1, 2, 3]);
17924
- * // => false
17925
- */
17926
- var isArguments = _baseIsArguments(function() { return arguments; }()) ? _baseIsArguments : function(value) {
17927
- return isObjectLike_1(value) && hasOwnProperty$1.call(value, 'callee') &&
17928
- !propertyIsEnumerable.call(value, 'callee');
17929
- };
17930
-
17931
- var isArguments_1 = isArguments;
17932
-
17933
- /**
17934
- * Checks if `value` is classified as an `Array` object.
17935
- *
17936
- * @static
17937
- * @memberOf _
17938
- * @since 0.1.0
17939
- * @category Lang
17940
- * @param {*} value The value to check.
17941
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
17942
- * @example
17943
- *
17944
- * _.isArray([1, 2, 3]);
17945
- * // => true
17946
- *
17947
- * _.isArray(document.body.children);
17948
- * // => false
17949
- *
17950
- * _.isArray('abc');
17951
- * // => false
17952
- *
17953
- * _.isArray(_.noop);
17954
- * // => false
17955
- */
17956
- var isArray = Array.isArray;
17957
-
17958
- var isArray_1 = isArray;
17959
-
17960
- /** Built-in value references. */
17961
- var spreadableSymbol = _Symbol ? _Symbol.isConcatSpreadable : undefined;
17962
-
17963
- /**
17964
- * Checks if `value` is a flattenable `arguments` object or array.
17965
- *
17966
- * @private
17967
- * @param {*} value The value to check.
17968
- * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
17969
- */
17970
- function isFlattenable(value) {
17971
- return isArray_1(value) || isArguments_1(value) ||
17972
- !!(spreadableSymbol && value && value[spreadableSymbol]);
17973
- }
17721
+ return (_sortedBandScores$i3 = sortedBandScores[i]) === null || _sortedBandScores$i3 === void 0 ? void 0 : _sortedBandScores$i3.label;
17722
+ }
17974
17723
 
17975
- var _isFlattenable = isFlattenable;
17976
-
17977
- /**
17978
- * The base implementation of `_.flatten` with support for restricting flattening.
17979
- *
17980
- * @private
17981
- * @param {Array} array The array to flatten.
17982
- * @param {number} depth The maximum recursion depth.
17983
- * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
17984
- * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
17985
- * @param {Array} [result=[]] The initial result value.
17986
- * @returns {Array} Returns the new flattened array.
17987
- */
17988
- function baseFlatten(array, depth, predicate, isStrict, result) {
17989
- var index = -1,
17990
- length = array.length;
17991
-
17992
- predicate || (predicate = _isFlattenable);
17993
- result || (result = []);
17994
-
17995
- while (++index < length) {
17996
- var value = array[index];
17997
- if (depth > 0 && predicate(value)) {
17998
- if (depth > 1) {
17999
- // Recursively flatten arrays (susceptible to call stack limits).
18000
- baseFlatten(value, depth - 1, predicate, isStrict, result);
18001
- } else {
18002
- _arrayPush(result, value);
17724
+ return (_sortedBandScores3 = sortedBandScores[i + 1]) === null || _sortedBandScores3 === void 0 ? void 0 : _sortedBandScores3.label;
18003
17725
  }
18004
- } else if (!isStrict) {
18005
- result[result.length] = value;
18006
- }
18007
- }
18008
- return result;
18009
- }
18010
-
18011
- var _baseFlatten = baseFlatten;
18012
-
18013
- /**
18014
- * A specialized version of `_.map` for arrays without support for iteratee
18015
- * shorthands.
18016
- *
18017
- * @private
18018
- * @param {Array} [array] The array to iterate over.
18019
- * @param {Function} iteratee The function invoked per iteration.
18020
- * @returns {Array} Returns the new mapped array.
18021
- */
18022
- function arrayMap(array, iteratee) {
18023
- var index = -1,
18024
- length = array == null ? 0 : array.length,
18025
- result = Array(length);
18026
-
18027
- while (++index < length) {
18028
- result[index] = iteratee(array[index], index, array);
18029
- }
18030
- return result;
18031
- }
18032
-
18033
- var _arrayMap = arrayMap;
18034
-
18035
- /** `Object#toString` result references. */
18036
- var symbolTag = '[object Symbol]';
18037
-
18038
- /**
18039
- * Checks if `value` is classified as a `Symbol` primitive or object.
18040
- *
18041
- * @static
18042
- * @memberOf _
18043
- * @since 4.0.0
18044
- * @category Lang
18045
- * @param {*} value The value to check.
18046
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
18047
- * @example
18048
- *
18049
- * _.isSymbol(Symbol.iterator);
18050
- * // => true
18051
- *
18052
- * _.isSymbol('abc');
18053
- * // => false
18054
- */
18055
- function isSymbol(value) {
18056
- return typeof value == 'symbol' ||
18057
- (isObjectLike_1(value) && _baseGetTag(value) == symbolTag);
18058
- }
18059
-
18060
- var isSymbol_1 = isSymbol;
18061
-
18062
- /** Used to match property names within property paths. */
18063
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
18064
- reIsPlainProp = /^\w*$/;
18065
-
18066
- /**
18067
- * Checks if `value` is a property name and not a property path.
18068
- *
18069
- * @private
18070
- * @param {*} value The value to check.
18071
- * @param {Object} [object] The object to query keys on.
18072
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
18073
- */
18074
- function isKey(value, object) {
18075
- if (isArray_1(value)) {
18076
- return false;
18077
- }
18078
- var type = typeof value;
18079
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
18080
- value == null || isSymbol_1(value)) {
18081
- return true;
18082
- }
18083
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
18084
- (object != null && value in Object(object));
18085
- }
18086
-
18087
- var _isKey = isKey;
18088
-
18089
- /**
18090
- * Checks if `value` is the
18091
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
18092
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
18093
- *
18094
- * @static
18095
- * @memberOf _
18096
- * @since 0.1.0
18097
- * @category Lang
18098
- * @param {*} value The value to check.
18099
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
18100
- * @example
18101
- *
18102
- * _.isObject({});
18103
- * // => true
18104
- *
18105
- * _.isObject([1, 2, 3]);
18106
- * // => true
18107
- *
18108
- * _.isObject(_.noop);
18109
- * // => true
18110
- *
18111
- * _.isObject(null);
18112
- * // => false
18113
- */
18114
- function isObject(value) {
18115
- var type = typeof value;
18116
- return value != null && (type == 'object' || type == 'function');
18117
- }
18118
-
18119
- var isObject_1 = isObject;
18120
-
18121
- /** `Object#toString` result references. */
18122
- var asyncTag = '[object AsyncFunction]',
18123
- funcTag = '[object Function]',
18124
- genTag = '[object GeneratorFunction]',
18125
- proxyTag = '[object Proxy]';
18126
-
18127
- /**
18128
- * Checks if `value` is classified as a `Function` object.
18129
- *
18130
- * @static
18131
- * @memberOf _
18132
- * @since 0.1.0
18133
- * @category Lang
18134
- * @param {*} value The value to check.
18135
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
18136
- * @example
18137
- *
18138
- * _.isFunction(_);
18139
- * // => true
18140
- *
18141
- * _.isFunction(/abc/);
18142
- * // => false
18143
- */
18144
- function isFunction(value) {
18145
- if (!isObject_1(value)) {
18146
- return false;
18147
- }
18148
- // The use of `Object#toString` avoids issues with the `typeof` operator
18149
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
18150
- var tag = _baseGetTag(value);
18151
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
18152
- }
18153
-
18154
- var isFunction_1 = isFunction;
18155
-
18156
- /** Used to detect overreaching core-js shims. */
18157
- var coreJsData = _root['__core-js_shared__'];
18158
-
18159
- var _coreJsData = coreJsData;
18160
-
18161
- /** Used to detect methods masquerading as native. */
18162
- var maskSrcKey = (function() {
18163
- var uid = /[^.]+$/.exec(_coreJsData && _coreJsData.keys && _coreJsData.keys.IE_PROTO || '');
18164
- return uid ? ('Symbol(src)_1.' + uid) : '';
18165
- }());
18166
-
18167
- /**
18168
- * Checks if `func` has its source masked.
18169
- *
18170
- * @private
18171
- * @param {Function} func The function to check.
18172
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
18173
- */
18174
- function isMasked(func) {
18175
- return !!maskSrcKey && (maskSrcKey in func);
18176
- }
18177
-
18178
- var _isMasked = isMasked;
18179
-
18180
- /** Used for built-in method references. */
18181
- var funcProto = Function.prototype;
18182
-
18183
- /** Used to resolve the decompiled source of functions. */
18184
- var funcToString = funcProto.toString;
18185
-
18186
- /**
18187
- * Converts `func` to its source code.
18188
- *
18189
- * @private
18190
- * @param {Function} func The function to convert.
18191
- * @returns {string} Returns the source code.
18192
- */
18193
- function toSource(func) {
18194
- if (func != null) {
18195
- try {
18196
- return funcToString.call(func);
18197
- } catch (e) {}
18198
- try {
18199
- return (func + '');
18200
- } catch (e) {}
18201
- }
18202
- return '';
18203
- }
18204
-
18205
- var _toSource = toSource;
18206
-
18207
- /**
18208
- * Used to match `RegExp`
18209
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
18210
- */
18211
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
18212
-
18213
- /** Used to detect host constructors (Safari). */
18214
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
18215
-
18216
- /** Used for built-in method references. */
18217
- var funcProto$1 = Function.prototype,
18218
- objectProto$3 = Object.prototype;
18219
-
18220
- /** Used to resolve the decompiled source of functions. */
18221
- var funcToString$1 = funcProto$1.toString;
18222
-
18223
- /** Used to check objects for own properties. */
18224
- var hasOwnProperty$2 = objectProto$3.hasOwnProperty;
18225
-
18226
- /** Used to detect if a method is native. */
18227
- var reIsNative = RegExp('^' +
18228
- funcToString$1.call(hasOwnProperty$2).replace(reRegExpChar, '\\$&')
18229
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
18230
- );
18231
-
18232
- /**
18233
- * The base implementation of `_.isNative` without bad shim checks.
18234
- *
18235
- * @private
18236
- * @param {*} value The value to check.
18237
- * @returns {boolean} Returns `true` if `value` is a native function,
18238
- * else `false`.
18239
- */
18240
- function baseIsNative(value) {
18241
- if (!isObject_1(value) || _isMasked(value)) {
18242
- return false;
18243
- }
18244
- var pattern = isFunction_1(value) ? reIsNative : reIsHostCtor;
18245
- return pattern.test(_toSource(value));
18246
- }
18247
-
18248
- var _baseIsNative = baseIsNative;
18249
-
18250
- /**
18251
- * Gets the value at `key` of `object`.
18252
- *
18253
- * @private
18254
- * @param {Object} [object] The object to query.
18255
- * @param {string} key The key of the property to get.
18256
- * @returns {*} Returns the property value.
18257
- */
18258
- function getValue(object, key) {
18259
- return object == null ? undefined : object[key];
18260
- }
18261
-
18262
- var _getValue = getValue;
18263
-
18264
- /**
18265
- * Gets the native function at `key` of `object`.
18266
- *
18267
- * @private
18268
- * @param {Object} object The object to query.
18269
- * @param {string} key The key of the method to get.
18270
- * @returns {*} Returns the function if it's native, else `undefined`.
18271
- */
18272
- function getNative(object, key) {
18273
- var value = _getValue(object, key);
18274
- return _baseIsNative(value) ? value : undefined;
18275
- }
18276
-
18277
- var _getNative = getNative;
18278
-
18279
- /* Built-in method references that are verified to be native. */
18280
- var nativeCreate = _getNative(Object, 'create');
18281
-
18282
- var _nativeCreate = nativeCreate;
18283
-
18284
- /**
18285
- * Removes all key-value entries from the hash.
18286
- *
18287
- * @private
18288
- * @name clear
18289
- * @memberOf Hash
18290
- */
18291
- function hashClear() {
18292
- this.__data__ = _nativeCreate ? _nativeCreate(null) : {};
18293
- this.size = 0;
18294
- }
18295
-
18296
- var _hashClear = hashClear;
18297
-
18298
- /**
18299
- * Removes `key` and its value from the hash.
18300
- *
18301
- * @private
18302
- * @name delete
18303
- * @memberOf Hash
18304
- * @param {Object} hash The hash to modify.
18305
- * @param {string} key The key of the value to remove.
18306
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
18307
- */
18308
- function hashDelete(key) {
18309
- var result = this.has(key) && delete this.__data__[key];
18310
- this.size -= result ? 1 : 0;
18311
- return result;
18312
- }
18313
-
18314
- var _hashDelete = hashDelete;
18315
-
18316
- /** Used to stand-in for `undefined` hash values. */
18317
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
18318
-
18319
- /** Used for built-in method references. */
18320
- var objectProto$4 = Object.prototype;
18321
-
18322
- /** Used to check objects for own properties. */
18323
- var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
18324
-
18325
- /**
18326
- * Gets the hash value for `key`.
18327
- *
18328
- * @private
18329
- * @name get
18330
- * @memberOf Hash
18331
- * @param {string} key The key of the value to get.
18332
- * @returns {*} Returns the entry value.
18333
- */
18334
- function hashGet(key) {
18335
- var data = this.__data__;
18336
- if (_nativeCreate) {
18337
- var result = data[key];
18338
- return result === HASH_UNDEFINED ? undefined : result;
18339
- }
18340
- return hasOwnProperty$3.call(data, key) ? data[key] : undefined;
18341
- }
18342
-
18343
- var _hashGet = hashGet;
18344
-
18345
- /** Used for built-in method references. */
18346
- var objectProto$5 = Object.prototype;
18347
-
18348
- /** Used to check objects for own properties. */
18349
- var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
18350
-
18351
- /**
18352
- * Checks if a hash value for `key` exists.
18353
- *
18354
- * @private
18355
- * @name has
18356
- * @memberOf Hash
18357
- * @param {string} key The key of the entry to check.
18358
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
18359
- */
18360
- function hashHas(key) {
18361
- var data = this.__data__;
18362
- return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$4.call(data, key);
18363
- }
18364
-
18365
- var _hashHas = hashHas;
18366
-
18367
- /** Used to stand-in for `undefined` hash values. */
18368
- var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
18369
-
18370
- /**
18371
- * Sets the hash `key` to `value`.
18372
- *
18373
- * @private
18374
- * @name set
18375
- * @memberOf Hash
18376
- * @param {string} key The key of the value to set.
18377
- * @param {*} value The value to set.
18378
- * @returns {Object} Returns the hash instance.
18379
- */
18380
- function hashSet(key, value) {
18381
- var data = this.__data__;
18382
- this.size += this.has(key) ? 0 : 1;
18383
- data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED$1 : value;
18384
- return this;
18385
- }
18386
-
18387
- var _hashSet = hashSet;
18388
-
18389
- /**
18390
- * Creates a hash object.
18391
- *
18392
- * @private
18393
- * @constructor
18394
- * @param {Array} [entries] The key-value pairs to cache.
18395
- */
18396
- function Hash(entries) {
18397
- var index = -1,
18398
- length = entries == null ? 0 : entries.length;
18399
-
18400
- this.clear();
18401
- while (++index < length) {
18402
- var entry = entries[index];
18403
- this.set(entry[0], entry[1]);
18404
- }
18405
- }
18406
-
18407
- // Add methods to `Hash`.
18408
- Hash.prototype.clear = _hashClear;
18409
- Hash.prototype['delete'] = _hashDelete;
18410
- Hash.prototype.get = _hashGet;
18411
- Hash.prototype.has = _hashHas;
18412
- Hash.prototype.set = _hashSet;
18413
-
18414
- var _Hash = Hash;
18415
-
18416
- /**
18417
- * Removes all key-value entries from the list cache.
18418
- *
18419
- * @private
18420
- * @name clear
18421
- * @memberOf ListCache
18422
- */
18423
- function listCacheClear() {
18424
- this.__data__ = [];
18425
- this.size = 0;
18426
- }
18427
-
18428
- var _listCacheClear = listCacheClear;
18429
-
18430
- /**
18431
- * Performs a
18432
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
18433
- * comparison between two values to determine if they are equivalent.
18434
- *
18435
- * @static
18436
- * @memberOf _
18437
- * @since 4.0.0
18438
- * @category Lang
18439
- * @param {*} value The value to compare.
18440
- * @param {*} other The other value to compare.
18441
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
18442
- * @example
18443
- *
18444
- * var object = { 'a': 1 };
18445
- * var other = { 'a': 1 };
18446
- *
18447
- * _.eq(object, object);
18448
- * // => true
18449
- *
18450
- * _.eq(object, other);
18451
- * // => false
18452
- *
18453
- * _.eq('a', 'a');
18454
- * // => true
18455
- *
18456
- * _.eq('a', Object('a'));
18457
- * // => false
18458
- *
18459
- * _.eq(NaN, NaN);
18460
- * // => true
18461
- */
18462
- function eq(value, other) {
18463
- return value === other || (value !== value && other !== other);
18464
- }
18465
-
18466
- var eq_1 = eq;
18467
-
18468
- /**
18469
- * Gets the index at which the `key` is found in `array` of key-value pairs.
18470
- *
18471
- * @private
18472
- * @param {Array} array The array to inspect.
18473
- * @param {*} key The key to search for.
18474
- * @returns {number} Returns the index of the matched value, else `-1`.
18475
- */
18476
- function assocIndexOf(array, key) {
18477
- var length = array.length;
18478
- while (length--) {
18479
- if (eq_1(array[length][0], key)) {
18480
- return length;
18481
17726
  }
18482
17727
  }
18483
- return -1;
18484
- }
18485
-
18486
- var _assocIndexOf = assocIndexOf;
18487
-
18488
- /** Used for built-in method references. */
18489
- var arrayProto = Array.prototype;
18490
-
18491
- /** Built-in value references. */
18492
- var splice = arrayProto.splice;
18493
-
18494
- /**
18495
- * Removes `key` and its value from the list cache.
18496
- *
18497
- * @private
18498
- * @name delete
18499
- * @memberOf ListCache
18500
- * @param {string} key The key of the value to remove.
18501
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
18502
- */
18503
- function listCacheDelete(key) {
18504
- var data = this.__data__,
18505
- index = _assocIndexOf(data, key);
18506
-
18507
- if (index < 0) {
18508
- return false;
18509
- }
18510
- var lastIndex = data.length - 1;
18511
- if (index == lastIndex) {
18512
- data.pop();
18513
- } else {
18514
- splice.call(data, index, 1);
18515
- }
18516
- --this.size;
18517
- return true;
18518
- }
18519
-
18520
- var _listCacheDelete = listCacheDelete;
18521
-
18522
- /**
18523
- * Gets the list cache value for `key`.
18524
- *
18525
- * @private
18526
- * @name get
18527
- * @memberOf ListCache
18528
- * @param {string} key The key of the value to get.
18529
- * @returns {*} Returns the entry value.
18530
- */
18531
- function listCacheGet(key) {
18532
- var data = this.__data__,
18533
- index = _assocIndexOf(data, key);
18534
-
18535
- return index < 0 ? undefined : data[index][1];
18536
- }
18537
-
18538
- var _listCacheGet = listCacheGet;
18539
-
18540
- /**
18541
- * Checks if a list cache value for `key` exists.
18542
- *
18543
- * @private
18544
- * @name has
18545
- * @memberOf ListCache
18546
- * @param {string} key The key of the entry to check.
18547
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
18548
- */
18549
- function listCacheHas(key) {
18550
- return _assocIndexOf(this.__data__, key) > -1;
18551
- }
18552
-
18553
- var _listCacheHas = listCacheHas;
18554
-
18555
- /**
18556
- * Sets the list cache `key` to `value`.
18557
- *
18558
- * @private
18559
- * @name set
18560
- * @memberOf ListCache
18561
- * @param {string} key The key of the value to set.
18562
- * @param {*} value The value to set.
18563
- * @returns {Object} Returns the list cache instance.
18564
- */
18565
- function listCacheSet(key, value) {
18566
- var data = this.__data__,
18567
- index = _assocIndexOf(data, key);
18568
-
18569
- if (index < 0) {
18570
- ++this.size;
18571
- data.push([key, value]);
18572
- } else {
18573
- data[index][1] = value;
18574
- }
18575
- return this;
18576
- }
18577
-
18578
- var _listCacheSet = listCacheSet;
18579
-
18580
- /**
18581
- * Creates an list cache object.
18582
- *
18583
- * @private
18584
- * @constructor
18585
- * @param {Array} [entries] The key-value pairs to cache.
18586
- */
18587
- function ListCache(entries) {
18588
- var index = -1,
18589
- length = entries == null ? 0 : entries.length;
18590
-
18591
- this.clear();
18592
- while (++index < length) {
18593
- var entry = entries[index];
18594
- this.set(entry[0], entry[1]);
18595
- }
18596
- }
18597
-
18598
- // Add methods to `ListCache`.
18599
- ListCache.prototype.clear = _listCacheClear;
18600
- ListCache.prototype['delete'] = _listCacheDelete;
18601
- ListCache.prototype.get = _listCacheGet;
18602
- ListCache.prototype.has = _listCacheHas;
18603
- ListCache.prototype.set = _listCacheSet;
18604
-
18605
- var _ListCache = ListCache;
18606
-
18607
- /* Built-in method references that are verified to be native. */
18608
- var Map = _getNative(_root, 'Map');
18609
-
18610
- var _Map = Map;
18611
-
18612
- /**
18613
- * Removes all key-value entries from the map.
18614
- *
18615
- * @private
18616
- * @name clear
18617
- * @memberOf MapCache
18618
- */
18619
- function mapCacheClear() {
18620
- this.size = 0;
18621
- this.__data__ = {
18622
- 'hash': new _Hash,
18623
- 'map': new (_Map || _ListCache),
18624
- 'string': new _Hash
18625
- };
18626
- }
18627
-
18628
- var _mapCacheClear = mapCacheClear;
18629
-
18630
- /**
18631
- * Checks if `value` is suitable for use as unique object key.
18632
- *
18633
- * @private
18634
- * @param {*} value The value to check.
18635
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
18636
- */
18637
- function isKeyable(value) {
18638
- var type = typeof value;
18639
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
18640
- ? (value !== '__proto__')
18641
- : (value === null);
18642
- }
18643
-
18644
- var _isKeyable = isKeyable;
18645
-
18646
- /**
18647
- * Gets the data for `map`.
18648
- *
18649
- * @private
18650
- * @param {Object} map The map to query.
18651
- * @param {string} key The reference key.
18652
- * @returns {*} Returns the map data.
18653
- */
18654
- function getMapData(map, key) {
18655
- var data = map.__data__;
18656
- return _isKeyable(key)
18657
- ? data[typeof key == 'string' ? 'string' : 'hash']
18658
- : data.map;
18659
- }
18660
-
18661
- var _getMapData = getMapData;
18662
-
18663
- /**
18664
- * Removes `key` and its value from the map.
18665
- *
18666
- * @private
18667
- * @name delete
18668
- * @memberOf MapCache
18669
- * @param {string} key The key of the value to remove.
18670
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
18671
- */
18672
- function mapCacheDelete(key) {
18673
- var result = _getMapData(this, key)['delete'](key);
18674
- this.size -= result ? 1 : 0;
18675
- return result;
18676
- }
18677
-
18678
- var _mapCacheDelete = mapCacheDelete;
18679
-
18680
- /**
18681
- * Gets the map value for `key`.
18682
- *
18683
- * @private
18684
- * @name get
18685
- * @memberOf MapCache
18686
- * @param {string} key The key of the value to get.
18687
- * @returns {*} Returns the entry value.
18688
- */
18689
- function mapCacheGet(key) {
18690
- return _getMapData(this, key).get(key);
18691
- }
18692
-
18693
- var _mapCacheGet = mapCacheGet;
18694
-
18695
- /**
18696
- * Checks if a map value for `key` exists.
18697
- *
18698
- * @private
18699
- * @name has
18700
- * @memberOf MapCache
18701
- * @param {string} key The key of the entry to check.
18702
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
18703
- */
18704
- function mapCacheHas(key) {
18705
- return _getMapData(this, key).has(key);
18706
- }
18707
-
18708
- var _mapCacheHas = mapCacheHas;
18709
-
18710
- /**
18711
- * Sets the map `key` to `value`.
18712
- *
18713
- * @private
18714
- * @name set
18715
- * @memberOf MapCache
18716
- * @param {string} key The key of the value to set.
18717
- * @param {*} value The value to set.
18718
- * @returns {Object} Returns the map cache instance.
18719
- */
18720
- function mapCacheSet(key, value) {
18721
- var data = _getMapData(this, key),
18722
- size = data.size;
18723
-
18724
- data.set(key, value);
18725
- this.size += data.size == size ? 0 : 1;
18726
- return this;
18727
- }
18728
-
18729
- var _mapCacheSet = mapCacheSet;
18730
-
18731
- /**
18732
- * Creates a map cache object to store key-value pairs.
18733
- *
18734
- * @private
18735
- * @constructor
18736
- * @param {Array} [entries] The key-value pairs to cache.
18737
- */
18738
- function MapCache(entries) {
18739
- var index = -1,
18740
- length = entries == null ? 0 : entries.length;
18741
-
18742
- this.clear();
18743
- while (++index < length) {
18744
- var entry = entries[index];
18745
- this.set(entry[0], entry[1]);
18746
- }
18747
- }
18748
17728
 
18749
- // Add methods to `MapCache`.
18750
- MapCache.prototype.clear = _mapCacheClear;
18751
- MapCache.prototype['delete'] = _mapCacheDelete;
18752
- MapCache.prototype.get = _mapCacheGet;
18753
- MapCache.prototype.has = _mapCacheHas;
18754
- MapCache.prototype.set = _mapCacheSet;
18755
-
18756
- var _MapCache = MapCache;
18757
-
18758
- /** Error message constants. */
18759
- var FUNC_ERROR_TEXT = 'Expected a function';
18760
-
18761
- /**
18762
- * Creates a function that memoizes the result of `func`. If `resolver` is
18763
- * provided, it determines the cache key for storing the result based on the
18764
- * arguments provided to the memoized function. By default, the first argument
18765
- * provided to the memoized function is used as the map cache key. The `func`
18766
- * is invoked with the `this` binding of the memoized function.
18767
- *
18768
- * **Note:** The cache is exposed as the `cache` property on the memoized
18769
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
18770
- * constructor with one whose instances implement the
18771
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
18772
- * method interface of `clear`, `delete`, `get`, `has`, and `set`.
18773
- *
18774
- * @static
18775
- * @memberOf _
18776
- * @since 0.1.0
18777
- * @category Function
18778
- * @param {Function} func The function to have its output memoized.
18779
- * @param {Function} [resolver] The function to resolve the cache key.
18780
- * @returns {Function} Returns the new memoized function.
18781
- * @example
18782
- *
18783
- * var object = { 'a': 1, 'b': 2 };
18784
- * var other = { 'c': 3, 'd': 4 };
18785
- *
18786
- * var values = _.memoize(_.values);
18787
- * values(object);
18788
- * // => [1, 2]
18789
- *
18790
- * values(other);
18791
- * // => [3, 4]
18792
- *
18793
- * object.a = 2;
18794
- * values(object);
18795
- * // => [1, 2]
18796
- *
18797
- * // Modify the result cache.
18798
- * values.cache.set(object, ['a', 'b']);
18799
- * values(object);
18800
- * // => ['a', 'b']
18801
- *
18802
- * // Replace `_.memoize.Cache`.
18803
- * _.memoize.Cache = WeakMap;
18804
- */
18805
- function memoize(func, resolver) {
18806
- if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
18807
- throw new TypeError(FUNC_ERROR_TEXT);
18808
- }
18809
- var memoized = function() {
18810
- var args = arguments,
18811
- key = resolver ? resolver.apply(this, args) : args[0],
18812
- cache = memoized.cache;
17729
+ return "";
17730
+ };
18813
17731
 
18814
- if (cache.has(key)) {
18815
- return cache.get(key);
17732
+ var Grade = function Grade(_ref) {
17733
+ var data = _ref.data;
17734
+ if (!data) return React__default.createElement(Loading, null);
17735
+ var series = [{
17736
+ data: [data.beforeIntervention, data.duringIntervention, data.afterIntervention]
17737
+ }];
17738
+ var options = {
17739
+ chart: {
17740
+ height: 350,
17741
+ type: "bar",
17742
+ toolbar: {
17743
+ show: false
17744
+ }
17745
+ },
17746
+ colors: colors$5,
17747
+ plotOptions: {
17748
+ bar: {
17749
+ columnWidth: "45%",
17750
+ distributed: true
17751
+ }
17752
+ },
17753
+ dataLabels: {
17754
+ enabled: false
17755
+ },
17756
+ legend: {
17757
+ show: false
17758
+ },
17759
+ xaxis: {
17760
+ categories: categories
17761
+ },
17762
+ yaxis: {
17763
+ max: Math.max.apply(Math, data.bandScores.map(function (item) {
17764
+ return item.value;
17765
+ })),
17766
+ min: Math.min.apply(Math, data.bandScores.map(function (item) {
17767
+ return item.value;
17768
+ })),
17769
+ labels: {
17770
+ formatter: function formatter(val) {
17771
+ return findGradeLabel(val, data.bandScores);
17772
+ }
17773
+ }
18816
17774
  }
18817
- var result = func.apply(this, args);
18818
- memoized.cache = cache.set(key, result) || cache;
18819
- return result;
18820
17775
  };
18821
- memoized.cache = new (memoize.Cache || _MapCache);
18822
- return memoized;
18823
- }
18824
-
18825
- // Expose `MapCache`.
18826
- memoize.Cache = _MapCache;
18827
-
18828
- var memoize_1 = memoize;
18829
-
18830
- /** Used as the maximum memoize cache size. */
18831
- var MAX_MEMOIZE_SIZE = 500;
18832
-
18833
- /**
18834
- * A specialized version of `_.memoize` which clears the memoized function's
18835
- * cache when it exceeds `MAX_MEMOIZE_SIZE`.
18836
- *
18837
- * @private
18838
- * @param {Function} func The function to have its output memoized.
18839
- * @returns {Function} Returns the new memoized function.
18840
- */
18841
- function memoizeCapped(func) {
18842
- var result = memoize_1(func, function(key) {
18843
- if (cache.size === MAX_MEMOIZE_SIZE) {
18844
- cache.clear();
18845
- }
18846
- return key;
18847
- });
18848
-
18849
- var cache = result.cache;
18850
- return result;
18851
- }
18852
-
18853
- var _memoizeCapped = memoizeCapped;
18854
-
18855
- /** Used to match property names within property paths. */
18856
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
18857
-
18858
- /** Used to match backslashes in property paths. */
18859
- var reEscapeChar = /\\(\\)?/g;
18860
-
18861
- /**
18862
- * Converts `string` to a property path array.
18863
- *
18864
- * @private
18865
- * @param {string} string The string to convert.
18866
- * @returns {Array} Returns the property path array.
18867
- */
18868
- var stringToPath = _memoizeCapped(function(string) {
18869
- var result = [];
18870
- if (string.charCodeAt(0) === 46 /* . */) {
18871
- result.push('');
18872
- }
18873
- string.replace(rePropName, function(match, number, quote, subString) {
18874
- result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
18875
- });
18876
- return result;
18877
- });
18878
-
18879
- var _stringToPath = stringToPath;
18880
-
18881
- /** Used as references for various `Number` constants. */
18882
- var INFINITY = 1 / 0;
18883
-
18884
- /** Used to convert symbols to primitives and strings. */
18885
- var symbolProto = _Symbol ? _Symbol.prototype : undefined,
18886
- symbolToString = symbolProto ? symbolProto.toString : undefined;
18887
-
18888
- /**
18889
- * The base implementation of `_.toString` which doesn't convert nullish
18890
- * values to empty strings.
18891
- *
18892
- * @private
18893
- * @param {*} value The value to process.
18894
- * @returns {string} Returns the string.
18895
- */
18896
- function baseToString(value) {
18897
- // Exit early for strings to avoid a performance hit in some environments.
18898
- if (typeof value == 'string') {
18899
- return value;
18900
- }
18901
- if (isArray_1(value)) {
18902
- // Recursively convert values (susceptible to call stack limits).
18903
- return _arrayMap(value, baseToString) + '';
18904
- }
18905
- if (isSymbol_1(value)) {
18906
- return symbolToString ? symbolToString.call(value) : '';
18907
- }
18908
- var result = (value + '');
18909
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
18910
- }
18911
-
18912
- var _baseToString = baseToString;
18913
-
18914
- /**
18915
- * Converts `value` to a string. An empty string is returned for `null`
18916
- * and `undefined` values. The sign of `-0` is preserved.
18917
- *
18918
- * @static
18919
- * @memberOf _
18920
- * @since 4.0.0
18921
- * @category Lang
18922
- * @param {*} value The value to convert.
18923
- * @returns {string} Returns the converted string.
18924
- * @example
18925
- *
18926
- * _.toString(null);
18927
- * // => ''
18928
- *
18929
- * _.toString(-0);
18930
- * // => '-0'
18931
- *
18932
- * _.toString([1, 2, 3]);
18933
- * // => '1,2,3'
18934
- */
18935
- function toString(value) {
18936
- return value == null ? '' : _baseToString(value);
18937
- }
18938
-
18939
- var toString_1 = toString;
18940
-
18941
- /**
18942
- * Casts `value` to a path array if it's not one.
18943
- *
18944
- * @private
18945
- * @param {*} value The value to inspect.
18946
- * @param {Object} [object] The object to query keys on.
18947
- * @returns {Array} Returns the cast property path array.
18948
- */
18949
- function castPath(value, object) {
18950
- if (isArray_1(value)) {
18951
- return value;
18952
- }
18953
- return _isKey(value, object) ? [value] : _stringToPath(toString_1(value));
18954
- }
18955
-
18956
- var _castPath = castPath;
18957
-
18958
- /** Used as references for various `Number` constants. */
18959
- var INFINITY$1 = 1 / 0;
18960
-
18961
- /**
18962
- * Converts `value` to a string key if it's not a string or symbol.
18963
- *
18964
- * @private
18965
- * @param {*} value The value to inspect.
18966
- * @returns {string|symbol} Returns the key.
18967
- */
18968
- function toKey(value) {
18969
- if (typeof value == 'string' || isSymbol_1(value)) {
18970
- return value;
18971
- }
18972
- var result = (value + '');
18973
- return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
18974
- }
18975
-
18976
- var _toKey = toKey;
18977
-
18978
- /**
18979
- * The base implementation of `_.get` without support for default values.
18980
- *
18981
- * @private
18982
- * @param {Object} object The object to query.
18983
- * @param {Array|string} path The path of the property to get.
18984
- * @returns {*} Returns the resolved value.
18985
- */
18986
- function baseGet(object, path) {
18987
- path = _castPath(path, object);
18988
-
18989
- var index = 0,
18990
- length = path.length;
18991
-
18992
- while (object != null && index < length) {
18993
- object = object[_toKey(path[index++])];
18994
- }
18995
- return (index && index == length) ? object : undefined;
18996
- }
18997
-
18998
- var _baseGet = baseGet;
18999
-
19000
- /**
19001
- * Removes all key-value entries from the stack.
19002
- *
19003
- * @private
19004
- * @name clear
19005
- * @memberOf Stack
19006
- */
19007
- function stackClear() {
19008
- this.__data__ = new _ListCache;
19009
- this.size = 0;
19010
- }
19011
-
19012
- var _stackClear = stackClear;
19013
-
19014
- /**
19015
- * Removes `key` and its value from the stack.
19016
- *
19017
- * @private
19018
- * @name delete
19019
- * @memberOf Stack
19020
- * @param {string} key The key of the value to remove.
19021
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
19022
- */
19023
- function stackDelete(key) {
19024
- var data = this.__data__,
19025
- result = data['delete'](key);
19026
-
19027
- this.size = data.size;
19028
- return result;
19029
- }
19030
-
19031
- var _stackDelete = stackDelete;
19032
-
19033
- /**
19034
- * Gets the stack value for `key`.
19035
- *
19036
- * @private
19037
- * @name get
19038
- * @memberOf Stack
19039
- * @param {string} key The key of the value to get.
19040
- * @returns {*} Returns the entry value.
19041
- */
19042
- function stackGet(key) {
19043
- return this.__data__.get(key);
19044
- }
19045
-
19046
- var _stackGet = stackGet;
19047
-
19048
- /**
19049
- * Checks if a stack value for `key` exists.
19050
- *
19051
- * @private
19052
- * @name has
19053
- * @memberOf Stack
19054
- * @param {string} key The key of the entry to check.
19055
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
19056
- */
19057
- function stackHas(key) {
19058
- return this.__data__.has(key);
19059
- }
19060
-
19061
- var _stackHas = stackHas;
19062
-
19063
- /** Used as the size to enable large array optimizations. */
19064
- var LARGE_ARRAY_SIZE = 200;
19065
-
19066
- /**
19067
- * Sets the stack `key` to `value`.
19068
- *
19069
- * @private
19070
- * @name set
19071
- * @memberOf Stack
19072
- * @param {string} key The key of the value to set.
19073
- * @param {*} value The value to set.
19074
- * @returns {Object} Returns the stack cache instance.
19075
- */
19076
- function stackSet(key, value) {
19077
- var data = this.__data__;
19078
- if (data instanceof _ListCache) {
19079
- var pairs = data.__data__;
19080
- if (!_Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
19081
- pairs.push([key, value]);
19082
- this.size = ++data.size;
19083
- return this;
19084
- }
19085
- data = this.__data__ = new _MapCache(pairs);
19086
- }
19087
- data.set(key, value);
19088
- this.size = data.size;
19089
- return this;
19090
- }
19091
-
19092
- var _stackSet = stackSet;
19093
-
19094
- /**
19095
- * Creates a stack cache object to store key-value pairs.
19096
- *
19097
- * @private
19098
- * @constructor
19099
- * @param {Array} [entries] The key-value pairs to cache.
19100
- */
19101
- function Stack(entries) {
19102
- var data = this.__data__ = new _ListCache(entries);
19103
- this.size = data.size;
19104
- }
19105
-
19106
- // Add methods to `Stack`.
19107
- Stack.prototype.clear = _stackClear;
19108
- Stack.prototype['delete'] = _stackDelete;
19109
- Stack.prototype.get = _stackGet;
19110
- Stack.prototype.has = _stackHas;
19111
- Stack.prototype.set = _stackSet;
19112
-
19113
- var _Stack = Stack;
19114
-
19115
- /** Used to stand-in for `undefined` hash values. */
19116
- var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
19117
-
19118
- /**
19119
- * Adds `value` to the array cache.
19120
- *
19121
- * @private
19122
- * @name add
19123
- * @memberOf SetCache
19124
- * @alias push
19125
- * @param {*} value The value to cache.
19126
- * @returns {Object} Returns the cache instance.
19127
- */
19128
- function setCacheAdd(value) {
19129
- this.__data__.set(value, HASH_UNDEFINED$2);
19130
- return this;
19131
- }
17776
+ return React__default.createElement("div", null, React__default.createElement(ReactApexChart, {
17777
+ options: options,
17778
+ series: series,
17779
+ type: "bar",
17780
+ height: 350
17781
+ }));
17782
+ };
19132
17783
 
19133
- var _setCacheAdd = setCacheAdd;
19134
-
19135
- /**
19136
- * Checks if `value` is in the array cache.
19137
- *
19138
- * @private
19139
- * @name has
19140
- * @memberOf SetCache
19141
- * @param {*} value The value to search for.
19142
- * @returns {number} Returns `true` if `value` is found, else `false`.
19143
- */
19144
- function setCacheHas(value) {
19145
- return this.__data__.has(value);
19146
- }
17784
+ var Dashboard = function Dashboard() {
17785
+ var _useDashboard = useDashboard(),
17786
+ loginCounting = _useDashboard.loginCounting,
17787
+ quantity = _useDashboard.quantity,
17788
+ goalProgress = _useDashboard.goalProgress,
17789
+ highImpact = _useDashboard.highImpact,
17790
+ perceivedImpact = _useDashboard.perceivedImpact,
17791
+ grade = _useDashboard.grade;
19147
17792
 
19148
- var _setCacheHas = setCacheHas;
19149
-
19150
- /**
19151
- *
19152
- * Creates an array cache object to store unique values.
19153
- *
19154
- * @private
19155
- * @constructor
19156
- * @param {Array} [values] The values to cache.
19157
- */
19158
- function SetCache(values) {
19159
- var index = -1,
19160
- length = values == null ? 0 : values.length;
19161
-
19162
- this.__data__ = new _MapCache;
19163
- while (++index < length) {
19164
- this.add(values[index]);
19165
- }
19166
- }
19167
-
19168
- // Add methods to `SetCache`.
19169
- SetCache.prototype.add = SetCache.prototype.push = _setCacheAdd;
19170
- SetCache.prototype.has = _setCacheHas;
19171
-
19172
- var _SetCache = SetCache;
19173
-
19174
- /**
19175
- * A specialized version of `_.some` for arrays without support for iteratee
19176
- * shorthands.
19177
- *
19178
- * @private
19179
- * @param {Array} [array] The array to iterate over.
19180
- * @param {Function} predicate The function invoked per iteration.
19181
- * @returns {boolean} Returns `true` if any element passes the predicate check,
19182
- * else `false`.
19183
- */
19184
- function arraySome(array, predicate) {
19185
- var index = -1,
19186
- length = array == null ? 0 : array.length;
19187
-
19188
- while (++index < length) {
19189
- if (predicate(array[index], index, array)) {
19190
- return true;
19191
- }
19192
- }
19193
- return false;
19194
- }
19195
-
19196
- var _arraySome = arraySome;
19197
-
19198
- /**
19199
- * Checks if a `cache` value for `key` exists.
19200
- *
19201
- * @private
19202
- * @param {Object} cache The cache to query.
19203
- * @param {string} key The key of the entry to check.
19204
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
19205
- */
19206
- function cacheHas(cache, key) {
19207
- return cache.has(key);
19208
- }
19209
-
19210
- var _cacheHas = cacheHas;
19211
-
19212
- /** Used to compose bitmasks for value comparisons. */
19213
- var COMPARE_PARTIAL_FLAG = 1,
19214
- COMPARE_UNORDERED_FLAG = 2;
19215
-
19216
- /**
19217
- * A specialized version of `baseIsEqualDeep` for arrays with support for
19218
- * partial deep comparisons.
19219
- *
19220
- * @private
19221
- * @param {Array} array The array to compare.
19222
- * @param {Array} other The other array to compare.
19223
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
19224
- * @param {Function} customizer The function to customize comparisons.
19225
- * @param {Function} equalFunc The function to determine equivalents of values.
19226
- * @param {Object} stack Tracks traversed `array` and `other` objects.
19227
- * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
19228
- */
19229
- function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
19230
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
19231
- arrLength = array.length,
19232
- othLength = other.length;
19233
-
19234
- if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
19235
- return false;
19236
- }
19237
- // Check that cyclic values are equal.
19238
- var arrStacked = stack.get(array);
19239
- var othStacked = stack.get(other);
19240
- if (arrStacked && othStacked) {
19241
- return arrStacked == other && othStacked == array;
19242
- }
19243
- var index = -1,
19244
- result = true,
19245
- seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new _SetCache : undefined;
19246
-
19247
- stack.set(array, other);
19248
- stack.set(other, array);
19249
-
19250
- // Ignore non-index properties.
19251
- while (++index < arrLength) {
19252
- var arrValue = array[index],
19253
- othValue = other[index];
19254
-
19255
- if (customizer) {
19256
- var compared = isPartial
19257
- ? customizer(othValue, arrValue, index, other, array, stack)
19258
- : customizer(arrValue, othValue, index, array, other, stack);
19259
- }
19260
- if (compared !== undefined) {
19261
- if (compared) {
19262
- continue;
19263
- }
19264
- result = false;
19265
- break;
19266
- }
19267
- // Recursively compare arrays (susceptible to call stack limits).
19268
- if (seen) {
19269
- if (!_arraySome(other, function(othValue, othIndex) {
19270
- if (!_cacheHas(seen, othIndex) &&
19271
- (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
19272
- return seen.push(othIndex);
19273
- }
19274
- })) {
19275
- result = false;
19276
- break;
19277
- }
19278
- } else if (!(
19279
- arrValue === othValue ||
19280
- equalFunc(arrValue, othValue, bitmask, customizer, stack)
19281
- )) {
19282
- result = false;
19283
- break;
19284
- }
19285
- }
19286
- stack['delete'](array);
19287
- stack['delete'](other);
19288
- return result;
19289
- }
19290
-
19291
- var _equalArrays = equalArrays;
19292
-
19293
- /** Built-in value references. */
19294
- var Uint8Array = _root.Uint8Array;
19295
-
19296
- var _Uint8Array = Uint8Array;
19297
-
19298
- /**
19299
- * Converts `map` to its key-value pairs.
19300
- *
19301
- * @private
19302
- * @param {Object} map The map to convert.
19303
- * @returns {Array} Returns the key-value pairs.
19304
- */
19305
- function mapToArray(map) {
19306
- var index = -1,
19307
- result = Array(map.size);
19308
-
19309
- map.forEach(function(value, key) {
19310
- result[++index] = [key, value];
19311
- });
19312
- return result;
19313
- }
19314
-
19315
- var _mapToArray = mapToArray;
19316
-
19317
- /**
19318
- * Converts `set` to an array of its values.
19319
- *
19320
- * @private
19321
- * @param {Object} set The set to convert.
19322
- * @returns {Array} Returns the values.
19323
- */
19324
- function setToArray(set) {
19325
- var index = -1,
19326
- result = Array(set.size);
19327
-
19328
- set.forEach(function(value) {
19329
- result[++index] = value;
19330
- });
19331
- return result;
19332
- }
19333
-
19334
- var _setToArray = setToArray;
19335
-
19336
- /** Used to compose bitmasks for value comparisons. */
19337
- var COMPARE_PARTIAL_FLAG$1 = 1,
19338
- COMPARE_UNORDERED_FLAG$1 = 2;
19339
-
19340
- /** `Object#toString` result references. */
19341
- var boolTag = '[object Boolean]',
19342
- dateTag = '[object Date]',
19343
- errorTag = '[object Error]',
19344
- mapTag = '[object Map]',
19345
- numberTag = '[object Number]',
19346
- regexpTag = '[object RegExp]',
19347
- setTag = '[object Set]',
19348
- stringTag = '[object String]',
19349
- symbolTag$1 = '[object Symbol]';
19350
-
19351
- var arrayBufferTag = '[object ArrayBuffer]',
19352
- dataViewTag = '[object DataView]';
19353
-
19354
- /** Used to convert symbols to primitives and strings. */
19355
- var symbolProto$1 = _Symbol ? _Symbol.prototype : undefined,
19356
- symbolValueOf = symbolProto$1 ? symbolProto$1.valueOf : undefined;
19357
-
19358
- /**
19359
- * A specialized version of `baseIsEqualDeep` for comparing objects of
19360
- * the same `toStringTag`.
19361
- *
19362
- * **Note:** This function only supports comparing values with tags of
19363
- * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
19364
- *
19365
- * @private
19366
- * @param {Object} object The object to compare.
19367
- * @param {Object} other The other object to compare.
19368
- * @param {string} tag The `toStringTag` of the objects to compare.
19369
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
19370
- * @param {Function} customizer The function to customize comparisons.
19371
- * @param {Function} equalFunc The function to determine equivalents of values.
19372
- * @param {Object} stack Tracks traversed `object` and `other` objects.
19373
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
19374
- */
19375
- function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
19376
- switch (tag) {
19377
- case dataViewTag:
19378
- if ((object.byteLength != other.byteLength) ||
19379
- (object.byteOffset != other.byteOffset)) {
19380
- return false;
19381
- }
19382
- object = object.buffer;
19383
- other = other.buffer;
19384
-
19385
- case arrayBufferTag:
19386
- if ((object.byteLength != other.byteLength) ||
19387
- !equalFunc(new _Uint8Array(object), new _Uint8Array(other))) {
19388
- return false;
19389
- }
19390
- return true;
19391
-
19392
- case boolTag:
19393
- case dateTag:
19394
- case numberTag:
19395
- // Coerce booleans to `1` or `0` and dates to milliseconds.
19396
- // Invalid dates are coerced to `NaN`.
19397
- return eq_1(+object, +other);
19398
-
19399
- case errorTag:
19400
- return object.name == other.name && object.message == other.message;
19401
-
19402
- case regexpTag:
19403
- case stringTag:
19404
- // Coerce regexes to strings and treat strings, primitives and objects,
19405
- // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
19406
- // for more details.
19407
- return object == (other + '');
19408
-
19409
- case mapTag:
19410
- var convert = _mapToArray;
19411
-
19412
- case setTag:
19413
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG$1;
19414
- convert || (convert = _setToArray);
19415
-
19416
- if (object.size != other.size && !isPartial) {
19417
- return false;
19418
- }
19419
- // Assume cyclic values are equal.
19420
- var stacked = stack.get(object);
19421
- if (stacked) {
19422
- return stacked == other;
19423
- }
19424
- bitmask |= COMPARE_UNORDERED_FLAG$1;
19425
-
19426
- // Recursively compare objects (susceptible to call stack limits).
19427
- stack.set(object, other);
19428
- var result = _equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
19429
- stack['delete'](object);
19430
- return result;
19431
-
19432
- case symbolTag$1:
19433
- if (symbolValueOf) {
19434
- return symbolValueOf.call(object) == symbolValueOf.call(other);
19435
- }
19436
- }
19437
- return false;
19438
- }
19439
-
19440
- var _equalByTag = equalByTag;
19441
-
19442
- /**
19443
- * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
19444
- * `keysFunc` and `symbolsFunc` to get the enumerable property names and
19445
- * symbols of `object`.
19446
- *
19447
- * @private
19448
- * @param {Object} object The object to query.
19449
- * @param {Function} keysFunc The function to get the keys of `object`.
19450
- * @param {Function} symbolsFunc The function to get the symbols of `object`.
19451
- * @returns {Array} Returns the array of property names and symbols.
19452
- */
19453
- function baseGetAllKeys(object, keysFunc, symbolsFunc) {
19454
- var result = keysFunc(object);
19455
- return isArray_1(object) ? result : _arrayPush(result, symbolsFunc(object));
19456
- }
19457
-
19458
- var _baseGetAllKeys = baseGetAllKeys;
19459
-
19460
- /**
19461
- * A specialized version of `_.filter` for arrays without support for
19462
- * iteratee shorthands.
19463
- *
19464
- * @private
19465
- * @param {Array} [array] The array to iterate over.
19466
- * @param {Function} predicate The function invoked per iteration.
19467
- * @returns {Array} Returns the new filtered array.
19468
- */
19469
- function arrayFilter(array, predicate) {
19470
- var index = -1,
19471
- length = array == null ? 0 : array.length,
19472
- resIndex = 0,
19473
- result = [];
19474
-
19475
- while (++index < length) {
19476
- var value = array[index];
19477
- if (predicate(value, index, array)) {
19478
- result[resIndex++] = value;
19479
- }
19480
- }
19481
- return result;
19482
- }
19483
-
19484
- var _arrayFilter = arrayFilter;
19485
-
19486
- /**
19487
- * This method returns a new empty array.
19488
- *
19489
- * @static
19490
- * @memberOf _
19491
- * @since 4.13.0
19492
- * @category Util
19493
- * @returns {Array} Returns the new empty array.
19494
- * @example
19495
- *
19496
- * var arrays = _.times(2, _.stubArray);
19497
- *
19498
- * console.log(arrays);
19499
- * // => [[], []]
19500
- *
19501
- * console.log(arrays[0] === arrays[1]);
19502
- * // => false
19503
- */
19504
- function stubArray() {
19505
- return [];
19506
- }
19507
-
19508
- var stubArray_1 = stubArray;
19509
-
19510
- /** Used for built-in method references. */
19511
- var objectProto$6 = Object.prototype;
19512
-
19513
- /** Built-in value references. */
19514
- var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
19515
-
19516
- /* Built-in method references for those with the same name as other `lodash` methods. */
19517
- var nativeGetSymbols = Object.getOwnPropertySymbols;
19518
-
19519
- /**
19520
- * Creates an array of the own enumerable symbols of `object`.
19521
- *
19522
- * @private
19523
- * @param {Object} object The object to query.
19524
- * @returns {Array} Returns the array of symbols.
19525
- */
19526
- var getSymbols = !nativeGetSymbols ? stubArray_1 : function(object) {
19527
- if (object == null) {
19528
- return [];
19529
- }
19530
- object = Object(object);
19531
- return _arrayFilter(nativeGetSymbols(object), function(symbol) {
19532
- return propertyIsEnumerable$1.call(object, symbol);
19533
- });
19534
- };
19535
-
19536
- var _getSymbols = getSymbols;
19537
-
19538
- /**
19539
- * The base implementation of `_.times` without support for iteratee shorthands
19540
- * or max array length checks.
19541
- *
19542
- * @private
19543
- * @param {number} n The number of times to invoke `iteratee`.
19544
- * @param {Function} iteratee The function invoked per iteration.
19545
- * @returns {Array} Returns the array of results.
19546
- */
19547
- function baseTimes(n, iteratee) {
19548
- var index = -1,
19549
- result = Array(n);
19550
-
19551
- while (++index < n) {
19552
- result[index] = iteratee(index);
19553
- }
19554
- return result;
19555
- }
19556
-
19557
- var _baseTimes = baseTimes;
19558
-
19559
- /**
19560
- * This method returns `false`.
19561
- *
19562
- * @static
19563
- * @memberOf _
19564
- * @since 4.13.0
19565
- * @category Util
19566
- * @returns {boolean} Returns `false`.
19567
- * @example
19568
- *
19569
- * _.times(2, _.stubFalse);
19570
- * // => [false, false]
19571
- */
19572
- function stubFalse() {
19573
- return false;
19574
- }
19575
-
19576
- var stubFalse_1 = stubFalse;
19577
-
19578
- var isBuffer_1 = createCommonjsModule(function (module, exports) {
19579
- /** Detect free variable `exports`. */
19580
- var freeExports = exports && !exports.nodeType && exports;
19581
-
19582
- /** Detect free variable `module`. */
19583
- var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
19584
-
19585
- /** Detect the popular CommonJS extension `module.exports`. */
19586
- var moduleExports = freeModule && freeModule.exports === freeExports;
19587
-
19588
- /** Built-in value references. */
19589
- var Buffer = moduleExports ? _root.Buffer : undefined;
19590
-
19591
- /* Built-in method references for those with the same name as other `lodash` methods. */
19592
- var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
19593
-
19594
- /**
19595
- * Checks if `value` is a buffer.
19596
- *
19597
- * @static
19598
- * @memberOf _
19599
- * @since 4.3.0
19600
- * @category Lang
19601
- * @param {*} value The value to check.
19602
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
19603
- * @example
19604
- *
19605
- * _.isBuffer(new Buffer(2));
19606
- * // => true
19607
- *
19608
- * _.isBuffer(new Uint8Array(2));
19609
- * // => false
19610
- */
19611
- var isBuffer = nativeIsBuffer || stubFalse_1;
19612
-
19613
- module.exports = isBuffer;
19614
- });
19615
-
19616
- /** Used as references for various `Number` constants. */
19617
- var MAX_SAFE_INTEGER = 9007199254740991;
19618
-
19619
- /** Used to detect unsigned integer values. */
19620
- var reIsUint = /^(?:0|[1-9]\d*)$/;
19621
-
19622
- /**
19623
- * Checks if `value` is a valid array-like index.
19624
- *
19625
- * @private
19626
- * @param {*} value The value to check.
19627
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
19628
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
19629
- */
19630
- function isIndex(value, length) {
19631
- var type = typeof value;
19632
- length = length == null ? MAX_SAFE_INTEGER : length;
19633
-
19634
- return !!length &&
19635
- (type == 'number' ||
19636
- (type != 'symbol' && reIsUint.test(value))) &&
19637
- (value > -1 && value % 1 == 0 && value < length);
19638
- }
19639
-
19640
- var _isIndex = isIndex;
19641
-
19642
- /** Used as references for various `Number` constants. */
19643
- var MAX_SAFE_INTEGER$1 = 9007199254740991;
19644
-
19645
- /**
19646
- * Checks if `value` is a valid array-like length.
19647
- *
19648
- * **Note:** This method is loosely based on
19649
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
19650
- *
19651
- * @static
19652
- * @memberOf _
19653
- * @since 4.0.0
19654
- * @category Lang
19655
- * @param {*} value The value to check.
19656
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
19657
- * @example
19658
- *
19659
- * _.isLength(3);
19660
- * // => true
19661
- *
19662
- * _.isLength(Number.MIN_VALUE);
19663
- * // => false
19664
- *
19665
- * _.isLength(Infinity);
19666
- * // => false
19667
- *
19668
- * _.isLength('3');
19669
- * // => false
19670
- */
19671
- function isLength(value) {
19672
- return typeof value == 'number' &&
19673
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER$1;
19674
- }
19675
-
19676
- var isLength_1 = isLength;
19677
-
19678
- /** `Object#toString` result references. */
19679
- var argsTag$1 = '[object Arguments]',
19680
- arrayTag = '[object Array]',
19681
- boolTag$1 = '[object Boolean]',
19682
- dateTag$1 = '[object Date]',
19683
- errorTag$1 = '[object Error]',
19684
- funcTag$1 = '[object Function]',
19685
- mapTag$1 = '[object Map]',
19686
- numberTag$1 = '[object Number]',
19687
- objectTag = '[object Object]',
19688
- regexpTag$1 = '[object RegExp]',
19689
- setTag$1 = '[object Set]',
19690
- stringTag$1 = '[object String]',
19691
- weakMapTag = '[object WeakMap]';
19692
-
19693
- var arrayBufferTag$1 = '[object ArrayBuffer]',
19694
- dataViewTag$1 = '[object DataView]',
19695
- float32Tag = '[object Float32Array]',
19696
- float64Tag = '[object Float64Array]',
19697
- int8Tag = '[object Int8Array]',
19698
- int16Tag = '[object Int16Array]',
19699
- int32Tag = '[object Int32Array]',
19700
- uint8Tag = '[object Uint8Array]',
19701
- uint8ClampedTag = '[object Uint8ClampedArray]',
19702
- uint16Tag = '[object Uint16Array]',
19703
- uint32Tag = '[object Uint32Array]';
19704
-
19705
- /** Used to identify `toStringTag` values of typed arrays. */
19706
- var typedArrayTags = {};
19707
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
19708
- typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
19709
- typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
19710
- typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
19711
- typedArrayTags[uint32Tag] = true;
19712
- typedArrayTags[argsTag$1] = typedArrayTags[arrayTag] =
19713
- typedArrayTags[arrayBufferTag$1] = typedArrayTags[boolTag$1] =
19714
- typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag$1] =
19715
- typedArrayTags[errorTag$1] = typedArrayTags[funcTag$1] =
19716
- typedArrayTags[mapTag$1] = typedArrayTags[numberTag$1] =
19717
- typedArrayTags[objectTag] = typedArrayTags[regexpTag$1] =
19718
- typedArrayTags[setTag$1] = typedArrayTags[stringTag$1] =
19719
- typedArrayTags[weakMapTag] = false;
19720
-
19721
- /**
19722
- * The base implementation of `_.isTypedArray` without Node.js optimizations.
19723
- *
19724
- * @private
19725
- * @param {*} value The value to check.
19726
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
19727
- */
19728
- function baseIsTypedArray(value) {
19729
- return isObjectLike_1(value) &&
19730
- isLength_1(value.length) && !!typedArrayTags[_baseGetTag(value)];
19731
- }
19732
-
19733
- var _baseIsTypedArray = baseIsTypedArray;
19734
-
19735
- /**
19736
- * The base implementation of `_.unary` without support for storing metadata.
19737
- *
19738
- * @private
19739
- * @param {Function} func The function to cap arguments for.
19740
- * @returns {Function} Returns the new capped function.
19741
- */
19742
- function baseUnary(func) {
19743
- return function(value) {
19744
- return func(value);
19745
- };
19746
- }
19747
-
19748
- var _baseUnary = baseUnary;
19749
-
19750
- var _nodeUtil = createCommonjsModule(function (module, exports) {
19751
- /** Detect free variable `exports`. */
19752
- var freeExports = exports && !exports.nodeType && exports;
19753
-
19754
- /** Detect free variable `module`. */
19755
- var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
19756
-
19757
- /** Detect the popular CommonJS extension `module.exports`. */
19758
- var moduleExports = freeModule && freeModule.exports === freeExports;
19759
-
19760
- /** Detect free variable `process` from Node.js. */
19761
- var freeProcess = moduleExports && _freeGlobal.process;
19762
-
19763
- /** Used to access faster Node.js helpers. */
19764
- var nodeUtil = (function() {
19765
- try {
19766
- // Use `util.types` for Node.js 10+.
19767
- var types = freeModule && freeModule.require && freeModule.require('util').types;
19768
-
19769
- if (types) {
19770
- return types;
19771
- }
19772
-
19773
- // Legacy `process.binding('util')` for Node.js < 10.
19774
- return freeProcess && freeProcess.binding && freeProcess.binding('util');
19775
- } catch (e) {}
19776
- }());
19777
-
19778
- module.exports = nodeUtil;
19779
- });
19780
-
19781
- /* Node.js helper references. */
19782
- var nodeIsTypedArray = _nodeUtil && _nodeUtil.isTypedArray;
19783
-
19784
- /**
19785
- * Checks if `value` is classified as a typed array.
19786
- *
19787
- * @static
19788
- * @memberOf _
19789
- * @since 3.0.0
19790
- * @category Lang
19791
- * @param {*} value The value to check.
19792
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
19793
- * @example
19794
- *
19795
- * _.isTypedArray(new Uint8Array);
19796
- * // => true
19797
- *
19798
- * _.isTypedArray([]);
19799
- * // => false
19800
- */
19801
- var isTypedArray = nodeIsTypedArray ? _baseUnary(nodeIsTypedArray) : _baseIsTypedArray;
19802
-
19803
- var isTypedArray_1 = isTypedArray;
19804
-
19805
- /** Used for built-in method references. */
19806
- var objectProto$7 = Object.prototype;
19807
-
19808
- /** Used to check objects for own properties. */
19809
- var hasOwnProperty$5 = objectProto$7.hasOwnProperty;
19810
-
19811
- /**
19812
- * Creates an array of the enumerable property names of the array-like `value`.
19813
- *
19814
- * @private
19815
- * @param {*} value The value to query.
19816
- * @param {boolean} inherited Specify returning inherited property names.
19817
- * @returns {Array} Returns the array of property names.
19818
- */
19819
- function arrayLikeKeys(value, inherited) {
19820
- var isArr = isArray_1(value),
19821
- isArg = !isArr && isArguments_1(value),
19822
- isBuff = !isArr && !isArg && isBuffer_1(value),
19823
- isType = !isArr && !isArg && !isBuff && isTypedArray_1(value),
19824
- skipIndexes = isArr || isArg || isBuff || isType,
19825
- result = skipIndexes ? _baseTimes(value.length, String) : [],
19826
- length = result.length;
19827
-
19828
- for (var key in value) {
19829
- if ((inherited || hasOwnProperty$5.call(value, key)) &&
19830
- !(skipIndexes && (
19831
- // Safari 9 has enumerable `arguments.length` in strict mode.
19832
- key == 'length' ||
19833
- // Node.js 0.10 has enumerable non-index properties on buffers.
19834
- (isBuff && (key == 'offset' || key == 'parent')) ||
19835
- // PhantomJS 2 has enumerable non-index properties on typed arrays.
19836
- (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
19837
- // Skip index properties.
19838
- _isIndex(key, length)
19839
- ))) {
19840
- result.push(key);
19841
- }
19842
- }
19843
- return result;
19844
- }
19845
-
19846
- var _arrayLikeKeys = arrayLikeKeys;
19847
-
19848
- /** Used for built-in method references. */
19849
- var objectProto$8 = Object.prototype;
19850
-
19851
- /**
19852
- * Checks if `value` is likely a prototype object.
19853
- *
19854
- * @private
19855
- * @param {*} value The value to check.
19856
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
19857
- */
19858
- function isPrototype(value) {
19859
- var Ctor = value && value.constructor,
19860
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$8;
19861
-
19862
- return value === proto;
19863
- }
19864
-
19865
- var _isPrototype = isPrototype;
19866
-
19867
- /**
19868
- * Creates a unary function that invokes `func` with its argument transformed.
19869
- *
19870
- * @private
19871
- * @param {Function} func The function to wrap.
19872
- * @param {Function} transform The argument transform.
19873
- * @returns {Function} Returns the new function.
19874
- */
19875
- function overArg(func, transform) {
19876
- return function(arg) {
19877
- return func(transform(arg));
19878
- };
19879
- }
19880
-
19881
- var _overArg = overArg;
19882
-
19883
- /* Built-in method references for those with the same name as other `lodash` methods. */
19884
- var nativeKeys = _overArg(Object.keys, Object);
19885
-
19886
- var _nativeKeys = nativeKeys;
19887
-
19888
- /** Used for built-in method references. */
19889
- var objectProto$9 = Object.prototype;
19890
-
19891
- /** Used to check objects for own properties. */
19892
- var hasOwnProperty$6 = objectProto$9.hasOwnProperty;
19893
-
19894
- /**
19895
- * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
19896
- *
19897
- * @private
19898
- * @param {Object} object The object to query.
19899
- * @returns {Array} Returns the array of property names.
19900
- */
19901
- function baseKeys(object) {
19902
- if (!_isPrototype(object)) {
19903
- return _nativeKeys(object);
19904
- }
19905
- var result = [];
19906
- for (var key in Object(object)) {
19907
- if (hasOwnProperty$6.call(object, key) && key != 'constructor') {
19908
- result.push(key);
19909
- }
19910
- }
19911
- return result;
19912
- }
19913
-
19914
- var _baseKeys = baseKeys;
19915
-
19916
- /**
19917
- * Checks if `value` is array-like. A value is considered array-like if it's
19918
- * not a function and has a `value.length` that's an integer greater than or
19919
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
19920
- *
19921
- * @static
19922
- * @memberOf _
19923
- * @since 4.0.0
19924
- * @category Lang
19925
- * @param {*} value The value to check.
19926
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
19927
- * @example
19928
- *
19929
- * _.isArrayLike([1, 2, 3]);
19930
- * // => true
19931
- *
19932
- * _.isArrayLike(document.body.children);
19933
- * // => true
19934
- *
19935
- * _.isArrayLike('abc');
19936
- * // => true
19937
- *
19938
- * _.isArrayLike(_.noop);
19939
- * // => false
19940
- */
19941
- function isArrayLike(value) {
19942
- return value != null && isLength_1(value.length) && !isFunction_1(value);
19943
- }
19944
-
19945
- var isArrayLike_1 = isArrayLike;
19946
-
19947
- /**
19948
- * Creates an array of the own enumerable property names of `object`.
19949
- *
19950
- * **Note:** Non-object values are coerced to objects. See the
19951
- * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
19952
- * for more details.
19953
- *
19954
- * @static
19955
- * @since 0.1.0
19956
- * @memberOf _
19957
- * @category Object
19958
- * @param {Object} object The object to query.
19959
- * @returns {Array} Returns the array of property names.
19960
- * @example
19961
- *
19962
- * function Foo() {
19963
- * this.a = 1;
19964
- * this.b = 2;
19965
- * }
19966
- *
19967
- * Foo.prototype.c = 3;
19968
- *
19969
- * _.keys(new Foo);
19970
- * // => ['a', 'b'] (iteration order is not guaranteed)
19971
- *
19972
- * _.keys('hi');
19973
- * // => ['0', '1']
19974
- */
19975
- function keys(object) {
19976
- return isArrayLike_1(object) ? _arrayLikeKeys(object) : _baseKeys(object);
19977
- }
19978
-
19979
- var keys_1 = keys;
19980
-
19981
- /**
19982
- * Creates an array of own enumerable property names and symbols of `object`.
19983
- *
19984
- * @private
19985
- * @param {Object} object The object to query.
19986
- * @returns {Array} Returns the array of property names and symbols.
19987
- */
19988
- function getAllKeys(object) {
19989
- return _baseGetAllKeys(object, keys_1, _getSymbols);
19990
- }
19991
-
19992
- var _getAllKeys = getAllKeys;
19993
-
19994
- /** Used to compose bitmasks for value comparisons. */
19995
- var COMPARE_PARTIAL_FLAG$2 = 1;
19996
-
19997
- /** Used for built-in method references. */
19998
- var objectProto$a = Object.prototype;
19999
-
20000
- /** Used to check objects for own properties. */
20001
- var hasOwnProperty$7 = objectProto$a.hasOwnProperty;
20002
-
20003
- /**
20004
- * A specialized version of `baseIsEqualDeep` for objects with support for
20005
- * partial deep comparisons.
20006
- *
20007
- * @private
20008
- * @param {Object} object The object to compare.
20009
- * @param {Object} other The other object to compare.
20010
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
20011
- * @param {Function} customizer The function to customize comparisons.
20012
- * @param {Function} equalFunc The function to determine equivalents of values.
20013
- * @param {Object} stack Tracks traversed `object` and `other` objects.
20014
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
20015
- */
20016
- function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
20017
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG$2,
20018
- objProps = _getAllKeys(object),
20019
- objLength = objProps.length,
20020
- othProps = _getAllKeys(other),
20021
- othLength = othProps.length;
20022
-
20023
- if (objLength != othLength && !isPartial) {
20024
- return false;
20025
- }
20026
- var index = objLength;
20027
- while (index--) {
20028
- var key = objProps[index];
20029
- if (!(isPartial ? key in other : hasOwnProperty$7.call(other, key))) {
20030
- return false;
20031
- }
20032
- }
20033
- // Check that cyclic values are equal.
20034
- var objStacked = stack.get(object);
20035
- var othStacked = stack.get(other);
20036
- if (objStacked && othStacked) {
20037
- return objStacked == other && othStacked == object;
20038
- }
20039
- var result = true;
20040
- stack.set(object, other);
20041
- stack.set(other, object);
20042
-
20043
- var skipCtor = isPartial;
20044
- while (++index < objLength) {
20045
- key = objProps[index];
20046
- var objValue = object[key],
20047
- othValue = other[key];
20048
-
20049
- if (customizer) {
20050
- var compared = isPartial
20051
- ? customizer(othValue, objValue, key, other, object, stack)
20052
- : customizer(objValue, othValue, key, object, other, stack);
20053
- }
20054
- // Recursively compare objects (susceptible to call stack limits).
20055
- if (!(compared === undefined
20056
- ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
20057
- : compared
20058
- )) {
20059
- result = false;
20060
- break;
20061
- }
20062
- skipCtor || (skipCtor = key == 'constructor');
20063
- }
20064
- if (result && !skipCtor) {
20065
- var objCtor = object.constructor,
20066
- othCtor = other.constructor;
20067
-
20068
- // Non `Object` object instances with different constructors are not equal.
20069
- if (objCtor != othCtor &&
20070
- ('constructor' in object && 'constructor' in other) &&
20071
- !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
20072
- typeof othCtor == 'function' && othCtor instanceof othCtor)) {
20073
- result = false;
20074
- }
20075
- }
20076
- stack['delete'](object);
20077
- stack['delete'](other);
20078
- return result;
20079
- }
20080
-
20081
- var _equalObjects = equalObjects;
20082
-
20083
- /* Built-in method references that are verified to be native. */
20084
- var DataView = _getNative(_root, 'DataView');
20085
-
20086
- var _DataView = DataView;
20087
-
20088
- /* Built-in method references that are verified to be native. */
20089
- var Promise$1 = _getNative(_root, 'Promise');
20090
-
20091
- var _Promise = Promise$1;
20092
-
20093
- /* Built-in method references that are verified to be native. */
20094
- var Set$1 = _getNative(_root, 'Set');
20095
-
20096
- var _Set = Set$1;
20097
-
20098
- /* Built-in method references that are verified to be native. */
20099
- var WeakMap = _getNative(_root, 'WeakMap');
20100
-
20101
- var _WeakMap = WeakMap;
20102
-
20103
- /** `Object#toString` result references. */
20104
- var mapTag$2 = '[object Map]',
20105
- objectTag$1 = '[object Object]',
20106
- promiseTag = '[object Promise]',
20107
- setTag$2 = '[object Set]',
20108
- weakMapTag$1 = '[object WeakMap]';
20109
-
20110
- var dataViewTag$2 = '[object DataView]';
20111
-
20112
- /** Used to detect maps, sets, and weakmaps. */
20113
- var dataViewCtorString = _toSource(_DataView),
20114
- mapCtorString = _toSource(_Map),
20115
- promiseCtorString = _toSource(_Promise),
20116
- setCtorString = _toSource(_Set),
20117
- weakMapCtorString = _toSource(_WeakMap);
20118
-
20119
- /**
20120
- * Gets the `toStringTag` of `value`.
20121
- *
20122
- * @private
20123
- * @param {*} value The value to query.
20124
- * @returns {string} Returns the `toStringTag`.
20125
- */
20126
- var getTag = _baseGetTag;
20127
-
20128
- // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
20129
- if ((_DataView && getTag(new _DataView(new ArrayBuffer(1))) != dataViewTag$2) ||
20130
- (_Map && getTag(new _Map) != mapTag$2) ||
20131
- (_Promise && getTag(_Promise.resolve()) != promiseTag) ||
20132
- (_Set && getTag(new _Set) != setTag$2) ||
20133
- (_WeakMap && getTag(new _WeakMap) != weakMapTag$1)) {
20134
- getTag = function(value) {
20135
- var result = _baseGetTag(value),
20136
- Ctor = result == objectTag$1 ? value.constructor : undefined,
20137
- ctorString = Ctor ? _toSource(Ctor) : '';
20138
-
20139
- if (ctorString) {
20140
- switch (ctorString) {
20141
- case dataViewCtorString: return dataViewTag$2;
20142
- case mapCtorString: return mapTag$2;
20143
- case promiseCtorString: return promiseTag;
20144
- case setCtorString: return setTag$2;
20145
- case weakMapCtorString: return weakMapTag$1;
20146
- }
20147
- }
20148
- return result;
20149
- };
20150
- }
20151
-
20152
- var _getTag = getTag;
20153
-
20154
- /** Used to compose bitmasks for value comparisons. */
20155
- var COMPARE_PARTIAL_FLAG$3 = 1;
20156
-
20157
- /** `Object#toString` result references. */
20158
- var argsTag$2 = '[object Arguments]',
20159
- arrayTag$1 = '[object Array]',
20160
- objectTag$2 = '[object Object]';
20161
-
20162
- /** Used for built-in method references. */
20163
- var objectProto$b = Object.prototype;
20164
-
20165
- /** Used to check objects for own properties. */
20166
- var hasOwnProperty$8 = objectProto$b.hasOwnProperty;
20167
-
20168
- /**
20169
- * A specialized version of `baseIsEqual` for arrays and objects which performs
20170
- * deep comparisons and tracks traversed objects enabling objects with circular
20171
- * references to be compared.
20172
- *
20173
- * @private
20174
- * @param {Object} object The object to compare.
20175
- * @param {Object} other The other object to compare.
20176
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
20177
- * @param {Function} customizer The function to customize comparisons.
20178
- * @param {Function} equalFunc The function to determine equivalents of values.
20179
- * @param {Object} [stack] Tracks traversed `object` and `other` objects.
20180
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
20181
- */
20182
- function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
20183
- var objIsArr = isArray_1(object),
20184
- othIsArr = isArray_1(other),
20185
- objTag = objIsArr ? arrayTag$1 : _getTag(object),
20186
- othTag = othIsArr ? arrayTag$1 : _getTag(other);
20187
-
20188
- objTag = objTag == argsTag$2 ? objectTag$2 : objTag;
20189
- othTag = othTag == argsTag$2 ? objectTag$2 : othTag;
20190
-
20191
- var objIsObj = objTag == objectTag$2,
20192
- othIsObj = othTag == objectTag$2,
20193
- isSameTag = objTag == othTag;
20194
-
20195
- if (isSameTag && isBuffer_1(object)) {
20196
- if (!isBuffer_1(other)) {
20197
- return false;
20198
- }
20199
- objIsArr = true;
20200
- objIsObj = false;
20201
- }
20202
- if (isSameTag && !objIsObj) {
20203
- stack || (stack = new _Stack);
20204
- return (objIsArr || isTypedArray_1(object))
20205
- ? _equalArrays(object, other, bitmask, customizer, equalFunc, stack)
20206
- : _equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
20207
- }
20208
- if (!(bitmask & COMPARE_PARTIAL_FLAG$3)) {
20209
- var objIsWrapped = objIsObj && hasOwnProperty$8.call(object, '__wrapped__'),
20210
- othIsWrapped = othIsObj && hasOwnProperty$8.call(other, '__wrapped__');
20211
-
20212
- if (objIsWrapped || othIsWrapped) {
20213
- var objUnwrapped = objIsWrapped ? object.value() : object,
20214
- othUnwrapped = othIsWrapped ? other.value() : other;
20215
-
20216
- stack || (stack = new _Stack);
20217
- return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
20218
- }
20219
- }
20220
- if (!isSameTag) {
20221
- return false;
20222
- }
20223
- stack || (stack = new _Stack);
20224
- return _equalObjects(object, other, bitmask, customizer, equalFunc, stack);
20225
- }
20226
-
20227
- var _baseIsEqualDeep = baseIsEqualDeep;
20228
-
20229
- /**
20230
- * The base implementation of `_.isEqual` which supports partial comparisons
20231
- * and tracks traversed objects.
20232
- *
20233
- * @private
20234
- * @param {*} value The value to compare.
20235
- * @param {*} other The other value to compare.
20236
- * @param {boolean} bitmask The bitmask flags.
20237
- * 1 - Unordered comparison
20238
- * 2 - Partial comparison
20239
- * @param {Function} [customizer] The function to customize comparisons.
20240
- * @param {Object} [stack] Tracks traversed `value` and `other` objects.
20241
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
20242
- */
20243
- function baseIsEqual(value, other, bitmask, customizer, stack) {
20244
- if (value === other) {
20245
- return true;
20246
- }
20247
- if (value == null || other == null || (!isObjectLike_1(value) && !isObjectLike_1(other))) {
20248
- return value !== value && other !== other;
20249
- }
20250
- return _baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
20251
- }
20252
-
20253
- var _baseIsEqual = baseIsEqual;
20254
-
20255
- /** Used to compose bitmasks for value comparisons. */
20256
- var COMPARE_PARTIAL_FLAG$4 = 1,
20257
- COMPARE_UNORDERED_FLAG$2 = 2;
20258
-
20259
- /**
20260
- * The base implementation of `_.isMatch` without support for iteratee shorthands.
20261
- *
20262
- * @private
20263
- * @param {Object} object The object to inspect.
20264
- * @param {Object} source The object of property values to match.
20265
- * @param {Array} matchData The property names, values, and compare flags to match.
20266
- * @param {Function} [customizer] The function to customize comparisons.
20267
- * @returns {boolean} Returns `true` if `object` is a match, else `false`.
20268
- */
20269
- function baseIsMatch(object, source, matchData, customizer) {
20270
- var index = matchData.length,
20271
- length = index,
20272
- noCustomizer = !customizer;
20273
-
20274
- if (object == null) {
20275
- return !length;
20276
- }
20277
- object = Object(object);
20278
- while (index--) {
20279
- var data = matchData[index];
20280
- if ((noCustomizer && data[2])
20281
- ? data[1] !== object[data[0]]
20282
- : !(data[0] in object)
20283
- ) {
20284
- return false;
20285
- }
20286
- }
20287
- while (++index < length) {
20288
- data = matchData[index];
20289
- var key = data[0],
20290
- objValue = object[key],
20291
- srcValue = data[1];
20292
-
20293
- if (noCustomizer && data[2]) {
20294
- if (objValue === undefined && !(key in object)) {
20295
- return false;
20296
- }
20297
- } else {
20298
- var stack = new _Stack;
20299
- if (customizer) {
20300
- var result = customizer(objValue, srcValue, key, object, source, stack);
20301
- }
20302
- if (!(result === undefined
20303
- ? _baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG$4 | COMPARE_UNORDERED_FLAG$2, customizer, stack)
20304
- : result
20305
- )) {
20306
- return false;
20307
- }
20308
- }
20309
- }
20310
- return true;
20311
- }
20312
-
20313
- var _baseIsMatch = baseIsMatch;
20314
-
20315
- /**
20316
- * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
20317
- *
20318
- * @private
20319
- * @param {*} value The value to check.
20320
- * @returns {boolean} Returns `true` if `value` if suitable for strict
20321
- * equality comparisons, else `false`.
20322
- */
20323
- function isStrictComparable(value) {
20324
- return value === value && !isObject_1(value);
20325
- }
20326
-
20327
- var _isStrictComparable = isStrictComparable;
20328
-
20329
- /**
20330
- * Gets the property names, values, and compare flags of `object`.
20331
- *
20332
- * @private
20333
- * @param {Object} object The object to query.
20334
- * @returns {Array} Returns the match data of `object`.
20335
- */
20336
- function getMatchData(object) {
20337
- var result = keys_1(object),
20338
- length = result.length;
20339
-
20340
- while (length--) {
20341
- var key = result[length],
20342
- value = object[key];
20343
-
20344
- result[length] = [key, value, _isStrictComparable(value)];
20345
- }
20346
- return result;
20347
- }
20348
-
20349
- var _getMatchData = getMatchData;
20350
-
20351
- /**
20352
- * A specialized version of `matchesProperty` for source values suitable
20353
- * for strict equality comparisons, i.e. `===`.
20354
- *
20355
- * @private
20356
- * @param {string} key The key of the property to get.
20357
- * @param {*} srcValue The value to match.
20358
- * @returns {Function} Returns the new spec function.
20359
- */
20360
- function matchesStrictComparable(key, srcValue) {
20361
- return function(object) {
20362
- if (object == null) {
20363
- return false;
20364
- }
20365
- return object[key] === srcValue &&
20366
- (srcValue !== undefined || (key in Object(object)));
20367
- };
20368
- }
20369
-
20370
- var _matchesStrictComparable = matchesStrictComparable;
20371
-
20372
- /**
20373
- * The base implementation of `_.matches` which doesn't clone `source`.
20374
- *
20375
- * @private
20376
- * @param {Object} source The object of property values to match.
20377
- * @returns {Function} Returns the new spec function.
20378
- */
20379
- function baseMatches(source) {
20380
- var matchData = _getMatchData(source);
20381
- if (matchData.length == 1 && matchData[0][2]) {
20382
- return _matchesStrictComparable(matchData[0][0], matchData[0][1]);
20383
- }
20384
- return function(object) {
20385
- return object === source || _baseIsMatch(object, source, matchData);
20386
- };
20387
- }
20388
-
20389
- var _baseMatches = baseMatches;
20390
-
20391
- /**
20392
- * Gets the value at `path` of `object`. If the resolved value is
20393
- * `undefined`, the `defaultValue` is returned in its place.
20394
- *
20395
- * @static
20396
- * @memberOf _
20397
- * @since 3.7.0
20398
- * @category Object
20399
- * @param {Object} object The object to query.
20400
- * @param {Array|string} path The path of the property to get.
20401
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
20402
- * @returns {*} Returns the resolved value.
20403
- * @example
20404
- *
20405
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
20406
- *
20407
- * _.get(object, 'a[0].b.c');
20408
- * // => 3
20409
- *
20410
- * _.get(object, ['a', '0', 'b', 'c']);
20411
- * // => 3
20412
- *
20413
- * _.get(object, 'a.b.c', 'default');
20414
- * // => 'default'
20415
- */
20416
- function get$r(object, path, defaultValue) {
20417
- var result = object == null ? undefined : _baseGet(object, path);
20418
- return result === undefined ? defaultValue : result;
20419
- }
20420
-
20421
- var get_1 = get$r;
20422
-
20423
- /**
20424
- * The base implementation of `_.hasIn` without support for deep paths.
20425
- *
20426
- * @private
20427
- * @param {Object} [object] The object to query.
20428
- * @param {Array|string} key The key to check.
20429
- * @returns {boolean} Returns `true` if `key` exists, else `false`.
20430
- */
20431
- function baseHasIn(object, key) {
20432
- return object != null && key in Object(object);
20433
- }
20434
-
20435
- var _baseHasIn = baseHasIn;
20436
-
20437
- /**
20438
- * Checks if `path` exists on `object`.
20439
- *
20440
- * @private
20441
- * @param {Object} object The object to query.
20442
- * @param {Array|string} path The path to check.
20443
- * @param {Function} hasFunc The function to check properties.
20444
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
20445
- */
20446
- function hasPath(object, path, hasFunc) {
20447
- path = _castPath(path, object);
20448
-
20449
- var index = -1,
20450
- length = path.length,
20451
- result = false;
20452
-
20453
- while (++index < length) {
20454
- var key = _toKey(path[index]);
20455
- if (!(result = object != null && hasFunc(object, key))) {
20456
- break;
20457
- }
20458
- object = object[key];
20459
- }
20460
- if (result || ++index != length) {
20461
- return result;
20462
- }
20463
- length = object == null ? 0 : object.length;
20464
- return !!length && isLength_1(length) && _isIndex(key, length) &&
20465
- (isArray_1(object) || isArguments_1(object));
20466
- }
20467
-
20468
- var _hasPath = hasPath;
20469
-
20470
- /**
20471
- * Checks if `path` is a direct or inherited property of `object`.
20472
- *
20473
- * @static
20474
- * @memberOf _
20475
- * @since 4.0.0
20476
- * @category Object
20477
- * @param {Object} object The object to query.
20478
- * @param {Array|string} path The path to check.
20479
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
20480
- * @example
20481
- *
20482
- * var object = _.create({ 'a': _.create({ 'b': 2 }) });
20483
- *
20484
- * _.hasIn(object, 'a');
20485
- * // => true
20486
- *
20487
- * _.hasIn(object, 'a.b');
20488
- * // => true
20489
- *
20490
- * _.hasIn(object, ['a', 'b']);
20491
- * // => true
20492
- *
20493
- * _.hasIn(object, 'b');
20494
- * // => false
20495
- */
20496
- function hasIn(object, path) {
20497
- return object != null && _hasPath(object, path, _baseHasIn);
20498
- }
20499
-
20500
- var hasIn_1 = hasIn;
20501
-
20502
- /** Used to compose bitmasks for value comparisons. */
20503
- var COMPARE_PARTIAL_FLAG$5 = 1,
20504
- COMPARE_UNORDERED_FLAG$3 = 2;
20505
-
20506
- /**
20507
- * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
20508
- *
20509
- * @private
20510
- * @param {string} path The path of the property to get.
20511
- * @param {*} srcValue The value to match.
20512
- * @returns {Function} Returns the new spec function.
20513
- */
20514
- function baseMatchesProperty(path, srcValue) {
20515
- if (_isKey(path) && _isStrictComparable(srcValue)) {
20516
- return _matchesStrictComparable(_toKey(path), srcValue);
20517
- }
20518
- return function(object) {
20519
- var objValue = get_1(object, path);
20520
- return (objValue === undefined && objValue === srcValue)
20521
- ? hasIn_1(object, path)
20522
- : _baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG$5 | COMPARE_UNORDERED_FLAG$3);
20523
- };
20524
- }
20525
-
20526
- var _baseMatchesProperty = baseMatchesProperty;
20527
-
20528
- /**
20529
- * This method returns the first argument it receives.
20530
- *
20531
- * @static
20532
- * @since 0.1.0
20533
- * @memberOf _
20534
- * @category Util
20535
- * @param {*} value Any value.
20536
- * @returns {*} Returns `value`.
20537
- * @example
20538
- *
20539
- * var object = { 'a': 1 };
20540
- *
20541
- * console.log(_.identity(object) === object);
20542
- * // => true
20543
- */
20544
- function identity(value) {
20545
- return value;
20546
- }
20547
-
20548
- var identity_1 = identity;
20549
-
20550
- /**
20551
- * The base implementation of `_.property` without support for deep paths.
20552
- *
20553
- * @private
20554
- * @param {string} key The key of the property to get.
20555
- * @returns {Function} Returns the new accessor function.
20556
- */
20557
- function baseProperty(key) {
20558
- return function(object) {
20559
- return object == null ? undefined : object[key];
20560
- };
20561
- }
20562
-
20563
- var _baseProperty = baseProperty;
20564
-
20565
- /**
20566
- * A specialized version of `baseProperty` which supports deep paths.
20567
- *
20568
- * @private
20569
- * @param {Array|string} path The path of the property to get.
20570
- * @returns {Function} Returns the new accessor function.
20571
- */
20572
- function basePropertyDeep(path) {
20573
- return function(object) {
20574
- return _baseGet(object, path);
20575
- };
20576
- }
20577
-
20578
- var _basePropertyDeep = basePropertyDeep;
20579
-
20580
- /**
20581
- * Creates a function that returns the value at `path` of a given object.
20582
- *
20583
- * @static
20584
- * @memberOf _
20585
- * @since 2.4.0
20586
- * @category Util
20587
- * @param {Array|string} path The path of the property to get.
20588
- * @returns {Function} Returns the new accessor function.
20589
- * @example
20590
- *
20591
- * var objects = [
20592
- * { 'a': { 'b': 2 } },
20593
- * { 'a': { 'b': 1 } }
20594
- * ];
20595
- *
20596
- * _.map(objects, _.property('a.b'));
20597
- * // => [2, 1]
20598
- *
20599
- * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
20600
- * // => [1, 2]
20601
- */
20602
- function property(path) {
20603
- return _isKey(path) ? _baseProperty(_toKey(path)) : _basePropertyDeep(path);
20604
- }
20605
-
20606
- var property_1 = property;
20607
-
20608
- /**
20609
- * The base implementation of `_.iteratee`.
20610
- *
20611
- * @private
20612
- * @param {*} [value=_.identity] The value to convert to an iteratee.
20613
- * @returns {Function} Returns the iteratee.
20614
- */
20615
- function baseIteratee(value) {
20616
- // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
20617
- // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
20618
- if (typeof value == 'function') {
20619
- return value;
20620
- }
20621
- if (value == null) {
20622
- return identity_1;
20623
- }
20624
- if (typeof value == 'object') {
20625
- return isArray_1(value)
20626
- ? _baseMatchesProperty(value[0], value[1])
20627
- : _baseMatches(value);
20628
- }
20629
- return property_1(value);
20630
- }
20631
-
20632
- var _baseIteratee = baseIteratee;
20633
-
20634
- /**
20635
- * Creates a base function for methods like `_.forIn` and `_.forOwn`.
20636
- *
20637
- * @private
20638
- * @param {boolean} [fromRight] Specify iterating from right to left.
20639
- * @returns {Function} Returns the new base function.
20640
- */
20641
- function createBaseFor(fromRight) {
20642
- return function(object, iteratee, keysFunc) {
20643
- var index = -1,
20644
- iterable = Object(object),
20645
- props = keysFunc(object),
20646
- length = props.length;
20647
-
20648
- while (length--) {
20649
- var key = props[fromRight ? length : ++index];
20650
- if (iteratee(iterable[key], key, iterable) === false) {
20651
- break;
20652
- }
20653
- }
20654
- return object;
20655
- };
20656
- }
20657
-
20658
- var _createBaseFor = createBaseFor;
20659
-
20660
- /**
20661
- * The base implementation of `baseForOwn` which iterates over `object`
20662
- * properties returned by `keysFunc` and invokes `iteratee` for each property.
20663
- * Iteratee functions may exit iteration early by explicitly returning `false`.
20664
- *
20665
- * @private
20666
- * @param {Object} object The object to iterate over.
20667
- * @param {Function} iteratee The function invoked per iteration.
20668
- * @param {Function} keysFunc The function to get the keys of `object`.
20669
- * @returns {Object} Returns `object`.
20670
- */
20671
- var baseFor = _createBaseFor();
20672
-
20673
- var _baseFor = baseFor;
20674
-
20675
- /**
20676
- * The base implementation of `_.forOwn` without support for iteratee shorthands.
20677
- *
20678
- * @private
20679
- * @param {Object} object The object to iterate over.
20680
- * @param {Function} iteratee The function invoked per iteration.
20681
- * @returns {Object} Returns `object`.
20682
- */
20683
- function baseForOwn(object, iteratee) {
20684
- return object && _baseFor(object, iteratee, keys_1);
20685
- }
20686
-
20687
- var _baseForOwn = baseForOwn;
20688
-
20689
- /**
20690
- * Creates a `baseEach` or `baseEachRight` function.
20691
- *
20692
- * @private
20693
- * @param {Function} eachFunc The function to iterate over a collection.
20694
- * @param {boolean} [fromRight] Specify iterating from right to left.
20695
- * @returns {Function} Returns the new base function.
20696
- */
20697
- function createBaseEach(eachFunc, fromRight) {
20698
- return function(collection, iteratee) {
20699
- if (collection == null) {
20700
- return collection;
20701
- }
20702
- if (!isArrayLike_1(collection)) {
20703
- return eachFunc(collection, iteratee);
20704
- }
20705
- var length = collection.length,
20706
- index = fromRight ? length : -1,
20707
- iterable = Object(collection);
20708
-
20709
- while ((fromRight ? index-- : ++index < length)) {
20710
- if (iteratee(iterable[index], index, iterable) === false) {
20711
- break;
20712
- }
20713
- }
20714
- return collection;
20715
- };
20716
- }
20717
-
20718
- var _createBaseEach = createBaseEach;
20719
-
20720
- /**
20721
- * The base implementation of `_.forEach` without support for iteratee shorthands.
20722
- *
20723
- * @private
20724
- * @param {Array|Object} collection The collection to iterate over.
20725
- * @param {Function} iteratee The function invoked per iteration.
20726
- * @returns {Array|Object} Returns `collection`.
20727
- */
20728
- var baseEach = _createBaseEach(_baseForOwn);
20729
-
20730
- var _baseEach = baseEach;
20731
-
20732
- /**
20733
- * The base implementation of `_.map` without support for iteratee shorthands.
20734
- *
20735
- * @private
20736
- * @param {Array|Object} collection The collection to iterate over.
20737
- * @param {Function} iteratee The function invoked per iteration.
20738
- * @returns {Array} Returns the new mapped array.
20739
- */
20740
- function baseMap(collection, iteratee) {
20741
- var index = -1,
20742
- result = isArrayLike_1(collection) ? Array(collection.length) : [];
20743
-
20744
- _baseEach(collection, function(value, key, collection) {
20745
- result[++index] = iteratee(value, key, collection);
20746
- });
20747
- return result;
20748
- }
20749
-
20750
- var _baseMap = baseMap;
20751
-
20752
- /**
20753
- * The base implementation of `_.sortBy` which uses `comparer` to define the
20754
- * sort order of `array` and replaces criteria objects with their corresponding
20755
- * values.
20756
- *
20757
- * @private
20758
- * @param {Array} array The array to sort.
20759
- * @param {Function} comparer The function to define sort order.
20760
- * @returns {Array} Returns `array`.
20761
- */
20762
- function baseSortBy(array, comparer) {
20763
- var length = array.length;
20764
-
20765
- array.sort(comparer);
20766
- while (length--) {
20767
- array[length] = array[length].value;
20768
- }
20769
- return array;
20770
- }
20771
-
20772
- var _baseSortBy = baseSortBy;
20773
-
20774
- /**
20775
- * Compares values to sort them in ascending order.
20776
- *
20777
- * @private
20778
- * @param {*} value The value to compare.
20779
- * @param {*} other The other value to compare.
20780
- * @returns {number} Returns the sort order indicator for `value`.
20781
- */
20782
- function compareAscending(value, other) {
20783
- if (value !== other) {
20784
- var valIsDefined = value !== undefined,
20785
- valIsNull = value === null,
20786
- valIsReflexive = value === value,
20787
- valIsSymbol = isSymbol_1(value);
20788
-
20789
- var othIsDefined = other !== undefined,
20790
- othIsNull = other === null,
20791
- othIsReflexive = other === other,
20792
- othIsSymbol = isSymbol_1(other);
20793
-
20794
- if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
20795
- (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
20796
- (valIsNull && othIsDefined && othIsReflexive) ||
20797
- (!valIsDefined && othIsReflexive) ||
20798
- !valIsReflexive) {
20799
- return 1;
20800
- }
20801
- if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
20802
- (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
20803
- (othIsNull && valIsDefined && valIsReflexive) ||
20804
- (!othIsDefined && valIsReflexive) ||
20805
- !othIsReflexive) {
20806
- return -1;
20807
- }
20808
- }
20809
- return 0;
20810
- }
20811
-
20812
- var _compareAscending = compareAscending;
20813
-
20814
- /**
20815
- * Used by `_.orderBy` to compare multiple properties of a value to another
20816
- * and stable sort them.
20817
- *
20818
- * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
20819
- * specify an order of "desc" for descending or "asc" for ascending sort order
20820
- * of corresponding values.
20821
- *
20822
- * @private
20823
- * @param {Object} object The object to compare.
20824
- * @param {Object} other The other object to compare.
20825
- * @param {boolean[]|string[]} orders The order to sort by for each property.
20826
- * @returns {number} Returns the sort order indicator for `object`.
20827
- */
20828
- function compareMultiple(object, other, orders) {
20829
- var index = -1,
20830
- objCriteria = object.criteria,
20831
- othCriteria = other.criteria,
20832
- length = objCriteria.length,
20833
- ordersLength = orders.length;
20834
-
20835
- while (++index < length) {
20836
- var result = _compareAscending(objCriteria[index], othCriteria[index]);
20837
- if (result) {
20838
- if (index >= ordersLength) {
20839
- return result;
20840
- }
20841
- var order = orders[index];
20842
- return result * (order == 'desc' ? -1 : 1);
20843
- }
20844
- }
20845
- // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
20846
- // that causes it, under certain circumstances, to provide the same value for
20847
- // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
20848
- // for more details.
20849
- //
20850
- // This also ensures a stable sort in V8 and other engines.
20851
- // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
20852
- return object.index - other.index;
20853
- }
20854
-
20855
- var _compareMultiple = compareMultiple;
20856
-
20857
- /**
20858
- * The base implementation of `_.orderBy` without param guards.
20859
- *
20860
- * @private
20861
- * @param {Array|Object} collection The collection to iterate over.
20862
- * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
20863
- * @param {string[]} orders The sort orders of `iteratees`.
20864
- * @returns {Array} Returns the new sorted array.
20865
- */
20866
- function baseOrderBy(collection, iteratees, orders) {
20867
- if (iteratees.length) {
20868
- iteratees = _arrayMap(iteratees, function(iteratee) {
20869
- if (isArray_1(iteratee)) {
20870
- return function(value) {
20871
- return _baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
20872
- }
20873
- }
20874
- return iteratee;
20875
- });
20876
- } else {
20877
- iteratees = [identity_1];
20878
- }
20879
-
20880
- var index = -1;
20881
- iteratees = _arrayMap(iteratees, _baseUnary(_baseIteratee));
20882
-
20883
- var result = _baseMap(collection, function(value, key, collection) {
20884
- var criteria = _arrayMap(iteratees, function(iteratee) {
20885
- return iteratee(value);
20886
- });
20887
- return { 'criteria': criteria, 'index': ++index, 'value': value };
20888
- });
20889
-
20890
- return _baseSortBy(result, function(object, other) {
20891
- return _compareMultiple(object, other, orders);
20892
- });
20893
- }
20894
-
20895
- var _baseOrderBy = baseOrderBy;
20896
-
20897
- /**
20898
- * A faster alternative to `Function#apply`, this function invokes `func`
20899
- * with the `this` binding of `thisArg` and the arguments of `args`.
20900
- *
20901
- * @private
20902
- * @param {Function} func The function to invoke.
20903
- * @param {*} thisArg The `this` binding of `func`.
20904
- * @param {Array} args The arguments to invoke `func` with.
20905
- * @returns {*} Returns the result of `func`.
20906
- */
20907
- function apply(func, thisArg, args) {
20908
- switch (args.length) {
20909
- case 0: return func.call(thisArg);
20910
- case 1: return func.call(thisArg, args[0]);
20911
- case 2: return func.call(thisArg, args[0], args[1]);
20912
- case 3: return func.call(thisArg, args[0], args[1], args[2]);
20913
- }
20914
- return func.apply(thisArg, args);
20915
- }
20916
-
20917
- var _apply = apply;
20918
-
20919
- /* Built-in method references for those with the same name as other `lodash` methods. */
20920
- var nativeMax = Math.max;
20921
-
20922
- /**
20923
- * A specialized version of `baseRest` which transforms the rest array.
20924
- *
20925
- * @private
20926
- * @param {Function} func The function to apply a rest parameter to.
20927
- * @param {number} [start=func.length-1] The start position of the rest parameter.
20928
- * @param {Function} transform The rest array transform.
20929
- * @returns {Function} Returns the new function.
20930
- */
20931
- function overRest(func, start, transform) {
20932
- start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
20933
- return function() {
20934
- var args = arguments,
20935
- index = -1,
20936
- length = nativeMax(args.length - start, 0),
20937
- array = Array(length);
20938
-
20939
- while (++index < length) {
20940
- array[index] = args[start + index];
20941
- }
20942
- index = -1;
20943
- var otherArgs = Array(start + 1);
20944
- while (++index < start) {
20945
- otherArgs[index] = args[index];
20946
- }
20947
- otherArgs[start] = transform(array);
20948
- return _apply(func, this, otherArgs);
20949
- };
20950
- }
20951
-
20952
- var _overRest = overRest;
20953
-
20954
- /**
20955
- * Creates a function that returns `value`.
20956
- *
20957
- * @static
20958
- * @memberOf _
20959
- * @since 2.4.0
20960
- * @category Util
20961
- * @param {*} value The value to return from the new function.
20962
- * @returns {Function} Returns the new constant function.
20963
- * @example
20964
- *
20965
- * var objects = _.times(2, _.constant({ 'a': 1 }));
20966
- *
20967
- * console.log(objects);
20968
- * // => [{ 'a': 1 }, { 'a': 1 }]
20969
- *
20970
- * console.log(objects[0] === objects[1]);
20971
- * // => true
20972
- */
20973
- function constant(value) {
20974
- return function() {
20975
- return value;
20976
- };
20977
- }
20978
-
20979
- var constant_1 = constant;
20980
-
20981
- var defineProperty = (function() {
20982
- try {
20983
- var func = _getNative(Object, 'defineProperty');
20984
- func({}, '', {});
20985
- return func;
20986
- } catch (e) {}
20987
- }());
20988
-
20989
- var _defineProperty = defineProperty;
20990
-
20991
- /**
20992
- * The base implementation of `setToString` without support for hot loop shorting.
20993
- *
20994
- * @private
20995
- * @param {Function} func The function to modify.
20996
- * @param {Function} string The `toString` result.
20997
- * @returns {Function} Returns `func`.
20998
- */
20999
- var baseSetToString = !_defineProperty ? identity_1 : function(func, string) {
21000
- return _defineProperty(func, 'toString', {
21001
- 'configurable': true,
21002
- 'enumerable': false,
21003
- 'value': constant_1(string),
21004
- 'writable': true
21005
- });
21006
- };
21007
-
21008
- var _baseSetToString = baseSetToString;
21009
-
21010
- /** Used to detect hot functions by number of calls within a span of milliseconds. */
21011
- var HOT_COUNT = 800,
21012
- HOT_SPAN = 16;
21013
-
21014
- /* Built-in method references for those with the same name as other `lodash` methods. */
21015
- var nativeNow = Date.now;
21016
-
21017
- /**
21018
- * Creates a function that'll short out and invoke `identity` instead
21019
- * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
21020
- * milliseconds.
21021
- *
21022
- * @private
21023
- * @param {Function} func The function to restrict.
21024
- * @returns {Function} Returns the new shortable function.
21025
- */
21026
- function shortOut(func) {
21027
- var count = 0,
21028
- lastCalled = 0;
21029
-
21030
- return function() {
21031
- var stamp = nativeNow(),
21032
- remaining = HOT_SPAN - (stamp - lastCalled);
21033
-
21034
- lastCalled = stamp;
21035
- if (remaining > 0) {
21036
- if (++count >= HOT_COUNT) {
21037
- return arguments[0];
21038
- }
21039
- } else {
21040
- count = 0;
21041
- }
21042
- return func.apply(undefined, arguments);
21043
- };
21044
- }
21045
-
21046
- var _shortOut = shortOut;
21047
-
21048
- /**
21049
- * Sets the `toString` method of `func` to return `string`.
21050
- *
21051
- * @private
21052
- * @param {Function} func The function to modify.
21053
- * @param {Function} string The `toString` result.
21054
- * @returns {Function} Returns `func`.
21055
- */
21056
- var setToString = _shortOut(_baseSetToString);
21057
-
21058
- var _setToString = setToString;
21059
-
21060
- /**
21061
- * The base implementation of `_.rest` which doesn't validate or coerce arguments.
21062
- *
21063
- * @private
21064
- * @param {Function} func The function to apply a rest parameter to.
21065
- * @param {number} [start=func.length-1] The start position of the rest parameter.
21066
- * @returns {Function} Returns the new function.
21067
- */
21068
- function baseRest(func, start) {
21069
- return _setToString(_overRest(func, start, identity_1), func + '');
21070
- }
21071
-
21072
- var _baseRest = baseRest;
21073
-
21074
- /**
21075
- * Checks if the given arguments are from an iteratee call.
21076
- *
21077
- * @private
21078
- * @param {*} value The potential iteratee value argument.
21079
- * @param {*} index The potential iteratee index or key argument.
21080
- * @param {*} object The potential iteratee object argument.
21081
- * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
21082
- * else `false`.
21083
- */
21084
- function isIterateeCall(value, index, object) {
21085
- if (!isObject_1(object)) {
21086
- return false;
21087
- }
21088
- var type = typeof index;
21089
- if (type == 'number'
21090
- ? (isArrayLike_1(object) && _isIndex(index, object.length))
21091
- : (type == 'string' && index in object)
21092
- ) {
21093
- return eq_1(object[index], value);
21094
- }
21095
- return false;
21096
- }
21097
-
21098
- var _isIterateeCall = isIterateeCall;
21099
-
21100
- /**
21101
- * Creates an array of elements, sorted in ascending order by the results of
21102
- * running each element in a collection thru each iteratee. This method
21103
- * performs a stable sort, that is, it preserves the original sort order of
21104
- * equal elements. The iteratees are invoked with one argument: (value).
21105
- *
21106
- * @static
21107
- * @memberOf _
21108
- * @since 0.1.0
21109
- * @category Collection
21110
- * @param {Array|Object} collection The collection to iterate over.
21111
- * @param {...(Function|Function[])} [iteratees=[_.identity]]
21112
- * The iteratees to sort by.
21113
- * @returns {Array} Returns the new sorted array.
21114
- * @example
21115
- *
21116
- * var users = [
21117
- * { 'user': 'fred', 'age': 48 },
21118
- * { 'user': 'barney', 'age': 36 },
21119
- * { 'user': 'fred', 'age': 30 },
21120
- * { 'user': 'barney', 'age': 34 }
21121
- * ];
21122
- *
21123
- * _.sortBy(users, [function(o) { return o.user; }]);
21124
- * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]
21125
- *
21126
- * _.sortBy(users, ['user', 'age']);
21127
- * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]
21128
- */
21129
- var sortBy = _baseRest(function(collection, iteratees) {
21130
- if (collection == null) {
21131
- return [];
21132
- }
21133
- var length = iteratees.length;
21134
- if (length > 1 && _isIterateeCall(collection, iteratees[0], iteratees[1])) {
21135
- iteratees = [];
21136
- } else if (length > 2 && _isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
21137
- iteratees = [iteratees[0]];
21138
- }
21139
- return _baseOrderBy(collection, _baseFlatten(iteratees, 1), []);
21140
- });
21141
-
21142
- var sortBy_1 = sortBy;
21143
-
21144
- var MAX_SKILL_RATING = 7;
21145
-
21146
- var getPercentageRating = function getPercentageRating(rating) {
21147
- return Number((100 * rating / MAX_SKILL_RATING).toFixed(2));
21148
- };
21149
-
21150
- var getTimes = function getTimes(data) {
21151
- try {
21152
- var times = data.map(function (item) {
21153
- return item.ratings.map(function (rating) {
21154
- return rating.time;
21155
- });
21156
- }).flat();
21157
- return times.filter(function (item, index) {
21158
- return times.indexOf(item) === index;
21159
- }).map(function (time) {
21160
- return format(new Date(time), marioCore.DATE_FORMAT);
21161
- }).sort();
21162
- } catch (_unused) {
21163
- return [];
21164
- }
21165
- };
21166
-
21167
- var getRatings = function getRatings(ratings, times) {
21168
- try {
21169
- var formatRatings = sortBy_1(ratings.map(function (item) {
21170
- return _extends({}, item, {
21171
- time: format(new Date(item.time), marioCore.DATE_FORMAT),
21172
- rating: getPercentageRating(item.rating)
21173
- });
21174
- }), "time");
21175
- var results = [];
21176
-
21177
- var _loop = function _loop(i) {
21178
- var time = times[i];
21179
- var rating = formatRatings.find(function (item) {
21180
- return item.time === time;
21181
- });
21182
-
21183
- if (!rating) {
21184
- results[i] = {
21185
- value: i > 0 ? results[i - 1].value : 0,
21186
- isDiscrete: true
21187
- };
21188
- return "continue";
21189
- }
21190
-
21191
- results[i] = {
21192
- value: rating.rating,
21193
- isDiscrete: false
21194
- };
21195
- };
21196
-
21197
- for (var i = 0; i < times.length; i++) {
21198
- var _ret = _loop(i);
21199
-
21200
- if (_ret === "continue") continue;
21201
- }
21202
-
21203
- return results;
21204
- } catch (_unused2) {
21205
- return [];
21206
- }
21207
- };
21208
-
21209
- var useSkillFormat = function useSkillFormat(data) {
21210
- var _useState = React.useState([]),
21211
- activeSkillNames = _useState[0],
21212
- setActiveSkillNames = _useState[1];
21213
-
21214
- var toggleSkillName = React.useCallback(function (name) {
21215
- if (activeSkillNames.includes(name)) {
21216
- setActiveSkillNames(activeSkillNames.filter(function (item) {
21217
- return item !== name;
21218
- }));
21219
- return;
21220
- }
21221
-
21222
- setActiveSkillNames([].concat(activeSkillNames, [name]));
21223
- }, [activeSkillNames]);
21224
- var colors = React.useMemo(function () {
21225
- if (!data) return [];
21226
-
21227
- try {
21228
- return getColors(data.length);
21229
- } catch (_unused3) {
21230
- return [];
21231
- }
21232
- }, [data]);
21233
- var times = React.useMemo(function () {
21234
- return getTimes(data);
21235
- }, [data]);
21236
- var series = React.useMemo(function () {
21237
- if (!data) return [];
21238
-
21239
- try {
21240
- return data.map(function (item, index) {
21241
- return {
21242
- name: item.skillName,
21243
- color: colors[index],
21244
- data: getRatings(item.ratings, times).map(function (rating) {
21245
- return rating.value;
21246
- })
21247
- };
21248
- });
21249
- } catch (_unused4) {
21250
- return [];
21251
- }
21252
- }, [data, times]);
21253
- var discrete = React.useMemo(function () {
21254
- if (!data) return [];
21255
- var results = [];
21256
-
21257
- try {
21258
- data.map(function (item, index) {
21259
- var ratings = getRatings(item.ratings, times);
21260
- ratings.map(function (rating, ratingIndex) {
21261
- if (rating.isDiscrete) {
21262
- results.push({
21263
- seriesIndex: index,
21264
- dataPointIndex: ratingIndex,
21265
- size: 0
21266
- });
21267
- }
21268
- });
21269
- });
21270
- return results;
21271
- } catch (_unused5) {
21272
- return [];
21273
- }
21274
- }, [data, times]);
21275
- React.useEffect(function () {
21276
- if (data) {
21277
- try {
21278
- setActiveSkillNames(data.map(function (item) {
21279
- return item.skillName;
21280
- }));
21281
- } catch (_unused6) {}
21282
- }
21283
- }, [data]);
21284
- return {
21285
- colors: colors,
21286
- activeSkillNames: activeSkillNames,
21287
- times: times,
21288
- series: series,
21289
- discrete: discrete,
21290
- toggleSkillName: toggleSkillName
21291
- };
21292
- };
21293
-
21294
- var ICON_SIZE = 8;
21295
- var ICON_COLOR = "#fff";
21296
-
21297
- var CustomCheckbox = function CustomCheckbox(_ref) {
21298
- var label = _ref.label,
21299
- color = _ref.color,
21300
- checked = _ref.checked,
21301
- _onClick = _ref.onClick;
21302
- return React__default.createElement("div", {
21303
- className: "d-flex align-items-center"
21304
- }, React__default.createElement("span", {
21305
- className: "custom-checkbox-square d-flex align-items-center justify-content-center cursor-pointer",
21306
- style: checked ? {
21307
- backgroundColor: color
21308
- } : {},
21309
- onClick: function onClick(_e) {
21310
- return _onClick();
21311
- }
21312
- }, checked && React__default.createElement(fa.FaCheck, {
21313
- size: ICON_SIZE,
21314
- color: ICON_COLOR
21315
- })), React__default.createElement("span", {
21316
- className: "ml-2"
21317
- }, label));
21318
- };
21319
-
21320
- var Skill = function Skill(_ref) {
21321
- var data = _ref.data;
21322
-
21323
- var _useSkillFormat = useSkillFormat(data),
21324
- colors = _useSkillFormat.colors,
21325
- activeSkillNames = _useSkillFormat.activeSkillNames,
21326
- series = _useSkillFormat.series,
21327
- times = _useSkillFormat.times,
21328
- discrete = _useSkillFormat.discrete,
21329
- toggleSkillName = _useSkillFormat.toggleSkillName;
21330
-
21331
- var options = {
21332
- chart: {
21333
- height: 350,
21334
- type: "area",
21335
- toolbar: {
21336
- show: false
21337
- }
21338
- },
21339
- dataLabels: {
21340
- enabled: false
21341
- },
21342
- stroke: {
21343
- width: 2,
21344
- curve: "straight"
21345
- },
21346
- markers: {
21347
- size: 4,
21348
- colors: ["#fff"],
21349
- strokeColors: colors,
21350
- strokeWidth: 2,
21351
- strokeOpacity: 0.9,
21352
- strokeDashArray: 0,
21353
- fillOpacity: 1,
21354
- shape: "circle",
21355
- radius: 2,
21356
- offsetX: 0,
21357
- offsetY: 0,
21358
- onClick: undefined,
21359
- onDblClick: undefined,
21360
- showNullDataPoints: true,
21361
- hover: {
21362
- size: undefined,
21363
- sizeOffset: 3
21364
- },
21365
- discrete: discrete
21366
- },
21367
- legend: {
21368
- show: false
21369
- },
21370
- xaxis: {
21371
- categories: times
21372
- },
21373
- yaxis: {
21374
- min: 0,
21375
- max: 100,
21376
- labels: {
21377
- formatter: function formatter(val) {
21378
- return val + "%";
21379
- }
21380
- }
21381
- },
21382
- tooltip: {}
21383
- };
21384
- if (!data) return React__default.createElement(Loading, null);
21385
- return React__default.createElement("div", null, series && React__default.createElement(React.Fragment, null, React__default.createElement("div", {
21386
- className: "d-flex align-items-center flex-wrap"
21387
- }, series.map(function (item, index) {
21388
- return React__default.createElement("div", {
21389
- key: item.name,
21390
- className: "d-flex align-items-center mr-3"
21391
- }, React__default.createElement(CustomCheckbox, {
21392
- label: item.name,
21393
- color: colors[index],
21394
- checked: activeSkillNames.includes(item.name),
21395
- onClick: function onClick() {
21396
- return toggleSkillName && toggleSkillName(item.name);
21397
- }
21398
- }));
21399
- })), React__default.createElement(ReactApexChart, {
21400
- options: options,
21401
- series: series.filter(function (item) {
21402
- return activeSkillNames.includes(item.name);
21403
- }),
21404
- type: "area",
21405
- height: 350
21406
- })));
21407
- };
21408
-
21409
- var colors$5 = ["#c0392b", "#3498db"];
21410
-
21411
- var TimeInSession = function TimeInSession(_ref) {
21412
- var data = _ref.data;
21413
- if (!data) return React__default.createElement(Loading, null);
21414
- var series = [{
21415
- name: "Teacher",
21416
- data: data.map(function (item) {
21417
- return item.teacherPerceivedImpact;
17793
+ var cards = [{
17794
+ label: "High-impact learning strategies of current school year",
17795
+ children: React__default.createElement(HighImpact, {
17796
+ data: highImpact
21418
17797
  })
21419
17798
  }, {
21420
- name: "Student",
21421
- data: data.map(function (item) {
21422
- return item.studentPerceivedImpact;
17799
+ label: "Learning strategies perceived impact",
17800
+ children: React__default.createElement(PerceivedImpact, {
17801
+ data: perceivedImpact
21423
17802
  })
21424
- }];
21425
- var categories = data.map(function (item) {
21426
- return item.sessionCategory;
21427
- });
21428
- var options = {
21429
- chart: {
21430
- type: "bar",
21431
- height: 350,
21432
- toolbar: {
21433
- show: false
21434
- }
21435
- },
21436
- colors: colors$5,
21437
- plotOptions: {
21438
- bar: {
21439
- horizontal: false,
21440
- columnWidth: "55%"
21441
- }
21442
- },
21443
- dataLabels: {
21444
- enabled: false
21445
- },
21446
- stroke: {
21447
- show: true,
21448
- width: 2,
21449
- colors: ["transparent"]
21450
- },
21451
- xaxis: {
21452
- categories: categories
21453
- },
21454
- fill: {
21455
- opacity: 1
21456
- },
21457
- legend: {
21458
- onItemClick: {
21459
- toggleDataSeries: false
21460
- },
21461
- onItemHover: {
21462
- highlightDataSeries: false
21463
- }
21464
- }
21465
- };
21466
- return React__default.createElement("div", null, React__default.createElement(ReactApexChart, {
21467
- options: options,
21468
- series: series,
21469
- type: "bar",
21470
- height: 350
21471
- }));
21472
- };
21473
-
21474
- var colors$6 = ["#f0932b", "#22a6b3", "#6ab04c"];
21475
- var categories = ["Before intervention", "During intervention", "After intervention"];
21476
-
21477
- var findGradeLabel = function findGradeLabel(value, bandScores) {
21478
- var sortedBandScores = bandScores === null || bandScores === void 0 ? void 0 : bandScores.sort(function (item1, item2) {
21479
- return item1.value - item2.value;
21480
- });
21481
-
21482
- if ((sortedBandScores === null || sortedBandScores === void 0 ? void 0 : sortedBandScores.length) > 0) {
21483
- for (var i = 0; i < sortedBandScores.length; i++) {
21484
- var _sortedBandScores$i, _sortedBandScores;
21485
-
21486
- if (((_sortedBandScores$i = sortedBandScores[i]) === null || _sortedBandScores$i === void 0 ? void 0 : _sortedBandScores$i.value) <= value && value <= ((_sortedBandScores = sortedBandScores[i + 1]) === null || _sortedBandScores === void 0 ? void 0 : _sortedBandScores.value)) {
21487
- var _sortedBandScores$i2, _sortedBandScores2, _sortedBandScores3;
21488
-
21489
- if (value - ((_sortedBandScores$i2 = sortedBandScores[i]) === null || _sortedBandScores$i2 === void 0 ? void 0 : _sortedBandScores$i2.value) <= ((_sortedBandScores2 = sortedBandScores[i + 1]) === null || _sortedBandScores2 === void 0 ? void 0 : _sortedBandScores2.value) - value) {
21490
- var _sortedBandScores$i3;
21491
-
21492
- return (_sortedBandScores$i3 = sortedBandScores[i]) === null || _sortedBandScores$i3 === void 0 ? void 0 : _sortedBandScores$i3.label;
21493
- }
21494
-
21495
- return (_sortedBandScores3 = sortedBandScores[i + 1]) === null || _sortedBandScores3 === void 0 ? void 0 : _sortedBandScores3.label;
21496
- }
21497
- }
21498
- }
21499
-
21500
- return "";
21501
- };
21502
-
21503
- var Grade = function Grade(_ref) {
21504
- var data = _ref.data;
21505
- if (!data) return React__default.createElement(Loading, null);
21506
- var series = [{
21507
- data: [data.beforeIntervention, data.duringIntervention, data.afterIntervention]
21508
- }];
21509
- var options = {
21510
- chart: {
21511
- height: 350,
21512
- type: "bar",
21513
- toolbar: {
21514
- show: false
21515
- }
21516
- },
21517
- colors: colors$6,
21518
- plotOptions: {
21519
- bar: {
21520
- columnWidth: "45%",
21521
- distributed: true
21522
- }
21523
- },
21524
- dataLabels: {
21525
- enabled: false
21526
- },
21527
- legend: {
21528
- show: false
21529
- },
21530
- xaxis: {
21531
- categories: categories
21532
- },
21533
- yaxis: {
21534
- max: Math.max.apply(Math, data.bandScores.map(function (item) {
21535
- return item.value;
21536
- })),
21537
- min: Math.min.apply(Math, data.bandScores.map(function (item) {
21538
- return item.value;
21539
- })),
21540
- labels: {
21541
- formatter: function formatter(val) {
21542
- return findGradeLabel(val, data.bandScores);
21543
- }
21544
- }
21545
- }
21546
- };
21547
- return React__default.createElement("div", null, React__default.createElement(ReactApexChart, {
21548
- options: options,
21549
- series: series,
21550
- type: "bar",
21551
- height: 350
21552
- }));
21553
- };
21554
-
21555
- var Dashboard = function Dashboard() {
21556
- var _useDashboard = useDashboard(),
21557
- loginCounting = _useDashboard.loginCounting,
21558
- quantity = _useDashboard.quantity,
21559
- skill = _useDashboard.skill,
21560
- goalProgress = _useDashboard.goalProgress,
21561
- highImpact = _useDashboard.highImpact,
21562
- perceivedImpact = _useDashboard.perceivedImpact,
21563
- timeInSession = _useDashboard.timeInSession,
21564
- grade = _useDashboard.grade;
21565
-
21566
- var cards = [{
17803
+ }, {
21567
17804
  label: "Students & teachers login per day",
21568
17805
  children: React__default.createElement(LoginCouting, {
21569
17806
  data: loginCounting
@@ -21573,36 +17810,16 @@ var Dashboard = function Dashboard() {
21573
17810
  children: React__default.createElement(Quantity, {
21574
17811
  data: quantity
21575
17812
  })
21576
- }, {
21577
- label: "MARIO skill",
21578
- children: React__default.createElement(Skill, {
21579
- data: skill
21580
- })
21581
17813
  }, {
21582
17814
  label: "Goal progress",
21583
17815
  children: React__default.createElement(GoalProgressReport, {
21584
17816
  data: goalProgress
21585
17817
  })
21586
- }, {
21587
- label: "1-1 sessions perceived impact",
21588
- children: React__default.createElement(TimeInSession, {
21589
- data: timeInSession
21590
- })
21591
17818
  }, {
21592
17819
  label: "Grades",
21593
17820
  children: React__default.createElement(Grade, {
21594
17821
  data: grade
21595
17822
  })
21596
- }, {
21597
- label: "High-impact learning strategies of current school year",
21598
- children: React__default.createElement(HighImpact, {
21599
- data: highImpact
21600
- })
21601
- }, {
21602
- label: "Learning strategies perceived impact",
21603
- children: React__default.createElement(PerceivedImpact, {
21604
- data: perceivedImpact
21605
- })
21606
17823
  }];
21607
17824
  return React__default.createElement("div", null, React__default.createElement("h4", {
21608
17825
  className: "mb-5"