@clickview/library-editor 1.1.45-rc.1 → 1.1.45-rc.3

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.
Files changed (306) hide show
  1. package/dist/bundles.json +1 -1
  2. package/dist/css/0-library-editor.chunk.css +26 -0
  3. package/dist/css/10-library-editor.chunk.css +25 -0
  4. package/dist/css/11-library-editor.chunk.css +135 -0
  5. package/dist/css/12-library-editor.chunk.css +18 -0
  6. package/dist/css/13-library-editor.chunk.css +21 -0
  7. package/dist/css/14-library-editor.chunk.css +76 -0
  8. package/dist/css/16-library-editor.chunk.css +52 -0
  9. package/dist/css/17-library-editor.chunk.css +14 -0
  10. package/dist/css/18-library-editor.chunk.css +18 -0
  11. package/dist/css/2-library-editor.chunk.css +143 -0
  12. package/dist/css/21-library-editor.chunk.css +52 -0
  13. package/dist/css/22-library-editor.chunk.css +12 -0
  14. package/dist/css/23-library-editor.chunk.css +25 -0
  15. package/dist/css/25-library-editor.chunk.css +35 -0
  16. package/dist/css/26-library-editor.chunk.css +20 -0
  17. package/dist/css/28-library-editor.chunk.css +63 -0
  18. package/dist/css/29-library-editor.chunk.css +80 -0
  19. package/dist/css/3-library-editor.chunk.css +15 -0
  20. package/dist/css/30-library-editor.chunk.css +33 -0
  21. package/dist/css/31-library-editor.chunk.css +30 -0
  22. package/dist/css/32-library-editor.chunk.css +45 -0
  23. package/dist/css/33-library-editor.chunk.css +13 -0
  24. package/dist/css/34-library-editor.chunk.css +19 -0
  25. package/dist/css/35-library-editor.chunk.css +18 -0
  26. package/dist/css/36-library-editor.chunk.css +12 -0
  27. package/dist/css/37-library-editor.chunk.css +5 -0
  28. package/dist/css/38-library-editor.chunk.css +5 -0
  29. package/dist/css/40-library-editor.chunk.css +24 -0
  30. package/dist/css/41-library-editor.chunk.css +76 -0
  31. package/dist/css/42-library-editor.chunk.css +44 -0
  32. package/dist/css/43-library-editor.chunk.css +30 -0
  33. package/dist/css/44-library-editor.chunk.css +12 -0
  34. package/dist/css/45-library-editor.chunk.css +25 -0
  35. package/dist/css/46-library-editor.chunk.css +24 -0
  36. package/dist/css/47-library-editor.chunk.css +84 -0
  37. package/dist/css/48-library-editor.chunk.css +4 -0
  38. package/dist/css/49-library-editor.chunk.css +33 -0
  39. package/dist/css/50-library-editor.chunk.css +20 -0
  40. package/dist/css/51-library-editor.chunk.css +37 -0
  41. package/dist/css/52-library-editor.chunk.css +64 -0
  42. package/dist/css/55-library-editor.chunk.css +3 -0
  43. package/dist/css/56-library-editor.chunk.css +3 -0
  44. package/dist/css/58-library-editor.chunk.css +3 -0
  45. package/dist/css/59-library-editor.chunk.css +3 -0
  46. package/dist/css/6-library-editor.chunk.css +42 -0
  47. package/dist/css/60-library-editor.chunk.css +16 -0
  48. package/dist/css/62-library-editor.chunk.css +4 -0
  49. package/dist/css/63-library-editor.chunk.css +168 -0
  50. package/dist/css/67-library-editor.chunk.css +76 -0
  51. package/dist/css/68-library-editor.chunk.css +15 -0
  52. package/dist/css/69-library-editor.chunk.css +15 -0
  53. package/dist/css/7-library-editor.chunk.css +10 -0
  54. package/dist/css/70-library-editor.chunk.css +21 -0
  55. package/dist/css/71-library-editor.chunk.css +38 -0
  56. package/dist/css/72-library-editor.chunk.css +14 -0
  57. package/dist/css/73-library-editor.chunk.css +35 -0
  58. package/dist/css/74-library-editor.chunk.css +27 -0
  59. package/dist/css/75-library-editor.chunk.css +4 -0
  60. package/dist/css/76-library-editor.chunk.css +4 -0
  61. package/dist/css/8-library-editor.chunk.css +7 -0
  62. package/dist/css/library-editor-app.css +9291 -0
  63. package/dist/scripts/0-2f5a66d67a.chunk.js +1 -0
  64. package/dist/scripts/0-aaa3608203.chunk.js +1 -0
  65. package/dist/scripts/0.chunk.js +64 -0
  66. package/dist/scripts/1-323257c9af.chunk.js +1 -0
  67. package/dist/scripts/1-c690200bdb.chunk.js +1 -0
  68. package/dist/scripts/1.chunk.js +75 -0
  69. package/dist/scripts/10-466cc9683b.chunk.js +1 -0
  70. package/dist/scripts/10-abb1be81df.chunk.js +1 -0
  71. package/dist/scripts/10.chunk.js +62 -0
  72. package/dist/scripts/11-3dec7d2c7e.chunk.js +11 -0
  73. package/dist/scripts/11-3ea7c37829.chunk.js +11 -0
  74. package/dist/scripts/11.chunk.js +317 -0
  75. package/dist/scripts/12-26db35cb21.chunk.js +1 -0
  76. package/dist/scripts/12-bb9475eac6.chunk.js +1 -0
  77. package/dist/scripts/12.chunk.js +56 -0
  78. package/dist/scripts/13-a886aeba95.chunk.js +1 -0
  79. package/dist/scripts/13-de5b2bb606.chunk.js +1 -0
  80. package/dist/scripts/13.chunk.js +25 -0
  81. package/dist/scripts/14-c671e8bc46.chunk.js +1 -0
  82. package/dist/scripts/14-d80e0ddb3c.chunk.js +1 -0
  83. package/dist/scripts/14.chunk.js +272 -0
  84. package/dist/scripts/15-3c4f92249c.chunk.js +1 -0
  85. package/dist/scripts/15-ac502fa5ec.chunk.js +1 -0
  86. package/dist/scripts/15.chunk.js +35 -0
  87. package/dist/scripts/16-082a975dbb.chunk.js +1 -0
  88. package/dist/scripts/16-783d3e4092.chunk.js +1 -0
  89. package/dist/scripts/16.chunk.js +79 -0
  90. package/dist/scripts/17-b13fb41bd3.chunk.js +1 -0
  91. package/dist/scripts/17-c66a2978ae.chunk.js +1 -0
  92. package/dist/scripts/17.chunk.js +40 -0
  93. package/dist/scripts/18.chunk.js +40 -0
  94. package/dist/scripts/19.chunk.js +43 -0
  95. package/dist/scripts/2-7cc9176e8a.chunk.js +1 -0
  96. package/dist/scripts/2-8e809f7467.chunk.js +1 -0
  97. package/dist/scripts/2.chunk.js +33 -0
  98. package/dist/scripts/20-6dd45d4f46.chunk.js +1 -0
  99. package/dist/scripts/20-d3444fe825.chunk.js +1 -0
  100. package/dist/scripts/20.chunk.js +18 -0
  101. package/dist/scripts/21-4de1bd55b0.chunk.js +1 -0
  102. package/dist/scripts/21-df15d4d827.chunk.js +1 -0
  103. package/dist/scripts/21.chunk.js +55 -0
  104. package/dist/scripts/22-5d9b14f0b0.chunk.js +1 -0
  105. package/dist/scripts/22-6d8b1c21c5.chunk.js +1 -0
  106. package/dist/scripts/22.chunk.js +47 -0
  107. package/dist/scripts/23-30dffdfecf.chunk.js +1 -0
  108. package/dist/scripts/23-9f6cc70b65.chunk.js +1 -0
  109. package/dist/scripts/23.chunk.js +47 -0
  110. package/dist/scripts/24-a675687323.chunk.js +1 -0
  111. package/dist/scripts/24-b6ec3366cb.chunk.js +1 -0
  112. package/dist/scripts/24.chunk.js +33 -0
  113. package/dist/scripts/25-7faa89d5e3.chunk.js +1 -0
  114. package/dist/scripts/25-a1259842aa.chunk.js +1 -0
  115. package/dist/scripts/25.chunk.js +25 -0
  116. package/dist/scripts/26-2d98320aae.chunk.js +1 -0
  117. package/dist/scripts/26-bbf1c17cb5.chunk.js +1 -0
  118. package/dist/scripts/26.chunk.js +25 -0
  119. package/dist/scripts/27-531532942a.chunk.js +1 -0
  120. package/dist/scripts/27-eff11570d8.chunk.js +1 -0
  121. package/dist/scripts/27.chunk.js +10 -0
  122. package/dist/scripts/28-285eb18d9a.chunk.js +1 -0
  123. package/dist/scripts/28-b71b9ac0eb.chunk.js +1 -0
  124. package/dist/scripts/28.chunk.js +334 -0
  125. package/dist/scripts/29-7be825c44d.chunk.js +1 -0
  126. package/dist/scripts/29-b7d2b7cde1.chunk.js +1 -0
  127. package/dist/scripts/29.chunk.js +202 -0
  128. package/dist/scripts/3-151fc3d544.chunk.js +1 -0
  129. package/dist/scripts/3-eeb2d3d492.chunk.js +1 -0
  130. package/dist/scripts/3.chunk.js +57 -0
  131. package/dist/scripts/30-0e805630f4.chunk.js +1 -0
  132. package/dist/scripts/30-6fdc3a1e11.chunk.js +1 -0
  133. package/dist/scripts/30.chunk.js +137 -0
  134. package/dist/scripts/31-49c7676cff.chunk.js +1 -0
  135. package/dist/scripts/31-b1a679306a.chunk.js +1 -0
  136. package/dist/scripts/31.chunk.js +113 -0
  137. package/dist/scripts/32-7e2b293f23.chunk.js +1 -0
  138. package/dist/scripts/32-e448ef7e82.chunk.js +1 -0
  139. package/dist/scripts/32.chunk.js +115 -0
  140. package/dist/scripts/33-8de738bfb9.chunk.js +1 -0
  141. package/dist/scripts/33-b5cf4cfa6f.chunk.js +1 -0
  142. package/dist/scripts/33.chunk.js +93 -0
  143. package/dist/scripts/34-894005f525.chunk.js +1 -0
  144. package/dist/scripts/34-b206a218e9.chunk.js +1 -0
  145. package/dist/scripts/34.chunk.js +63 -0
  146. package/dist/scripts/35-9cdb858587.chunk.js +1 -0
  147. package/dist/scripts/35-d0137a950e.chunk.js +1 -0
  148. package/dist/scripts/35.chunk.js +48 -0
  149. package/dist/scripts/36-54624daa85.chunk.js +1 -0
  150. package/dist/scripts/36-846ab1a7ae.chunk.js +1 -0
  151. package/dist/scripts/36.chunk.js +33 -0
  152. package/dist/scripts/37-43b5d8c3af.chunk.js +1 -0
  153. package/dist/scripts/37-6ffb96d64b.chunk.js +1 -0
  154. package/dist/scripts/37.chunk.js +25 -0
  155. package/dist/scripts/38-1b53bc0747.chunk.js +1 -0
  156. package/dist/scripts/38-d5dc6c775d.chunk.js +1 -0
  157. package/dist/scripts/38.chunk.js +25 -0
  158. package/dist/scripts/39-674f9ca697.chunk.js +1 -0
  159. package/dist/scripts/39-d1b6c2defd.chunk.js +1 -0
  160. package/dist/scripts/39.chunk.js +19 -0
  161. package/dist/scripts/4-3516e54324.chunk.js +1 -0
  162. package/dist/scripts/4-adab2b69d4.chunk.js +1 -0
  163. package/dist/scripts/4.chunk.js +26 -0
  164. package/dist/scripts/40-4f0571b8a2.chunk.js +1 -0
  165. package/dist/scripts/40-bc2c6ae993.chunk.js +1 -0
  166. package/dist/scripts/40.chunk.js +182 -0
  167. package/dist/scripts/41-2084077727.chunk.js +1 -0
  168. package/dist/scripts/41-a4121258fa.chunk.js +1 -0
  169. package/dist/scripts/41.chunk.js +175 -0
  170. package/dist/scripts/42-16c4690eeb.chunk.js +1 -0
  171. package/dist/scripts/42-c280d7752c.chunk.js +1 -0
  172. package/dist/scripts/42.chunk.js +176 -0
  173. package/dist/scripts/43-16efe31266.chunk.js +1 -0
  174. package/dist/scripts/43-c0a7d44737.chunk.js +1 -0
  175. package/dist/scripts/43.chunk.js +121 -0
  176. package/dist/scripts/44-b04dab25e6.chunk.js +1 -0
  177. package/dist/scripts/44-dbc3731bcb.chunk.js +1 -0
  178. package/dist/scripts/44.chunk.js +122 -0
  179. package/dist/scripts/45-a6b9650b26.chunk.js +1 -0
  180. package/dist/scripts/45-bc07f6ed34.chunk.js +1 -0
  181. package/dist/scripts/45.chunk.js +85 -0
  182. package/dist/scripts/46-319d735448.chunk.js +1 -0
  183. package/dist/scripts/46-b403f6be5b.chunk.js +1 -0
  184. package/dist/scripts/46.chunk.js +78 -0
  185. package/dist/scripts/47-87b93cae7d.chunk.js +1 -0
  186. package/dist/scripts/47-b482682154.chunk.js +1 -0
  187. package/dist/scripts/47.chunk.js +70 -0
  188. package/dist/scripts/48-92ee4ae7a7.chunk.js +1 -0
  189. package/dist/scripts/48-d924ddb603.chunk.js +1 -0
  190. package/dist/scripts/48.chunk.js +88 -0
  191. package/dist/scripts/49-3728b15a3c.chunk.js +1 -0
  192. package/dist/scripts/49-5c6fe71808.chunk.js +1 -0
  193. package/dist/scripts/49.chunk.js +62 -0
  194. package/dist/scripts/5-3fe2876121.chunk.js +1 -0
  195. package/dist/scripts/5-c3a1e51e77.chunk.js +1 -0
  196. package/dist/scripts/5.chunk.js +10 -0
  197. package/dist/scripts/50-38186c72b7.chunk.js +1 -0
  198. package/dist/scripts/50-a20245292f.chunk.js +1 -0
  199. package/dist/scripts/50.chunk.js +64 -0
  200. package/dist/scripts/51-37749b146e.chunk.js +1 -0
  201. package/dist/scripts/51-4e98f3c73f.chunk.js +1 -0
  202. package/dist/scripts/51.chunk.js +55 -0
  203. package/dist/scripts/52-1ece273b07.chunk.js +1 -0
  204. package/dist/scripts/52-67c9e2601b.chunk.js +1 -0
  205. package/dist/scripts/52.chunk.js +47 -0
  206. package/dist/scripts/53-16ef9ed0cb.chunk.js +1 -0
  207. package/dist/scripts/53-eae4eb72dc.chunk.js +1 -0
  208. package/dist/scripts/53.chunk.js +56 -0
  209. package/dist/scripts/54-56e7cb4493.chunk.js +1 -0
  210. package/dist/scripts/54-8d377c5aff.chunk.js +1 -0
  211. package/dist/scripts/54.chunk.js +56 -0
  212. package/dist/scripts/55-b621cecfd3.chunk.js +1 -0
  213. package/dist/scripts/55-c7303d997f.chunk.js +1 -0
  214. package/dist/scripts/55.chunk.js +41 -0
  215. package/dist/scripts/56-53c4bdf797.chunk.js +1 -0
  216. package/dist/scripts/56-db9dbfd5fa.chunk.js +1 -0
  217. package/dist/scripts/56.chunk.js +41 -0
  218. package/dist/scripts/57-be599f08b2.chunk.js +1 -0
  219. package/dist/scripts/57-d31643829d.chunk.js +1 -0
  220. package/dist/scripts/57.chunk.js +50 -0
  221. package/dist/scripts/58-8d1653ecd7.chunk.js +1 -0
  222. package/dist/scripts/58-c0e985cbc4.chunk.js +1 -0
  223. package/dist/scripts/58.chunk.js +33 -0
  224. package/dist/scripts/59-b36d9e7be9.chunk.js +1 -0
  225. package/dist/scripts/59-fcf6a940d6.chunk.js +1 -0
  226. package/dist/scripts/59.chunk.js +33 -0
  227. package/dist/scripts/6-19be7f0d3b.chunk.js +1 -0
  228. package/dist/scripts/6-deb7609cc9.chunk.js +1 -0
  229. package/dist/scripts/6.chunk.js +40 -0
  230. package/dist/scripts/60-6995cd4cf5.chunk.js +1 -0
  231. package/dist/scripts/60-b4f7090720.chunk.js +1 -0
  232. package/dist/scripts/60.chunk.js +33 -0
  233. package/dist/scripts/61-7d1475b277.chunk.js +1 -0
  234. package/dist/scripts/61-cac68e627b.chunk.js +1 -0
  235. package/dist/scripts/61.chunk.js +33 -0
  236. package/dist/scripts/62-35425b2e29.chunk.js +1 -0
  237. package/dist/scripts/62-3a96a88b11.chunk.js +1 -0
  238. package/dist/scripts/62.chunk.js +25 -0
  239. package/dist/scripts/63-714e5c1ee7.chunk.js +1 -0
  240. package/dist/scripts/63-90bb249d0f.chunk.js +1 -0
  241. package/dist/scripts/63.chunk.js +25 -0
  242. package/dist/scripts/64-4f64cd6916.chunk.js +1 -0
  243. package/dist/scripts/64-b92f429d9a.chunk.js +1 -0
  244. package/dist/scripts/64.chunk.js +33 -0
  245. package/dist/scripts/65-4041af23f8.chunk.js +1 -0
  246. package/dist/scripts/65-fe362dec65.chunk.js +1 -0
  247. package/dist/scripts/65.chunk.js +34 -0
  248. package/dist/scripts/66-0bda221806.chunk.js +1 -0
  249. package/dist/scripts/66-1089ec4f34.chunk.js +1 -0
  250. package/dist/scripts/66.chunk.js +33 -0
  251. package/dist/scripts/67-9773a2f9cf.chunk.js +1 -0
  252. package/dist/scripts/67-c03fd65497.chunk.js +1 -0
  253. package/dist/scripts/67.chunk.js +25 -0
  254. package/dist/scripts/68-2ff366d408.chunk.js +1 -0
  255. package/dist/scripts/68-53e4b905db.chunk.js +1 -0
  256. package/dist/scripts/68.chunk.js +25 -0
  257. package/dist/scripts/69-5368c32a2e.chunk.js +1 -0
  258. package/dist/scripts/69-6e315af542.chunk.js +1 -0
  259. package/dist/scripts/69.chunk.js +25 -0
  260. package/dist/scripts/7-8626ad1134.chunk.js +1 -0
  261. package/dist/scripts/7-c86af5cc3a.chunk.js +1 -0
  262. package/dist/scripts/7.chunk.js +33 -0
  263. package/dist/scripts/70-3650ef74f8.chunk.js +1 -0
  264. package/dist/scripts/70-e782f523de.chunk.js +1 -0
  265. package/dist/scripts/70.chunk.js +25 -0
  266. package/dist/scripts/71-979bac4e9f.chunk.js +1 -0
  267. package/dist/scripts/71-a45419aed7.chunk.js +1 -0
  268. package/dist/scripts/71.chunk.js +25 -0
  269. package/dist/scripts/72-93adcc17c5.chunk.js +1 -0
  270. package/dist/scripts/72-be5d02bfe6.chunk.js +1 -0
  271. package/dist/scripts/72.chunk.js +25 -0
  272. package/dist/scripts/73.chunk.js +25 -0
  273. package/dist/scripts/74.chunk.js +25 -0
  274. package/dist/scripts/75.chunk.js +25 -0
  275. package/dist/scripts/76.chunk.js +25 -0
  276. package/dist/scripts/77.chunk.js +26 -0
  277. package/dist/scripts/78.chunk.js +26 -0
  278. package/dist/scripts/79.chunk.js +26 -0
  279. package/dist/scripts/8-2e66d6cb35.chunk.js +1 -0
  280. package/dist/scripts/8-82c9c86dfd.chunk.js +1 -0
  281. package/dist/scripts/8.chunk.js +33 -0
  282. package/dist/scripts/80.chunk.js +26 -0
  283. package/dist/scripts/81.chunk.js +26 -0
  284. package/dist/scripts/82.chunk.js +26 -0
  285. package/dist/scripts/83.chunk.js +26 -0
  286. package/dist/scripts/84.chunk.js +26 -0
  287. package/dist/scripts/85.chunk.js +26 -0
  288. package/dist/scripts/86.chunk.js +18 -0
  289. package/dist/scripts/87.chunk.js +18 -0
  290. package/dist/scripts/88.chunk.js +18 -0
  291. package/dist/scripts/89.chunk.js +18 -0
  292. package/dist/scripts/9-61225547b6.chunk.js +1 -0
  293. package/dist/scripts/9-bd46228181.chunk.js +1 -0
  294. package/dist/scripts/9.chunk.js +18 -0
  295. package/dist/scripts/90.chunk.js +18 -0
  296. package/dist/scripts/91.chunk.js +18 -0
  297. package/dist/scripts/92.chunk.js +18 -0
  298. package/dist/scripts/bundle-39b749b21d.min.js +10 -0
  299. package/dist/scripts/bundle-42046b5b88.min.js +10 -0
  300. package/dist/scripts/bundle-a8b8854ef1.min.js +10 -0
  301. package/dist/scripts/{bundle-dfe947c6ba.min.js → bundle-f18858be26.min.js} +1 -1
  302. package/dist/scripts/bundle.js +8153 -0
  303. package/dist/scripts/polyfills-022d27190f.min.js +1 -0
  304. package/dist/scripts/polyfills-5139b6bb05.min.js +1 -0
  305. package/dist/scripts/polyfills.js +2701 -0
  306. package/package.json +3 -3
@@ -0,0 +1 @@
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[42],{1413:function(e,t,n){e.exports={smart:"_1dRs0",leftNav:"_3dpUO"}},1414:function(e,t,n){e.exports={item:"_13Gu_",text:"_2mbEb",folderTree:"_2NhVk",node:"_1dMK1",selected:"_1AACi"}},1415:function(e,t,n){var i=n(10);e.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,r){var o;e.propertyIsEnumerable;return'<div class="selected-banner-region"></div>\r\n<div class="search-region"></div>\r\n<div class="banner-region"></div>\r\n<div class="col-4 '+e.escapeExpression(e.lambda(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.leftNav:o,t))+'">\r\n <div class="left-nav-region"></div>\r\n</div>\r\n<div class="col">\r\n <div class="header-region"></div>\r\n <div class="video-list-region"></div>\r\n</div>\r\n<div class="footer-region"></div>'},useData:!0})},1416:function(e,t,n){var i=n(10);e.exports=(i.default||i).template({1:function(e,t,n,i,r){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression;return' <a class="applink-goback '+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.back:o,t))+'">\r\n <span class="align-middle d-inline-block '+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.backSvgContainer:o,t))+'">'+(null!=(o=a(null!=(o=null!=t?t.options:t)?o.backSvg:o,t))?o:"")+"</span>\r\n </a>\r\n"},3:function(e,t,n,i,r){var o;e.propertyIsEnumerable;return" "+(null!=(o=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"resultsFor",{name:"lang",hash:{searchTerm:null!=(o=null!=t?t.options:t)?o.searchTerm:o,smartCount:null!=(o=null!=t?t.options:t)?o.results:o},data:r}))?o:"")+"\r\n"},5:function(e,t,n,i,r){var o;e.propertyIsEnumerable;return" "+e.escapeExpression(e.lambda(null!=(o=null!=t?t.options:t)?o.name:o,t))+"\r\n"},7:function(e,t,n,i,r){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression,l=null!=t?t:e.nullContext||{};return'<div class="col-4 text-right py-2 '+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.subheader:o,t))+'">\r\n <div class="cursor-pointer toggle-migrated h-100 d-flex align-items-center justify-content-end">\r\n <span class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.svg:o,t))+' mr-1">'+(null!=(o=a(null!=(o=null!=t?t.options:t)?o.svg:o,t))?o:"")+"</span>\r\n <span>"+(null!=(o=n.if.call(l,null!=(o=null!=t?t.options:t)?o.hidden:o,{name:"if",hash:{},fn:e.program(8,r,0),inverse:e.program(10,r,0),data:r}))?o:"")+" "+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(l,"migrated",{name:"lang",hash:{},data:r}))+"</span>\r\n </div>\r\n</div>\r\n"},8:function(e,t,n,i,r){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"show",{name:"lang",hash:{},data:r}))},10:function(e,t,n,i,r){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hide",{name:"lang",hash:{},data:r}))},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,r){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{};return'<div class="col-8">\r\n'+(null!=(o=n.if.call(a,null!=(o=null!=t?t.options:t)?o.goBack:o,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?o:"")+' <h4 class="'+e.escapeExpression(e.lambda(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.header:o,t))+' py-2">\r\n'+(null!=(o=n.if.call(a,null!=(o=null!=t?t.options:t)?o.searchTerm:o,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.program(5,r,0),data:r}))?o:"")+" </h4>\r\n</div>\r\n\r\n"+(null!=(o=n.if.call(a,null!=(o=null!=t?t.options:t)?o.showMigrationToggle:o,{name:"if",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?o:"")},useData:!0})},1475:function(e,t,n){"use strict";n.r(t);var i=n(2),r=n(3),o=n(51),a=n(92),s=n(1413),l=n.n(s),c=n(1414),u=n.n(c),d=n(1415),h=n.n(d),f=n(9),g=n(1065),p=n(1126),v=n(1),m=n(6),y=n(5),b=n(17),S=n(333),w=n(1416),k=n.n(w),M=n(53),I=n(118),C=n(0);function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function R(e,t){return(R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function A(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,i=V(e);if(t){var r=V(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return E(this,n)}}function E(e,t){return!t||"object"!==T(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 V(e){return(V=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _=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&&R(e,t)}(o,e);var t,n,i,r=A(o);function o(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),r.call(this,e)}return t=o,(n=[{key:"initialize",value:function(){this.localOptionsService=y.a.getInstance(C.x.LocalOptions,this),this.migrationVideoDataService=y.a.getInstance(C.g.MigrationVideo,this);var e=this.localOptionsService.getOption(M.b.MigratedHidden);v.isUndefined(e)?(this.setMigrationHiddenOption(!1),this.migratedHidden=!1):this.migratedHidden=e}},{key:"name",get:function(){return"CurrentSectionHeaderView"}},{key:"title",get:function(){return!1}},{key:"lang",get:function(){return"migrationWizard.currentSectionHeader"}},{key:"className",get:function(){return"row px-2 ".concat(S.currentHeader)}},{key:"template",get:function(){return k.a}},{key:"elements",get:function(){return{toggleMigrated:".toggle-migrated"}}},{key:"events",value:function(){return{"click @ui.toggleMigrated":"toggleMigrated"}}},{key:"viewOptions",value:function(){return{styles:S,name:this.options.searchTerm||this.model&&this.model.get("name"),hidden:this.migratedHidden,svg:b.a.getSvg(this.migratedHidden?b.b.VisibleOn:b.b.VisibleOff),goBack:this.options.searchTerm,showMigrationToggle:!this.options.initialMigration,backSvg:b.a.getSvg("arrow-left",{prefix:"fas"}),searchTerm:this.options.searchTerm,results:10}}},{key:"appLinks",get:function(){return{".applink-goback":{application:I.a.MIGRATION_WIZARD,action:this.options.initialMigration?C.a.MigrationWizard.SMART:C.a.MigrationWizard.HOME}}}},{key:"onBeforeRender",value:function(){var e=this;return!(!this.model&&!this.options.searchTerm&&(this.migrationVideoDataService.getSelected((function(t){t&&(e.model=t,e.triggerToggle(),e.render())})),!this.model))}},{key:"toggleMigrated",value:function(){this.migratedHidden=!this.migratedHidden,this.setMigrationHiddenOption(this.migratedHidden),this.triggerToggle(),this.render()}},{key:"triggerToggle",value:function(){m.Radio.channel(I.b.MIGRATION).trigger(C.i.MigrationWizard.TOGGLE_MIGRATED,this.migratedHidden)}},{key:"setMigrationHiddenOption",value:function(e){this.localOptionsService.setOption(M.b.MigratedHidden,e)}}])&&O(t.prototype,n),i&&O(t,i),o}(i.a.View);function x(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return N(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return N(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var L={getSelectedInFolder:function(e,t){var n,i=x(p.a.getSelectedVideosCollection(e).toArray());try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.get("category")===t)return r.get("count")}}catch(e){i.e(e)}finally{i.f()}return 0},findFolder:function(e,t){var n;if(e)return e.forEach((function(e){if(e.get("categoryGuid")===t)n=e;else{var i=L.findFolder(e.get("children"),t);i&&(n=i)}})),n}},P=n(57),B=n(90),D=n(30),H=n(195),G=n(1118),W=n(13),F=n(94),j=n(194),z=n(141);function U(e){return(U="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 Z(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function q(e,t){return(q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function J(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,i=K(e);if(t){var r=K(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return $(this,n)}}function $(e,t){return!t||"object"!==U(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 K(e){return(K=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"SmartMigrationView",(function(){return Y}));var Y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&q(e,t)}(d,e);var t,n,s,c=J(d);function d(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),c.call(this,e)}return t=d,(n=[{key:"initialize",value:function(){this.viewModel=D.a.get(this.viewModelName,{bannerShown:!0},{ctor:B.e,storage:{type:a.c.LocalStorage,persistProps:["bannerShown"]}}),this.bindListeners(),this.initializeServices()}},{key:"name",get:function(){return"SmartMigrationView"}},{key:"title",get:function(){return r.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.smartMigration"}},{key:"viewModelName",get:function(){return"".concat(this.name,":viewmodel")}},{key:"channelName",get:function(){return"".concat(this.name,":").concat(this.cid)}},{key:"template",get:function(){return h.a}},{key:"className",get:function(){return"row no-gutters w-100 ".concat(l.a.smart)}},{key:"regions",value:function(){return{selectedBanner:{replaceElement:!0,el:".selected-banner-region"},search:{replaceElement:!0,el:".search-region",partialLoading:f.h.PublisherArchiveSearchBar},banner:{replaceElement:!0,el:".banner-region"},leftNav:{replaceElement:!0,el:".left-nav-region",partialLoading:f.h.PublisherArchiveLeftNav},header:{replaceElement:!0,el:".header-region",partialLoading:f.h.PublisherArchiveSectionHeader},videoList:{replaceElement:!0,el:".video-list-region",partialLoading:f.h.PublisherArchiveVideoList},footer:{replaceElement:!0,el:".footer-region",partialLoading:f.h.PublisherArchiveStatusBar}}}},{key:"initializeServices",value:function(){this.folderCacheService=y.a.getInstance(C.x.FolderCache,this),this.selectedVideoService=y.a.getInstance(C.x.SelectedVideo,this),this.migrationVideoDataService=y.a.getInstance(C.g.MigrationVideo,this),this.alertService=y.a.getInstance(C.x.Alerts)}},{key:"bindListeners",value:function(){this.listenTo(C.e.MIGRATION,C.i.MigrationWizard.SELECTED_CHANGED,this.setSelectedVideos),this.listenTo(C.e.MIGRATION,"manual:review:video:count:sync",this.render),this.listenTo(C.e.MIGRATION,"".concat(C.f.CUSTOMER_VIDEO,":count:sync"),this.render),this.listenTo(C.e.MIGRATION,"".concat(C.f.CUSTOMER_METADATA,":sync"),this.render),this.listenTo(C.b.MIGRATION_WIZARD,C.i.MigrationWizard.CLOSE_BANNER,this.closeSelectionBanner),this.listenTo(this.channelName,"add:selected",this.addSelected),this.listenTo(this.channelName,"remove:selected",this.removeSelected),this.listenTo(this.viewModel,"change:selectedVideoCount",this.renderStatusBar)}},{key:"fetchVideos",value:function(){var e=this;!this.videos&&this.options.folderChord&&this.migrationVideoDataService.getCustomerVideos(this.options.folderChord,(function(t){e.videos||(e.videos=p.a.toggleMigrated(t,!0),e.setSelectedVideos(),e.isRendering||e.render())}))}},{key:"fetchFolders",value:function(){var e=this;this.folders||this.migrationVideoDataService.getCustomerFolders((function(t){if(!e.folders){if(e.folders=t,e.options.folderChord){var n=e.folderCacheService.getFolderByChord(e.options.folderChord,t);W.f.setSelected(F.a.MIGRATION_WIZARD,n,e.folders),e.selectedFolder=W.f.getSelected(F.a.MIGRATION_WIZARD,t)}else{var r=e.folders.first();if(r)return void i.a.AppLinkHelper.trigger({application:C.b.MIGRATION_WIZARD,action:C.a.MigrationWizard.HOME,params:{folder:r.get("chord")}},{replace:!0})}e.isRendering||e.render()}}))}},{key:"setFolderText",value:function(e,t){var n=this,i=e.get("chord"),r=e.get("name"),o=this.folderCacheService.getFolderCache(),a=this.options.folderChord;if(a){var s,l=L.getSelectedInFolder(t,r);if(i===a){var c=this.migrationVideoDataService.getCustomerVideos(i);if(!this.selectedFolder)return;c&&(o[a]=c.length),s=o[a]}o[i]&&(s=o[i]),l&&s?e.set("text","".concat(r," (").concat(l,"/").concat(s,")")):e.set("text",r),e.children.forEach((function(e){return n.setFolderText(e,t)}))}else e.set("text",r)}},{key:"closeSelectionBanner",value:function(){var e=this.getRegion("selectedBanner");e&&(this.viewModel.set("bannerShown",!1),e.destroy())}},{key:"setSelectedVideos",value:function(){var e=this,t=this.selectedVideoService.getSelectedVideoIds();this.videos&&this.videos.forEach((function(n){return p.a.setChecked(n,t,e.isInitialMigration())})),t&&this.viewModel.set("selectedVideoCount",t.length)}},{key:"addSelected",value:function(e,t){this.selectedVideoService.addSelectedVideos(e,t)}},{key:"removeSelected",value:function(e,t){this.selectedVideoService.removeSelectedVideos(e,t)}},{key:"isInitialMigration",value:function(){return P.a.isInitialMigration(this.customerMetadata)}},{key:"onClickBack",value:function(){var e=this;new W.d({title:r.a.getPhrase(this.lang,"backHeading"),text:r.a.getPhrase(this.lang,"backBody"),buttons:[{text:r.a.getPhrase(this.lang,"discard"),className:"btn btn-danger",success:!0},{text:r.a.getPhrase(this.lang,"cancel"),className:"btn btn-secondary",close:!0}]}).render().done((function(){e.selectedVideoService.removeAllSelectedVideos(),e.viewModel.set("alertShown",!1),i.a.AppLinkHelper.trigger({application:C.b.MIGRATION_WIZARD,action:C.a.MigrationWizard.START_MIGRATION})}))}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".".concat(l.a.leftNav)),t=e.find(".".concat(u.a.selected));if(t.length&&!(t.offset().top-e.offset().top+t.height()<e.height())){var n=e.scrollTop()+(t.offset().top-e.offset().top),i=.5*e.height()+.5*t.height();e.scrollTop(n-i)}}},{key:"renderEmptyMessage",value:function(){this.showChildView("videoList",new G.b({text:"No folder selected"}))}},{key:"renderSelectedBanner",value:function(){if(this.isInitialMigration()&&!this.viewModel.get("alertShown")){this.viewModel.set("alertShown",!0);var e={heading:r.a.getPhrase(this.lang,"smartSelected"),message:r.a.getPhrase(this.lang,"last3Years"),type:o.a.Success};this.alertService.createAlert(e)}}},{key:"renderLeftNav",value:function(){var e=this,t=new g.a({styles:u.a,appLink:{action:C.a.MigrationWizard.HOME,application:C.b.MIGRATION_WIZARD},linkParams:function(e){return{folder:e.get("chord")}},collection:this.folders,channelName:"".concat(this.cid),childrenProperty:"children",textProperty:"name",extraClass:"p-0",folderTreeId:F.a.MIGRATION_WIZARD});this.showChildView("leftNav",t),window.requestAnimationFrame((function(){window.requestAnimationFrame((function(){e.centerSelectedItem()}))}))}},{key:"renderSearchBar",value:function(){this.showChildView("search",new G.h({selected:this.errorCount.get("count")?"publisher-archive":"none"}))}},{key:"renderStatusBar",value:function(){var e=this;if(this.videoCount){var t={application:C.b.MIGRATION_WIZARD,action:C.a.MigrationWizard.SELECTED,args:[this.options.folderChord]},n=this.videoCount.get("successCount"),i=this.selectedVideoService.getNumberSelected(),o=new G.k({nextAppLink:t,showSelected:!0,nextDisabled:0===i,showBackButton:this.isInitialMigration(),text:this.isInitialMigration()?r.a.getPhrase(this.lang,"next"):r.a.getPhrase(this.lang,"addToLibrary"),numberSelected:i,numberAvailable:n,onClickBack:function(){return e.onClickBack()}});this.showChildView("footer",o)}}},{key:"renderVideoList",value:function(){var e=this.options,t=e.folderChord,n=e.searchTerm;if(this.videos||!t&&!n)if(this.selectedFolder){this.showChildView("videoList",new G.l({model:this.selectedFolder,initialMigration:this.isInitialMigration(),folderChord:t,searchTerm:n,collection:this.videos,channelName:this.channelName,supportSiteUrl:this.config.get("supportSiteUrl")}));var i=n||t;W.a.GetViewModel(i,j.CheckboxTypes.MIGRATION_VIDEO_LIST).trigger("change")}else this.renderEmptyMessage();else this.renderPartialLoading("videoList")}},{key:"renderCurrentSection",value:function(){this.showChildView("header",new _({searchTerm:this.options.searchTerm,initialMigration:this.isInitialMigration()}))}},{key:"renderBanner",value:function(){this.isInitialMigration()&&this.showChildView("banner",new G.a({config:this.config,currentUser:this.currentUser}))}},{key:"requiredResources",get:function(){return{config:H.b.config,currentUser:z.b.currentUser}}},{key:"onBeforeRender",value:function(){this.isRendering=!0,this.fetchVideos(),this.fetchFolders(),this.customerMetadata=this.migrationVideoDataService.getCustomerMetadata(),this.errorCount=this.migrationVideoDataService.getManualReviewVideoCount(),this.videoCount=this.migrationVideoDataService.getCustomerVideoCountCached();var e=!!(this.customerMetadata&&this.folders&&this.videoCount&&this.errorCount);return e||(this.isRendering=!1),e}},{key:"viewOptions",value:function(){return{styles:l.a}}},{key:"onRender",value:function(){if(this.renderSelectedBanner(),this.renderLeftNav(),this.renderSearchBar(),this.renderStatusBar(),this.renderBanner(),!this.videos)return this.renderPartialLoading("header"),this.renderPartialLoading("videoList"),void(this.isRendering=!1);this.options.folderChord||this.options.searchTerm?(this.renderVideoList(),this.renderCurrentSection()):this.renderEmptyMessage(),this.isRendering=!1}}])&&Z(t.prototype,n),s&&Z(t,s),d}(i.a.View)}}]);
@@ -0,0 +1 @@
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[42],{1405:function(e,t,n){e.exports={smart:"_1dRs0",leftNav:"_3dpUO"}},1406:function(e,t,n){e.exports={item:"_13Gu_",text:"_2mbEb",folderTree:"_2NhVk",node:"_1dMK1",selected:"_1AACi"}},1407:function(e,t,n){var i=n(10);e.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,r){var o;e.propertyIsEnumerable;return'<div class="selected-banner-region"></div>\r\n<div class="search-region"></div>\r\n<div class="banner-region"></div>\r\n<div class="col-4 '+e.escapeExpression(e.lambda(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.leftNav:o,t))+'">\r\n <div class="left-nav-region"></div>\r\n</div>\r\n<div class="col">\r\n <div class="header-region"></div>\r\n <div class="video-list-region"></div>\r\n</div>\r\n<div class="footer-region"></div>'},useData:!0})},1408:function(e,t,n){var i=n(10);e.exports=(i.default||i).template({1:function(e,t,n,i,r){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression;return' <a class="applink-goback '+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.back:o,t))+'">\r\n <span class="align-middle d-inline-block '+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.backSvgContainer:o,t))+'">'+(null!=(o=a(null!=(o=null!=t?t.options:t)?o.backSvg:o,t))?o:"")+"</span>\r\n </a>\r\n"},3:function(e,t,n,i,r){var o;e.propertyIsEnumerable;return" "+(null!=(o=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"resultsFor",{name:"lang",hash:{searchTerm:null!=(o=null!=t?t.options:t)?o.searchTerm:o,smartCount:null!=(o=null!=t?t.options:t)?o.results:o},data:r}))?o:"")+"\r\n"},5:function(e,t,n,i,r){var o;e.propertyIsEnumerable;return" "+e.escapeExpression(e.lambda(null!=(o=null!=t?t.options:t)?o.name:o,t))+"\r\n"},7:function(e,t,n,i,r){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression,l=null!=t?t:e.nullContext||{};return'<div class="col-4 text-right py-2 '+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.subheader:o,t))+'">\r\n <div class="cursor-pointer toggle-migrated h-100 d-flex align-items-center justify-content-end">\r\n <span class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.svg:o,t))+' mr-1">'+(null!=(o=a(null!=(o=null!=t?t.options:t)?o.svg:o,t))?o:"")+"</span>\r\n <span>"+(null!=(o=n.if.call(l,null!=(o=null!=t?t.options:t)?o.hidden:o,{name:"if",hash:{},fn:e.program(8,r,0),inverse:e.program(10,r,0),data:r}))?o:"")+" "+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(l,"migrated",{name:"lang",hash:{},data:r}))+"</span>\r\n </div>\r\n</div>\r\n"},8:function(e,t,n,i,r){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"show",{name:"lang",hash:{},data:r}))},10:function(e,t,n,i,r){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hide",{name:"lang",hash:{},data:r}))},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,r){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{};return'<div class="col-8">\r\n'+(null!=(o=n.if.call(a,null!=(o=null!=t?t.options:t)?o.goBack:o,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?o:"")+' <h4 class="'+e.escapeExpression(e.lambda(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.header:o,t))+' py-2">\r\n'+(null!=(o=n.if.call(a,null!=(o=null!=t?t.options:t)?o.searchTerm:o,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.program(5,r,0),data:r}))?o:"")+" </h4>\r\n</div>\r\n\r\n"+(null!=(o=n.if.call(a,null!=(o=null!=t?t.options:t)?o.showMigrationToggle:o,{name:"if",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?o:"")},useData:!0})},1467:function(e,t,n){"use strict";n.r(t);var i=n(2),r=n(3),o=n(51),a=n(93),s=n(1405),l=n.n(s),c=n(1406),u=n.n(c),d=n(1407),h=n.n(d),f=n(9),g=n(1057),p=n(1118),v=n(1),m=n(6),y=n(5),b=n(17),S=n(334),w=n(1408),k=n.n(w),M=n(53),I=n(120),C=n(0);function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function R(e,t){return(R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function A(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,i=V(e);if(t){var r=V(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return E(this,n)}}function E(e,t){return!t||"object"!==T(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 V(e){return(V=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _=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&&R(e,t)}(o,e);var t,n,i,r=A(o);function o(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),r.call(this,e)}return t=o,(n=[{key:"initialize",value:function(){this.localOptionsService=y.a.getInstance(C.x.LocalOptions,this),this.migrationVideoDataService=y.a.getInstance(C.g.MigrationVideo,this);var e=this.localOptionsService.getOption(M.b.MigratedHidden);v.isUndefined(e)?(this.setMigrationHiddenOption(!1),this.migratedHidden=!1):this.migratedHidden=e}},{key:"name",get:function(){return"CurrentSectionHeaderView"}},{key:"title",get:function(){return!1}},{key:"lang",get:function(){return"migrationWizard.currentSectionHeader"}},{key:"className",get:function(){return"row px-2 ".concat(S.currentHeader)}},{key:"template",get:function(){return k.a}},{key:"elements",get:function(){return{toggleMigrated:".toggle-migrated"}}},{key:"events",value:function(){return{"click @ui.toggleMigrated":"toggleMigrated"}}},{key:"viewOptions",value:function(){return{styles:S,name:this.options.searchTerm||this.model&&this.model.get("name"),hidden:this.migratedHidden,svg:b.a.getSvg(this.migratedHidden?b.b.VisibleOn:b.b.VisibleOff),goBack:this.options.searchTerm,showMigrationToggle:!this.options.initialMigration,backSvg:b.a.getSvg("arrow-left",{prefix:"fas"}),searchTerm:this.options.searchTerm,results:10}}},{key:"appLinks",get:function(){return{".applink-goback":{application:I.a.MIGRATION_WIZARD,action:this.options.initialMigration?C.a.MigrationWizard.SMART:C.a.MigrationWizard.HOME}}}},{key:"onBeforeRender",value:function(){var e=this;return!(!this.model&&!this.options.searchTerm&&(this.migrationVideoDataService.getSelected((function(t){t&&(e.model=t,e.triggerToggle(),e.render())})),!this.model))}},{key:"toggleMigrated",value:function(){this.migratedHidden=!this.migratedHidden,this.setMigrationHiddenOption(this.migratedHidden),this.triggerToggle(),this.render()}},{key:"triggerToggle",value:function(){m.Radio.channel(I.b.MIGRATION).trigger(C.i.MigrationWizard.TOGGLE_MIGRATED,this.migratedHidden)}},{key:"setMigrationHiddenOption",value:function(e){this.localOptionsService.setOption(M.b.MigratedHidden,e)}}])&&O(t.prototype,n),i&&O(t,i),o}(i.a.View);function x(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return N(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return N(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var L={getSelectedInFolder:function(e,t){var n,i=x(p.a.getSelectedVideosCollection(e).toArray());try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.get("category")===t)return r.get("count")}}catch(e){i.e(e)}finally{i.f()}return 0},findFolder:function(e,t){var n;if(e)return e.forEach((function(e){if(e.get("categoryGuid")===t)n=e;else{var i=L.findFolder(e.get("children"),t);i&&(n=i)}})),n}},P=n(57),B=n(91),D=n(30),H=n(196),G=n(1110),W=n(13),F=n(95),j=n(195),z=n(143);function U(e){return(U="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 Z(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function q(e,t){return(q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function J(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,i=K(e);if(t){var r=K(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return $(this,n)}}function $(e,t){return!t||"object"!==U(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 K(e){return(K=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"SmartMigrationView",(function(){return Y}));var Y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&q(e,t)}(d,e);var t,n,s,c=J(d);function d(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),c.call(this,e)}return t=d,(n=[{key:"initialize",value:function(){this.viewModel=D.a.get(this.viewModelName,{bannerShown:!0},{ctor:B.e,storage:{type:a.c.LocalStorage,persistProps:["bannerShown"]}}),this.bindListeners(),this.initializeServices()}},{key:"name",get:function(){return"SmartMigrationView"}},{key:"title",get:function(){return r.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.smartMigration"}},{key:"viewModelName",get:function(){return"".concat(this.name,":viewmodel")}},{key:"channelName",get:function(){return"".concat(this.name,":").concat(this.cid)}},{key:"template",get:function(){return h.a}},{key:"className",get:function(){return"row no-gutters w-100 ".concat(l.a.smart)}},{key:"regions",value:function(){return{selectedBanner:{replaceElement:!0,el:".selected-banner-region"},search:{replaceElement:!0,el:".search-region",partialLoading:f.h.PublisherArchiveSearchBar},banner:{replaceElement:!0,el:".banner-region"},leftNav:{replaceElement:!0,el:".left-nav-region",partialLoading:f.h.PublisherArchiveLeftNav},header:{replaceElement:!0,el:".header-region",partialLoading:f.h.PublisherArchiveSectionHeader},videoList:{replaceElement:!0,el:".video-list-region",partialLoading:f.h.PublisherArchiveVideoList},footer:{replaceElement:!0,el:".footer-region",partialLoading:f.h.PublisherArchiveStatusBar}}}},{key:"initializeServices",value:function(){this.folderCacheService=y.a.getInstance(C.x.FolderCache,this),this.selectedVideoService=y.a.getInstance(C.x.SelectedVideo,this),this.migrationVideoDataService=y.a.getInstance(C.g.MigrationVideo,this),this.alertService=y.a.getInstance(C.x.Alerts)}},{key:"bindListeners",value:function(){this.listenTo(C.e.MIGRATION,C.i.MigrationWizard.SELECTED_CHANGED,this.setSelectedVideos),this.listenTo(C.e.MIGRATION,"manual:review:video:count:sync",this.render),this.listenTo(C.e.MIGRATION,"".concat(C.f.CUSTOMER_VIDEO,":count:sync"),this.render),this.listenTo(C.e.MIGRATION,"".concat(C.f.CUSTOMER_METADATA,":sync"),this.render),this.listenTo(C.b.MIGRATION_WIZARD,C.i.MigrationWizard.CLOSE_BANNER,this.closeSelectionBanner),this.listenTo(this.channelName,"add:selected",this.addSelected),this.listenTo(this.channelName,"remove:selected",this.removeSelected),this.listenTo(this.viewModel,"change:selectedVideoCount",this.renderStatusBar)}},{key:"fetchVideos",value:function(){var e=this;!this.videos&&this.options.folderChord&&this.migrationVideoDataService.getCustomerVideos(this.options.folderChord,(function(t){e.videos||(e.videos=p.a.toggleMigrated(t,!0),e.setSelectedVideos(),e.isRendering||e.render())}))}},{key:"fetchFolders",value:function(){var e=this;this.folders||this.migrationVideoDataService.getCustomerFolders((function(t){if(!e.folders){if(e.folders=t,e.options.folderChord){var n=e.folderCacheService.getFolderByChord(e.options.folderChord,t);W.f.setSelected(F.a.MIGRATION_WIZARD,n,e.folders),e.selectedFolder=W.f.getSelected(F.a.MIGRATION_WIZARD,t)}else{var r=e.folders.first();if(r)return void i.a.AppLinkHelper.trigger({application:C.b.MIGRATION_WIZARD,action:C.a.MigrationWizard.HOME,params:{folder:r.get("chord")}},{replace:!0})}e.isRendering||e.render()}}))}},{key:"setFolderText",value:function(e,t){var n=this,i=e.get("chord"),r=e.get("name"),o=this.folderCacheService.getFolderCache(),a=this.options.folderChord;if(a){var s,l=L.getSelectedInFolder(t,r);if(i===a){var c=this.migrationVideoDataService.getCustomerVideos(i);if(!this.selectedFolder)return;c&&(o[a]=c.length),s=o[a]}o[i]&&(s=o[i]),l&&s?e.set("text","".concat(r," (").concat(l,"/").concat(s,")")):e.set("text",r),e.children.forEach((function(e){return n.setFolderText(e,t)}))}else e.set("text",r)}},{key:"closeSelectionBanner",value:function(){var e=this.getRegion("selectedBanner");e&&(this.viewModel.set("bannerShown",!1),e.destroy())}},{key:"setSelectedVideos",value:function(){var e=this,t=this.selectedVideoService.getSelectedVideoIds();this.videos&&this.videos.forEach((function(n){return p.a.setChecked(n,t,e.isInitialMigration())})),t&&this.viewModel.set("selectedVideoCount",t.length)}},{key:"addSelected",value:function(e,t){this.selectedVideoService.addSelectedVideos(e,t)}},{key:"removeSelected",value:function(e,t){this.selectedVideoService.removeSelectedVideos(e,t)}},{key:"isInitialMigration",value:function(){return P.a.isInitialMigration(this.customerMetadata)}},{key:"onClickBack",value:function(){var e=this;new W.d({title:r.a.getPhrase(this.lang,"backHeading"),text:r.a.getPhrase(this.lang,"backBody"),buttons:[{text:r.a.getPhrase(this.lang,"discard"),className:"btn btn-danger",success:!0},{text:r.a.getPhrase(this.lang,"cancel"),className:"btn btn-secondary",close:!0}]}).render().done((function(){e.selectedVideoService.removeAllSelectedVideos(),e.viewModel.set("alertShown",!1),i.a.AppLinkHelper.trigger({application:C.b.MIGRATION_WIZARD,action:C.a.MigrationWizard.START_MIGRATION})}))}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".".concat(l.a.leftNav)),t=e.find(".".concat(u.a.selected));if(t.length&&!(t.offset().top-e.offset().top+t.height()<e.height())){var n=e.scrollTop()+(t.offset().top-e.offset().top),i=.5*e.height()+.5*t.height();e.scrollTop(n-i)}}},{key:"renderEmptyMessage",value:function(){this.showChildView("videoList",new G.b({text:"No folder selected"}))}},{key:"renderSelectedBanner",value:function(){if(this.isInitialMigration()&&!this.viewModel.get("alertShown")){this.viewModel.set("alertShown",!0);var e={heading:r.a.getPhrase(this.lang,"smartSelected"),message:r.a.getPhrase(this.lang,"last3Years"),type:o.a.Success};this.alertService.createAlert(e)}}},{key:"renderLeftNav",value:function(){var e=this,t=new g.a({styles:u.a,appLink:{action:C.a.MigrationWizard.HOME,application:C.b.MIGRATION_WIZARD},linkParams:function(e){return{folder:e.get("chord")}},collection:this.folders,channelName:"".concat(this.cid),childrenProperty:"children",textProperty:"name",extraClass:"p-0",folderTreeId:F.a.MIGRATION_WIZARD});this.showChildView("leftNav",t),window.requestAnimationFrame((function(){window.requestAnimationFrame((function(){e.centerSelectedItem()}))}))}},{key:"renderSearchBar",value:function(){this.showChildView("search",new G.h({selected:this.errorCount.get("count")?"publisher-archive":"none"}))}},{key:"renderStatusBar",value:function(){var e=this;if(this.videoCount){var t={application:C.b.MIGRATION_WIZARD,action:C.a.MigrationWizard.SELECTED,args:[this.options.folderChord]},n=this.videoCount.get("successCount"),i=this.selectedVideoService.getNumberSelected(),o=new G.k({nextAppLink:t,showSelected:!0,nextDisabled:0===i,showBackButton:this.isInitialMigration(),text:this.isInitialMigration()?r.a.getPhrase(this.lang,"next"):r.a.getPhrase(this.lang,"addToLibrary"),numberSelected:i,numberAvailable:n,onClickBack:function(){return e.onClickBack()}});this.showChildView("footer",o)}}},{key:"renderVideoList",value:function(){var e=this.options,t=e.folderChord,n=e.searchTerm;if(this.videos||!t&&!n)if(this.selectedFolder){this.showChildView("videoList",new G.l({model:this.selectedFolder,initialMigration:this.isInitialMigration(),folderChord:t,searchTerm:n,collection:this.videos,channelName:this.channelName,supportSiteUrl:this.config.get("supportSiteUrl")}));var i=n||t;W.a.GetViewModel(i,j.CheckboxTypes.MIGRATION_VIDEO_LIST).trigger("change")}else this.renderEmptyMessage();else this.renderPartialLoading("videoList")}},{key:"renderCurrentSection",value:function(){this.showChildView("header",new _({searchTerm:this.options.searchTerm,initialMigration:this.isInitialMigration()}))}},{key:"renderBanner",value:function(){this.isInitialMigration()&&this.showChildView("banner",new G.a({config:this.config,currentUser:this.currentUser}))}},{key:"requiredResources",get:function(){return{config:H.b.config,currentUser:z.b.currentUser}}},{key:"onBeforeRender",value:function(){this.isRendering=!0,this.fetchVideos(),this.fetchFolders(),this.customerMetadata=this.migrationVideoDataService.getCustomerMetadata(),this.errorCount=this.migrationVideoDataService.getManualReviewVideoCount(),this.videoCount=this.migrationVideoDataService.getCustomerVideoCountCached();var e=!!(this.customerMetadata&&this.folders&&this.videoCount&&this.errorCount);return e||(this.isRendering=!1),e}},{key:"viewOptions",value:function(){return{styles:l.a}}},{key:"onRender",value:function(){if(this.renderSelectedBanner(),this.renderLeftNav(),this.renderSearchBar(),this.renderStatusBar(),this.renderBanner(),!this.videos)return this.renderPartialLoading("header"),this.renderPartialLoading("videoList"),void(this.isRendering=!1);this.options.folderChord||this.options.searchTerm?(this.renderVideoList(),this.renderCurrentSection()):this.renderEmptyMessage(),this.isRendering=!1}}])&&Z(t.prototype,n),s&&Z(t,s),d}(i.a.View)}}]);