@clickview/library-editor 1.1.19-dev.0 → 1.1.19-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (374) hide show
  1. package/dist/css/1.chunk.css.map +1 -0
  2. package/dist/css/10.chunk.css.map +1 -0
  3. package/dist/css/11.chunk.css +137 -0
  4. package/dist/css/11.chunk.css.map +1 -0
  5. package/dist/css/12.chunk.css.map +1 -0
  6. package/dist/css/13.chunk.css.map +1 -0
  7. package/dist/css/14.chunk.css.map +1 -0
  8. package/dist/css/16.chunk.css.map +1 -0
  9. package/dist/css/17.chunk.css.map +1 -0
  10. package/dist/css/18.chunk.css.map +1 -0
  11. package/dist/css/2.chunk.css.map +1 -0
  12. package/dist/css/21.chunk.css.map +1 -0
  13. package/dist/css/22.chunk.css.map +1 -0
  14. package/dist/css/23.chunk.css.map +1 -0
  15. package/dist/css/25.chunk.css.map +1 -0
  16. package/dist/css/26.chunk.css.map +1 -0
  17. package/dist/css/28.chunk.css.map +1 -0
  18. package/dist/css/29.chunk.css.map +1 -0
  19. package/dist/css/3.chunk.css +17 -0
  20. package/dist/css/3.chunk.css.map +1 -0
  21. package/dist/css/30.chunk.css.map +1 -0
  22. package/dist/css/31.chunk.css.map +1 -0
  23. package/dist/css/32.chunk.css.map +1 -0
  24. package/dist/css/33.chunk.css +16 -0
  25. package/dist/css/33.chunk.css.map +1 -0
  26. package/dist/css/34.chunk.css +21 -0
  27. package/dist/css/34.chunk.css.map +1 -0
  28. package/dist/css/35.chunk.css +20 -0
  29. package/dist/css/35.chunk.css.map +1 -0
  30. package/dist/css/36.chunk.css.map +1 -0
  31. package/dist/css/37.chunk.css.map +1 -0
  32. package/dist/css/38.chunk.css.map +1 -0
  33. package/dist/css/40.chunk.css.map +1 -0
  34. package/dist/css/41.chunk.css.map +1 -0
  35. package/dist/css/42.chunk.css.map +1 -0
  36. package/dist/css/43.chunk.css.map +1 -0
  37. package/dist/css/44.chunk.css.map +1 -0
  38. package/dist/css/45.chunk.css.map +1 -0
  39. package/dist/css/46.chunk.css.map +1 -0
  40. package/dist/css/47.chunk.css.map +1 -0
  41. package/dist/css/48.chunk.css.map +1 -0
  42. package/dist/css/49.chunk.css +35 -0
  43. package/dist/css/49.chunk.css.map +1 -0
  44. package/dist/css/50.chunk.css.map +1 -0
  45. package/dist/css/51.chunk.css.map +1 -0
  46. package/dist/css/52.chunk.css +66 -0
  47. package/dist/css/52.chunk.css.map +1 -0
  48. package/dist/css/55.chunk.css.map +1 -0
  49. package/dist/css/56.chunk.css.map +1 -0
  50. package/dist/css/58.chunk.css.map +1 -0
  51. package/dist/css/59.chunk.css.map +1 -0
  52. package/dist/css/6.chunk.css.map +1 -0
  53. package/dist/css/60.chunk.css +18 -0
  54. package/dist/css/60.chunk.css.map +1 -0
  55. package/dist/css/62.chunk.css.map +1 -0
  56. package/dist/css/63.chunk.css +170 -0
  57. package/dist/css/63.chunk.css.map +1 -0
  58. package/dist/css/67.chunk.css +78 -0
  59. package/dist/css/67.chunk.css.map +1 -0
  60. package/dist/css/68.chunk.css +17 -0
  61. package/dist/css/68.chunk.css.map +1 -0
  62. package/dist/css/69.chunk.css +17 -0
  63. package/dist/css/69.chunk.css.map +1 -0
  64. package/dist/css/7.chunk.css.map +1 -0
  65. package/dist/css/70.chunk.css +23 -0
  66. package/dist/css/70.chunk.css.map +1 -0
  67. package/dist/css/71.chunk.css +40 -0
  68. package/dist/css/71.chunk.css.map +1 -0
  69. package/dist/css/72.chunk.css +16 -0
  70. package/dist/css/72.chunk.css.map +1 -0
  71. package/dist/css/73.chunk.css +37 -0
  72. package/dist/css/73.chunk.css.map +1 -0
  73. package/dist/css/74.chunk.css +29 -0
  74. package/dist/css/74.chunk.css.map +1 -0
  75. package/dist/css/75.chunk.css +6 -0
  76. package/dist/css/75.chunk.css.map +1 -0
  77. package/dist/css/76.chunk.css +6 -0
  78. package/dist/css/76.chunk.css.map +1 -0
  79. package/dist/css/8.chunk.css.map +1 -0
  80. package/dist/css/library-editor-app.css +2 -0
  81. package/dist/css/library-editor-app.css.map +1 -0
  82. package/dist/en.json +1 -1
  83. package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +49 -5
  84. package/dist/libs/common/src/backbone/core/BaseAppRouter.d.ts +5 -1
  85. package/dist/libs/shared/src/apps/search/components/instant-search/classification/ClassificationSearchResultComponent.d.ts +17 -0
  86. package/dist/libs/shared/src/apps/search/components/instant-search/index.d.ts +1 -0
  87. package/dist/libs/shared/src/apps/search/enums/SearchQueryType.d.ts +1 -1
  88. package/dist/libs/shared/src/apps/search/utils/InstantSearchHelper.d.ts +1 -0
  89. package/dist/libs/shared/src/apps/search/views/search-bar/SearchBarView.d.ts +2 -0
  90. package/dist/libs/shared/src/apps/upload/services/UploadService.d.ts +3 -2
  91. package/dist/libs/shared/src/constants/BootstrapKeys.d.ts +1 -0
  92. package/dist/libs/shared/src/enums/CountryCode.d.ts +5 -0
  93. package/dist/libs/shared/src/enums/SubtitleExtractionOptions.d.ts +4 -0
  94. package/dist/libs/shared/src/enums/WidgetContents.d.ts +2 -1
  95. package/dist/libs/shared/src/interfaces/app-variables/BaseSearchAppVariables.d.ts +1 -1
  96. package/dist/libs/shared/src/interfaces/models/Classification.d.ts +1 -0
  97. package/dist/libs/shared/src/interfaces/models/Config.d.ts +3 -1
  98. package/dist/libs/shared/src/interfaces/models/Theme.d.ts +1 -2
  99. package/dist/libs/shared/src/interfaces/models/UserChannel.d.ts +7 -0
  100. package/dist/libs/shared/src/interfaces/models/index.d.ts +1 -0
  101. package/dist/libs/shared/src/legacy/components/thumbnail/ThumbnailComponent.d.ts +1 -0
  102. package/dist/projects/library-editor/src/apps/default/DefaultApplication.d.ts +1 -1
  103. package/dist/scripts/{0-48b01028ea.chunk.js → 0-8cdf48d69e.chunk.js} +1 -1
  104. package/dist/scripts/0.chunk.js +1034 -0
  105. package/dist/scripts/0.chunk.js.map +1 -0
  106. package/dist/scripts/1-a197f0efeb.chunk.js +1 -0
  107. package/dist/scripts/1.chunk.js +442 -0
  108. package/dist/scripts/1.chunk.js.map +1 -0
  109. package/dist/scripts/{10-b4b24c05f8.chunk.js → 10-48aa375ebe.chunk.js} +1 -1
  110. package/dist/scripts/10.chunk.js +820 -0
  111. package/dist/scripts/10.chunk.js.map +1 -0
  112. package/dist/scripts/{11-e79fc84dc9.chunk.js → 11-805aab3b80.chunk.js} +1 -1
  113. package/dist/scripts/11.chunk.js +4091 -0
  114. package/dist/scripts/11.chunk.js.map +1 -0
  115. package/dist/scripts/{12-58284faf21.chunk.js → 12-57671136e8.chunk.js} +1 -1
  116. package/dist/scripts/12.chunk.js +555 -0
  117. package/dist/scripts/12.chunk.js.map +1 -0
  118. package/dist/scripts/{13-2c4cd203ec.chunk.js → 13-46bc40cc23.chunk.js} +1 -1
  119. package/dist/scripts/13.chunk.js +373 -0
  120. package/dist/scripts/13.chunk.js.map +1 -0
  121. package/dist/scripts/{14-2eeb73cd11.chunk.js → 14-556e982a73.chunk.js} +1 -1
  122. package/dist/scripts/14.chunk.js +2386 -0
  123. package/dist/scripts/14.chunk.js.map +1 -0
  124. package/dist/scripts/15-2edbad42a0.chunk.js +1 -0
  125. package/dist/scripts/15.chunk.js +314 -0
  126. package/dist/scripts/15.chunk.js.map +1 -0
  127. package/dist/scripts/{16-68c900303f.chunk.js → 16-60b9a789b4.chunk.js} +1 -1
  128. package/dist/scripts/16.chunk.js +1290 -0
  129. package/dist/scripts/16.chunk.js.map +1 -0
  130. package/dist/scripts/{17-af7eca54ed.chunk.js → 17-d6083dbd9b.chunk.js} +1 -1
  131. package/dist/scripts/17.chunk.js +381 -0
  132. package/dist/scripts/17.chunk.js.map +1 -0
  133. package/dist/scripts/{18-087b42c483.chunk.js → 18-31ce9284d0.chunk.js} +1 -1
  134. package/dist/scripts/18.chunk.js +393 -0
  135. package/dist/scripts/18.chunk.js.map +1 -0
  136. package/dist/scripts/19.chunk.js +364 -0
  137. package/dist/scripts/19.chunk.js.map +1 -0
  138. package/dist/scripts/{2-c70309751f.chunk.js → 2-33fcca96e3.chunk.js} +1 -1
  139. package/dist/scripts/2.chunk.js +519 -0
  140. package/dist/scripts/2.chunk.js.map +1 -0
  141. package/dist/scripts/{20-caf95bbe64.chunk.js → 20-3c2f3fb166.chunk.js} +1 -1
  142. package/dist/scripts/20.chunk.js +317 -0
  143. package/dist/scripts/20.chunk.js.map +1 -0
  144. package/dist/scripts/21-9497f03cd8.chunk.js +1 -0
  145. package/dist/scripts/21.chunk.js +531 -0
  146. package/dist/scripts/21.chunk.js.map +1 -0
  147. package/dist/scripts/{22-f2b4962990.chunk.js → 22-22cd929ad4.chunk.js} +1 -1
  148. package/dist/scripts/22.chunk.js +354 -0
  149. package/dist/scripts/22.chunk.js.map +1 -0
  150. package/dist/scripts/{23-d575c690b9.chunk.js → 23-16b02d09f5.chunk.js} +1 -1
  151. package/dist/scripts/23.chunk.js +605 -0
  152. package/dist/scripts/23.chunk.js.map +1 -0
  153. package/dist/scripts/{24-dc5b027075.chunk.js → 24-24699f9007.chunk.js} +1 -1
  154. package/dist/scripts/24.chunk.js +318 -0
  155. package/dist/scripts/24.chunk.js.map +1 -0
  156. package/dist/scripts/{25-956d1e9caf.chunk.js → 25-7a210f731b.chunk.js} +1 -1
  157. package/dist/scripts/25.chunk.js +365 -0
  158. package/dist/scripts/25.chunk.js.map +1 -0
  159. package/dist/scripts/{26-7a3d12d816.chunk.js → 26-263cf0ebce.chunk.js} +1 -1
  160. package/dist/scripts/26.chunk.js +437 -0
  161. package/dist/scripts/26.chunk.js.map +1 -0
  162. package/dist/scripts/{27-dc6045c275.chunk.js → 27-707d8b29f0.chunk.js} +1 -1
  163. package/dist/scripts/27.chunk.js +3565 -0
  164. package/dist/scripts/27.chunk.js.map +1 -0
  165. package/dist/scripts/{28-e7ce349a42.chunk.js → 28-d748f747fa.chunk.js} +1 -1
  166. package/dist/scripts/28.chunk.js +3129 -0
  167. package/dist/scripts/28.chunk.js.map +1 -0
  168. package/dist/scripts/{29-e281d8346a.chunk.js → 29-ef4aaa5fd8.chunk.js} +1 -1
  169. package/dist/scripts/29.chunk.js +3088 -0
  170. package/dist/scripts/29.chunk.js.map +1 -0
  171. package/dist/scripts/{3-afb156ea3e.chunk.js → 3-9ac062f7ab.chunk.js} +1 -1
  172. package/dist/scripts/3.chunk.js +782 -0
  173. package/dist/scripts/3.chunk.js.map +1 -0
  174. package/dist/scripts/{30-d4b6c1cd1d.chunk.js → 30-1b84ae2ac7.chunk.js} +1 -1
  175. package/dist/scripts/30.chunk.js +1809 -0
  176. package/dist/scripts/30.chunk.js.map +1 -0
  177. package/dist/scripts/{31-c1d42342dd.chunk.js → 31-b51d47f02b.chunk.js} +1 -1
  178. package/dist/scripts/31.chunk.js +958 -0
  179. package/dist/scripts/31.chunk.js.map +1 -0
  180. package/dist/scripts/{32-1b1e4c86f5.chunk.js → 32-3f5cffb858.chunk.js} +1 -1
  181. package/dist/scripts/32.chunk.js +1235 -0
  182. package/dist/scripts/32.chunk.js.map +1 -0
  183. package/dist/scripts/33-bd5b8ad402.chunk.js +1 -0
  184. package/dist/scripts/33.chunk.js +792 -0
  185. package/dist/scripts/33.chunk.js.map +1 -0
  186. package/dist/scripts/34-16c6ce9391.chunk.js +1 -0
  187. package/dist/scripts/34.chunk.js +990 -0
  188. package/dist/scripts/34.chunk.js.map +1 -0
  189. package/dist/scripts/35-f0ff6077b5.chunk.js +1 -0
  190. package/dist/scripts/35.chunk.js +518 -0
  191. package/dist/scripts/35.chunk.js.map +1 -0
  192. package/dist/scripts/{36-37f9fd0ad1.chunk.js → 36-6d5df4dbb0.chunk.js} +1 -1
  193. package/dist/scripts/36.chunk.js +335 -0
  194. package/dist/scripts/36.chunk.js.map +1 -0
  195. package/dist/scripts/{37-06db9481cd.chunk.js → 37-1aedf84774.chunk.js} +1 -1
  196. package/dist/scripts/37.chunk.js +236 -0
  197. package/dist/scripts/37.chunk.js.map +1 -0
  198. package/dist/scripts/{38-528abd1bba.chunk.js → 38-9411624870.chunk.js} +1 -1
  199. package/dist/scripts/38.chunk.js +315 -0
  200. package/dist/scripts/38.chunk.js.map +1 -0
  201. package/dist/scripts/{39-80001e779c.chunk.js → 39-f46d2f69b1.chunk.js} +1 -1
  202. package/dist/scripts/39.chunk.js +116 -0
  203. package/dist/scripts/39.chunk.js.map +1 -0
  204. package/dist/scripts/{4-f8a4d0b62a.chunk.js → 4-2bf2f1b864.chunk.js} +1 -1
  205. package/dist/scripts/4.chunk.js +335 -0
  206. package/dist/scripts/4.chunk.js.map +1 -0
  207. package/dist/scripts/{40-d59ee7c3e1.chunk.js → 40-2134ac47ae.chunk.js} +1 -1
  208. package/dist/scripts/40.chunk.js +1782 -0
  209. package/dist/scripts/40.chunk.js.map +1 -0
  210. package/dist/scripts/{41-8c75d122fc.chunk.js → 41-38841ce7ed.chunk.js} +1 -1
  211. package/dist/scripts/41.chunk.js +2347 -0
  212. package/dist/scripts/41.chunk.js.map +1 -0
  213. package/dist/scripts/{42-a68ee26f34.chunk.js → 42-06cb96ddaf.chunk.js} +1 -1
  214. package/dist/scripts/42.chunk.js +2111 -0
  215. package/dist/scripts/42.chunk.js.map +1 -0
  216. package/dist/scripts/{43-bde1af67cb.chunk.js → 43-164d1aaf84.chunk.js} +1 -1
  217. package/dist/scripts/43.chunk.js +2243 -0
  218. package/dist/scripts/43.chunk.js.map +1 -0
  219. package/dist/scripts/{44-abdd275e46.chunk.js → 44-234dd1aac7.chunk.js} +1 -1
  220. package/dist/scripts/44.chunk.js +1024 -0
  221. package/dist/scripts/44.chunk.js.map +1 -0
  222. package/dist/scripts/{45-6b745e57af.chunk.js → 45-26c33d7856.chunk.js} +1 -1
  223. package/dist/scripts/45.chunk.js +1065 -0
  224. package/dist/scripts/45.chunk.js.map +1 -0
  225. package/dist/scripts/{46-bee29b02a3.chunk.js → 46-07c390591d.chunk.js} +1 -1
  226. package/dist/scripts/46.chunk.js +613 -0
  227. package/dist/scripts/46.chunk.js.map +1 -0
  228. package/dist/scripts/{47-c142425de4.chunk.js → 47-6a9c70d236.chunk.js} +1 -1
  229. package/dist/scripts/47.chunk.js +735 -0
  230. package/dist/scripts/47.chunk.js.map +1 -0
  231. package/dist/scripts/{48-81efa76f40.chunk.js → 48-ee3bf3e841.chunk.js} +1 -1
  232. package/dist/scripts/48.chunk.js +994 -0
  233. package/dist/scripts/48.chunk.js.map +1 -0
  234. package/dist/scripts/{49-cbd218d6e4.chunk.js → 49-73ebbe96d0.chunk.js} +1 -1
  235. package/dist/scripts/49.chunk.js +759 -0
  236. package/dist/scripts/49.chunk.js.map +1 -0
  237. package/dist/scripts/{5-1b6768e719.chunk.js → 5-19ce45d023.chunk.js} +1 -1
  238. package/dist/scripts/5.chunk.js +40 -0
  239. package/dist/scripts/5.chunk.js.map +1 -0
  240. package/dist/scripts/{50-ec2f179d8c.chunk.js → 50-a1439e0fa7.chunk.js} +1 -1
  241. package/dist/scripts/50.chunk.js +528 -0
  242. package/dist/scripts/50.chunk.js.map +1 -0
  243. package/dist/scripts/{51-9b91910fc0.chunk.js → 51-cad32e2046.chunk.js} +1 -1
  244. package/dist/scripts/51.chunk.js +932 -0
  245. package/dist/scripts/51.chunk.js.map +1 -0
  246. package/dist/scripts/{52-d2e93491a5.chunk.js → 52-1d3e8eb21e.chunk.js} +1 -1
  247. package/dist/scripts/52.chunk.js +408 -0
  248. package/dist/scripts/52.chunk.js.map +1 -0
  249. package/dist/scripts/{53-1c8ff136ad.chunk.js → 53-5e80e33e98.chunk.js} +1 -1
  250. package/dist/scripts/53.chunk.js +754 -0
  251. package/dist/scripts/53.chunk.js.map +1 -0
  252. package/dist/scripts/{54-34116d34e6.chunk.js → 54-8df01312cc.chunk.js} +1 -1
  253. package/dist/scripts/54.chunk.js +681 -0
  254. package/dist/scripts/54.chunk.js.map +1 -0
  255. package/dist/scripts/{55-02803101de.chunk.js → 55-4c8d7b57f9.chunk.js} +1 -1
  256. package/dist/scripts/55.chunk.js +645 -0
  257. package/dist/scripts/55.chunk.js.map +1 -0
  258. package/dist/scripts/{56-19ec4b6ccd.chunk.js → 56-1d96fdfcd3.chunk.js} +1 -1
  259. package/dist/scripts/56.chunk.js +346 -0
  260. package/dist/scripts/56.chunk.js.map +1 -0
  261. package/dist/scripts/{57-17e93c944c.chunk.js → 57-c17cdf728f.chunk.js} +1 -1
  262. package/dist/scripts/57.chunk.js +422 -0
  263. package/dist/scripts/57.chunk.js.map +1 -0
  264. package/dist/scripts/{58-dd77463e63.chunk.js → 58-ce34e558f4.chunk.js} +1 -1
  265. package/dist/scripts/58.chunk.js +437 -0
  266. package/dist/scripts/58.chunk.js.map +1 -0
  267. package/dist/scripts/{59-08e8830b9c.chunk.js → 59-cc8e184cce.chunk.js} +1 -1
  268. package/dist/scripts/59.chunk.js +342 -0
  269. package/dist/scripts/59.chunk.js.map +1 -0
  270. package/dist/scripts/6-e9685801b5.chunk.js +1 -0
  271. package/dist/scripts/6.chunk.js +484 -0
  272. package/dist/scripts/6.chunk.js.map +1 -0
  273. package/dist/scripts/{60-720797bb78.chunk.js → 60-8d73b65e4e.chunk.js} +1 -1
  274. package/dist/scripts/60.chunk.js +254 -0
  275. package/dist/scripts/60.chunk.js.map +1 -0
  276. package/dist/scripts/{61-66e55ae6e1.chunk.js → 61-bd804db13e.chunk.js} +1 -1
  277. package/dist/scripts/61.chunk.js +318 -0
  278. package/dist/scripts/61.chunk.js.map +1 -0
  279. package/dist/scripts/{62-beb29b208b.chunk.js → 62-827229b727.chunk.js} +1 -1
  280. package/dist/scripts/62.chunk.js +142 -0
  281. package/dist/scripts/62.chunk.js.map +1 -0
  282. package/dist/scripts/{63-bbc787afe7.chunk.js → 63-7251ac44d0.chunk.js} +1 -1
  283. package/dist/scripts/63.chunk.js +147 -0
  284. package/dist/scripts/63.chunk.js.map +1 -0
  285. package/dist/scripts/{64-b10c083c61.chunk.js → 64-33ca5259e4.chunk.js} +1 -1
  286. package/dist/scripts/64.chunk.js +439 -0
  287. package/dist/scripts/64.chunk.js.map +1 -0
  288. package/dist/scripts/{65-40c1cc2f53.chunk.js → 65-50d52bf3df.chunk.js} +1 -1
  289. package/dist/scripts/65.chunk.js +582 -0
  290. package/dist/scripts/65.chunk.js.map +1 -0
  291. package/dist/scripts/{66-32ae3ca73f.chunk.js → 66-fe41a3b54a.chunk.js} +1 -1
  292. package/dist/scripts/66.chunk.js +442 -0
  293. package/dist/scripts/66.chunk.js.map +1 -0
  294. package/dist/scripts/{67-1f082de6fd.chunk.js → 67-1508455eb9.chunk.js} +1 -1
  295. package/dist/scripts/67.chunk.js +295 -0
  296. package/dist/scripts/67.chunk.js.map +1 -0
  297. package/dist/scripts/{68-f53fbad25f.chunk.js → 68-21e8520126.chunk.js} +1 -1
  298. package/dist/scripts/68.chunk.js +165 -0
  299. package/dist/scripts/68.chunk.js.map +1 -0
  300. package/dist/scripts/{69-984061e3b8.chunk.js → 69-4d26485024.chunk.js} +1 -1
  301. package/dist/scripts/69.chunk.js +248 -0
  302. package/dist/scripts/69.chunk.js.map +1 -0
  303. package/dist/scripts/{7-7d12e809a2.chunk.js → 7-d0085fdf2e.chunk.js} +1 -1
  304. package/dist/scripts/7.chunk.js +309 -0
  305. package/dist/scripts/7.chunk.js.map +1 -0
  306. package/dist/scripts/{70-8edf7afb7b.chunk.js → 70-8e1d03a7d8.chunk.js} +1 -1
  307. package/dist/scripts/70.chunk.js +207 -0
  308. package/dist/scripts/70.chunk.js.map +1 -0
  309. package/dist/scripts/{71-6365b9e3d4.chunk.js → 71-b835514c89.chunk.js} +1 -1
  310. package/dist/scripts/71.chunk.js +237 -0
  311. package/dist/scripts/71.chunk.js.map +1 -0
  312. package/dist/scripts/{72-85505b2300.chunk.js → 72-23d6083900.chunk.js} +1 -1
  313. package/dist/scripts/72.chunk.js +331 -0
  314. package/dist/scripts/72.chunk.js.map +1 -0
  315. package/dist/scripts/73.chunk.js +404 -0
  316. package/dist/scripts/73.chunk.js.map +1 -0
  317. package/dist/scripts/74.chunk.js +301 -0
  318. package/dist/scripts/74.chunk.js.map +1 -0
  319. package/dist/scripts/75.chunk.js +231 -0
  320. package/dist/scripts/75.chunk.js.map +1 -0
  321. package/dist/scripts/76.chunk.js +157 -0
  322. package/dist/scripts/76.chunk.js.map +1 -0
  323. package/dist/scripts/77.chunk.js +307 -0
  324. package/dist/scripts/77.chunk.js.map +1 -0
  325. package/dist/scripts/78.chunk.js +249 -0
  326. package/dist/scripts/78.chunk.js.map +1 -0
  327. package/dist/scripts/79.chunk.js +282 -0
  328. package/dist/scripts/79.chunk.js.map +1 -0
  329. package/dist/scripts/{8-76e9f1bbc7.chunk.js → 8-0ebd446b65.chunk.js} +1 -1
  330. package/dist/scripts/8.chunk.js +307 -0
  331. package/dist/scripts/8.chunk.js.map +1 -0
  332. package/dist/scripts/80.chunk.js +308 -0
  333. package/dist/scripts/80.chunk.js.map +1 -0
  334. package/dist/scripts/81.chunk.js +366 -0
  335. package/dist/scripts/81.chunk.js.map +1 -0
  336. package/dist/scripts/82.chunk.js +314 -0
  337. package/dist/scripts/82.chunk.js.map +1 -0
  338. package/dist/scripts/83.chunk.js +328 -0
  339. package/dist/scripts/83.chunk.js.map +1 -0
  340. package/dist/scripts/84.chunk.js +313 -0
  341. package/dist/scripts/84.chunk.js.map +1 -0
  342. package/dist/scripts/85.chunk.js +291 -0
  343. package/dist/scripts/85.chunk.js.map +1 -0
  344. package/dist/scripts/86.chunk.js +119 -0
  345. package/dist/scripts/86.chunk.js.map +1 -0
  346. package/dist/scripts/87.chunk.js +219 -0
  347. package/dist/scripts/87.chunk.js.map +1 -0
  348. package/dist/scripts/88.chunk.js +194 -0
  349. package/dist/scripts/88.chunk.js.map +1 -0
  350. package/dist/scripts/89.chunk.js +522 -0
  351. package/dist/scripts/89.chunk.js.map +1 -0
  352. package/dist/scripts/9-0476e7c063.chunk.js +1 -0
  353. package/dist/scripts/9.chunk.js +222 -0
  354. package/dist/scripts/9.chunk.js.map +1 -0
  355. package/dist/scripts/90.chunk.js +337 -0
  356. package/dist/scripts/90.chunk.js.map +1 -0
  357. package/dist/scripts/91.chunk.js +131 -0
  358. package/dist/scripts/91.chunk.js.map +1 -0
  359. package/dist/scripts/92.chunk.js +266 -0
  360. package/dist/scripts/92.chunk.js.map +1 -0
  361. package/dist/scripts/bundle-511dc1956b.min.js +1 -0
  362. package/dist/scripts/bundle.js +57527 -0
  363. package/dist/scripts/bundle.js.map +1 -0
  364. package/dist/scripts/bundles.json +1 -1
  365. package/package.json +99 -99
  366. package/dist/scripts/1-098c567081.chunk.js +0 -1
  367. package/dist/scripts/15-6fa6f47a8b.chunk.js +0 -1
  368. package/dist/scripts/21-5d5cda7f47.chunk.js +0 -1
  369. package/dist/scripts/33-7ef65d086d.chunk.js +0 -1
  370. package/dist/scripts/34-6d7e7405af.chunk.js +0 -1
  371. package/dist/scripts/35-7d7e41a203.chunk.js +0 -1
  372. package/dist/scripts/6-e87b3c0be1.chunk.js +0 -1
  373. package/dist/scripts/9-a04919dbb2.chunk.js +0 -1
  374. package/dist/scripts/bundle-f3260e8016.min.js +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/apps/migration-wizard/views/selected-videos/SelectedVideos.hbs","file://C:/ClickView Projects/@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?e72b"],"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,uBAAu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AAM,CAAC,SAA3C;AACD;AAtCH;AAAA;AAAA,wBAwCwB;AACpB,uBAAU,KAAK,IAAf,SAAsB,KAAK,GAA3B;AACD;AA1CH;AAAA;AAAA,wBAsDqB;AACjB,aAAO;AACL,yBAAiB;AACf,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":""}
@@ -0,0 +1,404 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/apps/migration-wizard/views/start/Start.hbs","file://C:/ClickView Projects/@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?836d"],"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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gCwB;AACpB,uBAAU,KAAK,IAAf,SAAsB,KAAK,GAA3B;AACD;AAlCH;AAAA;AAAA,wBAoCqB;AACjB,aAAO,kDAAP;AACD;AAtCH;AAAA;AAAA,wBAiDqB;AACjB,aAAO;AACL,+BAAuB;AADlB,OAAP;AAGD;AArDH;AAAA;AAAA,wBAuDsB;AAClB,aAAO,CACL;AACE,qBAAa,EAAE,iEADjB;AAEE,qBAAa,EAAE;AAFjB,OADK,CAAP;AAMD;AA9DH;AAAA;AAAA,wBAgEqB;AACjB,aAAO;AACL,gBAAQ,EAAE,WADL;AAEL,sBAAc,EAAE,+BAFX;AAGL,kBAAU,EAAE;AAHP,OAAP;AAKD;AAtEH;AAAA;AAAA,wBA2L8B;AAC1B,aAAO;AACL,cAAM,EAAE,0FAAuB,CAAC;AAD3B,OAAP;AAGD;AA/LH;;AAAA;AAAA,EAA+B,8DAAI,CAAC,IAApC,E;;;;;;;;;;;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":""}