@clickview/lite 0.0.25-rc.0 → 0.0.26-dev.0

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 (452) hide show
  1. package/.eslintrc.json +3 -0
  2. package/dist/css/13.chunk.css +14 -4
  3. package/dist/css/14.chunk.css +5 -9
  4. package/dist/css/16.chunk.css +6 -6
  5. package/dist/css/17.chunk.css +7 -7
  6. package/dist/css/18.chunk.css +7 -3
  7. package/dist/css/19.chunk.css +6 -6
  8. package/dist/css/2.chunk.css +1 -1
  9. package/dist/css/20.chunk.css +6 -4
  10. package/dist/css/21.chunk.css +4 -2
  11. package/dist/css/22.chunk.css +6 -4
  12. package/dist/css/23.chunk.css +6 -4
  13. package/dist/css/24.chunk.css +5 -5
  14. package/dist/css/25.chunk.css +3 -3
  15. package/dist/css/26.chunk.css +1 -7
  16. package/dist/css/27.chunk.css +6 -2
  17. package/dist/css/28.chunk.css +6 -2
  18. package/dist/css/29.chunk.css +2 -2
  19. package/dist/css/3.chunk.css +3 -3
  20. package/dist/css/30.chunk.css +2 -2
  21. package/dist/css/32.chunk.css +2 -6
  22. package/dist/css/33.chunk.css +2 -2
  23. package/dist/css/34.chunk.css +7 -1
  24. package/dist/css/37.chunk.css +3 -3
  25. package/dist/css/38.chunk.css +4 -0
  26. package/dist/css/4.chunk.css +8 -0
  27. package/dist/css/40.chunk.css +6 -0
  28. package/dist/css/41.chunk.css +4 -0
  29. package/dist/css/45.chunk.css +4 -0
  30. package/dist/css/52.chunk.css +2 -0
  31. package/dist/css/53.chunk.css +3 -1
  32. package/dist/css/54.chunk.css +1 -1
  33. package/dist/css/7.chunk.css +4 -0
  34. package/dist/css/9.chunk.css +4 -0
  35. package/dist/css/lite-app.css +55 -3
  36. package/dist/en.json +1 -1
  37. package/dist/libs/analytics/src/clients/CollectionApiClient.d.ts +1 -3
  38. package/dist/libs/analytics/src/enrichers/BaseAnalyticsEnricher.d.ts +1 -1
  39. package/dist/libs/analytics/src/enrichers/UserDataEnricher.d.ts +1 -1
  40. package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +8 -3
  41. package/dist/libs/analytics/src/utils/TypeHelper.d.ts +1 -1
  42. package/dist/libs/analytics/src/utils/VideoDataFormatHelper.d.ts +5 -5
  43. package/dist/libs/common/src/backbone/constants/CommonServices.d.ts +0 -1
  44. package/dist/libs/common/src/backbone/core/BaseAppRouter.d.ts +1 -1
  45. package/dist/libs/common/src/backbone/core/BaseApplication.d.ts +1 -1
  46. package/dist/libs/common/src/backbone/core/BaseBehavior.d.ts +1 -1
  47. package/dist/libs/common/src/backbone/core/BaseCollection.d.ts +1 -1
  48. package/dist/libs/common/src/backbone/core/BaseCollectionView.d.ts +1 -1
  49. package/dist/libs/common/src/backbone/core/BaseLayoutView.d.ts +1 -1
  50. package/dist/libs/common/src/backbone/core/BaseModel.d.ts +1 -1
  51. package/dist/libs/common/src/backbone/core/BaseNestedModel.d.ts +1 -1
  52. package/dist/libs/common/src/backbone/core/BaseService.d.ts +1 -1
  53. package/dist/libs/common/src/backbone/core/BaseView.d.ts +2 -2
  54. package/dist/libs/common/src/backbone/core/LayoutService.d.ts +1 -1
  55. package/dist/libs/common/src/backbone/core/ListenToRadio.d.ts +1 -1
  56. package/dist/libs/common/src/backbone/core/Shell.d.ts +1 -1
  57. package/dist/libs/common/src/backbone/interfaces/BaseCollectionIdentifier.d.ts +2 -1
  58. package/dist/libs/common/src/backbone/interfaces/DataProvider.d.ts +1 -1
  59. package/dist/libs/common/src/backbone/services/LanguageService.d.ts +1 -1
  60. package/dist/libs/common/src/backbone/services/data-providers/AjaxDataProvider.d.ts +1 -1
  61. package/dist/libs/common/src/backbone/services/data-providers/SignalRDataProvider.d.ts +2 -2
  62. package/dist/libs/common/src/backbone/utils/FunctionHelper.d.ts +3 -3
  63. package/dist/libs/common/src/react/components/BackboneViewWrapper.d.ts +2 -2
  64. package/dist/libs/common/src/react/flight/FlightMiddleware.d.ts +1 -1
  65. package/dist/libs/common/src/react/flight/interfaces/HttpRequest.d.ts +3 -0
  66. package/dist/libs/common/src/react/middleware/ApplicationMiddleware.d.ts +2 -1
  67. package/dist/libs/common/src/react/utils/ArrayHelper.d.ts +4 -3
  68. package/dist/libs/common/src/react/utils/FetchHelper.d.ts +1 -1
  69. package/dist/libs/shared/src/apps/notifications/views/popover/NotificationsPopoverView.d.ts +2 -2
  70. package/dist/libs/shared/src/apps/playlists/utils/getBackgroundColourClass.d.ts +2 -0
  71. package/dist/libs/shared/src/apps/search/utils/InstantSearchHelper.d.ts +5 -5
  72. package/dist/libs/shared/src/apps/search/utils/TypeaheadHelper.d.ts +24 -24
  73. package/dist/libs/shared/src/apps/search/views/search-bar/SearchBarView.d.ts +5 -5
  74. package/dist/libs/shared/src/apps/subjects/components/preferences/footer/PreferenceFooter.d.ts +1 -1
  75. package/dist/libs/shared/src/apps/upload/errors/file-type/FileTypeError.d.ts +1 -1
  76. package/dist/libs/shared/src/components/banner-header/BannerHeader.d.ts +1 -0
  77. package/dist/libs/shared/src/components/file-select-button/FileSelectButton.d.ts +15 -0
  78. package/dist/libs/shared/src/components/forms/form-buttons/FormButtons.d.ts +2 -1
  79. package/dist/libs/shared/src/components/forms/form-checkbox/FormCheckbox.d.ts +1 -1
  80. package/dist/libs/shared/src/components/forms/form-field/CharacterCounter.d.ts +3 -2
  81. package/dist/libs/shared/src/components/forms/form-field/FormField.d.ts +4 -3
  82. package/dist/libs/shared/src/components/forms/form-wrapper/FormWrapper.d.ts +2 -1
  83. package/dist/libs/shared/src/components/lazy-image/LazyImage.d.ts +1 -0
  84. package/dist/libs/shared/src/components/popup/Popup.d.ts +14 -0
  85. package/dist/libs/shared/src/components/search-bar/SearchBar.d.ts +24 -0
  86. package/dist/libs/shared/src/components/search-bar/SearchInput.d.ts +6 -2
  87. package/dist/libs/shared/src/components/thumbnails/base/BaseThumbnail.d.ts +4 -2
  88. package/dist/libs/shared/src/components/thumbnails/video/VideoThumbnail.d.ts +2 -2
  89. package/dist/libs/shared/src/components/widgets/fixed-widget/FixedWidget.d.ts +17 -8
  90. package/dist/libs/shared/src/components/widgets/fixed-widget/FixedWidgetUtils.d.ts +1 -1
  91. package/dist/libs/shared/src/components/widgets/fixed-widget/PartialFixedWidget.d.ts +1 -6
  92. package/dist/libs/shared/src/components/widgets/items/playlist-widget-item/PlaylistWidgetItem.d.ts +1 -2
  93. package/dist/libs/shared/src/components/widgets/items/resource-widget-item/ResourceWidgetItem.d.ts +13 -0
  94. package/dist/libs/shared/src/components/widgets/items/tall-subject-widget-item/TallSubjectWidgetItem.d.ts +1 -2
  95. package/dist/libs/shared/src/components/widgets/items/video-widget-item/VideoWidgetItem.d.ts +2 -2
  96. package/dist/libs/shared/src/components/widgets/sliding-list/SlidingListContainer.d.ts +1 -1
  97. package/dist/libs/shared/src/components/widgets/widget-button/WidgetButton.d.ts +1 -0
  98. package/dist/libs/shared/src/constants/BootstrapKeys.d.ts +1 -0
  99. package/dist/libs/shared/src/enums/MasterObjectTypes.d.ts +8 -0
  100. package/dist/libs/shared/src/enums/ObjectStatus.d.ts +5 -0
  101. package/dist/libs/shared/src/enums/PlayerMediaType.d.ts +4 -0
  102. package/dist/libs/shared/src/enums/UserGroup.d.ts +3 -2
  103. package/dist/libs/shared/src/enums/WidgetContents.d.ts +2 -1
  104. package/dist/libs/shared/src/flight-requests/ConfigRequests.d.ts +3 -1
  105. package/dist/libs/shared/src/flight-requests/PlayerRequests.d.ts +5 -0
  106. package/dist/libs/shared/src/flight-requests/PlaylistRequests.d.ts +1 -0
  107. package/dist/libs/shared/src/flight-requests/PreferenceRequests.d.ts +1 -1
  108. package/dist/libs/shared/src/flight-requests/ResourceRequests.d.ts +11 -0
  109. package/dist/libs/shared/src/flight-requests/ThemeRequests.d.ts +2 -0
  110. package/dist/libs/shared/src/flight-requests/UserRequests.d.ts +3 -1
  111. package/dist/libs/shared/src/hooks/useGetCollectionItems.d.ts +7 -0
  112. package/dist/libs/shared/src/images/svg/ImportedSvgs.d.ts +3 -1
  113. package/dist/libs/shared/src/images/svg/actions/index.d.ts +3 -1
  114. package/dist/libs/shared/src/interfaces/collections/SubtitleCollection.d.ts +3 -0
  115. package/dist/libs/shared/src/interfaces/collections/index.d.ts +1 -0
  116. package/dist/libs/shared/src/interfaces/models/Config.d.ts +2 -0
  117. package/dist/libs/shared/src/interfaces/models/FileUpload.d.ts +20 -0
  118. package/dist/libs/shared/src/interfaces/models/Glance.d.ts +2 -0
  119. package/dist/libs/shared/src/interfaces/models/Language.d.ts +4 -0
  120. package/dist/libs/shared/src/interfaces/models/Link.d.ts +1 -0
  121. package/dist/libs/shared/src/interfaces/models/Pdf.d.ts +4 -0
  122. package/dist/libs/shared/src/interfaces/models/PlayerViewKey.d.ts +3 -0
  123. package/dist/libs/shared/src/interfaces/models/Resource.d.ts +11 -3
  124. package/dist/libs/shared/src/interfaces/models/Subtitle.d.ts +7 -0
  125. package/dist/libs/shared/src/interfaces/models/Thumbnail.d.ts +3 -0
  126. package/dist/libs/shared/src/interfaces/models/User.d.ts +8 -1
  127. package/dist/libs/shared/src/interfaces/models/index.d.ts +4 -0
  128. package/dist/libs/shared/src/interfaces/requests/CreateViewKeyRequest.d.ts +5 -0
  129. package/dist/libs/shared/src/interfaces/requests/UpdateObjectChannel.d.ts +3 -0
  130. package/dist/libs/shared/src/interfaces/requests/UpdateObjectRating.d.ts +3 -0
  131. package/dist/libs/shared/src/interfaces/requests/UpdateResourceRequest.d.ts +3 -0
  132. package/dist/libs/shared/src/interfaces/requests/UpdateVideoRequest.d.ts +5 -1
  133. package/dist/libs/shared/src/interfaces/requests/index.d.ts +4 -0
  134. package/dist/libs/shared/src/interfaces/services/BaseConfigDataService.d.ts +5 -0
  135. package/dist/libs/shared/src/interfaces/services/BaseUserDataService.d.ts +2 -0
  136. package/dist/libs/shared/src/interfaces/services/index.d.ts +1 -0
  137. package/dist/libs/shared/src/legacy/components/thumbnail/ThumbnailComponent.d.ts +1 -1
  138. package/dist/libs/shared/src/utils/ImageHelper.d.ts +5 -4
  139. package/dist/libs/shared/src/utils/SvgHelper.d.ts +0 -1
  140. package/dist/libs/shared/src/utils/UserHelper.d.ts +3 -0
  141. package/dist/libs/shared/src/utils/VideoDetailsHelper.d.ts +18 -0
  142. package/dist/projects/lite/src/app.d.ts +37 -16
  143. package/dist/projects/lite/src/apps/classrooms/components/classroom-activities-list/ClassroomActivitiesList.d.ts +1 -4
  144. package/dist/projects/lite/src/apps/classrooms/components/classroom-activities-list/empty-state/ClassroomActivitiesListEmptyState.d.ts +1 -4
  145. package/dist/projects/lite/src/apps/classrooms/components/classroom-students-list/ClassroomStudentItem.d.ts +3 -2
  146. package/dist/projects/lite/src/apps/classrooms/components/classroom-students-list/ClassroomStudentsList.d.ts +3 -2
  147. package/dist/projects/lite/src/apps/classrooms/components/classroom-students-list/empty-state/ClassroomStudentsListEmptyState.d.ts +1 -4
  148. package/dist/projects/lite/src/apps/classrooms/components/manage-classroom-student-item/ManageClassroomStudentItem.d.ts +3 -2
  149. package/dist/projects/lite/src/apps/classrooms/flight-requests/ClassroomRequests.d.ts +5 -3
  150. package/dist/projects/lite/src/apps/classrooms/views/create-classroom/CreateClassroomView.d.ts +1 -1
  151. package/dist/projects/lite/src/apps/classrooms/views/edit-classroom/EditClassroomView.d.ts +2 -2
  152. package/dist/projects/lite/src/apps/content-updates/LiteContentUpdatesApplication.d.ts +1 -1
  153. package/dist/projects/lite/src/apps/content-updates/components/classification-update-breadcrumbs/ClassificationUpdateBreadcrumbs.d.ts +2 -2
  154. package/dist/projects/lite/src/apps/default/LiteDefaultApplication.d.ts +2 -0
  155. package/dist/projects/lite/src/apps/playlists/LitePlaylistsApplication.d.ts +1 -0
  156. package/dist/projects/lite/src/apps/playlists/constants/PlaylistBgColourClassNames.d.ts +1 -0
  157. package/dist/projects/lite/src/apps/playlists/views/copy-playlist/CopyPlaylistView.d.ts +7 -0
  158. package/dist/projects/lite/src/apps/search/components/filter-types/index.d.ts +1 -1
  159. package/dist/projects/lite/src/apps/search/components/filter-types/more-filters/MoreFilters.d.ts +1 -4
  160. package/dist/projects/lite/src/apps/search/components/filter-types/radio-filter/{year-level/YearLevelRadioFilter.d.ts → year-group/YearGroupRadioFilter.d.ts} +3 -3
  161. package/dist/projects/lite/src/apps/search/components/scoped-search-bar/ScopedSearchBar.d.ts +2 -0
  162. package/dist/projects/lite/src/apps/search/interfaces/SearchFilter.d.ts +1 -1
  163. package/dist/projects/lite/src/apps/search/utils/FilterHelper.d.ts +2 -2
  164. package/dist/projects/lite/src/apps/settings/components/SettingsGroup.d.ts +2 -2
  165. package/dist/projects/lite/src/apps/subjects/LiteSubjectApplication.d.ts +2 -3
  166. package/dist/projects/lite/src/apps/subjects/utils/OnboardingHelper.d.ts +1 -2
  167. package/dist/projects/lite/src/apps/user-manager/LiteUserManagerApplication.d.ts +13 -8
  168. package/dist/projects/lite/src/apps/user-manager/components/bulk-upload-file-select/BulkUploadFileSelect.d.ts +4 -6
  169. package/dist/projects/lite/src/apps/user-manager/components/delete-uploaded-user-popup/DeleteUploadedUserPopup.d.ts +8 -0
  170. package/dist/projects/lite/src/apps/user-manager/components/edit-uploaded-user-popup/EditUploadedUserPopup.d.ts +6 -5
  171. package/dist/projects/lite/src/apps/user-manager/components/edit-user-details/EditUserDetails.d.ts +15 -0
  172. package/dist/projects/lite/src/apps/user-manager/components/manage-users-list/ManageUsersList.d.ts +4 -6
  173. package/dist/projects/lite/src/apps/user-manager/components/manage-users-list/staff/ManageStaffItem.d.ts +9 -0
  174. package/dist/projects/lite/src/apps/user-manager/components/manage-users-list/students/ManageStudentItem.d.ts +2 -2
  175. package/dist/projects/lite/src/apps/user-manager/components/user-details-form/UserDetailsForm.d.ts +5 -5
  176. package/dist/projects/lite/src/apps/user-manager/components/user-review-table/UserReviewRow.d.ts +13 -0
  177. package/dist/projects/lite/src/apps/user-manager/components/user-review-table/UserReviewTable.d.ts +13 -0
  178. package/dist/projects/lite/src/apps/user-manager/components/year-group-select/YearGroupSelect.d.ts +8 -0
  179. package/dist/projects/lite/src/apps/user-manager/flight-requests/SchoolUserRequests.d.ts +12 -22
  180. package/dist/projects/lite/src/apps/user-manager/interfaces/BulkDeleteUsersRequest.d.ts +7 -0
  181. package/dist/projects/lite/src/apps/user-manager/interfaces/BulkUpdateUserStatusRequest.d.ts +8 -0
  182. package/dist/projects/lite/src/apps/user-manager/interfaces/EditUserRequest.d.ts +20 -6
  183. package/dist/projects/lite/src/apps/user-manager/interfaces/index.d.ts +1 -4
  184. package/dist/projects/lite/src/apps/user-manager/interfaces/mocks/MockClassroom.d.ts +2 -3
  185. package/dist/projects/lite/src/apps/user-manager/reducers/UserUploadReducer.d.ts +3 -4
  186. package/dist/projects/lite/src/apps/user-manager/validation/user-validation/UserValidationSchema.d.ts +23 -12
  187. package/dist/projects/lite/src/apps/user-manager/views/bulk-remove-users/BulkRemoveUsersView.d.ts +8 -0
  188. package/dist/projects/lite/src/apps/user-manager/views/create-user/CreateUserView.d.ts +8 -0
  189. package/dist/projects/lite/src/apps/user-manager/views/edit-user/EditUserView.d.ts +9 -0
  190. package/dist/projects/lite/src/apps/user-manager/views/{school-teacher-manager/SchoolTeacherManagerView.d.ts → school-staff-manager/SchoolStaffManagerView.d.ts} +2 -2
  191. package/dist/projects/lite/src/apps/user-manager/views/school-staff-manager/empty-state/SchoolStaffManagerEmptyState.d.ts +7 -0
  192. package/dist/projects/lite/src/apps/user-manager/views/school-student-manager/empty-state/SchoolStudentManagerEmptyState.d.ts +6 -1
  193. package/dist/projects/lite/src/apps/user-manager/views/toggle-user-status/ToggleUserStatusView.d.ts +7 -0
  194. package/dist/projects/lite/src/apps/user-manager/views/user-upload-review/UserUploadReviewView.d.ts +8 -0
  195. package/dist/projects/lite/src/shared/components/floating-player/FloatingPlayer.d.ts +7 -0
  196. package/dist/projects/lite/src/shared/components/play-page/PlayPage.d.ts +2 -0
  197. package/dist/projects/lite/src/shared/components/video-info-button/VideoInfoButton.d.ts +1 -1
  198. package/dist/projects/lite/src/shared/constants/LiteActions.d.ts +9 -8
  199. package/dist/projects/lite/src/shared/constants/LiteHostPlaceholderMappings.d.ts +6 -0
  200. package/dist/projects/lite/src/shared/constants/LiteViewModels.d.ts +2 -2
  201. package/dist/projects/lite/src/shared/constants/Services.d.ts +1 -0
  202. package/dist/projects/lite/src/shared/flight-requests/VideoRequests.d.ts +2 -3
  203. package/dist/projects/lite/src/shared/hooks/useHandleObjectError.d.ts +2 -2
  204. package/dist/projects/lite/src/shared/hooks/useInitPlayerContext.d.ts +21 -14
  205. package/dist/projects/lite/src/shared/interfaces/mocks/MockClassroomGroup.d.ts +2 -3
  206. package/dist/projects/lite/src/shared/services/FlightConfigDataService.d.ts +13 -0
  207. package/dist/projects/lite/src/shared/services/FlightUserDataService.d.ts +3 -0
  208. package/dist/projects/lite/src/shared/views/create-clip/CreateClipView.d.ts +6 -0
  209. package/dist/projects/lite/src/shared/views/preview-pdf/PreviewPdfView.d.ts +7 -0
  210. package/dist/projects/lite/src/startup/RegisterAnalytics.d.ts +1 -1
  211. package/dist/projects/lite/src/startup/RegisterAppOptions.d.ts +1 -1
  212. package/dist/projects/lite/src/startup/RegisterApplicationVariables.d.ts +1 -1
  213. package/dist/projects/lite/src/startup/RegisterApplications.d.ts +1 -1
  214. package/dist/projects/lite/src/startup/RegisterCaches.d.ts +1 -1
  215. package/dist/projects/lite/src/startup/RegisterDataProviders.d.ts +1 -1
  216. package/dist/projects/lite/src/startup/RegisterDataServices.d.ts +1 -1
  217. package/dist/projects/lite/src/startup/RegisterErrorHandlers.d.ts +1 -1
  218. package/dist/projects/lite/src/startup/RegisterHandlebarsHelpers.d.ts +1 -1
  219. package/dist/projects/lite/src/startup/RegisterLayouts.d.ts +1 -1
  220. package/dist/projects/lite/src/startup/RegisterServices.d.ts +1 -1
  221. package/dist/projects/lite/src/startup/RegisterStore.d.ts +1 -1
  222. package/dist/projects/lite/src/startup/RegisterViewDataExtensions.d.ts +1 -1
  223. package/dist/projects/lite/src/styles/index.d.ts +3 -0
  224. package/dist/projects/player/src/components/chapter-bar-items/chapter-bar-item.d.ts +79 -0
  225. package/dist/projects/player/src/components/chapter-bar-items/chapter-bar-items.d.ts +55 -0
  226. package/dist/projects/player/src/components/chapter-bar-items/chapter-bar-load-progress.d.ts +55 -0
  227. package/dist/projects/player/src/components/chapter-bar-items/chapter-bar-play-progress.d.ts +55 -0
  228. package/dist/projects/player/src/components/chapter-seek-bar/chapter-seek-bar.d.ts +1 -0
  229. package/dist/projects/player/src/components/chapters-button/chapter-menu-item.d.ts +60 -0
  230. package/dist/projects/player/src/components/chapters-button/chapters-button.d.ts +1 -0
  231. package/dist/projects/player/src/components/cog-button/cog-button.d.ts +38 -0
  232. package/dist/projects/player/src/components/collapserator/collapserator.d.ts +4 -0
  233. package/dist/projects/player/src/components/mouse-time-display/mouse-time-display.d.ts +3 -0
  234. package/dist/projects/player/src/components/playback-rate-button/playback-rate-button.d.ts +1 -0
  235. package/dist/projects/player/src/components/progress-control/progress-control.d.ts +1 -0
  236. package/dist/projects/player/src/components/quality-selector/quality-button.d.ts +1 -0
  237. package/dist/projects/player/src/components/quality-selector/quality-menu-item.d.ts +17 -0
  238. package/dist/projects/player/src/components/subs-caps-button/subs-caps-button.d.ts +1 -0
  239. package/dist/projects/player/src/components/thumbnail-display/thumbnail-display.d.ts +66 -0
  240. package/dist/projects/player/src/components/time-tooltip/time-tooltip.d.ts +15 -0
  241. package/dist/projects/player/src/components/time-wrapper/time-wrapper.d.ts +1 -0
  242. package/dist/projects/player/src/interfaces/CollapsibleComponent.d.ts +10 -0
  243. package/dist/projects/player/src/interfaces/models/ApiError.d.ts +4 -0
  244. package/dist/projects/player/src/interfaces/models/PlaybackObject.d.ts +32 -0
  245. package/dist/projects/player/src/players/base-player.d.ts +64 -0
  246. package/dist/projects/player/src/players/create-clip-player.d.ts +16 -0
  247. package/dist/projects/player/src/players/player.d.ts +15 -0
  248. package/dist/projects/player/src/plugins/clip-plugin/clip-plugin.d.ts +50 -0
  249. package/dist/projects/player/src/plugins/create-clip-plugin/components/clip-timepoint-selector/clip-timepoint-selector-handle.d.ts +54 -0
  250. package/dist/projects/player/src/plugins/create-clip-plugin/components/clip-timepoint-selector/clip-timepoint-selector.d.ts +89 -0
  251. package/dist/projects/player/src/plugins/create-clip-plugin/components/create-clip-seek-bar/create-clip-seek-bar.d.ts +14 -0
  252. package/dist/projects/player/src/plugins/create-clip-plugin/create-clip-plugin.d.ts +14 -0
  253. package/dist/projects/player/src/plugins/example-plugin/components/example-button/example-button.d.ts +1 -0
  254. package/dist/projects/player/src/plugins/example-plugin/components/example-react-button/example-react-button.d.ts +1 -0
  255. package/dist/projects/player/src/plugins/example-plugin/example-plugin.d.ts +2 -0
  256. package/dist/projects/player/src/plugins/fullscreen-on-rotate-plugin/fullscreen-on-rotate-plugin.d.ts +1 -0
  257. package/dist/projects/player/src/plugins/open-externally-plugin/components/open-externally-button.d.ts +1 -0
  258. package/dist/projects/player/src/plugins/open-externally-plugin/interfaces/ExternalLinkOptions.d.ts +3 -0
  259. package/dist/projects/player/src/plugins/open-externally-plugin/open-externally-plugin.d.ts +1 -0
  260. package/dist/projects/player/src/plugins/persist-volume-plugin/persist-volume-plugin.d.ts +1 -0
  261. package/dist/projects/player/src/plugins/progress-reporter-plugin/progress-reporter-plugin.d.ts +9 -0
  262. package/dist/projects/player/src/plugins/progressive-files-plugin/ProgressiveFilesPluginOptions.d.ts +4 -0
  263. package/dist/projects/player/src/plugins/progressive-files-plugin/ProgressiveRepresentation.d.ts +10 -0
  264. package/dist/projects/player/src/plugins/progressive-files-plugin/interfaces/Source.d.ts +6 -0
  265. package/dist/projects/player/src/plugins/progressive-files-plugin/progressive-files-plugin.d.ts +38 -0
  266. package/dist/projects/player/src/plugins/touch-controls-plugin/components/touch-controls/touch-controls.d.ts +59 -0
  267. package/dist/projects/player/src/plugins/touch-controls-plugin/touch-controls-plugin.d.ts +1 -0
  268. package/dist/projects/player/src/react/CreateClipPlayer.d.ts +3 -0
  269. package/dist/projects/player/src/react/EmbeddedPlayer.d.ts +7 -0
  270. package/dist/projects/player/src/react/Player.d.ts +8 -0
  271. package/dist/projects/player/src/react/react-component.d.ts +56 -0
  272. package/dist/projects/player/src/services/analytics-service.d.ts +15 -0
  273. package/dist/projects/player/src/utils/ajax-helper.d.ts +6 -0
  274. package/dist/projects/player/src/utils/fn.d.ts +14 -0
  275. package/dist/projects/player/src/utils/formatTime.d.ts +5 -0
  276. package/dist/projects/player/src/utils/hotkeys.d.ts +5 -0
  277. package/dist/projects/player/src/utils/scrollbar-helper.d.ts +6 -0
  278. package/dist/projects/player/src/utils/track-helper.d.ts +7 -0
  279. package/dist/scripts/0-171f181888.chunk.js +1 -0
  280. package/dist/scripts/1-7259e8a8bb.chunk.js +17 -0
  281. package/dist/scripts/10-66b105c2d8.chunk.js +1 -0
  282. package/dist/scripts/13-8c3673e075.chunk.js +1 -0
  283. package/dist/scripts/14-4bc696763a.chunk.js +1 -0
  284. package/dist/scripts/15-043e863dfb.chunk.js +1 -0
  285. package/dist/scripts/16-72a65d16e6.chunk.js +1 -0
  286. package/dist/scripts/17-067ea21652.chunk.js +1 -0
  287. package/dist/scripts/18-b4fa1e52f9.chunk.js +1 -0
  288. package/dist/scripts/19-e3599f7685.chunk.js +1 -0
  289. package/dist/scripts/2-370c1659a0.chunk.js +1 -0
  290. package/dist/scripts/20-0443e17d0b.chunk.js +1 -0
  291. package/dist/scripts/21-036b228cd8.chunk.js +1 -0
  292. package/dist/scripts/22-cfa11ae67b.chunk.js +1 -0
  293. package/dist/scripts/23-11a05b88f7.chunk.js +1 -0
  294. package/dist/scripts/24-c5c0ed3eb9.chunk.js +1 -0
  295. package/dist/scripts/25-83f2683f6f.chunk.js +1 -0
  296. package/dist/scripts/26-8e1ef2b8d3.chunk.js +1 -0
  297. package/dist/scripts/27-9cecba37e9.chunk.js +1 -0
  298. package/dist/scripts/28-4e578edcd5.chunk.js +1 -0
  299. package/dist/scripts/29-685b428459.chunk.js +1 -0
  300. package/dist/scripts/3-ef3041edd1.chunk.js +1 -0
  301. package/dist/scripts/30-e7d4add37c.chunk.js +1 -0
  302. package/dist/scripts/31-407fbd904c.chunk.js +53 -0
  303. package/dist/scripts/32-8434ce7c95.chunk.js +1 -0
  304. package/dist/scripts/33-134c778b95.chunk.js +1 -0
  305. package/dist/scripts/34-cb4f70d168.chunk.js +1 -0
  306. package/dist/scripts/35-4914b2c89e.chunk.js +1 -0
  307. package/dist/scripts/36-d2e13bd4e3.chunk.js +1 -0
  308. package/dist/scripts/37-def89fece7.chunk.js +1 -0
  309. package/dist/scripts/38-68ddb948f5.chunk.js +1 -0
  310. package/dist/scripts/39-d4f47b0420.chunk.js +1 -0
  311. package/dist/scripts/4-d626f7c9ff.chunk.js +1 -0
  312. package/dist/scripts/40-94399cfdc9.chunk.js +1 -0
  313. package/dist/scripts/41-5b0ed56d14.chunk.js +1 -0
  314. package/dist/scripts/42-c06b10dbbf.chunk.js +1 -0
  315. package/dist/scripts/{40-5330a64b5d.chunk.js → 43-4cc515550a.chunk.js} +1 -1
  316. package/dist/scripts/{41-c268bfb400.chunk.js → 44-073e6641ea.chunk.js} +1 -1
  317. package/dist/scripts/45-3a36fa2fd2.chunk.js +1 -0
  318. package/dist/scripts/46-811abfacf5.chunk.js +1 -0
  319. package/dist/scripts/47-cf7e05bfc3.chunk.js +1 -0
  320. package/dist/scripts/48-a49b5ae505.chunk.js +1 -0
  321. package/dist/scripts/49-02fe5d9da0.chunk.js +1 -0
  322. package/dist/scripts/5-3c15aff75b.chunk.js +1 -0
  323. package/dist/scripts/50-2334e58775.chunk.js +1 -0
  324. package/dist/scripts/51-47c28dfdba.chunk.js +1 -0
  325. package/dist/scripts/52-8e3cb40ad6.chunk.js +1 -0
  326. package/dist/scripts/53-46688b7d80.chunk.js +1 -0
  327. package/dist/scripts/54-c68af93be1.chunk.js +1 -0
  328. package/dist/scripts/55-6c7d49f405.chunk.js +1 -0
  329. package/dist/scripts/56-92a06b9806.chunk.js +1 -0
  330. package/dist/scripts/{55-cd780b71b1.chunk.js → 57-16ef135200.chunk.js} +1 -1
  331. package/dist/scripts/58-1478dbceb8.chunk.js +1 -0
  332. package/dist/scripts/{57-5c9b7a7950.chunk.js → 59-577a06a87a.chunk.js} +1 -1
  333. package/dist/scripts/6-68be86ae02.chunk.js +1 -0
  334. package/dist/scripts/{58-636a388c0c.chunk.js → 60-da28194427.chunk.js} +1 -1
  335. package/dist/scripts/{59-cc88e95d77.chunk.js → 61-80f7131d9a.chunk.js} +1 -1
  336. package/dist/scripts/62-3d42c03cc9.chunk.js +1 -0
  337. package/dist/scripts/63-66e69ffe5b.chunk.js +1 -0
  338. package/dist/scripts/64-9ef637a2b1.chunk.js +1 -0
  339. package/dist/scripts/65-cc2384a591.chunk.js +1 -0
  340. package/dist/scripts/{64-1f651e86b3.chunk.js → 66-68028b1816.chunk.js} +1 -1
  341. package/dist/scripts/{65-c3472b12c9.chunk.js → 67-dd69ffa06f.chunk.js} +1 -1
  342. package/dist/scripts/{66-c6406c845f.chunk.js → 68-03022ebbd0.chunk.js} +1 -1
  343. package/dist/scripts/69-e98764fee0.chunk.js +1 -0
  344. package/dist/scripts/7-760462a280.chunk.js +7 -0
  345. package/dist/scripts/70-aedca0b4ab.chunk.js +1 -0
  346. package/dist/scripts/{67-2e0d661c52.chunk.js → 71-2f6c3be43a.chunk.js} +1 -1
  347. package/dist/scripts/8-1fe98a7811.chunk.js +1 -0
  348. package/dist/scripts/9-a9c57eac6a.chunk.js +1 -0
  349. package/dist/scripts/bundle-29922f7591.min.js +31 -0
  350. package/dist/scripts/bundles.json +2 -2
  351. package/dist/scripts/pdf.worker.entry-167ab971d3.min.worker.js +1 -0
  352. package/dist/scripts/polyfills-428e62f641.min.js +1 -0
  353. package/package.json +8 -4
  354. package/typings/libs/Trackers.d.ts +1 -1
  355. package/typings/libs/videojs-contrib-quality-levels.d.ts +29 -0
  356. package/dist/css/11.chunk.css +0 -26
  357. package/dist/css/12.chunk.css +0 -10
  358. package/dist/css/31.chunk.css +0 -4
  359. package/dist/css/35.chunk.css +0 -6
  360. package/dist/css/47.chunk.css +0 -4
  361. package/dist/libs/common/src/backbone/services/ScrollService.d.ts +0 -19
  362. package/dist/libs/shared/src/components/svgs/ClickViewLogo.d.ts +0 -2
  363. package/dist/libs/shared/src/enums/ThumbnailSize.d.ts +0 -6
  364. package/dist/libs/shared/src/services/ConfigDataService.d.ts +0 -13
  365. package/dist/projects/lite/src/apps/user-manager/components/delete-uploaded-student-popup/DeleteUploadedStudentPopup.d.ts +0 -8
  366. package/dist/projects/lite/src/apps/user-manager/components/delete-uploaded-teacher-popup/DeleteUploadedTeacherPopup.d.ts +0 -8
  367. package/dist/projects/lite/src/apps/user-manager/components/edit-student-details/EditStudentDetails.d.ts +0 -12
  368. package/dist/projects/lite/src/apps/user-manager/components/edit-teacher-details/EditTeacherDetails.d.ts +0 -12
  369. package/dist/projects/lite/src/apps/user-manager/components/index.d.ts +0 -5
  370. package/dist/projects/lite/src/apps/user-manager/components/manage-users-list/teachers/ManageTeacherItem.d.ts +0 -9
  371. package/dist/projects/lite/src/apps/user-manager/components/student-review-table/StudentReviewRow.d.ts +0 -11
  372. package/dist/projects/lite/src/apps/user-manager/components/student-review-table/StudentReviewTable.d.ts +0 -9
  373. package/dist/projects/lite/src/apps/user-manager/components/teacher-review-table/TeacherReviewRow.d.ts +0 -11
  374. package/dist/projects/lite/src/apps/user-manager/components/teacher-review-table/TeacherReviewTable.d.ts +0 -9
  375. package/dist/projects/lite/src/apps/user-manager/components/year-level-select/YearLevelSelect.d.ts +0 -9
  376. package/dist/projects/lite/src/apps/user-manager/enums/index.d.ts +0 -1
  377. package/dist/projects/lite/src/apps/user-manager/enums/mocks/MockUserType.d.ts +0 -4
  378. package/dist/projects/lite/src/apps/user-manager/flight-requests/YearLevelRequests.d.ts +0 -4
  379. package/dist/projects/lite/src/apps/user-manager/interfaces/mocks/MockStudent.d.ts +0 -10
  380. package/dist/projects/lite/src/apps/user-manager/interfaces/mocks/MockTeacher.d.ts +0 -8
  381. package/dist/projects/lite/src/apps/user-manager/interfaces/mocks/MockUserRole.d.ts +0 -3
  382. package/dist/projects/lite/src/apps/user-manager/interfaces/mocks/MockYearLevel.d.ts +0 -3
  383. package/dist/projects/lite/src/apps/user-manager/views/create-student/CreateStudentView.d.ts +0 -5
  384. package/dist/projects/lite/src/apps/user-manager/views/create-teacher/CreateTeacherView.d.ts +0 -5
  385. package/dist/projects/lite/src/apps/user-manager/views/edit-student/EditStudentView.d.ts +0 -7
  386. package/dist/projects/lite/src/apps/user-manager/views/edit-teacher/EditTeacherView.d.ts +0 -7
  387. package/dist/projects/lite/src/apps/user-manager/views/remove-user/RemoveUserView.d.ts +0 -8
  388. package/dist/projects/lite/src/apps/user-manager/views/school-teacher-manager/empty-state/SchoolTeacherManagerEmptyState.d.ts +0 -2
  389. package/dist/projects/lite/src/apps/user-manager/views/student-upload-review/StudentUploadReviewView.d.ts +0 -5
  390. package/dist/projects/lite/src/apps/user-manager/views/teacher-upload-review/TeacherUploadReviewView.d.ts +0 -5
  391. package/dist/projects/lite/src/shared/components/web-player/WebPlayer.d.ts +0 -9
  392. package/dist/scripts/0-6bc17823fd.chunk.js +0 -1
  393. package/dist/scripts/1-b20a2dd250.chunk.js +0 -17
  394. package/dist/scripts/11-f67b6c11a7.chunk.js +0 -1
  395. package/dist/scripts/12-c3f4ba1831.chunk.js +0 -1
  396. package/dist/scripts/13-d44a1e6204.chunk.js +0 -1
  397. package/dist/scripts/14-bbf4ab8ab9.chunk.js +0 -1
  398. package/dist/scripts/15-bdef10f60a.chunk.js +0 -1
  399. package/dist/scripts/16-691b35dc8c.chunk.js +0 -1
  400. package/dist/scripts/17-4e3899d62b.chunk.js +0 -1
  401. package/dist/scripts/18-6afc6b44f3.chunk.js +0 -1
  402. package/dist/scripts/19-7f2d561cf2.chunk.js +0 -1
  403. package/dist/scripts/2-a578d78153.chunk.js +0 -1
  404. package/dist/scripts/20-fe4b732b3b.chunk.js +0 -1
  405. package/dist/scripts/21-850a6abb96.chunk.js +0 -1
  406. package/dist/scripts/22-be37ecc01d.chunk.js +0 -1
  407. package/dist/scripts/23-9ace914ea0.chunk.js +0 -1
  408. package/dist/scripts/24-007409325f.chunk.js +0 -1
  409. package/dist/scripts/25-9d70dbe4ec.chunk.js +0 -1
  410. package/dist/scripts/26-e280e72009.chunk.js +0 -1
  411. package/dist/scripts/27-c8f5fd76cb.chunk.js +0 -1
  412. package/dist/scripts/28-015dd3e4d4.chunk.js +0 -1
  413. package/dist/scripts/29-91d67f4584.chunk.js +0 -1
  414. package/dist/scripts/3-aa01c4304a.chunk.js +0 -7
  415. package/dist/scripts/30-f16ad621da.chunk.js +0 -1
  416. package/dist/scripts/31-3f405d0372.chunk.js +0 -1
  417. package/dist/scripts/32-7a75602cc0.chunk.js +0 -1
  418. package/dist/scripts/33-8d70bde32b.chunk.js +0 -1
  419. package/dist/scripts/34-3f095c24f3.chunk.js +0 -1
  420. package/dist/scripts/35-58407394d5.chunk.js +0 -1
  421. package/dist/scripts/36-552740daf0.chunk.js +0 -1
  422. package/dist/scripts/37-d79eda4acb.chunk.js +0 -1
  423. package/dist/scripts/38-a6c89ffb8f.chunk.js +0 -1
  424. package/dist/scripts/39-4a615de1ce.chunk.js +0 -1
  425. package/dist/scripts/4-d296a64d17.chunk.js +0 -1
  426. package/dist/scripts/42-0e2ebfa151.chunk.js +0 -1
  427. package/dist/scripts/43-e1d3a1f0e5.chunk.js +0 -1
  428. package/dist/scripts/44-8a44b614a8.chunk.js +0 -1
  429. package/dist/scripts/45-9418f81185.chunk.js +0 -1
  430. package/dist/scripts/46-4ab8038e30.chunk.js +0 -1
  431. package/dist/scripts/47-b6a95ef8b0.chunk.js +0 -1
  432. package/dist/scripts/48-e4150407ee.chunk.js +0 -1
  433. package/dist/scripts/49-8fd6a45338.chunk.js +0 -1
  434. package/dist/scripts/5-3842bd1f2d.chunk.js +0 -1
  435. package/dist/scripts/50-ab1c16848b.chunk.js +0 -1
  436. package/dist/scripts/51-7ce29a119d.chunk.js +0 -1
  437. package/dist/scripts/52-12e0feca43.chunk.js +0 -1
  438. package/dist/scripts/53-a5250a2064.chunk.js +0 -1
  439. package/dist/scripts/54-ff24fa0c07.chunk.js +0 -1
  440. package/dist/scripts/56-687e915081.chunk.js +0 -1
  441. package/dist/scripts/6-7bee1cd6c9.chunk.js +0 -1
  442. package/dist/scripts/60-1672f666ce.chunk.js +0 -1
  443. package/dist/scripts/61-b2bdee9283.chunk.js +0 -1
  444. package/dist/scripts/62-d7cbe9da67.chunk.js +0 -1
  445. package/dist/scripts/63-2126404b54.chunk.js +0 -1
  446. package/dist/scripts/7-e39bfefa23.chunk.js +0 -1
  447. package/dist/scripts/8-244738cbaf.chunk.js +0 -1
  448. package/dist/scripts/bundle-09bb583faa.min.js +0 -15
  449. package/dist/scripts/polyfills-46d3c7a509.min.js +0 -1
  450. /package/dist/css/{36.chunk.css → 39.chunk.css} +0 -0
  451. /package/dist/css/{51.chunk.css → 56.chunk.css} +0 -0
  452. /package/dist/css/{55.chunk.css → 57.chunk.css} +0 -0
@@ -0,0 +1,7 @@
1
+ (window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[]).push([[7],{1011:function(e,t,r){"use strict";var n,a=r(0),i=r(43),s=r(70),o=r(176),u=r(990),c=r(57),l=function(e){var t=e.breadcrumb,r=t.label,n=t.appLink,i=t.active;return a.createElement("li",{className:"breadcrumb-item".concat(i?" active":"")},i?a.createElement("strong",null,r):a.createElement(c.a,{appLink:n},r))},f=function(e){var t=e.breadcrumbs;return a.createElement("ol",{className:"breadcrumb m-0 p-0"},t.map((function(e,t){return a.createElement(l,{key:t,breadcrumb:e})})))};function d(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||h(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,a=!1,i=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(e){a=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(a)throw i}}return r}(e,t)||h(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function g(e,t,r){return{label:e.name,appLink:t(e),active:r}}function y(e){var t=function(e,t){var r,n=e.currentItem,u=e.getItemAppLink,c=e.getParent,l=e.rootItem,f=e.data,h=e.subview,p=m(Object(a.useState)([]),2),y=p[0],v=p[1],b=null===(r=f)||void 0===r?void 0:r.map((function(e){var t;return null===(t=e)||void 0===t?void 0:t.name})).join("-");a.useEffect((function(){if(!t&&!s.a.isEmpty(f)){var e=f.map((function(e,t){return g(e,u,t+1===f.length)}));l&&e.unshift(l),v(e)}}),[b]),a.useEffect((function(){if(t&&i.a.isFunction(c)){var e=[g(n,u,!0)];for(n=c(n);n;)e.unshift(g(n,u)),n=c(n);return l&&e.unshift(l),v(e)}}),[n,c,u,l]);var _=a.useRef({label:h,appLink:null,active:!0}).current;if(h){y.includes(_)||v([].concat(d(y),[_]));var E=y.filter((function(e){return e.active&&e!==_}));E.length&&(o.a.first(E).active=!1)}return y}(e,e.type===n.Dynamic);return a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement(f,{breadcrumbs:t}))}r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return y})),r.d(t,"c",(function(){return b})),function(e){e[e.Static=0]="Static",e[e.Dynamic=1]="Dynamic"}(n||(n={}));var v=u.a.getPartialLoadingItems({numItems:3}),b=function(){return a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},v.map((function(e,t){var r=e.width;return a.createElement("li",{key:t,className:"breadcrumb-item"},a.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:r},dangerouslySetInnerHTML:{__html:"&nbsp"}}))}))))}},1057:function(e,t,r){"use strict";var n;r.d(t,"a",(function(){return n})),function(e){e[e.Disabled=0]="Disabled",e[e.Active=1]="Active",e[e.Inactive=2]="Inactive"}(n||(n={}))},1104:function(e,t,r){"use strict";r.d(t,"a",(function(){return S}));var n=r(0),a=r.n(n),i=r(1372),s=r(2),o=r(8),u=r(118),c=r(119),l=r(18),f=r(177),d=r(90),m=r(928),h=r(204),p=r(59),g=r(6),y=r(100),v=r(13);function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,a=!1,i=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(e){a=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(a)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var E="userManager.bulkUploadFileSelect";function S(e){var t=a.a.useRef(null),r=a.a.useCallback((function(e){e&&(t.current=e)}),[]),n=y.a.BULK_USER_UPLOAD,_=b(Object(c.a)(n),2)[1],S=Object(m.a)(),k=function(t,r){var n=b(t,6),a=n[0],i=n[1],s=n[2],o=n[3],u=n[4],c=n[5];return a||i||o||u||c||s?{lookupId:r.toString(),firstName:a,surname:i,yearGroup:s,email:o,username:u,password:c,userType:p.a.Learner,customerId:e.currentUser.customerId,isPrimaryContact:!1,roleId:h.a.Student,masterRole:h.b.User,requirePasswordChange:!0}:null},w=function(t,r){var n=b(t,5),a=n[0],i=n[1],s=n[2],o=n[3],u=n[4];return a||i||s||o||u?{lookupId:r.toString(),firstName:a,surname:i,yearGroup:"Staff",email:s,username:o,password:u,userType:p.a.Staff,customerId:e.currentUser.customerId,isPrimaryContact:!1,roleId:h.a.Staff,masterRole:h.b.User,requirePasswordChange:!0}:null};return a.a.createElement(a.a.Fragment,null,a.a.createElement(f.a,{svgName:l.b.Upload,className:"btn btn-secondary",onClick:function(){t.current.value=null,t.current.click(null)}},a.a.createElement(d.b,{namespace:E,phrase:e.userType===p.a.Learner?"buttonStudent":"buttonStaff"})),a.a.createElement("input",{type:"file",autoComplete:"off",className:"file-select d-none",accept:"text/csv",ref:r,onChange:function(t){return r=t.target.files[0],void Object(i.parse)(r,{complete:function(t){var r=t.data;r.length&&1!==r.length?(r.shift(),_(r.map(e.userType===p.a.Learner?k:w).filter(Boolean)),u.a.set(y.a.BULK_USER_UPLOAD,e.userType),s.a.AppLinkHelper.trigger({application:g.a.USER_MANAGER,action:v.a.UserManager.USER_UPLOAD_REVIEW})):S.warning(o.a.getPhrase(E,"emptyCsvWarning"))}});var r}}))}},1169:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(0),a=r.n(n);function i(){return a.a.createElement("li",{className:"w-100 d-flex align-items-center py-2"},a.a.createElement("div",{className:"mx-4 partial-loading-background",style:{width:"21px",height:"21px"}}),a.a.createElement("div",{className:"d-flex flex-column justify-content-center w-100"},a.a.createElement("div",{className:"pb-1"},a.a.createElement("div",{className:"partial-loading-background mr-1 align-middle d-inline-block",style:{width:"180px",height:"28px"}})),a.a.createElement("div",{className:"d-flex"},a.a.createElement("div",{className:"w-50"},a.a.createElement("div",{className:"partial-loading-background align-middle d-inline-block",style:{width:"250px",height:"21px"}})),a.a.createElement("div",{className:"d-flex w-50 pl-1"},a.a.createElement("div",{className:"w-50"},a.a.createElement("div",{className:"partial-loading-background",style:{width:"100px",height:"21px"}})),a.a.createElement("div",{className:"w-50"},a.a.createElement("div",{className:"partial-loading-background",style:{width:"100px",height:"21px"}}))))))}function s(){return a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"d-flex justify-content-between align-items-center mb-3"},a.a.createElement("div",{className:"mx-4 partial-loading-background",style:{width:"21px",height:"21px"}}),a.a.createElement("div",{className:"d-flex align-items-center"},a.a.createElement("div",{className:"partial-loading-background",style:{width:"140px",height:"35px"}}),a.a.createElement("div",{className:"partial-loading-background ml-2",style:{width:"150px",height:"35px"}}))),a.a.createElement("ul",{className:"m-0 list-unstyled striped-list"},Array(20).fill(null).map((function(e,t){return a.a.createElement(i,{key:t})}))))}},1170:function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var n=r(0),a=r.n(n),i=r(43),s=r(70),o=r(2),u=r(67),c=r(18),l=r(1374),f=r.n(l);function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,a=!1,i=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(e){a=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(a)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function p(e){var t=m(a.a.useState(""),2),r=t[0],n=t[1];a.a.useEffect((function(){var t=o.a.LocationUtils.DeserializeQueryParams(o.a.LocationUtils.GetCurrentQueryString().substring(1));t&&"string"!=typeof t&&t[e.queryParamName]&&n(t[e.queryParamName])}),[]);var l=a.a.useCallback(i.a.debounce((function(t){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=o.a.LocationUtils.DeserializeQueryParams(o.a.LocationUtils.GetCurrentQueryString().substring(1)),n=t?s.a.omit(r,[e.queryParamName,"cursor"]):{},a=Object.assign(d({},e.queryParamName,t),n);a[e.queryParamName]||delete a[e.queryParamName];o.a.AppLinkHelper.trigger(Object.assign(Object.assign({},e.searchAppLink),{params:a}))}(t)}),e.debounceTime),[]);return a.a.createElement("div",{className:"position-relative w-100"},a.a.createElement("input",{name:e.name,type:"text",className:"form-control py-1 px-2 w-100 ".concat(e.className||""),id:e.id,autoComplete:"off",placeholder:e.placeholder,"aria-label":"Search",onChange:function(e){n(e.currentTarget.value),l(e.currentTarget.value)},value:r}),a.a.createElement(u.a,{svgName:c.b.Search,className:"".concat(f.a.searchSvg," svg-container cursor-pointer text-secondary")}))}p.defaultProps={debounceTime:300,queryParamName:"query"}},1173:function(e,t,r){"use strict";var n=r(0),a=r.n(n),i=r(2),s=r(119),o=r(46),u=r(4),c=r(969),l=r(67),f=r(18),d=r(90),m=r(177),h=r(930),p=r(59),g=r(1012),y=r(6),v=r(13),b=r(100),_=r(1104),E=r(8),S=r(932),k=r(1057),w=r(1373),A=r.n(w);function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,a=!1,i=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(e){a=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(a)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return C(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var O=E.a.encloseNamespace("userManager.manageStudents");function R(e){var t=e.user,r=e.isChecked,n=e.onToggleCheckbox,l=x(Object(s.a)(b.a.BULK_REMOVE_USERS),2)[1],f=t.status===k.a.Active,m=[{label:O("edit"),onClick:function(){o.a.logUserAction({id:t.id},{actionType:u.n.Edit,entity:u.d.User,workflowPhase:u.o.Start,location:u.j.StudentManagerListItem}),i.a.AppLinkHelper.trigger({application:y.a.USER_MANAGER,action:v.a.UserManager.EDIT_USER,args:[t.id],params:{userType:p.a.Learner}})}},{label:O(f?"deactivate":"activate"),onClick:function(){o.a.logUserAction({id:t.id},{actionType:u.n.Activate,entity:u.d.User,descriptor:f?u.m.Off:u.m.On,workflowPhase:u.o.Start,location:u.j.StudentManagerListItem}),i.a.AppLinkHelper.trigger({application:y.a.USER_MANAGER,action:v.a.UserManager.TOGGLE_USER_STATUS,args:[e.user.id]})}},{label:O("remove"),onClick:function(){o.a.logUserAction({id:t.id},{actionType:u.n.Delete,entity:u.d.User,workflowPhase:u.o.Start,location:u.j.StudentManagerListItem,descriptor:u.k.Single}),l([{userId:"string"==typeof e.user.id?+e.user.id:e.user.id,username:e.user.username}]),i.a.AppLinkHelper.trigger({application:y.a.USER_MANAGER,action:v.a.UserManager.BULK_REMOVE_USERS,params:{userType:p.a.Learner}})},className:"text-danger"}];return a.a.createElement("li",{className:"d-flex align-items-center py-2"},a.a.createElement("div",{className:"px-4"},a.a.createElement(c.a,{id:t.id,name:t.id,checked:r,onChange:n})),a.a.createElement("div",{className:"d-flex flex-column justify-content-center w-100"},a.a.createElement("div",{className:"pb-1"},a.a.createElement("h2",{className:"h5 m-0 mr-1 d-inline-block align-middle"},t.name," ",t.surname||""),t.username&&a.a.createElement("p",{className:"m-0 d-inline-block align-middle"},"(",t.username,")")),a.a.createElement("div",{className:"d-flex"},a.a.createElement("p",{className:"m-0 w-50 text-truncate"},t.email),a.a.createElement("div",{className:"d-flex w-50 justify-content-center"},t.yearGroup&&a.a.createElement(a.a.Fragment,null,a.a.createElement(d.b,{namespace:"userManager.manageStudents",phrase:"yearGroup"}),a.a.createElement("span",{className:"rounded-pill px-2 ml-2 ".concat(A.a.yearGroup)},t.yearGroup))))),a.a.createElement(S.a,{actions:m,className:"pr-4",actionsDropdownClassName:"btn"}))}function U(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,a=!1,i=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(e){a=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(a)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return T(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return T(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var N=E.a.encloseNamespace("userManager.manageStaff");function I(e){var t=e.user,r=e.isChecked,n=e.onToggleCheckbox,l=U(Object(s.a)(b.a.BULK_REMOVE_USERS),2)[1],f=t.status===k.a.Active,d=[{label:N("edit"),onClick:function(){o.a.logUserAction({id:t.id},{actionType:u.n.Edit,entity:u.d.User,workflowPhase:u.o.Start,location:u.j.StaffManagerListItem}),i.a.AppLinkHelper.trigger({application:y.a.USER_MANAGER,action:v.a.UserManager.EDIT_USER,args:[t.id],params:{userType:p.a.Staff}})}},{label:N(f?"deactivate":"activate"),onClick:function(){o.a.logUserAction({id:t.id},{actionType:u.n.Activate,entity:u.d.User,descriptor:f?u.m.Off:u.m.On,workflowPhase:u.o.Start,location:u.j.StaffManagerListItem}),i.a.AppLinkHelper.trigger({application:y.a.USER_MANAGER,action:v.a.UserManager.TOGGLE_USER_STATUS,args:[e.user.id]})}},{label:N("remove"),onClick:function(){o.a.logUserAction({id:t.id},{actionType:u.n.Delete,entity:u.d.User,workflowPhase:u.o.Start,location:u.j.StaffManagerListItem,descriptor:u.k.Single}),l([{userId:"string"==typeof e.user.id?+e.user.id:e.user.id,username:e.user.username}]),i.a.AppLinkHelper.trigger({application:y.a.USER_MANAGER,action:v.a.UserManager.BULK_REMOVE_USERS,params:{userType:p.a.Staff}})},className:"text-danger"}];return a.a.createElement("li",{className:"d-flex align-items-center py-2"},a.a.createElement("div",{className:"px-4"},a.a.createElement(c.a,{id:t.id,name:t.id,checked:r,onChange:n})),a.a.createElement("div",{className:"d-flex flex-column justify-content-center w-100"},a.a.createElement("div",{className:"pb-1"},a.a.createElement("h2",{className:"h5 m-0 mr-1 d-inline-block align-middle"},t.name," ",t.surname||""),t.username&&a.a.createElement("p",{className:"m-0 d-inline-block align-middle"},"(",t.username,")")),a.a.createElement("div",{className:"d-flex"},a.a.createElement("p",{className:"m-0 w-50 text-truncate"},t.email),a.a.createElement("p",{className:"mb-0 w-50 pl-1 text-center"},t.yearGroup))),a.a.createElement(S.a,{actions:d,className:"pr-4",actionsDropdownClassName:"btn"}))}function L(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,a=!1,i=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(e){a=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(a)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return j(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return j(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,"a",(function(){return M}));function M(e){var t=Object(g.a)(e.users),r=t.onToggleBulk,a=t.onToggleItem,E=t.getSelected,S=t.isChecked,k=t.bulkChecked,w=L(Object(s.a)(b.a.BULK_REMOVE_USERS),2)[1];var A=e.userType===p.a.Learner,x=A?R:I,C=A?"userManager.manageStudents":"userManager.manageStaff";return n.createElement(n.Fragment,null,n.createElement("div",{className:"d-flex align-items-center pb-3"},n.createElement("div",{className:"px-4"},n.createElement(c.a,{id:"user-manager",name:"user-manager",checked:k,onChange:r})),n.createElement("div",{className:"mr-auto"},!!E().length&&n.createElement(h.a,{onClick:function(){var t,r=E();(null===(t=r)||void 0===t?void 0:t.length)&&(w(r.map((function(t){var r,n;return{userId:"string"==typeof t?+t:t,username:(n=null===(r=e.users.find((function(e){return e.id.toString()===t.toString()})))||void 0===r?void 0:r.username,null!=n?n:"")}}))),o.a.logUserAction({count:r.length},o.a.mergeOptions(e.analyticsOptions,{actionType:u.n.Delete,entity:u.d.User,workflowPhase:u.o.Start,descriptor:1===r.length?u.k.Single:u.k.Bulk})),i.a.AppLinkHelper.trigger({application:y.a.USER_MANAGER,action:v.a.UserManager.BULK_REMOVE_USERS,params:{userType:e.userType}}))},className:"cursor-pointer"},n.createElement(l.a,{svgName:f.b.Delete}))),n.createElement(_.a,{userType:e.userType,currentUser:e.currentUser}),n.createElement(m.a,{className:"btn btn-secondary ml-2",svgName:f.b.Plus,onClick:function(){var t;o.a.logUserAction({},o.a.mergeOptions(e.analyticsOptions,{workflowPhase:u.o.Start,actionType:u.n.Create,entity:u.d.User})),i.a.AppLinkHelper.trigger((t=e.userType,{application:y.a.USER_MANAGER,action:v.a.UserManager.CREATE_USER,params:{userType:t}}))}},n.createElement(d.b,{namespace:C,phrase:"addNew"}))),n.createElement("ul",{className:"m-0 list-unstyled striped-list"},e.users.map((function(e){return n.createElement(x,{key:e.id,user:e,onToggleCheckbox:function(){return a(e.id.toString())},isChecked:S(e.id.toString())})}))))}},1372:function(e,t,r){var n,a,i;
2
+ /* @license
3
+ Papa Parse
4
+ v5.2.0
5
+ https://github.com/mholt/PapaParse
6
+ License: MIT
7
+ */a=[],void 0===(i="function"==typeof(n=function e(){"use strict";var t="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},r=!t.document&&!!t.postMessage,n=r&&/blob:/i.test((t.location||{}).protocol),a={},i=0,s={parse:function(r,n){var o=(n=n||{}).dynamicTyping||!1;if(E(o)&&(n.dynamicTypingFunction=o,o={}),n.dynamicTyping=o,n.transform=!!E(n.transform)&&n.transform,n.worker&&s.WORKERS_SUPPORTED){var u=function(){if(!s.WORKERS_SUPPORTED)return!1;var r,n,o=(r=t.URL||t.webkitURL||null,n=e.toString(),s.BLOB_URL||(s.BLOB_URL=r.createObjectURL(new Blob(["(",n,")();"],{type:"text/javascript"})))),u=new t.Worker(o);return u.onmessage=g,u.id=i++,a[u.id]=u}();return u.userStep=n.step,u.userChunk=n.chunk,u.userComplete=n.complete,u.userError=n.error,n.step=E(n.step),n.chunk=E(n.chunk),n.complete=E(n.complete),n.error=E(n.error),delete n.worker,void u.postMessage({input:r,config:n,workerId:u.id})}var m=null;return s.NODE_STREAM_INPUT,"string"==typeof r?m=n.download?new c(n):new f(n):!0===r.readable&&E(r.read)&&E(r.on)?m=new d(n):(t.File&&r instanceof File||r instanceof Object)&&(m=new l(n)),m.stream(r)},unparse:function(e,t){var r=!1,n=!0,a=",",i="\r\n",o='"',u=o+o,c=!1,l=null;!function(){if("object"==typeof t){if("string"!=typeof t.delimiter||s.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(a=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(r=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(c=t.skipEmptyLines),"string"==typeof t.newline&&(i=t.newline),"string"==typeof t.quoteChar&&(o=t.quoteChar),"boolean"==typeof t.header&&(n=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");l=t.columns}void 0!==t.escapeChar&&(u=t.escapeChar+o)}}();var f=new RegExp(h(o),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return m(null,e,c);if("object"==typeof e[0])return m(l||d(e[0]),e,c)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:d(e.data[0])),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),m(e.fields||[],e.data||[],c);throw new Error("Unable to serialize unrecognized input");function d(e){if("object"!=typeof e)return[];var t=[];for(var r in e)t.push(r);return t}function m(e,t,r){var s="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var o=Array.isArray(e)&&0<e.length,u=!Array.isArray(t[0]);if(o&&n){for(var c=0;c<e.length;c++)0<c&&(s+=a),s+=p(e[c],c);0<t.length&&(s+=i)}for(var l=0;l<t.length;l++){var f=o?e.length:t[l].length,d=!1,m=o?0===Object.keys(t[l]).length:0===t[l].length;if(r&&!o&&(d="greedy"===r?""===t[l].join("").trim():1===t[l].length&&0===t[l][0].length),"greedy"===r&&o){for(var h=[],g=0;g<f;g++){var y=u?e[g]:g;h.push(t[l][y])}d=""===h.join("").trim()}if(!d){for(var v=0;v<f;v++){0<v&&!m&&(s+=a);var b=o&&u?e[v]:v;s+=p(t[l][b],v)}l<t.length-1&&(!r||0<f&&!m)&&(s+=i)}}return s}function p(e,t){if(null==e)return"";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);var n=e.toString().replace(f,u);return"boolean"==typeof r&&r||"function"==typeof r&&r(e,t)||Array.isArray(r)&&r[t]||function(e,t){for(var r=0;r<t.length;r++)if(-1<e.indexOf(t[r]))return!0;return!1}(n,s.BAD_DELIMITERS)||-1<n.indexOf(a)||" "===n.charAt(0)||" "===n.charAt(n.length-1)?o+n+o:n}}};if(s.RECORD_SEP=String.fromCharCode(30),s.UNIT_SEP=String.fromCharCode(31),s.BYTE_ORDER_MARK="\ufeff",s.BAD_DELIMITERS=["\r","\n",'"',s.BYTE_ORDER_MARK],s.WORKERS_SUPPORTED=!r&&!!t.Worker,s.NODE_STREAM_INPUT=1,s.LocalChunkSize=10485760,s.RemoteChunkSize=5242880,s.DefaultDelimiter=",",s.Parser=p,s.ParserHandle=m,s.NetworkStreamer=c,s.FileStreamer=l,s.StringStreamer=f,s.ReadableStreamStreamer=d,t.jQuery){var o=t.jQuery;o.fn.parse=function(e){var r=e.config||{},n=[];return this.each((function(e){if("INPUT"!==o(this).prop("tagName").toUpperCase()||"file"!==o(this).attr("type").toLowerCase()||!t.FileReader||!this.files||0===this.files.length)return!0;for(var a=0;a<this.files.length;a++)n.push({file:this.files[a],inputElem:this,instanceConfig:o.extend({},r)})})),a(),this;function a(){if(0!==n.length){var t,r,a,u=n[0];if(E(e.before)){var c=e.before(u.file,u.inputElem);if("object"==typeof c){if("abort"===c.action)return t=u.file,r=u.inputElem,a=c.reason,void(E(e.error)&&e.error({name:"AbortError"},t,r,a));if("skip"===c.action)return void i();"object"==typeof c.config&&(u.instanceConfig=o.extend(u.instanceConfig,c.config))}else if("skip"===c)return void i()}var l=u.instanceConfig.complete;u.instanceConfig.complete=function(e){E(l)&&l(e,u.file,u.inputElem),i()},s.parse(u.file,u.instanceConfig)}else E(e.complete)&&e.complete()}function i(){n.splice(0,1),a()}}}function u(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=b(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new m(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,r){if(this.isFirstChunk&&E(this._config.beforeFirstChunk)){var a=this._config.beforeFirstChunk(e);void 0!==a&&(e=a)}this.isFirstChunk=!1,this._halted=!1;var i=this._partialLine+e;this._partialLine="";var o=this._handle.parse(i,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var u=o.meta.cursor;this._finished||(this._partialLine=i.substring(u-this._baseIndex),this._baseIndex=u),o&&o.data&&(this._rowCount+=o.data.length);var c=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(n)t.postMessage({results:o,workerId:s.WORKER_ID,finished:c});else if(E(this._config.chunk)&&!r){if(this._config.chunk(o,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);o=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(o.data),this._completeResults.errors=this._completeResults.errors.concat(o.errors),this._completeResults.meta=o.meta),this._completed||!c||!E(this._config.complete)||o&&o.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),c||o&&o.meta.paused||this._nextChunk(),o}this._halted=!0},this._sendError=function(e){E(this._config.error)?this._config.error(e):n&&this._config.error&&t.postMessage({workerId:s.WORKER_ID,error:e,finished:!1})}}function c(e){var t;(e=e||{}).chunkSize||(e.chunkSize=s.RemoteChunkSize),u.call(this,e),this._nextChunk=r?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),r||(t.onload=_(this._chunkLoaded,this),t.onerror=_(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!r),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var n in e)t.setRequestHeader(n,e[n])}if(this._config.chunkSize){var a=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+a)}try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}r&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:t.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substring(t.lastIndexOf("/")+1))}(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var r=t.statusText||e;this._sendError(new Error(r))}}function l(e){var t,r;(e=e||{}).chunkSize||(e.chunkSize=s.LocalChunkSize),u.call(this,e);var n="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,r=e.slice||e.webkitSlice||e.mozSlice,n?((t=new FileReader).onload=_(this._chunkLoaded,this),t.onerror=_(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var a=Math.min(this._start+this._config.chunkSize,this._input.size);e=r.call(e,this._start,a)}var i=t.readAsText(e,this._config.encoding);n||this._chunkLoaded({target:{result:i}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function f(e){var t;u.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,r=this._config.chunkSize;return r?(e=t.substring(0,r),t=t.substring(r)):(e=t,t=""),this._finished=!t,this.parseChunk(e)}}}function d(e){u.call(this,e=e||{});var t=[],r=!0,n=!1;this.pause=function(){u.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){u.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){n&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):r=!0},this._streamData=_((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=_((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=_((function(){this._streamCleanUp(),n=!0,this._streamData("")}),this),this._streamCleanUp=_((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function m(e){var t,r,n,a=Math.pow(2,53),i=-a,o=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)(e[-+]?\d+)?\s*$/,u=/(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))/,c=this,l=0,f=0,d=!1,m=!1,g=[],y={data:[],errors:[],meta:{}};if(E(e.step)){var v=e.step;e.step=function(t){if(y=t,k())S();else{if(S(),0===y.data.length)return;l+=t.data.length,e.preview&&l>e.preview?r.abort():(y.data=y.data[0],v(y,c))}}}function _(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function S(){if(y&&n&&(A("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+s.DefaultDelimiter+"'"),n=!1),e.skipEmptyLines)for(var t=0;t<y.data.length;t++)_(y.data[t])&&y.data.splice(t--,1);return k()&&function(){if(y)if(Array.isArray(y.data[0])){for(var t=0;k()&&t<y.data.length;t++)y.data[t].forEach(r);y.data.splice(0,1)}else y.data.forEach(r);function r(t){E(e.transformHeader)&&(t=e.transformHeader(t)),g.push(t)}}(),function(){if(!y||!e.header&&!e.dynamicTyping&&!e.transform)return y;function t(t,r){var n,a=e.header?{}:[];for(n=0;n<t.length;n++){var i=n,s=t[n];e.header&&(i=n>=g.length?"__parsed_extra":g[n]),e.transform&&(s=e.transform(s,i)),s=w(i,s),"__parsed_extra"===i?(a[i]=a[i]||[],a[i].push(s)):a[i]=s}return e.header&&(n>g.length?A("FieldMismatch","TooManyFields","Too many fields: expected "+g.length+" fields but parsed "+n,f+r):n<g.length&&A("FieldMismatch","TooFewFields","Too few fields: expected "+g.length+" fields but parsed "+n,f+r)),a}var r=1;return!y.data.length||Array.isArray(y.data[0])?(y.data=y.data.map(t),r=y.data.length):y.data=t(y.data,0),e.header&&y.meta&&(y.meta.fields=g),f+=r,y}()}function k(){return e.header&&0===g.length}function w(t,r){return n=t,e.dynamicTypingFunction&&void 0===e.dynamicTyping[n]&&(e.dynamicTyping[n]=e.dynamicTypingFunction(n)),!0===(e.dynamicTyping[n]||e.dynamicTyping)?"true"===r||"TRUE"===r||"false"!==r&&"FALSE"!==r&&(function(e){if(o.test(e)){var t=parseFloat(e);if(i<t&&t<a)return!0}return!1}(r)?parseFloat(r):u.test(r)?new Date(r):""===r?null:r):r;var n}function A(e,t,r,n){var a={type:e,code:t,message:r};void 0!==n&&(a.row=n),y.errors.push(a)}this.parse=function(a,i,o){var u=e.quoteChar||'"';if(e.newline||(e.newline=function(e,t){e=e.substring(0,1048576);var r=new RegExp(h(t)+"([^]*?)"+h(t),"gm"),n=(e=e.replace(r,"")).split("\r"),a=e.split("\n"),i=1<a.length&&a[0].length<n[0].length;if(1===n.length||i)return"\n";for(var s=0,o=0;o<n.length;o++)"\n"===n[o][0]&&s++;return s>=n.length/2?"\r\n":"\r"}(a,u)),n=!1,e.delimiter)E(e.delimiter)&&(e.delimiter=e.delimiter(a),y.meta.delimiter=e.delimiter);else{var c=function(t,r,n,a,i){var o,u,c,l;i=i||[",","\t","|",";",s.RECORD_SEP,s.UNIT_SEP];for(var f=0;f<i.length;f++){var d=i[f],m=0,h=0,g=0;c=void 0;for(var y=new p({comments:a,delimiter:d,newline:r,preview:10}).parse(t),v=0;v<y.data.length;v++)if(n&&_(y.data[v]))g++;else{var b=y.data[v].length;h+=b,void 0!==c?0<b&&(m+=Math.abs(b-c),c=b):c=b}0<y.data.length&&(h/=y.data.length-g),(void 0===u||m<=u)&&(void 0===l||l<h)&&1.99<h&&(u=m,o=d,l=h)}return{successful:!!(e.delimiter=o),bestDelimiter:o}}(a,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess);c.successful?e.delimiter=c.bestDelimiter:(n=!0,e.delimiter=s.DefaultDelimiter),y.meta.delimiter=e.delimiter}var l=b(e);return e.preview&&e.header&&l.preview++,t=a,r=new p(l),y=r.parse(t,i,o),S(),d?{meta:{paused:!0}}:y||{meta:{paused:!1}}},this.paused=function(){return d},this.pause=function(){d=!0,r.abort(),t=E(e.chunk)?"":t.substring(r.getCharIndex())},this.resume=function(){c.streamer._halted?(d=!1,c.streamer.parseChunk(t,!0)):setTimeout(c.resume,3)},this.aborted=function(){return m},this.abort=function(){m=!0,r.abort(),y.meta.aborted=!0,E(e.complete)&&e.complete(y),t=""}}function h(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function p(e){var t,r=(e=e||{}).delimiter,n=e.newline,a=e.comments,i=e.step,o=e.preview,u=e.fastMode,c=t=void 0===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(c=e.escapeChar),("string"!=typeof r||-1<s.BAD_DELIMITERS.indexOf(r))&&(r=","),a===r)throw new Error("Comment character same as delimiter");!0===a?a="#":("string"!=typeof a||-1<s.BAD_DELIMITERS.indexOf(a))&&(a=!1),"\n"!==n&&"\r"!==n&&"\r\n"!==n&&(n="\n");var l=0,f=!1;this.parse=function(e,s,d){if("string"!=typeof e)throw new Error("Input must be a string");var m=e.length,p=r.length,g=n.length,y=a.length,v=E(i),b=[],_=[],S=[],k=l=0;if(!e)return D();if(u||!1!==u&&-1===e.indexOf(t)){for(var w=e.split(n),A=0;A<w.length;A++){if(S=w[A],l+=S.length,A!==w.length-1)l+=n.length;else if(d)return D();if(!a||S.substring(0,y)!==a){if(v){if(b=[],I(S.split(r)),P(),f)return D()}else I(S.split(r));if(o&&o<=A)return b=b.slice(0,o),D(!0)}}return D()}for(var x=e.indexOf(r,l),C=e.indexOf(n,l),O=new RegExp(h(c)+h(t),"g"),R=e.indexOf(t,l);;)if(e[l]!==t)if(a&&0===S.length&&e.substring(l,l+y)===a){if(-1===C)return D();l=C+g,C=e.indexOf(n,l),x=e.indexOf(r,l)}else{if(-1!==x&&(x<C||-1===C)){if(!(x<R)){S.push(e.substring(l,x)),l=x+p,x=e.indexOf(r,l);continue}var U=q(x,R,C);if(U&&void 0!==U.nextDelim){x=U.nextDelim,R=U.quoteSearch,S.push(e.substring(l,x)),l=x+p,x=e.indexOf(r,l);continue}}if(-1===C)break;if(S.push(e.substring(l,C)),M(C+g),v&&(P(),f))return D();if(o&&b.length>=o)return D(!0)}else for(R=l,l++;;){if(-1===(R=e.indexOf(t,R+1)))return d||_.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:b.length,index:l}),j();if(R===m-1)return j(e.substring(l,R).replace(O,t));if(t!==c||e[R+1]!==c){if(t===c||0===R||e[R-1]!==c){-1!==x&&x<R+1&&(x=e.indexOf(r,R+1)),-1!==C&&C<R+1&&(C=e.indexOf(n,R+1));var T=L(-1===C?x:Math.min(x,C));if(e[R+1+T]===r){S.push(e.substring(l,R).replace(O,t)),e[l=R+1+T+p]!==t&&(R=e.indexOf(t,l)),x=e.indexOf(r,l),C=e.indexOf(n,l);break}var N=L(C);if(e.substring(R+1+N,R+1+N+g)===n){if(S.push(e.substring(l,R).replace(O,t)),M(R+1+N+g),x=e.indexOf(r,l),R=e.indexOf(t,l),v&&(P(),f))return D();if(o&&b.length>=o)return D(!0);break}_.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:b.length,index:l}),R++}}else R++}return j();function I(e){b.push(e),k=l}function L(t){var r=0;if(-1!==t){var n=e.substring(R+1,t);n&&""===n.trim()&&(r=n.length)}return r}function j(t){return d||(void 0===t&&(t=e.substring(l)),S.push(t),l=m,I(S),v&&P()),D()}function M(t){l=t,I(S),S=[],C=e.indexOf(n,l)}function D(e){return{data:b,errors:_,meta:{delimiter:r,linebreak:n,aborted:f,truncated:!!e,cursor:k+(s||0)}}}function P(){i(D()),b=[],_=[]}function q(n,a,i){var s={nextDelim:void 0,quoteSearch:void 0},o=e.indexOf(t,a+1);if(a<n&&n<o&&(o<i||-1===i)){var u=e.indexOf(r,o);if(-1===u)return s;o<u&&(o=e.indexOf(t,o+1)),s=q(u,o,i)}else s={nextDelim:n,quoteSearch:a};return s}},this.abort=function(){f=!0},this.getCharIndex=function(){return l}}function g(e){var t=e.data,r=a[t.workerId],n=!1;if(t.error)r.userError(t.error,t.file);else if(t.results&&t.results.data){var i={abort:function(){n=!0,y(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:v,resume:v};if(E(r.userStep)){for(var s=0;s<t.results.data.length&&(r.userStep({data:t.results.data[s],errors:t.results.errors,meta:t.results.meta},i),!n);s++);delete t.results}else E(r.userChunk)&&(r.userChunk(t.results,i,t.file),delete t.results)}t.finished&&!n&&y(t.workerId,t.results)}function y(e,t){var r=a[e];E(r.userComplete)&&r.userComplete(t),r.terminate(),delete a[e]}function v(){throw new Error("Not implemented.")}function b(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var r in e)t[r]=b(e[r]);return t}function _(e,t){return function(){e.apply(t,arguments)}}function E(e){return"function"==typeof e}return n&&(t.onmessage=function(e){var r=e.data;if(void 0===s.WORKER_ID&&r&&(s.WORKER_ID=r.workerId),"string"==typeof r.input)t.postMessage({workerId:s.WORKER_ID,results:s.parse(r.input,r.config),finished:!0});else if(t.File&&r.input instanceof File||r.input instanceof Object){var n=s.parse(r.input,r.config);n&&t.postMessage({workerId:s.WORKER_ID,results:n,finished:!0})}}),(c.prototype=Object.create(u.prototype)).constructor=c,(l.prototype=Object.create(u.prototype)).constructor=l,(f.prototype=Object.create(f.prototype)).constructor=f,(d.prototype=Object.create(u.prototype)).constructor=d,s})?n.apply(t,a):n)||(e.exports=i)},1373:function(e,t,r){e.exports={yearGroup:"_270CZ"}},1374:function(e,t,r){e.exports={searchSvg:"Pt-8R"}},937:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.d(t,"a",(function(){return a}));var a={isNumber:function(e){return a.isType(e,"number")},isString:function(e){return a.isType(e,"string")},isType:function(e,t){return n(e)===t}}},944:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(937),a=r(70);function i(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o(e){var t=e.page,r=e.totalPages,i=n.a.isNumber(t)&&t>0&&t<r&&t+1,s=n.a.isNumber(t)&&t>1&&t-1,o={};if(i&&i<=r&&(o.next=i.toString()),s&&(o.previous=s.toString()),!a.a.isEmpty(o))return o}var u={isEmpty:function(e){return e&&!(e.data&&e.data.length)},length:function(e){return e&&e.data&&e.data.length},at:function(e,t){if(e&&e.data&&e.data.length&&!(t>e.data.length))return e.data[t]},get:function(e,t){if(e&&e.data&&e.data.length)return e.data.find((function(e){return e.id&&e.id.toString()===t}))},flattenCollections:function(e){if(e&&e.length){var t=[];return e.forEach((function(e){t=[].concat(i(t),i(e.data))})),t}},getNextCursor:function(e){return e.pagination&&e.pagination.cursors&&e.pagination.cursors.next},convertLegacyPaginatedCollection:function(e){if(e)return{data:e.data,pagination:{cursors:o(e.pagination),limit:e.pagination.pageSize}}}}},956:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(99),a=r(32),i=r(944);function s(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var u={getUsers:function(e,t,r){var a=r.cursor,i=r.sortName,s={userType:t};if(a&&(s.cursor=a),i)switch(i){case"first-name-atoz":s.query="{orderby:name}";break;case"first-name-ztoa":s.query="{orderbydesc:name}";break;case"surname-atoz":s.query="{orderby:surname}";break;case"surname-ztoa":s.query="{orderbydesc:surname}"}if(r.yearGroup){var o=Array.isArray(r.yearGroup)?r.yearGroup:[r.yearGroup];s.filter="{".concat(o.map((function(e){return"yearGroup:".concat(e)})),"}")}return{url:n.a.urlBuilder("{gateway}/v1/customers/".concat(e,"/users"),s),key:"school:users:".concat(e,":").concat(t,":").concat(a,":").concat(i,":").concat(s.filter),expiryTime:1/0}},getUser:function(e){return{url:"{gateway}/v1/users/".concat(e),key:"school:users:".concat(e),expiryTime:1/0}},bulkRemoveUsers:function(e,t,r,n){return{url:"{gateway}/v1/users/delete",key:"remove:school:users",invalidationKeys:["school:users"].concat(s(e.users.map((function(e){return"school:users:".concat(e.userId)})))),type:a.a.POST,data:e,success:t,error:r,always:n}},createUsers:function(e,t,r,n){return{url:"{gateway}/v1/users",key:"create:users",data:e,type:a.a.POST,invalidationKeys:["school:users"],success:t,error:r,always:n}},updateUser:function(e,t,r,n){return{url:"{gateway}/v1/users",key:"edit:user",type:a.a.PUT,data:e,invalidationKeys:["school:users","school:users:".concat(e.userId)],success:t,error:r,always:n}},searchUsers:function(e){var t=e.query,r=e.cursor,a={query:e.query};return r&&(a.filter="{page:".concat(r,"}")),{url:n.a.urlBuilder("{gateway}/v1/search/users",a),key:"search:users:".concat(t,":").concat(r),formatData:i.a.convertLegacyPaginatedCollection,expiryTime:1/0}},bulkToggleActivation:function(e,t,r,n){return{url:"{gateway}/v1/users/update-status",key:"update:users:status",type:a.a.PUT,data:e,success:t,error:r,always:n,invalidationKeys:["school:users"].concat(s(e.users.map((function(e){return"school:users:".concat(e.userId)}))))}}}}}]);
@@ -0,0 +1 @@
1
+ (window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[]).push([[70],{1439:function(e,a,t){"use strict";t.r(a);var n=t(0),r=t.n(n),s=t(17),c=t(8),l=t(294),i=t(4),o=t(90),m=t(956),u=t(1173),d=t(1169),p=t(154),E=t(59),v=t(938),g=t(121),h=t(303),N=t(1011),b=t(1170),y=t(995),S=t(1009),M=t(6),f=t(13),U=t(18),w=t(177),L=t(1104),T={application:M.a.USER_MANAGER,action:f.a.UserManager.CREATE_USER,params:{userType:E.a.Learner}};function k(e){return r.a.createElement(o.a.Provider,{value:"userManager.schoolStudentManagerEmptyState"},r.a.createElement("div",{className:"text-center py-5"},r.a.createElement("img",{src:"/favicon.ico",className:"pb-3"}),r.a.createElement("h2",{className:"h6"},r.a.createElement(o.b,{phrase:"heading"})),r.a.createElement("p",{className:"w-33 mx-auto"},r.a.createElement(o.b,{phrase:"info"})),r.a.createElement("p",{className:"pb-3"},r.a.createElement(o.b,{phrase:"template",options:{templateLink:"/templates/Template_Students.csv"}})),r.a.createElement("div",{className:"d-flex justify-content-center align-items-center"},r.a.createElement("div",{className:"px-1"},r.a.createElement(w.a,{className:"btn btn-secondary",appLink:T,svgName:U.b.Plus},r.a.createElement(o.b,{phrase:"addNew"}))),r.a.createElement("div",{className:"px-1"},r.a.createElement(L.a,{userType:E.a.Learner,currentUser:e.currentUser})))))}t.d(a,"SchoolStudentManagerView",(function(){return A}));var x=c.a.encloseNamespace("userManager.schoolStudentManager");function A(e){Object(l.a)(x("pageTitle"));var a=s.a.useBasicFetch(p.a.currentUser());var t,r=s.a.useBasicFetch(a.data?(null===(t=e.queryParams)||void 0===t?void 0:t.query)?m.a.searchUsers(e.queryParams):m.a.getUsers(a.data.customerId,E.a.Learner,e.queryParams):null);function c(){if(!a.data)return[];var e=h.a.getAvailableYearGroups(a.data.countryCode,E.a.Learner);return[S.b.SortByName(S.a.getNameSortOptions()),S.b.YearGroup(S.a.getYearGroupOptions(e))]}return n.createElement("div",{className:"px-3"},n.createElement("h1",{className:"pl-4"},n.createElement(o.b,{namespace:"userManager.schoolStudentManager",phrase:"heading"})),n.createElement("div",{className:"pl-4 pb-2"},n.createElement(N.b,{type:N.a.Static,data:[{name:x("settingsBreadcrumb")},{name:x("managerBreadcrumb")}],currentItem:{name:x("managerBreadcrumb")},getItemAppLink:function(){return{application:M.a.SETTINGS,action:f.a.Settings.HOME}}})),n.createElement(n.Fragment,null,function(){var t,s,l,m,p,h,N;return(null===(t=r.data)||void 0===t?void 0:t.data)&&a.data?r.data.data.length?n.createElement(n.Fragment,null,n.createElement("div",{className:"pl-4 py-2 row"},n.createElement("div",{className:"col-9 pl-1"},c().length?n.createElement(y.e,{queryParams:e.queryParams,mainFilters:c(),analyticsOptions:{entity:i.d.User,location:i.j.StudentManager},hideHeading:!0}):n.createElement(y.c,{hideHeading:!0})),n.createElement("div",{className:"col-3"},n.createElement(b.a,{id:"school-student-search",name:"school-student-search",placeholder:x("searchBarPlaceholder"),searchAppLink:{application:M.a.USER_MANAGER,action:f.a.UserManager.STUDENTS}}))),n.createElement("p",{className:"pl-4 mb-0 font-weight-500"},n.createElement(o.b,{namespace:"userManager.schoolStudentManager",phrase:"entries",options:{totalVisible:(null===(l=null===(s=r.data)||void 0===s?void 0:s.data)||void 0===l?void 0:l.length)||0,absoluteTotal:(null===(m=r.data)||void 0===m?void 0:m.count)||0,smartCount:(null===(p=r.data)||void 0===p?void 0:p.count)||0}})),n.createElement("main",{className:"py-3"},n.createElement(u.a,{users:r.data.data,currentUser:a.data,userType:E.a.Learner,analyticsOptions:{location:i.j.StudentManager}}),n.createElement(v.b,{appLink:g.a.getCurrentRoute().appLink,cursors:{next:null===(h=r.data.pagination.cursors)||void 0===h?void 0:h.next,previous:null===(N=r.data.pagination.cursors)||void 0===N?void 0:N.previous},className:"pt-3 d-flex justify-content-end"}))):n.createElement(k,{currentUser:a.data}):n.createElement(d.a,null)}()))}}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[]).push([[67],{823:function(t,e){!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=function(t){for(var e=window.document,n=i(e);n;)n=i(e=n.ownerDocument);return e}(),e=[],n=null,o=null;s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return n||(n=function(t,n){o=t&&n?l(t,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},e.forEach((function(t){t._checkForIntersections()}))}),n},s._resetCrossOriginUpdater=function(){n=null,o=null},s.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},s.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]}))},s.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},s.prototype._monitorIntersections=function(e){var n=e.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(e)){var o=this._checkForIntersections,r=null,s=null;if(this.POLL_INTERVAL?r=n.setInterval(o,this.POLL_INTERVAL):(h(n,"resize",o,!0),h(e,"scroll",o,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(s=new n.MutationObserver(o)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push((function(){var t=e.defaultView;t&&(r&&t.clearInterval(r),c(t,"resize",o,!0)),c(e,"scroll",o,!0),s&&s.disconnect()})),e!=(this.root&&this.root.ownerDocument||t)){var u=i(e);u&&this._monitorIntersections(u.ownerDocument)}}},s.prototype._unmonitorIntersections=function(e){var n=this._monitoringDocuments.indexOf(e);if(-1!=n){var o=this.root&&this.root.ownerDocument||t;if(!this._observationTargets.some((function(t){var n=t.element.ownerDocument;if(n==e)return!0;for(;n&&n!=o;){var r=i(n);if((n=r&&r.ownerDocument)==e)return!0}return!1}))){var r=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),r(),e!=o){var s=i(e);s&&this._unmonitorIntersections(s.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var e=0;e<t.length;e++)t[e]()},s.prototype._checkForIntersections=function(){if(this.root||!n||o){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(o){var i=o.element,s=u(i),h=this._rootContainsTarget(i),c=o.entry,a=t&&h&&this._computeTargetAndRootIntersection(i,s,e),l=o.entry=new r({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:s,rootBounds:n&&!this.root?null:e,intersectionRect:a});c?t&&h?this._hasCrossedThreshold(c,l)&&this._queuedEntries.push(l):c&&c.isIntersecting&&this._queuedEntries.push(l):this._queuedEntries.push(l)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(e,i,r){if("none"!=window.getComputedStyle(e).display){for(var s,h,c,a,f,d,g,m,v=i,_=p(e),w=!1;!w&&_;){var b=null,y=1==_.nodeType?window.getComputedStyle(_):{};if("none"==y.display)return null;if(_==this.root||9==_.nodeType)if(w=!0,_==this.root||_==t)n&&!this.root?!o||0==o.width&&0==o.height?(_=null,b=null,v=null):b=o:b=r;else{var I=p(_),E=I&&u(I),T=I&&this._computeTargetAndRootIntersection(I,E,r);E&&T?(_=I,b=l(E,T)):(_=null,v=null)}else{var R=_.ownerDocument;_!=R.body&&_!=R.documentElement&&"visible"!=y.overflow&&(b=u(_))}if(b&&(s=b,h=v,c=void 0,a=void 0,f=void 0,d=void 0,g=void 0,m=void 0,c=Math.max(s.top,h.top),a=Math.min(s.bottom,h.bottom),f=Math.max(s.left,h.left),d=Math.min(s.right,h.right),m=a-c,v=(g=d-f)>=0&&m>=0&&{top:c,bottom:a,left:f,right:d,width:g,height:m}||null),!v)break;_=_&&p(_)}return v}},s.prototype._getRootRect=function(){var e;if(this.root)e=u(this.root);else{var n=t.documentElement,o=t.body;e={top:0,left:0,right:n.clientWidth||o.clientWidth,width:n.clientWidth||o.clientWidth,bottom:n.clientHeight||o.clientHeight,height:n.clientHeight||o.clientHeight}}return this._expandRectByRootMargin(e)},s.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100})),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},s.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,o=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==o)for(var i=0;i<this.thresholds.length;i++){var r=this.thresholds[i];if(r==n||r==o||r<n!=r<o)return!0}},s.prototype._rootIsInDom=function(){return!this.root||f(t,this.root)},s.prototype._rootContainsTarget=function(e){return f(this.root||t,e)&&(!this.root||this.root.ownerDocument==e.ownerDocument)},s.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},s.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=s,window.IntersectionObserverEntry=r}function i(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(t){return null}}function r(t){this.time=t.time,this.target=t.target,this.rootBounds=a(t.rootBounds),this.boundingClientRect=a(t.boundingClientRect),this.intersectionRect=a(t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,n=e.width*e.height,o=this.intersectionRect,i=o.width*o.height;this.intersectionRatio=n?Number((i/n).toFixed(4)):this.isIntersecting?1:0}function s(t,e){var n,o,i,r=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(r.root&&1!=r.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),o=this.THROTTLE_TIMEOUT,i=null,function(){i||(i=setTimeout((function(){n(),i=null}),o))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(r.rootMargin),this.thresholds=this._initThresholds(r.threshold),this.root=r.root||null,this.rootMargin=this._rootMarginValues.map((function(t){return t.value+t.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function h(t,e,n,o){"function"==typeof t.addEventListener?t.addEventListener(e,n,o||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n)}function c(t,e,n,o){"function"==typeof t.removeEventListener?t.removeEventListener(e,n,o||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,n)}function u(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function a(t){return!t||"x"in t?t:{top:t.top,y:t.top,bottom:t.bottom,left:t.left,x:t.left,right:t.right,width:t.width,height:t.height}}function l(t,e){var n=e.top-t.top,o=e.left-t.left;return{top:n,left:o,height:e.height,width:e.width,bottom:n+e.height,right:o+e.width}}function f(t,e){for(var n=e;n;){if(n==t)return!0;n=p(n)}return!1}function p(e){var n=e.parentNode;return 9==e.nodeType&&e!=t?i(e):n&&11==n.nodeType&&n.host?n.host:n&&n.assignedSlot?n.assignedSlot.parentNode:n}}()}}]);
1
+ (window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[]).push([[71],{927:function(t,e){!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=function(t){for(var e=window.document,n=i(e);n;)n=i(e=n.ownerDocument);return e}(),e=[],n=null,o=null;s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return n||(n=function(t,n){o=t&&n?l(t,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},e.forEach((function(t){t._checkForIntersections()}))}),n},s._resetCrossOriginUpdater=function(){n=null,o=null},s.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},s.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]}))},s.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},s.prototype._monitorIntersections=function(e){var n=e.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(e)){var o=this._checkForIntersections,r=null,s=null;if(this.POLL_INTERVAL?r=n.setInterval(o,this.POLL_INTERVAL):(h(n,"resize",o,!0),h(e,"scroll",o,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(s=new n.MutationObserver(o)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push((function(){var t=e.defaultView;t&&(r&&t.clearInterval(r),c(t,"resize",o,!0)),c(e,"scroll",o,!0),s&&s.disconnect()})),e!=(this.root&&this.root.ownerDocument||t)){var u=i(e);u&&this._monitorIntersections(u.ownerDocument)}}},s.prototype._unmonitorIntersections=function(e){var n=this._monitoringDocuments.indexOf(e);if(-1!=n){var o=this.root&&this.root.ownerDocument||t;if(!this._observationTargets.some((function(t){var n=t.element.ownerDocument;if(n==e)return!0;for(;n&&n!=o;){var r=i(n);if((n=r&&r.ownerDocument)==e)return!0}return!1}))){var r=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),r(),e!=o){var s=i(e);s&&this._unmonitorIntersections(s.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var e=0;e<t.length;e++)t[e]()},s.prototype._checkForIntersections=function(){if(this.root||!n||o){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(o){var i=o.element,s=u(i),h=this._rootContainsTarget(i),c=o.entry,a=t&&h&&this._computeTargetAndRootIntersection(i,s,e),l=o.entry=new r({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:s,rootBounds:n&&!this.root?null:e,intersectionRect:a});c?t&&h?this._hasCrossedThreshold(c,l)&&this._queuedEntries.push(l):c&&c.isIntersecting&&this._queuedEntries.push(l):this._queuedEntries.push(l)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(e,i,r){if("none"!=window.getComputedStyle(e).display){for(var s,h,c,a,f,d,g,m,v=i,_=p(e),w=!1;!w&&_;){var b=null,y=1==_.nodeType?window.getComputedStyle(_):{};if("none"==y.display)return null;if(_==this.root||9==_.nodeType)if(w=!0,_==this.root||_==t)n&&!this.root?!o||0==o.width&&0==o.height?(_=null,b=null,v=null):b=o:b=r;else{var I=p(_),E=I&&u(I),T=I&&this._computeTargetAndRootIntersection(I,E,r);E&&T?(_=I,b=l(E,T)):(_=null,v=null)}else{var R=_.ownerDocument;_!=R.body&&_!=R.documentElement&&"visible"!=y.overflow&&(b=u(_))}if(b&&(s=b,h=v,c=void 0,a=void 0,f=void 0,d=void 0,g=void 0,m=void 0,c=Math.max(s.top,h.top),a=Math.min(s.bottom,h.bottom),f=Math.max(s.left,h.left),d=Math.min(s.right,h.right),m=a-c,v=(g=d-f)>=0&&m>=0&&{top:c,bottom:a,left:f,right:d,width:g,height:m}||null),!v)break;_=_&&p(_)}return v}},s.prototype._getRootRect=function(){var e;if(this.root)e=u(this.root);else{var n=t.documentElement,o=t.body;e={top:0,left:0,right:n.clientWidth||o.clientWidth,width:n.clientWidth||o.clientWidth,bottom:n.clientHeight||o.clientHeight,height:n.clientHeight||o.clientHeight}}return this._expandRectByRootMargin(e)},s.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100})),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},s.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,o=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==o)for(var i=0;i<this.thresholds.length;i++){var r=this.thresholds[i];if(r==n||r==o||r<n!=r<o)return!0}},s.prototype._rootIsInDom=function(){return!this.root||f(t,this.root)},s.prototype._rootContainsTarget=function(e){return f(this.root||t,e)&&(!this.root||this.root.ownerDocument==e.ownerDocument)},s.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},s.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=s,window.IntersectionObserverEntry=r}function i(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(t){return null}}function r(t){this.time=t.time,this.target=t.target,this.rootBounds=a(t.rootBounds),this.boundingClientRect=a(t.boundingClientRect),this.intersectionRect=a(t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,n=e.width*e.height,o=this.intersectionRect,i=o.width*o.height;this.intersectionRatio=n?Number((i/n).toFixed(4)):this.isIntersecting?1:0}function s(t,e){var n,o,i,r=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(r.root&&1!=r.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),o=this.THROTTLE_TIMEOUT,i=null,function(){i||(i=setTimeout((function(){n(),i=null}),o))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(r.rootMargin),this.thresholds=this._initThresholds(r.threshold),this.root=r.root||null,this.rootMargin=this._rootMarginValues.map((function(t){return t.value+t.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function h(t,e,n,o){"function"==typeof t.addEventListener?t.addEventListener(e,n,o||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n)}function c(t,e,n,o){"function"==typeof t.removeEventListener?t.removeEventListener(e,n,o||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,n)}function u(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function a(t){return!t||"x"in t?t:{top:t.top,y:t.top,bottom:t.bottom,left:t.left,x:t.left,right:t.right,width:t.width,height:t.height}}function l(t,e){var n=e.top-t.top,o=e.left-t.left;return{top:n,left:o,height:e.height,width:e.width,bottom:n+e.height,right:o+e.width}}function f(t,e){for(var n=e;n;){if(n==t)return!0;n=p(n)}return!1}function p(e){var n=e.parentNode;return 9==e.nodeType&&e!=t?i(e):n&&11==n.nodeType&&n.host?n.host:n&&n.assignedSlot?n.assignedSlot.parentNode:n}}()}}]);
@@ -0,0 +1 @@
1
+ (window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[]).push([[8],{1174:function(t,e,n){"use strict";var r=n(0),a=n(929),o=n(8),i=n(90),c=n(933),l=n(941),u=n(942),s=n(971),f="playlists.validation",y=s.object().shape({name:s.string().max(250,(function(){return o.a.getPhrase(f,"nameExceeds")})).required((function(){return o.a.getPhrase(f,"nameRequired")})),description:s.string().max(65535,(function(){return o.a.getPhrase(f,"descriptionExceeds")}))});n.d(e,"a",(function(){return m}));var p=o.a.encloseNamespace("playlists.playlistDetails");function d(t){var e=Object(c.b)();return r.createElement(a.c,null,r.createElement(l.b,{label:p("nameLabel"),type:"text",name:"name",id:"name",placeholder:p("namePlaceholder"),autoFocus:!0,value:e.values.name}),r.createElement(l.b,{label:p("descriptionLabel"),component:"textarea",name:"description",id:"description",placeholder:p("descriptionPlaceholder"),value:e.values.description}),r.createElement("div",{className:"btn-container d-flex justify-content-end"},r.createElement("button",{type:"button",className:"btn btn-".concat(t.cancelButtonClass," mr-2"),onClick:t.onClickCancel},r.createElement(i.b,{namespace:"playlists.playlistDetails",phrase:"cancel"})),r.createElement(u.a,{isNew:t.isNew})))}function m(t){var e=t.playlist,n=(e=void 0===e?{}:e).name,a=void 0===n?"":n,o=e.description,i=void 0===o?"":o,l=e.id,u=void 0===l?null:l,s=t.savePlaylist,f=t.onClickCancel,p=t.cancelButtonClass;return r.createElement(c.a,{initialValues:{name:a,description:i},validationSchema:y,onSubmit:s},r.createElement(d,{isNew:!u,onClickCancel:f,cancelButtonClass:p}))}},928:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(202),a=n(62),o=n(71),i=function(){var t=Object(r.a)(o.a.ALERT);return{success:function(e){t.success(e)()},error:function(e){t.error(e)()},warning:function(e){t.createAlert({type:a.a.Warning,heading:a.c.Warning,message:e})}}}},933:function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return u}));var r=n(0),a=n(929),o=n(43),i=n(70),c=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]])}return n};function l(t){var e=t.castInitialValues,n=t.castValuesOnSubmit,l=t.initialValues,u=t.onSubmit,s=t.resetOnSubmit,f=c(t,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit","resetOnSubmit"]),y=e&&t.validationSchema?t.validationSchema.cast(function t(e){var n=i.a.deepClone(e);return Object.keys(n).forEach((function(e){n.hasOwnProperty(e)&&(i.a.isObject(n[e])?n[e]=t(n[e]):null===n[e]&&delete n[e])})),n}(l)):l,p={allowInitialSubmit:t.allowInitialSubmit};return r.createElement(a.d,Object.assign({enableReinitialize:!0},f,{initialValues:y,onSubmit:function(e,r){var a=r.setSubmitting,o=r.resetForm,i=n&&t.validationSchema?t.validationSchema.cast(e):e;u(i,(function(){s&&o(),a(!1)}))},initialStatus:p}),o.a.isFunction(t.children)?function(e){return t.children(e)}:r.Children.count(t.children)?t.children:null)}function u(){return Object(a.f)()}l.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},936:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(929),a={getCustomFormControlClassName:function(t,e,n,a){var o="form-control";return Object(r.e)(e,n)&&Object(r.e)(t,n)&&(o+=" is-invalid"),a&&(o+=" ".concat(a)),o}}},939:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(299),a=n(111),o=n(958);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y(t);if(e){var a=y(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(f,t);var e,n,r,i=s(f);function f(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a.Newest,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.a.OwnedByMe;return c(this,f),(t=i.call(this,{collectionPrefix:"user:playlists",cursor:n,sort:e})).type=r,t}return e=f,(n=[{key:"toString",value:function(){return[this.collectionPrefix,this.sort,this.cursor,this.type].filter(Boolean).join(":")}}])&&l(e.prototype,n),r&&l(e,r),f}(r.a)},941:function(t,e,n){"use strict";var r=n(0),a=n(929),o=n(40),i=n(43),c=n(936);function l(t){var e=Object(a.f)().values[t.fieldName];return"string"!=typeof e?r.createElement(r.Fragment,null):r.createElement("div",{className:"float-right text-muted"},e.length,"/",t.limit)}var u=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]])}return n};function s(t){var e=t.label,n=u(t,["label"]);return r.createElement(o.Form.Group,null,r.createElement("div",{className:"custom-control custom-checkbox"},r.createElement(y,Object.assign({className:"custom-control-input"},n)),r.createElement(o.Form.Label,{className:"custom-control-label",htmlFor:n.id},e)))}n.d(e,"a",(function(){return y})),n.d(e,"b",(function(){return p}));var f=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]])}return n};function y(t){var e=t.children,n=f(t,["children"]);return r.createElement(a.b,Object.assign({},n),i.a.isFunction(e)?function(t){return e(t)}:r.Children.count(e)?e:null)}function p(t){var e=t.label,n=t.className,i=t.showCharacterCounter,u=f(t,["label","className","showCharacterCounter"]),p=Object(a.f)(),d=p.errors,m=p.touched;return"checkbox"===u.type?r.createElement(s,Object.assign({},t)):r.createElement(o.Form.Group,null,!!e&&r.createElement(o.Form.Label,{htmlFor:u.id},e),r.createElement(y,Object.assign({className:c.a.getCustomFormControlClassName(d,m,u.name,n)},u)),!!i&&!!u.maxLength&&r.createElement(l,{fieldName:u.name,limit:u.maxLength}),r.createElement(a.a,{name:u.name},(function(t){return r.createElement(o.Form.Control.Feedback,{type:"invalid"},t)})))}},942:function(t,e,n){"use strict";var r=n(0),a=n(929);function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){a=!0,o=t}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var c=n(304),l=n(90);n.d(e,"a",(function(){return u}));function u(t){var e=Object(a.f)(),n=function(t){var e,n=o(r.useState(!1),2),a=n[0],i=n[1];return r.useEffect((function(){var e;t.isValid&&(t.dirty||(null===(e=t.initialStatus)||void 0===e?void 0:e.allowInitialSubmit))?i(!0):i(!1)}),[t.isValid,null===(e=t.initialStatus)||void 0===e?void 0:e.allowInitialSubmit,t.dirty,t.values]),r.useEffect((function(){t.isSubmitting&&i(!1)}),[t.isSubmitting]),a}(e);r.useEffect((function(){function t(t){13===t.keyCode&&n&&e.validateForm().then((function(t){Object.keys(t).length||e.submitForm()}))}return window.addEventListener("keypress",t),function(){return window.removeEventListener("keypress",t)}}),[n]);var i="save";return t.isNew&&(i="create"),t.hasNext&&(i="next"),r.createElement(c.a,{variant:t.variant||"primary",showSpinner:e.isSubmitting,type:"submit",disabled:!n},t.submitText?r.createElement(r.Fragment,null,t.submitText):r.createElement(l.b,{namespace:"shared.formButtons",phrase:i}))}},955:function(t,e,n){"use strict";var r=n(32),a=n(56),o=n(957);n(939);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var a=f(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var y,p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(n,t);var e=u(n);function n(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return c(this,n),e.call(this,{collectionPrefix:"playlist:videos",id:t,cursor:r})}return n}(n(299).a);!function(t){t[t.Queued=1]="Queued",t[t.Processing=2]="Processing",t[t.Processed=3]="Processed",t[t.Errored=4]="Errored"}(y||(y={}));var d=function(t,e){return function(n){var r=Object.assign({},n);return r.hasOwnProperty(t)&&(r[t]=Object.assign(Object.assign({},r[t]),e)),r}},m=function(t){return function(e){var n=Object.assign({},e);return n.hasOwnProperty(t)&&delete n[t],n}},v=function(t,e){return function(n){var r=Object.assign({},n);return r.hasOwnProperty(t)?(r[t].videos||(r[t].videos={}),r[t].videos.count=r[t].videos.count?r[t].videos.count+e:e,r):n}};n.d(e,"a",(function(){return O}));var b=function(t){return t?"&cursor=".concat(t):""},h=function(t){return Number.isInteger(t)?"&maxRatingValue=".concat(t):""},g=function(t,e){return"".concat(t).concat(e?":".concat(e):"")},O={getPlaylist:function(t,e,n){return{url:"/api/domain/v2/objects/".concat(t,"?query=").concat(a.a.PLAYLIST),key:"playlist:".concat(t),success:e,error:n}},getSharedPlaylist:function(t,e,n,r){var o="/api/domain/v2/share/".concat(t);return{url:"".concat(o,"?query=").concat(a.a.PLAYLIST).concat(h(e)),key:"shared:playlist:".concat(t),success:n,error:r}},getUserPlaylists:function(t){var e=t.sort,n=t.type;return{url:"/api/domain/v2/me/playlists/".concat(n,"?sort=").concat(e,"&query={limit:100}")+"".concat(a.a.PLAYLIST_COLLECTION).concat(b(t.cursor)),key:t.toString()}},getPlaylistVideos:function(t,e,n){var r="orderBy:orderindex,limit:100";return Number.isInteger(e)&&(r+=",rating.value:0...".concat(e)),{url:"/api/domain/v2/objects/".concat(t,"/videos?query={").concat(r,"}")+"".concat(a.a.VIDEO_COLLECTION).concat(b(n)),key:g("playlist:".concat(t,":videos"),n)}},getSharedPlaylistVideos:function(t,e,n){return{url:"/api/domain/v2/share/".concat(t,"/videos?query={orderBy:orderindex,limit:100}")+"".concat(a.a.SHARED_PLAYLIST_VIDEO_COLLECTION)+"".concat(b(n)).concat(h(e)),key:g("shared:playlist:".concat(t,":videos"),n)}},getVideoPlaylists:function(t,e,n){return{url:"/api/domain/v2/objects/".concat(t,"/playlists?query={limit:100,owner.id:[").concat(e,"]}"),key:g("video:playlists:".concat(t),n)}},createPlaylist:function(t,e,n,a){return{key:"create:playlist",url:"/api/domain/v2/objects/".concat(t,"/playlists"),data:e,type:r.a.POST,success:n,error:a,invalidationKeys:"user:playlists"}},updatePlaylist:function(t,e,n,a){return{key:"update:playlist",url:"/api/domain/v2/objects/".concat(t),data:e,type:r.a.PUT,success:n,error:a,updateState:{keys:"playlist:".concat(t),updateData:d("playlist:".concat(t),e)}}},deletePlaylist:function(t,e,n){return{key:"delete:playlist",url:"/api/domain/v2/objects/".concat(t),type:r.a.DELETE,success:e,error:n,invalidationKeys:"user:playlists",updateState:{keys:"playlist:".concat(t),updateData:m("playlist:".concat(t))}}},addToPlaylist:function(t,e,n,a){var o=["user:playlists",new p(t).toString()];return e.forEach((function(t){o.push("video:playlists:".concat(t))})),{key:"add:to:playlist",url:"/api/domain/v2/objects/".concat(t,"/associate"),data:e,type:r.a.POST,success:n,error:a,invalidationKeys:o,updateState:{keys:"playlist:".concat(t),updateData:v("playlist:".concat(t),e.length)}}},reorderVideos:function(t,e,n,a){return{key:"reorder:playlist",url:"/api/domain/v2/objects/".concat(t,"/videos/reorder"),data:e,type:r.a.PUT,success:n,error:a,invalidationKeys:"user:playlists",updateState:{keys:"playlist:".concat(t,":videos"),updateData:function(n){return o.a.updateState("playlist:".concat(t,":videos"),e,n)}}}},removePlaylistVideo:function(t,e,n,a){return{key:"remove:playlist:video",url:"/api/domain/v2/objects/".concat(t,"/dissociate?memberId=").concat(e),type:r.a.DELETE,success:n,error:a,invalidationKeys:["user:playlists","playlist:".concat(t,":videos")]}},getIsFollowingPlaylist:function(t,e){return{url:"/api/domain/v2/objects/".concat(e,"/followedPlaylists?query={id:").concat(t,"}"),key:"playlist:".concat(t,":following:").concat(e),formatData:function(e){var n,r;return{objectId:t,isFollowing:!!(null===(r=null===(n=e)||void 0===n?void 0:n.data)||void 0===r?void 0:r.length)}},normalize:!1}},followPlaylist:function(t,e,n,a,o){return{url:"/api/domain/v2/objects/".concat(e),key:"follow:playlist:".concat(t),data:{followedPlaylists:t},type:r.a.PUT,invalidationKeys:["user:playlists","playlist:".concat(t,":following:").concat(e)],success:n,error:a,always:o}},unfollowPlaylist:function(t,e,n,a,o){return{url:"/api/domain/v2/objects/".concat(e,"/followedplaylists/").concat(t),key:"unfollow:playlist:".concat(t),type:r.a.DELETE,invalidationKeys:["user:playlists","playlist:".concat(t,":following:").concat(e)],success:n,error:a,always:o}},getPlaylistPrivacy:function(t){return{key:"playlist:privacy:".concat(t),url:"/api/domain/v1/playlists/".concat(t,"/privacy"),formatData:function(e){return{id:t,privacy:e}}}},updatePlaylistPrivacy:function(t,e,n,a,o){return{key:"update:playlist:privacy:".concat(t),url:"/api/domain/v1/playlists/".concat(t,"/privacy"),type:r.a.PUT,data:{privacy:e},formatData:function(){return{id:t,privacy:e}},success:n,error:a,always:o}},getMigrationTask:function(t,e){return{url:"/api/playlist-app/migration-task",key:"migration:task",formatData:function(t){return t||{status:y.Processed}},success:t,error:e}},copyPlaylist:function(t,e,n,a){return{url:"{gateway}/v1/playlists/copy",key:"copy:playlist",data:{playlistId:t},type:r.a.POST,invalidationKeys:"user:playlists",success:e,error:n,always:a}}}},957:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(176),a=n(70);function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var c={reorder:function(t,e,n){if(e===n)return{reorderedItems:t,reorderRequest:null};var a=r.a.moveItem(t,e,n),o=n<t.length-1?a[n+1].id:null;return{reorderedItems:a,reorderRequest:{sourceMemberId:a[n].id,destinationMemberId:o}}},updateState:function(t,e,n){for(var i=[],c=a.a.deepClone(n),l=[t],u=n[t],s=!!u&&!!u.data&&u.data.length;u&&Array.isArray(u.data);){i.push.apply(i,o(u.data));var f=u.pagination&&u.pagination.cursors&&u.pagination.cursors.next,y=!!f&&"".concat(t,":").concat(f);(u=f&&n[y])&&l.push(y)}if(!i.length)return n;var p=r.a.findIndex(i,(function(t){return t.id===e.sourceMemberId})),d=[].concat(i),m=d.splice(p,1),v=e.destinationMemberId?r.a.findIndex(d,(function(t){return t.id===e.destinationMemberId})):d.length;return d.splice(v,0,m[0]),l.forEach((function(t){var e=d.splice(0,s);c[t].data=e})),c}}},958:function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.OwnedByMe="owned_by_me",t.Followed="followed",t.All="all"}(r||(r={}))}}]);
@@ -0,0 +1 @@
1
+ (window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[]).push([[9],{1034:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),r=n(40),i=n(992),o=n.n(i);function c(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function s(e){var t=c(Array(e.numItems)),n=e.itemClassName||"";return a.createElement(a.Fragment,null,e.showHeading&&a.createElement("div",{className:"".concat(o.a.partialHeading," partial-loading-background")}),a.createElement(r.Row,null,t.map((function(e,t){return a.createElement(r.Col,{key:t,xs:6,sm:4,lg:3,className:n},a.createElement("div",{className:"py-2"},a.createElement("div",{className:"".concat(o.a.playlistItem," partial-loading-background")})))}))))}s.defaultProps={numItems:8}},1051:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=function(){return"/api/domain/v1/subjects/audiences?type=subject"},r={presentationAudiences:function(){return{bootstrapName:"presentationAudiences",url:a(),key:"presentation:audiences",normalize:!1}}}},1100:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n(0),r=n(58),i=n(203),o=n(155),c=n(57),l=n(965),s=n(90),u=n(4),m=n(1168),f=n.n(m),d=function(e){var t=e.name,n=e.multiline,r="".concat(f.a.comingSoonPanel," \n d-flex flex-column align-items-center justify-content-center px-3 text-center"),i="".concat(f.a.name," h6 mb-0 pb-1");return n?i+=" ".concat(f.a.clamped," clamp-2"):(r+=" text-nowrap",i+=" text-truncate"),a.createElement("div",{className:r},a.createElement("small",{className:"text-muted"},a.createElement(s.b,{namespace:"shared.subjectWidgetItem",phrase:"comingSoon"})),a.createElement("p",{className:i},t))},g=function(e){var t=e.name,n=e.multiline,r="px-3 text-center d-flex align-items-center",i="".concat(f.a.name," h6 mb-0 pb-1");return n?i+=" ".concat(f.a.clamped," clamp-2 text-left"):(r+=" text-nowrap text-truncate",i+=" text-truncate"),a.createElement("div",{className:r},a.createElement("p",{className:i},t))};var p=a.memo((function(e){var t,n,s,m,p,y=Object.assign(Object.assign({},e.appLink),{args:[e.data.id,r.a.slugify(e.data.name)]}),v=i.a.createUrl(null===(t=e.data.cover)||void 0===t?void 0:t.url,{size:o.a.Small}),b=Object.assign(Object.assign({},e.analyticsData),{id:null===(n=e.data)||void 0===n?void 0:n.id,name:null===(s=e.data)||void 0===s?void 0:s.name,presentationId:null===(m=e.data)||void 0===m?void 0:m.presentationId,comingSoon:!!(null===(p=e.data)||void 0===p?void 0:p.comingSoon)}),h=Object.assign(Object.assign({},e.analyticsOptions),{actionType:u.n.Click,entity:u.d.Classification,descriptor:u.b.Cover});return a.createElement(c.a,{appLink:y,analyticsData:b,analyticsOptions:h},a.createElement("div",{className:"border d-flex position-relative ".concat(f.a.widgetItem),id:e.data.id},a.createElement("div",{className:"".concat(f.a.imagePanel," ").concat(e.isLarge?f.a.large:"")},a.createElement("div",{className:f.a.image,style:{backgroundImage:"url('".concat(v,"')")}}),a.createElement(l.a,{type:l.b.Subject,extraClasses:e.isLarge?f.a.large:""})),e.data.comingSoon?a.createElement(d,{name:e.data.name,multiline:e.isLarge}):a.createElement(g,{name:e.data.name,multiline:e.isLarge})))}))},1101:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),r=n(1055),i=n.n(r);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var c,l=function(e){if(Array.isArray(e))return o(e)}(c=Array(4))||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(c)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(c)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),s=function(){return a.createElement("div",{className:"pb-3"},a.createElement("div",{className:"partial-loading-background ".concat(i.a.partialLoadingHeading),dangerouslySetInnerHTML:{__html:"&nbsp"}}),a.createElement("div",{className:"row"},l.map((function(e,t){return a.createElement("div",{key:t,className:"col-6 col-sm-4 col-lg-3 "},a.createElement("div",{className:"py-2"},a.createElement("div",{className:"".concat(i.a.partialLoading," partial-loading-background")})))}))))}},1168:function(e,t,n){e.exports={widgetItem:"_1oyw1",imagePanel:"_1UOVG",image:"_1_BF4",large:"_1EtWs",comingSoonPanel:"_3js2e",name:"_3csgE",clamped:"_1y2oG",editSubjectsItem:"_1yBMf",allSubjectsItem:"_2oBMH",logoContainer:"T3Lym"}},1172:function(e,t,n){"use strict";var a=n(0),r=n(70),i=n(43),o=n(8),c=n(176);function l(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var u=n(1020),m=n(1088),f=n(1049),d=n(298),g=n(965),p=n(1168),y=n.n(p);function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,r=!1,i=void 0;try{for(var o,c=e[Symbol.iterator]();!(a=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==c.return||c.return()}finally{if(r)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var h=function(){var e=v(a.useState(d.a.getRandomInt(5)+3+"rem"),1)[0];return a.createElement("div",{className:"border d-flex position-relative mr-2 ".concat(y.a.widgetItem)},a.createElement("div",{className:y.a.imagePanel}),a.createElement("div",{className:"px-2",style:{width:e}}," "),a.createElement(g.a,{type:g.b.Subject}))},E=n(1175),S=n(1006),j=n(90),w=n(990),O=n(1158),A=n(57),P=n(67),L=n(18),N=n(46),x=function(e,t,n,a,r){return function(i){k(i.clientX,e,t,n,a,r)}},I=function(e,t,n,a,r){return function(i){k(i.touches.item(0).clientX,e,t,n,a,r)}};function k(e,t,n,a,r,i){var o=r;o||(i(o=Object.assign(Object.assign({},n),{initialMouseX:e})),t.current.style.transition=""),a({type:S.a.Drag,payload:{widgetSnapshot:o,currentMouseX:e}})}var R=function(e,t){return function(){e.current.style.transition="transform .4s ease-in-out",t(null)}},B=R,C={offset:0,containerLeftPosition:null,containerRightPosition:null,firstElementPosition:null,lastElementPosition:null,hideLeftButton:!0,hideRightButton:!0,maxSlideDistance:500,leftOffsetLimit:null};function _(e,t){switch(t.type){case S.a.Init:case S.a.Resize:return Object.assign(Object.assign({},e),function(e){var t=e.container,n=void 0===t?{}:t,a=e.lastElement,r=void 0===a?{}:a;if(!n.current||!r.current)return C;var i=e.container.current.getBoundingClientRect().left,o=e.container.current.getBoundingClientRect().right,c=i,l=e.lastElement.current.getBoundingClientRect().right,s=o-l;return Object.assign(Object.assign({},C),{containerLeftPosition:i,containerRightPosition:o,firstElementPosition:c,lastElementPosition:l,hideRightButton:l<o,leftOffsetLimit:s})}(t.payload));case S.a.Next:return Object.assign(Object.assign({},e),function(e){var t=e.firstElementPosition,n=e.lastElementPosition,a=e.maxSlideDistance,r=e.offset,i=e.containerRightPosition,o=n-i>=a?a:n-i;return{firstElementPosition:t-o,lastElementPosition:n-o,offset:r-o,hideRightButton:n-o===i,hideLeftButton:!1}}(e));case S.a.Previous:return Object.assign(Object.assign({},e),function(e){var t=e.containerLeftPosition,n=e.firstElementPosition,a=e.lastElementPosition,r=e.maxSlideDistance,i=e.offset,o=n+r<=t,c=o?r:Math.abs(i);return{firstElementPosition:n+c,lastElementPosition:a+c,offset:i+c,hideLeftButton:!o||n+c===t,hideRightButton:!1}}(e));case S.a.Drag:return Object.assign(Object.assign({},e),function(e,t){var n=t.widgetSnapshot,a=t.currentMouseX;if(n.hideLeftButton&&n.hideRightButton)return{};var r=n.initialMouseX-a,i=n.offset-r,o=n.firstElementPosition-r,c=n.lastElementPosition-r,l=!1,s=!1;return o>e.containerLeftPosition&&(i=0,o=e.containerLeftPosition,c=e.lastElementPosition,l=!0),c<=e.containerRightPosition&&(i=e.leftOffsetLimit,o=e.containerLeftPosition-Math.abs(e.leftOffsetLimit),c=n.containerRightPosition,s=!0),{offset:i,firstElementPosition:o,lastElementPosition:c,hideLeftButton:l,hideRightButton:s}}(e,t.payload));default:return e}}var M=n(1361),T=n.n(M);function D(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,r=!1,i=void 0;try{for(var o,c=e[Symbol.iterator]();!(a=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==c.return||c.return()}finally{if(r)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return U(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return U(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}n.d(t,"a",(function(){return z})),n.d(t,"b",(function(){return W}));function z(e){var t,n=e.childComponent,s=e.staticChildren,d=D(a.useReducer(_,C),2),g=d[0],p=d[1],y=D(a.useState(null),2),v=y[0],b=y[1],h={container:a.useRef(null),firstElement:a.useRef(null),lastElement:a.useRef(null)};!function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=function(){e(),window.clearTimeout(n),n=window.setTimeout(t,100)};a.useEffect((function(){return window.addEventListener("resize",t?i:e),function(){return window.removeEventListener("resize",t?i:e)}}),l(r))}(function(e,t){return function(){e.container.current&&(e.container.current.style.transition=""),t({type:S.a.Resize,payload:e})}}(h,p),(t=h.container,function(){t.current&&(t.current.style.transition="transform .4s ease-in-out")}));var w=Object(u.a)(!e.lazyLoad),k=w.ref,M=w.inView,U=e.collection;!e.collection&&i.a.isFunction(e.fetch)&&(U=e.fetch(M)),a.useEffect((function(){U&&!r.a.isEmpty(U)&&p({type:S.a.Init,payload:h})}),[U]);var z=a.useMemo((function(){var t;if(U){var r,i;if(null===(t=s)||void 0===t?void 0:t.length){var o=c.a.findWhere(s,{position:"start"}),l=c.a.findWhere(s,{position:"end"});r=o?o.component:null,i=l?l.component:null}var u=U.map((function(t,o){var l,s,u;return t!==c.a.first(U)||r||(u=h.firstElement),t!==c.a.last(U)||i||(u=h.lastElement),a.createElement("div",{key:t.id,ref:u,className:T.a.itemSpacing},a.createElement(n,{data:t,appLink:e.childAppLink,analyticsData:Object.assign({itemIndex:o},null===(l=e)||void 0===l?void 0:l.analyticsData),analyticsOptions:Object.assign(Object.assign({},null===(s=e)||void 0===s?void 0:s.analyticsOptions),O.a.getSliderItemAnalyticsOptions())}))}));return r&&u.unshift(a.createElement("div",{key:"first-widget-component",ref:h.firstElement,className:T.a.itemSpacing},a.createElement(r,null))),i&&u.push(a.createElement("div",{key:"end-widget-component",ref:h.lastElement,className:T.a.itemSpacing},a.createElement(i,null))),a.createElement(a.Fragment,null,u)}}),[U]);if(U&&!U.length)return a.createElement(a.Fragment,null);if(!U||r.a.isEmpty(U))return a.createElement("div",{ref:k},a.createElement(W,null));var F=function(t){return Object.assign(Object.assign({},e.analyticsData),{name:o.a.getPhrase("shared.dynamicWidget",e.headingPhraseKey),direction:t===S.a.Next?"right":"left"})};return a.createElement(a.Fragment,null,function(){if(!e.headingPhraseKey)return a.createElement(a.Fragment,null);var t="topics"===e.headingPhraseKey;return a.createElement(A.a,{appLink:e.headingAppLink},a.createElement("h2",{className:"".concat(T.a.heading," ").concat(e.headingAppLink?T.a.link:""," h4 d-inline-block mr-2 pl-1 mb-2")},a.createElement(j.b,{namespace:"shared.dynamicWidget",phrase:e.headingPhraseKey}),t&&a.createElement(P.a,{svgName:L.b.ChevronRight,size:P.b.Small})))}(),a.createElement("div",{className:"position-relative px-1"},a.createElement(f.a,{direction:f.b.Left,onClick:function(){p({type:S.a.Previous}),N.a.logUserAction(F(S.a.Previous),O.a.getSliderAnalyticsOptions())},hide:g.hideLeftButton,useGradientBackdrop:!0}),a.createElement("div",{className:"overflow-hidden"},a.createElement(E.a,{position:g.offset,positionType:m.a.Pixels,onDrag:x(h.container,g,p,v,b),onDragEnd:R(h.container,b),onTouchMove:I(h.container,g,p,v,b),onTouchEnd:B(h.container,b),ref:h.container},z)),a.createElement(f.a,{direction:f.b.Right,onClick:function(){p({type:S.a.Next}),N.a.logUserAction(F(S.a.Next),O.a.getSliderAnalyticsOptions())},hide:g.hideRightButton,useGradientBackdrop:!0})))}var F=w.a.getPartialLoadingItems(),W=function(){return a.createElement("div",{className:"pb-3 d-flex flex-nowrap"},F.map((function(e,t){return a.createElement(h,{key:t})})))}},1361:function(e,t,n){e.exports={itemSpacing:"_10Pgb",heading:"_2uNzU",link:"_3IGFJ"}}}]);