@clickview/library-editor 1.1.23-dev.1 → 1.1.23-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/1.chunk.css.map +1 -1
- package/dist/css/10.chunk.css.map +1 -1
- package/dist/css/11.chunk.css.map +1 -1
- package/dist/css/12.chunk.css.map +1 -1
- package/dist/css/13.chunk.css.map +1 -1
- package/dist/css/14.chunk.css.map +1 -1
- package/dist/css/16.chunk.css.map +1 -1
- package/dist/css/17.chunk.css.map +1 -1
- package/dist/css/18.chunk.css.map +1 -1
- package/dist/css/2.chunk.css.map +1 -1
- package/dist/css/21.chunk.css.map +1 -1
- package/dist/css/22.chunk.css.map +1 -1
- package/dist/css/23.chunk.css.map +1 -1
- package/dist/css/25.chunk.css.map +1 -1
- package/dist/css/26.chunk.css +1 -1
- package/dist/css/26.chunk.css.map +1 -1
- package/dist/css/28.chunk.css.map +1 -1
- package/dist/css/29.chunk.css.map +1 -1
- package/dist/css/3.chunk.css.map +1 -1
- package/dist/css/30.chunk.css.map +1 -1
- package/dist/css/31.chunk.css.map +1 -1
- package/dist/css/32.chunk.css.map +1 -1
- package/dist/css/33.chunk.css.map +1 -1
- package/dist/css/34.chunk.css.map +1 -1
- package/dist/css/35.chunk.css.map +1 -1
- package/dist/css/36.chunk.css.map +1 -1
- package/dist/css/37.chunk.css.map +1 -1
- package/dist/css/38.chunk.css.map +1 -1
- package/dist/css/40.chunk.css.map +1 -1
- package/dist/css/41.chunk.css.map +1 -1
- package/dist/css/42.chunk.css.map +1 -1
- package/dist/css/43.chunk.css.map +1 -1
- package/dist/css/44.chunk.css.map +1 -1
- package/dist/css/45.chunk.css.map +1 -1
- package/dist/css/46.chunk.css.map +1 -1
- package/dist/css/47.chunk.css.map +1 -1
- package/dist/css/48.chunk.css.map +1 -1
- package/dist/css/49.chunk.css.map +1 -1
- package/dist/css/50.chunk.css.map +1 -1
- package/dist/css/51.chunk.css.map +1 -1
- package/dist/css/52.chunk.css.map +1 -1
- package/dist/css/55.chunk.css.map +1 -1
- package/dist/css/56.chunk.css.map +1 -1
- package/dist/css/58.chunk.css.map +1 -1
- package/dist/css/59.chunk.css.map +1 -1
- package/dist/css/6.chunk.css.map +1 -1
- package/dist/css/60.chunk.css.map +1 -1
- package/dist/css/62.chunk.css.map +1 -1
- package/dist/css/63.chunk.css.map +1 -1
- package/dist/css/67.chunk.css.map +1 -1
- package/dist/css/68.chunk.css.map +1 -1
- package/dist/css/69.chunk.css.map +1 -1
- package/dist/css/7.chunk.css.map +1 -1
- package/dist/css/70.chunk.css.map +1 -1
- package/dist/css/71.chunk.css.map +1 -1
- package/dist/css/72.chunk.css.map +1 -1
- package/dist/css/73.chunk.css.map +1 -1
- package/dist/css/74.chunk.css.map +1 -1
- package/dist/css/75.chunk.css.map +1 -1
- package/dist/css/76.chunk.css.map +1 -1
- package/dist/css/8.chunk.css.map +1 -1
- package/dist/css/library-editor-app.css.map +1 -1
- package/dist/en.json +1 -1
- package/dist/libs/shared/src/enums/SettingName.d.ts +2 -1
- package/dist/libs/shared/src/images/svg/ImportedSvgs.d.ts +4 -1
- package/dist/libs/shared/src/images/svg/objects/index.d.ts +4 -1
- package/dist/libs/shared/src/interfaces/models/Avatar.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Customer.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/models/Playlist.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/models/Presentation.d.ts +2 -2
- package/dist/libs/shared/src/interfaces/models/User.d.ts +2 -1
- package/dist/libs/shared/src/interfaces/models/index.d.ts +2 -0
- package/dist/projects/library-editor/src/app.d.ts +1 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/video-collection-actions/VideoCollectionActionsComponent.d.ts +1 -0
- package/dist/scripts/{0-09e1e33a5c.chunk.js → 0-2765595d0a.chunk.js} +1 -1
- package/dist/scripts/0-f82360fd03.chunk.js +1 -0
- package/dist/scripts/0.chunk.js +1 -1
- package/dist/scripts/0.chunk.js.map +1 -1
- package/dist/scripts/{1-a66bb44471.chunk.js → 1-35f87e4cdc.chunk.js} +1 -1
- package/dist/scripts/1-b6dedae131.chunk.js +1 -0
- package/dist/scripts/1.chunk.js.map +1 -1
- package/dist/scripts/{10-6c79d8c6f9.chunk.js → 10-227e797872.chunk.js} +1 -1
- package/dist/scripts/10-8307f8e248.chunk.js +1 -0
- package/dist/scripts/10.chunk.js.map +1 -1
- package/dist/scripts/{11-6eef9e160e.chunk.js → 11-9dbae07504.chunk.js} +1 -1
- package/dist/scripts/11.chunk.js.map +1 -1
- package/dist/scripts/{12-dbffa50a92.chunk.js → 12-06cf65b136.chunk.js} +1 -1
- package/dist/scripts/12-43e54b0a2d.chunk.js +1 -0
- package/dist/scripts/12.chunk.js.map +1 -1
- package/dist/scripts/{13-37e5cfab3e.chunk.js → 13-01ee41eb1e.chunk.js} +1 -1
- package/dist/scripts/13-3d84e237b9.chunk.js +1 -0
- package/dist/scripts/13.chunk.js.map +1 -1
- package/dist/scripts/{14-b524fbd295.chunk.js → 14-988bab314d.chunk.js} +1 -1
- package/dist/scripts/14-cf307e51d9.chunk.js +1 -0
- package/dist/scripts/14.chunk.js.map +1 -1
- package/dist/scripts/{15-1ff1252d1a.chunk.js → 15-bedb9ff6d0.chunk.js} +1 -1
- package/dist/scripts/15-eed00bc875.chunk.js +1 -0
- package/dist/scripts/15.chunk.js.map +1 -1
- package/dist/scripts/{16-b27142fe98.chunk.js → 16-339a29fa2f.chunk.js} +1 -1
- package/dist/scripts/16-3a99050a93.chunk.js +1 -0
- package/dist/scripts/16.chunk.js.map +1 -1
- package/dist/scripts/{17-c3bbe50816.chunk.js → 17-66da06be62.chunk.js} +1 -1
- package/dist/scripts/17-bff211f26a.chunk.js +1 -0
- package/dist/scripts/17.chunk.js +1 -1
- package/dist/scripts/17.chunk.js.map +1 -1
- package/dist/scripts/18.chunk.js.map +1 -1
- package/dist/scripts/19.chunk.js +1 -1
- package/dist/scripts/19.chunk.js.map +1 -1
- package/dist/scripts/{2-2cc3988222.chunk.js → 2-5079f4b088.chunk.js} +1 -1
- package/dist/scripts/2.chunk.js.map +1 -1
- package/dist/scripts/{20-6d9086f5db.chunk.js → 20-6019ccb462.chunk.js} +1 -1
- package/dist/scripts/20-d4470b4a53.chunk.js +1 -0
- package/dist/scripts/20.chunk.js.map +1 -1
- package/dist/scripts/{21-2f10553302.chunk.js → 21-77f6ddec3d.chunk.js} +1 -1
- package/dist/scripts/21-7bd1977005.chunk.js +1 -0
- package/dist/scripts/21.chunk.js.map +1 -1
- package/dist/scripts/{22-59ae44b448.chunk.js → 22-9ef39722d1.chunk.js} +1 -1
- package/dist/scripts/22-d88b8e9c20.chunk.js +1 -0
- package/dist/scripts/22.chunk.js.map +1 -1
- package/dist/scripts/{23-11e008ee63.chunk.js → 23-c8071cb869.chunk.js} +1 -1
- package/dist/scripts/23-e8a0f60c53.chunk.js +1 -0
- package/dist/scripts/23.chunk.js +3 -3
- package/dist/scripts/23.chunk.js.map +1 -1
- package/dist/scripts/{24-7f21e384d2.chunk.js → 24-b655377e1f.chunk.js} +1 -1
- package/dist/scripts/24-f62e7ff166.chunk.js +1 -0
- package/dist/scripts/24.chunk.js.map +1 -1
- package/dist/scripts/{25-f0f7fa16a4.chunk.js → 25-acda0ed17e.chunk.js} +1 -1
- package/dist/scripts/25-f814e3921c.chunk.js +1 -0
- package/dist/scripts/25.chunk.js.map +1 -1
- package/dist/scripts/{26-e65533bd94.chunk.js → 26-39f6c3ca17.chunk.js} +1 -1
- package/dist/scripts/26-9dd482e1e6.chunk.js +1 -0
- package/dist/scripts/26.chunk.js.map +1 -1
- package/dist/scripts/{27-9dc0f5a4df.chunk.js → 27-1313c7d392.chunk.js} +1 -1
- package/dist/scripts/27-5ecd204dab.chunk.js +1 -0
- package/dist/scripts/27.chunk.js +3 -3
- package/dist/scripts/27.chunk.js.map +1 -1
- package/dist/scripts/{28-26e5c371c7.chunk.js → 28-b583483a6e.chunk.js} +1 -1
- package/dist/scripts/28-e9b8962af8.chunk.js +1 -0
- package/dist/scripts/28.chunk.js +6 -6
- package/dist/scripts/28.chunk.js.map +1 -1
- package/dist/scripts/{29-61415c2af0.chunk.js → 29-44119e600a.chunk.js} +1 -1
- package/dist/scripts/29-e3391b4e4b.chunk.js +1 -0
- package/dist/scripts/29.chunk.js.map +1 -1
- package/dist/scripts/{3-5eff8c9df5.chunk.js → 3-079c0b4d3b.chunk.js} +1 -1
- package/dist/scripts/3-bea2c1c371.chunk.js +1 -0
- package/dist/scripts/3.chunk.js +25 -13
- package/dist/scripts/3.chunk.js.map +1 -1
- package/dist/scripts/{30-6075c28972.chunk.js → 30-a6a7291b5e.chunk.js} +1 -1
- package/dist/scripts/30-aef6a19cde.chunk.js +1 -0
- package/dist/scripts/30.chunk.js +6 -6
- package/dist/scripts/30.chunk.js.map +1 -1
- package/dist/scripts/31-4f1ea6d067.chunk.js +1 -0
- package/dist/scripts/31-70fe14b490.chunk.js +1 -0
- package/dist/scripts/31.chunk.js.map +1 -1
- package/dist/scripts/{32-d5a50a7592.chunk.js → 32-0b05da2f4c.chunk.js} +1 -1
- package/dist/scripts/32-96ac2f9c32.chunk.js +1 -0
- package/dist/scripts/32.chunk.js.map +1 -1
- package/dist/scripts/{33-5ae90ed7d7.chunk.js → 33-04b1fbcdeb.chunk.js} +1 -1
- package/dist/scripts/33-061a87935f.chunk.js +1 -0
- package/dist/scripts/33.chunk.js.map +1 -1
- package/dist/scripts/{34-50402c1835.chunk.js → 34-4f2c861480.chunk.js} +1 -1
- package/dist/scripts/34-56f92b9a87.chunk.js +1 -0
- package/dist/scripts/34.chunk.js.map +1 -1
- package/dist/scripts/{35-ec8c190357.chunk.js → 35-08ead0d078.chunk.js} +1 -1
- package/dist/scripts/35-cdd788a4b5.chunk.js +1 -0
- package/dist/scripts/35.chunk.js.map +1 -1
- package/dist/scripts/{36-4d467bc42e.chunk.js → 36-4db22bf8bb.chunk.js} +1 -1
- package/dist/scripts/36-7d33d11b58.chunk.js +1 -0
- package/dist/scripts/36.chunk.js.map +1 -1
- package/dist/scripts/{37-37e8965783.chunk.js → 37-4de2537ff4.chunk.js} +1 -1
- package/dist/scripts/37-fbd149e569.chunk.js +1 -0
- package/dist/scripts/37.chunk.js.map +1 -1
- package/dist/scripts/{38-3dc24b8867.chunk.js → 38-57af633fa1.chunk.js} +1 -1
- package/dist/scripts/38-7733a3d81e.chunk.js +1 -0
- package/dist/scripts/38.chunk.js.map +1 -1
- package/dist/scripts/{39-350ff66a2b.chunk.js → 39-5451786b7d.chunk.js} +1 -1
- package/dist/scripts/39-cc627dfe2b.chunk.js +1 -0
- package/dist/scripts/39.chunk.js.map +1 -1
- package/dist/scripts/{4-b3f3c7c71c.chunk.js → 4-0a8a5ac2f0.chunk.js} +1 -1
- package/dist/scripts/4-84fa8e49e2.chunk.js +1 -0
- package/dist/scripts/4.chunk.js.map +1 -1
- package/dist/scripts/{40-3443f99cb2.chunk.js → 40-31940ddf04.chunk.js} +1 -1
- package/dist/scripts/40-78639874b5.chunk.js +1 -0
- package/dist/scripts/40.chunk.js.map +1 -1
- package/dist/scripts/{41-b5dfd35e9e.chunk.js → 41-0366a0332e.chunk.js} +1 -1
- package/dist/scripts/41-2c6722e410.chunk.js +1 -0
- package/dist/scripts/41.chunk.js.map +1 -1
- package/dist/scripts/{42-103fecb7b6.chunk.js → 42-9b7795d20a.chunk.js} +1 -1
- package/dist/scripts/42-c87c36d7d4.chunk.js +1 -0
- package/dist/scripts/42.chunk.js.map +1 -1
- package/dist/scripts/{43-57b07579f7.chunk.js → 43-006ce08a8f.chunk.js} +1 -1
- package/dist/scripts/43-591954817b.chunk.js +1 -0
- package/dist/scripts/43.chunk.js.map +1 -1
- package/dist/scripts/{44-210d64dffe.chunk.js → 44-b4c134efe8.chunk.js} +1 -1
- package/dist/scripts/44-fc3a1d45c5.chunk.js +1 -0
- package/dist/scripts/44.chunk.js.map +1 -1
- package/dist/scripts/{45-632b07e926.chunk.js → 45-32ce8dd910.chunk.js} +1 -1
- package/dist/scripts/45-3e85e78a77.chunk.js +1 -0
- package/dist/scripts/45.chunk.js.map +1 -1
- package/dist/scripts/{46-82cce63cbf.chunk.js → 46-1256828b60.chunk.js} +1 -1
- package/dist/scripts/46-e096df45ef.chunk.js +1 -0
- package/dist/scripts/46.chunk.js +6 -6
- package/dist/scripts/46.chunk.js.map +1 -1
- package/dist/scripts/{47-595b4aae87.chunk.js → 47-61b53964c2.chunk.js} +1 -1
- package/dist/scripts/47-9e514e7536.chunk.js +1 -0
- package/dist/scripts/47.chunk.js +2 -1
- package/dist/scripts/47.chunk.js.map +1 -1
- package/dist/scripts/{48-fcf6378889.chunk.js → 48-3f804b22a4.chunk.js} +1 -1
- package/dist/scripts/48-9af8b50e4f.chunk.js +1 -0
- package/dist/scripts/48.chunk.js.map +1 -1
- package/dist/scripts/{49-d8a4899eb1.chunk.js → 49-79b28e90c9.chunk.js} +1 -1
- package/dist/scripts/49-883d9131af.chunk.js +1 -0
- package/dist/scripts/49.chunk.js.map +1 -1
- package/dist/scripts/{5-06bc197b1e.chunk.js → 5-093c9ee130.chunk.js} +1 -1
- package/dist/scripts/5-f5ad097d2b.chunk.js +1 -0
- package/dist/scripts/5.chunk.js +3 -3
- package/dist/scripts/5.chunk.js.map +1 -1
- package/dist/scripts/{50-11b1a49916.chunk.js → 50-198f89794c.chunk.js} +1 -1
- package/dist/scripts/50-ce04770db1.chunk.js +1 -0
- package/dist/scripts/50.chunk.js.map +1 -1
- package/dist/scripts/{51-72a75e0265.chunk.js → 51-177fe97a9b.chunk.js} +1 -1
- package/dist/scripts/51-61bb2b80fe.chunk.js +1 -0
- package/dist/scripts/51.chunk.js.map +1 -1
- package/dist/scripts/{52-195f73bcd6.chunk.js → 52-d8cf26c75f.chunk.js} +1 -1
- package/dist/scripts/52-e7fd215888.chunk.js +1 -0
- package/dist/scripts/52.chunk.js.map +1 -1
- package/dist/scripts/{53-bb4f37ee25.chunk.js → 53-595b1efa1a.chunk.js} +1 -1
- package/dist/scripts/53-e78a58c963.chunk.js +1 -0
- package/dist/scripts/53.chunk.js.map +1 -1
- package/dist/scripts/{54-7a201d8285.chunk.js → 54-646c8458e0.chunk.js} +1 -1
- package/dist/scripts/54-7976c21511.chunk.js +1 -0
- package/dist/scripts/54.chunk.js.map +1 -1
- package/dist/scripts/{55-be3d7b8805.chunk.js → 55-5e3b70736e.chunk.js} +1 -1
- package/dist/scripts/55-dac67eae0b.chunk.js +1 -0
- package/dist/scripts/55.chunk.js.map +1 -1
- package/dist/scripts/{56-6aeece1bf1.chunk.js → 56-3c520aec72.chunk.js} +1 -1
- package/dist/scripts/56-9a02efb9a1.chunk.js +1 -0
- package/dist/scripts/56.chunk.js.map +1 -1
- package/dist/scripts/{57-59ee15161b.chunk.js → 57-6f84e1bb9d.chunk.js} +1 -1
- package/dist/scripts/57-bf72265d49.chunk.js +1 -0
- package/dist/scripts/57.chunk.js.map +1 -1
- package/dist/scripts/{58-8ff58b194a.chunk.js → 58-1c37240b43.chunk.js} +1 -1
- package/dist/scripts/58-34ef45f4b6.chunk.js +1 -0
- package/dist/scripts/58.chunk.js.map +1 -1
- package/dist/scripts/{59-3d33954fcb.chunk.js → 59-05cbb57b32.chunk.js} +1 -1
- package/dist/scripts/59-f3d473090d.chunk.js +1 -0
- package/dist/scripts/59.chunk.js.map +1 -1
- package/dist/scripts/{6-a469872b10.chunk.js → 6-a5f6258253.chunk.js} +1 -1
- package/dist/scripts/6-e49b6b4c08.chunk.js +1 -0
- package/dist/scripts/6.chunk.js.map +1 -1
- package/dist/scripts/{60-f092baa91c.chunk.js → 60-ac4f11764a.chunk.js} +1 -1
- package/dist/scripts/60-dd50d4179f.chunk.js +1 -0
- package/dist/scripts/60.chunk.js.map +1 -1
- package/dist/scripts/{61-bd9ef62ccd.chunk.js → 61-62ec9b3628.chunk.js} +1 -1
- package/dist/scripts/61-e759f86871.chunk.js +1 -0
- package/dist/scripts/61.chunk.js +12 -12
- package/dist/scripts/61.chunk.js.map +1 -1
- package/dist/scripts/{62-f15b3bf74c.chunk.js → 62-4d0e82f903.chunk.js} +1 -1
- package/dist/scripts/62-bfd5450b13.chunk.js +1 -0
- package/dist/scripts/62.chunk.js.map +1 -1
- package/dist/scripts/{63-92757f75e7.chunk.js → 63-47af37825d.chunk.js} +1 -1
- package/dist/scripts/63-8521e39a2e.chunk.js +1 -0
- package/dist/scripts/63.chunk.js.map +1 -1
- package/dist/scripts/{64-c5a1c55521.chunk.js → 64-12150ef48b.chunk.js} +1 -1
- package/dist/scripts/64-c42635a917.chunk.js +1 -0
- package/dist/scripts/64.chunk.js.map +1 -1
- package/dist/scripts/{65-6bb10ae23b.chunk.js → 65-7780441e5e.chunk.js} +1 -1
- package/dist/scripts/65-a4fdf8777b.chunk.js +1 -0
- package/dist/scripts/65.chunk.js.map +1 -1
- package/dist/scripts/{66-f047027f7d.chunk.js → 66-029947cf5c.chunk.js} +1 -1
- package/dist/scripts/66-7f2750cd97.chunk.js +1 -0
- package/dist/scripts/66.chunk.js.map +1 -1
- package/dist/scripts/{67-2e1a011200.chunk.js → 67-47f208342a.chunk.js} +1 -1
- package/dist/scripts/67-564ff2bd16.chunk.js +1 -0
- package/dist/scripts/67.chunk.js.map +1 -1
- package/dist/scripts/{68-d5c0ab3fc1.chunk.js → 68-5656cc45fe.chunk.js} +1 -1
- package/dist/scripts/68-df9024fadc.chunk.js +1 -0
- package/dist/scripts/68.chunk.js.map +1 -1
- package/dist/scripts/{69-fc8325afc9.chunk.js → 69-4d32ddddbc.chunk.js} +1 -1
- package/dist/scripts/69-a4b3442e68.chunk.js +1 -0
- package/dist/scripts/69.chunk.js.map +1 -1
- package/dist/scripts/{7-58dd909fa3.chunk.js → 7-2696f5afc4.chunk.js} +1 -1
- package/dist/scripts/7-b39ab430b9.chunk.js +1 -0
- package/dist/scripts/7.chunk.js.map +1 -1
- package/dist/scripts/{70-ceda95013e.chunk.js → 70-0f070c1596.chunk.js} +1 -1
- package/dist/scripts/70-2a427b3dd0.chunk.js +1 -0
- package/dist/scripts/70.chunk.js.map +1 -1
- package/dist/scripts/{71-6e8fc95beb.chunk.js → 71-215cac8b69.chunk.js} +1 -1
- package/dist/scripts/71-c43ee23686.chunk.js +1 -0
- package/dist/scripts/71.chunk.js.map +1 -1
- package/dist/scripts/{72-53fe3338bf.chunk.js → 72-6eb3ef092e.chunk.js} +1 -1
- package/dist/scripts/72-f5a8cfc8b7.chunk.js +1 -0
- package/dist/scripts/72.chunk.js.map +1 -1
- package/dist/scripts/73.chunk.js.map +1 -1
- package/dist/scripts/74.chunk.js.map +1 -1
- package/dist/scripts/75.chunk.js.map +1 -1
- package/dist/scripts/76.chunk.js.map +1 -1
- package/dist/scripts/77.chunk.js.map +1 -1
- package/dist/scripts/78.chunk.js.map +1 -1
- package/dist/scripts/79.chunk.js.map +1 -1
- package/dist/scripts/{8-6974afed28.chunk.js → 8-1e0751e30b.chunk.js} +1 -1
- package/dist/scripts/8-f4f18356f7.chunk.js +1 -0
- package/dist/scripts/8.chunk.js.map +1 -1
- package/dist/scripts/80.chunk.js.map +1 -1
- package/dist/scripts/81.chunk.js.map +1 -1
- package/dist/scripts/82.chunk.js.map +1 -1
- package/dist/scripts/83.chunk.js.map +1 -1
- package/dist/scripts/84.chunk.js.map +1 -1
- package/dist/scripts/85.chunk.js.map +1 -1
- package/dist/scripts/86.chunk.js.map +1 -1
- package/dist/scripts/87.chunk.js.map +1 -1
- package/dist/scripts/88.chunk.js.map +1 -1
- package/dist/scripts/89.chunk.js.map +1 -1
- package/dist/scripts/{9-9279038caa.chunk.js → 9-bb567e1c99.chunk.js} +1 -1
- package/dist/scripts/9-cd0bcefa7f.chunk.js +1 -0
- package/dist/scripts/9.chunk.js.map +1 -1
- package/dist/scripts/90.chunk.js.map +1 -1
- package/dist/scripts/91.chunk.js.map +1 -1
- package/dist/scripts/92.chunk.js.map +1 -1
- package/dist/scripts/bundle-e7f4d4e659.min.js +8 -0
- package/dist/scripts/bundle-f73bcaa857.min.js +8 -0
- package/dist/scripts/bundle.js +1492 -1364
- package/dist/scripts/bundle.js.map +1 -1
- package/dist/scripts/bundles.json +2 -2
- package/dist/scripts/polyfills-9517d7e647.min.js +1 -0
- package/dist/scripts/polyfills-e442ebbfb0.min.js +1 -0
- package/dist/scripts/polyfills.js +1050 -1050
- package/dist/scripts/polyfills.js.map +1 -1
- package/package.json +3 -3
- package/dist/scripts/31-e35ae4e153.chunk.js +0 -1
- package/dist/scripts/bundle-06dc1f4908.min.js +0 -8
- package/dist/scripts/polyfills-efb4d7caa3.min.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[21],{1024:function(e,t,n){"use strict";var o,r;n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r})),function(e){e[e.Base=0]="Base",e[e.AwaitingReview=1]="AwaitingReview",e[e.PastReleases=2]="PastReleases",e[e.VideoAccess=3]="VideoAccess",e[e.ProcessingVideo=4]="ProcessingVideo",e[e.Draggable=5]="Draggable",e[e.Search=6]="Search"}(o||(o={})),function(e){e.Checkbox="checkbox",e.Thumbnail="thumbnail",e.Metadata="metadata",e.VideoActions="videoActions",e.VideoInfo="videoInfo"}(r||(r={}))},1025:function(e,t,n){e.exports={lock:"_25RMJ",svgContainer:"_1k8KB"}},1028:function(e,t,n){e.exports={dragItem:"_2TIZ7",svgContainer:"_3JzEU",dragText:"_1Kdwj"}},1029:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<span class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+' mr-2">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+'</span>\r\n<span class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.dragText:i,t))+'">'+a(l(null!=(i=null!=t?t.options:t)?i.text:i,t))+"</span>"},useData:!0})},1037:function(e,t,n){e.exports={actions:"_34Z19",showPreview:"cZAmH"}},1038:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return" cursor-pointer"},3:function(e,t,n,o,r){return"checked"},5:function(e,t,n,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<div class="custom-control custom-checkbox '+a(l(null!=(i=null!=t?t.options:t)?i.checkboxClassName:i,t))+'">\r\n <input name="checkbox-'+a(l(null!=(i=null!=t?t.options:t)?i.id:i,t))+'" id="checkbox-'+a(l(null!=(i=null!=t?t.options:t)?i.id:i,t))+'" type="checkbox" class="custom-control-input'+(null!=(i=n.unless.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" '+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.checked:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+" "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+' />\r\n <label class="custom-control-label'+(null!=(i=n.unless.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" for="checkbox-'+a(l(null!=(i=null!=t?t.options:t)?i.id:i,t))+'"> </label>\r\n</div>'},useData:!0})},1043:function(e,t,n){"use strict";var o=n(1028),r=n.n(o),i=n(1029),l=n.n(i);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=f(e);if(t){var r=f(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(a,e);var t,n,o,i=u(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,e)}return t=a,(n=[{key:"viewOptions",value:function(){return Object.assign({styles:r.a},this.options)}},{key:"name",get:function(){return"DraggableItemComponent"}},{key:"template",get:function(){return l.a}},{key:"className",get:function(){return"".concat(r.a.dragItem," p-3")}}])&&s(t.prototype,n),o&&s(t,o),a}(n(2).a.Component),y={delay:150,cursorAt:{left:-20,top:10},refreshPositions:!0};n.d(t,"c",(function(){return r.a})),n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return y}))},1045:function(e,t,n){e.exports={checkboxContainer:"_3BLCF",thumbnailContainer:"_16jlV",metaContainer:"_2mMws",actionsContainer:"I31I0",allowBulk:"_2VkOe",videoItem:"PoHa-",processingVideo:"qFjv2",bulkPlaceholder:"_3iAFa",previewContainer:"_2UBZX"}},1046:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return g}));var o=n(1),r=n(2),i=n(1038),l=n.n(i),a=n(13);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=y(e);if(t){var r=y(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d="checkbox-all",g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(s,e);var t,n,r,i=f(s);function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),i.call(this,e)}return t=s,(n=[{key:"initialize",value:function(){this.getViewModel(),this.bindListeners()}},{key:"getViewModel",value:function(){this.model=a.a.GetViewModel(this.options.key,this.options.type)}},{key:"bindListeners",value:function(){this.options.disabled||this.listenTo(this.model,"change",this.onChange)}},{key:"events",value:function(){return{"change .custom-control-input":"onClick"}}},{key:"onChange",value:function(){this.checkAllChecked(),this.render()}},{key:"checkAllChecked",value:function(){var e=o.values(this.model.omit("all",d));o.every(e,(function(e){return!!e}))&&(this.model.get("all")||e.length===this.options.numberOfItems)&&this.model.set(c({all:!0},this.getItemId(),!0))}},{key:"getItemId",value:function(){return d}},{key:"onClick",value:function(){this.model.get(this.getItemId())?this.model.clear():(this.model.clear(),this.model.set(c({all:!0},this.getItemId(),!0)))}},{key:"viewOptions",value:function(){return{id:this.getItemId(),checked:this.model.get(d),disabled:this.options.disabled,checkboxClassName:this.options.checkboxClassName}}},{key:"name",get:function(){return"BulkCheckboxComponent"}},{key:"className",get:function(){return this.options.className}},{key:"template",get:function(){return l.a}}])&&u(t.prototype,n),r&&u(t,r),s}(r.a.Component)},1047:function(e,t,n){"use strict";var o=n(0),r=n(81),i=n(188),l=n(190),a=n(1052),s=n(1),c=n(2),u=n(15),p=n(134),f=n(13),h=n(1027),y=n(1058),d=n.n(y),g=n(1059),m=n.n(g);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=C(e);if(t){var r=C(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return O(this,n)}}function O(e,t){return!t||"object"!==v(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(i,e);var t,n,o,r=w(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"events",value:function(){return{"click span":"onClick"}}},{key:"onClick",value:function(e){e.stopPropagation()}},{key:"viewOptions",value:function(){var e=this.options.showReviewBadge&&f.n.getRestrictionTooltipMessage(this.model),t=this.options.showRestrictionBadge&&f.n.getRestrictionTooltipMessage(this.model);return{styles:m.a,interactive:h.i.isInteractive(this.model),subtitles:!1,resources:!1,ratingColorClass:h.i.mapRatingToClass(this.model.rating.get("value")),closeCaptionSvg:u.a.getSvg(u.b.CloseCaptionBadge),resourcesSvg:u.a.getSvg(u.b.Resources),awaitingReviewMessage:e,awaitingReviewBadgeClass:f.n.getReviewBadgeClassName(this.model,m.a.reviewBadge,m.a.urgentReviewBadge),restrictionMessage:t}}},{key:"name",get:function(){return"VideoItemBadgesComponent"}},{key:"template",get:function(){return d.a}},{key:"lang",get:function(){return"shared.videoItemBadges"}},{key:"behaviors",get:function(){return[{behaviorClass:p.a,selector:".tool-tip"}]}},{key:"defaults",get:function(){return{showRestrictionBadge:!1,showReviewBadge:!1}}}])&&b(t.prototype,n),o&&b(t,o),i}(c.a.Component),E=n(1039),R=n(1030),x=n(1060),P=n.n(x),_=n(1025),T=n.n(_);function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function j(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function D(e,t){return(D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function M(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=N(e);if(t){var r=N(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return V(this,n)}}function V(e,t){return!t||"object"!==I(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var F=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&D(e,t)}(l,e);var t,n,r,i=M(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"regions",value:function(){return{sources:{el:".sources-region",replaceElement:!0},badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){return e={},t="click .".concat(T.a.svgContainer),n="onClickBadge",t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"onClickBadge",value:function(e){e.stopPropagation()}},{key:"renderSources",value:function(){var e=s.extend({},{model:this.model},this.options.sourceMetadataOptions);this.showChildView("sources",new E.a(e))}},{key:"renderSeries",value:function(){this.showChildView("series",new R.a({model:this.model,highlight:this.options.sourceMetadataOptions&&!!this.options.sourceMetadataOptions.highlight}))}},{key:"renderBadges",value:function(){this.showChildView("badges",new S({model:this.model}))}},{key:"viewOptions",value:function(){return{styles:T.a,hasAdminRestriction:f.n.hasAdminRestriction(this.model),restrictionMessage:f.n.getRestrictionTooltipMessage(this.model),lockSvg:u.a.getSvg(u.b.Lock)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderSources(),this.renderBadges()}},{key:"name",get:function(){return"VideoItemMetadataComponent"}},{key:"template",get:function(){return P.a}},{key:"behaviors",get:function(){return[{behaviorClass:p.a,selector:".tool-tip"}]}},{key:"appLinks",get:function(){return{".applink-show-video":{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]}}}}])&&j(t.prototype,n),r&&j(t,r),l}(c.a.Component),L=n(1061),A=n.n(L);function B(e){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function U(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function H(e,t){return(H=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=W(e);if(t){var r=W(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return q(this,n)}}function q(e,t){return!t||"object"!==B(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function W(e){return(W=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&H(e,t)}(a,e);var t,n,i,l=z(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return t=a,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"regions",value:function(){return{sources:{el:".sources-region",replaceElement:!0},badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){return e={click:"onClick","click .video-title":"onClickMetadata"},t="click .".concat(T.a.svgContainer),n="onClickMetadata",t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"onClickMetadata",value:function(e){e.stopPropagation()}},{key:"getVideoUrl",value:function(){return r.a.safeUrlConcat(this.options.config.get("onlineUrl"),"videos/".concat(this.model.get("id")))}},{key:"renderSources",value:function(){if(f.x.hasCustomLibrary(this.model)){var e=s.extend({},{model:this.model},this.options.sourceMetadataOptions);this.showChildView("sources",new E.a(e))}}},{key:"renderSeries",value:function(){f.x.hasCustomLibrary(this.model)&&this.showChildView("series",new R.a({model:this.model,highlight:this.options.sourceMetadataOptions&&!!this.options.sourceMetadataOptions.highlight}))}},{key:"renderBadges",value:function(){this.showChildView("badges",new S({model:this.model,showRestrictionBadge:!0}))}},{key:"viewOptions",value:function(){return{styles:T.a,restrictionMessage:f.n.getRestrictionTooltipMessage(this.model),lockSvg:u.a.getSvg(u.b.Lock),linkToOnline:!f.x.hasCustomLibrary(this.model),videoUrl:this.getVideoUrl(),openExternalSvg:u.a.getSvg(u.b.NewWindow)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderSources(),this.renderBadges()}},{key:"name",get:function(){return"VideoItemVideoAccessMetadataComponent"}},{key:"template",get:function(){return A.a}},{key:"behaviors",get:function(){return[{behaviorClass:p.a,selector:".tool-tip"}]}},{key:"appLinks",get:function(){if(f.x.hasCustomLibrary(this.model))return{".applink-show-video":{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]}}}}])&&U(t.prototype,n),i&&U(t,i),a}(c.a.Component),G=n(94),Q=n(96),J=n(1062),K=n.n(J);function Z(e){return(Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function X(e,t){return(X=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ee(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ne(e);if(t){var r=ne(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return te(this,n)}}function te(e,t){return!t||"object"!==Z(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ne(e){return(ne=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var oe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&X(e,t)}(l,e);var t,n,r,i=ee(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"bindListeners",value:function(){this.model.get("status")===G.a.Processing&&this.options.pendingItems&&(this.pendingItem||(this.listenTo(this.options.pendingItems,"update",this.mapPendingItem),this.mapPendingItem()))}},{key:"mapPendingItem",value:function(){this.pendingItem=this.options.pendingItems.get(this.model.get("id")),this.render(),this.pendingItem&&(this.stopListening(this.options.pendingItems,"update"),this.listenTo(this.pendingItem,"change:foregroundProgress change:backgroundProgress change:pendingProcessStatus",this.render))}},{key:"viewOptions",value:function(){return this.pendingItem?{status:Q.a.getStatus(this.pendingItem),hasError:Q.a.hasError(this.pendingItem),hasPendingItem:!0}:{hasPendingItem:!1}}},{key:"lang",get:function(){return"shared.videoItemProcessingMetadata"}},{key:"name",get:function(){return"VideoItemProcessingMetadataComponent"}},{key:"template",get:function(){return K.a}},{key:"appLinks",get:function(){var e=this.model.series?this.model.series.id:"";return{".applink-series":{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.FOLDER,args:[e]}}}}])&&$(t.prototype,n),r&&$(t,r),l}(c.a.Component),re=n(1063),ie=n.n(re);function le(e){return(le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ae(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function se(e,t){return(se=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ce(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=pe(e);if(t){var r=pe(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ue(this,n)}}function ue(e,t){return!t||"object"!==le(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function pe(e){return(pe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&se(e,t)}(l,e);var t,n,o,i=ce(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return t=l,(n=[{key:"events",value:function(){return{"click .video-title":"onClickMetadata","click .svg-container":"onClickMetadata"}}},{key:"regions",value:function(){return{badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"onClickMetadata",value:function(e){e.stopPropagation()}},{key:"getVideoUrl",value:function(){return r.a.safeUrlConcat(this.options.config.get("onlineUrl"),"videos/".concat(this.model.get("id")))}},{key:"getSeriesUrl",value:function(){if(this.model.series)return r.a.safeUrlConcat(this.options.config.get("onlineUrl"),"series/".concat(this.model.series.id))}},{key:"renderBadges",value:function(){this.showChildView("badges",new S({model:this.model,showReviewBadge:!0}))}},{key:"renderSeries",value:function(){this.showChildView("series",new R.a({model:this.model,highlight:!1,seriesUrl:this.getSeriesUrl()}))}},{key:"viewOptions",value:function(){return{styles:T.a,videoUrl:this.getVideoUrl(),openExternalSvg:u.a.getSvg(u.b.NewWindow)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderBadges()}},{key:"name",get:function(){return"VideoItemAwaitingReviewMetadataComponent"}},{key:"template",get:function(){return ie.a}}])&&ae(t.prototype,n),o&&ae(t,o),l}(c.a.Component),he=n(1064),ye=n.n(he),de=n(1065),ge=n.n(de);function me(e){return(me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function be(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ke(e,t){return(ke=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function we(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Ce(e);if(t){var r=Ce(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Oe(this,n)}}function Oe(e,t){return!t||"object"!==me(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ce(e){return(Ce=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Se=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ke(e,t)}(l,e);var t,n,o,i=we(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"regions",value:function(){return{badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){var e;return ve(e={"click .video-title":"onClickMetadata"},"click .".concat(ge.a.series),"onClickMetadata"),ve(e,"click .svg-container","onClickMetadata"),e}},{key:"onClickMetadata",value:function(e){e.stopPropagation()}},{key:"getVideoUrl",value:function(){return r.a.safeUrlConcat(this.options.config.get("onlineUrl"),"videos/".concat(this.model.get("id")))}},{key:"getSeriesUrl",value:function(){if(this.model.series)return r.a.safeUrlConcat(this.options.config.get("onlineUrl"),"series/".concat(this.model.series.id))}},{key:"renderBadges",value:function(){this.showChildView("badges",new S({model:this.model}))}},{key:"renderSeries",value:function(){this.showChildView("series",new R.a({model:this.model,highlight:!1,seriesUrl:this.getSeriesUrl()}))}},{key:"viewOptions",value:function(){return{styles:s.extend({},T.a,ge.a),videoUrl:this.getVideoUrl(),openExternalSvg:u.a.getSvg(u.b.NewWindow),hasAdminRestriction:f.n.hasAdminRestriction(this.model),restrictionMessage:f.n.getRestrictionTooltipMessage(this.model),lockSvg:u.a.getSvg(u.b.Lock)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderBadges()}},{key:"name",get:function(){return"VideoItemPastReleasesMetadataComponent"}},{key:"template",get:function(){return ye.a}},{key:"lang",get:function(){return"shared.videoItemPastReleasesMetadata"}},{key:"behaviors",get:function(){return[{behaviorClass:p.a,selector:".tool-tip"}]}}])&&be(t.prototype,n),o&&be(t,o),l}(c.a.Component),Ee=n(1066),Re=n.n(Ee);function xe(e){return(xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function _e(e,t){return(_e=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Te(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=je(e);if(t){var r=je(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Ie(this,n)}}function Ie(e,t){return!t||"object"!==xe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function je(e){return(je=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var De=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_e(e,t)}(l,e);var t,n,r,i=Te(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"regions",value:function(){return{sources:{el:".sources-region",replaceElement:!0},badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){return e={click:"onClick"},t="click ".concat(T.a.svgContainer),n="onClickSvg",t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"onClickSvg",value:function(e){e.stopPropagation()}},{key:"getKeyPhrases",value:function(){var e=this;return f.v.extractKeyPhrases(this.model.get("description"),this.model.get("_matchedWords"),100,2).map((function(t){return f.v.wordsHighlighter(f.v.escapeExpression(t),e.model.get("_matchedWords"))}))}},{key:"renderSources",value:function(){var e=s.extend({},{model:this.model},this.options.sourceMetadataOptions);this.showChildView("sources",new E.a(e))}},{key:"renderSeries",value:function(){this.showChildView("series",new R.a({model:this.model,highlight:this.options.sourceMetadataOptions&&!!this.options.sourceMetadataOptions.highlight}))}},{key:"renderBadges",value:function(){this.showChildView("badges",new S({model:this.model}))}},{key:"viewOptions",value:function(){return{styles:T.a,name:f.v.wordsHighlighter(f.v.escapeExpression(this.model.get("name")),this.model.get("_matchedWords")),keyPhrases:this.getKeyPhrases(),hasAdminRestriction:f.n.hasAdminRestriction(this.model),restrictionMessage:f.n.getRestrictionTooltipMessage(this.model),lockSvg:u.a.getSvg(u.b.Lock)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderSources(),this.renderBadges()}},{key:"name",get:function(){return"VideoItemSearchMetadataComponent"}},{key:"template",get:function(){return Re.a}},{key:"behaviors",get:function(){return[{behaviorClass:p.a,selector:".tool-tip"}]}},{key:"appLinks",get:function(){return{".applink-show-video":{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]}}}}])&&Pe(t.prototype,n),r&&Pe(t,r),l}(c.a.Component),Me=n(7),Ve=n(1093),Ne=n(1067),Fe=n.n(Ne),Le=n(1037),Ae=n.n(Le);function Be(e){return(Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ue(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function He(e,t){return(He=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ze(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=We(e);if(t){var r=We(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return qe(this,n)}}function qe(e,t){return!t||"object"!==Be(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function We(e){return(We=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ye=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&He(e,t)}(i,e);var t,n,o,r=ze(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"regions",value:function(){return{videoActions:".video-actions-region"}}},{key:"events",value:function(){return e={},t="click .".concat(Ae.a.showPreview),n="onClickShowPreview",t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"onClickShowPreview",value:function(e){e.stopPropagation(),this.options.channelName&&Me.Radio.channel(this.options.channelName).trigger("click:show:preview")}},{key:"renderVideoActions",value:function(){this.showChildView("videoActions",new Ve.a(this.options.videoActionsOptions))}},{key:"viewOptions",value:function(){return{styles:Ae.a,previewDisplayed:this.options.previewDisplayed,previewSvg:u.a.getSvg(u.b.Preview)}}},{key:"onRender",value:function(){this.renderVideoActions()}},{key:"name",get:function(){return"VideoItemActionsComponent"}},{key:"template",get:function(){return Fe.a}},{key:"className",get:function(){return"d-flex h-100 flex-column align-items-end justify-content-between"}},{key:"lang",get:function(){return"shared._videoItemActions"}}])&&Ue(t.prototype,n),o&&Ue(t,o),i}(c.a.Component),Ge=n(5),Qe=n(4),Je=n(42),Ke=n(1068),Ze=n.n(Ke);function $e(e){return($e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function et(e,t){return(et=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function tt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ot(e);if(t){var r=ot(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return nt(this,n)}}function nt(e,t){return!t||"object"!==$e(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ot(e){return(ot=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var rt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&et(e,t)}(l,e);var t,n,r,i=tt(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.restrictedVideoDataService=Ge.a.getInstance(o.g.RestrictedVideo,this)}},{key:"events",value:function(){return e={"click .approve":"onClickApprove","click .applink-manage-video-access":"onClickManageVideoAccess"},t="click .".concat(Ae.a.showPreview),n="onClickShowPreview",t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"onClickApprove",value:function(e){e.stopPropagation(),this.restrictedVideoDataService.deleteVideoRestriction(this.model.get("id")),this.logApproveAction()}},{key:"onClickManageVideoAccess",value:function(e){e.stopPropagation(),this.logManageAccessAction()}},{key:"onClickShowPreview",value:function(e){e.stopPropagation(),this.options.channelName&&Me.Radio.channel(this.options.channelName).trigger("click:show:preview")}},{key:"logApproveAction",value:function(){var e={location:Qe.k.AwaitingReviewVideoItem,actionType:Qe.q.Approve,entity:Qe.e.Video,descriptor:Qe.l.Single,workflowPhase:Qe.r.Complete},t={id:this.model.get("id")};Je.a.logUserAction(t,e)}},{key:"logManageAccessAction",value:function(){var e={location:Qe.k.AwaitingReviewVideoItem,actionType:Qe.q.SetAccess,entity:Qe.e.Video,workflowPhase:Qe.r.Start},t={id:this.model.get("id")};Je.a.logUserAction(t,e)}},{key:"viewOptions",value:function(){return{styles:Ae.a,previewDisplayed:this.options.previewDisplayed,previewSvg:u.a.getSvg(u.b.Preview)}}},{key:"name",get:function(){return"VideoItemReviewActionsComponent"}},{key:"template",get:function(){return Ze.a}},{key:"lang",get:function(){return"shared.videoItemReviewActions"}},{key:"className",get:function(){return"d-flex h-100 flex-column align-items-end"}},{key:"appLinks",get:function(){return{".applink-manage-video-access":{application:o.b.CONTENT_UPDATES,action:o.a.Shared.MANAGE_VIDEO_ACCESS,args:[this.model.get("id")]}}}}])&&Xe(t.prototype,n),r&&Xe(t,r),l}(c.a.Component),it=n(1069),lt=n.n(it);function at(e){return(at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function st(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ct(e,t){return(ct=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ut(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ft(e);if(t){var r=ft(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return pt(this,n)}}function pt(e,t){return!t||"object"!==at(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ft(e){return(ft=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ht=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ct(e,t)}(l,e);var t,n,r,i=ut(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return t=l,(n=[{key:"events",value:function(){return e={"click .applink-manage-video-access":"onClickManageVideoAccess"},t="click .".concat(Ae.a.showPreview),n="onClickShowPreview",t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"onClickManageVideoAccess",value:function(e){e.stopPropagation(),this.logAction()}},{key:"onClickShowPreview",value:function(e){e.stopPropagation(),this.options.channelName&&Me.Radio.channel(this.options.channelName).trigger("click:show:preview")}},{key:"logAction",value:function(){var e={location:Qe.k.VideoListItem,actionType:Qe.q.SetAccess,entity:Qe.e.Video,workflowPhase:Qe.r.Start},t={id:this.model.get("id")};Je.a.logUserAction(t,e)}},{key:"viewOptions",value:function(){return{styles:Ae.a,previewDisplayed:this.options.previewDisplayed,previewSvg:u.a.getSvg(u.b.Preview)}}},{key:"name",get:function(){return"VideoItemVideoAccessComponent"}},{key:"template",get:function(){return lt.a}},{key:"lang",get:function(){return"shared.videoItemVideoAccessActions"}},{key:"className",get:function(){return"d-flex h-100 flex-column align-items-end justify-content-between"}},{key:"appLinks",get:function(){return{".applink-manage-video-access":{application:o.b.VIDEO_ACCESS,action:o.a.Shared.MANAGE_VIDEO_ACCESS,args:[this.model.get("id")]}}}}])&&st(t.prototype,n),r&&st(t,r),l}(c.a.Component),yt=n(1053),dt=n(1070),gt=n(6),mt=n(3),vt=n(286),bt=n(1055),kt=n(158),wt=n(1071),Ot=n.n(wt);function Ct(e){return(Ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function St(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Et(e,t){return(Et=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Rt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Pt(e);if(t){var r=Pt(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return xt(this,n)}}function xt(e,t){return!t||"object"!==Ct(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Pt(e){return(Pt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _t=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Et(e,t)}(l,e);var t,n,r,i=Rt(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return t=l,(n=[{key:"events",value:function(){return{"click .show-more-tags":"onClickShowMoreTags"}}},{key:"regions",value:function(){return{tags:{replaceElement:!0,el:".tags-region"}}}},{key:"onClickShowMoreTags",value:function(){this.showingMoreTags=!0,this.options.channelName&&Me.Radio.channel(this.options.channelName).trigger("show:more:tags"),this.render()}},{key:"getTagCollection",value:function(){var e=this.showingMoreTags?this.options.expandedTagDisplayCount:this.options.initialTagDisplayCount;return new vt.a(this.collection.slice(0,e))}},{key:"getExtraTagsInfo",value:function(){if(!this.showingMoreTags)return mt.a.getPhrase(this.lang,"extraTags",{smartCount:s.max([this.collection.length-this.options.initialTagDisplayCount,0])})}},{key:"renderTags",value:function(){var e=new bt.a({collection:this.getTagCollection(),behavior:kt.c.Link});this.showChildView("tags",e)}},{key:"viewOptions",value:function(){return{expandable:this.collection.length>this.options.initialTagDisplayCount&&!this.showingMoreTags,extraTagsText:this.getExtraTagsInfo(),moreTags:this.showingMoreTags&&this.collection.length>this.options.expandedTagDisplayCount}}},{key:"onRender",value:function(){this.renderTags()}},{key:"name",get:function(){return"ExpandableTagListComponent"}},{key:"template",get:function(){return Ot.a}},{key:"lang",get:function(){return"libraryEditor.expandableTagList"}},{key:"defaults",get:function(){return{initialTagDisplayCount:5,expandedTagDisplayCount:10}}},{key:"appLinks",get:function(){return{".applink-video-details":{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.VIDEO_DETAILS,args:[this.options.videoId]}}}}])&&St(t.prototype,n),r&&St(t,r),l}(c.a.Component),Tt=n(1072),It=n.n(Tt),jt=n(1073),Dt=n.n(jt);function Mt(e){return(Mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Nt(e,t){return(Nt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ft(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=At(e);if(t){var r=At(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Lt(this,n)}}function Lt(e,t){return!t||"object"!==Mt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function At(e){return(At=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Bt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Nt(e,t)}(l,e);var t,n,r,i=Ft(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change",this.render),this.listenTo(this.channelName,"show:more:tags",this.onClickShowMoreTags)}},{key:"regions",value:function(){return{partialLoadingContainer:{el:".content-container-region",replaceElement:!1,partialLoading:gt.j.VideoItemPreview},description:".description-region",preview:".video-preview-region",tags:{replaceElement:!0,el:".tags-region"}}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(e){e.stopPropagation()}},{key:"onClickShowMoreTags",value:function(){Me.Radio.channel(this.options.channelName).trigger("resize:preview")}},{key:"showTags",value:function(){return!(!this.model.tags||!this.model.tags.length)}},{key:"renderDescription",value:function(){if(this.model&&this.model.get("description")){var e=new yt.a({model:this.model,highlighter:!0,size:yt.b.Small,truncate:!0});this.showChildView("description",e)}}},{key:"renderTags",value:function(){if(this.showTags()){var e=new _t({collection:this.model.tags,videoId:this.model.id&&this.model.get("id"),channelName:this.channelName});this.showChildView("tags",e)}}},{key:"renderVideoPreview",value:function(){var e=new dt.a({model:this.model,webPlayerUrl:this.options.webPlayerUrl,analyticsOptions:{location:Qe.k.VideoItemPreview}});this.showChildView("preview",e)}},{key:"getSubtitleLanguage",value:function(){if(!this.model.subtitles||!this.model.get("subtitles").length)return"";var e=s.uniq(this.model.get("subtitles").map((function(e){return e.get("language")})));return s.map(e,(function(e){return CVLanguages.getFullEnglishName(e)})).join(", ")}},{key:"getDetails",value:function(e){if(!this.model[e]||!this.model.get(e).length)return"";var t=this.model.get(e).length;return t>1?"".concat(t," ").concat(e):"".concat(mt.a.getPhrase(this.lang,"one")," ").concat(e.slice(0,-1))}},{key:"onBeforeRender",value:function(){return!(!this.model||!this.model.get("dataFetched"))||(Me.Radio.channel(this.options.collectionViewChannel).trigger("fetch:video:with:metadata",this.options.videoId),!(!this.model||!this.model.get("dataFetched"))&&void 0)}},{key:"viewOptions",value:function(){if(this.model&&this.model.get("dataFetched")){var e=this.model.get("duration");return{styles:Dt.a,ratingClass:this.model.rating&&h.i.mapRatingToClass(this.model.rating.get("value")),showTags:this.showTags(),description:this.model.get("description"),duration:e&&f.e.ToDisplayDuration(e),chapters:this.getDetails("chapters"),interactives:this.model.interactives&&this.model.get("interactives").length,subtitles:this.getSubtitleLanguage(),resources:this.getDetails("resources"),links:this.getDetails("links"),externalLink:this.options.externalLink,openExternalSvg:u.a.getSvg(u.b.NewWindow)}}}},{key:"onRender",value:function(){this.renderDescription(),this.renderTags(),this.renderVideoPreview()}},{key:"name",get:function(){return"VideoItemPreviewComponent"}},{key:"template",get:function(){return It.a}},{key:"lang",get:function(){return"shared.videoItemPreview"}},{key:"className",get:function(){return"row border-top px-3 m-0"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"appLinks",get:function(){return{".applink-video-details":{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]}}}},{key:"behaviors",get:function(){return[{behaviorClass:p.a,selector:".tool-tip"}]}}])&&Vt(t.prototype,n),r&&Vt(t,r),l}(c.a.Component),Ut=n(1074),Ht=n.n(Ut);function zt(e){return(zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Wt(e,t){return(Wt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Yt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Qt(e);if(t){var r=Qt(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Gt(this,n)}}function Gt(e,t){return!t||"object"!==zt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Qt(e){return(Qt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Jt,Kt,Zt,$t,Xt,en,tn,nn,on,rn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Wt(e,t)}(i,e);var t,n,o,r=Yt(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"events",value:function(){return{"click .cancel":"onClickCancel","click .retry":"onClickRetry"}}},{key:"onClickCancel",value:function(){var e=this.pendingItem.get("video").get("name");f.b.generateDialog(e,this.options.channelName,"cancel:pending:item",this.pendingItem)}},{key:"onClickRetry",value:function(){Me.Radio.channel(this.options.channelName).trigger("retry:pending:item",this.pendingItem)}},{key:"bindListeners",value:function(){this.model.get("status")===G.a.Processing&&this.options.pendingItems&&(this.pendingItem||(this.listenTo(this.options.pendingItems,"update",this.mapPendingItem),this.mapPendingItem()))}},{key:"mapPendingItem",value:function(){this.pendingItem=this.options.pendingItems.get(this.model.get("id")),this.render(),this.pendingItem&&(this.stopListening(this.options.pendingItems,"update"),this.listenTo(this.pendingItem,"change:pendingProcessStatus",this.render))}},{key:"viewOptions",value:function(){return{hasError:Q.a.hasError(this.pendingItem)}}},{key:"onBeforeRender",value:function(){return!!this.pendingItem}},{key:"name",get:function(){return"VideoItemProcessingActionsComponent"}},{key:"template",get:function(){return Ht.a}},{key:"lang",get:function(){return"shared.videoItemProcessingActions"}},{key:"className",get:function(){return"d-flex h-100 flex-column align-items-end justify-content-between"}}])&&qt(t.prototype,n),o&&qt(t,o),i}(c.a.Component),ln=n(1045),an=n.n(ln),sn=n(185),cn=n(1024);function un(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return gn}));var pn=cn.b,fn=cn.a,hn=function(e){return{component:i.a,options:{model:e.model,lazyload:e.shouldLazyLoadThumbnail(),thumbnailOptions:{size:l.a.Small},href:r.a.safeUrlConcat(e.options.config.get("onlineUrl"),"videos/".concat(e.model.id)),channelName:e.channelName}}},yn=function(e){return{component:Bt,options:{model:e.options.videoWithMetadata,videoId:e.model.id.toString(),channelName:e.channelName,collectionViewChannel:e.options.collectionViewChannel,webPlayerUrl:e.options.config.get("webPlayerUrl")}}},dn=function(e){return{component:Bt,options:{model:e.options.videoWithMetadata,videoId:e.model.id.toString(),channelName:e.channelName,collectionViewChannel:e.options.collectionViewChannel,webPlayerUrl:e.options.config.get("webPlayerUrl"),externalLink:r.a.safeUrlConcat(e.options.config.get("onlineUrl"),"videos/".concat(e.model.id))}}},gn={componentOptions:(en={},un(en,pn.Base,(Jt={},un(Jt,fn.Checkbox,(function(e){return{component:a.a,options:{className:"d-inline-flex align-items-center mr-3 ".concat(an.a.checkboxContainer),checkboxClassName:an.a.checkbox,itemId:e.model.id,key:e.collectionIdentifier.toString(),type:sn.a.VIDEO_LIST}}})),un(Jt,fn.Thumbnail,(function(e){return{component:i.a,options:{model:e.model,lazyload:e.shouldLazyLoadThumbnail(),thumbnailOptions:{size:l.a.Small},appLink:{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.VIDEO_DETAILS,args:[e.model.id]},channelName:e.channelName}}})),un(Jt,fn.Metadata,(function(e){return{component:F,options:{model:e.model,sourceMetadataOptions:e.options.sourceMetadataOptions}}})),un(Jt,fn.VideoActions,(function(e){return{component:Ye,options:{model:e.model,channelName:e.channelName,previewDisplayed:e.viewModel.get("previewOpen"),videoActionsOptions:{model:e.model,application:e.options.application,collectionIdentifier:e.options.collectionIdentifier,customerHasLocalCache:e.options.customerHasLocalCache,customerHasExchange:e.options.customerHasExchange,customerHasCustomLibrary:e.options.customerHasCustomLibrary,analyticsOptions:e.options.analyticsOptions,config:e.options.config,collectionSource:e.options.videoCollectionSource}}}})),un(Jt,fn.VideoInfo,yn),Jt)),un(en,pn.AwaitingReview,(Kt={},un(Kt,fn.Thumbnail,hn),un(Kt,fn.Metadata,(function(e){return{component:fe,options:{model:e.model,config:e.options.config}}})),un(Kt,fn.VideoActions,(function(e){return{component:rt,options:{model:e.model,channelName:e.channelName,previewDisplayed:e.viewModel.get("previewOpen"),analyticsOptions:e.options.analyticsOptions}}})),un(Kt,fn.VideoInfo,dn),Kt)),un(en,pn.PastReleases,(Zt={},un(Zt,fn.Thumbnail,hn),un(Zt,fn.Metadata,(function(e){return{component:Se,options:{model:e.model,config:e.options.config}}})),un(Zt,fn.VideoInfo,dn),Zt)),un(en,pn.VideoAccess,($t={},un($t,fn.VideoActions,(function(e){return{component:ht,options:{model:e.model,channelName:e.channelName,previewDisplayed:e.viewModel.get("previewOpen"),analyticsOptions:e.options.analyticsOptions}}})),un($t,fn.Metadata,(function(e){return{component:Y,options:{model:e.model,config:e.options.config,sourceMetadataOptions:{showFolder:!0}}}})),un($t,fn.VideoInfo,(function(e){return f.x.hasCustomLibrary(e.model)?yn(e):dn(e)})),$t)),un(en,pn.ProcessingVideo,(Xt={},un(Xt,fn.Metadata,(function(e){return{component:oe,options:{model:e.model,pendingItems:e.options.pendingItems}}})),un(Xt,fn.VideoActions,(function(e){return{component:rn,options:{model:e.model,pendingItems:e.options.pendingItems,channelName:e.options.collectionViewChannel,analyticsOptions:e.options.analyticsOptions}}})),Xt)),un(en,pn.Draggable,{}),un(en,pn.Search,un({},fn.Metadata,(function(e){return{component:De,options:{model:e.model,sourceMetadataOptions:{showFolder:!0,highlight:!0}}}}))),en),onBeforeRender:(on={},un(on,pn.Base,(tn={},un(tn,fn.Checkbox,(function(e){return!!e.options.allowBulk})),un(tn,fn.VideoInfo,(function(e){return!!e.viewModel.get("previewOpen")})),tn)),un(on,pn.ProcessingVideo,(nn={},un(nn,fn.Checkbox,(function(){return!1})),un(nn,fn.VideoInfo,(function(){return!1})),nn)),on)}},1048:function(e,t,n){"use strict";var o=n(2),r=n(1),i=n(1024),l=n(1047),a=n(1049);var s,c,u,p=(s={},c=i.b.Draggable,u=function(e){return[{behaviorClass:a.a,collectionIdentifier:e.options.collectionIdentifier,model:e.options.model,selector:"drag-selector"}]},c in s?Object.defineProperty(s,c,{value:u,enumerable:!0,configurable:!0,writable:!0}):s[c]=u,s),f=n(19);n.d(t,"a",(function(){return d}));var h=i.b.Base,y=l.a,d={renderRegions:function(e,t){r.each(e.regions,(function(n,o){g.onBeforeRenderRegion(e,t,o)&&g.renderRegion(e,t,o)}))},onBeforeRenderRegion:function(e,t,n){var o=y.onBeforeRender[t];if(o||(o=y.onBeforeRender[h]),!o)return!0;var i=o[n];return!i||(!r.isFunction(i)||i(e))},renderRegion:function(e,t,n){var o=g.getComponent(e,t,n);e.showChildView(n,o)},getComponent:function(e,t,n){var r=y.componentOptions[t];r||o.a.ErrorHelper.throw(new f.a("Must define VideoItemComponent type options: ".concat(i.b[t],".")));var l=r[n];l||(l=y.componentOptions[h][n]),l||o.a.ErrorHelper.throw(new f.a("Must define VideoItemComponent region options: ".concat(n,".")));var a=l(e);return a.component||o.a.ErrorHelper.throw(new f.a("Must define component for region: ".concat(n,",\n in VideoItemComponent type: ").concat(i.b[t],"."))),new a.component(a.options||{})},getBehaviors:function(e,t){return p[t]?p[t](e):null}},g=d},1049:function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var o=n(1),r=n(7),i=n(2),l=n(19),a=n(15),s=n(0),c=n(13),u=n(3),p=n(1043),f=n(185),h=n(1051),y=n.n(h);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=w(e);if(t){var r=w(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return k(this,n)}}function k(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(k,e);var t,n,h,d=b(k);function k(){return g(this,k),d.apply(this,arguments)}return t=k,(n=[{key:"initialize",value:function(){this.options.model||i.a.ErrorHelper.throw(new l.a("DraggableVideoBehavior must be passed a Video model")),this.listenTo(s.w.VIDEO_DRAG_DROP,"drag:style:".concat(this.options.model.id),this.styleDragStart),this.listenTo(s.w.VIDEO_DRAG_DROP,"drag:stop",this.styleDragStop)}},{key:"helper",value:function(){var e=this.getVideoModels();return new p.b({text:e.length>1?u.a.getPhrase(this.lang,"videos",{videoCount:e.length}):e[0].get("name"),svg:a.a.getSvg(a.b.Play)}).render().el}},{key:"getSelector",value:function(){return this.view.getUI(this.options.selector)}},{key:"styleDragStart",value:function(){this.getSelector().addClass(y.a.draggingVideo)}},{key:"styleDragStop",value:function(){this.getSelector().removeClass(y.a.draggingVideo)}},{key:"start",value:function(){var e=this.getVideoModels(),t=r.Radio.channel(s.w.VIDEO_DRAG_DROP);t.trigger("drag:start",e,this.options.collectionIdentifier),o.each(e,(function(e){return t.trigger("drag:style:".concat(e.id))}))}},{key:"stop",value:function(){r.Radio.channel(s.w.VIDEO_DRAG_DROP).trigger("drag:stop")}},{key:"getVideoModels",value:function(){var e=this,t=c.a.GetSelectedModels({key:this.options.collectionIdentifier.toString(),type:f.a.VIDEO_LIST,collection:this.view.model.collection});return o.any(t,(function(t){return t.id===e.view.model.id}))||(t=[this.view.model]),t.length?t:[this.view.model]}},{key:"getClassMappings",value:function(){return{"ui-draggable":p.c.draggable,"ui-draggable-disabled":p.c.disabled,"ui-draggable-handle":p.c.handle,"ui-draggable-dragging":p.c.dragging}}},{key:"onRender",value:function(){var e=this.getSelector(),t={helper:o.bind(this.helper,this),start:o.bind(this.start,this),stop:o.bind(this.stop,this)};t.classes=this.getClassMappings(),e.draggable(o.extend({},p.a,t))}},{key:"onBeforeDestroy",value:function(){var e=this.getSelector();e.draggable("instance")&&e.draggable("destroy")}},{key:"lang",get:function(){return"libraryEditor.behaviors"}}])&&m(t.prototype,n),h&&m(t,h),k}(i.a.Behavior)},1051:function(e,t,n){e.exports={draggingVideo:"_3cCHx"}},1052:function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var o=n(2),r=n(1038),i=n.n(r),l=n(13),a=n(1046);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=h(e);if(t){var r=h(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(s,e);var t,n,o,r=p(s);function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),r.call(this,e)}return t=s,(n=[{key:"initialize",value:function(){if(this.getViewModel(),this.bindListeners(),this.options.checked){var e=this.getItemId();this.model.set(e,!0,{silent:!0})}}},{key:"getViewModel",value:function(){this.model=l.a.GetViewModel(this.options.key,this.options.type)}},{key:"bindListeners",value:function(){this.options.disabled||this.listenTo(this.model,"change:all change:".concat(this.getItemId()),this.render)}},{key:"events",value:function(){return{"click .custom-checkbox":"onClickCheckbox","change .custom-control-input":"onChangeCheckbox"}}},{key:"getItemId",value:function(){return this.options.itemId.toString()}},{key:"onClickCheckbox",value:function(e){e.stopPropagation()}},{key:"onChangeCheckbox",value:function(){if(!this.options.disabled){var e=this.getItemId();this.model.has(e)||this.model.get("all")?!1===this.model.get(e)?this.model.set(e,!0):(this.model.set(e,!1),this.model.set(a.a,!1)):this.model.set(e,!0)}}},{key:"viewOptions",value:function(){var e=this.getItemId();return{id:e,checked:this.model.has(e)?this.model.get(e):this.model.get("all"),disabled:this.options.disabled,checkboxClassName:this.options.checkboxClassName}}},{key:"name",get:function(){return"CheckboxComponent"}},{key:"className",get:function(){return this.options.className}},{key:"template",get:function(){return i.a}}])&&c(t.prototype,n),o&&c(t,o),s}(o.a.Component)},1056:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(1),r=n(2),i=n(4),l=n(42),a=n(1057),s=n.n(a);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=y(e);if(t){var r=y(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(c,e);var t,n,r,a=f(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),a.call(this,e)}return t=c,(n=[{key:"events",value:function(){return{"click .previous-applink":"onClickPrevious","click .next-applink":"onClickNext"}}},{key:"buildCursor",value:function(e){return{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:o.extend({},this.options.appLink.params,(t={},n=this.options.cursorParamName,r=e,n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t))};var t,n,r}},{key:"onClickPrevious",value:function(){this.logAction("previous")}},{key:"onClickNext",value:function(){this.logAction("next")}},{key:"logAction",value:function(e){var t=l.a.mergeOptions(this.options.analyticsOptions,{location:i.k.Pagination,entity:i.e.Pagination,actionType:i.q.Navigate,workflowPhase:i.r.Complete}),n={id:this.options.collectionId,page:e};l.a.logUserAction(n,t)}},{key:"viewOptions",value:function(){return{cursors:this.options.cursors}}},{key:"onBeforeRender",value:function(){return!!this.options.cursors}},{key:"defaults",get:function(){return{cursors:{},cursorParamName:"cursor"}}},{key:"name",get:function(){return"PaginationComponent"}},{key:"template",get:function(){return s.a}},{key:"lang",get:function(){return"shared._pagination"}},{key:"appLinks",get:function(){var e={};if(!this.options.cursors)return{};if(this.options.cursors.previous){var t=this.options.cursors.previous,n=this.buildCursor(this.options.cursors.previous);+t<=1&&!0!==this.options.allowFirstPageCursor&&delete n.params.cursor,e[".previous-applink"]=n}return this.options.cursors.next&&(e[".next-applink"]=this.buildCursor(this.options.cursors.next)),e}}])&&u(t.prototype,n),r&&u(t,r),c}(r.a.Component)},1057:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression;return'<div class="p-3">\r\n <a class="btn previous-applink btn-secondary '+(null!=(i=n.unless.call(l,null!=(i=null!=(i=null!=t?t.options:t)?i.cursors:i)?i.previous:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">'+s((n.lang||t&&t.lang||a).call(l,"previous",{name:"lang",hash:{},data:r}))+'</a>\r\n <a class="btn next-applink btn-secondary '+(null!=(i=n.unless.call(l,null!=(i=null!=(i=null!=t?t.options:t)?i.cursors:i)?i.next:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">'+s((n.lang||t&&t.lang||a).call(l,"next",{name:"lang",hash:{},data:r}))+"</a>\r\n</div>"},useData:!0})},1058:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <span class="badge p-1 '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.interactive:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"interactive",{name:"lang",hash:{},data:r}))+"</span>\r\n"},3:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="badge p-1 tool-tip '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.rating:i,t))+" "+a(l(null!=(i=null!=t?t.options:t)?i.ratingColorClass:i,t))+'" title="'+a(l(null!=(i=null!=t?t.rating:t)?i.name:i,t))+'">'+a(l(null!=(i=null!=t?t.rating:t)?i.code:i,t))+"</span>\r\n"},5:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda;return' <span class="d-inline-block tool-tip '+e.escapeExpression(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'" title="Subtitles">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.closeCaptionSvg:i,t))?i:"")+"</span>\r\n"},7:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda;return' <span class="d-inline-block tool-tip '+e.escapeExpression(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'" title="Resources">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.resourcesSvg:i,t))?i:"")+"</span>\r\n"},9:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="badge p-1 '+a(l(null!=(i=null!=t?t.options:t)?i.awaitingReviewBadgeClass:i,t))+'">'+a(l(null!=(i=null!=t?t.options:t)?i.awaitingReviewMsg:i,t))+"</span>\r\n"},11:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="badge p-1 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.restrictionBadgeClass:i,t))+'">'+a(l(null!=(i=null!=t?t.options:t)?i.restrictionMessage:i,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return'<div class="mt-1 '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.badgesWrapper:i,t))+'">\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.interactive:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.rating:t)?i.code:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.subtitles:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.resources:i,{name:"if",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.awaitingReviewMsg:i,{name:"if",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.restrictionMessage:i,{name:"if",hash:{},fn:e.program(11,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},1059:function(e,t,n){e.exports={interactive:"_37GpR",rating:"_2lAYT",svgContainer:"_19ncQ",badgesWrapper:"_26lCi",restrictionBadgeClass:"UdQeS",reviewBadge:"ExFLF",urgentReviewBadge:"_3dcfL"}},1060:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="d-inline-block ml-1 tool-tip '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'" title="'+a(l(null!=(i=null!=t?t.options:t)?i.restrictionMessage:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.lockSvg:i,t))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,a=null!=t?t:e.nullContext||{};return'<div class="series-region"></div>\r\n<a class="cursor-pointer applink-show-video h6 text-dark">'+e.escapeExpression("function"==typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:e.hooks.helperMissing)?l.call(a,{name:"name",hash:{},data:r}):l)+"</a>\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasAdminRestriction:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="sources-region"></div>\r\n<div class="badges-region"></div>'},useData:!0})},1061:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,a=e.lambda,s=e.escapeExpression;return'<a class="cursor-pointer h6 video-title text-dark" href="'+s(a(null!=(i=null!=t?t.options:t)?i.videoUrl:i,t))+'" target="_blank">'+s("function"==typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:e.hooks.helperMissing)?l.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):l)+'</a>\r\n<a class="svg-container d-inline-block align-bottom text-muted no-decoration" href="'+s(a(null!=(i=null!=t?t.options:t)?i.videoUrl:i,t))+'" target="_blank">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.openExternalSvg:i,t))?i:"")+"</a>\r\n"},3:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<a class="cursor-pointer applink-show-video h6">'+e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):i)+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<div class="series-region"></div>\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.linkToOnline:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+'<span class="d-inline-block ml-1 tool-tip '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.lock:i,t))+" "+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'" title="'+a(l(null!=(i=null!=t?t.options:t)?i.restrictionMessage:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.lockSvg:i,t))?i:"")+'</span>\r\n<div class="sources-region"></div>\r\n<div class="badges-region"></div>'},useData:!0})},1062:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda;return' <span class="d-inline-block align-middle ml-1 '+e.escapeExpression(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.lockSvgContainer:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.lockSvg:i,t))?i:"")+"</span>\r\n"},3:function(e,t,n,o,r){return"text-danger"},5:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return" "+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.status:i,t))+"\r\n"},7:function(e,t,n,o,r){e.propertyIsEnumerable;return" "+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"waiting",{name:"lang",hash:{},data:r}))+"\r\n"},9:function(e,t,n,o,r){e.propertyIsEnumerable;return" <br><i>"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"anotherAdmin",{name:"lang",hash:{},data:r}))+"</i>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,a=null!=t?t:e.nullContext||{};return'<a class="applink-show-video h6 text-dark">'+e.escapeExpression("function"==typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:e.hooks.helperMissing)?l.call(a,{name:"name",hash:{},data:r}):l)+"</a>\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasAdminRestriction:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="processing '+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasError:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasPendingItem:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.program(7,r,0),data:r}))?i:"")+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.hasPendingItem:i,{name:"unless",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},1063:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,a=e.lambda,s=e.escapeExpression;return'<div class="series-region"></div>\r\n<a class="cursor-pointer h6 video-title text-dark" href="'+s(a(null!=(i=null!=t?t.options:t)?i.videoUrl:i,t))+'" target="_blank">'+s("function"==typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:e.hooks.helperMissing)?l.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):l)+'</a>\r\n<a class="svg-container d-inline-block align-bottom text-muted no-decoration" href="'+s(a(null!=(i=null!=t?t.options:t)?i.videoUrl:i,t))+'" target="_blank">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.openExternalSvg:i,t))?i:"")+'</a>\r\n<div class="badges-region"></div>'},useData:!0})},1064:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="d-inline-block svg-container align-bottom tool-tip '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.lock:i,t))+'" title="'+a(l(null!=(i=null!=t?t.options:t)?i.restrictionMessage:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.lockSvg:i,t))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,a=e.lambda,s=e.escapeExpression,c=null!=t?t:e.nullContext||{};return'<div class="series-region"></div>\r\n<a class="cursor-pointer h6 video-title text-dark" href="'+s(a(null!=(i=null!=t?t.options:t)?i.videoUrl:i,t))+'" target="_blank">'+s("function"==typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:e.hooks.helperMissing)?l.call(c,{name:"name",hash:{},data:r}):l)+'</a>\r\n<a class="svg-container d-inline-block align-bottom text-muted no-decoration" href="'+s(a(null!=(i=null!=t?t.options:t)?i.videoUrl:i,t))+'" target="_blank">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.openExternalSvg:i,t))?i:"")+"</a>\r\n"+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.hasAdminRestriction:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="badges-region"></div>'},useData:!0})},1065:function(e,t,n){e.exports={series:"P3914"}},1066:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="d-inline-block ml-1 tool-tip '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'" title="'+a(l(null!=(i=null!=t?t.options:t)?i.restrictionMessage:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.lockSvg:i,t))?i:"")+"</span>\r\n"},3:function(e,t,n,o,r){var i;return' <span class="d-block pt-1">'+(null!=(i=e.lambda(t,t))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return'<div class="series-region"></div>\r\n<a class="cursor-pointer applink-show-video h6 text-dark">'+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.name:i,t))?i:"")+"</a>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasAdminRestriction:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="sources-region"></div>\r\n<div class="badges-region"></div>\r\n'+(null!=(i=n.each.call(l,null!=(i=null!=t?t.options:t)?i.keyPhrases:i,{name:"each",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},1067:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hide",{name:"lang",hash:{},data:r}))},3:function(e,t,n,o,r){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"show",{name:"lang",hash:{},data:r}))},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<div class="video-actions-region row no-gutters video-item-actions '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.actions:i,t))+'"></div>\r\n<div class="row no-gutters cursor-pointer video-item-show-preview '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.showPreview:i,t))+'">\r\n <span class="svg-container">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.previewSvg:i,t))?i:"")+"</span>\r\n "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.previewDisplayed:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+" "+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(s,"preview",{name:"lang",hash:{},data:r}))+"\r\n</div>"},useData:!0})},1068:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hide",{name:"lang",hash:{},data:r}))},3:function(e,t,n,o,r){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"show",{name:"lang",hash:{},data:r}))},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,c=e.lambda;return'<button class="approve d-flex btn btn-sm btn-outline-success" type="button">'+s((n.lang||t&&t.lang||a).call(l,"approve",{name:"lang",hash:{},data:r}))+'</button>\r\n<a class="applink-manage-video-access cursor-pointer hover-text-underline py-1">'+(null!=(i=(n.lang||t&&t.lang||a).call(l,"manageAccess",{name:"lang",hash:{},data:r}))?i:"")+'</a> \r\n<div class="row no-gutters cursor-pointer video-item-show-preview '+s(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.showPreview:i,t))+'"> \r\n <span class="svg-container">'+(null!=(i=c(null!=(i=null!=t?t.options:t)?i.previewSvg:i,t))?i:"")+"</span> \r\n "+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.previewDisplayed:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+" "+s((n.lang||t&&t.lang||a).call(l,"preview",{name:"lang",hash:{},data:r}))+"\r\n</div> "},useData:!0})},1069:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hide",{name:"lang",hash:{},data:r}))},3:function(e,t,n,o,r){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"show",{name:"lang",hash:{},data:r}))},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,c=e.lambda;return'<button class="applink-manage-video-access d-flex btn btn-sm btn-secondary" type="button">'+s((n.lang||t&&t.lang||a).call(l,"manageAccess",{name:"lang",hash:{},data:r}))+'</button>\r\n<div class="row no-gutters cursor-pointer video-item-show-preview '+s(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.showPreview:i,t))+'">\r\n <span class="svg-container">'+(null!=(i=c(null!=(i=null!=t?t.options:t)?i.previewSvg:i,t))?i:"")+"</span>\r\n "+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.previewDisplayed:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+" "+s((n.lang||t&&t.lang||a).call(l,"preview",{name:"lang",hash:{},data:r}))+"\r\n</div>"},useData:!0})},1071:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return' <a class="info-link show-more-tags">'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.extraTagsText:i,t))+"</a>\r\n"},3:function(e,t,n,o,r){e.propertyIsEnumerable;return' <a class="info-link applink-video-details">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"viewAllTags",{name:"lang",hash:{},data:r}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return'<div class="tags-region"></div>\r\n\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.expandable:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.moreTags:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},1072:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;return" <p>"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"noDescription",{name:"lang",hash:{},data:r}))+"</p>\r\n"},3:function(e,t,n,o,r){return' <div class="description-region"></div>\r\n'},5:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <div class="col-6 pb-1 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"rating",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-6 mb-0 pb-1">\r\n <span class="badge p-1 text-white tool-tip '+a(l(null!=(i=null!=t?t.options:t)?i.ratingClass:i,t))+'" title="'+a(l(null!=(i=null!=t?t.rating:t)?i.name:i,t))+'">'+a(l(null!=(i=null!=t?t.rating:t)?i.code:i,t))+"</span>\r\n </div>\r\n"},7:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,a=e.escapeExpression,s=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return' <div class="col-6 py-1 '+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+a((n.lang||t&&t.lang||c).call(s,"productionYear",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-6 mb-0 py-1">'+a("function"==typeof(l=null!=(l=n.productionYear||(null!=t?t.productionYear:t))?l:c)?l.call(s,{name:"productionYear",hash:{},data:r}):l)+"</p>\r\n"},9:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=t?t:e.nullContext||{};return' <div class="col-6 py-1 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(s,"chapters",{name:"lang",hash:{},data:r}))+'</div>\r\n <a\r\n class="col-6 info-link mb-0 py-1 '+(null!=(i=n.unless.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"unless",hash:{},fn:e.program(10,r,0),inverse:e.noop,data:r}))?i:"")+'"\r\n'+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"if",hash:{},fn:e.program(12,r,0),inverse:e.noop,data:r}))?i:"")+" >\r\n "+a(l(null!=(i=null!=t?t.options:t)?i.chapters:i,t))+"\r\n "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"if",hash:{},fn:e.program(14,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n </a>\r\n"},10:function(e,t,n,o,r){return"applink-video-details"},12:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return' href="'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.externalLink:i,t))+'"\r\n target="_blank"\r\n'},14:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda;return'<div class="d-inline-block '+e.escapeExpression(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.smallSvgContainer:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.openExternalSvg:i,t))?i:"")+"</div>"},16:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <div class="col-6 py-1 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"interactives",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-6 mb-0 py-1">'+a(l(null!=(i=null!=t?t.options:t)?i.interactives:i,t))+"</p>\r\n"},18:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <div class="col-6 py-1 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"subtitles",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-6 mb-0 py-1">'+a(l(null!=(i=null!=t?t.options:t)?i.subtitles:i,t))+"</p>\r\n"},20:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=t?t:e.nullContext||{};return' <div class="col-6 py-1 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(s,"resources",{name:"lang",hash:{},data:r}))+'</div>\r\n <a\r\n class="col-6 info-link mb-0 py-1 '+(null!=(i=n.unless.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"unless",hash:{},fn:e.program(10,r,0),inverse:e.noop,data:r}))?i:"")+'"\r\n'+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"if",hash:{},fn:e.program(12,r,0),inverse:e.noop,data:r}))?i:"")+" >\r\n "+a(l(null!=(i=null!=t?t.options:t)?i.resources:i,t))+"\r\n "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"if",hash:{},fn:e.program(14,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n </a>\r\n"},22:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=t?t:e.nullContext||{};return' <div class="col-6 py-1 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(s,"links",{name:"lang",hash:{},data:r}))+'</div>\r\n <a\r\n class="col-6 info-link mb-0 py-1 '+(null!=(i=n.unless.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"unless",hash:{},fn:e.program(10,r,0),inverse:e.noop,data:r}))?i:"")+'"\r\n'+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"if",hash:{},fn:e.program(12,r,0),inverse:e.noop,data:r}))?i:"")+" >\r\n "+a(l(null!=(i=null!=t?t.options:t)?i.links:i,t))+"\r\n "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"if",hash:{},fn:e.program(14,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n </a>\r\n"},24:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <div class="py-1 '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"tags",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="tags-region"></div>\r\n <div class="col-12"> </div>\r\n'},26:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <a href="'+a(l(null!=(i=null!=t?t.options:t)?i.externalLink:i,t))+'" target="_blank" class="info-link d-inline-block pt-3 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">\r\n '+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"goToVideo",{name:"lang",hash:{},data:r}))+'\r\n <div class="d-inline-block svg-container">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.openExternalSvg:i,t))?i:"")+"</div>\r\n </a>\r\n"},28:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <a class="info-link applink-video-details d-inline-block pt-3 '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"viewFullDetails",{name:"lang",hash:{},data:r}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;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 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+a((n.lang||t&&t.lang||c).call(s,"description",{name:"lang",hash:{},data:r}))+"</p>\r\n \r\n"+(null!=(i=n.unless.call(s,null!=(i=null!=t?t.options:t)?i.description:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+' \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 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+a((n.lang||t&&t.lang||c).call(s,"details",{name:"lang",hash:{},data:r}))+'</p>\r\n\r\n <div class="row">\r\n'+(null!=(i=n.if.call(s,null!=(i=null!=t?t.rating:t)?i.code:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(s,null!=t?t.productionYear:t,{name:"if",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <div class="col-6 py-1 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+a((n.lang||t&&t.lang||c).call(s,"duration",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-6 mb-0 py-1">'+a(l(null!=(i=null!=t?t.options:t)?i.duration:i,t))+"</p>\r\n\r\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.chapters:i,{name:"if",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.interactives:i,{name:"if",hash:{},fn:e.program(16,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.subtitles:i,{name:"if",hash:{},fn:e.program(18,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.resources:i,{name:"if",hash:{},fn:e.program(20,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.links:i,{name:"if",hash:{},fn:e.program(22,r,0),inverse:e.noop,data:r}))?i:"")+" </div>\r\n\r\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.showTags:i,{name:"if",hash:{},fn:e.program(24,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"if",hash:{},fn:e.program(26,r,0),inverse:e.program(28,r,0),data:r}))?i:"")+" </div>\r\n</div>"},useData:!0})},1073:function(e,t,n){e.exports={columnNames:"QvhY0",smallSvgContainer:"_2qax8"}},1074:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;return' <button class="btn btn-light retry">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"retry",{name:"lang",hash:{},data:r}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return"<div>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasError:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+' <button class="btn btn-light cancel">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(l,"cancel",{name:"lang",hash:{},data:r}))+"</button>\r\n</div>\r\n"},useData:!0})},1075:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return" cursor-pointer"},3:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return' <div class="bulk-checkbox-region '+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.bulkPlaceholder:i,{name:"if",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?i:"")+'"></div>\r\n'},4:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.bulkPlaceholder:i,t))},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<div class="d-flex justify-content-between align-items-stretch p-3 drag-item '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.videoItem:i,t))+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.isClickable:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n'+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.allowBulk:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+' <div class="thumbnail-region d-inline-block '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.thumbnailContainer:i,t))+'"></div>\r\n <div class="metadata-region d-inline-block px-3 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.metaContainer:i,t))+'"></div>\r\n <div class="video-actions-region d-inline-block '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.actionsContainer:i,t))+'"></div>\r\n</div>\r\n<div class="video-info-region '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.previewContainer:i,t))+'"></div>'},useData:!0})},1076:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="videos-region"></div>'},useData:!0})},1084:function(e,t,n){"use strict";var o=n(2),r=n(4),i=n(42),l=n(283),a=n(7),s=n(30),c=n(12),u=n(0),p=n(13),f=n(1048),h=n(1024),y=n(1075),d=n.n(y),g=n(1045),m=n.n(g);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=S(e);if(t){var r=S(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return C(this,n)}}function C(e,t){return!t||"object"!==v(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}(g,e);var t,n,l,y=O(g);function g(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),y.call(this,e)}return t=g,(n=[{key:"initialize",value:function(){this.initViewModel(),this.listenTo(this.channelName,"thumbnail:load",this.onThumbnailLoad),this.listenTo(this.channelName,"click:show:preview",this.onClickTogglePreview),this.listenTo(this.options.collectionViewChannel,"close:preview",this.onCloseCollectionPreview)}},{key:"getTypeClassName",value:function(){switch(this.options.componentType){case h.b.ProcessingVideo:return m.a.processingVideo;default:return""}}},{key:"regions",value:function(){var e;return b(e={},h.a.Checkbox,{replaceElement:!0,el:".bulk-checkbox-region"}),b(e,h.a.Thumbnail,".thumbnail-region"),b(e,h.a.Metadata,".metadata-region"),b(e,h.a.VideoActions,".video-actions-region"),b(e,h.a.VideoInfo,".video-info-region"),e}},{key:"events",value:function(){return{click:"onClick"}}},{key:"initViewModel",value:function(){this.viewModel=s.a.get("".concat(this.name,":").concat(this.model.get("id")),{previewOpen:!1})}},{key:"isClickable",value:function(){return this.options.componentType!==h.b.ProcessingVideo}},{key:"onThumbnailLoad",value:function(){this.thumbnailLoaded=!0}},{key:"onClick",value:function(){this.isClickable()&&this.onClickTogglePreview(!1)}},{key:"onClickTogglePreview",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];a.Radio.channel(this.options.collectionViewChannel).trigger("close:preview",this.cid),this.togglePreview(!this.viewModel.get("previewOpen")),this.logTogglePreviewAction(e)}},{key:"onNavigateAway",value:function(){this.viewModel.set({previewOpen:!1})}},{key:"togglePreview",value:function(e){var t=this;if(this.viewModel.set({previewOpen:e}),e)return this.setPreviewHeight(),this.listenToOnce(c.a.SHELL,o.a.EventNames.ROUTE,this.onNavigateAway),void this.render();this.stopListening(a.Radio.channel(c.a.SHELL),o.a.EventNames.ROUTE),this.getUI("previewContainer").height(0),window.setTimeout((function(){return t.render()}),300)}},{key:"setPreviewHeight",value:function(){var e=this;this.listenToOnce(this.getRegion(h.a.VideoInfo),"show",(function(){var t=e.getRegion(h.a.VideoInfo).currentView;e.listenTo(t,"render",(function(){e.getUI("previewContainer").height(t.$el.outerHeight())})),e.listenTo(e.channelName,"resize:preview",(function(){window.setTimeout((function(){return e.getUI("previewContainer").height(t.$el.outerHeight())}),0)})),t.isRendered()&&e.getUI("previewContainer").height(t.$el.outerHeight())}))}},{key:"onCloseCollectionPreview",value:function(e){this.cid!==e&&this.viewModel.get("previewOpen")&&this.togglePreview(!1)}},{key:"shouldLazyLoadThumbnail",value:function(){return!!p.h.isLazyLoadSupported(u.p)&&!this.thumbnailLoaded}},{key:"logTogglePreviewAction",value:function(e){var t=i.a.mergeOptions(this.options.analyticsOptions,{actionType:r.q.Click,descriptor:r.b.TogglePreview,workflowPhase:r.r.Complete}),n={buttonClicked:e,show:this.viewModel.get("previewOpen")};i.a.logUserAction(n,t)}},{key:"viewOptions",value:function(){return{styles:m.a,allowBulk:this.options.allowBulk,bulkPlaceholder:this.options.componentType===h.b.ProcessingVideo&&this.options.allowBulk,isClickable:this.isClickable()}}},{key:"onRender",value:function(){f.a.renderRegions(this,this.options.componentType)}},{key:"onAttach",value:function(){this.viewModel.get("previewOpen")&&this.togglePreview(!0)}},{key:"name",get:function(){return"VideoItemComponent"}},{key:"defaults",get:function(){return{componentType:h.b.Base,allowBulk:!1}}},{key:"behaviors",get:function(){return f.a.getBehaviors(this,this.options.componentType)}},{key:"template",get:function(){return d.a}},{key:"channelName",get:function(){return p.k.generateUniqueChannelName(this)}},{key:"className",get:function(){var e="border-bottom";return this.options.allowBulk&&(e+=" ".concat(m.a.allowBulk)),this.options.componentType&&(e+=" ".concat(this.getTypeClassName())),e}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"elements",get:function(){return{"drag-selector":".drag-item",previewContainer:".".concat(m.a.previewContainer)}}}])&&k(t.prototype,n),l&&k(t,l),g}(o.a.Component),R=n(281),x=n(94),P=n(6),_=n(158),T=n(1076),I=n.n(T);function j(e){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function D(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function V(e,t,n){return t&&M(e.prototype,t),n&&M(e,n),e}function N(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&F(e,t)}function F(e,t){return(F=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function L(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=B(e);if(t){var r=B(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return A(this,n)}}function A(e,t){return!t||"object"!==j(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function B(e){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return H}));var U=function(e){N(n,e);var t=L(n);function n(e){return D(this,n),t.call(this,e)}return V(n,[{key:"name",get:function(){return"VideoItemListComponent"}},{key:"childView",get:function(){return E}},{key:"childViewOptions",get:function(){var e=this;return function(t){return{componentType:t.get("status")===x.a.Processing?h.b.ProcessingVideo:e.options.videoItemComponentType,videoWithMetadata:e.options.videosWithMetadata&&e.options.videosWithMetadata.get(t.get("id")),allowBulk:e.options.allowBulk,collectionIdentifier:e.options.collectionIdentifier,application:e.options.application,pendingItems:e.options.pendingItems,config:e.options.config,sourceMetadataOptions:e.options.sourceMetadataOptions,collectionViewChannel:e.options.collectionViewChannel,customerHasLocalCache:e.options.customerHasLocalCache,customerHasExchange:e.options.customerHasExchange,customerHasCustomLibrary:e.options.customerHasCustomLibrary,analyticsOptions:e.options.analyticsOptions,videoCollectionSource:e.options.videoCollectionSource}}}}]),n}(o.a.ComponentCollection),H=function(e){N(n,e);var t=L(n);function n(e){return D(this,n),t.call(this,e)}return V(n,[{key:"regions",value:function(){return{videos:".videos-region"}}},{key:"onRender",value:function(){var e=new U({collection:this.collection,videosWithMetadata:this.options.videosWithMetadata,videoItemComponentType:this.options.videoItemComponentType,allowBulk:this.options.allowBulk,collectionIdentifier:this.collectionIdentifier,application:this.options.application,pendingItems:this.options.pendingItems,config:this.options.config,sourceMetadataOptions:this.options.sourceMetadataOptions,collectionViewChannel:this.options.collectionViewChannel,customerHasLocalCache:this.options.customerHasLocalCache,customerHasExchange:this.options.customerHasExchange,customerHasCustomLibrary:this.options.customerHasCustomLibrary,analyticsOptions:i.a.mergeOptions(this.options.analyticsOptions,{location:r.k.VideoListItem,entity:r.e.Video}),videoCollectionSource:this.options.videoCollectionSource});this.showChildView("videos",e)}},{key:"name",get:function(){return"VideoListView"}},{key:"className",get:function(){return"bg-white"}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"template",get:function(){return I.a}},{key:"defaults",get:function(){return{videoItemComponentType:h.b.Base,allowBulk:!1,emptyState:P.c.Default,videoCollectionSource:_.e.Folder}}},{key:"behaviors",get:function(){return[{behaviorClass:R.d,selector:".lazy-img",minBrowserSupportVersion:u.p},{behaviorClass:l.a,region:"videos",type:this.options.emptyStateType,componentOptions:this.options.emptyStateOptions,emptyStateComponents:u.h}]}}]),n}(o.a.Component)},1086:function(e,t,n){e.exports={label:"_3iMZr",filterButton:"_1xOts",dropdownMenu:"_1Yzts"}},1091:function(e,t,n){"use strict";var o={TagFilter:"tag:filter"};n.d(t,"a",(function(){return o}))},1146:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<h6 class="mb-0">'+e.escapeExpression("function"==typeof(i=null!=(i=n.title||(null!=t?t.title:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:r}):i)+'</h6>\r\n<div class="options-region"></div>'},useData:!0})},1147:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;return' <a class="clear-filters float-left text-muted hover-text-underline cursor-pointer">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"reset",{name:"lang",hash:{},data:r}))+"</a>\r\n"},3:function(e,t,n,o,r){e.propertyIsEnumerable;return' <a class="apply-filters d-block text-right info-link">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"apply",{name:"lang",hash:{},data:r}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return'<div class="filter-list-region"></div>\r\n<div>\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showClearFilters:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showApplyFilters:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},1148:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<button class="'+a(l(null!=(i=null!=t?t.options:t)?i.buttonClass:i,t))+' dropdown-btn" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\r\n '+a(l(null!=(i=null!=t?t.options:t)?i.label:i,t))+'\r\n</button>\r\n<div class="dropdown-menu p-2 filters-region"></div>'},useData:!0})},1149:function(e,t,n){e.exports={moreFiltersButton:"_3sym3"}},1150:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;return'<div class="d-inline-block text-right">\r\n <a class="clear-filters cursor-pointer hover-text-underline">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"reset",{name:"lang",hash:{},data:r}))+"</a>\r\n</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression,a=null!=t?t:e.nullContext||{};return'<div class="d-inline-block border-right py-1 pr-3 '+l(e.lambda(null!=(i=null!=t?t.options:t)?i.labelClass:i,t))+'"><strong>'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"heading",{name:"lang",hash:{},data:r}))+'</strong></div>\r\n<div class="filter-list-region d-inline-block pl-2"></div>\r\n<div class="more-filters-region d-inline-block mr-2"></div>\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasFiltersSelected:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},1151:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<button class="'+a(l(null!=(i=null!=t?t.options:t)?i.buttonClass:i,t))+' dropdown-btn cursor-pointer" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\r\n '+a(l(null!=(i=null!=t?t.options:t)?i.label:i,t))+'\r\n</button>\r\n<div class="dropdown-menu '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.dropdownMenu:i,t))+' p-2 filter-region"></div>'},useData:!0})},1152:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="option-list-region"></div>'},useData:!0})},1153:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<div class="default-option py-1">\r\n <div class="custom-control custom-'+a(l(null!=(i=null!=t?t.options:t)?i.inputType:i,t))+'">\r\n <input type='+a(l(null!=(i=null!=t?t.options:t)?i.inputType:i,t))+' autocomplete="off" class="custom-control-input"'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.defaultOptionSelected:i,{name:"if",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?i:"")+'>\r\n <label class="custom-control-label align-middle cursor-pointer">'+a(l(null!=(i=null!=t?t.options:t)?i.defaultOptionLabel:i,t))+"</label>\r\n </div>\r\n</div>\r\n"},2:function(e,t,n,o,r){return" checked"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.defaultOptionLabel:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="options-region"></div>'},useData:!0})},1154:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return" checked"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,a=e.lambda,s=e.escapeExpression,c=null!=t?t:e.nullContext||{};return'<div class="custom-control custom-'+s(a(null!=(i=null!=t?t.options:t)?i.inputType:i,t))+'">\r\n <input type='+s(a(null!=(i=null!=t?t.options:t)?i.inputType:i,t))+' autocomplete="off" class="custom-control-input"'+(null!=(i=n.if.call(c,null!=t?t.active:t,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'>\r\n <label class="custom-control-label align-middle cursor-pointer">'+s("function"==typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:e.hooks.helperMissing)?l.call(c,{name:"name",hash:{},data:r}):l)+"</label>\r\n</div>"},useData:!0})},1155:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return" on"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,a=null!=t?t:e.nullContext||{};return'<div class="custom-toggle toggle-option float-right'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.isSelected:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'"><span class="handle"></span></div>\r\n<p>'+e.escapeExpression("function"==typeof(l=null!=(l=n.description||(null!=t?t.description:t))?l:e.hooks.helperMissing)?l.call(a,{name:"description",hash:{},data:r}):l)+"</p>"},useData:!0})},1156:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):i)},useData:!0})},1157:function(e,t,n){e.exports={options:"_6o30E",option:"_3yReT"}},1158:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,a=e.escapeExpression,s=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return'<button type="button" class="d-block option-btn w-100 '+a(e.lambda(null!=(i=null!=t?t.options:t)?i.buttonClass:i,t))+'">\r\n '+a("function"==typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:c)?l.call(s,{name:"name",hash:{},data:r}):l)+'\r\n</button>\r\n<div class="text-center">'+a("function"==typeof(l=null!=(l=n.description||(null!=t?t.description:t))?l:c)?l.call(s,{name:"description",hash:{},data:r}):l)+"</div>"},useData:!0})},1159:function(e,t,n){e.exports={optionItem:"_3jzt0",customOptionItem:"_78r7L",selected:"aFhSG"}},1160:function(e,t,n){e.exports={container:"_1SMXf"}},1161:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;return'<p class="mb-0">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"emptyState",{name:"lang",hash:{},data:r}))+"</p>\r\n"},3:function(e,t,n,o,r){return'<div class="dropdown-divider"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showEmptyState:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n<div class="selected-tags-region"></div>\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.useDivider:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="relevant-tags-region"></div>'},useData:!0})},1162:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="tags-region"></div>'},useData:!0})},1163:function(e,t,n){"use strict";var o=n(1024);n.d(t,"a",(function(){return o.b}));n(1047),n(1048)},1175:function(e,t,n){"use strict";var o=n(7),r=n(2),i=n(0),l=n(6),a=n(4),s=n(42),c=n(30),u=n(3),p=n(20),f=n(125),h=n(1091),y=n(1146),d=n.n(y);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=w(e);if(t){var r=w(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return k(this,n)}}function k(e,t){return!t||"object"!==g(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(i,e);var t,n,o,r=b(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"regions",value:function(){return{options:{el:".options-region",replaceElement:!0}}}},{key:"renderOptions",value:function(){this.showChildView("options",new Te({collection:this.model.options,model:this.model,channelName:this.options.channelName}))}},{key:"onRender",value:function(){this.renderOptions()}},{key:"name",get:function(){return"FilterItemComponent"}},{key:"template",get:function(){return d.a}},{key:"className",get:function(){return"py-1"}}])&&m(t.prototype,n),o&&m(t,o),i}(r.a.Component),C=n(1147),S=n.n(C);function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function P(e,t,n){return t&&x(e.prototype,t),n&&x(e,n),e}function _(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&T(e,t)}function T(e,t){return(T=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=D(e);if(t){var r=D(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return j(this,n)}}function j(e,t){return!t||"object"!==E(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function D(e){return(D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var M=function(e){_(n,e);var t=I(n);function n(){return R(this,n),t.apply(this,arguments)}return P(n,[{key:"initialize",value:function(){this.bindListeners()}},{key:"regions",value:function(){return{filterList:{el:".filter-list-region",replaceElement:!0}}}},{key:"events",value:function(){return{click:"onClick","click .apply-filters":"onClickApplyFilters","click .clear-filters":"onClickClearFilters"}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,i.i.Filters.OPTION_SELECTED,this.render)}},{key:"onClick",value:function(e){e.stopPropagation()}},{key:"onClickApplyFilters",value:function(e){e.stopPropagation(),this.applyFilters(),this.render()}},{key:"onClickClearFilters",value:function(e){e.stopPropagation(),o.Radio.channel(this.options.channelName).trigger("reset:filters"),f.b.clearFilters(this.collection),this.isTagFilterType()&&o.Radio.channel(h.a.TagFilter).trigger("change:relevant:tags"),this.render()}},{key:"applyFilters",value:function(){o.Radio.channel(this.options.channelName).trigger(i.i.Filters.APPLY_FILTER)}},{key:"hasFiltersSelected",value:function(){return this.collection.some((function(e){return f.b.isSelected(e)}))}},{key:"isTagFilterType",value:function(){return!!this.collection.findWhere({type:p.a.Tags})}},{key:"viewOptions",value:function(){return{showApplyFilters:!this.isTagFilterType(),showClearFilters:this.hasFiltersSelected()}}},{key:"onRender",value:function(){this.showChildView("filterList",new V({collection:this.collection,channelName:this.channelName}))}},{key:"name",get:function(){return"FilterListComponent"}},{key:"template",get:function(){return S.a}},{key:"lang",get:function(){return"search.filterList"}},{key:"className",get:function(){return"px-1"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}}]),n}(r.a.Component),V=function(e){_(n,e);var t=I(n);function n(e){return R(this,n),t.call(this,e)}return P(n,[{key:"name",get:function(){return"FilterComponentCollection"}},{key:"tagName",get:function(){return"ul"}},{key:"className",get:function(){return"m-0 p-0"}},{key:"childView",get:function(){return O}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName}}}]),n}(r.a.ComponentCollection),N=n(97),F=n(1086),L=n.n(F),A=n(1148),B=n.n(A),U=n(1149),H=n.n(U);function z(e){return(z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function q(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function W(e,t){return(W=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Q(e);if(t){var r=Q(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return G(this,n)}}function G(e,t){return!t||"object"!==z(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Q(e){return(Q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var J=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&W(e,t)}(p,e);var t,n,r,l=Y(p);function p(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),l.call(this,e)}return t=p,(n=[{key:"initialize",value:function(){this.getViewModel(),this.setInitialFilters(),this.bindListeners()}},{key:"regions",value:function(){return{filters:{el:".filters-region",replaceElement:!1}}}},{key:"events",value:function(){return{"hide.bs.dropdown":"onHideDropdown","show.bs.dropdown":"onShowDropdown"}}},{key:"getViewModel",value:function(){this.viewModel=c.a.get(this.viewModelName)}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,i.i.Filters.APPLY_FILTER,this.onClickApplyFilters),this.listenTo(this.channelName,"reset:filters",this.logFilterResetAction)}},{key:"setInitialFilters",value:function(){this.initialFilters=new N.a(this.collection.toJSON())}},{key:"onClickApplyFilters",value:function(){this.viewModel.get("dropdownVisible")&&(this.viewModel.set({applyClicked:!0}),this.toggleDropdown())}},{key:"onShowDropdown",value:function(){this.viewModel.set("dropdownVisible",!0)}},{key:"onHideDropdown",value:function(){var e=this.viewModel.get("applyClicked");this.viewModel.unset("applyClicked"),this.viewModel.set("dropdownVisible",!1),this.applyFilters(!!e)}},{key:"toggleDropdown",value:function(){this.getUI("dropdownToggle").dropdown("toggle")}},{key:"applyFilters",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.haveFiltersChanged()&&(this.logFilterApplyAction(e),this.setInitialFilters(),o.Radio.channel(this.options.channelName).trigger(i.i.Filters.FILTER_CHANGED),this.render())}},{key:"haveFiltersChanged",value:function(){var e=this;return!this.collection.every((function(t,n){return!f.b.hasFilterChanged(e.initialFilters.at(n),t)}))}},{key:"isSelected",value:function(){return this.collection.some((function(e){return f.b.isSelected(e)}))}},{key:"numSelectedFilters",value:function(){return this.collection.filter((function(e){return f.b.isSelected(e)})).length}},{key:"getLabel",value:function(){var e=u.a.getPhrase(this.lang,"moreFilters"),t=this.numSelectedFilters();return t&&(e+=" - ".concat(t)),e}},{key:"getButtonClass",value:function(){var e="btn ".concat(L.a.filterButton);return this.isSelected()?e+=" btn-info":e+=" btn-light",e}},{key:"logFilterApplyAction",value:function(e){var t=this;this.collection.each((function(n,o){f.b.hasFilterChanged(t.initialFilters.at(o),n)&&t.logFilter(n,e)}))}},{key:"logFilter",value:function(e,t){var n={location:a.k.SearchFilters,actionType:a.q.Filter,entity:a.e.Video,workflowPhase:a.r.Complete},o={type:e.get("title"),value:f.b.getFilterSelectedOptionsAnalyticsData(e),applyClicked:t};s.a.logUserAction(o,n)}},{key:"logFilterResetAction",value:function(){var e={location:a.k.SearchFilters,actionType:a.q.Filter,descriptor:a.h.Reset,entity:a.e.Video,workflowPhase:a.r.Complete};s.a.logUserAction({type:"More Filters"},e)}},{key:"viewOptions",value:function(){return{label:this.getLabel(),buttonClass:this.getButtonClass()}}},{key:"renderFilters",value:function(){this.showChildView("filters",new M({collection:this.collection,channelName:this.channelName}))}},{key:"onRender",value:function(){this.renderFilters(),this.viewModel.get("dropdownVisible")&&this.toggleDropdown()}},{key:"name",get:function(){return"MoreFiltersButtonComponent"}},{key:"template",get:function(){return B.a}},{key:"lang",get:function(){return"search.moreFiltersButton"}},{key:"className",get:function(){return"rounded cursor-pointer ".concat(H.a.moreFiltersButton)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"viewModelName",get:function(){return this.name}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-btn"}}}])&&q(t.prototype,n),r&&q(t,r),p}(r.a.Component),K=n(1150),Z=n.n(K);function $(e){return($="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function X(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ee(e,t){return(ee=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function te(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=oe(e);if(t){var r=oe(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ne(this,n)}}function ne(e,t){return!t||"object"!==$(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function oe(e){return(oe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var re=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ee(e,t)}(u,e);var t,n,r,c=te(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),c.call(this,e)}return t=u,(n=[{key:"regions",value:function(){return{filterList:{el:".filter-list-region",replaceRegion:!0,partialLoading:l.j.SearchFilter},moreFilters:{el:".more-filters-region",replaceRegion:!0}}}},{key:"events",value:function(){return{"click .clear-filters":"onClickClearFilters"}}},{key:"onClickClearFilters",value:function(){f.b.clearFilters(this.collection),o.Radio.channel(this.options.channelName).trigger(i.i.Filters.FILTER_CHANGED),this.logFilterResetAction()}},{key:"getVisibleFilters",value:function(){return new N.a(this.collection.filter((function(e){return!e.get("showInMoreFilters")&&f.b.showFilter(e)})))}},{key:"getMoreFilters",value:function(){return new N.a(this.collection.filter((function(e){return e.get("showInMoreFilters")&&f.b.showFilter(e)})))}},{key:"hasFiltersSelected",value:function(){return this.collection.some((function(e){return f.b.isSelected(e)}))}},{key:"logFilterResetAction",value:function(){var e={location:a.k.SearchFilters,actionType:a.q.Filter,descriptor:a.h.Reset,entity:a.e.Video,workflowPhase:a.r.Complete};s.a.logUserAction({type:"All",active:!1},e)}},{key:"renderFilterList",value:function(){var e=new pe({collection:this.getVisibleFilters(),channelName:this.options.channelName});this.showChildView("filterList",e)}},{key:"renderMoreFilters",value:function(){var e=new J({collection:this.getMoreFilters(),channelName:this.options.channelName});this.showChildView("moreFilters",e)}},{key:"viewOptions",value:function(){return{labelClass:L.a.label,hasFiltersSelected:this.collection&&this.hasFiltersSelected(),clearFiltersClass:L.a.clearFilters}}},{key:"onBeforeRender",value:function(){return!!this.collection}},{key:"onRender",value:function(){this.renderFilterList(),this.renderMoreFilters()}},{key:"name",get:function(){return"FiltersComponent"}},{key:"template",get:function(){return Z.a}},{key:"lang",get:function(){return"search.filters"}}])&&X(t.prototype,n),r&&X(t,r),u}(r.a.Component);function ie(e){return(ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function le(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ae(e,t){return(ae=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function se(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ue(e);if(t){var r=ue(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ce(this,n)}}function ce(e,t){return!t||"object"!==ie(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ue(e){return(ue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ae(e,t)}(i,e);var t,n,o,r=se(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"name",get:function(){return"FilterListComponent"}},{key:"tagName",get:function(){return"ul"}},{key:"className",get:function(){return"m-0 p-0"}},{key:"childView",get:function(){return we}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,analyticsOptions:{location:a.k.SearchFilters,entity:a.e.Video}}}}])&&le(t.prototype,n),o&&le(t,o),i}(r.a.ComponentCollection),fe=n(136),he=n(1151),ye=n.n(he);function de(e){return(de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ge(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function me(e,t){return(me=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ve(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ke(e);if(t){var r=ke(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return be(this,n)}}function be(e,t){return!t||"object"!==de(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ke(e){return(ke=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var we=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&me(e,t)}(h,e);var t,n,l,u=ve(h);function h(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),u.call(this,e)}return t=h,(n=[{key:"initialize",value:function(){this.getViewModel(),this.setInitialFilter(),this.bindListeners()}},{key:"regions",value:function(){return{filter:{el:".filter-region",replaceElement:!1}}}},{key:"events",value:function(){return{"hide.bs.dropdown":"onHideDropdown","show.bs.dropdown":"onShowDropdown"}}},{key:"getViewModel",value:function(){this.viewModel=c.a.get(this.viewModelName)}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,i.i.Filters.APPLY_FILTER,this.onClickApplyFilter),this.listenTo(this.channelName,"reset:filters",this.logFilterResetAction)}},{key:"setInitialFilter",value:function(){this.initialFilter=new fe.a(this.model.toJSON())}},{key:"onClickApplyFilter",value:function(){this.viewModel.get("dropdownVisible")&&(this.viewModel.set({applyClicked:!0}),this.toggleDropdown())}},{key:"onShowDropdown",value:function(){this.viewModel.set("dropdownVisible",!0)}},{key:"onHideDropdown",value:function(){var e=this.viewModel.get("applyClicked");this.viewModel.unset("applyClicked"),this.viewModel.set("dropdownVisible",!1),this.applyFilter(!!e)}},{key:"toggleDropdown",value:function(){this.getUI("dropdownToggle").dropdown("toggle")}},{key:"applyFilter",value:function(e){f.b.hasFilterChanged(this.initialFilter,this.model)&&this.model.get("type")!==p.a.Tags&&(this.setInitialFilter(),o.Radio.channel(this.options.channelName).trigger(i.i.Filters.FILTER_CHANGED),this.logFilterApplyAction(e))}},{key:"getLabel",value:function(){return f.b.isSelected(this.model)?f.b.getFilterLabel(this.model):this.model.get("title")}},{key:"getButtonClass",value:function(){var e="btn ".concat(L.a.filterButton);return f.b.isSelected(this.model)?e+=" btn-info":e+=" btn-light",e}},{key:"logFilterApplyAction",value:function(e){var t=s.a.mergeOptions(this.options.analyticsOptions,{actionType:a.q.Filter,workflowPhase:a.r.Complete}),n={type:this.model.get("title"),value:f.b.getFilterSelectedOptionsAnalyticsData(this.model),applyClicked:e};s.a.logUserAction(n,t)}},{key:"logFilterResetAction",value:function(){var e=s.a.mergeOptions(this.options.analyticsOptions,{actionType:a.q.Filter,descriptor:a.h.Reset,workflowPhase:a.r.Complete}),t={type:this.model.get("title")};s.a.logUserAction(t,e)}},{key:"viewOptions",value:function(){return{styles:L.a,label:this.getLabel(),buttonClass:this.getButtonClass()}}},{key:"renderFilter",value:function(){this.showChildView("filter",new M({collection:new r.a.Collection([this.model]),channelName:this.channelName}))}},{key:"onRender",value:function(){this.renderFilter(),this.viewModel.get("dropdownVisible")&&this.toggleDropdown()}},{key:"name",get:function(){return"FilterButtonItemComponent"}},{key:"template",get:function(){return ye.a}},{key:"className",get:function(){return"d-inline-block m-1"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.model.get("type"))}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-btn"}}}])&&ge(t.prototype,n),l&&ge(t,l),h}(r.a.Component),Oe=n(1152),Ce=n.n(Oe);function Se(e){return(Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ee(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Re(e,t){return(Re=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function xe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=_e(e);if(t){var r=_e(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Pe(this,n)}}function Pe(e,t){return!t||"object"!==Se(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _e(e){return(_e=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Te=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Re(e,t)}(a,e);var t,n,r,l=xe(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return t=a,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"regions",value:function(){return{optionsList:".option-list-region"}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,i.i.Filters.OPTION_SELECTED,this.onChangeOption)}},{key:"onChangeOption",value:function(e,t){e&&this.isInclusiveType()&&this.onChangeInclusiveOption(e),e&&this.isExclusiveType()&&this.onChangeExclusiveOption(e),e&&this.isRangeType()&&this.onChangeRangeOption(e),e&&this.isTagType()&&this.onChangeTagOption(e),t||(o.Radio.channel(this.options.channelName).trigger(i.i.Filters.OPTION_SELECTED),this.render())}},{key:"onChangeInclusiveOption",value:function(e){e.set("active",!e.get("active"))}},{key:"onChangeExclusiveOption",value:function(e){f.b.clearOptions(this.model),e.set("active",!0)}},{key:"onChangeRangeOption",value:function(e){f.b.clearOptions(this.model),this.collection.each((function(t){t.get("value")<=e.get("value")&&t.set("active",!0)}))}},{key:"onChangeTagOption",value:function(e){var t=this.collection.findWhere({name:e.get("name")});t.set("active",!t.get("active"))}},{key:"isBooleanType",value:function(){return this.model.get("behavior")===f.a.Boolean}},{key:"isInclusiveType",value:function(){return this.model.get("behavior")===f.a.Inclusive}},{key:"isExclusiveType",value:function(){return this.model.get("behavior")===f.a.Exclusive}},{key:"isRangeType",value:function(){return this.model.get("behavior")===f.a.Range}},{key:"isTagType",value:function(){return this.model.get("behavior")===f.a.Tag}},{key:"getChildComponent",value:function(){return this.model.get("type")===p.a.Duration?Nt:this.isTagType()?an:this.isRangeType()?wt:this.isBooleanType()?at:He}},{key:"renderOptionsList",value:function(){this.showChildView("optionsList",new(this.getChildComponent())({collection:this.collection,model:this.model,channelName:this.channelName,isExclusiveType:this.isExclusiveType()}))}},{key:"onRender",value:function(){this.renderOptionsList()}},{key:"name",get:function(){return"FilterOptionsComponent"}},{key:"template",get:function(){return Ce.a}},{key:"className",get:function(){return"py-1"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}}])&&Ee(t.prototype,n),r&&Ee(t,r),a}(r.a.Component),Ie=n(1153),je=n.n(Ie);function De(e){return(De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Me(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ve(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ne(e,t,n){return t&&Ve(e.prototype,t),n&&Ve(e,n),e}function Fe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Le(e,t)}function Le(e,t){return(Le=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ae(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Ue(e);if(t){var r=Ue(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Be(this,n)}}function Be(e,t){return!t||"object"!==De(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ue(e){return(Ue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var He=function(e){Fe(n,e);var t=Ae(n);function n(e){return Me(this,n),t.call(this,e)}return Ne(n,[{key:"regions",value:function(){return{options:".options-region"}}},{key:"events",value:function(){return{"click .default-option":"onClickDefaultOption"}}},{key:"onClickDefaultOption",value:function(e){e.stopPropagation(),this.model.get("behavior")===f.a.Inclusive?f.b.selectAllOptions(this.model):f.b.clearOptions(this.model),o.Radio.channel(this.options.channelName).trigger(i.i.Filters.OPTION_SELECTED),this.render()}},{key:"defaultOptionSelected",value:function(){return this.model.get("behavior")===f.a.Inclusive?f.b.allOptionsSelected(this.model):!f.b.hasOptionSelected(this.model)}},{key:"getInputType",value:function(){return this.options.isExclusiveType?"radio":"checkbox"}},{key:"viewOptions",value:function(){return{inputType:this.getInputType(),defaultOptionSelected:this.defaultOptionSelected(),defaultOptionLabel:this.model.get("defaultOptionLabel")}}},{key:"renderOptions",value:function(){this.showChildView("options",new ze({collection:this.collection,childOptions:{channelName:this.options.channelName,isExclusiveType:this.options.isExclusiveType}}))}},{key:"onRender",value:function(){this.renderOptions()}},{key:"name",get:function(){return"FilterOptionsListComponent"}},{key:"template",get:function(){return je.a}}]),n}(r.a.Component),ze=function(e){Fe(n,e);var t=Ae(n);function n(e){return Me(this,n),t.call(this,e)}return Ne(n,[{key:"name",get:function(){return"FilterOptionComponentCollection"}},{key:"childView",get:function(){return $e}},{key:"childViewOptions",get:function(){return this.options.childOptions}}]),n}(r.a.ComponentCollection),qe=n(1154),We=n.n(qe);function Ye(e){return(Ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ge(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Qe(e,t){return(Qe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Je(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Ze(e);if(t){var r=Ze(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Ke(this,n)}}function Ke(e,t){return!t||"object"!==Ye(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ze(e){return(Ze=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var $e=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Qe(e,t)}(a,e);var t,n,r,l=Je(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return t=a,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"events",value:function(){return{click:"onClick"}}},{key:"bindListeners",value:function(){this.listenTo(this.model,"change",this.render)}},{key:"onClick",value:function(e){e.stopPropagation(),o.Radio.channel(this.options.channelName).trigger(i.i.Filters.OPTION_SELECTED,this.model)}},{key:"getInputType",value:function(){return this.options.isExclusiveType?"radio":"checkbox"}},{key:"viewOptions",value:function(){return{inputType:this.getInputType()}}},{key:"name",get:function(){return"FilterOptionItemComponent"}},{key:"template",get:function(){return We.a}},{key:"className",get:function(){return"filter-option-item py-1 cursor-pointer"}}])&&Ge(t.prototype,n),r&&Ge(t,r),a}(r.a.Component),Xe=n(1155),et=n.n(Xe);function tt(e){return(tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ot(e,t){return(ot=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function rt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=lt(e);if(t){var r=lt(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return it(this,n)}}function it(e,t){return!t||"object"!==tt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function lt(e){return(lt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var at=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ot(e,t)}(a,e);var t,n,r,l=rt(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return t=a,(n=[{key:"events",value:function(){return{"click .toggle-option":"onClickToggleOption"}}},{key:"onClickToggleOption",value:function(e){e.stopPropagation(),this.model.set("active",!this.model.get("active")),o.Radio.channel(this.options.channelName).trigger(i.i.Filters.OPTION_SELECTED),this.render()}},{key:"viewOptions",value:function(){return{isSelected:this.model.get("active")}}},{key:"name",get:function(){return"BoolFilterOptionComponent"}},{key:"template",get:function(){return et.a}}])&&nt(t.prototype,n),r&&nt(t,r),a}(r.a.Component),st=n(1156),ct=n.n(st),ut=n(1157),pt=n.n(ut);function ft(e){return(ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ht(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function dt(e,t,n){return t&&yt(e.prototype,t),n&&yt(e,n),e}function gt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&mt(e,t)}function mt(e,t){return(mt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function vt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=kt(e);if(t){var r=kt(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return bt(this,n)}}function bt(e,t){return!t||"object"!==ft(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function kt(e){return(kt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var wt=function(e){gt(n,e);var t=vt(n);function n(){return ht(this,n),t.apply(this,arguments)}return dt(n,[{key:"name",get:function(){return"RatingFilterOptionComponentCollection"}},{key:"className",get:function(){return"btn-group ".concat(pt.a.options," py-2")}},{key:"attributes",get:function(){return{role:"group"}}},{key:"childView",get:function(){return Ot}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName}}}]),n}(r.a.ComponentCollection),Ot=function(e){gt(n,e);var t=vt(n);function n(){return ht(this,n),t.apply(this,arguments)}return dt(n,[{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(e){e.stopPropagation(),o.Radio.channel(this.options.channelName).trigger(i.i.Filters.OPTION_SELECTED,this.model)}},{key:"isSelected",value:function(){return this.model.get("active")}},{key:"onRender",value:function(){this.$el.tooltip()}},{key:"onBeforeDestroy",value:function(){this.$el.tooltip("dispose")}},{key:"name",get:function(){return"RatingFilterOptionItemComponent"}},{key:"template",get:function(){return ct.a}},{key:"tagName",get:function(){return"button"}},{key:"className",get:function(){var e="".concat(pt.a.option," border btn btn-");return this.isSelected()?"".concat(e,"info"):"".concat(e,"light")}},{key:"attributes",get:function(){return{type:"button",title:this.model.get("fullName")}}}]),n}(r.a.Component),Ct=n(1158),St=n.n(Ct),Et=n(1159),Rt=n.n(Et);function xt(e){return(xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _t(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Tt(e,t,n){return t&&_t(e.prototype,t),n&&_t(e,n),e}function It(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&jt(e,t)}function jt(e,t){return(jt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Dt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Vt(e);if(t){var r=Vt(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Mt(this,n)}}function Mt(e,t){return!t||"object"!==xt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Vt(e){return(Vt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Nt=function(e){It(n,e);var t=Dt(n);function n(){return Pt(this,n),t.apply(this,arguments)}return Tt(n,[{key:"getOptionItemClassName",value:function(){var e=Rt.a.optionItem;return 4===this.collection.length&&(e+=" ".concat(Rt.a.customOptionItem)),e}},{key:"name",get:function(){return"DurationFilterOptionComponentCollection"}},{key:"childView",get:function(){return Ft}},{key:"className",get:function(){return Rt.a.options}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,optionItemClassName:this.getOptionItemClassName()}}}]),n}(r.a.ComponentCollection),Ft=function(e){It(n,e);var t=Dt(n);function n(e){return Pt(this,n),t.call(this,e)}return Tt(n,[{key:"events",value:function(){return{"click .option-btn":"onClickOption"}}},{key:"viewOptions",value:function(){return{buttonClass:this.getButtonClass()}}},{key:"onClickOption",value:function(e){e.stopPropagation(),o.Radio.channel(this.options.channelName).trigger(i.i.Filters.OPTION_SELECTED,this.model)}},{key:"isSelected",value:function(){return this.model.get("active")}},{key:"getButtonClass",value:function(){var e="btn ".concat(Rt.a.optionButton," p-1");return this.isSelected()?e+=" btn-info":e+=" btn-light",e}},{key:"name",get:function(){return"DurationFilterItemComponent"}},{key:"template",get:function(){return St.a}},{key:"className",get:function(){return"d-inline-block p-1 ".concat(this.options.optionItemClassName)}}]),n}(r.a.Component),Lt=n(1),At=n(158),Bt=n(1160),Ut=n.n(Bt),Ht=n(1161),zt=n.n(Ht),qt=n(1055),Wt=n(1162),Yt=n.n(Wt);function Gt(e){return(Gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Jt(e,t){return(Jt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Kt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=$t(e);if(t){var r=$t(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Zt(this,n)}}function Zt(e,t){return!t||"object"!==Gt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function $t(e){return($t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Xt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Jt(e,t)}(i,e);var t,n,o,r=Kt(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"regions",value:function(){return{tags:{el:".tags-region",replaceElement:!0,partialLoading:l.j.TagFilter}}}},{key:"onBeforeRender",value:function(){return!Lt.isNull(this.collection)}},{key:"onRender",value:function(){this.showChildView("tags",new qt.a({collection:this.collection,channelName:this.options.channelName,behavior:this.options.behavior,removeEvent:this.options.removeEvent,clickEvent:this.options.clickEvent}))}},{key:"name",get:function(){return"TagFilterOptionsListComponent"}},{key:"template",get:function(){return Yt.a}}])&&Qt(t.prototype,n),o&&Qt(t,o),i}(r.a.Component);function en(e){return(en="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tn(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function nn(e,t){return(nn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function on(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ln(e);if(t){var r=ln(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return rn(this,n)}}function rn(e,t){return!t||"object"!==en(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ln(e){return(ln=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var an=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&nn(e,t)}(a,e);var t,n,r,l=on(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return t=a,(n=[{key:"initialize",value:function(){this.bindListeners(),this.setRelevantTags()}},{key:"regions",value:function(){return{selectedTags:{el:".selected-tags-region",replaceElement:!0},relevantTags:{el:".relevant-tags-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"on:option:change",this.onChange)}},{key:"onChange",value:function(e){o.Radio.channel(this.options.channelName).trigger(i.i.Filters.OPTION_SELECTED,e,!0),o.Radio.channel(h.a.TagFilter).trigger("change:relevant:tags"),this.relevantTags=null,this.render()}},{key:"setRelevantTags",value:function(){var e=f.b.getSelectedOptions(this.collection).map((function(e){return e.get("id")}));this.collection.length!==e.length?this.relevantTags=new N.b(this.collection.filter((function(t){return!Lt.contains(e,t.get("id"))})).slice(0,5)):this.relevantTags=null}},{key:"hasSelectedTags",value:function(){var e=f.b.getSelectedOptions(this.collection);return e&&!!e.length}},{key:"hasRelevantTags",value:function(){return Lt.isNull(this.relevantTags)||this.relevantTags&&!!this.relevantTags.length}},{key:"renderSelectedTags",value:function(){if(this.hasSelectedTags()){var e=f.b.getSelectedOptions(this.collection);this.showChildView("selectedTags",new Xt({collection:e,channelName:this.channelName,behavior:At.c.Filter,removeEvent:"on:option:change"}))}}},{key:"renderRelevantTags",value:function(){this.showChildView("relevantTags",new Xt({collection:this.relevantTags,channelName:this.channelName,behavior:At.c.Filter,clickEvent:"on:option:change"}))}},{key:"viewOptions",value:function(){return{showEmptyState:!this.hasSelectedTags()&&!this.hasRelevantTags(),useDivider:this.hasSelectedTags()&&this.hasRelevantTags()}}},{key:"onRender",value:function(){this.renderSelectedTags(),this.renderRelevantTags()}},{key:"name",get:function(){return"TagFilterOptionsComponent"}},{key:"template",get:function(){return zt.a}},{key:"lang",get:function(){return"search.tagFilterOptions"}},{key:"className",get:function(){return"".concat(Ut.a.container)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}}])&&tn(t.prototype,n),r&&tn(t,r),a}(r.a.Component);n.d(t,"f",(function(){return re})),n.d(t,"b",(function(){return pe})),n.d(t,"a",(function(){return we})),n.d(t,"d",(function(){return Te})),n.d(t,"e",(function(){return He})),n.d(t,"c",(function(){return $e}))},1307:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;return"<h3>"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"header",{name:"lang",hash:{},data:r}))+'</h3>\r\n<div class="filters-region"></div>'},useData:!0})},1308:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="results-region"></div>'},useData:!0})},1309:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="header-region"></div>\r\n<div class="results-region"></div>\r\n<div class="pagination-region"></div>'},useData:!0})},1461:function(e,t,n){"use strict";n.r(t);var o=n(1),r=n(7),i=n(2),l=n(5),a=n(30),s=n(3),c=n(22),u=n(187),p=n(1056),f=n(0),h=n(33),y=n(50),d=n(95),g=n(17),m=n(186),v=n(137),b=n(136),k=n(125),w=n(1175),O=n(1307),C=n.n(O);function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=T(e);if(t){var r=T(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return _(this,n)}}function _(e,t){return!t||"object"!==S(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function T(e){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var I=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}(i,e);var t,n,o,r=P(i);function i(){return E(this,i),r.apply(this,arguments)}return t=i,(n=[{key:"regions",value:function(){return{filters:{el:".filters-region",replaceElement:!0}}}},{key:"renderFilters",value:function(){var e=new w.f({collection:this.collection,channelName:this.options.channelName});this.showChildView("filters",e)}},{key:"onRender",value:function(){this.renderFilters()}},{key:"name",get:function(){return"SearchHeaderComponent"}},{key:"template",get:function(){return C.a}},{key:"lang",get:function(){return"search.searchHeader"}},{key:"className",get:function(){return"bg-white border-bottom p-3"}}])&&R(t.prototype,n),o&&R(t,o),i}(i.a.Component),j=n(6),D=n(1084),M=n(1163),V=n(1308),N=n.n(V);function F(e){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function L(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function A(e,t){return(A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function B(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=H(e);if(t){var r=H(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return U(this,n)}}function U(e,t){return!t||"object"!==F(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function H(e){return(H=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var z=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&A(e,t)}(i,e);var t,n,o,r=B(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"regions",value:function(){return{results:{replaceElement:!0,el:".results-region",partialLoading:j.j.VideoList}}}},{key:"onBeforeRender",value:function(){return!!this.collection}},{key:"onRender",value:function(){var e=new D.a({collection:this.collection,videosWithMetadata:this.options.videosWithMetadata,application:f.b.SEARCH,videoItemComponentType:M.a.Search,collectionIdentifier:null,config:this.options.config,emptyStateType:j.c.Search,emptyStateOptions:{heading:s.a.getPhrase(this.lang,"emptyStateHeading"),description:s.a.getPhrase(this.lang,"emptyStateDescription")},collectionViewChannel:this.options.collectionViewChannel,customerHasExchange:this.options.customerHasExchange});this.showChildView("results",e)}},{key:"name",get:function(){return"SearchResultsComponent"}},{key:"template",get:function(){return N.a}},{key:"lang",get:function(){return"search.searchResults"}},{key:"className",get:function(){return"bg-white"}}])&&L(t.prototype,n),o&&L(t,o),i}(i.a.Component),q=n(1091),W=n(1309),Y=n.n(W);function G(e){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Q(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function J(e,t){return(J=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function K(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=$(e);if(t){var r=$(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Z(this,n)}}function Z(e,t){return!t||"object"!==G(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function $(e){return($=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"SearchView",(function(){return X}));var X=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&J(e,t)}(C,e);var t,n,w,O=K(C);function C(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,C),O.call(this,e)}return t=C,(n=[{key:"initialize",value:function(){this.initializeQuery(),this.bindListeners(),this.contextualSearchService=l.a.getInstance(c.b.ContextualSearch,this),this.searchDataService=l.a.getInstance(c.a.Search,this),this.videoDataService=l.a.getInstance(g.a.Video,this),this.ratingsDataService=l.a.getInstance(g.a.Ratings,this),this.collectionIdentifier=new u.a(Object.assign({collectionPrefix:h.a.SEARCH_VIDEOS},this.options.queryParams))}},{key:"initializeQuery",value:function(){this.queryModel=this.getSearchModel()}},{key:"bindListeners",value:function(){this.listenTo(f.e.RATINGS,"".concat(h.a.RATINGS,":sync"),this.render),this.listenTo(this.channelName,f.i.Filters.FILTER_CHANGED,o.debounce(this.onFilterChange,100)),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata),this.listenTo(q.a.TagFilter,"change:relevant:tags",this.updateSearchResults)}},{key:"regions",value:function(){return{header:{replaceElement:!0,el:".header-region"},results:{replaceElement:!0,el:".results-region"},pagination:{el:".pagination-region",replaceElement:!0}}}},{key:"getSearchModel",value:function(){return a.a.get("search",{ctor:b.c})}},{key:"fetchSearchData",value:function(){this.ratings=this.ratingsDataService.getAllRatings(),this.ratings&&!this.filterCollection&&this.initializeFilterCollection()}},{key:"initializeFilterCollection",value:function(){this.filterCollection=k.b.getFilterCollection(this.sources,this.ratings),this.setQueryParams()}},{key:"setQueryParams",value:function(){k.c.setQueryParams(Object.assign(Object.assign({},this.options.queryParams),this.getContextParams()),this.queryModel,this.filterCollection)}},{key:"getContextParams",value:function(){if(!this.queryModel.get("query"))return r.Radio.channel(f.w.CONTEXTUAL_SEARCH).trigger("reset:search:context"),{};var e,t,n,o=this.contextualSearchService.getSearchContext();return o&&o.get("filterParam")?(e={},t=o.get("filterParam"),n=o.get("filterValue"),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e):{}}},{key:"onFilterChange",value:function(){i.a.AppLinkHelper.trigger({application:f.b.SEARCH,action:f.a.Search.HOME,params:k.c.getRouteQueryParams(this.queryModel,this.filterCollection,this.sources)})}},{key:"setVideosWithMetadata",value:function(){this.resultCollection&&!this.videosWithMetadata&&(this.videosWithMetadata=new y.a(this.resultCollection.map((function(e){return new d.a({id:e.get("id")})}))))}},{key:"updateSearchResults",value:function(){var e=this;this.resultCollection=null,this.renderResults(),this.queryString=k.c.getQueryString(this.queryModel,this.filterCollection,this.collectionIdentifier.cursor);var t=function(){return i.a.AppLinkHelper.trigger({application:f.b.SEARCH,action:f.a.Search.HOME,params:k.c.getRouteQueryParams(e.queryModel,e.filterCollection,e.sources)})};this.queryString?this.searchDataService.searchVideos(this.queryString,this.collectionIdentifier,t):t()}},{key:"renderHeader",value:function(){var e=new I({collection:this.filterCollection,channelName:this.channelName});this.showChildView("header",e)}},{key:"renderResults",value:function(){var e=new z({collection:this.resultCollection,videosWithMetadata:this.videosWithMetadata,config:this.config,collectionViewChannel:this.channelName,customerHasExchange:this.exchanges.any()});this.showChildView("results",e)}},{key:"renderPagination",value:function(){if(this.resultCollection&&this.resultCollection.length){var e=this.videoDataService.getVideoCollectionCursors(this.collectionIdentifier),t=new p.a({cursors:e,appLink:{application:f.b.SEARCH,action:f.a.Search.HOME,params:k.c.getRouteQueryParams(this.queryModel,this.filterCollection,this.sources)}});this.showChildView("pagination",t)}}},{key:"fetchResults",value:function(){var e=this;if(this.filterCollection){this.queryString=k.c.getQueryString(this.queryModel,this.filterCollection,this.collectionIdentifier.cursor);var t=k.c.getDynamicFilterQueryString(this.queryModel,this.filterCollection);if(this.dynamicFiltersFetched||this.searchDataService.getDynamicFilters(t,(function(t){e.dynamicFiltersFetched||(e.filterCollection.add(t.toJSON(),{merge:!0}),e.dynamicFiltersFetched=!0,e.render())})),!this.resultCollection){var n=function(t){e.resultCollection=t,e.setVideosWithMetadata(),e.render()};this.queryString?this.searchDataService.searchVideos(this.queryString,this.collectionIdentifier,n):n(new y.a([]))}}}},{key:"fetchVideoWithMetadata",value:function(e){var t=this;this.videoDataService.getVideo(e,(function(n){var o=t.videosWithMetadata.get(e);o&&(o.set(n.toJSON()),o.set({dataFetched:!0}))}))}},{key:"onBeforeRender",value:function(){return this.fetchSearchData(),this.fetchResults(),!0}},{key:"onRender",value:function(){this.renderHeader(),this.renderResults(),this.renderPagination()}},{key:"onBeforeDestroy",value:function(){this.queryModel.clear()}},{key:"name",get:function(){return"SearchView"}},{key:"title",get:function(){return s.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"search.search"}},{key:"template",get:function(){return Y.a}},{key:"className",get:function(){return"bg-white"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"requiredResources",get:function(){return{config:m.b.config,sources:v.b.libraries,exchanges:v.b.exchanges}}}])&&Q(t.prototype,n),w&&Q(t,w),C}(i.a.View)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://@clickview/library-editor/./src/shared/components/edit-video/base/edit-video-info.scss?eddc","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/shared/components/edit-video/select-rating/SelectRating.hbs","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/shared/components/edit-video/select-rating/SelectRatingCollectionComponent.ts","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/shared/components/edit-video/select-rating/SelectRatingComponent.ts","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/shared/components/edit-video/select-rating/SelectRatingItem.hbs","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/shared/components/edit-video/select-rating/SelectRatingItemComponent.ts","webpack://@clickview/library-editor/./src/shared/components/edit-video/select-rating/select-rating.scss?f7f1"],"names":[],"mappings":";;;;;;;;;AAAA;AACA,kBAAkB,ouB;;;;;;;;;;;ACDlB,iBAAiB,mBAAO,CAAC,8BAAY;AACrC,iEAAiE;AACjE,oHAAoH;;AAEpH;AACA,wIAAwI,yBAAyB,yEAAyE;AAC1O;AACA,8HAA8H,uBAAuB,aAAa;AAClK;AACA,wIAAwI,yBAAyB,yEAAyE;AAC1O;AACA,CAAC;AACD;AACA,CAAC;AACD;;AAEA;AACA;AACA;AACA,+IAA+I,iBAAiB,uBAAuB,aAAa;AACpM;AACA,CAAC;AACD;;AAEA;AACA;AACA;AACA,+IAA+I,YAAY,uBAAuB,aAAa;AAC/L;AACA,CAAC;AACD,gLAAgL;;AAEhL;AACA;AACA;AACA;AACA;AACA,8IAA8I,yBAAyB,yEAAyE;AAChP;AACA,yIAAyI,qBAAqB,yEAAyE;AACvO;AACA,CAAC,gBAAgB,E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACxCjB;AAIA;AAOO,IAAM,+BAAb;AAAA;;AAAA;;AAGE,2CAAY,OAAZ,EAA2D;AAAA;;AAAA,6BACnD,OADmD;AAE1D;;AALH;AAAA;AAAA,wBAOiB;AACb,aAAO,iCAAP;AACD;AATH;AAAA;AAAA,wBAWoB;AAChB,aAAO,IAAP;AACD;AAbH;AAAA;AAAA,wBAesB;AAClB;AACD;AAjBH;AAAA;AAAA,wBAmBsB;AAClB,aAAO,oFAAP;AACD;AArBH;AAAA;AAAA,wBAuB6B;AACzB,aAAO;AACL,mBAAW,EAAE,KAAK,OAAL,CAAa,WADrB;AAEL,uBAAe,EAAE,KAAK,OAAL,CAAa,eAFzB;AAGL,gBAAQ,EAAE,KAAK,OAAL,CAAa;AAHlB,OAAP;AAKD;AA7BH;;AAAA;AAAA,EAAqD,8DAAI,CAAC,mBAA1D,E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACZA;AACA;AAEA;AACA;AAEA;AAEA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AAYO,IAAM,qBAAb;AAAA;;AAAA;;AAIE,iCAAY,OAAZ,EAA0C;AAAA;;AAAA,6BAClC,OADkC;AAEzC;;AANH;AAAA;AAAA,6BAoBe;AACX,aAAO;AACL,gCAAwB;AADnB,OAAP;AAGD;AAxBH;AAAA;AAAA,8BA0BgB;AACZ,aAAO;AACL,eAAO,EAAE;AACP,YAAE,EAAE,iBADG;AAEP,wBAAc,EAAE;AAFT;AADJ,OAAP;AAMD;AAjCH;AAAA;AAAA,iCAkEmB;AACf,WAAK,iBAAL;AACA,WAAK,gBAAL,CAAsB,KAAK,KAA3B;AACA,WAAK,aAAL;AACD;AAtEH;AAAA;AAAA,oCAwEuB;AACnB,WAAK,QAAL,CAAc,KAAK,WAAnB,EAAgC,eAAhC,EAAiD,KAAK,gBAAtD;AACD;AA1EH;AAAA;AAAA,qCA4E2B,KA5E3B,EA4EwC;AACpC,yDAAY,CAAC,SAAb,CAAuB,KAAvB,EAA8B,KAAK,cAAnC;AACD;AA9EH;AAAA;AAAA,qCAgF2B,KAhF3B,EAgFwC;AACpC,WAAK,gBAAL,CAAsB,KAAtB;AAEA,UAAM,SAAS,GAAG,wDAAiB,CAAC,WAAlB,CAA8B,KAAK,cAAnC,CAAlB;AACA,WAAK,YAAL,CAAkB,SAAlB;AACD;AArFH;AAAA;AAAA,mCAuFyB,CAvFzB,EAuFwC;AACpC,OAAC,CAAC,cAAF;AAEA,WAAK,CAAL,CAAO,gBAAP,EAAyB,OAAzB,CAAiC,SAAjC,EAHoC,CAKpC;;AACA,WAAK,gBAAL,CAAsB,IAAtB,EANoC,CAQpC;;AACA,UAAM,YAAY,GAAG,KAAK,UAAL,CAAgB,SAAhB,CAA0B;AAAE,aAAK,EAAE;AAAT,OAA1B,CAArB;AACA,WAAK,YAAL,CAAkB,YAAlB;AAEA,aAAO,KAAP;AACD;AApGH;AAAA;AAAA,iCAsGuB,MAtGvB,EAsGqC;AACjC,oDAAK,CAAC,OAAN,CAAc,KAAK,OAAL,CAAa,iBAA3B,EAA8C,OAA9C,CAAsD,eAAtD,EAAuE,MAAvE;AAEA,WAAK,MAAL;AACD;AAED;;;;AA5GF;AAAA;AAAA,wCA+G2B;AACvB,UAAM,MAAM,GAAG,kDAAS,KAAK,UAAL,CAAgB,MAAhB,EAAT,EAAmC,UAAC,CAAD;AAAA,eAAmB,CAAC,CAAC,KAAF,KAAY,CAA/B;AAAA,OAAnC,CAAf;;AACA,aAAO,KAAK,cAAL,GAAsB,IAAI,8EAAJ,CAAqB,MAArB,CAA7B;AACD;AAlHH;AAAA;AAAA,kCAoHoB;AAChB,UAAM,YAAY,GAAG,wDAAiB,CAAC,WAAlB,CAA8B,KAAK,cAAnC,CAArB;AACA,aAAO;AACL,cAAM,EAAE,kDAAS,kEAAT,EAAqB,2DAArB,CADH;AAEL,kBAAU,EAAE,CAAC,KAAK,OAAL,CAAa,UAAd,IAA6B,YAAY,IAAI,KAAK,OAAL,CAAa,QAFjE;AAGL,gBAAQ,EAAE,KAAK,OAAL,CAAa,QAHlB;AAIL,sBAAc,EAAE,KAAK,OAAL,CAAa;AAJxB,OAAP;AAMD;AA5HH;AAAA;AAAA,sDA8HyC;AACrC,WAAK,aAAL,CAAmB,SAAnB,EAA8B,IAAI,gGAAJ,CAAoC;AAChE,kBAAU,EAAE,KAAK,cAD+C;AAEhE,mBAAW,EAAE,KAAK,WAF8C;AAGhE,gBAAQ,EAAE,KAAK,OAAL,CAAa;AAHyC,OAApC,CAA9B;AAKD;AApIH;AAAA;AAAA,+BAsIiB;AACb,WAAK,+BAAL;AACD;AAxIH;AAAA;AAAA,wBAQiB;AACb,aAAO,uBAAP;AACD;AAVH;AAAA;AAAA,wBAYwB;AACpB,uBAAU,KAAK,IAAf,SAAsB,KAAK,GAA3B;AACD;AAdH;AAAA;AAAA,wBAgBiB;AACb,aAAO,qBAAP;AACD;AAlBH;AAAA;AAAA,wBAmCqB;AACjB,aAAO,yDAAP;AACD;AArCH;AAAA;AAAA,wBAuCsB;AAClB,aAAO,CAAC;AACN,qBAAa,EAAE,yGADT;AAEN,gBAAQ,EAAE,gBAFJ;AAGN,aAAK,EAAE,kGAAe,CAAC,SAAhB,CAA0B,KAAK,IAA/B,EAAqC,eAArC;AAHD,OAAD,CAAP;AAKD;AA7CH;AAAA;AAAA,wBA+CqB;AACjB,aAAO;AACL,2BAAmB;AACjB,qBAAW,EAAE,sDAAW,CAAC,cADR;AAEjB,gBAAM,EAAE,kDAAO,CAAC,aAAR,CAAsB,eAFb;AAGjB,cAAI,EAAE,CAAC,KAAK,OAAL,CAAa,OAAd,CAHW;AAIjB,gBAAM,EAAE;AACN,oBAAQ,EAAE,2EAAY,CAAC;AADjB;AAJS;AADd,OAAP;AAUD;AA1DH;AAAA;AAAA,wBA4DqB;AACjB,aAAO;AACL,gBAAQ,EAAE;AADL,OAAP;AAGD;AAhEH;;AAAA;AAAA,EAA2C,8DAAI,CAAC,SAAhD,E;;;;;;;;;;;AC7BA,iBAAiB,mBAAO,CAAC,8BAAY;AACrC,iEAAiE;AACjE;;AAEA;AACA,mQAAmQ,GAAG,uBAAuB,aAAa;AAC1S,CAAC,gBAAgB,E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACJjB;AAEA;AACA;AAIA;AACA;AAOO,IAAM,yBAAb;AAAA;;AAAA;;AAGE,qCAAY,OAAZ,EAAqD;AAAA;;AAAA,6BAC7C,OAD6C;AAEpD;;AALH;AAAA;AAAA,6BAqCe;AACX,aAAO;AACL,aAAK,EAAE;AADF,OAAP;AAGD;AAzCH;AAAA;AAAA,4BAmDiB,KAnDjB,EAmD6B;AACzB,UAAI,CAAC,KAAK,OAAL,CAAa,QAAlB,EACE;AAEF,oDAAK,CAAC,OAAN,CAAc,KAAK,OAAL,CAAa,WAA3B,EAAwC,OAAxC,CAAgD,eAAhD,EAAiE,KAAK,KAAtE;AACD;AAxDH;AAAA;AAAA,+BA0DiB;AACb,WAAK,cAAL;AACD;AA5DH;AAAA;AAAA,wBAOiB;AACb,aAAO,2BAAP;AACD;AATH;AAAA;AAAA,wBAWqB;AACjB,aAAO,4DAAP;AACD;AAbH;AAAA;AAAA,wBAeoB;AAChB,aAAO,IAAP;AACD;AAjBH;AAAA;AAAA,wBAmBuB;AACnB,UAAM,KAAK,GAAG,KAAK,OAAL,CAAa,QAAb,GAAwB,KAAK,KAAL,CAAW,GAAX,CAAe,MAAf,CAAxB,GAAiD,EAA/D;AAEA,aAAO;AACL,aAAK,EAAL;AADK,OAAP;AAGD;AAzBH;AAAA;AAAA,wBA2BsB;AAClB,UAAI,SAAS,GAAG,EAAhB;AACA,eAAS,kBAAW,KAAK,OAAL,CAAa,QAAb,GAAwB,WAAxB,aAAyC,0DAAM,CAAC,QAAhD,CAAX,CAAT;AAEA,UAAI,KAAK,KAAL,CAAW,GAAX,CAAe,UAAf,CAAJ,EACE,SAAS,IAAI,KAAK,OAAL,CAAa,QAAb,GAAwB,SAAxB,cAAwC,0DAAM,CAAC,gBAA/C,CAAb;AAEF,aAAO,SAAP;AACD;AAnCH;AAAA;AAAA,wBA2CsB;AAClB,UAAM,KAAK,GAAG,KAAK,OAAL,CAAa,QAAb,GAAwB,KAAK,OAAL,CAAa,KAAb,CAAmB,GAAnB,CAAuB,MAAvB,CAAxB,GAAyD,EAAvE;AACA,aAAO,CAAC;AACN,qBAAa,EAAE,yGADT;AAEN,aAAK,EAAL;AAFM,OAAD,CAAP;AAID;AAjDH;;AAAA;AAAA,EAA+C,8DAAI,CAAC,SAApD,E;;;;;;;;;;;ACjBA;AACA,kBAAkB,qK","file":"scripts/21.chunk.js","sourcesContent":["// extracted by mini-css-extract-plugin\nmodule.exports = {\"requiredStar\":\"cv--requiredStar--3S5iJ\",\"disabled\":\"cv--disabled--3iZQ5\",\"formGroup\":\"cv--formGroup--B4xS9\",\"suggestEdit\":\"cv--suggestEdit--3n3sM\",\"programTitle\":\"cv--programTitle--3bWJB\",\"description\":\"cv--description--3qayV\",\"seriesTitle\":\"cv--seriesTitle--3ojjo\",\"broadcastDate\":\"cv--broadcastDate--2hA-0\",\"channel\":\"cv--channel--1SMGG\",\"rating\":\"cv--rating--3AkUv\",\"productionYear\":\"cv--productionYear--1DYCl\",\"distributors\":\"cv--distributors--2CbiR\",\"productionCompanies\":\"cv--productionCompanies--3hB5o\",\"directors\":\"cv--directors--ksEaA\",\"producers\":\"cv--producers--h7P2B\",\"episodeNumber\":\"cv--episodeNumber--3fMUg\",\"seasonNumber\":\"cv--seasonNumber--GwqaB\",\"icon\":\"cv--icon--quxL2\",\"infoSvgContainer\":\"cv--infoSvgContainer--18UDY\"};","var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \" <label class=\\\"\"\n + ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\\">\"\n + container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(alias2,\"rating\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</label>\\r\\n \"\n + ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n return \"d-inline-block\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression;\n\n return \"<span class=\\\"\"\n + alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.suggestEdit : stack1), depth0))\n + \"\\\">- <a class=\\\"suggest-rating\\\">\"\n + alias2((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"suggestEdit\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</a></span><br>\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression;\n\n return \"<span class=\\\"text-muted mx-2 remove-rating \"\n + alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.removeRating : stack1), depth0))\n + \"\\\">\"\n + alias2((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"remove\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</span>\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \"<div class=\\\"edit-rating form-group \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.selectRating : stack1), depth0))\n + \" \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.rating : stack1), depth0))\n + \"\\\">\\r\\n\"\n + ((stack1 = helpers.unless.call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.hideHeaderText : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \" <div>\\r\\n <div class=\\\"ratings-region\\\" name=\\\"rating\\\"></div>\\r\\n \"\n + ((stack1 = helpers[\"if\"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.showRemove : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(6, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n <div class=\\\"form-feedback\\\"></div>\\r\\n </div>\\r\\n</div>\";\n},\"useData\":true});","import * as _ from 'underscore';\r\nimport { Core } from 'libs/common/core';\r\n\r\nimport { Rating } from 'shared/models/Rating';\r\n\r\nimport { SelectRatingItemComponent, SelectRatingItemComponentOptions } from './SelectRatingItemComponent';\r\n\r\ninterface SelectRatingCollectionComponentOptions extends Core.ComponentCollectionOptions<Rating>{\r\n currentRatingId?: number;\r\n editable?: boolean;\r\n}\r\n\r\nexport class SelectRatingCollectionComponent extends Core.ComponentCollection<Rating> {\r\n public options: SelectRatingCollectionComponentOptions;\r\n\r\n constructor(options: SelectRatingCollectionComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public get name(): string {\r\n return 'SelectRatingCollectionComponent';\r\n }\r\n\r\n public get tagName(): string {\r\n return 'ul';\r\n }\r\n\r\n public get className(): string {\r\n return `rating-group btn-group p-0 m-0`;\r\n }\r\n\r\n public get childView(): typeof SelectRatingItemComponent {\r\n return SelectRatingItemComponent;\r\n }\r\n\r\n public get childViewOptions(): SelectRatingItemComponentOptions {\r\n return {\r\n channelName: this.options.channelName,\r\n currentRatingId: this.options.currentRatingId,\r\n editable: this.options.editable\r\n };\r\n }\r\n}","import * as _ from 'underscore';\r\nimport { ObjectHash, Radio } from 'backbone';\r\n\r\nimport { Core } from 'libs/common/core';\r\nimport { TooltipBehavior } from 'libs/shared/legacy/behaviors/tooltip/TooltipBehavior';\r\n\r\nimport { RatingCollection } from 'shared/collections/RatingCollection';\r\nimport { Rating } from 'shared/models/Rating';\r\nimport { SelectRatingCollectionComponent } from 'shared/components/edit-video/select-rating/SelectRatingCollectionComponent';\r\nimport { RatingHelper, CollectionHelpers } from 'shared/utils';\r\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\r\nimport { AppChannels, Actions } from 'shared/constants';\r\n\r\nimport { MetadataType } from 'apps/library-editor/constants';\r\n\r\nimport SelectRatingsTemplate from './SelectRating.hbs';\r\nimport styles from './select-rating.scss';\r\nimport baseStyles from '../base/edit-video-info.scss';\r\n\r\ninterface RatingSelectorOptions extends Core.ComponentOptions {\r\n parentChannelName: string;\r\n collection: RatingCollection;\r\n model: Core.Model;\r\n editable?: boolean;\r\n videoId?: string;\r\n hideHeaderText?: boolean;\r\n hideRemove?: boolean;\r\n}\r\n\r\nexport class SelectRatingComponent extends Core.Component {\r\n public options: RatingSelectorOptions;\r\n public viewCollection: RatingCollection;\r\n\r\n constructor(options: RatingSelectorOptions) {\r\n super(options);\r\n }\r\n\r\n public get name(): string {\r\n return 'SelectRatingComponent';\r\n }\r\n\r\n public get channelName(): string {\r\n return `${this.name}${this.cid}`;\r\n }\r\n\r\n public get lang(): string {\r\n return 'shared.selectRating';\r\n }\r\n\r\n public events(): ObjectHash {\r\n return {\r\n 'click .remove-rating': 'onRemoveRating'\r\n };\r\n }\r\n\r\n public regions(): ObjectHash {\r\n return {\r\n ratings: {\r\n el: '.ratings-region',\r\n replaceElement: true\r\n }\r\n };\r\n }\r\n\r\n public get template(): any {\r\n return SelectRatingsTemplate;\r\n }\r\n\r\n public get behaviors(): any[] {\r\n return [{\r\n behaviorClass: TooltipBehavior,\r\n selector: '.remove-rating',\r\n title: LanguageService.getPhrase(this.lang, 'removeTooltip')\r\n }];\r\n }\r\n\r\n public get appLinks(): Core.AppLinkHash {\r\n return {\r\n '.suggest-rating': {\r\n application: AppChannels.LIBRARY_EDITOR,\r\n action: Actions.LibraryEditor.SUGGEST_AN_EDIT,\r\n args: [this.options.videoId],\r\n params: {\r\n metadata: MetadataType.Rating\r\n }\r\n }\r\n };\r\n }\r\n\r\n public get defaults(): ObjectHash {\r\n return {\r\n editable: true\r\n };\r\n }\r\n\r\n public initialize(): void {\r\n this.setViewCollection();\r\n this.setCurrentRating(this.model);\r\n this.bindListeners();\r\n }\r\n\r\n private bindListeners(): void {\r\n this.listenTo(this.channelName, 'select:rating', this.onRatingSelected);\r\n }\r\n\r\n private setCurrentRating(model: Rating): void {\r\n RatingHelper.setRating(model, this.viewCollection);\r\n }\r\n\r\n private onRatingSelected(model: Rating): void {\r\n this.setCurrentRating(model);\r\n\r\n const newRating = CollectionHelpers.getSelected(this.viewCollection);\r\n this.updateRating(newRating);\r\n }\r\n\r\n private onRemoveRating(e: JQuery.Event): boolean {\r\n e.preventDefault();\r\n\r\n this.$('.remove-rating').tooltip('dispose');\r\n\r\n // Deselect the current rating\r\n this.setCurrentRating(null);\r\n\r\n // Set the new rating as Unrated\r\n const unratedModel = this.collection.findWhere({ value: 0 });\r\n this.updateRating(unratedModel);\r\n\r\n return false;\r\n }\r\n\r\n private updateRating(rating: Rating): void {\r\n Radio.channel(this.options.parentChannelName).trigger('select:rating', rating);\r\n\r\n this.render();\r\n }\r\n\r\n /**\r\n * Create a new view collection that omits the unrated model\r\n */\r\n private setViewCollection(): RatingCollection {\r\n const models = _.filter(this.collection.toJSON(), (m: ObjectHash) => m.value !== 0);\r\n return this.viewCollection = new RatingCollection(models);\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n const currentModel = CollectionHelpers.getSelected(this.viewCollection);\r\n return {\r\n styles: _.extend(baseStyles, styles),\r\n showRemove: !this.options.hideRemove && (currentModel && this.options.editable),\r\n editable: this.options.editable,\r\n hideHeaderText: this.options.hideHeaderText\r\n };\r\n }\r\n\r\n private renderRatingCollectionComponent(): void {\r\n this.showChildView('ratings', new SelectRatingCollectionComponent({\r\n collection: this.viewCollection,\r\n channelName: this.channelName,\r\n editable: this.options.editable\r\n }));\r\n }\r\n\r\n public onRender(): void {\r\n this.renderRatingCollectionComponent();\r\n }\r\n}","var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var helper, alias1=container.propertyIsEnumerable;\n\n return \"\\r\\n\"\n + container.escapeExpression(((helper = (helper = helpers.code || (depth0 != null ? depth0.code : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"code\",\"hash\":{},\"data\":data}) : helper)));\n},\"useData\":true});","import * as _ from 'underscore';\r\nimport { ObjectHash } from 'backbone';\r\nimport { Radio } from 'backbone';\r\n\r\nimport { Core } from 'libs/common/core';\r\nimport { TooltipBehavior } from 'libs/shared/legacy/behaviors/tooltip/TooltipBehavior';\r\n\r\nimport { Rating } from 'shared/models/Rating';\r\n\r\nimport SelectRatingItemTemplate from './SelectRatingItem.hbs';\r\nimport styles from './select-rating.scss';\r\n\r\nexport interface SelectRatingItemComponentOptions extends Core.ComponentOptions<Rating>{\r\n currentRatingId?: number;\r\n editable?: boolean;\r\n}\r\n\r\nexport class SelectRatingItemComponent extends Core.Component<Rating> {\r\n public options: SelectRatingItemComponentOptions;\r\n\r\n constructor(options: SelectRatingItemComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public get name(): string {\r\n return 'SelectRatingItemComponent';\r\n }\r\n\r\n public get template(): any {\r\n return SelectRatingItemTemplate;\r\n }\r\n\r\n public get tagName(): string {\r\n return 'li';\r\n }\r\n\r\n public get attributes(): any {\r\n const title = this.options.editable ? this.model.get('name') : '';\r\n\r\n return {\r\n title\r\n };\r\n }\r\n\r\n public get className(): string {\r\n let className = '';\r\n className += `btn ${this.options.editable ? 'btn-light' : `${styles.disabled}`}`;\r\n\r\n if (this.model.get('selected'))\r\n className += this.options.editable ? ' active' : ` ${styles.disabledSelected}`;\r\n\r\n return className;\r\n }\r\n\r\n public events(): ObjectHash {\r\n return {\r\n click: 'onClick'\r\n };\r\n }\r\n\r\n public get behaviors(): any[] {\r\n const title = this.options.editable ? this.options.model.get('name') : '';\r\n return [{\r\n behaviorClass: TooltipBehavior,\r\n title\r\n }];\r\n }\r\n\r\n public onClick(event: Event): void {\r\n if (!this.options.editable)\r\n return;\r\n\r\n Radio.channel(this.options.channelName).trigger('select:rating', this.model);\r\n }\r\n\r\n public onRender(): void {\r\n this.resetClassName();\r\n }\r\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"selectRating\":\"cv--selectRating--1I6jj\",\"removeRating\":\"cv--removeRating--1ze5G\",\"disabled\":\"cv--disabled--2hO8J\",\"disabledSelected\":\"cv--disabledSelected--mnQ5O\"};"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["webpack://@clickview/library-editor/./src/shared/components/edit-video/base/edit-video-info.scss?4d72","file://C:/ClickView Projects/clickview/packages/projects/library-editor/src/shared/components/edit-video/select-rating/SelectRating.hbs","file://C:/ClickView Projects/clickview/packages/projects/library-editor/src/shared/components/edit-video/select-rating/SelectRatingCollectionComponent.ts","file://C:/ClickView Projects/clickview/packages/projects/library-editor/src/shared/components/edit-video/select-rating/SelectRatingComponent.ts","file://C:/ClickView Projects/clickview/packages/projects/library-editor/src/shared/components/edit-video/select-rating/SelectRatingItem.hbs","file://C:/ClickView Projects/clickview/packages/projects/library-editor/src/shared/components/edit-video/select-rating/SelectRatingItemComponent.ts","webpack://@clickview/library-editor/./src/shared/components/edit-video/select-rating/select-rating.scss?1dfe"],"names":[],"mappings":";;;;;;;;;AAAA;AACA,kBAAkB,ouB;;;;;;;;;;;ACDlB,iBAAiB,mBAAO,CAAC,8BAAY;AACrC,iEAAiE;AACjE,oHAAoH;;AAEpH;AACA,wIAAwI,yBAAyB,yEAAyE;AAC1O;AACA,8HAA8H,uBAAuB,aAAa;AAClK;AACA,wIAAwI,yBAAyB,yEAAyE;AAC1O;AACA,CAAC;AACD;AACA,CAAC;AACD;;AAEA;AACA;AACA;AACA,+IAA+I,iBAAiB,uBAAuB,aAAa;AACpM;AACA,CAAC;AACD;;AAEA;AACA;AACA;AACA,+IAA+I,YAAY,uBAAuB,aAAa;AAC/L;AACA,CAAC;AACD,gLAAgL;;AAEhL;AACA;AACA;AACA;AACA;AACA,8IAA8I,yBAAyB,yEAAyE;AAChP;AACA,yIAAyI,qBAAqB,yEAAyE;AACvO;AACA,CAAC,gBAAgB,E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACxCjB;AAIA;AAOO,IAAM,+BAAb;AAAA;;AAAA;;AAGE,2CAAY,OAAZ,EAA2D;AAAA;;AAAA,6BACnD,OADmD;AAE1D;;AALH;AAAA;AAAA,wBAOiB;AACb,aAAO,iCAAP;AACD;AATH;AAAA;AAAA,wBAWoB;AAChB,aAAO,IAAP;AACD;AAbH;AAAA;AAAA,wBAesB;AAClB;AACD;AAjBH;AAAA;AAAA,wBAmBsB;AAClB,aAAO,oFAAP;AACD;AArBH;AAAA;AAAA,wBAuB6B;AACzB,aAAO;AACL,mBAAW,EAAE,KAAK,OAAL,CAAa,WADrB;AAEL,uBAAe,EAAE,KAAK,OAAL,CAAa,eAFzB;AAGL,gBAAQ,EAAE,KAAK,OAAL,CAAa;AAHlB,OAAP;AAKD;AA7BH;;AAAA;AAAA,EAAqD,8DAAI,CAAC,mBAA1D,E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACZA;AACA;AAEA;AACA;AAEA;AAEA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AAYO,IAAM,qBAAb;AAAA;;AAAA;;AAIE,iCAAY,OAAZ,EAA0C;AAAA;;AAAA,6BAClC,OADkC;AAEzC;;AANH;AAAA;AAAA,6BAoBe;AACX,aAAO;AACL,gCAAwB;AADnB,OAAP;AAGD;AAxBH;AAAA;AAAA,8BA0BgB;AACZ,aAAO;AACL,eAAO,EAAE;AACP,YAAE,EAAE,iBADG;AAEP,wBAAc,EAAE;AAFT;AADJ,OAAP;AAMD;AAjCH;AAAA;AAAA,iCAkEmB;AACf,WAAK,iBAAL;AACA,WAAK,gBAAL,CAAsB,KAAK,KAA3B;AACA,WAAK,aAAL;AACD;AAtEH;AAAA;AAAA,oCAwEuB;AACnB,WAAK,QAAL,CAAc,KAAK,WAAnB,EAAgC,eAAhC,EAAiD,KAAK,gBAAtD;AACD;AA1EH;AAAA;AAAA,qCA4E2B,KA5E3B,EA4EwC;AACpC,yDAAY,CAAC,SAAb,CAAuB,KAAvB,EAA8B,KAAK,cAAnC;AACD;AA9EH;AAAA;AAAA,qCAgF2B,KAhF3B,EAgFwC;AACpC,WAAK,gBAAL,CAAsB,KAAtB;AAEA,UAAM,SAAS,GAAG,wDAAiB,CAAC,WAAlB,CAA8B,KAAK,cAAnC,CAAlB;AACA,WAAK,YAAL,CAAkB,SAAlB;AACD;AArFH;AAAA;AAAA,mCAuFyB,CAvFzB,EAuFwC;AACpC,OAAC,CAAC,cAAF;AAEA,WAAK,CAAL,CAAO,gBAAP,EAAyB,OAAzB,CAAiC,SAAjC,EAHoC,CAKpC;;AACA,WAAK,gBAAL,CAAsB,IAAtB,EANoC,CAQpC;;AACA,UAAM,YAAY,GAAG,KAAK,UAAL,CAAgB,SAAhB,CAA0B;AAAE,aAAK,EAAE;AAAT,OAA1B,CAArB;AACA,WAAK,YAAL,CAAkB,YAAlB;AAEA,aAAO,KAAP;AACD;AApGH;AAAA;AAAA,iCAsGuB,MAtGvB,EAsGqC;AACjC,oDAAK,CAAC,OAAN,CAAc,KAAK,OAAL,CAAa,iBAA3B,EAA8C,OAA9C,CAAsD,eAAtD,EAAuE,MAAvE;AAEA,WAAK,MAAL;AACD;AAED;;;;AA5GF;AAAA;AAAA,wCA+G2B;AACvB,UAAM,MAAM,GAAG,kDAAS,KAAK,UAAL,CAAgB,MAAhB,EAAT,EAAmC,UAAC,CAAD;AAAA,eAAmB,CAAC,CAAC,KAAF,KAAY,CAA/B;AAAA,OAAnC,CAAf;;AACA,aAAO,KAAK,cAAL,GAAsB,IAAI,8EAAJ,CAAqB,MAArB,CAA7B;AACD;AAlHH;AAAA;AAAA,kCAoHoB;AAChB,UAAM,YAAY,GAAG,wDAAiB,CAAC,WAAlB,CAA8B,KAAK,cAAnC,CAArB;AACA,aAAO;AACL,cAAM,EAAE,kDAAS,kEAAT,EAAqB,2DAArB,CADH;AAEL,kBAAU,EAAE,CAAC,KAAK,OAAL,CAAa,UAAd,IAA6B,YAAY,IAAI,KAAK,OAAL,CAAa,QAFjE;AAGL,gBAAQ,EAAE,KAAK,OAAL,CAAa,QAHlB;AAIL,sBAAc,EAAE,KAAK,OAAL,CAAa;AAJxB,OAAP;AAMD;AA5HH;AAAA;AAAA,sDA8HyC;AACrC,WAAK,aAAL,CAAmB,SAAnB,EAA8B,IAAI,gGAAJ,CAAoC;AAChE,kBAAU,EAAE,KAAK,cAD+C;AAEhE,mBAAW,EAAE,KAAK,WAF8C;AAGhE,gBAAQ,EAAE,KAAK,OAAL,CAAa;AAHyC,OAApC,CAA9B;AAKD;AApIH;AAAA;AAAA,+BAsIiB;AACb,WAAK,+BAAL;AACD;AAxIH;AAAA;AAAA,wBAQiB;AACb,aAAO,uBAAP;AACD;AAVH;AAAA;AAAA,wBAYwB;AACpB,uBAAU,KAAK,IAAf,SAAsB,KAAK,GAA3B;AACD;AAdH;AAAA;AAAA,wBAgBiB;AACb,aAAO,qBAAP;AACD;AAlBH;AAAA;AAAA,wBAmCqB;AACjB,aAAO,yDAAP;AACD;AArCH;AAAA;AAAA,wBAuCsB;AAClB,aAAO,CAAC;AACN,qBAAa,EAAE,yGADT;AAEN,gBAAQ,EAAE,gBAFJ;AAGN,aAAK,EAAE,kGAAe,CAAC,SAAhB,CAA0B,KAAK,IAA/B,EAAqC,eAArC;AAHD,OAAD,CAAP;AAKD;AA7CH;AAAA;AAAA,wBA+CqB;AACjB,aAAO;AACL,2BAAmB;AACjB,qBAAW,EAAE,sDAAW,CAAC,cADR;AAEjB,gBAAM,EAAE,kDAAO,CAAC,aAAR,CAAsB,eAFb;AAGjB,cAAI,EAAE,CAAC,KAAK,OAAL,CAAa,OAAd,CAHW;AAIjB,gBAAM,EAAE;AACN,oBAAQ,EAAE,2EAAY,CAAC;AADjB;AAJS;AADd,OAAP;AAUD;AA1DH;AAAA;AAAA,wBA4DqB;AACjB,aAAO;AACL,gBAAQ,EAAE;AADL,OAAP;AAGD;AAhEH;;AAAA;AAAA,EAA2C,8DAAI,CAAC,SAAhD,E;;;;;;;;;;;AC7BA,iBAAiB,mBAAO,CAAC,8BAAY;AACrC,iEAAiE;AACjE;;AAEA;AACA,mQAAmQ,GAAG,uBAAuB,aAAa;AAC1S,CAAC,gBAAgB,E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACJjB;AAEA;AACA;AAIA;AACA;AAOO,IAAM,yBAAb;AAAA;;AAAA;;AAGE,qCAAY,OAAZ,EAAqD;AAAA;;AAAA,6BAC7C,OAD6C;AAEpD;;AALH;AAAA;AAAA,6BAqCe;AACX,aAAO;AACL,aAAK,EAAE;AADF,OAAP;AAGD;AAzCH;AAAA;AAAA,4BAmDiB,KAnDjB,EAmD6B;AACzB,UAAI,CAAC,KAAK,OAAL,CAAa,QAAlB,EACE;AAEF,oDAAK,CAAC,OAAN,CAAc,KAAK,OAAL,CAAa,WAA3B,EAAwC,OAAxC,CAAgD,eAAhD,EAAiE,KAAK,KAAtE;AACD;AAxDH;AAAA;AAAA,+BA0DiB;AACb,WAAK,cAAL;AACD;AA5DH;AAAA;AAAA,wBAOiB;AACb,aAAO,2BAAP;AACD;AATH;AAAA;AAAA,wBAWqB;AACjB,aAAO,4DAAP;AACD;AAbH;AAAA;AAAA,wBAeoB;AAChB,aAAO,IAAP;AACD;AAjBH;AAAA;AAAA,wBAmBuB;AACnB,UAAM,KAAK,GAAG,KAAK,OAAL,CAAa,QAAb,GAAwB,KAAK,KAAL,CAAW,GAAX,CAAe,MAAf,CAAxB,GAAiD,EAA/D;AAEA,aAAO;AACL,aAAK,EAAL;AADK,OAAP;AAGD;AAzBH;AAAA;AAAA,wBA2BsB;AAClB,UAAI,SAAS,GAAG,EAAhB;AACA,eAAS,kBAAW,KAAK,OAAL,CAAa,QAAb,GAAwB,WAAxB,aAAyC,0DAAM,CAAC,QAAhD,CAAX,CAAT;AAEA,UAAI,KAAK,KAAL,CAAW,GAAX,CAAe,UAAf,CAAJ,EACE,SAAS,IAAI,KAAK,OAAL,CAAa,QAAb,GAAwB,SAAxB,cAAwC,0DAAM,CAAC,gBAA/C,CAAb;AAEF,aAAO,SAAP;AACD;AAnCH;AAAA;AAAA,wBA2CsB;AAClB,UAAM,KAAK,GAAG,KAAK,OAAL,CAAa,QAAb,GAAwB,KAAK,OAAL,CAAa,KAAb,CAAmB,GAAnB,CAAuB,MAAvB,CAAxB,GAAyD,EAAvE;AACA,aAAO,CAAC;AACN,qBAAa,EAAE,yGADT;AAEN,aAAK,EAAL;AAFM,OAAD,CAAP;AAID;AAjDH;;AAAA;AAAA,EAA+C,8DAAI,CAAC,SAApD,E;;;;;;;;;;;ACjBA;AACA,kBAAkB,qK","file":"scripts/21.chunk.js","sourcesContent":["// extracted by mini-css-extract-plugin\nmodule.exports = {\"requiredStar\":\"cv--requiredStar--3S5iJ\",\"disabled\":\"cv--disabled--3iZQ5\",\"formGroup\":\"cv--formGroup--B4xS9\",\"suggestEdit\":\"cv--suggestEdit--3n3sM\",\"programTitle\":\"cv--programTitle--3bWJB\",\"description\":\"cv--description--3qayV\",\"seriesTitle\":\"cv--seriesTitle--3ojjo\",\"broadcastDate\":\"cv--broadcastDate--2hA-0\",\"channel\":\"cv--channel--1SMGG\",\"rating\":\"cv--rating--3AkUv\",\"productionYear\":\"cv--productionYear--1DYCl\",\"distributors\":\"cv--distributors--2CbiR\",\"productionCompanies\":\"cv--productionCompanies--3hB5o\",\"directors\":\"cv--directors--ksEaA\",\"producers\":\"cv--producers--h7P2B\",\"episodeNumber\":\"cv--episodeNumber--3fMUg\",\"seasonNumber\":\"cv--seasonNumber--GwqaB\",\"icon\":\"cv--icon--quxL2\",\"infoSvgContainer\":\"cv--infoSvgContainer--18UDY\"};","var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \" <label class=\\\"\"\n + ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\\">\"\n + container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(alias2,\"rating\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</label>\\r\\n \"\n + ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n return \"d-inline-block\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression;\n\n return \"<span class=\\\"\"\n + alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.suggestEdit : stack1), depth0))\n + \"\\\">- <a class=\\\"suggest-rating\\\">\"\n + alias2((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"suggestEdit\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</a></span><br>\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression;\n\n return \"<span class=\\\"text-muted mx-2 remove-rating \"\n + alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.removeRating : stack1), depth0))\n + \"\\\">\"\n + alias2((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"remove\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</span>\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \"<div class=\\\"edit-rating form-group \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.selectRating : stack1), depth0))\n + \" \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.rating : stack1), depth0))\n + \"\\\">\\r\\n\"\n + ((stack1 = helpers.unless.call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.hideHeaderText : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \" <div>\\r\\n <div class=\\\"ratings-region\\\" name=\\\"rating\\\"></div>\\r\\n \"\n + ((stack1 = helpers[\"if\"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.showRemove : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(6, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n <div class=\\\"form-feedback\\\"></div>\\r\\n </div>\\r\\n</div>\";\n},\"useData\":true});","import * as _ from 'underscore';\r\nimport { Core } from 'libs/common/core';\r\n\r\nimport { Rating } from 'shared/models/Rating';\r\n\r\nimport { SelectRatingItemComponent, SelectRatingItemComponentOptions } from './SelectRatingItemComponent';\r\n\r\ninterface SelectRatingCollectionComponentOptions extends Core.ComponentCollectionOptions<Rating>{\r\n currentRatingId?: number;\r\n editable?: boolean;\r\n}\r\n\r\nexport class SelectRatingCollectionComponent extends Core.ComponentCollection<Rating> {\r\n public options: SelectRatingCollectionComponentOptions;\r\n\r\n constructor(options: SelectRatingCollectionComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public get name(): string {\r\n return 'SelectRatingCollectionComponent';\r\n }\r\n\r\n public get tagName(): string {\r\n return 'ul';\r\n }\r\n\r\n public get className(): string {\r\n return `rating-group btn-group p-0 m-0`;\r\n }\r\n\r\n public get childView(): typeof SelectRatingItemComponent {\r\n return SelectRatingItemComponent;\r\n }\r\n\r\n public get childViewOptions(): SelectRatingItemComponentOptions {\r\n return {\r\n channelName: this.options.channelName,\r\n currentRatingId: this.options.currentRatingId,\r\n editable: this.options.editable\r\n };\r\n }\r\n}","import * as _ from 'underscore';\r\nimport { ObjectHash, Radio } from 'backbone';\r\n\r\nimport { Core } from 'libs/common/core';\r\nimport { TooltipBehavior } from 'libs/shared/legacy/behaviors/tooltip/TooltipBehavior';\r\n\r\nimport { RatingCollection } from 'shared/collections/RatingCollection';\r\nimport { Rating } from 'shared/models/Rating';\r\nimport { SelectRatingCollectionComponent } from 'shared/components/edit-video/select-rating/SelectRatingCollectionComponent';\r\nimport { RatingHelper, CollectionHelpers } from 'shared/utils';\r\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\r\nimport { AppChannels, Actions } from 'shared/constants';\r\n\r\nimport { MetadataType } from 'apps/library-editor/constants';\r\n\r\nimport SelectRatingsTemplate from './SelectRating.hbs';\r\nimport styles from './select-rating.scss';\r\nimport baseStyles from '../base/edit-video-info.scss';\r\n\r\ninterface RatingSelectorOptions extends Core.ComponentOptions {\r\n parentChannelName: string;\r\n collection: RatingCollection;\r\n model: Core.Model;\r\n editable?: boolean;\r\n videoId?: string;\r\n hideHeaderText?: boolean;\r\n hideRemove?: boolean;\r\n}\r\n\r\nexport class SelectRatingComponent extends Core.Component {\r\n public options: RatingSelectorOptions;\r\n public viewCollection: RatingCollection;\r\n\r\n constructor(options: RatingSelectorOptions) {\r\n super(options);\r\n }\r\n\r\n public get name(): string {\r\n return 'SelectRatingComponent';\r\n }\r\n\r\n public get channelName(): string {\r\n return `${this.name}${this.cid}`;\r\n }\r\n\r\n public get lang(): string {\r\n return 'shared.selectRating';\r\n }\r\n\r\n public events(): ObjectHash {\r\n return {\r\n 'click .remove-rating': 'onRemoveRating'\r\n };\r\n }\r\n\r\n public regions(): ObjectHash {\r\n return {\r\n ratings: {\r\n el: '.ratings-region',\r\n replaceElement: true\r\n }\r\n };\r\n }\r\n\r\n public get template(): any {\r\n return SelectRatingsTemplate;\r\n }\r\n\r\n public get behaviors(): any[] {\r\n return [{\r\n behaviorClass: TooltipBehavior,\r\n selector: '.remove-rating',\r\n title: LanguageService.getPhrase(this.lang, 'removeTooltip')\r\n }];\r\n }\r\n\r\n public get appLinks(): Core.AppLinkHash {\r\n return {\r\n '.suggest-rating': {\r\n application: AppChannels.LIBRARY_EDITOR,\r\n action: Actions.LibraryEditor.SUGGEST_AN_EDIT,\r\n args: [this.options.videoId],\r\n params: {\r\n metadata: MetadataType.Rating\r\n }\r\n }\r\n };\r\n }\r\n\r\n public get defaults(): ObjectHash {\r\n return {\r\n editable: true\r\n };\r\n }\r\n\r\n public initialize(): void {\r\n this.setViewCollection();\r\n this.setCurrentRating(this.model);\r\n this.bindListeners();\r\n }\r\n\r\n private bindListeners(): void {\r\n this.listenTo(this.channelName, 'select:rating', this.onRatingSelected);\r\n }\r\n\r\n private setCurrentRating(model: Rating): void {\r\n RatingHelper.setRating(model, this.viewCollection);\r\n }\r\n\r\n private onRatingSelected(model: Rating): void {\r\n this.setCurrentRating(model);\r\n\r\n const newRating = CollectionHelpers.getSelected(this.viewCollection);\r\n this.updateRating(newRating);\r\n }\r\n\r\n private onRemoveRating(e: JQuery.Event): boolean {\r\n e.preventDefault();\r\n\r\n this.$('.remove-rating').tooltip('dispose');\r\n\r\n // Deselect the current rating\r\n this.setCurrentRating(null);\r\n\r\n // Set the new rating as Unrated\r\n const unratedModel = this.collection.findWhere({ value: 0 });\r\n this.updateRating(unratedModel);\r\n\r\n return false;\r\n }\r\n\r\n private updateRating(rating: Rating): void {\r\n Radio.channel(this.options.parentChannelName).trigger('select:rating', rating);\r\n\r\n this.render();\r\n }\r\n\r\n /**\r\n * Create a new view collection that omits the unrated model\r\n */\r\n private setViewCollection(): RatingCollection {\r\n const models = _.filter(this.collection.toJSON(), (m: ObjectHash) => m.value !== 0);\r\n return this.viewCollection = new RatingCollection(models);\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n const currentModel = CollectionHelpers.getSelected(this.viewCollection);\r\n return {\r\n styles: _.extend(baseStyles, styles),\r\n showRemove: !this.options.hideRemove && (currentModel && this.options.editable),\r\n editable: this.options.editable,\r\n hideHeaderText: this.options.hideHeaderText\r\n };\r\n }\r\n\r\n private renderRatingCollectionComponent(): void {\r\n this.showChildView('ratings', new SelectRatingCollectionComponent({\r\n collection: this.viewCollection,\r\n channelName: this.channelName,\r\n editable: this.options.editable\r\n }));\r\n }\r\n\r\n public onRender(): void {\r\n this.renderRatingCollectionComponent();\r\n }\r\n}","var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var helper, alias1=container.propertyIsEnumerable;\n\n return \"\\r\\n\"\n + container.escapeExpression(((helper = (helper = helpers.code || (depth0 != null ? depth0.code : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"code\",\"hash\":{},\"data\":data}) : helper)));\n},\"useData\":true});","import * as _ from 'underscore';\r\nimport { ObjectHash } from 'backbone';\r\nimport { Radio } from 'backbone';\r\n\r\nimport { Core } from 'libs/common/core';\r\nimport { TooltipBehavior } from 'libs/shared/legacy/behaviors/tooltip/TooltipBehavior';\r\n\r\nimport { Rating } from 'shared/models/Rating';\r\n\r\nimport SelectRatingItemTemplate from './SelectRatingItem.hbs';\r\nimport styles from './select-rating.scss';\r\n\r\nexport interface SelectRatingItemComponentOptions extends Core.ComponentOptions<Rating>{\r\n currentRatingId?: number;\r\n editable?: boolean;\r\n}\r\n\r\nexport class SelectRatingItemComponent extends Core.Component<Rating> {\r\n public options: SelectRatingItemComponentOptions;\r\n\r\n constructor(options: SelectRatingItemComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public get name(): string {\r\n return 'SelectRatingItemComponent';\r\n }\r\n\r\n public get template(): any {\r\n return SelectRatingItemTemplate;\r\n }\r\n\r\n public get tagName(): string {\r\n return 'li';\r\n }\r\n\r\n public get attributes(): any {\r\n const title = this.options.editable ? this.model.get('name') : '';\r\n\r\n return {\r\n title\r\n };\r\n }\r\n\r\n public get className(): string {\r\n let className = '';\r\n className += `btn ${this.options.editable ? 'btn-light' : `${styles.disabled}`}`;\r\n\r\n if (this.model.get('selected'))\r\n className += this.options.editable ? ' active' : ` ${styles.disabledSelected}`;\r\n\r\n return className;\r\n }\r\n\r\n public events(): ObjectHash {\r\n return {\r\n click: 'onClick'\r\n };\r\n }\r\n\r\n public get behaviors(): any[] {\r\n const title = this.options.editable ? this.options.model.get('name') : '';\r\n return [{\r\n behaviorClass: TooltipBehavior,\r\n title\r\n }];\r\n }\r\n\r\n public onClick(event: Event): void {\r\n if (!this.options.editable)\r\n return;\r\n\r\n Radio.channel(this.options.channelName).trigger('select:rating', this.model);\r\n }\r\n\r\n public onRender(): void {\r\n this.resetClassName();\r\n }\r\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"selectRating\":\"cv--selectRating--1I6jj\",\"removeRating\":\"cv--removeRating--1ze5G\",\"disabled\":\"cv--disabled--2hO8J\",\"disabledSelected\":\"cv--disabledSelected--mnQ5O\"};"],"sourceRoot":""}
|