@clickview/library-editor 1.1.45-rc.3 → 1.1.46-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +3 -3
- package/dist/css/{library-editor-app-9c24416a39.css → library-editor-app-d4e455dc19.css} +1 -1
- package/dist/scripts/{0-2f5a66d67a.chunk.js → 0-39b4264c40.chunk.js} +1 -1
- package/dist/scripts/{1-6e8dcc5ca2.chunk.js → 1-c2f2ee50e1.chunk.js} +1 -1
- package/dist/scripts/{10-a4ab5eff50.chunk.js → 10-74b6a07baa.chunk.js} +1 -1
- package/dist/scripts/{11-3dec7d2c7e.chunk.js → 11-f9ca151e61.chunk.js} +1 -1
- package/dist/scripts/{12-bb9475eac6.chunk.js → 12-a961dabbb5.chunk.js} +1 -1
- package/dist/scripts/{13-de5b2bb606.chunk.js → 13-31b759d4dc.chunk.js} +1 -1
- package/dist/scripts/{14-c671e8bc46.chunk.js → 14-28ab8d5025.chunk.js} +1 -1
- package/dist/scripts/{15-7de7fc2b35.chunk.js → 15-e326770074.chunk.js} +1 -1
- package/dist/scripts/{16-382f0c41cf.chunk.js → 16-33bc415c72.chunk.js} +1 -1
- package/dist/scripts/{17-1eb8479302.chunk.js → 17-4d85362caa.chunk.js} +1 -1
- package/dist/scripts/{2-7cc9176e8a.chunk.js → 2-6334a56d75.chunk.js} +1 -1
- package/dist/scripts/{20-d3444fe825.chunk.js → 20-be33eea416.chunk.js} +1 -1
- package/dist/scripts/{21-df15d4d827.chunk.js → 21-d07eac93af.chunk.js} +1 -1
- package/dist/scripts/{22-5d9b14f0b0.chunk.js → 22-f61848d852.chunk.js} +1 -1
- package/dist/scripts/{23-7922bfa9d3.chunk.js → 23-883535facb.chunk.js} +1 -1
- package/dist/scripts/{24-a675687323.chunk.js → 24-28d1ee1ddb.chunk.js} +1 -1
- package/dist/scripts/{25-a1259842aa.chunk.js → 25-36f6c0f04c.chunk.js} +1 -1
- package/dist/scripts/{26-bbf1c17cb5.chunk.js → 26-41d73fb1cc.chunk.js} +1 -1
- package/dist/scripts/{27-eff11570d8.chunk.js → 27-9faadbc5ad.chunk.js} +1 -1
- package/dist/scripts/{28-285eb18d9a.chunk.js → 28-1abda5ddcd.chunk.js} +1 -1
- package/dist/scripts/{29-b7d2b7cde1.chunk.js → 29-e1b5688929.chunk.js} +1 -1
- package/dist/scripts/{3-aa8256fe40.chunk.js → 3-c468e5f805.chunk.js} +1 -1
- package/dist/scripts/{30-6fdc3a1e11.chunk.js → 30-4331611384.chunk.js} +1 -1
- package/dist/scripts/{31-4a94075827.chunk.js → 31-f594f549df.chunk.js} +1 -1
- package/dist/scripts/{32-7e2b293f23.chunk.js → 32-b5a8e7c2a3.chunk.js} +1 -1
- package/dist/scripts/{33-8de738bfb9.chunk.js → 33-b88d856ab0.chunk.js} +1 -1
- package/dist/scripts/{34-7d112464d3.chunk.js → 34-7fcaaeddea.chunk.js} +1 -1
- package/dist/scripts/{35-e850443dff.chunk.js → 35-e210da4f12.chunk.js} +1 -1
- package/dist/scripts/{36-a480ba6fea.chunk.js → 36-524bf056e4.chunk.js} +1 -1
- package/dist/scripts/{37-43b5d8c3af.chunk.js → 37-0336031536.chunk.js} +1 -1
- package/dist/scripts/{38-1b53bc0747.chunk.js → 38-1aa8ca825c.chunk.js} +1 -1
- package/dist/scripts/{39-674f9ca697.chunk.js → 39-faf8a59822.chunk.js} +1 -1
- package/dist/scripts/{4-9915802afa.chunk.js → 4-4c62127fb2.chunk.js} +1 -1
- package/dist/scripts/{40-4f0571b8a2.chunk.js → 40-9b473a87c2.chunk.js} +1 -1
- package/dist/scripts/{41-5ed5f9712e.chunk.js → 41-20fe91435b.chunk.js} +1 -1
- package/dist/scripts/{42-c280d7752c.chunk.js → 42-143ac3914b.chunk.js} +1 -1
- package/dist/scripts/{43-c0a7d44737.chunk.js → 43-ce726c3839.chunk.js} +1 -1
- package/dist/scripts/{44-b04dab25e6.chunk.js → 44-fc7c025c5f.chunk.js} +1 -1
- package/dist/scripts/{45-a6b9650b26.chunk.js → 45-1e84cd6639.chunk.js} +1 -1
- package/dist/scripts/{46-319d735448.chunk.js → 46-26b40a870e.chunk.js} +1 -1
- package/dist/scripts/{47-87b93cae7d.chunk.js → 47-f03e03252c.chunk.js} +1 -1
- package/dist/scripts/{48-92ee4ae7a7.chunk.js → 48-c9a61fd1e3.chunk.js} +1 -1
- package/dist/scripts/{49-5c6fe71808.chunk.js → 49-2879e96eed.chunk.js} +1 -1
- package/dist/scripts/{5-5341544820.chunk.js → 5-5d2e1c890e.chunk.js} +1 -1
- package/dist/scripts/{50-38186c72b7.chunk.js → 50-b76b6c7d52.chunk.js} +1 -1
- package/dist/scripts/{51-37749b146e.chunk.js → 51-c252822f95.chunk.js} +1 -1
- package/dist/scripts/{52-67c9e2601b.chunk.js → 52-ecde4fecf3.chunk.js} +1 -1
- package/dist/scripts/{53-16ef9ed0cb.chunk.js → 53-3ab3b83088.chunk.js} +1 -1
- package/dist/scripts/{54-8d377c5aff.chunk.js → 54-0e921db390.chunk.js} +1 -1
- package/dist/scripts/{55-2360f690da.chunk.js → 55-bd9dc838cd.chunk.js} +1 -1
- package/dist/scripts/{56-d6e13d4afb.chunk.js → 56-6528a68474.chunk.js} +1 -1
- package/dist/scripts/{57-d31643829d.chunk.js → 57-3477d4f9b5.chunk.js} +1 -1
- package/dist/scripts/{58-21714dd15f.chunk.js → 58-2c62df5dbd.chunk.js} +1 -1
- package/dist/scripts/{59-b36d9e7be9.chunk.js → 59-13ade58ba1.chunk.js} +1 -1
- package/dist/scripts/{6-19be7f0d3b.chunk.js → 6-1fdfa2191a.chunk.js} +1 -1
- package/dist/scripts/{60-86a780fb81.chunk.js → 60-f36c57ef33.chunk.js} +1 -1
- package/dist/scripts/{61-897e3aacfb.chunk.js → 61-24acf3201f.chunk.js} +1 -1
- package/dist/scripts/{62-35425b2e29.chunk.js → 62-d869eccf9a.chunk.js} +1 -1
- package/dist/scripts/{63-714e5c1ee7.chunk.js → 63-d35e9ced47.chunk.js} +1 -1
- package/dist/scripts/{64-6ee45d0114.chunk.js → 64-dfc3cd19ee.chunk.js} +1 -1
- package/dist/scripts/{65-4041af23f8.chunk.js → 65-b66a158393.chunk.js} +1 -1
- package/dist/scripts/{66-1089ec4f34.chunk.js → 66-89b577d70f.chunk.js} +1 -1
- package/dist/scripts/{67-c03fd65497.chunk.js → 67-83b2b3ad1a.chunk.js} +1 -1
- package/dist/scripts/{68-53e4b905db.chunk.js → 68-452e0327d9.chunk.js} +1 -1
- package/dist/scripts/{69-6e315af542.chunk.js → 69-0491a8faf5.chunk.js} +1 -1
- package/dist/scripts/{7-8626ad1134.chunk.js → 7-13b4886b73.chunk.js} +1 -1
- package/dist/scripts/{70-64d4bc3567.chunk.js → 70-62aff2ab4e.chunk.js} +1 -1
- package/dist/scripts/{71-979bac4e9f.chunk.js → 71-91b4d4dfcb.chunk.js} +1 -1
- package/dist/scripts/{72-be5d02bfe6.chunk.js → 72-4d851db609.chunk.js} +1 -1
- package/dist/scripts/{8-ed9e11c370.chunk.js → 8-55ea9736c8.chunk.js} +1 -1
- package/dist/scripts/{9-82e97cb80a.chunk.js → 9-175ec73a5d.chunk.js} +1 -1
- package/dist/scripts/bundle-804e733ae8.min.js +10 -0
- package/dist/scripts/polyfills-e2b8375767.min.js +1 -0
- package/package.json +3 -3
- package/typings/libs/trackjs.d.ts +3 -0
- package/dist/css/0-library-editor.chunk.css +0 -26
- package/dist/css/10-library-editor.chunk.css +0 -25
- package/dist/css/11-library-editor.chunk.css +0 -135
- package/dist/css/12-library-editor.chunk.css +0 -18
- package/dist/css/13-library-editor.chunk.css +0 -21
- package/dist/css/14-library-editor.chunk.css +0 -76
- package/dist/css/16-library-editor.chunk.css +0 -52
- package/dist/css/17-library-editor.chunk.css +0 -14
- package/dist/css/18-library-editor.chunk.css +0 -18
- package/dist/css/2-library-editor.chunk.css +0 -143
- package/dist/css/21-library-editor.chunk.css +0 -52
- package/dist/css/22-library-editor.chunk.css +0 -12
- package/dist/css/23-library-editor.chunk.css +0 -25
- package/dist/css/25-library-editor.chunk.css +0 -35
- package/dist/css/26-library-editor.chunk.css +0 -20
- package/dist/css/28-library-editor.chunk.css +0 -63
- package/dist/css/29-library-editor.chunk.css +0 -80
- package/dist/css/3-library-editor.chunk.css +0 -15
- package/dist/css/30-library-editor.chunk.css +0 -33
- package/dist/css/31-library-editor.chunk.css +0 -30
- package/dist/css/32-library-editor.chunk.css +0 -45
- package/dist/css/33-library-editor.chunk.css +0 -13
- package/dist/css/34-library-editor.chunk.css +0 -19
- package/dist/css/35-library-editor.chunk.css +0 -18
- package/dist/css/36-library-editor.chunk.css +0 -12
- package/dist/css/37-library-editor.chunk.css +0 -5
- package/dist/css/38-library-editor.chunk.css +0 -5
- package/dist/css/40-library-editor.chunk.css +0 -24
- package/dist/css/41-library-editor.chunk.css +0 -76
- package/dist/css/42-library-editor.chunk.css +0 -44
- package/dist/css/43-library-editor.chunk.css +0 -30
- package/dist/css/44-library-editor.chunk.css +0 -12
- package/dist/css/45-library-editor.chunk.css +0 -25
- package/dist/css/46-library-editor.chunk.css +0 -24
- package/dist/css/47-library-editor.chunk.css +0 -84
- package/dist/css/48-library-editor.chunk.css +0 -4
- package/dist/css/49-library-editor.chunk.css +0 -33
- package/dist/css/50-library-editor.chunk.css +0 -20
- package/dist/css/51-library-editor.chunk.css +0 -37
- package/dist/css/52-library-editor.chunk.css +0 -64
- package/dist/css/55-library-editor.chunk.css +0 -3
- package/dist/css/56-library-editor.chunk.css +0 -3
- package/dist/css/58-library-editor.chunk.css +0 -3
- package/dist/css/59-library-editor.chunk.css +0 -3
- package/dist/css/6-library-editor.chunk.css +0 -42
- package/dist/css/60-library-editor.chunk.css +0 -16
- package/dist/css/62-library-editor.chunk.css +0 -4
- package/dist/css/63-library-editor.chunk.css +0 -168
- package/dist/css/67-library-editor.chunk.css +0 -76
- package/dist/css/68-library-editor.chunk.css +0 -15
- package/dist/css/69-library-editor.chunk.css +0 -15
- package/dist/css/7-library-editor.chunk.css +0 -10
- package/dist/css/70-library-editor.chunk.css +0 -21
- package/dist/css/71-library-editor.chunk.css +0 -38
- package/dist/css/72-library-editor.chunk.css +0 -14
- package/dist/css/73-library-editor.chunk.css +0 -35
- package/dist/css/74-library-editor.chunk.css +0 -27
- package/dist/css/75-library-editor.chunk.css +0 -4
- package/dist/css/76-library-editor.chunk.css +0 -4
- package/dist/css/8-library-editor.chunk.css +0 -7
- package/dist/css/library-editor-app.css +0 -9291
- package/dist/scripts/0-298010e33a.chunk.js +0 -1
- package/dist/scripts/0-aaa3608203.chunk.js +0 -1
- package/dist/scripts/0.chunk.js +0 -64
- package/dist/scripts/1-323257c9af.chunk.js +0 -1
- package/dist/scripts/1-c690200bdb.chunk.js +0 -1
- package/dist/scripts/1.chunk.js +0 -75
- package/dist/scripts/10-466cc9683b.chunk.js +0 -1
- package/dist/scripts/10-abb1be81df.chunk.js +0 -1
- package/dist/scripts/10.chunk.js +0 -62
- package/dist/scripts/11-2356f4df85.chunk.js +0 -11
- package/dist/scripts/11-3ea7c37829.chunk.js +0 -11
- package/dist/scripts/11.chunk.js +0 -317
- package/dist/scripts/12-26db35cb21.chunk.js +0 -1
- package/dist/scripts/12-c76d68628d.chunk.js +0 -1
- package/dist/scripts/12.chunk.js +0 -56
- package/dist/scripts/13-a886aeba95.chunk.js +0 -1
- package/dist/scripts/13-ffdf6d7db4.chunk.js +0 -1
- package/dist/scripts/13.chunk.js +0 -25
- package/dist/scripts/14-377ed1af74.chunk.js +0 -1
- package/dist/scripts/14-d80e0ddb3c.chunk.js +0 -1
- package/dist/scripts/14.chunk.js +0 -272
- package/dist/scripts/15-3c4f92249c.chunk.js +0 -1
- package/dist/scripts/15-ac502fa5ec.chunk.js +0 -1
- package/dist/scripts/15.chunk.js +0 -35
- package/dist/scripts/16-082a975dbb.chunk.js +0 -1
- package/dist/scripts/16-783d3e4092.chunk.js +0 -1
- package/dist/scripts/16.chunk.js +0 -79
- package/dist/scripts/17-b13fb41bd3.chunk.js +0 -1
- package/dist/scripts/17-c66a2978ae.chunk.js +0 -1
- package/dist/scripts/17.chunk.js +0 -40
- package/dist/scripts/18.chunk.js +0 -40
- package/dist/scripts/19.chunk.js +0 -43
- package/dist/scripts/2-717e5953ab.chunk.js +0 -1
- package/dist/scripts/2-8e809f7467.chunk.js +0 -1
- package/dist/scripts/2.chunk.js +0 -33
- package/dist/scripts/20-6dd45d4f46.chunk.js +0 -1
- package/dist/scripts/20-fa33bbf746.chunk.js +0 -1
- package/dist/scripts/20.chunk.js +0 -18
- package/dist/scripts/21-4de1bd55b0.chunk.js +0 -1
- package/dist/scripts/21-dadfbacfbc.chunk.js +0 -1
- package/dist/scripts/21.chunk.js +0 -55
- package/dist/scripts/22-6d8b1c21c5.chunk.js +0 -1
- package/dist/scripts/22-d381139a29.chunk.js +0 -1
- package/dist/scripts/22.chunk.js +0 -47
- package/dist/scripts/23-30dffdfecf.chunk.js +0 -1
- package/dist/scripts/23-9f6cc70b65.chunk.js +0 -1
- package/dist/scripts/23.chunk.js +0 -47
- package/dist/scripts/24-7406b564f6.chunk.js +0 -1
- package/dist/scripts/24-b6ec3366cb.chunk.js +0 -1
- package/dist/scripts/24.chunk.js +0 -33
- package/dist/scripts/25-7faa89d5e3.chunk.js +0 -1
- package/dist/scripts/25-d7396e955d.chunk.js +0 -1
- package/dist/scripts/25.chunk.js +0 -25
- package/dist/scripts/26-2d98320aae.chunk.js +0 -1
- package/dist/scripts/26-c1fc20583b.chunk.js +0 -1
- package/dist/scripts/26.chunk.js +0 -25
- package/dist/scripts/27-31485d4b2a.chunk.js +0 -1
- package/dist/scripts/27-531532942a.chunk.js +0 -1
- package/dist/scripts/27.chunk.js +0 -10
- package/dist/scripts/28-b71b9ac0eb.chunk.js +0 -1
- package/dist/scripts/28-e85da77e0f.chunk.js +0 -1
- package/dist/scripts/28.chunk.js +0 -334
- package/dist/scripts/29-7be825c44d.chunk.js +0 -1
- package/dist/scripts/29-d980d0cbb5.chunk.js +0 -1
- package/dist/scripts/29.chunk.js +0 -202
- package/dist/scripts/3-151fc3d544.chunk.js +0 -1
- package/dist/scripts/3-eeb2d3d492.chunk.js +0 -1
- package/dist/scripts/3.chunk.js +0 -57
- package/dist/scripts/30-0e805630f4.chunk.js +0 -1
- package/dist/scripts/30-ad62e78d54.chunk.js +0 -1
- package/dist/scripts/30.chunk.js +0 -137
- package/dist/scripts/31-49c7676cff.chunk.js +0 -1
- package/dist/scripts/31-b1a679306a.chunk.js +0 -1
- package/dist/scripts/31.chunk.js +0 -113
- package/dist/scripts/32-042cda92ae.chunk.js +0 -1
- package/dist/scripts/32-e448ef7e82.chunk.js +0 -1
- package/dist/scripts/32.chunk.js +0 -115
- package/dist/scripts/33-36ddd95595.chunk.js +0 -1
- package/dist/scripts/33-b5cf4cfa6f.chunk.js +0 -1
- package/dist/scripts/33.chunk.js +0 -93
- package/dist/scripts/34-894005f525.chunk.js +0 -1
- package/dist/scripts/34-b206a218e9.chunk.js +0 -1
- package/dist/scripts/34.chunk.js +0 -63
- package/dist/scripts/35-9cdb858587.chunk.js +0 -1
- package/dist/scripts/35-d0137a950e.chunk.js +0 -1
- package/dist/scripts/35.chunk.js +0 -48
- package/dist/scripts/36-54624daa85.chunk.js +0 -1
- package/dist/scripts/36-846ab1a7ae.chunk.js +0 -1
- package/dist/scripts/36.chunk.js +0 -33
- package/dist/scripts/37-3314327a46.chunk.js +0 -1
- package/dist/scripts/37-6ffb96d64b.chunk.js +0 -1
- package/dist/scripts/37.chunk.js +0 -25
- package/dist/scripts/38-a18528bd5a.chunk.js +0 -1
- package/dist/scripts/38-d5dc6c775d.chunk.js +0 -1
- package/dist/scripts/38.chunk.js +0 -25
- package/dist/scripts/39-a4d5bf70ed.chunk.js +0 -1
- package/dist/scripts/39-d1b6c2defd.chunk.js +0 -1
- package/dist/scripts/39.chunk.js +0 -19
- package/dist/scripts/4-3516e54324.chunk.js +0 -1
- package/dist/scripts/4-adab2b69d4.chunk.js +0 -1
- package/dist/scripts/4.chunk.js +0 -26
- package/dist/scripts/40-264a3768ac.chunk.js +0 -1
- package/dist/scripts/40-bc2c6ae993.chunk.js +0 -1
- package/dist/scripts/40.chunk.js +0 -182
- package/dist/scripts/41-2084077727.chunk.js +0 -1
- package/dist/scripts/41-a4121258fa.chunk.js +0 -1
- package/dist/scripts/41.chunk.js +0 -175
- package/dist/scripts/42-16c4690eeb.chunk.js +0 -1
- package/dist/scripts/42-6b99047385.chunk.js +0 -1
- package/dist/scripts/42.chunk.js +0 -176
- package/dist/scripts/43-16efe31266.chunk.js +0 -1
- package/dist/scripts/43-f0a2833261.chunk.js +0 -1
- package/dist/scripts/43.chunk.js +0 -121
- package/dist/scripts/44-66950d4440.chunk.js +0 -1
- package/dist/scripts/44-dbc3731bcb.chunk.js +0 -1
- package/dist/scripts/44.chunk.js +0 -122
- package/dist/scripts/45-6dd66a0ec6.chunk.js +0 -1
- package/dist/scripts/45-bc07f6ed34.chunk.js +0 -1
- package/dist/scripts/45.chunk.js +0 -85
- package/dist/scripts/46-1188acdeb9.chunk.js +0 -1
- package/dist/scripts/46-b403f6be5b.chunk.js +0 -1
- package/dist/scripts/46.chunk.js +0 -78
- package/dist/scripts/47-2964488de7.chunk.js +0 -1
- package/dist/scripts/47-b482682154.chunk.js +0 -1
- package/dist/scripts/47.chunk.js +0 -70
- package/dist/scripts/48-48a409c875.chunk.js +0 -1
- package/dist/scripts/48-d924ddb603.chunk.js +0 -1
- package/dist/scripts/48.chunk.js +0 -88
- package/dist/scripts/49-3728b15a3c.chunk.js +0 -1
- package/dist/scripts/49-a76be85054.chunk.js +0 -1
- package/dist/scripts/49.chunk.js +0 -62
- package/dist/scripts/5-3fe2876121.chunk.js +0 -1
- package/dist/scripts/5-c3a1e51e77.chunk.js +0 -1
- package/dist/scripts/5.chunk.js +0 -10
- package/dist/scripts/50-06212d1dc8.chunk.js +0 -1
- package/dist/scripts/50-a20245292f.chunk.js +0 -1
- package/dist/scripts/50.chunk.js +0 -64
- package/dist/scripts/51-4e98f3c73f.chunk.js +0 -1
- package/dist/scripts/51-af622cc279.chunk.js +0 -1
- package/dist/scripts/51.chunk.js +0 -55
- package/dist/scripts/52-1ece273b07.chunk.js +0 -1
- package/dist/scripts/52-c988320a6f.chunk.js +0 -1
- package/dist/scripts/52.chunk.js +0 -47
- package/dist/scripts/53-1514119651.chunk.js +0 -1
- package/dist/scripts/53-eae4eb72dc.chunk.js +0 -1
- package/dist/scripts/53.chunk.js +0 -56
- package/dist/scripts/54-56e7cb4493.chunk.js +0 -1
- package/dist/scripts/54-f489df5eda.chunk.js +0 -1
- package/dist/scripts/54.chunk.js +0 -56
- package/dist/scripts/55-b621cecfd3.chunk.js +0 -1
- package/dist/scripts/55-c7303d997f.chunk.js +0 -1
- package/dist/scripts/55.chunk.js +0 -41
- package/dist/scripts/56-53c4bdf797.chunk.js +0 -1
- package/dist/scripts/56-db9dbfd5fa.chunk.js +0 -1
- package/dist/scripts/56.chunk.js +0 -41
- package/dist/scripts/57-be599f08b2.chunk.js +0 -1
- package/dist/scripts/57-fb4f8ce1ab.chunk.js +0 -1
- package/dist/scripts/57.chunk.js +0 -50
- package/dist/scripts/58-8d1653ecd7.chunk.js +0 -1
- package/dist/scripts/58-c0e985cbc4.chunk.js +0 -1
- package/dist/scripts/58.chunk.js +0 -33
- package/dist/scripts/59-9b9c8c0f2d.chunk.js +0 -1
- package/dist/scripts/59-fcf6a940d6.chunk.js +0 -1
- package/dist/scripts/59.chunk.js +0 -33
- package/dist/scripts/6-a39d1f4585.chunk.js +0 -1
- package/dist/scripts/6-deb7609cc9.chunk.js +0 -1
- package/dist/scripts/6.chunk.js +0 -40
- package/dist/scripts/60-6995cd4cf5.chunk.js +0 -1
- package/dist/scripts/60-b4f7090720.chunk.js +0 -1
- package/dist/scripts/60.chunk.js +0 -33
- package/dist/scripts/61-7d1475b277.chunk.js +0 -1
- package/dist/scripts/61-cac68e627b.chunk.js +0 -1
- package/dist/scripts/61.chunk.js +0 -33
- package/dist/scripts/62-2aa55f08d5.chunk.js +0 -1
- package/dist/scripts/62-3a96a88b11.chunk.js +0 -1
- package/dist/scripts/62.chunk.js +0 -25
- package/dist/scripts/63-65744e61fe.chunk.js +0 -1
- package/dist/scripts/63-90bb249d0f.chunk.js +0 -1
- package/dist/scripts/63.chunk.js +0 -25
- package/dist/scripts/64-4f64cd6916.chunk.js +0 -1
- package/dist/scripts/64-b92f429d9a.chunk.js +0 -1
- package/dist/scripts/64.chunk.js +0 -33
- package/dist/scripts/65-179891d951.chunk.js +0 -1
- package/dist/scripts/65-fe362dec65.chunk.js +0 -1
- package/dist/scripts/65.chunk.js +0 -34
- package/dist/scripts/66-0bda221806.chunk.js +0 -1
- package/dist/scripts/66-b1de02727e.chunk.js +0 -1
- package/dist/scripts/66.chunk.js +0 -33
- package/dist/scripts/67-9773a2f9cf.chunk.js +0 -1
- package/dist/scripts/67-fc341ce660.chunk.js +0 -1
- package/dist/scripts/67.chunk.js +0 -25
- package/dist/scripts/68-2ff366d408.chunk.js +0 -1
- package/dist/scripts/68-c6ef8701a2.chunk.js +0 -1
- package/dist/scripts/68.chunk.js +0 -25
- package/dist/scripts/69-4af679bc4c.chunk.js +0 -1
- package/dist/scripts/69-5368c32a2e.chunk.js +0 -1
- package/dist/scripts/69.chunk.js +0 -25
- package/dist/scripts/7-c387d70c9b.chunk.js +0 -1
- package/dist/scripts/7-c86af5cc3a.chunk.js +0 -1
- package/dist/scripts/7.chunk.js +0 -33
- package/dist/scripts/70-3650ef74f8.chunk.js +0 -1
- package/dist/scripts/70-e782f523de.chunk.js +0 -1
- package/dist/scripts/70.chunk.js +0 -25
- package/dist/scripts/71-a45419aed7.chunk.js +0 -1
- package/dist/scripts/71-cf362223a9.chunk.js +0 -1
- package/dist/scripts/71.chunk.js +0 -25
- package/dist/scripts/72-3f71367bdd.chunk.js +0 -1
- package/dist/scripts/72-93adcc17c5.chunk.js +0 -1
- package/dist/scripts/72.chunk.js +0 -25
- package/dist/scripts/73.chunk.js +0 -25
- package/dist/scripts/74.chunk.js +0 -25
- package/dist/scripts/75.chunk.js +0 -25
- package/dist/scripts/76.chunk.js +0 -25
- package/dist/scripts/77.chunk.js +0 -26
- package/dist/scripts/78.chunk.js +0 -26
- package/dist/scripts/79.chunk.js +0 -26
- package/dist/scripts/8-2e66d6cb35.chunk.js +0 -1
- package/dist/scripts/8-82c9c86dfd.chunk.js +0 -1
- package/dist/scripts/8.chunk.js +0 -33
- package/dist/scripts/80.chunk.js +0 -26
- package/dist/scripts/81.chunk.js +0 -26
- package/dist/scripts/82.chunk.js +0 -26
- package/dist/scripts/83.chunk.js +0 -26
- package/dist/scripts/84.chunk.js +0 -26
- package/dist/scripts/85.chunk.js +0 -26
- package/dist/scripts/86.chunk.js +0 -18
- package/dist/scripts/87.chunk.js +0 -18
- package/dist/scripts/88.chunk.js +0 -18
- package/dist/scripts/89.chunk.js +0 -18
- package/dist/scripts/9-61225547b6.chunk.js +0 -1
- package/dist/scripts/9-bd46228181.chunk.js +0 -1
- package/dist/scripts/9.chunk.js +0 -18
- package/dist/scripts/90.chunk.js +0 -18
- package/dist/scripts/91.chunk.js +0 -18
- package/dist/scripts/92.chunk.js +0 -18
- package/dist/scripts/bundle-39b749b21d.min.js +0 -10
- package/dist/scripts/bundle-42046b5b88.min.js +0 -10
- package/dist/scripts/bundle-a8b8854ef1.min.js +0 -10
- package/dist/scripts/bundle-f18858be26.min.js +0 -10
- package/dist/scripts/bundle.js +0 -8153
- package/dist/scripts/polyfills-022d27190f.min.js +0 -1
- package/dist/scripts/polyfills-5139b6bb05.min.js +0 -1
- package/dist/scripts/polyfills-b0f2bc073f.min.js +0 -1
- package/dist/scripts/polyfills.js +0 -2701
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[29],{1043:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var o=n(1),i=n(2),r=n(307);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 l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function 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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(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&&s(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:"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:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{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)}},{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)}}}])&&l(t.prototype,n),i&&l(t,i),u}(i.a.ComponentCollection)},1051:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n(6),i=n(2),r=n(3),a=n(1065),l=n(13),s=n(1052),c=n.n(s),u=n(1053),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 h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=g(e);if(t){var i=g(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return m(this,n)}}function m(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 g(e){return(g=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&&p(e,t)}(u,e);var t,n,i,s=y(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),s.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"folder:selected new:folder:selected",this.setButtonText),this.listenTo(this.options.channelName,"re:render:selector",this.renderSelector),this.disabledIds=this.options.disabledIds&&this.options.disabledIds.reduce((function(e,t){return Object.assign(Object.assign({},e),function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,!0))}),{})}},{key:"name",get:function(){return"TreeDropdownComponent"}},{key:"template",get:function(){return c.a}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.treeDropdown"}},{key:"regions",value:function(){return{selector:{el:".selector-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .create-new":"onClickCreateNew"}}},{key:"defaults",get:function(){return{disabledIds:[]}}},{key:"elements",get:function(){return{button:".custom-select"}}},{key:"onClickCreateNew",value:function(e){e.preventDefault(),o.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var o=l.f.getSelected(this.options.folderTreeKey,this.collection),i=o?o.get("name"):r.a.getPhrase(this.lang,"button");this.getUI("button").text(i)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new a.a({styles:d.a,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:d.a.list,extraClasses:d.a.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:d.a,name:this.options.name||this.options.channelName,buttonText:this.buttonText,canCreateNew:this.options.canCreateNew}}},{key:"onRender",value:function(){this.setButtonText(),this.renderSelector()}}])&&h(t.prototype,n),i&&h(t,i),u}(i.a.Component)},1052:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.escapeExpression;return' <button class="create-new btn font-weight-bold rounded-0 w-100 text-left '+a(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.customItem:r,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:i}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression;return'<button\r\n class="'+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.selectBtn:r,t))+' custom-select form-control"\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n name='+l(a(null!=(r=null!=t?t.options:t)?r.name:r,t))+"\r\n>"+l(a(null!=(r=null!=t?t.options:t)?r.buttonText:r,t))+'</button>\r\n<div class="dropdown-menu '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.selector:r,t))+'">\r\n <div class="selector-region"></div>\r\n'+(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.canCreateNew:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'</div>\r\n<div class="form-feedback"></div>'},useData:!0})},1053:function(e,t,n){e.exports={selectBtn:"_2TTgs",list:"_3wN7o",selector:"_3Xf1P",customItem:"_199PI"}},1088:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n(1),i=n(6),r=n(2),a=n(1043),l=n(13),s=n(1089),c=n.n(s),u=n(1090),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 h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=g(e);if(t){var i=g(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return m(this,n)}}function m(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 g(e){return(g=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&&p(e,t)}(u,e);var t,n,r,s=y(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=s.call(this,e)).selectSearch="",t.sameCharIndex=1,t.optionStep=1,t}return t=u,(n=[{key:"initialize",value:function(){this.setModel(),this.bindListeners()}},{key:"name",get:function(){return"SelectComponent"}},{key:"template",get:function(){return c.a}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-region",replaceElement:!0}}}},{key:"events",value:function(){return{keydown:"onKeydown","shown.bs.dropdown":"onShowDropdown"}}},{key:"defaults",get:function(){return{displayProperty:"name"}}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-toggle"}}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,this.options.childOptions.eventName,this.onSelect)}},{key:"onShowDropdown",value:function(){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){l.c.getSelected(this.collection)?this.optionStep=1:this.optionStep=0;var t=this.getNextModel(e.keyCode);for(t||(l.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)||(l.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=l.c.getSelected(this.collection)}},{key:"getNextModel",value:function(e){var t,n=l.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))||(l.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){var t;if(e.get("divider"))return!0;if(!o.isFunction(this.options.childOptions.isDisabled))return!1;for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return(t=this.options.childOptions.isDisabled).call.apply(t,[this,e].concat(i))}},{key:"getButtonText",value:function(){if(this.options.disabled)return this.options.noOptionsText;var e=l.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}))}}])&&h(t.prototype,n),r&&h(t,r),u}(r.a.Component)},1089:function(e,t,n){var o=n(10);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,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<button \r\n class="dropdown-toggle form-control btn-block text-left position-relative '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.selectButton:r,t))+" "+(null!=(r=n.if.call(s,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(s,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="'+l(a(null!=(r=null!=t?t.options:t)?r.inputName:r,t))+'"\r\n >\r\n '+l(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})},1090:function(e,t,n){e.exports={dropdownMenu:"_2RaQu",selectButton:"_2xGqi",disabled:"_15kWr"}},1348:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<div class="top-actions-region"></div>\r\n<div class="videos-region"></div>\r\n<div class="bottom-actions-region"></div>'},useData:!0})},1349:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;return'<div class="finish-button-region"></div>\r\n<button class="btn btn-secondary float-right add-more-videos">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"addMore",{name:"lang",hash:{},data:i}))+"</button>"},useData:!0})},1350:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<div class="dropdown-menu-region"></div>'},useData:!0})},1351:function(e,t,n){e.exports={requiredStar:"_3m_pH"}},1352:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return'<span class="'+e.escapeExpression(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.requiredStar:r,t))+'">*</span>'},3:function(e,t,n,o,i){return' <div class="library-select-region form-group col-6"></div>\r\n'},5:function(e,t,n,o,i){return"col-6"},7:function(e,t,n,o,i){return"col-12"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{};return"<h5>"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"uploadDestination",{name:"lang",hash:{},data:i}))+(null!=(r=n.if.call(a,null!=(r=null!=(r=null!=t?t.options:t)?r.requiredFields:r)?r.uploadDestination:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'</h5>\r\n <div class="container-fluid px-0">\r\n <div class="row">\r\n'+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.hasMultipleLibraries:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+' <div class="folder-select-region form-group '+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.hasMultipleLibraries:r,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.program(7,i,0),data:i}))?r:"")+'"></div>\r\n </div>\r\n </div>\r\n</div>'},useData:!0})},1353:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return'<div class="progress-bar bg-info" style="width: '+s("function"==typeof(r=null!=(r=n.progress||(null!=t?t.progress:t))?r:l)?r.call(a,{name:"progress",hash:{},data:i}):r)+'%" aria-valuenow="'+s("function"==typeof(r=null!=(r=n.progress||(null!=t?t.progress:t))?r:l)?r.call(a,{name:"progress",hash:{},data:i}):r)+'" aria-valuemin="0" aria-valuemax="100"></div>'},useData:!0})},1354:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hideMetadata",{name:"lang",hash:{},data:i}))},3:function(e,t,n,o,i){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"addMetadata",{name:"lang",hash:{},data:i}))},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return'<div class="upload-title-region"></div>\r\n<div class="container-fluid border-bottom">\r\n <div class="row">\r\n <div class="col-4 p-3">\r\n <div class="thumbnail-region"></div>\r\n <div class="upload-progress-region"></div>\r\n <div class="my-3">\r\n <h5 class="'+l(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.title:r,t))+'">'+l("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:c)?a.call(s,{name:"name",hash:{},data:i}):a)+'</h5>\r\n <div class="text-progress-region"></div>\r\n <button class="btn btn-secondary cancel-upload">'+l((n.lang||t&&t.lang||c).call(s,"cancel",{name:"lang",hash:{},data:i}))+'</button>\r\n </div>\r\n\r\n </div>\r\n <div class="col-8 py-3 pr-3">\r\n <div class="video-details-region"></div>\r\n <div class="folder-select-region"></div>\r\n <div class="additional-info-region"></div>\r\n <div class="production-info-region"></div>\r\n <div class="video-options-region"></div>\r\n </div>\r\n </div>\r\n</div>\r\n<div class="p-2 text-center">\r\n <button class="add-advanced-metadata btn btn-link">'+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.showAdvanced:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+"</a>\r\n</div>"},useData:!0})},1355:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(r=null!=t?t.options:t)?r.name:r,t))},useData:!0})},1356:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"uploading",{name:"lang",hash:{percentage:null!=(r=null!=t?t.options:t)?r.percentage:r},data:i}))},useData:!0})},1357:function(e,t,n){e.exports={title:"_2yTdm"}},1358:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){return" on"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return"<h5>"+s((n.lang||t&&t.lang||l).call(a,"heading",{name:"lang",hash:{},data:i}))+'</h5>\r\n<div class="container-fluid">\r\n <div class="row">\r\n <div class="form-group col-6 p-0">\r\n <div class="d-block">\r\n <label>'+s((n.lang||t&&t.lang||l).call(a,"autoCaptioningHeading",{name:"lang",hash:{},data:i}))+'</label>\r\n <div class="custom-toggle toggle-option float-right'+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.isSelected:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'"><span class="handle"></span></div>\r\n </div>\r\n <p class=\'mb-0 mr-5\'>'+s((n.lang||t&&t.lang||l).call(a,"autoCaptioningInfo",{name:"lang",hash:{},data:i}))+"</p>\r\n </div>\r\n </div>\r\n</div>\r\n \r\n"},useData:!0})},1463:function(e,t,n){"use strict";n.r(t);var o=n(1),i=n(6),r=n(2),a=n(30),l=n(5),s=n(3),c=n(51),u=n(15),d=n(62),f=n(1348),h=n.n(f),p=n(319),y=n(312),m=n(13),g=n(261),v=n(1349),b=n.n(v);function w(e){return(w="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 k(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function 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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=N(e);if(t){var i=N(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return O(this,n)}}function O(e,t){return!t||"object"!==w(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}(l,e);var t,n,o,r=C(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.model=a.a.get("upload:progress:".concat(p.d.Video)),this.listenTo(this.model,"change:done",this.render),this.listenTo(this.channelName,"continue",this.onClickContinue),this.listenTo(this.options.uploadChannelName,"start:spinner",this.startSpinner)}},{key:"name",get:function(){return"UploadActionsComponent"}},{key:"lang",get:function(){return"upload.uploadActions"}},{key:"template",get:function(){return b.a}},{key:"className",get:function(){return"clearfix my-3"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"regions",value:function(){return{finishButton:{el:".finish-button-region",replaceElement:!0}}}},{key:"behaviors",get:function(){return[{behaviorClass:y.a,buttonSelector:".add-more-videos",channelName:this.options.uploadChannelName,acceptMultiple:!0,mimeType:"video/*"}]}},{key:"startSpinner",value:function(){i.Radio.channel(this.channelName).trigger(g.b.ShowSpinner)}},{key:"onClickContinue",value:function(){this.model.get("done")&&i.Radio.channel(this.options.uploadChannelName).trigger("continue")}},{key:"onRender",value:function(){this.showChildView("finishButton",new g.a({channelName:this.channelName,disabled:!this.model.get("done"),saveEvent:"continue",extraButtonClass:"btn-primary float-right ml-3",buttonText:s.a.getPhrase(this.lang,"finish"),spinnerOptions:{size:m.s.Small,type:m.t.Light,extraClasses:"mx-auto"},tooltip:{title:this.model.get("done")?"":s.a.getPhrase(this.lang,"stillUploading")}}))}}])&&k(t.prototype,n),o&&k(t,o),l}(r.a.Component),T=n(29),P=n(197),_=n(199),I=n(102),R=n(1196),E=n(1199),A=n(1201),D=n(1048),j=(n(316),n(317),n(151)),L=n(86),M=n(1051),F=n(42),V=n(48),U=n(61),B=n(1088),z=n(1350),H=n.n(z);function J(e){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function K(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function q(e,t){return(q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function W(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(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"!==J(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Y(e){return(Y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Q=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&&q(e,t)}(l,e);var t,n,r,a=W(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.prepareData(),this.bindListeners()}},{key:"lang",get:function(){return"libraryEditor.folderSelect"}},{key:"prepareData",value:function(){var e=this.options.library?this.options.library.collection:this.collection;this.collection=V.a.flatten(e),m.c.setSelected(this.options.currentFolderId,this.collection),this.options.canCreateFolder&&this.collection.add({name:s.a.getPhrase(this.lang,"createNew"),eventName:"create:folder"})}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,"create:folder",this.onClickCreateFolder),this.listenTo(this.channelName,"select:option:selected",(function(t){i.Radio.channel(e.options.channelName).trigger("folder:selected",t)}))}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"name",get:function(){return"FolderSelectView"}},{key:"className",get:function(){return"position-relative"}},{key:"template",get:function(){return H.a}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-menu-region",replaceElement:!0}}}},{key:"onClickCreateFolder",value:function(){i.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"generatePrefix",value:function(){var e=this.model.get("depth");if(!o.isNumber(e)||this.model.get("hidePrefix"))return"";for(var t="",n=0;n<e;n++)t+=" ";return e&&(t+="- "),t}},{key:"getIsOptionDisabledFn",value:function(){var e=this.options.disableLibraries,t=this.options.disabledFolderIds;return function(n){var i=n||this.model;return!(!e||i.get("type")!==U.a.CustomLibrary)||!(!t||!o.contains(t,i.get("id").toString()))}}},{key:"onRender",value:function(){this.showChildView("dropdown",new B.a({collection:this.collection,channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"select:option:click",prefixHandler:this.generatePrefix,currentSelectedMessage:this.options.currentSelectedMessage||s.a.getPhrase(this.lang,"current"),isDisabled:this.getIsOptionDisabledFn(),truncateOptionNames:!0},placeholderText:this.options.placeholderText||s.a.getPhrase(this.lang,"placeholder"),noOptionsText:s.a.getPhrase(this.lang,"noFolders"),inputName:this.options.inputName,disabled:0===this.collection.length||this.options.disabled,analyticsHelper:F.a}))}}])&&K(t.prototype,n),r&&K(t,r),l}(r.a.Component),X=n(1351),Z=n.n(X),ee=n(1352),te=n.n(ee);function ne(e){return(ne="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 oe(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 ie(e,t){return(ie=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function re(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=le(e);if(t){var i=le(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return ae(this,n)}}function ae(e,t){return!t||"object"!==ne(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 le(e){return(le=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var se=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ie(e,t)}(a,e);var t,n,o,r=re(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),r.call(this,e)}return t=a,(n=[{key:"initialize",value:function(){var e=this;this.librariesWithoutFolders=new j.a,this.collection.each((function(t){return e.librariesWithoutFolders.add(t.toFlatJSON())})),this.listenTo(this.libraryChannelName,"folder:selected",this.onLibrarySelected),this.listenTo(this.channelName,"folder:selected new:folder:selected",this.onFolderSelected),this.listenTo(this.channelName,"create:folder:clicked",this.onCreateFolderClicked),!this.hasMultipleLibraries()&&this.librariesWithoutFolders.first()&&this.model.set("libraryId",this.librariesWithoutFolders.first().get("id"));var t=this.collection.get(this.model.get("libraryId"));if(t){var n=m.f.getSelected(this.folderTreeKey,t.children);this.options.preselectedFolderId&&!n&&this.onFolderSelected(this.options.preselectedFolderId)}}},{key:"name",get:function(){return"UploadFolderSelectComponent"}},{key:"template",get:function(){return te.a}},{key:"lang",get:function(){return"upload.uploadFolderSelect"}},{key:"folderTreeKey",get:function(){return"folder:tree:".concat(this.model.cid)}},{key:"regions",value:function(){return{librarySelect:".library-select-region",folderSelect:".folder-select-region"}}},{key:"hasMultipleLibraries",value:function(){return this.librariesWithoutFolders.length>1}},{key:"libraryChannelName",get:function(){return"".concat(this.channelName,":").concat(this.options.selectId,":libraries")}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid).concat(this.options.selectId)}},{key:"onLibrarySelected",value:function(e){this.model.set("libraryId",e.get("id")),this.model.unset("folderId"),this.render()}},{key:"onFolderSelected",value:function(e){var t=e;e instanceof L.a&&(t=e.get("id")),this.model.set("folderId",t);var n=this.collection.get(this.model.get("libraryId")).children;m.f.setSelected(this.folderTreeKey,t,n),this.model.validate()}},{key:"onCreateFolderClicked",value:function(){i.Radio.channel(this.options.channelName).trigger("show:new:folder",this.model.get("libraryId"),this.channelName)}},{key:"renderLibrarySelect",value:function(){if(this.hasMultipleLibraries()){var e=new Q({collection:this.librariesWithoutFolders,channelName:this.libraryChannelName,placeholderText:s.a.getPhrase(this.lang,"selectLibraryPlaceholder"),currentFolderId:this.model.get("libraryId"),currentSelectedMessage:s.a.getPhrase(this.lang,"currentLibrary"),inputName:"libraryId",canCreateFolder:!1});this.showChildView("librarySelect",e)}}},{key:"renderFolderSelect",value:function(){var e=this.model.get("libraryId");if(e){var t=this.collection.get(e);this.showChildView("folderSelect",new M.a({collection:t.children,channelName:this.channelName,folderTreeKey:this.folderTreeKey,canCreateNew:!0,name:"folderId"}))}}},{key:"viewOptions",value:function(){return{styles:Z.a,hasMultipleLibraries:this.hasMultipleLibraries(),requiredFields:this.options.requiredFields}}},{key:"onRender",value:function(){this.renderLibrarySelect(),this.renderFolderSelect()}}])&&oe(t.prototype,n),o&&oe(t,o),a}(r.a.Component),ce=n(1353),ue=n.n(ce);function de(e){return(de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function he(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 pe(e,t){return(pe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ye(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ge(e);if(t){var i=ge(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return me(this,n)}}function me(e,t){return!t||"object"!==de(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ge(e){return(ge=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ve=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&&pe(e,t)}(r,e);var t,n,o,i=ye(r);function r(){return fe(this,r),i.apply(this,arguments)}return t=r,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:progress",this.update)}},{key:"name",get:function(){return"UploadProgressComponent"}},{key:"template",get:function(){return ue.a}},{key:"className",get:function(){return"progress my-3"}},{key:"elements",get:function(){return{progressBar:".progress-bar"}}},{key:"update",value:function(){var e=this.model.get("progress"),t=this.getUI("progressBar");t&&t.get(0)&&$(t.get(0)).css("width","".concat(e,"%"))}}])&&he(t.prototype,n),o&&he(t,o),r}(r.a.Component),be=n(1354),we=n.n(be),ke=n(1355),Se=n.n(ke),Ce=n(1356),Oe=n.n(Ce),Ne=n(1357),xe=n.n(Ne),Te=n(1358),Pe=n.n(Te);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 Ie(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Re(e,t){return(Re=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ee(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=De(e);if(t){var i=De(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Ae(this,n)}}function Ae(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 De(e){return(De=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var je=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Re(e,t)}(r,e);var t,n,o,i=Ee(r);function r(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),i.call(this,e)}return t=r,(n=[{key:"name",get:function(){return"UploadVideoOptionsComponent"}},{key:"template",get:function(){return Pe.a}},{key:"lang",get:function(){return"upload.uploadVideoOptions"}},{key:"tagName",get:function(){return"form"}},{key:"className",get:function(){return"border-top pt-3"}},{key:"events",value:function(){return{"click .toggle-option":"onToggleAutoCaptioning"}}},{key:"onToggleAutoCaptioning",value:function(e){e.stopPropagation(),this.model.set("autoCaption",!this.model.get("autoCaption")),this.render()}},{key:"viewOptions",value:function(){return{isSelected:this.model.get("autoCaption")}}}])&&Ie(t.prototype,n),o&&Ie(t,o),r}(r.a.Component);function Le(e){return(Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Me(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fe(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 Ve(e,t,n){return t&&Fe(e.prototype,t),n&&Fe(e,n),e}function Ue(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&&Be(e,t)}function Be(e,t){return(Be=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ze(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Je(e);if(t){var i=Je(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return He(this,n)}}function He(e,t){return!t||"object"!==Le(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Je(e){return(Je=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ke=function(e){Ue(n,e);var t=ze(n);function n(){return Me(this,n),t.apply(this,arguments)}return Ve(n,[{key:"initialize",value:function(){this.listenTo(this.model,"change:name",this.render)}},{key:"name",get:function(){return"UploadTitleComponent"}},{key:"template",get:function(){return Se.a}},{key:"tagName",get:function(){return"h3"}},{key:"className",get:function(){return"mb-0 border-bottom p-3 ".concat(xe.a.title)}},{key:"viewOptions",value:function(){return{name:this.model.get("name")||this.model.get("fileName")}}}]),n}(r.a.Component),qe=function(e){Ue(n,e);var t=ze(n);function n(){return Me(this,n),t.apply(this,arguments)}return Ve(n,[{key:"initialize",value:function(){this.listenTo(this.model,"change:progress",this.render)}},{key:"name",get:function(){return"TextProgressComponent"}},{key:"template",get:function(){return Oe.a}},{key:"lang",get:function(){return"upload.uploadVideo"}},{key:"className",get:function(){return" text-muted"}},{key:"tagName",get:function(){return"p"}},{key:"viewOptions",value:function(){return{percentage:Math.round(this.model.get("progress")||0)}}}]),n}(r.a.Component),We=function(e){Ue(n,e);var t=ze(n);function n(e){return Me(this,n),t.call(this,e)}return Ve(n,[{key:"initialize",value:function(){this.viewModel=a.a.get("upload:".concat(this.model.get("id")),{name:this.model.get("name"),fileName:this.model.get("name"),showAdvanced:this.options.openAdvancedMetadata,rating:this.options.ratings.findWhere({value:0}),folderId:this.options.folderId,libraryId:this.options.libraryId,timeInitialized:T(),autoCaption:!1},{ctor:I.a}),this.viewModel.addValidation(D.a),this.listenTo(this.channelName,"select:rating",o.partial(this.onAssociationSelected,o,"rating")),this.listenTo(this.channelName,"select:channel",o.partial(this.onAssociationSelected,o,"channel")),this.listenTo(this.channelName,"add:producers",this.onSelectProducer),this.listenTo(this.channelName,"add:distributors",this.onSelectDistributor),this.listenTo(this.channelName,"add:productionCompanies",this.onSelectProductionCompany),this.listenTo(this.channelName,"add:directors",this.onSelectDirector),this.listenTo(this.channelName,"select:series",this.onSelectSeries),this.listenTo(this.channelName,"add:season",this.onSelectSeason),this.listenTo(this.options.uploadChannelName,"invalid:".concat(this.model.get("id")),this.scrollTo)}},{key:"name",get:function(){return"UploadVideoComponent"}},{key:"template",get:function(){return we.a}},{key:"className",get:function(){return"bg-white mb-3"}},{key:"lang",get:function(){return"upload.uploadVideo"}},{key:"events",value:function(){return{"click .add-advanced-metadata":"onClickAddAdvancedMetadata","click .cancel-upload":"onClickCancelUpload"}}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"regions",value:function(){return{progress:{el:".upload-progress-region",replaceElement:!0},thumbnail:{el:".thumbnail-region",replaceElement:!0},uploadTitle:{el:".upload-title-region",replaceElement:!0},folderSelect:{el:".folder-select-region",replaceElement:!0},textProgress:{el:".text-progress-region",replaceElement:!0},videoDetails:{el:".video-details-region",replaceElement:!0},productionInfo:{el:".production-info-region",replaceElement:!0},advancedDetails:{el:".additional-info-region",replaceElement:!0},uploadOptions:{el:".video-options-region",replaceElement:!0}}}},{key:"onClickAddAdvancedMetadata",value:function(){this.viewModel.set("showAdvanced",!this.viewModel.get("showAdvanced")),this.render()}},{key:"onClickCancelUpload",value:function(){var e=this,t={title:s.a.getPhrase(this.lang,"cancelHeading"),text:s.a.getPhrase(this.lang,"cancelBody",{videoTitle:this.model.get("name")}),buttons:[{text:s.a.getPhrase(this.lang,"yes"),className:"btn btn-primary",success:!0},{text:s.a.getPhrase(this.lang,"no"),className:"btn btn-link",close:!0}],channelName:this.channelName};new m.d(t).render().done((function(){i.Radio.channel(e.options.uploadChannelName).trigger("cancel:upload",e.model.get("id"))}))}},{key:"onAssociationSelected",value:function(e,t){var n=this.viewModel.get(t);if(n instanceof r.a.Collection){var i=n.filter((function(t){return!t.id||t.name===e.name}));o.each(i,(function(e){return n.remove(e)})),this.viewModel.get(t).add(e)}else this.viewModel.set(t,e)}},{key:"onSelectSeries",value:function(e){var t=this,n=i.Radio.channel(this.options.uploadChannelName);e.id?n.trigger("get:series",e.id,(function(e){t.onAssociationSelected(e.toJSON(),"series"),t.renderAdvancedVideoDetails()})):e.name&&n.trigger("create:series",e.name,(function(e){t.onAssociationSelected(e.toJSON(),"series"),t.renderAdvancedVideoDetails()}))}},{key:"onSelectSeason",value:function(e){var t=this;if(o.isNull(e))return this.viewModel.get("season").clear({silent:!0}),m.c.deselectAll(this.viewModel.get("series.seasons")),this.onAssociationSelected(null,"season"),void this.renderAdvancedVideoDetails();if(e.id)return m.c.setSelected(e.id,this.viewModel.get("series.seasons")),this.onAssociationSelected(e,"season"),void this.renderAdvancedVideoDetails();if(e.number){var n=this.viewModel.get("series.id");i.Radio.channel(this.options.uploadChannelName).trigger("create:season",e,n,(function(e){t.viewModel.get("series.seasons").add(e.toJSON()),m.c.setSelected(e.id,t.viewModel.get("series.seasons")),t.onAssociationSelected(e.toJSON(),"season"),t.renderAdvancedVideoDetails()}))}}},{key:"onSelectDistributor",value:function(e){var t=this;e.id?this.onAssociationSelected(e,"distributors"):e.name&&i.Radio.channel(this.options.uploadChannelName).trigger("create:company",e.name,(function(e){t.onAssociationSelected(e.toJSON(),"distributors")}))}},{key:"onSelectProductionCompany",value:function(e){var t=this;e.id?this.onAssociationSelected(e,"productionCompanies"):e.name&&i.Radio.channel(this.options.uploadChannelName).trigger("create:company",e.name,(function(e){t.onAssociationSelected(e.toJSON(),"productionCompanies")}))}},{key:"onSelectDirector",value:function(e){var t=this;e.id?this.onAssociationSelected(e,"directors"):e.name&&i.Radio.channel(this.options.uploadChannelName).trigger("create:person",e.name,(function(e){t.onAssociationSelected(e.toJSON(),"directors")}))}},{key:"onSelectProducer",value:function(e){var t=this;e.id?this.onAssociationSelected(e,"producers"):e.name&&i.Radio.channel(this.options.uploadChannelName).trigger("create:person",e.name,(function(e){t.onAssociationSelected(e.toJSON(),"producers")}))}},{key:"getRequiredFields",value:function(){return{uploadDestination:!0}}},{key:"renderTitle",value:function(){var e=new Ke({model:this.viewModel});this.showChildView("uploadTitle",e)}},{key:"renderThumbnail",value:function(){var e=new P.a({model:this.viewModel,thumbnailOptions:{size:_.a.Medium}});this.showChildView("thumbnail",e)}},{key:"renderProgress",value:function(){var e=new ve({model:this.model});this.showChildView("progress",e);var t=new qe({model:this.model});this.showChildView("textProgress",t)}},{key:"renderBasicVideoDetails",value:function(){var e=new R.a({model:this.viewModel,channelName:this.channelName,ratings:this.options.ratings,requiredFields:this.getRequiredFields(),editable:!0});this.showChildView("videoDetails",e)}},{key:"renderFolderSelect",value:function(){var e=new se({collection:this.options.libraries,selectId:this.model.get("id"),model:this.viewModel,channelName:this.options.uploadChannelName,requiredFields:this.getRequiredFields(),preselectedFolderId:this.options.folderId});this.showChildView("folderSelect",e)}},{key:"renderAdvancedVideoDetails",value:function(){if(this.viewModel.get("showAdvanced")){var e=new E.a({channelName:this.channelName,model:this.viewModel,libraries:this.options.libraries,hostedLibraries:this.options.hostedLibraries,editable:!0}),t=new A.a({channelName:this.channelName,model:this.viewModel,editable:!0});this.showChildView("advancedDetails",e),this.showChildView("productionInfo",t),this.options.allowAutoCaptioning&&this.showChildView("uploadOptions",new je({model:this.viewModel}))}}},{key:"scrollTo",value:function(){$("html,body").animate({scrollTop:this.$el.offset().top},250)}},{key:"viewOptions",value:function(){return Object.assign({styles:xe.a},this.viewModel.toJSON())}},{key:"onRender",value:function(){this.renderTitle(),this.renderThumbnail(),this.renderProgress(),this.renderBasicVideoDetails(),this.renderFolderSelect(),this.renderAdvancedVideoDetails(),i.Validation.bind(this,{model:this.viewModel})}},{key:"onDestroy",value:function(){i.Validation.unbind(this)}}]),n}(r.a.Component);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 Ge(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ye(e,t){return(Ye=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Qe(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Ze(e);if(t){var i=Ze(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Xe(this,n)}}function Xe(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 Ze(e){return(Ze=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var et=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&&Ye(e,t)}(r,e);var t,n,o,i=Qe(r);function r(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),i.call(this,e)}return t=r,(n=[{key:"name",get:function(){return"UploadVideoComponentCollection"}},{key:"childView",get:function(){return We}},{key:"childViewOptions",get:function(){return{ratings:this.options.ratings,libraries:this.options.libraries,hostedLibraries:this.options.hostedLibraries,uploadChannelName:this.options.uploadChannelName,folderId:this.options.folderId,libraryId:this.options.libraryId,allowAutoCaptioning:this.options.allowAutoCaptioning,openAdvancedMetadata:this.collection.length<=1}}}])&&Ge(t.prototype,n),o&&Ge(t,o),r}(r.a.ComponentCollection),tt=n(0),nt=n(195),ot=n(141),it=n(143),rt=n(4),at=n(44),lt=n(103);function st(e){return(st="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 ct(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 ut(e,t){return(ut=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function dt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ht(e);if(t){var i=ht(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return ft(this,n)}}function ft(e,t){return!t||"object"!==st(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 ht(e){return(ht=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"UploadVideosView",(function(){return pt}));var pt=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&&ut(e,t)}(y,e);var t,n,f,p=dt(y);function y(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),p.call(this,e)}return t=y,(n=[{key:"initialize",value:function(){this.initServices(),this.initDataListeners(),this.initComponentListeners(),this.initCollectionListeners(),this.initShellListeners()}},{key:"name",get:function(){return"UploadVideosView"}},{key:"title",get:function(){return s.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"upload.uploadVideos"}},{key:"template",get:function(){return h.a}},{key:"regions",value:function(){return{topActions:{el:".top-actions-region",replaceElement:!0},bottomActions:{el:".bottom-actions-region",replaceElement:!0},videos:{el:".videos-region",replaceElement:!0}}}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"initServices",value:function(){this.videoDataService=l.a.getInstance(tt.g.Video,this),this.libraryDataService=l.a.getInstance(tt.g.Library,this),this.videoUploadService=l.a.getInstance(tt.x.VideoUpload,this),this.videoUploadDataService=l.a.getInstance(tt.g.VideoUpload,this),this.seriesDataService=l.a.getInstance(tt.g.Series,this),this.ratingsDataService=l.a.getInstance(tt.g.Ratings,this),this.companyDataService=l.a.getInstance(tt.g.Company,this),this.personDataService=l.a.getInstance(tt.g.Person,this),this.alertService=l.a.getInstance(tt.x.Alerts,this),this.navLockService=l.a.getInstance(tt.x.NavLock,this),this.settingsDataService=l.a.getInstance(tt.g.Settings,this)}},{key:"initDataListeners",value:function(){this.listenTo(tt.e.RATINGS,"".concat(tt.f.RATINGS,":sync"),this.render),this.listenTo(tt.e.LIBRARY,"hosted:libraries:sync",this.render),this.listenTo(tt.e.LIBRARY,"folder:created",this.onFolderCreated)}},{key:"initComponentListeners",value:function(){this.listenTo(this.channelName,"continue",this.onClickContinue),this.listenTo(this.channelName,"cancel:upload",this.cancelUpload),this.listenTo(this.channelName,at.a.FILES_SELECTED,this.onFilesSelected),this.listenTo(this.channelName,"show:new:folder",this.onClickNewFolder),this.listenTo(this.channelName,"get:series",this.onSelectSeries),this.listenTo(this.channelName,"create:series",this.onCreateSeries),this.listenTo(this.channelName,"create:season",this.onCreateSeason),this.listenTo(this.channelName,"create:company",this.onCreateCompany),this.listenTo(this.channelName,"create:person",this.onCreatePerson)}},{key:"initCollectionListeners",value:function(){var e=this.videoUploadService.getCollection();this.listenTo(e,"remove",this.onCollectionChange)}},{key:"initShellListeners",value:function(){this.listenTo(u.a.SHELL,r.a.EventNames.NAV_UNLOCKED_BY_USER,this.onNavigateAway)}},{key:"cancelUpload",value:function(e){this.logCancelAction(e),this.videoUploadService.cancelUpload(e)}},{key:"onNavigateAway",value:function(){this.logCancelAction(),this.videoUploadService.cancelAllUploads()}},{key:"onCollectionChange",value:function(e,t){t.length||(this.navLockService.unlock(),r.a.AppLinkHelper.trigger({application:tt.b.UPLOAD,action:tt.a.Upload.FILE_SELECTION}))}},{key:"onSelectSeries",value:function(e,t){this.seriesDataService.getSeries(e,t)}},{key:"onCreateSeries",value:function(e,t){this.seriesDataService.createSeries(e,t)}},{key:"onCreateSeason",value:function(e,t,n){this.seriesDataService.createSeason(e,t,n)}},{key:"onCreateCompany",value:function(e,t){this.companyDataService.createCompany(e,t)}},{key:"onCreatePerson",value:function(e,t){this.personDataService.createPerson(e,t)}},{key:"onClickContinue",value:function(){var e,t=this,n=i.Radio.channel(this.channelName),o=this.videoUploadService.getCollection(),u=!0;if(o.each((function(t){var n=a.a.get("upload:".concat(t.get("id")),null,{ctor:I.a});n.validate();var o=n.isValid();!1!==o||e||(e=t.id),u=u&&o})),e&&n.trigger("invalid:".concat(e)),u){n.trigger("start:spinner");var d=[];o.each((function(e){var n=e.get("file"),i=a.a.get("upload:".concat(e.get("id")),null,{ctor:I.a});if(lt.a.hasExpired(i,t.config.get("uploadSessionExpiryTime")))return t.alertService.createAlert({heading:s.a.getPhrase(t.lang,"uploadErrorHeading"),message:s.a.getPhrase(t.lang,"uploadErrorBody",{videoName:i.get("name")}),type:c.a.Fail}),void o.remove(e);i.set("fileId",n.cvUpload.fileId),i.set("fileSize",n.size),d.push(i)})),this.videoUploadDataService.completeVideoUploads(this.currentUser.get("id"),this.currentUser.get("customerId"),d,(function(){t.navLockService.unlock(),l.a.getInstance(tt.x.PendingItems).forceFetchPendingItems(),l.a.releaseInstance(tt.x.PendingItems),r.a.AppLinkHelper.trigger({application:tt.b.UPLOAD,action:d.length?tt.a.Upload.UPLOAD_COMPLETE:tt.a.Upload.FILE_SELECTION}),t.logFinishAction(d),t.videoDataService.clearVideoCache()}))}}},{key:"onFilesSelected",value:function(e,t){this.videoUploadService.addFiles(e),this.logStartAction(e,t)}},{key:"onClickNewFolder",value:function(e,t){this.setFolderChannel=t,this.navLockService.unlock(),r.a.AppLinkHelper.trigger({application:tt.b.UPLOAD,action:tt.a.Shared.NEW_FOLDER,args:[e]}),this.lockNav()}},{key:"onFolderCreated",value:function(e){this.setFolderChannel&&(i.Radio.channel(this.setFolderChannel).trigger("new:folder:selected",e),this.render())}},{key:"logStartAction",value:function(e,t){var n=F.a.mergeOptions(this.options.analyticsOptions,{workflowPhase:rt.WorkflowPhase.Start,descriptor:F.a.mapInteractionType(t)});F.a.logUserAction(e,n)}},{key:"logCancelAction",value:function(e){var t=this.videoUploadService.getCollection();if(t.length){var n=e?t.get(e):t,o=F.a.mergeOptions(this.options.analyticsOptions,{workflowPhase:rt.WorkflowPhase.Discard,descriptor:e?rt.OperationDescriptor.Single:rt.OperationDescriptor.All});F.a.logUserAction(n.toJSON(),o)}}},{key:"logFinishAction",value:function(e){if(e.length){var t=o.map(e,(function(e){return e.toJSON()})),n=F.a.mergeOptions(this.options.analyticsOptions,{workflowPhase:rt.WorkflowPhase.Complete});F.a.logUserAction(t,n)}}},{key:"fetchData",value:function(){this.ratings=this.ratingsDataService.getAllRatings(),this.hostedLibraries=this.libraryDataService.getLibraries(),this.autoCaptioning=this.settingsDataService.getSetting(this.currentUser.get("customerId"),d.a.AutoCaptioning)}},{key:"renderUploadActions",value:function(){this.showChildView("topActions",new x({uploadChannelName:this.channelName})),this.showChildView("bottomActions",new x({uploadChannelName:this.channelName}))}},{key:"renderVideos",value:function(){var e={collection:this.videoUploadService.getCollection(),ratings:this.ratings,libraries:this.libraries,hostedLibraries:this.hostedLibraries,uploadChannelName:this.channelName,allowAutoCaptioning:this.autoCaptioning.get("value")};if(this.options.folderId){var t=m.f.getLibrary(this.options.folderId,this.libraries);t&&(e.folderId=this.options.folderId,e.libraryId=t.get("id"))}var n=new et(e);this.showChildView("videos",n)}},{key:"lockNav",value:function(){this.navLockService.lock({title:s.a.getPhrase(this.lang,"navLockHeading"),text:s.a.getPhrase(this.lang,"navLockBody")})}},{key:"requiredResources",get:function(){return{currentUser:ot.b.currentUser,libraries:it.b.libraries,config:nt.b.config}}},{key:"onBeforeRender",value:function(){return this.fetchData(),!!this.ratings&&!!this.hostedLibraries&&!!this.autoCaptioning}},{key:"onRender",value:function(){this.lockNav(),this.renderUploadActions(),this.renderVideos()}}])&&ct(t.prototype,n),f&&ct(t,f),y}(r.a.View)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[29],{1044:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var o=n(1),i=n(2),r=n(308);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 l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function 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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(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&&s(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:"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:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{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)}},{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)}}}])&&l(t.prototype,n),i&&l(t,i),u}(i.a.ComponentCollection)},1052:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n(6),i=n(2),r=n(3),a=n(1066),l=n(13),s=n(1053),c=n.n(s),u=n(1054),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 h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=g(e);if(t){var i=g(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return m(this,n)}}function m(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 g(e){return(g=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&&p(e,t)}(u,e);var t,n,i,s=y(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),s.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"folder:selected new:folder:selected",this.setButtonText),this.listenTo(this.options.channelName,"re:render:selector",this.renderSelector),this.disabledIds=this.options.disabledIds&&this.options.disabledIds.reduce((function(e,t){return Object.assign(Object.assign({},e),function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,!0))}),{})}},{key:"name",get:function(){return"TreeDropdownComponent"}},{key:"template",get:function(){return c.a}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.treeDropdown"}},{key:"regions",value:function(){return{selector:{el:".selector-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .create-new":"onClickCreateNew"}}},{key:"defaults",get:function(){return{disabledIds:[]}}},{key:"elements",get:function(){return{button:".custom-select"}}},{key:"onClickCreateNew",value:function(e){e.preventDefault(),o.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var o=l.f.getSelected(this.options.folderTreeKey,this.collection),i=o?o.get("name"):r.a.getPhrase(this.lang,"button");this.getUI("button").text(i)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new a.a({styles:d.a,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:d.a.list,extraClasses:d.a.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:d.a,name:this.options.name||this.options.channelName,buttonText:this.buttonText,canCreateNew:this.options.canCreateNew}}},{key:"onRender",value:function(){this.setButtonText(),this.renderSelector()}}])&&h(t.prototype,n),i&&h(t,i),u}(i.a.Component)},1053:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.escapeExpression;return' <button class="create-new btn font-weight-bold rounded-0 w-100 text-left '+a(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.customItem:r,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:i}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression;return'<button\r\n class="'+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.selectBtn:r,t))+' custom-select form-control"\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n name='+l(a(null!=(r=null!=t?t.options:t)?r.name:r,t))+"\r\n>"+l(a(null!=(r=null!=t?t.options:t)?r.buttonText:r,t))+'</button>\r\n<div class="dropdown-menu '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.selector:r,t))+'">\r\n <div class="selector-region"></div>\r\n'+(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.canCreateNew:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'</div>\r\n<div class="form-feedback"></div>'},useData:!0})},1054:function(e,t,n){e.exports={selectBtn:"_2TTgs",list:"_3wN7o",selector:"_3Xf1P",customItem:"_199PI"}},1089:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n(1),i=n(6),r=n(2),a=n(1044),l=n(13),s=n(1090),c=n.n(s),u=n(1091),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 h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=g(e);if(t){var i=g(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return m(this,n)}}function m(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 g(e){return(g=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&&p(e,t)}(u,e);var t,n,r,s=y(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=s.call(this,e)).selectSearch="",t.sameCharIndex=1,t.optionStep=1,t}return t=u,(n=[{key:"initialize",value:function(){this.setModel(),this.bindListeners()}},{key:"name",get:function(){return"SelectComponent"}},{key:"template",get:function(){return c.a}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-region",replaceElement:!0}}}},{key:"events",value:function(){return{keydown:"onKeydown","shown.bs.dropdown":"onShowDropdown"}}},{key:"defaults",get:function(){return{displayProperty:"name"}}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-toggle"}}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,this.options.childOptions.eventName,this.onSelect)}},{key:"onShowDropdown",value:function(){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){l.c.getSelected(this.collection)?this.optionStep=1:this.optionStep=0;var t=this.getNextModel(e.keyCode);for(t||(l.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)||(l.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=l.c.getSelected(this.collection)}},{key:"getNextModel",value:function(e){var t,n=l.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))||(l.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){var t;if(e.get("divider"))return!0;if(!o.isFunction(this.options.childOptions.isDisabled))return!1;for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return(t=this.options.childOptions.isDisabled).call.apply(t,[this,e].concat(i))}},{key:"getButtonText",value:function(){if(this.options.disabled)return this.options.noOptionsText;var e=l.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}))}}])&&h(t.prototype,n),r&&h(t,r),u}(r.a.Component)},1090:function(e,t,n){var o=n(10);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,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<button \r\n class="dropdown-toggle form-control btn-block text-left position-relative '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.selectButton:r,t))+" "+(null!=(r=n.if.call(s,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(s,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="'+l(a(null!=(r=null!=t?t.options:t)?r.inputName:r,t))+'"\r\n >\r\n '+l(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})},1091:function(e,t,n){e.exports={dropdownMenu:"_2RaQu",selectButton:"_2xGqi",disabled:"_15kWr"}},1349:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<div class="top-actions-region"></div>\r\n<div class="videos-region"></div>\r\n<div class="bottom-actions-region"></div>'},useData:!0})},1350:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;return'<div class="finish-button-region"></div>\r\n<button class="btn btn-secondary float-right add-more-videos">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"addMore",{name:"lang",hash:{},data:i}))+"</button>"},useData:!0})},1351:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<div class="dropdown-menu-region"></div>'},useData:!0})},1352:function(e,t,n){e.exports={requiredStar:"_3m_pH"}},1353:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return'<span class="'+e.escapeExpression(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.requiredStar:r,t))+'">*</span>'},3:function(e,t,n,o,i){return' <div class="library-select-region form-group col-6"></div>\r\n'},5:function(e,t,n,o,i){return"col-6"},7:function(e,t,n,o,i){return"col-12"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{};return"<h5>"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"uploadDestination",{name:"lang",hash:{},data:i}))+(null!=(r=n.if.call(a,null!=(r=null!=(r=null!=t?t.options:t)?r.requiredFields:r)?r.uploadDestination:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'</h5>\r\n <div class="container-fluid px-0">\r\n <div class="row">\r\n'+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.hasMultipleLibraries:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+' <div class="folder-select-region form-group '+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.hasMultipleLibraries:r,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.program(7,i,0),data:i}))?r:"")+'"></div>\r\n </div>\r\n </div>\r\n</div>'},useData:!0})},1354:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return'<div class="progress-bar bg-info" style="width: '+s("function"==typeof(r=null!=(r=n.progress||(null!=t?t.progress:t))?r:l)?r.call(a,{name:"progress",hash:{},data:i}):r)+'%" aria-valuenow="'+s("function"==typeof(r=null!=(r=n.progress||(null!=t?t.progress:t))?r:l)?r.call(a,{name:"progress",hash:{},data:i}):r)+'" aria-valuemin="0" aria-valuemax="100"></div>'},useData:!0})},1355:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hideMetadata",{name:"lang",hash:{},data:i}))},3:function(e,t,n,o,i){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"addMetadata",{name:"lang",hash:{},data:i}))},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return'<div class="upload-title-region"></div>\r\n<div class="container-fluid border-bottom">\r\n <div class="row">\r\n <div class="col-4 p-3">\r\n <div class="thumbnail-region"></div>\r\n <div class="upload-progress-region"></div>\r\n <div class="my-3">\r\n <h5 class="'+l(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.title:r,t))+'">'+l("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:c)?a.call(s,{name:"name",hash:{},data:i}):a)+'</h5>\r\n <div class="text-progress-region"></div>\r\n <button class="btn btn-secondary cancel-upload">'+l((n.lang||t&&t.lang||c).call(s,"cancel",{name:"lang",hash:{},data:i}))+'</button>\r\n </div>\r\n\r\n </div>\r\n <div class="col-8 py-3 pr-3">\r\n <div class="video-details-region"></div>\r\n <div class="folder-select-region"></div>\r\n <div class="additional-info-region"></div>\r\n <div class="production-info-region"></div>\r\n <div class="video-options-region"></div>\r\n </div>\r\n </div>\r\n</div>\r\n<div class="p-2 text-center">\r\n <button class="add-advanced-metadata btn btn-link">'+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.showAdvanced:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+"</a>\r\n</div>"},useData:!0})},1356:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(r=null!=t?t.options:t)?r.name:r,t))},useData:!0})},1357:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"uploading",{name:"lang",hash:{percentage:null!=(r=null!=t?t.options:t)?r.percentage:r},data:i}))},useData:!0})},1358:function(e,t,n){e.exports={title:"_2yTdm"}},1359:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){return" on"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return"<h5>"+s((n.lang||t&&t.lang||l).call(a,"heading",{name:"lang",hash:{},data:i}))+'</h5>\r\n<div class="container-fluid">\r\n <div class="row">\r\n <div class="form-group col-6 p-0">\r\n <div class="d-block">\r\n <label>'+s((n.lang||t&&t.lang||l).call(a,"autoCaptioningHeading",{name:"lang",hash:{},data:i}))+'</label>\r\n <div class="custom-toggle toggle-option float-right'+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.isSelected:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'"><span class="handle"></span></div>\r\n </div>\r\n <p class=\'mb-0 mr-5\'>'+s((n.lang||t&&t.lang||l).call(a,"autoCaptioningInfo",{name:"lang",hash:{},data:i}))+"</p>\r\n </div>\r\n </div>\r\n</div>\r\n \r\n"},useData:!0})},1464:function(e,t,n){"use strict";n.r(t);var o=n(1),i=n(6),r=n(2),a=n(30),l=n(5),s=n(3),c=n(51),u=n(15),d=n(66),f=n(1349),h=n.n(f),p=n(320),y=n(313),m=n(13),g=n(262),v=n(1350),b=n.n(v);function w(e){return(w="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 k(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function 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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=N(e);if(t){var i=N(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return O(this,n)}}function O(e,t){return!t||"object"!==w(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}(l,e);var t,n,o,r=C(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.model=a.a.get("upload:progress:".concat(p.d.Video)),this.listenTo(this.model,"change:done",this.render),this.listenTo(this.channelName,"continue",this.onClickContinue),this.listenTo(this.options.uploadChannelName,"start:spinner",this.startSpinner)}},{key:"name",get:function(){return"UploadActionsComponent"}},{key:"lang",get:function(){return"upload.uploadActions"}},{key:"template",get:function(){return b.a}},{key:"className",get:function(){return"clearfix my-3"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"regions",value:function(){return{finishButton:{el:".finish-button-region",replaceElement:!0}}}},{key:"behaviors",get:function(){return[{behaviorClass:y.a,buttonSelector:".add-more-videos",channelName:this.options.uploadChannelName,acceptMultiple:!0,mimeType:"video/*"}]}},{key:"startSpinner",value:function(){i.Radio.channel(this.channelName).trigger(g.b.ShowSpinner)}},{key:"onClickContinue",value:function(){this.model.get("done")&&i.Radio.channel(this.options.uploadChannelName).trigger("continue")}},{key:"onRender",value:function(){this.showChildView("finishButton",new g.a({channelName:this.channelName,disabled:!this.model.get("done"),saveEvent:"continue",extraButtonClass:"btn-primary float-right ml-3",buttonText:s.a.getPhrase(this.lang,"finish"),spinnerOptions:{size:m.s.Small,type:m.t.Light,extraClasses:"mx-auto"},tooltip:{title:this.model.get("done")?"":s.a.getPhrase(this.lang,"stillUploading")}}))}}])&&k(t.prototype,n),o&&k(t,o),l}(r.a.Component),T=n(29),P=n(198),_=n(200),I=n(102),R=n(1197),E=n(1200),A=n(1202),D=n(1049),j=(n(317),n(318),n(151)),L=n(86),M=n(1052),F=n(42),V=n(48),U=n(61),B=n(1089),z=n(1351),H=n.n(z);function J(e){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function K(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function q(e,t){return(q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function W(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(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"!==J(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Y(e){return(Y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Q=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&&q(e,t)}(l,e);var t,n,r,a=W(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.prepareData(),this.bindListeners()}},{key:"lang",get:function(){return"libraryEditor.folderSelect"}},{key:"prepareData",value:function(){var e=this.options.library?this.options.library.collection:this.collection;this.collection=V.a.flatten(e),m.c.setSelected(this.options.currentFolderId,this.collection),this.options.canCreateFolder&&this.collection.add({name:s.a.getPhrase(this.lang,"createNew"),eventName:"create:folder"})}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,"create:folder",this.onClickCreateFolder),this.listenTo(this.channelName,"select:option:selected",(function(t){i.Radio.channel(e.options.channelName).trigger("folder:selected",t)}))}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"name",get:function(){return"FolderSelectView"}},{key:"className",get:function(){return"position-relative"}},{key:"template",get:function(){return H.a}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-menu-region",replaceElement:!0}}}},{key:"onClickCreateFolder",value:function(){i.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"generatePrefix",value:function(){var e=this.model.get("depth");if(!o.isNumber(e)||this.model.get("hidePrefix"))return"";for(var t="",n=0;n<e;n++)t+=" ";return e&&(t+="- "),t}},{key:"getIsOptionDisabledFn",value:function(){var e=this.options.disableLibraries,t=this.options.disabledFolderIds;return function(n){var i=n||this.model;return!(!e||i.get("type")!==U.a.CustomLibrary)||!(!t||!o.contains(t,i.get("id").toString()))}}},{key:"onRender",value:function(){this.showChildView("dropdown",new B.a({collection:this.collection,channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"select:option:click",prefixHandler:this.generatePrefix,currentSelectedMessage:this.options.currentSelectedMessage||s.a.getPhrase(this.lang,"current"),isDisabled:this.getIsOptionDisabledFn(),truncateOptionNames:!0},placeholderText:this.options.placeholderText||s.a.getPhrase(this.lang,"placeholder"),noOptionsText:s.a.getPhrase(this.lang,"noFolders"),inputName:this.options.inputName,disabled:0===this.collection.length||this.options.disabled,analyticsHelper:F.a}))}}])&&K(t.prototype,n),r&&K(t,r),l}(r.a.Component),X=n(1352),Z=n.n(X),ee=n(1353),te=n.n(ee);function ne(e){return(ne="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 oe(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 ie(e,t){return(ie=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function re(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=le(e);if(t){var i=le(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return ae(this,n)}}function ae(e,t){return!t||"object"!==ne(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 le(e){return(le=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var se=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ie(e,t)}(a,e);var t,n,o,r=re(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),r.call(this,e)}return t=a,(n=[{key:"initialize",value:function(){var e=this;this.librariesWithoutFolders=new j.a,this.collection.each((function(t){return e.librariesWithoutFolders.add(t.toFlatJSON())})),this.listenTo(this.libraryChannelName,"folder:selected",this.onLibrarySelected),this.listenTo(this.channelName,"folder:selected new:folder:selected",this.onFolderSelected),this.listenTo(this.channelName,"create:folder:clicked",this.onCreateFolderClicked),!this.hasMultipleLibraries()&&this.librariesWithoutFolders.first()&&this.model.set("libraryId",this.librariesWithoutFolders.first().get("id"));var t=this.collection.get(this.model.get("libraryId"));if(t){var n=m.f.getSelected(this.folderTreeKey,t.children);this.options.preselectedFolderId&&!n&&this.onFolderSelected(this.options.preselectedFolderId)}}},{key:"name",get:function(){return"UploadFolderSelectComponent"}},{key:"template",get:function(){return te.a}},{key:"lang",get:function(){return"upload.uploadFolderSelect"}},{key:"folderTreeKey",get:function(){return"folder:tree:".concat(this.model.cid)}},{key:"regions",value:function(){return{librarySelect:".library-select-region",folderSelect:".folder-select-region"}}},{key:"hasMultipleLibraries",value:function(){return this.librariesWithoutFolders.length>1}},{key:"libraryChannelName",get:function(){return"".concat(this.channelName,":").concat(this.options.selectId,":libraries")}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid).concat(this.options.selectId)}},{key:"onLibrarySelected",value:function(e){this.model.set("libraryId",e.get("id")),this.model.unset("folderId"),this.render()}},{key:"onFolderSelected",value:function(e){var t=e;e instanceof L.a&&(t=e.get("id")),this.model.set("folderId",t);var n=this.collection.get(this.model.get("libraryId")).children;m.f.setSelected(this.folderTreeKey,t,n),this.model.validate()}},{key:"onCreateFolderClicked",value:function(){i.Radio.channel(this.options.channelName).trigger("show:new:folder",this.model.get("libraryId"),this.channelName)}},{key:"renderLibrarySelect",value:function(){if(this.hasMultipleLibraries()){var e=new Q({collection:this.librariesWithoutFolders,channelName:this.libraryChannelName,placeholderText:s.a.getPhrase(this.lang,"selectLibraryPlaceholder"),currentFolderId:this.model.get("libraryId"),currentSelectedMessage:s.a.getPhrase(this.lang,"currentLibrary"),inputName:"libraryId",canCreateFolder:!1});this.showChildView("librarySelect",e)}}},{key:"renderFolderSelect",value:function(){var e=this.model.get("libraryId");if(e){var t=this.collection.get(e);this.showChildView("folderSelect",new M.a({collection:t.children,channelName:this.channelName,folderTreeKey:this.folderTreeKey,canCreateNew:!0,name:"folderId"}))}}},{key:"viewOptions",value:function(){return{styles:Z.a,hasMultipleLibraries:this.hasMultipleLibraries(),requiredFields:this.options.requiredFields}}},{key:"onRender",value:function(){this.renderLibrarySelect(),this.renderFolderSelect()}}])&&oe(t.prototype,n),o&&oe(t,o),a}(r.a.Component),ce=n(1354),ue=n.n(ce);function de(e){return(de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function he(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 pe(e,t){return(pe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ye(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ge(e);if(t){var i=ge(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return me(this,n)}}function me(e,t){return!t||"object"!==de(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ge(e){return(ge=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ve=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&&pe(e,t)}(r,e);var t,n,o,i=ye(r);function r(){return fe(this,r),i.apply(this,arguments)}return t=r,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:progress",this.update)}},{key:"name",get:function(){return"UploadProgressComponent"}},{key:"template",get:function(){return ue.a}},{key:"className",get:function(){return"progress my-3"}},{key:"elements",get:function(){return{progressBar:".progress-bar"}}},{key:"update",value:function(){var e=this.model.get("progress"),t=this.getUI("progressBar");t&&t.get(0)&&$(t.get(0)).css("width","".concat(e,"%"))}}])&&he(t.prototype,n),o&&he(t,o),r}(r.a.Component),be=n(1355),we=n.n(be),ke=n(1356),Se=n.n(ke),Ce=n(1357),Oe=n.n(Ce),Ne=n(1358),xe=n.n(Ne),Te=n(1359),Pe=n.n(Te);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 Ie(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Re(e,t){return(Re=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ee(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=De(e);if(t){var i=De(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Ae(this,n)}}function Ae(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 De(e){return(De=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var je=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Re(e,t)}(r,e);var t,n,o,i=Ee(r);function r(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),i.call(this,e)}return t=r,(n=[{key:"name",get:function(){return"UploadVideoOptionsComponent"}},{key:"template",get:function(){return Pe.a}},{key:"lang",get:function(){return"upload.uploadVideoOptions"}},{key:"tagName",get:function(){return"form"}},{key:"className",get:function(){return"border-top pt-3"}},{key:"events",value:function(){return{"click .toggle-option":"onToggleAutoCaptioning"}}},{key:"onToggleAutoCaptioning",value:function(e){e.stopPropagation(),this.model.set("autoCaption",!this.model.get("autoCaption")),this.render()}},{key:"viewOptions",value:function(){return{isSelected:this.model.get("autoCaption")}}}])&&Ie(t.prototype,n),o&&Ie(t,o),r}(r.a.Component);function Le(e){return(Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Me(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fe(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 Ve(e,t,n){return t&&Fe(e.prototype,t),n&&Fe(e,n),e}function Ue(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&&Be(e,t)}function Be(e,t){return(Be=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ze(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Je(e);if(t){var i=Je(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return He(this,n)}}function He(e,t){return!t||"object"!==Le(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Je(e){return(Je=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ke=function(e){Ue(n,e);var t=ze(n);function n(){return Me(this,n),t.apply(this,arguments)}return Ve(n,[{key:"initialize",value:function(){this.listenTo(this.model,"change:name",this.render)}},{key:"name",get:function(){return"UploadTitleComponent"}},{key:"template",get:function(){return Se.a}},{key:"tagName",get:function(){return"h3"}},{key:"className",get:function(){return"mb-0 border-bottom p-3 ".concat(xe.a.title)}},{key:"viewOptions",value:function(){return{name:this.model.get("name")||this.model.get("fileName")}}}]),n}(r.a.Component),qe=function(e){Ue(n,e);var t=ze(n);function n(){return Me(this,n),t.apply(this,arguments)}return Ve(n,[{key:"initialize",value:function(){this.listenTo(this.model,"change:progress",this.render)}},{key:"name",get:function(){return"TextProgressComponent"}},{key:"template",get:function(){return Oe.a}},{key:"lang",get:function(){return"upload.uploadVideo"}},{key:"className",get:function(){return" text-muted"}},{key:"tagName",get:function(){return"p"}},{key:"viewOptions",value:function(){return{percentage:Math.round(this.model.get("progress")||0)}}}]),n}(r.a.Component),We=function(e){Ue(n,e);var t=ze(n);function n(e){return Me(this,n),t.call(this,e)}return Ve(n,[{key:"initialize",value:function(){this.viewModel=a.a.get("upload:".concat(this.model.get("id")),{name:this.model.get("name"),fileName:this.model.get("name"),showAdvanced:this.options.openAdvancedMetadata,rating:this.options.ratings.findWhere({value:0}),folderId:this.options.folderId,libraryId:this.options.libraryId,timeInitialized:T(),autoCaption:!1},{ctor:I.a}),this.viewModel.addValidation(D.a),this.listenTo(this.channelName,"select:rating",o.partial(this.onAssociationSelected,o,"rating")),this.listenTo(this.channelName,"select:channel",o.partial(this.onAssociationSelected,o,"channel")),this.listenTo(this.channelName,"add:producers",this.onSelectProducer),this.listenTo(this.channelName,"add:distributors",this.onSelectDistributor),this.listenTo(this.channelName,"add:productionCompanies",this.onSelectProductionCompany),this.listenTo(this.channelName,"add:directors",this.onSelectDirector),this.listenTo(this.channelName,"select:series",this.onSelectSeries),this.listenTo(this.channelName,"add:season",this.onSelectSeason),this.listenTo(this.options.uploadChannelName,"invalid:".concat(this.model.get("id")),this.scrollTo)}},{key:"name",get:function(){return"UploadVideoComponent"}},{key:"template",get:function(){return we.a}},{key:"className",get:function(){return"bg-white mb-3"}},{key:"lang",get:function(){return"upload.uploadVideo"}},{key:"events",value:function(){return{"click .add-advanced-metadata":"onClickAddAdvancedMetadata","click .cancel-upload":"onClickCancelUpload"}}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"regions",value:function(){return{progress:{el:".upload-progress-region",replaceElement:!0},thumbnail:{el:".thumbnail-region",replaceElement:!0},uploadTitle:{el:".upload-title-region",replaceElement:!0},folderSelect:{el:".folder-select-region",replaceElement:!0},textProgress:{el:".text-progress-region",replaceElement:!0},videoDetails:{el:".video-details-region",replaceElement:!0},productionInfo:{el:".production-info-region",replaceElement:!0},advancedDetails:{el:".additional-info-region",replaceElement:!0},uploadOptions:{el:".video-options-region",replaceElement:!0}}}},{key:"onClickAddAdvancedMetadata",value:function(){this.viewModel.set("showAdvanced",!this.viewModel.get("showAdvanced")),this.render()}},{key:"onClickCancelUpload",value:function(){var e=this,t={title:s.a.getPhrase(this.lang,"cancelHeading"),text:s.a.getPhrase(this.lang,"cancelBody",{videoTitle:this.model.get("name")}),buttons:[{text:s.a.getPhrase(this.lang,"yes"),className:"btn btn-primary",success:!0},{text:s.a.getPhrase(this.lang,"no"),className:"btn btn-link",close:!0}],channelName:this.channelName};new m.d(t).render().done((function(){i.Radio.channel(e.options.uploadChannelName).trigger("cancel:upload",e.model.get("id"))}))}},{key:"onAssociationSelected",value:function(e,t){var n=this.viewModel.get(t);if(n instanceof r.a.Collection){var i=n.filter((function(t){return!t.id||t.name===e.name}));o.each(i,(function(e){return n.remove(e)})),this.viewModel.get(t).add(e)}else this.viewModel.set(t,e)}},{key:"onSelectSeries",value:function(e){var t=this,n=i.Radio.channel(this.options.uploadChannelName);e.id?n.trigger("get:series",e.id,(function(e){t.onAssociationSelected(e.toJSON(),"series"),t.renderAdvancedVideoDetails()})):e.name&&n.trigger("create:series",e.name,(function(e){t.onAssociationSelected(e.toJSON(),"series"),t.renderAdvancedVideoDetails()}))}},{key:"onSelectSeason",value:function(e){var t=this;if(o.isNull(e))return this.viewModel.get("season").clear({silent:!0}),m.c.deselectAll(this.viewModel.get("series.seasons")),this.onAssociationSelected(null,"season"),void this.renderAdvancedVideoDetails();if(e.id)return m.c.setSelected(e.id,this.viewModel.get("series.seasons")),this.onAssociationSelected(e,"season"),void this.renderAdvancedVideoDetails();if(e.number){var n=this.viewModel.get("series.id");i.Radio.channel(this.options.uploadChannelName).trigger("create:season",e,n,(function(e){t.viewModel.get("series.seasons").add(e.toJSON()),m.c.setSelected(e.id,t.viewModel.get("series.seasons")),t.onAssociationSelected(e.toJSON(),"season"),t.renderAdvancedVideoDetails()}))}}},{key:"onSelectDistributor",value:function(e){var t=this;e.id?this.onAssociationSelected(e,"distributors"):e.name&&i.Radio.channel(this.options.uploadChannelName).trigger("create:company",e.name,(function(e){t.onAssociationSelected(e.toJSON(),"distributors")}))}},{key:"onSelectProductionCompany",value:function(e){var t=this;e.id?this.onAssociationSelected(e,"productionCompanies"):e.name&&i.Radio.channel(this.options.uploadChannelName).trigger("create:company",e.name,(function(e){t.onAssociationSelected(e.toJSON(),"productionCompanies")}))}},{key:"onSelectDirector",value:function(e){var t=this;e.id?this.onAssociationSelected(e,"directors"):e.name&&i.Radio.channel(this.options.uploadChannelName).trigger("create:person",e.name,(function(e){t.onAssociationSelected(e.toJSON(),"directors")}))}},{key:"onSelectProducer",value:function(e){var t=this;e.id?this.onAssociationSelected(e,"producers"):e.name&&i.Radio.channel(this.options.uploadChannelName).trigger("create:person",e.name,(function(e){t.onAssociationSelected(e.toJSON(),"producers")}))}},{key:"getRequiredFields",value:function(){return{uploadDestination:!0}}},{key:"renderTitle",value:function(){var e=new Ke({model:this.viewModel});this.showChildView("uploadTitle",e)}},{key:"renderThumbnail",value:function(){var e=new P.a({model:this.viewModel,thumbnailOptions:{size:_.a.Medium}});this.showChildView("thumbnail",e)}},{key:"renderProgress",value:function(){var e=new ve({model:this.model});this.showChildView("progress",e);var t=new qe({model:this.model});this.showChildView("textProgress",t)}},{key:"renderBasicVideoDetails",value:function(){var e=new R.a({model:this.viewModel,channelName:this.channelName,ratings:this.options.ratings,requiredFields:this.getRequiredFields(),editable:!0});this.showChildView("videoDetails",e)}},{key:"renderFolderSelect",value:function(){var e=new se({collection:this.options.libraries,selectId:this.model.get("id"),model:this.viewModel,channelName:this.options.uploadChannelName,requiredFields:this.getRequiredFields(),preselectedFolderId:this.options.folderId});this.showChildView("folderSelect",e)}},{key:"renderAdvancedVideoDetails",value:function(){if(this.viewModel.get("showAdvanced")){var e=new E.a({channelName:this.channelName,model:this.viewModel,libraries:this.options.libraries,hostedLibraries:this.options.hostedLibraries,editable:!0}),t=new A.a({channelName:this.channelName,model:this.viewModel,editable:!0});this.showChildView("advancedDetails",e),this.showChildView("productionInfo",t),this.options.allowAutoCaptioning&&this.showChildView("uploadOptions",new je({model:this.viewModel}))}}},{key:"scrollTo",value:function(){$("html,body").animate({scrollTop:this.$el.offset().top},250)}},{key:"viewOptions",value:function(){return Object.assign({styles:xe.a},this.viewModel.toJSON())}},{key:"onRender",value:function(){this.renderTitle(),this.renderThumbnail(),this.renderProgress(),this.renderBasicVideoDetails(),this.renderFolderSelect(),this.renderAdvancedVideoDetails(),i.Validation.bind(this,{model:this.viewModel})}},{key:"onDestroy",value:function(){i.Validation.unbind(this)}}]),n}(r.a.Component);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 Ge(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ye(e,t){return(Ye=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Qe(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Ze(e);if(t){var i=Ze(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Xe(this,n)}}function Xe(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 Ze(e){return(Ze=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var et=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&&Ye(e,t)}(r,e);var t,n,o,i=Qe(r);function r(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),i.call(this,e)}return t=r,(n=[{key:"name",get:function(){return"UploadVideoComponentCollection"}},{key:"childView",get:function(){return We}},{key:"childViewOptions",get:function(){return{ratings:this.options.ratings,libraries:this.options.libraries,hostedLibraries:this.options.hostedLibraries,uploadChannelName:this.options.uploadChannelName,folderId:this.options.folderId,libraryId:this.options.libraryId,allowAutoCaptioning:this.options.allowAutoCaptioning,openAdvancedMetadata:this.collection.length<=1}}}])&&Ge(t.prototype,n),o&&Ge(t,o),r}(r.a.ComponentCollection),tt=n(0),nt=n(196),ot=n(141),it=n(143),rt=n(4),at=n(44),lt=n(103);function st(e){return(st="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 ct(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 ut(e,t){return(ut=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function dt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ht(e);if(t){var i=ht(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return ft(this,n)}}function ft(e,t){return!t||"object"!==st(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 ht(e){return(ht=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"UploadVideosView",(function(){return pt}));var pt=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&&ut(e,t)}(y,e);var t,n,f,p=dt(y);function y(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),p.call(this,e)}return t=y,(n=[{key:"initialize",value:function(){this.initServices(),this.initDataListeners(),this.initComponentListeners(),this.initCollectionListeners(),this.initShellListeners()}},{key:"name",get:function(){return"UploadVideosView"}},{key:"title",get:function(){return s.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"upload.uploadVideos"}},{key:"template",get:function(){return h.a}},{key:"regions",value:function(){return{topActions:{el:".top-actions-region",replaceElement:!0},bottomActions:{el:".bottom-actions-region",replaceElement:!0},videos:{el:".videos-region",replaceElement:!0}}}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"initServices",value:function(){this.videoDataService=l.a.getInstance(tt.g.Video,this),this.libraryDataService=l.a.getInstance(tt.g.Library,this),this.videoUploadService=l.a.getInstance(tt.x.VideoUpload,this),this.videoUploadDataService=l.a.getInstance(tt.g.VideoUpload,this),this.seriesDataService=l.a.getInstance(tt.g.Series,this),this.ratingsDataService=l.a.getInstance(tt.g.Ratings,this),this.companyDataService=l.a.getInstance(tt.g.Company,this),this.personDataService=l.a.getInstance(tt.g.Person,this),this.alertService=l.a.getInstance(tt.x.Alerts,this),this.navLockService=l.a.getInstance(tt.x.NavLock,this),this.settingsDataService=l.a.getInstance(tt.g.Settings,this)}},{key:"initDataListeners",value:function(){this.listenTo(tt.e.RATINGS,"".concat(tt.f.RATINGS,":sync"),this.render),this.listenTo(tt.e.LIBRARY,"hosted:libraries:sync",this.render),this.listenTo(tt.e.LIBRARY,"folder:created",this.onFolderCreated)}},{key:"initComponentListeners",value:function(){this.listenTo(this.channelName,"continue",this.onClickContinue),this.listenTo(this.channelName,"cancel:upload",this.cancelUpload),this.listenTo(this.channelName,at.a.FILES_SELECTED,this.onFilesSelected),this.listenTo(this.channelName,"show:new:folder",this.onClickNewFolder),this.listenTo(this.channelName,"get:series",this.onSelectSeries),this.listenTo(this.channelName,"create:series",this.onCreateSeries),this.listenTo(this.channelName,"create:season",this.onCreateSeason),this.listenTo(this.channelName,"create:company",this.onCreateCompany),this.listenTo(this.channelName,"create:person",this.onCreatePerson)}},{key:"initCollectionListeners",value:function(){var e=this.videoUploadService.getCollection();this.listenTo(e,"remove",this.onCollectionChange)}},{key:"initShellListeners",value:function(){this.listenTo(u.a.SHELL,r.a.EventNames.NAV_UNLOCKED_BY_USER,this.onNavigateAway)}},{key:"cancelUpload",value:function(e){this.logCancelAction(e),this.videoUploadService.cancelUpload(e)}},{key:"onNavigateAway",value:function(){this.logCancelAction(),this.videoUploadService.cancelAllUploads()}},{key:"onCollectionChange",value:function(e,t){t.length||(this.navLockService.unlock(),r.a.AppLinkHelper.trigger({application:tt.b.UPLOAD,action:tt.a.Upload.FILE_SELECTION}))}},{key:"onSelectSeries",value:function(e,t){this.seriesDataService.getSeries(e,t)}},{key:"onCreateSeries",value:function(e,t){this.seriesDataService.createSeries(e,t)}},{key:"onCreateSeason",value:function(e,t,n){this.seriesDataService.createSeason(e,t,n)}},{key:"onCreateCompany",value:function(e,t){this.companyDataService.createCompany(e,t)}},{key:"onCreatePerson",value:function(e,t){this.personDataService.createPerson(e,t)}},{key:"onClickContinue",value:function(){var e,t=this,n=i.Radio.channel(this.channelName),o=this.videoUploadService.getCollection(),u=!0;if(o.each((function(t){var n=a.a.get("upload:".concat(t.get("id")),null,{ctor:I.a});n.validate();var o=n.isValid();!1!==o||e||(e=t.id),u=u&&o})),e&&n.trigger("invalid:".concat(e)),u){n.trigger("start:spinner");var d=[];o.each((function(e){var n=e.get("file"),i=a.a.get("upload:".concat(e.get("id")),null,{ctor:I.a});if(lt.a.hasExpired(i,t.config.get("uploadSessionExpiryTime")))return t.alertService.createAlert({heading:s.a.getPhrase(t.lang,"uploadErrorHeading"),message:s.a.getPhrase(t.lang,"uploadErrorBody",{videoName:i.get("name")}),type:c.a.Fail}),void o.remove(e);i.set("fileId",n.cvUpload.fileId),i.set("fileSize",n.size),d.push(i)})),this.videoUploadDataService.completeVideoUploads(this.currentUser.get("id"),this.currentUser.get("customerId"),d,(function(){t.navLockService.unlock(),l.a.getInstance(tt.x.PendingItems).forceFetchPendingItems(),l.a.releaseInstance(tt.x.PendingItems),r.a.AppLinkHelper.trigger({application:tt.b.UPLOAD,action:d.length?tt.a.Upload.UPLOAD_COMPLETE:tt.a.Upload.FILE_SELECTION}),t.logFinishAction(d),t.videoDataService.clearVideoCache()}))}}},{key:"onFilesSelected",value:function(e,t){this.videoUploadService.addFiles(e),this.logStartAction(e,t)}},{key:"onClickNewFolder",value:function(e,t){this.setFolderChannel=t,this.navLockService.unlock(),r.a.AppLinkHelper.trigger({application:tt.b.UPLOAD,action:tt.a.Shared.NEW_FOLDER,args:[e]}),this.lockNav()}},{key:"onFolderCreated",value:function(e){this.setFolderChannel&&(i.Radio.channel(this.setFolderChannel).trigger("new:folder:selected",e),this.render())}},{key:"logStartAction",value:function(e,t){var n=F.a.mergeOptions(this.options.analyticsOptions,{workflowPhase:rt.WorkflowPhase.Start,descriptor:F.a.mapInteractionType(t)});F.a.logUserAction(e,n)}},{key:"logCancelAction",value:function(e){var t=this.videoUploadService.getCollection();if(t.length){var n=e?t.get(e):t,o=F.a.mergeOptions(this.options.analyticsOptions,{workflowPhase:rt.WorkflowPhase.Discard,descriptor:e?rt.OperationDescriptor.Single:rt.OperationDescriptor.All});F.a.logUserAction(n.toJSON(),o)}}},{key:"logFinishAction",value:function(e){if(e.length){var t=o.map(e,(function(e){return e.toJSON()})),n=F.a.mergeOptions(this.options.analyticsOptions,{workflowPhase:rt.WorkflowPhase.Complete});F.a.logUserAction(t,n)}}},{key:"fetchData",value:function(){this.ratings=this.ratingsDataService.getAllRatings(),this.hostedLibraries=this.libraryDataService.getLibraries(),this.autoCaptioning=this.settingsDataService.getSetting(this.currentUser.get("customerId"),d.a.AutoCaptioning)}},{key:"renderUploadActions",value:function(){this.showChildView("topActions",new x({uploadChannelName:this.channelName})),this.showChildView("bottomActions",new x({uploadChannelName:this.channelName}))}},{key:"renderVideos",value:function(){var e={collection:this.videoUploadService.getCollection(),ratings:this.ratings,libraries:this.libraries,hostedLibraries:this.hostedLibraries,uploadChannelName:this.channelName,allowAutoCaptioning:this.autoCaptioning.get("value")};if(this.options.folderId){var t=m.f.getLibrary(this.options.folderId,this.libraries);t&&(e.folderId=this.options.folderId,e.libraryId=t.get("id"))}var n=new et(e);this.showChildView("videos",n)}},{key:"lockNav",value:function(){this.navLockService.lock({title:s.a.getPhrase(this.lang,"navLockHeading"),text:s.a.getPhrase(this.lang,"navLockBody")})}},{key:"requiredResources",get:function(){return{currentUser:ot.b.currentUser,libraries:it.b.libraries,config:nt.b.config}}},{key:"onBeforeRender",value:function(){return this.fetchData(),!!this.ratings&&!!this.hostedLibraries&&!!this.autoCaptioning}},{key:"onRender",value:function(){this.lockNav(),this.renderUploadActions(),this.renderVideos()}}])&&ct(t.prototype,n),f&&ct(t,f),y}(r.a.View)}}]);
|