@clickview/lite 0.0.22-dev.1 → 0.0.22-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/0.chunk.css.map +1 -0
- package/dist/css/1.chunk.css +156 -0
- package/dist/css/1.chunk.css.map +1 -0
- package/dist/css/11.chunk.css +7 -0
- package/dist/css/11.chunk.css.map +1 -0
- package/dist/css/12.chunk.css +3 -1
- package/dist/css/12.chunk.css.map +1 -0
- package/dist/css/13.chunk.css.map +1 -0
- package/dist/css/14.chunk.css.map +1 -0
- package/dist/css/15.chunk.css +3 -1
- package/dist/css/15.chunk.css.map +1 -0
- package/dist/css/16.chunk.css +2 -2
- package/dist/css/16.chunk.css.map +1 -0
- package/dist/css/17.chunk.css.map +1 -0
- package/dist/css/18.chunk.css.map +1 -0
- package/dist/css/2.chunk.css.map +1 -0
- package/dist/css/20.chunk.css.map +1 -0
- package/dist/css/21.chunk.css.map +1 -0
- package/dist/css/22.chunk.css.map +1 -0
- package/dist/css/23.chunk.css.map +1 -0
- package/dist/css/24.chunk.css.map +1 -0
- package/dist/css/25.chunk.css.map +1 -0
- package/dist/css/26.chunk.css +2 -2
- package/dist/css/26.chunk.css.map +1 -0
- package/dist/css/27.chunk.css +2 -2
- package/dist/css/27.chunk.css.map +1 -0
- package/dist/css/28.chunk.css.map +1 -0
- package/dist/css/29.chunk.css.map +1 -0
- package/dist/css/3.chunk.css +4 -2
- package/dist/css/30.chunk.css +30 -2
- package/dist/css/30.chunk.css.map +1 -0
- package/dist/css/31.chunk.css +4 -0
- package/dist/css/31.chunk.css.map +1 -0
- package/dist/css/32.chunk.css.map +1 -0
- package/dist/css/33.chunk.css +8 -0
- package/dist/css/33.chunk.css.map +1 -0
- package/dist/css/34.chunk.css +6 -0
- package/dist/css/34.chunk.css.map +1 -0
- package/dist/css/35.chunk.css.map +1 -0
- package/dist/css/37.chunk.css +7 -0
- package/dist/css/37.chunk.css.map +1 -0
- package/dist/css/38.chunk.css +6 -0
- package/dist/css/38.chunk.css.map +1 -0
- package/dist/css/39.chunk.css +38 -2
- package/dist/css/39.chunk.css.map +1 -0
- package/dist/css/4.chunk.css +1 -1
- package/dist/css/41.chunk.css +4 -0
- package/dist/css/43.chunk.css +38 -0
- package/dist/css/43.chunk.css.map +1 -0
- package/dist/css/5.chunk.css +2 -8
- package/dist/css/5.chunk.css.map +1 -0
- package/dist/css/52.chunk.css +9 -0
- package/dist/css/52.chunk.css.map +1 -0
- package/dist/css/6.chunk.css +8 -2
- package/dist/css/6.chunk.css.map +1 -0
- package/dist/css/7.chunk.css +94 -0
- package/dist/css/7.chunk.css.map +1 -0
- package/dist/css/lite-app.css +2 -2
- package/dist/css/lite-app.css.map +1 -0
- package/dist/en.json +1 -1
- package/dist/libs/analytics/src/utils/VideoDataFormatHelper.d.ts +42 -0
- package/dist/libs/shared/src/apps/content-updates/interfaces/ClassificationVideosGrouping.d.ts +3 -2
- package/dist/libs/shared/src/apps/content-updates/interfaces/index.d.ts +0 -1
- package/dist/libs/shared/src/apps/notifications/utils/NotificationsHelper.d.ts +1 -1
- package/dist/libs/shared/src/apps/playlists/components/empty-state/EmptyVideoList.d.ts +3 -0
- package/dist/libs/shared/src/apps/playlists/components/playlist-list/PlaylistItem.d.ts +8 -3
- package/dist/libs/shared/src/apps/playlists/components/playlist-list/PlaylistList.d.ts +9 -3
- package/dist/libs/shared/src/apps/playlists/components/playlist-list/PlaylistOwnerAvatar.d.ts +9 -0
- package/dist/{projects/lite → libs/shared}/src/apps/playlists/components/sort-select/PlaylistSortSelect.d.ts +2 -2
- package/dist/libs/shared/src/apps/playlists/enums/PlaylistSortType.d.ts +4 -2
- package/dist/libs/shared/src/apps/playlists/enums/PlaylistType.d.ts +5 -0
- package/dist/libs/shared/src/apps/playlists/interfaces/identifiers/PlaylistCollectionIdentifier.d.ts +4 -1
- package/dist/libs/shared/src/apps/playlists/utils/PlaylistSortHelper.d.ts +0 -1
- package/dist/libs/shared/src/apps/subjects/components/preferences/index.d.ts +1 -1
- package/dist/libs/shared/src/apps/subjects/components/preferences/nav/PreferencesNav.d.ts +12 -0
- package/dist/libs/shared/src/apps/subjects/components/preferences/preference-item/PreferenceItem.d.ts +1 -0
- package/dist/libs/shared/src/apps/subjects/components/preferences/preference-item/PreferenceItemStatus.d.ts +1 -0
- package/dist/libs/shared/src/apps/subjects/components/preferences/subject-preference-grid/SubjectPreferenceGrid.d.ts +2 -1
- package/dist/libs/shared/src/apps/subjects/components/preferences/subject-preference-item/SubjectPreferenceItem.d.ts +1 -0
- package/dist/libs/shared/src/apps/subjects/interfaces/ClassificationPreference.d.ts +0 -1
- package/dist/libs/shared/src/components/actions/ActionButton.d.ts +4 -0
- package/dist/libs/shared/src/components/actions/Actions.d.ts +4 -0
- package/dist/libs/shared/src/components/app-link/AppLink.d.ts +4 -0
- package/dist/libs/shared/src/components/avatar/Avatar.d.ts +8 -0
- package/dist/libs/shared/src/components/clickview-avatar/ClickViewAvatar.d.ts +2 -0
- package/dist/libs/shared/src/components/forms/form-buttons/FormButtons.d.ts +3 -0
- package/dist/libs/shared/src/components/icon-button/IconButton.d.ts +4 -0
- package/dist/libs/shared/src/components/svg-container/SvgContainer.d.ts +2 -1
- package/dist/libs/shared/src/components/svgs/clickview-logo/ClickViewLogo.d.ts +1 -0
- package/dist/libs/shared/src/components/toggle-switch/ToggleSwitch.d.ts +1 -0
- package/dist/libs/shared/src/components/widgets/fixed-widget/FixedWidget.d.ts +4 -0
- package/dist/libs/shared/src/constants/WithStatements.d.ts +5 -0
- package/dist/libs/shared/src/enums/SettingName.d.ts +2 -1
- package/dist/libs/shared/src/flight-requests/PlaylistRequests.d.ts +3 -3
- package/dist/libs/shared/src/flight-requests/PreferenceRequests.d.ts +2 -2
- package/dist/libs/shared/src/flight-requests/UserRequests.d.ts +1 -0
- package/dist/libs/shared/src/images/svg/ImportedSvgs.d.ts +4 -1
- package/dist/libs/shared/src/images/svg/objects/index.d.ts +4 -1
- package/dist/libs/shared/src/interfaces/models/Avatar.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Customer.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/models/Playlist.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/models/Presentation.d.ts +2 -2
- package/dist/libs/shared/src/interfaces/models/User.d.ts +2 -1
- package/dist/libs/shared/src/interfaces/models/index.d.ts +2 -0
- package/dist/libs/shared/src/utils/UserHelper.d.ts +3 -0
- package/dist/projects/lite/src/app.d.ts +2 -1
- package/dist/projects/lite/src/apps/playlists/components/playlist-header/PlaylistHeader.d.ts +1 -1
- package/dist/projects/lite/src/apps/playlists/views/playlists/PlaylistsView.d.ts +0 -1
- package/dist/projects/lite/src/apps/search/utils/FilterHelper.d.ts +1 -1
- package/dist/projects/lite/src/apps/user-manager/interfaces/mocks/MockStudent.d.ts +0 -1
- package/dist/projects/lite/src/shared/components/user-options/UserOptions.d.ts +1 -0
- package/dist/scripts/0-50522b3859.chunk.js +1 -0
- package/dist/scripts/0-a394f6ba51.chunk.js +1 -0
- package/dist/scripts/0.chunk.js +346 -0
- package/dist/scripts/0.chunk.js.map +1 -0
- package/dist/scripts/1-5f19a96e0e.chunk.js +17 -0
- package/dist/scripts/1.chunk.js +656 -0
- package/dist/scripts/1.chunk.js.map +1 -0
- package/dist/scripts/10.chunk.js +607 -0
- package/dist/scripts/10.chunk.js.map +1 -0
- package/dist/scripts/11.chunk.js +380 -0
- package/dist/scripts/11.chunk.js.map +1 -0
- package/dist/scripts/12-30c98e5929.chunk.js +1 -0
- package/dist/scripts/12-b43caafe9d.chunk.js +1 -0
- package/dist/scripts/12.chunk.js +434 -0
- package/dist/scripts/12.chunk.js.map +1 -0
- package/dist/scripts/{13-55a4846990.chunk.js → 13-2f23193421.chunk.js} +1 -1
- package/dist/scripts/13-6981d3de8f.chunk.js +1 -0
- package/dist/scripts/13.chunk.js +1287 -0
- package/dist/scripts/13.chunk.js.map +1 -0
- package/dist/scripts/14-6e492c7088.chunk.js +1 -0
- package/dist/scripts/14-d110a60532.chunk.js +1 -0
- package/dist/scripts/14.chunk.js +739 -0
- package/dist/scripts/14.chunk.js.map +1 -0
- package/dist/scripts/15-00a639e1e2.chunk.js +1 -0
- package/dist/scripts/15-4b21593cdc.chunk.js +1 -0
- package/dist/scripts/15.chunk.js +808 -0
- package/dist/scripts/15.chunk.js.map +1 -0
- package/dist/scripts/16-8c55fc37a5.chunk.js +1 -0
- package/dist/scripts/16-fc5fb342de.chunk.js +1 -0
- package/dist/scripts/16.chunk.js +482 -0
- package/dist/scripts/16.chunk.js.map +1 -0
- package/dist/scripts/{17-955a29c4e0.chunk.js → 17-3c1d005bed.chunk.js} +1 -1
- package/dist/scripts/17-c95e61dec6.chunk.js +1 -0
- package/dist/scripts/17.chunk.js +766 -0
- package/dist/scripts/17.chunk.js.map +1 -0
- package/dist/scripts/{18-e6136d62c6.chunk.js → 18-0546a616e0.chunk.js} +1 -1
- package/dist/scripts/18-2366e66947.chunk.js +1 -0
- package/dist/scripts/18.chunk.js +647 -0
- package/dist/scripts/18.chunk.js.map +1 -0
- package/dist/scripts/{19-880910202d.chunk.js → 19-6166dd7d95.chunk.js} +1 -1
- package/dist/scripts/19-67e91b254a.chunk.js +1 -0
- package/dist/scripts/19.chunk.js +212 -0
- package/dist/scripts/19.chunk.js.map +1 -0
- package/dist/scripts/2-7c9b489c8f.chunk.js +1 -0
- package/dist/scripts/2-b9b8ae6df7.chunk.js +1 -0
- package/dist/scripts/2.chunk.js +859 -0
- package/dist/scripts/2.chunk.js.map +1 -0
- package/dist/scripts/{20-44be150b5d.chunk.js → 20-3084a104f8.chunk.js} +1 -1
- package/dist/scripts/20-6d9f7aa2a4.chunk.js +1 -0
- package/dist/scripts/20.chunk.js +1694 -0
- package/dist/scripts/20.chunk.js.map +1 -0
- package/dist/scripts/{21-0ed98b49d9.chunk.js → 21-2baf62770b.chunk.js} +1 -1
- package/dist/scripts/21-5949049d34.chunk.js +1 -0
- package/dist/scripts/21.chunk.js +1348 -0
- package/dist/scripts/21.chunk.js.map +1 -0
- package/dist/scripts/{22-0af19d7662.chunk.js → 22-4610dd4c22.chunk.js} +1 -1
- package/dist/scripts/22-d4db8ae24f.chunk.js +1 -0
- package/dist/scripts/22.chunk.js +1109 -0
- package/dist/scripts/22.chunk.js.map +1 -0
- package/dist/scripts/{23-864af936a5.chunk.js → 23-274e435f65.chunk.js} +1 -1
- package/dist/scripts/23-e8c0570d4f.chunk.js +1 -0
- package/dist/scripts/23.chunk.js +1144 -0
- package/dist/scripts/23.chunk.js.map +1 -0
- package/dist/scripts/{24-4d8f7bcedd.chunk.js → 24-9a76b40556.chunk.js} +1 -1
- package/dist/scripts/24-9c745baf04.chunk.js +1 -0
- package/dist/scripts/24.chunk.js +841 -0
- package/dist/scripts/24.chunk.js.map +1 -0
- package/dist/scripts/{25-8ace9850cd.chunk.js → 25-339ceebd38.chunk.js} +1 -1
- package/dist/scripts/25-fc58f37bb7.chunk.js +1 -0
- package/dist/scripts/25.chunk.js +956 -0
- package/dist/scripts/25.chunk.js.map +1 -0
- package/dist/scripts/26-50b8765208.chunk.js +1 -0
- package/dist/scripts/26-8779aa5972.chunk.js +1 -0
- package/dist/scripts/26.chunk.js +655 -0
- package/dist/scripts/26.chunk.js.map +1 -0
- package/dist/scripts/27-2e0582e3c5.chunk.js +1 -0
- package/dist/scripts/27-6d0e2b1308.chunk.js +1 -0
- package/dist/scripts/27.chunk.js +615 -0
- package/dist/scripts/27.chunk.js.map +1 -0
- package/dist/scripts/{28-fbaeae6ce9.chunk.js → 28-1546a0f0e2.chunk.js} +1 -1
- package/dist/scripts/28-604cc4e821.chunk.js +1 -0
- package/dist/scripts/28.chunk.js +622 -0
- package/dist/scripts/28.chunk.js.map +1 -0
- package/dist/scripts/{29-5cc304ffac.chunk.js → 29-77f2322249.chunk.js} +1 -1
- package/dist/scripts/29-e48cfa43c6.chunk.js +1 -0
- package/dist/scripts/29.chunk.js +721 -0
- package/dist/scripts/29.chunk.js.map +1 -0
- package/dist/scripts/3-b2e5a75e22.chunk.js +7 -0
- package/dist/scripts/3-fd65b2bb74.chunk.js +7 -0
- package/dist/scripts/3.chunk.js +18851 -0
- package/dist/scripts/3.chunk.js.map +1 -0
- package/dist/scripts/{31-b251e1cc9f.chunk.js → 30-926ab83f2b.chunk.js} +1 -1
- package/dist/scripts/30-f11047c1dd.chunk.js +1 -0
- package/dist/scripts/30.chunk.js +468 -0
- package/dist/scripts/30.chunk.js.map +1 -0
- package/dist/scripts/31-0d1e7212f8.chunk.js +1 -0
- package/dist/scripts/31-b437762b2e.chunk.js +1 -0
- package/dist/scripts/31.chunk.js +441 -0
- package/dist/scripts/31.chunk.js.map +1 -0
- package/dist/scripts/{32-89eee7291c.chunk.js → 32-8be947e35c.chunk.js} +1 -1
- package/dist/scripts/32-abadeccf08.chunk.js +1 -0
- package/dist/scripts/32.chunk.js +424 -0
- package/dist/scripts/32.chunk.js.map +1 -0
- package/dist/scripts/{33-fc331f7e45.chunk.js → 33-4acb319295.chunk.js} +1 -1
- package/dist/scripts/33-f65a2fba85.chunk.js +1 -0
- package/dist/scripts/33.chunk.js +638 -0
- package/dist/scripts/33.chunk.js.map +1 -0
- package/dist/scripts/{34-7abcf2c85d.chunk.js → 34-891e281505.chunk.js} +1 -1
- package/dist/scripts/34-9329d51dc2.chunk.js +1 -0
- package/dist/scripts/34.chunk.js +509 -0
- package/dist/scripts/34.chunk.js.map +1 -0
- package/dist/scripts/35-1536100df2.chunk.js +1 -0
- package/dist/scripts/35-9c9e7af68d.chunk.js +1 -0
- package/dist/scripts/35.chunk.js +957 -0
- package/dist/scripts/35.chunk.js.map +1 -0
- package/dist/scripts/{36-4487d884c4.chunk.js → 36-3f65f197f1.chunk.js} +1 -1
- package/dist/scripts/36-88f23c1af6.chunk.js +1 -0
- package/dist/scripts/36.chunk.js +938 -0
- package/dist/scripts/36.chunk.js.map +1 -0
- package/dist/scripts/{37-3756ebfbf8.chunk.js → 37-a833585532.chunk.js} +1 -1
- package/dist/scripts/37-cac99df2ec.chunk.js +1 -0
- package/dist/scripts/37.chunk.js +416 -0
- package/dist/scripts/37.chunk.js.map +1 -0
- package/dist/scripts/38-cd29a5bb33.chunk.js +1 -0
- package/dist/scripts/38-e8e6b09b5d.chunk.js +1 -0
- package/dist/scripts/38.chunk.js +482 -0
- package/dist/scripts/38.chunk.js.map +1 -0
- package/dist/scripts/39-41ed17d1f8.chunk.js +1 -0
- package/dist/scripts/39-549a0389b7.chunk.js +1 -0
- package/dist/scripts/39.chunk.js +245 -0
- package/dist/scripts/39.chunk.js.map +1 -0
- package/dist/scripts/4-0b79336993.chunk.js +1 -0
- package/dist/scripts/4-b611ebe99d.chunk.js +1 -0
- package/dist/scripts/4.chunk.js +403 -0
- package/dist/scripts/4.chunk.js.map +1 -0
- package/dist/scripts/40-9e01cffd38.chunk.js +1 -0
- package/dist/scripts/40-b754c5bf16.chunk.js +1 -0
- package/dist/scripts/40.chunk.js +337 -0
- package/dist/scripts/40.chunk.js.map +1 -0
- package/dist/scripts/{39-40fb064bfa.chunk.js → 41-3c305d8a8a.chunk.js} +1 -1
- package/dist/scripts/41-a5c400ad15.chunk.js +1 -0
- package/dist/scripts/41.chunk.js +350 -0
- package/dist/scripts/41.chunk.js.map +1 -0
- package/dist/scripts/{40-06a34b9e0e.chunk.js → 42-0079f90e3f.chunk.js} +1 -1
- package/dist/scripts/42-1854788acf.chunk.js +1 -0
- package/dist/scripts/42.chunk.js +381 -0
- package/dist/scripts/42.chunk.js.map +1 -0
- package/dist/scripts/{41-37fb45611f.chunk.js → 43-3d24bccf11.chunk.js} +1 -1
- package/dist/scripts/43-6f8279fdc6.chunk.js +1 -0
- package/dist/scripts/43.chunk.js +345 -0
- package/dist/scripts/43.chunk.js.map +1 -0
- package/dist/scripts/{42-2e0a141dd0.chunk.js → 44-067cac7c5c.chunk.js} +1 -1
- package/dist/scripts/44-273c2a48ec.chunk.js +1 -0
- package/dist/scripts/44.chunk.js +404 -0
- package/dist/scripts/44.chunk.js.map +1 -0
- package/dist/scripts/{43-3b21cd4021.chunk.js → 45-be8c19698d.chunk.js} +1 -1
- package/dist/scripts/45-d417ea05ac.chunk.js +1 -0
- package/dist/scripts/45.chunk.js +221 -0
- package/dist/scripts/45.chunk.js.map +1 -0
- package/dist/scripts/{46-92ef9358e1.chunk.js → 46-c94f8ad682.chunk.js} +1 -1
- package/dist/scripts/46-f1a37a04d3.chunk.js +1 -0
- package/dist/scripts/46.chunk.js +230 -0
- package/dist/scripts/46.chunk.js.map +1 -0
- package/dist/scripts/{47-73308b0e36.chunk.js → 47-7ff74e9140.chunk.js} +1 -1
- package/dist/scripts/47-c64b41de11.chunk.js +1 -0
- package/dist/scripts/47.chunk.js +409 -0
- package/dist/scripts/47.chunk.js.map +1 -0
- package/dist/scripts/{48-4e1c2af176.chunk.js → 48-277e2c2a38.chunk.js} +1 -1
- package/dist/scripts/48-4f33f35994.chunk.js +1 -0
- package/dist/scripts/48.chunk.js +272 -0
- package/dist/scripts/48.chunk.js.map +1 -0
- package/dist/scripts/{49-6860509ec9.chunk.js → 49-0a0303fc9b.chunk.js} +1 -1
- package/dist/scripts/49-9a37819019.chunk.js +1 -0
- package/dist/scripts/49.chunk.js +267 -0
- package/dist/scripts/49.chunk.js.map +1 -0
- package/dist/scripts/5-3b52becb23.chunk.js +1 -0
- package/dist/scripts/5-926010c03d.chunk.js +1 -0
- package/dist/scripts/5.chunk.js +1088 -0
- package/dist/scripts/5.chunk.js.map +1 -0
- package/dist/scripts/{50-ce92cdc08d.chunk.js → 50-30bb15a353.chunk.js} +1 -1
- package/dist/scripts/50-c5e8376786.chunk.js +1 -0
- package/dist/scripts/50.chunk.js +225 -0
- package/dist/scripts/50.chunk.js.map +1 -0
- package/dist/scripts/{51-f7ca510503.chunk.js → 51-020d240398.chunk.js} +1 -1
- package/dist/scripts/51-9bbad0bfb6.chunk.js +1 -0
- package/dist/scripts/51.chunk.js +318 -0
- package/dist/scripts/51.chunk.js.map +1 -0
- package/dist/scripts/{52-f1cd5fb0bf.chunk.js → 52-46cde58ace.chunk.js} +1 -1
- package/dist/scripts/52-fbaa41eb77.chunk.js +1 -0
- package/dist/scripts/52.chunk.js +64 -0
- package/dist/scripts/52.chunk.js.map +1 -0
- package/dist/scripts/{53-048ecda135.chunk.js → 53-527e7f7403.chunk.js} +1 -1
- package/dist/scripts/53-8faa05dc7b.chunk.js +1 -0
- package/dist/scripts/53.chunk.js +108 -0
- package/dist/scripts/53.chunk.js.map +1 -0
- package/dist/scripts/{54-65486573ee.chunk.js → 54-1d0763934e.chunk.js} +1 -1
- package/dist/scripts/54-3f6d4400a5.chunk.js +1 -0
- package/dist/scripts/54.chunk.js +110 -0
- package/dist/scripts/54.chunk.js.map +1 -0
- package/dist/scripts/{55-294432b05b.chunk.js → 55-6c166a980c.chunk.js} +1 -1
- package/dist/scripts/55-b7831607fd.chunk.js +1 -0
- package/dist/scripts/55.chunk.js +162 -0
- package/dist/scripts/55.chunk.js.map +1 -0
- package/dist/scripts/{56-386250e4ec.chunk.js → 56-5dc77fbbed.chunk.js} +1 -1
- package/dist/scripts/56-966257962b.chunk.js +1 -0
- package/dist/scripts/56.chunk.js +145 -0
- package/dist/scripts/56.chunk.js.map +1 -0
- package/dist/scripts/{57-b59de63c5a.chunk.js → 57-6f61e67fbb.chunk.js} +1 -1
- package/dist/scripts/57-7716124eee.chunk.js +1 -0
- package/dist/scripts/57.chunk.js +139 -0
- package/dist/scripts/57.chunk.js.map +1 -0
- package/dist/scripts/{58-5b7bee48c2.chunk.js → 58-0da9b42725.chunk.js} +1 -1
- package/dist/scripts/58-cbff52ace0.chunk.js +1 -0
- package/dist/scripts/58.chunk.js +142 -0
- package/dist/scripts/58.chunk.js.map +1 -0
- package/dist/scripts/{59-00659eeeca.chunk.js → 59-023ba91f45.chunk.js} +1 -1
- package/dist/scripts/59-39caa8ff7e.chunk.js +1 -0
- package/dist/scripts/59.chunk.js +173 -0
- package/dist/scripts/59.chunk.js.map +1 -0
- package/dist/scripts/{5-8cac703d8e.chunk.js → 6-081f3686a7.chunk.js} +1 -1
- package/dist/scripts/6-19163a3d76.chunk.js +1 -0
- package/dist/scripts/6.chunk.js +406 -0
- package/dist/scripts/6.chunk.js.map +1 -0
- package/dist/scripts/{60-d2c07fa4ea.chunk.js → 60-1b7fe463bf.chunk.js} +1 -1
- package/dist/scripts/60-6b95f83bfc.chunk.js +1 -0
- package/dist/scripts/60.chunk.js +160 -0
- package/dist/scripts/60.chunk.js.map +1 -0
- package/dist/scripts/{61-89b6e187bd.chunk.js → 61-e45710e150.chunk.js} +1 -1
- package/dist/scripts/61.chunk.js +98 -0
- package/dist/scripts/61.chunk.js.map +1 -0
- package/dist/scripts/62.chunk.js +48 -0
- package/dist/scripts/62.chunk.js.map +1 -0
- package/dist/scripts/63.chunk.js +32 -0
- package/dist/scripts/63.chunk.js.map +1 -0
- package/dist/scripts/64.chunk.js +29 -0
- package/dist/scripts/64.chunk.js.map +1 -0
- package/dist/scripts/65.chunk.js +27 -0
- package/dist/scripts/65.chunk.js.map +1 -0
- package/dist/scripts/66.chunk.js +65 -0
- package/dist/scripts/66.chunk.js.map +1 -0
- package/dist/scripts/67.chunk.js +67 -0
- package/dist/scripts/67.chunk.js.map +1 -0
- package/dist/scripts/68.chunk.js +104 -0
- package/dist/scripts/68.chunk.js.map +1 -0
- package/dist/scripts/69.chunk.js +102 -0
- package/dist/scripts/69.chunk.js.map +1 -0
- package/dist/scripts/7-49ae7b6074.chunk.js +1 -0
- package/dist/scripts/7-65ca87564a.chunk.js +1 -0
- package/dist/scripts/7.chunk.js +2614 -0
- package/dist/scripts/7.chunk.js.map +1 -0
- package/dist/scripts/70.chunk.js +1001 -0
- package/dist/scripts/70.chunk.js.map +1 -0
- package/dist/scripts/71.chunk.js +36 -0
- package/dist/scripts/71.chunk.js.map +1 -0
- package/dist/scripts/{8-d64d1cc3c2.chunk.js → 8-23f94941b7.chunk.js} +1 -1
- package/dist/scripts/8-cf6e1f3b76.chunk.js +1 -0
- package/dist/scripts/8.chunk.js +24 -0
- package/dist/scripts/8.chunk.js.map +1 -0
- package/dist/scripts/{9-45dbfb578e.chunk.js → 9-11c21b9609.chunk.js} +1 -1
- package/dist/scripts/9-593ef0b4f8.chunk.js +1 -0
- package/dist/scripts/9.chunk.js +327 -0
- package/dist/scripts/9.chunk.js.map +1 -0
- package/dist/scripts/bundle-2e43bd8225.min.js +8 -0
- package/dist/scripts/bundle-b9ea7224b0.min.js +8 -0
- package/dist/scripts/bundle.js +44515 -0
- package/dist/scripts/bundle.js.map +1 -0
- package/dist/scripts/bundles.json +2 -2
- package/dist/scripts/polyfills-69bebbe22a.min.js +1 -0
- package/dist/scripts/polyfills-bbe21b4875.min.js +1 -0
- package/dist/scripts/polyfills.js +15254 -0
- package/dist/scripts/polyfills.js.map +1 -0
- package/package.json +3 -3
- package/dist/libs/shared/src/apps/content-updates/interfaces/VideoClassificationMapping.d.ts +0 -5
- package/dist/libs/shared/src/apps/subjects/components/preferences/progress/PreferenceProgress.d.ts +0 -12
- package/dist/projects/lite/src/apps/playlists/interfaces/PlaylistCollectionIdentifier.d.ts +0 -5
- package/dist/projects/lite/src/shared/components/avatar/Avatar.d.ts +0 -6
- package/dist/scripts/0-06e6d224db.chunk.js +0 -1
- package/dist/scripts/1-887b4b1b62.chunk.js +0 -17
- package/dist/scripts/12-c3a787026a.chunk.js +0 -1
- package/dist/scripts/14-388f94a450.chunk.js +0 -1
- package/dist/scripts/15-77df8b5af3.chunk.js +0 -1
- package/dist/scripts/16-0ffeb64f54.chunk.js +0 -1
- package/dist/scripts/2-fd038171b4.chunk.js +0 -1
- package/dist/scripts/26-cdbba9cd45.chunk.js +0 -1
- package/dist/scripts/27-e37f663d43.chunk.js +0 -1
- package/dist/scripts/3-80777701d5.chunk.js +0 -7
- package/dist/scripts/30-eacfd37725.chunk.js +0 -1
- package/dist/scripts/35-6c3ad9d973.chunk.js +0 -1
- package/dist/scripts/38-dc36b72523.chunk.js +0 -1
- package/dist/scripts/4-921a74ad8c.chunk.js +0 -1
- package/dist/scripts/44-a689986917.chunk.js +0 -1
- package/dist/scripts/45-929a705c77.chunk.js +0 -1
- package/dist/scripts/6-176dc103e5.chunk.js +0 -1
- package/dist/scripts/7-26644d5b55.chunk.js +0 -1
- package/dist/scripts/bundle-697354e29e.min.js +0 -8
- package/dist/scripts/polyfills-b6dc96dd56.min.js +0 -1
|
@@ -0,0 +1,607 @@
|
|
|
1
|
+
(window["webpackJsonp_clickview_lite"] = window["webpackJsonp_clickview_lite"] || []).push([[10],{
|
|
2
|
+
|
|
3
|
+
/***/ "../../libs/shared/src/apps/playlists/enums/MigrationTaskStatus.ts":
|
|
4
|
+
/*!************************************************************************************************************!*\
|
|
5
|
+
!*** C:/ClickView Projects/clickview/packages/libs/shared/src/apps/playlists/enums/MigrationTaskStatus.ts ***!
|
|
6
|
+
\************************************************************************************************************/
|
|
7
|
+
/*! exports provided: MigrationTaskStatus */
|
|
8
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9
|
+
|
|
10
|
+
"use strict";
|
|
11
|
+
__webpack_require__.r(__webpack_exports__);
|
|
12
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MigrationTaskStatus", function() { return MigrationTaskStatus; });
|
|
13
|
+
var MigrationTaskStatus;
|
|
14
|
+
|
|
15
|
+
(function (MigrationTaskStatus) {
|
|
16
|
+
MigrationTaskStatus[MigrationTaskStatus["Queued"] = 1] = "Queued";
|
|
17
|
+
MigrationTaskStatus[MigrationTaskStatus["Processing"] = 2] = "Processing";
|
|
18
|
+
MigrationTaskStatus[MigrationTaskStatus["Processed"] = 3] = "Processed";
|
|
19
|
+
MigrationTaskStatus[MigrationTaskStatus["Errored"] = 4] = "Errored";
|
|
20
|
+
})(MigrationTaskStatus || (MigrationTaskStatus = {}));
|
|
21
|
+
|
|
22
|
+
/***/ }),
|
|
23
|
+
|
|
24
|
+
/***/ "../../libs/shared/src/apps/playlists/enums/PlaylistType.ts":
|
|
25
|
+
/*!*****************************************************************************************************!*\
|
|
26
|
+
!*** C:/ClickView Projects/clickview/packages/libs/shared/src/apps/playlists/enums/PlaylistType.ts ***!
|
|
27
|
+
\*****************************************************************************************************/
|
|
28
|
+
/*! exports provided: PlaylistType */
|
|
29
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
30
|
+
|
|
31
|
+
"use strict";
|
|
32
|
+
__webpack_require__.r(__webpack_exports__);
|
|
33
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlaylistType", function() { return PlaylistType; });
|
|
34
|
+
var PlaylistType;
|
|
35
|
+
|
|
36
|
+
(function (PlaylistType) {
|
|
37
|
+
PlaylistType["OwnedByMe"] = "owned_by_me";
|
|
38
|
+
PlaylistType["Followed"] = "followed";
|
|
39
|
+
PlaylistType["All"] = "all";
|
|
40
|
+
})(PlaylistType || (PlaylistType = {}));
|
|
41
|
+
|
|
42
|
+
/***/ }),
|
|
43
|
+
|
|
44
|
+
/***/ "../../libs/shared/src/apps/playlists/interfaces/identifiers/PlaylistCollectionIdentifier.ts":
|
|
45
|
+
/*!**************************************************************************************************************************************!*\
|
|
46
|
+
!*** C:/ClickView Projects/clickview/packages/libs/shared/src/apps/playlists/interfaces/identifiers/PlaylistCollectionIdentifier.ts ***!
|
|
47
|
+
\**************************************************************************************************************************************/
|
|
48
|
+
/*! exports provided: PlaylistCollectionIdentifier */
|
|
49
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
50
|
+
|
|
51
|
+
"use strict";
|
|
52
|
+
__webpack_require__.r(__webpack_exports__);
|
|
53
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlaylistCollectionIdentifier", function() { return PlaylistCollectionIdentifier; });
|
|
54
|
+
/* harmony import */ var _common_src_backbone_interfaces__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../common/src/backbone/interfaces */ "../../libs/common/src/backbone/interfaces/index.ts");
|
|
55
|
+
/* harmony import */ var _enums_PlaylistSortType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../enums/PlaylistSortType */ "../../libs/shared/src/apps/playlists/enums/PlaylistSortType.ts");
|
|
56
|
+
/* harmony import */ var _enums_PlaylistType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../enums/PlaylistType */ "../../libs/shared/src/apps/playlists/enums/PlaylistType.ts");
|
|
57
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
58
|
+
|
|
59
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
60
|
+
|
|
61
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
62
|
+
|
|
63
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
64
|
+
|
|
65
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
66
|
+
|
|
67
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
68
|
+
|
|
69
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
70
|
+
|
|
71
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
72
|
+
|
|
73
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
74
|
+
|
|
75
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
76
|
+
|
|
77
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
var PlaylistCollectionIdentifier = /*#__PURE__*/function (_BaseCollectionIdenti) {
|
|
83
|
+
_inherits(PlaylistCollectionIdentifier, _BaseCollectionIdenti);
|
|
84
|
+
|
|
85
|
+
var _super = _createSuper(PlaylistCollectionIdentifier);
|
|
86
|
+
|
|
87
|
+
function PlaylistCollectionIdentifier() {
|
|
88
|
+
var _this;
|
|
89
|
+
|
|
90
|
+
var sort = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _enums_PlaylistSortType__WEBPACK_IMPORTED_MODULE_1__["PlaylistSortType"].Newest;
|
|
91
|
+
var cursor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
92
|
+
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _enums_PlaylistType__WEBPACK_IMPORTED_MODULE_2__["PlaylistType"].OwnedByMe;
|
|
93
|
+
|
|
94
|
+
_classCallCheck(this, PlaylistCollectionIdentifier);
|
|
95
|
+
|
|
96
|
+
_this = _super.call(this, {
|
|
97
|
+
collectionPrefix: 'user:playlists',
|
|
98
|
+
cursor: cursor,
|
|
99
|
+
sort: sort
|
|
100
|
+
});
|
|
101
|
+
_this.type = type;
|
|
102
|
+
return _this;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
_createClass(PlaylistCollectionIdentifier, [{
|
|
106
|
+
key: "toString",
|
|
107
|
+
value: function toString() {
|
|
108
|
+
var params = [this.collectionPrefix, this.sort, this.cursor, this.type];
|
|
109
|
+
return params.filter(Boolean).join(':');
|
|
110
|
+
}
|
|
111
|
+
}]);
|
|
112
|
+
|
|
113
|
+
return PlaylistCollectionIdentifier;
|
|
114
|
+
}(_common_src_backbone_interfaces__WEBPACK_IMPORTED_MODULE_0__["BaseCollectionIdentifier"]);
|
|
115
|
+
|
|
116
|
+
/***/ }),
|
|
117
|
+
|
|
118
|
+
/***/ "../../libs/shared/src/apps/playlists/interfaces/identifiers/PlaylistVideoCollectionIdentifier.ts":
|
|
119
|
+
/*!*******************************************************************************************************************************************!*\
|
|
120
|
+
!*** C:/ClickView Projects/clickview/packages/libs/shared/src/apps/playlists/interfaces/identifiers/PlaylistVideoCollectionIdentifier.ts ***!
|
|
121
|
+
\*******************************************************************************************************************************************/
|
|
122
|
+
/*! exports provided: PlaylistVideoCollectionIdentifier */
|
|
123
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
124
|
+
|
|
125
|
+
"use strict";
|
|
126
|
+
__webpack_require__.r(__webpack_exports__);
|
|
127
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlaylistVideoCollectionIdentifier", function() { return PlaylistVideoCollectionIdentifier; });
|
|
128
|
+
/* harmony import */ var _common_src_backbone_interfaces__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../common/src/backbone/interfaces */ "../../libs/common/src/backbone/interfaces/index.ts");
|
|
129
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
130
|
+
|
|
131
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
132
|
+
|
|
133
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
134
|
+
|
|
135
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
136
|
+
|
|
137
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
138
|
+
|
|
139
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
140
|
+
|
|
141
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
142
|
+
|
|
143
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
144
|
+
|
|
145
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
var PlaylistVideoCollectionIdentifier = /*#__PURE__*/function (_BaseCollectionIdenti) {
|
|
149
|
+
_inherits(PlaylistVideoCollectionIdentifier, _BaseCollectionIdenti);
|
|
150
|
+
|
|
151
|
+
var _super = _createSuper(PlaylistVideoCollectionIdentifier);
|
|
152
|
+
|
|
153
|
+
function PlaylistVideoCollectionIdentifier(id) {
|
|
154
|
+
var cursor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
155
|
+
|
|
156
|
+
_classCallCheck(this, PlaylistVideoCollectionIdentifier);
|
|
157
|
+
|
|
158
|
+
return _super.call(this, {
|
|
159
|
+
collectionPrefix: 'playlist:videos',
|
|
160
|
+
id: id,
|
|
161
|
+
cursor: cursor
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
return PlaylistVideoCollectionIdentifier;
|
|
166
|
+
}(_common_src_backbone_interfaces__WEBPACK_IMPORTED_MODULE_0__["BaseCollectionIdentifier"]);
|
|
167
|
+
|
|
168
|
+
/***/ }),
|
|
169
|
+
|
|
170
|
+
/***/ "../../libs/shared/src/apps/playlists/interfaces/identifiers/index.ts":
|
|
171
|
+
/*!***************************************************************************************************************!*\
|
|
172
|
+
!*** C:/ClickView Projects/clickview/packages/libs/shared/src/apps/playlists/interfaces/identifiers/index.ts ***!
|
|
173
|
+
\***************************************************************************************************************/
|
|
174
|
+
/*! exports provided: PlaylistCollectionIdentifier, PlaylistVideoCollectionIdentifier */
|
|
175
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
176
|
+
|
|
177
|
+
"use strict";
|
|
178
|
+
__webpack_require__.r(__webpack_exports__);
|
|
179
|
+
/* harmony import */ var _PlaylistCollectionIdentifier__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PlaylistCollectionIdentifier */ "../../libs/shared/src/apps/playlists/interfaces/identifiers/PlaylistCollectionIdentifier.ts");
|
|
180
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PlaylistCollectionIdentifier", function() { return _PlaylistCollectionIdentifier__WEBPACK_IMPORTED_MODULE_0__["PlaylistCollectionIdentifier"]; });
|
|
181
|
+
|
|
182
|
+
/* harmony import */ var _PlaylistVideoCollectionIdentifier__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PlaylistVideoCollectionIdentifier */ "../../libs/shared/src/apps/playlists/interfaces/identifiers/PlaylistVideoCollectionIdentifier.ts");
|
|
183
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PlaylistVideoCollectionIdentifier", function() { return _PlaylistVideoCollectionIdentifier__WEBPACK_IMPORTED_MODULE_1__["PlaylistVideoCollectionIdentifier"]; });
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
/***/ }),
|
|
189
|
+
|
|
190
|
+
/***/ "../../libs/shared/src/apps/playlists/interfaces/index.ts":
|
|
191
|
+
/*!***************************************************************************************************!*\
|
|
192
|
+
!*** C:/ClickView Projects/clickview/packages/libs/shared/src/apps/playlists/interfaces/index.ts ***!
|
|
193
|
+
\***************************************************************************************************/
|
|
194
|
+
/*! exports provided: PlaylistCollectionIdentifier, PlaylistVideoCollectionIdentifier */
|
|
195
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
196
|
+
|
|
197
|
+
"use strict";
|
|
198
|
+
__webpack_require__.r(__webpack_exports__);
|
|
199
|
+
/* harmony import */ var _identifiers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./identifiers */ "../../libs/shared/src/apps/playlists/interfaces/identifiers/index.ts");
|
|
200
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PlaylistCollectionIdentifier", function() { return _identifiers__WEBPACK_IMPORTED_MODULE_0__["PlaylistCollectionIdentifier"]; });
|
|
201
|
+
|
|
202
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PlaylistVideoCollectionIdentifier", function() { return _identifiers__WEBPACK_IMPORTED_MODULE_0__["PlaylistVideoCollectionIdentifier"]; });
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
/***/ }),
|
|
207
|
+
|
|
208
|
+
/***/ "../../libs/shared/src/apps/playlists/utils/PlaylistStateUpdateHelper.ts":
|
|
209
|
+
/*!******************************************************************************************************************!*\
|
|
210
|
+
!*** C:/ClickView Projects/clickview/packages/libs/shared/src/apps/playlists/utils/PlaylistStateUpdateHelper.ts ***!
|
|
211
|
+
\******************************************************************************************************************/
|
|
212
|
+
/*! exports provided: PlaylistStateUpdateHelper */
|
|
213
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
214
|
+
|
|
215
|
+
"use strict";
|
|
216
|
+
__webpack_require__.r(__webpack_exports__);
|
|
217
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlaylistStateUpdateHelper", function() { return PlaylistStateUpdateHelper; });
|
|
218
|
+
var PlaylistStateUpdateHelper = {
|
|
219
|
+
updatePlaylist: function updatePlaylist(key, newPlaylist) {
|
|
220
|
+
return function (state) {
|
|
221
|
+
var updatedState = Object.assign({}, state);
|
|
222
|
+
if (updatedState.hasOwnProperty(key)) updatedState[key] = Object.assign(Object.assign({}, updatedState[key]), newPlaylist);
|
|
223
|
+
return updatedState;
|
|
224
|
+
};
|
|
225
|
+
},
|
|
226
|
+
deletePlaylist: function deletePlaylist(key) {
|
|
227
|
+
return function (state) {
|
|
228
|
+
var updatedState = Object.assign({}, state);
|
|
229
|
+
if (updatedState.hasOwnProperty(key)) delete updatedState[key];
|
|
230
|
+
return updatedState;
|
|
231
|
+
};
|
|
232
|
+
},
|
|
233
|
+
incrementVideoCount: function incrementVideoCount(key, count) {
|
|
234
|
+
return function (state) {
|
|
235
|
+
var updatedState = Object.assign({}, state);
|
|
236
|
+
if (!updatedState.hasOwnProperty(key)) return state;
|
|
237
|
+
if (!updatedState[key].videos) updatedState[key].videos = {};
|
|
238
|
+
updatedState[key].videos.count = updatedState[key].videos.count ? updatedState[key].videos.count + count : count;
|
|
239
|
+
return updatedState;
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
/***/ }),
|
|
245
|
+
|
|
246
|
+
/***/ "../../libs/shared/src/flight-requests/PlaylistRequests.ts":
|
|
247
|
+
/*!****************************************************************************************************!*\
|
|
248
|
+
!*** C:/ClickView Projects/clickview/packages/libs/shared/src/flight-requests/PlaylistRequests.ts ***!
|
|
249
|
+
\****************************************************************************************************/
|
|
250
|
+
/*! exports provided: PlaylistRequests */
|
|
251
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
252
|
+
|
|
253
|
+
"use strict";
|
|
254
|
+
__webpack_require__.r(__webpack_exports__);
|
|
255
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlaylistRequests", function() { return PlaylistRequests; });
|
|
256
|
+
/* harmony import */ var _common_src_backbone_enums_HttpVerbs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/src/backbone/enums/HttpVerbs */ "../../libs/common/src/backbone/enums/HttpVerbs.ts");
|
|
257
|
+
/* harmony import */ var _constants_WithStatements__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../constants/WithStatements */ "../../libs/shared/src/constants/WithStatements.ts");
|
|
258
|
+
/* harmony import */ var _utils_ReorderHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/ReorderHelper */ "../../libs/shared/src/utils/ReorderHelper.ts");
|
|
259
|
+
/* harmony import */ var _apps_playlists_interfaces__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../apps/playlists/interfaces */ "../../libs/shared/src/apps/playlists/interfaces/index.ts");
|
|
260
|
+
/* harmony import */ var _apps_playlists_enums_MigrationTaskStatus__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../apps/playlists/enums/MigrationTaskStatus */ "../../libs/shared/src/apps/playlists/enums/MigrationTaskStatus.ts");
|
|
261
|
+
/* harmony import */ var _apps_playlists_utils_PlaylistStateUpdateHelper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../apps/playlists/utils/PlaylistStateUpdateHelper */ "../../libs/shared/src/apps/playlists/utils/PlaylistStateUpdateHelper.ts");
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
var addCursor = function addCursor(cursor) {
|
|
270
|
+
return cursor ? "&cursor=".concat(cursor) : '';
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
var addMaxRatingValue = function addMaxRatingValue(maxRatingValue) {
|
|
274
|
+
return Number.isInteger(maxRatingValue) ? "&maxRatingValue=".concat(maxRatingValue) : '';
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
var getDataPrefixWithCursor = function getDataPrefixWithCursor(key, cursor) {
|
|
278
|
+
return "".concat(key).concat(cursor ? ":".concat(cursor) : '');
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
var PlaylistRequests = {
|
|
282
|
+
getPlaylist: function getPlaylist(id, success, error) {
|
|
283
|
+
return {
|
|
284
|
+
url: "/api/domain/v2/objects/".concat(id, "?query=").concat(_constants_WithStatements__WEBPACK_IMPORTED_MODULE_1__["SharedWithStatements"].PLAYLIST),
|
|
285
|
+
key: "playlist:".concat(id),
|
|
286
|
+
success: success,
|
|
287
|
+
error: error
|
|
288
|
+
};
|
|
289
|
+
},
|
|
290
|
+
getSharedPlaylist: function getSharedPlaylist(shareCode, maxAllowedRating, success, error) {
|
|
291
|
+
var baseUrl = "/api/domain/v2/share/".concat(shareCode);
|
|
292
|
+
return {
|
|
293
|
+
url: "".concat(baseUrl, "?query=").concat(_constants_WithStatements__WEBPACK_IMPORTED_MODULE_1__["SharedWithStatements"].PLAYLIST).concat(addMaxRatingValue(maxAllowedRating)),
|
|
294
|
+
key: "shared:playlist:".concat(shareCode),
|
|
295
|
+
success: success,
|
|
296
|
+
error: error
|
|
297
|
+
};
|
|
298
|
+
},
|
|
299
|
+
getUserPlaylists: function getUserPlaylists(collectionIdentifier) {
|
|
300
|
+
var sort = collectionIdentifier.sort,
|
|
301
|
+
type = collectionIdentifier.type;
|
|
302
|
+
return {
|
|
303
|
+
url: "/api/domain/v2/me/playlists/".concat(type, "?sort=").concat(sort, "&query={limit:100}") + "".concat(_constants_WithStatements__WEBPACK_IMPORTED_MODULE_1__["SharedWithStatements"].PLAYLIST_COLLECTION).concat(addCursor(collectionIdentifier.cursor)),
|
|
304
|
+
key: collectionIdentifier.toString()
|
|
305
|
+
};
|
|
306
|
+
},
|
|
307
|
+
getPlaylistVideos: function getPlaylistVideos(id, maxAllowedRating, cursor) {
|
|
308
|
+
var filter = 'orderBy:orderindex,limit:100';
|
|
309
|
+
if (Number.isInteger(maxAllowedRating)) filter += ",rating.value:0...".concat(maxAllowedRating);
|
|
310
|
+
return {
|
|
311
|
+
url: "/api/domain/v2/objects/".concat(id, "/videos?query={").concat(filter, "}") + "".concat(_constants_WithStatements__WEBPACK_IMPORTED_MODULE_1__["SharedWithStatements"].VIDEO_COLLECTION).concat(addCursor(cursor)),
|
|
312
|
+
key: getDataPrefixWithCursor("playlist:".concat(id, ":videos"), cursor)
|
|
313
|
+
};
|
|
314
|
+
},
|
|
315
|
+
getSharedPlaylistVideos: function getSharedPlaylistVideos(shareCode, maxAllowedRating, cursor) {
|
|
316
|
+
return {
|
|
317
|
+
url: "/api/domain/v2/share/".concat(shareCode, "/videos?query={orderBy:orderindex,limit:100}") + "".concat(_constants_WithStatements__WEBPACK_IMPORTED_MODULE_1__["SharedWithStatements"].SHARED_PLAYLIST_VIDEO_COLLECTION) + "".concat(addCursor(cursor)).concat(addMaxRatingValue(maxAllowedRating)),
|
|
318
|
+
key: getDataPrefixWithCursor("shared:playlist:".concat(shareCode, ":videos"), cursor)
|
|
319
|
+
};
|
|
320
|
+
},
|
|
321
|
+
getVideoPlaylists: function getVideoPlaylists(videoId, userId, cursor) {
|
|
322
|
+
return {
|
|
323
|
+
url: "/api/domain/v2/objects/".concat(videoId, "/playlists?query={limit:100,owner.id:[").concat(userId, "]}"),
|
|
324
|
+
key: getDataPrefixWithCursor("video:playlists:".concat(videoId), cursor)
|
|
325
|
+
};
|
|
326
|
+
},
|
|
327
|
+
createPlaylist: function createPlaylist(userId, data, success, error) {
|
|
328
|
+
return {
|
|
329
|
+
key: 'create:playlist',
|
|
330
|
+
url: "/api/domain/v2/objects/".concat(userId, "/playlists"),
|
|
331
|
+
data: data,
|
|
332
|
+
type: _common_src_backbone_enums_HttpVerbs__WEBPACK_IMPORTED_MODULE_0__["HttpVerbs"].POST,
|
|
333
|
+
success: success,
|
|
334
|
+
error: error,
|
|
335
|
+
invalidationKeys: 'user:playlists'
|
|
336
|
+
};
|
|
337
|
+
},
|
|
338
|
+
updatePlaylist: function updatePlaylist(id, data, success, error) {
|
|
339
|
+
return {
|
|
340
|
+
key: 'update:playlist',
|
|
341
|
+
url: "/api/domain/v2/objects/".concat(id),
|
|
342
|
+
data: data,
|
|
343
|
+
type: _common_src_backbone_enums_HttpVerbs__WEBPACK_IMPORTED_MODULE_0__["HttpVerbs"].PUT,
|
|
344
|
+
success: success,
|
|
345
|
+
error: error,
|
|
346
|
+
updateState: {
|
|
347
|
+
keys: "playlist:".concat(id),
|
|
348
|
+
updateData: _apps_playlists_utils_PlaylistStateUpdateHelper__WEBPACK_IMPORTED_MODULE_5__["PlaylistStateUpdateHelper"].updatePlaylist("playlist:".concat(id), data)
|
|
349
|
+
}
|
|
350
|
+
};
|
|
351
|
+
},
|
|
352
|
+
deletePlaylist: function deletePlaylist(id, success, error) {
|
|
353
|
+
return {
|
|
354
|
+
key: 'delete:playlist',
|
|
355
|
+
url: "/api/domain/v2/objects/".concat(id),
|
|
356
|
+
type: _common_src_backbone_enums_HttpVerbs__WEBPACK_IMPORTED_MODULE_0__["HttpVerbs"].DELETE,
|
|
357
|
+
success: success,
|
|
358
|
+
error: error,
|
|
359
|
+
invalidationKeys: 'user:playlists',
|
|
360
|
+
updateState: {
|
|
361
|
+
keys: "playlist:".concat(id),
|
|
362
|
+
updateData: _apps_playlists_utils_PlaylistStateUpdateHelper__WEBPACK_IMPORTED_MODULE_5__["PlaylistStateUpdateHelper"].deletePlaylist("playlist:".concat(id))
|
|
363
|
+
}
|
|
364
|
+
};
|
|
365
|
+
},
|
|
366
|
+
addToPlaylist: function addToPlaylist(playlistId, videoIds, success, error) {
|
|
367
|
+
/**
|
|
368
|
+
* Invalidate:
|
|
369
|
+
* - Playlists as they are fetched with first video.
|
|
370
|
+
* - Playlist video collection.
|
|
371
|
+
* - Playlists for each video.
|
|
372
|
+
*/
|
|
373
|
+
var invalidationKeys = ['user:playlists', new _apps_playlists_interfaces__WEBPACK_IMPORTED_MODULE_3__["PlaylistVideoCollectionIdentifier"](playlistId).toString()];
|
|
374
|
+
videoIds.forEach(function (id) {
|
|
375
|
+
invalidationKeys.push("video:playlists:".concat(id));
|
|
376
|
+
});
|
|
377
|
+
return {
|
|
378
|
+
key: 'add:to:playlist',
|
|
379
|
+
url: "/api/domain/v2/objects/".concat(playlistId, "/associate"),
|
|
380
|
+
data: videoIds,
|
|
381
|
+
type: _common_src_backbone_enums_HttpVerbs__WEBPACK_IMPORTED_MODULE_0__["HttpVerbs"].POST,
|
|
382
|
+
success: success,
|
|
383
|
+
error: error,
|
|
384
|
+
invalidationKeys: invalidationKeys,
|
|
385
|
+
updateState: {
|
|
386
|
+
keys: "playlist:".concat(playlistId),
|
|
387
|
+
updateData: _apps_playlists_utils_PlaylistStateUpdateHelper__WEBPACK_IMPORTED_MODULE_5__["PlaylistStateUpdateHelper"].incrementVideoCount("playlist:".concat(playlistId), videoIds.length)
|
|
388
|
+
}
|
|
389
|
+
};
|
|
390
|
+
},
|
|
391
|
+
reorderVideos: function reorderVideos(id, reorderRequest, success, error) {
|
|
392
|
+
return {
|
|
393
|
+
key: "reorder:playlist",
|
|
394
|
+
url: "/api/domain/v2/objects/".concat(id, "/videos/reorder"),
|
|
395
|
+
data: reorderRequest,
|
|
396
|
+
type: _common_src_backbone_enums_HttpVerbs__WEBPACK_IMPORTED_MODULE_0__["HttpVerbs"].PUT,
|
|
397
|
+
success: success,
|
|
398
|
+
error: error,
|
|
399
|
+
// Invalidate playlists as they are fetched with the first video.
|
|
400
|
+
invalidationKeys: 'user:playlists',
|
|
401
|
+
updateState: {
|
|
402
|
+
keys: "playlist:".concat(id, ":videos"),
|
|
403
|
+
updateData: function updateData(data) {
|
|
404
|
+
return _utils_ReorderHelper__WEBPACK_IMPORTED_MODULE_2__["ReorderHelper"].updateState("playlist:".concat(id, ":videos"), reorderRequest, data);
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
};
|
|
408
|
+
},
|
|
409
|
+
removePlaylistVideo: function removePlaylistVideo(playlistId, videoId, success, error) {
|
|
410
|
+
return {
|
|
411
|
+
key: 'remove:playlist:video',
|
|
412
|
+
url: "/api/domain/v2/objects/".concat(playlistId, "/dissociate?memberId=").concat(videoId),
|
|
413
|
+
type: _common_src_backbone_enums_HttpVerbs__WEBPACK_IMPORTED_MODULE_0__["HttpVerbs"].DELETE,
|
|
414
|
+
success: success,
|
|
415
|
+
error: error,
|
|
416
|
+
// Invalidate playlists as they are fetched with the first video.
|
|
417
|
+
invalidationKeys: ['user:playlists', "playlist:".concat(playlistId, ":videos")]
|
|
418
|
+
};
|
|
419
|
+
},
|
|
420
|
+
getIsFollowingPlaylist: function getIsFollowingPlaylist(playlistId, userId) {
|
|
421
|
+
var formatData = function formatData(data) {
|
|
422
|
+
var _a, _b;
|
|
423
|
+
|
|
424
|
+
return {
|
|
425
|
+
objectId: playlistId,
|
|
426
|
+
isFollowing: !!((_b = (_a = data) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.length)
|
|
427
|
+
};
|
|
428
|
+
};
|
|
429
|
+
|
|
430
|
+
return {
|
|
431
|
+
url: "/api/domain/v2/objects/".concat(userId, "/followedPlaylists?query={id:").concat(playlistId, "}"),
|
|
432
|
+
key: "playlist:".concat(playlistId, ":following:").concat(userId),
|
|
433
|
+
formatData: formatData,
|
|
434
|
+
normalize: false
|
|
435
|
+
};
|
|
436
|
+
},
|
|
437
|
+
followPlaylist: function followPlaylist(playlistId, userId, success, error, always) {
|
|
438
|
+
return {
|
|
439
|
+
url: "/api/domain/v2/objects/".concat(userId),
|
|
440
|
+
key: "follow:playlist:".concat(playlistId),
|
|
441
|
+
data: {
|
|
442
|
+
followedPlaylists: playlistId
|
|
443
|
+
},
|
|
444
|
+
type: _common_src_backbone_enums_HttpVerbs__WEBPACK_IMPORTED_MODULE_0__["HttpVerbs"].PUT,
|
|
445
|
+
invalidationKeys: ['user:playlists', "playlist:".concat(playlistId, ":following:").concat(userId)],
|
|
446
|
+
success: success,
|
|
447
|
+
error: error,
|
|
448
|
+
always: always
|
|
449
|
+
};
|
|
450
|
+
},
|
|
451
|
+
unfollowPlaylist: function unfollowPlaylist(playlistId, userId, success, error, always) {
|
|
452
|
+
return {
|
|
453
|
+
url: "/api/domain/v2/objects/".concat(userId, "/followedplaylists/").concat(playlistId),
|
|
454
|
+
key: "unfollow:playlist:".concat(playlistId),
|
|
455
|
+
type: _common_src_backbone_enums_HttpVerbs__WEBPACK_IMPORTED_MODULE_0__["HttpVerbs"].DELETE,
|
|
456
|
+
invalidationKeys: ['user:playlists', "playlist:".concat(playlistId, ":following:").concat(userId)],
|
|
457
|
+
success: success,
|
|
458
|
+
error: error,
|
|
459
|
+
always: always
|
|
460
|
+
};
|
|
461
|
+
},
|
|
462
|
+
getPlaylistPrivacy: function getPlaylistPrivacy(playlistId) {
|
|
463
|
+
return {
|
|
464
|
+
key: "playlist:privacy:".concat(playlistId),
|
|
465
|
+
url: "/api/domain/v1/playlists/".concat(playlistId, "/privacy"),
|
|
466
|
+
formatData: function formatData(privacy) {
|
|
467
|
+
return {
|
|
468
|
+
id: playlistId,
|
|
469
|
+
privacy: privacy
|
|
470
|
+
};
|
|
471
|
+
}
|
|
472
|
+
};
|
|
473
|
+
},
|
|
474
|
+
updatePlaylistPrivacy: function updatePlaylistPrivacy(playlistId, privacy, success, error, always) {
|
|
475
|
+
return {
|
|
476
|
+
key: "update:playlist:privacy:".concat(playlistId),
|
|
477
|
+
url: "/api/domain/v1/playlists/".concat(playlistId, "/privacy"),
|
|
478
|
+
type: _common_src_backbone_enums_HttpVerbs__WEBPACK_IMPORTED_MODULE_0__["HttpVerbs"].PUT,
|
|
479
|
+
data: {
|
|
480
|
+
privacy: privacy
|
|
481
|
+
},
|
|
482
|
+
formatData: function formatData() {
|
|
483
|
+
return {
|
|
484
|
+
id: playlistId,
|
|
485
|
+
privacy: privacy
|
|
486
|
+
};
|
|
487
|
+
},
|
|
488
|
+
success: success,
|
|
489
|
+
error: error,
|
|
490
|
+
always: always
|
|
491
|
+
};
|
|
492
|
+
},
|
|
493
|
+
getMigrationTask: function getMigrationTask(success, error) {
|
|
494
|
+
return {
|
|
495
|
+
url: '/api/playlist-app/migration-task',
|
|
496
|
+
key: 'migration:task',
|
|
497
|
+
formatData: function formatData(data) {
|
|
498
|
+
return data || {
|
|
499
|
+
status: _apps_playlists_enums_MigrationTaskStatus__WEBPACK_IMPORTED_MODULE_4__["MigrationTaskStatus"].Processed
|
|
500
|
+
};
|
|
501
|
+
},
|
|
502
|
+
success: success,
|
|
503
|
+
error: error
|
|
504
|
+
};
|
|
505
|
+
}
|
|
506
|
+
};
|
|
507
|
+
|
|
508
|
+
/***/ }),
|
|
509
|
+
|
|
510
|
+
/***/ "../../libs/shared/src/utils/ReorderHelper.ts":
|
|
511
|
+
/*!***************************************************************************************!*\
|
|
512
|
+
!*** C:/ClickView Projects/clickview/packages/libs/shared/src/utils/ReorderHelper.ts ***!
|
|
513
|
+
\***************************************************************************************/
|
|
514
|
+
/*! exports provided: ReorderHelper */
|
|
515
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
516
|
+
|
|
517
|
+
"use strict";
|
|
518
|
+
__webpack_require__.r(__webpack_exports__);
|
|
519
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReorderHelper", function() { return ReorderHelper; });
|
|
520
|
+
/* harmony import */ var _common_src_react_utils_ArrayHelper__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/src/react/utils/ArrayHelper */ "../../libs/common/src/react/utils/ArrayHelper.ts");
|
|
521
|
+
/* harmony import */ var _common_src_react_utils_ObjectHelper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../common/src/react/utils/ObjectHelper */ "../../libs/common/src/react/utils/ObjectHelper.ts");
|
|
522
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
523
|
+
|
|
524
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
525
|
+
|
|
526
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
527
|
+
|
|
528
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
529
|
+
|
|
530
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
531
|
+
|
|
532
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
var ReorderHelper = {
|
|
537
|
+
reorder: function reorder(items, oldIdx, newIdx) {
|
|
538
|
+
if (oldIdx === newIdx) return {
|
|
539
|
+
reorderedItems: items,
|
|
540
|
+
reorderRequest: null
|
|
541
|
+
};
|
|
542
|
+
var reorderedItems = _common_src_react_utils_ArrayHelper__WEBPACK_IMPORTED_MODULE_0__["ArrayHelper"].moveItem(items, oldIdx, newIdx);
|
|
543
|
+
/**
|
|
544
|
+
* If newIdx is the last idx then we set
|
|
545
|
+
* destinationMemberId to null.
|
|
546
|
+
*/
|
|
547
|
+
|
|
548
|
+
var destinationMemberId = newIdx < items.length - 1 ? reorderedItems[newIdx + 1].id : null;
|
|
549
|
+
var reorderRequest = {
|
|
550
|
+
sourceMemberId: reorderedItems[newIdx].id,
|
|
551
|
+
destinationMemberId: destinationMemberId
|
|
552
|
+
};
|
|
553
|
+
return {
|
|
554
|
+
reorderedItems: reorderedItems,
|
|
555
|
+
reorderRequest: reorderRequest
|
|
556
|
+
};
|
|
557
|
+
},
|
|
558
|
+
updateState: function updateState(dataPrefix, reorderRequest, data) {
|
|
559
|
+
var items = [];
|
|
560
|
+
var updatedData = _common_src_react_utils_ObjectHelper__WEBPACK_IMPORTED_MODULE_1__["ObjectHelper"].deepClone(data);
|
|
561
|
+
var keys = [dataPrefix]; // Maintain an ordered list of keys.
|
|
562
|
+
|
|
563
|
+
var page = data[dataPrefix];
|
|
564
|
+
var pageSize = !!page && !!page.data && page.data.length;
|
|
565
|
+
/**
|
|
566
|
+
* Flatten items
|
|
567
|
+
*/
|
|
568
|
+
|
|
569
|
+
while (page) {
|
|
570
|
+
if (!Array.isArray(page.data)) break;
|
|
571
|
+
items.push.apply(items, _toConsumableArray(page.data));
|
|
572
|
+
var nextCursor = page.pagination && page.pagination.cursors && page.pagination.cursors.next;
|
|
573
|
+
var nextKey = !!nextCursor && "".concat(dataPrefix, ":").concat(nextCursor);
|
|
574
|
+
page = nextCursor && data[nextKey];
|
|
575
|
+
if (page) keys.push(nextKey);
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
if (!items.length) return data;
|
|
579
|
+
/**
|
|
580
|
+
* Reorder items
|
|
581
|
+
*/
|
|
582
|
+
|
|
583
|
+
var removeIdx = _common_src_react_utils_ArrayHelper__WEBPACK_IMPORTED_MODULE_0__["ArrayHelper"].findIndex(items, function (i) {
|
|
584
|
+
return i.id === reorderRequest.sourceMemberId;
|
|
585
|
+
});
|
|
586
|
+
var reorderedItems = [].concat(items);
|
|
587
|
+
var itemToMove = reorderedItems.splice(removeIdx, 1);
|
|
588
|
+
var insertIdx = reorderRequest.destinationMemberId ? _common_src_react_utils_ArrayHelper__WEBPACK_IMPORTED_MODULE_0__["ArrayHelper"].findIndex(reorderedItems, function (r) {
|
|
589
|
+
return r.id === reorderRequest.destinationMemberId;
|
|
590
|
+
}) : reorderedItems.length;
|
|
591
|
+
reorderedItems.splice(insertIdx, 0, itemToMove[0]);
|
|
592
|
+
/**
|
|
593
|
+
* Paginate reordered items
|
|
594
|
+
*/
|
|
595
|
+
|
|
596
|
+
keys.forEach(function (key) {
|
|
597
|
+
var itemsToInsert = reorderedItems.splice(0, pageSize);
|
|
598
|
+
updatedData[key].data = itemsToInsert;
|
|
599
|
+
});
|
|
600
|
+
return updatedData;
|
|
601
|
+
}
|
|
602
|
+
};
|
|
603
|
+
|
|
604
|
+
/***/ })
|
|
605
|
+
|
|
606
|
+
}]);
|
|
607
|
+
//# sourceMappingURL=10.chunk.js.map
|