@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/11.chunk.js
DELETED
|
@@ -1,4091 +0,0 @@
|
|
|
1
|
-
(window["webpackJsonp_clickview_library_editor"] = window["webpackJsonp_clickview_library_editor"] || []).push([[11],{
|
|
2
|
-
|
|
3
|
-
/***/ "./src/apps/library-editor/behaviors/draggable-video/DraggableVideoBehavior.ts":
|
|
4
|
-
/*!*************************************************************************************!*\
|
|
5
|
-
!*** ./src/apps/library-editor/behaviors/draggable-video/DraggableVideoBehavior.ts ***!
|
|
6
|
-
\*************************************************************************************/
|
|
7
|
-
/*! exports provided: DraggableVideoBehavior */
|
|
8
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9
|
-
|
|
10
|
-
"use strict";
|
|
11
|
-
__webpack_require__.r(__webpack_exports__);
|
|
12
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DraggableVideoBehavior", function() { return DraggableVideoBehavior; });
|
|
13
|
-
/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! underscore */ "underscore");
|
|
14
|
-
/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(underscore__WEBPACK_IMPORTED_MODULE_0__);
|
|
15
|
-
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! backbone */ "backbone");
|
|
16
|
-
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(backbone__WEBPACK_IMPORTED_MODULE_1__);
|
|
17
|
-
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
18
|
-
/* harmony import */ var _libs_common_src_backbone_errors_DevError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/errors/DevError */ "../../libs/common/src/backbone/errors/DevError.ts");
|
|
19
|
-
/* harmony import */ var _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../../libs/shared/src/utils/SvgHelper */ "../../libs/shared/src/utils/SvgHelper.ts");
|
|
20
|
-
/* harmony import */ var _shared_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/constants */ "./src/shared/constants/index.ts");
|
|
21
|
-
/* harmony import */ var _shared_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/utils */ "./src/shared/utils/index.ts");
|
|
22
|
-
/* 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");
|
|
23
|
-
/* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../shared */ "./src/apps/library-editor/behaviors/shared/index.ts");
|
|
24
|
-
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../constants */ "./src/apps/library-editor/constants/index.ts");
|
|
25
|
-
/* harmony import */ var _draggable_video_scss__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./draggable-video.scss */ "./src/apps/library-editor/behaviors/draggable-video/draggable-video.scss");
|
|
26
|
-
/* harmony import */ var _draggable_video_scss__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_draggable_video_scss__WEBPACK_IMPORTED_MODULE_10__);
|
|
27
|
-
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); }
|
|
28
|
-
|
|
29
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
30
|
-
|
|
31
|
-
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); } }
|
|
32
|
-
|
|
33
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
34
|
-
|
|
35
|
-
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); }
|
|
36
|
-
|
|
37
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
38
|
-
|
|
39
|
-
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); }; }
|
|
40
|
-
|
|
41
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
42
|
-
|
|
43
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
44
|
-
|
|
45
|
-
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; } }
|
|
46
|
-
|
|
47
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
var DraggableVideoBehavior = /*#__PURE__*/function (_Core$Behavior) {
|
|
61
|
-
_inherits(DraggableVideoBehavior, _Core$Behavior);
|
|
62
|
-
|
|
63
|
-
var _super = _createSuper(DraggableVideoBehavior);
|
|
64
|
-
|
|
65
|
-
function DraggableVideoBehavior() {
|
|
66
|
-
_classCallCheck(this, DraggableVideoBehavior);
|
|
67
|
-
|
|
68
|
-
return _super.apply(this, arguments);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
_createClass(DraggableVideoBehavior, [{
|
|
72
|
-
key: "initialize",
|
|
73
|
-
value: function initialize() {
|
|
74
|
-
if (!this.options.model) _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__["Core"].ErrorHelper.throw(new _libs_common_src_backbone_errors_DevError__WEBPACK_IMPORTED_MODULE_3__["DevError"]('DraggableVideoBehavior must be passed a Video model'));
|
|
75
|
-
this.listenTo(_shared_constants__WEBPACK_IMPORTED_MODULE_5__["ServiceChannels"].VIDEO_DRAG_DROP, "drag:style:".concat(this.options.model.id), this.styleDragStart);
|
|
76
|
-
this.listenTo(_shared_constants__WEBPACK_IMPORTED_MODULE_5__["ServiceChannels"].VIDEO_DRAG_DROP, 'drag:stop', this.styleDragStop);
|
|
77
|
-
}
|
|
78
|
-
}, {
|
|
79
|
-
key: "helper",
|
|
80
|
-
value: function helper() {
|
|
81
|
-
var models = this.getVideoModels();
|
|
82
|
-
var draggableItemComponent = new _shared__WEBPACK_IMPORTED_MODULE_8__["DraggableItemComponent"]({
|
|
83
|
-
text: models.length > 1 ? _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_7__["LanguageService"].getPhrase(this.lang, 'videos', {
|
|
84
|
-
videoCount: models.length
|
|
85
|
-
}) : models[0].get('name'),
|
|
86
|
-
svg: _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_4__["SvgHelper"].getSvg(_libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_4__["cvSvgLibrary"].Play)
|
|
87
|
-
});
|
|
88
|
-
return draggableItemComponent.render().el;
|
|
89
|
-
}
|
|
90
|
-
}, {
|
|
91
|
-
key: "getSelector",
|
|
92
|
-
value: function getSelector() {
|
|
93
|
-
return this.view.getUI(this.options.selector);
|
|
94
|
-
}
|
|
95
|
-
}, {
|
|
96
|
-
key: "styleDragStart",
|
|
97
|
-
value: function styleDragStart() {
|
|
98
|
-
var $el = this.getSelector();
|
|
99
|
-
$el.addClass(_draggable_video_scss__WEBPACK_IMPORTED_MODULE_10___default.a.draggingVideo);
|
|
100
|
-
}
|
|
101
|
-
}, {
|
|
102
|
-
key: "styleDragStop",
|
|
103
|
-
value: function styleDragStop() {
|
|
104
|
-
var $el = this.getSelector();
|
|
105
|
-
$el.removeClass(_draggable_video_scss__WEBPACK_IMPORTED_MODULE_10___default.a.draggingVideo);
|
|
106
|
-
}
|
|
107
|
-
}, {
|
|
108
|
-
key: "start",
|
|
109
|
-
value: function start() {
|
|
110
|
-
var models = this.getVideoModels();
|
|
111
|
-
/**
|
|
112
|
-
* This relies on an instance of VideoDragDropService existing
|
|
113
|
-
* This instanced should be retreived from the instance manager
|
|
114
|
-
* by the application.
|
|
115
|
-
*/
|
|
116
|
-
|
|
117
|
-
var channel = backbone__WEBPACK_IMPORTED_MODULE_1__["Radio"].channel(_shared_constants__WEBPACK_IMPORTED_MODULE_5__["ServiceChannels"].VIDEO_DRAG_DROP);
|
|
118
|
-
channel.trigger('drag:start', models, this.options.collectionIdentifier);
|
|
119
|
-
|
|
120
|
-
underscore__WEBPACK_IMPORTED_MODULE_0__["each"](models, function (m) {
|
|
121
|
-
return channel.trigger("drag:style:".concat(m.id));
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
}, {
|
|
125
|
-
key: "stop",
|
|
126
|
-
value: function stop() {
|
|
127
|
-
backbone__WEBPACK_IMPORTED_MODULE_1__["Radio"].channel(_shared_constants__WEBPACK_IMPORTED_MODULE_5__["ServiceChannels"].VIDEO_DRAG_DROP).trigger('drag:stop');
|
|
128
|
-
}
|
|
129
|
-
}, {
|
|
130
|
-
key: "getVideoModels",
|
|
131
|
-
value: function getVideoModels() {
|
|
132
|
-
var _this = this;
|
|
133
|
-
|
|
134
|
-
var models = _shared_utils__WEBPACK_IMPORTED_MODULE_6__["BulkCheckboxHelper"].GetSelectedModels({
|
|
135
|
-
key: this.options.collectionIdentifier.toString(),
|
|
136
|
-
type: _constants__WEBPACK_IMPORTED_MODULE_9__["CheckboxTypes"].VIDEO_LIST,
|
|
137
|
-
collection: this.view.model.collection
|
|
138
|
-
});
|
|
139
|
-
if (!underscore__WEBPACK_IMPORTED_MODULE_0__["any"](models, function (m) {
|
|
140
|
-
return m.id === _this.view.model.id;
|
|
141
|
-
})) models = [this.view.model];
|
|
142
|
-
if (models.length) return models;
|
|
143
|
-
return [this.view.model];
|
|
144
|
-
}
|
|
145
|
-
}, {
|
|
146
|
-
key: "getClassMappings",
|
|
147
|
-
value: function getClassMappings() {
|
|
148
|
-
return {
|
|
149
|
-
'ui-draggable': _shared__WEBPACK_IMPORTED_MODULE_8__["styles"].draggable,
|
|
150
|
-
'ui-draggable-disabled': _shared__WEBPACK_IMPORTED_MODULE_8__["styles"].disabled,
|
|
151
|
-
'ui-draggable-handle': _shared__WEBPACK_IMPORTED_MODULE_8__["styles"].handle,
|
|
152
|
-
'ui-draggable-dragging': _shared__WEBPACK_IMPORTED_MODULE_8__["styles"].dragging
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
}, {
|
|
156
|
-
key: "onRender",
|
|
157
|
-
value: function onRender() {
|
|
158
|
-
var $el = this.getSelector();
|
|
159
|
-
var options = {
|
|
160
|
-
helper: underscore__WEBPACK_IMPORTED_MODULE_0__["bind"](this.helper, this),
|
|
161
|
-
start: underscore__WEBPACK_IMPORTED_MODULE_0__["bind"](this.start, this),
|
|
162
|
-
stop: underscore__WEBPACK_IMPORTED_MODULE_0__["bind"](this.stop, this)
|
|
163
|
-
};
|
|
164
|
-
options.classes = this.getClassMappings();
|
|
165
|
-
$el.draggable(underscore__WEBPACK_IMPORTED_MODULE_0__["extend"]({}, _shared__WEBPACK_IMPORTED_MODULE_8__["DragOptions"], options));
|
|
166
|
-
}
|
|
167
|
-
}, {
|
|
168
|
-
key: "onBeforeDestroy",
|
|
169
|
-
value: function onBeforeDestroy() {
|
|
170
|
-
/**
|
|
171
|
-
* Because JQuery.UI's draggable is a piece of shit
|
|
172
|
-
* it sometimes errors out on 'destroy' if the element has otherwise
|
|
173
|
-
* been disposed of before this fire. So we need to first check if
|
|
174
|
-
* there is still an instance of $.fn.draggable before we call destroy on it
|
|
175
|
-
*/
|
|
176
|
-
var $el = this.getSelector();
|
|
177
|
-
if ($el.draggable('instance')) $el.draggable('destroy');
|
|
178
|
-
}
|
|
179
|
-
}, {
|
|
180
|
-
key: "lang",
|
|
181
|
-
get: function get() {
|
|
182
|
-
return 'libraryEditor.behaviors';
|
|
183
|
-
}
|
|
184
|
-
}]);
|
|
185
|
-
|
|
186
|
-
return DraggableVideoBehavior;
|
|
187
|
-
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__["Core"].Behavior);
|
|
188
|
-
|
|
189
|
-
/***/ }),
|
|
190
|
-
|
|
191
|
-
/***/ "./src/apps/library-editor/behaviors/draggable-video/draggable-video.scss":
|
|
192
|
-
/*!********************************************************************************!*\
|
|
193
|
-
!*** ./src/apps/library-editor/behaviors/draggable-video/draggable-video.scss ***!
|
|
194
|
-
\********************************************************************************/
|
|
195
|
-
/*! no static exports found */
|
|
196
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
197
|
-
|
|
198
|
-
// extracted by mini-css-extract-plugin
|
|
199
|
-
module.exports = {"draggingVideo":"cv--draggingVideo--3cCHx"};
|
|
200
|
-
|
|
201
|
-
/***/ }),
|
|
202
|
-
|
|
203
|
-
/***/ "./src/apps/library-editor/components/expandable-tag-list/ExpandableTagList.hbs":
|
|
204
|
-
/*!**************************************************************************************!*\
|
|
205
|
-
!*** ./src/apps/library-editor/components/expandable-tag-list/ExpandableTagList.hbs ***!
|
|
206
|
-
\**************************************************************************************/
|
|
207
|
-
/*! no static exports found */
|
|
208
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
209
|
-
|
|
210
|
-
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
211
|
-
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
212
|
-
var stack1, alias1=container.propertyIsEnumerable;
|
|
213
|
-
|
|
214
|
-
return " <a class=\"info-link show-more-tags\">"
|
|
215
|
-
+ container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.extraTagsText : stack1), depth0))
|
|
216
|
-
+ "</a>\r\n";
|
|
217
|
-
},"3":function(container,depth0,helpers,partials,data) {
|
|
218
|
-
var alias1=container.propertyIsEnumerable;
|
|
219
|
-
|
|
220
|
-
return " <a class=\"info-link applink-video-details\">"
|
|
221
|
-
+ container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"viewAllTags",{"name":"lang","hash":{},"data":data}))
|
|
222
|
-
+ "</a>\r\n";
|
|
223
|
-
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
224
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {});
|
|
225
|
-
|
|
226
|
-
return "<div class=\"tags-region\"></div>\r\n\r\n"
|
|
227
|
-
+ ((stack1 = helpers["if"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.expandable : stack1),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
228
|
-
+ ((stack1 = helpers["if"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.moreTags : stack1),{"name":"if","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "");
|
|
229
|
-
},"useData":true});
|
|
230
|
-
|
|
231
|
-
/***/ }),
|
|
232
|
-
|
|
233
|
-
/***/ "./src/apps/library-editor/components/expandable-tag-list/ExpandableTagListComponent.ts":
|
|
234
|
-
/*!**********************************************************************************************!*\
|
|
235
|
-
!*** ./src/apps/library-editor/components/expandable-tag-list/ExpandableTagListComponent.ts ***!
|
|
236
|
-
\**********************************************************************************************/
|
|
237
|
-
/*! exports provided: ExpandableTagListComponent */
|
|
238
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
239
|
-
|
|
240
|
-
"use strict";
|
|
241
|
-
__webpack_require__.r(__webpack_exports__);
|
|
242
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExpandableTagListComponent", function() { return ExpandableTagListComponent; });
|
|
243
|
-
/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! underscore */ "underscore");
|
|
244
|
-
/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(underscore__WEBPACK_IMPORTED_MODULE_0__);
|
|
245
|
-
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! backbone */ "backbone");
|
|
246
|
-
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(backbone__WEBPACK_IMPORTED_MODULE_1__);
|
|
247
|
-
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
248
|
-
/* harmony import */ var _shared_collections_TagCollection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/collections/TagCollection */ "./src/shared/collections/TagCollection.ts");
|
|
249
|
-
/* harmony import */ var _shared_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/constants */ "./src/shared/constants/index.ts");
|
|
250
|
-
/* harmony import */ var _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/services/LanguageService */ "../../libs/common/src/backbone/services/LanguageService.tsx");
|
|
251
|
-
/* harmony import */ var _tag_list_TagComponentCollection__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../tag-list/TagComponentCollection */ "./src/apps/library-editor/components/tag-list/TagComponentCollection.ts");
|
|
252
|
-
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../enums */ "./src/apps/library-editor/enums/index.ts");
|
|
253
|
-
/* harmony import */ var _ExpandableTagList_hbs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ExpandableTagList.hbs */ "./src/apps/library-editor/components/expandable-tag-list/ExpandableTagList.hbs");
|
|
254
|
-
/* harmony import */ var _ExpandableTagList_hbs__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_ExpandableTagList_hbs__WEBPACK_IMPORTED_MODULE_8__);
|
|
255
|
-
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); }
|
|
256
|
-
|
|
257
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
258
|
-
|
|
259
|
-
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); } }
|
|
260
|
-
|
|
261
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
262
|
-
|
|
263
|
-
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); }
|
|
264
|
-
|
|
265
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
266
|
-
|
|
267
|
-
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); }; }
|
|
268
|
-
|
|
269
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
270
|
-
|
|
271
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
272
|
-
|
|
273
|
-
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; } }
|
|
274
|
-
|
|
275
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
var ExpandableTagListComponent = /*#__PURE__*/function (_Core$Component) {
|
|
287
|
-
_inherits(ExpandableTagListComponent, _Core$Component);
|
|
288
|
-
|
|
289
|
-
var _super = _createSuper(ExpandableTagListComponent);
|
|
290
|
-
|
|
291
|
-
function ExpandableTagListComponent(options) {
|
|
292
|
-
_classCallCheck(this, ExpandableTagListComponent);
|
|
293
|
-
|
|
294
|
-
return _super.call(this, options);
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
_createClass(ExpandableTagListComponent, [{
|
|
298
|
-
key: "events",
|
|
299
|
-
value: function events() {
|
|
300
|
-
return {
|
|
301
|
-
'click .show-more-tags': 'onClickShowMoreTags'
|
|
302
|
-
};
|
|
303
|
-
}
|
|
304
|
-
}, {
|
|
305
|
-
key: "regions",
|
|
306
|
-
value: function regions() {
|
|
307
|
-
return {
|
|
308
|
-
tags: {
|
|
309
|
-
replaceElement: true,
|
|
310
|
-
el: '.tags-region'
|
|
311
|
-
}
|
|
312
|
-
};
|
|
313
|
-
}
|
|
314
|
-
}, {
|
|
315
|
-
key: "onClickShowMoreTags",
|
|
316
|
-
value: function onClickShowMoreTags() {
|
|
317
|
-
this.showingMoreTags = true;
|
|
318
|
-
if (this.options.channelName) backbone__WEBPACK_IMPORTED_MODULE_1__["Radio"].channel(this.options.channelName).trigger('show:more:tags');
|
|
319
|
-
this.render();
|
|
320
|
-
}
|
|
321
|
-
}, {
|
|
322
|
-
key: "getTagCollection",
|
|
323
|
-
value: function getTagCollection() {
|
|
324
|
-
var collectionLength = this.showingMoreTags ? this.options.expandedTagDisplayCount : this.options.initialTagDisplayCount;
|
|
325
|
-
return new _shared_collections_TagCollection__WEBPACK_IMPORTED_MODULE_3__["TagCollection"](this.collection.slice(0, collectionLength));
|
|
326
|
-
}
|
|
327
|
-
}, {
|
|
328
|
-
key: "getExtraTagsInfo",
|
|
329
|
-
value: function getExtraTagsInfo() {
|
|
330
|
-
if (this.showingMoreTags) return;
|
|
331
|
-
return _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_5__["LanguageService"].getPhrase(this.lang, 'extraTags', {
|
|
332
|
-
smartCount: underscore__WEBPACK_IMPORTED_MODULE_0__["max"]([this.collection.length - this.options.initialTagDisplayCount, 0])
|
|
333
|
-
});
|
|
334
|
-
}
|
|
335
|
-
}, {
|
|
336
|
-
key: "renderTags",
|
|
337
|
-
value: function renderTags() {
|
|
338
|
-
var view = new _tag_list_TagComponentCollection__WEBPACK_IMPORTED_MODULE_6__["TagComponentCollection"]({
|
|
339
|
-
collection: this.getTagCollection(),
|
|
340
|
-
behavior: _enums__WEBPACK_IMPORTED_MODULE_7__["TagBehavior"].Link
|
|
341
|
-
});
|
|
342
|
-
this.showChildView('tags', view);
|
|
343
|
-
}
|
|
344
|
-
}, {
|
|
345
|
-
key: "viewOptions",
|
|
346
|
-
value: function viewOptions() {
|
|
347
|
-
return {
|
|
348
|
-
expandable: this.collection.length > this.options.initialTagDisplayCount && !this.showingMoreTags,
|
|
349
|
-
extraTagsText: this.getExtraTagsInfo(),
|
|
350
|
-
moreTags: this.showingMoreTags && this.collection.length > this.options.expandedTagDisplayCount
|
|
351
|
-
};
|
|
352
|
-
}
|
|
353
|
-
}, {
|
|
354
|
-
key: "onRender",
|
|
355
|
-
value: function onRender() {
|
|
356
|
-
this.renderTags();
|
|
357
|
-
}
|
|
358
|
-
}, {
|
|
359
|
-
key: "name",
|
|
360
|
-
get: function get() {
|
|
361
|
-
return 'ExpandableTagListComponent';
|
|
362
|
-
}
|
|
363
|
-
}, {
|
|
364
|
-
key: "template",
|
|
365
|
-
get: function get() {
|
|
366
|
-
return _ExpandableTagList_hbs__WEBPACK_IMPORTED_MODULE_8___default.a;
|
|
367
|
-
}
|
|
368
|
-
}, {
|
|
369
|
-
key: "lang",
|
|
370
|
-
get: function get() {
|
|
371
|
-
return 'libraryEditor.expandableTagList';
|
|
372
|
-
}
|
|
373
|
-
}, {
|
|
374
|
-
key: "defaults",
|
|
375
|
-
get: function get() {
|
|
376
|
-
return {
|
|
377
|
-
initialTagDisplayCount: 5,
|
|
378
|
-
expandedTagDisplayCount: 10
|
|
379
|
-
};
|
|
380
|
-
}
|
|
381
|
-
}, {
|
|
382
|
-
key: "appLinks",
|
|
383
|
-
get: function get() {
|
|
384
|
-
return {
|
|
385
|
-
'.applink-video-details': {
|
|
386
|
-
application: _shared_constants__WEBPACK_IMPORTED_MODULE_4__["AppChannels"].LIBRARY_EDITOR,
|
|
387
|
-
action: _shared_constants__WEBPACK_IMPORTED_MODULE_4__["Actions"].LibraryEditor.VIDEO_DETAILS,
|
|
388
|
-
args: [this.options.videoId]
|
|
389
|
-
}
|
|
390
|
-
};
|
|
391
|
-
}
|
|
392
|
-
}]);
|
|
393
|
-
|
|
394
|
-
return ExpandableTagListComponent;
|
|
395
|
-
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__["Core"].Component);
|
|
396
|
-
|
|
397
|
-
/***/ }),
|
|
398
|
-
|
|
399
|
-
/***/ "./src/shared/components/video-item-preview/VideoItemPreview.handlebars":
|
|
400
|
-
/*!******************************************************************************!*\
|
|
401
|
-
!*** ./src/shared/components/video-item-preview/VideoItemPreview.handlebars ***!
|
|
402
|
-
\******************************************************************************/
|
|
403
|
-
/*! no static exports found */
|
|
404
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
405
|
-
|
|
406
|
-
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
407
|
-
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
408
|
-
var alias1=container.propertyIsEnumerable;
|
|
409
|
-
|
|
410
|
-
return " <p>"
|
|
411
|
-
+ container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"noDescription",{"name":"lang","hash":{},"data":data}))
|
|
412
|
-
+ "</p>\r\n";
|
|
413
|
-
},"3":function(container,depth0,helpers,partials,data) {
|
|
414
|
-
return " <div class=\"description-region\"></div>\r\n";
|
|
415
|
-
},"5":function(container,depth0,helpers,partials,data) {
|
|
416
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;
|
|
417
|
-
|
|
418
|
-
return " <div class=\"col-6 pb-1 "
|
|
419
|
-
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))
|
|
420
|
-
+ "\">"
|
|
421
|
-
+ alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"rating",{"name":"lang","hash":{},"data":data}))
|
|
422
|
-
+ "</div>\r\n <div class=\"col-6 mb-0 pb-1\">\r\n <span class=\"badge p-1 text-white tool-tip "
|
|
423
|
-
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.ratingClass : stack1), depth0))
|
|
424
|
-
+ "\" title=\""
|
|
425
|
-
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.rating : depth0)) != null ? stack1.name : stack1), depth0))
|
|
426
|
-
+ "\">"
|
|
427
|
-
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.rating : depth0)) != null ? stack1.code : stack1), depth0))
|
|
428
|
-
+ "</span>\r\n </div>\r\n";
|
|
429
|
-
},"7":function(container,depth0,helpers,partials,data) {
|
|
430
|
-
var stack1, helper, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=container.hooks.helperMissing;
|
|
431
|
-
|
|
432
|
-
return " <div class=\"col-6 py-1 "
|
|
433
|
-
+ alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))
|
|
434
|
-
+ "\">"
|
|
435
|
-
+ alias2((helpers.lang||(depth0 && depth0.lang)||alias4).call(alias3,"productionYear",{"name":"lang","hash":{},"data":data}))
|
|
436
|
-
+ "</div>\r\n <p class=\"col-6 mb-0 py-1\">"
|
|
437
|
-
+ alias2(((helper = (helper = helpers.productionYear || (depth0 != null ? depth0.productionYear : depth0)) != null ? helper : alias4),(typeof helper === "function" ? helper.call(alias3,{"name":"productionYear","hash":{},"data":data}) : helper)))
|
|
438
|
-
+ "</p>\r\n";
|
|
439
|
-
},"9":function(container,depth0,helpers,partials,data) {
|
|
440
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {});
|
|
441
|
-
|
|
442
|
-
return " <div class=\"col-6 py-1 "
|
|
443
|
-
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))
|
|
444
|
-
+ "\">"
|
|
445
|
-
+ alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(alias4,"chapters",{"name":"lang","hash":{},"data":data}))
|
|
446
|
-
+ "</div>\r\n <a\r\n class=\"col-6 info-link mb-0 py-1 "
|
|
447
|
-
+ ((stack1 = helpers.unless.call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.externalLink : stack1),{"name":"unless","hash":{},"fn":container.program(10, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
448
|
-
+ "\"\r\n"
|
|
449
|
-
+ ((stack1 = helpers["if"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.externalLink : stack1),{"name":"if","hash":{},"fn":container.program(12, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
450
|
-
+ " >\r\n "
|
|
451
|
-
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.chapters : stack1), depth0))
|
|
452
|
-
+ "\r\n "
|
|
453
|
-
+ ((stack1 = helpers["if"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.externalLink : stack1),{"name":"if","hash":{},"fn":container.program(14, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
454
|
-
+ "\r\n </a>\r\n";
|
|
455
|
-
},"10":function(container,depth0,helpers,partials,data) {
|
|
456
|
-
return "applink-video-details";
|
|
457
|
-
},"12":function(container,depth0,helpers,partials,data) {
|
|
458
|
-
var stack1, alias1=container.propertyIsEnumerable;
|
|
459
|
-
|
|
460
|
-
return " href=\""
|
|
461
|
-
+ container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.externalLink : stack1), depth0))
|
|
462
|
-
+ "\"\r\n target=\"_blank\"\r\n";
|
|
463
|
-
},"14":function(container,depth0,helpers,partials,data) {
|
|
464
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda;
|
|
465
|
-
|
|
466
|
-
return "<div class=\"d-inline-block "
|
|
467
|
-
+ container.escapeExpression(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.smallSvgContainer : stack1), depth0))
|
|
468
|
-
+ "\">"
|
|
469
|
-
+ ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.openExternalSvg : stack1), depth0)) != null ? stack1 : "")
|
|
470
|
-
+ "</div>";
|
|
471
|
-
},"16":function(container,depth0,helpers,partials,data) {
|
|
472
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;
|
|
473
|
-
|
|
474
|
-
return " <div class=\"col-6 py-1 "
|
|
475
|
-
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))
|
|
476
|
-
+ "\">"
|
|
477
|
-
+ alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"interactives",{"name":"lang","hash":{},"data":data}))
|
|
478
|
-
+ "</div>\r\n <p class=\"col-6 mb-0 py-1\">"
|
|
479
|
-
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.interactives : stack1), depth0))
|
|
480
|
-
+ "</p>\r\n";
|
|
481
|
-
},"18":function(container,depth0,helpers,partials,data) {
|
|
482
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;
|
|
483
|
-
|
|
484
|
-
return " <div class=\"col-6 py-1 "
|
|
485
|
-
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))
|
|
486
|
-
+ "\">"
|
|
487
|
-
+ alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"subtitles",{"name":"lang","hash":{},"data":data}))
|
|
488
|
-
+ "</div>\r\n <p class=\"col-6 mb-0 py-1\">"
|
|
489
|
-
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.subtitles : stack1), depth0))
|
|
490
|
-
+ "</p>\r\n";
|
|
491
|
-
},"20":function(container,depth0,helpers,partials,data) {
|
|
492
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {});
|
|
493
|
-
|
|
494
|
-
return " <div class=\"col-6 py-1 "
|
|
495
|
-
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))
|
|
496
|
-
+ "\">"
|
|
497
|
-
+ alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(alias4,"resources",{"name":"lang","hash":{},"data":data}))
|
|
498
|
-
+ "</div>\r\n <a\r\n class=\"col-6 info-link mb-0 py-1 "
|
|
499
|
-
+ ((stack1 = helpers.unless.call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.externalLink : stack1),{"name":"unless","hash":{},"fn":container.program(10, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
500
|
-
+ "\"\r\n"
|
|
501
|
-
+ ((stack1 = helpers["if"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.externalLink : stack1),{"name":"if","hash":{},"fn":container.program(12, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
502
|
-
+ " >\r\n "
|
|
503
|
-
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.resources : stack1), depth0))
|
|
504
|
-
+ "\r\n "
|
|
505
|
-
+ ((stack1 = helpers["if"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.externalLink : stack1),{"name":"if","hash":{},"fn":container.program(14, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
506
|
-
+ "\r\n </a>\r\n";
|
|
507
|
-
},"22":function(container,depth0,helpers,partials,data) {
|
|
508
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {});
|
|
509
|
-
|
|
510
|
-
return " <div class=\"col-6 py-1 "
|
|
511
|
-
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))
|
|
512
|
-
+ "\">"
|
|
513
|
-
+ alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(alias4,"links",{"name":"lang","hash":{},"data":data}))
|
|
514
|
-
+ "</div>\r\n <a\r\n class=\"col-6 info-link mb-0 py-1 "
|
|
515
|
-
+ ((stack1 = helpers.unless.call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.externalLink : stack1),{"name":"unless","hash":{},"fn":container.program(10, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
516
|
-
+ "\"\r\n"
|
|
517
|
-
+ ((stack1 = helpers["if"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.externalLink : stack1),{"name":"if","hash":{},"fn":container.program(12, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
518
|
-
+ " >\r\n "
|
|
519
|
-
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.links : stack1), depth0))
|
|
520
|
-
+ "\r\n "
|
|
521
|
-
+ ((stack1 = helpers["if"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.externalLink : stack1),{"name":"if","hash":{},"fn":container.program(14, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
522
|
-
+ "\r\n </a>\r\n";
|
|
523
|
-
},"24":function(container,depth0,helpers,partials,data) {
|
|
524
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression;
|
|
525
|
-
|
|
526
|
-
return " <div class=\"py-1 "
|
|
527
|
-
+ alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))
|
|
528
|
-
+ "\">"
|
|
529
|
-
+ alias2((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"tags",{"name":"lang","hash":{},"data":data}))
|
|
530
|
-
+ "</div>\r\n <div class=\"tags-region\"></div>\r\n <div class=\"col-12\"> </div>\r\n";
|
|
531
|
-
},"26":function(container,depth0,helpers,partials,data) {
|
|
532
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;
|
|
533
|
-
|
|
534
|
-
return " <a href=\""
|
|
535
|
-
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.externalLink : stack1), depth0))
|
|
536
|
-
+ "\" target=\"_blank\" class=\"info-link d-inline-block pt-3 "
|
|
537
|
-
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))
|
|
538
|
-
+ "\">\r\n "
|
|
539
|
-
+ alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"goToVideo",{"name":"lang","hash":{},"data":data}))
|
|
540
|
-
+ "\r\n <div class=\"d-inline-block svg-container\">"
|
|
541
|
-
+ ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.openExternalSvg : stack1), depth0)) != null ? stack1 : "")
|
|
542
|
-
+ "</div>\r\n </a>\r\n";
|
|
543
|
-
},"28":function(container,depth0,helpers,partials,data) {
|
|
544
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression;
|
|
545
|
-
|
|
546
|
-
return " <a class=\"info-link applink-video-details d-inline-block pt-3 "
|
|
547
|
-
+ alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))
|
|
548
|
-
+ "\">"
|
|
549
|
-
+ alias2((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"viewFullDetails",{"name":"lang","hash":{},"data":data}))
|
|
550
|
-
+ "</a>\r\n";
|
|
551
|
-
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
552
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {}), alias5=container.hooks.helperMissing;
|
|
553
|
-
|
|
554
|
-
return "<div class=\"content-container-region row w-100 pl-0\">\r\n <div class=\"col-8 border-right pt-3\">\r\n <p class=\"text-uppercase text-muted "
|
|
555
|
-
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))
|
|
556
|
-
+ "\">"
|
|
557
|
-
+ alias3((helpers.lang||(depth0 && depth0.lang)||alias5).call(alias4,"description",{"name":"lang","hash":{},"data":data}))
|
|
558
|
-
+ "</p>\r\n \r\n"
|
|
559
|
-
+ ((stack1 = helpers.unless.call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.description : stack1),{"name":"unless","hash":{},"fn":container.program(1, data, 0),"inverse":container.program(3, data, 0),"data":data})) != null ? stack1 : "")
|
|
560
|
-
+ " \r\n <div class=\"video-preview-region col-7 my-3 pl-0\"></div>\r\n </div>\r\n <div class=\"col-4 my-3 pr-0 pl-3\">\r\n <p class=\"text-uppercase text-muted "
|
|
561
|
-
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))
|
|
562
|
-
+ "\">"
|
|
563
|
-
+ alias3((helpers.lang||(depth0 && depth0.lang)||alias5).call(alias4,"details",{"name":"lang","hash":{},"data":data}))
|
|
564
|
-
+ "</p>\r\n\r\n <div class=\"row\">\r\n"
|
|
565
|
-
+ ((stack1 = helpers["if"].call(alias4,((stack1 = (depth0 != null ? depth0.rating : depth0)) != null ? stack1.code : stack1),{"name":"if","hash":{},"fn":container.program(5, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
566
|
-
+ "\r\n"
|
|
567
|
-
+ ((stack1 = helpers["if"].call(alias4,(depth0 != null ? depth0.productionYear : depth0),{"name":"if","hash":{},"fn":container.program(7, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
568
|
-
+ "\r\n <div class=\"col-6 py-1 "
|
|
569
|
-
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))
|
|
570
|
-
+ "\">"
|
|
571
|
-
+ alias3((helpers.lang||(depth0 && depth0.lang)||alias5).call(alias4,"duration",{"name":"lang","hash":{},"data":data}))
|
|
572
|
-
+ "</div>\r\n <p class=\"col-6 mb-0 py-1\">"
|
|
573
|
-
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.duration : stack1), depth0))
|
|
574
|
-
+ "</p>\r\n\r\n"
|
|
575
|
-
+ ((stack1 = helpers["if"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.chapters : stack1),{"name":"if","hash":{},"fn":container.program(9, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
576
|
-
+ "\r\n"
|
|
577
|
-
+ ((stack1 = helpers["if"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.interactives : stack1),{"name":"if","hash":{},"fn":container.program(16, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
578
|
-
+ "\r\n"
|
|
579
|
-
+ ((stack1 = helpers["if"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.subtitles : stack1),{"name":"if","hash":{},"fn":container.program(18, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
580
|
-
+ "\r\n"
|
|
581
|
-
+ ((stack1 = helpers["if"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.resources : stack1),{"name":"if","hash":{},"fn":container.program(20, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
582
|
-
+ "\r\n"
|
|
583
|
-
+ ((stack1 = helpers["if"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.links : stack1),{"name":"if","hash":{},"fn":container.program(22, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
584
|
-
+ " </div>\r\n\r\n"
|
|
585
|
-
+ ((stack1 = helpers["if"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.showTags : stack1),{"name":"if","hash":{},"fn":container.program(24, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
586
|
-
+ "\r\n"
|
|
587
|
-
+ ((stack1 = helpers["if"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.externalLink : stack1),{"name":"if","hash":{},"fn":container.program(26, data, 0),"inverse":container.program(28, data, 0),"data":data})) != null ? stack1 : "")
|
|
588
|
-
+ " </div>\r\n</div>";
|
|
589
|
-
},"useData":true});
|
|
590
|
-
|
|
591
|
-
/***/ }),
|
|
592
|
-
|
|
593
|
-
/***/ "./src/shared/components/video-item-preview/VideoItemPreviewComponent.ts":
|
|
594
|
-
/*!*******************************************************************************!*\
|
|
595
|
-
!*** ./src/shared/components/video-item-preview/VideoItemPreviewComponent.ts ***!
|
|
596
|
-
\*******************************************************************************/
|
|
597
|
-
/*! exports provided: VideoItemPreviewComponent */
|
|
598
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
599
|
-
|
|
600
|
-
"use strict";
|
|
601
|
-
__webpack_require__.r(__webpack_exports__);
|
|
602
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VideoItemPreviewComponent", function() { return VideoItemPreviewComponent; });
|
|
603
|
-
/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! underscore */ "underscore");
|
|
604
|
-
/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(underscore__WEBPACK_IMPORTED_MODULE_0__);
|
|
605
|
-
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! backbone */ "backbone");
|
|
606
|
-
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(backbone__WEBPACK_IMPORTED_MODULE_1__);
|
|
607
|
-
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
608
|
-
/* harmony import */ var _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../libs/analytics/src/interfaces */ "../../libs/analytics/src/interfaces/index.ts");
|
|
609
|
-
/* harmony import */ var _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../libs/shared/src/utils/SvgHelper */ "../../libs/shared/src/utils/SvgHelper.ts");
|
|
610
|
-
/* harmony import */ var _libs_shared_src_legacy_behaviors_tooltip_TooltipBehavior__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../libs/shared/src/legacy/behaviors/tooltip/TooltipBehavior */ "../../libs/shared/src/legacy/behaviors/tooltip/TooltipBehavior.ts");
|
|
611
|
-
/* harmony import */ var _video_description_VideoDescriptionComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../video-description/VideoDescriptionComponent */ "./src/shared/components/video-description/VideoDescriptionComponent.ts");
|
|
612
|
-
/* harmony import */ var _video_preview_VideoPreviewComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../video-preview/VideoPreviewComponent */ "./src/shared/components/video-preview/VideoPreviewComponent.ts");
|
|
613
|
-
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../utils */ "./src/shared/utils/index.ts");
|
|
614
|
-
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../constants */ "./src/shared/constants/index.ts");
|
|
615
|
-
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../enums */ "./src/shared/enums/index.ts");
|
|
616
|
-
/* harmony import */ var _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../../../libs/common/src/backbone/services/LanguageService */ "../../libs/common/src/backbone/services/LanguageService.tsx");
|
|
617
|
-
/* harmony import */ var _apps_library_editor_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../apps/library-editor/utils */ "./src/apps/library-editor/utils/index.ts");
|
|
618
|
-
/* harmony import */ var _apps_library_editor_components_expandable_tag_list_ExpandableTagListComponent__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../apps/library-editor/components/expandable-tag-list/ExpandableTagListComponent */ "./src/apps/library-editor/components/expandable-tag-list/ExpandableTagListComponent.ts");
|
|
619
|
-
/* harmony import */ var _VideoItemPreview_handlebars__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./VideoItemPreview.handlebars */ "./src/shared/components/video-item-preview/VideoItemPreview.handlebars");
|
|
620
|
-
/* harmony import */ var _VideoItemPreview_handlebars__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_VideoItemPreview_handlebars__WEBPACK_IMPORTED_MODULE_14__);
|
|
621
|
-
/* harmony import */ var _video_item_preview_scss__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./video-item-preview.scss */ "./src/shared/components/video-item-preview/video-item-preview.scss");
|
|
622
|
-
/* harmony import */ var _video_item_preview_scss__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_video_item_preview_scss__WEBPACK_IMPORTED_MODULE_15__);
|
|
623
|
-
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); }
|
|
624
|
-
|
|
625
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
626
|
-
|
|
627
|
-
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); } }
|
|
628
|
-
|
|
629
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
630
|
-
|
|
631
|
-
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); }
|
|
632
|
-
|
|
633
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
634
|
-
|
|
635
|
-
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); }; }
|
|
636
|
-
|
|
637
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
638
|
-
|
|
639
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
640
|
-
|
|
641
|
-
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; } }
|
|
642
|
-
|
|
643
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
var VideoItemPreviewComponent = /*#__PURE__*/function (_Core$Component) {
|
|
662
|
-
_inherits(VideoItemPreviewComponent, _Core$Component);
|
|
663
|
-
|
|
664
|
-
var _super = _createSuper(VideoItemPreviewComponent);
|
|
665
|
-
|
|
666
|
-
function VideoItemPreviewComponent(options) {
|
|
667
|
-
_classCallCheck(this, VideoItemPreviewComponent);
|
|
668
|
-
|
|
669
|
-
return _super.call(this, options);
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
_createClass(VideoItemPreviewComponent, [{
|
|
673
|
-
key: "initialize",
|
|
674
|
-
value: function initialize() {
|
|
675
|
-
this.listenTo(this.model, 'change', this.render);
|
|
676
|
-
this.listenTo(this.channelName, 'show:more:tags', this.onClickShowMoreTags);
|
|
677
|
-
}
|
|
678
|
-
}, {
|
|
679
|
-
key: "regions",
|
|
680
|
-
value: function regions() {
|
|
681
|
-
return {
|
|
682
|
-
partialLoadingContainer: {
|
|
683
|
-
el: '.content-container-region',
|
|
684
|
-
replaceElement: false,
|
|
685
|
-
partialLoading: _enums__WEBPACK_IMPORTED_MODULE_10__["PartialLoading"].VideoItemPreview
|
|
686
|
-
},
|
|
687
|
-
description: '.description-region',
|
|
688
|
-
preview: '.video-preview-region',
|
|
689
|
-
tags: {
|
|
690
|
-
replaceElement: true,
|
|
691
|
-
el: '.tags-region'
|
|
692
|
-
}
|
|
693
|
-
};
|
|
694
|
-
}
|
|
695
|
-
}, {
|
|
696
|
-
key: "events",
|
|
697
|
-
value: function events() {
|
|
698
|
-
return {
|
|
699
|
-
click: 'onClick'
|
|
700
|
-
};
|
|
701
|
-
}
|
|
702
|
-
}, {
|
|
703
|
-
key: "onClick",
|
|
704
|
-
value: function onClick(e) {
|
|
705
|
-
e.stopPropagation();
|
|
706
|
-
}
|
|
707
|
-
}, {
|
|
708
|
-
key: "onClickShowMoreTags",
|
|
709
|
-
value: function onClickShowMoreTags() {
|
|
710
|
-
backbone__WEBPACK_IMPORTED_MODULE_1__["Radio"].channel(this.options.channelName).trigger('resize:preview');
|
|
711
|
-
}
|
|
712
|
-
}, {
|
|
713
|
-
key: "showTags",
|
|
714
|
-
value: function showTags() {
|
|
715
|
-
return !!(this.model.tags && this.model.tags.length);
|
|
716
|
-
}
|
|
717
|
-
}, {
|
|
718
|
-
key: "renderDescription",
|
|
719
|
-
value: function renderDescription() {
|
|
720
|
-
if (!(this.model && this.model.get('description'))) return;
|
|
721
|
-
var view = new _video_description_VideoDescriptionComponent__WEBPACK_IMPORTED_MODULE_6__["VideoDescriptionComponent"]({
|
|
722
|
-
model: this.model,
|
|
723
|
-
highlighter: true,
|
|
724
|
-
size: _video_description_VideoDescriptionComponent__WEBPACK_IMPORTED_MODULE_6__["VideoDescriptionTruncationSize"].Small,
|
|
725
|
-
truncate: true
|
|
726
|
-
});
|
|
727
|
-
this.showChildView('description', view);
|
|
728
|
-
}
|
|
729
|
-
}, {
|
|
730
|
-
key: "renderTags",
|
|
731
|
-
value: function renderTags() {
|
|
732
|
-
if (!this.showTags()) return;
|
|
733
|
-
var view = new _apps_library_editor_components_expandable_tag_list_ExpandableTagListComponent__WEBPACK_IMPORTED_MODULE_13__["ExpandableTagListComponent"]({
|
|
734
|
-
collection: this.model.tags,
|
|
735
|
-
videoId: this.model.id && this.model.get('id'),
|
|
736
|
-
channelName: this.channelName
|
|
737
|
-
});
|
|
738
|
-
this.showChildView('tags', view);
|
|
739
|
-
}
|
|
740
|
-
}, {
|
|
741
|
-
key: "renderVideoPreview",
|
|
742
|
-
value: function renderVideoPreview() {
|
|
743
|
-
var view = new _video_preview_VideoPreviewComponent__WEBPACK_IMPORTED_MODULE_7__["VideoPreviewComponent"]({
|
|
744
|
-
model: this.model,
|
|
745
|
-
webPlayerUrl: this.options.webPlayerUrl,
|
|
746
|
-
analyticsOptions: {
|
|
747
|
-
location: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_3__["LocationContext"].VideoItemPreview
|
|
748
|
-
}
|
|
749
|
-
});
|
|
750
|
-
this.showChildView('preview', view);
|
|
751
|
-
}
|
|
752
|
-
}, {
|
|
753
|
-
key: "getSubtitleLanguage",
|
|
754
|
-
value: function getSubtitleLanguage() {
|
|
755
|
-
if (!(this.model.subtitles && this.model.get('subtitles').length)) return '';
|
|
756
|
-
|
|
757
|
-
var languageCodes = underscore__WEBPACK_IMPORTED_MODULE_0__["uniq"](this.model.get('subtitles').map(function (subtitle) {
|
|
758
|
-
return subtitle.get('language');
|
|
759
|
-
}));
|
|
760
|
-
|
|
761
|
-
return underscore__WEBPACK_IMPORTED_MODULE_0__["map"](languageCodes, function (language) {
|
|
762
|
-
return CVLanguages.getFullEnglishName(language);
|
|
763
|
-
}).join(', ');
|
|
764
|
-
}
|
|
765
|
-
}, {
|
|
766
|
-
key: "getDetails",
|
|
767
|
-
value: function getDetails(item) {
|
|
768
|
-
if (!(this.model[item] && this.model.get(item).length)) return '';
|
|
769
|
-
var items = this.model.get(item).length;
|
|
770
|
-
return items > 1 ? "".concat(items, " ").concat(item) : "".concat(_libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_11__["LanguageService"].getPhrase(this.lang, 'one'), " ").concat(item.slice(0, -1));
|
|
771
|
-
}
|
|
772
|
-
}, {
|
|
773
|
-
key: "onBeforeRender",
|
|
774
|
-
value: function onBeforeRender() {
|
|
775
|
-
if (this.model && this.model.get('dataFetched')) return true;
|
|
776
|
-
backbone__WEBPACK_IMPORTED_MODULE_1__["Radio"].channel(this.options.collectionViewChannel).trigger('fetch:video:with:metadata', this.options.videoId);
|
|
777
|
-
if (!this.model || !this.model.get('dataFetched')) return false;
|
|
778
|
-
}
|
|
779
|
-
}, {
|
|
780
|
-
key: "viewOptions",
|
|
781
|
-
value: function viewOptions() {
|
|
782
|
-
if (!this.model || !this.model.get('dataFetched')) return;
|
|
783
|
-
var duration = this.model.get('duration');
|
|
784
|
-
return {
|
|
785
|
-
styles: _video_item_preview_scss__WEBPACK_IMPORTED_MODULE_15___default.a,
|
|
786
|
-
ratingClass: this.model.rating && _apps_library_editor_utils__WEBPACK_IMPORTED_MODULE_12__["VideoDetailsHelper"].mapRatingToClass(this.model.rating.get('value')),
|
|
787
|
-
showTags: this.showTags(),
|
|
788
|
-
description: this.model.get('description'),
|
|
789
|
-
duration: duration && _utils__WEBPACK_IMPORTED_MODULE_8__["DurationHelper"].ToDisplayDuration(duration),
|
|
790
|
-
chapters: this.getDetails('chapters'),
|
|
791
|
-
interactives: this.model.interactives && this.model.get('interactives').length,
|
|
792
|
-
subtitles: this.getSubtitleLanguage(),
|
|
793
|
-
resources: this.getDetails('resources'),
|
|
794
|
-
links: this.getDetails('links'),
|
|
795
|
-
externalLink: this.options.externalLink,
|
|
796
|
-
openExternalSvg: _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_4__["SvgHelper"].getSvg(_libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_4__["cvSvgLibrary"].NewWindow)
|
|
797
|
-
};
|
|
798
|
-
}
|
|
799
|
-
}, {
|
|
800
|
-
key: "onRender",
|
|
801
|
-
value: function onRender() {
|
|
802
|
-
this.renderDescription();
|
|
803
|
-
this.renderTags();
|
|
804
|
-
this.renderVideoPreview();
|
|
805
|
-
}
|
|
806
|
-
}, {
|
|
807
|
-
key: "name",
|
|
808
|
-
get: function get() {
|
|
809
|
-
return 'VideoItemPreviewComponent';
|
|
810
|
-
}
|
|
811
|
-
}, {
|
|
812
|
-
key: "template",
|
|
813
|
-
get: function get() {
|
|
814
|
-
return _VideoItemPreview_handlebars__WEBPACK_IMPORTED_MODULE_14___default.a;
|
|
815
|
-
}
|
|
816
|
-
}, {
|
|
817
|
-
key: "lang",
|
|
818
|
-
get: function get() {
|
|
819
|
-
return 'shared.videoItemPreview';
|
|
820
|
-
}
|
|
821
|
-
}, {
|
|
822
|
-
key: "className",
|
|
823
|
-
get: function get() {
|
|
824
|
-
return 'row border-top px-3 m-0';
|
|
825
|
-
}
|
|
826
|
-
}, {
|
|
827
|
-
key: "channelName",
|
|
828
|
-
get: function get() {
|
|
829
|
-
return "".concat(this.name).concat(this.cid);
|
|
830
|
-
}
|
|
831
|
-
}, {
|
|
832
|
-
key: "appLinks",
|
|
833
|
-
get: function get() {
|
|
834
|
-
return {
|
|
835
|
-
'.applink-video-details': {
|
|
836
|
-
application: _constants__WEBPACK_IMPORTED_MODULE_9__["AppChannels"].LIBRARY_EDITOR,
|
|
837
|
-
action: _constants__WEBPACK_IMPORTED_MODULE_9__["Actions"].LibraryEditor.VIDEO_DETAILS,
|
|
838
|
-
args: [this.model.get('id')]
|
|
839
|
-
}
|
|
840
|
-
};
|
|
841
|
-
}
|
|
842
|
-
}, {
|
|
843
|
-
key: "behaviors",
|
|
844
|
-
get: function get() {
|
|
845
|
-
return [{
|
|
846
|
-
behaviorClass: _libs_shared_src_legacy_behaviors_tooltip_TooltipBehavior__WEBPACK_IMPORTED_MODULE_5__["TooltipBehavior"],
|
|
847
|
-
selector: '.tool-tip'
|
|
848
|
-
}];
|
|
849
|
-
}
|
|
850
|
-
}]);
|
|
851
|
-
|
|
852
|
-
return VideoItemPreviewComponent;
|
|
853
|
-
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__["Core"].Component);
|
|
854
|
-
|
|
855
|
-
/***/ }),
|
|
856
|
-
|
|
857
|
-
/***/ "./src/shared/components/video-item-preview/video-item-preview.scss":
|
|
858
|
-
/*!**************************************************************************!*\
|
|
859
|
-
!*** ./src/shared/components/video-item-preview/video-item-preview.scss ***!
|
|
860
|
-
\**************************************************************************/
|
|
861
|
-
/*! no static exports found */
|
|
862
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
863
|
-
|
|
864
|
-
// extracted by mini-css-extract-plugin
|
|
865
|
-
module.exports = {"columnNames":"cv--columnNames--QvhY0","smallSvgContainer":"cv--smallSvgContainer--2qax8"};
|
|
866
|
-
|
|
867
|
-
/***/ }),
|
|
868
|
-
|
|
869
|
-
/***/ "./src/shared/components/video-item/VideoItem.handlebars":
|
|
870
|
-
/*!***************************************************************!*\
|
|
871
|
-
!*** ./src/shared/components/video-item/VideoItem.handlebars ***!
|
|
872
|
-
\***************************************************************/
|
|
873
|
-
/*! no static exports found */
|
|
874
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
875
|
-
|
|
876
|
-
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
877
|
-
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
878
|
-
return " cursor-pointer";
|
|
879
|
-
},"3":function(container,depth0,helpers,partials,data) {
|
|
880
|
-
var stack1, alias1=container.propertyIsEnumerable;
|
|
881
|
-
|
|
882
|
-
return " <div class=\"bulk-checkbox-region "
|
|
883
|
-
+ ((stack1 = helpers["if"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.bulkPlaceholder : stack1),{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
884
|
-
+ "\"></div>\r\n";
|
|
885
|
-
},"4":function(container,depth0,helpers,partials,data) {
|
|
886
|
-
var stack1, alias1=container.propertyIsEnumerable;
|
|
887
|
-
|
|
888
|
-
return container.escapeExpression(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.bulkPlaceholder : stack1), depth0));
|
|
889
|
-
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
890
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {});
|
|
891
|
-
|
|
892
|
-
return "<div class=\"d-flex justify-content-between align-items-stretch p-3 drag-item "
|
|
893
|
-
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.videoItem : stack1), depth0))
|
|
894
|
-
+ ((stack1 = helpers["if"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.isClickable : stack1),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
895
|
-
+ "\">\r\n"
|
|
896
|
-
+ ((stack1 = helpers["if"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.allowBulk : stack1),{"name":"if","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
897
|
-
+ " <div class=\"thumbnail-region d-inline-block "
|
|
898
|
-
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.thumbnailContainer : stack1), depth0))
|
|
899
|
-
+ "\"></div>\r\n <div class=\"metadata-region d-inline-block px-3 "
|
|
900
|
-
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.metaContainer : stack1), depth0))
|
|
901
|
-
+ "\"></div>\r\n <div class=\"video-actions-region d-inline-block "
|
|
902
|
-
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.actionsContainer : stack1), depth0))
|
|
903
|
-
+ "\"></div>\r\n</div>\r\n<div class=\"video-info-region "
|
|
904
|
-
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.previewContainer : stack1), depth0))
|
|
905
|
-
+ "\"></div>";
|
|
906
|
-
},"useData":true});
|
|
907
|
-
|
|
908
|
-
/***/ }),
|
|
909
|
-
|
|
910
|
-
/***/ "./src/shared/components/video-item/VideoItemComponent.ts":
|
|
911
|
-
/*!****************************************************************!*\
|
|
912
|
-
!*** ./src/shared/components/video-item/VideoItemComponent.ts ***!
|
|
913
|
-
\****************************************************************/
|
|
914
|
-
/*! exports provided: VideoItemComponent */
|
|
915
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
916
|
-
|
|
917
|
-
"use strict";
|
|
918
|
-
__webpack_require__.r(__webpack_exports__);
|
|
919
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VideoItemComponent", function() { return VideoItemComponent; });
|
|
920
|
-
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! backbone */ "backbone");
|
|
921
|
-
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(backbone__WEBPACK_IMPORTED_MODULE_0__);
|
|
922
|
-
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
923
|
-
/* harmony import */ var _libs_common_src_backbone_services_ViewModelService__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../libs/common/src/backbone/services/ViewModelService */ "../../libs/common/src/backbone/services/ViewModelService.ts");
|
|
924
|
-
/* harmony import */ var _libs_common_src_backbone_constants_CommonChannels__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../libs/common/src/backbone/constants/CommonChannels */ "../../libs/common/src/backbone/constants/CommonChannels.ts");
|
|
925
|
-
/* harmony import */ var _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../libs/analytics/src/interfaces */ "../../libs/analytics/src/interfaces/index.ts");
|
|
926
|
-
/* harmony import */ var _libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../libs/analytics/src/AnalyticsHelper */ "../../libs/analytics/src/AnalyticsHelper.ts");
|
|
927
|
-
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../constants */ "./src/shared/constants/index.ts");
|
|
928
|
-
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../utils */ "./src/shared/utils/index.ts");
|
|
929
|
-
/* harmony import */ var _utils_VideoItemComponentHelper__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/VideoItemComponentHelper */ "./src/shared/components/video-item/utils/VideoItemComponentHelper.ts");
|
|
930
|
-
/* harmony import */ var _utils_VideoItemComponentTypes__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils/VideoItemComponentTypes */ "./src/shared/components/video-item/utils/VideoItemComponentTypes.ts");
|
|
931
|
-
/* harmony import */ var _VideoItem_handlebars__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./VideoItem.handlebars */ "./src/shared/components/video-item/VideoItem.handlebars");
|
|
932
|
-
/* harmony import */ var _VideoItem_handlebars__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_VideoItem_handlebars__WEBPACK_IMPORTED_MODULE_10__);
|
|
933
|
-
/* harmony import */ var _video_item_scss__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./video-item.scss */ "./src/shared/components/video-item/video-item.scss");
|
|
934
|
-
/* harmony import */ var _video_item_scss__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_video_item_scss__WEBPACK_IMPORTED_MODULE_11__);
|
|
935
|
-
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); }
|
|
936
|
-
|
|
937
|
-
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; }
|
|
938
|
-
|
|
939
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
940
|
-
|
|
941
|
-
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); } }
|
|
942
|
-
|
|
943
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
944
|
-
|
|
945
|
-
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); }
|
|
946
|
-
|
|
947
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
948
|
-
|
|
949
|
-
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); }; }
|
|
950
|
-
|
|
951
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
952
|
-
|
|
953
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
954
|
-
|
|
955
|
-
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; } }
|
|
956
|
-
|
|
957
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
var VideoItemComponent = /*#__PURE__*/function (_Core$Component) {
|
|
972
|
-
_inherits(VideoItemComponent, _Core$Component);
|
|
973
|
-
|
|
974
|
-
var _super = _createSuper(VideoItemComponent);
|
|
975
|
-
|
|
976
|
-
function VideoItemComponent(options) {
|
|
977
|
-
_classCallCheck(this, VideoItemComponent);
|
|
978
|
-
|
|
979
|
-
return _super.call(this, options);
|
|
980
|
-
}
|
|
981
|
-
|
|
982
|
-
_createClass(VideoItemComponent, [{
|
|
983
|
-
key: "initialize",
|
|
984
|
-
value: function initialize() {
|
|
985
|
-
this.initViewModel();
|
|
986
|
-
this.listenTo(this.channelName, 'thumbnail:load', this.onThumbnailLoad);
|
|
987
|
-
this.listenTo(this.channelName, 'click:show:preview', this.onClickTogglePreview);
|
|
988
|
-
this.listenTo(this.options.collectionViewChannel, 'close:preview', this.onCloseCollectionPreview);
|
|
989
|
-
}
|
|
990
|
-
}, {
|
|
991
|
-
key: "getTypeClassName",
|
|
992
|
-
value: function getTypeClassName() {
|
|
993
|
-
switch (this.options.componentType) {
|
|
994
|
-
case _utils_VideoItemComponentTypes__WEBPACK_IMPORTED_MODULE_9__["VideoItemComponentType"].ProcessingVideo:
|
|
995
|
-
return _video_item_scss__WEBPACK_IMPORTED_MODULE_11___default.a.processingVideo;
|
|
996
|
-
|
|
997
|
-
default:
|
|
998
|
-
return '';
|
|
999
|
-
}
|
|
1000
|
-
}
|
|
1001
|
-
}, {
|
|
1002
|
-
key: "regions",
|
|
1003
|
-
value: function regions() {
|
|
1004
|
-
var _ref;
|
|
1005
|
-
|
|
1006
|
-
return _ref = {}, _defineProperty(_ref, _utils_VideoItemComponentTypes__WEBPACK_IMPORTED_MODULE_9__["VideoItemComponentRegion"].Checkbox, {
|
|
1007
|
-
replaceElement: true,
|
|
1008
|
-
el: '.bulk-checkbox-region'
|
|
1009
|
-
}), _defineProperty(_ref, _utils_VideoItemComponentTypes__WEBPACK_IMPORTED_MODULE_9__["VideoItemComponentRegion"].Thumbnail, '.thumbnail-region'), _defineProperty(_ref, _utils_VideoItemComponentTypes__WEBPACK_IMPORTED_MODULE_9__["VideoItemComponentRegion"].Metadata, '.metadata-region'), _defineProperty(_ref, _utils_VideoItemComponentTypes__WEBPACK_IMPORTED_MODULE_9__["VideoItemComponentRegion"].VideoActions, '.video-actions-region'), _defineProperty(_ref, _utils_VideoItemComponentTypes__WEBPACK_IMPORTED_MODULE_9__["VideoItemComponentRegion"].VideoInfo, '.video-info-region'), _ref;
|
|
1010
|
-
}
|
|
1011
|
-
}, {
|
|
1012
|
-
key: "events",
|
|
1013
|
-
value: function events() {
|
|
1014
|
-
return {
|
|
1015
|
-
click: 'onClick'
|
|
1016
|
-
};
|
|
1017
|
-
}
|
|
1018
|
-
}, {
|
|
1019
|
-
key: "initViewModel",
|
|
1020
|
-
value: function initViewModel() {
|
|
1021
|
-
this.viewModel = _libs_common_src_backbone_services_ViewModelService__WEBPACK_IMPORTED_MODULE_2__["ViewModelService"].get("".concat(this.name, ":").concat(this.model.get('id')), {
|
|
1022
|
-
previewOpen: false
|
|
1023
|
-
});
|
|
1024
|
-
}
|
|
1025
|
-
}, {
|
|
1026
|
-
key: "isClickable",
|
|
1027
|
-
value: function isClickable() {
|
|
1028
|
-
return this.options.componentType !== _utils_VideoItemComponentTypes__WEBPACK_IMPORTED_MODULE_9__["VideoItemComponentType"].ProcessingVideo;
|
|
1029
|
-
}
|
|
1030
|
-
}, {
|
|
1031
|
-
key: "onThumbnailLoad",
|
|
1032
|
-
value: function onThumbnailLoad() {
|
|
1033
|
-
this.thumbnailLoaded = true;
|
|
1034
|
-
}
|
|
1035
|
-
}, {
|
|
1036
|
-
key: "onClick",
|
|
1037
|
-
value: function onClick() {
|
|
1038
|
-
if (!this.isClickable()) return;
|
|
1039
|
-
this.onClickTogglePreview(false);
|
|
1040
|
-
}
|
|
1041
|
-
}, {
|
|
1042
|
-
key: "onClickTogglePreview",
|
|
1043
|
-
value: function onClickTogglePreview() {
|
|
1044
|
-
var buttonClicked = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
1045
|
-
backbone__WEBPACK_IMPORTED_MODULE_0__["Radio"].channel(this.options.collectionViewChannel).trigger('close:preview', this.cid);
|
|
1046
|
-
this.togglePreview(!this.viewModel.get('previewOpen'));
|
|
1047
|
-
this.logTogglePreviewAction(buttonClicked);
|
|
1048
|
-
}
|
|
1049
|
-
}, {
|
|
1050
|
-
key: "onNavigateAway",
|
|
1051
|
-
value: function onNavigateAway() {
|
|
1052
|
-
this.viewModel.set({
|
|
1053
|
-
previewOpen: false
|
|
1054
|
-
});
|
|
1055
|
-
}
|
|
1056
|
-
}, {
|
|
1057
|
-
key: "togglePreview",
|
|
1058
|
-
value: function togglePreview(previewOpen) {
|
|
1059
|
-
var _this = this;
|
|
1060
|
-
|
|
1061
|
-
this.viewModel.set({
|
|
1062
|
-
previewOpen: previewOpen
|
|
1063
|
-
});
|
|
1064
|
-
|
|
1065
|
-
if (previewOpen) {
|
|
1066
|
-
this.setPreviewHeight();
|
|
1067
|
-
/**
|
|
1068
|
-
* On navigate away, set the previewOpen state to false in the view model.
|
|
1069
|
-
*/
|
|
1070
|
-
|
|
1071
|
-
this.listenToOnce(_libs_common_src_backbone_constants_CommonChannels__WEBPACK_IMPORTED_MODULE_3__["CommonChannels"].SHELL, _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__["Core"].EventNames.ROUTE, this.onNavigateAway);
|
|
1072
|
-
this.render();
|
|
1073
|
-
return;
|
|
1074
|
-
}
|
|
1075
|
-
/**
|
|
1076
|
-
* The preview has been closed so we can stop listening to the navigate event.
|
|
1077
|
-
*/
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
this.stopListening(backbone__WEBPACK_IMPORTED_MODULE_0__["Radio"].channel(_libs_common_src_backbone_constants_CommonChannels__WEBPACK_IMPORTED_MODULE_3__["CommonChannels"].SHELL), _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__["Core"].EventNames.ROUTE);
|
|
1081
|
-
/**
|
|
1082
|
-
* Set preview container height to 0.
|
|
1083
|
-
*/
|
|
1084
|
-
|
|
1085
|
-
this.getUI('previewContainer').height(0);
|
|
1086
|
-
/**
|
|
1087
|
-
* Wrapping this.render in a setTimeout so that the preview
|
|
1088
|
-
* closing transition has time to animate.
|
|
1089
|
-
* This time corresponds to the transition time in video-item.scss
|
|
1090
|
-
*/
|
|
1091
|
-
|
|
1092
|
-
window.setTimeout(function () {
|
|
1093
|
-
return _this.render();
|
|
1094
|
-
}, 300);
|
|
1095
|
-
}
|
|
1096
|
-
}, {
|
|
1097
|
-
key: "setPreviewHeight",
|
|
1098
|
-
value: function setPreviewHeight() {
|
|
1099
|
-
var _this2 = this;
|
|
1100
|
-
|
|
1101
|
-
/**
|
|
1102
|
-
* We have to wait until the child view has been rendered into the
|
|
1103
|
-
* region to change the height otherwise the transition will be missed.
|
|
1104
|
-
*/
|
|
1105
|
-
this.listenToOnce(this.getRegion(_utils_VideoItemComponentTypes__WEBPACK_IMPORTED_MODULE_9__["VideoItemComponentRegion"].VideoInfo), 'show', function () {
|
|
1106
|
-
var view = _this2.getRegion(_utils_VideoItemComponentTypes__WEBPACK_IMPORTED_MODULE_9__["VideoItemComponentRegion"].VideoInfo).currentView;
|
|
1107
|
-
|
|
1108
|
-
_this2.listenTo(view, 'render', function () {
|
|
1109
|
-
_this2.getUI('previewContainer').height(view.$el.outerHeight());
|
|
1110
|
-
});
|
|
1111
|
-
/**
|
|
1112
|
-
* If the VideoItemPreview is resized, e.g. when expanding tags,
|
|
1113
|
-
* we need to resize the container el.
|
|
1114
|
-
*/
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
_this2.listenTo(_this2.channelName, 'resize:preview', function () {
|
|
1118
|
-
window.setTimeout(function () {
|
|
1119
|
-
return _this2.getUI('previewContainer').height(view.$el.outerHeight());
|
|
1120
|
-
}, 0);
|
|
1121
|
-
});
|
|
1122
|
-
|
|
1123
|
-
if (view.isRendered()) _this2.getUI('previewContainer').height(view.$el.outerHeight());
|
|
1124
|
-
});
|
|
1125
|
-
}
|
|
1126
|
-
}, {
|
|
1127
|
-
key: "onCloseCollectionPreview",
|
|
1128
|
-
value: function onCloseCollectionPreview(cid) {
|
|
1129
|
-
if (this.cid === cid || !this.viewModel.get('previewOpen')) return;
|
|
1130
|
-
this.togglePreview(false);
|
|
1131
|
-
}
|
|
1132
|
-
}, {
|
|
1133
|
-
key: "shouldLazyLoadThumbnail",
|
|
1134
|
-
value: function shouldLazyLoadThumbnail() {
|
|
1135
|
-
if (!_utils__WEBPACK_IMPORTED_MODULE_7__["LazyLoadHelper"].isLazyLoadSupported(_constants__WEBPACK_IMPORTED_MODULE_6__["LazyLoadMinBrowserSupportVersion"])) return false;
|
|
1136
|
-
return !this.thumbnailLoaded;
|
|
1137
|
-
}
|
|
1138
|
-
}, {
|
|
1139
|
-
key: "logTogglePreviewAction",
|
|
1140
|
-
value: function logTogglePreviewAction(buttonClicked) {
|
|
1141
|
-
var analyticsOptions = _libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_5__["AnalyticsHelper"].mergeOptions(this.options.analyticsOptions, {
|
|
1142
|
-
actionType: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_4__["UserAction"].Click,
|
|
1143
|
-
descriptor: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_4__["ClickDescriptor"].TogglePreview,
|
|
1144
|
-
workflowPhase: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_4__["WorkflowPhase"].Complete
|
|
1145
|
-
});
|
|
1146
|
-
var data = {
|
|
1147
|
-
buttonClicked: buttonClicked,
|
|
1148
|
-
show: this.viewModel.get('previewOpen')
|
|
1149
|
-
};
|
|
1150
|
-
_libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_5__["AnalyticsHelper"].logUserAction(data, analyticsOptions);
|
|
1151
|
-
}
|
|
1152
|
-
}, {
|
|
1153
|
-
key: "viewOptions",
|
|
1154
|
-
value: function viewOptions() {
|
|
1155
|
-
return {
|
|
1156
|
-
styles: _video_item_scss__WEBPACK_IMPORTED_MODULE_11___default.a,
|
|
1157
|
-
allowBulk: this.options.allowBulk,
|
|
1158
|
-
bulkPlaceholder: this.options.componentType === _utils_VideoItemComponentTypes__WEBPACK_IMPORTED_MODULE_9__["VideoItemComponentType"].ProcessingVideo && this.options.allowBulk,
|
|
1159
|
-
isClickable: this.isClickable()
|
|
1160
|
-
};
|
|
1161
|
-
}
|
|
1162
|
-
}, {
|
|
1163
|
-
key: "onRender",
|
|
1164
|
-
value: function onRender() {
|
|
1165
|
-
_utils_VideoItemComponentHelper__WEBPACK_IMPORTED_MODULE_8__["VideoItemComponentHelper"].renderRegions(this, this.options.componentType);
|
|
1166
|
-
}
|
|
1167
|
-
}, {
|
|
1168
|
-
key: "onAttach",
|
|
1169
|
-
value: function onAttach() {
|
|
1170
|
-
/**
|
|
1171
|
-
* If the video collection in which this component exists
|
|
1172
|
-
* is refreshed while the preview is open, re-open it
|
|
1173
|
-
* on re-render.
|
|
1174
|
-
*/
|
|
1175
|
-
if (this.viewModel.get('previewOpen')) this.togglePreview(true);
|
|
1176
|
-
}
|
|
1177
|
-
}, {
|
|
1178
|
-
key: "name",
|
|
1179
|
-
get: function get() {
|
|
1180
|
-
return 'VideoItemComponent';
|
|
1181
|
-
}
|
|
1182
|
-
}, {
|
|
1183
|
-
key: "defaults",
|
|
1184
|
-
get: function get() {
|
|
1185
|
-
return {
|
|
1186
|
-
componentType: _utils_VideoItemComponentTypes__WEBPACK_IMPORTED_MODULE_9__["VideoItemComponentType"].Base,
|
|
1187
|
-
allowBulk: false
|
|
1188
|
-
};
|
|
1189
|
-
}
|
|
1190
|
-
}, {
|
|
1191
|
-
key: "behaviors",
|
|
1192
|
-
get: function get() {
|
|
1193
|
-
return _utils_VideoItemComponentHelper__WEBPACK_IMPORTED_MODULE_8__["VideoItemComponentHelper"].getBehaviors(this, this.options.componentType);
|
|
1194
|
-
}
|
|
1195
|
-
}, {
|
|
1196
|
-
key: "template",
|
|
1197
|
-
get: function get() {
|
|
1198
|
-
return _VideoItem_handlebars__WEBPACK_IMPORTED_MODULE_10___default.a;
|
|
1199
|
-
}
|
|
1200
|
-
}, {
|
|
1201
|
-
key: "channelName",
|
|
1202
|
-
get: function get() {
|
|
1203
|
-
return _utils__WEBPACK_IMPORTED_MODULE_7__["RadioChannelHelper"].generateUniqueChannelName(this);
|
|
1204
|
-
}
|
|
1205
|
-
}, {
|
|
1206
|
-
key: "className",
|
|
1207
|
-
get: function get() {
|
|
1208
|
-
var className = 'border-bottom';
|
|
1209
|
-
if (this.options.allowBulk) className += " ".concat(_video_item_scss__WEBPACK_IMPORTED_MODULE_11___default.a.allowBulk);
|
|
1210
|
-
if (this.options.componentType) className += " ".concat(this.getTypeClassName());
|
|
1211
|
-
return className;
|
|
1212
|
-
}
|
|
1213
|
-
}, {
|
|
1214
|
-
key: "props",
|
|
1215
|
-
get: function get() {
|
|
1216
|
-
return ['collectionIdentifier'];
|
|
1217
|
-
}
|
|
1218
|
-
}, {
|
|
1219
|
-
key: "elements",
|
|
1220
|
-
get: function get() {
|
|
1221
|
-
return {
|
|
1222
|
-
'drag-selector': '.drag-item',
|
|
1223
|
-
'previewContainer': ".".concat(_video_item_scss__WEBPACK_IMPORTED_MODULE_11___default.a.previewContainer)
|
|
1224
|
-
};
|
|
1225
|
-
}
|
|
1226
|
-
}]);
|
|
1227
|
-
|
|
1228
|
-
return VideoItemComponent;
|
|
1229
|
-
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__["Core"].Component);
|
|
1230
|
-
|
|
1231
|
-
/***/ }),
|
|
1232
|
-
|
|
1233
|
-
/***/ "./src/shared/components/video-item/utils/VideoItemBehaviors.ts":
|
|
1234
|
-
/*!**********************************************************************!*\
|
|
1235
|
-
!*** ./src/shared/components/video-item/utils/VideoItemBehaviors.ts ***!
|
|
1236
|
-
\**********************************************************************/
|
|
1237
|
-
/*! exports provided: VideoItemBehaviors */
|
|
1238
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1239
|
-
|
|
1240
|
-
"use strict";
|
|
1241
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1242
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VideoItemBehaviors", function() { return VideoItemBehaviors; });
|
|
1243
|
-
/* harmony import */ var _VideoItemComponentTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VideoItemComponentTypes */ "./src/shared/components/video-item/utils/VideoItemComponentTypes.ts");
|
|
1244
|
-
/* harmony import */ var _apps_library_editor_behaviors_draggable_video_DraggableVideoBehavior__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../apps/library-editor/behaviors/draggable-video/DraggableVideoBehavior */ "./src/apps/library-editor/behaviors/draggable-video/DraggableVideoBehavior.ts");
|
|
1245
|
-
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; }
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
var draggable = function draggable(self) {
|
|
1251
|
-
return [{
|
|
1252
|
-
behaviorClass: _apps_library_editor_behaviors_draggable_video_DraggableVideoBehavior__WEBPACK_IMPORTED_MODULE_1__["DraggableVideoBehavior"],
|
|
1253
|
-
collectionIdentifier: self.options.collectionIdentifier,
|
|
1254
|
-
model: self.options.model,
|
|
1255
|
-
selector: 'drag-selector'
|
|
1256
|
-
}];
|
|
1257
|
-
};
|
|
1258
|
-
|
|
1259
|
-
var VideoItemBehaviors = _defineProperty({}, _VideoItemComponentTypes__WEBPACK_IMPORTED_MODULE_0__["VideoItemComponentType"].Draggable, draggable);
|
|
1260
|
-
|
|
1261
|
-
/***/ }),
|
|
1262
|
-
|
|
1263
|
-
/***/ "./src/shared/components/video-item/utils/VideoItemComponentHelper.ts":
|
|
1264
|
-
/*!****************************************************************************!*\
|
|
1265
|
-
!*** ./src/shared/components/video-item/utils/VideoItemComponentHelper.ts ***!
|
|
1266
|
-
\****************************************************************************/
|
|
1267
|
-
/*! exports provided: VideoItemComponentHelper */
|
|
1268
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1269
|
-
|
|
1270
|
-
"use strict";
|
|
1271
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1272
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VideoItemComponentHelper", function() { return VideoItemComponentHelper; });
|
|
1273
|
-
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
1274
|
-
/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! underscore */ "underscore");
|
|
1275
|
-
/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(underscore__WEBPACK_IMPORTED_MODULE_1__);
|
|
1276
|
-
/* harmony import */ var _VideoItemComponentTypes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./VideoItemComponentTypes */ "./src/shared/components/video-item/utils/VideoItemComponentTypes.ts");
|
|
1277
|
-
/* harmony import */ var _VideoItemComponents__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./VideoItemComponents */ "./src/shared/components/video-item/utils/VideoItemComponents.ts");
|
|
1278
|
-
/* harmony import */ var _VideoItemBehaviors__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./VideoItemBehaviors */ "./src/shared/components/video-item/utils/VideoItemBehaviors.ts");
|
|
1279
|
-
/* harmony import */ var _libs_common_src_backbone_errors_DevError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/errors/DevError */ "../../libs/common/src/backbone/errors/DevError.ts");
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
var DEFAULT_TYPE = _VideoItemComponentTypes__WEBPACK_IMPORTED_MODULE_2__["VideoItemComponentType"].Base;
|
|
1287
|
-
var Components = _VideoItemComponents__WEBPACK_IMPORTED_MODULE_3__["VideoItemComponents"];
|
|
1288
|
-
var VideoItemComponentHelper = {
|
|
1289
|
-
renderRegions: function renderRegions(self, type) {
|
|
1290
|
-
underscore__WEBPACK_IMPORTED_MODULE_1__["each"](self.regions, function (value, key) {
|
|
1291
|
-
if (Helper.onBeforeRenderRegion(self, type, key)) Helper.renderRegion(self, type, key);
|
|
1292
|
-
});
|
|
1293
|
-
},
|
|
1294
|
-
onBeforeRenderRegion: function onBeforeRenderRegion(self, type, region) {
|
|
1295
|
-
var typeFns = Components.onBeforeRender[type];
|
|
1296
|
-
if (!typeFns) typeFns = Components.onBeforeRender[DEFAULT_TYPE];
|
|
1297
|
-
if (!typeFns) return true;
|
|
1298
|
-
var fn = typeFns[region];
|
|
1299
|
-
if (!fn) return true;
|
|
1300
|
-
return underscore__WEBPACK_IMPORTED_MODULE_1__["isFunction"](fn) ? fn(self) : true;
|
|
1301
|
-
},
|
|
1302
|
-
renderRegion: function renderRegion(self, type, region) {
|
|
1303
|
-
var component = Helper.getComponent(self, type, region);
|
|
1304
|
-
self.showChildView(region, component);
|
|
1305
|
-
},
|
|
1306
|
-
getComponent: function getComponent(self, type, region) {
|
|
1307
|
-
var typeOptions = Components.componentOptions[type];
|
|
1308
|
-
if (!typeOptions) _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].ErrorHelper.throw(new _libs_common_src_backbone_errors_DevError__WEBPACK_IMPORTED_MODULE_5__["DevError"]("Must define VideoItemComponent type options: ".concat(_VideoItemComponentTypes__WEBPACK_IMPORTED_MODULE_2__["VideoItemComponentType"][type], ".")));
|
|
1309
|
-
var regionFn = typeOptions[region];
|
|
1310
|
-
if (!regionFn) regionFn = Components.componentOptions[DEFAULT_TYPE][region];
|
|
1311
|
-
if (!regionFn) _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].ErrorHelper.throw(new _libs_common_src_backbone_errors_DevError__WEBPACK_IMPORTED_MODULE_5__["DevError"]("Must define VideoItemComponent region options: ".concat(region, ".")));
|
|
1312
|
-
var regionOptions = regionFn(self);
|
|
1313
|
-
if (!regionOptions.component) _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].ErrorHelper.throw(new _libs_common_src_backbone_errors_DevError__WEBPACK_IMPORTED_MODULE_5__["DevError"]("Must define component for region: ".concat(region, ",\n in VideoItemComponent type: ").concat(_VideoItemComponentTypes__WEBPACK_IMPORTED_MODULE_2__["VideoItemComponentType"][type], ".")));
|
|
1314
|
-
return new regionOptions.component(regionOptions.options || {});
|
|
1315
|
-
},
|
|
1316
|
-
getBehaviors: function getBehaviors(self, type) {
|
|
1317
|
-
if (_VideoItemBehaviors__WEBPACK_IMPORTED_MODULE_4__["VideoItemBehaviors"][type]) return _VideoItemBehaviors__WEBPACK_IMPORTED_MODULE_4__["VideoItemBehaviors"][type](self);
|
|
1318
|
-
return null;
|
|
1319
|
-
}
|
|
1320
|
-
};
|
|
1321
|
-
var Helper = VideoItemComponentHelper;
|
|
1322
|
-
|
|
1323
|
-
/***/ }),
|
|
1324
|
-
|
|
1325
|
-
/***/ "./src/shared/components/video-item/utils/VideoItemComponentTypes.ts":
|
|
1326
|
-
/*!***************************************************************************!*\
|
|
1327
|
-
!*** ./src/shared/components/video-item/utils/VideoItemComponentTypes.ts ***!
|
|
1328
|
-
\***************************************************************************/
|
|
1329
|
-
/*! exports provided: VideoItemComponentType, VideoItemComponentRegion */
|
|
1330
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1331
|
-
|
|
1332
|
-
"use strict";
|
|
1333
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1334
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VideoItemComponentType", function() { return VideoItemComponentType; });
|
|
1335
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VideoItemComponentRegion", function() { return VideoItemComponentRegion; });
|
|
1336
|
-
var VideoItemComponentType;
|
|
1337
|
-
|
|
1338
|
-
(function (VideoItemComponentType) {
|
|
1339
|
-
VideoItemComponentType[VideoItemComponentType["Base"] = 0] = "Base";
|
|
1340
|
-
VideoItemComponentType[VideoItemComponentType["AwaitingReview"] = 1] = "AwaitingReview";
|
|
1341
|
-
VideoItemComponentType[VideoItemComponentType["PastReleases"] = 2] = "PastReleases";
|
|
1342
|
-
VideoItemComponentType[VideoItemComponentType["VideoAccess"] = 3] = "VideoAccess";
|
|
1343
|
-
VideoItemComponentType[VideoItemComponentType["ProcessingVideo"] = 4] = "ProcessingVideo";
|
|
1344
|
-
VideoItemComponentType[VideoItemComponentType["Draggable"] = 5] = "Draggable";
|
|
1345
|
-
VideoItemComponentType[VideoItemComponentType["Search"] = 6] = "Search";
|
|
1346
|
-
})(VideoItemComponentType || (VideoItemComponentType = {}));
|
|
1347
|
-
|
|
1348
|
-
var VideoItemComponentRegion;
|
|
1349
|
-
|
|
1350
|
-
(function (VideoItemComponentRegion) {
|
|
1351
|
-
VideoItemComponentRegion["Checkbox"] = "checkbox";
|
|
1352
|
-
VideoItemComponentRegion["Thumbnail"] = "thumbnail";
|
|
1353
|
-
VideoItemComponentRegion["Metadata"] = "metadata";
|
|
1354
|
-
VideoItemComponentRegion["VideoActions"] = "videoActions";
|
|
1355
|
-
VideoItemComponentRegion["VideoInfo"] = "videoInfo";
|
|
1356
|
-
})(VideoItemComponentRegion || (VideoItemComponentRegion = {}));
|
|
1357
|
-
|
|
1358
|
-
/***/ }),
|
|
1359
|
-
|
|
1360
|
-
/***/ "./src/shared/components/video-item/utils/VideoItemComponents.ts":
|
|
1361
|
-
/*!***********************************************************************!*\
|
|
1362
|
-
!*** ./src/shared/components/video-item/utils/VideoItemComponents.ts ***!
|
|
1363
|
-
\***********************************************************************/
|
|
1364
|
-
/*! exports provided: VideoItemComponents */
|
|
1365
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1366
|
-
|
|
1367
|
-
"use strict";
|
|
1368
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1369
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VideoItemComponents", function() { return VideoItemComponents; });
|
|
1370
|
-
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../constants */ "./src/shared/constants/index.ts");
|
|
1371
|
-
/* harmony import */ var _libs_common_src_backbone_utils_UrlHelper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/utils/UrlHelper */ "../../libs/common/src/backbone/utils/UrlHelper.ts");
|
|
1372
|
-
/* harmony import */ var _libs_shared_src_legacy_components_thumbnail_ThumbnailComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../../libs/shared/src/legacy/components/thumbnail/ThumbnailComponent */ "../../libs/shared/src/legacy/components/thumbnail/ThumbnailComponent.ts");
|
|
1373
|
-
/* harmony import */ var _libs_shared_src_enums_Images__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../libs/shared/src/enums/Images */ "../../libs/shared/src/enums/Images.ts");
|
|
1374
|
-
/* harmony import */ var _checkbox_CheckboxComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../checkbox/CheckboxComponent */ "./src/shared/components/checkbox/CheckboxComponent.ts");
|
|
1375
|
-
/* harmony import */ var _video_item_metadata_base_VideoItemMetadataComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../video-item-metadata/base/VideoItemMetadataComponent */ "./src/shared/components/video-item/video-item-metadata/base/VideoItemMetadataComponent.ts");
|
|
1376
|
-
/* harmony import */ var _video_item_metadata_video_item_video_access_metadata_VideoItemVideoAccessMetadataComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../video-item-metadata/video-item-video-access-metadata/VideoItemVideoAccessMetadataComponent */ "./src/shared/components/video-item/video-item-metadata/video-item-video-access-metadata/VideoItemVideoAccessMetadataComponent.ts");
|
|
1377
|
-
/* harmony import */ var _video_item_metadata_video_item_processing_metadata_VideoItemProcessingMetadataComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../video-item-metadata/video-item-processing-metadata/VideoItemProcessingMetadataComponent */ "./src/shared/components/video-item/video-item-metadata/video-item-processing-metadata/VideoItemProcessingMetadataComponent.ts");
|
|
1378
|
-
/* harmony import */ var _video_item_metadata_video_item_awaiting_review_metadata_VideoItemAwaitingReviewMetadataComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../video-item-metadata/video-item-awaiting-review-metadata/VideoItemAwaitingReviewMetadataComponent */ "./src/shared/components/video-item/video-item-metadata/video-item-awaiting-review-metadata/VideoItemAwaitingReviewMetadataComponent.ts");
|
|
1379
|
-
/* harmony import */ var _video_item_metadata_video_item_past_releases_metadata_VideoItemPastReleasesMetadataComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../video-item-metadata/video-item-past-releases-metadata/VideoItemPastReleasesMetadataComponent */ "./src/shared/components/video-item/video-item-metadata/video-item-past-releases-metadata/VideoItemPastReleasesMetadataComponent.ts");
|
|
1380
|
-
/* harmony import */ var _video_item_metadata_video_item_search_metadata_VideoItemSearchMetadataComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../video-item-metadata/video-item-search-metadata/VideoItemSearchMetadataComponent */ "./src/shared/components/video-item/video-item-metadata/video-item-search-metadata/VideoItemSearchMetadataComponent.ts");
|
|
1381
|
-
/* harmony import */ var _video_item_actions_base_VideoItemActionsComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../video-item-actions/base/VideoItemActionsComponent */ "./src/shared/components/video-item/video-item-actions/base/VideoItemActionsComponent.ts");
|
|
1382
|
-
/* harmony import */ var _video_item_actions_video_item_review_actions_VideoItemReviewActionsComponent__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../video-item-actions/video-item-review-actions/VideoItemReviewActionsComponent */ "./src/shared/components/video-item/video-item-actions/video-item-review-actions/VideoItemReviewActionsComponent.ts");
|
|
1383
|
-
/* harmony import */ var _video_item_actions_video_item_video_access_actions_VideoItemVideoAccessActionsComponent__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../video-item-actions/video-item-video-access-actions/VideoItemVideoAccessActionsComponent */ "./src/shared/components/video-item/video-item-actions/video-item-video-access-actions/VideoItemVideoAccessActionsComponent.ts");
|
|
1384
|
-
/* harmony import */ var _video_item_preview_VideoItemPreviewComponent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../video-item-preview/VideoItemPreviewComponent */ "./src/shared/components/video-item-preview/VideoItemPreviewComponent.ts");
|
|
1385
|
-
/* harmony import */ var _video_item_actions_video_item_processing_actions_VideoItemProcessingActionsComponent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../video-item-actions/video-item-processing-actions/VideoItemProcessingActionsComponent */ "./src/shared/components/video-item/video-item-actions/video-item-processing-actions/VideoItemProcessingActionsComponent.ts");
|
|
1386
|
-
/* harmony import */ var shared_components_video_item_video_item_scss__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! shared/components/video-item/video-item.scss */ "./src/shared/components/video-item/video-item.scss");
|
|
1387
|
-
/* harmony import */ var shared_components_video_item_video_item_scss__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(shared_components_video_item_video_item_scss__WEBPACK_IMPORTED_MODULE_16__);
|
|
1388
|
-
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../../utils */ "./src/shared/utils/index.ts");
|
|
1389
|
-
/* harmony import */ var _apps_library_editor_constants__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../../../apps/library-editor/constants */ "./src/apps/library-editor/constants/index.ts");
|
|
1390
|
-
/* harmony import */ var _VideoItemComponentTypes__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./VideoItemComponentTypes */ "./src/shared/components/video-item/utils/VideoItemComponentTypes.ts");
|
|
1391
|
-
var _Types$Base, _Types$AwaitingReview, _Types$PastReleases, _Types$VideoAccess, _Types$ProcessingVide, _componentOptions, _Types$Base2, _Types$ProcessingVide2, _onBeforeRender;
|
|
1392
|
-
|
|
1393
|
-
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; }
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
var Types = _VideoItemComponentTypes__WEBPACK_IMPORTED_MODULE_19__["VideoItemComponentType"];
|
|
1416
|
-
var Regions = _VideoItemComponentTypes__WEBPACK_IMPORTED_MODULE_19__["VideoItemComponentRegion"]; // Region Options Functions
|
|
1417
|
-
|
|
1418
|
-
var checkbox = function checkbox(self) {
|
|
1419
|
-
return {
|
|
1420
|
-
component: _checkbox_CheckboxComponent__WEBPACK_IMPORTED_MODULE_4__["CheckboxComponent"],
|
|
1421
|
-
options: {
|
|
1422
|
-
className: "d-inline-flex align-items-center mr-3 ".concat(shared_components_video_item_video_item_scss__WEBPACK_IMPORTED_MODULE_16___default.a.checkboxContainer),
|
|
1423
|
-
checkboxClassName: shared_components_video_item_video_item_scss__WEBPACK_IMPORTED_MODULE_16___default.a.checkbox,
|
|
1424
|
-
itemId: self.model.id,
|
|
1425
|
-
key: self.collectionIdentifier.toString(),
|
|
1426
|
-
type: _apps_library_editor_constants__WEBPACK_IMPORTED_MODULE_18__["CheckboxTypes"].VIDEO_LIST
|
|
1427
|
-
}
|
|
1428
|
-
};
|
|
1429
|
-
};
|
|
1430
|
-
|
|
1431
|
-
var thumbnail = function thumbnail(self) {
|
|
1432
|
-
return {
|
|
1433
|
-
component: _libs_shared_src_legacy_components_thumbnail_ThumbnailComponent__WEBPACK_IMPORTED_MODULE_2__["ThumbnailComponent"],
|
|
1434
|
-
options: {
|
|
1435
|
-
model: self.model,
|
|
1436
|
-
lazyload: self.shouldLazyLoadThumbnail(),
|
|
1437
|
-
thumbnailOptions: {
|
|
1438
|
-
size: _libs_shared_src_enums_Images__WEBPACK_IMPORTED_MODULE_3__["ImageSize"].Small
|
|
1439
|
-
},
|
|
1440
|
-
appLink: {
|
|
1441
|
-
application: _constants__WEBPACK_IMPORTED_MODULE_0__["AppChannels"].LIBRARY_EDITOR,
|
|
1442
|
-
action: _constants__WEBPACK_IMPORTED_MODULE_0__["Actions"].LibraryEditor.VIDEO_DETAILS,
|
|
1443
|
-
args: [self.model.id]
|
|
1444
|
-
},
|
|
1445
|
-
channelName: self.channelName
|
|
1446
|
-
}
|
|
1447
|
-
};
|
|
1448
|
-
};
|
|
1449
|
-
|
|
1450
|
-
var linkToOnlineThumbnail = function linkToOnlineThumbnail(self) {
|
|
1451
|
-
return {
|
|
1452
|
-
component: _libs_shared_src_legacy_components_thumbnail_ThumbnailComponent__WEBPACK_IMPORTED_MODULE_2__["ThumbnailComponent"],
|
|
1453
|
-
options: {
|
|
1454
|
-
model: self.model,
|
|
1455
|
-
lazyload: self.shouldLazyLoadThumbnail(),
|
|
1456
|
-
thumbnailOptions: {
|
|
1457
|
-
size: _libs_shared_src_enums_Images__WEBPACK_IMPORTED_MODULE_3__["ImageSize"].Small
|
|
1458
|
-
},
|
|
1459
|
-
href: _libs_common_src_backbone_utils_UrlHelper__WEBPACK_IMPORTED_MODULE_1__["UrlHelper"].safeUrlConcat(self.options.config.get('onlineUrl'), "videos/".concat(self.model.id)),
|
|
1460
|
-
channelName: self.channelName
|
|
1461
|
-
}
|
|
1462
|
-
};
|
|
1463
|
-
};
|
|
1464
|
-
|
|
1465
|
-
var baseMetadata = function baseMetadata(self) {
|
|
1466
|
-
return {
|
|
1467
|
-
component: _video_item_metadata_base_VideoItemMetadataComponent__WEBPACK_IMPORTED_MODULE_5__["VideoItemMetadataComponent"],
|
|
1468
|
-
options: {
|
|
1469
|
-
model: self.model,
|
|
1470
|
-
sourceMetadataOptions: self.options.sourceMetadataOptions
|
|
1471
|
-
}
|
|
1472
|
-
};
|
|
1473
|
-
};
|
|
1474
|
-
|
|
1475
|
-
var videoAccessMetadata = function videoAccessMetadata(self) {
|
|
1476
|
-
return {
|
|
1477
|
-
component: _video_item_metadata_video_item_video_access_metadata_VideoItemVideoAccessMetadataComponent__WEBPACK_IMPORTED_MODULE_6__["VideoItemVideoAccessMetadataComponent"],
|
|
1478
|
-
options: {
|
|
1479
|
-
model: self.model,
|
|
1480
|
-
config: self.options.config,
|
|
1481
|
-
sourceMetadataOptions: {
|
|
1482
|
-
showFolder: true
|
|
1483
|
-
}
|
|
1484
|
-
}
|
|
1485
|
-
};
|
|
1486
|
-
};
|
|
1487
|
-
|
|
1488
|
-
var processingMetadata = function processingMetadata(self) {
|
|
1489
|
-
return {
|
|
1490
|
-
component: _video_item_metadata_video_item_processing_metadata_VideoItemProcessingMetadataComponent__WEBPACK_IMPORTED_MODULE_7__["VideoItemProcessingMetadataComponent"],
|
|
1491
|
-
options: {
|
|
1492
|
-
model: self.model,
|
|
1493
|
-
pendingItems: self.options.pendingItems
|
|
1494
|
-
}
|
|
1495
|
-
};
|
|
1496
|
-
};
|
|
1497
|
-
|
|
1498
|
-
var searchMetadata = function searchMetadata(self) {
|
|
1499
|
-
return {
|
|
1500
|
-
component: _video_item_metadata_video_item_search_metadata_VideoItemSearchMetadataComponent__WEBPACK_IMPORTED_MODULE_10__["VideoItemSearchMetadataComponent"],
|
|
1501
|
-
options: {
|
|
1502
|
-
model: self.model,
|
|
1503
|
-
sourceMetadataOptions: {
|
|
1504
|
-
showFolder: true,
|
|
1505
|
-
highlight: true
|
|
1506
|
-
}
|
|
1507
|
-
}
|
|
1508
|
-
};
|
|
1509
|
-
};
|
|
1510
|
-
|
|
1511
|
-
var awaitingReviewMetadata = function awaitingReviewMetadata(self) {
|
|
1512
|
-
return {
|
|
1513
|
-
component: _video_item_metadata_video_item_awaiting_review_metadata_VideoItemAwaitingReviewMetadataComponent__WEBPACK_IMPORTED_MODULE_8__["VideoItemAwaitingReviewMetadataComponent"],
|
|
1514
|
-
options: {
|
|
1515
|
-
model: self.model,
|
|
1516
|
-
config: self.options.config
|
|
1517
|
-
}
|
|
1518
|
-
};
|
|
1519
|
-
};
|
|
1520
|
-
|
|
1521
|
-
var pastReleasesMetadata = function pastReleasesMetadata(self) {
|
|
1522
|
-
return {
|
|
1523
|
-
component: _video_item_metadata_video_item_past_releases_metadata_VideoItemPastReleasesMetadataComponent__WEBPACK_IMPORTED_MODULE_9__["VideoItemPastReleasesMetadataComponent"],
|
|
1524
|
-
options: {
|
|
1525
|
-
model: self.model,
|
|
1526
|
-
config: self.options.config
|
|
1527
|
-
}
|
|
1528
|
-
};
|
|
1529
|
-
};
|
|
1530
|
-
|
|
1531
|
-
var baseVideoActions = function baseVideoActions(self) {
|
|
1532
|
-
return {
|
|
1533
|
-
component: _video_item_actions_base_VideoItemActionsComponent__WEBPACK_IMPORTED_MODULE_11__["VideoItemActionsComponent"],
|
|
1534
|
-
options: {
|
|
1535
|
-
model: self.model,
|
|
1536
|
-
channelName: self.channelName,
|
|
1537
|
-
previewDisplayed: self.viewModel.get('previewOpen'),
|
|
1538
|
-
videoActionsOptions: {
|
|
1539
|
-
model: self.model,
|
|
1540
|
-
application: self.options.application,
|
|
1541
|
-
collectionIdentifier: self.options.collectionIdentifier,
|
|
1542
|
-
customerHasLocalCache: self.options.customerHasLocalCache,
|
|
1543
|
-
customerHasExchange: self.options.customerHasExchange,
|
|
1544
|
-
customerHasCustomLibrary: self.options.customerHasCustomLibrary,
|
|
1545
|
-
analyticsOptions: self.options.analyticsOptions,
|
|
1546
|
-
config: self.options.config,
|
|
1547
|
-
collectionSource: self.options.videoCollectionSource
|
|
1548
|
-
}
|
|
1549
|
-
}
|
|
1550
|
-
};
|
|
1551
|
-
};
|
|
1552
|
-
|
|
1553
|
-
var awaitingReviewVideoActions = function awaitingReviewVideoActions(self) {
|
|
1554
|
-
return {
|
|
1555
|
-
component: _video_item_actions_video_item_review_actions_VideoItemReviewActionsComponent__WEBPACK_IMPORTED_MODULE_12__["VideoItemReviewActionsComponent"],
|
|
1556
|
-
options: {
|
|
1557
|
-
model: self.model,
|
|
1558
|
-
channelName: self.channelName,
|
|
1559
|
-
previewDisplayed: self.viewModel.get('previewOpen'),
|
|
1560
|
-
analyticsOptions: self.options.analyticsOptions
|
|
1561
|
-
}
|
|
1562
|
-
};
|
|
1563
|
-
};
|
|
1564
|
-
|
|
1565
|
-
var videoAccessVideoActions = function videoAccessVideoActions(self) {
|
|
1566
|
-
return {
|
|
1567
|
-
component: _video_item_actions_video_item_video_access_actions_VideoItemVideoAccessActionsComponent__WEBPACK_IMPORTED_MODULE_13__["VideoItemVideoAccessActionsComponent"],
|
|
1568
|
-
options: {
|
|
1569
|
-
model: self.model,
|
|
1570
|
-
channelName: self.channelName,
|
|
1571
|
-
previewDisplayed: self.viewModel.get('previewOpen'),
|
|
1572
|
-
analyticsOptions: self.options.analyticsOptions
|
|
1573
|
-
}
|
|
1574
|
-
};
|
|
1575
|
-
};
|
|
1576
|
-
|
|
1577
|
-
var videoProcessingVideoActions = function videoProcessingVideoActions(self) {
|
|
1578
|
-
return {
|
|
1579
|
-
component: _video_item_actions_video_item_processing_actions_VideoItemProcessingActionsComponent__WEBPACK_IMPORTED_MODULE_15__["VideoItemProcessingActionsComponent"],
|
|
1580
|
-
options: {
|
|
1581
|
-
model: self.model,
|
|
1582
|
-
pendingItems: self.options.pendingItems,
|
|
1583
|
-
channelName: self.options.collectionViewChannel,
|
|
1584
|
-
analyticsOptions: self.options.analyticsOptions
|
|
1585
|
-
}
|
|
1586
|
-
};
|
|
1587
|
-
};
|
|
1588
|
-
|
|
1589
|
-
var videoItemPreview = function videoItemPreview(self) {
|
|
1590
|
-
return {
|
|
1591
|
-
component: _video_item_preview_VideoItemPreviewComponent__WEBPACK_IMPORTED_MODULE_14__["VideoItemPreviewComponent"],
|
|
1592
|
-
options: {
|
|
1593
|
-
model: self.options.videoWithMetadata,
|
|
1594
|
-
videoId: self.model.id.toString(),
|
|
1595
|
-
channelName: self.channelName,
|
|
1596
|
-
collectionViewChannel: self.options.collectionViewChannel,
|
|
1597
|
-
webPlayerUrl: self.options.config.get('webPlayerUrl')
|
|
1598
|
-
}
|
|
1599
|
-
};
|
|
1600
|
-
};
|
|
1601
|
-
|
|
1602
|
-
var linkToOnlineVideoItemPreview = function linkToOnlineVideoItemPreview(self) {
|
|
1603
|
-
return {
|
|
1604
|
-
component: _video_item_preview_VideoItemPreviewComponent__WEBPACK_IMPORTED_MODULE_14__["VideoItemPreviewComponent"],
|
|
1605
|
-
options: {
|
|
1606
|
-
model: self.options.videoWithMetadata,
|
|
1607
|
-
videoId: self.model.id.toString(),
|
|
1608
|
-
channelName: self.channelName,
|
|
1609
|
-
collectionViewChannel: self.options.collectionViewChannel,
|
|
1610
|
-
webPlayerUrl: self.options.config.get('webPlayerUrl'),
|
|
1611
|
-
externalLink: _libs_common_src_backbone_utils_UrlHelper__WEBPACK_IMPORTED_MODULE_1__["UrlHelper"].safeUrlConcat(self.options.config.get('onlineUrl'), "videos/".concat(self.model.id))
|
|
1612
|
-
}
|
|
1613
|
-
};
|
|
1614
|
-
};
|
|
1615
|
-
|
|
1616
|
-
var videoAccessVideoItemPreview = function videoAccessVideoItemPreview(self) {
|
|
1617
|
-
return _utils__WEBPACK_IMPORTED_MODULE_17__["VideoHelper"].hasCustomLibrary(self.model) ? videoItemPreview(self) : linkToOnlineVideoItemPreview(self);
|
|
1618
|
-
}; // onBeforeRender Functions
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
var checkboxOnBeforeRender = function checkboxOnBeforeRender(self) {
|
|
1622
|
-
return !!self.options.allowBulk;
|
|
1623
|
-
};
|
|
1624
|
-
|
|
1625
|
-
var videoInfoOnBeforeRender = function videoInfoOnBeforeRender(self) {
|
|
1626
|
-
return !!self.viewModel.get('previewOpen');
|
|
1627
|
-
}; // Components
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
var VideoItemComponents = {
|
|
1631
|
-
componentOptions: (_componentOptions = {}, _defineProperty(_componentOptions, Types.Base, (_Types$Base = {}, _defineProperty(_Types$Base, Regions.Checkbox, checkbox), _defineProperty(_Types$Base, Regions.Thumbnail, thumbnail), _defineProperty(_Types$Base, Regions.Metadata, baseMetadata), _defineProperty(_Types$Base, Regions.VideoActions, baseVideoActions), _defineProperty(_Types$Base, Regions.VideoInfo, videoItemPreview), _Types$Base)), _defineProperty(_componentOptions, Types.AwaitingReview, (_Types$AwaitingReview = {}, _defineProperty(_Types$AwaitingReview, Regions.Thumbnail, linkToOnlineThumbnail), _defineProperty(_Types$AwaitingReview, Regions.Metadata, awaitingReviewMetadata), _defineProperty(_Types$AwaitingReview, Regions.VideoActions, awaitingReviewVideoActions), _defineProperty(_Types$AwaitingReview, Regions.VideoInfo, linkToOnlineVideoItemPreview), _Types$AwaitingReview)), _defineProperty(_componentOptions, Types.PastReleases, (_Types$PastReleases = {}, _defineProperty(_Types$PastReleases, Regions.Thumbnail, linkToOnlineThumbnail), _defineProperty(_Types$PastReleases, Regions.Metadata, pastReleasesMetadata), _defineProperty(_Types$PastReleases, Regions.VideoInfo, linkToOnlineVideoItemPreview), _Types$PastReleases)), _defineProperty(_componentOptions, Types.VideoAccess, (_Types$VideoAccess = {}, _defineProperty(_Types$VideoAccess, Regions.VideoActions, videoAccessVideoActions), _defineProperty(_Types$VideoAccess, Regions.Metadata, videoAccessMetadata), _defineProperty(_Types$VideoAccess, Regions.VideoInfo, videoAccessVideoItemPreview), _Types$VideoAccess)), _defineProperty(_componentOptions, Types.ProcessingVideo, (_Types$ProcessingVide = {}, _defineProperty(_Types$ProcessingVide, Regions.Metadata, processingMetadata), _defineProperty(_Types$ProcessingVide, Regions.VideoActions, videoProcessingVideoActions), _Types$ProcessingVide)), _defineProperty(_componentOptions, Types.Draggable, {}), _defineProperty(_componentOptions, Types.Search, _defineProperty({}, Regions.Metadata, searchMetadata)), _componentOptions),
|
|
1632
|
-
onBeforeRender: (_onBeforeRender = {}, _defineProperty(_onBeforeRender, Types.Base, (_Types$Base2 = {}, _defineProperty(_Types$Base2, Regions.Checkbox, checkboxOnBeforeRender), _defineProperty(_Types$Base2, Regions.VideoInfo, videoInfoOnBeforeRender), _Types$Base2)), _defineProperty(_onBeforeRender, Types.ProcessingVideo, (_Types$ProcessingVide2 = {}, _defineProperty(_Types$ProcessingVide2, Regions.Checkbox, function () {
|
|
1633
|
-
return false;
|
|
1634
|
-
}), _defineProperty(_Types$ProcessingVide2, Regions.VideoInfo, function () {
|
|
1635
|
-
return false;
|
|
1636
|
-
}), _Types$ProcessingVide2)), _onBeforeRender)
|
|
1637
|
-
};
|
|
1638
|
-
|
|
1639
|
-
/***/ }),
|
|
1640
|
-
|
|
1641
|
-
/***/ "./src/shared/components/video-item/video-item-actions/base/VideoItemActions.hbs":
|
|
1642
|
-
/*!***************************************************************************************!*\
|
|
1643
|
-
!*** ./src/shared/components/video-item/video-item-actions/base/VideoItemActions.hbs ***!
|
|
1644
|
-
\***************************************************************************************/
|
|
1645
|
-
/*! no static exports found */
|
|
1646
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1647
|
-
|
|
1648
|
-
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
1649
|
-
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
1650
|
-
var alias1=container.propertyIsEnumerable;
|
|
1651
|
-
|
|
1652
|
-
return container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"hide",{"name":"lang","hash":{},"data":data}));
|
|
1653
|
-
},"3":function(container,depth0,helpers,partials,data) {
|
|
1654
|
-
var alias1=container.propertyIsEnumerable;
|
|
1655
|
-
|
|
1656
|
-
return container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"show",{"name":"lang","hash":{},"data":data}));
|
|
1657
|
-
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
1658
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {});
|
|
1659
|
-
|
|
1660
|
-
return "<div class=\"video-actions-region row no-gutters video-item-actions "
|
|
1661
|
-
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.actions : stack1), depth0))
|
|
1662
|
-
+ "\"></div>\r\n<div class=\"row no-gutters cursor-pointer video-item-show-preview "
|
|
1663
|
-
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.showPreview : stack1), depth0))
|
|
1664
|
-
+ "\">\r\n <span class=\"svg-container\">"
|
|
1665
|
-
+ ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.previewSvg : stack1), depth0)) != null ? stack1 : "")
|
|
1666
|
-
+ "</span>\r\n "
|
|
1667
|
-
+ ((stack1 = helpers["if"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.previewDisplayed : stack1),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.program(3, data, 0),"data":data})) != null ? stack1 : "")
|
|
1668
|
-
+ " "
|
|
1669
|
-
+ alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(alias4,"preview",{"name":"lang","hash":{},"data":data}))
|
|
1670
|
-
+ "\r\n</div>";
|
|
1671
|
-
},"useData":true});
|
|
1672
|
-
|
|
1673
|
-
/***/ }),
|
|
1674
|
-
|
|
1675
|
-
/***/ "./src/shared/components/video-item/video-item-actions/base/VideoItemActionsComponent.ts":
|
|
1676
|
-
/*!***********************************************************************************************!*\
|
|
1677
|
-
!*** ./src/shared/components/video-item/video-item-actions/base/VideoItemActionsComponent.ts ***!
|
|
1678
|
-
\***********************************************************************************************/
|
|
1679
|
-
/*! exports provided: VideoItemActionsComponent */
|
|
1680
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1681
|
-
|
|
1682
|
-
"use strict";
|
|
1683
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1684
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VideoItemActionsComponent", function() { return VideoItemActionsComponent; });
|
|
1685
|
-
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! backbone */ "backbone");
|
|
1686
|
-
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(backbone__WEBPACK_IMPORTED_MODULE_0__);
|
|
1687
|
-
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
1688
|
-
/* harmony import */ var _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../../../libs/shared/src/utils/SvgHelper */ "../../libs/shared/src/utils/SvgHelper.ts");
|
|
1689
|
-
/* harmony import */ var _video_actions_VideoActionsComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../video-actions/VideoActionsComponent */ "./src/shared/components/video-actions/VideoActionsComponent.ts");
|
|
1690
|
-
/* harmony import */ var _VideoItemActions_hbs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./VideoItemActions.hbs */ "./src/shared/components/video-item/video-item-actions/base/VideoItemActions.hbs");
|
|
1691
|
-
/* harmony import */ var _VideoItemActions_hbs__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_VideoItemActions_hbs__WEBPACK_IMPORTED_MODULE_4__);
|
|
1692
|
-
/* harmony import */ var _video_item_actions_scss__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./video-item-actions.scss */ "./src/shared/components/video-item/video-item-actions/base/video-item-actions.scss");
|
|
1693
|
-
/* harmony import */ var _video_item_actions_scss__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_video_item_actions_scss__WEBPACK_IMPORTED_MODULE_5__);
|
|
1694
|
-
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); }
|
|
1695
|
-
|
|
1696
|
-
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; }
|
|
1697
|
-
|
|
1698
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1699
|
-
|
|
1700
|
-
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); } }
|
|
1701
|
-
|
|
1702
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1703
|
-
|
|
1704
|
-
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); }
|
|
1705
|
-
|
|
1706
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1707
|
-
|
|
1708
|
-
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); }; }
|
|
1709
|
-
|
|
1710
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1711
|
-
|
|
1712
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1713
|
-
|
|
1714
|
-
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; } }
|
|
1715
|
-
|
|
1716
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
var VideoItemActionsComponent = /*#__PURE__*/function (_Core$Component) {
|
|
1725
|
-
_inherits(VideoItemActionsComponent, _Core$Component);
|
|
1726
|
-
|
|
1727
|
-
var _super = _createSuper(VideoItemActionsComponent);
|
|
1728
|
-
|
|
1729
|
-
function VideoItemActionsComponent(options) {
|
|
1730
|
-
_classCallCheck(this, VideoItemActionsComponent);
|
|
1731
|
-
|
|
1732
|
-
return _super.call(this, options);
|
|
1733
|
-
}
|
|
1734
|
-
|
|
1735
|
-
_createClass(VideoItemActionsComponent, [{
|
|
1736
|
-
key: "regions",
|
|
1737
|
-
value: function regions() {
|
|
1738
|
-
return {
|
|
1739
|
-
videoActions: '.video-actions-region'
|
|
1740
|
-
};
|
|
1741
|
-
}
|
|
1742
|
-
}, {
|
|
1743
|
-
key: "events",
|
|
1744
|
-
value: function events() {
|
|
1745
|
-
return _defineProperty({}, "click .".concat(_video_item_actions_scss__WEBPACK_IMPORTED_MODULE_5___default.a.showPreview), 'onClickShowPreview');
|
|
1746
|
-
}
|
|
1747
|
-
}, {
|
|
1748
|
-
key: "onClickShowPreview",
|
|
1749
|
-
value: function onClickShowPreview(e) {
|
|
1750
|
-
e.stopPropagation();
|
|
1751
|
-
if (!this.options.channelName) return;
|
|
1752
|
-
backbone__WEBPACK_IMPORTED_MODULE_0__["Radio"].channel(this.options.channelName).trigger('click:show:preview');
|
|
1753
|
-
}
|
|
1754
|
-
}, {
|
|
1755
|
-
key: "renderVideoActions",
|
|
1756
|
-
value: function renderVideoActions() {
|
|
1757
|
-
this.showChildView('videoActions', new _video_actions_VideoActionsComponent__WEBPACK_IMPORTED_MODULE_3__["VideoActionsComponent"](this.options.videoActionsOptions));
|
|
1758
|
-
}
|
|
1759
|
-
}, {
|
|
1760
|
-
key: "viewOptions",
|
|
1761
|
-
value: function viewOptions() {
|
|
1762
|
-
return {
|
|
1763
|
-
styles: _video_item_actions_scss__WEBPACK_IMPORTED_MODULE_5___default.a,
|
|
1764
|
-
previewDisplayed: this.options.previewDisplayed,
|
|
1765
|
-
previewSvg: _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_2__["SvgHelper"].getSvg(_libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_2__["cvSvgLibrary"].Preview)
|
|
1766
|
-
};
|
|
1767
|
-
}
|
|
1768
|
-
}, {
|
|
1769
|
-
key: "onRender",
|
|
1770
|
-
value: function onRender() {
|
|
1771
|
-
this.renderVideoActions();
|
|
1772
|
-
}
|
|
1773
|
-
}, {
|
|
1774
|
-
key: "name",
|
|
1775
|
-
get: function get() {
|
|
1776
|
-
return 'VideoItemActionsComponent';
|
|
1777
|
-
}
|
|
1778
|
-
}, {
|
|
1779
|
-
key: "template",
|
|
1780
|
-
get: function get() {
|
|
1781
|
-
return _VideoItemActions_hbs__WEBPACK_IMPORTED_MODULE_4___default.a;
|
|
1782
|
-
}
|
|
1783
|
-
}, {
|
|
1784
|
-
key: "className",
|
|
1785
|
-
get: function get() {
|
|
1786
|
-
return 'd-flex h-100 flex-column align-items-end justify-content-between';
|
|
1787
|
-
}
|
|
1788
|
-
}, {
|
|
1789
|
-
key: "lang",
|
|
1790
|
-
get: function get() {
|
|
1791
|
-
return 'shared._videoItemActions';
|
|
1792
|
-
}
|
|
1793
|
-
}]);
|
|
1794
|
-
|
|
1795
|
-
return VideoItemActionsComponent;
|
|
1796
|
-
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__["Core"].Component);
|
|
1797
|
-
|
|
1798
|
-
/***/ }),
|
|
1799
|
-
|
|
1800
|
-
/***/ "./src/shared/components/video-item/video-item-actions/base/video-item-actions.scss":
|
|
1801
|
-
/*!******************************************************************************************!*\
|
|
1802
|
-
!*** ./src/shared/components/video-item/video-item-actions/base/video-item-actions.scss ***!
|
|
1803
|
-
\******************************************************************************************/
|
|
1804
|
-
/*! no static exports found */
|
|
1805
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1806
|
-
|
|
1807
|
-
// extracted by mini-css-extract-plugin
|
|
1808
|
-
module.exports = {"actions":"cv--actions--34Z19","showPreview":"cv--showPreview--cZAmH"};
|
|
1809
|
-
|
|
1810
|
-
/***/ }),
|
|
1811
|
-
|
|
1812
|
-
/***/ "./src/shared/components/video-item/video-item-actions/video-item-processing-actions/VideoItemProcessingActions.hbs":
|
|
1813
|
-
/*!**************************************************************************************************************************!*\
|
|
1814
|
-
!*** ./src/shared/components/video-item/video-item-actions/video-item-processing-actions/VideoItemProcessingActions.hbs ***!
|
|
1815
|
-
\**************************************************************************************************************************/
|
|
1816
|
-
/*! no static exports found */
|
|
1817
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1818
|
-
|
|
1819
|
-
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
1820
|
-
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
1821
|
-
var alias1=container.propertyIsEnumerable;
|
|
1822
|
-
|
|
1823
|
-
return " <button class=\"btn btn-light retry\">"
|
|
1824
|
-
+ container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"retry",{"name":"lang","hash":{},"data":data}))
|
|
1825
|
-
+ "</button>\r\n";
|
|
1826
|
-
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
1827
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {});
|
|
1828
|
-
|
|
1829
|
-
return "<div>\r\n"
|
|
1830
|
-
+ ((stack1 = helpers["if"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.hasError : stack1),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
1831
|
-
+ " <button class=\"btn btn-light cancel\">"
|
|
1832
|
-
+ container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(alias2,"cancel",{"name":"lang","hash":{},"data":data}))
|
|
1833
|
-
+ "</button>\r\n</div>\r\n";
|
|
1834
|
-
},"useData":true});
|
|
1835
|
-
|
|
1836
|
-
/***/ }),
|
|
1837
|
-
|
|
1838
|
-
/***/ "./src/shared/components/video-item/video-item-actions/video-item-processing-actions/VideoItemProcessingActionsComponent.ts":
|
|
1839
|
-
/*!**********************************************************************************************************************************!*\
|
|
1840
|
-
!*** ./src/shared/components/video-item/video-item-actions/video-item-processing-actions/VideoItemProcessingActionsComponent.ts ***!
|
|
1841
|
-
\**********************************************************************************************************************************/
|
|
1842
|
-
/*! exports provided: VideoItemProcessingActionsComponent */
|
|
1843
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1844
|
-
|
|
1845
|
-
"use strict";
|
|
1846
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1847
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VideoItemProcessingActionsComponent", function() { return VideoItemProcessingActionsComponent; });
|
|
1848
|
-
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
1849
|
-
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! backbone */ "backbone");
|
|
1850
|
-
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(backbone__WEBPACK_IMPORTED_MODULE_1__);
|
|
1851
|
-
/* harmony import */ var _libs_shared_src_enums_CurationStatus__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../../../libs/shared/src/enums/CurationStatus */ "../../libs/shared/src/enums/CurationStatus.ts");
|
|
1852
|
-
/* harmony import */ var _libs_shared_src_apps_upload_utils_PendingItemsHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../../libs/shared/src/apps/upload/utils/PendingItemsHelper */ "../../libs/shared/src/apps/upload/utils/PendingItemsHelper.ts");
|
|
1853
|
-
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../utils */ "./src/shared/utils/index.ts");
|
|
1854
|
-
/* harmony import */ var _VideoItemProcessingActions_hbs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./VideoItemProcessingActions.hbs */ "./src/shared/components/video-item/video-item-actions/video-item-processing-actions/VideoItemProcessingActions.hbs");
|
|
1855
|
-
/* harmony import */ var _VideoItemProcessingActions_hbs__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_VideoItemProcessingActions_hbs__WEBPACK_IMPORTED_MODULE_5__);
|
|
1856
|
-
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); }
|
|
1857
|
-
|
|
1858
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1859
|
-
|
|
1860
|
-
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); } }
|
|
1861
|
-
|
|
1862
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1863
|
-
|
|
1864
|
-
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); }
|
|
1865
|
-
|
|
1866
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1867
|
-
|
|
1868
|
-
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); }; }
|
|
1869
|
-
|
|
1870
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1871
|
-
|
|
1872
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1873
|
-
|
|
1874
|
-
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; } }
|
|
1875
|
-
|
|
1876
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
var VideoItemProcessingActionsComponent = /*#__PURE__*/function (_Core$Component) {
|
|
1885
|
-
_inherits(VideoItemProcessingActionsComponent, _Core$Component);
|
|
1886
|
-
|
|
1887
|
-
var _super = _createSuper(VideoItemProcessingActionsComponent);
|
|
1888
|
-
|
|
1889
|
-
function VideoItemProcessingActionsComponent(options) {
|
|
1890
|
-
_classCallCheck(this, VideoItemProcessingActionsComponent);
|
|
1891
|
-
|
|
1892
|
-
return _super.call(this, options);
|
|
1893
|
-
}
|
|
1894
|
-
|
|
1895
|
-
_createClass(VideoItemProcessingActionsComponent, [{
|
|
1896
|
-
key: "initialize",
|
|
1897
|
-
value: function initialize() {
|
|
1898
|
-
this.bindListeners();
|
|
1899
|
-
}
|
|
1900
|
-
}, {
|
|
1901
|
-
key: "events",
|
|
1902
|
-
value: function events() {
|
|
1903
|
-
return {
|
|
1904
|
-
'click .cancel': 'onClickCancel',
|
|
1905
|
-
'click .retry': 'onClickRetry'
|
|
1906
|
-
};
|
|
1907
|
-
}
|
|
1908
|
-
}, {
|
|
1909
|
-
key: "onClickCancel",
|
|
1910
|
-
value: function onClickCancel() {
|
|
1911
|
-
var videoTitle = this.pendingItem.get('video').get('name');
|
|
1912
|
-
_utils__WEBPACK_IMPORTED_MODULE_4__["CancelProcessingHelper"].generateDialog(videoTitle, this.options.channelName, 'cancel:pending:item', this.pendingItem);
|
|
1913
|
-
}
|
|
1914
|
-
}, {
|
|
1915
|
-
key: "onClickRetry",
|
|
1916
|
-
value: function onClickRetry() {
|
|
1917
|
-
var channel = backbone__WEBPACK_IMPORTED_MODULE_1__["Radio"].channel(this.options.channelName);
|
|
1918
|
-
channel.trigger('retry:pending:item', this.pendingItem);
|
|
1919
|
-
}
|
|
1920
|
-
}, {
|
|
1921
|
-
key: "bindListeners",
|
|
1922
|
-
value: function bindListeners() {
|
|
1923
|
-
if (this.model.get('status') !== _libs_shared_src_enums_CurationStatus__WEBPACK_IMPORTED_MODULE_2__["CurationStatus"].Processing) return;
|
|
1924
|
-
if (!this.options.pendingItems) return;
|
|
1925
|
-
if (this.pendingItem) return;
|
|
1926
|
-
this.listenTo(this.options.pendingItems, 'update', this.mapPendingItem);
|
|
1927
|
-
this.mapPendingItem();
|
|
1928
|
-
}
|
|
1929
|
-
}, {
|
|
1930
|
-
key: "mapPendingItem",
|
|
1931
|
-
value: function mapPendingItem() {
|
|
1932
|
-
this.pendingItem = this.options.pendingItems.get(this.model.get('id'));
|
|
1933
|
-
this.render();
|
|
1934
|
-
if (!this.pendingItem) return;
|
|
1935
|
-
this.stopListening(this.options.pendingItems, 'update');
|
|
1936
|
-
this.listenTo(this.pendingItem, 'change:pendingProcessStatus', this.render);
|
|
1937
|
-
}
|
|
1938
|
-
}, {
|
|
1939
|
-
key: "viewOptions",
|
|
1940
|
-
value: function viewOptions() {
|
|
1941
|
-
return {
|
|
1942
|
-
hasError: _libs_shared_src_apps_upload_utils_PendingItemsHelper__WEBPACK_IMPORTED_MODULE_3__["PendingItemsHelper"].hasError(this.pendingItem)
|
|
1943
|
-
};
|
|
1944
|
-
}
|
|
1945
|
-
}, {
|
|
1946
|
-
key: "onBeforeRender",
|
|
1947
|
-
value: function onBeforeRender() {
|
|
1948
|
-
return !!this.pendingItem;
|
|
1949
|
-
}
|
|
1950
|
-
}, {
|
|
1951
|
-
key: "name",
|
|
1952
|
-
get: function get() {
|
|
1953
|
-
return 'VideoItemProcessingActionsComponent';
|
|
1954
|
-
}
|
|
1955
|
-
}, {
|
|
1956
|
-
key: "template",
|
|
1957
|
-
get: function get() {
|
|
1958
|
-
return _VideoItemProcessingActions_hbs__WEBPACK_IMPORTED_MODULE_5___default.a;
|
|
1959
|
-
}
|
|
1960
|
-
}, {
|
|
1961
|
-
key: "lang",
|
|
1962
|
-
get: function get() {
|
|
1963
|
-
return 'shared.videoItemProcessingActions';
|
|
1964
|
-
}
|
|
1965
|
-
}, {
|
|
1966
|
-
key: "className",
|
|
1967
|
-
get: function get() {
|
|
1968
|
-
return 'd-flex h-100 flex-column align-items-end justify-content-between';
|
|
1969
|
-
}
|
|
1970
|
-
}]);
|
|
1971
|
-
|
|
1972
|
-
return VideoItemProcessingActionsComponent;
|
|
1973
|
-
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].Component);
|
|
1974
|
-
|
|
1975
|
-
/***/ }),
|
|
1976
|
-
|
|
1977
|
-
/***/ "./src/shared/components/video-item/video-item-actions/video-item-review-actions/VideoItemReviewActions.hbs":
|
|
1978
|
-
/*!******************************************************************************************************************!*\
|
|
1979
|
-
!*** ./src/shared/components/video-item/video-item-actions/video-item-review-actions/VideoItemReviewActions.hbs ***!
|
|
1980
|
-
\******************************************************************************************************************/
|
|
1981
|
-
/*! no static exports found */
|
|
1982
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1983
|
-
|
|
1984
|
-
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
1985
|
-
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
1986
|
-
var alias1=container.propertyIsEnumerable;
|
|
1987
|
-
|
|
1988
|
-
return container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"hide",{"name":"lang","hash":{},"data":data}));
|
|
1989
|
-
},"3":function(container,depth0,helpers,partials,data) {
|
|
1990
|
-
var alias1=container.propertyIsEnumerable;
|
|
1991
|
-
|
|
1992
|
-
return container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"show",{"name":"lang","hash":{},"data":data}));
|
|
1993
|
-
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
1994
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {}), alias3=container.hooks.helperMissing, alias4=container.escapeExpression, alias5=container.lambda;
|
|
1995
|
-
|
|
1996
|
-
return "<button class=\"approve d-flex btn btn-sm btn-outline-success\" type=\"button\">"
|
|
1997
|
-
+ alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"approve",{"name":"lang","hash":{},"data":data}))
|
|
1998
|
-
+ "</button>\r\n<a class=\"applink-manage-video-access cursor-pointer hover-text-underline py-1\">"
|
|
1999
|
-
+ ((stack1 = (helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"manageAccess",{"name":"lang","hash":{},"data":data})) != null ? stack1 : "")
|
|
2000
|
-
+ "</a> \r\n<div class=\"row no-gutters cursor-pointer video-item-show-preview "
|
|
2001
|
-
+ alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.showPreview : stack1), depth0))
|
|
2002
|
-
+ "\"> \r\n <span class=\"svg-container\">"
|
|
2003
|
-
+ ((stack1 = alias5(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.previewSvg : stack1), depth0)) != null ? stack1 : "")
|
|
2004
|
-
+ "</span> \r\n "
|
|
2005
|
-
+ ((stack1 = helpers["if"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.previewDisplayed : stack1),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.program(3, data, 0),"data":data})) != null ? stack1 : "")
|
|
2006
|
-
+ " "
|
|
2007
|
-
+ alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"preview",{"name":"lang","hash":{},"data":data}))
|
|
2008
|
-
+ "\r\n</div> ";
|
|
2009
|
-
},"useData":true});
|
|
2010
|
-
|
|
2011
|
-
/***/ }),
|
|
2012
|
-
|
|
2013
|
-
/***/ "./src/shared/components/video-item/video-item-actions/video-item-review-actions/VideoItemReviewActionsComponent.ts":
|
|
2014
|
-
/*!**************************************************************************************************************************!*\
|
|
2015
|
-
!*** ./src/shared/components/video-item/video-item-actions/video-item-review-actions/VideoItemReviewActionsComponent.ts ***!
|
|
2016
|
-
\**************************************************************************************************************************/
|
|
2017
|
-
/*! exports provided: VideoItemReviewActionsComponent */
|
|
2018
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2019
|
-
|
|
2020
|
-
"use strict";
|
|
2021
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2022
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VideoItemReviewActionsComponent", function() { return VideoItemReviewActionsComponent; });
|
|
2023
|
-
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! backbone */ "backbone");
|
|
2024
|
-
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(backbone__WEBPACK_IMPORTED_MODULE_0__);
|
|
2025
|
-
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
2026
|
-
/* harmony import */ var _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../../../libs/common/src/backbone/services/InstanceManager */ "../../libs/common/src/backbone/services/InstanceManager.ts");
|
|
2027
|
-
/* harmony import */ var _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../../libs/shared/src/utils/SvgHelper */ "../../libs/shared/src/utils/SvgHelper.ts");
|
|
2028
|
-
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../constants */ "./src/shared/constants/index.ts");
|
|
2029
|
-
/* harmony import */ var _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../../../libs/analytics/src/interfaces */ "../../libs/analytics/src/interfaces/index.ts");
|
|
2030
|
-
/* harmony import */ var _libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../../../libs/analytics/src/AnalyticsHelper */ "../../libs/analytics/src/AnalyticsHelper.ts");
|
|
2031
|
-
/* harmony import */ var shared_components_video_item_video_item_actions_base_video_item_actions_scss__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! shared/components/video-item/video-item-actions/base/video-item-actions.scss */ "./src/shared/components/video-item/video-item-actions/base/video-item-actions.scss");
|
|
2032
|
-
/* harmony import */ var shared_components_video_item_video_item_actions_base_video_item_actions_scss__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(shared_components_video_item_video_item_actions_base_video_item_actions_scss__WEBPACK_IMPORTED_MODULE_7__);
|
|
2033
|
-
/* harmony import */ var _VideoItemReviewActions_hbs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./VideoItemReviewActions.hbs */ "./src/shared/components/video-item/video-item-actions/video-item-review-actions/VideoItemReviewActions.hbs");
|
|
2034
|
-
/* harmony import */ var _VideoItemReviewActions_hbs__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_VideoItemReviewActions_hbs__WEBPACK_IMPORTED_MODULE_8__);
|
|
2035
|
-
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); }
|
|
2036
|
-
|
|
2037
|
-
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; }
|
|
2038
|
-
|
|
2039
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2040
|
-
|
|
2041
|
-
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); } }
|
|
2042
|
-
|
|
2043
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
2044
|
-
|
|
2045
|
-
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); }
|
|
2046
|
-
|
|
2047
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
2048
|
-
|
|
2049
|
-
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); }; }
|
|
2050
|
-
|
|
2051
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
2052
|
-
|
|
2053
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
2054
|
-
|
|
2055
|
-
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; } }
|
|
2056
|
-
|
|
2057
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
var VideoItemReviewActionsComponent = /*#__PURE__*/function (_Core$Component) {
|
|
2069
|
-
_inherits(VideoItemReviewActionsComponent, _Core$Component);
|
|
2070
|
-
|
|
2071
|
-
var _super = _createSuper(VideoItemReviewActionsComponent);
|
|
2072
|
-
|
|
2073
|
-
function VideoItemReviewActionsComponent(options) {
|
|
2074
|
-
_classCallCheck(this, VideoItemReviewActionsComponent);
|
|
2075
|
-
|
|
2076
|
-
return _super.call(this, options);
|
|
2077
|
-
}
|
|
2078
|
-
|
|
2079
|
-
_createClass(VideoItemReviewActionsComponent, [{
|
|
2080
|
-
key: "initialize",
|
|
2081
|
-
value: function initialize() {
|
|
2082
|
-
this.restrictedVideoDataService = _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_2__["InstanceManager"].getInstance(_constants__WEBPACK_IMPORTED_MODULE_4__["DataServices"].RestrictedVideo, this);
|
|
2083
|
-
}
|
|
2084
|
-
}, {
|
|
2085
|
-
key: "events",
|
|
2086
|
-
value: function events() {
|
|
2087
|
-
return _defineProperty({
|
|
2088
|
-
'click .approve': 'onClickApprove',
|
|
2089
|
-
'click .applink-manage-video-access': 'onClickManageVideoAccess'
|
|
2090
|
-
}, "click .".concat(shared_components_video_item_video_item_actions_base_video_item_actions_scss__WEBPACK_IMPORTED_MODULE_7___default.a.showPreview), 'onClickShowPreview');
|
|
2091
|
-
}
|
|
2092
|
-
}, {
|
|
2093
|
-
key: "onClickApprove",
|
|
2094
|
-
value: function onClickApprove(e) {
|
|
2095
|
-
e.stopPropagation();
|
|
2096
|
-
this.restrictedVideoDataService.deleteVideoRestriction(this.model.get('id'));
|
|
2097
|
-
this.logApproveAction();
|
|
2098
|
-
}
|
|
2099
|
-
}, {
|
|
2100
|
-
key: "onClickManageVideoAccess",
|
|
2101
|
-
value: function onClickManageVideoAccess(e) {
|
|
2102
|
-
e.stopPropagation();
|
|
2103
|
-
this.logManageAccessAction();
|
|
2104
|
-
}
|
|
2105
|
-
}, {
|
|
2106
|
-
key: "onClickShowPreview",
|
|
2107
|
-
value: function onClickShowPreview(e) {
|
|
2108
|
-
e.stopPropagation();
|
|
2109
|
-
if (!this.options.channelName) return;
|
|
2110
|
-
backbone__WEBPACK_IMPORTED_MODULE_0__["Radio"].channel(this.options.channelName).trigger('click:show:preview');
|
|
2111
|
-
}
|
|
2112
|
-
}, {
|
|
2113
|
-
key: "logApproveAction",
|
|
2114
|
-
value: function logApproveAction() {
|
|
2115
|
-
var analyticsOptions = {
|
|
2116
|
-
location: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_5__["LocationContext"].AwaitingReviewVideoItem,
|
|
2117
|
-
actionType: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_5__["UserAction"].Approve,
|
|
2118
|
-
entity: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_5__["EntityType"].Video,
|
|
2119
|
-
descriptor: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_5__["OperationDescriptor"].Single,
|
|
2120
|
-
workflowPhase: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_5__["WorkflowPhase"].Complete
|
|
2121
|
-
};
|
|
2122
|
-
var data = {
|
|
2123
|
-
id: this.model.get('id')
|
|
2124
|
-
};
|
|
2125
|
-
_libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_6__["AnalyticsHelper"].logUserAction(data, analyticsOptions);
|
|
2126
|
-
}
|
|
2127
|
-
}, {
|
|
2128
|
-
key: "logManageAccessAction",
|
|
2129
|
-
value: function logManageAccessAction() {
|
|
2130
|
-
var analyticsOptions = {
|
|
2131
|
-
location: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_5__["LocationContext"].AwaitingReviewVideoItem,
|
|
2132
|
-
actionType: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_5__["UserAction"].SetAccess,
|
|
2133
|
-
entity: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_5__["EntityType"].Video,
|
|
2134
|
-
workflowPhase: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_5__["WorkflowPhase"].Start
|
|
2135
|
-
};
|
|
2136
|
-
var data = {
|
|
2137
|
-
id: this.model.get('id')
|
|
2138
|
-
};
|
|
2139
|
-
_libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_6__["AnalyticsHelper"].logUserAction(data, analyticsOptions);
|
|
2140
|
-
}
|
|
2141
|
-
}, {
|
|
2142
|
-
key: "viewOptions",
|
|
2143
|
-
value: function viewOptions() {
|
|
2144
|
-
return {
|
|
2145
|
-
styles: shared_components_video_item_video_item_actions_base_video_item_actions_scss__WEBPACK_IMPORTED_MODULE_7___default.a,
|
|
2146
|
-
previewDisplayed: this.options.previewDisplayed,
|
|
2147
|
-
previewSvg: _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_3__["SvgHelper"].getSvg(_libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_3__["cvSvgLibrary"].Preview)
|
|
2148
|
-
};
|
|
2149
|
-
}
|
|
2150
|
-
}, {
|
|
2151
|
-
key: "name",
|
|
2152
|
-
get: function get() {
|
|
2153
|
-
return 'VideoItemReviewActionsComponent';
|
|
2154
|
-
}
|
|
2155
|
-
}, {
|
|
2156
|
-
key: "template",
|
|
2157
|
-
get: function get() {
|
|
2158
|
-
return _VideoItemReviewActions_hbs__WEBPACK_IMPORTED_MODULE_8___default.a;
|
|
2159
|
-
}
|
|
2160
|
-
}, {
|
|
2161
|
-
key: "lang",
|
|
2162
|
-
get: function get() {
|
|
2163
|
-
return 'shared.videoItemReviewActions';
|
|
2164
|
-
}
|
|
2165
|
-
}, {
|
|
2166
|
-
key: "className",
|
|
2167
|
-
get: function get() {
|
|
2168
|
-
return 'd-flex h-100 flex-column align-items-end';
|
|
2169
|
-
}
|
|
2170
|
-
}, {
|
|
2171
|
-
key: "appLinks",
|
|
2172
|
-
get: function get() {
|
|
2173
|
-
return {
|
|
2174
|
-
'.applink-manage-video-access': {
|
|
2175
|
-
application: _constants__WEBPACK_IMPORTED_MODULE_4__["AppChannels"].CONTENT_UPDATES,
|
|
2176
|
-
action: _constants__WEBPACK_IMPORTED_MODULE_4__["Actions"].Shared.MANAGE_VIDEO_ACCESS,
|
|
2177
|
-
args: [this.model.get('id')]
|
|
2178
|
-
}
|
|
2179
|
-
};
|
|
2180
|
-
}
|
|
2181
|
-
}]);
|
|
2182
|
-
|
|
2183
|
-
return VideoItemReviewActionsComponent;
|
|
2184
|
-
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__["Core"].Component);
|
|
2185
|
-
|
|
2186
|
-
/***/ }),
|
|
2187
|
-
|
|
2188
|
-
/***/ "./src/shared/components/video-item/video-item-actions/video-item-video-access-actions/VideoItemVideoAccessActions.hbs":
|
|
2189
|
-
/*!*****************************************************************************************************************************!*\
|
|
2190
|
-
!*** ./src/shared/components/video-item/video-item-actions/video-item-video-access-actions/VideoItemVideoAccessActions.hbs ***!
|
|
2191
|
-
\*****************************************************************************************************************************/
|
|
2192
|
-
/*! no static exports found */
|
|
2193
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2194
|
-
|
|
2195
|
-
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
2196
|
-
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
2197
|
-
var alias1=container.propertyIsEnumerable;
|
|
2198
|
-
|
|
2199
|
-
return container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"hide",{"name":"lang","hash":{},"data":data}));
|
|
2200
|
-
},"3":function(container,depth0,helpers,partials,data) {
|
|
2201
|
-
var alias1=container.propertyIsEnumerable;
|
|
2202
|
-
|
|
2203
|
-
return container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"show",{"name":"lang","hash":{},"data":data}));
|
|
2204
|
-
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
2205
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {}), alias3=container.hooks.helperMissing, alias4=container.escapeExpression, alias5=container.lambda;
|
|
2206
|
-
|
|
2207
|
-
return "<button class=\"applink-manage-video-access d-flex btn btn-sm btn-secondary\" type=\"button\">"
|
|
2208
|
-
+ alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"manageAccess",{"name":"lang","hash":{},"data":data}))
|
|
2209
|
-
+ "</button>\r\n<div class=\"row no-gutters cursor-pointer video-item-show-preview "
|
|
2210
|
-
+ alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.showPreview : stack1), depth0))
|
|
2211
|
-
+ "\">\r\n <span class=\"svg-container\">"
|
|
2212
|
-
+ ((stack1 = alias5(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.previewSvg : stack1), depth0)) != null ? stack1 : "")
|
|
2213
|
-
+ "</span>\r\n "
|
|
2214
|
-
+ ((stack1 = helpers["if"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.previewDisplayed : stack1),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.program(3, data, 0),"data":data})) != null ? stack1 : "")
|
|
2215
|
-
+ " "
|
|
2216
|
-
+ alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"preview",{"name":"lang","hash":{},"data":data}))
|
|
2217
|
-
+ "\r\n</div>";
|
|
2218
|
-
},"useData":true});
|
|
2219
|
-
|
|
2220
|
-
/***/ }),
|
|
2221
|
-
|
|
2222
|
-
/***/ "./src/shared/components/video-item/video-item-actions/video-item-video-access-actions/VideoItemVideoAccessActionsComponent.ts":
|
|
2223
|
-
/*!*************************************************************************************************************************************!*\
|
|
2224
|
-
!*** ./src/shared/components/video-item/video-item-actions/video-item-video-access-actions/VideoItemVideoAccessActionsComponent.ts ***!
|
|
2225
|
-
\*************************************************************************************************************************************/
|
|
2226
|
-
/*! exports provided: VideoItemVideoAccessActionsComponent */
|
|
2227
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2228
|
-
|
|
2229
|
-
"use strict";
|
|
2230
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2231
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VideoItemVideoAccessActionsComponent", function() { return VideoItemVideoAccessActionsComponent; });
|
|
2232
|
-
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! backbone */ "backbone");
|
|
2233
|
-
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(backbone__WEBPACK_IMPORTED_MODULE_0__);
|
|
2234
|
-
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
2235
|
-
/* harmony import */ var _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../../../libs/shared/src/utils/SvgHelper */ "../../libs/shared/src/utils/SvgHelper.ts");
|
|
2236
|
-
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../constants */ "./src/shared/constants/index.ts");
|
|
2237
|
-
/* harmony import */ var _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../../../libs/analytics/src/interfaces */ "../../libs/analytics/src/interfaces/index.ts");
|
|
2238
|
-
/* harmony import */ var _libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../../../libs/analytics/src/AnalyticsHelper */ "../../libs/analytics/src/AnalyticsHelper.ts");
|
|
2239
|
-
/* harmony import */ var shared_components_video_item_video_item_actions_base_video_item_actions_scss__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! shared/components/video-item/video-item-actions/base/video-item-actions.scss */ "./src/shared/components/video-item/video-item-actions/base/video-item-actions.scss");
|
|
2240
|
-
/* harmony import */ var shared_components_video_item_video_item_actions_base_video_item_actions_scss__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(shared_components_video_item_video_item_actions_base_video_item_actions_scss__WEBPACK_IMPORTED_MODULE_6__);
|
|
2241
|
-
/* harmony import */ var _VideoItemVideoAccessActions_hbs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./VideoItemVideoAccessActions.hbs */ "./src/shared/components/video-item/video-item-actions/video-item-video-access-actions/VideoItemVideoAccessActions.hbs");
|
|
2242
|
-
/* harmony import */ var _VideoItemVideoAccessActions_hbs__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_VideoItemVideoAccessActions_hbs__WEBPACK_IMPORTED_MODULE_7__);
|
|
2243
|
-
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); }
|
|
2244
|
-
|
|
2245
|
-
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; }
|
|
2246
|
-
|
|
2247
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2248
|
-
|
|
2249
|
-
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); } }
|
|
2250
|
-
|
|
2251
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
2252
|
-
|
|
2253
|
-
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); }
|
|
2254
|
-
|
|
2255
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
2256
|
-
|
|
2257
|
-
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); }; }
|
|
2258
|
-
|
|
2259
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
2260
|
-
|
|
2261
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
2262
|
-
|
|
2263
|
-
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; } }
|
|
2264
|
-
|
|
2265
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
var VideoItemVideoAccessActionsComponent = /*#__PURE__*/function (_Core$Component) {
|
|
2276
|
-
_inherits(VideoItemVideoAccessActionsComponent, _Core$Component);
|
|
2277
|
-
|
|
2278
|
-
var _super = _createSuper(VideoItemVideoAccessActionsComponent);
|
|
2279
|
-
|
|
2280
|
-
function VideoItemVideoAccessActionsComponent(options) {
|
|
2281
|
-
_classCallCheck(this, VideoItemVideoAccessActionsComponent);
|
|
2282
|
-
|
|
2283
|
-
return _super.call(this, options);
|
|
2284
|
-
}
|
|
2285
|
-
|
|
2286
|
-
_createClass(VideoItemVideoAccessActionsComponent, [{
|
|
2287
|
-
key: "events",
|
|
2288
|
-
value: function events() {
|
|
2289
|
-
return _defineProperty({
|
|
2290
|
-
'click .applink-manage-video-access': 'onClickManageVideoAccess'
|
|
2291
|
-
}, "click .".concat(shared_components_video_item_video_item_actions_base_video_item_actions_scss__WEBPACK_IMPORTED_MODULE_6___default.a.showPreview), 'onClickShowPreview');
|
|
2292
|
-
}
|
|
2293
|
-
}, {
|
|
2294
|
-
key: "onClickManageVideoAccess",
|
|
2295
|
-
value: function onClickManageVideoAccess(e) {
|
|
2296
|
-
e.stopPropagation();
|
|
2297
|
-
this.logAction();
|
|
2298
|
-
}
|
|
2299
|
-
}, {
|
|
2300
|
-
key: "onClickShowPreview",
|
|
2301
|
-
value: function onClickShowPreview(e) {
|
|
2302
|
-
e.stopPropagation();
|
|
2303
|
-
if (!this.options.channelName) return;
|
|
2304
|
-
backbone__WEBPACK_IMPORTED_MODULE_0__["Radio"].channel(this.options.channelName).trigger('click:show:preview');
|
|
2305
|
-
}
|
|
2306
|
-
}, {
|
|
2307
|
-
key: "logAction",
|
|
2308
|
-
value: function logAction() {
|
|
2309
|
-
var analyticsOptions = {
|
|
2310
|
-
location: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_4__["LocationContext"].VideoListItem,
|
|
2311
|
-
actionType: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_4__["UserAction"].SetAccess,
|
|
2312
|
-
entity: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_4__["EntityType"].Video,
|
|
2313
|
-
workflowPhase: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_4__["WorkflowPhase"].Start
|
|
2314
|
-
};
|
|
2315
|
-
var data = {
|
|
2316
|
-
id: this.model.get('id')
|
|
2317
|
-
};
|
|
2318
|
-
_libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_5__["AnalyticsHelper"].logUserAction(data, analyticsOptions);
|
|
2319
|
-
}
|
|
2320
|
-
}, {
|
|
2321
|
-
key: "viewOptions",
|
|
2322
|
-
value: function viewOptions() {
|
|
2323
|
-
return {
|
|
2324
|
-
styles: shared_components_video_item_video_item_actions_base_video_item_actions_scss__WEBPACK_IMPORTED_MODULE_6___default.a,
|
|
2325
|
-
previewDisplayed: this.options.previewDisplayed,
|
|
2326
|
-
previewSvg: _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_2__["SvgHelper"].getSvg(_libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_2__["cvSvgLibrary"].Preview)
|
|
2327
|
-
};
|
|
2328
|
-
}
|
|
2329
|
-
}, {
|
|
2330
|
-
key: "name",
|
|
2331
|
-
get: function get() {
|
|
2332
|
-
return 'VideoItemVideoAccessComponent';
|
|
2333
|
-
}
|
|
2334
|
-
}, {
|
|
2335
|
-
key: "template",
|
|
2336
|
-
get: function get() {
|
|
2337
|
-
return _VideoItemVideoAccessActions_hbs__WEBPACK_IMPORTED_MODULE_7___default.a;
|
|
2338
|
-
}
|
|
2339
|
-
}, {
|
|
2340
|
-
key: "lang",
|
|
2341
|
-
get: function get() {
|
|
2342
|
-
return 'shared.videoItemVideoAccessActions';
|
|
2343
|
-
}
|
|
2344
|
-
}, {
|
|
2345
|
-
key: "className",
|
|
2346
|
-
get: function get() {
|
|
2347
|
-
return 'd-flex h-100 flex-column align-items-end justify-content-between';
|
|
2348
|
-
}
|
|
2349
|
-
}, {
|
|
2350
|
-
key: "appLinks",
|
|
2351
|
-
get: function get() {
|
|
2352
|
-
return {
|
|
2353
|
-
'.applink-manage-video-access': {
|
|
2354
|
-
application: _constants__WEBPACK_IMPORTED_MODULE_3__["AppChannels"].VIDEO_ACCESS,
|
|
2355
|
-
action: _constants__WEBPACK_IMPORTED_MODULE_3__["Actions"].Shared.MANAGE_VIDEO_ACCESS,
|
|
2356
|
-
args: [this.model.get('id')]
|
|
2357
|
-
}
|
|
2358
|
-
};
|
|
2359
|
-
}
|
|
2360
|
-
}]);
|
|
2361
|
-
|
|
2362
|
-
return VideoItemVideoAccessActionsComponent;
|
|
2363
|
-
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__["Core"].Component);
|
|
2364
|
-
|
|
2365
|
-
/***/ }),
|
|
2366
|
-
|
|
2367
|
-
/***/ "./src/shared/components/video-item/video-item-metadata/base/VideoItemMetadata.hbs":
|
|
2368
|
-
/*!*****************************************************************************************!*\
|
|
2369
|
-
!*** ./src/shared/components/video-item/video-item-metadata/base/VideoItemMetadata.hbs ***!
|
|
2370
|
-
\*****************************************************************************************/
|
|
2371
|
-
/*! no static exports found */
|
|
2372
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2373
|
-
|
|
2374
|
-
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
2375
|
-
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
2376
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;
|
|
2377
|
-
|
|
2378
|
-
return " <span class=\"d-inline-block ml-1 tool-tip "
|
|
2379
|
-
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.svgContainer : stack1), depth0))
|
|
2380
|
-
+ "\" title=\""
|
|
2381
|
-
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.restrictionMessage : stack1), depth0))
|
|
2382
|
-
+ "\">"
|
|
2383
|
-
+ ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.lockSvg : stack1), depth0)) != null ? stack1 : "")
|
|
2384
|
-
+ "</span>\r\n";
|
|
2385
|
-
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
2386
|
-
var stack1, helper, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {});
|
|
2387
|
-
|
|
2388
|
-
return "<div class=\"series-region\"></div>\r\n<a class=\"cursor-pointer applink-show-video h6 text-dark\">"
|
|
2389
|
-
+ container.escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(alias2,{"name":"name","hash":{},"data":data}) : helper)))
|
|
2390
|
-
+ "</a>\r\n"
|
|
2391
|
-
+ ((stack1 = helpers["if"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.hasAdminRestriction : stack1),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
2392
|
-
+ "<div class=\"sources-region\"></div>\r\n<div class=\"badges-region\"></div>";
|
|
2393
|
-
},"useData":true});
|
|
2394
|
-
|
|
2395
|
-
/***/ }),
|
|
2396
|
-
|
|
2397
|
-
/***/ "./src/shared/components/video-item/video-item-metadata/base/VideoItemMetadataComponent.ts":
|
|
2398
|
-
/*!*************************************************************************************************!*\
|
|
2399
|
-
!*** ./src/shared/components/video-item/video-item-metadata/base/VideoItemMetadataComponent.ts ***!
|
|
2400
|
-
\*************************************************************************************************/
|
|
2401
|
-
/*! exports provided: VideoItemMetadataComponent */
|
|
2402
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2403
|
-
|
|
2404
|
-
"use strict";
|
|
2405
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2406
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VideoItemMetadataComponent", function() { return VideoItemMetadataComponent; });
|
|
2407
|
-
/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! underscore */ "underscore");
|
|
2408
|
-
/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(underscore__WEBPACK_IMPORTED_MODULE_0__);
|
|
2409
|
-
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
2410
|
-
/* harmony import */ var _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../../../libs/shared/src/utils/SvgHelper */ "../../libs/shared/src/utils/SvgHelper.ts");
|
|
2411
|
-
/* harmony import */ var _libs_shared_src_legacy_behaviors_tooltip_TooltipBehavior__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../../libs/shared/src/legacy/behaviors/tooltip/TooltipBehavior */ "../../libs/shared/src/legacy/behaviors/tooltip/TooltipBehavior.ts");
|
|
2412
|
-
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../constants */ "./src/shared/constants/index.ts");
|
|
2413
|
-
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../utils */ "./src/shared/utils/index.ts");
|
|
2414
|
-
/* harmony import */ var _video_item_badges_VideoItemBadgesComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../video-item-badges/VideoItemBadgesComponent */ "./src/shared/components/video-item/video-item-metadata/video-item-badges/VideoItemBadgesComponent.ts");
|
|
2415
|
-
/* harmony import */ var _video_sources_metadata_VideoSourcesMetadataComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../video-sources-metadata/VideoSourcesMetadataComponent */ "./src/shared/components/video-item/video-item-metadata/video-sources-metadata/VideoSourcesMetadataComponent.ts");
|
|
2416
|
-
/* harmony import */ var _video_item_series_VideoItemSeriesComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../video-item-series/VideoItemSeriesComponent */ "./src/shared/components/video-item/video-item-metadata/video-item-series/VideoItemSeriesComponent.ts");
|
|
2417
|
-
/* harmony import */ var _VideoItemMetadata_hbs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./VideoItemMetadata.hbs */ "./src/shared/components/video-item/video-item-metadata/base/VideoItemMetadata.hbs");
|
|
2418
|
-
/* harmony import */ var _VideoItemMetadata_hbs__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_VideoItemMetadata_hbs__WEBPACK_IMPORTED_MODULE_9__);
|
|
2419
|
-
/* harmony import */ var _video_item_metadata_scss__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./video-item-metadata.scss */ "./src/shared/components/video-item/video-item-metadata/base/video-item-metadata.scss");
|
|
2420
|
-
/* harmony import */ var _video_item_metadata_scss__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_video_item_metadata_scss__WEBPACK_IMPORTED_MODULE_10__);
|
|
2421
|
-
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); }
|
|
2422
|
-
|
|
2423
|
-
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; }
|
|
2424
|
-
|
|
2425
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2426
|
-
|
|
2427
|
-
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); } }
|
|
2428
|
-
|
|
2429
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
2430
|
-
|
|
2431
|
-
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); }
|
|
2432
|
-
|
|
2433
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
2434
|
-
|
|
2435
|
-
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); }; }
|
|
2436
|
-
|
|
2437
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
2438
|
-
|
|
2439
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
2440
|
-
|
|
2441
|
-
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; } }
|
|
2442
|
-
|
|
2443
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
var VideoItemMetadataComponent = /*#__PURE__*/function (_Core$Component) {
|
|
2457
|
-
_inherits(VideoItemMetadataComponent, _Core$Component);
|
|
2458
|
-
|
|
2459
|
-
var _super = _createSuper(VideoItemMetadataComponent);
|
|
2460
|
-
|
|
2461
|
-
function VideoItemMetadataComponent(options) {
|
|
2462
|
-
_classCallCheck(this, VideoItemMetadataComponent);
|
|
2463
|
-
|
|
2464
|
-
return _super.call(this, options);
|
|
2465
|
-
}
|
|
2466
|
-
|
|
2467
|
-
_createClass(VideoItemMetadataComponent, [{
|
|
2468
|
-
key: "initialize",
|
|
2469
|
-
value: function initialize() {
|
|
2470
|
-
this.listenTo(this.model, 'change:restrictions', this.render);
|
|
2471
|
-
}
|
|
2472
|
-
}, {
|
|
2473
|
-
key: "regions",
|
|
2474
|
-
value: function regions() {
|
|
2475
|
-
return {
|
|
2476
|
-
sources: {
|
|
2477
|
-
el: '.sources-region',
|
|
2478
|
-
replaceElement: true
|
|
2479
|
-
},
|
|
2480
|
-
badges: {
|
|
2481
|
-
el: '.badges-region',
|
|
2482
|
-
replaceElement: true
|
|
2483
|
-
},
|
|
2484
|
-
series: {
|
|
2485
|
-
el: '.series-region',
|
|
2486
|
-
replaceElement: true
|
|
2487
|
-
}
|
|
2488
|
-
};
|
|
2489
|
-
}
|
|
2490
|
-
}, {
|
|
2491
|
-
key: "events",
|
|
2492
|
-
value: function events() {
|
|
2493
|
-
return _defineProperty({}, "click .".concat(_video_item_metadata_scss__WEBPACK_IMPORTED_MODULE_10___default.a.svgContainer), 'onClickBadge');
|
|
2494
|
-
}
|
|
2495
|
-
}, {
|
|
2496
|
-
key: "onClickBadge",
|
|
2497
|
-
value: function onClickBadge(e) {
|
|
2498
|
-
e.stopPropagation();
|
|
2499
|
-
}
|
|
2500
|
-
}, {
|
|
2501
|
-
key: "renderSources",
|
|
2502
|
-
value: function renderSources() {
|
|
2503
|
-
var options = underscore__WEBPACK_IMPORTED_MODULE_0__["extend"]({}, {
|
|
2504
|
-
model: this.model
|
|
2505
|
-
}, this.options.sourceMetadataOptions);
|
|
2506
|
-
|
|
2507
|
-
this.showChildView('sources', new _video_sources_metadata_VideoSourcesMetadataComponent__WEBPACK_IMPORTED_MODULE_7__["VideoSourcesMetadataComponent"](options));
|
|
2508
|
-
}
|
|
2509
|
-
}, {
|
|
2510
|
-
key: "renderSeries",
|
|
2511
|
-
value: function renderSeries() {
|
|
2512
|
-
this.showChildView('series', new _video_item_series_VideoItemSeriesComponent__WEBPACK_IMPORTED_MODULE_8__["VideoItemSeriesComponent"]({
|
|
2513
|
-
model: this.model,
|
|
2514
|
-
highlight: this.options.sourceMetadataOptions && !!this.options.sourceMetadataOptions.highlight
|
|
2515
|
-
}));
|
|
2516
|
-
}
|
|
2517
|
-
}, {
|
|
2518
|
-
key: "renderBadges",
|
|
2519
|
-
value: function renderBadges() {
|
|
2520
|
-
this.showChildView('badges', new _video_item_badges_VideoItemBadgesComponent__WEBPACK_IMPORTED_MODULE_6__["VideoItemBadgesComponent"]({
|
|
2521
|
-
model: this.model
|
|
2522
|
-
}));
|
|
2523
|
-
}
|
|
2524
|
-
}, {
|
|
2525
|
-
key: "viewOptions",
|
|
2526
|
-
value: function viewOptions() {
|
|
2527
|
-
return {
|
|
2528
|
-
styles: _video_item_metadata_scss__WEBPACK_IMPORTED_MODULE_10___default.a,
|
|
2529
|
-
hasAdminRestriction: _utils__WEBPACK_IMPORTED_MODULE_5__["RestrictedAccessHelper"].hasAdminRestriction(this.model),
|
|
2530
|
-
restrictionMessage: _utils__WEBPACK_IMPORTED_MODULE_5__["RestrictedAccessHelper"].getRestrictionTooltipMessage(this.model),
|
|
2531
|
-
lockSvg: _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_2__["SvgHelper"].getSvg(_libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_2__["cvSvgLibrary"].Lock)
|
|
2532
|
-
};
|
|
2533
|
-
}
|
|
2534
|
-
}, {
|
|
2535
|
-
key: "onRender",
|
|
2536
|
-
value: function onRender() {
|
|
2537
|
-
this.renderSeries();
|
|
2538
|
-
this.renderSources();
|
|
2539
|
-
this.renderBadges();
|
|
2540
|
-
}
|
|
2541
|
-
}, {
|
|
2542
|
-
key: "name",
|
|
2543
|
-
get: function get() {
|
|
2544
|
-
return 'VideoItemMetadataComponent';
|
|
2545
|
-
}
|
|
2546
|
-
}, {
|
|
2547
|
-
key: "template",
|
|
2548
|
-
get: function get() {
|
|
2549
|
-
return _VideoItemMetadata_hbs__WEBPACK_IMPORTED_MODULE_9___default.a;
|
|
2550
|
-
}
|
|
2551
|
-
}, {
|
|
2552
|
-
key: "behaviors",
|
|
2553
|
-
get: function get() {
|
|
2554
|
-
return [{
|
|
2555
|
-
behaviorClass: _libs_shared_src_legacy_behaviors_tooltip_TooltipBehavior__WEBPACK_IMPORTED_MODULE_3__["TooltipBehavior"],
|
|
2556
|
-
selector: '.tool-tip'
|
|
2557
|
-
}];
|
|
2558
|
-
}
|
|
2559
|
-
}, {
|
|
2560
|
-
key: "appLinks",
|
|
2561
|
-
get: function get() {
|
|
2562
|
-
return {
|
|
2563
|
-
'.applink-show-video': {
|
|
2564
|
-
application: _constants__WEBPACK_IMPORTED_MODULE_4__["AppChannels"].LIBRARY_EDITOR,
|
|
2565
|
-
action: _constants__WEBPACK_IMPORTED_MODULE_4__["Actions"].LibraryEditor.VIDEO_DETAILS,
|
|
2566
|
-
args: [this.model.get('id')]
|
|
2567
|
-
}
|
|
2568
|
-
};
|
|
2569
|
-
}
|
|
2570
|
-
}]);
|
|
2571
|
-
|
|
2572
|
-
return VideoItemMetadataComponent;
|
|
2573
|
-
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__["Core"].Component);
|
|
2574
|
-
|
|
2575
|
-
/***/ }),
|
|
2576
|
-
|
|
2577
|
-
/***/ "./src/shared/components/video-item/video-item-metadata/base/video-item-metadata.scss":
|
|
2578
|
-
/*!********************************************************************************************!*\
|
|
2579
|
-
!*** ./src/shared/components/video-item/video-item-metadata/base/video-item-metadata.scss ***!
|
|
2580
|
-
\********************************************************************************************/
|
|
2581
|
-
/*! no static exports found */
|
|
2582
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2583
|
-
|
|
2584
|
-
// extracted by mini-css-extract-plugin
|
|
2585
|
-
module.exports = {"lock":"cv--lock--25RMJ","svgContainer":"cv--svgContainer--1k8KB"};
|
|
2586
|
-
|
|
2587
|
-
/***/ }),
|
|
2588
|
-
|
|
2589
|
-
/***/ "./src/shared/components/video-item/video-item-metadata/video-item-awaiting-review-metadata/VideoItemAwaitingReviewMetadata.hbs":
|
|
2590
|
-
/*!**************************************************************************************************************************************!*\
|
|
2591
|
-
!*** ./src/shared/components/video-item/video-item-metadata/video-item-awaiting-review-metadata/VideoItemAwaitingReviewMetadata.hbs ***!
|
|
2592
|
-
\**************************************************************************************************************************************/
|
|
2593
|
-
/*! no static exports found */
|
|
2594
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2595
|
-
|
|
2596
|
-
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
2597
|
-
module.exports = (Handlebars['default'] || Handlebars).template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
2598
|
-
var stack1, helper, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;
|
|
2599
|
-
|
|
2600
|
-
return "<div class=\"series-region\"></div>\r\n<a class=\"cursor-pointer h6 video-title text-dark\" href=\""
|
|
2601
|
-
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.videoUrl : stack1), depth0))
|
|
2602
|
-
+ "\" target=\"_blank\">"
|
|
2603
|
-
+ alias3(((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)))
|
|
2604
|
-
+ "</a>\r\n<a class=\"svg-container d-inline-block align-bottom text-muted no-decoration\" href=\""
|
|
2605
|
-
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.videoUrl : stack1), depth0))
|
|
2606
|
-
+ "\" target=\"_blank\">"
|
|
2607
|
-
+ ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.openExternalSvg : stack1), depth0)) != null ? stack1 : "")
|
|
2608
|
-
+ "</a>\r\n<div class=\"badges-region\"></div>";
|
|
2609
|
-
},"useData":true});
|
|
2610
|
-
|
|
2611
|
-
/***/ }),
|
|
2612
|
-
|
|
2613
|
-
/***/ "./src/shared/components/video-item/video-item-metadata/video-item-awaiting-review-metadata/VideoItemAwaitingReviewMetadataComponent.ts":
|
|
2614
|
-
/*!**********************************************************************************************************************************************!*\
|
|
2615
|
-
!*** ./src/shared/components/video-item/video-item-metadata/video-item-awaiting-review-metadata/VideoItemAwaitingReviewMetadataComponent.ts ***!
|
|
2616
|
-
\**********************************************************************************************************************************************/
|
|
2617
|
-
/*! exports provided: VideoItemAwaitingReviewMetadataComponent */
|
|
2618
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2619
|
-
|
|
2620
|
-
"use strict";
|
|
2621
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2622
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VideoItemAwaitingReviewMetadataComponent", function() { return VideoItemAwaitingReviewMetadataComponent; });
|
|
2623
|
-
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
2624
|
-
/* harmony import */ var _libs_common_src_backbone_utils_UrlHelper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../../libs/common/src/backbone/utils/UrlHelper */ "../../libs/common/src/backbone/utils/UrlHelper.ts");
|
|
2625
|
-
/* harmony import */ var _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../../../libs/shared/src/utils/SvgHelper */ "../../libs/shared/src/utils/SvgHelper.ts");
|
|
2626
|
-
/* harmony import */ var shared_components_video_item_video_item_metadata_base_video_item_metadata_scss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! shared/components/video-item/video-item-metadata/base/video-item-metadata.scss */ "./src/shared/components/video-item/video-item-metadata/base/video-item-metadata.scss");
|
|
2627
|
-
/* harmony import */ var shared_components_video_item_video_item_metadata_base_video_item_metadata_scss__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(shared_components_video_item_video_item_metadata_base_video_item_metadata_scss__WEBPACK_IMPORTED_MODULE_3__);
|
|
2628
|
-
/* harmony import */ var _video_item_badges_VideoItemBadgesComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../video-item-badges/VideoItemBadgesComponent */ "./src/shared/components/video-item/video-item-metadata/video-item-badges/VideoItemBadgesComponent.ts");
|
|
2629
|
-
/* harmony import */ var _video_item_series_VideoItemSeriesComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../video-item-series/VideoItemSeriesComponent */ "./src/shared/components/video-item/video-item-metadata/video-item-series/VideoItemSeriesComponent.ts");
|
|
2630
|
-
/* harmony import */ var _VideoItemAwaitingReviewMetadata_hbs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./VideoItemAwaitingReviewMetadata.hbs */ "./src/shared/components/video-item/video-item-metadata/video-item-awaiting-review-metadata/VideoItemAwaitingReviewMetadata.hbs");
|
|
2631
|
-
/* harmony import */ var _VideoItemAwaitingReviewMetadata_hbs__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_VideoItemAwaitingReviewMetadata_hbs__WEBPACK_IMPORTED_MODULE_6__);
|
|
2632
|
-
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); }
|
|
2633
|
-
|
|
2634
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2635
|
-
|
|
2636
|
-
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); } }
|
|
2637
|
-
|
|
2638
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
2639
|
-
|
|
2640
|
-
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); }
|
|
2641
|
-
|
|
2642
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
2643
|
-
|
|
2644
|
-
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); }; }
|
|
2645
|
-
|
|
2646
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
2647
|
-
|
|
2648
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
2649
|
-
|
|
2650
|
-
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; } }
|
|
2651
|
-
|
|
2652
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
var VideoItemAwaitingReviewMetadataComponent = /*#__PURE__*/function (_Core$Component) {
|
|
2662
|
-
_inherits(VideoItemAwaitingReviewMetadataComponent, _Core$Component);
|
|
2663
|
-
|
|
2664
|
-
var _super = _createSuper(VideoItemAwaitingReviewMetadataComponent);
|
|
2665
|
-
|
|
2666
|
-
function VideoItemAwaitingReviewMetadataComponent(options) {
|
|
2667
|
-
_classCallCheck(this, VideoItemAwaitingReviewMetadataComponent);
|
|
2668
|
-
|
|
2669
|
-
return _super.call(this, options);
|
|
2670
|
-
}
|
|
2671
|
-
|
|
2672
|
-
_createClass(VideoItemAwaitingReviewMetadataComponent, [{
|
|
2673
|
-
key: "events",
|
|
2674
|
-
value: function events() {
|
|
2675
|
-
return {
|
|
2676
|
-
'click .video-title': 'onClickMetadata',
|
|
2677
|
-
'click .svg-container': 'onClickMetadata'
|
|
2678
|
-
};
|
|
2679
|
-
}
|
|
2680
|
-
}, {
|
|
2681
|
-
key: "regions",
|
|
2682
|
-
value: function regions() {
|
|
2683
|
-
return {
|
|
2684
|
-
badges: {
|
|
2685
|
-
el: '.badges-region',
|
|
2686
|
-
replaceElement: true
|
|
2687
|
-
},
|
|
2688
|
-
series: {
|
|
2689
|
-
el: '.series-region',
|
|
2690
|
-
replaceElement: true
|
|
2691
|
-
}
|
|
2692
|
-
};
|
|
2693
|
-
}
|
|
2694
|
-
}, {
|
|
2695
|
-
key: "onClickMetadata",
|
|
2696
|
-
value: function onClickMetadata(e) {
|
|
2697
|
-
e.stopPropagation();
|
|
2698
|
-
}
|
|
2699
|
-
}, {
|
|
2700
|
-
key: "getVideoUrl",
|
|
2701
|
-
value: function getVideoUrl() {
|
|
2702
|
-
return _libs_common_src_backbone_utils_UrlHelper__WEBPACK_IMPORTED_MODULE_1__["UrlHelper"].safeUrlConcat(this.options.config.get('onlineUrl'), "videos/".concat(this.model.get('id')));
|
|
2703
|
-
}
|
|
2704
|
-
}, {
|
|
2705
|
-
key: "getSeriesUrl",
|
|
2706
|
-
value: function getSeriesUrl() {
|
|
2707
|
-
if (!this.model.series) return;
|
|
2708
|
-
return _libs_common_src_backbone_utils_UrlHelper__WEBPACK_IMPORTED_MODULE_1__["UrlHelper"].safeUrlConcat(this.options.config.get('onlineUrl'), "series/".concat(this.model.series.id));
|
|
2709
|
-
}
|
|
2710
|
-
}, {
|
|
2711
|
-
key: "renderBadges",
|
|
2712
|
-
value: function renderBadges() {
|
|
2713
|
-
this.showChildView('badges', new _video_item_badges_VideoItemBadgesComponent__WEBPACK_IMPORTED_MODULE_4__["VideoItemBadgesComponent"]({
|
|
2714
|
-
model: this.model,
|
|
2715
|
-
showReviewBadge: true
|
|
2716
|
-
}));
|
|
2717
|
-
}
|
|
2718
|
-
}, {
|
|
2719
|
-
key: "renderSeries",
|
|
2720
|
-
value: function renderSeries() {
|
|
2721
|
-
this.showChildView('series', new _video_item_series_VideoItemSeriesComponent__WEBPACK_IMPORTED_MODULE_5__["VideoItemSeriesComponent"]({
|
|
2722
|
-
model: this.model,
|
|
2723
|
-
highlight: false,
|
|
2724
|
-
seriesUrl: this.getSeriesUrl()
|
|
2725
|
-
}));
|
|
2726
|
-
}
|
|
2727
|
-
}, {
|
|
2728
|
-
key: "viewOptions",
|
|
2729
|
-
value: function viewOptions() {
|
|
2730
|
-
return {
|
|
2731
|
-
styles: shared_components_video_item_video_item_metadata_base_video_item_metadata_scss__WEBPACK_IMPORTED_MODULE_3___default.a,
|
|
2732
|
-
videoUrl: this.getVideoUrl(),
|
|
2733
|
-
openExternalSvg: _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_2__["SvgHelper"].getSvg(_libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_2__["cvSvgLibrary"].NewWindow)
|
|
2734
|
-
};
|
|
2735
|
-
}
|
|
2736
|
-
}, {
|
|
2737
|
-
key: "onRender",
|
|
2738
|
-
value: function onRender() {
|
|
2739
|
-
this.renderSeries();
|
|
2740
|
-
this.renderBadges();
|
|
2741
|
-
}
|
|
2742
|
-
}, {
|
|
2743
|
-
key: "name",
|
|
2744
|
-
get: function get() {
|
|
2745
|
-
return 'VideoItemAwaitingReviewMetadataComponent';
|
|
2746
|
-
}
|
|
2747
|
-
}, {
|
|
2748
|
-
key: "template",
|
|
2749
|
-
get: function get() {
|
|
2750
|
-
return _VideoItemAwaitingReviewMetadata_hbs__WEBPACK_IMPORTED_MODULE_6___default.a;
|
|
2751
|
-
}
|
|
2752
|
-
}]);
|
|
2753
|
-
|
|
2754
|
-
return VideoItemAwaitingReviewMetadataComponent;
|
|
2755
|
-
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].Component);
|
|
2756
|
-
|
|
2757
|
-
/***/ }),
|
|
2758
|
-
|
|
2759
|
-
/***/ "./src/shared/components/video-item/video-item-metadata/video-item-badges/VideoItemBadges.hbs":
|
|
2760
|
-
/*!****************************************************************************************************!*\
|
|
2761
|
-
!*** ./src/shared/components/video-item/video-item-metadata/video-item-badges/VideoItemBadges.hbs ***!
|
|
2762
|
-
\****************************************************************************************************/
|
|
2763
|
-
/*! no static exports found */
|
|
2764
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2765
|
-
|
|
2766
|
-
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
2767
|
-
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
2768
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression;
|
|
2769
|
-
|
|
2770
|
-
return " <span class=\"badge p-1 "
|
|
2771
|
-
+ alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.interactive : stack1), depth0))
|
|
2772
|
-
+ "\">"
|
|
2773
|
-
+ alias2((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"interactive",{"name":"lang","hash":{},"data":data}))
|
|
2774
|
-
+ "</span>\r\n";
|
|
2775
|
-
},"3":function(container,depth0,helpers,partials,data) {
|
|
2776
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;
|
|
2777
|
-
|
|
2778
|
-
return " <span class=\"badge p-1 tool-tip "
|
|
2779
|
-
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.rating : stack1), depth0))
|
|
2780
|
-
+ " "
|
|
2781
|
-
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.ratingColorClass : stack1), depth0))
|
|
2782
|
-
+ "\" title=\""
|
|
2783
|
-
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.rating : depth0)) != null ? stack1.name : stack1), depth0))
|
|
2784
|
-
+ "\">"
|
|
2785
|
-
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.rating : depth0)) != null ? stack1.code : stack1), depth0))
|
|
2786
|
-
+ "</span>\r\n";
|
|
2787
|
-
},"5":function(container,depth0,helpers,partials,data) {
|
|
2788
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda;
|
|
2789
|
-
|
|
2790
|
-
return " <span class=\"d-inline-block tool-tip "
|
|
2791
|
-
+ container.escapeExpression(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.svgContainer : stack1), depth0))
|
|
2792
|
-
+ "\" title=\"Subtitles\">"
|
|
2793
|
-
+ ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.closeCaptionSvg : stack1), depth0)) != null ? stack1 : "")
|
|
2794
|
-
+ "</span>\r\n";
|
|
2795
|
-
},"7":function(container,depth0,helpers,partials,data) {
|
|
2796
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda;
|
|
2797
|
-
|
|
2798
|
-
return " <span class=\"d-inline-block tool-tip "
|
|
2799
|
-
+ container.escapeExpression(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.svgContainer : stack1), depth0))
|
|
2800
|
-
+ "\" title=\"Resources\">"
|
|
2801
|
-
+ ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.resourcesSvg : stack1), depth0)) != null ? stack1 : "")
|
|
2802
|
-
+ "</span>\r\n";
|
|
2803
|
-
},"9":function(container,depth0,helpers,partials,data) {
|
|
2804
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;
|
|
2805
|
-
|
|
2806
|
-
return " <span class=\"badge p-1 "
|
|
2807
|
-
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.awaitingReviewBadgeClass : stack1), depth0))
|
|
2808
|
-
+ "\">"
|
|
2809
|
-
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.awaitingReviewMsg : stack1), depth0))
|
|
2810
|
-
+ "</span>\r\n";
|
|
2811
|
-
},"11":function(container,depth0,helpers,partials,data) {
|
|
2812
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;
|
|
2813
|
-
|
|
2814
|
-
return " <span class=\"badge p-1 "
|
|
2815
|
-
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.restrictionBadgeClass : stack1), depth0))
|
|
2816
|
-
+ "\">"
|
|
2817
|
-
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.restrictionMessage : stack1), depth0))
|
|
2818
|
-
+ "</span>\r\n";
|
|
2819
|
-
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
2820
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {});
|
|
2821
|
-
|
|
2822
|
-
return "<div class=\"mt-1 "
|
|
2823
|
-
+ container.escapeExpression(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.badgesWrapper : stack1), depth0))
|
|
2824
|
-
+ "\">\r\n"
|
|
2825
|
-
+ ((stack1 = helpers["if"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.interactive : stack1),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
2826
|
-
+ "\r\n"
|
|
2827
|
-
+ ((stack1 = helpers["if"].call(alias2,((stack1 = (depth0 != null ? depth0.rating : depth0)) != null ? stack1.code : stack1),{"name":"if","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
2828
|
-
+ "\r\n"
|
|
2829
|
-
+ ((stack1 = helpers["if"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.subtitles : stack1),{"name":"if","hash":{},"fn":container.program(5, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
2830
|
-
+ "\r\n"
|
|
2831
|
-
+ ((stack1 = helpers["if"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.resources : stack1),{"name":"if","hash":{},"fn":container.program(7, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
2832
|
-
+ "\r\n"
|
|
2833
|
-
+ ((stack1 = helpers["if"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.awaitingReviewMsg : stack1),{"name":"if","hash":{},"fn":container.program(9, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
2834
|
-
+ "\r\n"
|
|
2835
|
-
+ ((stack1 = helpers["if"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.restrictionMessage : stack1),{"name":"if","hash":{},"fn":container.program(11, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
2836
|
-
+ "</div>";
|
|
2837
|
-
},"useData":true});
|
|
2838
|
-
|
|
2839
|
-
/***/ }),
|
|
2840
|
-
|
|
2841
|
-
/***/ "./src/shared/components/video-item/video-item-metadata/video-item-badges/VideoItemBadgesComponent.ts":
|
|
2842
|
-
/*!************************************************************************************************************!*\
|
|
2843
|
-
!*** ./src/shared/components/video-item/video-item-metadata/video-item-badges/VideoItemBadgesComponent.ts ***!
|
|
2844
|
-
\************************************************************************************************************/
|
|
2845
|
-
/*! exports provided: VideoItemBadgesComponent */
|
|
2846
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2847
|
-
|
|
2848
|
-
"use strict";
|
|
2849
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2850
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VideoItemBadgesComponent", function() { return VideoItemBadgesComponent; });
|
|
2851
|
-
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
2852
|
-
/* 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");
|
|
2853
|
-
/* harmony import */ var _libs_shared_src_legacy_behaviors_tooltip_TooltipBehavior__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../../../libs/shared/src/legacy/behaviors/tooltip/TooltipBehavior */ "../../libs/shared/src/legacy/behaviors/tooltip/TooltipBehavior.ts");
|
|
2854
|
-
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../utils */ "./src/shared/utils/index.ts");
|
|
2855
|
-
/* harmony import */ var _apps_library_editor_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../apps/library-editor/utils */ "./src/apps/library-editor/utils/index.ts");
|
|
2856
|
-
/* harmony import */ var _VideoItemBadges_hbs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./VideoItemBadges.hbs */ "./src/shared/components/video-item/video-item-metadata/video-item-badges/VideoItemBadges.hbs");
|
|
2857
|
-
/* harmony import */ var _VideoItemBadges_hbs__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_VideoItemBadges_hbs__WEBPACK_IMPORTED_MODULE_5__);
|
|
2858
|
-
/* harmony import */ var _video_item_badges_scss__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./video-item-badges.scss */ "./src/shared/components/video-item/video-item-metadata/video-item-badges/video-item-badges.scss");
|
|
2859
|
-
/* harmony import */ var _video_item_badges_scss__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_video_item_badges_scss__WEBPACK_IMPORTED_MODULE_6__);
|
|
2860
|
-
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); }
|
|
2861
|
-
|
|
2862
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2863
|
-
|
|
2864
|
-
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); } }
|
|
2865
|
-
|
|
2866
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
2867
|
-
|
|
2868
|
-
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); }
|
|
2869
|
-
|
|
2870
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
2871
|
-
|
|
2872
|
-
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); }; }
|
|
2873
|
-
|
|
2874
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
2875
|
-
|
|
2876
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
2877
|
-
|
|
2878
|
-
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; } }
|
|
2879
|
-
|
|
2880
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
var VideoItemBadgesComponent = /*#__PURE__*/function (_Core$Component) {
|
|
2890
|
-
_inherits(VideoItemBadgesComponent, _Core$Component);
|
|
2891
|
-
|
|
2892
|
-
var _super = _createSuper(VideoItemBadgesComponent);
|
|
2893
|
-
|
|
2894
|
-
function VideoItemBadgesComponent(options) {
|
|
2895
|
-
_classCallCheck(this, VideoItemBadgesComponent);
|
|
2896
|
-
|
|
2897
|
-
return _super.call(this, options);
|
|
2898
|
-
}
|
|
2899
|
-
|
|
2900
|
-
_createClass(VideoItemBadgesComponent, [{
|
|
2901
|
-
key: "events",
|
|
2902
|
-
value: function events() {
|
|
2903
|
-
return {
|
|
2904
|
-
'click span': 'onClick'
|
|
2905
|
-
};
|
|
2906
|
-
}
|
|
2907
|
-
}, {
|
|
2908
|
-
key: "onClick",
|
|
2909
|
-
value: function onClick(e) {
|
|
2910
|
-
e.stopPropagation();
|
|
2911
|
-
}
|
|
2912
|
-
}, {
|
|
2913
|
-
key: "viewOptions",
|
|
2914
|
-
value: function viewOptions() {
|
|
2915
|
-
var awaitingReviewMessage = this.options.showReviewBadge && _utils__WEBPACK_IMPORTED_MODULE_3__["RestrictedAccessHelper"].getRestrictionTooltipMessage(this.model);
|
|
2916
|
-
var restrictionMessage = this.options.showRestrictionBadge && _utils__WEBPACK_IMPORTED_MODULE_3__["RestrictedAccessHelper"].getRestrictionTooltipMessage(this.model);
|
|
2917
|
-
return {
|
|
2918
|
-
styles: _video_item_badges_scss__WEBPACK_IMPORTED_MODULE_6___default.a,
|
|
2919
|
-
interactive: _apps_library_editor_utils__WEBPACK_IMPORTED_MODULE_4__["VideoDetailsHelper"].isInteractive(this.model),
|
|
2920
|
-
// subtitles: this.model.subtitles && this.model.get('subtitles').length,
|
|
2921
|
-
// resources: this.model.resources && this.model.get('resources').length,
|
|
2922
|
-
subtitles: false,
|
|
2923
|
-
resources: false,
|
|
2924
|
-
ratingColorClass: _apps_library_editor_utils__WEBPACK_IMPORTED_MODULE_4__["VideoDetailsHelper"].mapRatingToClass(this.model.rating.get('value')),
|
|
2925
|
-
closeCaptionSvg: _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_1__["SvgHelper"].getSvg(_libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_1__["cvSvgLibrary"].CloseCaptionBadge),
|
|
2926
|
-
resourcesSvg: _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_1__["SvgHelper"].getSvg(_libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_1__["cvSvgLibrary"].Resources),
|
|
2927
|
-
awaitingReviewMessage: awaitingReviewMessage,
|
|
2928
|
-
awaitingReviewBadgeClass: _utils__WEBPACK_IMPORTED_MODULE_3__["RestrictedAccessHelper"].getReviewBadgeClassName(this.model, _video_item_badges_scss__WEBPACK_IMPORTED_MODULE_6___default.a.reviewBadge, _video_item_badges_scss__WEBPACK_IMPORTED_MODULE_6___default.a.urgentReviewBadge),
|
|
2929
|
-
restrictionMessage: restrictionMessage
|
|
2930
|
-
};
|
|
2931
|
-
}
|
|
2932
|
-
}, {
|
|
2933
|
-
key: "name",
|
|
2934
|
-
get: function get() {
|
|
2935
|
-
return 'VideoItemBadgesComponent';
|
|
2936
|
-
}
|
|
2937
|
-
}, {
|
|
2938
|
-
key: "template",
|
|
2939
|
-
get: function get() {
|
|
2940
|
-
return _VideoItemBadges_hbs__WEBPACK_IMPORTED_MODULE_5___default.a;
|
|
2941
|
-
}
|
|
2942
|
-
}, {
|
|
2943
|
-
key: "lang",
|
|
2944
|
-
get: function get() {
|
|
2945
|
-
return 'shared.videoItemBadges';
|
|
2946
|
-
}
|
|
2947
|
-
}, {
|
|
2948
|
-
key: "behaviors",
|
|
2949
|
-
get: function get() {
|
|
2950
|
-
return [{
|
|
2951
|
-
behaviorClass: _libs_shared_src_legacy_behaviors_tooltip_TooltipBehavior__WEBPACK_IMPORTED_MODULE_2__["TooltipBehavior"],
|
|
2952
|
-
selector: '.tool-tip'
|
|
2953
|
-
}];
|
|
2954
|
-
}
|
|
2955
|
-
}, {
|
|
2956
|
-
key: "defaults",
|
|
2957
|
-
get: function get() {
|
|
2958
|
-
return {
|
|
2959
|
-
showRestrictionBadge: false,
|
|
2960
|
-
showReviewBadge: false
|
|
2961
|
-
};
|
|
2962
|
-
}
|
|
2963
|
-
}]);
|
|
2964
|
-
|
|
2965
|
-
return VideoItemBadgesComponent;
|
|
2966
|
-
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].Component);
|
|
2967
|
-
|
|
2968
|
-
/***/ }),
|
|
2969
|
-
|
|
2970
|
-
/***/ "./src/shared/components/video-item/video-item-metadata/video-item-badges/video-item-badges.scss":
|
|
2971
|
-
/*!*******************************************************************************************************!*\
|
|
2972
|
-
!*** ./src/shared/components/video-item/video-item-metadata/video-item-badges/video-item-badges.scss ***!
|
|
2973
|
-
\*******************************************************************************************************/
|
|
2974
|
-
/*! no static exports found */
|
|
2975
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2976
|
-
|
|
2977
|
-
// extracted by mini-css-extract-plugin
|
|
2978
|
-
module.exports = {"interactive":"cv--interactive--37GpR","rating":"cv--rating--2lAYT","svgContainer":"cv--svgContainer--19ncQ","badgesWrapper":"cv--badgesWrapper--26lCi","restrictionBadgeClass":"cv--restrictionBadgeClass--UdQeS","reviewBadge":"cv--reviewBadge--ExFLF","urgentReviewBadge":"cv--urgentReviewBadge--3dcfL"};
|
|
2979
|
-
|
|
2980
|
-
/***/ }),
|
|
2981
|
-
|
|
2982
|
-
/***/ "./src/shared/components/video-item/video-item-metadata/video-item-past-releases-metadata/VideoItemPastReleasesMetadata.hbs":
|
|
2983
|
-
/*!**********************************************************************************************************************************!*\
|
|
2984
|
-
!*** ./src/shared/components/video-item/video-item-metadata/video-item-past-releases-metadata/VideoItemPastReleasesMetadata.hbs ***!
|
|
2985
|
-
\**********************************************************************************************************************************/
|
|
2986
|
-
/*! no static exports found */
|
|
2987
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2988
|
-
|
|
2989
|
-
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
2990
|
-
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
2991
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;
|
|
2992
|
-
|
|
2993
|
-
return " <span class=\"d-inline-block svg-container align-bottom tool-tip "
|
|
2994
|
-
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.lock : stack1), depth0))
|
|
2995
|
-
+ "\" title=\""
|
|
2996
|
-
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.restrictionMessage : stack1), depth0))
|
|
2997
|
-
+ "\">"
|
|
2998
|
-
+ ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.lockSvg : stack1), depth0)) != null ? stack1 : "")
|
|
2999
|
-
+ "</span>\r\n";
|
|
3000
|
-
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
3001
|
-
var stack1, helper, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {});
|
|
3002
|
-
|
|
3003
|
-
return "<div class=\"series-region\"></div>\r\n<a class=\"cursor-pointer h6 video-title text-dark\" href=\""
|
|
3004
|
-
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.videoUrl : stack1), depth0))
|
|
3005
|
-
+ "\" target=\"_blank\">"
|
|
3006
|
-
+ alias3(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(alias4,{"name":"name","hash":{},"data":data}) : helper)))
|
|
3007
|
-
+ "</a>\r\n<a class=\"svg-container d-inline-block align-bottom text-muted no-decoration\" href=\""
|
|
3008
|
-
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.videoUrl : stack1), depth0))
|
|
3009
|
-
+ "\" target=\"_blank\">"
|
|
3010
|
-
+ ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.openExternalSvg : stack1), depth0)) != null ? stack1 : "")
|
|
3011
|
-
+ "</a>\r\n"
|
|
3012
|
-
+ ((stack1 = helpers["if"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.hasAdminRestriction : stack1),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
3013
|
-
+ "<div class=\"badges-region\"></div>";
|
|
3014
|
-
},"useData":true});
|
|
3015
|
-
|
|
3016
|
-
/***/ }),
|
|
3017
|
-
|
|
3018
|
-
/***/ "./src/shared/components/video-item/video-item-metadata/video-item-past-releases-metadata/VideoItemPastReleasesMetadataComponent.ts":
|
|
3019
|
-
/*!******************************************************************************************************************************************!*\
|
|
3020
|
-
!*** ./src/shared/components/video-item/video-item-metadata/video-item-past-releases-metadata/VideoItemPastReleasesMetadataComponent.ts ***!
|
|
3021
|
-
\******************************************************************************************************************************************/
|
|
3022
|
-
/*! exports provided: VideoItemPastReleasesMetadataComponent */
|
|
3023
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3024
|
-
|
|
3025
|
-
"use strict";
|
|
3026
|
-
__webpack_require__.r(__webpack_exports__);
|
|
3027
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VideoItemPastReleasesMetadataComponent", function() { return VideoItemPastReleasesMetadataComponent; });
|
|
3028
|
-
/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! underscore */ "underscore");
|
|
3029
|
-
/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(underscore__WEBPACK_IMPORTED_MODULE_0__);
|
|
3030
|
-
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
3031
|
-
/* harmony import */ var _libs_common_src_backbone_utils_UrlHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../../../libs/common/src/backbone/utils/UrlHelper */ "../../libs/common/src/backbone/utils/UrlHelper.ts");
|
|
3032
|
-
/* harmony import */ var _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../../libs/shared/src/utils/SvgHelper */ "../../libs/shared/src/utils/SvgHelper.ts");
|
|
3033
|
-
/* harmony import */ var _libs_shared_src_legacy_behaviors_tooltip_TooltipBehavior__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../../../libs/shared/src/legacy/behaviors/tooltip/TooltipBehavior */ "../../libs/shared/src/legacy/behaviors/tooltip/TooltipBehavior.ts");
|
|
3034
|
-
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../utils */ "./src/shared/utils/index.ts");
|
|
3035
|
-
/* harmony import */ var _video_item_badges_VideoItemBadgesComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../video-item-badges/VideoItemBadgesComponent */ "./src/shared/components/video-item/video-item-metadata/video-item-badges/VideoItemBadgesComponent.ts");
|
|
3036
|
-
/* harmony import */ var shared_components_video_item_video_item_metadata_base_video_item_metadata_scss__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! shared/components/video-item/video-item-metadata/base/video-item-metadata.scss */ "./src/shared/components/video-item/video-item-metadata/base/video-item-metadata.scss");
|
|
3037
|
-
/* harmony import */ var shared_components_video_item_video_item_metadata_base_video_item_metadata_scss__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(shared_components_video_item_video_item_metadata_base_video_item_metadata_scss__WEBPACK_IMPORTED_MODULE_7__);
|
|
3038
|
-
/* harmony import */ var _VideoItemPastReleasesMetadata_hbs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./VideoItemPastReleasesMetadata.hbs */ "./src/shared/components/video-item/video-item-metadata/video-item-past-releases-metadata/VideoItemPastReleasesMetadata.hbs");
|
|
3039
|
-
/* harmony import */ var _VideoItemPastReleasesMetadata_hbs__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_VideoItemPastReleasesMetadata_hbs__WEBPACK_IMPORTED_MODULE_8__);
|
|
3040
|
-
/* harmony import */ var _video_item_past_releases_metadata_scss__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./video-item-past-releases-metadata.scss */ "./src/shared/components/video-item/video-item-metadata/video-item-past-releases-metadata/video-item-past-releases-metadata.scss");
|
|
3041
|
-
/* harmony import */ var _video_item_past_releases_metadata_scss__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_video_item_past_releases_metadata_scss__WEBPACK_IMPORTED_MODULE_9__);
|
|
3042
|
-
/* harmony import */ var _video_item_series_VideoItemSeriesComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../video-item-series/VideoItemSeriesComponent */ "./src/shared/components/video-item/video-item-metadata/video-item-series/VideoItemSeriesComponent.ts");
|
|
3043
|
-
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); }
|
|
3044
|
-
|
|
3045
|
-
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; }
|
|
3046
|
-
|
|
3047
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3048
|
-
|
|
3049
|
-
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); } }
|
|
3050
|
-
|
|
3051
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3052
|
-
|
|
3053
|
-
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); }
|
|
3054
|
-
|
|
3055
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3056
|
-
|
|
3057
|
-
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); }; }
|
|
3058
|
-
|
|
3059
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3060
|
-
|
|
3061
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3062
|
-
|
|
3063
|
-
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; } }
|
|
3064
|
-
|
|
3065
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
var VideoItemPastReleasesMetadataComponent = /*#__PURE__*/function (_Core$Component) {
|
|
3079
|
-
_inherits(VideoItemPastReleasesMetadataComponent, _Core$Component);
|
|
3080
|
-
|
|
3081
|
-
var _super = _createSuper(VideoItemPastReleasesMetadataComponent);
|
|
3082
|
-
|
|
3083
|
-
function VideoItemPastReleasesMetadataComponent(options) {
|
|
3084
|
-
_classCallCheck(this, VideoItemPastReleasesMetadataComponent);
|
|
3085
|
-
|
|
3086
|
-
return _super.call(this, options);
|
|
3087
|
-
}
|
|
3088
|
-
|
|
3089
|
-
_createClass(VideoItemPastReleasesMetadataComponent, [{
|
|
3090
|
-
key: "initialize",
|
|
3091
|
-
value: function initialize() {
|
|
3092
|
-
this.listenTo(this.model, 'change:restrictions', this.render);
|
|
3093
|
-
}
|
|
3094
|
-
}, {
|
|
3095
|
-
key: "regions",
|
|
3096
|
-
value: function regions() {
|
|
3097
|
-
return {
|
|
3098
|
-
badges: {
|
|
3099
|
-
el: '.badges-region',
|
|
3100
|
-
replaceElement: true
|
|
3101
|
-
},
|
|
3102
|
-
series: {
|
|
3103
|
-
el: '.series-region',
|
|
3104
|
-
replaceElement: true
|
|
3105
|
-
}
|
|
3106
|
-
};
|
|
3107
|
-
}
|
|
3108
|
-
}, {
|
|
3109
|
-
key: "events",
|
|
3110
|
-
value: function events() {
|
|
3111
|
-
var _ref;
|
|
3112
|
-
|
|
3113
|
-
return _ref = {
|
|
3114
|
-
'click .video-title': 'onClickMetadata'
|
|
3115
|
-
}, _defineProperty(_ref, "click .".concat(_video_item_past_releases_metadata_scss__WEBPACK_IMPORTED_MODULE_9___default.a.series), 'onClickMetadata'), _defineProperty(_ref, 'click .svg-container', 'onClickMetadata'), _ref;
|
|
3116
|
-
}
|
|
3117
|
-
}, {
|
|
3118
|
-
key: "onClickMetadata",
|
|
3119
|
-
value: function onClickMetadata(e) {
|
|
3120
|
-
e.stopPropagation();
|
|
3121
|
-
}
|
|
3122
|
-
}, {
|
|
3123
|
-
key: "getVideoUrl",
|
|
3124
|
-
value: function getVideoUrl() {
|
|
3125
|
-
return _libs_common_src_backbone_utils_UrlHelper__WEBPACK_IMPORTED_MODULE_2__["UrlHelper"].safeUrlConcat(this.options.config.get('onlineUrl'), "videos/".concat(this.model.get('id')));
|
|
3126
|
-
}
|
|
3127
|
-
}, {
|
|
3128
|
-
key: "getSeriesUrl",
|
|
3129
|
-
value: function getSeriesUrl() {
|
|
3130
|
-
if (!this.model.series) return;
|
|
3131
|
-
return _libs_common_src_backbone_utils_UrlHelper__WEBPACK_IMPORTED_MODULE_2__["UrlHelper"].safeUrlConcat(this.options.config.get('onlineUrl'), "series/".concat(this.model.series.id));
|
|
3132
|
-
}
|
|
3133
|
-
}, {
|
|
3134
|
-
key: "renderBadges",
|
|
3135
|
-
value: function renderBadges() {
|
|
3136
|
-
this.showChildView('badges', new _video_item_badges_VideoItemBadgesComponent__WEBPACK_IMPORTED_MODULE_6__["VideoItemBadgesComponent"]({
|
|
3137
|
-
model: this.model
|
|
3138
|
-
}));
|
|
3139
|
-
}
|
|
3140
|
-
}, {
|
|
3141
|
-
key: "renderSeries",
|
|
3142
|
-
value: function renderSeries() {
|
|
3143
|
-
this.showChildView('series', new _video_item_series_VideoItemSeriesComponent__WEBPACK_IMPORTED_MODULE_10__["VideoItemSeriesComponent"]({
|
|
3144
|
-
model: this.model,
|
|
3145
|
-
highlight: false,
|
|
3146
|
-
seriesUrl: this.getSeriesUrl()
|
|
3147
|
-
}));
|
|
3148
|
-
}
|
|
3149
|
-
}, {
|
|
3150
|
-
key: "viewOptions",
|
|
3151
|
-
value: function viewOptions() {
|
|
3152
|
-
return {
|
|
3153
|
-
styles: underscore__WEBPACK_IMPORTED_MODULE_0__["extend"]({}, shared_components_video_item_video_item_metadata_base_video_item_metadata_scss__WEBPACK_IMPORTED_MODULE_7___default.a, _video_item_past_releases_metadata_scss__WEBPACK_IMPORTED_MODULE_9___default.a),
|
|
3154
|
-
videoUrl: this.getVideoUrl(),
|
|
3155
|
-
openExternalSvg: _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_3__["SvgHelper"].getSvg(_libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_3__["cvSvgLibrary"].NewWindow),
|
|
3156
|
-
hasAdminRestriction: _utils__WEBPACK_IMPORTED_MODULE_5__["RestrictedAccessHelper"].hasAdminRestriction(this.model),
|
|
3157
|
-
restrictionMessage: _utils__WEBPACK_IMPORTED_MODULE_5__["RestrictedAccessHelper"].getRestrictionTooltipMessage(this.model),
|
|
3158
|
-
lockSvg: _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_3__["SvgHelper"].getSvg(_libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_3__["cvSvgLibrary"].Lock)
|
|
3159
|
-
};
|
|
3160
|
-
}
|
|
3161
|
-
}, {
|
|
3162
|
-
key: "onRender",
|
|
3163
|
-
value: function onRender() {
|
|
3164
|
-
this.renderSeries();
|
|
3165
|
-
this.renderBadges();
|
|
3166
|
-
}
|
|
3167
|
-
}, {
|
|
3168
|
-
key: "name",
|
|
3169
|
-
get: function get() {
|
|
3170
|
-
return 'VideoItemPastReleasesMetadataComponent';
|
|
3171
|
-
}
|
|
3172
|
-
}, {
|
|
3173
|
-
key: "template",
|
|
3174
|
-
get: function get() {
|
|
3175
|
-
return _VideoItemPastReleasesMetadata_hbs__WEBPACK_IMPORTED_MODULE_8___default.a;
|
|
3176
|
-
}
|
|
3177
|
-
}, {
|
|
3178
|
-
key: "lang",
|
|
3179
|
-
get: function get() {
|
|
3180
|
-
return 'shared.videoItemPastReleasesMetadata';
|
|
3181
|
-
}
|
|
3182
|
-
}, {
|
|
3183
|
-
key: "behaviors",
|
|
3184
|
-
get: function get() {
|
|
3185
|
-
return [{
|
|
3186
|
-
behaviorClass: _libs_shared_src_legacy_behaviors_tooltip_TooltipBehavior__WEBPACK_IMPORTED_MODULE_4__["TooltipBehavior"],
|
|
3187
|
-
selector: '.tool-tip'
|
|
3188
|
-
}];
|
|
3189
|
-
}
|
|
3190
|
-
}]);
|
|
3191
|
-
|
|
3192
|
-
return VideoItemPastReleasesMetadataComponent;
|
|
3193
|
-
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__["Core"].Component);
|
|
3194
|
-
|
|
3195
|
-
/***/ }),
|
|
3196
|
-
|
|
3197
|
-
/***/ "./src/shared/components/video-item/video-item-metadata/video-item-past-releases-metadata/video-item-past-releases-metadata.scss":
|
|
3198
|
-
/*!***************************************************************************************************************************************!*\
|
|
3199
|
-
!*** ./src/shared/components/video-item/video-item-metadata/video-item-past-releases-metadata/video-item-past-releases-metadata.scss ***!
|
|
3200
|
-
\***************************************************************************************************************************************/
|
|
3201
|
-
/*! no static exports found */
|
|
3202
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
3203
|
-
|
|
3204
|
-
// extracted by mini-css-extract-plugin
|
|
3205
|
-
module.exports = {"series":"cv--series--P3914"};
|
|
3206
|
-
|
|
3207
|
-
/***/ }),
|
|
3208
|
-
|
|
3209
|
-
/***/ "./src/shared/components/video-item/video-item-metadata/video-item-processing-metadata/VideoItemProcessingMetadata.hbs":
|
|
3210
|
-
/*!*****************************************************************************************************************************!*\
|
|
3211
|
-
!*** ./src/shared/components/video-item/video-item-metadata/video-item-processing-metadata/VideoItemProcessingMetadata.hbs ***!
|
|
3212
|
-
\*****************************************************************************************************************************/
|
|
3213
|
-
/*! no static exports found */
|
|
3214
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
3215
|
-
|
|
3216
|
-
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
3217
|
-
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
3218
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda;
|
|
3219
|
-
|
|
3220
|
-
return " <span class=\"d-inline-block align-middle ml-1 "
|
|
3221
|
-
+ container.escapeExpression(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.lockSvgContainer : stack1), depth0))
|
|
3222
|
-
+ "\">"
|
|
3223
|
-
+ ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.lockSvg : stack1), depth0)) != null ? stack1 : "")
|
|
3224
|
-
+ "</span>\r\n";
|
|
3225
|
-
},"3":function(container,depth0,helpers,partials,data) {
|
|
3226
|
-
return "text-danger";
|
|
3227
|
-
},"5":function(container,depth0,helpers,partials,data) {
|
|
3228
|
-
var stack1, alias1=container.propertyIsEnumerable;
|
|
3229
|
-
|
|
3230
|
-
return " "
|
|
3231
|
-
+ container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.status : stack1), depth0))
|
|
3232
|
-
+ "\r\n";
|
|
3233
|
-
},"7":function(container,depth0,helpers,partials,data) {
|
|
3234
|
-
var alias1=container.propertyIsEnumerable;
|
|
3235
|
-
|
|
3236
|
-
return " "
|
|
3237
|
-
+ container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"waiting",{"name":"lang","hash":{},"data":data}))
|
|
3238
|
-
+ "\r\n";
|
|
3239
|
-
},"9":function(container,depth0,helpers,partials,data) {
|
|
3240
|
-
var alias1=container.propertyIsEnumerable;
|
|
3241
|
-
|
|
3242
|
-
return " <br><i>"
|
|
3243
|
-
+ container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"anotherAdmin",{"name":"lang","hash":{},"data":data}))
|
|
3244
|
-
+ "</i>\r\n";
|
|
3245
|
-
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
3246
|
-
var stack1, helper, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {});
|
|
3247
|
-
|
|
3248
|
-
return "<a class=\"applink-show-video h6 text-dark\">"
|
|
3249
|
-
+ container.escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(alias2,{"name":"name","hash":{},"data":data}) : helper)))
|
|
3250
|
-
+ "</a>\r\n"
|
|
3251
|
-
+ ((stack1 = helpers["if"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.hasAdminRestriction : stack1),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
3252
|
-
+ "<div class=\"processing "
|
|
3253
|
-
+ ((stack1 = helpers["if"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.hasError : stack1),{"name":"if","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
3254
|
-
+ "\">\r\n"
|
|
3255
|
-
+ ((stack1 = helpers["if"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.hasPendingItem : stack1),{"name":"if","hash":{},"fn":container.program(5, data, 0),"inverse":container.program(7, data, 0),"data":data})) != null ? stack1 : "")
|
|
3256
|
-
+ ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.hasPendingItem : stack1),{"name":"unless","hash":{},"fn":container.program(9, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
3257
|
-
+ "</div>";
|
|
3258
|
-
},"useData":true});
|
|
3259
|
-
|
|
3260
|
-
/***/ }),
|
|
3261
|
-
|
|
3262
|
-
/***/ "./src/shared/components/video-item/video-item-metadata/video-item-processing-metadata/VideoItemProcessingMetadataComponent.ts":
|
|
3263
|
-
/*!*************************************************************************************************************************************!*\
|
|
3264
|
-
!*** ./src/shared/components/video-item/video-item-metadata/video-item-processing-metadata/VideoItemProcessingMetadataComponent.ts ***!
|
|
3265
|
-
\*************************************************************************************************************************************/
|
|
3266
|
-
/*! exports provided: VideoItemProcessingMetadataComponent */
|
|
3267
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3268
|
-
|
|
3269
|
-
"use strict";
|
|
3270
|
-
__webpack_require__.r(__webpack_exports__);
|
|
3271
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VideoItemProcessingMetadataComponent", function() { return VideoItemProcessingMetadataComponent; });
|
|
3272
|
-
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
3273
|
-
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../constants */ "./src/shared/constants/index.ts");
|
|
3274
|
-
/* harmony import */ var _libs_shared_src_enums_CurationStatus__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../../../libs/shared/src/enums/CurationStatus */ "../../libs/shared/src/enums/CurationStatus.ts");
|
|
3275
|
-
/* harmony import */ var _libs_shared_src_apps_upload_utils_PendingItemsHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../../libs/shared/src/apps/upload/utils/PendingItemsHelper */ "../../libs/shared/src/apps/upload/utils/PendingItemsHelper.ts");
|
|
3276
|
-
/* harmony import */ var _VideoItemProcessingMetadata_hbs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./VideoItemProcessingMetadata.hbs */ "./src/shared/components/video-item/video-item-metadata/video-item-processing-metadata/VideoItemProcessingMetadata.hbs");
|
|
3277
|
-
/* harmony import */ var _VideoItemProcessingMetadata_hbs__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_VideoItemProcessingMetadata_hbs__WEBPACK_IMPORTED_MODULE_4__);
|
|
3278
|
-
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); }
|
|
3279
|
-
|
|
3280
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3281
|
-
|
|
3282
|
-
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); } }
|
|
3283
|
-
|
|
3284
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3285
|
-
|
|
3286
|
-
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); }
|
|
3287
|
-
|
|
3288
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3289
|
-
|
|
3290
|
-
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); }; }
|
|
3291
|
-
|
|
3292
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3293
|
-
|
|
3294
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3295
|
-
|
|
3296
|
-
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; } }
|
|
3297
|
-
|
|
3298
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
var VideoItemProcessingMetadataComponent = /*#__PURE__*/function (_Core$Component) {
|
|
3306
|
-
_inherits(VideoItemProcessingMetadataComponent, _Core$Component);
|
|
3307
|
-
|
|
3308
|
-
var _super = _createSuper(VideoItemProcessingMetadataComponent);
|
|
3309
|
-
|
|
3310
|
-
function VideoItemProcessingMetadataComponent(options) {
|
|
3311
|
-
_classCallCheck(this, VideoItemProcessingMetadataComponent);
|
|
3312
|
-
|
|
3313
|
-
return _super.call(this, options);
|
|
3314
|
-
}
|
|
3315
|
-
|
|
3316
|
-
_createClass(VideoItemProcessingMetadataComponent, [{
|
|
3317
|
-
key: "initialize",
|
|
3318
|
-
value: function initialize() {
|
|
3319
|
-
this.bindListeners();
|
|
3320
|
-
}
|
|
3321
|
-
}, {
|
|
3322
|
-
key: "bindListeners",
|
|
3323
|
-
value: function bindListeners() {
|
|
3324
|
-
if (this.model.get('status') !== _libs_shared_src_enums_CurationStatus__WEBPACK_IMPORTED_MODULE_2__["CurationStatus"].Processing) return;
|
|
3325
|
-
if (!this.options.pendingItems) return;
|
|
3326
|
-
if (this.pendingItem) return;
|
|
3327
|
-
this.listenTo(this.options.pendingItems, 'update', this.mapPendingItem);
|
|
3328
|
-
this.mapPendingItem();
|
|
3329
|
-
}
|
|
3330
|
-
}, {
|
|
3331
|
-
key: "mapPendingItem",
|
|
3332
|
-
value: function mapPendingItem() {
|
|
3333
|
-
this.pendingItem = this.options.pendingItems.get(this.model.get('id'));
|
|
3334
|
-
this.render();
|
|
3335
|
-
if (!this.pendingItem) return;
|
|
3336
|
-
this.stopListening(this.options.pendingItems, 'update');
|
|
3337
|
-
this.listenTo(this.pendingItem, 'change:foregroundProgress change:backgroundProgress change:pendingProcessStatus', this.render);
|
|
3338
|
-
}
|
|
3339
|
-
}, {
|
|
3340
|
-
key: "viewOptions",
|
|
3341
|
-
value: function viewOptions() {
|
|
3342
|
-
if (!this.pendingItem) {
|
|
3343
|
-
return {
|
|
3344
|
-
hasPendingItem: false
|
|
3345
|
-
};
|
|
3346
|
-
}
|
|
3347
|
-
|
|
3348
|
-
return {
|
|
3349
|
-
status: _libs_shared_src_apps_upload_utils_PendingItemsHelper__WEBPACK_IMPORTED_MODULE_3__["PendingItemsHelper"].getStatus(this.pendingItem),
|
|
3350
|
-
hasError: _libs_shared_src_apps_upload_utils_PendingItemsHelper__WEBPACK_IMPORTED_MODULE_3__["PendingItemsHelper"].hasError(this.pendingItem),
|
|
3351
|
-
hasPendingItem: true
|
|
3352
|
-
};
|
|
3353
|
-
}
|
|
3354
|
-
}, {
|
|
3355
|
-
key: "lang",
|
|
3356
|
-
get: function get() {
|
|
3357
|
-
return 'shared.videoItemProcessingMetadata';
|
|
3358
|
-
}
|
|
3359
|
-
}, {
|
|
3360
|
-
key: "name",
|
|
3361
|
-
get: function get() {
|
|
3362
|
-
return 'VideoItemProcessingMetadataComponent';
|
|
3363
|
-
}
|
|
3364
|
-
}, {
|
|
3365
|
-
key: "template",
|
|
3366
|
-
get: function get() {
|
|
3367
|
-
return _VideoItemProcessingMetadata_hbs__WEBPACK_IMPORTED_MODULE_4___default.a;
|
|
3368
|
-
}
|
|
3369
|
-
}, {
|
|
3370
|
-
key: "appLinks",
|
|
3371
|
-
get: function get() {
|
|
3372
|
-
var seriesId = this.model.series ? this.model.series.id : '';
|
|
3373
|
-
return {
|
|
3374
|
-
'.applink-series': {
|
|
3375
|
-
application: _constants__WEBPACK_IMPORTED_MODULE_1__["AppChannels"].LIBRARY_EDITOR,
|
|
3376
|
-
action: _constants__WEBPACK_IMPORTED_MODULE_1__["Actions"].LibraryEditor.FOLDER,
|
|
3377
|
-
args: [seriesId]
|
|
3378
|
-
}
|
|
3379
|
-
};
|
|
3380
|
-
}
|
|
3381
|
-
}]);
|
|
3382
|
-
|
|
3383
|
-
return VideoItemProcessingMetadataComponent;
|
|
3384
|
-
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].Component);
|
|
3385
|
-
|
|
3386
|
-
/***/ }),
|
|
3387
|
-
|
|
3388
|
-
/***/ "./src/shared/components/video-item/video-item-metadata/video-item-search-metadata/VideoItemSearchMetadata.hbs":
|
|
3389
|
-
/*!*********************************************************************************************************************!*\
|
|
3390
|
-
!*** ./src/shared/components/video-item/video-item-metadata/video-item-search-metadata/VideoItemSearchMetadata.hbs ***!
|
|
3391
|
-
\*********************************************************************************************************************/
|
|
3392
|
-
/*! no static exports found */
|
|
3393
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
3394
|
-
|
|
3395
|
-
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
3396
|
-
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
3397
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;
|
|
3398
|
-
|
|
3399
|
-
return " <span class=\"d-inline-block ml-1 tool-tip "
|
|
3400
|
-
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.svgContainer : stack1), depth0))
|
|
3401
|
-
+ "\" title=\""
|
|
3402
|
-
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.restrictionMessage : stack1), depth0))
|
|
3403
|
-
+ "\">"
|
|
3404
|
-
+ ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.lockSvg : stack1), depth0)) != null ? stack1 : "")
|
|
3405
|
-
+ "</span>\r\n";
|
|
3406
|
-
},"3":function(container,depth0,helpers,partials,data) {
|
|
3407
|
-
var stack1;
|
|
3408
|
-
|
|
3409
|
-
return " <span class=\"d-block pt-1\">"
|
|
3410
|
-
+ ((stack1 = container.lambda(depth0, depth0)) != null ? stack1 : "")
|
|
3411
|
-
+ "</span>\r\n";
|
|
3412
|
-
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
3413
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {});
|
|
3414
|
-
|
|
3415
|
-
return "<div class=\"series-region\"></div>\r\n<a class=\"cursor-pointer applink-show-video h6 text-dark\">"
|
|
3416
|
-
+ ((stack1 = container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.name : stack1), depth0)) != null ? stack1 : "")
|
|
3417
|
-
+ "</a>\r\n"
|
|
3418
|
-
+ ((stack1 = helpers["if"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.hasAdminRestriction : stack1),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
3419
|
-
+ "<div class=\"sources-region\"></div>\r\n<div class=\"badges-region\"></div>\r\n"
|
|
3420
|
-
+ ((stack1 = helpers.each.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.keyPhrases : stack1),{"name":"each","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "");
|
|
3421
|
-
},"useData":true});
|
|
3422
|
-
|
|
3423
|
-
/***/ }),
|
|
3424
|
-
|
|
3425
|
-
/***/ "./src/shared/components/video-item/video-item-metadata/video-item-search-metadata/VideoItemSearchMetadataComponent.ts":
|
|
3426
|
-
/*!*****************************************************************************************************************************!*\
|
|
3427
|
-
!*** ./src/shared/components/video-item/video-item-metadata/video-item-search-metadata/VideoItemSearchMetadataComponent.ts ***!
|
|
3428
|
-
\*****************************************************************************************************************************/
|
|
3429
|
-
/*! exports provided: VideoItemSearchMetadataComponent */
|
|
3430
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3431
|
-
|
|
3432
|
-
"use strict";
|
|
3433
|
-
__webpack_require__.r(__webpack_exports__);
|
|
3434
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VideoItemSearchMetadataComponent", function() { return VideoItemSearchMetadataComponent; });
|
|
3435
|
-
/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! underscore */ "underscore");
|
|
3436
|
-
/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(underscore__WEBPACK_IMPORTED_MODULE_0__);
|
|
3437
|
-
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
3438
|
-
/* harmony import */ var _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../../../libs/shared/src/utils/SvgHelper */ "../../libs/shared/src/utils/SvgHelper.ts");
|
|
3439
|
-
/* harmony import */ var _libs_shared_src_legacy_behaviors_tooltip_TooltipBehavior__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../../libs/shared/src/legacy/behaviors/tooltip/TooltipBehavior */ "../../libs/shared/src/legacy/behaviors/tooltip/TooltipBehavior.ts");
|
|
3440
|
-
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../constants */ "./src/shared/constants/index.ts");
|
|
3441
|
-
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../utils */ "./src/shared/utils/index.ts");
|
|
3442
|
-
/* harmony import */ var _video_sources_metadata_VideoSourcesMetadataComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../video-sources-metadata/VideoSourcesMetadataComponent */ "./src/shared/components/video-item/video-item-metadata/video-sources-metadata/VideoSourcesMetadataComponent.ts");
|
|
3443
|
-
/* harmony import */ var _video_item_badges_VideoItemBadgesComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../video-item-badges/VideoItemBadgesComponent */ "./src/shared/components/video-item/video-item-metadata/video-item-badges/VideoItemBadgesComponent.ts");
|
|
3444
|
-
/* harmony import */ var _base_video_item_metadata_scss__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../base/video-item-metadata.scss */ "./src/shared/components/video-item/video-item-metadata/base/video-item-metadata.scss");
|
|
3445
|
-
/* harmony import */ var _base_video_item_metadata_scss__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_base_video_item_metadata_scss__WEBPACK_IMPORTED_MODULE_8__);
|
|
3446
|
-
/* harmony import */ var _VideoItemSearchMetadata_hbs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./VideoItemSearchMetadata.hbs */ "./src/shared/components/video-item/video-item-metadata/video-item-search-metadata/VideoItemSearchMetadata.hbs");
|
|
3447
|
-
/* harmony import */ var _VideoItemSearchMetadata_hbs__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_VideoItemSearchMetadata_hbs__WEBPACK_IMPORTED_MODULE_9__);
|
|
3448
|
-
/* harmony import */ var _video_item_series_VideoItemSeriesComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../video-item-series/VideoItemSeriesComponent */ "./src/shared/components/video-item/video-item-metadata/video-item-series/VideoItemSeriesComponent.ts");
|
|
3449
|
-
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); }
|
|
3450
|
-
|
|
3451
|
-
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; }
|
|
3452
|
-
|
|
3453
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3454
|
-
|
|
3455
|
-
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); } }
|
|
3456
|
-
|
|
3457
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3458
|
-
|
|
3459
|
-
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); }
|
|
3460
|
-
|
|
3461
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3462
|
-
|
|
3463
|
-
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); }; }
|
|
3464
|
-
|
|
3465
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3466
|
-
|
|
3467
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3468
|
-
|
|
3469
|
-
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; } }
|
|
3470
|
-
|
|
3471
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
var VideoItemSearchMetadataComponent = /*#__PURE__*/function (_Core$Component) {
|
|
3485
|
-
_inherits(VideoItemSearchMetadataComponent, _Core$Component);
|
|
3486
|
-
|
|
3487
|
-
var _super = _createSuper(VideoItemSearchMetadataComponent);
|
|
3488
|
-
|
|
3489
|
-
function VideoItemSearchMetadataComponent(options) {
|
|
3490
|
-
_classCallCheck(this, VideoItemSearchMetadataComponent);
|
|
3491
|
-
|
|
3492
|
-
return _super.call(this, options);
|
|
3493
|
-
}
|
|
3494
|
-
|
|
3495
|
-
_createClass(VideoItemSearchMetadataComponent, [{
|
|
3496
|
-
key: "initialize",
|
|
3497
|
-
value: function initialize() {
|
|
3498
|
-
this.listenTo(this.model, 'change:restrictions', this.render);
|
|
3499
|
-
}
|
|
3500
|
-
}, {
|
|
3501
|
-
key: "regions",
|
|
3502
|
-
value: function regions() {
|
|
3503
|
-
return {
|
|
3504
|
-
sources: {
|
|
3505
|
-
el: '.sources-region',
|
|
3506
|
-
replaceElement: true
|
|
3507
|
-
},
|
|
3508
|
-
badges: {
|
|
3509
|
-
el: '.badges-region',
|
|
3510
|
-
replaceElement: true
|
|
3511
|
-
},
|
|
3512
|
-
series: {
|
|
3513
|
-
el: '.series-region',
|
|
3514
|
-
replaceElement: true
|
|
3515
|
-
}
|
|
3516
|
-
};
|
|
3517
|
-
}
|
|
3518
|
-
}, {
|
|
3519
|
-
key: "events",
|
|
3520
|
-
value: function events() {
|
|
3521
|
-
return _defineProperty({
|
|
3522
|
-
click: 'onClick'
|
|
3523
|
-
}, "click ".concat(_base_video_item_metadata_scss__WEBPACK_IMPORTED_MODULE_8___default.a.svgContainer), 'onClickSvg');
|
|
3524
|
-
}
|
|
3525
|
-
}, {
|
|
3526
|
-
key: "onClickSvg",
|
|
3527
|
-
value: function onClickSvg(e) {
|
|
3528
|
-
e.stopPropagation();
|
|
3529
|
-
}
|
|
3530
|
-
}, {
|
|
3531
|
-
key: "getKeyPhrases",
|
|
3532
|
-
value: function getKeyPhrases() {
|
|
3533
|
-
var _this = this;
|
|
3534
|
-
|
|
3535
|
-
var phrases = _utils__WEBPACK_IMPORTED_MODULE_5__["TextHelper"].extractKeyPhrases(this.model.get('description'), this.model.get('_matchedWords'), 100, 2);
|
|
3536
|
-
return phrases.map(function (p) {
|
|
3537
|
-
return _utils__WEBPACK_IMPORTED_MODULE_5__["TextHelper"].wordsHighlighter(_utils__WEBPACK_IMPORTED_MODULE_5__["TextHelper"].escapeExpression(p), _this.model.get('_matchedWords'));
|
|
3538
|
-
});
|
|
3539
|
-
}
|
|
3540
|
-
}, {
|
|
3541
|
-
key: "renderSources",
|
|
3542
|
-
value: function renderSources() {
|
|
3543
|
-
var options = underscore__WEBPACK_IMPORTED_MODULE_0__["extend"]({}, {
|
|
3544
|
-
model: this.model
|
|
3545
|
-
}, this.options.sourceMetadataOptions);
|
|
3546
|
-
|
|
3547
|
-
this.showChildView('sources', new _video_sources_metadata_VideoSourcesMetadataComponent__WEBPACK_IMPORTED_MODULE_6__["VideoSourcesMetadataComponent"](options));
|
|
3548
|
-
}
|
|
3549
|
-
}, {
|
|
3550
|
-
key: "renderSeries",
|
|
3551
|
-
value: function renderSeries() {
|
|
3552
|
-
this.showChildView('series', new _video_item_series_VideoItemSeriesComponent__WEBPACK_IMPORTED_MODULE_10__["VideoItemSeriesComponent"]({
|
|
3553
|
-
model: this.model,
|
|
3554
|
-
highlight: this.options.sourceMetadataOptions && !!this.options.sourceMetadataOptions.highlight
|
|
3555
|
-
}));
|
|
3556
|
-
}
|
|
3557
|
-
}, {
|
|
3558
|
-
key: "renderBadges",
|
|
3559
|
-
value: function renderBadges() {
|
|
3560
|
-
this.showChildView('badges', new _video_item_badges_VideoItemBadgesComponent__WEBPACK_IMPORTED_MODULE_7__["VideoItemBadgesComponent"]({
|
|
3561
|
-
model: this.model
|
|
3562
|
-
}));
|
|
3563
|
-
}
|
|
3564
|
-
}, {
|
|
3565
|
-
key: "viewOptions",
|
|
3566
|
-
value: function viewOptions() {
|
|
3567
|
-
return {
|
|
3568
|
-
styles: _base_video_item_metadata_scss__WEBPACK_IMPORTED_MODULE_8___default.a,
|
|
3569
|
-
name: _utils__WEBPACK_IMPORTED_MODULE_5__["TextHelper"].wordsHighlighter(_utils__WEBPACK_IMPORTED_MODULE_5__["TextHelper"].escapeExpression(this.model.get('name')), this.model.get('_matchedWords')),
|
|
3570
|
-
keyPhrases: this.getKeyPhrases(),
|
|
3571
|
-
hasAdminRestriction: _utils__WEBPACK_IMPORTED_MODULE_5__["RestrictedAccessHelper"].hasAdminRestriction(this.model),
|
|
3572
|
-
restrictionMessage: _utils__WEBPACK_IMPORTED_MODULE_5__["RestrictedAccessHelper"].getRestrictionTooltipMessage(this.model),
|
|
3573
|
-
lockSvg: _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_2__["SvgHelper"].getSvg(_libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_2__["cvSvgLibrary"].Lock)
|
|
3574
|
-
};
|
|
3575
|
-
}
|
|
3576
|
-
}, {
|
|
3577
|
-
key: "onRender",
|
|
3578
|
-
value: function onRender() {
|
|
3579
|
-
this.renderSeries();
|
|
3580
|
-
this.renderSources();
|
|
3581
|
-
this.renderBadges();
|
|
3582
|
-
}
|
|
3583
|
-
}, {
|
|
3584
|
-
key: "name",
|
|
3585
|
-
get: function get() {
|
|
3586
|
-
return 'VideoItemSearchMetadataComponent';
|
|
3587
|
-
}
|
|
3588
|
-
}, {
|
|
3589
|
-
key: "template",
|
|
3590
|
-
get: function get() {
|
|
3591
|
-
return _VideoItemSearchMetadata_hbs__WEBPACK_IMPORTED_MODULE_9___default.a;
|
|
3592
|
-
}
|
|
3593
|
-
}, {
|
|
3594
|
-
key: "behaviors",
|
|
3595
|
-
get: function get() {
|
|
3596
|
-
return [{
|
|
3597
|
-
behaviorClass: _libs_shared_src_legacy_behaviors_tooltip_TooltipBehavior__WEBPACK_IMPORTED_MODULE_3__["TooltipBehavior"],
|
|
3598
|
-
selector: '.tool-tip'
|
|
3599
|
-
}];
|
|
3600
|
-
}
|
|
3601
|
-
}, {
|
|
3602
|
-
key: "appLinks",
|
|
3603
|
-
get: function get() {
|
|
3604
|
-
return {
|
|
3605
|
-
'.applink-show-video': {
|
|
3606
|
-
application: _constants__WEBPACK_IMPORTED_MODULE_4__["AppChannels"].LIBRARY_EDITOR,
|
|
3607
|
-
action: _constants__WEBPACK_IMPORTED_MODULE_4__["Actions"].LibraryEditor.VIDEO_DETAILS,
|
|
3608
|
-
args: [this.model.get('id')]
|
|
3609
|
-
}
|
|
3610
|
-
};
|
|
3611
|
-
}
|
|
3612
|
-
}]);
|
|
3613
|
-
|
|
3614
|
-
return VideoItemSearchMetadataComponent;
|
|
3615
|
-
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__["Core"].Component);
|
|
3616
|
-
|
|
3617
|
-
/***/ }),
|
|
3618
|
-
|
|
3619
|
-
/***/ "./src/shared/components/video-item/video-item-metadata/video-item-video-access-metadata/VideoItemVideoAccessMetadata.hbs":
|
|
3620
|
-
/*!********************************************************************************************************************************!*\
|
|
3621
|
-
!*** ./src/shared/components/video-item/video-item-metadata/video-item-video-access-metadata/VideoItemVideoAccessMetadata.hbs ***!
|
|
3622
|
-
\********************************************************************************************************************************/
|
|
3623
|
-
/*! no static exports found */
|
|
3624
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
3625
|
-
|
|
3626
|
-
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
3627
|
-
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
3628
|
-
var stack1, helper, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;
|
|
3629
|
-
|
|
3630
|
-
return "<a class=\"cursor-pointer h6 video-title text-dark\" href=\""
|
|
3631
|
-
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.videoUrl : stack1), depth0))
|
|
3632
|
-
+ "\" target=\"_blank\">"
|
|
3633
|
-
+ alias3(((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)))
|
|
3634
|
-
+ "</a>\r\n<a class=\"svg-container d-inline-block align-bottom text-muted no-decoration\" href=\""
|
|
3635
|
-
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.videoUrl : stack1), depth0))
|
|
3636
|
-
+ "\" target=\"_blank\">"
|
|
3637
|
-
+ ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.openExternalSvg : stack1), depth0)) != null ? stack1 : "")
|
|
3638
|
-
+ "</a>\r\n";
|
|
3639
|
-
},"3":function(container,depth0,helpers,partials,data) {
|
|
3640
|
-
var helper, alias1=container.propertyIsEnumerable;
|
|
3641
|
-
|
|
3642
|
-
return "<a class=\"cursor-pointer applink-show-video h6\">"
|
|
3643
|
-
+ 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)))
|
|
3644
|
-
+ "</a>\r\n";
|
|
3645
|
-
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
3646
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;
|
|
3647
|
-
|
|
3648
|
-
return "<div class=\"series-region\"></div>\r\n"
|
|
3649
|
-
+ ((stack1 = helpers["if"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.linkToOnline : stack1),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.program(3, data, 0),"data":data})) != null ? stack1 : "")
|
|
3650
|
-
+ "<span class=\"d-inline-block ml-1 tool-tip "
|
|
3651
|
-
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.lock : stack1), depth0))
|
|
3652
|
-
+ " "
|
|
3653
|
-
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.svgContainer : stack1), depth0))
|
|
3654
|
-
+ "\" title=\""
|
|
3655
|
-
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.restrictionMessage : stack1), depth0))
|
|
3656
|
-
+ "\">"
|
|
3657
|
-
+ ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.lockSvg : stack1), depth0)) != null ? stack1 : "")
|
|
3658
|
-
+ "</span>\r\n<div class=\"sources-region\"></div>\r\n<div class=\"badges-region\"></div>";
|
|
3659
|
-
},"useData":true});
|
|
3660
|
-
|
|
3661
|
-
/***/ }),
|
|
3662
|
-
|
|
3663
|
-
/***/ "./src/shared/components/video-item/video-item-metadata/video-item-video-access-metadata/VideoItemVideoAccessMetadataComponent.ts":
|
|
3664
|
-
/*!****************************************************************************************************************************************!*\
|
|
3665
|
-
!*** ./src/shared/components/video-item/video-item-metadata/video-item-video-access-metadata/VideoItemVideoAccessMetadataComponent.ts ***!
|
|
3666
|
-
\****************************************************************************************************************************************/
|
|
3667
|
-
/*! exports provided: VideoItemVideoAccessMetadataComponent */
|
|
3668
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3669
|
-
|
|
3670
|
-
"use strict";
|
|
3671
|
-
__webpack_require__.r(__webpack_exports__);
|
|
3672
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VideoItemVideoAccessMetadataComponent", function() { return VideoItemVideoAccessMetadataComponent; });
|
|
3673
|
-
/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! underscore */ "underscore");
|
|
3674
|
-
/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(underscore__WEBPACK_IMPORTED_MODULE_0__);
|
|
3675
|
-
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
3676
|
-
/* harmony import */ var _libs_common_src_backbone_utils_UrlHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../../../libs/common/src/backbone/utils/UrlHelper */ "../../libs/common/src/backbone/utils/UrlHelper.ts");
|
|
3677
|
-
/* harmony import */ var _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../../libs/shared/src/utils/SvgHelper */ "../../libs/shared/src/utils/SvgHelper.ts");
|
|
3678
|
-
/* harmony import */ var _libs_shared_src_legacy_behaviors_tooltip_TooltipBehavior__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../../../libs/shared/src/legacy/behaviors/tooltip/TooltipBehavior */ "../../libs/shared/src/legacy/behaviors/tooltip/TooltipBehavior.ts");
|
|
3679
|
-
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../constants */ "./src/shared/constants/index.ts");
|
|
3680
|
-
/* harmony import */ var _video_item_badges_VideoItemBadgesComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../video-item-badges/VideoItemBadgesComponent */ "./src/shared/components/video-item/video-item-metadata/video-item-badges/VideoItemBadgesComponent.ts");
|
|
3681
|
-
/* harmony import */ var _video_sources_metadata_VideoSourcesMetadataComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../video-sources-metadata/VideoSourcesMetadataComponent */ "./src/shared/components/video-item/video-item-metadata/video-sources-metadata/VideoSourcesMetadataComponent.ts");
|
|
3682
|
-
/* harmony import */ var _video_item_series_VideoItemSeriesComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../video-item-series/VideoItemSeriesComponent */ "./src/shared/components/video-item/video-item-metadata/video-item-series/VideoItemSeriesComponent.ts");
|
|
3683
|
-
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../utils */ "./src/shared/utils/index.ts");
|
|
3684
|
-
/* harmony import */ var _VideoItemVideoAccessMetadata_hbs__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./VideoItemVideoAccessMetadata.hbs */ "./src/shared/components/video-item/video-item-metadata/video-item-video-access-metadata/VideoItemVideoAccessMetadata.hbs");
|
|
3685
|
-
/* harmony import */ var _VideoItemVideoAccessMetadata_hbs__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_VideoItemVideoAccessMetadata_hbs__WEBPACK_IMPORTED_MODULE_10__);
|
|
3686
|
-
/* harmony import */ var _base_video_item_metadata_scss__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../base/video-item-metadata.scss */ "./src/shared/components/video-item/video-item-metadata/base/video-item-metadata.scss");
|
|
3687
|
-
/* harmony import */ var _base_video_item_metadata_scss__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_base_video_item_metadata_scss__WEBPACK_IMPORTED_MODULE_11__);
|
|
3688
|
-
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); }
|
|
3689
|
-
|
|
3690
|
-
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; }
|
|
3691
|
-
|
|
3692
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3693
|
-
|
|
3694
|
-
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); } }
|
|
3695
|
-
|
|
3696
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3697
|
-
|
|
3698
|
-
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); }
|
|
3699
|
-
|
|
3700
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3701
|
-
|
|
3702
|
-
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); }; }
|
|
3703
|
-
|
|
3704
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3705
|
-
|
|
3706
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3707
|
-
|
|
3708
|
-
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; } }
|
|
3709
|
-
|
|
3710
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
var VideoItemVideoAccessMetadataComponent = /*#__PURE__*/function (_Core$Component) {
|
|
3725
|
-
_inherits(VideoItemVideoAccessMetadataComponent, _Core$Component);
|
|
3726
|
-
|
|
3727
|
-
var _super = _createSuper(VideoItemVideoAccessMetadataComponent);
|
|
3728
|
-
|
|
3729
|
-
function VideoItemVideoAccessMetadataComponent(options) {
|
|
3730
|
-
_classCallCheck(this, VideoItemVideoAccessMetadataComponent);
|
|
3731
|
-
|
|
3732
|
-
return _super.call(this, options);
|
|
3733
|
-
}
|
|
3734
|
-
|
|
3735
|
-
_createClass(VideoItemVideoAccessMetadataComponent, [{
|
|
3736
|
-
key: "initialize",
|
|
3737
|
-
value: function initialize() {
|
|
3738
|
-
this.listenTo(this.model, 'change:restrictions', this.render);
|
|
3739
|
-
}
|
|
3740
|
-
}, {
|
|
3741
|
-
key: "regions",
|
|
3742
|
-
value: function regions() {
|
|
3743
|
-
return {
|
|
3744
|
-
sources: {
|
|
3745
|
-
el: '.sources-region',
|
|
3746
|
-
replaceElement: true
|
|
3747
|
-
},
|
|
3748
|
-
badges: {
|
|
3749
|
-
el: '.badges-region',
|
|
3750
|
-
replaceElement: true
|
|
3751
|
-
},
|
|
3752
|
-
series: {
|
|
3753
|
-
el: '.series-region',
|
|
3754
|
-
replaceElement: true
|
|
3755
|
-
}
|
|
3756
|
-
};
|
|
3757
|
-
}
|
|
3758
|
-
}, {
|
|
3759
|
-
key: "events",
|
|
3760
|
-
value: function events() {
|
|
3761
|
-
return _defineProperty({
|
|
3762
|
-
'click': 'onClick',
|
|
3763
|
-
'click .video-title': 'onClickMetadata'
|
|
3764
|
-
}, "click .".concat(_base_video_item_metadata_scss__WEBPACK_IMPORTED_MODULE_11___default.a.svgContainer), 'onClickMetadata');
|
|
3765
|
-
}
|
|
3766
|
-
}, {
|
|
3767
|
-
key: "onClickMetadata",
|
|
3768
|
-
value: function onClickMetadata(e) {
|
|
3769
|
-
e.stopPropagation();
|
|
3770
|
-
}
|
|
3771
|
-
}, {
|
|
3772
|
-
key: "getVideoUrl",
|
|
3773
|
-
value: function getVideoUrl() {
|
|
3774
|
-
return _libs_common_src_backbone_utils_UrlHelper__WEBPACK_IMPORTED_MODULE_2__["UrlHelper"].safeUrlConcat(this.options.config.get('onlineUrl'), "videos/".concat(this.model.get('id')));
|
|
3775
|
-
}
|
|
3776
|
-
}, {
|
|
3777
|
-
key: "renderSources",
|
|
3778
|
-
value: function renderSources() {
|
|
3779
|
-
if (!_utils__WEBPACK_IMPORTED_MODULE_9__["VideoHelper"].hasCustomLibrary(this.model)) return;
|
|
3780
|
-
|
|
3781
|
-
var options = underscore__WEBPACK_IMPORTED_MODULE_0__["extend"]({}, {
|
|
3782
|
-
model: this.model
|
|
3783
|
-
}, this.options.sourceMetadataOptions);
|
|
3784
|
-
|
|
3785
|
-
this.showChildView('sources', new _video_sources_metadata_VideoSourcesMetadataComponent__WEBPACK_IMPORTED_MODULE_7__["VideoSourcesMetadataComponent"](options));
|
|
3786
|
-
}
|
|
3787
|
-
}, {
|
|
3788
|
-
key: "renderSeries",
|
|
3789
|
-
value: function renderSeries() {
|
|
3790
|
-
if (!_utils__WEBPACK_IMPORTED_MODULE_9__["VideoHelper"].hasCustomLibrary(this.model)) return;
|
|
3791
|
-
this.showChildView('series', new _video_item_series_VideoItemSeriesComponent__WEBPACK_IMPORTED_MODULE_8__["VideoItemSeriesComponent"]({
|
|
3792
|
-
model: this.model,
|
|
3793
|
-
highlight: this.options.sourceMetadataOptions && !!this.options.sourceMetadataOptions.highlight
|
|
3794
|
-
}));
|
|
3795
|
-
}
|
|
3796
|
-
}, {
|
|
3797
|
-
key: "renderBadges",
|
|
3798
|
-
value: function renderBadges() {
|
|
3799
|
-
this.showChildView('badges', new _video_item_badges_VideoItemBadgesComponent__WEBPACK_IMPORTED_MODULE_6__["VideoItemBadgesComponent"]({
|
|
3800
|
-
model: this.model,
|
|
3801
|
-
showRestrictionBadge: true
|
|
3802
|
-
}));
|
|
3803
|
-
}
|
|
3804
|
-
}, {
|
|
3805
|
-
key: "viewOptions",
|
|
3806
|
-
value: function viewOptions() {
|
|
3807
|
-
return {
|
|
3808
|
-
styles: _base_video_item_metadata_scss__WEBPACK_IMPORTED_MODULE_11___default.a,
|
|
3809
|
-
restrictionMessage: _utils__WEBPACK_IMPORTED_MODULE_9__["RestrictedAccessHelper"].getRestrictionTooltipMessage(this.model),
|
|
3810
|
-
lockSvg: _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_3__["SvgHelper"].getSvg(_libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_3__["cvSvgLibrary"].Lock),
|
|
3811
|
-
linkToOnline: !_utils__WEBPACK_IMPORTED_MODULE_9__["VideoHelper"].hasCustomLibrary(this.model),
|
|
3812
|
-
videoUrl: this.getVideoUrl(),
|
|
3813
|
-
openExternalSvg: _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_3__["SvgHelper"].getSvg(_libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_3__["cvSvgLibrary"].NewWindow)
|
|
3814
|
-
};
|
|
3815
|
-
}
|
|
3816
|
-
}, {
|
|
3817
|
-
key: "onRender",
|
|
3818
|
-
value: function onRender() {
|
|
3819
|
-
this.renderSeries();
|
|
3820
|
-
this.renderSources();
|
|
3821
|
-
this.renderBadges();
|
|
3822
|
-
}
|
|
3823
|
-
}, {
|
|
3824
|
-
key: "name",
|
|
3825
|
-
get: function get() {
|
|
3826
|
-
return 'VideoItemVideoAccessMetadataComponent';
|
|
3827
|
-
}
|
|
3828
|
-
}, {
|
|
3829
|
-
key: "template",
|
|
3830
|
-
get: function get() {
|
|
3831
|
-
return _VideoItemVideoAccessMetadata_hbs__WEBPACK_IMPORTED_MODULE_10___default.a;
|
|
3832
|
-
}
|
|
3833
|
-
}, {
|
|
3834
|
-
key: "behaviors",
|
|
3835
|
-
get: function get() {
|
|
3836
|
-
return [{
|
|
3837
|
-
behaviorClass: _libs_shared_src_legacy_behaviors_tooltip_TooltipBehavior__WEBPACK_IMPORTED_MODULE_4__["TooltipBehavior"],
|
|
3838
|
-
selector: '.tool-tip'
|
|
3839
|
-
}];
|
|
3840
|
-
}
|
|
3841
|
-
}, {
|
|
3842
|
-
key: "appLinks",
|
|
3843
|
-
get: function get() {
|
|
3844
|
-
if (!_utils__WEBPACK_IMPORTED_MODULE_9__["VideoHelper"].hasCustomLibrary(this.model)) return;
|
|
3845
|
-
return {
|
|
3846
|
-
'.applink-show-video': {
|
|
3847
|
-
application: _constants__WEBPACK_IMPORTED_MODULE_5__["AppChannels"].LIBRARY_EDITOR,
|
|
3848
|
-
action: _constants__WEBPACK_IMPORTED_MODULE_5__["Actions"].LibraryEditor.VIDEO_DETAILS,
|
|
3849
|
-
args: [this.model.get('id')]
|
|
3850
|
-
}
|
|
3851
|
-
};
|
|
3852
|
-
}
|
|
3853
|
-
}]);
|
|
3854
|
-
|
|
3855
|
-
return VideoItemVideoAccessMetadataComponent;
|
|
3856
|
-
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__["Core"].Component);
|
|
3857
|
-
|
|
3858
|
-
/***/ }),
|
|
3859
|
-
|
|
3860
|
-
/***/ "./src/shared/components/video-item/video-item.scss":
|
|
3861
|
-
/*!**********************************************************!*\
|
|
3862
|
-
!*** ./src/shared/components/video-item/video-item.scss ***!
|
|
3863
|
-
\**********************************************************/
|
|
3864
|
-
/*! no static exports found */
|
|
3865
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
3866
|
-
|
|
3867
|
-
// extracted by mini-css-extract-plugin
|
|
3868
|
-
module.exports = {"checkboxContainer":"cv--checkboxContainer--3BLCF","thumbnailContainer":"cv--thumbnailContainer--16jlV","metaContainer":"cv--metaContainer--2mMws","actionsContainer":"cv--actionsContainer--I31I0","allowBulk":"cv--allowBulk--2VkOe","videoItem":"cv--videoItem--PoHa-","processingVideo":"cv--processingVideo--qFjv2","bulkPlaceholder":"cv--bulkPlaceholder--3iAFa","previewContainer":"cv--previewContainer--2UBZX"};
|
|
3869
|
-
|
|
3870
|
-
/***/ }),
|
|
3871
|
-
|
|
3872
|
-
/***/ "./src/shared/components/video-list/VideoList.hbs":
|
|
3873
|
-
/*!********************************************************!*\
|
|
3874
|
-
!*** ./src/shared/components/video-list/VideoList.hbs ***!
|
|
3875
|
-
\********************************************************/
|
|
3876
|
-
/*! no static exports found */
|
|
3877
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
3878
|
-
|
|
3879
|
-
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
3880
|
-
module.exports = (Handlebars['default'] || Handlebars).template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
3881
|
-
return "<div class=\"videos-region\"></div>";
|
|
3882
|
-
},"useData":true});
|
|
3883
|
-
|
|
3884
|
-
/***/ }),
|
|
3885
|
-
|
|
3886
|
-
/***/ "./src/shared/components/video-list/VideoListComponent.ts":
|
|
3887
|
-
/*!****************************************************************!*\
|
|
3888
|
-
!*** ./src/shared/components/video-list/VideoListComponent.ts ***!
|
|
3889
|
-
\****************************************************************/
|
|
3890
|
-
/*! exports provided: VideoListComponent */
|
|
3891
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3892
|
-
|
|
3893
|
-
"use strict";
|
|
3894
|
-
__webpack_require__.r(__webpack_exports__);
|
|
3895
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VideoListComponent", function() { return VideoListComponent; });
|
|
3896
|
-
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
3897
|
-
/* harmony import */ var _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../libs/analytics/src/interfaces */ "../../libs/analytics/src/interfaces/index.ts");
|
|
3898
|
-
/* harmony import */ var _libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../libs/analytics/src/AnalyticsHelper */ "../../libs/analytics/src/AnalyticsHelper.ts");
|
|
3899
|
-
/* harmony import */ var _libs_shared_src_legacy_behaviors_empty_state_EmptyStateBehavior__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../libs/shared/src/legacy/behaviors/empty-state/EmptyStateBehavior */ "../../libs/shared/src/legacy/behaviors/empty-state/EmptyStateBehavior.ts");
|
|
3900
|
-
/* harmony import */ var _video_item_VideoItemComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../video-item/VideoItemComponent */ "./src/shared/components/video-item/VideoItemComponent.ts");
|
|
3901
|
-
/* harmony import */ var _video_item_utils_VideoItemComponentTypes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../video-item/utils/VideoItemComponentTypes */ "./src/shared/components/video-item/utils/VideoItemComponentTypes.ts");
|
|
3902
|
-
/* harmony import */ var _behaviors__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../behaviors */ "./src/shared/behaviors/index.ts");
|
|
3903
|
-
/* harmony import */ var _libs_shared_src_enums_CurationStatus__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../../libs/shared/src/enums/CurationStatus */ "../../libs/shared/src/enums/CurationStatus.ts");
|
|
3904
|
-
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../enums */ "./src/shared/enums/index.ts");
|
|
3905
|
-
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../constants */ "./src/shared/constants/index.ts");
|
|
3906
|
-
/* harmony import */ var _apps_library_editor_enums__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../apps/library-editor/enums */ "./src/apps/library-editor/enums/index.ts");
|
|
3907
|
-
/* harmony import */ var _VideoList_hbs__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./VideoList.hbs */ "./src/shared/components/video-list/VideoList.hbs");
|
|
3908
|
-
/* harmony import */ var _VideoList_hbs__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_VideoList_hbs__WEBPACK_IMPORTED_MODULE_11__);
|
|
3909
|
-
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); }
|
|
3910
|
-
|
|
3911
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3912
|
-
|
|
3913
|
-
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); } }
|
|
3914
|
-
|
|
3915
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3916
|
-
|
|
3917
|
-
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); }
|
|
3918
|
-
|
|
3919
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3920
|
-
|
|
3921
|
-
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); }; }
|
|
3922
|
-
|
|
3923
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3924
|
-
|
|
3925
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3926
|
-
|
|
3927
|
-
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; } }
|
|
3928
|
-
|
|
3929
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
var VideoItemComponentCollection = /*#__PURE__*/function (_Core$ComponentCollec) {
|
|
3945
|
-
_inherits(VideoItemComponentCollection, _Core$ComponentCollec);
|
|
3946
|
-
|
|
3947
|
-
var _super = _createSuper(VideoItemComponentCollection);
|
|
3948
|
-
|
|
3949
|
-
function VideoItemComponentCollection(options) {
|
|
3950
|
-
_classCallCheck(this, VideoItemComponentCollection);
|
|
3951
|
-
|
|
3952
|
-
return _super.call(this, options);
|
|
3953
|
-
}
|
|
3954
|
-
|
|
3955
|
-
_createClass(VideoItemComponentCollection, [{
|
|
3956
|
-
key: "name",
|
|
3957
|
-
get: function get() {
|
|
3958
|
-
return 'VideoItemListComponent';
|
|
3959
|
-
}
|
|
3960
|
-
}, {
|
|
3961
|
-
key: "childView",
|
|
3962
|
-
get: function get() {
|
|
3963
|
-
return _video_item_VideoItemComponent__WEBPACK_IMPORTED_MODULE_4__["VideoItemComponent"];
|
|
3964
|
-
}
|
|
3965
|
-
}, {
|
|
3966
|
-
key: "childViewOptions",
|
|
3967
|
-
get: function get() {
|
|
3968
|
-
var _this = this;
|
|
3969
|
-
|
|
3970
|
-
return function (model) {
|
|
3971
|
-
var isProcessing = model.get('status') === _libs_shared_src_enums_CurationStatus__WEBPACK_IMPORTED_MODULE_7__["CurationStatus"].Processing;
|
|
3972
|
-
return {
|
|
3973
|
-
componentType: isProcessing ? _video_item_utils_VideoItemComponentTypes__WEBPACK_IMPORTED_MODULE_5__["VideoItemComponentType"].ProcessingVideo : _this.options.videoItemComponentType,
|
|
3974
|
-
videoWithMetadata: _this.options.videosWithMetadata && _this.options.videosWithMetadata.get(model.get('id')),
|
|
3975
|
-
allowBulk: _this.options.allowBulk,
|
|
3976
|
-
collectionIdentifier: _this.options.collectionIdentifier,
|
|
3977
|
-
application: _this.options.application,
|
|
3978
|
-
pendingItems: _this.options.pendingItems,
|
|
3979
|
-
config: _this.options.config,
|
|
3980
|
-
sourceMetadataOptions: _this.options.sourceMetadataOptions,
|
|
3981
|
-
collectionViewChannel: _this.options.collectionViewChannel,
|
|
3982
|
-
customerHasLocalCache: _this.options.customerHasLocalCache,
|
|
3983
|
-
customerHasExchange: _this.options.customerHasExchange,
|
|
3984
|
-
customerHasCustomLibrary: _this.options.customerHasCustomLibrary,
|
|
3985
|
-
analyticsOptions: _this.options.analyticsOptions,
|
|
3986
|
-
videoCollectionSource: _this.options.videoCollectionSource
|
|
3987
|
-
};
|
|
3988
|
-
};
|
|
3989
|
-
}
|
|
3990
|
-
}]);
|
|
3991
|
-
|
|
3992
|
-
return VideoItemComponentCollection;
|
|
3993
|
-
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].ComponentCollection);
|
|
3994
|
-
|
|
3995
|
-
var VideoListComponent = /*#__PURE__*/function (_Core$Component) {
|
|
3996
|
-
_inherits(VideoListComponent, _Core$Component);
|
|
3997
|
-
|
|
3998
|
-
var _super2 = _createSuper(VideoListComponent);
|
|
3999
|
-
|
|
4000
|
-
function VideoListComponent(options) {
|
|
4001
|
-
_classCallCheck(this, VideoListComponent);
|
|
4002
|
-
|
|
4003
|
-
return _super2.call(this, options);
|
|
4004
|
-
}
|
|
4005
|
-
|
|
4006
|
-
_createClass(VideoListComponent, [{
|
|
4007
|
-
key: "regions",
|
|
4008
|
-
value: function regions() {
|
|
4009
|
-
return {
|
|
4010
|
-
videos: '.videos-region'
|
|
4011
|
-
};
|
|
4012
|
-
}
|
|
4013
|
-
}, {
|
|
4014
|
-
key: "onRender",
|
|
4015
|
-
value: function onRender() {
|
|
4016
|
-
var videoItemComponent = new VideoItemComponentCollection({
|
|
4017
|
-
collection: this.collection,
|
|
4018
|
-
videosWithMetadata: this.options.videosWithMetadata,
|
|
4019
|
-
videoItemComponentType: this.options.videoItemComponentType,
|
|
4020
|
-
allowBulk: this.options.allowBulk,
|
|
4021
|
-
collectionIdentifier: this.collectionIdentifier,
|
|
4022
|
-
application: this.options.application,
|
|
4023
|
-
pendingItems: this.options.pendingItems,
|
|
4024
|
-
config: this.options.config,
|
|
4025
|
-
sourceMetadataOptions: this.options.sourceMetadataOptions,
|
|
4026
|
-
collectionViewChannel: this.options.collectionViewChannel,
|
|
4027
|
-
customerHasLocalCache: this.options.customerHasLocalCache,
|
|
4028
|
-
customerHasExchange: this.options.customerHasExchange,
|
|
4029
|
-
customerHasCustomLibrary: this.options.customerHasCustomLibrary,
|
|
4030
|
-
analyticsOptions: _libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_2__["AnalyticsHelper"].mergeOptions(this.options.analyticsOptions, {
|
|
4031
|
-
location: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_1__["LocationContext"].VideoListItem,
|
|
4032
|
-
entity: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_1__["EntityType"].Video
|
|
4033
|
-
}),
|
|
4034
|
-
videoCollectionSource: this.options.videoCollectionSource
|
|
4035
|
-
});
|
|
4036
|
-
this.showChildView('videos', videoItemComponent);
|
|
4037
|
-
}
|
|
4038
|
-
}, {
|
|
4039
|
-
key: "name",
|
|
4040
|
-
get: function get() {
|
|
4041
|
-
return 'VideoListView';
|
|
4042
|
-
}
|
|
4043
|
-
}, {
|
|
4044
|
-
key: "className",
|
|
4045
|
-
get: function get() {
|
|
4046
|
-
return "bg-white";
|
|
4047
|
-
}
|
|
4048
|
-
}, {
|
|
4049
|
-
key: "props",
|
|
4050
|
-
get: function get() {
|
|
4051
|
-
return ['collectionIdentifier'];
|
|
4052
|
-
}
|
|
4053
|
-
}, {
|
|
4054
|
-
key: "template",
|
|
4055
|
-
get: function get() {
|
|
4056
|
-
return _VideoList_hbs__WEBPACK_IMPORTED_MODULE_11___default.a;
|
|
4057
|
-
}
|
|
4058
|
-
}, {
|
|
4059
|
-
key: "defaults",
|
|
4060
|
-
get: function get() {
|
|
4061
|
-
return {
|
|
4062
|
-
videoItemComponentType: _video_item_utils_VideoItemComponentTypes__WEBPACK_IMPORTED_MODULE_5__["VideoItemComponentType"].Base,
|
|
4063
|
-
allowBulk: false,
|
|
4064
|
-
emptyState: _enums__WEBPACK_IMPORTED_MODULE_8__["EmptyState"].Default,
|
|
4065
|
-
videoCollectionSource: _apps_library_editor_enums__WEBPACK_IMPORTED_MODULE_10__["VideoCollectionSource"].Folder
|
|
4066
|
-
};
|
|
4067
|
-
}
|
|
4068
|
-
}, {
|
|
4069
|
-
key: "behaviors",
|
|
4070
|
-
get: function get() {
|
|
4071
|
-
return [{
|
|
4072
|
-
behaviorClass: _behaviors__WEBPACK_IMPORTED_MODULE_6__["LazyLoadBehavior"],
|
|
4073
|
-
selector: '.lazy-img',
|
|
4074
|
-
minBrowserSupportVersion: _constants__WEBPACK_IMPORTED_MODULE_9__["LazyLoadMinBrowserSupportVersion"]
|
|
4075
|
-
}, {
|
|
4076
|
-
behaviorClass: _libs_shared_src_legacy_behaviors_empty_state_EmptyStateBehavior__WEBPACK_IMPORTED_MODULE_3__["EmptyStateBehavior"],
|
|
4077
|
-
region: 'videos',
|
|
4078
|
-
type: this.options.emptyStateType,
|
|
4079
|
-
componentOptions: this.options.emptyStateOptions,
|
|
4080
|
-
emptyStateComponents: _constants__WEBPACK_IMPORTED_MODULE_9__["EmptyStateComponents"]
|
|
4081
|
-
}];
|
|
4082
|
-
}
|
|
4083
|
-
}]);
|
|
4084
|
-
|
|
4085
|
-
return VideoListComponent;
|
|
4086
|
-
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].Component);
|
|
4087
|
-
|
|
4088
|
-
/***/ })
|
|
4089
|
-
|
|
4090
|
-
}]);
|
|
4091
|
-
//# sourceMappingURL=11.chunk.js.map
|