@clickview/library-editor 1.1.27-dev.0 → 1.1.27-rc.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.
- package/dist/css/23.chunk.css +5 -3
- package/dist/css/25.chunk.css +3 -1
- package/dist/css/library-editor-app.css +2 -2
- package/dist/en.json +1 -1
- package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +2 -0
- package/dist/libs/common/src/backbone/core/BaseAppRouter.d.ts +5 -1
- package/dist/libs/common/src/backbone/core/index.d.ts +1 -1
- package/dist/libs/common/src/backbone/utils/LocalStorageHelper.d.ts +1 -1
- package/dist/libs/shared/src/apps/search/components/instant-search/series/SeriesSearchResultComponent.d.ts +5 -0
- package/dist/libs/shared/src/apps/search/enums/SearchQueryType.d.ts +1 -1
- package/dist/libs/shared/src/apps/search/views/search-bar/SearchBarView.d.ts +3 -0
- package/dist/libs/shared/src/constants/BootstrapKeys.d.ts +1 -0
- package/dist/libs/shared/src/enums/MediaQueries.d.ts +3 -1
- package/dist/libs/shared/src/enums/ResourceFileType.d.ts +9 -0
- package/dist/libs/shared/src/enums/SettingName.d.ts +0 -1
- package/dist/libs/shared/src/interfaces/app-variables/BaseSearchAppVariables.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/collections/ClassificationCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/ClassroomCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/ClassroomGroupCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/InteractiveCollection.d.ts +2 -2
- package/dist/libs/shared/src/interfaces/collections/index.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Classroom.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/models/ClassroomGroup.d.ts +18 -0
- package/dist/libs/shared/src/interfaces/models/Clip.d.ts +4 -3
- package/dist/libs/shared/src/interfaces/models/Curriculum.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/models/InteractiveMetadata.d.ts +14 -0
- package/dist/libs/shared/src/interfaces/models/Resource.d.ts +2 -2
- package/dist/libs/shared/src/interfaces/models/User.d.ts +4 -2
- package/dist/libs/shared/src/interfaces/models/Video.d.ts +6 -2
- package/dist/libs/shared/src/interfaces/models/VideoHistory.d.ts +4 -1
- package/dist/libs/shared/src/interfaces/models/Widget.d.ts +1 -1
- package/dist/libs/shared/src/interfaces/models/YearGroup.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/models/index.d.ts +5 -1
- package/dist/libs/shared/src/interfaces/models/interactive/ActionableItem.d.ts +6 -0
- package/dist/libs/shared/src/interfaces/models/interactive/Interaction.d.ts +16 -0
- package/dist/libs/shared/src/interfaces/models/interactive/InteractionType.d.ts +7 -0
- package/dist/libs/shared/src/interfaces/models/interactive/InteractionTypeId.d.ts +8 -0
- package/dist/libs/shared/src/interfaces/models/interactive/Interactive.d.ts +7 -0
- package/dist/libs/shared/src/interfaces/models/interactive/Timepoint.d.ts +9 -0
- package/dist/libs/shared/src/interfaces/models/interactive/index.d.ts +6 -0
- package/dist/libs/shared/src/interfaces/models/primitives/BaseObject.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/models/primitives/VirtualObject.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/models/primitives/index.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/requests/CreateOrUpdateClipRequest.d.ts +6 -0
- package/dist/libs/shared/src/interfaces/requests/CreateViewKeyRequest.d.ts +0 -2
- package/dist/libs/shared/src/interfaces/requests/index.d.ts +1 -0
- package/dist/libs/shared/src/utils/VideoDetailsHelper.d.ts +0 -9
- package/dist/projects/library-editor/src/app.d.ts +1 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/tags/TagsComponent.d.ts +1 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/MigrationWizardApplication.d.ts +1 -1
- package/dist/projects/library-editor/src/apps/migration-wizard/filters/MigrationFilters.d.ts +2 -2
- package/dist/projects/library-editor/src/apps/search/models/SearchAppVariables.d.ts +1 -0
- package/dist/projects/library-editor/src/apps/upload/UploadApplication.d.ts +1 -1
- package/dist/projects/library-editor/src/shared/components/typeahead-input/SearchTypeaheadComponent.d.ts +1 -0
- package/dist/projects/library-editor/src/shared/filters/BetaAccessFilter.d.ts +1 -1
- package/dist/projects/library-editor/src/shared/filters/CustomerSettingsFilter.d.ts +1 -1
- package/dist/projects/library-editor/src/shared/filters/RoleFilter.d.ts +1 -1
- package/dist/projects/library-editor/src/shared/filters/VerifiedEmailFilter.d.ts +1 -1
- package/dist/scripts/{0-7d941d48a1.chunk.js → 0-93a3cbfbb6.chunk.js} +1 -1
- package/dist/scripts/{1-d174976195.chunk.js → 1-69d9709724.chunk.js} +1 -1
- package/dist/scripts/{10-9389c5decb.chunk.js → 10-8b01d98b20.chunk.js} +1 -1
- package/dist/scripts/{11-85acf490ea.chunk.js → 11-cbe69fa3f0.chunk.js} +1 -1
- package/dist/scripts/{12-0db13732f7.chunk.js → 12-9b10cdc17d.chunk.js} +1 -1
- package/dist/scripts/13-1e10e6e87f.chunk.js +1 -0
- package/dist/scripts/{14-2902bc9522.chunk.js → 14-ab7a30ee22.chunk.js} +1 -1
- package/dist/scripts/{15-c6ed60d5c9.chunk.js → 15-74a4408ee9.chunk.js} +1 -1
- package/dist/scripts/{16-745edb531a.chunk.js → 16-42f9f38a5b.chunk.js} +1 -1
- package/dist/scripts/{17-84499189f1.chunk.js → 17-b1675f5397.chunk.js} +1 -1
- package/dist/scripts/{2-236aa94486.chunk.js → 2-cfce7347b3.chunk.js} +1 -1
- package/dist/scripts/{20-96717eb19f.chunk.js → 20-9f938a6f3e.chunk.js} +1 -1
- package/dist/scripts/{21-65f36b6673.chunk.js → 21-3a0591790a.chunk.js} +1 -1
- package/dist/scripts/{22-5e4db41745.chunk.js → 22-75ca7c2ae2.chunk.js} +1 -1
- package/dist/scripts/23-6cc6df1006.chunk.js +1 -0
- package/dist/scripts/{24-6ac1386d9a.chunk.js → 24-857f2e7cba.chunk.js} +1 -1
- package/dist/scripts/25-30d6eaa470.chunk.js +1 -0
- package/dist/scripts/{26-58a421e3cb.chunk.js → 26-7e0e9534cf.chunk.js} +1 -1
- package/dist/scripts/27-460f20f83b.chunk.js +1 -0
- package/dist/scripts/{28-add4a2a74d.chunk.js → 28-c4655d4bd8.chunk.js} +1 -1
- package/dist/scripts/{29-adf22ec3a1.chunk.js → 29-3629c8b906.chunk.js} +1 -1
- package/dist/scripts/{3-3c39acc333.chunk.js → 3-34f154b85d.chunk.js} +1 -1
- package/dist/scripts/{30-6e869b77b2.chunk.js → 30-9d7a8c6475.chunk.js} +1 -1
- package/dist/scripts/{31-f3a0832478.chunk.js → 31-a80eb231ed.chunk.js} +1 -1
- package/dist/scripts/{32-cbcb5dba41.chunk.js → 32-db0c763740.chunk.js} +1 -1
- package/dist/scripts/{33-c9a197cce2.chunk.js → 33-b9fef236ae.chunk.js} +1 -1
- package/dist/scripts/{34-37fc1c9761.chunk.js → 34-d2a7193286.chunk.js} +1 -1
- package/dist/scripts/{35-21329b155d.chunk.js → 35-1b97d95b2a.chunk.js} +1 -1
- package/dist/scripts/{36-0d3fa3d249.chunk.js → 36-179634ea36.chunk.js} +1 -1
- package/dist/scripts/{37-681f25d8de.chunk.js → 37-e6d9fbefd1.chunk.js} +1 -1
- package/dist/scripts/{38-5364f1bd67.chunk.js → 38-0c6051fb45.chunk.js} +1 -1
- package/dist/scripts/{39-996d4ddc74.chunk.js → 39-5fffd05811.chunk.js} +1 -1
- package/dist/scripts/{4-93e14cac14.chunk.js → 4-2a04f5b2b3.chunk.js} +1 -1
- package/dist/scripts/{40-7ecb39dfb5.chunk.js → 40-5d3d9611b5.chunk.js} +1 -1
- package/dist/scripts/{41-8b5abd983b.chunk.js → 41-f3b2533950.chunk.js} +1 -1
- package/dist/scripts/42-075fbbf19d.chunk.js +1 -0
- package/dist/scripts/{43-32a9ad2254.chunk.js → 43-205ccfa9a4.chunk.js} +1 -1
- package/dist/scripts/{44-bf0ebe3cf7.chunk.js → 44-4be8465afa.chunk.js} +1 -1
- package/dist/scripts/{45-2ba05e3821.chunk.js → 45-541254a177.chunk.js} +1 -1
- package/dist/scripts/{46-3bdc667e2e.chunk.js → 46-fe575b6c9f.chunk.js} +1 -1
- package/dist/scripts/{47-9955928b6f.chunk.js → 47-18d84f7b83.chunk.js} +1 -1
- package/dist/scripts/{48-3922b945f4.chunk.js → 48-40adeb652e.chunk.js} +1 -1
- package/dist/scripts/{49-23a1f6f7e7.chunk.js → 49-ac59f2a6fd.chunk.js} +1 -1
- package/dist/scripts/{5-4bea739cc3.chunk.js → 5-ce9948090c.chunk.js} +1 -1
- package/dist/scripts/{50-5c842985ec.chunk.js → 50-8cc4935ea5.chunk.js} +1 -1
- package/dist/scripts/{51-76bb20846a.chunk.js → 51-cd80402e6e.chunk.js} +1 -1
- package/dist/scripts/{52-837abee352.chunk.js → 52-7e11748c73.chunk.js} +1 -1
- package/dist/scripts/{53-52c9fac5eb.chunk.js → 53-e807e56657.chunk.js} +1 -1
- package/dist/scripts/{54-557f6ffe65.chunk.js → 54-265c2852ce.chunk.js} +1 -1
- package/dist/scripts/{55-8dea861900.chunk.js → 55-68bef0b859.chunk.js} +1 -1
- package/dist/scripts/{56-491db19e9d.chunk.js → 56-f52cc13b44.chunk.js} +1 -1
- package/dist/scripts/{57-87323c96be.chunk.js → 57-77549e4856.chunk.js} +1 -1
- package/dist/scripts/{58-3408474ea9.chunk.js → 58-3f44c0ba1a.chunk.js} +1 -1
- package/dist/scripts/{59-ad89e8b776.chunk.js → 59-bf231da287.chunk.js} +1 -1
- package/dist/scripts/{6-cf6bf13de2.chunk.js → 6-97a29c3fdd.chunk.js} +1 -1
- package/dist/scripts/{60-3324435680.chunk.js → 60-c6a9325b5e.chunk.js} +1 -1
- package/dist/scripts/{61-57f4830468.chunk.js → 61-5fe4279f6d.chunk.js} +1 -1
- package/dist/scripts/{62-27f0a916e8.chunk.js → 62-ff1c8453b6.chunk.js} +1 -1
- package/dist/scripts/{63-c328125cb6.chunk.js → 63-47a43e2399.chunk.js} +1 -1
- package/dist/scripts/{64-32b869d473.chunk.js → 64-398f9ac217.chunk.js} +1 -1
- package/dist/scripts/{65-2f7971dc4f.chunk.js → 65-d75308a09e.chunk.js} +1 -1
- package/dist/scripts/{66-34c241cba2.chunk.js → 66-ec32c5588a.chunk.js} +1 -1
- package/dist/scripts/{67-b5429e74ed.chunk.js → 67-6805e53bfb.chunk.js} +1 -1
- package/dist/scripts/{68-c8848a4a9d.chunk.js → 68-046ada4945.chunk.js} +1 -1
- package/dist/scripts/{69-3840d20a46.chunk.js → 69-235a8e6754.chunk.js} +1 -1
- package/dist/scripts/{7-d1e99b91aa.chunk.js → 7-55f3aed0f4.chunk.js} +1 -1
- package/dist/scripts/{70-812a99c9c1.chunk.js → 70-150be3f4a2.chunk.js} +1 -1
- package/dist/scripts/{71-5523ee0121.chunk.js → 71-c63b7a2a30.chunk.js} +1 -1
- package/dist/scripts/{72-fd2b5e6473.chunk.js → 72-53bdb8c37f.chunk.js} +1 -1
- package/dist/scripts/{8-1c22ae2c22.chunk.js → 8-94205353a6.chunk.js} +1 -1
- package/dist/scripts/{9-fab9edf019.chunk.js → 9-0776e647a0.chunk.js} +1 -1
- package/dist/scripts/bundle-704119eb6d.min.js +8 -0
- package/dist/scripts/bundles.json +2 -2
- package/dist/scripts/polyfills-44c21c47b6.min.js +1 -0
- package/package.json +5 -5
- package/dist/libs/shared/src/enums/PlayerMediaType.d.ts +0 -4
- package/dist/libs/shared/src/interfaces/models/Interactive.d.ts +0 -9
- package/dist/scripts/13-994f87e579.chunk.js +0 -1
- package/dist/scripts/23-d0172ec9d2.chunk.js +0 -1
- package/dist/scripts/25-36d490b1c6.chunk.js +0 -1
- package/dist/scripts/27-a507f85408.chunk.js +0 -1
- package/dist/scripts/42-b0867d7db0.chunk.js +0 -1
- package/dist/scripts/bundle-c2eae7224c.min.js +0 -8
- package/dist/scripts/polyfills-1554419c02.min.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { BasePaginatedCollection } from "./..";
|
|
2
|
-
import {
|
|
3
|
-
export interface InteractiveCollection extends BasePaginatedCollection<
|
|
2
|
+
import { InteractiveMetadata } from "./..";
|
|
3
|
+
export interface InteractiveCollection extends BasePaginatedCollection<InteractiveMetadata> {
|
|
4
4
|
}
|
|
@@ -20,3 +20,6 @@ export * from './ClipCollection';
|
|
|
20
20
|
export * from './FolderCollection';
|
|
21
21
|
export * from './CustomerCollection';
|
|
22
22
|
export * from './SubtitleCollection';
|
|
23
|
+
export * from './ClassificationCollection';
|
|
24
|
+
export * from './ClassroomCollection';
|
|
25
|
+
export * from './ClassroomGroupCollection';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseObject, UserCollection } from "./..";
|
|
2
|
+
export declare enum ClassroomGroupColour {
|
|
3
|
+
White = "colour:0",
|
|
4
|
+
Pink = "colour:1",
|
|
5
|
+
Pizazz = "colour:2",
|
|
6
|
+
Emerald = "colour:3",
|
|
7
|
+
PuertoRico = "colour:4",
|
|
8
|
+
PictonBlue = "colour:5",
|
|
9
|
+
EastSide = "colour:6",
|
|
10
|
+
Portage = "colour:7"
|
|
11
|
+
}
|
|
12
|
+
export interface ClassroomGroup extends BaseObject {
|
|
13
|
+
description: string;
|
|
14
|
+
metadata: {
|
|
15
|
+
colour: ClassroomGroupColour;
|
|
16
|
+
};
|
|
17
|
+
users?: UserCollection;
|
|
18
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { BaseObject, User } from "./..";
|
|
1
|
+
import { BaseObject, User, Video } from "./..";
|
|
2
2
|
export interface Clip extends BaseObject {
|
|
3
|
-
description
|
|
3
|
+
description?: string;
|
|
4
4
|
startTime: number;
|
|
5
5
|
endTime: number;
|
|
6
|
-
owner
|
|
6
|
+
owner?: User;
|
|
7
|
+
video?: Video;
|
|
7
8
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CurriculumType } from "../../enums/CurriculumType";
|
|
2
|
+
import { VirtualObject } from './primitives/VirtualObject';
|
|
2
3
|
export interface Curriculum<T = CurriculumType> {
|
|
3
4
|
backboneClassificationIds: number[];
|
|
4
5
|
canBePreferred: boolean;
|
|
@@ -12,3 +13,6 @@ export interface Curriculum<T = CurriculumType> {
|
|
|
12
13
|
slug: string;
|
|
13
14
|
type: T;
|
|
14
15
|
}
|
|
16
|
+
export interface CurriculumLinks extends VirtualObject {
|
|
17
|
+
value: Curriculum[][];
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseObject, VirtualObject } from "./..";
|
|
2
|
+
import { User } from './User';
|
|
3
|
+
import { Thumbnail } from './Thumbnail';
|
|
4
|
+
import { Video } from './Video';
|
|
5
|
+
export interface InteractiveMetadata extends BaseObject {
|
|
6
|
+
interactiveId: string;
|
|
7
|
+
owner: User;
|
|
8
|
+
description?: string;
|
|
9
|
+
thumbnail?: Thumbnail;
|
|
10
|
+
video?: Video;
|
|
11
|
+
}
|
|
12
|
+
export interface HasInteractive extends VirtualObject {
|
|
13
|
+
value: boolean;
|
|
14
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BaseObject } from './primitives';
|
|
2
2
|
import { Thumbnail } from './Thumbnail';
|
|
3
|
-
import {
|
|
3
|
+
import { ResourceFileType } from "../../enums/ResourceFileType";
|
|
4
4
|
import { Pdf } from './Pdf';
|
|
5
5
|
export declare type ResourceType = 'teacher-pack' | 'student-activity' | 'additional-materials' | 'atom-guide';
|
|
6
6
|
interface ResourceMetadata {
|
|
7
|
-
type:
|
|
7
|
+
type: ResourceFileType;
|
|
8
8
|
resourceType?: ResourceType;
|
|
9
9
|
}
|
|
10
10
|
export interface Resource extends BaseObject {
|
|
@@ -5,7 +5,8 @@ import { OnlineUserRole } from "../../enums/UserRole";
|
|
|
5
5
|
import { UserGroup } from "../../enums/UserGroup";
|
|
6
6
|
import { ObjectStatus } from "../../enums/ObjectStatus";
|
|
7
7
|
import { CustomerCollection } from '../collections';
|
|
8
|
-
|
|
8
|
+
import { YearGroup } from './YearGroup';
|
|
9
|
+
export declare type OnlineYearGroup = 'Kindergarten' | 'Year 1' | 'Year 2' | 'Year 3' | 'Year 4' | 'Year 5' | 'Year 6' | 'Year 7' | 'Year 8' | 'Year 9' | 'Year 10' | 'Year 11' | 'Year 12' | 'Year 13' | 'Staff';
|
|
9
10
|
/**
|
|
10
11
|
* Master User
|
|
11
12
|
*/
|
|
@@ -19,7 +20,8 @@ export interface User extends BaseObject {
|
|
|
19
20
|
status: ObjectStatus;
|
|
20
21
|
role: UserRole;
|
|
21
22
|
customers: CustomerCollection;
|
|
22
|
-
yearGroup:
|
|
23
|
+
yearGroup: OnlineYearGroup;
|
|
24
|
+
masterYearGroup: YearGroup;
|
|
23
25
|
userType: UserGroup;
|
|
24
26
|
avatar?: Avatar;
|
|
25
27
|
isPrimaryContact: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseObject, CompanyCollection, PersonCollection, CategoryCollection, Channel, InteractiveCollection, LibraryCollection, Rating, Series, Thumbnail, TagCollection, Season, AudienceCollection, ResourceCollection, LinkCollection, ClipCollection, Glance, HeroBanner, RestrictedObject } from "./..";
|
|
1
|
+
import { BaseObject, CompanyCollection, PersonCollection, CategoryCollection, Channel, InteractiveCollection, LibraryCollection, Rating, Series, Thumbnail, TagCollection, Season, AudienceCollection, ResourceCollection, LinkCollection, ClipCollection, Glance, HeroBanner, RestrictedObject, VideoProgress, UserCollection, HasInteractive, CurriculumLinks } from "./..";
|
|
2
2
|
export interface Video extends BaseObject {
|
|
3
3
|
categories?: CategoryCollection;
|
|
4
4
|
channel?: Channel;
|
|
@@ -22,9 +22,13 @@ export interface Video extends BaseObject {
|
|
|
22
22
|
clips?: ClipCollection;
|
|
23
23
|
links?: LinkCollection;
|
|
24
24
|
glance?: Glance;
|
|
25
|
-
isFavourited?: boolean;
|
|
26
25
|
hasSubtitle?: boolean;
|
|
27
26
|
heroBanner?: HeroBanner;
|
|
28
27
|
restrictions?: RestrictedObject[];
|
|
29
28
|
lastProgressPoint?: number;
|
|
29
|
+
favouritedBy?: UserCollection;
|
|
30
|
+
_hasinteractives?: HasInteractive;
|
|
31
|
+
_videoprogress?: VideoProgress;
|
|
32
|
+
_hasCurriculumLinks?: boolean;
|
|
33
|
+
_curriculumLinks?: CurriculumLinks;
|
|
30
34
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseObject } from './primitives';
|
|
1
|
+
import { BaseObject, VirtualObject } from './primitives';
|
|
2
2
|
export interface VideoHistory extends Omit<BaseObject, 'id' | 'name'> {
|
|
3
3
|
videoId: string;
|
|
4
4
|
userId: string;
|
|
@@ -7,3 +7,6 @@ export interface VideoHistory extends Omit<BaseObject, 'id' | 'name'> {
|
|
|
7
7
|
lastTimeWatched: string;
|
|
8
8
|
lastProgressPoint: number;
|
|
9
9
|
}
|
|
10
|
+
export interface VideoProgress extends VirtualObject {
|
|
11
|
+
progress: number;
|
|
12
|
+
}
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
export * from './primitives';
|
|
2
|
+
export * from './interactive';
|
|
2
3
|
export * from './Audience';
|
|
3
4
|
export * from './Avatar';
|
|
4
5
|
export * from './Banner';
|
|
5
6
|
export * from './Category';
|
|
6
7
|
export * from './Channel';
|
|
8
|
+
export * from './Classroom';
|
|
9
|
+
export * from './ClassroomGroup';
|
|
7
10
|
export * from './Config';
|
|
8
11
|
export * from './Cover';
|
|
9
12
|
export * from './Curriculum';
|
|
10
13
|
export * from './EntitySetting';
|
|
11
14
|
export * from './HeroBanner';
|
|
12
15
|
export * from './Image';
|
|
13
|
-
export * from './
|
|
16
|
+
export * from './InteractiveMetadata';
|
|
14
17
|
export * from './Library';
|
|
15
18
|
export * from './Playlist';
|
|
16
19
|
export * from './Rating';
|
|
@@ -51,3 +54,4 @@ export * from './Subtitle';
|
|
|
51
54
|
export * from './Language';
|
|
52
55
|
export * from './FileUpload';
|
|
53
56
|
export * from './PlayerViewKey';
|
|
57
|
+
export * from './YearGroup';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HashObject } from "../../../../../common/src/react/interfaces/HashObject";
|
|
2
|
+
import { ActionableItem } from './ActionableItem';
|
|
3
|
+
import { InteractionType } from './InteractionType';
|
|
4
|
+
import { InteractionTypeId } from './InteractionTypeId';
|
|
5
|
+
import { BaseObject } from '../primitives';
|
|
6
|
+
export interface Interaction extends Omit<BaseObject, 'type'> {
|
|
7
|
+
typeId: InteractionTypeId;
|
|
8
|
+
type: InteractionType;
|
|
9
|
+
timepointId: string;
|
|
10
|
+
order: number;
|
|
11
|
+
interactiveId: string;
|
|
12
|
+
errorMessage?: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
data: HashObject;
|
|
15
|
+
actionableItems?: ActionableItem[];
|
|
16
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseObject } from "../primitives/BaseObject";
|
|
2
|
+
import { Interaction } from './Interaction';
|
|
3
|
+
export interface Timepoint extends BaseObject {
|
|
4
|
+
interactiveId: string;
|
|
5
|
+
shouldPause: number;
|
|
6
|
+
visibleAt: number;
|
|
7
|
+
visibleFor?: number;
|
|
8
|
+
interactions?: Interaction[];
|
|
9
|
+
}
|
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
import { Library, Video } from "../interfaces";
|
|
2
2
|
import { MasterObjectTypes } from "../enums/MasterObjectTypes";
|
|
3
|
-
export declare enum FileType {
|
|
4
|
-
Pdf = "pdf",
|
|
5
|
-
Image = "image",
|
|
6
|
-
PowerPoint = "powerpoint",
|
|
7
|
-
Document = "document",
|
|
8
|
-
Excel = "excel",
|
|
9
|
-
Zip = "archive",
|
|
10
|
-
File = "text"
|
|
11
|
-
}
|
|
12
3
|
export declare const VideoDetailsHelper: {
|
|
13
4
|
mapRatingToClass(ratingValue: number): string;
|
|
14
5
|
mapSourceToDisplayName(library: Library): string;
|
|
@@ -199,6 +199,7 @@ import '../../../libs/shared/src/apps/playlists/validation/playlists-validation.
|
|
|
199
199
|
import '../../../libs/shared/src/apps/search/components/search-tips/search-tips.lang.json';
|
|
200
200
|
import '../../../libs/shared/src/apps/search/services/search-services.lang.json';
|
|
201
201
|
import '../../../libs/shared/src/apps/search/views/search-bar/search-bar.lang.json';
|
|
202
|
+
import '../../../libs/shared/src/apps/subjects/components/audience-filter/audience-filter.lang.json';
|
|
202
203
|
import '../../../libs/shared/src/apps/subjects/components/coming-soon/coming-soon.lang.json';
|
|
203
204
|
import '../../../libs/shared/src/apps/subjects/components/hero-video/hero-video.lang.json';
|
|
204
205
|
import '../../../libs/shared/src/apps/upload/errors/file-type/file-type.lang.json';
|
package/dist/projects/library-editor/src/apps/library-editor/components/tags/TagsComponent.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ interface TagsComponentOptions extends Core.ComponentOptions {
|
|
|
10
10
|
headerText?: string;
|
|
11
11
|
emptyStateText?: string;
|
|
12
12
|
removeEvent?: string;
|
|
13
|
+
autofocus?: boolean;
|
|
13
14
|
}
|
|
14
15
|
export declare class TagsComponent extends Core.Component {
|
|
15
16
|
options: TagsComponentOptions;
|
package/dist/projects/library-editor/src/apps/migration-wizard/MigrationWizardApplication.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ declare class MigrationWizardAppRouter extends Core.AppRouter {
|
|
|
5
5
|
protected get channelName(): string;
|
|
6
6
|
get appRoutes(): ObjectHash;
|
|
7
7
|
get appLinks(): string[];
|
|
8
|
-
get filters(): Core.MiddlewareFunction<Core.
|
|
8
|
+
get filters(): Core.MiddlewareFunction<Core.FilterOptions>[];
|
|
9
9
|
}
|
|
10
10
|
export declare class MigrationWizardApplication extends Core.Application {
|
|
11
11
|
private layoutLoaded;
|
package/dist/projects/library-editor/src/apps/migration-wizard/filters/MigrationFilters.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Core } from "../../../../../../libs/common/src/backbone";
|
|
2
|
-
declare function InitialMigrationFilter(
|
|
2
|
+
declare function InitialMigrationFilter(options: Core.FilterOptions, next: Core.MiddlewareNext<Core.FilterOptions>): void;
|
|
3
3
|
/**
|
|
4
4
|
* Shared migration filter that disallows access to any non-migration routes
|
|
5
5
|
* if the user is on their initial migration
|
|
6
6
|
*/
|
|
7
|
-
declare function MigrationFilter(
|
|
7
|
+
declare function MigrationFilter(options: Core.FilterOptions, next: Core.MiddlewareNext<Core.FilterOptions>): void;
|
|
8
8
|
export { InitialMigrationFilter, MigrationFilter };
|
|
@@ -5,7 +5,7 @@ declare class UploadAppRouter extends Core.AppRouter {
|
|
|
5
5
|
protected get channelName(): string;
|
|
6
6
|
protected get appRoutes(): ObjectHash;
|
|
7
7
|
protected get appLinks(): string[];
|
|
8
|
-
get filters(): Core.MiddlewareFunction<Core.
|
|
8
|
+
get filters(): Core.MiddlewareFunction<Core.FilterOptions>[];
|
|
9
9
|
}
|
|
10
10
|
export declare class UploadApplication extends Core.Application {
|
|
11
11
|
private videoUploadService;
|
|
@@ -25,6 +25,7 @@ interface SearchTypeaheadComponentOptions<TSearchType> extends Core.ComponentOpt
|
|
|
25
25
|
additionalClasses?: string;
|
|
26
26
|
removeEvent?: string;
|
|
27
27
|
forceShowRemoveButton?: boolean;
|
|
28
|
+
autofocus?: boolean;
|
|
28
29
|
}
|
|
29
30
|
export declare class SearchTypeaheadComponent<TSearchType> extends Core.Component {
|
|
30
31
|
options: SearchTypeaheadComponentOptions<TSearchType>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Core } from "../../../../../libs/common/src/backbone";
|
|
2
|
-
declare function BetaAccessFilter(
|
|
2
|
+
declare function BetaAccessFilter(options: Core.FilterOptions, next: Core.MiddlewareNext<Core.FilterOptions>): void;
|
|
3
3
|
export { BetaAccessFilter };
|
|
@@ -4,5 +4,5 @@ interface SettingOption {
|
|
|
4
4
|
name: SettingName;
|
|
5
5
|
value: any;
|
|
6
6
|
}
|
|
7
|
-
declare function CustomerSettingsFilter(settingOptions: SettingOption[]): Core.MiddlewareFunction<Core.
|
|
7
|
+
declare function CustomerSettingsFilter(settingOptions: SettingOption[]): Core.MiddlewareFunction<Core.FilterOptions>;
|
|
8
8
|
export { CustomerSettingsFilter };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Core } from "../../../../../libs/common/src/backbone";
|
|
2
2
|
import { UserRole } from "../enums/UserRole";
|
|
3
|
-
declare function RoleFilter(acceptedRoles: UserRole[]): Core.MiddlewareFunction<Core.
|
|
3
|
+
declare function RoleFilter(acceptedRoles: UserRole[]): Core.MiddlewareFunction<Core.FilterOptions>;
|
|
4
4
|
export { RoleFilter };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Core } from "../../../../../libs/common/src/backbone";
|
|
2
|
-
declare function VerifiedEmailFilter(
|
|
2
|
+
declare function VerifiedEmailFilter(options: Core.FilterOptions, next: Core.MiddlewareNext<Core.FilterOptions>): void;
|
|
3
3
|
export { VerifiedEmailFilter };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[0],{1056:function(t,e,n){t.exports={dragItem:"_2TIZ7",svgContainer:"_3JzEU",dragText:"_1Kdwj"}},1057:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,s=t.lambda,a=t.escapeExpression;return'<span class="'+a(s(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+' mr-2">'+(null!=(i=s(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'</span>\r\n<span class="'+a(s(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.dragText:i,e))+'">'+a(s(null!=(i=null!=e?e.options:e)?i.text:i,e))+"</span>"},useData:!0})},1071:function(t,e,n){"use strict";var o=n(1056),r=n.n(o),i=n(1057),s=n.n(i);function a(t){return(a="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 l(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function c(t,e){return(c=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,o=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==a(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 h=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&&c(t,e)}(a,t);var e,n,o,i=u(a);function a(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,t)}return e=a,(n=[{key:"viewOptions",value:function(){return Object.assign({styles:r.a},this.options)}},{key:"name",get:function(){return"DraggableItemComponent"}},{key:"template",get:function(){return s.a}},{key:"className",get:function(){return"".concat(r.a.dragItem," p-3")}}])&&l(e.prototype,n),o&&l(e,o),a}(n(2).a.Component),d={delay:150,cursorAt:{left:-20,top:10},refreshPositions:!0};n.d(e,"c",(function(){return r.a})),n.d(e,"b",(function(){return h})),n.d(e,"a",(function(){return d}))},1082:function(t,e,n){"use strict";var o=n(1),r=n(2),i=n(6),s=n(15),a=n(4),l=n(12),c=n(0),u=n(1113),p=n(1116),f=n(1246),h=n.n(f);function d(t){return(d="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 y(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function b(t,e){return(b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function v(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,o=m(t);if(e){var r=m(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==d(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 m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var k=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&&b(t,e)}(g,t);var e,n,f,d=v(g);function g(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,g),d.call(this,t)}return e=g,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:name",this.render);var t=this.getChildren();t&&this.listenTo(t,"add remove",this.render),this.listenTo(this,"open:sub:folders",this.onOpenSubFolders)}},{key:"events",value:function(){return{"click .ui-node":"onClick"}}},{key:"regions",value:function(){return{children:{el:"ul",replaceElement:!0},actions:{el:".actions-region",replaceElement:!0}}}},{key:"hasChildren",value:function(){var t=this.getChildren();return!!t&&!!t.length}},{key:"getChildren",value:function(){return this.options.childrenProperty?this.model.get(this.options.childrenProperty):null}},{key:"getText",value:function(){return this.options.textProperty?this.model.get(this.options.textProperty):this.model.get("name")}},{key:"isSelected",value:function(){return l.f.isSelected(this.options.folderTreeId,this.model.get("id"))}},{key:"isParent",value:function(){return l.f.isParent(this.options.folderTreeId,this.model.get("id"))}},{key:"isDisabled",value:function(){return this.options.disabledIds&&this.options.disabledIds[this.model.get("id").toString()]}},{key:"getAnchorClass",value:function(){var t="position-relative ".concat(this.options.styles.node);return this.isSelected()?t+=" text-white font-weight-bold":this.isDisabled()?t+=" text-muted":t+=" text-dark",t}},{key:"getAppLink",value:function(){if(!this.options.appLink)return{};var t=this.options.linkArgs,e=this.options.linkParams;return{application:this.options.appLink.application,action:this.options.appLink.action,args:o.isFunction(t)?t(this.model):null,params:o.isFunction(e)?e(this.model):null}}},{key:"onClick",value:function(t){t.stopPropagation();var e=this.getRegion("children"),n=i.Radio.channel(this.options.channelName);if(this.isDisabled()||(this.$el.addClass(this.options.styles.selected),this.getUI("text").addClass("text-white font-weight-bold")),this.options.isSelector&&n.trigger("folder:selected",this.model,this.isDisabled()),this.isDisabled()||this.isSelected()&&this.isCurrentPath()){if(t.stopImmediatePropagation(),t.preventDefault(),!this.hasChildren())return void(this.options.isSelector&&n.trigger("re:render:selector"));var o=!e.hasView();return o?this.openChildren():this.closeChildren(),void(this.options.isSelector&&o&&n.trigger("re:render:selector"))}this.hasChildren()&&(this.openChildren(),this.options.isSelector&&i.Radio.channel(this.options.channelName).trigger("re:render:selector"))}},{key:"isCurrentPath",value:function(){var t=r.a.AppLinkHelper.getCurrentAppLink(),e=this.getAppLink();return!o.keys(e).length||t.application===e.application&&t.action===e.action}},{key:"closeChildren",value:function(){var t=this.getRegion("children");this.$el.addClass(this.options.styles.collapsed),this.$el.removeClass(this.options.styles.parent),t.empty()}},{key:"openChildren",value:function(){this.$el.removeClass(this.options.styles.collapsed),this.renderChildren()}},{key:"onOpenSubFolders",value:function(t){this.renderedSubChildren||this.renderChildren(t)}},{key:"renderChildren",value:function(t){var e=this.getChildren();if(e&&e.length){var n={styles:this.options.styles,channelName:this.options.channelName,appLink:this.options.appLink,linkArgs:this.options.linkArgs,linkParams:this.options.linkParams,childrenProperty:this.options.childrenProperty,textProperty:this.options.textProperty,actions:this.options.actions,folderTreeId:this.options.folderTreeId,analyticsOptions:this.options.analyticsOptions,extraClass:this.options.extraClass,isSelector:this.options.isSelector,disabledIds:this.options.disabledIds};n.extraClasses=t,n.collection=e,this.showChildView("children",new D(n)),this.renderedSubChildren=!0}}},{key:"viewOptions",value:function(){var t="".concat(this.options.styles.item," ").concat(this.options.styles.customItem||"");return this.isDisabled()&&this.renderedSubChildren&&(t+=" ".concat(this.options.styles.disabledActive)),{children:this.getChildren(),itemClass:t,anchorClass:this.getAnchorClass(),caretClass:this.options.styles.caret,showCaret:this.hasChildren(),svg:s.a.getSvg(s.b.Caret),extraClasses:this.options.extraClasses,textStyle:this.options.styles.text,text:this.getText()}}},{key:"onRender",value:function(){this.resetClassName(),this.options.actions&&this.showChildView("actions",new this.options.actions({model:this.model,extraClasses:"rounded-circle mr-1 ".concat(this.options.styles.actions),buttonClass:"text-muted",analyticsOptions:this.options.analyticsOptions})),(this.isSelected()||this.isParent())&&this.renderChildren()}},{key:"name",get:function(){return"LeftNavNodeComponent"}},{key:"elements",get:function(){return{anchor:".ui-node",text:".ui-text"}}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){var t="position-relative";return this.isSelected()&&(t+=" ".concat(this.options.styles.selected)),this.isParent()&&(t+=" ".concat(this.options.styles.parent)),t}},{key:"behaviors",get:function(){return this.options.isSelector?[]:[{behaviorClass:u.a,ui:"anchor",channelNames:[c.w.VIDEO_DRAG_DROP,c.w.FOLDER_DRAG_DROP],analyticsOptions:{location:a.k.LeftNav}},{behaviorClass:p.a}]}},{key:"appLinks",get:function(){return this.options.appLink?{"@ui.anchor":this.getAppLink()}:{}}},{key:"template",get:function(){return h.a}}])&&y(e.prototype,n),f&&y(e,f),g}(r.a.Component),w=n(1210),C=n.n(w);function O(t){return(O="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 _(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function S(t,e){return(S=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function P(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,o=R(t);if(e){var r=R(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return x(this,n)}}function x(t,e){return!e||"object"!==O(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 R(t){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return D}));var D=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&&S(t,e)}(s,t);var e,n,r,i=P(s);function s(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),t.styles=o.extend({},C.a,t.styles),i.call(this,t)}return e=s,(n=[{key:"name",get:function(){return"LeftNavComponent"}},{key:"tagName",get:function(){return"ul"}},{key:"childView",get:function(){return k}},{key:"className",get:function(){var t="".concat(this.options.styles.folderTree," position-relative");return this.options.extraClass?"".concat(t," ").concat(this.options.extraClass):t}},{key:"viewComparator",get:function(){return function(t){var e;return null===(e=t.get("name"))||void 0===e?void 0:e.toLowerCase()}}},{key:"childViewOptions",get:function(){return{styles:this.options.styles,channelName:this.options.channelName,appLink:this.options.appLink,linkArgs:this.options.linkArgs,linkParams:this.options.linkParams,childrenProperty:this.options.childrenProperty,textProperty:this.options.textProperty,actions:this.options.actions,extraClass:this.options.extraClass,folderTreeId:this.options.folderTreeId,analyticsOptions:this.options.analyticsOptions,isSelector:this.options.isSelector,disabledIds:this.options.disabledIds}}}])&&_(e.prototype,n),r&&_(e,r),s}(r.a.ComponentCollection)},1113:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var o=n(1),r=n(6),i=n(2),s=n(145);function a(t){return(a="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 l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(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,o=h(t);if(e){var r=h(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==a(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 h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=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,i,a=p(f);function f(){return l(this,f),a.apply(this,arguments)}return e=f,(n=[{key:"getDroppableElement",value:function(){return this.options.ui?this.view.getUI(this.options.ui):this.$el}},{key:"drop",value:function(){var t=this;o.each(this.options.channelNames,(function(e){r.Radio.channel(e).trigger("drag:drop",t.view.model,t.options.analyticsOptions)}))}},{key:"accept",value:function(){var t=this,e=!1;return o.each(this.options.channelNames,(function(n){!0===r.Radio.channel(n).request("accept",t.view.model)&&(e=!0)})),e}},{key:"over",value:function(){var t=this;this.isHoveringOver=!0,window.setTimeout((function(){t.isHoveringOver&&t.view.trigger("open:sub:folders",s.active)}),500)}},{key:"out",value:function(){this.isHoveringOver=!1}},{key:"onRender",value:function(){var t={tolerance:"pointer",drop:o.bind(this.drop,this),accept:o.bind(this.accept,this),over:o.bind(this.over,this),out:o.bind(this.out,this)};t.classes={"ui-droppable":s.droppable,"ui-droppable-active":s.active,"ui-droppable-hover":s.hover},this.getDroppableElement().droppable(t)}},{key:"onBeforeDestroy",value:function(){this.getDroppableElement().droppable("instance")&&this.getDroppableElement().droppable("destroy")}}])&&c(e.prototype,n),i&&c(e,i),f}(i.a.Behavior)},1116:function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));var o=n(1),r=n(6),i=n(2),s=n(15),a=n(0),l=n(1071),c=n(1122),u=n.n(c);function p(t){return(p="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 f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(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,o=v(t);if(e){var r=v(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==p(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 v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=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&&d(t,e)}(p,t);var e,n,i,c=y(p);function p(){return f(this,p),c.apply(this,arguments)}return e=p,(n=[{key:"getClassMappings",value:function(){return{"ui-draggable":l.c.draggable,"ui-draggable-handle":l.c.handle,"ui-draggable-disabled":l.c.disabled,"ui-draggable-dragging":l.c.dragging}}},{key:"helper",value:function(){return new l.b({text:this.view.model.get("name"),svg:s.a.getSvg(s.b.Folder)}).render().el}},{key:"start",value:function(){r.Radio.channel(a.w.FOLDER_DRAG_DROP).trigger("drag:start",this.view.model),this.view.$el.addClass(u.a.draggingFolder)}},{key:"stop",value:function(){r.Radio.channel(a.w.FOLDER_DRAG_DROP).trigger("drag:stop"),this.view.$el.removeClass(u.a.draggingFolder)}},{key:"onRender",value:function(){var t={helper:o.bind(this.helper,this),start:o.bind(this.start,this),stop:o.bind(this.stop,this)};t.classes=this.getClassMappings(),this.view.$el.draggable(o.extend({},l.a,t))}},{key:"onBeforeDestroy",value:function(){this.view.$el.draggable("instance")&&this.view.$el.draggable("destroy")}}])&&h(e.prototype,n),i&&h(e,i),p}(i.a.Behavior)},1122:function(t,e,n){t.exports={dragging:"_2wBn3",draggingFolder:"_1r3AS"}},1210:function(t,e,n){t.exports={folderTree:"_1inFA",text:"_2ovSq",caret:"_2pwp9",library:"_2WHiz",selected:"_200l0",parent:"_205QS",disabledActive:"_25EPE",disabled:"_387cT",collapsed:"_1-_q7",actions:"_3Il7t",node:"_23bpP",libraryContainer:"EuNKs",item:"ahYSz"}},1246:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,s=t.lambda;return' <span class="'+t.escapeExpression(s(null!=(i=null!=e?e.options:e)?i.caretClass:i,e))+' d-inline-block position-absolute">\r\n '+(null!=(i=s(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+"\r\n </span>\r\n"},3:function(t,e,n,o,r){return"<ul></ul>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,s=t.lambda,a=t.escapeExpression,l=null!=e?e:t.nullContext||{};return'<div class="position-relative '+a(s(null!=(i=null!=e?e.options:e)?i.itemClass:i,e))+'">\r\n <a class="'+a(s(null!=(i=null!=e?e.options:e)?i.anchorClass:i,e))+' d-block ui-node">\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=e?e.options:e)?i.showCaret:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+' <span class="'+a(s(null!=(i=null!=e?e.options:e)?i.textStyle:i,e))+" ui-text "+a(s(null!=(i=null!=e?e.options:e)?i.extraClasses:i,e))+'">'+a(s(null!=(i=null!=e?e.options:e)?i.text:i,e))+'</span>\r\n </a>\r\n <div class="actions-region"></div>\r\n</div>\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=(i=null!=e?e.options:e)?i.children:i)?i.length:i,{name:"if",hash:{},fn:t.program(3,r,0),inverse:t.noop,data:r}))?i:"")},useData:!0})}}]);
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[0],{1057:function(t,e,n){t.exports={dragItem:"_2TIZ7",svgContainer:"_3JzEU",dragText:"_1Kdwj"}},1058:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,s=t.lambda,a=t.escapeExpression;return'<span class="'+a(s(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+' mr-2">'+(null!=(i=s(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'</span>\r\n<span class="'+a(s(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.dragText:i,e))+'">'+a(s(null!=(i=null!=e?e.options:e)?i.text:i,e))+"</span>"},useData:!0})},1072:function(t,e,n){"use strict";var o=n(1057),r=n.n(o),i=n(1058),s=n.n(i);function a(t){return(a="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 l(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function c(t,e){return(c=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,o=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==a(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 h=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&&c(t,e)}(a,t);var e,n,o,i=u(a);function a(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,t)}return e=a,(n=[{key:"viewOptions",value:function(){return Object.assign({styles:r.a},this.options)}},{key:"name",get:function(){return"DraggableItemComponent"}},{key:"template",get:function(){return s.a}},{key:"className",get:function(){return"".concat(r.a.dragItem," p-3")}}])&&l(e.prototype,n),o&&l(e,o),a}(n(2).a.Component),d={delay:150,cursorAt:{left:-20,top:10},refreshPositions:!0};n.d(e,"c",(function(){return r.a})),n.d(e,"b",(function(){return h})),n.d(e,"a",(function(){return d}))},1083:function(t,e,n){"use strict";var o=n(1),r=n(2),i=n(6),s=n(15),a=n(4),l=n(12),c=n(0),u=n(1114),p=n(1117),f=n(1248),h=n.n(f);function d(t){return(d="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 y(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function b(t,e){return(b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function v(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,o=m(t);if(e){var r=m(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==d(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 m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var k=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&&b(t,e)}(g,t);var e,n,f,d=v(g);function g(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,g),d.call(this,t)}return e=g,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:name",this.render);var t=this.getChildren();t&&this.listenTo(t,"add remove",this.render),this.listenTo(this,"open:sub:folders",this.onOpenSubFolders)}},{key:"events",value:function(){return{"click .ui-node":"onClick"}}},{key:"regions",value:function(){return{children:{el:"ul",replaceElement:!0},actions:{el:".actions-region",replaceElement:!0}}}},{key:"hasChildren",value:function(){var t=this.getChildren();return!!t&&!!t.length}},{key:"getChildren",value:function(){return this.options.childrenProperty?this.model.get(this.options.childrenProperty):null}},{key:"getText",value:function(){return this.options.textProperty?this.model.get(this.options.textProperty):this.model.get("name")}},{key:"isSelected",value:function(){return l.f.isSelected(this.options.folderTreeId,this.model.get("id"))}},{key:"isParent",value:function(){return l.f.isParent(this.options.folderTreeId,this.model.get("id"))}},{key:"isDisabled",value:function(){return this.options.disabledIds&&this.options.disabledIds[this.model.get("id").toString()]}},{key:"getAnchorClass",value:function(){var t="position-relative ".concat(this.options.styles.node);return this.isSelected()?t+=" text-white font-weight-bold":this.isDisabled()?t+=" text-muted":t+=" text-dark",t}},{key:"getAppLink",value:function(){if(!this.options.appLink)return{};var t=this.options.linkArgs,e=this.options.linkParams;return{application:this.options.appLink.application,action:this.options.appLink.action,args:o.isFunction(t)?t(this.model):null,params:o.isFunction(e)?e(this.model):null}}},{key:"onClick",value:function(t){t.stopPropagation();var e=this.getRegion("children"),n=i.Radio.channel(this.options.channelName);if(this.isDisabled()||(this.$el.addClass(this.options.styles.selected),this.getUI("text").addClass("text-white font-weight-bold")),this.options.isSelector&&n.trigger("folder:selected",this.model,this.isDisabled()),this.isDisabled()||this.isSelected()&&this.isCurrentPath()){if(t.stopImmediatePropagation(),t.preventDefault(),!this.hasChildren())return void(this.options.isSelector&&n.trigger("re:render:selector"));var o=!e.hasView();return o?this.openChildren():this.closeChildren(),void(this.options.isSelector&&o&&n.trigger("re:render:selector"))}this.hasChildren()&&(this.openChildren(),this.options.isSelector&&i.Radio.channel(this.options.channelName).trigger("re:render:selector"))}},{key:"isCurrentPath",value:function(){var t=r.a.AppLinkHelper.getCurrentAppLink(),e=this.getAppLink();return!o.keys(e).length||t.application===e.application&&t.action===e.action}},{key:"closeChildren",value:function(){var t=this.getRegion("children");this.$el.addClass(this.options.styles.collapsed),this.$el.removeClass(this.options.styles.parent),t.empty()}},{key:"openChildren",value:function(){this.$el.removeClass(this.options.styles.collapsed),this.renderChildren()}},{key:"onOpenSubFolders",value:function(t){this.renderedSubChildren||this.renderChildren(t)}},{key:"renderChildren",value:function(t){var e=this.getChildren();if(e&&e.length){var n={styles:this.options.styles,channelName:this.options.channelName,appLink:this.options.appLink,linkArgs:this.options.linkArgs,linkParams:this.options.linkParams,childrenProperty:this.options.childrenProperty,textProperty:this.options.textProperty,actions:this.options.actions,folderTreeId:this.options.folderTreeId,analyticsOptions:this.options.analyticsOptions,extraClass:this.options.extraClass,isSelector:this.options.isSelector,disabledIds:this.options.disabledIds};n.extraClasses=t,n.collection=e,this.showChildView("children",new D(n)),this.renderedSubChildren=!0}}},{key:"viewOptions",value:function(){var t="".concat(this.options.styles.item," ").concat(this.options.styles.customItem||"");return this.isDisabled()&&this.renderedSubChildren&&(t+=" ".concat(this.options.styles.disabledActive)),{children:this.getChildren(),itemClass:t,anchorClass:this.getAnchorClass(),caretClass:this.options.styles.caret,showCaret:this.hasChildren(),svg:s.a.getSvg(s.b.Caret),extraClasses:this.options.extraClasses,textStyle:this.options.styles.text,text:this.getText()}}},{key:"onRender",value:function(){this.resetClassName(),this.options.actions&&this.showChildView("actions",new this.options.actions({model:this.model,extraClasses:"rounded-circle mr-1 ".concat(this.options.styles.actions),buttonClass:"text-muted",analyticsOptions:this.options.analyticsOptions})),(this.isSelected()||this.isParent())&&this.renderChildren()}},{key:"name",get:function(){return"LeftNavNodeComponent"}},{key:"elements",get:function(){return{anchor:".ui-node",text:".ui-text"}}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){var t="position-relative";return this.isSelected()&&(t+=" ".concat(this.options.styles.selected)),this.isParent()&&(t+=" ".concat(this.options.styles.parent)),t}},{key:"behaviors",get:function(){return this.options.isSelector?[]:[{behaviorClass:u.a,ui:"anchor",channelNames:[c.w.VIDEO_DRAG_DROP,c.w.FOLDER_DRAG_DROP],analyticsOptions:{location:a.k.LeftNav}},{behaviorClass:p.a}]}},{key:"appLinks",get:function(){return this.options.appLink?{"@ui.anchor":this.getAppLink()}:{}}},{key:"template",get:function(){return h.a}}])&&y(e.prototype,n),f&&y(e,f),g}(r.a.Component),w=n(1212),C=n.n(w);function O(t){return(O="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 _(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function S(t,e){return(S=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function P(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,o=R(t);if(e){var r=R(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return x(this,n)}}function x(t,e){return!e||"object"!==O(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 R(t){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return D}));var D=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&&S(t,e)}(s,t);var e,n,r,i=P(s);function s(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),t.styles=o.extend({},C.a,t.styles),i.call(this,t)}return e=s,(n=[{key:"name",get:function(){return"LeftNavComponent"}},{key:"tagName",get:function(){return"ul"}},{key:"childView",get:function(){return k}},{key:"className",get:function(){var t="".concat(this.options.styles.folderTree," position-relative");return this.options.extraClass?"".concat(t," ").concat(this.options.extraClass):t}},{key:"viewComparator",get:function(){return function(t){var e;return null===(e=t.get("name"))||void 0===e?void 0:e.toLowerCase()}}},{key:"childViewOptions",get:function(){return{styles:this.options.styles,channelName:this.options.channelName,appLink:this.options.appLink,linkArgs:this.options.linkArgs,linkParams:this.options.linkParams,childrenProperty:this.options.childrenProperty,textProperty:this.options.textProperty,actions:this.options.actions,extraClass:this.options.extraClass,folderTreeId:this.options.folderTreeId,analyticsOptions:this.options.analyticsOptions,isSelector:this.options.isSelector,disabledIds:this.options.disabledIds}}}])&&_(e.prototype,n),r&&_(e,r),s}(r.a.ComponentCollection)},1114:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var o=n(1),r=n(6),i=n(2),s=n(146);function a(t){return(a="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 l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(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,o=h(t);if(e){var r=h(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==a(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 h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=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,i,a=p(f);function f(){return l(this,f),a.apply(this,arguments)}return e=f,(n=[{key:"getDroppableElement",value:function(){return this.options.ui?this.view.getUI(this.options.ui):this.$el}},{key:"drop",value:function(){var t=this;o.each(this.options.channelNames,(function(e){r.Radio.channel(e).trigger("drag:drop",t.view.model,t.options.analyticsOptions)}))}},{key:"accept",value:function(){var t=this,e=!1;return o.each(this.options.channelNames,(function(n){!0===r.Radio.channel(n).request("accept",t.view.model)&&(e=!0)})),e}},{key:"over",value:function(){var t=this;this.isHoveringOver=!0,window.setTimeout((function(){t.isHoveringOver&&t.view.trigger("open:sub:folders",s.active)}),500)}},{key:"out",value:function(){this.isHoveringOver=!1}},{key:"onRender",value:function(){var t={tolerance:"pointer",drop:o.bind(this.drop,this),accept:o.bind(this.accept,this),over:o.bind(this.over,this),out:o.bind(this.out,this)};t.classes={"ui-droppable":s.droppable,"ui-droppable-active":s.active,"ui-droppable-hover":s.hover},this.getDroppableElement().droppable(t)}},{key:"onBeforeDestroy",value:function(){this.getDroppableElement().droppable("instance")&&this.getDroppableElement().droppable("destroy")}}])&&c(e.prototype,n),i&&c(e,i),f}(i.a.Behavior)},1117:function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));var o=n(1),r=n(6),i=n(2),s=n(15),a=n(0),l=n(1072),c=n(1123),u=n.n(c);function p(t){return(p="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 f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(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,o=v(t);if(e){var r=v(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==p(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 v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=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&&d(t,e)}(p,t);var e,n,i,c=y(p);function p(){return f(this,p),c.apply(this,arguments)}return e=p,(n=[{key:"getClassMappings",value:function(){return{"ui-draggable":l.c.draggable,"ui-draggable-handle":l.c.handle,"ui-draggable-disabled":l.c.disabled,"ui-draggable-dragging":l.c.dragging}}},{key:"helper",value:function(){return new l.b({text:this.view.model.get("name"),svg:s.a.getSvg(s.b.Folder)}).render().el}},{key:"start",value:function(){r.Radio.channel(a.w.FOLDER_DRAG_DROP).trigger("drag:start",this.view.model),this.view.$el.addClass(u.a.draggingFolder)}},{key:"stop",value:function(){r.Radio.channel(a.w.FOLDER_DRAG_DROP).trigger("drag:stop"),this.view.$el.removeClass(u.a.draggingFolder)}},{key:"onRender",value:function(){var t={helper:o.bind(this.helper,this),start:o.bind(this.start,this),stop:o.bind(this.stop,this)};t.classes=this.getClassMappings(),this.view.$el.draggable(o.extend({},l.a,t))}},{key:"onBeforeDestroy",value:function(){this.view.$el.draggable("instance")&&this.view.$el.draggable("destroy")}}])&&h(e.prototype,n),i&&h(e,i),p}(i.a.Behavior)},1123:function(t,e,n){t.exports={dragging:"_2wBn3",draggingFolder:"_1r3AS"}},1212:function(t,e,n){t.exports={folderTree:"_1inFA",text:"_2ovSq",caret:"_2pwp9",library:"_2WHiz",selected:"_200l0",parent:"_205QS",disabledActive:"_25EPE",disabled:"_387cT",collapsed:"_1-_q7",actions:"_3Il7t",node:"_23bpP",libraryContainer:"EuNKs",item:"ahYSz"}},1248:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,s=t.lambda;return' <span class="'+t.escapeExpression(s(null!=(i=null!=e?e.options:e)?i.caretClass:i,e))+' d-inline-block position-absolute">\r\n '+(null!=(i=s(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+"\r\n </span>\r\n"},3:function(t,e,n,o,r){return"<ul></ul>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,s=t.lambda,a=t.escapeExpression,l=null!=e?e:t.nullContext||{};return'<div class="position-relative '+a(s(null!=(i=null!=e?e.options:e)?i.itemClass:i,e))+'">\r\n <a class="'+a(s(null!=(i=null!=e?e.options:e)?i.anchorClass:i,e))+' d-block ui-node">\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=e?e.options:e)?i.showCaret:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+' <span class="'+a(s(null!=(i=null!=e?e.options:e)?i.textStyle:i,e))+" ui-text "+a(s(null!=(i=null!=e?e.options:e)?i.extraClasses:i,e))+'">'+a(s(null!=(i=null!=e?e.options:e)?i.text:i,e))+'</span>\r\n </a>\r\n <div class="actions-region"></div>\r\n</div>\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=(i=null!=e?e.options:e)?i.children:i)?i.length:i,{name:"if",hash:{},fn:t.program(3,r,0),inverse:t.noop,data:r}))?i:"")},useData:!0})}}]);
|