@clickview/library-editor 1.1.21-rc.1 → 1.1.21-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (350) hide show
  1. package/dist/scripts/{bundle-59190acd1d.min.js → bundle-d9f54fa2e3.min.js} +1 -1
  2. package/dist/scripts/bundles.json +1 -1
  3. package/package.json +1 -1
  4. package/dist/css/1.chunk.css.map +0 -1
  5. package/dist/css/10.chunk.css.map +0 -1
  6. package/dist/css/11.chunk.css +0 -137
  7. package/dist/css/11.chunk.css.map +0 -1
  8. package/dist/css/12.chunk.css.map +0 -1
  9. package/dist/css/13.chunk.css.map +0 -1
  10. package/dist/css/14.chunk.css.map +0 -1
  11. package/dist/css/16.chunk.css.map +0 -1
  12. package/dist/css/17.chunk.css.map +0 -1
  13. package/dist/css/18.chunk.css +0 -20
  14. package/dist/css/18.chunk.css.map +0 -1
  15. package/dist/css/2.chunk.css +0 -145
  16. package/dist/css/2.chunk.css.map +0 -1
  17. package/dist/css/21.chunk.css.map +0 -1
  18. package/dist/css/22.chunk.css.map +0 -1
  19. package/dist/css/23.chunk.css.map +0 -1
  20. package/dist/css/25.chunk.css.map +0 -1
  21. package/dist/css/26.chunk.css.map +0 -1
  22. package/dist/css/28.chunk.css.map +0 -1
  23. package/dist/css/29.chunk.css.map +0 -1
  24. package/dist/css/3.chunk.css.map +0 -1
  25. package/dist/css/30.chunk.css.map +0 -1
  26. package/dist/css/31.chunk.css.map +0 -1
  27. package/dist/css/32.chunk.css.map +0 -1
  28. package/dist/css/33.chunk.css +0 -4
  29. package/dist/css/33.chunk.css.map +0 -1
  30. package/dist/css/34.chunk.css +0 -21
  31. package/dist/css/34.chunk.css.map +0 -1
  32. package/dist/css/35.chunk.css +0 -20
  33. package/dist/css/35.chunk.css.map +0 -1
  34. package/dist/css/36.chunk.css.map +0 -1
  35. package/dist/css/37.chunk.css.map +0 -1
  36. package/dist/css/38.chunk.css.map +0 -1
  37. package/dist/css/40.chunk.css.map +0 -1
  38. package/dist/css/41.chunk.css.map +0 -1
  39. package/dist/css/42.chunk.css.map +0 -1
  40. package/dist/css/43.chunk.css.map +0 -1
  41. package/dist/css/44.chunk.css.map +0 -1
  42. package/dist/css/45.chunk.css.map +0 -1
  43. package/dist/css/46.chunk.css.map +0 -1
  44. package/dist/css/47.chunk.css.map +0 -1
  45. package/dist/css/48.chunk.css +0 -2
  46. package/dist/css/48.chunk.css.map +0 -1
  47. package/dist/css/49.chunk.css.map +0 -1
  48. package/dist/css/50.chunk.css.map +0 -1
  49. package/dist/css/51.chunk.css +0 -2
  50. package/dist/css/51.chunk.css.map +0 -1
  51. package/dist/css/52.chunk.css +0 -66
  52. package/dist/css/52.chunk.css.map +0 -1
  53. package/dist/css/55.chunk.css.map +0 -1
  54. package/dist/css/56.chunk.css.map +0 -1
  55. package/dist/css/58.chunk.css.map +0 -1
  56. package/dist/css/59.chunk.css +0 -2
  57. package/dist/css/59.chunk.css.map +0 -1
  58. package/dist/css/6.chunk.css.map +0 -1
  59. package/dist/css/60.chunk.css.map +0 -1
  60. package/dist/css/62.chunk.css +0 -2
  61. package/dist/css/62.chunk.css.map +0 -1
  62. package/dist/css/63.chunk.css +0 -170
  63. package/dist/css/63.chunk.css.map +0 -1
  64. package/dist/css/67.chunk.css +0 -78
  65. package/dist/css/67.chunk.css.map +0 -1
  66. package/dist/css/68.chunk.css +0 -17
  67. package/dist/css/68.chunk.css.map +0 -1
  68. package/dist/css/69.chunk.css +0 -17
  69. package/dist/css/69.chunk.css.map +0 -1
  70. package/dist/css/7.chunk.css.map +0 -1
  71. package/dist/css/70.chunk.css +0 -23
  72. package/dist/css/70.chunk.css.map +0 -1
  73. package/dist/css/71.chunk.css +0 -40
  74. package/dist/css/71.chunk.css.map +0 -1
  75. package/dist/css/72.chunk.css +0 -16
  76. package/dist/css/72.chunk.css.map +0 -1
  77. package/dist/css/73.chunk.css +0 -37
  78. package/dist/css/73.chunk.css.map +0 -1
  79. package/dist/css/74.chunk.css +0 -29
  80. package/dist/css/74.chunk.css.map +0 -1
  81. package/dist/css/75.chunk.css +0 -6
  82. package/dist/css/75.chunk.css.map +0 -1
  83. package/dist/css/76.chunk.css +0 -6
  84. package/dist/css/76.chunk.css.map +0 -1
  85. package/dist/css/8.chunk.css.map +0 -1
  86. package/dist/css/library-editor-app.css.map +0 -1
  87. package/dist/projects/library-editor/src/polyfills.d.ts +0 -2
  88. package/dist/scripts/0-ca679202dc.chunk.js +0 -1
  89. package/dist/scripts/0.chunk.js +0 -1034
  90. package/dist/scripts/0.chunk.js.map +0 -1
  91. package/dist/scripts/1-e99f6a4b40.chunk.js +0 -1
  92. package/dist/scripts/1.chunk.js +0 -442
  93. package/dist/scripts/1.chunk.js.map +0 -1
  94. package/dist/scripts/10-db266215e5.chunk.js +0 -1
  95. package/dist/scripts/10.chunk.js +0 -820
  96. package/dist/scripts/10.chunk.js.map +0 -1
  97. package/dist/scripts/11-51ab13cf04.chunk.js +0 -11
  98. package/dist/scripts/11.chunk.js +0 -4091
  99. package/dist/scripts/11.chunk.js.map +0 -1
  100. package/dist/scripts/12-a8ad430f3a.chunk.js +0 -1
  101. package/dist/scripts/12.chunk.js +0 -555
  102. package/dist/scripts/12.chunk.js.map +0 -1
  103. package/dist/scripts/13-107ba2526f.chunk.js +0 -1
  104. package/dist/scripts/13.chunk.js +0 -373
  105. package/dist/scripts/13.chunk.js.map +0 -1
  106. package/dist/scripts/14-d19ac2872e.chunk.js +0 -1
  107. package/dist/scripts/14.chunk.js +0 -2386
  108. package/dist/scripts/14.chunk.js.map +0 -1
  109. package/dist/scripts/15-979015a718.chunk.js +0 -1
  110. package/dist/scripts/15.chunk.js +0 -314
  111. package/dist/scripts/15.chunk.js.map +0 -1
  112. package/dist/scripts/16-2a8bfb08cb.chunk.js +0 -1
  113. package/dist/scripts/16.chunk.js +0 -1290
  114. package/dist/scripts/16.chunk.js.map +0 -1
  115. package/dist/scripts/17-b7d5d41f7e.chunk.js +0 -1
  116. package/dist/scripts/17.chunk.js +0 -381
  117. package/dist/scripts/17.chunk.js.map +0 -1
  118. package/dist/scripts/18.chunk.js +0 -393
  119. package/dist/scripts/18.chunk.js.map +0 -1
  120. package/dist/scripts/19.chunk.js +0 -364
  121. package/dist/scripts/19.chunk.js.map +0 -1
  122. package/dist/scripts/2-4e0702e404.chunk.js +0 -1
  123. package/dist/scripts/2.chunk.js +0 -519
  124. package/dist/scripts/2.chunk.js.map +0 -1
  125. package/dist/scripts/20-3c3507043d.chunk.js +0 -1
  126. package/dist/scripts/20.chunk.js +0 -317
  127. package/dist/scripts/20.chunk.js.map +0 -1
  128. package/dist/scripts/21-e1b652cbbd.chunk.js +0 -1
  129. package/dist/scripts/21.chunk.js +0 -531
  130. package/dist/scripts/21.chunk.js.map +0 -1
  131. package/dist/scripts/22-6ff4c8acc9.chunk.js +0 -1
  132. package/dist/scripts/22.chunk.js +0 -354
  133. package/dist/scripts/22.chunk.js.map +0 -1
  134. package/dist/scripts/23-84f6d42051.chunk.js +0 -1
  135. package/dist/scripts/23.chunk.js +0 -604
  136. package/dist/scripts/23.chunk.js.map +0 -1
  137. package/dist/scripts/24-71d0e5af84.chunk.js +0 -1
  138. package/dist/scripts/24.chunk.js +0 -318
  139. package/dist/scripts/24.chunk.js.map +0 -1
  140. package/dist/scripts/25-63e55b94d1.chunk.js +0 -1
  141. package/dist/scripts/25.chunk.js +0 -365
  142. package/dist/scripts/25.chunk.js.map +0 -1
  143. package/dist/scripts/26-03148e2beb.chunk.js +0 -1
  144. package/dist/scripts/26.chunk.js +0 -442
  145. package/dist/scripts/26.chunk.js.map +0 -1
  146. package/dist/scripts/27-4c1566e168.chunk.js +0 -1
  147. package/dist/scripts/27.chunk.js +0 -3565
  148. package/dist/scripts/27.chunk.js.map +0 -1
  149. package/dist/scripts/28-8b6147f186.chunk.js +0 -1
  150. package/dist/scripts/28.chunk.js +0 -3173
  151. package/dist/scripts/28.chunk.js.map +0 -1
  152. package/dist/scripts/29-ab744bc76f.chunk.js +0 -1
  153. package/dist/scripts/29.chunk.js +0 -3088
  154. package/dist/scripts/29.chunk.js.map +0 -1
  155. package/dist/scripts/3-948dad23b7.chunk.js +0 -1
  156. package/dist/scripts/3.chunk.js +0 -833
  157. package/dist/scripts/3.chunk.js.map +0 -1
  158. package/dist/scripts/30-ca11897c8c.chunk.js +0 -1
  159. package/dist/scripts/30.chunk.js +0 -1852
  160. package/dist/scripts/30.chunk.js.map +0 -1
  161. package/dist/scripts/31-c52013832c.chunk.js +0 -1
  162. package/dist/scripts/31.chunk.js +0 -958
  163. package/dist/scripts/31.chunk.js.map +0 -1
  164. package/dist/scripts/32-800ff7a3d2.chunk.js +0 -1
  165. package/dist/scripts/32.chunk.js +0 -1235
  166. package/dist/scripts/32.chunk.js.map +0 -1
  167. package/dist/scripts/33-a78c3eebd5.chunk.js +0 -1
  168. package/dist/scripts/33.chunk.js +0 -792
  169. package/dist/scripts/33.chunk.js.map +0 -1
  170. package/dist/scripts/34-3c4c65d69b.chunk.js +0 -1
  171. package/dist/scripts/34.chunk.js +0 -990
  172. package/dist/scripts/34.chunk.js.map +0 -1
  173. package/dist/scripts/35-8f001c740f.chunk.js +0 -1
  174. package/dist/scripts/35.chunk.js +0 -518
  175. package/dist/scripts/35.chunk.js.map +0 -1
  176. package/dist/scripts/36-3aeb2db7b1.chunk.js +0 -1
  177. package/dist/scripts/36.chunk.js +0 -335
  178. package/dist/scripts/36.chunk.js.map +0 -1
  179. package/dist/scripts/37-f837b37da6.chunk.js +0 -1
  180. package/dist/scripts/37.chunk.js +0 -236
  181. package/dist/scripts/37.chunk.js.map +0 -1
  182. package/dist/scripts/38-96a70abc7e.chunk.js +0 -1
  183. package/dist/scripts/38.chunk.js +0 -315
  184. package/dist/scripts/38.chunk.js.map +0 -1
  185. package/dist/scripts/39-2c91ed5792.chunk.js +0 -1
  186. package/dist/scripts/39.chunk.js +0 -116
  187. package/dist/scripts/39.chunk.js.map +0 -1
  188. package/dist/scripts/4-47a1458dff.chunk.js +0 -1
  189. package/dist/scripts/4.chunk.js +0 -335
  190. package/dist/scripts/4.chunk.js.map +0 -1
  191. package/dist/scripts/40-f3651a4572.chunk.js +0 -1
  192. package/dist/scripts/40.chunk.js +0 -1782
  193. package/dist/scripts/40.chunk.js.map +0 -1
  194. package/dist/scripts/41-908d353ede.chunk.js +0 -1
  195. package/dist/scripts/41.chunk.js +0 -2347
  196. package/dist/scripts/41.chunk.js.map +0 -1
  197. package/dist/scripts/42-7de5d85207.chunk.js +0 -1
  198. package/dist/scripts/42.chunk.js +0 -2116
  199. package/dist/scripts/42.chunk.js.map +0 -1
  200. package/dist/scripts/43-f1361f956d.chunk.js +0 -1
  201. package/dist/scripts/43.chunk.js +0 -2243
  202. package/dist/scripts/43.chunk.js.map +0 -1
  203. package/dist/scripts/44-50769e406b.chunk.js +0 -1
  204. package/dist/scripts/44.chunk.js +0 -1024
  205. package/dist/scripts/44.chunk.js.map +0 -1
  206. package/dist/scripts/45-9a434a5bd6.chunk.js +0 -1
  207. package/dist/scripts/45.chunk.js +0 -1065
  208. package/dist/scripts/45.chunk.js.map +0 -1
  209. package/dist/scripts/46-a9ca193eb7.chunk.js +0 -1
  210. package/dist/scripts/46.chunk.js +0 -656
  211. package/dist/scripts/46.chunk.js.map +0 -1
  212. package/dist/scripts/47-a919e008e6.chunk.js +0 -1
  213. package/dist/scripts/47.chunk.js +0 -735
  214. package/dist/scripts/47.chunk.js.map +0 -1
  215. package/dist/scripts/48-8b8ad444c6.chunk.js +0 -1
  216. package/dist/scripts/48.chunk.js +0 -994
  217. package/dist/scripts/48.chunk.js.map +0 -1
  218. package/dist/scripts/49-1060332c94.chunk.js +0 -1
  219. package/dist/scripts/49.chunk.js +0 -759
  220. package/dist/scripts/49.chunk.js.map +0 -1
  221. package/dist/scripts/5-cbac37484e.chunk.js +0 -1
  222. package/dist/scripts/5.chunk.js +0 -15
  223. package/dist/scripts/5.chunk.js.map +0 -1
  224. package/dist/scripts/50-421fc85bef.chunk.js +0 -1
  225. package/dist/scripts/50.chunk.js +0 -528
  226. package/dist/scripts/50.chunk.js.map +0 -1
  227. package/dist/scripts/51-7677f7ff70.chunk.js +0 -1
  228. package/dist/scripts/51.chunk.js +0 -932
  229. package/dist/scripts/51.chunk.js.map +0 -1
  230. package/dist/scripts/52-d4c61c1996.chunk.js +0 -1
  231. package/dist/scripts/52.chunk.js +0 -408
  232. package/dist/scripts/52.chunk.js.map +0 -1
  233. package/dist/scripts/53-8ae575251b.chunk.js +0 -1
  234. package/dist/scripts/53.chunk.js +0 -754
  235. package/dist/scripts/53.chunk.js.map +0 -1
  236. package/dist/scripts/54-6068a4d6c5.chunk.js +0 -1
  237. package/dist/scripts/54.chunk.js +0 -681
  238. package/dist/scripts/54.chunk.js.map +0 -1
  239. package/dist/scripts/55-989847d37e.chunk.js +0 -1
  240. package/dist/scripts/55.chunk.js +0 -645
  241. package/dist/scripts/55.chunk.js.map +0 -1
  242. package/dist/scripts/56-1215f5b596.chunk.js +0 -1
  243. package/dist/scripts/56.chunk.js +0 -346
  244. package/dist/scripts/56.chunk.js.map +0 -1
  245. package/dist/scripts/57-862310acde.chunk.js +0 -1
  246. package/dist/scripts/57.chunk.js +0 -422
  247. package/dist/scripts/57.chunk.js.map +0 -1
  248. package/dist/scripts/58-15786678f5.chunk.js +0 -1
  249. package/dist/scripts/58.chunk.js +0 -437
  250. package/dist/scripts/58.chunk.js.map +0 -1
  251. package/dist/scripts/59-0eaa35b612.chunk.js +0 -1
  252. package/dist/scripts/59.chunk.js +0 -342
  253. package/dist/scripts/59.chunk.js.map +0 -1
  254. package/dist/scripts/6-c9648df42d.chunk.js +0 -1
  255. package/dist/scripts/6.chunk.js +0 -484
  256. package/dist/scripts/6.chunk.js.map +0 -1
  257. package/dist/scripts/60-fd82862934.chunk.js +0 -1
  258. package/dist/scripts/60.chunk.js +0 -254
  259. package/dist/scripts/60.chunk.js.map +0 -1
  260. package/dist/scripts/61-51fca2bf0e.chunk.js +0 -1
  261. package/dist/scripts/61.chunk.js +0 -409
  262. package/dist/scripts/61.chunk.js.map +0 -1
  263. package/dist/scripts/62-2a372f4810.chunk.js +0 -1
  264. package/dist/scripts/62.chunk.js +0 -142
  265. package/dist/scripts/62.chunk.js.map +0 -1
  266. package/dist/scripts/63-3efa945b24.chunk.js +0 -1
  267. package/dist/scripts/63.chunk.js +0 -147
  268. package/dist/scripts/63.chunk.js.map +0 -1
  269. package/dist/scripts/64-eafdec6ee2.chunk.js +0 -1
  270. package/dist/scripts/64.chunk.js +0 -439
  271. package/dist/scripts/64.chunk.js.map +0 -1
  272. package/dist/scripts/65-7de035024e.chunk.js +0 -1
  273. package/dist/scripts/65.chunk.js +0 -582
  274. package/dist/scripts/65.chunk.js.map +0 -1
  275. package/dist/scripts/66-b42ac9bb08.chunk.js +0 -1
  276. package/dist/scripts/66.chunk.js +0 -442
  277. package/dist/scripts/66.chunk.js.map +0 -1
  278. package/dist/scripts/67-07f4863ec4.chunk.js +0 -1
  279. package/dist/scripts/67.chunk.js +0 -295
  280. package/dist/scripts/67.chunk.js.map +0 -1
  281. package/dist/scripts/68-6c49662638.chunk.js +0 -1
  282. package/dist/scripts/68.chunk.js +0 -165
  283. package/dist/scripts/68.chunk.js.map +0 -1
  284. package/dist/scripts/69-30f7b9bd2b.chunk.js +0 -1
  285. package/dist/scripts/69.chunk.js +0 -248
  286. package/dist/scripts/69.chunk.js.map +0 -1
  287. package/dist/scripts/7-06de2dc87e.chunk.js +0 -1
  288. package/dist/scripts/7.chunk.js +0 -309
  289. package/dist/scripts/7.chunk.js.map +0 -1
  290. package/dist/scripts/70-9a7afc7f7c.chunk.js +0 -1
  291. package/dist/scripts/70.chunk.js +0 -207
  292. package/dist/scripts/70.chunk.js.map +0 -1
  293. package/dist/scripts/71-8b092d42ed.chunk.js +0 -1
  294. package/dist/scripts/71.chunk.js +0 -237
  295. package/dist/scripts/71.chunk.js.map +0 -1
  296. package/dist/scripts/72-f1b9669186.chunk.js +0 -1
  297. package/dist/scripts/72.chunk.js +0 -331
  298. package/dist/scripts/72.chunk.js.map +0 -1
  299. package/dist/scripts/73.chunk.js +0 -404
  300. package/dist/scripts/73.chunk.js.map +0 -1
  301. package/dist/scripts/74.chunk.js +0 -301
  302. package/dist/scripts/74.chunk.js.map +0 -1
  303. package/dist/scripts/75.chunk.js +0 -231
  304. package/dist/scripts/75.chunk.js.map +0 -1
  305. package/dist/scripts/76.chunk.js +0 -157
  306. package/dist/scripts/76.chunk.js.map +0 -1
  307. package/dist/scripts/77.chunk.js +0 -307
  308. package/dist/scripts/77.chunk.js.map +0 -1
  309. package/dist/scripts/78.chunk.js +0 -249
  310. package/dist/scripts/78.chunk.js.map +0 -1
  311. package/dist/scripts/79.chunk.js +0 -282
  312. package/dist/scripts/79.chunk.js.map +0 -1
  313. package/dist/scripts/8-7a1c9219fe.chunk.js +0 -1
  314. package/dist/scripts/8.chunk.js +0 -307
  315. package/dist/scripts/8.chunk.js.map +0 -1
  316. package/dist/scripts/80.chunk.js +0 -308
  317. package/dist/scripts/80.chunk.js.map +0 -1
  318. package/dist/scripts/81.chunk.js +0 -366
  319. package/dist/scripts/81.chunk.js.map +0 -1
  320. package/dist/scripts/82.chunk.js +0 -314
  321. package/dist/scripts/82.chunk.js.map +0 -1
  322. package/dist/scripts/83.chunk.js +0 -328
  323. package/dist/scripts/83.chunk.js.map +0 -1
  324. package/dist/scripts/84.chunk.js +0 -313
  325. package/dist/scripts/84.chunk.js.map +0 -1
  326. package/dist/scripts/85.chunk.js +0 -291
  327. package/dist/scripts/85.chunk.js.map +0 -1
  328. package/dist/scripts/86.chunk.js +0 -119
  329. package/dist/scripts/86.chunk.js.map +0 -1
  330. package/dist/scripts/87.chunk.js +0 -219
  331. package/dist/scripts/87.chunk.js.map +0 -1
  332. package/dist/scripts/88.chunk.js +0 -194
  333. package/dist/scripts/88.chunk.js.map +0 -1
  334. package/dist/scripts/89.chunk.js +0 -522
  335. package/dist/scripts/89.chunk.js.map +0 -1
  336. package/dist/scripts/9-5bc6861938.chunk.js +0 -1
  337. package/dist/scripts/9.chunk.js +0 -222
  338. package/dist/scripts/9.chunk.js.map +0 -1
  339. package/dist/scripts/90.chunk.js +0 -337
  340. package/dist/scripts/90.chunk.js.map +0 -1
  341. package/dist/scripts/91.chunk.js +0 -131
  342. package/dist/scripts/91.chunk.js.map +0 -1
  343. package/dist/scripts/92.chunk.js +0 -266
  344. package/dist/scripts/92.chunk.js.map +0 -1
  345. package/dist/scripts/bundle-d83d171bc0.min.js +0 -1
  346. package/dist/scripts/bundle.js +0 -60670
  347. package/dist/scripts/bundle.js.map +0 -1
  348. package/dist/scripts/polyfills-cf8a15183c.min.js +0 -1
  349. package/dist/scripts/polyfills.js +0 -14844
  350. package/dist/scripts/polyfills.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"sources":["file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/apps/migration-wizard/views/selected-videos/SelectedVideos.hbs","file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/apps/migration-wizard/views/selected-videos/SelectedVideosView.ts","webpack://@clickview/library-editor/./src/apps/migration-wizard/views/selected-videos/selected-videos.scss?c542"],"names":[],"mappings":";;;;;;;;;AAAA,iBAAiB,mBAAO,CAAC,8BAAY;AACrC,iEAAiE;AACjE;;AAEA;AACA,mKAAmK,oBAAoB,sBAAsB,wGAAwG,aAAa;AAClU;AACA,CAAC;AACD;;AAEA;AACA,mKAAmK,sBAAsB,uBAAuB,aAAa;AAC7N;AACA,CAAC;AACD;AACA,CAAC;AACD,gLAAgL;;AAEhL;AACA;AACA;AACA,sFAAsF,uBAAuB,aAAa;AAC1H;AACA,uIAAuI,qBAAqB,wFAAwF;AACpP;AACA;AACA;AACA;AACA;AACA,iFAAiF,uBAAuB,aAAa;AACrH;AACA;AACA;AACA,2IAA2I,qBAAqB,yEAAyE;AACzO;AACA,sFAAsF,sBAAsB,wGAAwG,aAAa;AACjO;AACA,CAAC,gBAAgB,E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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ACf,qBAAW,EAAE,6DAAW,CAAC,gBADV;AAEf,gBAAM,EAAE,yDAAO,CAAC,eAAR,CAAwB,IAFjB;AAGf,gBAAM,EAAE;AAAE,kBAAM,EAAE,KAAK,OAAL,CAAa;AAAvB;AAHO;AADZ,OAAP;AAOD;AA9DH;AAAA;AAAA,wBAgJ8B;AAC1B,aAAO;AACL,wBAAgB,EAAE,mGAA+B,CAAC;AAD7C,OAAP;AAGD;AApJH;;AAAA;AAAA,EAAwC,8DAAI,CAAC,IAA7C,E;;;;;;;;;;;ACtCA;AACA,kBAAkB,8F","file":"scripts/72.chunk.js","sourcesContent":["var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return \" \"\n + container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"videosSelected\",{\"name\":\"lang\",\"hash\":{\"smartCount\":((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.selected : stack1)},\"data\":data}))\n + \"\\r\\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var alias1=container.propertyIsEnumerable;\n\n return \" \"\n + container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"noVideosSelected\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"\\r\\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n return \"disabled\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {}), alias5=container.hooks.helperMissing;\n\n return \"<div class=\\\"p-3 w-100 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.header : stack1), depth0))\n + \"\\\">\\r\\n <span class=\\\"d-inline-block\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||alias5).call(alias4,\"addVideos\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</span>\\r\\n</div>\\r\\n<div class=\\\"p-3 w-100\\\">\\r\\n <h6 class=\\\"mt-1 mb-1\\\">\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.selected : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.program(3, data, 0),\"data\":data})) != null ? stack1 : \"\")\n + \" </h6>\\r\\n <div class=\\\"selected-video-list-region\\\"></div>\\r\\n</div>\\r\\n<div class=\\\"py-2 px-3 w-100 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.footer : stack1), depth0))\n + \"\\\">\\r\\n <div class=\\\"row\\\">\\r\\n <div class=\\\"col-4\\\">\\r\\n <button class=\\\"applink-back btn btn-secondary \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.button : stack1), depth0))\n + \"\\\">\\r\\n \"\n + alias3((helpers.lang||(depth0 && depth0.lang)||alias5).call(alias4,\"back\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"\\r\\n </button>\\r\\n </div>\\r\\n <div class=\\\"col-2 offset-6 text-right spinner-region\\\">\\r\\n <button class=\\\"applink-next btn btn-primary \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.button : stack1), depth0))\n + \"\\\" \"\n + ((stack1 = helpers[\"if\"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.nextDisabled : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \">\\r\\n \"\n + alias3((helpers.lang||(depth0 && depth0.lang)||alias5).call(alias4,\"addTitles\",{\"name\":\"lang\",\"hash\":{\"smartCount\":((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.selected : stack1)},\"data\":data}))\n + \"\\r\\n </button>\\r\\n </div>\\r\\n </div>\\r\\n</div>\";\n},\"useData\":true});","import { ObjectHash } from 'backbone';\r\nimport { Radio } from 'backbone';\r\n\r\nimport { Core } from 'libs/common/core';\r\nimport { InstanceManager } from 'libs/common/backbone/services/InstanceManager';\r\n\r\nimport { SpinnerButtonComponent, SpinnerButtonEvents } from 'shared/components/spinner-button/SpinnerButtonComponent';\r\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\r\nimport { Actions, DataServices, Services, DataPrefixes, DataChannels, AppChannels } from 'shared/constants';\r\nimport { SpinnerSize, SpinnerType } from 'shared/utils';\r\n\r\nimport { SelectedVideoItemComponent } from 'apps/migration-wizard/components';\r\nimport { SelectedVideo, FinalisationTask, CustomerMetadata } from 'apps/migration-wizard/models';\r\nimport { MigrationVideoDataService, MigrationVideoDataServiceHelper } from 'apps/migration-wizard/services/MigrationVideoDataService';\r\nimport { VideoHelper } from 'apps/migration-wizard/utils/VideoHelper';\r\nimport { SelectedVideoService } from 'apps/migration-wizard/services/SelectedVideoService';\r\nimport { MigrationFinalisationError } from 'apps/migration-wizard/errors';\r\nimport { MigrationOption } from 'apps/migration-wizard/enums';\r\nimport { MigrationHelper } from 'apps/migration-wizard/utils/MigrationHelper';\r\nimport { VideoDataService } from 'apps/library-editor/services/VideoDataService';\r\n\r\nimport styles from './selected-videos.scss';\r\nimport SelectedVideosTemplate from './SelectedVideos.hbs';\r\n\r\nclass SelectedVideoComponentCollection extends Core.ComponentCollection {\r\n public get name(): string {\r\n return 'SelectedVideoComponentCollection';\r\n }\r\n\r\n public get childView(): any {\r\n return SelectedVideoItemComponent;\r\n }\r\n}\r\n\r\ninterface SelectedVideosViewOptions extends Core.ViewOptions {\r\n previousFolderChord: string;\r\n}\r\n\r\nexport class SelectedVideosView extends Core.View {\r\n public options: SelectedVideosViewOptions;\r\n private groupedVideos: Core.Collection<SelectedVideo>;\r\n private selectedVideoService: SelectedVideoService;\r\n private migrationVideoDataService: MigrationVideoDataService;\r\n private videoDataService: VideoDataService;\r\n private customerMetaData: CustomerMetadata;\r\n\r\n constructor(options: SelectedVideosViewOptions) {\r\n super(options);\r\n }\r\n\r\n public initialize(): void {\r\n this.selectedVideoService = InstanceManager.getInstance(Services.SelectedVideo, this);\r\n this.migrationVideoDataService = InstanceManager.getInstance(DataServices.MigrationVideo, this);\r\n this.videoDataService = InstanceManager.getInstance(DataServices.Video, this);\r\n\r\n this.listenTo(this.channelName, 'add', this.onClickAdd);\r\n }\r\n\r\n public get name(): string {\r\n return 'SelectedVideosView';\r\n }\r\n\r\n public get title(): string {\r\n return LanguageService.getPhrase(this.lang, 'title');\r\n }\r\n\r\n public get lang(): string {\r\n return 'migrationWizard.selectedVideos';\r\n }\r\n\r\n public get template(): any {\r\n return SelectedVideosTemplate;\r\n }\r\n\r\n public get className(): string {\r\n return `row mt-2 container-region ${styles.container}`;\r\n }\r\n\r\n public get channelName(): string {\r\n return `${this.name}${this.cid}`;\r\n }\r\n\r\n public regions(): ObjectHash {\r\n return {\r\n selectedVideoListRegion: {\r\n replaceElement: true,\r\n el: '.selected-video-list-region',\r\n },\r\n spinner: '.spinner-region'\r\n };\r\n }\r\n\r\n public get appLinks(): Core.AppLinkHash {\r\n return {\r\n '.applink-back': {\r\n application: AppChannels.MIGRATION_WIZARD,\r\n action: Actions.MigrationWizard.HOME,\r\n params: { folder: this.options.previousFolderChord },\r\n }\r\n };\r\n }\r\n\r\n private onClickAdd(): void {\r\n this.listenTo(DataChannels.MIGRATION, `${DataPrefixes.CUSTOMER_VIDEOS}:finalise:error`, this.onError);\r\n\r\n Radio.channel(this.channelName)\r\n .trigger(SpinnerButtonEvents.ShowSpinner);\r\n\r\n const params: ObjectHash = {};\r\n\r\n if (MigrationHelper.isInitialMigration(this.customerMetaData)) {\r\n params.initialMigration = true;\r\n }\r\n\r\n this.migrationVideoDataService.updateCustomerMigrationOption(MigrationOption.Smart, () => {\r\n this.migrationVideoDataService.finaliseCustomerVideos(\r\n this.groupedVideos, false, (finalisationTask: FinalisationTask) => {\r\n this.selectedVideoService.removeAllSelectedVideos();\r\n this.migrationVideoDataService.clearVideoCache();\r\n this.videoDataService.clearVideoCache();\r\n\r\n Core.AppLinkHelper.trigger({\r\n application: AppChannels.MIGRATION_WIZARD,\r\n action: Actions.MigrationWizard.PROGRESS,\r\n args: [finalisationTask.id],\r\n params\r\n });\r\n }\r\n );\r\n });\r\n }\r\n\r\n private onError(): void {\r\n Core.ErrorHelper.throw(new MigrationFinalisationError());\r\n }\r\n\r\n private getGroupedVideos(): void {\r\n const selectedVideos = this.selectedVideoService.getSelectedVideos();\r\n\r\n this.groupedVideos = new Core.Collection<SelectedVideo>(\r\n VideoHelper.getSelectedVideosCollection(selectedVideos).sortBy('folderChord')\r\n );\r\n }\r\n\r\n private renderSelectedVideoList(): void {\r\n this.showChildView('selectedVideoListRegion', new SelectedVideoComponentCollection({\r\n collection: this.groupedVideos,\r\n }));\r\n }\r\n\r\n private renderSpinner(): void {\r\n const selected = this.selectedVideoService.getNumberSelected();\r\n\r\n const spinner = new SpinnerButtonComponent({\r\n buttonText: LanguageService.getPhrase(this.lang, 'buttonText', {\r\n smartCount: selected\r\n }),\r\n extraButtonClass: 'btn-primary',\r\n model: new Core.Model({ disabled: selected === 0 }),\r\n spinnerOptions: {\r\n size: SpinnerSize.Small,\r\n type: SpinnerType.Light,\r\n extraClasses: 'mx-auto'\r\n },\r\n saveEvent: 'add',\r\n channelName: this.channelName\r\n });\r\n\r\n this.showChildView('spinner', spinner);\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n const selected = this.selectedVideoService.getNumberSelected();\r\n\r\n return {\r\n styles,\r\n selected,\r\n multipleSelected: selected > 1,\r\n nextDisabled: selected === 0\r\n };\r\n }\r\n\r\n public get requiredResources(): Core.RequiredResourceHash {\r\n return {\r\n customerMetaData: MigrationVideoDataServiceHelper.customerMetaData\r\n };\r\n }\r\n\r\n public onRender(): void {\r\n this.getGroupedVideos();\r\n this.renderSelectedVideoList();\r\n this.renderSpinner();\r\n }\r\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"cv--container--2SvL3\",\"header\":\"cv--header--2KEEa\",\"footer\":\"cv--footer--wCMJb\"};"],"sourceRoot":""}
@@ -1,404 +0,0 @@
1
- (window["webpackJsonp_clickview_library_editor"] = window["webpackJsonp_clickview_library_editor"] || []).push([[73],{
2
-
3
- /***/ "./src/apps/migration-wizard/views/start/Start.hbs":
4
- /*!*********************************************************!*\
5
- !*** ./src/apps/migration-wizard/views/start/Start.hbs ***!
6
- \*********************************************************/
7
- /*! no static exports found */
8
- /***/ (function(module, exports, __webpack_require__) {
9
-
10
- var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
11
- module.exports = (Handlebars['default'] || Handlebars).template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
12
- var stack1, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {}), alias3=container.hooks.helperMissing, alias4=container.escapeExpression, alias5=container.lambda;
13
-
14
- return "<div class=\"m-4\">\r\n <h4>"
15
- + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"heading",{"name":"lang","hash":{},"data":data}))
16
- + "</h4>\r\n <div class=\"text-left mt-3\">\r\n <p class=\""
17
- + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.subtitle : stack1), depth0))
18
- + " text-center\">"
19
- + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"question",{"name":"lang","hash":{},"data":data}))
20
- + "</p>\r\n\r\n <img src=\"/images/migrate.png\" class=\""
21
- + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.image : stack1), depth0))
22
- + " w-50 d-block p-2\">\r\n\r\n <p class=\""
23
- + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.options : stack1), depth0))
24
- + " mt-3\">"
25
- + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"options",{"name":"lang","hash":{},"data":data}))
26
- + "</p>\r\n\r\n <div class=\"mb-2\">\r\n <input type=\"radio\" class=\"d-inline-block align-top mt-1\" id=\"smart\" value=\"1\" name=\"options\">\r\n <label for=\"smart\" class=\"mb-1 "
27
- + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.optionHeader : stack1), depth0))
28
- + "\">"
29
- + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"smartOption",{"name":"lang","hash":{},"data":data}))
30
- + " <span class=\"badge "
31
- + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.migrationBadge : stack1), depth0))
32
- + " ml-2\">"
33
- + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"recommended",{"name":"lang","hash":{},"data":data}))
34
- + "</span></label>\r\n <span class=\"d-block "
35
- + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.optionText : stack1), depth0))
36
- + "\">"
37
- + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"smartOptionInfo",{"name":"lang","hash":{},"data":data}))
38
- + "</span>\r\n </div>\r\n <div class=\"mb-2\">\r\n <input type=\"radio\" class=\"d-inline-block align-top mt-1\" id=\"all\" value=\"3\" name=\"options\">\r\n <label for=\"all\" class=\"mb-1 "
39
- + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.optionHeader : stack1), depth0))
40
- + "\">"
41
- + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"allVideosOption",{"name":"lang","hash":{},"data":data}))
42
- + "</label>\r\n <span class=\"d-block "
43
- + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.optionText : stack1), depth0))
44
- + "\">"
45
- + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"allVideosOptionInfo",{"name":"lang","hash":{},"data":data}))
46
- + "</span>\r\n </div>\r\n <div class=\"mb-2\">\r\n <input type=\"radio\" class=\"d-inline-block align-top mt-1\" id=\"fresh\" value=\"2\" name=\"options\">\r\n <label for=\"fresh\" class=\"mb-1 "
47
- + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.optionHeader : stack1), depth0))
48
- + "\">"
49
- + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"startFreshOption",{"name":"lang","hash":{},"data":data}))
50
- + "</label>\r\n <span class=\"d-block "
51
- + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.optionText : stack1), depth0))
52
- + "\">"
53
- + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"startFreshOptionInfo",{"name":"lang","hash":{},"data":data}))
54
- + "</span>\r\n </div>\r\n <div>\r\n "
55
- + ((stack1 = (helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"support",{"name":"lang","hash":{"supportUrl":((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.supportUrl : stack1),"className":"info-link"},"data":data})) != null ? stack1 : "")
56
- + "\r\n </div>\r\n </div>\r\n\r\n <div class=\"save-region\"></div>\r\n <div class=\"smart-select-waiting-message\" style=\"display: none;\">\r\n <p class=\"mt-2\">"
57
- + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"waiting",{"name":"lang","hash":{},"data":data}))
58
- + "</p>\r\n <p class=\"mt-2 smart-count\"></p>\r\n </div>\r\n</div>\r\n<div class=\""
59
- + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.migrationBanner : stack1), depth0))
60
- + " p-3 text-white "
61
- + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.infoMessage : stack1), depth0))
62
- + "\">\r\n "
63
- + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"note",{"name":"lang","hash":{},"data":data}))
64
- + "\r\n</div>";
65
- },"useData":true});
66
-
67
- /***/ }),
68
-
69
- /***/ "./src/apps/migration-wizard/views/start/StartView.ts":
70
- /*!************************************************************!*\
71
- !*** ./src/apps/migration-wizard/views/start/StartView.ts ***!
72
- \************************************************************/
73
- /*! exports provided: StartView */
74
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
75
-
76
- "use strict";
77
- __webpack_require__.r(__webpack_exports__);
78
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartView", function() { return StartView; });
79
- /* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! backbone */ "backbone");
80
- /* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(backbone__WEBPACK_IMPORTED_MODULE_0__);
81
- /* harmony import */ var _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/services/LanguageService */ "../../libs/common/src/backbone/services/LanguageService.tsx");
82
- /* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
83
- /* harmony import */ var _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/services/InstanceManager */ "../../libs/common/src/backbone/services/InstanceManager.ts");
84
- /* harmony import */ var _libs_common_src_backbone_services_ViewModelService__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/services/ViewModelService */ "../../libs/common/src/backbone/services/ViewModelService.ts");
85
- /* harmony import */ var _libs_common_src_backbone_utils_UrlHelper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/utils/UrlHelper */ "../../libs/common/src/backbone/utils/UrlHelper.ts");
86
- /* harmony import */ var _shared_behaviors__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/behaviors */ "./src/shared/behaviors/index.ts");
87
- /* harmony import */ var _shared_components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/components/spinner-button/SpinnerButtonComponent */ "./src/shared/components/spinner-button/SpinnerButtonComponent.ts");
88
- /* harmony import */ var _shared_services_ConfigDataService__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../shared/services/ConfigDataService */ "./src/shared/services/ConfigDataService.ts");
89
- /* harmony import */ var _shared_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../shared/constants */ "./src/shared/constants/index.ts");
90
- /* harmony import */ var _shared_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../shared/utils */ "./src/shared/utils/index.ts");
91
- /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../enums */ "./src/apps/migration-wizard/enums/index.ts");
92
- /* harmony import */ var _models__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../models */ "./src/apps/migration-wizard/models/index.ts");
93
- /* harmony import */ var _errors__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../errors */ "./src/apps/migration-wizard/errors/index.ts");
94
- /* harmony import */ var _errors_smart_migration_api_call_SmartMigrationApiCallError__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../errors/smart-migration-api-call/SmartMigrationApiCallError */ "./src/apps/migration-wizard/errors/smart-migration-api-call/SmartMigrationApiCallError.ts");
95
- /* harmony import */ var _start_scss__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./start.scss */ "./src/apps/migration-wizard/views/start/start.scss");
96
- /* harmony import */ var _start_scss__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_start_scss__WEBPACK_IMPORTED_MODULE_15__);
97
- /* harmony import */ var _Start_hbs__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Start.hbs */ "./src/apps/migration-wizard/views/start/Start.hbs");
98
- /* harmony import */ var _Start_hbs__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_Start_hbs__WEBPACK_IMPORTED_MODULE_16__);
99
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
100
-
101
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
102
-
103
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
104
-
105
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
106
-
107
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
108
-
109
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
110
-
111
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
112
-
113
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
114
-
115
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
116
-
117
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
118
-
119
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
-
138
- var StartView = /*#__PURE__*/function (_Core$View) {
139
- _inherits(StartView, _Core$View);
140
-
141
- var _super = _createSuper(StartView);
142
-
143
- function StartView() {
144
- _classCallCheck(this, StartView);
145
-
146
- return _super.apply(this, arguments);
147
- }
148
-
149
- _createClass(StartView, [{
150
- key: "initialize",
151
- value: function initialize() {
152
- this.migrationVideoDataService = _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_3__["InstanceManager"].getInstance(_shared_constants__WEBPACK_IMPORTED_MODULE_9__["DataServices"].MigrationVideo, this);
153
- this.selectedVideoService = _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_3__["InstanceManager"].getInstance(_shared_constants__WEBPACK_IMPORTED_MODULE_9__["Services"].SelectedVideo, this);
154
- this.initViewModel();
155
- this.listenTo(this.channelName, 'continue', this.onClickContinue);
156
- this.listenTo(_shared_constants__WEBPACK_IMPORTED_MODULE_9__["DataChannels"].MIGRATION, "".concat(_shared_constants__WEBPACK_IMPORTED_MODULE_9__["DataPrefixes"].CUSTOMER_SMART_VIDEOS, ":error"), this.onSmartMigrationError);
157
- }
158
- }, {
159
- key: "regions",
160
- value: function regions() {
161
- return {
162
- save: {
163
- el: '.save-region',
164
- replaceElement: true
165
- }
166
- };
167
- }
168
- }, {
169
- key: "initViewModel",
170
- value: function initViewModel() {
171
- this.viewModel = _libs_common_src_backbone_services_ViewModelService__WEBPACK_IMPORTED_MODULE_4__["ViewModelService"].get("".concat(this.name, ":viewmodel"), {
172
- option: _enums__WEBPACK_IMPORTED_MODULE_11__["MigrationOption"].Smart
173
- }, {
174
- ctor: _models__WEBPACK_IMPORTED_MODULE_12__["MigrationOptions"]
175
- });
176
- }
177
- }, {
178
- key: "viewOptions",
179
- value: function viewOptions() {
180
- return {
181
- styles: _start_scss__WEBPACK_IMPORTED_MODULE_15___default.a,
182
- supportUrl: _libs_common_src_backbone_utils_UrlHelper__WEBPACK_IMPORTED_MODULE_5__["UrlHelper"].safeUrlConcat(this.config.get('supportSiteUrl'), _shared_constants__WEBPACK_IMPORTED_MODULE_9__["SupportArticles"].MIGRATION_OPTIONS)
183
- };
184
- }
185
- /**
186
- * Called when the 'Continue' button is clicked
187
- * We find what migration type to do and go to the relevant view
188
- */
189
-
190
- }, {
191
- key: "onClickContinue",
192
- value: function onClickContinue() {
193
- this.listenTo(_shared_constants__WEBPACK_IMPORTED_MODULE_9__["DataChannels"].MIGRATION, "".concat(_shared_constants__WEBPACK_IMPORTED_MODULE_9__["DataPrefixes"].CUSTOMER_VIDEOS, ":finalise:all:error"), this.onFinaliseError);
194
- backbone__WEBPACK_IMPORTED_MODULE_0__["Radio"].channel(this.channelName).trigger(_shared_components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_7__["SpinnerButtonEvents"].ShowSpinner);
195
- var option = this.viewModel.get('option');
196
-
197
- switch (+option) {
198
- case _enums__WEBPACK_IMPORTED_MODULE_11__["MigrationOption"].Smart:
199
- this.startSmartMigrationPaginated();
200
- break;
201
-
202
- case _enums__WEBPACK_IMPORTED_MODULE_11__["MigrationOption"].Full:
203
- this.startFullMigration();
204
- break;
205
-
206
- case _enums__WEBPACK_IMPORTED_MODULE_11__["MigrationOption"].Scratch:
207
- this.startScratchMigration();
208
- break;
209
- }
210
- }
211
- }, {
212
- key: "startScratchMigration",
213
- value: function startScratchMigration() {
214
- var _this = this;
215
-
216
- this.migrationVideoDataService.updateCustomerMigrationOption(_enums__WEBPACK_IMPORTED_MODULE_11__["MigrationOption"].Scratch, function () {
217
- _this.migrationVideoDataService.clearCacheAndGetCustomerMetadata(function () {
218
- _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__["Core"].AppLinkHelper.trigger({
219
- application: _shared_constants__WEBPACK_IMPORTED_MODULE_9__["AppChannels"].LIBRARY_EDITOR,
220
- action: _shared_constants__WEBPACK_IMPORTED_MODULE_9__["Actions"].LibraryEditor.HOME
221
- });
222
- });
223
- });
224
- }
225
- }, {
226
- key: "startFullMigration",
227
- value: function startFullMigration() {
228
- var _this2 = this;
229
-
230
- this.migrationVideoDataService.updateCustomerMigrationOption(_enums__WEBPACK_IMPORTED_MODULE_11__["MigrationOption"].Full, function () {
231
- _this2.migrationVideoDataService.finaliseAllVideos(function (finalisationTask) {
232
- /**
233
- * We clear the cache so that the MigrationWizardApplication re-fetches customer meta
234
- * and subsequently hides the top nav
235
- */
236
- _this2.migrationVideoDataService.getCustomerMetadata(function (customerMeta) {
237
- /**
238
- * Because Migration API can take up to a second to set the active finalisation task
239
- * instead of clearing the customer meta cache and re-fetching. We instead update the state
240
- * of the customer meta model to what it will be in 1 second's time
241
- */
242
- customerMeta.set('finalisationTask', finalisationTask.toJSON());
243
- _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__["Core"].AppLinkHelper.trigger({
244
- application: _shared_constants__WEBPACK_IMPORTED_MODULE_9__["AppChannels"].MIGRATION_WIZARD,
245
- action: _shared_constants__WEBPACK_IMPORTED_MODULE_9__["Actions"].MigrationWizard.PROGRESS,
246
- args: [finalisationTask.get('id')],
247
- params: {
248
- initialMigration: true
249
- }
250
- });
251
- });
252
- });
253
- });
254
- }
255
- /**
256
- * If Smart is chosen we want to send the user to the
257
- * migration view with videos selected before we update the migration option.
258
- * They might decide to hit back and choose another option.
259
- */
260
-
261
- }, {
262
- key: "startSmartMigrationPaginated",
263
- value: function startSmartMigrationPaginated() {
264
- var _this3 = this;
265
-
266
- var timeout = window.setTimeout(function () {
267
- var message = _this3.getUI('waitingMessage');
268
-
269
- message && message.show();
270
- }, 2000);
271
-
272
- var onProgress = function onProgress(progress) {
273
- var text = "<strong>".concat(_libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_1__["LanguageService"].getPhrase(_this3.lang, 'progress', {
274
- count: progress
275
- }), "</strong>");
276
-
277
- _this3.getUI('smartCount').html(text);
278
- };
279
-
280
- this.selectedVideoService.removeAllSelectedVideos();
281
- this.migrationVideoDataService.clearCacheAndgetCustomerSmartSelect(onProgress, function (videos) {
282
- window.clearTimeout(timeout);
283
-
284
- _this3.selectedVideoService.addSmartSelectedVideos(videos);
285
-
286
- _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__["Core"].AppLinkHelper.trigger({
287
- application: _shared_constants__WEBPACK_IMPORTED_MODULE_9__["AppChannels"].MIGRATION_WIZARD,
288
- action: _shared_constants__WEBPACK_IMPORTED_MODULE_9__["Actions"].MigrationWizard.SMART
289
- });
290
- });
291
- }
292
- }, {
293
- key: "onSmartMigrationError",
294
- value: function onSmartMigrationError() {
295
- _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__["Core"].ErrorHelper.throw(new _errors_smart_migration_api_call_SmartMigrationApiCallError__WEBPACK_IMPORTED_MODULE_14__["SmartMigrationApiCallError"](this.config.get('supportSiteUrl')));
296
- }
297
- }, {
298
- key: "onFinaliseError",
299
- value: function onFinaliseError() {
300
- _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__["Core"].ErrorHelper.throw(new _errors__WEBPACK_IMPORTED_MODULE_13__["MigrationFinalisationError"]());
301
- }
302
- }, {
303
- key: "renderSaveButton",
304
- value: function renderSaveButton() {
305
- var view = new _shared_components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_7__["SpinnerButtonComponent"]({
306
- saveEvent: 'continue',
307
- channelName: this.channelName,
308
- buttonText: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_1__["LanguageService"].getPhrase(this.lang, 'continue'),
309
- extraButtonClass: "btn-lg btn-primary mt-3",
310
- spinnerOptions: {
311
- size: _shared_utils__WEBPACK_IMPORTED_MODULE_10__["SpinnerSize"].Medium,
312
- type: _shared_utils__WEBPACK_IMPORTED_MODULE_10__["SpinnerType"].Light,
313
- extraClasses: 'mx-auto'
314
- }
315
- });
316
- this.showChildView('save', view);
317
- }
318
- }, {
319
- key: "onRender",
320
- value: function onRender() {
321
- this.renderSaveButton();
322
- }
323
- }, {
324
- key: "name",
325
- get: function get() {
326
- return 'StartView';
327
- }
328
- }, {
329
- key: "title",
330
- get: function get() {
331
- return _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_1__["LanguageService"].getPhrase(this.lang, 'title');
332
- }
333
- }, {
334
- key: "lang",
335
- get: function get() {
336
- return 'migrationWizard.start';
337
- }
338
- }, {
339
- key: "className",
340
- get: function get() {
341
- return "".concat(_start_scss__WEBPACK_IMPORTED_MODULE_15___default.a.migrationContainer, " text-center bg-white ").concat(_start_scss__WEBPACK_IMPORTED_MODULE_15___default.a.start);
342
- }
343
- }, {
344
- key: "channelName",
345
- get: function get() {
346
- return "".concat(this.name).concat(this.cid);
347
- }
348
- }, {
349
- key: "template",
350
- get: function get() {
351
- return _Start_hbs__WEBPACK_IMPORTED_MODULE_16___default.a;
352
- }
353
- }, {
354
- key: "bindings",
355
- get: function get() {
356
- return {
357
- 'input[name=options]': 'option'
358
- };
359
- }
360
- }, {
361
- key: "behaviors",
362
- get: function get() {
363
- return [{
364
- behaviorClass: _shared_behaviors__WEBPACK_IMPORTED_MODULE_6__["StickitBehavior"],
365
- bindViewModel: true
366
- }];
367
- }
368
- }, {
369
- key: "elements",
370
- get: function get() {
371
- return {
372
- continue: '.continue',
373
- waitingMessage: '.smart-select-waiting-message',
374
- smartCount: '.smart-count'
375
- };
376
- }
377
- }, {
378
- key: "requiredResources",
379
- get: function get() {
380
- return {
381
- config: _shared_services_ConfigDataService__WEBPACK_IMPORTED_MODULE_8__["ConfigDataServiceHelper"].config
382
- };
383
- }
384
- }]);
385
-
386
- return StartView;
387
- }(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__["Core"].View);
388
-
389
- /***/ }),
390
-
391
- /***/ "./src/apps/migration-wizard/views/start/start.scss":
392
- /*!**********************************************************!*\
393
- !*** ./src/apps/migration-wizard/views/start/start.scss ***!
394
- \**********************************************************/
395
- /*! no static exports found */
396
- /***/ (function(module, exports, __webpack_require__) {
397
-
398
- // extracted by mini-css-extract-plugin
399
- module.exports = {"start":"cv--start--GpK3N","subtitle":"cv--subtitle--2tQJA","options":"cv--options--BxsJX","optionHeader":"cv--optionHeader--2OS3h","optionText":"cv--optionText--1sNAq","image":"cv--image--xsCzA","infoMessage":"cv--infoMessage--3jOln","migrationBanner":"cv--migrationBanner--n_A_A","migrationBadge":"cv--migrationBadge--plIse","migrationContainer":"cv--migrationContainer--33xeg"};
400
-
401
- /***/ })
402
-
403
- }]);
404
- //# sourceMappingURL=73.chunk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/apps/migration-wizard/views/start/Start.hbs","file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/apps/migration-wizard/views/start/StartView.ts","webpack://@clickview/library-editor/./src/apps/migration-wizard/views/start/start.scss?f564"],"names":[],"mappings":";;;;;;;;;AAAA,iBAAiB,mBAAO,CAAC,8BAAY;AACrC,iEAAiE;AACjE,oHAAoH;;AAEpH;AACA,oFAAoF,uBAAuB,aAAa;AACxH;AACA;AACA;AACA,qFAAqF,uBAAuB,aAAa;AACzH;AACA;AACA;AACA;AACA;AACA,oFAAoF,uBAAuB,aAAa;AACxH;AACA;AACA;AACA,wFAAwF,uBAAuB,aAAa;AAC5H;AACA;AACA;AACA,wFAAwF,uBAAuB,aAAa;AAC5H;AACA;AACA;AACA,4FAA4F,uBAAuB,aAAa;AAChI;AACA;AACA;AACA,4FAA4F,uBAAuB,aAAa;AAChI;AACA;AACA;AACA,gGAAgG,uBAAuB,aAAa;AACpI;AACA;AACA;AACA,6FAA6F,uBAAuB,aAAa;AACjI;AACA;AACA;AACA,iGAAiG,uBAAuB,aAAa;AACrI;AACA,wFAAwF,sBAAsB,kIAAkI,aAAa;AAC7P,oJAAoJ;AACpJ,oFAAoF,uBAAuB,aAAa;AACxH;AACA;AACA;AACA;AACA;AACA,iFAAiF,uBAAuB,aAAa;AACrH;AACA,CAAC,gBAAgB,E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACrDjB;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AAEA;AACA;AAGA;AAEA;AAEA;AACA;AAEO,IAAM,SAAb;AAAA;;AAAA;;AAAA;AAAA;;AAAA;AAAA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;;AC5BA;AACA,kBAAkB,6X","file":"scripts/73.chunk.js","sourcesContent":["var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {}), alias3=container.hooks.helperMissing, alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"<div class=\\\"m-4\\\">\\r\\n <h4>\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"heading\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</h4>\\r\\n <div class=\\\"text-left mt-3\\\">\\r\\n <p class=\\\"\"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.subtitle : stack1), depth0))\n + \" text-center\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"question\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</p>\\r\\n\\r\\n <img src=\\\"/images/migrate.png\\\" class=\\\"\"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.image : stack1), depth0))\n + \" w-50 d-block p-2\\\">\\r\\n\\r\\n <p class=\\\"\"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.options : stack1), depth0))\n + \" mt-3\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"options\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</p>\\r\\n\\r\\n <div class=\\\"mb-2\\\">\\r\\n <input type=\\\"radio\\\" class=\\\"d-inline-block align-top mt-1\\\" id=\\\"smart\\\" value=\\\"1\\\" name=\\\"options\\\">\\r\\n <label for=\\\"smart\\\" class=\\\"mb-1 \"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.optionHeader : stack1), depth0))\n + \"\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"smartOption\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \" <span class=\\\"badge \"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.migrationBadge : stack1), depth0))\n + \" ml-2\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"recommended\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</span></label>\\r\\n <span class=\\\"d-block \"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.optionText : stack1), depth0))\n + \"\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"smartOptionInfo\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</span>\\r\\n </div>\\r\\n <div class=\\\"mb-2\\\">\\r\\n <input type=\\\"radio\\\" class=\\\"d-inline-block align-top mt-1\\\" id=\\\"all\\\" value=\\\"3\\\" name=\\\"options\\\">\\r\\n <label for=\\\"all\\\" class=\\\"mb-1 \"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.optionHeader : stack1), depth0))\n + \"\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"allVideosOption\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</label>\\r\\n <span class=\\\"d-block \"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.optionText : stack1), depth0))\n + \"\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"allVideosOptionInfo\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</span>\\r\\n </div>\\r\\n <div class=\\\"mb-2\\\">\\r\\n <input type=\\\"radio\\\" class=\\\"d-inline-block align-top mt-1\\\" id=\\\"fresh\\\" value=\\\"2\\\" name=\\\"options\\\">\\r\\n <label for=\\\"fresh\\\" class=\\\"mb-1 \"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.optionHeader : stack1), depth0))\n + \"\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"startFreshOption\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</label>\\r\\n <span class=\\\"d-block \"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.optionText : stack1), depth0))\n + \"\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"startFreshOptionInfo\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</span>\\r\\n </div>\\r\\n <div>\\r\\n \"\n + ((stack1 = (helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"support\",{\"name\":\"lang\",\"hash\":{\"supportUrl\":((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.supportUrl : stack1),\"className\":\"info-link\"},\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n </div>\\r\\n </div>\\r\\n\\r\\n <div class=\\\"save-region\\\"></div>\\r\\n <div class=\\\"smart-select-waiting-message\\\" style=\\\"display: none;\\\">\\r\\n <p class=\\\"mt-2\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"waiting\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</p>\\r\\n <p class=\\\"mt-2 smart-count\\\"></p>\\r\\n </div>\\r\\n</div>\\r\\n<div class=\\\"\"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.migrationBanner : stack1), depth0))\n + \" p-3 text-white \"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.infoMessage : stack1), depth0))\n + \"\\\">\\r\\n \"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"note\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"\\r\\n</div>\";\n},\"useData\":true});","import * as _ from 'underscore';\r\nimport { ObjectHash } from 'backbone';\r\nimport { Radio } from 'backbone';\r\n\r\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\r\nimport { Core } from 'libs/common/core';\r\nimport { InstanceManager } from 'libs/common/backbone/services/InstanceManager';\r\nimport { ViewModelService } from 'libs/common/backbone/services/ViewModelService';\r\nimport { UrlHelper } from 'libs/common/backbone/utils/UrlHelper';\r\n\r\nimport { StickitBehavior } from 'shared/behaviors';\r\nimport { SpinnerButtonComponent, SpinnerButtonEvents } from 'shared/components/spinner-button/SpinnerButtonComponent';\r\nimport { ConfigDataServiceHelper } from 'shared/services/ConfigDataService';\r\nimport { Actions, DataServices, Services, DataPrefixes, DataChannels, AppChannels, SupportArticles } from 'shared/constants';\r\nimport { Config } from 'shared/models/Config';\r\nimport { SpinnerSize, SpinnerType } from 'shared/utils';\r\n\r\nimport { MigrationOption } from 'apps/migration-wizard/enums';\r\nimport { MigrationOptions, FinalisationTask, CustomerMetadata } from 'apps/migration-wizard/models';\r\nimport { MigrationVideoDataService } from 'apps/migration-wizard/services/MigrationVideoDataService';\r\nimport { SelectedVideoService } from 'apps/migration-wizard/services/SelectedVideoService';\r\nimport { MigrationFinalisationError } from 'apps/migration-wizard/errors';\r\nimport { SmartSelectVideoCollection } from 'apps/migration-wizard/collections';\r\nimport { SmartMigrationApiCallError } from 'apps/migration-wizard/errors/smart-migration-api-call/SmartMigrationApiCallError';\r\n\r\nimport styles from './start.scss';\r\nimport StartTemplate from './Start.hbs';\r\n\r\nexport class StartView extends Core.View {\r\n private config: Config;\r\n public viewModel: MigrationOptions;\r\n private migrationVideoDataService: MigrationVideoDataService;\r\n private selectedVideoService: SelectedVideoService;\r\n\r\n public initialize(): void {\r\n this.migrationVideoDataService = InstanceManager.getInstance(DataServices.MigrationVideo, this);\r\n this.selectedVideoService = InstanceManager.getInstance(Services.SelectedVideo, this);\r\n\r\n this.initViewModel();\r\n\r\n this.listenTo(this.channelName, 'continue', this.onClickContinue);\r\n this.listenTo(DataChannels.MIGRATION, `${DataPrefixes.CUSTOMER_SMART_VIDEOS}:error`, this.onSmartMigrationError);\r\n }\r\n\r\n public get name(): string {\r\n return 'StartView';\r\n }\r\n\r\n public get title(): string {\r\n return LanguageService.getPhrase(this.lang, 'title');\r\n }\r\n\r\n public get lang(): string {\r\n return 'migrationWizard.start';\r\n }\r\n\r\n public get className(): string {\r\n return `${styles.migrationContainer} text-center bg-white ${styles.start}`;\r\n }\r\n\r\n public get channelName(): string {\r\n return `${this.name}${this.cid}`;\r\n }\r\n\r\n public get template(): any {\r\n return StartTemplate;\r\n }\r\n\r\n public regions(): ObjectHash {\r\n return {\r\n save: {\r\n el: '.save-region',\r\n replaceElement: true\r\n }\r\n };\r\n }\r\n\r\n public get bindings(): ObjectHash {\r\n return {\r\n 'input[name=options]': 'option',\r\n };\r\n }\r\n\r\n public get behaviors(): any[] {\r\n return [\r\n {\r\n behaviorClass: StickitBehavior,\r\n bindViewModel: true\r\n }\r\n ];\r\n }\r\n\r\n public get elements(): ObjectHash {\r\n return {\r\n continue: '.continue',\r\n waitingMessage: '.smart-select-waiting-message',\r\n smartCount: '.smart-count'\r\n };\r\n }\r\n\r\n private initViewModel(): void {\r\n this.viewModel = ViewModelService.get<MigrationOptions>(\r\n `${this.name}:viewmodel`,\r\n { option: MigrationOption.Smart },\r\n { ctor: MigrationOptions }\r\n );\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n return {\r\n styles,\r\n supportUrl: UrlHelper.safeUrlConcat(this.config.get('supportSiteUrl'), SupportArticles.MIGRATION_OPTIONS)\r\n };\r\n }\r\n\r\n /**\r\n * Called when the 'Continue' button is clicked\r\n * We find what migration type to do and go to the relevant view\r\n */\r\n private onClickContinue(): void {\r\n this.listenTo(DataChannels.MIGRATION, `${DataPrefixes.CUSTOMER_VIDEOS}:finalise:all:error`, this.onFinaliseError);\r\n\r\n Radio.channel(this.channelName)\r\n .trigger(SpinnerButtonEvents.ShowSpinner);\r\n\r\n const option = this.viewModel.get('option');\r\n\r\n switch (+option) {\r\n case MigrationOption.Smart:\r\n this.startSmartMigrationPaginated();\r\n break;\r\n case MigrationOption.Full:\r\n this.startFullMigration();\r\n break;\r\n case MigrationOption.Scratch:\r\n this.startScratchMigration();\r\n break;\r\n }\r\n }\r\n\r\n private startScratchMigration(): void {\r\n this.migrationVideoDataService.updateCustomerMigrationOption(MigrationOption.Scratch, () => {\r\n this.migrationVideoDataService.clearCacheAndGetCustomerMetadata(() => {\r\n Core.AppLinkHelper.trigger({\r\n application: AppChannels.LIBRARY_EDITOR,\r\n action: Actions.LibraryEditor.HOME\r\n });\r\n });\r\n });\r\n }\r\n\r\n private startFullMigration(): void {\r\n this.migrationVideoDataService.updateCustomerMigrationOption(MigrationOption.Full, () => {\r\n this.migrationVideoDataService.finaliseAllVideos((finalisationTask: FinalisationTask) => {\r\n /**\r\n * We clear the cache so that the MigrationWizardApplication re-fetches customer meta \r\n * and subsequently hides the top nav\r\n */\r\n this.migrationVideoDataService.getCustomerMetadata((customerMeta: CustomerMetadata) => {\r\n\r\n /**\r\n * Because Migration API can take up to a second to set the active finalisation task\r\n * instead of clearing the customer meta cache and re-fetching. We instead update the state\r\n * of the customer meta model to what it will be in 1 second's time\r\n */\r\n customerMeta.set('finalisationTask', finalisationTask.toJSON());\r\n Core.AppLinkHelper.trigger({\r\n application: AppChannels.MIGRATION_WIZARD,\r\n action: Actions.MigrationWizard.PROGRESS,\r\n args: [finalisationTask.get('id')],\r\n params: { initialMigration: true }\r\n });\r\n });\r\n });\r\n });\r\n }\r\n\r\n /**\r\n * If Smart is chosen we want to send the user to the\r\n * migration view with videos selected before we update the migration option.\r\n * They might decide to hit back and choose another option.\r\n */\r\n private startSmartMigrationPaginated(): void {\r\n const timeout = window.setTimeout(() => {\r\n const message = this.getUI('waitingMessage');\r\n message && message.show();\r\n }, 2000);\r\n\r\n const onProgress = (progress: number) => {\r\n const text = `<strong>${LanguageService.getPhrase(this.lang, 'progress', { count: progress })}</strong>`;\r\n this.getUI('smartCount').html(text);\r\n };\r\n\r\n this.selectedVideoService.removeAllSelectedVideos();\r\n this.migrationVideoDataService.clearCacheAndgetCustomerSmartSelect(\r\n onProgress,\r\n (videos: SmartSelectVideoCollection) => {\r\n window.clearTimeout(timeout);\r\n this.selectedVideoService.addSmartSelectedVideos(videos);\r\n Core.AppLinkHelper.trigger({\r\n application: AppChannels.MIGRATION_WIZARD,\r\n action: Actions.MigrationWizard.SMART\r\n });\r\n }\r\n );\r\n }\r\n\r\n private onSmartMigrationError(): void {\r\n Core.ErrorHelper.throw(new SmartMigrationApiCallError(this.config.get('supportSiteUrl')));\r\n }\r\n\r\n private onFinaliseError(): void {\r\n Core.ErrorHelper.throw(new MigrationFinalisationError());\r\n }\r\n\r\n public get requiredResources(): Core.RequiredResourceHash {\r\n return {\r\n config: ConfigDataServiceHelper.config\r\n };\r\n }\r\n\r\n private renderSaveButton(): void {\r\n const view = new SpinnerButtonComponent({\r\n saveEvent: 'continue',\r\n channelName: this.channelName,\r\n buttonText: LanguageService.getPhrase(this.lang, 'continue'),\r\n extraButtonClass: `btn-lg btn-primary mt-3`,\r\n spinnerOptions: {\r\n size: SpinnerSize.Medium,\r\n type: SpinnerType.Light,\r\n extraClasses: 'mx-auto'\r\n }\r\n });\r\n\r\n this.showChildView('save', view);\r\n }\r\n\r\n public onRender(): void {\r\n this.renderSaveButton();\r\n }\r\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"start\":\"cv--start--GpK3N\",\"subtitle\":\"cv--subtitle--2tQJA\",\"options\":\"cv--options--BxsJX\",\"optionHeader\":\"cv--optionHeader--2OS3h\",\"optionText\":\"cv--optionText--1sNAq\",\"image\":\"cv--image--xsCzA\",\"infoMessage\":\"cv--infoMessage--3jOln\",\"migrationBanner\":\"cv--migrationBanner--n_A_A\",\"migrationBadge\":\"cv--migrationBadge--plIse\",\"migrationContainer\":\"cv--migrationContainer--33xeg\"};"],"sourceRoot":""}