@clickview/library-editor 1.1.23-rc.0 → 1.1.23-rc.2
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 -0
- package/dist/css/10.chunk.css.map +1 -0
- package/dist/css/11.chunk.css +137 -0
- package/dist/css/11.chunk.css.map +1 -0
- package/dist/css/12.chunk.css.map +1 -0
- package/dist/css/13.chunk.css.map +1 -0
- package/dist/css/14.chunk.css.map +1 -0
- package/dist/css/16.chunk.css.map +1 -0
- package/dist/css/17.chunk.css.map +1 -0
- package/dist/css/18.chunk.css +20 -0
- package/dist/css/18.chunk.css.map +1 -0
- package/dist/css/2.chunk.css +145 -0
- package/dist/css/2.chunk.css.map +1 -0
- package/dist/css/21.chunk.css.map +1 -0
- package/dist/css/22.chunk.css.map +1 -0
- package/dist/css/23.chunk.css.map +1 -0
- package/dist/css/25.chunk.css.map +1 -0
- package/dist/css/26.chunk.css.map +1 -0
- package/dist/css/28.chunk.css.map +1 -0
- package/dist/css/29.chunk.css.map +1 -0
- package/dist/css/3.chunk.css.map +1 -0
- package/dist/css/30.chunk.css.map +1 -0
- package/dist/css/31.chunk.css.map +1 -0
- package/dist/css/32.chunk.css.map +1 -0
- package/dist/css/33.chunk.css.map +1 -0
- package/dist/css/34.chunk.css +21 -0
- package/dist/css/34.chunk.css.map +1 -0
- package/dist/css/35.chunk.css +20 -0
- package/dist/css/35.chunk.css.map +1 -0
- package/dist/css/36.chunk.css +14 -0
- package/dist/css/36.chunk.css.map +1 -0
- package/dist/css/37.chunk.css.map +1 -0
- package/dist/css/38.chunk.css.map +1 -0
- package/dist/css/40.chunk.css.map +1 -0
- package/dist/css/41.chunk.css.map +1 -0
- package/dist/css/42.chunk.css.map +1 -0
- package/dist/css/43.chunk.css.map +1 -0
- package/dist/css/44.chunk.css.map +1 -0
- package/dist/css/45.chunk.css.map +1 -0
- package/dist/css/46.chunk.css.map +1 -0
- package/dist/css/47.chunk.css.map +1 -0
- package/dist/css/48.chunk.css.map +1 -0
- package/dist/css/49.chunk.css +35 -0
- package/dist/css/49.chunk.css.map +1 -0
- package/dist/css/50.chunk.css.map +1 -0
- package/dist/css/51.chunk.css.map +1 -0
- package/dist/css/52.chunk.css +66 -0
- package/dist/css/52.chunk.css.map +1 -0
- package/dist/css/55.chunk.css.map +1 -0
- package/dist/css/56.chunk.css.map +1 -0
- package/dist/css/58.chunk.css.map +1 -0
- package/dist/css/59.chunk.css.map +1 -0
- package/dist/css/6.chunk.css.map +1 -0
- package/dist/css/60.chunk.css +18 -0
- package/dist/css/60.chunk.css.map +1 -0
- package/dist/css/62.chunk.css.map +1 -0
- package/dist/css/63.chunk.css +170 -0
- package/dist/css/63.chunk.css.map +1 -0
- package/dist/css/67.chunk.css +78 -0
- package/dist/css/67.chunk.css.map +1 -0
- package/dist/css/68.chunk.css +17 -0
- package/dist/css/68.chunk.css.map +1 -0
- package/dist/css/69.chunk.css +17 -0
- package/dist/css/69.chunk.css.map +1 -0
- package/dist/css/7.chunk.css.map +1 -0
- package/dist/css/70.chunk.css +23 -0
- package/dist/css/70.chunk.css.map +1 -0
- package/dist/css/71.chunk.css +40 -0
- package/dist/css/71.chunk.css.map +1 -0
- package/dist/css/72.chunk.css +16 -0
- package/dist/css/72.chunk.css.map +1 -0
- package/dist/css/73.chunk.css +37 -0
- package/dist/css/73.chunk.css.map +1 -0
- package/dist/css/74.chunk.css +29 -0
- package/dist/css/74.chunk.css.map +1 -0
- package/dist/css/75.chunk.css +6 -0
- package/dist/css/75.chunk.css.map +1 -0
- package/dist/css/76.chunk.css +6 -0
- package/dist/css/76.chunk.css.map +1 -0
- package/dist/css/8.chunk.css.map +1 -0
- package/dist/css/library-editor-app.css.map +1 -0
- package/dist/libs/common/src/backbone/services/data-providers/SignalRDataProvider.d.ts +3 -3
- package/dist/libs/common/src/backbone/utils/UrlHelper.d.ts +0 -1
- package/dist/libs/shared/src/apps/notifications/utils/NotificationsHelper.d.ts +1 -1
- package/dist/projects/library-editor/src/apps/notifications/utils/NotificationsHelper.d.ts +1 -1
- package/dist/scripts/{0-f82360fd03.chunk.js → 0-09e1e33a5c.chunk.js} +1 -1
- package/dist/scripts/0-f604eee110.chunk.js +1 -0
- package/dist/scripts/0.chunk.js +1034 -0
- package/dist/scripts/0.chunk.js.map +1 -0
- package/dist/scripts/1-056bd8c79b.chunk.js +1 -0
- package/dist/scripts/{1-b6dedae131.chunk.js → 1-a66bb44471.chunk.js} +1 -1
- package/dist/scripts/1.chunk.js +442 -0
- package/dist/scripts/1.chunk.js.map +1 -0
- package/dist/scripts/10-028c6001e1.chunk.js +1 -0
- package/dist/scripts/{10-8307f8e248.chunk.js → 10-6c79d8c6f9.chunk.js} +1 -1
- package/dist/scripts/10.chunk.js +820 -0
- package/dist/scripts/10.chunk.js.map +1 -0
- package/dist/scripts/{11-9dbae07504.chunk.js → 11-6eef9e160e.chunk.js} +1 -1
- package/dist/scripts/11-cecf8d22f0.chunk.js +11 -0
- package/dist/scripts/11.chunk.js +4091 -0
- package/dist/scripts/11.chunk.js.map +1 -0
- package/dist/scripts/12-d3f51f4e06.chunk.js +1 -0
- package/dist/scripts/{12-43e54b0a2d.chunk.js → 12-dbffa50a92.chunk.js} +1 -1
- package/dist/scripts/12.chunk.js +555 -0
- package/dist/scripts/12.chunk.js.map +1 -0
- package/dist/scripts/{13-3d84e237b9.chunk.js → 13-37e5cfab3e.chunk.js} +1 -1
- package/dist/scripts/13-4029d31569.chunk.js +1 -0
- package/dist/scripts/13.chunk.js +373 -0
- package/dist/scripts/13.chunk.js.map +1 -0
- package/dist/scripts/14-4c94f97e4e.chunk.js +1 -0
- package/dist/scripts/{14-988bab314d.chunk.js → 14-b524fbd295.chunk.js} +1 -1
- package/dist/scripts/14.chunk.js +2386 -0
- package/dist/scripts/14.chunk.js.map +1 -0
- package/dist/scripts/{15-bedb9ff6d0.chunk.js → 15-1ff1252d1a.chunk.js} +1 -1
- package/dist/scripts/15-ec9aa4878b.chunk.js +1 -0
- package/dist/scripts/15.chunk.js +314 -0
- package/dist/scripts/15.chunk.js.map +1 -0
- package/dist/scripts/16-5bc8299e14.chunk.js +1 -0
- package/dist/scripts/{16-3a99050a93.chunk.js → 16-b27142fe98.chunk.js} +1 -1
- package/dist/scripts/16.chunk.js +1290 -0
- package/dist/scripts/16.chunk.js.map +1 -0
- package/dist/scripts/17-9fe035f9e2.chunk.js +1 -0
- package/dist/scripts/{17-66da06be62.chunk.js → 17-c3bbe50816.chunk.js} +1 -1
- package/dist/scripts/17.chunk.js +381 -0
- package/dist/scripts/17.chunk.js.map +1 -0
- package/dist/scripts/18.chunk.js +393 -0
- package/dist/scripts/18.chunk.js.map +1 -0
- package/dist/scripts/19.chunk.js +364 -0
- package/dist/scripts/19.chunk.js.map +1 -0
- package/dist/scripts/{2-5079f4b088.chunk.js → 2-2cc3988222.chunk.js} +1 -1
- package/dist/scripts/2-e6d104415e.chunk.js +1 -0
- package/dist/scripts/2.chunk.js +523 -0
- package/dist/scripts/2.chunk.js.map +1 -0
- package/dist/scripts/20-60e4eee833.chunk.js +1 -0
- package/dist/scripts/{20-d4470b4a53.chunk.js → 20-6d9086f5db.chunk.js} +1 -1
- package/dist/scripts/20.chunk.js +317 -0
- package/dist/scripts/20.chunk.js.map +1 -0
- package/dist/scripts/{21-77f6ddec3d.chunk.js → 21-2f10553302.chunk.js} +1 -1
- package/dist/scripts/21-a7fffe8852.chunk.js +1 -0
- package/dist/scripts/21.chunk.js +531 -0
- package/dist/scripts/21.chunk.js.map +1 -0
- package/dist/scripts/{22-9ef39722d1.chunk.js → 22-59ae44b448.chunk.js} +1 -1
- package/dist/scripts/22-f670791432.chunk.js +1 -0
- package/dist/scripts/22.chunk.js +354 -0
- package/dist/scripts/22.chunk.js.map +1 -0
- package/dist/scripts/{23-e8a0f60c53.chunk.js → 23-11e008ee63.chunk.js} +1 -1
- package/dist/scripts/23-4d26d6300a.chunk.js +1 -0
- package/dist/scripts/23.chunk.js +604 -0
- package/dist/scripts/23.chunk.js.map +1 -0
- package/dist/scripts/{24-f62e7ff166.chunk.js → 24-7f21e384d2.chunk.js} +1 -1
- package/dist/scripts/24-813ef82099.chunk.js +1 -0
- package/dist/scripts/24.chunk.js +318 -0
- package/dist/scripts/24.chunk.js.map +1 -0
- package/dist/scripts/25-023d08a591.chunk.js +1 -0
- package/dist/scripts/{25-f814e3921c.chunk.js → 25-f0f7fa16a4.chunk.js} +1 -1
- package/dist/scripts/25.chunk.js +365 -0
- package/dist/scripts/25.chunk.js.map +1 -0
- package/dist/scripts/26-a9fcf0d596.chunk.js +1 -0
- package/dist/scripts/{26-39f6c3ca17.chunk.js → 26-e65533bd94.chunk.js} +1 -1
- package/dist/scripts/26.chunk.js +442 -0
- package/dist/scripts/26.chunk.js.map +1 -0
- package/dist/scripts/27-84f7bbade6.chunk.js +1 -0
- package/dist/scripts/{27-1313c7d392.chunk.js → 27-9dc0f5a4df.chunk.js} +1 -1
- package/dist/scripts/27.chunk.js +3630 -0
- package/dist/scripts/27.chunk.js.map +1 -0
- package/dist/scripts/{28-b583483a6e.chunk.js → 28-26e5c371c7.chunk.js} +1 -1
- package/dist/scripts/28-cdf603f4cf.chunk.js +1 -0
- package/dist/scripts/28.chunk.js +3173 -0
- package/dist/scripts/28.chunk.js.map +1 -0
- package/dist/scripts/{29-44119e600a.chunk.js → 29-61415c2af0.chunk.js} +1 -1
- package/dist/scripts/29-8278d23f9b.chunk.js +1 -0
- package/dist/scripts/29.chunk.js +3088 -0
- package/dist/scripts/29.chunk.js.map +1 -0
- package/dist/scripts/3-1fa81c9d9b.chunk.js +1 -0
- package/dist/scripts/{3-079c0b4d3b.chunk.js → 3-5eff8c9df5.chunk.js} +1 -1
- package/dist/scripts/3.chunk.js +833 -0
- package/dist/scripts/3.chunk.js.map +1 -0
- package/dist/scripts/{30-a6a7291b5e.chunk.js → 30-6075c28972.chunk.js} +1 -1
- package/dist/scripts/30-7ab880728c.chunk.js +1 -0
- package/dist/scripts/30.chunk.js +1852 -0
- package/dist/scripts/30.chunk.js.map +1 -0
- package/dist/scripts/31-aa4cd0f45e.chunk.js +1 -0
- package/dist/scripts/31-e35ae4e153.chunk.js +1 -0
- package/dist/scripts/31.chunk.js +958 -0
- package/dist/scripts/31.chunk.js.map +1 -0
- package/dist/scripts/32-7717941f1d.chunk.js +1 -0
- package/dist/scripts/{32-0b05da2f4c.chunk.js → 32-d5a50a7592.chunk.js} +1 -1
- package/dist/scripts/32.chunk.js +1235 -0
- package/dist/scripts/32.chunk.js.map +1 -0
- package/dist/scripts/{33-061a87935f.chunk.js → 33-5ae90ed7d7.chunk.js} +1 -1
- package/dist/scripts/33-6da33143ea.chunk.js +1 -0
- package/dist/scripts/33.chunk.js +792 -0
- package/dist/scripts/33.chunk.js.map +1 -0
- package/dist/scripts/34-27e40f4d4b.chunk.js +1 -0
- package/dist/scripts/{34-4f2c861480.chunk.js → 34-50402c1835.chunk.js} +1 -1
- package/dist/scripts/34.chunk.js +990 -0
- package/dist/scripts/34.chunk.js.map +1 -0
- package/dist/scripts/35-3260300446.chunk.js +1 -0
- package/dist/scripts/{35-08ead0d078.chunk.js → 35-ec8c190357.chunk.js} +1 -1
- package/dist/scripts/35.chunk.js +518 -0
- package/dist/scripts/35.chunk.js.map +1 -0
- package/dist/scripts/{36-4db22bf8bb.chunk.js → 36-4d467bc42e.chunk.js} +1 -1
- package/dist/scripts/36-bec0c74d05.chunk.js +1 -0
- package/dist/scripts/36.chunk.js +335 -0
- package/dist/scripts/36.chunk.js.map +1 -0
- package/dist/scripts/{37-fbd149e569.chunk.js → 37-37e8965783.chunk.js} +1 -1
- package/dist/scripts/37-3916177181.chunk.js +1 -0
- package/dist/scripts/37.chunk.js +236 -0
- package/dist/scripts/37.chunk.js.map +1 -0
- package/dist/scripts/{38-57af633fa1.chunk.js → 38-3dc24b8867.chunk.js} +1 -1
- package/dist/scripts/38-89f7c22ea8.chunk.js +1 -0
- package/dist/scripts/38.chunk.js +315 -0
- package/dist/scripts/38.chunk.js.map +1 -0
- package/dist/scripts/{39-5451786b7d.chunk.js → 39-350ff66a2b.chunk.js} +1 -1
- package/dist/scripts/39-9456631219.chunk.js +1 -0
- package/dist/scripts/39.chunk.js +116 -0
- package/dist/scripts/39.chunk.js.map +1 -0
- package/dist/scripts/4-a7f6d378e0.chunk.js +1 -0
- package/dist/scripts/{4-84fa8e49e2.chunk.js → 4-b3f3c7c71c.chunk.js} +1 -1
- package/dist/scripts/4.chunk.js +335 -0
- package/dist/scripts/4.chunk.js.map +1 -0
- package/dist/scripts/{40-78639874b5.chunk.js → 40-3443f99cb2.chunk.js} +1 -1
- package/dist/scripts/40-f65196723f.chunk.js +1 -0
- package/dist/scripts/40.chunk.js +2493 -0
- package/dist/scripts/40.chunk.js.map +1 -0
- package/dist/scripts/41-70b16d99d0.chunk.js +1 -0
- package/dist/scripts/{41-2c6722e410.chunk.js → 41-b5dfd35e9e.chunk.js} +1 -1
- package/dist/scripts/41.chunk.js +1782 -0
- package/dist/scripts/41.chunk.js.map +1 -0
- package/dist/scripts/{42-9b7795d20a.chunk.js → 42-103fecb7b6.chunk.js} +1 -1
- package/dist/scripts/42-e17f214d6c.chunk.js +1 -0
- package/dist/scripts/42.chunk.js +2116 -0
- package/dist/scripts/42.chunk.js.map +1 -0
- package/dist/scripts/{43-591954817b.chunk.js → 43-57b07579f7.chunk.js} +1 -1
- package/dist/scripts/43-6826fbc7d4.chunk.js +1 -0
- package/dist/scripts/43.chunk.js +2243 -0
- package/dist/scripts/43.chunk.js.map +1 -0
- package/dist/scripts/{44-b4c134efe8.chunk.js → 44-210d64dffe.chunk.js} +1 -1
- package/dist/scripts/44-593e820fa2.chunk.js +1 -0
- package/dist/scripts/44.chunk.js +1024 -0
- package/dist/scripts/44.chunk.js.map +1 -0
- package/dist/scripts/{45-32ce8dd910.chunk.js → 45-632b07e926.chunk.js} +1 -1
- package/dist/scripts/45-8231a03833.chunk.js +1 -0
- package/dist/scripts/45.chunk.js +1065 -0
- package/dist/scripts/45.chunk.js.map +1 -0
- package/dist/scripts/46-682ca88fd9.chunk.js +1 -0
- package/dist/scripts/{46-e096df45ef.chunk.js → 46-82cce63cbf.chunk.js} +1 -1
- package/dist/scripts/46.chunk.js +656 -0
- package/dist/scripts/46.chunk.js.map +1 -0
- package/dist/scripts/{47-9e514e7536.chunk.js → 47-595b4aae87.chunk.js} +1 -1
- package/dist/scripts/47-aec7cf95e8.chunk.js +1 -0
- package/dist/scripts/47.chunk.js +735 -0
- package/dist/scripts/47.chunk.js.map +1 -0
- package/dist/scripts/48-7b09165697.chunk.js +1 -0
- package/dist/scripts/{48-9af8b50e4f.chunk.js → 48-fcf6378889.chunk.js} +1 -1
- package/dist/scripts/48.chunk.js +994 -0
- package/dist/scripts/48.chunk.js.map +1 -0
- package/dist/scripts/49-0e6ceb191f.chunk.js +1 -0
- package/dist/scripts/{49-79b28e90c9.chunk.js → 49-d8a4899eb1.chunk.js} +1 -1
- package/dist/scripts/49.chunk.js +759 -0
- package/dist/scripts/49.chunk.js.map +1 -0
- package/dist/scripts/{5-093c9ee130.chunk.js → 5-06bc197b1e.chunk.js} +1 -1
- package/dist/scripts/5-e2e64bc05f.chunk.js +1 -0
- package/dist/scripts/5.chunk.js +15 -0
- package/dist/scripts/5.chunk.js.map +1 -0
- package/dist/scripts/{50-198f89794c.chunk.js → 50-11b1a49916.chunk.js} +1 -1
- package/dist/scripts/50-fa6f6fd1dc.chunk.js +1 -0
- package/dist/scripts/50.chunk.js +528 -0
- package/dist/scripts/50.chunk.js.map +1 -0
- package/dist/scripts/51-1c9fca4604.chunk.js +1 -0
- package/dist/scripts/{51-177fe97a9b.chunk.js → 51-72a75e0265.chunk.js} +1 -1
- package/dist/scripts/51.chunk.js +932 -0
- package/dist/scripts/51.chunk.js.map +1 -0
- package/dist/scripts/{52-d8cf26c75f.chunk.js → 52-195f73bcd6.chunk.js} +1 -1
- package/dist/scripts/52-ebce0c9f12.chunk.js +1 -0
- package/dist/scripts/52.chunk.js +408 -0
- package/dist/scripts/52.chunk.js.map +1 -0
- package/dist/scripts/{53-595b1efa1a.chunk.js → 53-bb4f37ee25.chunk.js} +1 -1
- package/dist/scripts/53-c6807d4e0b.chunk.js +1 -0
- package/dist/scripts/53.chunk.js +754 -0
- package/dist/scripts/53.chunk.js.map +1 -0
- package/dist/scripts/{54-646c8458e0.chunk.js → 54-7a201d8285.chunk.js} +1 -1
- package/dist/scripts/54-e6195aa62a.chunk.js +1 -0
- package/dist/scripts/54.chunk.js +681 -0
- package/dist/scripts/54.chunk.js.map +1 -0
- package/dist/scripts/{55-5e3b70736e.chunk.js → 55-be3d7b8805.chunk.js} +1 -1
- package/dist/scripts/55-f9f9a251af.chunk.js +1 -0
- package/dist/scripts/55.chunk.js +645 -0
- package/dist/scripts/55.chunk.js.map +1 -0
- package/dist/scripts/56-20f27f96db.chunk.js +1 -0
- package/dist/scripts/{56-9a02efb9a1.chunk.js → 56-6aeece1bf1.chunk.js} +1 -1
- package/dist/scripts/56.chunk.js +346 -0
- package/dist/scripts/56.chunk.js.map +1 -0
- package/dist/scripts/{57-6f84e1bb9d.chunk.js → 57-59ee15161b.chunk.js} +1 -1
- package/dist/scripts/57-b25862dbf0.chunk.js +1 -0
- package/dist/scripts/57.chunk.js +422 -0
- package/dist/scripts/57.chunk.js.map +1 -0
- package/dist/scripts/{58-1c37240b43.chunk.js → 58-8ff58b194a.chunk.js} +1 -1
- package/dist/scripts/58-edf06f18f9.chunk.js +1 -0
- package/dist/scripts/58.chunk.js +437 -0
- package/dist/scripts/58.chunk.js.map +1 -0
- package/dist/scripts/59-241a666e49.chunk.js +1 -0
- package/dist/scripts/{59-05cbb57b32.chunk.js → 59-3d33954fcb.chunk.js} +1 -1
- package/dist/scripts/59.chunk.js +342 -0
- package/dist/scripts/59.chunk.js.map +1 -0
- package/dist/scripts/{6-a5f6258253.chunk.js → 6-a469872b10.chunk.js} +1 -1
- package/dist/scripts/6-c631df7bda.chunk.js +1 -0
- package/dist/scripts/6.chunk.js +484 -0
- package/dist/scripts/6.chunk.js.map +1 -0
- package/dist/scripts/60-ac631fa385.chunk.js +1 -0
- package/dist/scripts/{60-dd50d4179f.chunk.js → 60-f092baa91c.chunk.js} +1 -1
- package/dist/scripts/60.chunk.js +254 -0
- package/dist/scripts/60.chunk.js.map +1 -0
- package/dist/scripts/61-360e50b6cb.chunk.js +1 -0
- package/dist/scripts/{61-62ec9b3628.chunk.js → 61-bd9ef62ccd.chunk.js} +1 -1
- package/dist/scripts/61.chunk.js +409 -0
- package/dist/scripts/61.chunk.js.map +1 -0
- package/dist/scripts/62-22ee1d2a94.chunk.js +1 -0
- package/dist/scripts/{62-bfd5450b13.chunk.js → 62-f15b3bf74c.chunk.js} +1 -1
- package/dist/scripts/62.chunk.js +142 -0
- package/dist/scripts/62.chunk.js.map +1 -0
- package/dist/scripts/63-25413d744e.chunk.js +1 -0
- package/dist/scripts/{63-8521e39a2e.chunk.js → 63-92757f75e7.chunk.js} +1 -1
- package/dist/scripts/63.chunk.js +147 -0
- package/dist/scripts/63.chunk.js.map +1 -0
- package/dist/scripts/64-1b027092be.chunk.js +1 -0
- package/dist/scripts/{64-12150ef48b.chunk.js → 64-c5a1c55521.chunk.js} +1 -1
- package/dist/scripts/64.chunk.js +439 -0
- package/dist/scripts/64.chunk.js.map +1 -0
- package/dist/scripts/{65-a4fdf8777b.chunk.js → 65-6bb10ae23b.chunk.js} +1 -1
- package/dist/scripts/65-c8a9aae545.chunk.js +1 -0
- package/dist/scripts/65.chunk.js +582 -0
- package/dist/scripts/65.chunk.js.map +1 -0
- package/dist/scripts/66-20aec598ca.chunk.js +1 -0
- package/dist/scripts/{66-029947cf5c.chunk.js → 66-f047027f7d.chunk.js} +1 -1
- package/dist/scripts/66.chunk.js +442 -0
- package/dist/scripts/66.chunk.js.map +1 -0
- package/dist/scripts/{67-564ff2bd16.chunk.js → 67-2e1a011200.chunk.js} +1 -1
- package/dist/scripts/67-d8d1cb35a4.chunk.js +1 -0
- package/dist/scripts/67.chunk.js +295 -0
- package/dist/scripts/67.chunk.js.map +1 -0
- package/dist/scripts/68-869ea333d9.chunk.js +1 -0
- package/dist/scripts/{68-5656cc45fe.chunk.js → 68-d5c0ab3fc1.chunk.js} +1 -1
- package/dist/scripts/68.chunk.js +165 -0
- package/dist/scripts/68.chunk.js.map +1 -0
- package/dist/scripts/69-c4ff3e5568.chunk.js +1 -0
- package/dist/scripts/{69-4d32ddddbc.chunk.js → 69-fc8325afc9.chunk.js} +1 -1
- package/dist/scripts/69.chunk.js +248 -0
- package/dist/scripts/69.chunk.js.map +1 -0
- package/dist/scripts/7-1d94e0bb0c.chunk.js +1 -0
- package/dist/scripts/{7-b39ab430b9.chunk.js → 7-58dd909fa3.chunk.js} +1 -1
- package/dist/scripts/7.chunk.js +309 -0
- package/dist/scripts/7.chunk.js.map +1 -0
- package/dist/scripts/70-171dcf9fe1.chunk.js +1 -0
- package/dist/scripts/{70-2a427b3dd0.chunk.js → 70-ceda95013e.chunk.js} +1 -1
- package/dist/scripts/70.chunk.js +207 -0
- package/dist/scripts/70.chunk.js.map +1 -0
- package/dist/scripts/71-33e7082ca2.chunk.js +1 -0
- package/dist/scripts/{71-c43ee23686.chunk.js → 71-6e8fc95beb.chunk.js} +1 -1
- package/dist/scripts/71.chunk.js +237 -0
- package/dist/scripts/71.chunk.js.map +1 -0
- package/dist/scripts/72-2eef8b13b0.chunk.js +1 -0
- package/dist/scripts/{72-6eb3ef092e.chunk.js → 72-53fe3338bf.chunk.js} +1 -1
- package/dist/scripts/72.chunk.js +331 -0
- package/dist/scripts/72.chunk.js.map +1 -0
- package/dist/scripts/73.chunk.js +404 -0
- package/dist/scripts/73.chunk.js.map +1 -0
- package/dist/scripts/74.chunk.js +301 -0
- package/dist/scripts/74.chunk.js.map +1 -0
- package/dist/scripts/75.chunk.js +231 -0
- package/dist/scripts/75.chunk.js.map +1 -0
- package/dist/scripts/76.chunk.js +157 -0
- package/dist/scripts/76.chunk.js.map +1 -0
- package/dist/scripts/77.chunk.js +307 -0
- package/dist/scripts/77.chunk.js.map +1 -0
- package/dist/scripts/78.chunk.js +249 -0
- package/dist/scripts/78.chunk.js.map +1 -0
- package/dist/scripts/79.chunk.js +282 -0
- package/dist/scripts/79.chunk.js.map +1 -0
- package/dist/scripts/8-34ae87490f.chunk.js +1 -0
- package/dist/scripts/{8-f4f18356f7.chunk.js → 8-6974afed28.chunk.js} +1 -1
- package/dist/scripts/8.chunk.js +307 -0
- package/dist/scripts/8.chunk.js.map +1 -0
- package/dist/scripts/80.chunk.js +308 -0
- package/dist/scripts/80.chunk.js.map +1 -0
- package/dist/scripts/81.chunk.js +366 -0
- package/dist/scripts/81.chunk.js.map +1 -0
- package/dist/scripts/82.chunk.js +314 -0
- package/dist/scripts/82.chunk.js.map +1 -0
- package/dist/scripts/83.chunk.js +328 -0
- package/dist/scripts/83.chunk.js.map +1 -0
- package/dist/scripts/84.chunk.js +313 -0
- package/dist/scripts/84.chunk.js.map +1 -0
- package/dist/scripts/85.chunk.js +291 -0
- package/dist/scripts/85.chunk.js.map +1 -0
- package/dist/scripts/86.chunk.js +119 -0
- package/dist/scripts/86.chunk.js.map +1 -0
- package/dist/scripts/87.chunk.js +219 -0
- package/dist/scripts/87.chunk.js.map +1 -0
- package/dist/scripts/88.chunk.js +194 -0
- package/dist/scripts/88.chunk.js.map +1 -0
- package/dist/scripts/89.chunk.js +522 -0
- package/dist/scripts/89.chunk.js.map +1 -0
- package/dist/scripts/9-0d7004dd33.chunk.js +1 -0
- package/dist/scripts/{9-cd0bcefa7f.chunk.js → 9-9279038caa.chunk.js} +1 -1
- package/dist/scripts/9.chunk.js +222 -0
- package/dist/scripts/9.chunk.js.map +1 -0
- package/dist/scripts/90.chunk.js +337 -0
- package/dist/scripts/90.chunk.js.map +1 -0
- package/dist/scripts/91.chunk.js +131 -0
- package/dist/scripts/91.chunk.js.map +1 -0
- package/dist/scripts/92.chunk.js +266 -0
- package/dist/scripts/92.chunk.js.map +1 -0
- package/dist/scripts/bundle-06dc1f4908.min.js +8 -0
- package/dist/scripts/bundle-f4a423ce34.min.js +1 -0
- package/dist/scripts/bundle.js +66631 -0
- package/dist/scripts/bundle.js.map +1 -0
- package/dist/scripts/bundles.json +2 -2
- package/dist/scripts/polyfills-21eaf1215c.min.js +1 -0
- package/dist/scripts/polyfills-efb4d7caa3.min.js +1 -0
- package/dist/scripts/polyfills.js +14866 -0
- package/dist/scripts/polyfills.js.map +1 -0
- package/package.json +4 -4
- package/dist/scripts/31-70fe14b490.chunk.js +0 -1
- package/dist/scripts/bundle-f73bcaa857.min.js +0 -8
- package/dist/scripts/polyfills-9517d7e647.min.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[36],{1023:function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var n=r(2),a=r(244);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 o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(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 r,n=f(e);if(t){var a=f(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return l(this,r)}}function l(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 f(e){return(f=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&&s(e,t)}(l,e);var t,r,n,i=c(l);function l(){return o(this,l),i.apply(this,arguments)}return t=l,(r=[{key:"defaults",value:function(){return e={},t=a.c.Disabled,r=!0,t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e;var e,t,r}}])&&u(t.prototype,r),n&&u(t,n),l}(n.a.Model)},1026:function(e,t,r){"use strict";r.d(t,"a",(function(){return d})),r.d(t,"k",(function(){return p})),r.d(t,"g",(function(){return g})),r.d(t,"e",(function(){return h})),r.d(t,"j",(function(){return b})),r.d(t,"i",(function(){return v})),r.d(t,"c",(function(){return E})),r.d(t,"b",(function(){return w})),r.d(t,"d",(function(){return x})),r.d(t,"f",(function(){return P})),r.d(t,"h",(function(){return y}));var n=r(2),a=r(1),i=r(19),o=r(29),u=r(3),s="libraryEditor.utils",c=["tags","thumbnail","chapters","resources","subtitles","disabled","links","restrictions","categories"];function l(e,t){if(e){var r=a.reduce(e,(function(e,r,n){var i=t[n];return r||i?a.isObject(r)&&a.isObject(i)&&!a.isUndefined(r.id)&&r.id===i.id?e:a.isArray(r)?f(r,i).length?e.concat(n):e:a.isEqual(r,i)?e:e.concat(n):e}),[]);if(r.length)return a.object(a.map(r,(function(r){return a.isArray(t[r])?[r,f(e[r],t[r])]:[r,t[r]]})))}}function f(e,t){var r=[];return a.each(t,(function(t){var n=a.findWhere(e,{id:t.id});if(!a.isUndefined(n)||0!==Object.keys(t).length){var i=a.isUndefined(n)?t:l(n,t);i&&(t.id<0&&!t.value||(!n||t.id<0?r.push(t):(i.id=t.id,r.push(i))))}})),r}var d={getChanges:function(e,t){var r=l(a.omit(e.toJSON(),c),a.omit(t.toJSON(),c));if(r)return a.object(a.map(a.keys(r),(function(e){return[e,d.formatChanges(e,r[e])]})))},formatChanges:function(e,t){if(!t)return null;if(a.isObject(t)&&a.isEmpty(t))return null;switch(e){case"name":case"description":case"productionYear":case"dateBroadcast":case"fields":case"episodeNumber":return t;case"channel":case"series":case"rating":case"season":return{id:t.id};case"distributors":case"producers":case"directors":case"productionCompanies":return a.map(t,(function(e){return e.id}));case"dateModified":case"hasBroadcast":return;default:n.a.ErrorHelper.throw(new i.a("There are no formatting settings for ".concat(e)))}},updateModelState:function(e,t,r){var i=["distributors","producers","directors","productionCompanies"];for(var o in a.each(a.keys(r),(function(e){i.includes(e)&&(r[e]=t.get(e).toJSON())})),t.set(a.clone(r),{silent:!0}),e.set(t.toJSON(),{silent:!0}),r){if(!r[o]&&e.associations[o]){var u=e.get(o);(u instanceof n.a.Model||u instanceof n.a.NestedModel)&&u.clear()}}},getRemovedObjectIds:function(e,t){var r=["distributors","productionCompanies","producers","directors"],n={};return a.each(a.keys(e.toJSON()),(function(i){if(a.contains(r,i)){var o=e.get(i).map((function(e){return e.id})),u=t.get(i).map((function(e){return e.id})),s=a.filter(o,(function(e){return e&&!a.contains(u,e)}));s.length&&(n[i]=s)}})),n}},p={name:[{required:!0,msg:function(){return u.a.getPhrase(s,"videoTitleRequired")}},{maxLength:255,msg:function(){return u.a.getPhrase(s,"videoTitleExceeds")}}],description:[{required:!1},{maxLength:65535,msg:function(){return u.a.getPhrase(s,"videoDescriptionExceeds")}}],episodeNumber:function(e,t,r){return e&&e<1?u.a.getPhrase(s,"episodeNumberLessThanOne"):e&&e>2147483647?u.a.getPhrase(s,"episodeNumberExceeds"):e%1!=0?u.a.getPhrase(s,"episodeNumberNotWhole"):r.season&&r.season.get("number")>=0&&null===e?u.a.getPhrase(s,"episodeNumberNoSeason"):""},season:function(e,t,r){return r.season&&r.season.get("number")||e&&e.number||!r.episodeNumber?"":u.a.getPhrase(s,"seasonNoEpisodeNumber")}},m=o().year(),h={productionYear:function(e,t,r){return e||0===e?(e=+e,isNaN(e)?"Production year must be a number.":e<1900||e>m?u.a.getPhrase(s,"validProductionYears",{currentYear:m}):void 0):""}},g={name:[{required:!0,msg:function(){return u.a.getPhrase(s,"resourceNameRequired")}}]},b={suggestion:[{required:!0,msg:function(){return u.a.getPhrase(s,"suggestEditRequired")}},{maxLength:65535,msg:function(){return u.a.getPhrase(s,"suggestEditExceeds")}}],reason:[{required:!0,msg:function(){return u.a.getPhrase(s,"suggestEditReasonRequired")}},{maxLength:65535,msg:function(){return u.a.getPhrase(s,"suggestEditReasonExceeds")}}]},y={number:function(e,t,r){return e?+e<1?u.a.getPhrase(s,"seasonLessThanOne"):+e>255?u.a.getPhrase(s,"seasonExceeds"):+e%1!=0?u.a.getPhrase(s,"seasonNotWhole"):"":u.a.getPhrase(s,"seasonRequired")}},v={empty:function(){return u.a.getPhrase(s,"suggestEditRatingRequired")},original:function(){return u.a.getPhrase(s,"suggestEditRatingInvalid")}},P={url:[{required:!0,pattern:"url",msg:function(){return u.a.getPhrase(s,"linkUrlRequired")}},{maxLength:65535,msg:function(){return u.a.getPhrase(s,"linkUrlExceeds")}}],name:[{required:!0,msg:function(){return u.a.getPhrase(s,"linkNameRequired")}},{maxLength:255,msg:function(){return u.a.getPhrase(s,"linkNameExceeds")}}]},E={name:[{maxLength:128,msg:function(){return u.a.getPhrase(s,"fieldNameExceeds")}}],value:[{maxLength:16e3,msg:function(){return u.a.getPhrase(s,"fieldValueExceeds")}}]},w={fields:function(e){return e&&e.length?e.all((function(e){return!1!==e.isValid()}))?"":u.a.getPhrase(s,"fieldsInvalid"):""}};function x(){return[{id:-1,name:"Admin Notes",value:"",placeholder:"Notes that only admins will see"}]}},1027:function(e,t,r){"use strict";var n=r(1033),a=r(1026),i=(r(1031),r(3),r(1034)),o=(r(1036),r(1032)),u=r(81),s={getVideoDownloadUrl:function(e,t){return u.a.safeUrlConcat(u.a.makeHttps(e),"/download?token=".concat(t))}};r.d(t,"a",(function(){return n.a})),r.d(t,"e",(function(){return a.g})),r.d(t,"h",(function(){return a.j})),r.d(t,"g",(function(){return a.i})),r.d(t,"d",(function(){return a.f})),r.d(t,"f",(function(){return a.h})),r.d(t,"c",(function(){return i.a})),r.d(t,"i",(function(){return o.a})),r.d(t,"b",(function(){return s}))},1031:function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(1),a=r(49),i=r(159),o=r(3),u="libraryEditor.utils",s={name:[{required:!0,msg:function(){return o.a.getPhrase(u,"folderNameRequired")}},{maxLength:255,msg:function(){return o.a.getPhrase(u,"folderNameExceeds")}}]},c=function(e,t){return{parentId:function(r){return r?a.a.calculateDestinationFolderDepth(e,r,t)>i.a.MAX_FOLDER_DEPTH?o.a.getPhrase(u,"maxFolderDepth",{maxDepth:i.a.MAX_FOLDER_DEPTH}):"":o.a.getPhrase(u,"selectParentFolder")}}},l=function(e){var t=e.validateName,r=e.validateParent,a=e.folder,i=e.collection;return t&&r?n.extend({},s,c(a,i)):t?s:r?c(a,i):void 0}},1032:function(e,t,r){"use strict";r.d(t,"a",(function(){return f}));var n=r(15),a=r(3),i=r(185),o=r(1044),u=r(6);function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c,l="libraryEditor.utils";!function(e){e.Pdf="pdf",e.Image="image",e.PowerPoint="powerpoint",e.Document="document",e.Excel="excel",e.Zip="archive",e.File="text"}(c||(c={}));var f={mapRatingToClass:function(e){if(!e)return"";return function(e){switch(!0){case e<32:return"bg-purple";case e<48:return"bg-success";case e<80:return"bg-info";case e<96:return"bg-danger";case e<128:return"bg-pink";case e>=128:return"bg-warning";default:return""}}(e)},mapSourceToDisplayName:function(e){switch(e.get("type")){case u.h.HostedLibrary:case u.h.CustomLibrary:return e.get("name");case u.h.Exchange:return a.a.getPhrase(l,"exchange");case u.h.Workspace:return a.a.getPhrase(l,"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case u.h.HostedLibrary:case u.h.CustomLibrary:return"bg-info";case u.h.Exchange:return"bg-success";case u.h.Workspace:default:return"bg-danger"}},isInteractive:function(e){return!(!e||!e.interactives)&&!!e.interactives.length},mapTypeToSvg:function(e){var t,r=(s(t={},c.Pdf,n.b.FilePDF),s(t,c.Image,n.b.FileImg),s(t,c.PowerPoint,n.b.FilePowerpoint),s(t,c.Document,n.b.FileWord),s(t,c.Excel,n.b.FileExcel),s(t,c.Zip,n.b.FileZip),s(t,c.File,n.b.File),t)[e];return r||(r=n.b.Folder),n.a.getSvg(r)},mapTypeToClass:function(e){switch(e){case c.Pdf:return"icon-red";case c.Image:return"icon-purple";case c.Document:return"icon-blue";case c.Excel:return"icon-green";case c.PowerPoint:return"icon-orange";case c.Zip:return"icon-teal";case c.File:return"icon-gray";default:return""}},mapTypeToExtension:function(e){if(!e)return"";return{pdf:"pdf",image:"png",powerpoint:"pptx"}[e.toLowerCase()]},mapTypeToName:function(e){if(!e)return"";switch(e){case c.Pdf:return a.a.getPhrase(l,"pdf");case c.Image:return a.a.getPhrase(l,"image");case c.Document:return a.a.getPhrase(l,"document");case c.Excel:return a.a.getPhrase(l,"spreadsheet");case c.PowerPoint:return a.a.getPhrase(l,"presentation");case c.Zip:return a.a.getPhrase(l,"zipArchive");case c.File:return a.a.getPhrase(l,"file");default:return""}},translateMetadataCollectionNames:function(e){return new o.a(e.map((function(e){return Object.assign(Object.assign({},e.toJSON()),{name:f.translateMetadataName(e.get("name"))})})))},translateMetadataName:function(e){var t="suggestEdit";switch(e){case i.e.VideoTitle:t+="VideoTitle";break;case i.e.Description:t+="Description";break;case i.e.Rating:t+="Rating";break;case i.e.SeriesTitle:t+="SeriesTitle";break;case i.e.Season:t+="SeasonNumber";break;case i.e.EpisodeNumber:t+="EpisodeNumber";break;case i.e.BroadcastDate:t+="BroadcastDate";break;case i.e.Channel:t+="Channel";break;case i.e.ProductionYear:t+="ProductionYear";break;case i.e.Distributors:t+="Distributors";break;case i.e.ProductionCompanies:t+="ProductionCompanies";break;case i.e.Directors:t+="Directors";break;case i.e.Producers:t+="Producers";break;case i.e.Other:t+="Other"}return a.a.getPhrase(l,t)}}},1033:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(1),a=r(13),i=r(3),o="libraryEditor.utils",u={isValidChapterTime:function(e,t,r,i){if(i){if(!n.isNumber(t))return s.StartTime.Invalid();if(t<0)return s.StartTime.Invalid();if(t>a.w.millisecondsToSeconds(r))return s.StartTime.Exceeds();if(i.some((function(r){return!(r.id&&r.id===e.id||r.cid===e.cid)&&r.get("startTime")===t})))return s.StartTime.Exists()}},isValidChapterName:function(e,t,r){return t?t.length>255?s.Name.MaxLength():r.some((function(r){return!(r.id&&r.id===e.id||r.cid===e.cid)&&r.get("name").trim()===t.trim()}))?s.Name.Exists():n.isEmpty(t.trim())?s.Name.Invalid():void 0:s.Name.Invalid()},mapPhysicalChapters:function(e){var t=0;return n.map(e,(function(e,r){var n={name:e.title,startTime:t,index:r,isPhysicalChapter:!0};return t+=e.duration,n}))}},s={Name:{Invalid:function(){return i.a.getPhrase(o,"chapterNameInvalid")},Exists:function(){return i.a.getPhrase(o,"chapterNameExists")},MaxLength:function(){return i.a.getPhrase(o,"chapterNameExceeds")}},StartTime:{Invalid:function(){return i.a.getPhrase(o,"chapterStartTimeInvalid")},Exists:function(){return i.a.getPhrase(o,"chapterStartTimeExists")},Exceeds:function(){return i.a.getPhrase(o,"chapterStartTimeExceeds")}}}},1034:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(3),a="libraryEditor.utils",i={name:[{required:!0,msg:function(){return n.a.getPhrase(a,"libraryNameRequired")}},{maxLength:255,msg:function(){return n.a.getPhrase(a,"libraryNameExceeds")}}]}},1036:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(29),a=r(3),i=r(1026),o="libraryEditor.utils",u=(n().year(),{name:[{required:!0,msg:function(){return a.a.getPhrase(o,"videoTitleRequired")}}],folderId:[{required:!0,msg:function(){return a.a.getPhrase(o,"uploadFolderRequired")}}],libraryId:[{required:!0,msg:"Please select an upload library"}],episodeNumber:function(e,t,r){return e&&e<1?"Videos cannot have an episode number less than 1":e&&e>255?"Videos cannot have an episode number greater than 255":e&&e%1!=0?"Episode numbers can only be whole numbers":r.season&&r.season.get("number")>=0&&null===e?"Videos with a season must also have an episode number":""},season:function(e,t,r){return r.season&&r.season.get("number")||e&&e.number||!r.episodeNumber?"":"Videos with an episode number must also have a season"},productionYear:function(){return i.e.productionYear.apply(null,arguments)}})},1044:function(e,t,r){"use strict";function n(e){return(n="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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=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 r,n=s(e);if(t){var a=s(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return u(this,r)}}function u(e,t){return!t||"object"!==n(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)}r.d(t,"a",(function(){return c}));var c=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&&i(e,t)}(r,e);var t=o(r);function r(){return a(this,r),t.apply(this,arguments)}return r}(r(2).a.Collection)},1281:function(e,t,r){var n=r(10);e.exports=(n.default||n).template({1:function(e,t,r,n,a){var i;e.propertyIsEnumerable;return(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},3:function(e,t,r,n,a){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},o=e.hooks.helperMissing,u=e.escapeExpression;return'<form>\r\n <div class="form-group">\r\n <label for="name" class="control-label">'+u((r.lang||t&&t.lang||o).call(i,"libraryName",{name:"lang",hash:{},data:a}))+'</label>\r\n <input name="name" id="name" type="text" class="form-control" placeholder="'+u((r.lang||t&&t.lang||o).call(i,"secondaryLibrary",{name:"lang",hash:{},data:a}))+'" autocomplete="off" autofocus/>\r\n <div class="form-feedback"></div>\r\n </div>\r\n</form>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,r,n,a){var i;e.propertyIsEnumerable;return null!=(i=r.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,a,0),inverse:e.program(3,a,0),data:a}))?i:""},useData:!0})},1415:function(e,t,r){"use strict";r.r(t),r.d(t,"NewLibraryView",(function(){return R}));var n=r(7),a=r(2),i=r(5),o=r(30),u=r(3),s=r(281),c=r(135),l=r(0),f=r(244),d=r(6),p=r(129),m=r(1023),h=r(13),g=r(1027),b=r(137),y=r(191),v=r(1281),P=r.n(v);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 w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function N(e,t){return(N=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(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 r,n=O(e);if(t){var a=O(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return k(this,r)}}function k(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 O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var R=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&&N(e,t)}(k,e);var t,r,v,E=S(k);function k(){return w(this,k),E.apply(this,arguments)}return t=k,(r=[{key:"initialize",value:function(){this.model=o.a.get("new:library",null,{ctor:p.a}),this.bindListeners(),this.settingsDataService=i.a.getInstance(l.g.Settings,this),this.libraryDataService=i.a.getInstance(l.g.Library,this)}},{key:"bindListeners",value:function(){this.listenTo(l.e.SEARCH,"".concat(l.f.SETTINGS,":sync"),this.render)}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.model.validate(),this.model.isValid()&&(n.Radio.channel(this.channelName).trigger(f.b.ShowSpinner),this.createLibrary())}},{key:"createLibrary",value:function(){this.libraryDataService.createLibrary(this.currentUser.get("customerId"),this.model,(function(e){o.a.clear("new:library"),a.a.AppLinkHelper.trigger({application:l.b.LIBRARY_EDITOR,action:l.a.LibraryEditor.LIBRARY,args:[e.id]})}))}},{key:"onBeforeRender",value:function(){this.maxCustomLibraries=this.settingsDataService.getSetting(this.currentUser.get("customerId"),d.m.MaxCustomLibraries),this.libraries.length>=this.maxCustomLibraries.get("value")?a.a.ErrorHelper.throw(new y.j(this.libraries.length,this.maxCustomLibraries.get("value"))):this.maxCustomLibraries&&this.spinnerModel.set(f.c.Disabled,!1)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.maxCustomLibraries,spinnerEl:h.q.getSpinner({size:h.r.Large,extraClasses:"mx-auto"})}}},{key:"name",get:function(){return"NewLibraryView"}},{key:"title",get:function(){return u.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.newLibrary"}},{key:"template",get:function(){return P.a}},{key:"channelName",get:function(){return h.k.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:s.a,modelValidation:g.c},{behaviorClass:s.g},{behaviorClass:s.f,title:u.a.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new m.a,channelName:this.channelName,buttonText:u.a.getPhrase(this.lang,"save"),onClick:function(t){return e.onSubmit(t)}}}]}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}}}}},{key:"requiredResources",get:function(){return{currentUser:c.b.currentUser,libraries:b.b.libraries}}}])&&x(t.prototype,r),v&&x(t,v),k}(a.a.View)}}]);
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[36],{1019:function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var n=r(2),a=r(244);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 o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(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 r,n=f(e);if(t){var a=f(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return l(this,r)}}function l(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 f(e){return(f=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&&s(e,t)}(l,e);var t,r,n,i=c(l);function l(){return o(this,l),i.apply(this,arguments)}return t=l,(r=[{key:"defaults",value:function(){return e={},t=a.c.Disabled,r=!0,t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e;var e,t,r}}])&&u(t.prototype,r),n&&u(t,n),l}(n.a.Model)},1022:function(e,t,r){"use strict";r.d(t,"a",(function(){return d})),r.d(t,"k",(function(){return p})),r.d(t,"g",(function(){return g})),r.d(t,"e",(function(){return h})),r.d(t,"j",(function(){return b})),r.d(t,"i",(function(){return v})),r.d(t,"c",(function(){return E})),r.d(t,"b",(function(){return w})),r.d(t,"d",(function(){return x})),r.d(t,"f",(function(){return P})),r.d(t,"h",(function(){return y}));var n=r(2),a=r(1),i=r(19),o=r(29),u=r(3),s="libraryEditor.utils",c=["tags","thumbnail","chapters","resources","subtitles","disabled","links","restrictions","categories"];function l(e,t){if(e){var r=a.reduce(e,(function(e,r,n){var i=t[n];return r||i?a.isObject(r)&&a.isObject(i)&&!a.isUndefined(r.id)&&r.id===i.id?e:a.isArray(r)?f(r,i).length?e.concat(n):e:a.isEqual(r,i)?e:e.concat(n):e}),[]);if(r.length)return a.object(a.map(r,(function(r){return a.isArray(t[r])?[r,f(e[r],t[r])]:[r,t[r]]})))}}function f(e,t){var r=[];return a.each(t,(function(t){var n=a.findWhere(e,{id:t.id});if(!a.isUndefined(n)||0!==Object.keys(t).length){var i=a.isUndefined(n)?t:l(n,t);i&&(t.id<0&&!t.value||(!n||t.id<0?r.push(t):(i.id=t.id,r.push(i))))}})),r}var d={getChanges:function(e,t){var r=l(a.omit(e.toJSON(),c),a.omit(t.toJSON(),c));if(r)return a.object(a.map(a.keys(r),(function(e){return[e,d.formatChanges(e,r[e])]})))},formatChanges:function(e,t){if(!t)return null;if(a.isObject(t)&&a.isEmpty(t))return null;switch(e){case"name":case"description":case"productionYear":case"dateBroadcast":case"fields":case"episodeNumber":return t;case"channel":case"series":case"rating":case"season":return{id:t.id};case"distributors":case"producers":case"directors":case"productionCompanies":return a.map(t,(function(e){return e.id}));case"dateModified":case"hasBroadcast":return;default:n.a.ErrorHelper.throw(new i.a("There are no formatting settings for ".concat(e)))}},updateModelState:function(e,t,r){var i=["distributors","producers","directors","productionCompanies"];for(var o in a.each(a.keys(r),(function(e){i.includes(e)&&(r[e]=t.get(e).toJSON())})),t.set(a.clone(r),{silent:!0}),e.set(t.toJSON(),{silent:!0}),r){if(!r[o]&&e.associations[o]){var u=e.get(o);(u instanceof n.a.Model||u instanceof n.a.NestedModel)&&u.clear()}}},getRemovedObjectIds:function(e,t){var r=["distributors","productionCompanies","producers","directors"],n={};return a.each(a.keys(e.toJSON()),(function(i){if(a.contains(r,i)){var o=e.get(i).map((function(e){return e.id})),u=t.get(i).map((function(e){return e.id})),s=a.filter(o,(function(e){return e&&!a.contains(u,e)}));s.length&&(n[i]=s)}})),n}},p={name:[{required:!0,msg:function(){return u.a.getPhrase(s,"videoTitleRequired")}},{maxLength:255,msg:function(){return u.a.getPhrase(s,"videoTitleExceeds")}}],description:[{required:!1},{maxLength:65535,msg:function(){return u.a.getPhrase(s,"videoDescriptionExceeds")}}],episodeNumber:function(e,t,r){return e&&e<1?u.a.getPhrase(s,"episodeNumberLessThanOne"):e&&e>2147483647?u.a.getPhrase(s,"episodeNumberExceeds"):e%1!=0?u.a.getPhrase(s,"episodeNumberNotWhole"):r.season&&r.season.get("number")>=0&&null===e?u.a.getPhrase(s,"episodeNumberNoSeason"):""},season:function(e,t,r){return r.season&&r.season.get("number")||e&&e.number||!r.episodeNumber?"":u.a.getPhrase(s,"seasonNoEpisodeNumber")}},m=o().year(),h={productionYear:function(e,t,r){return e||0===e?(e=+e,isNaN(e)?"Production year must be a number.":e<1900||e>m?u.a.getPhrase(s,"validProductionYears",{currentYear:m}):void 0):""}},g={name:[{required:!0,msg:function(){return u.a.getPhrase(s,"resourceNameRequired")}}]},b={suggestion:[{required:!0,msg:function(){return u.a.getPhrase(s,"suggestEditRequired")}},{maxLength:65535,msg:function(){return u.a.getPhrase(s,"suggestEditExceeds")}}],reason:[{required:!0,msg:function(){return u.a.getPhrase(s,"suggestEditReasonRequired")}},{maxLength:65535,msg:function(){return u.a.getPhrase(s,"suggestEditReasonExceeds")}}]},y={number:function(e,t,r){return e?+e<1?u.a.getPhrase(s,"seasonLessThanOne"):+e>255?u.a.getPhrase(s,"seasonExceeds"):+e%1!=0?u.a.getPhrase(s,"seasonNotWhole"):"":u.a.getPhrase(s,"seasonRequired")}},v={empty:function(){return u.a.getPhrase(s,"suggestEditRatingRequired")},original:function(){return u.a.getPhrase(s,"suggestEditRatingInvalid")}},P={url:[{required:!0,pattern:"url",msg:function(){return u.a.getPhrase(s,"linkUrlRequired")}},{maxLength:65535,msg:function(){return u.a.getPhrase(s,"linkUrlExceeds")}}],name:[{required:!0,msg:function(){return u.a.getPhrase(s,"linkNameRequired")}},{maxLength:255,msg:function(){return u.a.getPhrase(s,"linkNameExceeds")}}]},E={name:[{maxLength:128,msg:function(){return u.a.getPhrase(s,"fieldNameExceeds")}}],value:[{maxLength:16e3,msg:function(){return u.a.getPhrase(s,"fieldValueExceeds")}}]},w={fields:function(e){return e&&e.length?e.all((function(e){return!1!==e.isValid()}))?"":u.a.getPhrase(s,"fieldsInvalid"):""}};function x(){return[{id:-1,name:"Admin Notes",value:"",placeholder:"Notes that only admins will see"}]}},1023:function(e,t,r){"use strict";var n=r(1029),a=r(1022),i=(r(1027),r(3),r(1030)),o=(r(1032),r(1028)),u=r(75),s={getVideoDownloadUrl:function(e,t){return u.a.safeUrlConcat(u.a.makeHttps(e),"/download?token=".concat(t))}};r.d(t,"a",(function(){return n.a})),r.d(t,"e",(function(){return a.g})),r.d(t,"h",(function(){return a.j})),r.d(t,"g",(function(){return a.i})),r.d(t,"d",(function(){return a.f})),r.d(t,"f",(function(){return a.h})),r.d(t,"c",(function(){return i.a})),r.d(t,"i",(function(){return o.a})),r.d(t,"b",(function(){return s}))},1027:function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(1),a=r(49),i=r(159),o=r(3),u="libraryEditor.utils",s={name:[{required:!0,msg:function(){return o.a.getPhrase(u,"folderNameRequired")}},{maxLength:255,msg:function(){return o.a.getPhrase(u,"folderNameExceeds")}}]},c=function(e,t){return{parentId:function(r){return r?a.a.calculateDestinationFolderDepth(e,r,t)>i.a.MAX_FOLDER_DEPTH?o.a.getPhrase(u,"maxFolderDepth",{maxDepth:i.a.MAX_FOLDER_DEPTH}):"":o.a.getPhrase(u,"selectParentFolder")}}},l=function(e){var t=e.validateName,r=e.validateParent,a=e.folder,i=e.collection;return t&&r?n.extend({},s,c(a,i)):t?s:r?c(a,i):void 0}},1028:function(e,t,r){"use strict";r.d(t,"a",(function(){return f}));var n=r(15),a=r(3),i=r(185),o=r(1040),u=r(6);function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c,l="libraryEditor.utils";!function(e){e.Pdf="pdf",e.Image="image",e.PowerPoint="powerpoint",e.Document="document",e.Excel="excel",e.Zip="archive",e.File="text"}(c||(c={}));var f={mapRatingToClass:function(e){if(!e)return"";return function(e){switch(!0){case e<32:return"bg-purple";case e<48:return"bg-success";case e<80:return"bg-info";case e<96:return"bg-danger";case e<128:return"bg-pink";case e>=128:return"bg-warning";default:return""}}(e)},mapSourceToDisplayName:function(e){switch(e.get("type")){case u.h.HostedLibrary:case u.h.CustomLibrary:return e.get("name");case u.h.Exchange:return a.a.getPhrase(l,"exchange");case u.h.Workspace:return a.a.getPhrase(l,"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case u.h.HostedLibrary:case u.h.CustomLibrary:return"bg-info";case u.h.Exchange:return"bg-success";case u.h.Workspace:default:return"bg-danger"}},isInteractive:function(e){return!(!e||!e.interactives)&&!!e.interactives.length},mapTypeToSvg:function(e){var t,r=(s(t={},c.Pdf,n.b.FilePDF),s(t,c.Image,n.b.FileImg),s(t,c.PowerPoint,n.b.FilePowerpoint),s(t,c.Document,n.b.FileWord),s(t,c.Excel,n.b.FileExcel),s(t,c.Zip,n.b.FileZip),s(t,c.File,n.b.File),t)[e];return r||(r=n.b.Folder),n.a.getSvg(r)},mapTypeToClass:function(e){switch(e){case c.Pdf:return"icon-red";case c.Image:return"icon-purple";case c.Document:return"icon-blue";case c.Excel:return"icon-green";case c.PowerPoint:return"icon-orange";case c.Zip:return"icon-teal";case c.File:return"icon-gray";default:return""}},mapTypeToExtension:function(e){if(!e)return"";return{pdf:"pdf",image:"png",powerpoint:"pptx"}[e.toLowerCase()]},mapTypeToName:function(e){if(!e)return"";switch(e){case c.Pdf:return a.a.getPhrase(l,"pdf");case c.Image:return a.a.getPhrase(l,"image");case c.Document:return a.a.getPhrase(l,"document");case c.Excel:return a.a.getPhrase(l,"spreadsheet");case c.PowerPoint:return a.a.getPhrase(l,"presentation");case c.Zip:return a.a.getPhrase(l,"zipArchive");case c.File:return a.a.getPhrase(l,"file");default:return""}},translateMetadataCollectionNames:function(e){return new o.a(e.map((function(e){return Object.assign(Object.assign({},e.toJSON()),{name:f.translateMetadataName(e.get("name"))})})))},translateMetadataName:function(e){var t="suggestEdit";switch(e){case i.e.VideoTitle:t+="VideoTitle";break;case i.e.Description:t+="Description";break;case i.e.Rating:t+="Rating";break;case i.e.SeriesTitle:t+="SeriesTitle";break;case i.e.Season:t+="SeasonNumber";break;case i.e.EpisodeNumber:t+="EpisodeNumber";break;case i.e.BroadcastDate:t+="BroadcastDate";break;case i.e.Channel:t+="Channel";break;case i.e.ProductionYear:t+="ProductionYear";break;case i.e.Distributors:t+="Distributors";break;case i.e.ProductionCompanies:t+="ProductionCompanies";break;case i.e.Directors:t+="Directors";break;case i.e.Producers:t+="Producers";break;case i.e.Other:t+="Other"}return a.a.getPhrase(l,t)}}},1029:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(1),a=r(13),i=r(3),o="libraryEditor.utils",u={isValidChapterTime:function(e,t,r,i){if(i){if(!n.isNumber(t))return s.StartTime.Invalid();if(t<0)return s.StartTime.Invalid();if(t>a.w.millisecondsToSeconds(r))return s.StartTime.Exceeds();if(i.some((function(r){return!(r.id&&r.id===e.id||r.cid===e.cid)&&r.get("startTime")===t})))return s.StartTime.Exists()}},isValidChapterName:function(e,t,r){return t?t.length>255?s.Name.MaxLength():r.some((function(r){return!(r.id&&r.id===e.id||r.cid===e.cid)&&r.get("name").trim()===t.trim()}))?s.Name.Exists():n.isEmpty(t.trim())?s.Name.Invalid():void 0:s.Name.Invalid()},mapPhysicalChapters:function(e){var t=0;return n.map(e,(function(e,r){var n={name:e.title,startTime:t,index:r,isPhysicalChapter:!0};return t+=e.duration,n}))}},s={Name:{Invalid:function(){return i.a.getPhrase(o,"chapterNameInvalid")},Exists:function(){return i.a.getPhrase(o,"chapterNameExists")},MaxLength:function(){return i.a.getPhrase(o,"chapterNameExceeds")}},StartTime:{Invalid:function(){return i.a.getPhrase(o,"chapterStartTimeInvalid")},Exists:function(){return i.a.getPhrase(o,"chapterStartTimeExists")},Exceeds:function(){return i.a.getPhrase(o,"chapterStartTimeExceeds")}}}},1030:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(3),a="libraryEditor.utils",i={name:[{required:!0,msg:function(){return n.a.getPhrase(a,"libraryNameRequired")}},{maxLength:255,msg:function(){return n.a.getPhrase(a,"libraryNameExceeds")}}]}},1032:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(29),a=r(3),i=r(1022),o="libraryEditor.utils",u=(n().year(),{name:[{required:!0,msg:function(){return a.a.getPhrase(o,"videoTitleRequired")}}],folderId:[{required:!0,msg:function(){return a.a.getPhrase(o,"uploadFolderRequired")}}],libraryId:[{required:!0,msg:"Please select an upload library"}],episodeNumber:function(e,t,r){return e&&e<1?"Videos cannot have an episode number less than 1":e&&e>255?"Videos cannot have an episode number greater than 255":e&&e%1!=0?"Episode numbers can only be whole numbers":r.season&&r.season.get("number")>=0&&null===e?"Videos with a season must also have an episode number":""},season:function(e,t,r){return r.season&&r.season.get("number")||e&&e.number||!r.episodeNumber?"":"Videos with an episode number must also have a season"},productionYear:function(){return i.e.productionYear.apply(null,arguments)}})},1040:function(e,t,r){"use strict";function n(e){return(n="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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=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 r,n=s(e);if(t){var a=s(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return u(this,r)}}function u(e,t){return!t||"object"!==n(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)}r.d(t,"a",(function(){return c}));var c=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&&i(e,t)}(r,e);var t=o(r);function r(){return a(this,r),t.apply(this,arguments)}return r}(r(2).a.Collection)},1277:function(e,t,r){var n=r(10);e.exports=(n.default||n).template({1:function(e,t,r,n,a){var i;e.propertyIsEnumerable;return(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},3:function(e,t,r,n,a){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},o=e.hooks.helperMissing,u=e.escapeExpression;return'<form>\r\n <div class="form-group">\r\n <label for="name" class="control-label">'+u((r.lang||t&&t.lang||o).call(i,"libraryName",{name:"lang",hash:{},data:a}))+'</label>\r\n <input name="name" id="name" type="text" class="form-control" placeholder="'+u((r.lang||t&&t.lang||o).call(i,"secondaryLibrary",{name:"lang",hash:{},data:a}))+'" autocomplete="off" autofocus/>\r\n <div class="form-feedback"></div>\r\n </div>\r\n</form>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,r,n,a){var i;e.propertyIsEnumerable;return null!=(i=r.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,a,0),inverse:e.program(3,a,0),data:a}))?i:""},useData:!0})},1411:function(e,t,r){"use strict";r.r(t),r.d(t,"NewLibraryView",(function(){return R}));var n=r(7),a=r(2),i=r(5),o=r(30),u=r(3),s=r(281),c=r(135),l=r(0),f=r(244),d=r(6),p=r(129),m=r(1019),h=r(13),g=r(1023),b=r(137),y=r(191),v=r(1277),P=r.n(v);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 w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function N(e,t){return(N=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(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 r,n=O(e);if(t){var a=O(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return k(this,r)}}function k(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 O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var R=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&&N(e,t)}(k,e);var t,r,v,E=S(k);function k(){return w(this,k),E.apply(this,arguments)}return t=k,(r=[{key:"initialize",value:function(){this.model=o.a.get("new:library",null,{ctor:p.a}),this.bindListeners(),this.settingsDataService=i.a.getInstance(l.g.Settings,this),this.libraryDataService=i.a.getInstance(l.g.Library,this)}},{key:"bindListeners",value:function(){this.listenTo(l.e.SEARCH,"".concat(l.f.SETTINGS,":sync"),this.render)}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.model.validate(),this.model.isValid()&&(n.Radio.channel(this.channelName).trigger(f.b.ShowSpinner),this.createLibrary())}},{key:"createLibrary",value:function(){this.libraryDataService.createLibrary(this.currentUser.get("customerId"),this.model,(function(e){o.a.clear("new:library"),a.a.AppLinkHelper.trigger({application:l.b.LIBRARY_EDITOR,action:l.a.LibraryEditor.LIBRARY,args:[e.id]})}))}},{key:"onBeforeRender",value:function(){this.maxCustomLibraries=this.settingsDataService.getSetting(this.currentUser.get("customerId"),d.m.MaxCustomLibraries),this.libraries.length>=this.maxCustomLibraries.get("value")?a.a.ErrorHelper.throw(new y.j(this.libraries.length,this.maxCustomLibraries.get("value"))):this.maxCustomLibraries&&this.spinnerModel.set(f.c.Disabled,!1)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.maxCustomLibraries,spinnerEl:h.q.getSpinner({size:h.r.Large,extraClasses:"mx-auto"})}}},{key:"name",get:function(){return"NewLibraryView"}},{key:"title",get:function(){return u.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.newLibrary"}},{key:"template",get:function(){return P.a}},{key:"channelName",get:function(){return h.k.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:s.a,modelValidation:g.c},{behaviorClass:s.g},{behaviorClass:s.f,title:u.a.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new m.a,channelName:this.channelName,buttonText:u.a.getPhrase(this.lang,"save"),onClick:function(t){return e.onSubmit(t)}}}]}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}}}}},{key:"requiredResources",get:function(){return{currentUser:c.b.currentUser,libraries:b.b.libraries}}}])&&x(t.prototype,r),v&&x(t,v),k}(a.a.View)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[36],{1011:function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var n=r(2),a=r(238);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 o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(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 r,n=f(e);if(t){var a=f(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return l(this,r)}}function l(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 f(e){return(f=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&&s(e,t)}(l,e);var t,r,n,i=c(l);function l(){return o(this,l),i.apply(this,arguments)}return t=l,(r=[{key:"defaults",value:function(){return e={},t=a.c.Disabled,r=!0,t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e;var e,t,r}}])&&u(t.prototype,r),n&&u(t,n),l}(n.a.Model)},1014:function(e,t,r){"use strict";r.d(t,"a",(function(){return d})),r.d(t,"k",(function(){return p})),r.d(t,"g",(function(){return g})),r.d(t,"e",(function(){return h})),r.d(t,"j",(function(){return b})),r.d(t,"i",(function(){return v})),r.d(t,"c",(function(){return E})),r.d(t,"b",(function(){return w})),r.d(t,"d",(function(){return x})),r.d(t,"f",(function(){return P})),r.d(t,"h",(function(){return y}));var n=r(2),a=r(1),i=r(18),o=r(27),u=r(3),s="libraryEditor.utils",c=["tags","thumbnail","chapters","resources","subtitles","disabled","links","restrictions","categories"];function l(e,t){if(e){var r=a.reduce(e,(function(e,r,n){var i=t[n];return r||i?a.isObject(r)&&a.isObject(i)&&!a.isUndefined(r.id)&&r.id===i.id?e:a.isArray(r)?f(r,i).length?e.concat(n):e:a.isEqual(r,i)?e:e.concat(n):e}),[]);if(r.length)return a.object(a.map(r,(function(r){return a.isArray(t[r])?[r,f(e[r],t[r])]:[r,t[r]]})))}}function f(e,t){var r=[];return a.each(t,(function(t){var n=a.findWhere(e,{id:t.id});if(!a.isUndefined(n)||0!==Object.keys(t).length){var i=a.isUndefined(n)?t:l(n,t);i&&(t.id<0&&!t.value||(!n||t.id<0?r.push(t):(i.id=t.id,r.push(i))))}})),r}var d={getChanges:function(e,t){var r=l(a.omit(e.toJSON(),c),a.omit(t.toJSON(),c));if(r)return a.object(a.map(a.keys(r),(function(e){return[e,d.formatChanges(e,r[e])]})))},formatChanges:function(e,t){if(!t)return null;if(a.isObject(t)&&a.isEmpty(t))return null;switch(e){case"name":case"description":case"productionYear":case"dateBroadcast":case"fields":case"episodeNumber":return t;case"channel":case"series":case"rating":case"season":return{id:t.id};case"distributors":case"producers":case"directors":case"productionCompanies":return a.map(t,(function(e){return e.id}));case"dateModified":case"hasBroadcast":return;default:n.a.ErrorHelper.throw(new i.a("There are no formatting settings for ".concat(e)))}},updateModelState:function(e,t,r){var i=["distributors","producers","directors","productionCompanies"];for(var o in a.each(a.keys(r),(function(e){i.includes(e)&&(r[e]=t.get(e).toJSON())})),t.set(a.clone(r),{silent:!0}),e.set(t.toJSON(),{silent:!0}),r){if(!r[o]&&e.associations[o]){var u=e.get(o);(u instanceof n.a.Model||u instanceof n.a.NestedModel)&&u.clear()}}},getRemovedObjectIds:function(e,t){var r=["distributors","productionCompanies","producers","directors"],n={};return a.each(a.keys(e.toJSON()),(function(i){if(a.contains(r,i)){var o=e.get(i).map((function(e){return e.id})),u=t.get(i).map((function(e){return e.id})),s=a.filter(o,(function(e){return e&&!a.contains(u,e)}));s.length&&(n[i]=s)}})),n}},p={name:[{required:!0,msg:function(){return u.a.getPhrase(s,"videoTitleRequired")}},{maxLength:255,msg:function(){return u.a.getPhrase(s,"videoTitleExceeds")}}],description:[{required:!1},{maxLength:65535,msg:function(){return u.a.getPhrase(s,"videoDescriptionExceeds")}}],episodeNumber:function(e,t,r){return e&&e<1?u.a.getPhrase(s,"episodeNumberLessThanOne"):e&&e>2147483647?u.a.getPhrase(s,"episodeNumberExceeds"):e%1!=0?u.a.getPhrase(s,"episodeNumberNotWhole"):r.season&&r.season.get("number")>=0&&null===e?u.a.getPhrase(s,"episodeNumberNoSeason"):""},season:function(e,t,r){return r.season&&r.season.get("number")||e&&e.number||!r.episodeNumber?"":u.a.getPhrase(s,"seasonNoEpisodeNumber")}},m=o().year(),h={productionYear:function(e,t,r){return e||0===e?(e=+e,isNaN(e)?"Production year must be a number.":e<1900||e>m?u.a.getPhrase(s,"validProductionYears",{currentYear:m}):void 0):""}},g={name:[{required:!0,msg:function(){return u.a.getPhrase(s,"resourceNameRequired")}}]},b={suggestion:[{required:!0,msg:function(){return u.a.getPhrase(s,"suggestEditRequired")}},{maxLength:65535,msg:function(){return u.a.getPhrase(s,"suggestEditExceeds")}}],reason:[{required:!0,msg:function(){return u.a.getPhrase(s,"suggestEditReasonRequired")}},{maxLength:65535,msg:function(){return u.a.getPhrase(s,"suggestEditReasonExceeds")}}]},y={number:function(e,t,r){return e?+e<1?u.a.getPhrase(s,"seasonLessThanOne"):+e>255?u.a.getPhrase(s,"seasonExceeds"):+e%1!=0?u.a.getPhrase(s,"seasonNotWhole"):"":u.a.getPhrase(s,"seasonRequired")}},v={empty:function(){return u.a.getPhrase(s,"suggestEditRatingRequired")},original:function(){return u.a.getPhrase(s,"suggestEditRatingInvalid")}},P={url:[{required:!0,pattern:"url",msg:function(){return u.a.getPhrase(s,"linkUrlRequired")}},{maxLength:65535,msg:function(){return u.a.getPhrase(s,"linkUrlExceeds")}}],name:[{required:!0,msg:function(){return u.a.getPhrase(s,"linkNameRequired")}},{maxLength:255,msg:function(){return u.a.getPhrase(s,"linkNameExceeds")}}]},E={name:[{maxLength:128,msg:function(){return u.a.getPhrase(s,"fieldNameExceeds")}}],value:[{maxLength:16e3,msg:function(){return u.a.getPhrase(s,"fieldValueExceeds")}}]},w={fields:function(e){return e&&e.length?e.all((function(e){return!1!==e.isValid()}))?"":u.a.getPhrase(s,"fieldsInvalid"):""}};function x(){return[{id:-1,name:"Admin Notes",value:"",placeholder:"Notes that only admins will see"}]}},1015:function(e,t,r){"use strict";var n=r(1021),a=r(1014),i=(r(1019),r(3),r(1022)),o=(r(1024),r(1020)),u=r(89),s={getVideoDownloadUrl:function(e,t){return u.a.safeUrlConcat(u.a.makeHttps(e),"/download?token=".concat(t))}};r.d(t,"a",(function(){return n.a})),r.d(t,"e",(function(){return a.g})),r.d(t,"h",(function(){return a.j})),r.d(t,"g",(function(){return a.i})),r.d(t,"d",(function(){return a.f})),r.d(t,"f",(function(){return a.h})),r.d(t,"c",(function(){return i.a})),r.d(t,"i",(function(){return o.a})),r.d(t,"b",(function(){return s}))},1019:function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(1),a=r(47),i=r(153),o=r(3),u="libraryEditor.utils",s={name:[{required:!0,msg:function(){return o.a.getPhrase(u,"folderNameRequired")}},{maxLength:255,msg:function(){return o.a.getPhrase(u,"folderNameExceeds")}}]},c=function(e,t){return{parentId:function(r){return r?a.a.calculateDestinationFolderDepth(e,r,t)>i.a.MAX_FOLDER_DEPTH?o.a.getPhrase(u,"maxFolderDepth",{maxDepth:i.a.MAX_FOLDER_DEPTH}):"":o.a.getPhrase(u,"selectParentFolder")}}},l=function(e){var t=e.validateName,r=e.validateParent,a=e.folder,i=e.collection;return t&&r?n.extend({},s,c(a,i)):t?s:r?c(a,i):void 0}},1020:function(e,t,r){"use strict";r.d(t,"a",(function(){return f}));var n=r(14),a=r(3),i=r(179),o=r(1032),u=r(6);function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c,l="libraryEditor.utils";!function(e){e.Pdf="pdf",e.Image="image",e.PowerPoint="powerpoint",e.Document="document",e.Excel="excel",e.Zip="archive",e.File="text"}(c||(c={}));var f={mapRatingToClass:function(e){if(!e)return"";return function(e){switch(!0){case e<32:return"bg-purple";case e<48:return"bg-success";case e<80:return"bg-info";case e<96:return"bg-danger";case e<128:return"bg-pink";case e>=128:return"bg-warning";default:return""}}(e)},mapSourceToDisplayName:function(e){switch(e.get("type")){case u.h.HostedLibrary:case u.h.CustomLibrary:return e.get("name");case u.h.Exchange:return a.a.getPhrase(l,"exchange");case u.h.Workspace:return a.a.getPhrase(l,"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case u.h.HostedLibrary:case u.h.CustomLibrary:return"bg-info";case u.h.Exchange:return"bg-success";case u.h.Workspace:default:return"bg-danger"}},isInteractive:function(e){return!(!e||!e.interactives)&&!!e.interactives.length},mapTypeToSvg:function(e){var t,r=(s(t={},c.Pdf,n.b.FilePDF),s(t,c.Image,n.b.FileImg),s(t,c.PowerPoint,n.b.FilePowerpoint),s(t,c.Document,n.b.FileWord),s(t,c.Excel,n.b.FileExcel),s(t,c.Zip,n.b.FileZip),s(t,c.File,n.b.File),t)[e];return r||(r=n.b.Folder),n.a.getSvg(r)},mapTypeToClass:function(e){switch(e){case c.Pdf:return"icon-red";case c.Image:return"icon-purple";case c.Document:return"icon-blue";case c.Excel:return"icon-green";case c.PowerPoint:return"icon-orange";case c.Zip:return"icon-teal";case c.File:return"icon-gray";default:return""}},mapTypeToExtension:function(e){if(!e)return"";return{pdf:"pdf",image:"png",powerpoint:"pptx"}[e.toLowerCase()]},mapTypeToName:function(e){if(!e)return"";switch(e){case c.Pdf:return a.a.getPhrase(l,"pdf");case c.Image:return a.a.getPhrase(l,"image");case c.Document:return a.a.getPhrase(l,"document");case c.Excel:return a.a.getPhrase(l,"spreadsheet");case c.PowerPoint:return a.a.getPhrase(l,"presentation");case c.Zip:return a.a.getPhrase(l,"zipArchive");case c.File:return a.a.getPhrase(l,"file");default:return""}},translateMetadataCollectionNames:function(e){return new o.a(e.map((function(e){return Object.assign(Object.assign({},e.toJSON()),{name:f.translateMetadataName(e.get("name"))})})))},translateMetadataName:function(e){var t="suggestEdit";switch(e){case i.e.VideoTitle:t+="VideoTitle";break;case i.e.Description:t+="Description";break;case i.e.Rating:t+="Rating";break;case i.e.SeriesTitle:t+="SeriesTitle";break;case i.e.Season:t+="SeasonNumber";break;case i.e.EpisodeNumber:t+="EpisodeNumber";break;case i.e.BroadcastDate:t+="BroadcastDate";break;case i.e.Channel:t+="Channel";break;case i.e.ProductionYear:t+="ProductionYear";break;case i.e.Distributors:t+="Distributors";break;case i.e.ProductionCompanies:t+="ProductionCompanies";break;case i.e.Directors:t+="Directors";break;case i.e.Producers:t+="Producers";break;case i.e.Other:t+="Other"}return a.a.getPhrase(l,t)}}},1021:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(1),a=r(12),i=r(3),o="libraryEditor.utils",u={isValidChapterTime:function(e,t,r,i){if(i){if(!n.isNumber(t))return s.StartTime.Invalid();if(t<0)return s.StartTime.Invalid();if(t>a.w.millisecondsToSeconds(r))return s.StartTime.Exceeds();if(i.some((function(r){return!(r.id&&r.id===e.id||r.cid===e.cid)&&r.get("startTime")===t})))return s.StartTime.Exists()}},isValidChapterName:function(e,t,r){return t?t.length>255?s.Name.MaxLength():r.some((function(r){return!(r.id&&r.id===e.id||r.cid===e.cid)&&r.get("name").trim()===t.trim()}))?s.Name.Exists():n.isEmpty(t.trim())?s.Name.Invalid():void 0:s.Name.Invalid()},mapPhysicalChapters:function(e){var t=0;return n.map(e,(function(e,r){var n={name:e.title,startTime:t,index:r,isPhysicalChapter:!0};return t+=e.duration,n}))}},s={Name:{Invalid:function(){return i.a.getPhrase(o,"chapterNameInvalid")},Exists:function(){return i.a.getPhrase(o,"chapterNameExists")},MaxLength:function(){return i.a.getPhrase(o,"chapterNameExceeds")}},StartTime:{Invalid:function(){return i.a.getPhrase(o,"chapterStartTimeInvalid")},Exists:function(){return i.a.getPhrase(o,"chapterStartTimeExists")},Exceeds:function(){return i.a.getPhrase(o,"chapterStartTimeExceeds")}}}},1022:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(3),a="libraryEditor.utils",i={name:[{required:!0,msg:function(){return n.a.getPhrase(a,"libraryNameRequired")}},{maxLength:255,msg:function(){return n.a.getPhrase(a,"libraryNameExceeds")}}]}},1024:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(27),a=r(3),i=r(1014),o="libraryEditor.utils",u=(n().year(),{name:[{required:!0,msg:function(){return a.a.getPhrase(o,"videoTitleRequired")}}],folderId:[{required:!0,msg:function(){return a.a.getPhrase(o,"uploadFolderRequired")}}],libraryId:[{required:!0,msg:"Please select an upload library"}],episodeNumber:function(e,t,r){return e&&e<1?"Videos cannot have an episode number less than 1":e&&e>255?"Videos cannot have an episode number greater than 255":e&&e%1!=0?"Episode numbers can only be whole numbers":r.season&&r.season.get("number")>=0&&null===e?"Videos with a season must also have an episode number":""},season:function(e,t,r){return r.season&&r.season.get("number")||e&&e.number||!r.episodeNumber?"":"Videos with an episode number must also have a season"},productionYear:function(){return i.e.productionYear.apply(null,arguments)}})},1032:function(e,t,r){"use strict";function n(e){return(n="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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=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 r,n=s(e);if(t){var a=s(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return u(this,r)}}function u(e,t){return!t||"object"!==n(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)}r.d(t,"a",(function(){return c}));var c=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&&i(e,t)}(r,e);var t=o(r);function r(){return a(this,r),t.apply(this,arguments)}return r}(r(2).a.Collection)},1269:function(e,t,r){var n=r(9);e.exports=(n.default||n).template({1:function(e,t,r,n,a){var i;e.propertyIsEnumerable;return(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},3:function(e,t,r,n,a){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},o=e.hooks.helperMissing,u=e.escapeExpression;return'<form>\r\n <div class="form-group">\r\n <label for="name" class="control-label">'+u((r.lang||t&&t.lang||o).call(i,"libraryName",{name:"lang",hash:{},data:a}))+'</label>\r\n <input name="name" id="name" type="text" class="form-control" placeholder="'+u((r.lang||t&&t.lang||o).call(i,"secondaryLibrary",{name:"lang",hash:{},data:a}))+'" autocomplete="off" autofocus/>\r\n <div class="form-feedback"></div>\r\n </div>\r\n</form>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,r,n,a){var i;e.propertyIsEnumerable;return null!=(i=r.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,a,0),inverse:e.program(3,a,0),data:a}))?i:""},useData:!0})},1403:function(e,t,r){"use strict";r.r(t),r.d(t,"NewLibraryView",(function(){return R}));var n=r(7),a=r(2),i=r(5),o=r(28),u=r(3),s=r(274),c=r(129),l=r(0),f=r(238),d=r(6),p=r(123),m=r(1011),h=r(12),g=r(1015),b=r(131),y=r(185),v=r(1269),P=r.n(v);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 w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function N(e,t){return(N=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(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 r,n=O(e);if(t){var a=O(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return k(this,r)}}function k(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 O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var R=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&&N(e,t)}(k,e);var t,r,v,E=S(k);function k(){return w(this,k),E.apply(this,arguments)}return t=k,(r=[{key:"initialize",value:function(){this.model=o.a.get("new:library",null,{ctor:p.a}),this.bindListeners(),this.settingsDataService=i.a.getInstance(l.g.Settings,this),this.libraryDataService=i.a.getInstance(l.g.Library,this)}},{key:"bindListeners",value:function(){this.listenTo(l.e.SEARCH,"".concat(l.f.SETTINGS,":sync"),this.render)}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.model.validate(),this.model.isValid()&&(n.Radio.channel(this.channelName).trigger(f.b.ShowSpinner),this.createLibrary())}},{key:"createLibrary",value:function(){this.libraryDataService.createLibrary(this.currentUser.get("customerId"),this.model,(function(e){o.a.clear("new:library"),a.a.AppLinkHelper.trigger({application:l.b.LIBRARY_EDITOR,action:l.a.LibraryEditor.LIBRARY,args:[e.id]})}))}},{key:"onBeforeRender",value:function(){this.maxCustomLibraries=this.settingsDataService.getSetting(this.currentUser.get("customerId"),d.m.MaxCustomLibraries),this.libraries.length>=this.maxCustomLibraries.get("value")?a.a.ErrorHelper.throw(new y.j(this.libraries.length,this.maxCustomLibraries.get("value"))):this.maxCustomLibraries&&this.spinnerModel.set(f.c.Disabled,!1)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.maxCustomLibraries,spinnerEl:h.q.getSpinner({size:h.r.Large,extraClasses:"mx-auto"})}}},{key:"name",get:function(){return"NewLibraryView"}},{key:"title",get:function(){return u.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.newLibrary"}},{key:"template",get:function(){return P.a}},{key:"channelName",get:function(){return h.k.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:s.a,modelValidation:g.c},{behaviorClass:s.g},{behaviorClass:s.f,title:u.a.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new m.a,channelName:this.channelName,buttonText:u.a.getPhrase(this.lang,"save"),onClick:function(t){return e.onSubmit(t)}}}]}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}}}}},{key:"requiredResources",get:function(){return{currentUser:c.b.currentUser,libraries:b.b.libraries}}}])&&x(t.prototype,r),v&&x(t,v),k}(a.a.View)}}]);
|
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
(window["webpackJsonp_clickview_library_editor"] = window["webpackJsonp_clickview_library_editor"] || []).push([[36],{
|
|
2
|
+
|
|
3
|
+
/***/ "./src/apps/library-editor/components/library-actions/LibraryActions.hbs":
|
|
4
|
+
/*!*******************************************************************************!*\
|
|
5
|
+
!*** ./src/apps/library-editor/components/library-actions/LibraryActions.hbs ***!
|
|
6
|
+
\*******************************************************************************/
|
|
7
|
+
/*! no static exports found */
|
|
8
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
9
|
+
|
|
10
|
+
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
11
|
+
module.exports = (Handlebars['default'] || Handlebars).template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
12
|
+
var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda;
|
|
13
|
+
|
|
14
|
+
return "<span data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\" class=\""
|
|
15
|
+
+ container.escapeExpression(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.dropdownClass : stack1), depth0))
|
|
16
|
+
+ " d-inline-block ui-dropdown-toggle\">\r\n "
|
|
17
|
+
+ ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.svg : stack1), depth0)) != null ? stack1 : "")
|
|
18
|
+
+ "\r\n</span>\r\n<div class=\"items-region\"></div>";
|
|
19
|
+
},"useData":true});
|
|
20
|
+
|
|
21
|
+
/***/ }),
|
|
22
|
+
|
|
23
|
+
/***/ "./src/apps/library-editor/components/library-actions/LibraryActionsComponent.ts":
|
|
24
|
+
/*!***************************************************************************************!*\
|
|
25
|
+
!*** ./src/apps/library-editor/components/library-actions/LibraryActionsComponent.ts ***!
|
|
26
|
+
\***************************************************************************************/
|
|
27
|
+
/*! exports provided: LibraryActionsComponent */
|
|
28
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
29
|
+
|
|
30
|
+
"use strict";
|
|
31
|
+
__webpack_require__.r(__webpack_exports__);
|
|
32
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LibraryActionsComponent", function() { return LibraryActionsComponent; });
|
|
33
|
+
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
34
|
+
/* harmony import */ var _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../libs/shared/src/utils/SvgHelper */ "../../libs/shared/src/utils/SvgHelper.ts");
|
|
35
|
+
/* harmony import */ var _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../../libs/analytics/src/interfaces */ "../../libs/analytics/src/interfaces/index.ts");
|
|
36
|
+
/* harmony import */ var _libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../libs/analytics/src/AnalyticsHelper */ "../../libs/analytics/src/AnalyticsHelper.ts");
|
|
37
|
+
/* harmony import */ var _shared_components_dropdown_DropdownComponentCollection__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/components/dropdown/DropdownComponentCollection */ "./src/shared/components/dropdown/DropdownComponentCollection.ts");
|
|
38
|
+
/* harmony import */ var _shared_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/constants */ "./src/shared/constants/index.ts");
|
|
39
|
+
/* harmony import */ var _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/services/LanguageService */ "../../libs/common/src/backbone/services/LanguageService.tsx");
|
|
40
|
+
/* harmony import */ var _LibraryActions_hbs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./LibraryActions.hbs */ "./src/apps/library-editor/components/library-actions/LibraryActions.hbs");
|
|
41
|
+
/* harmony import */ var _LibraryActions_hbs__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_LibraryActions_hbs__WEBPACK_IMPORTED_MODULE_7__);
|
|
42
|
+
/* harmony import */ var _library_actions_scss__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./library-actions.scss */ "./src/apps/library-editor/components/library-actions/library-actions.scss");
|
|
43
|
+
/* harmony import */ var _library_actions_scss__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_library_actions_scss__WEBPACK_IMPORTED_MODULE_8__);
|
|
44
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
45
|
+
|
|
46
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
47
|
+
|
|
48
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
49
|
+
|
|
50
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
51
|
+
|
|
52
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
53
|
+
|
|
54
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
55
|
+
|
|
56
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
57
|
+
|
|
58
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
59
|
+
|
|
60
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
61
|
+
|
|
62
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
63
|
+
|
|
64
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
var LibraryActionsComponent = /*#__PURE__*/function (_Core$Component) {
|
|
76
|
+
_inherits(LibraryActionsComponent, _Core$Component);
|
|
77
|
+
|
|
78
|
+
var _super = _createSuper(LibraryActionsComponent);
|
|
79
|
+
|
|
80
|
+
function LibraryActionsComponent(options) {
|
|
81
|
+
_classCallCheck(this, LibraryActionsComponent);
|
|
82
|
+
|
|
83
|
+
return _super.call(this, options);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
_createClass(LibraryActionsComponent, [{
|
|
87
|
+
key: "events",
|
|
88
|
+
value: function events() {
|
|
89
|
+
return {
|
|
90
|
+
'click @ui.dropdownToggle': 'onClickDropdownToggle',
|
|
91
|
+
'click @ui.dropdownItem': 'onClickDropdownItem'
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
}, {
|
|
95
|
+
key: "regions",
|
|
96
|
+
value: function regions() {
|
|
97
|
+
return {
|
|
98
|
+
dropdownItems: {
|
|
99
|
+
replaceElement: true,
|
|
100
|
+
el: '.items-region'
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
}, {
|
|
105
|
+
key: "onClickDropdownToggle",
|
|
106
|
+
value: function onClickDropdownToggle() {
|
|
107
|
+
this.showChildView('dropdownItems', new _shared_components_dropdown_DropdownComponentCollection__WEBPACK_IMPORTED_MODULE_4__["DropdownComponentCollection"]({
|
|
108
|
+
analyticsHelper: _libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_3__["AnalyticsHelper"],
|
|
109
|
+
displayOptions: {
|
|
110
|
+
alignment: 'right'
|
|
111
|
+
},
|
|
112
|
+
channelName: this.channelName,
|
|
113
|
+
collection: new _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].Collection([{
|
|
114
|
+
title: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_6__["LanguageService"].getPhrase(this.lang, 'addFolder'),
|
|
115
|
+
analyticsOptions: _libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_3__["AnalyticsHelper"].mergeOptions(this.options.analyticsOptions, {
|
|
116
|
+
actionType: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_2__["UserAction"].Create,
|
|
117
|
+
entity: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_2__["EntityType"].Folder,
|
|
118
|
+
workflowPhase: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_2__["WorkflowPhase"].Start
|
|
119
|
+
}),
|
|
120
|
+
appLink: {
|
|
121
|
+
application: _shared_constants__WEBPACK_IMPORTED_MODULE_5__["AppChannels"].LIBRARY_EDITOR,
|
|
122
|
+
action: _shared_constants__WEBPACK_IMPORTED_MODULE_5__["Actions"].Shared.NEW_FOLDER,
|
|
123
|
+
args: [this.model.get('id')]
|
|
124
|
+
}
|
|
125
|
+
}, {
|
|
126
|
+
title: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_6__["LanguageService"].getPhrase(this.lang, 'rename'),
|
|
127
|
+
analyticsOptions: _libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_3__["AnalyticsHelper"].mergeOptions(this.options.analyticsOptions, {
|
|
128
|
+
actionType: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_2__["UserAction"].Rename,
|
|
129
|
+
entity: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_2__["EntityType"].Library,
|
|
130
|
+
workflowPhase: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_2__["WorkflowPhase"].Start
|
|
131
|
+
}),
|
|
132
|
+
appLink: {
|
|
133
|
+
application: _shared_constants__WEBPACK_IMPORTED_MODULE_5__["AppChannels"].LIBRARY_EDITOR,
|
|
134
|
+
action: _shared_constants__WEBPACK_IMPORTED_MODULE_5__["Actions"].LibraryEditor.RENAME_LIBRARY,
|
|
135
|
+
args: [this.model.get('id')]
|
|
136
|
+
}
|
|
137
|
+
}, {
|
|
138
|
+
title: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_6__["LanguageService"].getPhrase(this.lang, 'remove'),
|
|
139
|
+
analyticsOptions: _libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_3__["AnalyticsHelper"].mergeOptions(this.options.analyticsOptions, {
|
|
140
|
+
actionType: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_2__["UserAction"].Delete,
|
|
141
|
+
entity: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_2__["EntityType"].Library,
|
|
142
|
+
workflowPhase: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_2__["WorkflowPhase"].Start
|
|
143
|
+
}),
|
|
144
|
+
appLink: {
|
|
145
|
+
application: _shared_constants__WEBPACK_IMPORTED_MODULE_5__["AppChannels"].LIBRARY_EDITOR,
|
|
146
|
+
action: _shared_constants__WEBPACK_IMPORTED_MODULE_5__["Actions"].LibraryEditor.DELETE_LIBRARY,
|
|
147
|
+
args: [this.model.get('id')]
|
|
148
|
+
},
|
|
149
|
+
classes: 'text-danger'
|
|
150
|
+
}])
|
|
151
|
+
}));
|
|
152
|
+
}
|
|
153
|
+
}, {
|
|
154
|
+
key: "onClickDropdownItem",
|
|
155
|
+
value: function onClickDropdownItem(event) {
|
|
156
|
+
event.stopPropagation();
|
|
157
|
+
event.preventDefault();
|
|
158
|
+
this.getUI('dropdownToggle').dropdown('toggle');
|
|
159
|
+
}
|
|
160
|
+
}, {
|
|
161
|
+
key: "viewOptions",
|
|
162
|
+
value: function viewOptions() {
|
|
163
|
+
return {
|
|
164
|
+
dropdownClass: "".concat(_library_actions_scss__WEBPACK_IMPORTED_MODULE_8___default.a.dropdownButton, " ").concat(this.options.buttonClass),
|
|
165
|
+
svg: _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_1__["SvgHelper"].getSvg(_libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_1__["cvSvgLibrary"].More)
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
}, {
|
|
169
|
+
key: "name",
|
|
170
|
+
get: function get() {
|
|
171
|
+
return 'LibraryActionsComponent';
|
|
172
|
+
}
|
|
173
|
+
}, {
|
|
174
|
+
key: "template",
|
|
175
|
+
get: function get() {
|
|
176
|
+
return _LibraryActions_hbs__WEBPACK_IMPORTED_MODULE_7___default.a;
|
|
177
|
+
}
|
|
178
|
+
}, {
|
|
179
|
+
key: "channelName",
|
|
180
|
+
get: function get() {
|
|
181
|
+
return "".concat(this.name).concat(this.cid);
|
|
182
|
+
}
|
|
183
|
+
}, {
|
|
184
|
+
key: "lang",
|
|
185
|
+
get: function get() {
|
|
186
|
+
return 'libraryEditor.libraryActions';
|
|
187
|
+
}
|
|
188
|
+
}, {
|
|
189
|
+
key: "className",
|
|
190
|
+
get: function get() {
|
|
191
|
+
return "position-absolute ".concat(_library_actions_scss__WEBPACK_IMPORTED_MODULE_8___default.a.dropdownContainer, " ").concat(this.options.extraClasses, " ");
|
|
192
|
+
}
|
|
193
|
+
}, {
|
|
194
|
+
key: "elements",
|
|
195
|
+
get: function get() {
|
|
196
|
+
return {
|
|
197
|
+
dropdownToggle: '.ui-dropdown-toggle',
|
|
198
|
+
dropdownItem: '.dropdown-item'
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
}]);
|
|
202
|
+
|
|
203
|
+
return LibraryActionsComponent;
|
|
204
|
+
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].Component);
|
|
205
|
+
|
|
206
|
+
/***/ }),
|
|
207
|
+
|
|
208
|
+
/***/ "./src/apps/library-editor/components/library-actions/library-actions.scss":
|
|
209
|
+
/*!*********************************************************************************!*\
|
|
210
|
+
!*** ./src/apps/library-editor/components/library-actions/library-actions.scss ***!
|
|
211
|
+
\*********************************************************************************/
|
|
212
|
+
/*! no static exports found */
|
|
213
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
214
|
+
|
|
215
|
+
// extracted by mini-css-extract-plugin
|
|
216
|
+
module.exports = {"dropdownContainer":"cv--dropdownContainer--293SV","dropdownButton":"cv--dropdownButton--23YxG"};
|
|
217
|
+
|
|
218
|
+
/***/ }),
|
|
219
|
+
|
|
220
|
+
/***/ "./src/shared/components/dropdown/DropdownComponentCollection.ts":
|
|
221
|
+
/*!***********************************************************************!*\
|
|
222
|
+
!*** ./src/shared/components/dropdown/DropdownComponentCollection.ts ***!
|
|
223
|
+
\***********************************************************************/
|
|
224
|
+
/*! exports provided: DropdownComponentCollection */
|
|
225
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
226
|
+
|
|
227
|
+
"use strict";
|
|
228
|
+
__webpack_require__.r(__webpack_exports__);
|
|
229
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DropdownComponentCollection", function() { return DropdownComponentCollection; });
|
|
230
|
+
/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! underscore */ "underscore");
|
|
231
|
+
/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(underscore__WEBPACK_IMPORTED_MODULE_0__);
|
|
232
|
+
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
233
|
+
/* harmony import */ var _DropdownItemComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DropdownItemComponent */ "./src/shared/components/dropdown/DropdownItemComponent.ts");
|
|
234
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
235
|
+
|
|
236
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
237
|
+
|
|
238
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
239
|
+
|
|
240
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
241
|
+
|
|
242
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
243
|
+
|
|
244
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
245
|
+
|
|
246
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
247
|
+
|
|
248
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
249
|
+
|
|
250
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
251
|
+
|
|
252
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
253
|
+
|
|
254
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
var DropdownComponentCollection = /*#__PURE__*/function (_Core$ComponentCollec) {
|
|
260
|
+
_inherits(DropdownComponentCollection, _Core$ComponentCollec);
|
|
261
|
+
|
|
262
|
+
var _super = _createSuper(DropdownComponentCollection);
|
|
263
|
+
|
|
264
|
+
function DropdownComponentCollection(options) {
|
|
265
|
+
_classCallCheck(this, DropdownComponentCollection);
|
|
266
|
+
|
|
267
|
+
return _super.call(this, options);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
_createClass(DropdownComponentCollection, [{
|
|
271
|
+
key: "initialize",
|
|
272
|
+
value: function initialize() {
|
|
273
|
+
this.listenTo(this.options.channelName, 'center:dropdown', this.centerSelectedItem);
|
|
274
|
+
}
|
|
275
|
+
}, {
|
|
276
|
+
key: "getExtraClasses",
|
|
277
|
+
value: function getExtraClasses() {
|
|
278
|
+
var displayOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
279
|
+
var _displayOptions$align = displayOptions.alignment,
|
|
280
|
+
alignment = _displayOptions$align === void 0 ? 'left' : _displayOptions$align,
|
|
281
|
+
extraClasses = displayOptions.extraClasses;
|
|
282
|
+
var className = "dropdown-menu-".concat(alignment);
|
|
283
|
+
if (extraClasses) className = "".concat(className, " ").concat(extraClasses);
|
|
284
|
+
return className;
|
|
285
|
+
}
|
|
286
|
+
}, {
|
|
287
|
+
key: "centerSelectedItem",
|
|
288
|
+
value: function centerSelectedItem() {
|
|
289
|
+
var active = this.$el.find('.active');
|
|
290
|
+
if (!active.length) return;
|
|
291
|
+
var halfRatio = 0.5;
|
|
292
|
+
var top = this.$el.scrollTop() + active.position().top;
|
|
293
|
+
var distance = this.$el.height() * halfRatio + active.height() * halfRatio;
|
|
294
|
+
this.$el.scrollTop(top - distance);
|
|
295
|
+
}
|
|
296
|
+
}, {
|
|
297
|
+
key: "name",
|
|
298
|
+
get: function get() {
|
|
299
|
+
return 'DropdownCollectionComponent';
|
|
300
|
+
}
|
|
301
|
+
}, {
|
|
302
|
+
key: "className",
|
|
303
|
+
get: function get() {
|
|
304
|
+
return "dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions));
|
|
305
|
+
}
|
|
306
|
+
}, {
|
|
307
|
+
key: "attributes",
|
|
308
|
+
get: function get() {
|
|
309
|
+
return {
|
|
310
|
+
'aria-labelledby': 'dropdownSelector'
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
}, {
|
|
314
|
+
key: "childView",
|
|
315
|
+
get: function get() {
|
|
316
|
+
return _DropdownItemComponent__WEBPACK_IMPORTED_MODULE_2__["DropdownItemComponent"];
|
|
317
|
+
}
|
|
318
|
+
}, {
|
|
319
|
+
key: "childViewOptions",
|
|
320
|
+
get: function get() {
|
|
321
|
+
var baseChildOptions = {
|
|
322
|
+
channelName: this.options.channelName,
|
|
323
|
+
analyticsHelper: this.options.analyticsHelper
|
|
324
|
+
};
|
|
325
|
+
return underscore__WEBPACK_IMPORTED_MODULE_0__["extend"](baseChildOptions, this.options.childOptions);
|
|
326
|
+
}
|
|
327
|
+
}]);
|
|
328
|
+
|
|
329
|
+
return DropdownComponentCollection;
|
|
330
|
+
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__["Core"].ComponentCollection);
|
|
331
|
+
|
|
332
|
+
/***/ })
|
|
333
|
+
|
|
334
|
+
}]);
|
|
335
|
+
//# sourceMappingURL=36.chunk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/apps/library-editor/components/library-actions/LibraryActions.hbs","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/apps/library-editor/components/library-actions/LibraryActionsComponent.ts","webpack://@clickview/library-editor/./src/apps/library-editor/components/library-actions/library-actions.scss?3f2c","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/shared/components/dropdown/DropdownComponentCollection.ts"],"names":[],"mappings":";;;;;;;;;AAAA,iBAAiB,mBAAO,CAAC,8BAAY;AACrC,iEAAiE;AACjE;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC,gBAAgB,E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACPjB;AACA;AACA;AACA;AAEA;AACA;AAEA;AAEA;AACA;AASO,IAAM,uBAAb;AAAA;;AAAA;;AAGE,mCAAY,OAAZ,EAAmD;AAAA;;AAAA,6BAC3C,OAD2C;AAElD;;AALH;AAAA;AAAA,6BAkCe;AACX,aAAO;AACL,oCAA4B,uBADvB;AAEL,kCAA4B;AAFvB,OAAP;AAID;AAvCH;AAAA;AAAA,8BAyCgB;AACZ,aAAO;AACL,qBAAa,EAAE;AACb,wBAAc,EAAE,IADH;AAEb,YAAE,EAAE;AAFS;AADV,OAAP;AAMD;AAhDH;AAAA;AAAA,4CAkD+B;AAC3B,WAAK,aAAL,CAAmB,eAAnB,EAAoC,IAAI,mHAAJ,CAAgC;AAClE,uBAAe,EAAE,mFADiD;AAElE,sBAAc,EAAE;AACd,mBAAS,EAAE;AADG,SAFkD;AAKlE,mBAAW,EAAE,KAAK,WALgD;AAMlE,kBAAU,EAAE,IAAI,8DAAI,CAAC,UAAT,CAAoB,CAAC;AAC/B,eAAK,EAAE,kGAAe,CAAC,SAAhB,CAA0B,KAAK,IAA/B,EAAqC,WAArC,CADwB;AAE/B,0BAAgB,EAAE,mFAAe,CAAC,YAAhB,CAA6B,KAAK,OAAL,CAAa,gBAA1C,EAA4D;AAC5E,sBAAU,EAAE,yEAAU,CAAC,MADqD;AAC7C,kBAAM,EAAE,yEAAU,CAAC,MAD0B;AAClB,yBAAa,EAAE,4EAAa,CAAC;AADX,WAA5D,CAFa;AAK/B,iBAAO,EAAE;AACP,uBAAW,EAAE,6DAAW,CAAC,cADlB;AAEP,kBAAM,EAAE,yDAAO,CAAC,MAAR,CAAe,UAFhB;AAGP,gBAAI,EAAE,CAAC,KAAK,KAAL,CAAW,GAAX,CAAe,IAAf,CAAD;AAHC;AALsB,SAAD,EAU7B;AACD,eAAK,EAAE,kGAAe,CAAC,SAAhB,CAA0B,KAAK,IAA/B,EAAqC,QAArC,CADN;AAED,0BAAgB,EAAE,mFAAe,CAAC,YAAhB,CAA6B,KAAK,OAAL,CAAa,gBAA1C,EAA4D;AAC5E,sBAAU,EAAE,yEAAU,CAAC,MADqD;AAC7C,kBAAM,EAAE,yEAAU,CAAC,OAD0B;AACjB,yBAAa,EAAE,4EAAa,CAAC;AADZ,WAA5D,CAFjB;AAKD,iBAAO,EAAE;AACP,uBAAW,EAAE,6DAAW,CAAC,cADlB;AAEP,kBAAM,EAAE,yDAAO,CAAC,aAAR,CAAsB,cAFvB;AAGP,gBAAI,EAAE,CAAC,KAAK,KAAL,CAAW,GAAX,CAAe,IAAf,CAAD;AAHC;AALR,SAV6B,EAoB7B;AACD,eAAK,EAAE,kGAAe,CAAC,SAAhB,CAA0B,KAAK,IAA/B,EAAqC,QAArC,CADN;AAED,0BAAgB,EAAE,mFAAe,CAAC,YAAhB,CAA6B,KAAK,OAAL,CAAa,gBAA1C,EAA4D;AAC5E,sBAAU,EAAE,yEAAU,CAAC,MADqD;AAC7C,kBAAM,EAAE,yEAAU,CAAC,OAD0B;AACjB,yBAAa,EAAE,4EAAa,CAAC;AADZ,WAA5D,CAFjB;AAKD,iBAAO,EAAE;AACP,uBAAW,EAAE,6DAAW,CAAC,cADlB;AAEP,kBAAM,EAAE,yDAAO,CAAC,aAAR,CAAsB,cAFvB;AAGP,gBAAI,EAAE,CAAC,KAAK,KAAL,CAAW,GAAX,CAAe,IAAf,CAAD;AAHC,WALR;AAUD,iBAAO,EAAE;AAVR,SApB6B,CAApB;AANsD,OAAhC,CAApC;AAuCD;AA1FH;AAAA;AAAA,wCA4F8B,KA5F9B,EA4FiD;AAC7C,WAAK,CAAC,eAAN;AACA,WAAK,CAAC,cAAN;AAEA,WAAK,KAAL,CAAW,gBAAX,EAA6B,QAA7B,CAAsC,QAAtC;AACD;AAjGH;AAAA;AAAA,kCAmGoB;AAChB,aAAO;AACL,qBAAa,YAAK,4DAAM,CAAC,cAAZ,cAA8B,KAAK,OAAL,CAAa,WAA3C,CADR;AAEL,WAAG,EAAE,0EAAS,CAAC,MAAV,CAAiB,6EAAY,CAAC,IAA9B;AAFA,OAAP;AAID;AAxGH;AAAA;AAAA,wBAOiB;AACb,aAAO,yBAAP;AACD;AATH;AAAA;AAAA,wBAWqB;AACjB,aAAO,0DAAP;AACD;AAbH;AAAA;AAAA,wBAewB;AACpB,uBAAU,KAAK,IAAf,SAAsB,KAAK,GAA3B;AACD;AAjBH;AAAA;AAAA,wBAmBiB;AACb,aAAO,8BAAP;AACD;AArBH;AAAA;AAAA,wBAuBsB;AAClB,yCAA4B,4DAAM,CAAC,iBAAnC,cAAwD,KAAK,OAAL,CAAa,YAArE;AACD;AAzBH;AAAA;AAAA,wBA2BqB;AACjB,aAAO;AACL,sBAAc,EAAE,qBADX;AAEL,oBAAY,EAAE;AAFT,OAAP;AAID;AAhCH;;AAAA;AAAA,EAA6C,8DAAI,CAAC,SAAlD,E;;;;;;;;;;;ACtBA;AACA,kBAAkB,iG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACDlB;AAGA;AAEA;AA8BO,IAAM,2BAAb;AAAA;;AAAA;;AAGE,uCAAY,OAAZ,EAAwD;AAAA;;AAAA,6BAChD,OADgD;AAEvD;;AALH;AAAA;AAAA,iCAqBmB;AACf,WAAK,QAAL,CAAc,KAAK,OAAL,CAAa,WAA3B,EAAwC,iBAAxC,EAA2D,KAAK,kBAAhE;AACD;AAvBH;AAAA;AAAA,sCAsCqE;AAAA,UAA3C,cAA2C,uEAAF,EAAE;AAAA,kCACpB,cADoB,CACzD,SADyD;AAAA,UACzD,SADyD,sCAC7C,MAD6C;AAAA,UACrC,YADqC,GACpB,cADoB,CACrC,YADqC;AAGjE,UAAI,SAAS,2BAAoB,SAApB,CAAb;AAEA,UAAI,YAAJ,EACE,SAAS,aAAM,SAAN,cAAmB,YAAnB,CAAT;AAEF,aAAO,SAAP;AACD;AA/CH;AAAA;AAAA,yCAiD4B;AACxB,UAAM,MAAM,GAAG,KAAK,GAAL,CAAS,IAAT,CAAc,SAAd,CAAf;AAEA,UAAI,CAAC,MAAM,CAAC,MAAZ,EACE;AAEF,UAAM,SAAS,GAAG,GAAlB;AACA,UAAM,GAAG,GAAG,KAAK,GAAL,CAAS,SAAT,KAAuB,MAAM,CAAC,QAAP,GAAkB,GAArD;AACA,UAAM,QAAQ,GAAG,KAAK,GAAL,CAAS,MAAT,KAAoB,SAApB,GAAgC,MAAM,CAAC,MAAP,KAAkB,SAAnE;AACA,WAAK,GAAL,CAAS,SAAT,CAAmB,GAAG,GAAG,QAAzB;AACD;AA3DH;AAAA;AAAA,wBAOiB;AACb,aAAO,6BAAP;AACD;AATH;AAAA;AAAA,wBAWsB;AAClB,oDAAuC,KAAK,eAAL,CAAqB,KAAK,OAAL,CAAa,cAAlC,CAAvC;AACD;AAbH;AAAA;AAAA,wBAeuB;AACnB,aAAO;AACL,2BAAmB;AADd,OAAP;AAGD;AAnBH;AAAA;AAAA,wBAyBsB;AAClB,aAAO,4EAAP;AACD;AA3BH;AAAA;AAAA,wBA6B6B;AACzB,UAAM,gBAAgB,GAAe;AACnC,mBAAW,EAAE,KAAK,OAAL,CAAa,WADS;AAEnC,uBAAe,EAAE,KAAK,OAAL,CAAa;AAFK,OAArC;AAKA,aAAO,kDAAS,gBAAT,EAA2B,KAAK,OAAL,CAAa,YAAxC,CAAP;AACD;AApCH;;AAAA;AAAA,EAAiD,8DAAI,CAAC,mBAAtD,E","file":"scripts/36.chunk.js","sourcesContent":["var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda;\n\n return \"<span data-toggle=\\\"dropdown\\\" aria-haspopup=\\\"true\\\" aria-expanded=\\\"false\\\" class=\\\"\"\n + container.escapeExpression(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.dropdownClass : stack1), depth0))\n + \" d-inline-block ui-dropdown-toggle\\\">\\r\\n \"\n + ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.svg : stack1), depth0)) != null ? stack1 : \"\")\n + \"\\r\\n</span>\\r\\n<div class=\\\"items-region\\\"></div>\";\n},\"useData\":true});","import { ObjectHash } from 'backbone';\r\n\r\nimport { Core } from 'libs/common/core';\r\nimport { SvgHelper, cvSvgLibrary } from 'libs/shared/utils/SvgHelper';\r\nimport { AnalyticsOptions, EntityType, UserAction, WorkflowPhase } from 'libs/analytics/interfaces';\r\nimport { AnalyticsHelper } from 'libs/analytics/AnalyticsHelper';\r\n\r\nimport { DropdownComponentCollection } from 'shared/components/dropdown/DropdownComponentCollection';\r\nimport { Actions, AppChannels } from 'shared/constants';\r\nimport { Library } from 'shared/models/Library';\r\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\r\n\r\nimport LibraryActionsTemplate from './LibraryActions.hbs';\r\nimport styles from './library-actions.scss';\r\n\r\ninterface LibraryActionsComponentOptions extends Core.ComponentOptions<Library> {\r\n model: Library;\r\n extraClasses?: string;\r\n buttonClass?: string;\r\n analyticsOptions?: AnalyticsOptions;\r\n}\r\n\r\nexport class LibraryActionsComponent extends Core.Component<Library> {\r\n protected options: LibraryActionsComponentOptions;\r\n\r\n constructor(options: LibraryActionsComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public get name(): string {\r\n return 'LibraryActionsComponent';\r\n }\r\n\r\n public get template(): any {\r\n return LibraryActionsTemplate;\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 'libraryEditor.libraryActions';\r\n }\r\n\r\n public get className(): string {\r\n return `position-absolute ${styles.dropdownContainer} ${this.options.extraClasses} `;\r\n }\r\n\r\n public get elements(): ObjectHash {\r\n return {\r\n dropdownToggle: '.ui-dropdown-toggle',\r\n dropdownItem: '.dropdown-item'\r\n };\r\n }\r\n\r\n public events(): ObjectHash {\r\n return {\r\n 'click @ui.dropdownToggle': 'onClickDropdownToggle',\r\n 'click @ui.dropdownItem' : 'onClickDropdownItem'\r\n };\r\n }\r\n\r\n public regions(): ObjectHash {\r\n return {\r\n dropdownItems: {\r\n replaceElement: true,\r\n el: '.items-region'\r\n }\r\n };\r\n }\r\n\r\n private onClickDropdownToggle(): void {\r\n this.showChildView('dropdownItems', new DropdownComponentCollection({\r\n analyticsHelper: AnalyticsHelper,\r\n displayOptions: {\r\n alignment: 'right'\r\n },\r\n channelName: this.channelName,\r\n collection: new Core.Collection([{\r\n title: LanguageService.getPhrase(this.lang, 'addFolder'),\r\n analyticsOptions: AnalyticsHelper.mergeOptions(this.options.analyticsOptions, {\r\n actionType: UserAction.Create, entity: EntityType.Folder, workflowPhase: WorkflowPhase.Start\r\n }),\r\n appLink: {\r\n application: AppChannels.LIBRARY_EDITOR,\r\n action: Actions.Shared.NEW_FOLDER,\r\n args: [this.model.get('id')]\r\n }\r\n }, {\r\n title: LanguageService.getPhrase(this.lang, 'rename'),\r\n analyticsOptions: AnalyticsHelper.mergeOptions(this.options.analyticsOptions, {\r\n actionType: UserAction.Rename, entity: EntityType.Library, workflowPhase: WorkflowPhase.Start\r\n }),\r\n appLink: {\r\n application: AppChannels.LIBRARY_EDITOR,\r\n action: Actions.LibraryEditor.RENAME_LIBRARY,\r\n args: [this.model.get('id')]\r\n }\r\n }, {\r\n title: LanguageService.getPhrase(this.lang, 'remove'),\r\n analyticsOptions: AnalyticsHelper.mergeOptions(this.options.analyticsOptions, {\r\n actionType: UserAction.Delete, entity: EntityType.Library, workflowPhase: WorkflowPhase.Start\r\n }),\r\n appLink: {\r\n application: AppChannels.LIBRARY_EDITOR,\r\n action: Actions.LibraryEditor.DELETE_LIBRARY,\r\n args: [this.model.get('id')]\r\n },\r\n classes: 'text-danger'\r\n }])\r\n }));\r\n }\r\n\r\n private onClickDropdownItem(event: JQuery.Event): void {\r\n event.stopPropagation();\r\n event.preventDefault();\r\n\r\n this.getUI('dropdownToggle').dropdown('toggle');\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n return {\r\n dropdownClass: `${styles.dropdownButton} ${this.options.buttonClass}`,\r\n svg: SvgHelper.getSvg(cvSvgLibrary.More)\r\n };\r\n }\r\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"dropdownContainer\":\"cv--dropdownContainer--293SV\",\"dropdownButton\":\"cv--dropdownButton--23YxG\"};","import * as _ from 'underscore';\r\nimport { ObjectHash } from 'backbone';\r\n\r\nimport { Core } from 'libs/common/core';\r\n\r\nimport { DropdownItemComponent } from 'shared/components/dropdown/DropdownItemComponent';\r\n\r\nexport interface DropdownDisplayOptions {\r\n alignment?: string;\r\n extraClasses?: string;\r\n}\r\n\r\nexport interface DropdownAnalyticsHelper {\r\n logUserAction(data: ObjectHash | ObjectHash[], analyticsOptions: any): void;\r\n}\r\n\r\nexport interface DropdownChildOptions {\r\n channelName?: string;\r\n titleProperty?: string;\r\n eventName?: string;\r\n extraClasses?: string;\r\n prefixHandler?: () => string;\r\n currentSelectedMessage?: string;\r\n isDisabled?: (model: Core.Model) => boolean;\r\n getTooltip?: (model: Core.Model) => ObjectHash;\r\n truncateOptionNames?: boolean;\r\n}\r\n\r\nexport interface DropdownComponentCollectionOptions extends Core.ComponentCollectionOptions {\r\n channelName: string;\r\n childOptions?: DropdownChildOptions;\r\n displayOptions?: DropdownDisplayOptions;\r\n analyticsHelper: DropdownAnalyticsHelper;\r\n}\r\n\r\nexport class DropdownComponentCollection extends Core.ComponentCollection {\r\n public options: DropdownComponentCollectionOptions;\r\n\r\n constructor(options?: DropdownComponentCollectionOptions) {\r\n super(options);\r\n }\r\n\r\n public get name(): string {\r\n return 'DropdownCollectionComponent';\r\n }\r\n\r\n public get className(): string {\r\n return `dropdown-menu items-viewpart ${this.getExtraClasses(this.options.displayOptions)}`;\r\n }\r\n\r\n public get attributes(): ObjectHash {\r\n return {\r\n 'aria-labelledby': 'dropdownSelector'\r\n };\r\n }\r\n\r\n public initialize(): void {\r\n this.listenTo(this.options.channelName, 'center:dropdown', this.centerSelectedItem);\r\n }\r\n\r\n public get childView(): any {\r\n return DropdownItemComponent;\r\n }\r\n\r\n public get childViewOptions(): ObjectHash {\r\n const baseChildOptions: ObjectHash = {\r\n channelName: this.options.channelName,\r\n analyticsHelper: this.options.analyticsHelper\r\n };\r\n\r\n return _.extend(baseChildOptions, this.options.childOptions);\r\n }\r\n\r\n private getExtraClasses(displayOptions: DropdownDisplayOptions = {}): string {\r\n const { alignment = 'left', extraClasses } = displayOptions;\r\n\r\n let className = `dropdown-menu-${alignment}`;\r\n\r\n if (extraClasses)\r\n className = `${className} ${extraClasses}`;\r\n\r\n return className;\r\n }\r\n\r\n private centerSelectedItem(): void {\r\n const active = this.$el.find('.active');\r\n\r\n if (!active.length)\r\n return;\r\n\r\n const halfRatio = 0.5;\r\n const top = this.$el.scrollTop() + active.position().top;\r\n const distance = this.$el.height() * halfRatio + active.height() * halfRatio;\r\n this.$el.scrollTop(top - distance);\r\n }\r\n}"],"sourceRoot":""}
|