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