@clickview/library-editor 1.1.27-dev.1 → 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/en.json +1 -1
- package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +1 -0
- package/dist/libs/common/src/backbone/utils/LocalStorageHelper.d.ts +1 -1
- package/dist/libs/shared/src/interfaces/models/ClassroomGroup.d.ts +1 -1
- 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/shared/components/typeahead-input/SearchTypeaheadComponent.d.ts +1 -0
- package/dist/scripts/{0-e25d47c666.chunk.js → 0-93a3cbfbb6.chunk.js} +1 -1
- package/dist/scripts/{1-620c685eee.chunk.js → 1-69d9709724.chunk.js} +1 -1
- package/dist/scripts/{10-3baf058564.chunk.js → 10-8b01d98b20.chunk.js} +1 -1
- package/dist/scripts/{11-9f5f0c25dc.chunk.js → 11-cbe69fa3f0.chunk.js} +1 -1
- package/dist/scripts/{12-b460ad405e.chunk.js → 12-9b10cdc17d.chunk.js} +1 -1
- package/dist/scripts/13-1e10e6e87f.chunk.js +1 -0
- package/dist/scripts/{14-670309ef33.chunk.js → 14-ab7a30ee22.chunk.js} +1 -1
- package/dist/scripts/{15-39010184ed.chunk.js → 15-74a4408ee9.chunk.js} +1 -1
- package/dist/scripts/{16-0971cabfc8.chunk.js → 16-42f9f38a5b.chunk.js} +1 -1
- package/dist/scripts/{17-f364868870.chunk.js → 17-b1675f5397.chunk.js} +1 -1
- package/dist/scripts/{2-cd7f1d10b5.chunk.js → 2-cfce7347b3.chunk.js} +1 -1
- package/dist/scripts/{20-42dc06da39.chunk.js → 20-9f938a6f3e.chunk.js} +1 -1
- package/dist/scripts/{21-05615559be.chunk.js → 21-3a0591790a.chunk.js} +1 -1
- package/dist/scripts/{22-70b4c18dd2.chunk.js → 22-75ca7c2ae2.chunk.js} +1 -1
- package/dist/scripts/23-6cc6df1006.chunk.js +1 -0
- package/dist/scripts/{24-6fbd14025b.chunk.js → 24-857f2e7cba.chunk.js} +1 -1
- package/dist/scripts/{25-3d067b8b9a.chunk.js → 25-30d6eaa470.chunk.js} +1 -1
- package/dist/scripts/{26-468305820a.chunk.js → 26-7e0e9534cf.chunk.js} +1 -1
- package/dist/scripts/27-460f20f83b.chunk.js +1 -0
- package/dist/scripts/{28-f3f43a3001.chunk.js → 28-c4655d4bd8.chunk.js} +1 -1
- package/dist/scripts/{29-268278d2ac.chunk.js → 29-3629c8b906.chunk.js} +1 -1
- package/dist/scripts/{3-4694b66aa5.chunk.js → 3-34f154b85d.chunk.js} +1 -1
- package/dist/scripts/{30-694b0a0d4b.chunk.js → 30-9d7a8c6475.chunk.js} +1 -1
- package/dist/scripts/{31-4c542c18dc.chunk.js → 31-a80eb231ed.chunk.js} +1 -1
- package/dist/scripts/{32-a1543ffe27.chunk.js → 32-db0c763740.chunk.js} +1 -1
- package/dist/scripts/{33-9685703df6.chunk.js → 33-b9fef236ae.chunk.js} +1 -1
- package/dist/scripts/{34-eb9f6709b3.chunk.js → 34-d2a7193286.chunk.js} +1 -1
- package/dist/scripts/{35-1ff49137e7.chunk.js → 35-1b97d95b2a.chunk.js} +1 -1
- package/dist/scripts/{36-9e89154ca2.chunk.js → 36-179634ea36.chunk.js} +1 -1
- package/dist/scripts/{37-80589d542e.chunk.js → 37-e6d9fbefd1.chunk.js} +1 -1
- package/dist/scripts/{38-7e88534f67.chunk.js → 38-0c6051fb45.chunk.js} +1 -1
- package/dist/scripts/{39-99824f3b64.chunk.js → 39-5fffd05811.chunk.js} +1 -1
- package/dist/scripts/{4-ad1e4b43da.chunk.js → 4-2a04f5b2b3.chunk.js} +1 -1
- package/dist/scripts/{40-dbfd665c74.chunk.js → 40-5d3d9611b5.chunk.js} +1 -1
- package/dist/scripts/{41-25fbac3d17.chunk.js → 41-f3b2533950.chunk.js} +1 -1
- package/dist/scripts/42-075fbbf19d.chunk.js +1 -0
- package/dist/scripts/{43-5ef29feb2c.chunk.js → 43-205ccfa9a4.chunk.js} +1 -1
- package/dist/scripts/{44-223f602431.chunk.js → 44-4be8465afa.chunk.js} +1 -1
- package/dist/scripts/{45-344492a36f.chunk.js → 45-541254a177.chunk.js} +1 -1
- package/dist/scripts/{46-9ca7afd6a4.chunk.js → 46-fe575b6c9f.chunk.js} +1 -1
- package/dist/scripts/{47-ac0c9c5ce1.chunk.js → 47-18d84f7b83.chunk.js} +1 -1
- package/dist/scripts/{48-6bf590b9a0.chunk.js → 48-40adeb652e.chunk.js} +1 -1
- package/dist/scripts/{49-8e3e782ffb.chunk.js → 49-ac59f2a6fd.chunk.js} +1 -1
- package/dist/scripts/{5-b236603e85.chunk.js → 5-ce9948090c.chunk.js} +1 -1
- package/dist/scripts/{50-30ba08212e.chunk.js → 50-8cc4935ea5.chunk.js} +1 -1
- package/dist/scripts/{51-828972defb.chunk.js → 51-cd80402e6e.chunk.js} +1 -1
- package/dist/scripts/{52-b2acf3e742.chunk.js → 52-7e11748c73.chunk.js} +1 -1
- package/dist/scripts/{53-5d6ea94871.chunk.js → 53-e807e56657.chunk.js} +1 -1
- package/dist/scripts/{54-2d8bd6fde0.chunk.js → 54-265c2852ce.chunk.js} +1 -1
- package/dist/scripts/{55-4a8d360746.chunk.js → 55-68bef0b859.chunk.js} +1 -1
- package/dist/scripts/{56-ad12ebab5f.chunk.js → 56-f52cc13b44.chunk.js} +1 -1
- package/dist/scripts/{57-53b89c2ef0.chunk.js → 57-77549e4856.chunk.js} +1 -1
- package/dist/scripts/{58-b246abe78c.chunk.js → 58-3f44c0ba1a.chunk.js} +1 -1
- package/dist/scripts/{59-19290686e0.chunk.js → 59-bf231da287.chunk.js} +1 -1
- package/dist/scripts/{6-6fb543aa78.chunk.js → 6-97a29c3fdd.chunk.js} +1 -1
- package/dist/scripts/{60-0c075e7b5c.chunk.js → 60-c6a9325b5e.chunk.js} +1 -1
- package/dist/scripts/{61-2725bbfab2.chunk.js → 61-5fe4279f6d.chunk.js} +1 -1
- package/dist/scripts/{62-472d10a18e.chunk.js → 62-ff1c8453b6.chunk.js} +1 -1
- package/dist/scripts/{63-7d00e50441.chunk.js → 63-47a43e2399.chunk.js} +1 -1
- package/dist/scripts/{64-1b42f78644.chunk.js → 64-398f9ac217.chunk.js} +1 -1
- package/dist/scripts/{65-14af88c745.chunk.js → 65-d75308a09e.chunk.js} +1 -1
- package/dist/scripts/{66-bc274df13a.chunk.js → 66-ec32c5588a.chunk.js} +1 -1
- package/dist/scripts/{67-d1edef09d6.chunk.js → 67-6805e53bfb.chunk.js} +1 -1
- package/dist/scripts/{68-52468201b9.chunk.js → 68-046ada4945.chunk.js} +1 -1
- package/dist/scripts/{69-b681e9a99c.chunk.js → 69-235a8e6754.chunk.js} +1 -1
- package/dist/scripts/{7-2807a666bc.chunk.js → 7-55f3aed0f4.chunk.js} +1 -1
- package/dist/scripts/{70-d4018838a9.chunk.js → 70-150be3f4a2.chunk.js} +1 -1
- package/dist/scripts/{71-29cce07c7f.chunk.js → 71-c63b7a2a30.chunk.js} +1 -1
- package/dist/scripts/{72-6f83214b8d.chunk.js → 72-53bdb8c37f.chunk.js} +1 -1
- package/dist/scripts/{8-8f44e8bfc4.chunk.js → 8-94205353a6.chunk.js} +1 -1
- package/dist/scripts/{9-b8f9ea66c4.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 +4 -4
- package/dist/css/1.chunk.css.map +0 -1
- package/dist/css/10.chunk.css.map +0 -1
- package/dist/css/11.chunk.css +0 -137
- package/dist/css/11.chunk.css.map +0 -1
- package/dist/css/12.chunk.css.map +0 -1
- package/dist/css/13.chunk.css.map +0 -1
- package/dist/css/14.chunk.css.map +0 -1
- package/dist/css/16.chunk.css.map +0 -1
- package/dist/css/17.chunk.css.map +0 -1
- package/dist/css/18.chunk.css +0 -20
- package/dist/css/18.chunk.css.map +0 -1
- package/dist/css/2.chunk.css +0 -145
- package/dist/css/2.chunk.css.map +0 -1
- package/dist/css/21.chunk.css.map +0 -1
- package/dist/css/22.chunk.css.map +0 -1
- package/dist/css/23.chunk.css.map +0 -1
- package/dist/css/25.chunk.css.map +0 -1
- package/dist/css/26.chunk.css.map +0 -1
- package/dist/css/28.chunk.css.map +0 -1
- package/dist/css/29.chunk.css.map +0 -1
- package/dist/css/3.chunk.css.map +0 -1
- package/dist/css/30.chunk.css.map +0 -1
- package/dist/css/31.chunk.css.map +0 -1
- package/dist/css/32.chunk.css.map +0 -1
- package/dist/css/33.chunk.css.map +0 -1
- package/dist/css/34.chunk.css +0 -21
- package/dist/css/34.chunk.css.map +0 -1
- package/dist/css/35.chunk.css +0 -20
- package/dist/css/35.chunk.css.map +0 -1
- package/dist/css/36.chunk.css +0 -14
- package/dist/css/36.chunk.css.map +0 -1
- package/dist/css/37.chunk.css.map +0 -1
- package/dist/css/38.chunk.css.map +0 -1
- package/dist/css/40.chunk.css.map +0 -1
- package/dist/css/41.chunk.css.map +0 -1
- package/dist/css/42.chunk.css.map +0 -1
- package/dist/css/43.chunk.css.map +0 -1
- package/dist/css/44.chunk.css.map +0 -1
- package/dist/css/45.chunk.css.map +0 -1
- package/dist/css/46.chunk.css.map +0 -1
- package/dist/css/47.chunk.css.map +0 -1
- package/dist/css/48.chunk.css.map +0 -1
- package/dist/css/49.chunk.css +0 -35
- package/dist/css/49.chunk.css.map +0 -1
- package/dist/css/50.chunk.css.map +0 -1
- package/dist/css/51.chunk.css.map +0 -1
- package/dist/css/52.chunk.css +0 -66
- package/dist/css/52.chunk.css.map +0 -1
- package/dist/css/55.chunk.css.map +0 -1
- package/dist/css/56.chunk.css.map +0 -1
- package/dist/css/58.chunk.css.map +0 -1
- package/dist/css/59.chunk.css.map +0 -1
- package/dist/css/6.chunk.css.map +0 -1
- package/dist/css/60.chunk.css +0 -18
- package/dist/css/60.chunk.css.map +0 -1
- package/dist/css/62.chunk.css.map +0 -1
- package/dist/css/63.chunk.css +0 -170
- package/dist/css/63.chunk.css.map +0 -1
- package/dist/css/67.chunk.css +0 -78
- package/dist/css/67.chunk.css.map +0 -1
- package/dist/css/68.chunk.css +0 -17
- package/dist/css/68.chunk.css.map +0 -1
- package/dist/css/69.chunk.css +0 -17
- package/dist/css/69.chunk.css.map +0 -1
- package/dist/css/7.chunk.css.map +0 -1
- package/dist/css/70.chunk.css +0 -23
- package/dist/css/70.chunk.css.map +0 -1
- package/dist/css/71.chunk.css +0 -40
- package/dist/css/71.chunk.css.map +0 -1
- package/dist/css/72.chunk.css +0 -16
- package/dist/css/72.chunk.css.map +0 -1
- package/dist/css/73.chunk.css +0 -37
- package/dist/css/73.chunk.css.map +0 -1
- package/dist/css/74.chunk.css +0 -29
- package/dist/css/74.chunk.css.map +0 -1
- package/dist/css/75.chunk.css +0 -6
- package/dist/css/75.chunk.css.map +0 -1
- package/dist/css/76.chunk.css +0 -6
- package/dist/css/76.chunk.css.map +0 -1
- package/dist/css/8.chunk.css.map +0 -1
- package/dist/css/library-editor-app.css.map +0 -1
- package/dist/libs/shared/src/enums/PlayerMediaType.d.ts +0 -5
- package/dist/libs/shared/src/interfaces/models/interactive.d.ts +0 -9
- package/dist/scripts/0.chunk.js +0 -1039
- package/dist/scripts/0.chunk.js.map +0 -1
- package/dist/scripts/1.chunk.js +0 -442
- package/dist/scripts/1.chunk.js.map +0 -1
- package/dist/scripts/10.chunk.js +0 -820
- package/dist/scripts/10.chunk.js.map +0 -1
- package/dist/scripts/11.chunk.js +0 -4091
- package/dist/scripts/11.chunk.js.map +0 -1
- package/dist/scripts/12.chunk.js +0 -555
- package/dist/scripts/12.chunk.js.map +0 -1
- package/dist/scripts/13-89b3a0aebb.chunk.js +0 -1
- package/dist/scripts/13.chunk.js +0 -380
- package/dist/scripts/13.chunk.js.map +0 -1
- package/dist/scripts/14.chunk.js +0 -2386
- package/dist/scripts/14.chunk.js.map +0 -1
- package/dist/scripts/15.chunk.js +0 -314
- package/dist/scripts/15.chunk.js.map +0 -1
- package/dist/scripts/16.chunk.js +0 -1290
- package/dist/scripts/16.chunk.js.map +0 -1
- package/dist/scripts/17.chunk.js +0 -381
- package/dist/scripts/17.chunk.js.map +0 -1
- package/dist/scripts/18.chunk.js +0 -393
- package/dist/scripts/18.chunk.js.map +0 -1
- package/dist/scripts/19.chunk.js +0 -364
- package/dist/scripts/19.chunk.js.map +0 -1
- package/dist/scripts/2.chunk.js +0 -523
- package/dist/scripts/2.chunk.js.map +0 -1
- package/dist/scripts/20.chunk.js +0 -317
- package/dist/scripts/20.chunk.js.map +0 -1
- package/dist/scripts/21.chunk.js +0 -531
- package/dist/scripts/21.chunk.js.map +0 -1
- package/dist/scripts/22.chunk.js +0 -354
- package/dist/scripts/22.chunk.js.map +0 -1
- package/dist/scripts/23-3166dfeef5.chunk.js +0 -1
- package/dist/scripts/23.chunk.js +0 -604
- package/dist/scripts/23.chunk.js.map +0 -1
- package/dist/scripts/24.chunk.js +0 -318
- package/dist/scripts/24.chunk.js.map +0 -1
- package/dist/scripts/25.chunk.js +0 -365
- package/dist/scripts/25.chunk.js.map +0 -1
- package/dist/scripts/26.chunk.js +0 -442
- package/dist/scripts/26.chunk.js.map +0 -1
- package/dist/scripts/27-d03a99658e.chunk.js +0 -1
- package/dist/scripts/27.chunk.js +0 -3630
- package/dist/scripts/27.chunk.js.map +0 -1
- package/dist/scripts/28.chunk.js +0 -3172
- package/dist/scripts/28.chunk.js.map +0 -1
- package/dist/scripts/29.chunk.js +0 -3090
- package/dist/scripts/29.chunk.js.map +0 -1
- package/dist/scripts/3.chunk.js +0 -845
- package/dist/scripts/3.chunk.js.map +0 -1
- package/dist/scripts/30.chunk.js +0 -1851
- package/dist/scripts/30.chunk.js.map +0 -1
- package/dist/scripts/31.chunk.js +0 -958
- package/dist/scripts/31.chunk.js.map +0 -1
- package/dist/scripts/32.chunk.js +0 -1239
- package/dist/scripts/32.chunk.js.map +0 -1
- package/dist/scripts/33.chunk.js +0 -971
- package/dist/scripts/33.chunk.js.map +0 -1
- package/dist/scripts/34.chunk.js +0 -990
- package/dist/scripts/34.chunk.js.map +0 -1
- package/dist/scripts/35.chunk.js +0 -518
- package/dist/scripts/35.chunk.js.map +0 -1
- package/dist/scripts/36.chunk.js +0 -335
- package/dist/scripts/36.chunk.js.map +0 -1
- package/dist/scripts/37.chunk.js +0 -236
- package/dist/scripts/37.chunk.js.map +0 -1
- package/dist/scripts/38.chunk.js +0 -315
- package/dist/scripts/38.chunk.js.map +0 -1
- package/dist/scripts/39.chunk.js +0 -107
- package/dist/scripts/39.chunk.js.map +0 -1
- package/dist/scripts/4.chunk.js +0 -335
- package/dist/scripts/4.chunk.js.map +0 -1
- package/dist/scripts/40.chunk.js +0 -2493
- package/dist/scripts/40.chunk.js.map +0 -1
- package/dist/scripts/41.chunk.js +0 -1782
- package/dist/scripts/41.chunk.js.map +0 -1
- package/dist/scripts/42-9f757567db.chunk.js +0 -1
- package/dist/scripts/42.chunk.js +0 -2327
- package/dist/scripts/42.chunk.js.map +0 -1
- package/dist/scripts/43.chunk.js +0 -1206
- package/dist/scripts/43.chunk.js.map +0 -1
- package/dist/scripts/44.chunk.js +0 -2245
- package/dist/scripts/44.chunk.js.map +0 -1
- package/dist/scripts/45.chunk.js +0 -1065
- package/dist/scripts/45.chunk.js.map +0 -1
- package/dist/scripts/46.chunk.js +0 -655
- package/dist/scripts/46.chunk.js.map +0 -1
- package/dist/scripts/47.chunk.js +0 -736
- package/dist/scripts/47.chunk.js.map +0 -1
- package/dist/scripts/48.chunk.js +0 -994
- package/dist/scripts/48.chunk.js.map +0 -1
- package/dist/scripts/49.chunk.js +0 -761
- package/dist/scripts/49.chunk.js.map +0 -1
- package/dist/scripts/5.chunk.js +0 -15
- package/dist/scripts/5.chunk.js.map +0 -1
- package/dist/scripts/50.chunk.js +0 -530
- package/dist/scripts/50.chunk.js.map +0 -1
- package/dist/scripts/51.chunk.js +0 -932
- package/dist/scripts/51.chunk.js.map +0 -1
- package/dist/scripts/52.chunk.js +0 -408
- package/dist/scripts/52.chunk.js.map +0 -1
- package/dist/scripts/53.chunk.js +0 -756
- package/dist/scripts/53.chunk.js.map +0 -1
- package/dist/scripts/54.chunk.js +0 -681
- package/dist/scripts/54.chunk.js.map +0 -1
- package/dist/scripts/55.chunk.js +0 -645
- package/dist/scripts/55.chunk.js.map +0 -1
- package/dist/scripts/56.chunk.js +0 -346
- package/dist/scripts/56.chunk.js.map +0 -1
- package/dist/scripts/57.chunk.js +0 -422
- package/dist/scripts/57.chunk.js.map +0 -1
- package/dist/scripts/58.chunk.js +0 -437
- package/dist/scripts/58.chunk.js.map +0 -1
- package/dist/scripts/59.chunk.js +0 -342
- package/dist/scripts/59.chunk.js.map +0 -1
- package/dist/scripts/6.chunk.js +0 -484
- package/dist/scripts/6.chunk.js.map +0 -1
- package/dist/scripts/60.chunk.js +0 -254
- package/dist/scripts/60.chunk.js.map +0 -1
- package/dist/scripts/61.chunk.js +0 -408
- package/dist/scripts/61.chunk.js.map +0 -1
- package/dist/scripts/62.chunk.js +0 -142
- package/dist/scripts/62.chunk.js.map +0 -1
- package/dist/scripts/63.chunk.js +0 -147
- package/dist/scripts/63.chunk.js.map +0 -1
- package/dist/scripts/64.chunk.js +0 -439
- package/dist/scripts/64.chunk.js.map +0 -1
- package/dist/scripts/65.chunk.js +0 -582
- package/dist/scripts/65.chunk.js.map +0 -1
- package/dist/scripts/66.chunk.js +0 -442
- package/dist/scripts/66.chunk.js.map +0 -1
- package/dist/scripts/67.chunk.js +0 -295
- package/dist/scripts/67.chunk.js.map +0 -1
- package/dist/scripts/68.chunk.js +0 -165
- package/dist/scripts/68.chunk.js.map +0 -1
- package/dist/scripts/69.chunk.js +0 -248
- package/dist/scripts/69.chunk.js.map +0 -1
- package/dist/scripts/7.chunk.js +0 -309
- package/dist/scripts/7.chunk.js.map +0 -1
- package/dist/scripts/70.chunk.js +0 -207
- package/dist/scripts/70.chunk.js.map +0 -1
- package/dist/scripts/71.chunk.js +0 -237
- package/dist/scripts/71.chunk.js.map +0 -1
- package/dist/scripts/72.chunk.js +0 -331
- package/dist/scripts/72.chunk.js.map +0 -1
- package/dist/scripts/73.chunk.js +0 -404
- package/dist/scripts/73.chunk.js.map +0 -1
- package/dist/scripts/74.chunk.js +0 -301
- package/dist/scripts/74.chunk.js.map +0 -1
- package/dist/scripts/75.chunk.js +0 -231
- package/dist/scripts/75.chunk.js.map +0 -1
- package/dist/scripts/76.chunk.js +0 -157
- package/dist/scripts/76.chunk.js.map +0 -1
- package/dist/scripts/77.chunk.js +0 -307
- package/dist/scripts/77.chunk.js.map +0 -1
- package/dist/scripts/78.chunk.js +0 -249
- package/dist/scripts/78.chunk.js.map +0 -1
- package/dist/scripts/79.chunk.js +0 -282
- package/dist/scripts/79.chunk.js.map +0 -1
- package/dist/scripts/8.chunk.js +0 -307
- package/dist/scripts/8.chunk.js.map +0 -1
- package/dist/scripts/80.chunk.js +0 -308
- package/dist/scripts/80.chunk.js.map +0 -1
- package/dist/scripts/81.chunk.js +0 -366
- package/dist/scripts/81.chunk.js.map +0 -1
- package/dist/scripts/82.chunk.js +0 -314
- package/dist/scripts/82.chunk.js.map +0 -1
- package/dist/scripts/83.chunk.js +0 -328
- package/dist/scripts/83.chunk.js.map +0 -1
- package/dist/scripts/84.chunk.js +0 -313
- package/dist/scripts/84.chunk.js.map +0 -1
- package/dist/scripts/85.chunk.js +0 -291
- package/dist/scripts/85.chunk.js.map +0 -1
- package/dist/scripts/86.chunk.js +0 -119
- package/dist/scripts/86.chunk.js.map +0 -1
- package/dist/scripts/87.chunk.js +0 -219
- package/dist/scripts/87.chunk.js.map +0 -1
- package/dist/scripts/88.chunk.js +0 -194
- package/dist/scripts/88.chunk.js.map +0 -1
- package/dist/scripts/89.chunk.js +0 -522
- package/dist/scripts/89.chunk.js.map +0 -1
- package/dist/scripts/9.chunk.js +0 -222
- package/dist/scripts/9.chunk.js.map +0 -1
- package/dist/scripts/90.chunk.js +0 -337
- package/dist/scripts/90.chunk.js.map +0 -1
- package/dist/scripts/91.chunk.js +0 -131
- package/dist/scripts/91.chunk.js.map +0 -1
- package/dist/scripts/92.chunk.js +0 -266
- package/dist/scripts/92.chunk.js.map +0 -1
- package/dist/scripts/bundle-f28b86bf5b.min.js +0 -8
- package/dist/scripts/bundle.js +0 -67206
- package/dist/scripts/bundle.js.map +0 -1
- package/dist/scripts/polyfills-1d2233ebcc.min.js +0 -1
- package/dist/scripts/polyfills.js +0 -14866
- package/dist/scripts/polyfills.js.map +0 -1
package/dist/scripts/30.chunk.js
DELETED
|
@@ -1,1851 +0,0 @@
|
|
|
1
|
-
(window["webpackJsonp_clickview_library_editor"] = window["webpackJsonp_clickview_library_editor"] || []).push([[30],{
|
|
2
|
-
|
|
3
|
-
/***/ "../../libs/shared/src/legacy/components/pagination/Pagination.hbs":
|
|
4
|
-
/*!*************************************************************************************************************!*\
|
|
5
|
-
!*** C:/ClickView/front-end/clickview/packages/libs/shared/src/legacy/components/pagination/Pagination.hbs ***!
|
|
6
|
-
\*************************************************************************************************************/
|
|
7
|
-
/*! no static exports found */
|
|
8
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
9
|
-
|
|
10
|
-
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
11
|
-
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
12
|
-
return "disabled";
|
|
13
|
-
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
14
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {}), alias3=container.hooks.helperMissing, alias4=container.escapeExpression;
|
|
15
|
-
|
|
16
|
-
return "<div class=\"p-3\">\r\n <a class=\"btn previous-applink btn-secondary "
|
|
17
|
-
+ ((stack1 = helpers.unless.call(alias2,((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.cursors : stack1)) != null ? stack1.previous : stack1),{"name":"unless","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
18
|
-
+ "\">"
|
|
19
|
-
+ alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"previous",{"name":"lang","hash":{},"data":data}))
|
|
20
|
-
+ "</a>\r\n <a class=\"btn next-applink btn-secondary "
|
|
21
|
-
+ ((stack1 = helpers.unless.call(alias2,((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.cursors : stack1)) != null ? stack1.next : stack1),{"name":"unless","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
22
|
-
+ "\">"
|
|
23
|
-
+ alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"next",{"name":"lang","hash":{},"data":data}))
|
|
24
|
-
+ "</a>\r\n</div>";
|
|
25
|
-
},"useData":true});
|
|
26
|
-
|
|
27
|
-
/***/ }),
|
|
28
|
-
|
|
29
|
-
/***/ "../../libs/shared/src/legacy/components/pagination/PaginationComponent.ts":
|
|
30
|
-
/*!*********************************************************************************************************************!*\
|
|
31
|
-
!*** C:/ClickView/front-end/clickview/packages/libs/shared/src/legacy/components/pagination/PaginationComponent.ts ***!
|
|
32
|
-
\*********************************************************************************************************************/
|
|
33
|
-
/*! exports provided: PaginationComponent */
|
|
34
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
35
|
-
|
|
36
|
-
"use strict";
|
|
37
|
-
__webpack_require__.r(__webpack_exports__);
|
|
38
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PaginationComponent", function() { return PaginationComponent; });
|
|
39
|
-
/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! underscore */ "underscore");
|
|
40
|
-
/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(underscore__WEBPACK_IMPORTED_MODULE_0__);
|
|
41
|
-
/* harmony import */ var _common_src_backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
42
|
-
/* harmony import */ var _analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../analytics/src/interfaces */ "../../libs/analytics/src/interfaces/index.ts");
|
|
43
|
-
/* harmony import */ var _analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../analytics/src/AnalyticsHelper */ "../../libs/analytics/src/AnalyticsHelper.ts");
|
|
44
|
-
/* harmony import */ var _Pagination_hbs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Pagination.hbs */ "../../libs/shared/src/legacy/components/pagination/Pagination.hbs");
|
|
45
|
-
/* harmony import */ var _Pagination_hbs__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_Pagination_hbs__WEBPACK_IMPORTED_MODULE_4__);
|
|
46
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
47
|
-
|
|
48
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
49
|
-
|
|
50
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
51
|
-
|
|
52
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
53
|
-
|
|
54
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
55
|
-
|
|
56
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
57
|
-
|
|
58
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
59
|
-
|
|
60
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
61
|
-
|
|
62
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
63
|
-
|
|
64
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
65
|
-
|
|
66
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
67
|
-
|
|
68
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
var PaginationComponent = /*#__PURE__*/function (_Core$Component) {
|
|
76
|
-
_inherits(PaginationComponent, _Core$Component);
|
|
77
|
-
|
|
78
|
-
var _super = _createSuper(PaginationComponent);
|
|
79
|
-
|
|
80
|
-
function PaginationComponent(options) {
|
|
81
|
-
_classCallCheck(this, PaginationComponent);
|
|
82
|
-
|
|
83
|
-
return _super.call(this, options);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
_createClass(PaginationComponent, [{
|
|
87
|
-
key: "events",
|
|
88
|
-
value: function events() {
|
|
89
|
-
return {
|
|
90
|
-
'click .previous-applink': 'onClickPrevious',
|
|
91
|
-
'click .next-applink': 'onClickNext'
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
}, {
|
|
95
|
-
key: "buildCursor",
|
|
96
|
-
value: function buildCursor(cursorParam) {
|
|
97
|
-
return {
|
|
98
|
-
application: this.options.appLink.application,
|
|
99
|
-
action: this.options.appLink.action,
|
|
100
|
-
args: this.options.appLink.args,
|
|
101
|
-
params: underscore__WEBPACK_IMPORTED_MODULE_0__["extend"]({}, this.options.appLink.params, _defineProperty({}, this.options.cursorParamName, cursorParam))
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
}, {
|
|
105
|
-
key: "onClickPrevious",
|
|
106
|
-
value: function onClickPrevious() {
|
|
107
|
-
this.logAction('previous');
|
|
108
|
-
}
|
|
109
|
-
}, {
|
|
110
|
-
key: "onClickNext",
|
|
111
|
-
value: function onClickNext() {
|
|
112
|
-
this.logAction('next');
|
|
113
|
-
}
|
|
114
|
-
}, {
|
|
115
|
-
key: "logAction",
|
|
116
|
-
value: function logAction(page) {
|
|
117
|
-
var analyticsOptions = _analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_3__["AnalyticsHelper"].mergeOptions(this.options.analyticsOptions, {
|
|
118
|
-
location: _analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_2__["LocationContext"].Pagination,
|
|
119
|
-
entity: _analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_2__["EntityType"].Pagination,
|
|
120
|
-
actionType: _analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_2__["UserAction"].Navigate
|
|
121
|
-
});
|
|
122
|
-
var data = {
|
|
123
|
-
id: this.options.collectionId,
|
|
124
|
-
page: page
|
|
125
|
-
};
|
|
126
|
-
_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_3__["AnalyticsHelper"].logUserAction(data, analyticsOptions);
|
|
127
|
-
}
|
|
128
|
-
}, {
|
|
129
|
-
key: "viewOptions",
|
|
130
|
-
value: function viewOptions() {
|
|
131
|
-
return {
|
|
132
|
-
cursors: this.options.cursors
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
}, {
|
|
136
|
-
key: "onBeforeRender",
|
|
137
|
-
value: function onBeforeRender() {
|
|
138
|
-
return !!this.options.cursors;
|
|
139
|
-
}
|
|
140
|
-
}, {
|
|
141
|
-
key: "defaults",
|
|
142
|
-
get: function get() {
|
|
143
|
-
return {
|
|
144
|
-
cursors: {},
|
|
145
|
-
cursorParamName: 'cursor'
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
}, {
|
|
149
|
-
key: "name",
|
|
150
|
-
get: function get() {
|
|
151
|
-
return 'PaginationComponent';
|
|
152
|
-
}
|
|
153
|
-
}, {
|
|
154
|
-
key: "template",
|
|
155
|
-
get: function get() {
|
|
156
|
-
return _Pagination_hbs__WEBPACK_IMPORTED_MODULE_4___default.a;
|
|
157
|
-
}
|
|
158
|
-
}, {
|
|
159
|
-
key: "lang",
|
|
160
|
-
get: function get() {
|
|
161
|
-
return 'shared._pagination';
|
|
162
|
-
}
|
|
163
|
-
}, {
|
|
164
|
-
key: "appLinks",
|
|
165
|
-
get: function get() {
|
|
166
|
-
var appLinks = {};
|
|
167
|
-
if (!this.options.cursors) return {};
|
|
168
|
-
|
|
169
|
-
if (this.options.cursors.previous) {
|
|
170
|
-
var previous = this.options.cursors.previous;
|
|
171
|
-
var cursor = this.buildCursor(this.options.cursors.previous);
|
|
172
|
-
/**
|
|
173
|
-
* ** For legacy pagination only **
|
|
174
|
-
* Remove the cursor param if the previous page is the first page.
|
|
175
|
-
* This ensures that we don't unnecessarily re-fetch the first page
|
|
176
|
-
* which in most cases would have been retrieved without using a cursor.
|
|
177
|
-
*/
|
|
178
|
-
|
|
179
|
-
if (+previous <= 1 && this.options.allowFirstPageCursor !== true) delete cursor.params.cursor;
|
|
180
|
-
appLinks['.previous-applink'] = cursor;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
if (this.options.cursors.next) {
|
|
184
|
-
appLinks['.next-applink'] = this.buildCursor(this.options.cursors.next);
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
return appLinks;
|
|
188
|
-
}
|
|
189
|
-
}]);
|
|
190
|
-
|
|
191
|
-
return PaginationComponent;
|
|
192
|
-
}(_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__["Core"].Component);
|
|
193
|
-
|
|
194
|
-
/***/ }),
|
|
195
|
-
|
|
196
|
-
/***/ "./src/apps/library-editor/components/banner/Banner.hbs":
|
|
197
|
-
/*!**************************************************************!*\
|
|
198
|
-
!*** ./src/apps/library-editor/components/banner/Banner.hbs ***!
|
|
199
|
-
\**************************************************************/
|
|
200
|
-
/*! no static exports found */
|
|
201
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
202
|
-
|
|
203
|
-
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
204
|
-
module.exports = (Handlebars['default'] || Handlebars).template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
205
|
-
var helper, alias1=container.propertyIsEnumerable;
|
|
206
|
-
|
|
207
|
-
return "<h1 class=\"text-white position-absolute m-0\">\r\n "
|
|
208
|
-
+ container.escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"name","hash":{},"data":data}) : helper)))
|
|
209
|
-
+ "\r\n</h1>\r\n<div class=\"options-region\"></div>";
|
|
210
|
-
},"useData":true});
|
|
211
|
-
|
|
212
|
-
/***/ }),
|
|
213
|
-
|
|
214
|
-
/***/ "./src/apps/library-editor/components/banner/BannerComponent.ts":
|
|
215
|
-
/*!**********************************************************************!*\
|
|
216
|
-
!*** ./src/apps/library-editor/components/banner/BannerComponent.ts ***!
|
|
217
|
-
\**********************************************************************/
|
|
218
|
-
/*! exports provided: BannerComponent */
|
|
219
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
220
|
-
|
|
221
|
-
"use strict";
|
|
222
|
-
__webpack_require__.r(__webpack_exports__);
|
|
223
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BannerComponent", function() { return BannerComponent; });
|
|
224
|
-
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
225
|
-
/* harmony import */ var _shared_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../shared/utils */ "./src/shared/utils/index.ts");
|
|
226
|
-
/* harmony import */ var _video_collection_actions_VideoCollectionActionsComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../video-collection-actions/VideoCollectionActionsComponent */ "./src/apps/library-editor/components/video-collection-actions/VideoCollectionActionsComponent.ts");
|
|
227
|
-
/* harmony import */ var _Banner_hbs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Banner.hbs */ "./src/apps/library-editor/components/banner/Banner.hbs");
|
|
228
|
-
/* harmony import */ var _Banner_hbs__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_Banner_hbs__WEBPACK_IMPORTED_MODULE_3__);
|
|
229
|
-
/* harmony import */ var _banner_scss__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./banner.scss */ "./src/apps/library-editor/components/banner/banner.scss");
|
|
230
|
-
/* harmony import */ var _banner_scss__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_banner_scss__WEBPACK_IMPORTED_MODULE_4__);
|
|
231
|
-
/* harmony import */ var _shared_enums__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/enums */ "./src/shared/enums/index.ts");
|
|
232
|
-
/* harmony import */ var _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../../libs/analytics/src/interfaces */ "../../libs/analytics/src/interfaces/index.ts");
|
|
233
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
234
|
-
|
|
235
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
236
|
-
|
|
237
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
238
|
-
|
|
239
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
240
|
-
|
|
241
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
242
|
-
|
|
243
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
244
|
-
|
|
245
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
246
|
-
|
|
247
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
248
|
-
|
|
249
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
250
|
-
|
|
251
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
252
|
-
|
|
253
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
var BannerComponent = /*#__PURE__*/function (_Core$Component) {
|
|
263
|
-
_inherits(BannerComponent, _Core$Component);
|
|
264
|
-
|
|
265
|
-
var _super = _createSuper(BannerComponent);
|
|
266
|
-
|
|
267
|
-
function BannerComponent(options) {
|
|
268
|
-
_classCallCheck(this, BannerComponent);
|
|
269
|
-
|
|
270
|
-
return _super.call(this, options);
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
_createClass(BannerComponent, [{
|
|
274
|
-
key: "regions",
|
|
275
|
-
value: function regions() {
|
|
276
|
-
return {
|
|
277
|
-
options: {
|
|
278
|
-
el: '.options-region',
|
|
279
|
-
replaceElement: true
|
|
280
|
-
}
|
|
281
|
-
};
|
|
282
|
-
}
|
|
283
|
-
}, {
|
|
284
|
-
key: "renderActions",
|
|
285
|
-
value: function renderActions() {
|
|
286
|
-
this.showChildView('options', new _video_collection_actions_VideoCollectionActionsComponent__WEBPACK_IMPORTED_MODULE_2__["VideoCollectionActionsComponent"]({
|
|
287
|
-
model: this.model,
|
|
288
|
-
extraClasses: "".concat(_banner_scss__WEBPACK_IMPORTED_MODULE_4___default.a.actions, " rounded-circle mr-2 mt-2"),
|
|
289
|
-
buttonClass: 'text-light',
|
|
290
|
-
analyticsOptions: {
|
|
291
|
-
location: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_6__["LocationContext"].Banner
|
|
292
|
-
}
|
|
293
|
-
}));
|
|
294
|
-
}
|
|
295
|
-
}, {
|
|
296
|
-
key: "onRender",
|
|
297
|
-
value: function onRender() {
|
|
298
|
-
this.renderActions();
|
|
299
|
-
}
|
|
300
|
-
}, {
|
|
301
|
-
key: "name",
|
|
302
|
-
get: function get() {
|
|
303
|
-
return 'BannerComponent';
|
|
304
|
-
}
|
|
305
|
-
}, {
|
|
306
|
-
key: "className",
|
|
307
|
-
get: function get() {
|
|
308
|
-
return "px-3 position-relative ".concat(_banner_scss__WEBPACK_IMPORTED_MODULE_4___default.a.banner);
|
|
309
|
-
}
|
|
310
|
-
}, {
|
|
311
|
-
key: "attributes",
|
|
312
|
-
get: function get() {
|
|
313
|
-
var url = _shared_utils__WEBPACK_IMPORTED_MODULE_1__["ImageHelper"].createBannerUrl(this.model.banner, {
|
|
314
|
-
fallbackBaseUrl: this.options.imageCdnUrl,
|
|
315
|
-
fallbackCategoryName: this.model.get('name'),
|
|
316
|
-
type: _shared_enums__WEBPACK_IMPORTED_MODULE_5__["ImageType"].Banners
|
|
317
|
-
});
|
|
318
|
-
return {
|
|
319
|
-
style: "background-image: url('".concat(url, "')")
|
|
320
|
-
};
|
|
321
|
-
}
|
|
322
|
-
}, {
|
|
323
|
-
key: "template",
|
|
324
|
-
get: function get() {
|
|
325
|
-
return _Banner_hbs__WEBPACK_IMPORTED_MODULE_3___default.a;
|
|
326
|
-
}
|
|
327
|
-
}]);
|
|
328
|
-
|
|
329
|
-
return BannerComponent;
|
|
330
|
-
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].Component);
|
|
331
|
-
|
|
332
|
-
/***/ }),
|
|
333
|
-
|
|
334
|
-
/***/ "./src/apps/library-editor/components/sort-select/SortSelect.hbs":
|
|
335
|
-
/*!***********************************************************************!*\
|
|
336
|
-
!*** ./src/apps/library-editor/components/sort-select/SortSelect.hbs ***!
|
|
337
|
-
\***********************************************************************/
|
|
338
|
-
/*! no static exports found */
|
|
339
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
340
|
-
|
|
341
|
-
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
342
|
-
module.exports = (Handlebars['default'] || Handlebars).template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
343
|
-
var helper, alias1=container.propertyIsEnumerable;
|
|
344
|
-
|
|
345
|
-
return "<button class=\"dropdown-toggle form-control text-left cursor-pointer\" type=\"button\" id=\"sortSelectButton\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\">\r\n "
|
|
346
|
-
+ container.escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"name","hash":{},"data":data}) : helper)))
|
|
347
|
-
+ "\r\n</button>\r\n<div class=\"dropdown-menu-region\"></div>";
|
|
348
|
-
},"useData":true});
|
|
349
|
-
|
|
350
|
-
/***/ }),
|
|
351
|
-
|
|
352
|
-
/***/ "./src/apps/library-editor/components/sort-select/SortSelectComponent.ts":
|
|
353
|
-
/*!*******************************************************************************!*\
|
|
354
|
-
!*** ./src/apps/library-editor/components/sort-select/SortSelectComponent.ts ***!
|
|
355
|
-
\*******************************************************************************/
|
|
356
|
-
/*! exports provided: SortSelectComponent */
|
|
357
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
358
|
-
|
|
359
|
-
"use strict";
|
|
360
|
-
__webpack_require__.r(__webpack_exports__);
|
|
361
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SortSelectComponent", function() { return SortSelectComponent; });
|
|
362
|
-
/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! underscore */ "underscore");
|
|
363
|
-
/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(underscore__WEBPACK_IMPORTED_MODULE_0__);
|
|
364
|
-
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
365
|
-
/* harmony import */ var _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../../libs/analytics/src/interfaces */ "../../libs/analytics/src/interfaces/index.ts");
|
|
366
|
-
/* harmony import */ var _libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../libs/analytics/src/AnalyticsHelper */ "../../libs/analytics/src/AnalyticsHelper.ts");
|
|
367
|
-
/* harmony import */ var _shared_components_dropdown_DropdownComponentCollection__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/components/dropdown/DropdownComponentCollection */ "./src/shared/components/dropdown/DropdownComponentCollection.ts");
|
|
368
|
-
/* harmony import */ var _shared_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/utils */ "./src/shared/utils/index.ts");
|
|
369
|
-
/* harmony import */ var _SortSelect_hbs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./SortSelect.hbs */ "./src/apps/library-editor/components/sort-select/SortSelect.hbs");
|
|
370
|
-
/* harmony import */ var _SortSelect_hbs__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_SortSelect_hbs__WEBPACK_IMPORTED_MODULE_6__);
|
|
371
|
-
/* harmony import */ var _sort_select_scss__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./sort-select.scss */ "./src/apps/library-editor/components/sort-select/sort-select.scss");
|
|
372
|
-
/* harmony import */ var _sort_select_scss__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_sort_select_scss__WEBPACK_IMPORTED_MODULE_7__);
|
|
373
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
374
|
-
|
|
375
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
376
|
-
|
|
377
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
378
|
-
|
|
379
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
380
|
-
|
|
381
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
382
|
-
|
|
383
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
384
|
-
|
|
385
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
386
|
-
|
|
387
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
388
|
-
|
|
389
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
390
|
-
|
|
391
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
392
|
-
|
|
393
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
var SortSelectComponent = /*#__PURE__*/function (_Core$Component) {
|
|
404
|
-
_inherits(SortSelectComponent, _Core$Component);
|
|
405
|
-
|
|
406
|
-
var _super = _createSuper(SortSelectComponent);
|
|
407
|
-
|
|
408
|
-
function SortSelectComponent(options) {
|
|
409
|
-
_classCallCheck(this, SortSelectComponent);
|
|
410
|
-
|
|
411
|
-
return _super.call(this, options);
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
_createClass(SortSelectComponent, [{
|
|
415
|
-
key: "initialize",
|
|
416
|
-
value: function initialize() {
|
|
417
|
-
this.getViewModel();
|
|
418
|
-
this.setSort();
|
|
419
|
-
this.bindListeners();
|
|
420
|
-
this.initializeCollection();
|
|
421
|
-
}
|
|
422
|
-
}, {
|
|
423
|
-
key: "getViewModel",
|
|
424
|
-
value: function getViewModel() {
|
|
425
|
-
this.model = _shared_utils__WEBPACK_IMPORTED_MODULE_5__["SortHelper"].GetSortViewModel();
|
|
426
|
-
}
|
|
427
|
-
}, {
|
|
428
|
-
key: "setSort",
|
|
429
|
-
value: function setSort() {
|
|
430
|
-
var sortType = this.options.collectionIdentifier.sort;
|
|
431
|
-
if (sortType === this.model.get('sortType')) return;
|
|
432
|
-
var sort = _shared_utils__WEBPACK_IMPORTED_MODULE_5__["SortHelper"].CreateSortObject(sortType);
|
|
433
|
-
this.model.set(sort);
|
|
434
|
-
}
|
|
435
|
-
}, {
|
|
436
|
-
key: "bindListeners",
|
|
437
|
-
value: function bindListeners() {
|
|
438
|
-
this.listenTo(this.channelName, 'sort:selected', this.onSortSelected);
|
|
439
|
-
}
|
|
440
|
-
}, {
|
|
441
|
-
key: "initializeCollection",
|
|
442
|
-
value: function initializeCollection() {
|
|
443
|
-
if (this.collection) return;
|
|
444
|
-
this.collection = _shared_utils__WEBPACK_IMPORTED_MODULE_5__["SortHelper"].CreateSortCollection();
|
|
445
|
-
}
|
|
446
|
-
}, {
|
|
447
|
-
key: "regions",
|
|
448
|
-
value: function regions() {
|
|
449
|
-
return {
|
|
450
|
-
dropdown: '.dropdown-menu-region'
|
|
451
|
-
};
|
|
452
|
-
}
|
|
453
|
-
}, {
|
|
454
|
-
key: "events",
|
|
455
|
-
value: function events() {
|
|
456
|
-
return {
|
|
457
|
-
click: 'onClick'
|
|
458
|
-
};
|
|
459
|
-
}
|
|
460
|
-
}, {
|
|
461
|
-
key: "onClick",
|
|
462
|
-
value: function onClick() {
|
|
463
|
-
this.logAction(_libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_2__["WorkflowPhase"].Start);
|
|
464
|
-
}
|
|
465
|
-
}, {
|
|
466
|
-
key: "onSortSelected",
|
|
467
|
-
value: function onSortSelected(sort) {
|
|
468
|
-
this.model.set(sort.toJSON());
|
|
469
|
-
this.render();
|
|
470
|
-
this.logAction(_libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_2__["WorkflowPhase"].Complete);
|
|
471
|
-
}
|
|
472
|
-
}, {
|
|
473
|
-
key: "logAction",
|
|
474
|
-
value: function logAction(workflowPhase) {
|
|
475
|
-
var analyticsOptions = _libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_3__["AnalyticsHelper"].mergeOptions(this.options.analyticsOptions, {
|
|
476
|
-
actionType: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_2__["UserAction"].Sort,
|
|
477
|
-
workflowPhase: workflowPhase
|
|
478
|
-
});
|
|
479
|
-
var data = {
|
|
480
|
-
id: this.options.collectionIdentifier.id,
|
|
481
|
-
sort: this.model.get('name')
|
|
482
|
-
};
|
|
483
|
-
_libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_3__["AnalyticsHelper"].logUserAction(data, analyticsOptions);
|
|
484
|
-
}
|
|
485
|
-
}, {
|
|
486
|
-
key: "onRender",
|
|
487
|
-
value: function onRender() {
|
|
488
|
-
var _this = this;
|
|
489
|
-
|
|
490
|
-
var sortItems = this.collection.filter(function (item) {
|
|
491
|
-
return item.get('name') !== _this.model.get('name');
|
|
492
|
-
});
|
|
493
|
-
var collection = new _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__["Core"].Collection(underscore__WEBPACK_IMPORTED_MODULE_0__["map"](sortItems, function (item) {
|
|
494
|
-
var json = item.toJSON();
|
|
495
|
-
json.appLink = {
|
|
496
|
-
application: _this.options.appLink.application,
|
|
497
|
-
action: _this.options.appLink.action,
|
|
498
|
-
args: [_this.options.collectionIdentifier.id],
|
|
499
|
-
params: {
|
|
500
|
-
sort: item.get('sortName')
|
|
501
|
-
}
|
|
502
|
-
};
|
|
503
|
-
return json;
|
|
504
|
-
}));
|
|
505
|
-
this.showChildView('dropdown', new _shared_components_dropdown_DropdownComponentCollection__WEBPACK_IMPORTED_MODULE_4__["DropdownComponentCollection"]({
|
|
506
|
-
collection: collection,
|
|
507
|
-
channelName: this.channelName,
|
|
508
|
-
childOptions: {
|
|
509
|
-
titleProperty: 'name',
|
|
510
|
-
eventName: 'sort:selected'
|
|
511
|
-
},
|
|
512
|
-
displayOptions: {
|
|
513
|
-
alignment: 'right',
|
|
514
|
-
extraClasses: _sort_select_scss__WEBPACK_IMPORTED_MODULE_7___default.a.sortSelectDropdown
|
|
515
|
-
},
|
|
516
|
-
analyticsHelper: _libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_3__["AnalyticsHelper"]
|
|
517
|
-
}));
|
|
518
|
-
}
|
|
519
|
-
}, {
|
|
520
|
-
key: "name",
|
|
521
|
-
get: function get() {
|
|
522
|
-
return 'SortSelectComponent';
|
|
523
|
-
}
|
|
524
|
-
}, {
|
|
525
|
-
key: "template",
|
|
526
|
-
get: function get() {
|
|
527
|
-
return _SortSelect_hbs__WEBPACK_IMPORTED_MODULE_6___default.a;
|
|
528
|
-
}
|
|
529
|
-
}, {
|
|
530
|
-
key: "channelName",
|
|
531
|
-
get: function get() {
|
|
532
|
-
return "".concat(this.name).concat(this.cid);
|
|
533
|
-
}
|
|
534
|
-
}, {
|
|
535
|
-
key: "className",
|
|
536
|
-
get: function get() {
|
|
537
|
-
return "d-inline-block ".concat(_sort_select_scss__WEBPACK_IMPORTED_MODULE_7___default.a.sortSelect);
|
|
538
|
-
}
|
|
539
|
-
}]);
|
|
540
|
-
|
|
541
|
-
return SortSelectComponent;
|
|
542
|
-
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__["Core"].Component);
|
|
543
|
-
|
|
544
|
-
/***/ }),
|
|
545
|
-
|
|
546
|
-
/***/ "./src/apps/library-editor/components/sort-select/sort-select.scss":
|
|
547
|
-
/*!*************************************************************************!*\
|
|
548
|
-
!*** ./src/apps/library-editor/components/sort-select/sort-select.scss ***!
|
|
549
|
-
\*************************************************************************/
|
|
550
|
-
/*! no static exports found */
|
|
551
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
552
|
-
|
|
553
|
-
// extracted by mini-css-extract-plugin
|
|
554
|
-
module.exports = {"sortSelect":"cv--sortSelect--3o-cY","sortSelectDropdown":"cv--sortSelectDropdown--3O1cI"};
|
|
555
|
-
|
|
556
|
-
/***/ }),
|
|
557
|
-
|
|
558
|
-
/***/ "./src/apps/library-editor/components/sub-folders/SubFolder.hbs":
|
|
559
|
-
/*!**********************************************************************!*\
|
|
560
|
-
!*** ./src/apps/library-editor/components/sub-folders/SubFolder.hbs ***!
|
|
561
|
-
\**********************************************************************/
|
|
562
|
-
/*! no static exports found */
|
|
563
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
564
|
-
|
|
565
|
-
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
566
|
-
module.exports = (Handlebars['default'] || Handlebars).template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
567
|
-
var stack1, helper, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {}), alias5=container.hooks.helperMissing, alias6="function";
|
|
568
|
-
|
|
569
|
-
return "<div class=\"rounded p-2 text-dark position-relative ui-block "
|
|
570
|
-
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.folderBlock : stack1), depth0))
|
|
571
|
-
+ "\">\r\n <a class=\"text-dark text-truncate d-block pr-4 font-weight-bold "
|
|
572
|
-
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.folder : stack1), depth0))
|
|
573
|
-
+ "\" title=\""
|
|
574
|
-
+ alias3(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : alias5),(typeof helper === alias6 ? helper.call(alias4,{"name":"name","hash":{},"data":data}) : helper)))
|
|
575
|
-
+ "\">\r\n <span class=\""
|
|
576
|
-
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.folderIcon : stack1), depth0))
|
|
577
|
-
+ " d-inline-block position-absolute\">\r\n "
|
|
578
|
-
+ ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.svg : stack1), depth0)) != null ? stack1 : "")
|
|
579
|
-
+ "\r\n </span>\r\n "
|
|
580
|
-
+ alias3(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : alias5),(typeof helper === alias6 ? helper.call(alias4,{"name":"name","hash":{},"data":data}) : helper)))
|
|
581
|
-
+ "\r\n </a>\r\n <span class=\"actions-region\"></div>\r\n</div>\r\n";
|
|
582
|
-
},"useData":true});
|
|
583
|
-
|
|
584
|
-
/***/ }),
|
|
585
|
-
|
|
586
|
-
/***/ "./src/apps/library-editor/components/sub-folders/SubFolderComponent.ts":
|
|
587
|
-
/*!******************************************************************************!*\
|
|
588
|
-
!*** ./src/apps/library-editor/components/sub-folders/SubFolderComponent.ts ***!
|
|
589
|
-
\******************************************************************************/
|
|
590
|
-
/*! exports provided: SubFolderComponent */
|
|
591
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
592
|
-
|
|
593
|
-
"use strict";
|
|
594
|
-
__webpack_require__.r(__webpack_exports__);
|
|
595
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubFolderComponent", function() { return SubFolderComponent; });
|
|
596
|
-
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
597
|
-
/* harmony import */ var _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../libs/shared/src/utils/SvgHelper */ "../../libs/shared/src/utils/SvgHelper.ts");
|
|
598
|
-
/* harmony import */ var _shared_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/constants */ "./src/shared/constants/index.ts");
|
|
599
|
-
/* harmony import */ var _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../libs/analytics/src/interfaces */ "../../libs/analytics/src/interfaces/index.ts");
|
|
600
|
-
/* harmony import */ var _video_collection_actions_VideoCollectionActionsComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../video-collection-actions/VideoCollectionActionsComponent */ "./src/apps/library-editor/components/video-collection-actions/VideoCollectionActionsComponent.ts");
|
|
601
|
-
/* harmony import */ var _behaviors_droppable_DroppableBehavior__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../behaviors/droppable/DroppableBehavior */ "./src/apps/library-editor/behaviors/droppable/DroppableBehavior.ts");
|
|
602
|
-
/* harmony import */ var _behaviors_draggable_folder_DraggableFolderBehavior__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../behaviors/draggable-folder/DraggableFolderBehavior */ "./src/apps/library-editor/behaviors/draggable-folder/DraggableFolderBehavior.ts");
|
|
603
|
-
/* harmony import */ var _SubFolder_hbs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./SubFolder.hbs */ "./src/apps/library-editor/components/sub-folders/SubFolder.hbs");
|
|
604
|
-
/* harmony import */ var _SubFolder_hbs__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_SubFolder_hbs__WEBPACK_IMPORTED_MODULE_7__);
|
|
605
|
-
/* harmony import */ var _sub_folders_scss__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./sub-folders.scss */ "./src/apps/library-editor/components/sub-folders/sub-folders.scss");
|
|
606
|
-
/* harmony import */ var _sub_folders_scss__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_sub_folders_scss__WEBPACK_IMPORTED_MODULE_8__);
|
|
607
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
608
|
-
|
|
609
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
610
|
-
|
|
611
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
612
|
-
|
|
613
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
614
|
-
|
|
615
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
616
|
-
|
|
617
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
618
|
-
|
|
619
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
620
|
-
|
|
621
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
622
|
-
|
|
623
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
624
|
-
|
|
625
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
626
|
-
|
|
627
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
var SubFolderComponent = /*#__PURE__*/function (_Core$Component) {
|
|
639
|
-
_inherits(SubFolderComponent, _Core$Component);
|
|
640
|
-
|
|
641
|
-
var _super = _createSuper(SubFolderComponent);
|
|
642
|
-
|
|
643
|
-
function SubFolderComponent() {
|
|
644
|
-
_classCallCheck(this, SubFolderComponent);
|
|
645
|
-
|
|
646
|
-
return _super.apply(this, arguments);
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
_createClass(SubFolderComponent, [{
|
|
650
|
-
key: "initialize",
|
|
651
|
-
value: function initialize() {
|
|
652
|
-
this.listenTo(this.model, 'change:name', this.render);
|
|
653
|
-
}
|
|
654
|
-
}, {
|
|
655
|
-
key: "regions",
|
|
656
|
-
value: function regions() {
|
|
657
|
-
return {
|
|
658
|
-
actions: {
|
|
659
|
-
replaceElement: true,
|
|
660
|
-
el: '.actions-region'
|
|
661
|
-
}
|
|
662
|
-
};
|
|
663
|
-
}
|
|
664
|
-
}, {
|
|
665
|
-
key: "viewOptions",
|
|
666
|
-
value: function viewOptions() {
|
|
667
|
-
return {
|
|
668
|
-
styles: _sub_folders_scss__WEBPACK_IMPORTED_MODULE_8___default.a,
|
|
669
|
-
svg: _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_1__["SvgHelper"].getSvg(_libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_1__["cvSvgLibrary"].Folder)
|
|
670
|
-
};
|
|
671
|
-
}
|
|
672
|
-
}, {
|
|
673
|
-
key: "onRender",
|
|
674
|
-
value: function onRender() {
|
|
675
|
-
this.showChildView('actions', new _video_collection_actions_VideoCollectionActionsComponent__WEBPACK_IMPORTED_MODULE_4__["VideoCollectionActionsComponent"]({
|
|
676
|
-
model: this.model,
|
|
677
|
-
extraClasses: "".concat(_sub_folders_scss__WEBPACK_IMPORTED_MODULE_8___default.a.actions, " rounded-circle mr-2"),
|
|
678
|
-
analyticsOptions: {
|
|
679
|
-
location: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_3__["LocationContext"].SubFolderList
|
|
680
|
-
}
|
|
681
|
-
}));
|
|
682
|
-
}
|
|
683
|
-
}, {
|
|
684
|
-
key: "name",
|
|
685
|
-
get: function get() {
|
|
686
|
-
return 'SubFolderComponent';
|
|
687
|
-
}
|
|
688
|
-
}, {
|
|
689
|
-
key: "elements",
|
|
690
|
-
get: function get() {
|
|
691
|
-
return {
|
|
692
|
-
anchor: 'a',
|
|
693
|
-
block: '.ui-block'
|
|
694
|
-
};
|
|
695
|
-
}
|
|
696
|
-
}, {
|
|
697
|
-
key: "template",
|
|
698
|
-
get: function get() {
|
|
699
|
-
return _SubFolder_hbs__WEBPACK_IMPORTED_MODULE_7___default.a;
|
|
700
|
-
}
|
|
701
|
-
}, {
|
|
702
|
-
key: "className",
|
|
703
|
-
get: function get() {
|
|
704
|
-
return "col-3 d-inline-block pb-3";
|
|
705
|
-
}
|
|
706
|
-
}, {
|
|
707
|
-
key: "behaviors",
|
|
708
|
-
get: function get() {
|
|
709
|
-
return [{
|
|
710
|
-
behaviorClass: _behaviors_droppable_DroppableBehavior__WEBPACK_IMPORTED_MODULE_5__["DroppableBehavior"],
|
|
711
|
-
ui: 'block',
|
|
712
|
-
channelNames: [_shared_constants__WEBPACK_IMPORTED_MODULE_2__["ServiceChannels"].VIDEO_DRAG_DROP, _shared_constants__WEBPACK_IMPORTED_MODULE_2__["ServiceChannels"].FOLDER_DRAG_DROP],
|
|
713
|
-
analyticsOptions: {
|
|
714
|
-
location: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_3__["LocationContext"].SubFolderList
|
|
715
|
-
}
|
|
716
|
-
}, {
|
|
717
|
-
behaviorClass: _behaviors_draggable_folder_DraggableFolderBehavior__WEBPACK_IMPORTED_MODULE_6__["DraggableFolderBehavior"]
|
|
718
|
-
}];
|
|
719
|
-
}
|
|
720
|
-
}, {
|
|
721
|
-
key: "appLinks",
|
|
722
|
-
get: function get() {
|
|
723
|
-
return {
|
|
724
|
-
a: {
|
|
725
|
-
application: _shared_constants__WEBPACK_IMPORTED_MODULE_2__["AppChannels"].LIBRARY_EDITOR,
|
|
726
|
-
action: _shared_constants__WEBPACK_IMPORTED_MODULE_2__["Actions"].LibraryEditor.FOLDER,
|
|
727
|
-
args: [this.model.get('id')]
|
|
728
|
-
}
|
|
729
|
-
};
|
|
730
|
-
}
|
|
731
|
-
}]);
|
|
732
|
-
|
|
733
|
-
return SubFolderComponent;
|
|
734
|
-
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].Component);
|
|
735
|
-
|
|
736
|
-
/***/ }),
|
|
737
|
-
|
|
738
|
-
/***/ "./src/apps/library-editor/components/sub-folders/SubFolders.hbs":
|
|
739
|
-
/*!***********************************************************************!*\
|
|
740
|
-
!*** ./src/apps/library-editor/components/sub-folders/SubFolders.hbs ***!
|
|
741
|
-
\***********************************************************************/
|
|
742
|
-
/*! no static exports found */
|
|
743
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
744
|
-
|
|
745
|
-
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
746
|
-
module.exports = (Handlebars['default'] || Handlebars).template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
747
|
-
return "<div class=\"subfolders-region\"></div>";
|
|
748
|
-
},"useData":true});
|
|
749
|
-
|
|
750
|
-
/***/ }),
|
|
751
|
-
|
|
752
|
-
/***/ "./src/apps/library-editor/components/sub-folders/SubFoldersComponent.ts":
|
|
753
|
-
/*!*******************************************************************************!*\
|
|
754
|
-
!*** ./src/apps/library-editor/components/sub-folders/SubFoldersComponent.ts ***!
|
|
755
|
-
\*******************************************************************************/
|
|
756
|
-
/*! exports provided: SubFoldersComponent */
|
|
757
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
758
|
-
|
|
759
|
-
"use strict";
|
|
760
|
-
__webpack_require__.r(__webpack_exports__);
|
|
761
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubFoldersComponent", function() { return SubFoldersComponent; });
|
|
762
|
-
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
763
|
-
/* harmony import */ var _SubFolderComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SubFolderComponent */ "./src/apps/library-editor/components/sub-folders/SubFolderComponent.ts");
|
|
764
|
-
/* harmony import */ var _SubFolders_hbs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SubFolders.hbs */ "./src/apps/library-editor/components/sub-folders/SubFolders.hbs");
|
|
765
|
-
/* harmony import */ var _SubFolders_hbs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_SubFolders_hbs__WEBPACK_IMPORTED_MODULE_2__);
|
|
766
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
767
|
-
|
|
768
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
769
|
-
|
|
770
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
771
|
-
|
|
772
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
773
|
-
|
|
774
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
775
|
-
|
|
776
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
777
|
-
|
|
778
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
779
|
-
|
|
780
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
781
|
-
|
|
782
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
783
|
-
|
|
784
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
785
|
-
|
|
786
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
var SubFoldersComponentCollection = /*#__PURE__*/function (_Core$ComponentCollec) {
|
|
793
|
-
_inherits(SubFoldersComponentCollection, _Core$ComponentCollec);
|
|
794
|
-
|
|
795
|
-
var _super = _createSuper(SubFoldersComponentCollection);
|
|
796
|
-
|
|
797
|
-
function SubFoldersComponentCollection() {
|
|
798
|
-
_classCallCheck(this, SubFoldersComponentCollection);
|
|
799
|
-
|
|
800
|
-
return _super.apply(this, arguments);
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
_createClass(SubFoldersComponentCollection, [{
|
|
804
|
-
key: "name",
|
|
805
|
-
get: function get() {
|
|
806
|
-
return 'SubFoldersCollectionView';
|
|
807
|
-
}
|
|
808
|
-
}, {
|
|
809
|
-
key: "childView",
|
|
810
|
-
get: function get() {
|
|
811
|
-
return _SubFolderComponent__WEBPACK_IMPORTED_MODULE_1__["SubFolderComponent"];
|
|
812
|
-
}
|
|
813
|
-
}]);
|
|
814
|
-
|
|
815
|
-
return SubFoldersComponentCollection;
|
|
816
|
-
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].ComponentCollection);
|
|
817
|
-
|
|
818
|
-
var SubFoldersComponent = /*#__PURE__*/function (_Core$Component) {
|
|
819
|
-
_inherits(SubFoldersComponent, _Core$Component);
|
|
820
|
-
|
|
821
|
-
var _super2 = _createSuper(SubFoldersComponent);
|
|
822
|
-
|
|
823
|
-
function SubFoldersComponent() {
|
|
824
|
-
_classCallCheck(this, SubFoldersComponent);
|
|
825
|
-
|
|
826
|
-
return _super2.apply(this, arguments);
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
_createClass(SubFoldersComponent, [{
|
|
830
|
-
key: "regions",
|
|
831
|
-
value: function regions() {
|
|
832
|
-
return {
|
|
833
|
-
subFolders: {
|
|
834
|
-
replaceElement: true,
|
|
835
|
-
el: '.subfolders-region'
|
|
836
|
-
}
|
|
837
|
-
};
|
|
838
|
-
}
|
|
839
|
-
}, {
|
|
840
|
-
key: "onRender",
|
|
841
|
-
value: function onRender() {
|
|
842
|
-
this.showChildView('subFolders', new SubFoldersComponentCollection({
|
|
843
|
-
collection: this.collection
|
|
844
|
-
}));
|
|
845
|
-
}
|
|
846
|
-
}, {
|
|
847
|
-
key: "name",
|
|
848
|
-
get: function get() {
|
|
849
|
-
return 'SubFoldersView';
|
|
850
|
-
}
|
|
851
|
-
}, {
|
|
852
|
-
key: "className",
|
|
853
|
-
get: function get() {
|
|
854
|
-
return "container-fluid border-bottom pt-3 bg-white";
|
|
855
|
-
}
|
|
856
|
-
}, {
|
|
857
|
-
key: "template",
|
|
858
|
-
get: function get() {
|
|
859
|
-
return _SubFolders_hbs__WEBPACK_IMPORTED_MODULE_2___default.a;
|
|
860
|
-
}
|
|
861
|
-
}]);
|
|
862
|
-
|
|
863
|
-
return SubFoldersComponent;
|
|
864
|
-
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].Component);
|
|
865
|
-
|
|
866
|
-
/***/ }),
|
|
867
|
-
|
|
868
|
-
/***/ "./src/apps/library-editor/components/sub-folders/sub-folders.scss":
|
|
869
|
-
/*!*************************************************************************!*\
|
|
870
|
-
!*** ./src/apps/library-editor/components/sub-folders/sub-folders.scss ***!
|
|
871
|
-
\*************************************************************************/
|
|
872
|
-
/*! no static exports found */
|
|
873
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
874
|
-
|
|
875
|
-
// extracted by mini-css-extract-plugin
|
|
876
|
-
module.exports = {"folderIcon":"cv--folderIcon--3yOKC","folder":"cv--folder--1mL-8","folderBlock":"cv--folderBlock--3Z20g","actions":"cv--actions--1NQjU"};
|
|
877
|
-
|
|
878
|
-
/***/ }),
|
|
879
|
-
|
|
880
|
-
/***/ "./src/apps/library-editor/components/video-list-header/VideoListHeader.hbs":
|
|
881
|
-
/*!**********************************************************************************!*\
|
|
882
|
-
!*** ./src/apps/library-editor/components/video-list-header/VideoListHeader.hbs ***!
|
|
883
|
-
\**********************************************************************************/
|
|
884
|
-
/*! no static exports found */
|
|
885
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
886
|
-
|
|
887
|
-
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
888
|
-
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
889
|
-
return "pl-2";
|
|
890
|
-
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
891
|
-
var stack1, alias1=container.propertyIsEnumerable;
|
|
892
|
-
|
|
893
|
-
return "<div class=\"d-inline-flex justify-content-start\">\r\n <div class=\"check-all-region d-inline-flex align-items-center\"></div>\r\n <div class=\"bulk-actions-region\"></div>\r\n <div class=\"breadcrumbs-region d-inline-flex align-items-center "
|
|
894
|
-
+ ((stack1 = helpers["if"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.showBulkActions : stack1),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
895
|
-
+ "\"></div>\r\n</div>\r\n<div class=\"sorting-region\"></div>\r\n";
|
|
896
|
-
},"useData":true});
|
|
897
|
-
|
|
898
|
-
/***/ }),
|
|
899
|
-
|
|
900
|
-
/***/ "./src/apps/library-editor/components/video-list-header/VideoListHeaderComponent.ts":
|
|
901
|
-
/*!******************************************************************************************!*\
|
|
902
|
-
!*** ./src/apps/library-editor/components/video-list-header/VideoListHeaderComponent.ts ***!
|
|
903
|
-
\******************************************************************************************/
|
|
904
|
-
/*! exports provided: VideoListHeaderComponent */
|
|
905
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
906
|
-
|
|
907
|
-
"use strict";
|
|
908
|
-
__webpack_require__.r(__webpack_exports__);
|
|
909
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VideoListHeaderComponent", function() { return VideoListHeaderComponent; });
|
|
910
|
-
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
911
|
-
/* harmony import */ var _VideoListHeader_hbs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./VideoListHeader.hbs */ "./src/apps/library-editor/components/video-list-header/VideoListHeader.hbs");
|
|
912
|
-
/* harmony import */ var _VideoListHeader_hbs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_VideoListHeader_hbs__WEBPACK_IMPORTED_MODULE_1__);
|
|
913
|
-
/* harmony import */ var _shared_components_bulk_video_actions_BulkVideoActionsComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/components/bulk-video-actions/BulkVideoActionsComponent */ "./src/shared/components/bulk-video-actions/BulkVideoActionsComponent.ts");
|
|
914
|
-
/* harmony import */ var _shared_components_checkbox_BulkCheckboxComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/components/checkbox/BulkCheckboxComponent */ "./src/shared/components/checkbox/BulkCheckboxComponent.ts");
|
|
915
|
-
/* harmony import */ var _shared_components_breadcrumbs_BreadcrumbsComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/components/breadcrumbs/BreadcrumbsComponent */ "./src/shared/components/breadcrumbs/BreadcrumbsComponent.ts");
|
|
916
|
-
/* harmony import */ var _sort_select_SortSelectComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../sort-select/SortSelectComponent */ "./src/apps/library-editor/components/sort-select/SortSelectComponent.ts");
|
|
917
|
-
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../constants */ "./src/apps/library-editor/constants/index.ts");
|
|
918
|
-
/* harmony import */ var _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../../../libs/analytics/src/interfaces */ "../../libs/analytics/src/interfaces/index.ts");
|
|
919
|
-
/* harmony import */ var _libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../../../libs/analytics/src/AnalyticsHelper */ "../../libs/analytics/src/AnalyticsHelper.ts");
|
|
920
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
921
|
-
|
|
922
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
923
|
-
|
|
924
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
925
|
-
|
|
926
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
927
|
-
|
|
928
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
929
|
-
|
|
930
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
931
|
-
|
|
932
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
933
|
-
|
|
934
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
935
|
-
|
|
936
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
937
|
-
|
|
938
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
939
|
-
|
|
940
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
var VideoListHeaderComponent = /*#__PURE__*/function (_Core$Component) {
|
|
952
|
-
_inherits(VideoListHeaderComponent, _Core$Component);
|
|
953
|
-
|
|
954
|
-
var _super = _createSuper(VideoListHeaderComponent);
|
|
955
|
-
|
|
956
|
-
function VideoListHeaderComponent(options) {
|
|
957
|
-
_classCallCheck(this, VideoListHeaderComponent);
|
|
958
|
-
|
|
959
|
-
return _super.call(this, options);
|
|
960
|
-
}
|
|
961
|
-
|
|
962
|
-
_createClass(VideoListHeaderComponent, [{
|
|
963
|
-
key: "initialize",
|
|
964
|
-
value: function initialize() {
|
|
965
|
-
this.analyticsOptions = _libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_8__["AnalyticsHelper"].mergeOptions(this.options.analyticsOptions, {
|
|
966
|
-
location: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_7__["LocationContext"].VideoListHeader
|
|
967
|
-
});
|
|
968
|
-
}
|
|
969
|
-
}, {
|
|
970
|
-
key: "regions",
|
|
971
|
-
value: function regions() {
|
|
972
|
-
return {
|
|
973
|
-
checkAll: {
|
|
974
|
-
el: '.check-all-region',
|
|
975
|
-
replaceElement: false
|
|
976
|
-
},
|
|
977
|
-
bulkActions: {
|
|
978
|
-
el: '.bulk-actions-region',
|
|
979
|
-
replaceElement: true
|
|
980
|
-
},
|
|
981
|
-
breadcrumbs: {
|
|
982
|
-
el: '.breadcrumbs-region',
|
|
983
|
-
replaceElement: false
|
|
984
|
-
},
|
|
985
|
-
sorting: {
|
|
986
|
-
el: '.sorting-region',
|
|
987
|
-
replaceElement: true
|
|
988
|
-
}
|
|
989
|
-
};
|
|
990
|
-
}
|
|
991
|
-
}, {
|
|
992
|
-
key: "renderCheckAll",
|
|
993
|
-
value: function renderCheckAll() {
|
|
994
|
-
if (!this.options.allowBulk || this.collection.length <= 0) return;
|
|
995
|
-
this.showChildView('checkAll', new _shared_components_checkbox_BulkCheckboxComponent__WEBPACK_IMPORTED_MODULE_3__["BulkCheckboxComponent"]({
|
|
996
|
-
className: 'float-left',
|
|
997
|
-
key: this.collectionIdentifier.toString(),
|
|
998
|
-
type: _constants__WEBPACK_IMPORTED_MODULE_6__["CheckboxTypes"].VIDEO_LIST,
|
|
999
|
-
numberOfItems: this.collection.length
|
|
1000
|
-
}));
|
|
1001
|
-
}
|
|
1002
|
-
}, {
|
|
1003
|
-
key: "renderBulkActions",
|
|
1004
|
-
value: function renderBulkActions() {
|
|
1005
|
-
if (!this.options.allowBulk || this.collection.length <= 0) return;
|
|
1006
|
-
this.showChildView('bulkActions', new _shared_components_bulk_video_actions_BulkVideoActionsComponent__WEBPACK_IMPORTED_MODULE_2__["BulkVideoActionsComponent"]({
|
|
1007
|
-
collection: this.collection,
|
|
1008
|
-
collectionIdentifier: this.collectionIdentifier,
|
|
1009
|
-
application: this.options.application,
|
|
1010
|
-
analyticsOptions: _libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_8__["AnalyticsHelper"].mergeOptions(this.options.analyticsOptions, {
|
|
1011
|
-
descriptor: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_7__["OperationDescriptor"].Bulk,
|
|
1012
|
-
location: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_7__["LocationContext"].VideoListHeader,
|
|
1013
|
-
entity: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_7__["EntityType"].Video,
|
|
1014
|
-
workflowPhase: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_7__["WorkflowPhase"].Start
|
|
1015
|
-
})
|
|
1016
|
-
}));
|
|
1017
|
-
}
|
|
1018
|
-
}, {
|
|
1019
|
-
key: "renderBreadcrumbs",
|
|
1020
|
-
value: function renderBreadcrumbs() {
|
|
1021
|
-
if (!this.options.folder || !this.options.libraries) return;
|
|
1022
|
-
this.showChildView('breadcrumbs', new _shared_components_breadcrumbs_BreadcrumbsComponent__WEBPACK_IMPORTED_MODULE_4__["BreadcrumbsComponent"]({
|
|
1023
|
-
folder: this.options.folder,
|
|
1024
|
-
libraries: this.options.libraries
|
|
1025
|
-
}));
|
|
1026
|
-
}
|
|
1027
|
-
}, {
|
|
1028
|
-
key: "renderSorting",
|
|
1029
|
-
value: function renderSorting() {
|
|
1030
|
-
if (this.collection.length <= 0) return;
|
|
1031
|
-
this.showChildView('sorting', new _sort_select_SortSelectComponent__WEBPACK_IMPORTED_MODULE_5__["SortSelectComponent"]({
|
|
1032
|
-
collectionIdentifier: this.collectionIdentifier,
|
|
1033
|
-
analyticsOptions: this.analyticsOptions,
|
|
1034
|
-
appLink: {
|
|
1035
|
-
application: this.options.application,
|
|
1036
|
-
action: this.options.action
|
|
1037
|
-
}
|
|
1038
|
-
}));
|
|
1039
|
-
}
|
|
1040
|
-
}, {
|
|
1041
|
-
key: "viewOptions",
|
|
1042
|
-
value: function viewOptions() {
|
|
1043
|
-
return {
|
|
1044
|
-
showBulkActions: this.options.allowBulk && this.collection.length > 0
|
|
1045
|
-
};
|
|
1046
|
-
}
|
|
1047
|
-
}, {
|
|
1048
|
-
key: "onRender",
|
|
1049
|
-
value: function onRender() {
|
|
1050
|
-
this.renderCheckAll();
|
|
1051
|
-
this.renderBulkActions();
|
|
1052
|
-
this.renderBreadcrumbs();
|
|
1053
|
-
this.renderSorting();
|
|
1054
|
-
}
|
|
1055
|
-
}, {
|
|
1056
|
-
key: "name",
|
|
1057
|
-
get: function get() {
|
|
1058
|
-
return 'VideoListHeaderComponent';
|
|
1059
|
-
}
|
|
1060
|
-
}, {
|
|
1061
|
-
key: "template",
|
|
1062
|
-
get: function get() {
|
|
1063
|
-
return _VideoListHeader_hbs__WEBPACK_IMPORTED_MODULE_1___default.a;
|
|
1064
|
-
}
|
|
1065
|
-
}, {
|
|
1066
|
-
key: "className",
|
|
1067
|
-
get: function get() {
|
|
1068
|
-
return 'd-flex justify-content-between align-items-center px-3 py-2 border-bottom';
|
|
1069
|
-
}
|
|
1070
|
-
}, {
|
|
1071
|
-
key: "props",
|
|
1072
|
-
get: function get() {
|
|
1073
|
-
return ['collectionIdentifier'];
|
|
1074
|
-
}
|
|
1075
|
-
}]);
|
|
1076
|
-
|
|
1077
|
-
return VideoListHeaderComponent;
|
|
1078
|
-
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].Component);
|
|
1079
|
-
|
|
1080
|
-
/***/ }),
|
|
1081
|
-
|
|
1082
|
-
/***/ "./src/apps/library-editor/views/video-collection/VideoCollection.hbs":
|
|
1083
|
-
/*!****************************************************************************!*\
|
|
1084
|
-
!*** ./src/apps/library-editor/views/video-collection/VideoCollection.hbs ***!
|
|
1085
|
-
\****************************************************************************/
|
|
1086
|
-
/*! no static exports found */
|
|
1087
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1088
|
-
|
|
1089
|
-
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
1090
|
-
module.exports = (Handlebars['default'] || Handlebars).template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
1091
|
-
return "<div class=\"banner-region\"></div>\r\n<div class=\"child-folders-region\"></div>\r\n<div class=\"header-region\"></div>\r\n<div class=\"video-list-region\"></div>\r\n<div class=\"pagination-region\"></div>";
|
|
1092
|
-
},"useData":true});
|
|
1093
|
-
|
|
1094
|
-
/***/ }),
|
|
1095
|
-
|
|
1096
|
-
/***/ "./src/apps/library-editor/views/video-collection/VideoCollectionView.ts":
|
|
1097
|
-
/*!*******************************************************************************!*\
|
|
1098
|
-
!*** ./src/apps/library-editor/views/video-collection/VideoCollectionView.ts ***!
|
|
1099
|
-
\*******************************************************************************/
|
|
1100
|
-
/*! exports provided: FolderView, SeriesView */
|
|
1101
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1102
|
-
|
|
1103
|
-
"use strict";
|
|
1104
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1105
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FolderView", function() { return FolderView; });
|
|
1106
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SeriesView", function() { return SeriesView; });
|
|
1107
|
-
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
1108
|
-
/* harmony import */ var _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/services/InstanceManager */ "../../libs/common/src/backbone/services/InstanceManager.ts");
|
|
1109
|
-
/* harmony import */ var _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/services/LanguageService */ "../../libs/common/src/backbone/services/LanguageService.tsx");
|
|
1110
|
-
/* harmony import */ var _libs_common_src_backbone_utils_UrlHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/utils/UrlHelper */ "../../libs/common/src/backbone/utils/UrlHelper.ts");
|
|
1111
|
-
/* harmony import */ var _libs_common_src_backbone_enums_DataServiceErrorType__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/enums/DataServiceErrorType */ "../../libs/common/src/backbone/enums/DataServiceErrorType.ts");
|
|
1112
|
-
/* harmony import */ var _libs_shared_src_legacy_components_pagination_PaginationComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../../libs/shared/src/legacy/components/pagination/PaginationComponent */ "../../libs/shared/src/legacy/components/pagination/PaginationComponent.ts");
|
|
1113
|
-
/* harmony import */ var _shared_models_Folder__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/models/Folder */ "./src/shared/models/Folder.ts");
|
|
1114
|
-
/* harmony import */ var _shared_models_Video__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/models/Video */ "./src/shared/models/Video.ts");
|
|
1115
|
-
/* harmony import */ var _shared_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../shared/constants */ "./src/shared/constants/index.ts");
|
|
1116
|
-
/* harmony import */ var _shared_collections_VideoCollection__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../shared/collections/VideoCollection */ "./src/shared/collections/VideoCollection.ts");
|
|
1117
|
-
/* harmony import */ var _shared_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../shared/utils */ "./src/shared/utils/index.ts");
|
|
1118
|
-
/* harmony import */ var _shared_enums__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../shared/enums */ "./src/shared/enums/index.ts");
|
|
1119
|
-
/* harmony import */ var _shared_components_video_list_VideoListComponent__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../shared/components/video-list/VideoListComponent */ "./src/shared/components/video-list/VideoListComponent.ts");
|
|
1120
|
-
/* harmony import */ var _shared_components_video_item_utils_VideoItemComponentTypes__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../../shared/components/video-item/utils/VideoItemComponentTypes */ "./src/shared/components/video-item/utils/VideoItemComponentTypes.ts");
|
|
1121
|
-
/* harmony import */ var _shared_services_ConfigDataService__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../../shared/services/ConfigDataService */ "./src/shared/services/ConfigDataService.ts");
|
|
1122
|
-
/* harmony import */ var _shared_services_UserDataService__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../../shared/services/UserDataService */ "./src/shared/services/UserDataService.ts");
|
|
1123
|
-
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../enums */ "./src/apps/library-editor/enums/index.ts");
|
|
1124
|
-
/* harmony import */ var _services_LibraryDataService__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../services/LibraryDataService */ "./src/apps/library-editor/services/LibraryDataService.ts");
|
|
1125
|
-
/* harmony import */ var _components_banner_BannerComponent__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../components/banner/BannerComponent */ "./src/apps/library-editor/components/banner/BannerComponent.ts");
|
|
1126
|
-
/* harmony import */ var _components_sub_folders_SubFoldersComponent__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../components/sub-folders/SubFoldersComponent */ "./src/apps/library-editor/components/sub-folders/SubFoldersComponent.ts");
|
|
1127
|
-
/* harmony import */ var _components_video_list_header_VideoListHeaderComponent__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../../components/video-list-header/VideoListHeaderComponent */ "./src/apps/library-editor/components/video-list-header/VideoListHeaderComponent.ts");
|
|
1128
|
-
/* harmony import */ var _errors__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../errors */ "./src/apps/library-editor/errors/index.ts");
|
|
1129
|
-
/* harmony import */ var _VideoCollection_hbs__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./VideoCollection.hbs */ "./src/apps/library-editor/views/video-collection/VideoCollection.hbs");
|
|
1130
|
-
/* harmony import */ var _VideoCollection_hbs__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(_VideoCollection_hbs__WEBPACK_IMPORTED_MODULE_22__);
|
|
1131
|
-
function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get(target, property, receiver || target); }
|
|
1132
|
-
|
|
1133
|
-
function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
|
|
1134
|
-
|
|
1135
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
1136
|
-
|
|
1137
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1138
|
-
|
|
1139
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
1140
|
-
|
|
1141
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1142
|
-
|
|
1143
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
1144
|
-
|
|
1145
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1146
|
-
|
|
1147
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1148
|
-
|
|
1149
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1150
|
-
|
|
1151
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1152
|
-
|
|
1153
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
1154
|
-
|
|
1155
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
var VideoCollectionView = /*#__PURE__*/function (_Core$View) {
|
|
1182
|
-
_inherits(VideoCollectionView, _Core$View);
|
|
1183
|
-
|
|
1184
|
-
var _super = _createSuper(VideoCollectionView);
|
|
1185
|
-
|
|
1186
|
-
function VideoCollectionView(options) {
|
|
1187
|
-
_classCallCheck(this, VideoCollectionView);
|
|
1188
|
-
|
|
1189
|
-
return _super.call(this, options);
|
|
1190
|
-
}
|
|
1191
|
-
|
|
1192
|
-
_createClass(VideoCollectionView, [{
|
|
1193
|
-
key: "initialize",
|
|
1194
|
-
value: function initialize() {
|
|
1195
|
-
this.bindListeners();
|
|
1196
|
-
this.getSortType();
|
|
1197
|
-
this.videoDataService = _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_1__["InstanceManager"].getInstance(_shared_constants__WEBPACK_IMPORTED_MODULE_8__["DataServices"].Video, this);
|
|
1198
|
-
this.libraryDataService = _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_1__["InstanceManager"].getInstance(_shared_constants__WEBPACK_IMPORTED_MODULE_8__["DataServices"].Library, this);
|
|
1199
|
-
this.pendingItemsService = _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_1__["InstanceManager"].getInstance(_shared_constants__WEBPACK_IMPORTED_MODULE_8__["Services"].PendingItems, this);
|
|
1200
|
-
this.localCacheDataService = _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_1__["InstanceManager"].getInstance(_shared_constants__WEBPACK_IMPORTED_MODULE_8__["DataServices"].LocalCache, this);
|
|
1201
|
-
this.videoMixinService = _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_1__["InstanceManager"].getInstance(_shared_constants__WEBPACK_IMPORTED_MODULE_8__["Services"].VideoMixin, this);
|
|
1202
|
-
}
|
|
1203
|
-
}, {
|
|
1204
|
-
key: "regions",
|
|
1205
|
-
value: function regions() {
|
|
1206
|
-
return {
|
|
1207
|
-
banner: {
|
|
1208
|
-
el: '.banner-region',
|
|
1209
|
-
replaceElement: true,
|
|
1210
|
-
partialLoading: _shared_enums__WEBPACK_IMPORTED_MODULE_11__["PartialLoading"].Banner
|
|
1211
|
-
},
|
|
1212
|
-
header: {
|
|
1213
|
-
el: '.header-region',
|
|
1214
|
-
replaceElement: true,
|
|
1215
|
-
partialLoading: _shared_enums__WEBPACK_IMPORTED_MODULE_11__["PartialLoading"].VideoListHeader
|
|
1216
|
-
},
|
|
1217
|
-
videoList: {
|
|
1218
|
-
el: '.video-list-region',
|
|
1219
|
-
replaceElement: true,
|
|
1220
|
-
partialLoading: _shared_enums__WEBPACK_IMPORTED_MODULE_11__["PartialLoading"].VideoListWithBulkActions
|
|
1221
|
-
},
|
|
1222
|
-
childFolders: {
|
|
1223
|
-
el: '.child-folders-region',
|
|
1224
|
-
replaceElement: false,
|
|
1225
|
-
partialLoading: _shared_enums__WEBPACK_IMPORTED_MODULE_11__["PartialLoading"].SubFolder
|
|
1226
|
-
},
|
|
1227
|
-
pagination: {
|
|
1228
|
-
el: '.pagination-region',
|
|
1229
|
-
replaceElement: true
|
|
1230
|
-
}
|
|
1231
|
-
};
|
|
1232
|
-
}
|
|
1233
|
-
}, {
|
|
1234
|
-
key: "bindListeners",
|
|
1235
|
-
value: function bindListeners() {
|
|
1236
|
-
var videoEvent = this.options.collectionIdentifier.toString();
|
|
1237
|
-
this.listenTo(_shared_constants__WEBPACK_IMPORTED_MODULE_8__["DataChannels"].VIDEO, "".concat(videoEvent, ":sync"), this.render);
|
|
1238
|
-
this.listenTo(_shared_constants__WEBPACK_IMPORTED_MODULE_8__["DataChannels"].VIDEO, "".concat(_shared_constants__WEBPACK_IMPORTED_MODULE_8__["DataPrefixes"].DELETE_VIDEO, ":sync"), this.fetchData);
|
|
1239
|
-
this.listenTo(_shared_constants__WEBPACK_IMPORTED_MODULE_8__["DataChannels"].VIDEO, 'cache:cleared', this.render);
|
|
1240
|
-
this.listenTo(_shared_constants__WEBPACK_IMPORTED_MODULE_8__["DataChannels"].RESTRICTED_VIDEO, "".concat(_shared_constants__WEBPACK_IMPORTED_MODULE_8__["DataPrefixes"].UPDATE_VIDEO_RESTRICTION, ":sync"), this.updateRestrictedVideos);
|
|
1241
|
-
this.listenTo(this.channelName, 'cancel:pending:item', this.cancelPendingItem);
|
|
1242
|
-
this.listenTo(this.channelName, 'retry:pending:item', this.retryPendingItem);
|
|
1243
|
-
this.listenTo(this.channelName, 'fetch:video:with:metadata', this.fetchVideoWithMetadata);
|
|
1244
|
-
this.listenTo(_shared_constants__WEBPACK_IMPORTED_MODULE_8__["DataChannels"].LOCAL_CACHE, "".concat(_shared_constants__WEBPACK_IMPORTED_MODULE_8__["DataPrefixes"].LOCAL_CACHE_DEVICES, ":sync"), this.render);
|
|
1245
|
-
this.listenTo(_shared_constants__WEBPACK_IMPORTED_MODULE_8__["DataChannels"].LOCAL_CACHE, "".concat(_shared_constants__WEBPACK_IMPORTED_MODULE_8__["DataPrefixes"].LOCAL_CACHE_DEVICES, ":error"), this.onError);
|
|
1246
|
-
}
|
|
1247
|
-
}, {
|
|
1248
|
-
key: "getSortType",
|
|
1249
|
-
value: function getSortType() {
|
|
1250
|
-
if (this.sortType) return;
|
|
1251
|
-
this.sortType = this.options.collectionIdentifier.sort;
|
|
1252
|
-
}
|
|
1253
|
-
}, {
|
|
1254
|
-
key: "updateRestrictedVideos",
|
|
1255
|
-
value: function updateRestrictedVideos() {
|
|
1256
|
-
var _this = this;
|
|
1257
|
-
|
|
1258
|
-
this.videoMixinService.getAndMixinVideoCollectionRestrictions(this.videoCollection, this.collectionIdentifier, function () {
|
|
1259
|
-
return _this.render();
|
|
1260
|
-
});
|
|
1261
|
-
}
|
|
1262
|
-
}, {
|
|
1263
|
-
key: "cancelPendingItem",
|
|
1264
|
-
value: function cancelPendingItem(pendingItem) {
|
|
1265
|
-
this.pendingItemsService.clearPendingItem(pendingItem);
|
|
1266
|
-
}
|
|
1267
|
-
}, {
|
|
1268
|
-
key: "retryPendingItem",
|
|
1269
|
-
value: function retryPendingItem(pendingItem) {
|
|
1270
|
-
this.pendingItemsService.retryPendingItem(pendingItem);
|
|
1271
|
-
}
|
|
1272
|
-
}, {
|
|
1273
|
-
key: "setVideosWithMetadata",
|
|
1274
|
-
value: function setVideosWithMetadata() {
|
|
1275
|
-
if (!this.videoCollection) return;
|
|
1276
|
-
this.videosWithMetadata = new _shared_collections_VideoCollection__WEBPACK_IMPORTED_MODULE_9__["VideoCollection"](this.videoCollection.map(function (v) {
|
|
1277
|
-
return new _shared_models_Video__WEBPACK_IMPORTED_MODULE_7__["Video"]({
|
|
1278
|
-
id: v.get('id')
|
|
1279
|
-
});
|
|
1280
|
-
}));
|
|
1281
|
-
}
|
|
1282
|
-
}, {
|
|
1283
|
-
key: "renderBanner",
|
|
1284
|
-
value: function renderBanner() {
|
|
1285
|
-
var bannerComponent = new _components_banner_BannerComponent__WEBPACK_IMPORTED_MODULE_18__["BannerComponent"]({
|
|
1286
|
-
model: this.model,
|
|
1287
|
-
channelName: this.channelName,
|
|
1288
|
-
imageCdnUrl: this.config.get('imageCdnUrl')
|
|
1289
|
-
});
|
|
1290
|
-
this.showChildView('banner', bannerComponent);
|
|
1291
|
-
}
|
|
1292
|
-
}, {
|
|
1293
|
-
key: "renderChildFolders",
|
|
1294
|
-
value: function renderChildFolders() {
|
|
1295
|
-
if (!this.folderWithChildren || !this.folderWithChildren.children || !this.folderWithChildren.children.length) {
|
|
1296
|
-
return;
|
|
1297
|
-
}
|
|
1298
|
-
|
|
1299
|
-
var subFoldersComponent = new _components_sub_folders_SubFoldersComponent__WEBPACK_IMPORTED_MODULE_19__["SubFoldersComponent"]({
|
|
1300
|
-
collection: this.folderWithChildren.children
|
|
1301
|
-
});
|
|
1302
|
-
this.showChildView('childFolders', subFoldersComponent);
|
|
1303
|
-
}
|
|
1304
|
-
}, {
|
|
1305
|
-
key: "renderHeader",
|
|
1306
|
-
value: function renderHeader() {
|
|
1307
|
-
this.showChildView('header', new _components_video_list_header_VideoListHeaderComponent__WEBPACK_IMPORTED_MODULE_20__["VideoListHeaderComponent"]({
|
|
1308
|
-
collection: this.videoCollection,
|
|
1309
|
-
libraries: this.libraryCollection,
|
|
1310
|
-
folder: this.model instanceof _shared_models_Folder__WEBPACK_IMPORTED_MODULE_6__["Folder"] && this.model,
|
|
1311
|
-
application: _shared_constants__WEBPACK_IMPORTED_MODULE_8__["AppChannels"].LIBRARY_EDITOR,
|
|
1312
|
-
action: this.appLinkAction(),
|
|
1313
|
-
allowBulk: this.allowBulk(),
|
|
1314
|
-
collectionIdentifier: this.collectionIdentifier,
|
|
1315
|
-
analyticsOptions: this.options.analyticsOptions
|
|
1316
|
-
}));
|
|
1317
|
-
}
|
|
1318
|
-
}, {
|
|
1319
|
-
key: "renderVideoList",
|
|
1320
|
-
value: function renderVideoList() {
|
|
1321
|
-
var videoListComponent = new _shared_components_video_list_VideoListComponent__WEBPACK_IMPORTED_MODULE_12__["VideoListComponent"]({
|
|
1322
|
-
collection: this.videoCollection,
|
|
1323
|
-
videosWithMetadata: this.videosWithMetadata,
|
|
1324
|
-
application: _shared_constants__WEBPACK_IMPORTED_MODULE_8__["AppChannels"].LIBRARY_EDITOR,
|
|
1325
|
-
allowBulk: this.allowBulk(),
|
|
1326
|
-
collectionIdentifier: this.collectionIdentifier,
|
|
1327
|
-
config: this.config,
|
|
1328
|
-
pendingItems: this.pendingItemsService.getPendingItems(),
|
|
1329
|
-
videoItemComponentType: this.componentType,
|
|
1330
|
-
emptyStateType: this.emptyStateType(),
|
|
1331
|
-
emptyStateOptions: this.emptyStateOptions(),
|
|
1332
|
-
supportSiteUrl: this.config.get('supportSiteUrl'),
|
|
1333
|
-
collectionViewChannel: this.channelName,
|
|
1334
|
-
customerHasLocalCache: _shared_utils__WEBPACK_IMPORTED_MODULE_10__["LocalCacheHelper"].customerHasLocalCache(this.devices, this.currentUser.get('customerId')),
|
|
1335
|
-
customerHasExchange: this.exchanges.any(),
|
|
1336
|
-
analyticsOptions: this.options.analyticsOptions,
|
|
1337
|
-
sourceMetadataOptions: {
|
|
1338
|
-
showFolder: this.showFolderSource()
|
|
1339
|
-
},
|
|
1340
|
-
videoCollectionSource: this.getVideoCollectionSource()
|
|
1341
|
-
});
|
|
1342
|
-
this.showChildView('videoList', videoListComponent);
|
|
1343
|
-
}
|
|
1344
|
-
}, {
|
|
1345
|
-
key: "renderPagination",
|
|
1346
|
-
value: function renderPagination() {
|
|
1347
|
-
var cursors = this.videoDataService.getVideoCollectionCursors(this.collectionIdentifier);
|
|
1348
|
-
var paginationComponent = new _libs_shared_src_legacy_components_pagination_PaginationComponent__WEBPACK_IMPORTED_MODULE_5__["PaginationComponent"]({
|
|
1349
|
-
cursors: cursors,
|
|
1350
|
-
collectionId: this.options.collectionIdentifier.id,
|
|
1351
|
-
appLink: {
|
|
1352
|
-
application: _shared_constants__WEBPACK_IMPORTED_MODULE_8__["AppChannels"].LIBRARY_EDITOR,
|
|
1353
|
-
action: this.appLinkAction(),
|
|
1354
|
-
args: [this.collectionIdentifier.id],
|
|
1355
|
-
params: this.collectionIdentifier.toParams()
|
|
1356
|
-
},
|
|
1357
|
-
analyticsOptions: this.options.analyticsOptions
|
|
1358
|
-
});
|
|
1359
|
-
this.showChildView('pagination', paginationComponent);
|
|
1360
|
-
}
|
|
1361
|
-
}, {
|
|
1362
|
-
key: "fetchData",
|
|
1363
|
-
value: function fetchData() {
|
|
1364
|
-
this.fetchModel();
|
|
1365
|
-
this.devices = this.localCacheDataService.getDevices(this.currentUser.get('customerId'));
|
|
1366
|
-
this.fetchVideoCollection();
|
|
1367
|
-
}
|
|
1368
|
-
}, {
|
|
1369
|
-
key: "fetchVideoWithMetadata",
|
|
1370
|
-
value: function fetchVideoWithMetadata(videoId) {
|
|
1371
|
-
var _this2 = this;
|
|
1372
|
-
|
|
1373
|
-
this.videoDataService.getVideo(videoId, function (video) {
|
|
1374
|
-
var videoWithMetadata = _this2.videosWithMetadata.get(videoId);
|
|
1375
|
-
|
|
1376
|
-
if (!videoWithMetadata) return;
|
|
1377
|
-
videoWithMetadata.set(video.toJSON());
|
|
1378
|
-
videoWithMetadata.set({
|
|
1379
|
-
dataFetched: true
|
|
1380
|
-
});
|
|
1381
|
-
});
|
|
1382
|
-
}
|
|
1383
|
-
}, {
|
|
1384
|
-
key: "onBeforeRender",
|
|
1385
|
-
value: function onBeforeRender() {
|
|
1386
|
-
this.fetchData();
|
|
1387
|
-
if (!this.videoCollection) return false;
|
|
1388
|
-
this.setVideosWithMetadata();
|
|
1389
|
-
return !!this.model;
|
|
1390
|
-
}
|
|
1391
|
-
}, {
|
|
1392
|
-
key: "onRender",
|
|
1393
|
-
value: function onRender() {
|
|
1394
|
-
this.renderBanner();
|
|
1395
|
-
this.renderChildFolders();
|
|
1396
|
-
this.renderHeader();
|
|
1397
|
-
this.renderVideoList();
|
|
1398
|
-
this.renderPagination();
|
|
1399
|
-
}
|
|
1400
|
-
}, {
|
|
1401
|
-
key: "title",
|
|
1402
|
-
get: function get() {
|
|
1403
|
-
return !!this.model && this.model.get('name');
|
|
1404
|
-
}
|
|
1405
|
-
}, {
|
|
1406
|
-
key: "template",
|
|
1407
|
-
get: function get() {
|
|
1408
|
-
return _VideoCollection_hbs__WEBPACK_IMPORTED_MODULE_22___default.a;
|
|
1409
|
-
}
|
|
1410
|
-
}, {
|
|
1411
|
-
key: "className",
|
|
1412
|
-
get: function get() {
|
|
1413
|
-
return 'bg-white';
|
|
1414
|
-
}
|
|
1415
|
-
}, {
|
|
1416
|
-
key: "channelName",
|
|
1417
|
-
get: function get() {
|
|
1418
|
-
return "".concat(this.name, ":").concat(this.cid);
|
|
1419
|
-
}
|
|
1420
|
-
}, {
|
|
1421
|
-
key: "props",
|
|
1422
|
-
get: function get() {
|
|
1423
|
-
return ['collectionIdentifier'];
|
|
1424
|
-
}
|
|
1425
|
-
}, {
|
|
1426
|
-
key: "requiredResources",
|
|
1427
|
-
get: function get() {
|
|
1428
|
-
return {
|
|
1429
|
-
config: _shared_services_ConfigDataService__WEBPACK_IMPORTED_MODULE_14__["ConfigDataServiceHelper"].config,
|
|
1430
|
-
currentUser: _shared_services_UserDataService__WEBPACK_IMPORTED_MODULE_15__["UserDataServiceHelper"].currentUser,
|
|
1431
|
-
libraryCollection: _services_LibraryDataService__WEBPACK_IMPORTED_MODULE_17__["LibraryDataServiceHelper"].libraries,
|
|
1432
|
-
exchanges: _services_LibraryDataService__WEBPACK_IMPORTED_MODULE_17__["LibraryDataServiceHelper"].exchanges
|
|
1433
|
-
};
|
|
1434
|
-
}
|
|
1435
|
-
}]);
|
|
1436
|
-
|
|
1437
|
-
return VideoCollectionView;
|
|
1438
|
-
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].View);
|
|
1439
|
-
|
|
1440
|
-
var FolderView = /*#__PURE__*/function (_VideoCollectionView) {
|
|
1441
|
-
_inherits(FolderView, _VideoCollectionView);
|
|
1442
|
-
|
|
1443
|
-
var _super2 = _createSuper(FolderView);
|
|
1444
|
-
|
|
1445
|
-
function FolderView() {
|
|
1446
|
-
_classCallCheck(this, FolderView);
|
|
1447
|
-
|
|
1448
|
-
return _super2.apply(this, arguments);
|
|
1449
|
-
}
|
|
1450
|
-
|
|
1451
|
-
_createClass(FolderView, [{
|
|
1452
|
-
key: "bindListeners",
|
|
1453
|
-
value: function bindListeners() {
|
|
1454
|
-
this.listenTo(_shared_constants__WEBPACK_IMPORTED_MODULE_8__["DataChannels"].LIBRARY, "".concat(_shared_constants__WEBPACK_IMPORTED_MODULE_8__["DataPrefixes"].FOLDER, ":").concat(this.options.collectionIdentifier.id, ":sync libraries:sync"), this.render);
|
|
1455
|
-
this.listenTo(_shared_constants__WEBPACK_IMPORTED_MODULE_8__["DataChannels"].LIBRARY, "".concat(_shared_constants__WEBPACK_IMPORTED_MODULE_8__["DataPrefixes"].FOLDER, ":").concat(this.options.collectionIdentifier.id, ":error"), this.onError);
|
|
1456
|
-
this.listenTo(_shared_constants__WEBPACK_IMPORTED_MODULE_8__["DataChannels"].LIBRARY, "".concat(_shared_constants__WEBPACK_IMPORTED_MODULE_8__["DataPrefixes"].UPDATE_FOLDER_BANNER, ":").concat(this.options.collectionIdentifier.id, ":sync"), this.fetchModel);
|
|
1457
|
-
|
|
1458
|
-
_get(_getPrototypeOf(FolderView.prototype), "bindListeners", this).call(this);
|
|
1459
|
-
}
|
|
1460
|
-
}, {
|
|
1461
|
-
key: "onError",
|
|
1462
|
-
value: function onError(error) {
|
|
1463
|
-
switch (error.type) {
|
|
1464
|
-
case _libs_common_src_backbone_enums_DataServiceErrorType__WEBPACK_IMPORTED_MODULE_4__["DataServiceErrorType"].Forbidden:
|
|
1465
|
-
_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].ErrorHelper.throw(new _errors__WEBPACK_IMPORTED_MODULE_21__["ForbiddenFolderError"]());
|
|
1466
|
-
break;
|
|
1467
|
-
|
|
1468
|
-
case _libs_common_src_backbone_enums_DataServiceErrorType__WEBPACK_IMPORTED_MODULE_4__["DataServiceErrorType"].NotFound:
|
|
1469
|
-
_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].ErrorHelper.throw(new _errors__WEBPACK_IMPORTED_MODULE_21__["FolderNotFoundError"]());
|
|
1470
|
-
break;
|
|
1471
|
-
}
|
|
1472
|
-
}
|
|
1473
|
-
}, {
|
|
1474
|
-
key: "appLinkAction",
|
|
1475
|
-
value: function appLinkAction() {
|
|
1476
|
-
return _shared_constants__WEBPACK_IMPORTED_MODULE_8__["Actions"].LibraryEditor.FOLDER;
|
|
1477
|
-
}
|
|
1478
|
-
}, {
|
|
1479
|
-
key: "allowBulk",
|
|
1480
|
-
value: function allowBulk() {
|
|
1481
|
-
return true;
|
|
1482
|
-
}
|
|
1483
|
-
}, {
|
|
1484
|
-
key: "emptyStateType",
|
|
1485
|
-
value: function emptyStateType() {
|
|
1486
|
-
return _shared_enums__WEBPACK_IMPORTED_MODULE_11__["EmptyState"].Folder;
|
|
1487
|
-
}
|
|
1488
|
-
}, {
|
|
1489
|
-
key: "emptyStateOptions",
|
|
1490
|
-
value: function emptyStateOptions() {
|
|
1491
|
-
return {
|
|
1492
|
-
heading: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_2__["LanguageService"].getPhrase(this.lang, 'emptyStateHeading'),
|
|
1493
|
-
description: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_2__["LanguageService"].getPhrase(this.lang, 'emptyStateInfo', {
|
|
1494
|
-
url: _libs_common_src_backbone_utils_UrlHelper__WEBPACK_IMPORTED_MODULE_3__["UrlHelper"].safeUrlConcat(this.config.get('supportSiteUrl'), _shared_constants__WEBPACK_IMPORTED_MODULE_8__["SupportArticles"].ADD_FROM_ONLINE),
|
|
1495
|
-
classNames: 'info-link'
|
|
1496
|
-
})
|
|
1497
|
-
};
|
|
1498
|
-
}
|
|
1499
|
-
}, {
|
|
1500
|
-
key: "showFolderSource",
|
|
1501
|
-
value: function showFolderSource() {
|
|
1502
|
-
return false;
|
|
1503
|
-
}
|
|
1504
|
-
}, {
|
|
1505
|
-
key: "getVideoCollectionSource",
|
|
1506
|
-
value: function getVideoCollectionSource() {
|
|
1507
|
-
return _enums__WEBPACK_IMPORTED_MODULE_16__["VideoCollectionSource"].Folder;
|
|
1508
|
-
}
|
|
1509
|
-
}, {
|
|
1510
|
-
key: "fetchModel",
|
|
1511
|
-
value: function fetchModel() {
|
|
1512
|
-
this.model = this.libraryDataService.getFolder(this.collectionIdentifier.id);
|
|
1513
|
-
}
|
|
1514
|
-
}, {
|
|
1515
|
-
key: "fetchVideoCollection",
|
|
1516
|
-
value: function fetchVideoCollection() {
|
|
1517
|
-
this.videoCollection = this.videoDataService.getCollectionVideos(this.collectionIdentifier);
|
|
1518
|
-
}
|
|
1519
|
-
}, {
|
|
1520
|
-
key: "onBeforeRender",
|
|
1521
|
-
value: function onBeforeRender() {
|
|
1522
|
-
this.folderWithChildren = _shared_utils__WEBPACK_IMPORTED_MODULE_10__["FolderTreeHelpers"].getModelFromCollection(this.collectionIdentifier.id, this.libraryCollection);
|
|
1523
|
-
this.folderWithChildren.children && this.listenTo(this.folderWithChildren.children, 'add remove', this.render);
|
|
1524
|
-
return _get(_getPrototypeOf(FolderView.prototype), "onBeforeRender", this).call(this);
|
|
1525
|
-
}
|
|
1526
|
-
}, {
|
|
1527
|
-
key: "name",
|
|
1528
|
-
get: function get() {
|
|
1529
|
-
return 'FolderView';
|
|
1530
|
-
}
|
|
1531
|
-
}, {
|
|
1532
|
-
key: "lang",
|
|
1533
|
-
get: function get() {
|
|
1534
|
-
return 'libraryEditor.folderView';
|
|
1535
|
-
}
|
|
1536
|
-
}, {
|
|
1537
|
-
key: "componentType",
|
|
1538
|
-
get: function get() {
|
|
1539
|
-
return _shared_components_video_item_utils_VideoItemComponentTypes__WEBPACK_IMPORTED_MODULE_13__["VideoItemComponentType"].Draggable;
|
|
1540
|
-
}
|
|
1541
|
-
}]);
|
|
1542
|
-
|
|
1543
|
-
return FolderView;
|
|
1544
|
-
}(VideoCollectionView);
|
|
1545
|
-
var SeriesView = /*#__PURE__*/function (_VideoCollectionView2) {
|
|
1546
|
-
_inherits(SeriesView, _VideoCollectionView2);
|
|
1547
|
-
|
|
1548
|
-
var _super3 = _createSuper(SeriesView);
|
|
1549
|
-
|
|
1550
|
-
function SeriesView() {
|
|
1551
|
-
_classCallCheck(this, SeriesView);
|
|
1552
|
-
|
|
1553
|
-
return _super3.apply(this, arguments);
|
|
1554
|
-
}
|
|
1555
|
-
|
|
1556
|
-
_createClass(SeriesView, [{
|
|
1557
|
-
key: "initialize",
|
|
1558
|
-
value: function initialize() {
|
|
1559
|
-
this.seriesDataService = _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_1__["InstanceManager"].getInstance(_shared_constants__WEBPACK_IMPORTED_MODULE_8__["DataServices"].Series, this);
|
|
1560
|
-
|
|
1561
|
-
_get(_getPrototypeOf(SeriesView.prototype), "initialize", this).call(this);
|
|
1562
|
-
}
|
|
1563
|
-
}, {
|
|
1564
|
-
key: "bindListeners",
|
|
1565
|
-
value: function bindListeners() {
|
|
1566
|
-
this.listenTo(_shared_constants__WEBPACK_IMPORTED_MODULE_8__["DataChannels"].SERIES, "".concat(_shared_constants__WEBPACK_IMPORTED_MODULE_8__["DataPrefixes"].SERIES, ":").concat(this.options.collectionIdentifier.id, ":sync"), this.render);
|
|
1567
|
-
this.listenTo(_shared_constants__WEBPACK_IMPORTED_MODULE_8__["DataChannels"].SERIES, "".concat(_shared_constants__WEBPACK_IMPORTED_MODULE_8__["DataPrefixes"].SERIES, ":").concat(this.options.collectionIdentifier.id, ":error"), this.onError);
|
|
1568
|
-
|
|
1569
|
-
_get(_getPrototypeOf(SeriesView.prototype), "bindListeners", this).call(this);
|
|
1570
|
-
}
|
|
1571
|
-
}, {
|
|
1572
|
-
key: "onError",
|
|
1573
|
-
value: function onError(error) {
|
|
1574
|
-
switch (error.type) {
|
|
1575
|
-
case _libs_common_src_backbone_enums_DataServiceErrorType__WEBPACK_IMPORTED_MODULE_4__["DataServiceErrorType"].NotFound:
|
|
1576
|
-
_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].ErrorHelper.throw(new _errors__WEBPACK_IMPORTED_MODULE_21__["SeriesNotFoundError"]());
|
|
1577
|
-
break;
|
|
1578
|
-
}
|
|
1579
|
-
}
|
|
1580
|
-
}, {
|
|
1581
|
-
key: "appLinkAction",
|
|
1582
|
-
value: function appLinkAction() {
|
|
1583
|
-
return _shared_constants__WEBPACK_IMPORTED_MODULE_8__["Actions"].LibraryEditor.SERIES;
|
|
1584
|
-
}
|
|
1585
|
-
}, {
|
|
1586
|
-
key: "allowBulk",
|
|
1587
|
-
value: function allowBulk() {
|
|
1588
|
-
return false;
|
|
1589
|
-
}
|
|
1590
|
-
}, {
|
|
1591
|
-
key: "emptyStateType",
|
|
1592
|
-
value: function emptyStateType() {
|
|
1593
|
-
return _shared_enums__WEBPACK_IMPORTED_MODULE_11__["EmptyState"].Series;
|
|
1594
|
-
}
|
|
1595
|
-
}, {
|
|
1596
|
-
key: "emptyStateOptions",
|
|
1597
|
-
value: function emptyStateOptions() {
|
|
1598
|
-
return {
|
|
1599
|
-
heading: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_2__["LanguageService"].getPhrase(this.lang, 'emptyStateHeading'),
|
|
1600
|
-
description: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_2__["LanguageService"].getPhrase(this.lang, 'emptyStateInfo', {
|
|
1601
|
-
url: _libs_common_src_backbone_utils_UrlHelper__WEBPACK_IMPORTED_MODULE_3__["UrlHelper"].safeUrlConcat(this.config.get('supportSiteUrl'), _shared_constants__WEBPACK_IMPORTED_MODULE_8__["SupportArticles"].ADD_FROM_ONLINE),
|
|
1602
|
-
classNames: 'info-link'
|
|
1603
|
-
})
|
|
1604
|
-
};
|
|
1605
|
-
}
|
|
1606
|
-
}, {
|
|
1607
|
-
key: "showFolderSource",
|
|
1608
|
-
value: function showFolderSource() {
|
|
1609
|
-
return true;
|
|
1610
|
-
}
|
|
1611
|
-
}, {
|
|
1612
|
-
key: "getVideoCollectionSource",
|
|
1613
|
-
value: function getVideoCollectionSource() {
|
|
1614
|
-
return _enums__WEBPACK_IMPORTED_MODULE_16__["VideoCollectionSource"].Series;
|
|
1615
|
-
}
|
|
1616
|
-
}, {
|
|
1617
|
-
key: "fetchModel",
|
|
1618
|
-
value: function fetchModel() {
|
|
1619
|
-
this.model = this.seriesDataService.getSeries(this.collectionIdentifier.id);
|
|
1620
|
-
}
|
|
1621
|
-
}, {
|
|
1622
|
-
key: "fetchVideoCollection",
|
|
1623
|
-
value: function fetchVideoCollection() {
|
|
1624
|
-
this.videoCollection = this.videoDataService.getSeriesVideos(this.collectionIdentifier, this.libraryCollection.pluck('id'));
|
|
1625
|
-
}
|
|
1626
|
-
}, {
|
|
1627
|
-
key: "name",
|
|
1628
|
-
get: function get() {
|
|
1629
|
-
return 'SeriesView';
|
|
1630
|
-
}
|
|
1631
|
-
}, {
|
|
1632
|
-
key: "lang",
|
|
1633
|
-
get: function get() {
|
|
1634
|
-
return 'libraryEditor.seriesView';
|
|
1635
|
-
}
|
|
1636
|
-
}, {
|
|
1637
|
-
key: "componentType",
|
|
1638
|
-
get: function get() {
|
|
1639
|
-
return _shared_components_video_item_utils_VideoItemComponentTypes__WEBPACK_IMPORTED_MODULE_13__["VideoItemComponentType"].Base;
|
|
1640
|
-
}
|
|
1641
|
-
}]);
|
|
1642
|
-
|
|
1643
|
-
return SeriesView;
|
|
1644
|
-
}(VideoCollectionView);
|
|
1645
|
-
|
|
1646
|
-
/***/ }),
|
|
1647
|
-
|
|
1648
|
-
/***/ "./src/shared/components/bulk-video-actions/BulkVideoActions.hbs":
|
|
1649
|
-
/*!***********************************************************************!*\
|
|
1650
|
-
!*** ./src/shared/components/bulk-video-actions/BulkVideoActions.hbs ***!
|
|
1651
|
-
\***********************************************************************/
|
|
1652
|
-
/*! no static exports found */
|
|
1653
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1654
|
-
|
|
1655
|
-
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
1656
|
-
module.exports = (Handlebars['default'] || Handlebars).template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
1657
|
-
var alias1=container.propertyIsEnumerable;
|
|
1658
|
-
|
|
1659
|
-
return "<button class=\"dropdown-toggle btn btn-light\" type=\"button\" id=\"bulkActions\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\">\r\n "
|
|
1660
|
-
+ container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"options",{"name":"lang","hash":{},"data":data}))
|
|
1661
|
-
+ "\r\n</button>\r\n<div class=\"dropdown-menu-region\"></div>";
|
|
1662
|
-
},"useData":true});
|
|
1663
|
-
|
|
1664
|
-
/***/ }),
|
|
1665
|
-
|
|
1666
|
-
/***/ "./src/shared/components/bulk-video-actions/BulkVideoActionsComponent.ts":
|
|
1667
|
-
/*!*******************************************************************************!*\
|
|
1668
|
-
!*** ./src/shared/components/bulk-video-actions/BulkVideoActionsComponent.ts ***!
|
|
1669
|
-
\*******************************************************************************/
|
|
1670
|
-
/*! exports provided: BulkVideoActionsComponent */
|
|
1671
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1672
|
-
|
|
1673
|
-
"use strict";
|
|
1674
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1675
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BulkVideoActionsComponent", function() { return BulkVideoActionsComponent; });
|
|
1676
|
-
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
1677
|
-
/* harmony import */ var _libs_shared_src_enums_CurationStatus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../libs/shared/src/enums/CurationStatus */ "../../libs/shared/src/enums/CurationStatus.ts");
|
|
1678
|
-
/* harmony import */ var _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../libs/analytics/src/interfaces */ "../../libs/analytics/src/interfaces/index.ts");
|
|
1679
|
-
/* harmony import */ var _libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../libs/analytics/src/AnalyticsHelper */ "../../libs/analytics/src/AnalyticsHelper.ts");
|
|
1680
|
-
/* harmony import */ var _dropdown_DropdownComponentCollection__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../dropdown/DropdownComponentCollection */ "./src/shared/components/dropdown/DropdownComponentCollection.ts");
|
|
1681
|
-
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../constants */ "./src/shared/constants/index.ts");
|
|
1682
|
-
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../utils */ "./src/shared/utils/index.ts");
|
|
1683
|
-
/* harmony import */ var _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../../libs/common/src/backbone/services/LanguageService */ "../../libs/common/src/backbone/services/LanguageService.tsx");
|
|
1684
|
-
/* harmony import */ var _apps_library_editor_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../apps/library-editor/constants */ "./src/apps/library-editor/constants/index.ts");
|
|
1685
|
-
/* harmony import */ var _BulkVideoActions_hbs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./BulkVideoActions.hbs */ "./src/shared/components/bulk-video-actions/BulkVideoActions.hbs");
|
|
1686
|
-
/* harmony import */ var _BulkVideoActions_hbs__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_BulkVideoActions_hbs__WEBPACK_IMPORTED_MODULE_9__);
|
|
1687
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
1688
|
-
|
|
1689
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1690
|
-
|
|
1691
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
1692
|
-
|
|
1693
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1694
|
-
|
|
1695
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
1696
|
-
|
|
1697
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1698
|
-
|
|
1699
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1700
|
-
|
|
1701
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1702
|
-
|
|
1703
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1704
|
-
|
|
1705
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
1706
|
-
|
|
1707
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
var BulkVideoActionsComponent = /*#__PURE__*/function (_Core$Component) {
|
|
1720
|
-
_inherits(BulkVideoActionsComponent, _Core$Component);
|
|
1721
|
-
|
|
1722
|
-
var _super = _createSuper(BulkVideoActionsComponent);
|
|
1723
|
-
|
|
1724
|
-
function BulkVideoActionsComponent(options) {
|
|
1725
|
-
_classCallCheck(this, BulkVideoActionsComponent);
|
|
1726
|
-
|
|
1727
|
-
return _super.call(this, options);
|
|
1728
|
-
}
|
|
1729
|
-
|
|
1730
|
-
_createClass(BulkVideoActionsComponent, [{
|
|
1731
|
-
key: "initialize",
|
|
1732
|
-
value: function initialize() {
|
|
1733
|
-
this.getViewModel();
|
|
1734
|
-
this.bindListeners();
|
|
1735
|
-
}
|
|
1736
|
-
}, {
|
|
1737
|
-
key: "getViewModel",
|
|
1738
|
-
value: function getViewModel() {
|
|
1739
|
-
var key = this.options.collectionIdentifier.toString();
|
|
1740
|
-
this.model = _utils__WEBPACK_IMPORTED_MODULE_6__["BulkCheckboxHelper"].GetViewModel(key, _apps_library_editor_constants__WEBPACK_IMPORTED_MODULE_8__["CheckboxTypes"].VIDEO_LIST);
|
|
1741
|
-
}
|
|
1742
|
-
}, {
|
|
1743
|
-
key: "bindListeners",
|
|
1744
|
-
value: function bindListeners() {
|
|
1745
|
-
this.listenTo(this.model, 'change', this.render);
|
|
1746
|
-
this.listenTo(this.collection, 'remove', this.render);
|
|
1747
|
-
}
|
|
1748
|
-
}, {
|
|
1749
|
-
key: "regions",
|
|
1750
|
-
value: function regions() {
|
|
1751
|
-
return {
|
|
1752
|
-
dropdownItems: {
|
|
1753
|
-
replaceElement: true,
|
|
1754
|
-
el: '.dropdown-menu-region'
|
|
1755
|
-
}
|
|
1756
|
-
};
|
|
1757
|
-
}
|
|
1758
|
-
}, {
|
|
1759
|
-
key: "getSelectedIds",
|
|
1760
|
-
value: function getSelectedIds() {
|
|
1761
|
-
return _utils__WEBPACK_IMPORTED_MODULE_6__["BulkCheckboxHelper"].GetSelectedIds({
|
|
1762
|
-
key: this.options.collectionIdentifier.toString(),
|
|
1763
|
-
type: _apps_library_editor_constants__WEBPACK_IMPORTED_MODULE_8__["CheckboxTypes"].VIDEO_LIST,
|
|
1764
|
-
collection: this.collection,
|
|
1765
|
-
excludePredicate: function excludePredicate(model) {
|
|
1766
|
-
return model.get('status') === _libs_shared_src_enums_CurationStatus__WEBPACK_IMPORTED_MODULE_1__["CurationStatus"].Processing;
|
|
1767
|
-
}
|
|
1768
|
-
});
|
|
1769
|
-
}
|
|
1770
|
-
}, {
|
|
1771
|
-
key: "onBeforeRender",
|
|
1772
|
-
value: function onBeforeRender() {
|
|
1773
|
-
var ids = this.getSelectedIds();
|
|
1774
|
-
|
|
1775
|
-
if (!ids.length) {
|
|
1776
|
-
this.$el.empty();
|
|
1777
|
-
return false;
|
|
1778
|
-
}
|
|
1779
|
-
|
|
1780
|
-
return true;
|
|
1781
|
-
}
|
|
1782
|
-
}, {
|
|
1783
|
-
key: "getActions",
|
|
1784
|
-
value: function getActions() {
|
|
1785
|
-
if (!this.options.collectionIdentifier) return;
|
|
1786
|
-
var ids = this.getSelectedIds();
|
|
1787
|
-
return new _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].Collection([{
|
|
1788
|
-
title: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_7__["LanguageService"].getPhrase(this.lang, 'move', {
|
|
1789
|
-
smartCount: ids.length
|
|
1790
|
-
}),
|
|
1791
|
-
appLink: {
|
|
1792
|
-
application: this.options.application,
|
|
1793
|
-
action: _constants__WEBPACK_IMPORTED_MODULE_5__["Actions"].Shared.MOVE_VIDEOS,
|
|
1794
|
-
args: [ids.join(','), this.options.collectionIdentifier.id]
|
|
1795
|
-
},
|
|
1796
|
-
analyticsOptions: _libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_3__["AnalyticsHelper"].mergeOptions(this.options.analyticsOptions, {
|
|
1797
|
-
actionType: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_2__["UserAction"].Move,
|
|
1798
|
-
workflowPhase: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_2__["WorkflowPhase"].Start
|
|
1799
|
-
})
|
|
1800
|
-
}, {
|
|
1801
|
-
title: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_7__["LanguageService"].getPhrase(this.lang, 'remove', {
|
|
1802
|
-
smartCount: ids.length
|
|
1803
|
-
}),
|
|
1804
|
-
appLink: {
|
|
1805
|
-
application: _constants__WEBPACK_IMPORTED_MODULE_5__["AppChannels"].LIBRARY_EDITOR,
|
|
1806
|
-
action: _constants__WEBPACK_IMPORTED_MODULE_5__["Actions"].Shared.DELETE_VIDEOS,
|
|
1807
|
-
args: [this.options.collectionIdentifier.id, ids.join(',')]
|
|
1808
|
-
},
|
|
1809
|
-
analyticsOptions: _libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_3__["AnalyticsHelper"].mergeOptions(this.options.analyticsOptions, {
|
|
1810
|
-
actionType: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_2__["UserAction"].Delete,
|
|
1811
|
-
workflowPhase: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_2__["WorkflowPhase"].Start
|
|
1812
|
-
}),
|
|
1813
|
-
classes: 'text-danger'
|
|
1814
|
-
}]);
|
|
1815
|
-
}
|
|
1816
|
-
}, {
|
|
1817
|
-
key: "onRender",
|
|
1818
|
-
value: function onRender() {
|
|
1819
|
-
this.showChildView('dropdownItems', new _dropdown_DropdownComponentCollection__WEBPACK_IMPORTED_MODULE_4__["DropdownComponentCollection"]({
|
|
1820
|
-
displayOptions: {
|
|
1821
|
-
alignment: 'right'
|
|
1822
|
-
},
|
|
1823
|
-
channelName: "".concat(this.name).concat(this.cid),
|
|
1824
|
-
collection: this.getActions(),
|
|
1825
|
-
analyticsHelper: _libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_3__["AnalyticsHelper"]
|
|
1826
|
-
}));
|
|
1827
|
-
}
|
|
1828
|
-
}, {
|
|
1829
|
-
key: "name",
|
|
1830
|
-
get: function get() {
|
|
1831
|
-
return 'BulkVideoActionsComponent';
|
|
1832
|
-
}
|
|
1833
|
-
}, {
|
|
1834
|
-
key: "template",
|
|
1835
|
-
get: function get() {
|
|
1836
|
-
return _BulkVideoActions_hbs__WEBPACK_IMPORTED_MODULE_9___default.a;
|
|
1837
|
-
}
|
|
1838
|
-
}, {
|
|
1839
|
-
key: "lang",
|
|
1840
|
-
get: function get() {
|
|
1841
|
-
return 'shared.bulkVideoActions';
|
|
1842
|
-
}
|
|
1843
|
-
}]);
|
|
1844
|
-
|
|
1845
|
-
return BulkVideoActionsComponent;
|
|
1846
|
-
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].Component);
|
|
1847
|
-
|
|
1848
|
-
/***/ })
|
|
1849
|
-
|
|
1850
|
-
}]);
|
|
1851
|
-
//# sourceMappingURL=30.chunk.js.map
|