@clickview/reports 0.41.0-rc.4 → 0.41.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/bundles.json +1 -1
- package/dist/scripts/120-2931a247cd-reports.chunk.js +1 -0
- package/dist/scripts/178-1f8288a954-reports.chunk.js +1 -0
- package/dist/scripts/184-4e0ad3f212-reports.chunk.js +1 -0
- package/dist/scripts/277-8c16ee2810-reports.chunk.js +1 -0
- package/dist/scripts/337-79161131f3-reports.chunk.js +1 -0
- package/dist/scripts/493-e0c4e1f5cc-reports.chunk.js +1 -0
- package/dist/scripts/496-2dd3a5baaa-reports.chunk.js +2 -0
- package/dist/scripts/611-fed578c8f8-reports.chunk.js +1 -0
- package/dist/scripts/619-78f3b693a9-reports.chunk.js +1 -0
- package/dist/scripts/648-a859aed9d9-reports.chunk.js +1 -0
- package/dist/scripts/703-c50eb9724c-reports.chunk.js +1 -0
- package/dist/scripts/{763-2d08a99b51-reports.chunk.js → 763-2e9799e475-reports.chunk.js} +1 -1
- package/dist/scripts/785-3b18448147-reports.chunk.js +1 -0
- package/dist/scripts/84-26805ce26d-reports.chunk.js +1 -0
- package/dist/scripts/866-0a05f9888b-reports.chunk.js +1 -0
- package/dist/scripts/bundle-9f76731db6.min.js +2 -0
- package/package.json +46 -46
- package/typings/libs/CVLanguages.d.ts +24 -24
- package/typings/libs/cloneDeep.d.ts +4 -4
- package/typings/libs/google-api.d.ts +4 -4
- package/typings/libs/microsoft-teams.d.ts +2 -2
- package/typings/libs/react-table-config.d.ts +138 -138
- package/typings/libs/trackjs.d.ts +2 -2
- package/typings/libs/videojs-contrib-quality-levels.d.ts +28 -28
- package/typings/utils/imports.d.ts +12 -12
- package/dist/scripts/120-5794fce748-reports.chunk.js +0 -1
- package/dist/scripts/178-55d3b710ab-reports.chunk.js +0 -1
- package/dist/scripts/184-7efbbbb5f1-reports.chunk.js +0 -1
- package/dist/scripts/277-2595924f32-reports.chunk.js +0 -1
- package/dist/scripts/337-7b61e0e5a7-reports.chunk.js +0 -1
- package/dist/scripts/493-d2ab5333d8-reports.chunk.js +0 -1
- package/dist/scripts/496-c1407711d0-reports.chunk.js +0 -2
- package/dist/scripts/611-f62aebad54-reports.chunk.js +0 -1
- package/dist/scripts/619-30f7ae4e98-reports.chunk.js +0 -1
- package/dist/scripts/648-67bd5e01ae-reports.chunk.js +0 -1
- package/dist/scripts/703-a7bdad0171-reports.chunk.js +0 -1
- package/dist/scripts/785-1cb9319ce3-reports.chunk.js +0 -1
- package/dist/scripts/84-d4d0148eba-reports.chunk.js +0 -1
- package/dist/scripts/866-03e2feec15-reports.chunk.js +0 -1
- package/dist/scripts/bundle-c78021932e.min.js +0 -2
- /package/dist/scripts/{496-c1407711d0-reports.chunk.js.LICENSE.txt → 496-2dd3a5baaa-reports.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{954-001833c373-reports.chunk.js → 954-ad9c374f73-reports.chunk.js} +0 -0
- /package/dist/scripts/{bundle-c78021932e.min.js.LICENSE.txt → bundle-9f76731db6.min.js.LICENSE.txt} +0 -0
package/package.json
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@clickview/reports",
|
|
3
|
-
"version": "0.41.
|
|
4
|
-
"description": "ClickView Reports",
|
|
5
|
-
"main": "dist/reports-app.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"start": "cross-env NODE_ENV=development webpack -w --config ./tooling/webpack.config.js",
|
|
8
|
-
"build": "cross-env NODE_ENV=production webpack --config ./tooling/webpack.config.js"
|
|
9
|
-
},
|
|
10
|
-
"repository": {
|
|
11
|
-
"type": "git",
|
|
12
|
-
"url": "https://gitlab.cvinternal.net/front-end/clickview"
|
|
13
|
-
},
|
|
14
|
-
"cv": {
|
|
15
|
-
"publishable": true,
|
|
16
|
-
"rebuildable": true
|
|
17
|
-
},
|
|
18
|
-
"author": "Joshua Taylor, Shale Kuzmanovski, Matt Trengrove, Michael McDonnell",
|
|
19
|
-
"license": "ISC",
|
|
20
|
-
"devDependencies": {
|
|
21
|
-
"@babel/core": "7.11.6",
|
|
22
|
-
"@types/chroma-js": "2.1.3",
|
|
23
|
-
"@types/react-dates": "21.8.1",
|
|
24
|
-
"redux-devtools-extension": "2.13.8"
|
|
25
|
-
},
|
|
26
|
-
"dependencies": {
|
|
27
|
-
"@clickview/styles": "1.32.0",
|
|
28
|
-
"chroma-js": "2.1.2",
|
|
29
|
-
"highcharts": "9.1.0",
|
|
30
|
-
"highcharts-react-official": "3.0.0",
|
|
31
|
-
"moment": "2.30.1",
|
|
32
|
-
"react-dates": "21.8.0",
|
|
33
|
-
"unique-names-generator": "4.5.0"
|
|
34
|
-
},
|
|
35
|
-
"babel": {
|
|
36
|
-
"presets": [
|
|
37
|
-
[
|
|
38
|
-
"@babel/preset-env",
|
|
39
|
-
{
|
|
40
|
-
"corejs": 3,
|
|
41
|
-
"useBuiltIns": "entry"
|
|
42
|
-
}
|
|
43
|
-
]
|
|
44
|
-
]
|
|
45
|
-
}
|
|
46
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@clickview/reports",
|
|
3
|
+
"version": "0.41.1",
|
|
4
|
+
"description": "ClickView Reports",
|
|
5
|
+
"main": "dist/reports-app.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"start": "cross-env NODE_ENV=development webpack -w --config ./tooling/webpack.config.js",
|
|
8
|
+
"build": "cross-env NODE_ENV=production webpack --config ./tooling/webpack.config.js"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://gitlab.cvinternal.net/front-end/clickview"
|
|
13
|
+
},
|
|
14
|
+
"cv": {
|
|
15
|
+
"publishable": true,
|
|
16
|
+
"rebuildable": true
|
|
17
|
+
},
|
|
18
|
+
"author": "Joshua Taylor, Shale Kuzmanovski, Matt Trengrove, Michael McDonnell",
|
|
19
|
+
"license": "ISC",
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@babel/core": "7.11.6",
|
|
22
|
+
"@types/chroma-js": "2.1.3",
|
|
23
|
+
"@types/react-dates": "21.8.1",
|
|
24
|
+
"redux-devtools-extension": "2.13.8"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@clickview/styles": "1.32.0",
|
|
28
|
+
"chroma-js": "2.1.2",
|
|
29
|
+
"highcharts": "9.1.0",
|
|
30
|
+
"highcharts-react-official": "3.0.0",
|
|
31
|
+
"moment": "2.30.1",
|
|
32
|
+
"react-dates": "21.8.0",
|
|
33
|
+
"unique-names-generator": "4.5.0"
|
|
34
|
+
},
|
|
35
|
+
"babel": {
|
|
36
|
+
"presets": [
|
|
37
|
+
[
|
|
38
|
+
"@babel/preset-env",
|
|
39
|
+
{
|
|
40
|
+
"corejs": 3,
|
|
41
|
+
"useBuiltIns": "entry"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
interface SetLanguageOptions {
|
|
2
|
-
validate: boolean;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
interface LanguageSet {
|
|
6
|
-
[languagecode: string]: Language;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
interface Language {
|
|
10
|
-
englishName: string;
|
|
11
|
-
nativeName: string;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
interface ICVLanguages {
|
|
15
|
-
VERSION: string;
|
|
16
|
-
|
|
17
|
-
getEnglishName(languageCode: string): string;
|
|
18
|
-
getNativeName(languageCode: string): string;
|
|
19
|
-
getFullEnglishName(languageCode: string): string;
|
|
20
|
-
getFullNativeName(languageCode: string): string;
|
|
21
|
-
getEnglishNameContains(englishName: string): Language[];
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
declare let CVLanguages: ICVLanguages;
|
|
1
|
+
interface SetLanguageOptions {
|
|
2
|
+
validate: boolean;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
interface LanguageSet {
|
|
6
|
+
[languagecode: string]: Language;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
interface Language {
|
|
10
|
+
englishName: string;
|
|
11
|
+
nativeName: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface ICVLanguages {
|
|
15
|
+
VERSION: string;
|
|
16
|
+
|
|
17
|
+
getEnglishName(languageCode: string): string;
|
|
18
|
+
getNativeName(languageCode: string): string;
|
|
19
|
+
getFullEnglishName(languageCode: string): string;
|
|
20
|
+
getFullNativeName(languageCode: string): string;
|
|
21
|
+
getEnglishNameContains(englishName: string): Language[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare let CVLanguages: ICVLanguages;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare function cloneDeep<T>(obj: T): T;
|
|
2
|
-
|
|
3
|
-
declare module 'lodash.clonedeep' {
|
|
4
|
-
export = cloneDeep;
|
|
1
|
+
declare function cloneDeep<T>(obj: T): T;
|
|
2
|
+
|
|
3
|
+
declare module 'lodash.clonedeep' {
|
|
4
|
+
export = cloneDeep;
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare namespace gapi {
|
|
2
|
-
declare namespace sharetoclassroom {
|
|
3
|
-
declare function go(id: string): void;
|
|
4
|
-
}
|
|
1
|
+
declare namespace gapi {
|
|
2
|
+
declare namespace sharetoclassroom {
|
|
3
|
+
declare function go(id: string): void;
|
|
4
|
+
}
|
|
5
5
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare namespace shareToMicrosoftTeams {
|
|
2
|
-
declare function renderButtons(): void;
|
|
1
|
+
declare namespace shareToMicrosoftTeams {
|
|
2
|
+
declare function renderButtons(): void;
|
|
3
3
|
}
|
|
@@ -1,139 +1,139 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* In order to add typings for various react-table plugins, the below should be selectively
|
|
3
|
-
* uncommented based on what we are using.
|
|
4
|
-
*
|
|
5
|
-
* Refer: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-table
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import {
|
|
9
|
-
// UseColumnOrderInstanceProps,
|
|
10
|
-
// UseColumnOrderState,
|
|
11
|
-
// UseExpandedHooks,
|
|
12
|
-
// UseExpandedInstanceProps,
|
|
13
|
-
// UseExpandedOptions,
|
|
14
|
-
// UseExpandedRowProps,
|
|
15
|
-
// UseExpandedState,
|
|
16
|
-
UseFiltersColumnOptions,
|
|
17
|
-
UseFiltersColumnProps,
|
|
18
|
-
UseFiltersInstanceProps,
|
|
19
|
-
UseFiltersOptions,
|
|
20
|
-
UseFiltersState,
|
|
21
|
-
UseGlobalFiltersColumnOptions,
|
|
22
|
-
UseGlobalFiltersInstanceProps,
|
|
23
|
-
UseGlobalFiltersOptions,
|
|
24
|
-
UseGlobalFiltersState,
|
|
25
|
-
// UseGroupByCellProps,
|
|
26
|
-
// UseGroupByColumnOptions,
|
|
27
|
-
// UseGroupByColumnProps,
|
|
28
|
-
// UseGroupByHooks,
|
|
29
|
-
// UseGroupByInstanceProps,
|
|
30
|
-
// UseGroupByOptions,
|
|
31
|
-
// UseGroupByRowProps,
|
|
32
|
-
// UseGroupByState,
|
|
33
|
-
// UsePaginationInstanceProps,
|
|
34
|
-
// UsePaginationOptions,
|
|
35
|
-
// UsePaginationState,
|
|
36
|
-
// UseResizeColumnsColumnOptions,
|
|
37
|
-
// UseResizeColumnsColumnProps,
|
|
38
|
-
// UseResizeColumnsOptions,
|
|
39
|
-
// UseResizeColumnsState,
|
|
40
|
-
UseRowSelectHooks,
|
|
41
|
-
UseRowSelectInstanceProps,
|
|
42
|
-
UseRowSelectOptions,
|
|
43
|
-
UseRowSelectRowProps,
|
|
44
|
-
UseRowSelectState,
|
|
45
|
-
// UseRowStateCellProps,
|
|
46
|
-
// UseRowStateInstanceProps,
|
|
47
|
-
// UseRowStateOptions,
|
|
48
|
-
// UseRowStateRowProps,
|
|
49
|
-
// UseRowStateState,
|
|
50
|
-
UseSortByColumnOptions,
|
|
51
|
-
UseSortByColumnProps,
|
|
52
|
-
UseSortByHooks,
|
|
53
|
-
UseSortByInstanceProps,
|
|
54
|
-
UseSortByOptions,
|
|
55
|
-
UseSortByState
|
|
56
|
-
} from 'react-table';
|
|
57
|
-
|
|
58
|
-
declare module 'react-table' {
|
|
59
|
-
// take this file as-is, or comment out the sections that don't apply to your plugin configuration
|
|
60
|
-
|
|
61
|
-
export interface TableOptions<D extends Record<string, unknown>>
|
|
62
|
-
extends UseSortByOptions<D>,
|
|
63
|
-
UseRowSelectOptions<D>,
|
|
64
|
-
UseFiltersOptions<D>,
|
|
65
|
-
UseGlobalFiltersOptions<D>{}
|
|
66
|
-
|
|
67
|
-
// extends UseExpandedOptions<D>,
|
|
68
|
-
// UseGroupByOptions<D>,
|
|
69
|
-
// UsePaginationOptions<D>,
|
|
70
|
-
// UseResizeColumnsOptions<D>,
|
|
71
|
-
// UseRowSelectOptions<D>,
|
|
72
|
-
// UseRowStateOptions<D>,
|
|
73
|
-
// UseSortByOptions<D>,
|
|
74
|
-
// // note that having Record here allows you to add anything to the options, this matches the spirit of the
|
|
75
|
-
// // underlying js library, but might be cleaner if it's replaced by a more specific type that matches your
|
|
76
|
-
// // feature set, this is a safe default.
|
|
77
|
-
// Record<string, any> {}
|
|
78
|
-
|
|
79
|
-
export interface Hooks<D extends Record<string, unknown> = Record<string, unknown>>
|
|
80
|
-
extends UseSortByHooks<D>,
|
|
81
|
-
UseRowSelectHooks {}
|
|
82
|
-
// extends UseExpandedHooks<D>,
|
|
83
|
-
// UseGroupByHooks<D>,
|
|
84
|
-
// UseRowSelectHooks<D>,
|
|
85
|
-
// UseSortByHooks<D> {}
|
|
86
|
-
|
|
87
|
-
export interface TableInstance<D extends Record<string, unknown> = Record<string, unknown>>
|
|
88
|
-
extends UseSortByInstanceProps<D>,
|
|
89
|
-
UseRowSelectInstanceProps<D>,
|
|
90
|
-
UseFiltersInstanceProps<D>,
|
|
91
|
-
UseGlobalFiltersInstanceProps<D>{}
|
|
92
|
-
// extends UseColumnOrderInstanceProps<D>,
|
|
93
|
-
// UseExpandedInstanceProps<D>,
|
|
94
|
-
// UseGroupByInstanceProps<D>,
|
|
95
|
-
// UsePaginationInstanceProps<D>,
|
|
96
|
-
// UseRowSelectInstanceProps<D>,
|
|
97
|
-
// UseRowStateInstanceProps<D>,
|
|
98
|
-
// UseSortByInstanceProps<D> {}
|
|
99
|
-
|
|
100
|
-
export interface TableState<D extends Record<string, unknown> = Record<string, unknown>>
|
|
101
|
-
extends UseSortByState<D>,
|
|
102
|
-
UseRowSelectState<D>,
|
|
103
|
-
UseFiltersState<D>,
|
|
104
|
-
UseGlobalFiltersState<D> {}
|
|
105
|
-
// extends UseColumnOrderState<D>,
|
|
106
|
-
// UseExpandedState<D>,
|
|
107
|
-
// UseGroupByState<D>,
|
|
108
|
-
// UsePaginationState<D>,
|
|
109
|
-
// UseResizeColumnsState<D>,
|
|
110
|
-
// UseRowSelectState<D>,
|
|
111
|
-
// UseRowStateState<D>,
|
|
112
|
-
// UseSortByState<D> {}
|
|
113
|
-
|
|
114
|
-
export interface ColumnInterface<D extends Record<string, unknown> = Record<string, unknown>>
|
|
115
|
-
extends UseSortByColumnOptions<D>,
|
|
116
|
-
UseFiltersColumnOptions<D>,
|
|
117
|
-
UseGlobalFiltersColumnOptions<D> {}
|
|
118
|
-
// UseGroupByColumnOptions<D>,
|
|
119
|
-
// UseResizeColumnsColumnOptions<D>,
|
|
120
|
-
// UseSortByColumnOptions<D> {}
|
|
121
|
-
|
|
122
|
-
export interface ColumnInstance<D extends Record<string, unknown> = Record<string, unknown>>
|
|
123
|
-
extends UseSortByColumnProps<D>,
|
|
124
|
-
UseFiltersColumnProps<D> {}
|
|
125
|
-
// UseGroupByColumnProps<D>,
|
|
126
|
-
// UseResizeColumnsColumnProps<D>,
|
|
127
|
-
// UseSortByColumnProps<D> {}
|
|
128
|
-
|
|
129
|
-
// export interface Cell<D extends Record<string, unknown> = Record<string, unknown>, V = any>
|
|
130
|
-
// extends UseGroupByCellProps<D>,
|
|
131
|
-
// UseRowStateCellProps<D> {}
|
|
132
|
-
|
|
133
|
-
export interface Row<D extends Record<string, unknown> = Record<string, unknown>>
|
|
134
|
-
extends UseRowSelectRowProps<D> {}
|
|
135
|
-
// extends UseExpandedRowProps<D>,
|
|
136
|
-
// UseGroupByRowProps<D>,
|
|
137
|
-
// UseRowSelectRowProps<D>,
|
|
138
|
-
// UseRowStateRowProps<D> {}
|
|
1
|
+
/**
|
|
2
|
+
* In order to add typings for various react-table plugins, the below should be selectively
|
|
3
|
+
* uncommented based on what we are using.
|
|
4
|
+
*
|
|
5
|
+
* Refer: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-table
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import {
|
|
9
|
+
// UseColumnOrderInstanceProps,
|
|
10
|
+
// UseColumnOrderState,
|
|
11
|
+
// UseExpandedHooks,
|
|
12
|
+
// UseExpandedInstanceProps,
|
|
13
|
+
// UseExpandedOptions,
|
|
14
|
+
// UseExpandedRowProps,
|
|
15
|
+
// UseExpandedState,
|
|
16
|
+
UseFiltersColumnOptions,
|
|
17
|
+
UseFiltersColumnProps,
|
|
18
|
+
UseFiltersInstanceProps,
|
|
19
|
+
UseFiltersOptions,
|
|
20
|
+
UseFiltersState,
|
|
21
|
+
UseGlobalFiltersColumnOptions,
|
|
22
|
+
UseGlobalFiltersInstanceProps,
|
|
23
|
+
UseGlobalFiltersOptions,
|
|
24
|
+
UseGlobalFiltersState,
|
|
25
|
+
// UseGroupByCellProps,
|
|
26
|
+
// UseGroupByColumnOptions,
|
|
27
|
+
// UseGroupByColumnProps,
|
|
28
|
+
// UseGroupByHooks,
|
|
29
|
+
// UseGroupByInstanceProps,
|
|
30
|
+
// UseGroupByOptions,
|
|
31
|
+
// UseGroupByRowProps,
|
|
32
|
+
// UseGroupByState,
|
|
33
|
+
// UsePaginationInstanceProps,
|
|
34
|
+
// UsePaginationOptions,
|
|
35
|
+
// UsePaginationState,
|
|
36
|
+
// UseResizeColumnsColumnOptions,
|
|
37
|
+
// UseResizeColumnsColumnProps,
|
|
38
|
+
// UseResizeColumnsOptions,
|
|
39
|
+
// UseResizeColumnsState,
|
|
40
|
+
UseRowSelectHooks,
|
|
41
|
+
UseRowSelectInstanceProps,
|
|
42
|
+
UseRowSelectOptions,
|
|
43
|
+
UseRowSelectRowProps,
|
|
44
|
+
UseRowSelectState,
|
|
45
|
+
// UseRowStateCellProps,
|
|
46
|
+
// UseRowStateInstanceProps,
|
|
47
|
+
// UseRowStateOptions,
|
|
48
|
+
// UseRowStateRowProps,
|
|
49
|
+
// UseRowStateState,
|
|
50
|
+
UseSortByColumnOptions,
|
|
51
|
+
UseSortByColumnProps,
|
|
52
|
+
UseSortByHooks,
|
|
53
|
+
UseSortByInstanceProps,
|
|
54
|
+
UseSortByOptions,
|
|
55
|
+
UseSortByState
|
|
56
|
+
} from 'react-table';
|
|
57
|
+
|
|
58
|
+
declare module 'react-table' {
|
|
59
|
+
// take this file as-is, or comment out the sections that don't apply to your plugin configuration
|
|
60
|
+
|
|
61
|
+
export interface TableOptions<D extends Record<string, unknown>>
|
|
62
|
+
extends UseSortByOptions<D>,
|
|
63
|
+
UseRowSelectOptions<D>,
|
|
64
|
+
UseFiltersOptions<D>,
|
|
65
|
+
UseGlobalFiltersOptions<D>{}
|
|
66
|
+
|
|
67
|
+
// extends UseExpandedOptions<D>,
|
|
68
|
+
// UseGroupByOptions<D>,
|
|
69
|
+
// UsePaginationOptions<D>,
|
|
70
|
+
// UseResizeColumnsOptions<D>,
|
|
71
|
+
// UseRowSelectOptions<D>,
|
|
72
|
+
// UseRowStateOptions<D>,
|
|
73
|
+
// UseSortByOptions<D>,
|
|
74
|
+
// // note that having Record here allows you to add anything to the options, this matches the spirit of the
|
|
75
|
+
// // underlying js library, but might be cleaner if it's replaced by a more specific type that matches your
|
|
76
|
+
// // feature set, this is a safe default.
|
|
77
|
+
// Record<string, any> {}
|
|
78
|
+
|
|
79
|
+
export interface Hooks<D extends Record<string, unknown> = Record<string, unknown>>
|
|
80
|
+
extends UseSortByHooks<D>,
|
|
81
|
+
UseRowSelectHooks {}
|
|
82
|
+
// extends UseExpandedHooks<D>,
|
|
83
|
+
// UseGroupByHooks<D>,
|
|
84
|
+
// UseRowSelectHooks<D>,
|
|
85
|
+
// UseSortByHooks<D> {}
|
|
86
|
+
|
|
87
|
+
export interface TableInstance<D extends Record<string, unknown> = Record<string, unknown>>
|
|
88
|
+
extends UseSortByInstanceProps<D>,
|
|
89
|
+
UseRowSelectInstanceProps<D>,
|
|
90
|
+
UseFiltersInstanceProps<D>,
|
|
91
|
+
UseGlobalFiltersInstanceProps<D>{}
|
|
92
|
+
// extends UseColumnOrderInstanceProps<D>,
|
|
93
|
+
// UseExpandedInstanceProps<D>,
|
|
94
|
+
// UseGroupByInstanceProps<D>,
|
|
95
|
+
// UsePaginationInstanceProps<D>,
|
|
96
|
+
// UseRowSelectInstanceProps<D>,
|
|
97
|
+
// UseRowStateInstanceProps<D>,
|
|
98
|
+
// UseSortByInstanceProps<D> {}
|
|
99
|
+
|
|
100
|
+
export interface TableState<D extends Record<string, unknown> = Record<string, unknown>>
|
|
101
|
+
extends UseSortByState<D>,
|
|
102
|
+
UseRowSelectState<D>,
|
|
103
|
+
UseFiltersState<D>,
|
|
104
|
+
UseGlobalFiltersState<D> {}
|
|
105
|
+
// extends UseColumnOrderState<D>,
|
|
106
|
+
// UseExpandedState<D>,
|
|
107
|
+
// UseGroupByState<D>,
|
|
108
|
+
// UsePaginationState<D>,
|
|
109
|
+
// UseResizeColumnsState<D>,
|
|
110
|
+
// UseRowSelectState<D>,
|
|
111
|
+
// UseRowStateState<D>,
|
|
112
|
+
// UseSortByState<D> {}
|
|
113
|
+
|
|
114
|
+
export interface ColumnInterface<D extends Record<string, unknown> = Record<string, unknown>>
|
|
115
|
+
extends UseSortByColumnOptions<D>,
|
|
116
|
+
UseFiltersColumnOptions<D>,
|
|
117
|
+
UseGlobalFiltersColumnOptions<D> {}
|
|
118
|
+
// UseGroupByColumnOptions<D>,
|
|
119
|
+
// UseResizeColumnsColumnOptions<D>,
|
|
120
|
+
// UseSortByColumnOptions<D> {}
|
|
121
|
+
|
|
122
|
+
export interface ColumnInstance<D extends Record<string, unknown> = Record<string, unknown>>
|
|
123
|
+
extends UseSortByColumnProps<D>,
|
|
124
|
+
UseFiltersColumnProps<D> {}
|
|
125
|
+
// UseGroupByColumnProps<D>,
|
|
126
|
+
// UseResizeColumnsColumnProps<D>,
|
|
127
|
+
// UseSortByColumnProps<D> {}
|
|
128
|
+
|
|
129
|
+
// export interface Cell<D extends Record<string, unknown> = Record<string, unknown>, V = any>
|
|
130
|
+
// extends UseGroupByCellProps<D>,
|
|
131
|
+
// UseRowStateCellProps<D> {}
|
|
132
|
+
|
|
133
|
+
export interface Row<D extends Record<string, unknown> = Record<string, unknown>>
|
|
134
|
+
extends UseRowSelectRowProps<D> {}
|
|
135
|
+
// extends UseExpandedRowProps<D>,
|
|
136
|
+
// UseGroupByRowProps<D>,
|
|
137
|
+
// UseRowSelectRowProps<D>,
|
|
138
|
+
// UseRowStateRowProps<D> {}
|
|
139
139
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare namespace trackJs {
|
|
2
|
-
declare function track(error: string | Error): void;
|
|
1
|
+
declare namespace trackJs {
|
|
2
|
+
declare function track(error: string | Error): void;
|
|
3
3
|
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import videojs from 'video.js';
|
|
2
|
-
|
|
3
|
-
declare module 'video.js' {
|
|
4
|
-
export interface VideoJsPlayer {
|
|
5
|
-
qualityLevels(): QualityLevelList;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
declare module 'videojs-contrib-quality-levels' {
|
|
10
|
-
export interface QualityLevelList extends videojs.EventTarget {
|
|
11
|
-
[id: string]: QualityLevel;
|
|
12
|
-
selectedIndex: number;
|
|
13
|
-
length: number;
|
|
14
|
-
addQualityLevel(representation: Representation): QualityLevel;
|
|
15
|
-
removeQualityLevel(qualityLevel: QualityLevel): QualityLevel;
|
|
16
|
-
getQualityLevelById(id: string): QualityLevel;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface QualityLevel {
|
|
20
|
-
id: string;
|
|
21
|
-
label: string;
|
|
22
|
-
enabled: boolean;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface Representation {
|
|
26
|
-
id: string;
|
|
27
|
-
enabled(enabled: boolean): boolean;
|
|
28
|
-
}
|
|
1
|
+
import videojs from 'video.js';
|
|
2
|
+
|
|
3
|
+
declare module 'video.js' {
|
|
4
|
+
export interface VideoJsPlayer {
|
|
5
|
+
qualityLevels(): QualityLevelList;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare module 'videojs-contrib-quality-levels' {
|
|
10
|
+
export interface QualityLevelList extends videojs.EventTarget {
|
|
11
|
+
[id: string]: QualityLevel;
|
|
12
|
+
selectedIndex: number;
|
|
13
|
+
length: number;
|
|
14
|
+
addQualityLevel(representation: Representation): QualityLevel;
|
|
15
|
+
removeQualityLevel(qualityLevel: QualityLevel): QualityLevel;
|
|
16
|
+
getQualityLevelById(id: string): QualityLevel;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface QualityLevel {
|
|
20
|
+
id: string;
|
|
21
|
+
label: string;
|
|
22
|
+
enabled: boolean;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface Representation {
|
|
26
|
+
id: string;
|
|
27
|
+
enabled(enabled: boolean): boolean;
|
|
28
|
+
}
|
|
29
29
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Define our templates as a module so that we can use
|
|
3
|
-
* import statements just the same as we do for other
|
|
4
|
-
* ts/js code.
|
|
5
|
-
*/
|
|
6
|
-
declare module '*.scss';
|
|
7
|
-
declare module '*.svg';
|
|
8
|
-
|
|
9
|
-
declare module '*.json' {
|
|
10
|
-
export const value: any;
|
|
11
|
-
export default value;
|
|
12
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Define our templates as a module so that we can use
|
|
3
|
+
* import statements just the same as we do for other
|
|
4
|
+
* ts/js code.
|
|
5
|
+
*/
|
|
6
|
+
declare module '*.scss';
|
|
7
|
+
declare module '*.svg';
|
|
8
|
+
|
|
9
|
+
declare module '*.json' {
|
|
10
|
+
export const value: any;
|
|
11
|
+
export default value;
|
|
12
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_reports=self.webpackChunk_clickview_reports||[]).push([[120],{30321:(t,e,r)=>{r.d(e,{b:()=>bt});var n=r(32735),o=r(81886),i=r(49267),c=r(49075),u=r(23481),a=r(64364),f=r(31908);function l(t){return l="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},l(t)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,p(n.key),n)}}function p(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==l(e)?e:String(e)}function y(t,e,r){return e=v(e),function(t,e){if(e&&("object"===l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,b()?Reflect.construct(e,r||[],v(t).constructor):e.apply(t,r))}function b(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(b=function(){return!!t})()}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}var m=u.T.encloseNamespace("shared.videoPrivateError"),h=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=y(this,e,[m("title")])).video=t,r}var r,n;return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),r=e,(n=[{key:"name",get:function(){return"VideoPrivateError"}},{key:"heading",get:function(){return m("title")}},{key:"description",get:function(){return t=this.video,f.M.isClip(t)?m("clipDescription"):f.M.isInteractive(t)?m("interactiveDescription"):m("videoDescription");var t}}])&&s(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),e}(a.H);function w(t){return w="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},w(t)}function O(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,g(n.key),n)}}function g(t){var e=function(t,e){if("object"!=w(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=w(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==w(e)?e:String(e)}function j(t,e,r){return e=S(e),function(t,e){if(e&&("object"===w(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,P()?Reflect.construct(e,r||[],S(t).constructor):e.apply(t,r))}function P(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(P=function(){return!!t})()}function S(t){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},S(t)}function _(t,e){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_(t,e)}var T=u.T.encloseNamespace("shared.videoNotInSubscriptionError"),E=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=j(this,e,["VideoNotInSubscriptionError"])).video=t,r}var r,n;return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_(t,e)}(e,t),r=e,(n=[{key:"name",get:function(){return"VideoNotInSubscriptionError"}},{key:"heading",get:function(){return T("title")}},{key:"description",get:function(){return T("description")}}])&&O(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),e}(a.H);function k(t){return k="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},k(t)}function R(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,C(n.key),n)}}function C(t){var e=function(t,e){if("object"!=k(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=k(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==k(e)?e:String(e)}function D(t,e,r){return e=M(e),function(t,e){if(e&&("object"===k(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,I()?Reflect.construct(e,r||[],M(t).constructor):e.apply(t,r))}function I(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(I=function(){return!!t})()}function M(t){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},M(t)}function B(t,e){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},B(t,e)}var N=u.T.encloseNamespace("shared.parentVideoDeletedError");function V(t){return f.M.isClip(t)?N("clipTitle"):f.M.isInteractive(t)?N("interactiveTitle"):N("videoTitle")}var H=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=D(this,e,[V(t)])).video=t,r}var r,n;return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&B(t,e)}(e,t),r=e,(n=[{key:"name",get:function(){return"ParentVideoDeletedError"}},{key:"heading",get:function(){return V(this.video)}},{key:"description",get:function(){return t=this.video,f.M.isClip(t)?N("clipDescription"):f.M.isInteractive(t)?N("interactiveDescription"):N("videoDescription");var t}}])&&R(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),e}(a.H);function x(t){return x="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},x(t)}function F(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,A(n.key),n)}}function A(t){var e=function(t,e){if("object"!=x(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==x(e)?e:String(e)}function U(t,e,r){return e=z(e),function(t,e){if(e&&("object"===x(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,q()?Reflect.construct(e,r||[],z(t).constructor):e.apply(t,r))}function q(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(q=function(){return!!t})()}function z(t){return z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},z(t)}function G(t,e){return G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},G(t,e)}var K=u.T.encloseNamespace("shared.videoPrivateError");function Q(t){return f.M.isClip(t)?K("clipTitle"):f.M.isInteractive(t)?K("interactiveTitle"):K("videoTitle")}var W=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=U(this,e,[Q(t)])).video=t,r}var r,n;return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&G(t,e)}(e,t),r=e,(n=[{key:"name",get:function(){return"VideoPrivateError"}},{key:"heading",get:function(){return Q(this.video)}},{key:"description",get:function(){return t=this.video,f.M.isClip(t)?K("clipDescription"):f.M.isInteractive(t)?K("interactiveDescription"):K("videoDescription");var t}}])&&F(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),e}(a.H);function J(t){return J="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},J(t)}function L(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,X(n.key),n)}}function X(t){var e=function(t,e){if("object"!=J(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=J(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==J(e)?e:String(e)}function Y(t,e,r){return e=$(e),function(t,e){if(e&&("object"===J(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Z()?Reflect.construct(e,r||[],$(t).constructor):e.apply(t,r))}function Z(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Z=function(){return!!t})()}function $(t){return $=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$(t)}function tt(t,e){return tt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},tt(t,e)}var et=u.T.encloseNamespace("shared.videoRatingAccess");function rt(t){return f.M.isClip(t)?et("clipTitle"):f.M.isInteractive(t)?et("interactiveTitle"):et("videoTitle")}var nt=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=Y(this,e,[rt(t)])).video=t,r}var r,n;return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&tt(t,e)}(e,t),r=e,(n=[{key:"name",get:function(){return"VideoRatingAccessError"}},{key:"heading",get:function(){return rt(this.video)}},{key:"description",get:function(){return t=this.video,f.M.isClip(t)?et("clipDescription"):f.M.isInteractive(t)?et("interactiveDescription"):et("videoDescription");var t}}])&&L(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),e}(a.H);function ot(t){return ot="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},ot(t)}function it(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ct(n.key),n)}}function ct(t){var e=function(t,e){if("object"!=ot(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=ot(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ot(e)?e:String(e)}function ut(t,e,r){return e=ft(e),function(t,e){if(e&&("object"===ot(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,at()?Reflect.construct(e,r||[],ft(t).constructor):e.apply(t,r))}function at(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(at=function(){return!!t})()}function ft(t){return ft=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ft(t)}function lt(t,e){return lt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},lt(t,e)}var st=u.T.encloseNamespace("shared.videoRestrictedError");function pt(t){return f.M.isClip(t)?st("clipTitle"):f.M.isInteractive(t)?st("interactiveTitle"):st("videoTitle")}var yt={"rating-not-allowed":nt,"video-deleted":H,private:W,"clickview-private":E,"login-required":h,"restricted-access":function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=ut(this,e,[pt(t)])).video=t,r}var r,n;return 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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&<(t,e)}(e,t),r=e,(n=[{key:"name",get:function(){return"VideoRestrictedError"}},{key:"heading",get:function(){return pt(this.video)}},{key:"description",get:function(){return t=this.video,f.M.isClip(t)?st("clipDescription"):f.M.isInteractive(t)?st("interactiveDescription"):st("videoDescription");var t}}])&&it(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),e}(a.H),"content-region-violated":i.a},bt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yt;n.useEffect((function(){var r;if(t.hasCompleted){var n=t.data;if(n){var i=f.M.getCanBeConsumed(n),u=i.canConsume,a=i.reason;if(!u){var l=null!==(r=Object.assign(Object.assign({},yt),e)[null!=a?a:"private"])&&void 0!==r?r:c._;o.Q.Ry.throw(new l(n))}}}}),[t.hasCompleted])}},39553:(t,e,r)=>{r.d(e,{W:()=>u});var n=r(20354),o=r(31949),i=r(94884),c=r(99827);function u(t,e){var r,u=(0,c.R)(),a=n.a.useBasicFetch(o.N.currentUser()),f=n.a.useBasicFetch(!!t&&i.b.interactiveMetadata(t)),l=n.a.useBasicFetch(!!(null===(r=f.data)||void 0===r?void 0:r.interactiveId)&&i.b.interactive(f.data.interactiveId)),s=!(!a.data||!l.data||!e&&!u);return n.a.useBasicFetch(s&&i.b.interactiveResultSet(f.data.interactiveId,f.data.id,a.data,null!=e?e:u))}},94884:(t,e,r)=>{r.d(e,{b:()=>c});var n=r(99940),o=r(82974);function i(t,e){return{currentUserId:t.id,currentCustomerId:t.customerId,dateRange:{start:e.start,end:e.end},userIds:e.userId,classroomsAndGroups:e.groupId}}var c={interactiveMetadata:function(t,e,r,n){return{url:"{gateway}/v1/objects/".concat(t,"?query=_canBeConsumed,_thumbnail,_parentVideo[rating],_parentClip"),key:"interactive:metadata:".concat(t),success:e,error:r,always:n}},interactive:function(t,e,r,n){return{url:"/api/domain/v1/interactives/".concat(t),key:"interactive:".concat(t),success:e,error:r,always:n}},interactiveResultSet:function(t,e,r,c,u,a,f){return{url:"/api/domain/v2/analytics/interactives/".concat(t,"/metadata/").concat(e),key:(0,o.H)("interactive:result:set:".concat(t,":").concat(e),c),data:i(r,c),type:n.k.POST,normalize:!1,success:u,error:a,always:f}},mark:function(t,e,r,o,i,c,u){return{url:"/api/domain/v1/analytics/answers/".concat(r),key:"mark:answer:".concat(r,":").concat(o.resultId),type:n.k.PUT,data:o,normalize:!1,invalidationKeys:"interactive:result:set:".concat(t,":").concat(e),success:i,error:c,always:u}}}}}]);
|