@clickview/library-editor 1.1.19-rc.2 → 1.1.19
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/12.chunk.css +17 -7
- package/dist/css/13.chunk.css +7 -7
- package/dist/css/14.chunk.css +10 -4
- package/dist/css/16.chunk.css +1 -1
- package/dist/css/17.chunk.css +1 -1
- package/dist/css/19.chunk.css +34 -0
- package/dist/css/20.chunk.css +15 -7
- package/dist/css/21.chunk.css +14 -8
- package/dist/css/22.chunk.css +13 -5
- package/dist/css/23.chunk.css +12 -6
- package/dist/css/24.chunk.css +7 -7
- package/dist/css/25.chunk.css +9 -5
- package/dist/css/26.chunk.css +5 -5
- package/dist/css/27.chunk.css +6 -4
- package/dist/css/29.chunk.css +4 -4
- package/dist/css/3.chunk.css +2 -15
- package/dist/css/30.chunk.css +5 -3
- package/dist/css/31.chunk.css +3 -3
- package/dist/css/42.chunk.css +1 -1
- package/dist/css/43.chunk.css +1 -1
- package/dist/css/44.chunk.css +1 -1
- package/dist/css/45.chunk.css +1 -1
- package/dist/css/46.chunk.css +1 -1
- package/dist/css/47.chunk.css +1 -1
- package/dist/css/49.chunk.css +1 -34
- package/dist/css/5.chunk.css +3 -13
- package/dist/css/50.chunk.css +1 -1
- package/dist/css/53.chunk.css +2 -0
- package/dist/css/54.chunk.css +1 -1
- package/dist/css/55.chunk.css +1 -1
- package/dist/css/56.chunk.css +1 -1
- package/dist/css/57.chunk.css +1 -1
- package/dist/css/58.chunk.css +1 -1
- package/dist/css/60.chunk.css +1 -17
- package/dist/css/61.chunk.css +1 -1
- package/dist/projects/library-editor/src/app.d.ts +1 -0
- package/dist/scripts/0-2be1201a7f.chunk.js +1 -0
- package/dist/scripts/1-d3c96b4670.chunk.js +1 -0
- package/dist/scripts/10-2cebec08a5.chunk.js +1 -0
- package/dist/scripts/{11-805aab3b80.chunk.js → 11-f6440b4817.chunk.js} +1 -1
- package/dist/scripts/12-b168953b47.chunk.js +1 -0
- package/dist/scripts/13-8e3a8d1629.chunk.js +1 -0
- package/dist/scripts/14-1c1b7086df.chunk.js +1 -0
- package/dist/scripts/15-6df8e05fe9.chunk.js +1 -0
- package/dist/scripts/16-19085b3dd0.chunk.js +1 -0
- package/dist/scripts/17-b7c4c476aa.chunk.js +1 -0
- package/dist/scripts/19-affb19e639.chunk.js +1 -0
- package/dist/scripts/2-adb587d50b.chunk.js +1 -0
- package/dist/scripts/20-5dcf516232.chunk.js +1 -0
- package/dist/scripts/21-782b1e8947.chunk.js +1 -0
- package/dist/scripts/22-77a9f00273.chunk.js +1 -0
- package/dist/scripts/23-c380087827.chunk.js +1 -0
- package/dist/scripts/24-5ca282f342.chunk.js +1 -0
- package/dist/scripts/25-a595940248.chunk.js +1 -0
- package/dist/scripts/26-52d8ede81f.chunk.js +1 -0
- package/dist/scripts/27-00d6b5a4bd.chunk.js +1 -0
- package/dist/scripts/28-58cc01c876.chunk.js +1 -0
- package/dist/scripts/29-552493a7ad.chunk.js +1 -0
- package/dist/scripts/3-a32cc1fdf4.chunk.js +1 -0
- package/dist/scripts/30-3b0ed0fdaa.chunk.js +1 -0
- package/dist/scripts/31-d46eb161fa.chunk.js +1 -0
- package/dist/scripts/32-728cc1e053.chunk.js +1 -0
- package/dist/scripts/33-9f130fa663.chunk.js +1 -0
- package/dist/scripts/34-45ad8a1808.chunk.js +1 -0
- package/dist/scripts/35-38b73094a5.chunk.js +1 -0
- package/dist/scripts/36-6cc9b2e1f9.chunk.js +1 -0
- package/dist/scripts/37-18f74bd058.chunk.js +1 -0
- package/dist/scripts/38-ca9a95b14a.chunk.js +1 -0
- package/dist/scripts/39-21e6ce932e.chunk.js +1 -0
- package/dist/scripts/4-7f5573ad9d.chunk.js +1 -0
- package/dist/scripts/40-040a76d3cb.chunk.js +1 -0
- package/dist/scripts/41-ea0bd0118f.chunk.js +1 -0
- package/dist/scripts/42-ede0513e1c.chunk.js +1 -0
- package/dist/scripts/43-512f52a709.chunk.js +1 -0
- package/dist/scripts/44-2b494ad559.chunk.js +1 -0
- package/dist/scripts/45-74c1071058.chunk.js +1 -0
- package/dist/scripts/46-fa6537374c.chunk.js +1 -0
- package/dist/scripts/47-4fbd9bf958.chunk.js +1 -0
- package/dist/scripts/48-de58133c08.chunk.js +1 -0
- package/dist/scripts/49-4035147a3b.chunk.js +1 -0
- package/dist/scripts/5-08ffe0918e.chunk.js +1 -0
- package/dist/scripts/50-c2be46fa7e.chunk.js +1 -0
- package/dist/scripts/51-beb5c51318.chunk.js +1 -0
- package/dist/scripts/52-773e36d3f9.chunk.js +1 -0
- package/dist/scripts/{54-8df01312cc.chunk.js → 53-a5d949340b.chunk.js} +1 -1
- package/dist/scripts/54-4083e51a52.chunk.js +1 -0
- package/dist/scripts/55-622f7871d6.chunk.js +1 -0
- package/dist/scripts/56-b48e08b8ef.chunk.js +1 -0
- package/dist/scripts/57-1feff40a08.chunk.js +1 -0
- package/dist/scripts/{59-cc8e184cce.chunk.js → 58-46d9ab3567.chunk.js} +1 -1
- package/dist/scripts/59-4f532af025.chunk.js +1 -0
- package/dist/scripts/6-0aba54255e.chunk.js +1 -0
- package/dist/scripts/60-b977e9f98a.chunk.js +1 -0
- package/dist/scripts/61-a08050a033.chunk.js +1 -0
- package/dist/scripts/62-2d7c9575cd.chunk.js +1 -0
- package/dist/scripts/63-1b5541b59d.chunk.js +1 -0
- package/dist/scripts/64-5802c4c4a1.chunk.js +1 -0
- package/dist/scripts/65-a5583b77b5.chunk.js +1 -0
- package/dist/scripts/66-e6cbf6eff1.chunk.js +1 -0
- package/dist/scripts/67-147f6e38b8.chunk.js +1 -0
- package/dist/scripts/68-09d43f4bf6.chunk.js +1 -0
- package/dist/scripts/69-730a9f6e1b.chunk.js +1 -0
- package/dist/scripts/7-3a6b348c77.chunk.js +1 -0
- package/dist/scripts/70-99fa48a87e.chunk.js +1 -0
- package/dist/scripts/71-e6e4debb3b.chunk.js +1 -0
- package/dist/scripts/8-e6e81f44e1.chunk.js +1 -0
- package/dist/scripts/9-350230f5b4.chunk.js +1 -0
- package/dist/scripts/bundle-11b849726e.min.js +1 -0
- package/dist/scripts/bundle-185116e7ce.min.js +1 -0
- package/dist/scripts/bundles.json +1 -1
- package/package.json +4 -4
- package/dist/css/1.chunk.css.map +0 -1
- package/dist/css/10.chunk.css.map +0 -1
- package/dist/css/11.chunk.css +0 -137
- package/dist/css/11.chunk.css.map +0 -1
- package/dist/css/12.chunk.css.map +0 -1
- package/dist/css/13.chunk.css.map +0 -1
- package/dist/css/14.chunk.css.map +0 -1
- package/dist/css/16.chunk.css.map +0 -1
- package/dist/css/17.chunk.css.map +0 -1
- package/dist/css/18.chunk.css +0 -2
- package/dist/css/18.chunk.css.map +0 -1
- package/dist/css/2.chunk.css +0 -4
- package/dist/css/2.chunk.css.map +0 -1
- package/dist/css/21.chunk.css.map +0 -1
- package/dist/css/22.chunk.css.map +0 -1
- package/dist/css/23.chunk.css.map +0 -1
- package/dist/css/25.chunk.css.map +0 -1
- package/dist/css/26.chunk.css.map +0 -1
- package/dist/css/28.chunk.css.map +0 -1
- package/dist/css/29.chunk.css.map +0 -1
- package/dist/css/3.chunk.css.map +0 -1
- package/dist/css/30.chunk.css.map +0 -1
- package/dist/css/31.chunk.css.map +0 -1
- package/dist/css/32.chunk.css.map +0 -1
- package/dist/css/33.chunk.css +0 -16
- package/dist/css/33.chunk.css.map +0 -1
- package/dist/css/34.chunk.css +0 -21
- package/dist/css/34.chunk.css.map +0 -1
- package/dist/css/35.chunk.css +0 -20
- package/dist/css/35.chunk.css.map +0 -1
- package/dist/css/36.chunk.css.map +0 -1
- package/dist/css/37.chunk.css.map +0 -1
- package/dist/css/38.chunk.css.map +0 -1
- package/dist/css/4.chunk.css +0 -6
- package/dist/css/40.chunk.css.map +0 -1
- package/dist/css/41.chunk.css.map +0 -1
- package/dist/css/42.chunk.css.map +0 -1
- package/dist/css/43.chunk.css.map +0 -1
- package/dist/css/44.chunk.css.map +0 -1
- package/dist/css/45.chunk.css.map +0 -1
- package/dist/css/46.chunk.css.map +0 -1
- package/dist/css/47.chunk.css.map +0 -1
- package/dist/css/48.chunk.css +0 -2
- package/dist/css/48.chunk.css.map +0 -1
- package/dist/css/49.chunk.css.map +0 -1
- package/dist/css/50.chunk.css.map +0 -1
- package/dist/css/51.chunk.css +0 -2
- package/dist/css/51.chunk.css.map +0 -1
- package/dist/css/52.chunk.css +0 -66
- package/dist/css/52.chunk.css.map +0 -1
- package/dist/css/55.chunk.css.map +0 -1
- package/dist/css/56.chunk.css.map +0 -1
- package/dist/css/58.chunk.css.map +0 -1
- package/dist/css/59.chunk.css +0 -2
- package/dist/css/59.chunk.css.map +0 -1
- package/dist/css/6.chunk.css.map +0 -1
- package/dist/css/60.chunk.css.map +0 -1
- package/dist/css/62.chunk.css +0 -2
- package/dist/css/62.chunk.css.map +0 -1
- package/dist/css/63.chunk.css +0 -170
- package/dist/css/63.chunk.css.map +0 -1
- package/dist/css/67.chunk.css +0 -78
- package/dist/css/67.chunk.css.map +0 -1
- package/dist/css/68.chunk.css +0 -17
- package/dist/css/68.chunk.css.map +0 -1
- package/dist/css/69.chunk.css +0 -17
- package/dist/css/69.chunk.css.map +0 -1
- package/dist/css/7.chunk.css.map +0 -1
- package/dist/css/70.chunk.css +0 -23
- package/dist/css/70.chunk.css.map +0 -1
- package/dist/css/71.chunk.css +0 -40
- package/dist/css/71.chunk.css.map +0 -1
- package/dist/css/72.chunk.css +0 -16
- package/dist/css/72.chunk.css.map +0 -1
- package/dist/css/73.chunk.css +0 -37
- package/dist/css/73.chunk.css.map +0 -1
- package/dist/css/74.chunk.css +0 -29
- package/dist/css/74.chunk.css.map +0 -1
- package/dist/css/75.chunk.css +0 -6
- package/dist/css/75.chunk.css.map +0 -1
- package/dist/css/76.chunk.css +0 -6
- package/dist/css/76.chunk.css.map +0 -1
- package/dist/css/8.chunk.css.map +0 -1
- package/dist/css/library-editor-app.css.map +0 -1
- package/dist/scripts/0-8cdf48d69e.chunk.js +0 -1
- package/dist/scripts/0.chunk.js +0 -1034
- package/dist/scripts/0.chunk.js.map +0 -1
- package/dist/scripts/1-a197f0efeb.chunk.js +0 -1
- package/dist/scripts/1.chunk.js +0 -442
- package/dist/scripts/1.chunk.js.map +0 -1
- package/dist/scripts/10-48aa375ebe.chunk.js +0 -1
- package/dist/scripts/10.chunk.js +0 -820
- package/dist/scripts/10.chunk.js.map +0 -1
- package/dist/scripts/11.chunk.js +0 -4091
- package/dist/scripts/11.chunk.js.map +0 -1
- package/dist/scripts/12-57671136e8.chunk.js +0 -1
- package/dist/scripts/12.chunk.js +0 -555
- package/dist/scripts/12.chunk.js.map +0 -1
- package/dist/scripts/13-46bc40cc23.chunk.js +0 -1
- package/dist/scripts/13.chunk.js +0 -373
- package/dist/scripts/13.chunk.js.map +0 -1
- package/dist/scripts/14-556e982a73.chunk.js +0 -1
- package/dist/scripts/14.chunk.js +0 -2386
- package/dist/scripts/14.chunk.js.map +0 -1
- package/dist/scripts/15-2edbad42a0.chunk.js +0 -1
- package/dist/scripts/15.chunk.js +0 -314
- package/dist/scripts/15.chunk.js.map +0 -1
- package/dist/scripts/16-60b9a789b4.chunk.js +0 -1
- package/dist/scripts/16.chunk.js +0 -1290
- package/dist/scripts/16.chunk.js.map +0 -1
- package/dist/scripts/17-d6083dbd9b.chunk.js +0 -1
- package/dist/scripts/17.chunk.js +0 -381
- package/dist/scripts/17.chunk.js.map +0 -1
- package/dist/scripts/18-31ce9284d0.chunk.js +0 -1
- package/dist/scripts/18.chunk.js +0 -393
- package/dist/scripts/18.chunk.js.map +0 -1
- package/dist/scripts/19.chunk.js +0 -364
- package/dist/scripts/19.chunk.js.map +0 -1
- package/dist/scripts/2-33fcca96e3.chunk.js +0 -1
- package/dist/scripts/2.chunk.js +0 -519
- package/dist/scripts/2.chunk.js.map +0 -1
- package/dist/scripts/20-3c2f3fb166.chunk.js +0 -1
- package/dist/scripts/20.chunk.js +0 -317
- package/dist/scripts/20.chunk.js.map +0 -1
- package/dist/scripts/21-9497f03cd8.chunk.js +0 -1
- package/dist/scripts/21.chunk.js +0 -531
- package/dist/scripts/21.chunk.js.map +0 -1
- package/dist/scripts/22-22cd929ad4.chunk.js +0 -1
- package/dist/scripts/22.chunk.js +0 -354
- package/dist/scripts/22.chunk.js.map +0 -1
- package/dist/scripts/23-16b02d09f5.chunk.js +0 -1
- package/dist/scripts/23.chunk.js +0 -605
- package/dist/scripts/23.chunk.js.map +0 -1
- package/dist/scripts/24-24699f9007.chunk.js +0 -1
- package/dist/scripts/24.chunk.js +0 -318
- package/dist/scripts/24.chunk.js.map +0 -1
- package/dist/scripts/25-7a210f731b.chunk.js +0 -1
- package/dist/scripts/25.chunk.js +0 -365
- package/dist/scripts/25.chunk.js.map +0 -1
- package/dist/scripts/26-263cf0ebce.chunk.js +0 -1
- package/dist/scripts/26.chunk.js +0 -437
- package/dist/scripts/26.chunk.js.map +0 -1
- package/dist/scripts/27-707d8b29f0.chunk.js +0 -1
- package/dist/scripts/27.chunk.js +0 -3565
- package/dist/scripts/27.chunk.js.map +0 -1
- package/dist/scripts/28-d748f747fa.chunk.js +0 -1
- package/dist/scripts/28.chunk.js +0 -3129
- package/dist/scripts/28.chunk.js.map +0 -1
- package/dist/scripts/29-ef4aaa5fd8.chunk.js +0 -1
- package/dist/scripts/29.chunk.js +0 -3088
- package/dist/scripts/29.chunk.js.map +0 -1
- package/dist/scripts/3-9ac062f7ab.chunk.js +0 -1
- package/dist/scripts/3.chunk.js +0 -782
- package/dist/scripts/3.chunk.js.map +0 -1
- package/dist/scripts/30-1b84ae2ac7.chunk.js +0 -1
- package/dist/scripts/30.chunk.js +0 -1809
- package/dist/scripts/30.chunk.js.map +0 -1
- package/dist/scripts/31-b51d47f02b.chunk.js +0 -1
- package/dist/scripts/31.chunk.js +0 -958
- package/dist/scripts/31.chunk.js.map +0 -1
- package/dist/scripts/32-3f5cffb858.chunk.js +0 -1
- package/dist/scripts/32.chunk.js +0 -1235
- package/dist/scripts/32.chunk.js.map +0 -1
- package/dist/scripts/33-bd5b8ad402.chunk.js +0 -1
- package/dist/scripts/33.chunk.js +0 -792
- package/dist/scripts/33.chunk.js.map +0 -1
- package/dist/scripts/34-16c6ce9391.chunk.js +0 -1
- package/dist/scripts/34.chunk.js +0 -990
- package/dist/scripts/34.chunk.js.map +0 -1
- package/dist/scripts/35-f0ff6077b5.chunk.js +0 -1
- package/dist/scripts/35.chunk.js +0 -518
- package/dist/scripts/35.chunk.js.map +0 -1
- package/dist/scripts/36-6d5df4dbb0.chunk.js +0 -1
- package/dist/scripts/36.chunk.js +0 -335
- package/dist/scripts/36.chunk.js.map +0 -1
- package/dist/scripts/37-1aedf84774.chunk.js +0 -1
- package/dist/scripts/37.chunk.js +0 -236
- package/dist/scripts/37.chunk.js.map +0 -1
- package/dist/scripts/38-9411624870.chunk.js +0 -1
- package/dist/scripts/38.chunk.js +0 -315
- package/dist/scripts/38.chunk.js.map +0 -1
- package/dist/scripts/39-f46d2f69b1.chunk.js +0 -1
- package/dist/scripts/39.chunk.js +0 -116
- package/dist/scripts/39.chunk.js.map +0 -1
- package/dist/scripts/4-2bf2f1b864.chunk.js +0 -1
- package/dist/scripts/4.chunk.js +0 -335
- package/dist/scripts/4.chunk.js.map +0 -1
- package/dist/scripts/40-2134ac47ae.chunk.js +0 -1
- package/dist/scripts/40.chunk.js +0 -1782
- package/dist/scripts/40.chunk.js.map +0 -1
- package/dist/scripts/41-38841ce7ed.chunk.js +0 -1
- package/dist/scripts/41.chunk.js +0 -2347
- package/dist/scripts/41.chunk.js.map +0 -1
- package/dist/scripts/42-06cb96ddaf.chunk.js +0 -1
- package/dist/scripts/42.chunk.js +0 -2111
- package/dist/scripts/42.chunk.js.map +0 -1
- package/dist/scripts/43-164d1aaf84.chunk.js +0 -1
- package/dist/scripts/43.chunk.js +0 -2243
- package/dist/scripts/43.chunk.js.map +0 -1
- package/dist/scripts/44-234dd1aac7.chunk.js +0 -1
- package/dist/scripts/44.chunk.js +0 -1024
- package/dist/scripts/44.chunk.js.map +0 -1
- package/dist/scripts/45-26c33d7856.chunk.js +0 -1
- package/dist/scripts/45.chunk.js +0 -1065
- package/dist/scripts/45.chunk.js.map +0 -1
- package/dist/scripts/46-07c390591d.chunk.js +0 -1
- package/dist/scripts/46.chunk.js +0 -613
- package/dist/scripts/46.chunk.js.map +0 -1
- package/dist/scripts/47-6a9c70d236.chunk.js +0 -1
- package/dist/scripts/47.chunk.js +0 -735
- package/dist/scripts/47.chunk.js.map +0 -1
- package/dist/scripts/48-ee3bf3e841.chunk.js +0 -1
- package/dist/scripts/48.chunk.js +0 -994
- package/dist/scripts/48.chunk.js.map +0 -1
- package/dist/scripts/49-73ebbe96d0.chunk.js +0 -1
- package/dist/scripts/49.chunk.js +0 -759
- package/dist/scripts/49.chunk.js.map +0 -1
- package/dist/scripts/5-19ce45d023.chunk.js +0 -1
- package/dist/scripts/5.chunk.js +0 -40
- package/dist/scripts/5.chunk.js.map +0 -1
- package/dist/scripts/50-a1439e0fa7.chunk.js +0 -1
- package/dist/scripts/50.chunk.js +0 -528
- package/dist/scripts/50.chunk.js.map +0 -1
- package/dist/scripts/51-cad32e2046.chunk.js +0 -1
- package/dist/scripts/51.chunk.js +0 -932
- package/dist/scripts/51.chunk.js.map +0 -1
- package/dist/scripts/52-1d3e8eb21e.chunk.js +0 -1
- package/dist/scripts/52.chunk.js +0 -408
- package/dist/scripts/52.chunk.js.map +0 -1
- package/dist/scripts/53-5e80e33e98.chunk.js +0 -1
- package/dist/scripts/53.chunk.js +0 -754
- package/dist/scripts/53.chunk.js.map +0 -1
- package/dist/scripts/54.chunk.js +0 -681
- package/dist/scripts/54.chunk.js.map +0 -1
- package/dist/scripts/55-4c8d7b57f9.chunk.js +0 -1
- package/dist/scripts/55.chunk.js +0 -645
- package/dist/scripts/55.chunk.js.map +0 -1
- package/dist/scripts/56-1d96fdfcd3.chunk.js +0 -1
- package/dist/scripts/56.chunk.js +0 -346
- package/dist/scripts/56.chunk.js.map +0 -1
- package/dist/scripts/57-c17cdf728f.chunk.js +0 -1
- package/dist/scripts/57.chunk.js +0 -422
- package/dist/scripts/57.chunk.js.map +0 -1
- package/dist/scripts/58-ce34e558f4.chunk.js +0 -1
- package/dist/scripts/58.chunk.js +0 -437
- package/dist/scripts/58.chunk.js.map +0 -1
- package/dist/scripts/59.chunk.js +0 -342
- package/dist/scripts/59.chunk.js.map +0 -1
- package/dist/scripts/6-e9685801b5.chunk.js +0 -1
- package/dist/scripts/6.chunk.js +0 -484
- package/dist/scripts/6.chunk.js.map +0 -1
- package/dist/scripts/60-8d73b65e4e.chunk.js +0 -1
- package/dist/scripts/60.chunk.js +0 -254
- package/dist/scripts/60.chunk.js.map +0 -1
- package/dist/scripts/61-bd804db13e.chunk.js +0 -1
- package/dist/scripts/61.chunk.js +0 -318
- package/dist/scripts/61.chunk.js.map +0 -1
- package/dist/scripts/62-827229b727.chunk.js +0 -1
- package/dist/scripts/62.chunk.js +0 -142
- package/dist/scripts/62.chunk.js.map +0 -1
- package/dist/scripts/63-7251ac44d0.chunk.js +0 -1
- package/dist/scripts/63.chunk.js +0 -147
- package/dist/scripts/63.chunk.js.map +0 -1
- package/dist/scripts/64-33ca5259e4.chunk.js +0 -1
- package/dist/scripts/64.chunk.js +0 -439
- package/dist/scripts/64.chunk.js.map +0 -1
- package/dist/scripts/65-50d52bf3df.chunk.js +0 -1
- package/dist/scripts/65.chunk.js +0 -582
- package/dist/scripts/65.chunk.js.map +0 -1
- package/dist/scripts/66-fe41a3b54a.chunk.js +0 -1
- package/dist/scripts/66.chunk.js +0 -442
- package/dist/scripts/66.chunk.js.map +0 -1
- package/dist/scripts/67-1508455eb9.chunk.js +0 -1
- package/dist/scripts/67.chunk.js +0 -295
- package/dist/scripts/67.chunk.js.map +0 -1
- package/dist/scripts/68-21e8520126.chunk.js +0 -1
- package/dist/scripts/68.chunk.js +0 -165
- package/dist/scripts/68.chunk.js.map +0 -1
- package/dist/scripts/69-4d26485024.chunk.js +0 -1
- package/dist/scripts/69.chunk.js +0 -248
- package/dist/scripts/69.chunk.js.map +0 -1
- package/dist/scripts/7-d0085fdf2e.chunk.js +0 -1
- package/dist/scripts/7.chunk.js +0 -309
- package/dist/scripts/7.chunk.js.map +0 -1
- package/dist/scripts/70-8e1d03a7d8.chunk.js +0 -1
- package/dist/scripts/70.chunk.js +0 -207
- package/dist/scripts/70.chunk.js.map +0 -1
- package/dist/scripts/71-b835514c89.chunk.js +0 -1
- package/dist/scripts/71.chunk.js +0 -237
- package/dist/scripts/71.chunk.js.map +0 -1
- package/dist/scripts/72-23d6083900.chunk.js +0 -1
- package/dist/scripts/72.chunk.js +0 -331
- package/dist/scripts/72.chunk.js.map +0 -1
- package/dist/scripts/73.chunk.js +0 -404
- package/dist/scripts/73.chunk.js.map +0 -1
- package/dist/scripts/74.chunk.js +0 -301
- package/dist/scripts/74.chunk.js.map +0 -1
- package/dist/scripts/75.chunk.js +0 -231
- package/dist/scripts/75.chunk.js.map +0 -1
- package/dist/scripts/76.chunk.js +0 -157
- package/dist/scripts/76.chunk.js.map +0 -1
- package/dist/scripts/77.chunk.js +0 -307
- package/dist/scripts/77.chunk.js.map +0 -1
- package/dist/scripts/78.chunk.js +0 -249
- package/dist/scripts/78.chunk.js.map +0 -1
- package/dist/scripts/79.chunk.js +0 -282
- package/dist/scripts/79.chunk.js.map +0 -1
- package/dist/scripts/8-0ebd446b65.chunk.js +0 -1
- package/dist/scripts/8.chunk.js +0 -307
- package/dist/scripts/8.chunk.js.map +0 -1
- package/dist/scripts/80.chunk.js +0 -308
- package/dist/scripts/80.chunk.js.map +0 -1
- package/dist/scripts/81.chunk.js +0 -366
- package/dist/scripts/81.chunk.js.map +0 -1
- package/dist/scripts/82.chunk.js +0 -314
- package/dist/scripts/82.chunk.js.map +0 -1
- package/dist/scripts/83.chunk.js +0 -328
- package/dist/scripts/83.chunk.js.map +0 -1
- package/dist/scripts/84.chunk.js +0 -313
- package/dist/scripts/84.chunk.js.map +0 -1
- package/dist/scripts/85.chunk.js +0 -291
- package/dist/scripts/85.chunk.js.map +0 -1
- package/dist/scripts/86.chunk.js +0 -119
- package/dist/scripts/86.chunk.js.map +0 -1
- package/dist/scripts/87.chunk.js +0 -219
- package/dist/scripts/87.chunk.js.map +0 -1
- package/dist/scripts/88.chunk.js +0 -194
- package/dist/scripts/88.chunk.js.map +0 -1
- package/dist/scripts/89.chunk.js +0 -522
- package/dist/scripts/89.chunk.js.map +0 -1
- package/dist/scripts/9-0476e7c063.chunk.js +0 -1
- package/dist/scripts/9.chunk.js +0 -222
- package/dist/scripts/9.chunk.js.map +0 -1
- package/dist/scripts/90.chunk.js +0 -337
- package/dist/scripts/90.chunk.js.map +0 -1
- package/dist/scripts/91.chunk.js +0 -131
- package/dist/scripts/91.chunk.js.map +0 -1
- package/dist/scripts/92.chunk.js +0 -266
- package/dist/scripts/92.chunk.js.map +0 -1
- package/dist/scripts/bundle-1efd9147e1.min.js +0 -1
- package/dist/scripts/bundle-486bb6fa60.min.js +0 -1
- package/dist/scripts/bundle-511dc1956b.min.js +0 -1
- package/dist/scripts/bundle-8468900bf9.min.js +0 -1
- package/dist/scripts/bundle.js +0 -57527
- package/dist/scripts/bundle.js.map +0 -1
package/dist/scripts/36.chunk.js
DELETED
|
@@ -1,335 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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":"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","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":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[37],{1084:function(e,t,n){"use strict";n.r(t);var o=n(1),i=n(3),r=n(2),a=n(5),s=n(24),l=n(4),c=n(31),u=n(11);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=y(e);if(t){var i=y(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(n,e);var t=h(n);function n(){return f(this,n),t.apply(this,arguments)}return n}(r.a.Model),v=n(197),b=n(654),w=n(86),S=n(119),k=n(0),O=n(667),M=n(674),T=n(159),x=n(175),E=n(6),C=n(7),R=n(23),P=n(796),_=n(118),V=n(662),N=n(934),j=n.n(N),D=n(935),I=n.n(D);function L(e){return(L="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){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function B(e,t){return(B=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=H(e);if(t){var i=H(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return U(this,n)}}function U(e,t){return!t||"object"!==L(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function H(e){return(H=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var q,J=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&B(e,t)}(s,e);var t,n,o,a=F(s);function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),a.call(this,e)}return t=s,(n=[{key:"regions",value:function(){return{ratingSelect:{el:".rating-select-region",replaceElement:!0}}}},{key:"getMetadataValue",value:function(){return this.options.metadataType===_.e.BroadcastDate?this.options.metadataValue?R(this.options.metadataValue).format(E.p.FULL_YEAR):i.a.getPhrase(this.lang,"noMetadataValue"):this.options.metadataValue instanceof r.a.Collection?this.options.metadataValue.length?this.options.metadataValue.map((function(e){return e.get("name")})).join(", "):i.a.getPhrase(this.lang,"noMetadataValue"):this.options.metadataValue||i.a.getPhrase(this.lang,"noMetadataValue")}},{key:"getSuggestionPlaceholder",value:function(){return this.options.metadataType===_.e.Other?i.a.getPhrase(this.lang,"otherSuggestionPlaceholder"):i.a.getPhrase(this.lang,"suggestionPlaceholder",{metadataType:V.i.translateMetadataName(this.options.metadataType).toLowerCase()})}},{key:"renderRatingSelect",value:function(){this.options.ratingValidationMessage?this.getUI("ratingValidation").text(this.options.ratingValidationMessage).attr("style","display: block;"):this.getUI("ratingValidation").hide(),this.options.metadataType===_.e.Rating&&this.showChildView("ratingSelect",new P.a({model:this.options.currentRating,collection:this.options.ratings,parentChannelName:this.options.channelName,hideHeaderText:!0,hideRemove:!0}))}},{key:"viewOptions",value:function(){return{styles:I.a,metadataValue:this.getMetadataValue(),useRatingSelect:this.options.metadataType===_.e.Rating,isOtherType:this.options.metadataType===_.e.Other,metadataType:V.i.translateMetadataName(this.options.metadataType).toLowerCase(),suggestionPlaceholder:this.getSuggestionPlaceholder()}}},{key:"onRender",value:function(){this.renderRatingSelect(),this.stickit(),C.Validation.bind(this)}},{key:"onDestroy",value:function(){this.unstickit(),C.Validation.unbind(this)}},{key:"name",get:function(){return"SuggestEditComponent"}},{key:"template",get:function(){return j.a}},{key:"tagName",get:function(){return"form"}},{key:"className",get:function(){return"mt-3"}},{key:"lang",get:function(){return"libraryEditor.suggestEdit"}},{key:"bindings",get:function(){return{"[name=suggestion]":{observe:"suggestion",setOptions:{validate:!0}},"[name=reason]":{observe:"reason",setOptions:{validate:!0}}}}},{key:"elements",get:function(){return{ratingValidation:".rating-form-feedback"}}}])&&A(t.prototype,n),o&&A(t,o),s}(r.a.Component);!function(e){e[e.Email=0]="Email"}(q||(q={}));var z=n(101),G=n(43),K=Object.assign(Object.assign({},z.a),{createSuggestEditNotification:function(e){return{_type:G.a.SuggestEdit,groupId:e.groupId,receiverId:0,countryCode:e.countryCode,channels:[q.Email],data:{video:e.video,user:e.user,property:e.property,suggestion:e.suggestion,reason:e.reason,currentValue:e.currentValue}}}}),W=n(936),$=n.n(W);function Q(e){return(Q="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 Y(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function X(e,t){return(X=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=te(e);if(t){var i=te(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return ee(this,n)}}function ee(e,t){return!t||"object"!==Q(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 te(e){return(te=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"SuggestAnEditView",(function(){return ne}));var ne=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&X(e,t)}(f,e);var t,n,r,d=Z(f);function f(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),d.call(this,e)}return t=f,(n=[{key:"initialize",value:function(){this.getViewModel(),this.videoDataService=a.a.getInstance(k.g.Video,this),this.ratingsDataService=a.a.getInstance(k.g.Ratings,this),this.notificationDataService=a.a.getInstance(k.g.Notifications,this),this.selectedMetadata=new m,this.metadataCollection=this.getMetadataCollection(),this.bindListeners()}},{key:"regions",value:function(){return{dropdown:{el:".metadata-dropdown-region",replaceElement:!1},suggestEdit:{el:".suggest-edit-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"select:option:selected",this.onMetadataSelect),this.listenTo(this.channelName,"select:rating",this.onSelectRating),this.listenTo(k.e.VIDEO,"".concat(k.f.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(k.e.NOTIFICATIONS,"".concat(k.f.SUGGEST_EDIT,":error"),this.onError)}},{key:"onSubmit",value:function(e){var t=this;if(this.validateForm()){this.spinnerModel.set(T.c.ShowSpinner,!0);var n=this.selectedMetadata.get("metadataType")===_.e.Rating?this.viewModel.get("ratingSuggestion"):this.viewModel.get("suggestion"),o=this.config.get("suggestEditMetadataGroupId"),i=K.createSuggestEditNotification({groupId:o,countryCode:this.currentUser.get("countryCode"),video:this.model.toJSON(),user:this.currentUser.toJSON(),property:this.selectedMetadata.get("metadataType").toLowerCase(),suggestion:n,reason:this.viewModel.get("reason"),currentValue:this.selectedMetadata.get("metadataValue")});this.notificationDataService.suggestEdit(i,(function(){t.triggerMethod("hide"),t.spinnerModel.set(T.c.ShowSpinner,!1),t.spinnerModel.set(T.c.Disabled,!0)})),this.logAction(),this.viewModel.clear()}}},{key:"onError",value:function(){this.spinnerModel.set(T.c.ShowSpinner,!1)}},{key:"onMetadataSelect",value:function(e){this.selectMetadata(e),this.renderSuggestEdit()}},{key:"onSelectRating",value:function(e){this.viewModel.set("ratingSuggestion",e.get("name")),this.renderSuggestEdit()}},{key:"selectMetadata",value:function(e){this.spinnerModel.set(T.c.Disabled,!1),u.c.setSelected(e.get("id"),this.metadataCollection),this.selectedMetadata.set({metadataType:e.get("name"),metadataValue:e.get("name")!==_.e.Other?this.model.get(e.get("property")):null}),e.get("name")!==_.e.Rating&&this.viewModel.set("ratingSuggestion","")}},{key:"getMetadataCollection",value:function(){return new O.a(Object.keys(_.f).map((function(e){return _.f[e]})))}},{key:"getMetadataByType",value:function(e){return this.metadataCollection.findWhere({name:e})}},{key:"getViewModel",value:function(){this.viewModel=s.a.get(this.viewModelName),this.viewModel.addValidation(V.h)}},{key:"validateForm",value:function(){this.renderSuggestEdit(),this.viewModel.validate();var e=this.viewModel.toJSON(),t=e.reason,n=e.suggestion;return!(this.getRatingValidationMessage()||this.selectedMetadata.get("metadataType")!==_.e.Rating&&!n||!t)}},{key:"getRatingValidationMessage",value:function(){if(this.selectedMetadata.get("metadataType")!==_.e.Rating)return"";var e=this.selectedMetadata.get("metadataValue"),t=this.viewModel.get("ratingSuggestion");return t?e===t?V.g.original():"":V.g.empty()}},{key:"checkPreselection",value:function(){if(!this.selectedMetadata.get("metadataType")&&this.options.metadata&&this.dataFetched()){var e=this.getMetadataByType(this.options.metadata);this.selectMetadata(e)}}},{key:"logAction",value:function(){var e=u.x.getSourceTypes(this.model);e=o.filter(e,(function(e){return e!==E.h.CustomLibrary}));var t={videoSourceTypes:o.sortBy(o.unique(e),(function(e){return e})).join(","),videoId:this.model.get("id"),metadataProperty:this.selectedMetadata.get("metadataType"),metadataPropertyValue:this.selectedMetadata.get("metadataValue"),suggestion:this.viewModel.get("suggestion"),reason:this.viewModel.get("reason")};c.a.logUserAction(t,{descriptor:l.p.Edit,location:l.k.Popup,actionType:l.q.Suggest,entity:l.e.Video})}},{key:"dataFetched",value:function(){return!!this.model&&!!this.ratingCollection}},{key:"renderMetadataDropdown",value:function(){this.showChildView("dropdown",new M.a({collection:V.i.translateMetadataCollectionNames(this.metadataCollection),channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"select:option:click"},placeholderText:this.selectedMetadata.get("metadataType")||i.a.getPhrase(this.lang,"dropdownPlaceholder"),analyticsHelper:c.a}))}},{key:"renderSuggestEdit",value:function(){this.selectedMetadata.get("metadataType")&&this.showChildView("suggestEdit",new J({model:this.viewModel,channelName:this.channelName,ratings:this.ratingCollection,currentRating:this.viewModel.get("ratingSuggestion")?new v.a(this.ratingCollection.findWhere({name:this.viewModel.get("ratingSuggestion")})):null,metadataType:this.selectedMetadata.get("metadataType"),metadataValue:this.selectedMetadata.get("metadataValue"),ratingValidationMessage:this.getRatingValidationMessage()}))}},{key:"onBeforeRender",value:function(){this.dataFetched()||(this.model=this.videoDataService.getVideo(this.options.videoId),this.ratingCollection=this.ratingsDataService.getAllRatings()),this.checkPreselection()}},{key:"viewOptions",value:function(){return{dataFetched:this.dataFetched(),spinnerEl:u.q.getSpinner({size:u.r.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.dataFetched()&&(this.renderMetadataDropdown(),this.renderSuggestEdit())}},{key:"name",get:function(){return"SuggestAnEditView"}},{key:"template",get:function(){return $.a}},{key:"tagName",get:function(){return"form"}},{key:"className",get:function(){return"form-group"}},{key:"lang",get:function(){return"libraryEditor.suggestAnEdit"}},{key:"title",get:function(){return i.a.getPhrase(this.lang,"title")}},{key:"channelName",get:function(){return u.k.generateUniqueChannelName(this)}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.options.videoId)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:x.f,title:i.a.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new b.a,channelName:this.channelName,buttonText:i.a.getPhrase(this.lang,"submit"),onClick:function(t){return e.onSubmit(t)}}}]}},{key:"requiredResources",get:function(){return{config:S.b.config,currentUser:w.b.currentUser}}}])&&Y(t.prototype,n),r&&Y(t,r),f}(r.a.View)},654:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var o=n(2),i=n(159);function r(e){return(r="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 s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e,t){return(l=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 n,o=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(u,e);var t,n,o,r=c(u);function u(){return a(this,u),r.apply(this,arguments)}return t=u,(n=[{key:"defaults",value:function(){return e={},t=i.c.Disabled,n=!0,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}}])&&s(t.prototype,n),o&&s(t,o),u}(o.a.Model)},659:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var o=n(1),i=n(2),r=n(178);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e,t){return(l=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 n,o=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(u,e);var t,n,i,a=c(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),a.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,o=e.extraClasses,i="dropdown-menu-".concat(n);return o&&(i="".concat(i," ").concat(o)),i}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".active");if(e.length){var t=this.$el.scrollTop()+e.position().top,n=.5*this.$el.height()+.5*e.height();this.$el.scrollTop(t-n)}}},{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"childView",get:function(){return r.a}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return o.extend(e,this.options.childOptions)}}])&&s(t.prototype,n),i&&s(t,i),u}(i.a.ComponentCollection)},674:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n(1),i=n(7),r=n(2),a=n(659),s=n(11),l=n(675),c=n.n(l),u=n(676),d=n.n(u);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(u,e);var t,n,r,l=g(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=l.call(this,e)).selectSearch="",t.sameCharIndex=1,t.optionStep=1,t}return t=u,(n=[{key:"initialize",value:function(){this.setModel(),this.bindListeners()}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-region",replaceElement:!0}}}},{key:"events",value:function(){return{keydown:"onKeydown","shown.bs.dropdown":"onShowDropdown"}}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,this.options.childOptions.eventName,this.onSelect)}},{key:"onShowDropdown",value:function(e){i.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onKeydown",value:function(e){38===e.keyCode||40===e.keyCode?this.onArrowKeyDown(e):13===e.keyCode?this.render():this.onType(e),i.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onArrowKeyDown",value:function(e){s.c.getSelected(this.collection)?this.optionStep=1:this.optionStep=0;var t=this.getNextModel(e.keyCode);for(t||(s.c.deselectAll(this.collection),t=this.getNextModel(e.keyCode));this.isDisabled(t);)this.optionStep++,t=this.getNextModel(e.keyCode);this.onSelect(t)}},{key:"onType",value:function(e){if(1===e.key.toString().length){var t=this.getModelMatch(e);t&&this.onSelect(t),this.runTimer()}}},{key:"onSelect",value:function(e){this.isDisabled(e)||(s.c.setSelected(e.get("id"),this.collection),this.setModel(),this.getUI("dropdownToggle").text(this.getButtonText()),i.Radio.channel(this.options.channelName).trigger("select:option:selected",e))}},{key:"setModel",value:function(){this.model=s.c.getSelected(this.collection)}},{key:"getNextModel",value:function(e){var t,n=s.c.getSelected(this.collection)||this.collection.first(),o=this.collection.indexOf(n);return(t=38===e?this.collection.at(o-this.optionStep):this.collection.at(o+this.optionStep))||(s.c.deselectAll(this.collection),t=this.collection.first(),this.optionStep=0),t}},{key:"getModelMatch",value:function(e){var t,n=this;return 1===this.selectSearch.length&&this.selectSearch===e.key?t=this.handleSameCharIndex(e.key):(this.selectSearch+=e.key,this.sameCharIndex=1),t||(t=o.find(this.collection.models,(function(e){return e.get(n.options.displayProperty).toLowerCase().slice(0,n.selectSearch.length).includes(n.selectSearch.toLowerCase())}))),t}},{key:"handleSameCharIndex",value:function(e){var t=this,n=o.filter(this.collection.models,(function(n){return n.get(t.options.displayProperty).toLowerCase().slice(0,1)===e}));if(n.length>1){var i=n[this.sameCharIndex];return i||(i=o.first(n),this.sameCharIndex=0),this.sameCharIndex++,i}return o.first(n)}},{key:"runTimer",value:function(){var e=this;this.scopedTimerIndex&&clearTimeout(this.scopedTimerIndex),this.scopedTimerIndex=window.setTimeout((function(){e.selectSearch=""}),500)}},{key:"isDisabled",value:function(e){return!!e.get("divider")||!!o.isFunction(this.options.childOptions.isDisabled)&&this.options.childOptions.isDisabled.apply(this,arguments)}},{key:"getButtonText",value:function(){if(this.options.disabled)return this.options.noOptionsText;var e=s.c.getSelected(this.collection);return e&&e.get(this.options.displayProperty)||this.options.placeholderText}},{key:"viewOptions",value:function(){return{styles:d.a,inputName:this.options.inputName,disabled:this.options.disabled,placeholderText:this.getButtonText()}}},{key:"onRender",value:function(){this.showChildView("dropdown",new a.a({collection:this.collection,channelName:this.options.channelName,childOptions:o.extend(this.options.childOptions),displayOptions:{extraClasses:"w-100 ".concat(d.a.dropdownMenu)},analyticsHelper:this.options.analyticsHelper}))}},{key:"name",get:function(){return"SelectComponent"}},{key:"template",get:function(){return c.a}},{key:"defaults",get:function(){return{displayProperty:"name"}}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-toggle"}}}])&&p(t.prototype,n),r&&p(t,r),u}(r.a.Component)},675:function(e,t,n){var o=n(8);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.disabled:r,t))},3:function(e,t,n,o,i){return" disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,s=e.escapeExpression,l=null!=t?t:e.nullContext||{};return'<button \r\n class="dropdown-toggle form-control btn-block text-left position-relative '+s(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.selectButton:r,t))+" "+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.disabled:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'" \r\n type="button" \r\n id="dropdownMenuButton" \r\n data-toggle="dropdown" \r\n aria-haspopup="true" \r\n aria-expanded="false"\r\n '+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.disabled:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+' \r\n name="'+s(a(null!=(r=null!=t?t.options:t)?r.inputName:r,t))+'"\r\n >\r\n '+s(a(null!=(r=null!=t?t.options:t)?r.placeholderText:r,t))+'\r\n</button>\r\n<div class="dropdown-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},676:function(e,t,n){e.exports={dropdownMenu:"_2RaQu",selectButton:"_2xGqi",disabled:"_15kWr"}},934:function(e,t,n){var o=n(8);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.escapeExpression,s=e.lambda;return'<p class="font-weight-bold mb-0">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"currentType",{name:"lang",hash:{metadataType:null!=(r=null!=t?t.options:t)?r.metadataType:r},data:i}))+'</p>\r\n<p class="mb-3 '+a(s(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.metadataValue:r,t))+'">'+(null!=(r=s(null!=(r=null!=t?t.options:t)?r.metadataValue:r,t))?r:"")+"</p>\r\n"},3:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return' <textarea\r\n id="suggest-edit"\r\n placeholder="'+e.escapeExpression(e.lambda(null!=(r=null!=t?t.options:t)?r.suggestionPlaceholder:r,t))+'"\r\n class="form-control"\r\n name="suggestion"\r\n ></textarea>\r\n <div class="form-feedback"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression;return(null!=(r=n.unless.call(a,null!=(r=null!=t?t.options:t)?r.isOtherType:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'\r\n<div class="dropdown-divider"></div>\r\n\r\n<div class="form-group">\r\n <label for="suggest-edit" class="font-weight-bold">'+l((n.lang||t&&t.lang||s).call(a,"suggestionSubheading",{name:"lang",hash:{},data:i}))+'</label>\r\n <div class="rating-select-region"></div>\r\n <div class="rating-form-feedback invalid-feedback"></div>\r\n'+(null!=(r=n.unless.call(a,null!=(r=null!=t?t.options:t)?r.useRatingSelect:r,{name:"unless",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+'</div>\r\n\r\n<div class="form-group">\r\n <label for="reason-for-edit" class="font-weight-bold">'+l((n.lang||t&&t.lang||s).call(a,"reasoningSubheading",{name:"lang",hash:{},data:i}))+'</label>\r\n <textarea\r\n id="reason-for-edit"\r\n placeholder="'+l((n.lang||t&&t.lang||s).call(a,"reasoningPlaceholder",{name:"lang",hash:{},data:i}))+'"\r\n class="form-control"\r\n name="reason"\r\n ></textarea>\r\n <div class="form-feedback"></div>\r\n</div>'},useData:!0})},935:function(e,t,n){e.exports={metadataValue:"_3nkrW"}},936:function(e,t,n){var o=n(8);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression;return"<p>"+s((n.lang||t&&t.lang||a).call(r,"guidelines",{name:"lang",hash:{},data:i}))+'</p>\r\n<p class="font-weight-bold mb-1">'+s((n.lang||t&&t.lang||a).call(r,"dropdownHeading",{name:"lang",hash:{},data:i}))+'</p>\r\n<div class="metadata-dropdown-region position-relative"></div>\r\n<div class="suggest-edit-region"></div>\r\n'},3:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return(null!=(r=e.lambda(null!=(r=null!=t?t.options:t)?r.spinnerEl:r,t))?r:"")+"\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.dataFetched:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:""},useData:!0})}}]);
|