@clickview/library-editor 1.1.23-rc.3 → 1.1.23

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 (392) hide show
  1. package/dist/css/1.chunk.css.map +1 -1
  2. package/dist/css/10.chunk.css.map +1 -1
  3. package/dist/css/11.chunk.css.map +1 -1
  4. package/dist/css/12.chunk.css.map +1 -1
  5. package/dist/css/13.chunk.css.map +1 -1
  6. package/dist/css/14.chunk.css.map +1 -1
  7. package/dist/css/16.chunk.css.map +1 -1
  8. package/dist/css/17.chunk.css.map +1 -1
  9. package/dist/css/18.chunk.css.map +1 -1
  10. package/dist/css/2.chunk.css.map +1 -1
  11. package/dist/css/21.chunk.css.map +1 -1
  12. package/dist/css/22.chunk.css.map +1 -1
  13. package/dist/css/23.chunk.css.map +1 -1
  14. package/dist/css/25.chunk.css.map +1 -1
  15. package/dist/css/26.chunk.css.map +1 -1
  16. package/dist/css/28.chunk.css.map +1 -1
  17. package/dist/css/29.chunk.css.map +1 -1
  18. package/dist/css/3.chunk.css.map +1 -1
  19. package/dist/css/30.chunk.css.map +1 -1
  20. package/dist/css/31.chunk.css.map +1 -1
  21. package/dist/css/32.chunk.css.map +1 -1
  22. package/dist/css/33.chunk.css.map +1 -1
  23. package/dist/css/34.chunk.css.map +1 -1
  24. package/dist/css/35.chunk.css.map +1 -1
  25. package/dist/css/36.chunk.css.map +1 -1
  26. package/dist/css/37.chunk.css.map +1 -1
  27. package/dist/css/38.chunk.css.map +1 -1
  28. package/dist/css/40.chunk.css.map +1 -1
  29. package/dist/css/41.chunk.css.map +1 -1
  30. package/dist/css/42.chunk.css.map +1 -1
  31. package/dist/css/43.chunk.css.map +1 -1
  32. package/dist/css/44.chunk.css.map +1 -1
  33. package/dist/css/45.chunk.css.map +1 -1
  34. package/dist/css/46.chunk.css.map +1 -1
  35. package/dist/css/47.chunk.css.map +1 -1
  36. package/dist/css/48.chunk.css.map +1 -1
  37. package/dist/css/49.chunk.css.map +1 -1
  38. package/dist/css/50.chunk.css.map +1 -1
  39. package/dist/css/51.chunk.css.map +1 -1
  40. package/dist/css/52.chunk.css.map +1 -1
  41. package/dist/css/55.chunk.css.map +1 -1
  42. package/dist/css/56.chunk.css.map +1 -1
  43. package/dist/css/58.chunk.css.map +1 -1
  44. package/dist/css/59.chunk.css.map +1 -1
  45. package/dist/css/6.chunk.css.map +1 -1
  46. package/dist/css/60.chunk.css.map +1 -1
  47. package/dist/css/62.chunk.css.map +1 -1
  48. package/dist/css/63.chunk.css.map +1 -1
  49. package/dist/css/67.chunk.css.map +1 -1
  50. package/dist/css/68.chunk.css.map +1 -1
  51. package/dist/css/69.chunk.css.map +1 -1
  52. package/dist/css/7.chunk.css.map +1 -1
  53. package/dist/css/70.chunk.css.map +1 -1
  54. package/dist/css/71.chunk.css.map +1 -1
  55. package/dist/css/72.chunk.css.map +1 -1
  56. package/dist/css/73.chunk.css.map +1 -1
  57. package/dist/css/74.chunk.css.map +1 -1
  58. package/dist/css/75.chunk.css.map +1 -1
  59. package/dist/css/76.chunk.css.map +1 -1
  60. package/dist/css/8.chunk.css.map +1 -1
  61. package/dist/css/library-editor-app.css.map +1 -1
  62. package/dist/scripts/{0-2765595d0a.chunk.js → 0-09e1e33a5c.chunk.js} +1 -1
  63. package/dist/scripts/0.chunk.js +1 -1
  64. package/dist/scripts/0.chunk.js.map +1 -1
  65. package/dist/scripts/{1-b6dedae131.chunk.js → 1-a66bb44471.chunk.js} +1 -1
  66. package/dist/scripts/1.chunk.js.map +1 -1
  67. package/dist/scripts/{10-8307f8e248.chunk.js → 10-6c79d8c6f9.chunk.js} +1 -1
  68. package/dist/scripts/10.chunk.js.map +1 -1
  69. package/dist/scripts/{11-9dbae07504.chunk.js → 11-6eef9e160e.chunk.js} +1 -1
  70. package/dist/scripts/11.chunk.js.map +1 -1
  71. package/dist/scripts/{12-06cf65b136.chunk.js → 12-dbffa50a92.chunk.js} +1 -1
  72. package/dist/scripts/12.chunk.js.map +1 -1
  73. package/dist/scripts/{13-3d84e237b9.chunk.js → 13-37e5cfab3e.chunk.js} +1 -1
  74. package/dist/scripts/13.chunk.js.map +1 -1
  75. package/dist/scripts/{14-988bab314d.chunk.js → 14-b524fbd295.chunk.js} +1 -1
  76. package/dist/scripts/14.chunk.js.map +1 -1
  77. package/dist/scripts/{15-eed00bc875.chunk.js → 15-1ff1252d1a.chunk.js} +1 -1
  78. package/dist/scripts/15.chunk.js.map +1 -1
  79. package/dist/scripts/{16-3a99050a93.chunk.js → 16-b27142fe98.chunk.js} +1 -1
  80. package/dist/scripts/16.chunk.js.map +1 -1
  81. package/dist/scripts/{17-bff211f26a.chunk.js → 17-c3bbe50816.chunk.js} +1 -1
  82. package/dist/scripts/17.chunk.js +1 -1
  83. package/dist/scripts/17.chunk.js.map +1 -1
  84. package/dist/scripts/18.chunk.js.map +1 -1
  85. package/dist/scripts/19.chunk.js +1 -1
  86. package/dist/scripts/19.chunk.js.map +1 -1
  87. package/dist/scripts/{2-5079f4b088.chunk.js → 2-2cc3988222.chunk.js} +1 -1
  88. package/dist/scripts/2.chunk.js.map +1 -1
  89. package/dist/scripts/{20-d4470b4a53.chunk.js → 20-6d9086f5db.chunk.js} +1 -1
  90. package/dist/scripts/20.chunk.js.map +1 -1
  91. package/dist/scripts/{21-77f6ddec3d.chunk.js → 21-2f10553302.chunk.js} +1 -1
  92. package/dist/scripts/21.chunk.js.map +1 -1
  93. package/dist/scripts/{22-9ef39722d1.chunk.js → 22-59ae44b448.chunk.js} +1 -1
  94. package/dist/scripts/22.chunk.js.map +1 -1
  95. package/dist/scripts/{23-c8071cb869.chunk.js → 23-11e008ee63.chunk.js} +1 -1
  96. package/dist/scripts/23.chunk.js +3 -3
  97. package/dist/scripts/23.chunk.js.map +1 -1
  98. package/dist/scripts/{24-b655377e1f.chunk.js → 24-7f21e384d2.chunk.js} +1 -1
  99. package/dist/scripts/24.chunk.js.map +1 -1
  100. package/dist/scripts/{25-f814e3921c.chunk.js → 25-f0f7fa16a4.chunk.js} +1 -1
  101. package/dist/scripts/25.chunk.js.map +1 -1
  102. package/dist/scripts/{26-9dd482e1e6.chunk.js → 26-e65533bd94.chunk.js} +1 -1
  103. package/dist/scripts/26.chunk.js.map +1 -1
  104. package/dist/scripts/{27-5ecd204dab.chunk.js → 27-9dc0f5a4df.chunk.js} +1 -1
  105. package/dist/scripts/27.chunk.js +3 -3
  106. package/dist/scripts/27.chunk.js.map +1 -1
  107. package/dist/scripts/{28-e9b8962af8.chunk.js → 28-26e5c371c7.chunk.js} +1 -1
  108. package/dist/scripts/28.chunk.js +6 -6
  109. package/dist/scripts/28.chunk.js.map +1 -1
  110. package/dist/scripts/{29-e3391b4e4b.chunk.js → 29-61415c2af0.chunk.js} +1 -1
  111. package/dist/scripts/29.chunk.js.map +1 -1
  112. package/dist/scripts/{3-079c0b4d3b.chunk.js → 3-5eff8c9df5.chunk.js} +1 -1
  113. package/dist/scripts/3.chunk.js +13 -25
  114. package/dist/scripts/3.chunk.js.map +1 -1
  115. package/dist/scripts/{30-a6a7291b5e.chunk.js → 30-6075c28972.chunk.js} +1 -1
  116. package/dist/scripts/30.chunk.js +6 -6
  117. package/dist/scripts/30.chunk.js.map +1 -1
  118. package/dist/scripts/31-e35ae4e153.chunk.js +1 -0
  119. package/dist/scripts/31.chunk.js.map +1 -1
  120. package/dist/scripts/{32-96ac2f9c32.chunk.js → 32-d5a50a7592.chunk.js} +1 -1
  121. package/dist/scripts/32.chunk.js.map +1 -1
  122. package/dist/scripts/{33-061a87935f.chunk.js → 33-5ae90ed7d7.chunk.js} +1 -1
  123. package/dist/scripts/33.chunk.js.map +1 -1
  124. package/dist/scripts/{34-56f92b9a87.chunk.js → 34-50402c1835.chunk.js} +1 -1
  125. package/dist/scripts/34.chunk.js.map +1 -1
  126. package/dist/scripts/{35-cdd788a4b5.chunk.js → 35-ec8c190357.chunk.js} +1 -1
  127. package/dist/scripts/35.chunk.js.map +1 -1
  128. package/dist/scripts/{36-7d33d11b58.chunk.js → 36-4d467bc42e.chunk.js} +1 -1
  129. package/dist/scripts/36.chunk.js.map +1 -1
  130. package/dist/scripts/{37-fbd149e569.chunk.js → 37-37e8965783.chunk.js} +1 -1
  131. package/dist/scripts/37.chunk.js.map +1 -1
  132. package/dist/scripts/{38-57af633fa1.chunk.js → 38-3dc24b8867.chunk.js} +1 -1
  133. package/dist/scripts/38.chunk.js.map +1 -1
  134. package/dist/scripts/{39-cc627dfe2b.chunk.js → 39-350ff66a2b.chunk.js} +1 -1
  135. package/dist/scripts/39.chunk.js.map +1 -1
  136. package/dist/scripts/{4-0a8a5ac2f0.chunk.js → 4-b3f3c7c71c.chunk.js} +1 -1
  137. package/dist/scripts/4.chunk.js.map +1 -1
  138. package/dist/scripts/{40-78639874b5.chunk.js → 40-3443f99cb2.chunk.js} +1 -1
  139. package/dist/scripts/40.chunk.js.map +1 -1
  140. package/dist/scripts/{41-2c6722e410.chunk.js → 41-b5dfd35e9e.chunk.js} +1 -1
  141. package/dist/scripts/41.chunk.js.map +1 -1
  142. package/dist/scripts/{42-9b7795d20a.chunk.js → 42-103fecb7b6.chunk.js} +1 -1
  143. package/dist/scripts/42.chunk.js.map +1 -1
  144. package/dist/scripts/{43-006ce08a8f.chunk.js → 43-57b07579f7.chunk.js} +1 -1
  145. package/dist/scripts/43.chunk.js.map +1 -1
  146. package/dist/scripts/{44-b4c134efe8.chunk.js → 44-210d64dffe.chunk.js} +1 -1
  147. package/dist/scripts/44.chunk.js.map +1 -1
  148. package/dist/scripts/{45-3e85e78a77.chunk.js → 45-632b07e926.chunk.js} +1 -1
  149. package/dist/scripts/45.chunk.js.map +1 -1
  150. package/dist/scripts/{46-1256828b60.chunk.js → 46-82cce63cbf.chunk.js} +1 -1
  151. package/dist/scripts/46.chunk.js +6 -6
  152. package/dist/scripts/46.chunk.js.map +1 -1
  153. package/dist/scripts/{47-9e514e7536.chunk.js → 47-595b4aae87.chunk.js} +1 -1
  154. package/dist/scripts/47.chunk.js +1 -2
  155. package/dist/scripts/47.chunk.js.map +1 -1
  156. package/dist/scripts/{48-9af8b50e4f.chunk.js → 48-fcf6378889.chunk.js} +1 -1
  157. package/dist/scripts/48.chunk.js.map +1 -1
  158. package/dist/scripts/{49-883d9131af.chunk.js → 49-d8a4899eb1.chunk.js} +1 -1
  159. package/dist/scripts/49.chunk.js.map +1 -1
  160. package/dist/scripts/{5-f5ad097d2b.chunk.js → 5-06bc197b1e.chunk.js} +1 -1
  161. package/dist/scripts/5.chunk.js +3 -3
  162. package/dist/scripts/5.chunk.js.map +1 -1
  163. package/dist/scripts/{50-198f89794c.chunk.js → 50-11b1a49916.chunk.js} +1 -1
  164. package/dist/scripts/50.chunk.js.map +1 -1
  165. package/dist/scripts/{51-61bb2b80fe.chunk.js → 51-72a75e0265.chunk.js} +1 -1
  166. package/dist/scripts/51.chunk.js.map +1 -1
  167. package/dist/scripts/{52-e7fd215888.chunk.js → 52-195f73bcd6.chunk.js} +1 -1
  168. package/dist/scripts/52.chunk.js.map +1 -1
  169. package/dist/scripts/{53-595b1efa1a.chunk.js → 53-bb4f37ee25.chunk.js} +1 -1
  170. package/dist/scripts/53.chunk.js.map +1 -1
  171. package/dist/scripts/{54-646c8458e0.chunk.js → 54-7a201d8285.chunk.js} +1 -1
  172. package/dist/scripts/54.chunk.js.map +1 -1
  173. package/dist/scripts/{55-dac67eae0b.chunk.js → 55-be3d7b8805.chunk.js} +1 -1
  174. package/dist/scripts/55.chunk.js.map +1 -1
  175. package/dist/scripts/{56-9a02efb9a1.chunk.js → 56-6aeece1bf1.chunk.js} +1 -1
  176. package/dist/scripts/56.chunk.js.map +1 -1
  177. package/dist/scripts/{57-bf72265d49.chunk.js → 57-59ee15161b.chunk.js} +1 -1
  178. package/dist/scripts/57.chunk.js.map +1 -1
  179. package/dist/scripts/{58-34ef45f4b6.chunk.js → 58-8ff58b194a.chunk.js} +1 -1
  180. package/dist/scripts/58.chunk.js.map +1 -1
  181. package/dist/scripts/{59-f3d473090d.chunk.js → 59-3d33954fcb.chunk.js} +1 -1
  182. package/dist/scripts/59.chunk.js.map +1 -1
  183. package/dist/scripts/{6-a5f6258253.chunk.js → 6-a469872b10.chunk.js} +1 -1
  184. package/dist/scripts/6.chunk.js.map +1 -1
  185. package/dist/scripts/{60-ac4f11764a.chunk.js → 60-f092baa91c.chunk.js} +1 -1
  186. package/dist/scripts/60.chunk.js.map +1 -1
  187. package/dist/scripts/{61-62ec9b3628.chunk.js → 61-bd9ef62ccd.chunk.js} +1 -1
  188. package/dist/scripts/61.chunk.js +12 -12
  189. package/dist/scripts/61.chunk.js.map +1 -1
  190. package/dist/scripts/{62-4d0e82f903.chunk.js → 62-f15b3bf74c.chunk.js} +1 -1
  191. package/dist/scripts/62.chunk.js.map +1 -1
  192. package/dist/scripts/{63-47af37825d.chunk.js → 63-92757f75e7.chunk.js} +1 -1
  193. package/dist/scripts/63.chunk.js.map +1 -1
  194. package/dist/scripts/{64-c42635a917.chunk.js → 64-c5a1c55521.chunk.js} +1 -1
  195. package/dist/scripts/64.chunk.js.map +1 -1
  196. package/dist/scripts/{65-7780441e5e.chunk.js → 65-6bb10ae23b.chunk.js} +1 -1
  197. package/dist/scripts/65.chunk.js.map +1 -1
  198. package/dist/scripts/{66-7f2750cd97.chunk.js → 66-f047027f7d.chunk.js} +1 -1
  199. package/dist/scripts/66.chunk.js.map +1 -1
  200. package/dist/scripts/{67-564ff2bd16.chunk.js → 67-2e1a011200.chunk.js} +1 -1
  201. package/dist/scripts/67.chunk.js.map +1 -1
  202. package/dist/scripts/{68-df9024fadc.chunk.js → 68-d5c0ab3fc1.chunk.js} +1 -1
  203. package/dist/scripts/68.chunk.js.map +1 -1
  204. package/dist/scripts/{69-4d32ddddbc.chunk.js → 69-fc8325afc9.chunk.js} +1 -1
  205. package/dist/scripts/69.chunk.js.map +1 -1
  206. package/dist/scripts/{7-2696f5afc4.chunk.js → 7-58dd909fa3.chunk.js} +1 -1
  207. package/dist/scripts/7.chunk.js.map +1 -1
  208. package/dist/scripts/{70-2a427b3dd0.chunk.js → 70-ceda95013e.chunk.js} +1 -1
  209. package/dist/scripts/70.chunk.js.map +1 -1
  210. package/dist/scripts/{71-215cac8b69.chunk.js → 71-6e8fc95beb.chunk.js} +1 -1
  211. package/dist/scripts/71.chunk.js.map +1 -1
  212. package/dist/scripts/{72-6eb3ef092e.chunk.js → 72-53fe3338bf.chunk.js} +1 -1
  213. package/dist/scripts/72.chunk.js.map +1 -1
  214. package/dist/scripts/73.chunk.js.map +1 -1
  215. package/dist/scripts/74.chunk.js.map +1 -1
  216. package/dist/scripts/75.chunk.js.map +1 -1
  217. package/dist/scripts/76.chunk.js.map +1 -1
  218. package/dist/scripts/77.chunk.js.map +1 -1
  219. package/dist/scripts/78.chunk.js.map +1 -1
  220. package/dist/scripts/79.chunk.js.map +1 -1
  221. package/dist/scripts/{8-f4f18356f7.chunk.js → 8-6974afed28.chunk.js} +1 -1
  222. package/dist/scripts/8.chunk.js.map +1 -1
  223. package/dist/scripts/80.chunk.js.map +1 -1
  224. package/dist/scripts/81.chunk.js.map +1 -1
  225. package/dist/scripts/82.chunk.js.map +1 -1
  226. package/dist/scripts/83.chunk.js.map +1 -1
  227. package/dist/scripts/84.chunk.js.map +1 -1
  228. package/dist/scripts/85.chunk.js.map +1 -1
  229. package/dist/scripts/86.chunk.js.map +1 -1
  230. package/dist/scripts/87.chunk.js.map +1 -1
  231. package/dist/scripts/88.chunk.js.map +1 -1
  232. package/dist/scripts/89.chunk.js.map +1 -1
  233. package/dist/scripts/{9-cd0bcefa7f.chunk.js → 9-9279038caa.chunk.js} +1 -1
  234. package/dist/scripts/9.chunk.js.map +1 -1
  235. package/dist/scripts/90.chunk.js.map +1 -1
  236. package/dist/scripts/91.chunk.js.map +1 -1
  237. package/dist/scripts/92.chunk.js.map +1 -1
  238. package/dist/scripts/bundle-06dc1f4908.min.js +8 -0
  239. package/dist/scripts/bundle-8498807388.min.js +1 -0
  240. package/dist/scripts/{bundle-5b64746afd.min.js → bundle-891db89400.min.js} +1 -1
  241. package/dist/scripts/bundle-f4a423ce34.min.js +1 -0
  242. package/dist/scripts/bundle.js +1364 -1492
  243. package/dist/scripts/bundle.js.map +1 -1
  244. package/dist/scripts/bundles.json +2 -2
  245. package/dist/scripts/polyfills-efb4d7caa3.min.js +1 -0
  246. package/dist/scripts/polyfills.js +1050 -1050
  247. package/dist/scripts/polyfills.js.map +1 -1
  248. package/package.json +3 -3
  249. package/dist/scripts/0-f82360fd03.chunk.js +0 -1
  250. package/dist/scripts/1-35f87e4cdc.chunk.js +0 -1
  251. package/dist/scripts/10-227e797872.chunk.js +0 -1
  252. package/dist/scripts/12-43e54b0a2d.chunk.js +0 -1
  253. package/dist/scripts/13-01ee41eb1e.chunk.js +0 -1
  254. package/dist/scripts/14-cf307e51d9.chunk.js +0 -1
  255. package/dist/scripts/15-bedb9ff6d0.chunk.js +0 -1
  256. package/dist/scripts/16-339a29fa2f.chunk.js +0 -1
  257. package/dist/scripts/17-66da06be62.chunk.js +0 -1
  258. package/dist/scripts/20-6019ccb462.chunk.js +0 -1
  259. package/dist/scripts/21-7bd1977005.chunk.js +0 -1
  260. package/dist/scripts/22-d88b8e9c20.chunk.js +0 -1
  261. package/dist/scripts/23-e8a0f60c53.chunk.js +0 -1
  262. package/dist/scripts/24-f62e7ff166.chunk.js +0 -1
  263. package/dist/scripts/25-acda0ed17e.chunk.js +0 -1
  264. package/dist/scripts/26-39f6c3ca17.chunk.js +0 -1
  265. package/dist/scripts/27-1313c7d392.chunk.js +0 -1
  266. package/dist/scripts/28-b583483a6e.chunk.js +0 -1
  267. package/dist/scripts/29-44119e600a.chunk.js +0 -1
  268. package/dist/scripts/3-bea2c1c371.chunk.js +0 -1
  269. package/dist/scripts/30-aef6a19cde.chunk.js +0 -1
  270. package/dist/scripts/31-4f1ea6d067.chunk.js +0 -1
  271. package/dist/scripts/31-70fe14b490.chunk.js +0 -1
  272. package/dist/scripts/32-0b05da2f4c.chunk.js +0 -1
  273. package/dist/scripts/33-04b1fbcdeb.chunk.js +0 -1
  274. package/dist/scripts/34-4f2c861480.chunk.js +0 -1
  275. package/dist/scripts/35-08ead0d078.chunk.js +0 -1
  276. package/dist/scripts/36-4db22bf8bb.chunk.js +0 -1
  277. package/dist/scripts/37-4de2537ff4.chunk.js +0 -1
  278. package/dist/scripts/38-7733a3d81e.chunk.js +0 -1
  279. package/dist/scripts/39-5451786b7d.chunk.js +0 -1
  280. package/dist/scripts/4-84fa8e49e2.chunk.js +0 -1
  281. package/dist/scripts/40-31940ddf04.chunk.js +0 -1
  282. package/dist/scripts/41-0366a0332e.chunk.js +0 -1
  283. package/dist/scripts/42-c87c36d7d4.chunk.js +0 -1
  284. package/dist/scripts/43-591954817b.chunk.js +0 -1
  285. package/dist/scripts/44-fc3a1d45c5.chunk.js +0 -1
  286. package/dist/scripts/45-32ce8dd910.chunk.js +0 -1
  287. package/dist/scripts/46-e096df45ef.chunk.js +0 -1
  288. package/dist/scripts/47-61b53964c2.chunk.js +0 -1
  289. package/dist/scripts/48-3f804b22a4.chunk.js +0 -1
  290. package/dist/scripts/49-79b28e90c9.chunk.js +0 -1
  291. package/dist/scripts/5-093c9ee130.chunk.js +0 -1
  292. package/dist/scripts/50-ce04770db1.chunk.js +0 -1
  293. package/dist/scripts/51-177fe97a9b.chunk.js +0 -1
  294. package/dist/scripts/52-d8cf26c75f.chunk.js +0 -1
  295. package/dist/scripts/53-e78a58c963.chunk.js +0 -1
  296. package/dist/scripts/54-7976c21511.chunk.js +0 -1
  297. package/dist/scripts/55-5e3b70736e.chunk.js +0 -1
  298. package/dist/scripts/56-3c520aec72.chunk.js +0 -1
  299. package/dist/scripts/57-6f84e1bb9d.chunk.js +0 -1
  300. package/dist/scripts/58-1c37240b43.chunk.js +0 -1
  301. package/dist/scripts/59-05cbb57b32.chunk.js +0 -1
  302. package/dist/scripts/6-e49b6b4c08.chunk.js +0 -1
  303. package/dist/scripts/60-dd50d4179f.chunk.js +0 -1
  304. package/dist/scripts/61-e759f86871.chunk.js +0 -1
  305. package/dist/scripts/62-bfd5450b13.chunk.js +0 -1
  306. package/dist/scripts/63-8521e39a2e.chunk.js +0 -1
  307. package/dist/scripts/64-12150ef48b.chunk.js +0 -1
  308. package/dist/scripts/65-a4fdf8777b.chunk.js +0 -1
  309. package/dist/scripts/66-029947cf5c.chunk.js +0 -1
  310. package/dist/scripts/67-47f208342a.chunk.js +0 -1
  311. package/dist/scripts/68-5656cc45fe.chunk.js +0 -1
  312. package/dist/scripts/69-a4b3442e68.chunk.js +0 -1
  313. package/dist/scripts/7-b39ab430b9.chunk.js +0 -1
  314. package/dist/scripts/70-0f070c1596.chunk.js +0 -1
  315. package/dist/scripts/71-c43ee23686.chunk.js +0 -1
  316. package/dist/scripts/72-f5a8cfc8b7.chunk.js +0 -1
  317. package/dist/scripts/8-1e0751e30b.chunk.js +0 -1
  318. package/dist/scripts/9-bb567e1c99.chunk.js +0 -1
  319. package/dist/scripts/bundle-e7f4d4e659.min.js +0 -8
  320. package/dist/scripts/bundle-f73bcaa857.min.js +0 -8
  321. package/dist/scripts/polyfills-9517d7e647.min.js +0 -1
  322. package/dist/scripts/polyfills-e442ebbfb0.min.js +0 -1
  323. /package/dist/scripts/{0-2d62d8ccd7.chunk.js → 0-f604eee110.chunk.js} +0 -0
  324. /package/dist/scripts/{1-cf6d342590.chunk.js → 1-056bd8c79b.chunk.js} +0 -0
  325. /package/dist/scripts/{10-7475ff8374.chunk.js → 10-028c6001e1.chunk.js} +0 -0
  326. /package/dist/scripts/{12-20b4c4cdb6.chunk.js → 12-d3f51f4e06.chunk.js} +0 -0
  327. /package/dist/scripts/{13-292e92093a.chunk.js → 13-4029d31569.chunk.js} +0 -0
  328. /package/dist/scripts/{14-66f92fd1d3.chunk.js → 14-4c94f97e4e.chunk.js} +0 -0
  329. /package/dist/scripts/{15-d580267aff.chunk.js → 15-ec9aa4878b.chunk.js} +0 -0
  330. /package/dist/scripts/{16-0aa5e3e5fe.chunk.js → 16-5bc8299e14.chunk.js} +0 -0
  331. /package/dist/scripts/{17-f44cb6ca42.chunk.js → 17-9fe035f9e2.chunk.js} +0 -0
  332. /package/dist/scripts/{20-af6230b8af.chunk.js → 20-60e4eee833.chunk.js} +0 -0
  333. /package/dist/scripts/{21-1281b41577.chunk.js → 21-a7fffe8852.chunk.js} +0 -0
  334. /package/dist/scripts/{22-878d242dfd.chunk.js → 22-f670791432.chunk.js} +0 -0
  335. /package/dist/scripts/{23-e55ad46abd.chunk.js → 23-4d26d6300a.chunk.js} +0 -0
  336. /package/dist/scripts/{24-87aea794c8.chunk.js → 24-813ef82099.chunk.js} +0 -0
  337. /package/dist/scripts/{25-b3b05ff03c.chunk.js → 25-023d08a591.chunk.js} +0 -0
  338. /package/dist/scripts/{26-5f79a251ff.chunk.js → 26-a9fcf0d596.chunk.js} +0 -0
  339. /package/dist/scripts/{27-fb5a56b6e9.chunk.js → 27-84f7bbade6.chunk.js} +0 -0
  340. /package/dist/scripts/{28-d75e03d0c0.chunk.js → 28-cdf603f4cf.chunk.js} +0 -0
  341. /package/dist/scripts/{29-2c0b30c31b.chunk.js → 29-8278d23f9b.chunk.js} +0 -0
  342. /package/dist/scripts/{3-29a29544af.chunk.js → 3-1fa81c9d9b.chunk.js} +0 -0
  343. /package/dist/scripts/{30-a373fad3e5.chunk.js → 30-7ab880728c.chunk.js} +0 -0
  344. /package/dist/scripts/{31-1bb00d89bc.chunk.js → 31-aa4cd0f45e.chunk.js} +0 -0
  345. /package/dist/scripts/{32-a5e4069473.chunk.js → 32-7717941f1d.chunk.js} +0 -0
  346. /package/dist/scripts/{33-c671ce256e.chunk.js → 33-6da33143ea.chunk.js} +0 -0
  347. /package/dist/scripts/{34-e896aea27d.chunk.js → 34-27e40f4d4b.chunk.js} +0 -0
  348. /package/dist/scripts/{35-be151f3db1.chunk.js → 35-3260300446.chunk.js} +0 -0
  349. /package/dist/scripts/{36-e1dc9478b6.chunk.js → 36-bec0c74d05.chunk.js} +0 -0
  350. /package/dist/scripts/{37-b3aa0290c0.chunk.js → 37-3916177181.chunk.js} +0 -0
  351. /package/dist/scripts/{38-c1c3eaedae.chunk.js → 38-89f7c22ea8.chunk.js} +0 -0
  352. /package/dist/scripts/{39-6969b0c7b0.chunk.js → 39-9456631219.chunk.js} +0 -0
  353. /package/dist/scripts/{4-a0d8871170.chunk.js → 4-a7f6d378e0.chunk.js} +0 -0
  354. /package/dist/scripts/{40-8f82ccc935.chunk.js → 40-f65196723f.chunk.js} +0 -0
  355. /package/dist/scripts/{41-8512aa7dc5.chunk.js → 41-70b16d99d0.chunk.js} +0 -0
  356. /package/dist/scripts/{42-e4f279e42c.chunk.js → 42-e17f214d6c.chunk.js} +0 -0
  357. /package/dist/scripts/{43-11144c5f88.chunk.js → 43-6826fbc7d4.chunk.js} +0 -0
  358. /package/dist/scripts/{44-558a97cea6.chunk.js → 44-593e820fa2.chunk.js} +0 -0
  359. /package/dist/scripts/{45-73329af938.chunk.js → 45-8231a03833.chunk.js} +0 -0
  360. /package/dist/scripts/{46-db028594cc.chunk.js → 46-682ca88fd9.chunk.js} +0 -0
  361. /package/dist/scripts/{47-8b9d860084.chunk.js → 47-aec7cf95e8.chunk.js} +0 -0
  362. /package/dist/scripts/{48-ab5af19e09.chunk.js → 48-7b09165697.chunk.js} +0 -0
  363. /package/dist/scripts/{49-df996c66c2.chunk.js → 49-0e6ceb191f.chunk.js} +0 -0
  364. /package/dist/scripts/{5-27d34603ed.chunk.js → 5-e2e64bc05f.chunk.js} +0 -0
  365. /package/dist/scripts/{50-0d6bdb887e.chunk.js → 50-fa6f6fd1dc.chunk.js} +0 -0
  366. /package/dist/scripts/{51-819b13fe95.chunk.js → 51-1c9fca4604.chunk.js} +0 -0
  367. /package/dist/scripts/{52-4977addfab.chunk.js → 52-ebce0c9f12.chunk.js} +0 -0
  368. /package/dist/scripts/{53-1ad87216cb.chunk.js → 53-c6807d4e0b.chunk.js} +0 -0
  369. /package/dist/scripts/{54-0a404f9f36.chunk.js → 54-e6195aa62a.chunk.js} +0 -0
  370. /package/dist/scripts/{55-9163aa1312.chunk.js → 55-f9f9a251af.chunk.js} +0 -0
  371. /package/dist/scripts/{56-04f189d5de.chunk.js → 56-20f27f96db.chunk.js} +0 -0
  372. /package/dist/scripts/{57-4eb1cc6019.chunk.js → 57-b25862dbf0.chunk.js} +0 -0
  373. /package/dist/scripts/{58-804f31a61a.chunk.js → 58-edf06f18f9.chunk.js} +0 -0
  374. /package/dist/scripts/{59-dcbd713f4b.chunk.js → 59-241a666e49.chunk.js} +0 -0
  375. /package/dist/scripts/{6-26cb86223d.chunk.js → 6-c631df7bda.chunk.js} +0 -0
  376. /package/dist/scripts/{60-d8853c434d.chunk.js → 60-ac631fa385.chunk.js} +0 -0
  377. /package/dist/scripts/{61-c8c69eeff5.chunk.js → 61-360e50b6cb.chunk.js} +0 -0
  378. /package/dist/scripts/{62-45c821e85d.chunk.js → 62-22ee1d2a94.chunk.js} +0 -0
  379. /package/dist/scripts/{63-c236987805.chunk.js → 63-25413d744e.chunk.js} +0 -0
  380. /package/dist/scripts/{64-fbab857648.chunk.js → 64-1b027092be.chunk.js} +0 -0
  381. /package/dist/scripts/{65-b2901f7de5.chunk.js → 65-c8a9aae545.chunk.js} +0 -0
  382. /package/dist/scripts/{66-fb79386913.chunk.js → 66-20aec598ca.chunk.js} +0 -0
  383. /package/dist/scripts/{67-048121cf49.chunk.js → 67-d8d1cb35a4.chunk.js} +0 -0
  384. /package/dist/scripts/{68-d529af6c1b.chunk.js → 68-869ea333d9.chunk.js} +0 -0
  385. /package/dist/scripts/{69-4548bb42ea.chunk.js → 69-c4ff3e5568.chunk.js} +0 -0
  386. /package/dist/scripts/{7-10b288197e.chunk.js → 7-1d94e0bb0c.chunk.js} +0 -0
  387. /package/dist/scripts/{70-e36b006dbe.chunk.js → 70-171dcf9fe1.chunk.js} +0 -0
  388. /package/dist/scripts/{71-5d5ec02d3d.chunk.js → 71-33e7082ca2.chunk.js} +0 -0
  389. /package/dist/scripts/{72-d98ffab96a.chunk.js → 72-2eef8b13b0.chunk.js} +0 -0
  390. /package/dist/scripts/{8-b0942a9479.chunk.js → 8-34ae87490f.chunk.js} +0 -0
  391. /package/dist/scripts/{9-ba4f55ce15.chunk.js → 9-0d7004dd33.chunk.js} +0 -0
  392. /package/dist/scripts/{polyfills-5c483eb7f4.min.js → polyfills-21eaf1215c.min.js} +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["file://C:/ClickView Projects/clickview/packages/projects/library-editor/src/apps/migration-wizard/views/publisher-backup-complete/PublisherBackupComplete.hbs","file://C:/ClickView Projects/clickview/packages/projects/library-editor/src/apps/migration-wizard/views/publisher-backup-complete/PublisherBackupCompleteView.ts","webpack://@clickview/library-editor/./src/apps/migration-wizard/views/publisher-backup-complete/publisher-backup-complete.scss?71b1"],"names":[],"mappings":";;;;;;;;;AAAA,iBAAiB,mBAAO,CAAC,8BAAY;AACrC,iEAAiE;AACjE,uJAAuJ;;AAEvJ;AACA;AACA;AACA,yFAAyF,uBAAuB,aAAa;AAC7H;AACA,iGAAiG,uBAAuB,aAAa;AACrI;AACA,2FAA2F,uBAAuB,aAAa;AAC/H;AACA,kGAAkG,sBAAsB,iIAAiI,aAAa;AACtQ;AACA,CAAC;AACD,uJAAuJ;;AAEvJ;AACA;AACA;AACA,4FAA4F,uBAAuB,aAAa;AAChI;AACA,6FAA6F,sBAAsB,0GAA0G,aAAa;AAC1O;AACA,uFAAuF,uBAAuB,aAAa;AAC3H;AACA,CAAC;AACD;;AAEA;AACA;AACA;AACA,0FAA0F,2FAA2F,qBAAqB,wFAAwF;AAClS;AACA,CAAC,gBAAgB,E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACjCjB;AACA;AACA;AACA;AACA;AAGA;AACA;AAGA;AAGA;AACA;AAEO,IAAM,2BAAb;AAAA;;AAAA;;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAAA,iCAMmB;AACf,WAAK,yBAAL,GAAiC,kGAAe,CAAC,WAAhB,CA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BAAM,EAAE,yDAAO,CAAC,eAAR,CAAwB;AAFP,WAA3B;AAIA;AACD;;AAED,YAAI,sEAAe,CAAC,0BAAhB,CAA2C,QAA3C,CAAJ,EAA0D;AACxD,wEAAI,CAAC,aAAL,CAAmB,OAAnB,CAA2B;AACzB,uBAAW,EAAE,6DAAW,CAAC,gBADA;AAEzB,kBAAM,EAAE,yDAAO,CAAC,eAAR,CAAwB;AAFP,WAA3B;AAIA;AACD;;AAED,kBAAU,CAAC;AAAA,iBAAM,MAAI,CAAC,mBAAL,EAAN;AAAA,SAAD,EAAmC,KAAnC,CAAV;AACD,OApBD;AAqBD;AAxGH;AAAA;AAAA,wBAgBiB;AACb,aAAO,6BAAP;AACD;AAlBH;AAAA;AAAA,wBAoBkB;AACd,aAAO,kGAAe,CAAC,SAAhB,CAA0B,KAAK,IAA/B,EAAqC,OAArC,CAAP;AACD;AAtBH;AAAA;AAAA,wBAwBiB;AACb,aAAO,yCAAP;AACD;AA1BH;AAAA;AAAA,wBA4BsB;AAClB,0DAA6C,sEAAM,CAAC,wBAApD,cAAgF,sEAAM,CAAC,QAAvF;AACD;AA9BH;AAAA;AAAA,wBAgCqB;AACjB,aAAO,mEAAP;AACD;AAlCH;AAAA;AAAA,wBAgDqB;AACjB,aAAO;AACL,oCAA4B;AAC1B,qBAAW,EAAE,6DAAW,CAAC,gBADC;AAE1B,gBAAM,EAAE,yDAAO,CAAC,eAAR,CAAwB;AAFN;AADvB,OAAP;AAMD;AAvDH;AAAA;AAAA,wBAyD8B;AAC1B,aAAO;AACL,cAAM,EAAE,0FAAuB,CAAC;AAD3B,OAAP;AAGD;AA7DH;;AAAA;AAAA,EAAiD,8DAAI,CAAC,IAAtD,E;;;;;;;;;;;ACnBA;AACA,kBAAkB,iJ","file":"scripts/69.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, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=container.hooks.helperMissing;\n\n return \" <img src=\\\"/images/warning.png\\\" class=\\\"p-3 \"\n + alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.warningImage : stack1), depth0))\n + \"\\\">\\r\\n <h4>\"\n + alias2((helpers.lang||(depth0 && depth0.lang)||alias4).call(alias3,\"errorHeading\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</h4>\\r\\n <p>\\r\\n \"\n + ((stack1 = (helpers.lang||(depth0 && depth0.lang)||alias4).call(alias3,\"errorDescription\",{\"name\":\"lang\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n </p>\\r\\n <a class=\\\"btn btn-primary applink-start-migration\\\">\"\n + alias2((helpers.lang||(depth0 && depth0.lang)||alias4).call(alias3,\"continueAnyway\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</a>\\r\\n <p class=\\\"mt-3\\\">\"\n + ((stack1 = (helpers.lang||(depth0 && depth0.lang)||alias4).call(alias3,\"bookAnAppointment\",{\"name\":\"lang\",\"hash\":{\"url\":((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.appointmentUrl : stack1),\"linkClasses\":\"info-link\"},\"data\":data})) != null ? stack1 : \"\")\n + \"</p>\\r\\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=container.hooks.helperMissing;\n\n return \" <img src=\\\"/images/checked.png\\\" class=\\\"p-3 \"\n + alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.checkedImage : stack1), depth0))\n + \"\\\">\\r\\n <h4>\"\n + alias2((helpers.lang||(depth0 && depth0.lang)||alias4).call(alias3,\"completeHeading\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</h4>\\r\\n <p>\\r\\n \"\n + ((stack1 = (helpers.lang||(depth0 && depth0.lang)||alias4).call(alias3,\"completeBody\",{\"name\":\"lang\",\"hash\":{\"archiveSvg\":((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.archiveSvg : stack1)},\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n </p>\\r\\n <a class=\\\"btn btn-primary applink-start-migration\\\">\"\n + alias2((helpers.lang||(depth0 && depth0.lang)||alias4).call(alias3,\"getStarted\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</a>\\r\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return \"<div class=\\\"\"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.middle : stack1), depth0))\n + \"\\\">\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.error : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.program(3, data, 0),\"data\":data})) != null ? stack1 : \"\")\n + \"</div>\";\n},\"useData\":true});","import { ObjectHash } from 'backbone';\r\n\r\nimport { UrlHelper } from 'libs/common/backbone/utils/UrlHelper';\r\nimport { Core } from 'libs/common/core';\r\nimport { InstanceManager } from 'libs/common/backbone/services/InstanceManager';\r\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\r\nimport { SvgHelper, cvSvgLibrary } from 'libs/shared/utils/SvgHelper';\r\n\r\nimport { Config } from 'shared/models/Config';\r\nimport { ConfigDataServiceHelper } from 'shared/services/ConfigDataService';\r\nimport { Actions, DataServices, DataPrefixes, DataChannels, AppChannels } from 'shared/constants';\r\n\r\nimport { CustomerMetadata } from 'apps/migration-wizard/models';\r\nimport { MigrationHelper } from 'apps/migration-wizard/utils/MigrationHelper';\r\nimport { MigrationVideoDataService } from 'apps/migration-wizard/services/MigrationVideoDataService';\r\n\r\nimport styles from './publisher-backup-complete.scss';\r\nimport PublisherBackupTemplate from './PublisherBackupComplete.hbs';\r\n\r\nexport class PublisherBackupCompleteView extends Core.View {\r\n private pollingStarted: boolean;\r\n private metadata: CustomerMetadata;\r\n private migrationVideoDataService: MigrationVideoDataService;\r\n public config: Config;\r\n\r\n public initialize(): void {\r\n this.migrationVideoDataService = InstanceManager.getInstance(DataServices.MigrationVideo, this);\r\n\r\n this.bindListeners();\r\n }\r\n\r\n private bindListeners(): void {\r\n this.listenTo(DataChannels.MIGRATION, `${DataPrefixes.CUSTOMER_METADATA}:sync`, this.render);\r\n }\r\n\r\n public get name(): string {\r\n return 'PublisherBackupCompleteView';\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.publisherBackupComplete';\r\n }\r\n\r\n public get className(): string {\r\n return `container text-center p-4 bg-white ${styles.migrationBackupContainer} ${styles.complete}`;\r\n }\r\n\r\n public get template(): any {\r\n return PublisherBackupTemplate;\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n return {\r\n styles,\r\n error: this.hasErrored(),\r\n archiveSvg: `<span class=\\\"d-inline-block align-middle svg-container\\\">\r\n ${SvgHelper.getSvg(cvSvgLibrary.PublisherArchive)}</span>`,\r\n appointmentUrl: `\r\n ${UrlHelper.safeUrlConcat(this.config.get('marketingSiteUrl'), '/library-editor/book-appointment?type=library-editor-publisher-backup-tool')}\r\n `\r\n };\r\n }\r\n\r\n public get appLinks(): Core.AppLinkHash {\r\n return {\r\n '.applink-start-migration': {\r\n application: AppChannels.MIGRATION_WIZARD,\r\n action: Actions.MigrationWizard.START_MIGRATION,\r\n }\r\n };\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 public onBeforeRender(): boolean {\r\n this.migrationVideoDataService.getCustomerMetadata((data: CustomerMetadata) => {\r\n this.metadata = data;\r\n });\r\n\r\n return !!this.metadata;\r\n }\r\n\r\n public onRender(): void {\r\n if (this.pollingStarted || !this.hasErrored()) return;\r\n\r\n this.pollCloudSyncStatus();\r\n this.pollingStarted = true;\r\n }\r\n\r\n private hasErrored(): boolean {\r\n return MigrationHelper.backupCompleteWithError(this.metadata);\r\n }\r\n\r\n private pollCloudSyncStatus(): void {\r\n this.migrationVideoDataService.clearCacheAndGetCustomerMetadata((metadata: CustomerMetadata) => {\r\n if (this.isDestroyed()) return;\r\n\r\n if (MigrationHelper.backupProcessing(metadata)) {\r\n Core.AppLinkHelper.trigger({\r\n application: AppChannels.MIGRATION_WIZARD,\r\n action: Actions.MigrationWizard.BACKUP_PROGRESS,\r\n });\r\n return;\r\n }\r\n\r\n if (MigrationHelper.backupCompleteWithoutError(metadata)) {\r\n Core.AppLinkHelper.trigger({\r\n application: AppChannels.MIGRATION_WIZARD,\r\n action: Actions.MigrationWizard.BACKUP_COMPLETE,\r\n });\r\n return;\r\n }\r\n\r\n setTimeout(() => this.pollCloudSyncStatus(), 30000);\r\n });\r\n }\r\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"complete\":\"cv--complete--2YgCz\",\"middle\":\"cv--middle--2QcuL\",\"checkedImage\":\"cv--checkedImage--30_1Z\",\"warningImage\":\"cv--warningImage--2gF7F\"};"],"sourceRoot":""}
1
+ {"version":3,"sources":["file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/apps/migration-wizard/views/publisher-backup-complete/PublisherBackupComplete.hbs","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/apps/migration-wizard/views/publisher-backup-complete/PublisherBackupCompleteView.ts","webpack://@clickview/library-editor/./src/apps/migration-wizard/views/publisher-backup-complete/publisher-backup-complete.scss?c7a8"],"names":[],"mappings":";;;;;;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AAhB,CAA0B,KAAK,IAA/B,EAAqC,OAArC,CAAP;AACD;AAtBH;AAAA;AAAA,wBAwBiB;AACb,aAAO,yCAAP;AACD;AA1BH;AAAA;AAAA,wBA4BsB;AAClB,0DAA6C,sEAAM,CAAC,wBAApD,cAAgF,sEAAM,CAAC,QAAvF;AACD;AA9BH;AAAA;AAAA,wBAgCqB;AACjB,aAAO,mEAAP;AACD;AAlCH;AAAA;AAAA,wBAgDqB;AACjB,aAAO;AACL,oCAA4B;AAC1B,qBAAW,EAAE,6DAAW,CAAC,gBADC;AAE1B,gBAAM,EAAE,yDAAO,CAAC,eAAR,CAAwB;AAFN;AADvB,OAAP;AAMD;AAvDH;AAAA;AAAA,wBAyD8B;AAC1B,aAAO;AACL,cAAM,EAAE,0FAAuB,CAAC;AAD3B,OAAP;AAGD;AA7DH;;AAAA;AAAA,EAAiD,8DAAI,CAAC,IAAtD,E;;;;;;;;;;;ACnBA;AACA,kBAAkB,iJ","file":"scripts/69.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, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=container.hooks.helperMissing;\n\n return \" <img src=\\\"/images/warning.png\\\" class=\\\"p-3 \"\n + alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.warningImage : stack1), depth0))\n + \"\\\">\\r\\n <h4>\"\n + alias2((helpers.lang||(depth0 && depth0.lang)||alias4).call(alias3,\"errorHeading\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</h4>\\r\\n <p>\\r\\n \"\n + ((stack1 = (helpers.lang||(depth0 && depth0.lang)||alias4).call(alias3,\"errorDescription\",{\"name\":\"lang\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n </p>\\r\\n <a class=\\\"btn btn-primary applink-start-migration\\\">\"\n + alias2((helpers.lang||(depth0 && depth0.lang)||alias4).call(alias3,\"continueAnyway\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</a>\\r\\n <p class=\\\"mt-3\\\">\"\n + ((stack1 = (helpers.lang||(depth0 && depth0.lang)||alias4).call(alias3,\"bookAnAppointment\",{\"name\":\"lang\",\"hash\":{\"url\":((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.appointmentUrl : stack1),\"linkClasses\":\"info-link\"},\"data\":data})) != null ? stack1 : \"\")\n + \"</p>\\r\\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=container.hooks.helperMissing;\n\n return \" <img src=\\\"/images/checked.png\\\" class=\\\"p-3 \"\n + alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.checkedImage : stack1), depth0))\n + \"\\\">\\r\\n <h4>\"\n + alias2((helpers.lang||(depth0 && depth0.lang)||alias4).call(alias3,\"completeHeading\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</h4>\\r\\n <p>\\r\\n \"\n + ((stack1 = (helpers.lang||(depth0 && depth0.lang)||alias4).call(alias3,\"completeBody\",{\"name\":\"lang\",\"hash\":{\"archiveSvg\":((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.archiveSvg : stack1)},\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n </p>\\r\\n <a class=\\\"btn btn-primary applink-start-migration\\\">\"\n + alias2((helpers.lang||(depth0 && depth0.lang)||alias4).call(alias3,\"getStarted\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</a>\\r\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return \"<div class=\\\"\"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.middle : stack1), depth0))\n + \"\\\">\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.error : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.program(3, data, 0),\"data\":data})) != null ? stack1 : \"\")\n + \"</div>\";\n},\"useData\":true});","import { ObjectHash } from 'backbone';\r\n\r\nimport { UrlHelper } from 'libs/common/backbone/utils/UrlHelper';\r\nimport { Core } from 'libs/common/core';\r\nimport { InstanceManager } from 'libs/common/backbone/services/InstanceManager';\r\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\r\nimport { SvgHelper, cvSvgLibrary } from 'libs/shared/utils/SvgHelper';\r\n\r\nimport { Config } from 'shared/models/Config';\r\nimport { ConfigDataServiceHelper } from 'shared/services/ConfigDataService';\r\nimport { Actions, DataServices, DataPrefixes, DataChannels, AppChannels } from 'shared/constants';\r\n\r\nimport { CustomerMetadata } from 'apps/migration-wizard/models';\r\nimport { MigrationHelper } from 'apps/migration-wizard/utils/MigrationHelper';\r\nimport { MigrationVideoDataService } from 'apps/migration-wizard/services/MigrationVideoDataService';\r\n\r\nimport styles from './publisher-backup-complete.scss';\r\nimport PublisherBackupTemplate from './PublisherBackupComplete.hbs';\r\n\r\nexport class PublisherBackupCompleteView extends Core.View {\r\n private pollingStarted: boolean;\r\n private metadata: CustomerMetadata;\r\n private migrationVideoDataService: MigrationVideoDataService;\r\n public config: Config;\r\n\r\n public initialize(): void {\r\n this.migrationVideoDataService = InstanceManager.getInstance(DataServices.MigrationVideo, this);\r\n\r\n this.bindListeners();\r\n }\r\n\r\n private bindListeners(): void {\r\n this.listenTo(DataChannels.MIGRATION, `${DataPrefixes.CUSTOMER_METADATA}:sync`, this.render);\r\n }\r\n\r\n public get name(): string {\r\n return 'PublisherBackupCompleteView';\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.publisherBackupComplete';\r\n }\r\n\r\n public get className(): string {\r\n return `container text-center p-4 bg-white ${styles.migrationBackupContainer} ${styles.complete}`;\r\n }\r\n\r\n public get template(): any {\r\n return PublisherBackupTemplate;\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n return {\r\n styles,\r\n error: this.hasErrored(),\r\n archiveSvg: `<span class=\\\"d-inline-block align-middle svg-container\\\">\r\n ${SvgHelper.getSvg(cvSvgLibrary.PublisherArchive)}</span>`,\r\n appointmentUrl: `\r\n ${UrlHelper.safeUrlConcat(this.config.get('marketingSiteUrl'), '/library-editor/book-appointment?type=library-editor-publisher-backup-tool')}\r\n `\r\n };\r\n }\r\n\r\n public get appLinks(): Core.AppLinkHash {\r\n return {\r\n '.applink-start-migration': {\r\n application: AppChannels.MIGRATION_WIZARD,\r\n action: Actions.MigrationWizard.START_MIGRATION,\r\n }\r\n };\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 public onBeforeRender(): boolean {\r\n this.migrationVideoDataService.getCustomerMetadata((data: CustomerMetadata) => {\r\n this.metadata = data;\r\n });\r\n\r\n return !!this.metadata;\r\n }\r\n\r\n public onRender(): void {\r\n if (this.pollingStarted || !this.hasErrored()) return;\r\n\r\n this.pollCloudSyncStatus();\r\n this.pollingStarted = true;\r\n }\r\n\r\n private hasErrored(): boolean {\r\n return MigrationHelper.backupCompleteWithError(this.metadata);\r\n }\r\n\r\n private pollCloudSyncStatus(): void {\r\n this.migrationVideoDataService.clearCacheAndGetCustomerMetadata((metadata: CustomerMetadata) => {\r\n if (this.isDestroyed()) return;\r\n\r\n if (MigrationHelper.backupProcessing(metadata)) {\r\n Core.AppLinkHelper.trigger({\r\n application: AppChannels.MIGRATION_WIZARD,\r\n action: Actions.MigrationWizard.BACKUP_PROGRESS,\r\n });\r\n return;\r\n }\r\n\r\n if (MigrationHelper.backupCompleteWithoutError(metadata)) {\r\n Core.AppLinkHelper.trigger({\r\n application: AppChannels.MIGRATION_WIZARD,\r\n action: Actions.MigrationWizard.BACKUP_COMPLETE,\r\n });\r\n return;\r\n }\r\n\r\n setTimeout(() => this.pollCloudSyncStatus(), 30000);\r\n });\r\n }\r\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"complete\":\"cv--complete--2YgCz\",\"middle\":\"cv--middle--2QcuL\",\"checkedImage\":\"cv--checkedImage--30_1Z\",\"warningImage\":\"cv--warningImage--2gF7F\"};"],"sourceRoot":""}
@@ -1 +1 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[7],{1023:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(2),o=n(244);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(c,e);var t,n,r,i=s(c);function c(){return l(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"defaults",value:function(){return e={},t=o.c.Disabled,n=!0,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}}])&&a(t.prototype,n),r&&a(t,r),c}(r.a.Model)},1031:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(1),o=n(49),i=n(159),l=n(3),a="libraryEditor.utils",u={name:[{required:!0,msg:function(){return l.a.getPhrase(a,"folderNameRequired")}},{maxLength:255,msg:function(){return l.a.getPhrase(a,"folderNameExceeds")}}]},s=function(e,t){return{parentId:function(n){return n?o.a.calculateDestinationFolderDepth(e,n,t)>i.a.MAX_FOLDER_DEPTH?l.a.getPhrase(a,"maxFolderDepth",{maxDepth:i.a.MAX_FOLDER_DEPTH}):"":l.a.getPhrase(a,"selectParentFolder")}}},c=function(e){var t=e.validateName,n=e.validateParent,o=e.folder,i=e.collection;return t&&n?r.extend({},u,s(o,i)):t?u:n?s(o,i):void 0}},1040:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(7),o=n(2),i=n(3),l=n(1054),a=n(13),u=n(1041),s=n.n(u),c=n(1042),f=n.n(c);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(c,e);var t,n,o,u=y(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),u.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"folder:selected new:folder:selected",this.setButtonText),this.listenTo(this.options.channelName,"re:render:selector",this.renderSelector),this.disabledIds=this.options.disabledIds&&this.options.disabledIds.reduce((function(e,t){return Object.assign(Object.assign({},e),function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,!0))}),{})}},{key:"regions",value:function(){return{selector:{el:".selector-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .create-new":"onClickCreateNew"}}},{key:"onClickCreateNew",value:function(e){e.preventDefault(),r.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var r=a.f.getSelected(this.options.folderTreeKey,this.collection),o=r?r.get("name"):i.a.getPhrase(this.lang,"button");this.getUI("button").text(o)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new l.a({styles:f.a,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:f.a.list,extraClasses:f.a.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:f.a,name:this.options.name||this.options.channelName,buttonText:this.buttonText,canCreateNew:this.options.canCreateNew}}},{key:"onRender",value:function(){this.setButtonText(),this.renderSelector()}},{key:"name",get:function(){return"TreeDropdownComponent"}},{key:"template",get:function(){return s.a}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.treeDropdown"}},{key:"defaults",get:function(){return{disabledIds:[]}}},{key:"elements",get:function(){return{button:".custom-select"}}}])&&p(t.prototype,n),o&&p(t,o),c}(o.a.Component)},1041:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <button class="create-new btn font-weight-bold rounded-0 w-100 text-left '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.customItem:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:o}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<button\r\n class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectBtn:i,t))+' custom-select form-control"\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n name='+a(l(null!=(i=null!=t?t.options:t)?i.name:i,t))+"\r\n>"+a(l(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+'</button>\r\n<div class="dropdown-menu '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selector:i,t))+'">\r\n <div class="selector-region"></div>\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.canCreateNew:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'</div>\r\n<div class="form-feedback"></div>'},useData:!0})},1042:function(e,t,n){e.exports={selectBtn:"_2TTgs",list:"_3wN7o",selector:"_3Xf1P",customItem:"_199PI"}},1098:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(2),o=n(281),i=n(13),l=n(1040),a=n(1031),u=n(1099),s=n.n(u);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(c,e);var t,n,r,u=p(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),u.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,"folder:selected",this.onFolderSelected)}},{key:"regions",value:function(){return{parentFolder:".parent-folder-region"}}},{key:"onFolderSelected",value:function(e,t){e&&(i.f.setSelected(this.folderTreeKey,e,this.collection,t),t||this.model.set("parentId",e.get("id"),{validate:!0}))}},{key:"renderSubFolders",value:function(){this.options.editParent&&this.showChildView("parentFolder",new l.a({collection:this.collection,channelName:this.options.channelName,folderTreeKey:this.folderTreeKey,disabledIds:this.options.disabledParentFolderIds}))}},{key:"viewOptions",value:function(){return{editName:this.options.editName,editParent:this.options.editParent}}},{key:"onRender",value:function(){this.renderSubFolders()}},{key:"name",get:function(){return"FolderDetailsComponent"}},{key:"template",get:function(){return s.a}},{key:"lang",get:function(){return"libraryEditor.folderDetails"}},{key:"folderTreeKey",get:function(){return this.options.folderTreeKey||"folderselect:".concat(this.cid)}},{key:"behaviors",get:function(){return[{behaviorClass:o.a,modelValidation:Object(a.a)({validateName:this.options.editName,validateParent:this.options.editParent,folder:this.options.model,collection:this.options.collection})},{behaviorClass:o.g}]}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}}}}}])&&f(t.prototype,n),r&&f(t,r),c}(r.a.Component)},1099:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,a=e.escapeExpression;return' <div class="form-group">\r\n <label for="name" class="control-label">'+a((n.lang||t&&t.lang||l).call(i,"name",{name:"lang",hash:{},data:o}))+'</label>\r\n <input name="name" id="name" type="text" class="form-control" placeholder="'+a((n.lang||t&&t.lang||l).call(i,"namePlaceholder",{name:"lang",hash:{},data:o}))+'" autocomplete="off" autofocus/>\r\n <div class="form-feedback"></div>\r\n </div>\r\n'},3:function(e,t,n,r,o){e.propertyIsEnumerable;return' <div class="form-group pt-2">\r\n <label for="parentId" class="control-label">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"parent",{name:"lang",hash:{},data:o}))+'</label>\r\n <div class="parent-folder-region"></div>\r\n </div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return"<form>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.editName:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.editParent:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+"</form>"},useData:!0})},1221:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},3:function(e,t,n,r,o){return'<div class="folder-details-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})},1409:function(e,t,n){"use strict";n.r(t),n.d(t,"NewFolderView",(function(){return E}));var r=n(7),o=n(19),i=n(2),l=n(5),a=n(30),u=n(42),s=n(281),c=n(0),f=n(78),d=n(1023),p=n(82),h=n(13),y=n(244),b=n(3),m=n(1098),v=n(1221),g=n.n(v),w=n(191);function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=I(e);if(t){var o=I(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _(this,n)}}function _(e,t){return!t||"object"!==k(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}(_,e);var t,n,v,k=P(_);function _(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,_),k.call(this,e)}return t=_,(n=[{key:"initialize",value:function(e){var t=e.parentId,n=e.libraryId;(t?!n:n)||i.a.ErrorHelper.throw(new o.a("Must provide either a libraryId or a parentId to ".concat(this.name))),this.bindListeners(),this.libraryDataService=l.a.getInstance(c.g.Library,this)}},{key:"bindListeners",value:function(){this.listenTo(c.e.LIBRARY,"libraries:sync",this.render)}},{key:"regions",value:function(){return{folderDetails:".folder-details-region"}}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.viewModel.validate(),!1!==this.viewModel.isValid()&&(r.Radio.channel(this.channelName).trigger(y.b.ShowSpinner),this.trimFolderName(),this.addFolder(),this.logAction())}},{key:"addFolder",value:function(){var e=this,t=this.viewModel.get("parentId").toString()===this.library.get("id").toString()?null:this.viewModel.get("parentId").toString();this.libraryDataService.addFolder(this.viewModel,this.library.get("id").toString(),t,(function(t){a.a.clear(e.getViewModelKey()),e.options.routeToFolderOnCreate?i.a.AppLinkHelper.trigger({application:c.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.FOLDER,args:[t.get("id")]}):e.triggerMethod("hide")}))}},{key:"trimFolderName",value:function(){var e=this.viewModel.get("name");this.viewModel.set("name",e.trim())}},{key:"logAction",value:function(){var e={id:this.options.libraryId,name:this.viewModel.get("name"),isSubfolder:this.viewModel.get("parentId").toString()!==this.library.get("id").toString()};u.a.logUserAction(e,this.options.analyticsOptions)}},{key:"setUpViewModel",value:function(){if(!this.viewModel){var e=this.getViewModelKey();this.viewModel=a.a.get(e,null,{ctor:p.a}),this.viewModel.set({parentId:this.options.parentId||this.options.libraryId})}}},{key:"getViewModelKey",value:function(){return"folder:new:".concat(this.options.libraryId,":").concat(this.options.parentId)}},{key:"renderFolderDetails",value:function(){if(this.collection){var e=new m.a({model:this.viewModel,collection:this.collection,library:this.library,channelName:this.channelName,editName:!0,editParent:!0,folderTreeKey:this.folderTreeKey});this.showChildView("folderDetails",e)}}},{key:"onBeforeRender",value:function(){var e=this;if(this.libraryDataService.getLibraries((function(t){if(!e.collection){var n=e.options.libraryId||e.options.parentId;e.library=h.f.getLibrary(n,t),e.setUpViewModel(),e.collection=new f.a([e.library]),h.f.setSelected(e.folderTreeKey,e.viewModel.get("parentId"),e.collection)}})),this.collection&&this.spinnerModel.set(y.c.Disabled,!1),h.f.getFolderDepth(this.options.parentId,this.collection)>=c.s.MAX_FOLDER_DEPTH)return window.setTimeout((function(){e.triggerMethod("hide"),i.a.ErrorHelper.throw(new w.b)}),c.s.POPUP_FADE_TIMEOUT),!1}},{key:"viewOptions",value:function(){return{dataFetched:!!this.collection,spinnerEl:h.q.getSpinner({size:h.r.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.renderFolderDetails()}},{key:"name",get:function(){return"NewFolderView"}},{key:"lang",get:function(){return"libraryEditor.newFolder"}},{key:"title",get:function(){return b.a.getPhrase(this.lang,"title")}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"template",get:function(){return g.a}},{key:"channelName",get:function(){return h.k.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:s.f,title:b.a.getPhrase(this.lang,"heading"),appLink:this.options.returnAppLink,spinnerButtonOptions:{model:this.spinnerModel=new d.a,channelName:this.channelName,buttonText:b.a.getPhrase(this.lang,"create"),onClick:function(t){return e.onSubmit(t)}}}]}}])&&O(t.prototype,n),v&&O(t,v),_}(i.a.View)}}]);
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[7],{1019:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(2),o=n(244);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(c,e);var t,n,r,i=s(c);function c(){return l(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"defaults",value:function(){return e={},t=o.c.Disabled,n=!0,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}}])&&a(t.prototype,n),r&&a(t,r),c}(r.a.Model)},1027:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(1),o=n(49),i=n(159),l=n(3),a="libraryEditor.utils",u={name:[{required:!0,msg:function(){return l.a.getPhrase(a,"folderNameRequired")}},{maxLength:255,msg:function(){return l.a.getPhrase(a,"folderNameExceeds")}}]},s=function(e,t){return{parentId:function(n){return n?o.a.calculateDestinationFolderDepth(e,n,t)>i.a.MAX_FOLDER_DEPTH?l.a.getPhrase(a,"maxFolderDepth",{maxDepth:i.a.MAX_FOLDER_DEPTH}):"":l.a.getPhrase(a,"selectParentFolder")}}},c=function(e){var t=e.validateName,n=e.validateParent,o=e.folder,i=e.collection;return t&&n?r.extend({},u,s(o,i)):t?u:n?s(o,i):void 0}},1036:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(7),o=n(2),i=n(3),l=n(1050),a=n(13),u=n(1037),s=n.n(u),c=n(1038),f=n.n(c);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(c,e);var t,n,o,u=y(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),u.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"folder:selected new:folder:selected",this.setButtonText),this.listenTo(this.options.channelName,"re:render:selector",this.renderSelector),this.disabledIds=this.options.disabledIds&&this.options.disabledIds.reduce((function(e,t){return Object.assign(Object.assign({},e),function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,!0))}),{})}},{key:"regions",value:function(){return{selector:{el:".selector-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .create-new":"onClickCreateNew"}}},{key:"onClickCreateNew",value:function(e){e.preventDefault(),r.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var r=a.f.getSelected(this.options.folderTreeKey,this.collection),o=r?r.get("name"):i.a.getPhrase(this.lang,"button");this.getUI("button").text(o)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new l.a({styles:f.a,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:f.a.list,extraClasses:f.a.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:f.a,name:this.options.name||this.options.channelName,buttonText:this.buttonText,canCreateNew:this.options.canCreateNew}}},{key:"onRender",value:function(){this.setButtonText(),this.renderSelector()}},{key:"name",get:function(){return"TreeDropdownComponent"}},{key:"template",get:function(){return s.a}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.treeDropdown"}},{key:"defaults",get:function(){return{disabledIds:[]}}},{key:"elements",get:function(){return{button:".custom-select"}}}])&&p(t.prototype,n),o&&p(t,o),c}(o.a.Component)},1037:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <button class="create-new btn font-weight-bold rounded-0 w-100 text-left '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.customItem:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:o}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<button\r\n class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectBtn:i,t))+' custom-select form-control"\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n name='+a(l(null!=(i=null!=t?t.options:t)?i.name:i,t))+"\r\n>"+a(l(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+'</button>\r\n<div class="dropdown-menu '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selector:i,t))+'">\r\n <div class="selector-region"></div>\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.canCreateNew:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'</div>\r\n<div class="form-feedback"></div>'},useData:!0})},1038:function(e,t,n){e.exports={selectBtn:"_2TTgs",list:"_3wN7o",selector:"_3Xf1P",customItem:"_199PI"}},1094:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(2),o=n(281),i=n(13),l=n(1036),a=n(1027),u=n(1095),s=n.n(u);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(c,e);var t,n,r,u=p(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),u.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,"folder:selected",this.onFolderSelected)}},{key:"regions",value:function(){return{parentFolder:".parent-folder-region"}}},{key:"onFolderSelected",value:function(e,t){e&&(i.f.setSelected(this.folderTreeKey,e,this.collection,t),t||this.model.set("parentId",e.get("id"),{validate:!0}))}},{key:"renderSubFolders",value:function(){this.options.editParent&&this.showChildView("parentFolder",new l.a({collection:this.collection,channelName:this.options.channelName,folderTreeKey:this.folderTreeKey,disabledIds:this.options.disabledParentFolderIds}))}},{key:"viewOptions",value:function(){return{editName:this.options.editName,editParent:this.options.editParent}}},{key:"onRender",value:function(){this.renderSubFolders()}},{key:"name",get:function(){return"FolderDetailsComponent"}},{key:"template",get:function(){return s.a}},{key:"lang",get:function(){return"libraryEditor.folderDetails"}},{key:"folderTreeKey",get:function(){return this.options.folderTreeKey||"folderselect:".concat(this.cid)}},{key:"behaviors",get:function(){return[{behaviorClass:o.a,modelValidation:Object(a.a)({validateName:this.options.editName,validateParent:this.options.editParent,folder:this.options.model,collection:this.options.collection})},{behaviorClass:o.g}]}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}}}}}])&&f(t.prototype,n),r&&f(t,r),c}(r.a.Component)},1095:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,a=e.escapeExpression;return' <div class="form-group">\r\n <label for="name" class="control-label">'+a((n.lang||t&&t.lang||l).call(i,"name",{name:"lang",hash:{},data:o}))+'</label>\r\n <input name="name" id="name" type="text" class="form-control" placeholder="'+a((n.lang||t&&t.lang||l).call(i,"namePlaceholder",{name:"lang",hash:{},data:o}))+'" autocomplete="off" autofocus/>\r\n <div class="form-feedback"></div>\r\n </div>\r\n'},3:function(e,t,n,r,o){e.propertyIsEnumerable;return' <div class="form-group pt-2">\r\n <label for="parentId" class="control-label">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"parent",{name:"lang",hash:{},data:o}))+'</label>\r\n <div class="parent-folder-region"></div>\r\n </div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return"<form>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.editName:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.editParent:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+"</form>"},useData:!0})},1217:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},3:function(e,t,n,r,o){return'<div class="folder-details-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})},1405:function(e,t,n){"use strict";n.r(t),n.d(t,"NewFolderView",(function(){return E}));var r=n(7),o=n(19),i=n(2),l=n(5),a=n(30),u=n(42),s=n(281),c=n(0),f=n(79),d=n(1019),p=n(82),h=n(13),y=n(244),b=n(3),m=n(1094),v=n(1217),g=n.n(v),w=n(191);function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=I(e);if(t){var o=I(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _(this,n)}}function _(e,t){return!t||"object"!==k(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}(_,e);var t,n,v,k=P(_);function _(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,_),k.call(this,e)}return t=_,(n=[{key:"initialize",value:function(e){var t=e.parentId,n=e.libraryId;(t?!n:n)||i.a.ErrorHelper.throw(new o.a("Must provide either a libraryId or a parentId to ".concat(this.name))),this.bindListeners(),this.libraryDataService=l.a.getInstance(c.g.Library,this)}},{key:"bindListeners",value:function(){this.listenTo(c.e.LIBRARY,"libraries:sync",this.render)}},{key:"regions",value:function(){return{folderDetails:".folder-details-region"}}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.viewModel.validate(),!1!==this.viewModel.isValid()&&(r.Radio.channel(this.channelName).trigger(y.b.ShowSpinner),this.trimFolderName(),this.addFolder(),this.logAction())}},{key:"addFolder",value:function(){var e=this,t=this.viewModel.get("parentId").toString()===this.library.get("id").toString()?null:this.viewModel.get("parentId").toString();this.libraryDataService.addFolder(this.viewModel,this.library.get("id").toString(),t,(function(t){a.a.clear(e.getViewModelKey()),e.options.routeToFolderOnCreate?i.a.AppLinkHelper.trigger({application:c.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.FOLDER,args:[t.get("id")]}):e.triggerMethod("hide")}))}},{key:"trimFolderName",value:function(){var e=this.viewModel.get("name");this.viewModel.set("name",e.trim())}},{key:"logAction",value:function(){var e={id:this.options.libraryId,name:this.viewModel.get("name"),isSubfolder:this.viewModel.get("parentId").toString()!==this.library.get("id").toString()};u.a.logUserAction(e,this.options.analyticsOptions)}},{key:"setUpViewModel",value:function(){if(!this.viewModel){var e=this.getViewModelKey();this.viewModel=a.a.get(e,null,{ctor:p.a}),this.viewModel.set({parentId:this.options.parentId||this.options.libraryId})}}},{key:"getViewModelKey",value:function(){return"folder:new:".concat(this.options.libraryId,":").concat(this.options.parentId)}},{key:"renderFolderDetails",value:function(){if(this.collection){var e=new m.a({model:this.viewModel,collection:this.collection,library:this.library,channelName:this.channelName,editName:!0,editParent:!0,folderTreeKey:this.folderTreeKey});this.showChildView("folderDetails",e)}}},{key:"onBeforeRender",value:function(){var e=this;if(this.libraryDataService.getLibraries((function(t){if(!e.collection){var n=e.options.libraryId||e.options.parentId;e.library=h.f.getLibrary(n,t),e.setUpViewModel(),e.collection=new f.a([e.library]),h.f.setSelected(e.folderTreeKey,e.viewModel.get("parentId"),e.collection)}})),this.collection&&this.spinnerModel.set(y.c.Disabled,!1),h.f.getFolderDepth(this.options.parentId,this.collection)>=c.s.MAX_FOLDER_DEPTH)return window.setTimeout((function(){e.triggerMethod("hide"),i.a.ErrorHelper.throw(new w.b)}),c.s.POPUP_FADE_TIMEOUT),!1}},{key:"viewOptions",value:function(){return{dataFetched:!!this.collection,spinnerEl:h.q.getSpinner({size:h.r.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.renderFolderDetails()}},{key:"name",get:function(){return"NewFolderView"}},{key:"lang",get:function(){return"libraryEditor.newFolder"}},{key:"title",get:function(){return b.a.getPhrase(this.lang,"title")}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"template",get:function(){return g.a}},{key:"channelName",get:function(){return h.k.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:s.f,title:b.a.getPhrase(this.lang,"heading"),appLink:this.options.returnAppLink,spinnerButtonOptions:{model:this.spinnerModel=new d.a,channelName:this.channelName,buttonText:b.a.getPhrase(this.lang,"create"),onClick:function(t){return e.onSubmit(t)}}}]}}])&&O(t.prototype,n),v&&O(t,v),_}(i.a.View)}}]);
@@ -1 +1 @@
1
- {"version":3,"sources":["file://C:/ClickView Projects/clickview/packages/projects/library-editor/src/shared/components/dropdown/DropdownComponentCollection.ts","file://C:/ClickView Projects/clickview/packages/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-series/VideoItemSeries.hbs","file://C:/ClickView Projects/clickview/packages/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-series/VideoItemSeriesComponent.ts","webpack://@clickview/library-editor/./src/shared/components/video-item/video-item-metadata/video-item-series/video-item-series.scss?fc46"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAGA;AAEA;AA8BO,IAAM,2BAAb;AAAA;;AAAA;;AAGE,uCAAY,OAAZ,EAAwD;AAAA;;AAAA,6BAChD,OADgD;AAEvD;;AALH;AAAA;AAAA,iCAqBmB;AACf,WAAK,QAAL,CAAc,KAAK,OAAL,CAAa,WAA3B,EAAwC,iBAAxC,EAA2D,KAAK,kBAAhE;AACD;AAvBH;AAAA;AAAA,sCAsCqE;AAAA,UAA3C,cAA2C,uEAAF,EAAE;AAAA,kCACpB,cADoB,CACzD,SADyD;AAAA,UACzD,SADyD,sCAC7C,MAD6C;AAAA,UACrC,YADqC,GACpB,cADoB,CACrC,YADqC;AAGjE,UAAI,SAAS,2BAAoB,SAApB,CAAb;AAEA,UAAI,YAAJ,EACE,SAAS,aAAM,SAAN,cAAmB,YAAnB,CAAT;AAEF,aAAO,SAAP;AACD;AA/C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e,KAAK,KAAL,CAAW,GAAX,CAAe,eAAf,CAAf,CAHV;AAIL,kBAAU,EAAE,KAAK,aAAL,EAJP;AAKL,iBAAS,EAAE,KAAK,OAAL,CAAa,SALnB;AAML,mBAAW,EAAE,0EAAS,CAAC,MAAV,CAAiB,6EAAY,CAAC,SAA9B,CANR;AAOL,sBAAc,EAAE,KAAK,OAAL,CAAa;AAPxB,OAAP;AASD;AArEH;AAAA;AAAA,qCAuEuB;AACnB,aAAO,KAAK,KAAL,CAAW,MAAX,IAAqB,CAAC,CAAC,KAAK,KAAL,CAAW,MAAX,CAAkB,GAAlB,CAAsB,IAAtB,CAA9B;AACD;AAzEH;AAAA;AAAA,wBAOqB;AACjB,aAAO;AACL,sBAAc,EAAE;AADX,OAAP;AAGD;AAXH;AAAA;AAAA,wBAaiB;AACb,aAAO,0BAAP;AACD;AAfH;AAAA;AAAA,wBAiBqB;AACjB,aAAO,2DAAP;AACD;AAnBH;AAAA;AAAA,wBAqBqB;AACjB,UAAI,KAAK,OAAL,CAAa,SAAjB,EACE,OAAO,EAAP;AAEF,aAAO;AACL,2BAAmB;AACjB,qBAAW,EAAE,sDAAW,CAAC,cADR;AAEjB,gBAAM,EAAE,kDAAO,CAAC,aAAR,CAAsB,MAFb;AAGjB,cAAI,EAAE,CAAC,KAAK,KAAL,CAAW,MAAX,CAAkB,GAAlB,CAAsB,IAAtB,CAAD;AAHW;AADd,OAAP;AAOD;AAhCH;;AAAA;AAAA,EAA8C,8DAAI,CAAC,SAAnD,E;;;;;;;;;;;ACpBA;AACA,kBAAkB,uE","file":"scripts/7.chunk.js","sourcesContent":["import * as _ from 'underscore';\r\nimport { ObjectHash } from 'backbone';\r\n\r\nimport { Core } from 'libs/common/core';\r\n\r\nimport { DropdownItemComponent } from 'shared/components/dropdown/DropdownItemComponent';\r\n\r\nexport interface DropdownDisplayOptions {\r\n alignment?: string;\r\n extraClasses?: string;\r\n}\r\n\r\nexport interface DropdownAnalyticsHelper {\r\n logUserAction(data: ObjectHash | ObjectHash[], analyticsOptions: any): void;\r\n}\r\n\r\nexport interface DropdownChildOptions {\r\n channelName?: string;\r\n titleProperty?: string;\r\n eventName?: string;\r\n extraClasses?: string;\r\n prefixHandler?: () => string;\r\n currentSelectedMessage?: string;\r\n isDisabled?: (model: Core.Model) => boolean;\r\n getTooltip?: (model: Core.Model) => ObjectHash;\r\n truncateOptionNames?: boolean;\r\n}\r\n\r\nexport interface DropdownComponentCollectionOptions extends Core.ComponentCollectionOptions {\r\n channelName: string;\r\n childOptions?: DropdownChildOptions;\r\n displayOptions?: DropdownDisplayOptions;\r\n analyticsHelper: DropdownAnalyticsHelper;\r\n}\r\n\r\nexport class DropdownComponentCollection extends Core.ComponentCollection {\r\n public options: DropdownComponentCollectionOptions;\r\n\r\n constructor(options?: DropdownComponentCollectionOptions) {\r\n super(options);\r\n }\r\n\r\n public get name(): string {\r\n return 'DropdownCollectionComponent';\r\n }\r\n\r\n public get className(): string {\r\n return `dropdown-menu items-viewpart ${this.getExtraClasses(this.options.displayOptions)}`;\r\n }\r\n\r\n public get attributes(): ObjectHash {\r\n return {\r\n 'aria-labelledby': 'dropdownSelector'\r\n };\r\n }\r\n\r\n public initialize(): void {\r\n this.listenTo(this.options.channelName, 'center:dropdown', this.centerSelectedItem);\r\n }\r\n\r\n public get childView(): any {\r\n return DropdownItemComponent;\r\n }\r\n\r\n public get childViewOptions(): ObjectHash {\r\n const baseChildOptions: ObjectHash = {\r\n channelName: this.options.channelName,\r\n analyticsHelper: this.options.analyticsHelper\r\n };\r\n\r\n return _.extend(baseChildOptions, this.options.childOptions);\r\n }\r\n\r\n private getExtraClasses(displayOptions: DropdownDisplayOptions = {}): string {\r\n const { alignment = 'left', extraClasses } = displayOptions;\r\n\r\n let className = `dropdown-menu-${alignment}`;\r\n\r\n if (extraClasses)\r\n className = `${className} ${extraClasses}`;\r\n\r\n return className;\r\n }\r\n\r\n private centerSelectedItem(): void {\r\n const active = this.$el.find('.active');\r\n\r\n if (!active.length)\r\n return;\r\n\r\n const halfRatio = 0.5;\r\n const top = this.$el.scrollTop() + active.position().top;\r\n const distance = this.$el.height() * halfRatio + active.height() * halfRatio;\r\n this.$el.scrollTop(top - distance);\r\n }\r\n}","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 container.escapeExpression(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.series : stack1), depth0));\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return \"href=\\\"\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.seriesUrl : stack1), depth0))\n + \"\\\" target=\\\"_blank\\\"\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.seasonNumber : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(6, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \" E\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.episodeNumber : stack1), depth0))\n + \"\\r\\n\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return \"&nbsp;S\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.seasonNumber : stack1), depth0))\n + \" &bull;\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \"<a class=\\\"series-applink text-muted \"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styleUppercase : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\\" \"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.seriesUrl : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \">\\r\\n \"\n + ((stack1 = container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.seriesName : stack1), depth0)) != null ? stack1 : \"\")\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.episodeNumber : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"</a>\";\n},\"useData\":true});","import { Core } from 'libs/common/core';\r\nimport { SvgHelper, cvSvgLibrary } from 'libs/shared/utils/SvgHelper';\r\n\r\nimport { Video } from 'shared/models/Video';\r\nimport { ObjectHash } from 'backbone';\r\nimport { TextHelper } from 'shared/utils';\r\nimport { AppChannels, Actions } from 'shared/constants';\r\n\r\nimport * as styles from './video-item-series.scss';\r\nimport VideoItemSeriesTemplate from './VideoItemSeries.hbs';\r\n\r\nconst PAD_LENGTH = 2;\r\n\r\ninterface VideoItemSeriesComponentOptions extends Core.ComponentOptions<Video> {\r\n model: Video;\r\n highlight: boolean;\r\n seriesUrl?: string;\r\n styleUppercase?: boolean;\r\n}\r\n\r\nexport class VideoItemSeriesComponent extends Core.Component<Video> {\r\n protected options: VideoItemSeriesComponentOptions;\r\n\r\n constructor(options: VideoItemSeriesComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public get defaults(): ObjectHash {\r\n return {\r\n styleUppercase: true\r\n };\r\n }\r\n\r\n public get name(): string {\r\n return 'VideoItemSeriesComponent';\r\n }\r\n\r\n public get template(): any {\r\n return VideoItemSeriesTemplate;\r\n }\r\n\r\n public get appLinks(): Core.AppLinkHash {\r\n if (this.options.seriesUrl)\r\n return {};\r\n\r\n return {\r\n '.series-applink': {\r\n application: AppChannels.LIBRARY_EDITOR,\r\n action: Actions.LibraryEditor.SERIES,\r\n args: [this.model.series.get('id')]\r\n }\r\n };\r\n }\r\n\r\n private padNumber(num: string | number): string {\r\n if (!num)\r\n return null;\r\n\r\n let numberString = num.toString();\r\n var padLength = PAD_LENGTH;\r\n\r\n if (numberString.length >= padLength)\r\n return numberString;\r\n\r\n padLength = padLength - numberString.length;\r\n\r\n while (padLength > 0) {\r\n numberString = '0' + numberString;\r\n padLength--;\r\n }\r\n return numberString;\r\n }\r\n\r\n private getSeriesName(): string {\r\n return this.options.highlight\r\n ? TextHelper.wordsHighlighter(this.model.series.get('name'), this.model.get('_matchedWords'))\r\n : this.model.series.get('name');\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n return {\r\n styles,\r\n seasonNumber: this.padNumber(this.model.season && this.model.season.get('number')),\r\n episodeNumber: this.padNumber(this.model.get('episodeNumber')),\r\n seriesName: this.getSeriesName(),\r\n seriesUrl: this.options.seriesUrl,\r\n externalSvg: SvgHelper.getSvg(cvSvgLibrary.NewWindow),\r\n styleUppercase: this.options.styleUppercase\r\n };\r\n }\r\n\r\n public onBeforeRender(): boolean {\r\n return this.model.series && !!this.model.series.get('id');\r\n }\r\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"svgContainer\":\"cv--svgContainer--1CUEt\",\"series\":\"cv--series--oZx-K\"};"],"sourceRoot":""}
1
+ {"version":3,"sources":["file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/shared/components/dropdown/DropdownComponentCollection.ts","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-series/VideoItemSeries.hbs","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-series/VideoItemSeriesComponent.ts","webpack://@clickview/library-editor/./src/shared/components/video-item/video-item-metadata/video-item-series/video-item-series.scss?c4b9"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAGA;AAEA;AA8BO,IAAM,2BAAb;AAAA;;AAAA;;AAGE,uCAAY,OAAZ,EAAwD;AAAA;;AAAA,6BAChD,OADgD;AAEvD;;AALH;AAAA;AAAA,iCAqBmB;AACf,WAAK,QAAL,CAAc,KAAK,OAAL,CAAa,WAA3B,EAAwC,iBAAxC,EAA2D,KAAK,kBAAhE;AACD;AAvBH;AAAA;AAAA,sCAsCqE;AAAA,UAA3C,cAA2C,uEAAF,EAAE;AAAA,kCACpB,cADoB,CACzD,SADyD;AAAA,UACzD,SADyD,sCAC7C,MAD6C;AAAA,UACrC,YADqC,GACpB,cADoB,CACrC,YADqC;AAGjE,UAAI,SAAS,2BAAoB,SAApB,CAAb;AAEA,UAAI,YAAJ,EACE,SAAS,aAAM,SAAN,cAAmB,YAAnB,CAAT;AAEF,aAAO,SAAP;AACD;AA/CH;AAAA;AAAA,yCAiD4B;AACxB,UAAM,MAAM,GAAG,KAAK,GAAL,CAAS,IAAT,CAAc,SAAd,CAAf;AAEA,UAAI,CAAC,MAAM,CAAC,MAAZ,EACE;AAEF,UAAM,SAAS,GAAG,GAAlB;AACA,UAAM,GAAG,GAAG,KAAK,GAAL,CAAS,SAAT,KAAuB,MAAM,CAAC,QAAP,GAAkB,GAArD;AACA,UAAM,QAAQ,GAAG,KAAK,GAAL,CAAS,MAAT,KAAoB,SAApB,GAAgC,MAAM,CAAC,MAAP,KAAkB,SAAnE;AACA,WAAK,GAAL,CAAS,SAAT,CAAmB,GAAG,GAAG,QAAzB;AACD;AA3DH;AAAA;AAAA,wBAOiB;AACb,aAAO,6BAAP;AACD;AATH;AAAA;AAAA,wBAWsB;AAClB,oDAAuC,KAAK,eAAL,C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O,0BAAP;AACD;AAfH;AAAA;AAAA,wBAiBqB;AACjB,aAAO,2DAAP;AACD;AAnBH;AAAA;AAAA,wBAqBqB;AACjB,UAAI,KAAK,OAAL,CAAa,SAAjB,EACE,OAAO,EAAP;AAEF,aAAO;AACL,2BAAmB;AACjB,qBAAW,EAAE,sDAAW,CAAC,cADR;AAEjB,gBAAM,EAAE,kDAAO,CAAC,aAAR,CAAsB,MAFb;AAGjB,cAAI,EAAE,CAAC,KAAK,KAAL,CAAW,MAAX,CAAkB,GAAlB,CAAsB,IAAtB,CAAD;AAHW;AADd,OAAP;AAOD;AAhCH;;AAAA;AAAA,EAA8C,8DAAI,CAAC,SAAnD,E;;;;;;;;;;;ACpBA;AACA,kBAAkB,uE","file":"scripts/7.chunk.js","sourcesContent":["import * as _ from 'underscore';\r\nimport { ObjectHash } from 'backbone';\r\n\r\nimport { Core } from 'libs/common/core';\r\n\r\nimport { DropdownItemComponent } from 'shared/components/dropdown/DropdownItemComponent';\r\n\r\nexport interface DropdownDisplayOptions {\r\n alignment?: string;\r\n extraClasses?: string;\r\n}\r\n\r\nexport interface DropdownAnalyticsHelper {\r\n logUserAction(data: ObjectHash | ObjectHash[], analyticsOptions: any): void;\r\n}\r\n\r\nexport interface DropdownChildOptions {\r\n channelName?: string;\r\n titleProperty?: string;\r\n eventName?: string;\r\n extraClasses?: string;\r\n prefixHandler?: () => string;\r\n currentSelectedMessage?: string;\r\n isDisabled?: (model: Core.Model) => boolean;\r\n getTooltip?: (model: Core.Model) => ObjectHash;\r\n truncateOptionNames?: boolean;\r\n}\r\n\r\nexport interface DropdownComponentCollectionOptions extends Core.ComponentCollectionOptions {\r\n channelName: string;\r\n childOptions?: DropdownChildOptions;\r\n displayOptions?: DropdownDisplayOptions;\r\n analyticsHelper: DropdownAnalyticsHelper;\r\n}\r\n\r\nexport class DropdownComponentCollection extends Core.ComponentCollection {\r\n public options: DropdownComponentCollectionOptions;\r\n\r\n constructor(options?: DropdownComponentCollectionOptions) {\r\n super(options);\r\n }\r\n\r\n public get name(): string {\r\n return 'DropdownCollectionComponent';\r\n }\r\n\r\n public get className(): string {\r\n return `dropdown-menu items-viewpart ${this.getExtraClasses(this.options.displayOptions)}`;\r\n }\r\n\r\n public get attributes(): ObjectHash {\r\n return {\r\n 'aria-labelledby': 'dropdownSelector'\r\n };\r\n }\r\n\r\n public initialize(): void {\r\n this.listenTo(this.options.channelName, 'center:dropdown', this.centerSelectedItem);\r\n }\r\n\r\n public get childView(): any {\r\n return DropdownItemComponent;\r\n }\r\n\r\n public get childViewOptions(): ObjectHash {\r\n const baseChildOptions: ObjectHash = {\r\n channelName: this.options.channelName,\r\n analyticsHelper: this.options.analyticsHelper\r\n };\r\n\r\n return _.extend(baseChildOptions, this.options.childOptions);\r\n }\r\n\r\n private getExtraClasses(displayOptions: DropdownDisplayOptions = {}): string {\r\n const { alignment = 'left', extraClasses } = displayOptions;\r\n\r\n let className = `dropdown-menu-${alignment}`;\r\n\r\n if (extraClasses)\r\n className = `${className} ${extraClasses}`;\r\n\r\n return className;\r\n }\r\n\r\n private centerSelectedItem(): void {\r\n const active = this.$el.find('.active');\r\n\r\n if (!active.length)\r\n return;\r\n\r\n const halfRatio = 0.5;\r\n const top = this.$el.scrollTop() + active.position().top;\r\n const distance = this.$el.height() * halfRatio + active.height() * halfRatio;\r\n this.$el.scrollTop(top - distance);\r\n }\r\n}","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 container.escapeExpression(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.series : stack1), depth0));\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return \"href=\\\"\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.seriesUrl : stack1), depth0))\n + \"\\\" target=\\\"_blank\\\"\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.seasonNumber : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(6, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \" E\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.episodeNumber : stack1), depth0))\n + \"\\r\\n\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return \"&nbsp;S\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.seasonNumber : stack1), depth0))\n + \" &bull;\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \"<a class=\\\"series-applink text-muted \"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styleUppercase : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\\" \"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.seriesUrl : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \">\\r\\n \"\n + ((stack1 = container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.seriesName : stack1), depth0)) != null ? stack1 : \"\")\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.episodeNumber : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"</a>\";\n},\"useData\":true});","import { Core } from 'libs/common/core';\r\nimport { SvgHelper, cvSvgLibrary } from 'libs/shared/utils/SvgHelper';\r\n\r\nimport { Video } from 'shared/models/Video';\r\nimport { ObjectHash } from 'backbone';\r\nimport { TextHelper } from 'shared/utils';\r\nimport { AppChannels, Actions } from 'shared/constants';\r\n\r\nimport * as styles from './video-item-series.scss';\r\nimport VideoItemSeriesTemplate from './VideoItemSeries.hbs';\r\n\r\nconst PAD_LENGTH = 2;\r\n\r\ninterface VideoItemSeriesComponentOptions extends Core.ComponentOptions<Video> {\r\n model: Video;\r\n highlight: boolean;\r\n seriesUrl?: string;\r\n styleUppercase?: boolean;\r\n}\r\n\r\nexport class VideoItemSeriesComponent extends Core.Component<Video> {\r\n protected options: VideoItemSeriesComponentOptions;\r\n\r\n constructor(options: VideoItemSeriesComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public get defaults(): ObjectHash {\r\n return {\r\n styleUppercase: true\r\n };\r\n }\r\n\r\n public get name(): string {\r\n return 'VideoItemSeriesComponent';\r\n }\r\n\r\n public get template(): any {\r\n return VideoItemSeriesTemplate;\r\n }\r\n\r\n public get appLinks(): Core.AppLinkHash {\r\n if (this.options.seriesUrl)\r\n return {};\r\n\r\n return {\r\n '.series-applink': {\r\n application: AppChannels.LIBRARY_EDITOR,\r\n action: Actions.LibraryEditor.SERIES,\r\n args: [this.model.series.get('id')]\r\n }\r\n };\r\n }\r\n\r\n private padNumber(num: string | number): string {\r\n if (!num)\r\n return null;\r\n\r\n let numberString = num.toString();\r\n var padLength = PAD_LENGTH;\r\n\r\n if (numberString.length >= padLength)\r\n return numberString;\r\n\r\n padLength = padLength - numberString.length;\r\n\r\n while (padLength > 0) {\r\n numberString = '0' + numberString;\r\n padLength--;\r\n }\r\n return numberString;\r\n }\r\n\r\n private getSeriesName(): string {\r\n return this.options.highlight\r\n ? TextHelper.wordsHighlighter(this.model.series.get('name'), this.model.get('_matchedWords'))\r\n : this.model.series.get('name');\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n return {\r\n styles,\r\n seasonNumber: this.padNumber(this.model.season && this.model.season.get('number')),\r\n episodeNumber: this.padNumber(this.model.get('episodeNumber')),\r\n seriesName: this.getSeriesName(),\r\n seriesUrl: this.options.seriesUrl,\r\n externalSvg: SvgHelper.getSvg(cvSvgLibrary.NewWindow),\r\n styleUppercase: this.options.styleUppercase\r\n };\r\n }\r\n\r\n public onBeforeRender(): boolean {\r\n return this.model.series && !!this.model.series.get('id');\r\n }\r\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"svgContainer\":\"cv--svgContainer--1CUEt\",\"series\":\"cv--series--oZx-K\"};"],"sourceRoot":""}
@@ -1 +1 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[70],{1194:function(t,e,r){var n=r(10);t.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(t,e,r,n,o){t.propertyIsEnumerable;var i,u=t.lambda,c=t.escapeExpression;return"<h1>"+c(u(null!=(i=null!=e?e.options:e)?i.name:i,e))+'</h1>\r\n<div class="alert alert-danger" role="alert">\r\n <h2>'+c(u(null!=(i=null!=e?e.options:e)?i.message:i,e))+'</h2>\r\n</div>\r\n<div class="alert alert-warning" role="alert">\r\n <h3>Call stack</h3>\r\n <code>'+c(u(null!=(i=null!=e?e.options:e)?i.stack:i,e))+"</code>\r\n</div>"},useData:!0})},1405:function(t,e,r){"use strict";r.r(e),r.d(e,"DevErrorView",(function(){return b}));var n=r(7),o=r(2),i=r(1194),u=r.n(i);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=y(t);if(e){var o=y(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return p(this,r)}}function p(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(c,t);var e,r,o,i=s(c);function c(){return a(this,c),i.apply(this,arguments)}return e=c,(r=[{key:"initialize",value:function(){var t=n.Radio.channel("error:view");this.error=t.request("current:error")}},{key:"viewOptions",value:function(){return{message:this.error.message,stack:this.error.stack,name:this.error.name}}},{key:"name",get:function(){return"ErrorView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return u.a}},{key:"className",get:function(){return"mt-5"}}])&&l(e.prototype,r),o&&l(e,o),c}(o.a.View)}}]);
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[70],{1190:function(t,e,r){var n=r(10);t.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(t,e,r,n,o){t.propertyIsEnumerable;var i,u=t.lambda,c=t.escapeExpression;return"<h1>"+c(u(null!=(i=null!=e?e.options:e)?i.name:i,e))+'</h1>\r\n<div class="alert alert-danger" role="alert">\r\n <h2>'+c(u(null!=(i=null!=e?e.options:e)?i.message:i,e))+'</h2>\r\n</div>\r\n<div class="alert alert-warning" role="alert">\r\n <h3>Call stack</h3>\r\n <code>'+c(u(null!=(i=null!=e?e.options:e)?i.stack:i,e))+"</code>\r\n</div>"},useData:!0})},1401:function(t,e,r){"use strict";r.r(e),r.d(e,"DevErrorView",(function(){return b}));var n=r(7),o=r(2),i=r(1190),u=r.n(i);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=y(t);if(e){var o=y(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return p(this,r)}}function p(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(c,t);var e,r,o,i=s(c);function c(){return a(this,c),i.apply(this,arguments)}return e=c,(r=[{key:"initialize",value:function(){var t=n.Radio.channel("error:view");this.error=t.request("current:error")}},{key:"viewOptions",value:function(){return{message:this.error.message,stack:this.error.stack,name:this.error.name}}},{key:"name",get:function(){return"ErrorView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return u.a}},{key:"className",get:function(){return"mt-5"}}])&&l(e.prototype,r),o&&l(e,o),c}(o.a.View)}}]);
@@ -1 +1 @@
1
- {"version":3,"sources":["file://C:/ClickView Projects/clickview/packages/projects/library-editor/src/apps/migration-wizard/views/publisher-backup-welcome/PublisherBackupWelcome.hbs","file://C:/ClickView Projects/clickview/packages/projects/library-editor/src/apps/migration-wizard/views/publisher-backup-welcome/PublisherBackupWelcomeView.ts","webpack://@clickview/library-editor/./src/apps/migration-wizard/views/publisher-backup-welcome/publisher-backup-welcome.scss?60a8"],"names":[],"mappings":";;;;;;;;;AAAA,iBAAiB,mBAAO,CAAC,8BAAY;AACrC,iEAAiE;AACjE,gLAAgL;;AAEhL;AACA;AACA;AACA,oFAAoF,uBAAuB,aAAa;AACxH;AACA;AACA;AACA,wFAAwF,uBAAuB,aAAa;AAC5H;AACA,kFAAkF,uBAAuB,aAAa;AACtH;AACA,0FAA0F,sBAAsB,sIAAsI,aAAa;AACnQ;AACA,CAAC,gBAAgB,E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACfjB;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAEA;AAGO,IAAM,0BAAb;AAAA;;AAAA;;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAAA,iCAKmB;AACf,WAAK,yBAAL,GAAiC,kGAAe,CAAC,WAAhB,CAA4B,8DAAY,CAAC,cAAzC,EAAyD,IAAzD,CAAjC;AACD;AAPH;AAAA;AAAA,0CAsC6B;AAAA;;AACzB,WAAK,yBAAL,CAA+B,gCAA/B,CAAgE,UAAC,QAAD,EAA+B;AAC7F,YAAI,sEAAe,CAAC,gBAAhB,CAAiC,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B;AACjB,aAAO;AACL,+BAAuB;AACrB,qBAAW,EAAE,6DAAW,CAAC,gBADJ;AAErB,gBAAM,EAAE,yDAAO,CAAC,eAAR,CAAwB;AAFX;AADlB,OAAP;AAMD;AApCH;AAAA;AAAA,wBAiE8B;AAC1B,aAAO;AACL,cAAM,EAAE,0FAAuB,CAAC;AAD3B,OAAP;AAGD;AArEH;;AAAA;AAAA,EAAgD,8DAAI,CAAC,IAArD,E;;;;;;;;;;;AChBA;AACA,kBAAkB,kL","file":"scripts/70.chunk.js","sourcesContent":["var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {}), alias5=container.hooks.helperMissing;\n\n return \"<div>\\r\\n <img src=\\\"/images/wave.png\\\" class=\\\"p-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.image : stack1), depth0))\n + \"\\\">\\r\\n\\r\\n <h4>\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||alias5).call(alias4,\"welcome\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</h4>\\r\\n\\r\\n <p class=\\\"w-75 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.text : stack1), depth0))\n + \" mb-3 mt-3\\\">\\r\\n \"\n + alias3((helpers.lang||(depth0 && depth0.lang)||alias5).call(alias4,\"welcomeInfo\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"\\r\\n </p>\\r\\n\\r\\n <a class=\\\"btn btn-primary applink-lets-start\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||alias5).call(alias4,\"start\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</a>\\r\\n\\r\\n <p class=\\\"mt-3\\\">\\r\\n \"\n + ((stack1 = (helpers.lang||(depth0 && depth0.lang)||alias5).call(alias4,\"learnMore\",{\"name\":\"lang\",\"hash\":{\"className\":\"text-info\",\"migrationUrl\":((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.migrationUrl : stack1)},\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n </p>\\r\\n</div>\";\n},\"useData\":true});","import { ObjectHash } from 'backbone';\r\n\r\nimport { UrlHelper } from 'libs/common/backbone/utils/UrlHelper';\r\nimport { Core } from 'libs/common/core';\r\nimport { InstanceManager } from 'libs/common/backbone/services/InstanceManager';\r\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\r\n\r\nimport styles from './publisher-backup-welcome.scss';\r\nimport PublisherBackupWelcomeTemplate from './PublisherBackupWelcome.hbs';\r\nimport { Actions, SupportArticles, AppChannels, DataServices } from 'shared/constants';\r\nimport { Config } from 'shared/models/Config';\r\nimport { ConfigDataServiceHelper } from 'shared/services/ConfigDataService';\r\nimport { MigrationVideoDataService } from 'apps/migration-wizard/services/MigrationVideoDataService';\r\nimport { MigrationHelper } from 'apps/migration-wizard/utils/MigrationHelper';\r\nimport { CustomerMetadata } from 'apps/migration-wizard/models';\r\n\r\nexport class PublisherBackupWelcomeView extends Core.View {\r\n private config: Config;\r\n private migrationVideoDataService: MigrationVideoDataService;\r\n private pollingStarted: boolean;\r\n\r\n public initialize(): void {\r\n this.migrationVideoDataService = InstanceManager.getInstance(DataServices.MigrationVideo, this);\r\n }\r\n\r\n public get name(): string {\r\n return 'PublisherBackupWelcomeView';\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.publisherBackupWelcome';\r\n }\r\n\r\n public get className(): string {\r\n return `container text-center p-4 bg-white ${styles.migrationBackupContainer} ${styles.welcome}`;\r\n }\r\n\r\n public get template(): any {\r\n return PublisherBackupWelcomeTemplate;\r\n }\r\n\r\n public get appLinks(): Core.AppLinkHash {\r\n return {\r\n '.applink-lets-start': {\r\n application: AppChannels.MIGRATION_WIZARD,\r\n action: Actions.MigrationWizard.BACKUP_DOWNLOAD,\r\n }\r\n };\r\n }\r\n\r\n private pollCloudSyncStatus(): void {\r\n this.migrationVideoDataService.clearCacheAndGetCustomerMetadata((metadata: CustomerMetadata) => {\r\n if (MigrationHelper.backupProcessing(metadata)) {\r\n Core.AppLinkHelper.trigger({\r\n application: AppChannels.MIGRATION_WIZARD,\r\n action: Actions.MigrationWizard.BACKUP_PROGRESS,\r\n });\r\n return;\r\n }\r\n\r\n if (MigrationHelper.backupComplete(metadata)) {\r\n Core.AppLinkHelper.trigger({\r\n application: AppChannels.MIGRATION_WIZARD,\r\n action: Actions.MigrationWizard.BACKUP_COMPLETE,\r\n });\r\n return;\r\n }\r\n\r\n setTimeout(() => this.pollCloudSyncStatus(), 30000);\r\n });\r\n }\r\n\r\n private getMigrationUrl(): string {\r\n const supportUrl = this.config.get('supportSiteUrl');\r\n return UrlHelper.safeUrlConcat(supportUrl, SupportArticles.PUBLISHER_ARCHIVE);\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 public viewOptions(): ObjectHash {\r\n return {\r\n styles,\r\n migrationUrl: this.getMigrationUrl()\r\n };\r\n }\r\n\r\n public onRender(): void {\r\n this.pollCloudSyncStatus();\r\n }\r\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"welcome\":\"cv--welcome--3MANn\",\"middle\":\"cv--middle--2sLB2\",\"image\":\"cv--image--1--7s\",\"text\":\"cv--text--ivhYc\",\"migrationBackupContainer\":\"cv--migrationBackupContainer--W7da5\"};"],"sourceRoot":""}
1
+ {"version":3,"sources":["file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/apps/migration-wizard/views/publisher-backup-welcome/PublisherBackupWelcome.hbs","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/apps/migration-wizard/views/publisher-backup-welcome/PublisherBackupWelcomeView.ts","webpack://@clickview/library-editor/./src/apps/migration-wizard/views/publisher-backup-welcome/publisher-backup-welcome.scss?c205"],"names":[],"mappings":";;;;;;;;;AAAA,iBAAiB,mBAAO,CAAC,8BAAY;AACrC,iEAAiE;AACjE,gLAAgL;;AAEhL;AACA;AACA;AACA,oFAAoF,uBAAuB,aAAa;AACxH;AACA;AACA;AACA,wFAAwF,uBAAuB,aAAa;AAC5H;AACA,kFAAkF,uBAAuB,aAAa;AACtH;AACA,0FAA0F,sBAAsB,sIAAsI,aAAa;AACnQ;AACA,CAAC,gBAAgB,E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACfjB;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAEA;AAGO,IAAM,0BAAb;AAAA;;AAAA;;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAAA,iCAKmB;AACf,WAAK,yBAAL,GAAiC,kGAAe,CAAC,WAAhB,CAA4B,8DAAY,CAAC,cAAzC,EAAyD,IAAzD,CAAjC;AACD;AAPH;AAAA;AAAA,0CAsC6B;AAAA;;AACzB,WAAK,yBAAL,CAA+B,gCAA/B,CAAgE,UAAC,QAAD,EAA+B;AAC7F,YAAI,sEAAe,CAAC,gBAAhB,CAAiC,QAAjC,CAAJ,EAAgD;AAC9C,wEAAI,CAAC,aAAL,CAAmB,OAAnB,CAA2B;AACzB,uBAAW,EAAE,6DAAW,CAAC,gBADA;AAEzB,kBAAM,EAAE,yDAAO,CAAC,eAAR,CAAwB;AAFP,WAA3B;AAIA;AACD;;AAED,YAAI,sEAAe,CAAC,cAAhB,CAA+B,QAA/B,CAAJ,EAA8C;AAC5C,wEAAI,CAAC,aAAL,CAAmB,OAAnB,CAA2B;AACzB,uBAAW,EAAE,6DAAW,CAAC,gBADA;AAEzB,kBAAM,EAAE,yDAAO,CAAC,eAAR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= (Handlebars['default'] || Handlebars).template({\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {}), alias5=container.hooks.helperMissing;\n\n return \"<div>\\r\\n <img src=\\\"/images/wave.png\\\" class=\\\"p-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.image : stack1), depth0))\n + \"\\\">\\r\\n\\r\\n <h4>\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||alias5).call(alias4,\"welcome\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</h4>\\r\\n\\r\\n <p class=\\\"w-75 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.text : stack1), depth0))\n + \" mb-3 mt-3\\\">\\r\\n \"\n + alias3((helpers.lang||(depth0 && depth0.lang)||alias5).call(alias4,\"welcomeInfo\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"\\r\\n </p>\\r\\n\\r\\n <a class=\\\"btn btn-primary applink-lets-start\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||alias5).call(alias4,\"start\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</a>\\r\\n\\r\\n <p class=\\\"mt-3\\\">\\r\\n \"\n + ((stack1 = (helpers.lang||(depth0 && depth0.lang)||alias5).call(alias4,\"learnMore\",{\"name\":\"lang\",\"hash\":{\"className\":\"text-info\",\"migrationUrl\":((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.migrationUrl : stack1)},\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n </p>\\r\\n</div>\";\n},\"useData\":true});","import { ObjectHash } from 'backbone';\r\n\r\nimport { UrlHelper } from 'libs/common/backbone/utils/UrlHelper';\r\nimport { Core } from 'libs/common/core';\r\nimport { InstanceManager } from 'libs/common/backbone/services/InstanceManager';\r\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\r\n\r\nimport styles from './publisher-backup-welcome.scss';\r\nimport PublisherBackupWelcomeTemplate from './PublisherBackupWelcome.hbs';\r\nimport { Actions, SupportArticles, AppChannels, DataServices } from 'shared/constants';\r\nimport { Config } from 'shared/models/Config';\r\nimport { ConfigDataServiceHelper } from 'shared/services/ConfigDataService';\r\nimport { MigrationVideoDataService } from 'apps/migration-wizard/services/MigrationVideoDataService';\r\nimport { MigrationHelper } from 'apps/migration-wizard/utils/MigrationHelper';\r\nimport { CustomerMetadata } from 'apps/migration-wizard/models';\r\n\r\nexport class PublisherBackupWelcomeView extends Core.View {\r\n private config: Config;\r\n private migrationVideoDataService: MigrationVideoDataService;\r\n private pollingStarted: boolean;\r\n\r\n public initialize(): void {\r\n this.migrationVideoDataService = InstanceManager.getInstance(DataServices.MigrationVideo, this);\r\n }\r\n\r\n public get name(): string {\r\n return 'PublisherBackupWelcomeView';\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.publisherBackupWelcome';\r\n }\r\n\r\n public get className(): string {\r\n return `container text-center p-4 bg-white ${styles.migrationBackupContainer} ${styles.welcome}`;\r\n }\r\n\r\n public get template(): any {\r\n return PublisherBackupWelcomeTemplate;\r\n }\r\n\r\n public get appLinks(): Core.AppLinkHash {\r\n return {\r\n '.applink-lets-start': {\r\n application: AppChannels.MIGRATION_WIZARD,\r\n action: Actions.MigrationWizard.BACKUP_DOWNLOAD,\r\n }\r\n };\r\n }\r\n\r\n private pollCloudSyncStatus(): void {\r\n this.migrationVideoDataService.clearCacheAndGetCustomerMetadata((metadata: CustomerMetadata) => {\r\n if (MigrationHelper.backupProcessing(metadata)) {\r\n Core.AppLinkHelper.trigger({\r\n application: AppChannels.MIGRATION_WIZARD,\r\n action: Actions.MigrationWizard.BACKUP_PROGRESS,\r\n });\r\n return;\r\n }\r\n\r\n if (MigrationHelper.backupComplete(metadata)) {\r\n Core.AppLinkHelper.trigger({\r\n application: AppChannels.MIGRATION_WIZARD,\r\n action: Actions.MigrationWizard.BACKUP_COMPLETE,\r\n });\r\n return;\r\n }\r\n\r\n setTimeout(() => this.pollCloudSyncStatus(), 30000);\r\n });\r\n }\r\n\r\n private getMigrationUrl(): string {\r\n const supportUrl = this.config.get('supportSiteUrl');\r\n return UrlHelper.safeUrlConcat(supportUrl, SupportArticles.PUBLISHER_ARCHIVE);\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 public viewOptions(): ObjectHash {\r\n return {\r\n styles,\r\n migrationUrl: this.getMigrationUrl()\r\n };\r\n }\r\n\r\n public onRender(): void {\r\n this.pollCloudSyncStatus();\r\n }\r\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"welcome\":\"cv--welcome--3MANn\",\"middle\":\"cv--middle--2sLB2\",\"image\":\"cv--image--1--7s\",\"text\":\"cv--text--ivhYc\",\"migrationBackupContainer\":\"cv--migrationBackupContainer--W7da5\"};"],"sourceRoot":""}
@@ -1 +1 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[71],{1283:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return null!=(o=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"check",{name:"lang",hash:{name:null!=t?t.name:t},data:i}))?o:""},useData:!0})},1417:function(e,t,n){"use strict";n.r(t),n.d(t,"DeleteLibraryView",(function(){return k}));var r=n(7),i=n(5),o=n(2),a=n(42),l=n(0),c=n(281),u=n(13),s=n(244),f=n(3),h=n(191),y=n(1283),p=n.n(y);function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w(e);if(t){var i=w(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==b(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(v,e);var t,n,y,b=d(v);function v(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),b.call(this,e)}return t=v,(n=[{key:"initialize",value:function(){this.listenTo(l.e.LIBRARY,"libraries:sync",this.render),this.libraryDataService=i.a.getInstance(l.g.Library,this)}},{key:"onClickDelete",value:function(){r.Radio.channel(this.channelName).trigger(s.b.ShowSpinner),this.libraryDataService.deleteLibrary(this.options.libraryId,(function(){o.a.AppLinkHelper.trigger({application:l.b.LIBRARY_EDITOR,action:l.a.LibraryEditor.HOME})})),this.logAction()}},{key:"logAction",value:function(){var e={id:this.options.libraryId};a.a.logUserAction(e,this.options.analyticsOptions)}},{key:"onBeforeRender",value:function(){var e=this;if(this.libraryDataService.getFolderFromLibraries(this.options.libraryId,(function(t){e.model=t})),!this.model)return!1;var t=null;return this.model.get("hasSubscribers")?t=new h.h:this.model.children.length&&(t=new h.i),t?(window.setTimeout((function(){e.triggerMethod("hide"),o.a.ErrorHelper.throw(t)}),l.s.POPUP_FADE_TIMEOUT),!1):!!this.model}},{key:"name",get:function(){return"DeleteLibraryView"}},{key:"title",get:function(){return!!this.model&&f.a.getPhrase(this.lang,"title",{libraryName:this.model.get("name")})}},{key:"lang",get:function(){return"libraryEditor.deleteLibrary"}},{key:"template",get:function(){return p.a}},{key:"channelName",get:function(){return u.k.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{title:f.a.getPhrase(this.lang,"removeLibrary"),behaviorClass:c.f,spinnerButtonOptions:{channelName:this.channelName,buttonText:f.a.getPhrase(this.lang,"remove"),extraButtonClass:"btn-danger",onClick:function(){return e.onClickDelete()}}}]}}])&&g(t.prototype,n),y&&g(t,y),v}(o.a.View)}}]);
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[71],{1279:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return null!=(o=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"check",{name:"lang",hash:{name:null!=t?t.name:t},data:i}))?o:""},useData:!0})},1413:function(e,t,n){"use strict";n.r(t),n.d(t,"DeleteLibraryView",(function(){return k}));var r=n(7),i=n(5),o=n(2),a=n(42),l=n(0),c=n(281),u=n(13),s=n(244),f=n(3),h=n(191),y=n(1279),p=n.n(y);function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w(e);if(t){var i=w(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==b(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(v,e);var t,n,y,b=d(v);function v(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),b.call(this,e)}return t=v,(n=[{key:"initialize",value:function(){this.listenTo(l.e.LIBRARY,"libraries:sync",this.render),this.libraryDataService=i.a.getInstance(l.g.Library,this)}},{key:"onClickDelete",value:function(){r.Radio.channel(this.channelName).trigger(s.b.ShowSpinner),this.libraryDataService.deleteLibrary(this.options.libraryId,(function(){o.a.AppLinkHelper.trigger({application:l.b.LIBRARY_EDITOR,action:l.a.LibraryEditor.HOME})})),this.logAction()}},{key:"logAction",value:function(){var e={id:this.options.libraryId};a.a.logUserAction(e,this.options.analyticsOptions)}},{key:"onBeforeRender",value:function(){var e=this;if(this.libraryDataService.getFolderFromLibraries(this.options.libraryId,(function(t){e.model=t})),!this.model)return!1;var t=null;return this.model.get("hasSubscribers")?t=new h.h:this.model.children.length&&(t=new h.i),t?(window.setTimeout((function(){e.triggerMethod("hide"),o.a.ErrorHelper.throw(t)}),l.s.POPUP_FADE_TIMEOUT),!1):!!this.model}},{key:"name",get:function(){return"DeleteLibraryView"}},{key:"title",get:function(){return!!this.model&&f.a.getPhrase(this.lang,"title",{libraryName:this.model.get("name")})}},{key:"lang",get:function(){return"libraryEditor.deleteLibrary"}},{key:"template",get:function(){return p.a}},{key:"channelName",get:function(){return u.k.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{title:f.a.getPhrase(this.lang,"removeLibrary"),behaviorClass:c.f,spinnerButtonOptions:{channelName:this.channelName,buttonText:f.a.getPhrase(this.lang,"remove"),extraButtonClass:"btn-danger",onClick:function(){return e.onClickDelete()}}}]}}])&&g(t.prototype,n),y&&g(t,y),v}(o.a.View)}}]);
@@ -1 +1 @@
1
- {"version":3,"sources":["file://C:/ClickView Projects/clickview/packages/projects/library-editor/src/apps/migration-wizard/views/publisher-backup/PublisherBackup.hbs","file://C:/ClickView Projects/clickview/packages/projects/library-editor/src/apps/migration-wizard/views/publisher-backup/PublisherBackupView.ts","webpack://@clickview/library-editor/./src/apps/migration-wizard/views/publisher-backup/publisher-backup.scss?b3ca"],"names":[],"mappings":";;;;;;;;;AAAA,iBAAiB,mBAAO,CAAC,8BAAY;AACrC,iEAAiE;AACjE,4HAA4H;;AAE5H;AACA,oFAAoF,uBAAuB,aAAa;AACxH;AACA,sFAAsF,uBAAuB,aAAa;AAC1H;AACA;AACA;AACA,kFAAkF,uBAAuB,aAAa;AACtH;AACA;AACA;AACA,yFAAyF,uBAAuB,aAAa;AAC7H;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2FAA2F,uBAAuB,aAAa;AAC/H;AACA,yFAAyF,uBAAuB,aAAa;AAC7H;AACA,wLAAwL,8BAA8B,aAAa;AACnO;AACA,qFAAqF,uBAAuB,aAAa;AACzH;AACA;AACA;AACA,yFAAyF,uBAAuB,aAAa;AAC7H;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uFAAuF,uBAAu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B,WAAK,KAAL,GAAa,KAAK,yBAAL,CAA+B,aAA/B,CAA6C,KAAK,MAAL,CAAY,GAAZ,CAAgB,oBAAhB,CAA7C,CAAb;AAEA,aAAO,CAAC,CAAC,KAAK,KAAd;AACD;AA/DH;AAAA;AAAA,kCAiEoB;AAChB,aAAO;AACL,cAAM,EAAN,6DADK;AAEL,kBAAU,EAAE,mFAAS,CAAC,aAAV,CAAwB,KAAK,MAAL,CAAY,GAAZ,CAAgB,gBAAhB,CAAxB,EAA2D,iEAAe,CAAC,gBAA3E,CAFP;AAGL,sBAAc,YAAK,mFAAS,CAAC,aAAV,CAAwB,KAAK,MAAL,CAAY,GAAZ,CAAgB,kBAAhB,CAAxB,EAA6D,kCAA7D,CAAL;AAHT,OAAP;AAKD;AAvEH;AAAA;AAAA,+BAyEiB;AACb,UAAI,KAAK,cAAT,EAAyB;AAEzB,WAAK,mBAAL;AACA,WAAK,cAAL,GAAsB,IAAtB;AACD;AA9EH;AAAA;AAAA,wBAWiB;AACb,aAAO,qBAAP;AACD;AAbH;AAAA;AAAA,wBAekB;AACd,aAAO,kGAAe,CAAC,SAAhB,CAA0B,KAAK,IAA/B,EAAqC,OAArC,CAAP;AACD;AAjBH;AAAA;AAAA,wBAmBiB;AACb,aAAO,iCAAP;AACD;AArBH;AAAA;AAAA,wBAuBsB;AAClB,8CAAiC,6DAAM,CAAC,wBAAxC,cAAoE,6DAAM,CAAC,IAA3E;AACD;AAzBH;AAAA;AAAA,wBA2BqB;AACjB,aAAO,2DAAP;AACD;AA7BH;AAAA;AAAA,wBAqD8B;AAC1B,aAAO;AACL,cAAM,EAAE,0FAAuB,CAAC;AAD3B,OAAP;AAGD;AAzDH;;AAAA;AAAA,EAAyC,8DAAI,CAAC,IAA9C,E;;;;;;;;;;;ACjBA;AACA,kBAAkB,+S","file":"scripts/71.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, helper, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {}), alias3=container.hooks.helperMissing, alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"<div class=\\\"row mb-2\\\">\\r\\n <h4 class=\\\"col-12\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"heading\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</h4>\\r\\n</div>\\r\\n\\r\\n<div class=\\\"row\\\">\\r\\n <div class=\\\"col-12\\\">\\r\\n <p>\\r\\n \"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"toSucceed\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"\\r\\n </p>\\r\\n </div>\\r\\n</div>\\r\\n\\r\\n<div class=\\\"row mt-3 d-block p-3 \"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.question : stack1), depth0))\n + \"\\\">\\r\\n <p class=\\\"text-center text-white\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"check\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</p>\\r\\n\\r\\n <div id=\\\"accordion\\\">\\r\\n <button type=\\\"button\\\" class=\\\"btn bg-white btn-block \"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.button : stack1), depth0))\n + \" mb-2 mt-2\\\" data-toggle=\\\"collapse\\\" data-target=\\\"#collapseYes\\\" aria-expanded=\\\"true\\\" aria-controls=\\\"collapseYes\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"checkConfirm\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</button>\\r\\n <div id=\\\"collapseYes\\\" class=\\\"collapse mb-2 mt-2 pl-3 pr-3 pb-3 pt-1 \"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.collapse : stack1), depth0))\n + \"\\\" aria-labelledby=\\\"collapseYes\\\" data-parent=\\\"#accordion\\\">\\r\\n <hr>\\r\\n <div class=\\\"text-center \"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.collapseContents : stack1), depth0))\n + \"\\\">\\r\\n <p class=\\\"\"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.bolder : stack1), depth0))\n + \"\\\">\\r\\n \"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"downloadAndRun\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"\\r\\n <br>\\r\\n (\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"contactAdmin\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \")\\r\\n </p>\\r\\n <a class=\\\"text-white text-center btn btn-primary\\\" target=\\\"_blank\\\" href=\"\n + alias4(((helper = (helper = helpers.downloadUrl || (depth0 != null ? depth0.downloadUrl : depth0)) != null ? helper : alias3),(typeof helper === \"function\" ? helper.call(alias2,{\"name\":\"downloadUrl\",\"hash\":{},\"data\":data}) : helper)))\n + \">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"download\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</a>\\r\\n </div>\\r\\n </div>\\r\\n\\r\\n <button type=\\\"button\\\" class=\\\"btn bg-white btn-block \"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.button : stack1), depth0))\n + \" mb-2 mt-2\\\" data-toggle=\\\"collapse\\\" data-target=\\\"#collapseNo\\\" aria-expanded=\\\"true\\\" aria-controls=\\\"collapseNo\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"checkDecline\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</button>\\r\\n <div id=\\\"collapseNo\\\" class=\\\"collapse mb-2 mt-2 pl-3 pr-3 pb-3 pt-1 \"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.collapse : stack1), depth0))\n + \"\\\" aria-labelledby=\\\"collapseNo\\\" data-parent=\\\"#accordion\\\">\\r\\n <hr>\\r\\n <div class=\\\"text-center \"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.collapseContents : stack1), depth0))\n + \"\\\">\\r\\n <p class=\\\"\"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.bolder : stack1), depth0))\n + \"\\\">\\r\\n \"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"toComplete\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"<a class=\\\"info-link\\\" target=\\\"_blank\\\" href=\\\"\"\n + alias4(alias5(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.supportUrl : stack1), depth0))\n + \"\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"helpArticle\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</a>.\\r\\n <br>\\r\\n \"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"contactAdmin\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"\\r\\n </p>\\r\\n <p class=\\\"\"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.bolder : stack1), depth0))\n + \"\\\">\\r\\n \"\n + ((stack1 = (helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"bookAppointment\",{\"name\":\"lang\",\"hash\":{\"appointmentUrl\":((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.appointmentUrl : stack1),\"className\":\"info-link\"},\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n </p>\\r\\n </div>\\r\\n </div>\\r\\n </div>\\r\\n\\r\\n</div>\";\n},\"useData\":true});","import { ObjectHash } from 'backbone';\r\n\r\nimport { UrlHelper } from 'libs/common/backbone/utils/UrlHelper';\r\nimport { Core } from 'libs/common/core';\r\nimport { InstanceManager } from 'libs/common/backbone/services/InstanceManager';\r\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\r\n\r\nimport styles from './publisher-backup.scss';\r\nimport PublisherBackupTemplate from './PublisherBackup.hbs';\r\nimport { BackupToolBuild } from 'apps/migration-wizard/models';\r\nimport { CustomerMetadata } from 'apps/migration-wizard/models';\r\nimport { MigrationHelper } from 'apps/migration-wizard/utils/MigrationHelper';\r\nimport { DataServices, DataPrefixes, Actions, DataChannels, AppChannels, SupportArticles } from 'shared/constants';\r\nimport { ConfigDataServiceHelper } from 'shared/services/ConfigDataService';\r\nimport { MigrationVideoDataService } from 'apps/migration-wizard/services/MigrationVideoDataService';\r\nimport { Config } from 'shared/models/Config';\r\n\r\nexport class PublisherBackupView extends Core.View<BackupToolBuild> {\r\n private migrationVideoDataService: MigrationVideoDataService;\r\n private pollingStarted: boolean;\r\n private config: Config;\r\n\r\n public initialize(): void {\r\n this.migrationVideoDataService = InstanceManager.getInstance(DataServices.MigrationVideo, this);\r\n\r\n this.listenTo(DataChannels.MIGRATION, `${DataPrefixes.BACKUP_TOOL}:sync`, this.render);\r\n }\r\n\r\n public get name(): string {\r\n return 'PublisherBackupView';\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.publisherBackup';\r\n }\r\n\r\n public get className(): string {\r\n return `container p-4 bg-white ${styles.migrationBackupContainer} ${styles.info}`;\r\n }\r\n\r\n public get template(): any {\r\n return PublisherBackupTemplate;\r\n }\r\n\r\n private pollCloudSyncStatus(): void {\r\n this.migrationVideoDataService.clearCacheAndGetCustomerMetadata((metadata: CustomerMetadata) => {\r\n if (MigrationHelper.backupProcessing(metadata)) {\r\n Core.AppLinkHelper.trigger({\r\n application: AppChannels.MIGRATION_WIZARD,\r\n action: Actions.MigrationWizard.BACKUP_PROGRESS,\r\n });\r\n return;\r\n }\r\n\r\n if (MigrationHelper.backupComplete(metadata)) {\r\n Core.AppLinkHelper.trigger({\r\n application: AppChannels.MIGRATION_WIZARD,\r\n action: Actions.MigrationWizard.BACKUP_COMPLETE,\r\n });\r\n return;\r\n }\r\n\r\n setTimeout(() => this.pollCloudSyncStatus(), 30000);\r\n });\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 public onBeforeRender(): boolean {\r\n this.model = this.migrationVideoDataService.getBackupTool(this.config.get('pbtDownloadChannel'));\r\n\r\n return !!this.model;\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.PUBLISHER_SERVER),\r\n appointmentUrl: `${UrlHelper.safeUrlConcat(this.config.get('marketingSiteUrl'), '/library-editor/book-appointment')}`\r\n };\r\n }\r\n\r\n public onRender(): void {\r\n if (this.pollingStarted) return;\r\n\r\n this.pollCloudSyncStatus();\r\n this.pollingStarted = true;\r\n }\r\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"backupImage\":\"cv--backupImage--10r2k\",\"info\":\"cv--info--1O7-y\",\"button\":\"cv--button--1cN_3\",\"bolder\":\"cv--bolder--bxulh\",\"question\":\"cv--question--2OYs-\",\"collapse\":\"cv--collapse--1dD-L\",\"collapseContents\":\"cv--collapseContents--2sqEn\",\"migrationBackupContainer\":\"cv--migrationBackupContainer--2Hcov\"};"],"sourceRoot":""}
1
+ {"version":3,"sources":["file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/apps/migration-wizard/views/publisher-backup/PublisherBackup.hbs","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/apps/migration-wizard/views/publisher-backup/PublisherBackupView.ts","webpack://@clickview/library-editor/./src/apps/migration-wizard/views/publisher-backup/publisher-backup.scss?db05"],"names":[],"mappings":";;;;;;;;;AAAA,iBAAiB,mBAAO,CAAC,8BAAY;AACrC,iEAAiE;AACjE,4HAA4H;;AAE5H;AACA,oFAAoF,uBAAuB,aAAa;AACxH;AACA,sFAAsF,uBAAuB,aAAa;AAC1H;AACA;AACA;AACA,kFAAkF,uBAAuB,aAAa;AACtH;AACA;AACA;AACA,yFAAyF,uBAAuB,aAAa;AAC7H;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2FAA2F,uBAAuB,aAAa;AAC/H;AACA,yFAAyF,uBAAuB,aAAa;AAC7H;AACA,wLAAwL,8BAA8B,aAAa;AACnO;AACA,qFAAqF,uBAAuB,aAAa;AACzH;AACA;AACA;AACA,yFAAyF,uBAAuB,aAAa;AAC7H;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uFAAuF,uBAAuB,aAAa;AAC3H;AACA;AACA;AACA,wFAAwF,uBAAuB,aAAa;AAC5H;AACA,yFAAyF,uBAAuB,aAAa;AAC7H;AACA;AACA;AACA,gGAAgG,sBAAsB,0IAA0I,aAAa;AAC7Q;AACA,CAAC,gBAAgB,E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACnDjB;AACA;AACA;AACA;AAEA;AACA;AAGA;AACA;AACA;AAIO,IAAM,mBAAb;AAAA;;AAAA;;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAAA,iCAKmB;AACf,WAAK,yBAAL,GAAiC,kGAAe,CAAC,WAAhB,CAA4B,8DAAY,CAAC,cAAzC,EA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AA6D,kCAA7D,CAAL;AAHT,OAAP;AAKD;AAvEH;AAAA;AAAA,+BAyEiB;AACb,UAAI,KAAK,cAAT,EAAyB;AAEzB,WAAK,mBAAL;AACA,WAAK,cAAL,GAAsB,IAAtB;AACD;AA9EH;AAAA;AAAA,wBAWiB;AACb,aAAO,qBAAP;AACD;AAbH;AAAA;AAAA,wBAekB;AACd,aAAO,kGAAe,CAAC,SAAhB,CAA0B,KAAK,IAA/B,EAAqC,OAArC,CAAP;AACD;AAjBH;AAAA;AAAA,wBAmBiB;AACb,aAAO,iCAAP;AACD;AArBH;AAAA;AAAA,wBAuBsB;AAClB,8CAAiC,6DAAM,CAAC,wBAAxC,cAAoE,6DAAM,CAAC,IAA3E;AACD;AAzBH;AAAA;AAAA,wBA2BqB;AACjB,aAAO,2DAAP;AACD;AA7BH;AAAA;AAAA,wBAqD8B;AAC1B,aAAO;AACL,cAAM,EAAE,0FAAuB,CAAC;AAD3B,OAAP;AAGD;AAzDH;;AAAA;AAAA,EAAyC,8DAAI,CAAC,IAA9C,E;;;;;;;;;;;ACjBA;AACA,kBAAkB,+S","file":"scripts/71.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, helper, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {}), alias3=container.hooks.helperMissing, alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"<div class=\\\"row mb-2\\\">\\r\\n <h4 class=\\\"col-12\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"heading\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</h4>\\r\\n</div>\\r\\n\\r\\n<div class=\\\"row\\\">\\r\\n <div class=\\\"col-12\\\">\\r\\n <p>\\r\\n \"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"toSucceed\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"\\r\\n </p>\\r\\n </div>\\r\\n</div>\\r\\n\\r\\n<div class=\\\"row mt-3 d-block p-3 \"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.question : stack1), depth0))\n + \"\\\">\\r\\n <p class=\\\"text-center text-white\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"check\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</p>\\r\\n\\r\\n <div id=\\\"accordion\\\">\\r\\n <button type=\\\"button\\\" class=\\\"btn bg-white btn-block \"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.button : stack1), depth0))\n + \" mb-2 mt-2\\\" data-toggle=\\\"collapse\\\" data-target=\\\"#collapseYes\\\" aria-expanded=\\\"true\\\" aria-controls=\\\"collapseYes\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"checkConfirm\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</button>\\r\\n <div id=\\\"collapseYes\\\" class=\\\"collapse mb-2 mt-2 pl-3 pr-3 pb-3 pt-1 \"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.collapse : stack1), depth0))\n + \"\\\" aria-labelledby=\\\"collapseYes\\\" data-parent=\\\"#accordion\\\">\\r\\n <hr>\\r\\n <div class=\\\"text-center \"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.collapseContents : stack1), depth0))\n + \"\\\">\\r\\n <p class=\\\"\"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.bolder : stack1), depth0))\n + \"\\\">\\r\\n \"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"downloadAndRun\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"\\r\\n <br>\\r\\n (\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"contactAdmin\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \")\\r\\n </p>\\r\\n <a class=\\\"text-white text-center btn btn-primary\\\" target=\\\"_blank\\\" href=\"\n + alias4(((helper = (helper = helpers.downloadUrl || (depth0 != null ? depth0.downloadUrl : depth0)) != null ? helper : alias3),(typeof helper === \"function\" ? helper.call(alias2,{\"name\":\"downloadUrl\",\"hash\":{},\"data\":data}) : helper)))\n + \">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"download\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</a>\\r\\n </div>\\r\\n </div>\\r\\n\\r\\n <button type=\\\"button\\\" class=\\\"btn bg-white btn-block \"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.button : stack1), depth0))\n + \" mb-2 mt-2\\\" data-toggle=\\\"collapse\\\" data-target=\\\"#collapseNo\\\" aria-expanded=\\\"true\\\" aria-controls=\\\"collapseNo\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"checkDecline\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</button>\\r\\n <div id=\\\"collapseNo\\\" class=\\\"collapse mb-2 mt-2 pl-3 pr-3 pb-3 pt-1 \"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.collapse : stack1), depth0))\n + \"\\\" aria-labelledby=\\\"collapseNo\\\" data-parent=\\\"#accordion\\\">\\r\\n <hr>\\r\\n <div class=\\\"text-center \"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.collapseContents : stack1), depth0))\n + \"\\\">\\r\\n <p class=\\\"\"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.bolder : stack1), depth0))\n + \"\\\">\\r\\n \"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"toComplete\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"<a class=\\\"info-link\\\" target=\\\"_blank\\\" href=\\\"\"\n + alias4(alias5(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.supportUrl : stack1), depth0))\n + \"\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"helpArticle\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</a>.\\r\\n <br>\\r\\n \"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"contactAdmin\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"\\r\\n </p>\\r\\n <p class=\\\"\"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.bolder : stack1), depth0))\n + \"\\\">\\r\\n \"\n + ((stack1 = (helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"bookAppointment\",{\"name\":\"lang\",\"hash\":{\"appointmentUrl\":((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.appointmentUrl : stack1),\"className\":\"info-link\"},\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n </p>\\r\\n </div>\\r\\n </div>\\r\\n </div>\\r\\n\\r\\n</div>\";\n},\"useData\":true});","import { ObjectHash } from 'backbone';\r\n\r\nimport { UrlHelper } from 'libs/common/backbone/utils/UrlHelper';\r\nimport { Core } from 'libs/common/core';\r\nimport { InstanceManager } from 'libs/common/backbone/services/InstanceManager';\r\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\r\n\r\nimport styles from './publisher-backup.scss';\r\nimport PublisherBackupTemplate from './PublisherBackup.hbs';\r\nimport { BackupToolBuild } from 'apps/migration-wizard/models';\r\nimport { CustomerMetadata } from 'apps/migration-wizard/models';\r\nimport { MigrationHelper } from 'apps/migration-wizard/utils/MigrationHelper';\r\nimport { DataServices, DataPrefixes, Actions, DataChannels, AppChannels, SupportArticles } from 'shared/constants';\r\nimport { ConfigDataServiceHelper } from 'shared/services/ConfigDataService';\r\nimport { MigrationVideoDataService } from 'apps/migration-wizard/services/MigrationVideoDataService';\r\nimport { Config } from 'shared/models/Config';\r\n\r\nexport class PublisherBackupView extends Core.View<BackupToolBuild> {\r\n private migrationVideoDataService: MigrationVideoDataService;\r\n private pollingStarted: boolean;\r\n private config: Config;\r\n\r\n public initialize(): void {\r\n this.migrationVideoDataService = InstanceManager.getInstance(DataServices.MigrationVideo, this);\r\n\r\n this.listenTo(DataChannels.MIGRATION, `${DataPrefixes.BACKUP_TOOL}:sync`, this.render);\r\n }\r\n\r\n public get name(): string {\r\n return 'PublisherBackupView';\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.publisherBackup';\r\n }\r\n\r\n public get className(): string {\r\n return `container p-4 bg-white ${styles.migrationBackupContainer} ${styles.info}`;\r\n }\r\n\r\n public get template(): any {\r\n return PublisherBackupTemplate;\r\n }\r\n\r\n private pollCloudSyncStatus(): void {\r\n this.migrationVideoDataService.clearCacheAndGetCustomerMetadata((metadata: CustomerMetadata) => {\r\n if (MigrationHelper.backupProcessing(metadata)) {\r\n Core.AppLinkHelper.trigger({\r\n application: AppChannels.MIGRATION_WIZARD,\r\n action: Actions.MigrationWizard.BACKUP_PROGRESS,\r\n });\r\n return;\r\n }\r\n\r\n if (MigrationHelper.backupComplete(metadata)) {\r\n Core.AppLinkHelper.trigger({\r\n application: AppChannels.MIGRATION_WIZARD,\r\n action: Actions.MigrationWizard.BACKUP_COMPLETE,\r\n });\r\n return;\r\n }\r\n\r\n setTimeout(() => this.pollCloudSyncStatus(), 30000);\r\n });\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 public onBeforeRender(): boolean {\r\n this.model = this.migrationVideoDataService.getBackupTool(this.config.get('pbtDownloadChannel'));\r\n\r\n return !!this.model;\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.PUBLISHER_SERVER),\r\n appointmentUrl: `${UrlHelper.safeUrlConcat(this.config.get('marketingSiteUrl'), '/library-editor/book-appointment')}`\r\n };\r\n }\r\n\r\n public onRender(): void {\r\n if (this.pollingStarted) return;\r\n\r\n this.pollCloudSyncStatus();\r\n this.pollingStarted = true;\r\n }\r\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"backupImage\":\"cv--backupImage--10r2k\",\"info\":\"cv--info--1O7-y\",\"button\":\"cv--button--1cN_3\",\"bolder\":\"cv--bolder--bxulh\",\"question\":\"cv--question--2OYs-\",\"collapse\":\"cv--collapse--1dD-L\",\"collapseContents\":\"cv--collapseContents--2sqEn\",\"migrationBackupContainer\":\"cv--migrationBackupContainer--2Hcov\"};"],"sourceRoot":""}
@@ -1 +1 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[72],{1195:function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){return'<div class="no-library-region"></div>'},useData:!0})},1406:function(t,e,n){"use strict";n.r(e),n.d(e,"NoLibraryView",(function(){return v}));var r=n(2),o=n(3),i=n(15),u=n(283),c=n(6),a=n(0),f=n(1195),l=n.n(f);function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function b(t,e){return(b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=m(t);if(e){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==p(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}(p,t);var e,n,r,f=g(p);function p(){return s(this,p),f.apply(this,arguments)}return e=p,(n=[{key:"regions",value:function(){return{emptyState:{el:".no-library-region",replaceElement:!0}}}},{key:"name",get:function(){return"NoLibraryView"}},{key:"title",get:function(){return o.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.noLibrary"}},{key:"template",get:function(){return l.a}},{key:"behaviors",get:function(){return[{behaviorClass:u.a,region:"emptyState",type:c.c.LibraryEditor,shouldRender:function(){return!0},componentOptions:{plusSvg:i.a.getSvg(i.b.Plus),heading:o.a.getPhrase(this.lang,"emptyStateHeading"),btnText:o.a.getPhrase(this.lang,"emptyStateDescription")},emptyStateComponents:a.h}]}}])&&y(e.prototype,n),r&&y(e,r),p}(r.a.View)}}]);
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[72],{1191:function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){return'<div class="no-library-region"></div>'},useData:!0})},1402:function(t,e,n){"use strict";n.r(e),n.d(e,"NoLibraryView",(function(){return v}));var r=n(2),o=n(3),i=n(15),u=n(283),c=n(6),a=n(0),f=n(1191),l=n.n(f);function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function b(t,e){return(b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=m(t);if(e){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==p(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}(p,t);var e,n,r,f=g(p);function p(){return s(this,p),f.apply(this,arguments)}return e=p,(n=[{key:"regions",value:function(){return{emptyState:{el:".no-library-region",replaceElement:!0}}}},{key:"name",get:function(){return"NoLibraryView"}},{key:"title",get:function(){return o.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.noLibrary"}},{key:"template",get:function(){return l.a}},{key:"behaviors",get:function(){return[{behaviorClass:u.a,region:"emptyState",type:c.c.LibraryEditor,shouldRender:function(){return!0},componentOptions:{plusSvg:i.a.getSvg(i.b.Plus),heading:o.a.getPhrase(this.lang,"emptyStateHeading"),btnText:o.a.getPhrase(this.lang,"emptyStateDescription")},emptyStateComponents:a.h}]}}])&&y(e.prototype,n),r&&y(e,r),p}(r.a.View)}}]);
@@ -1 +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?9124"],"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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BADV;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
+ {"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,uBAAuB,aAAa;AACrH;AACA;AACA;AACA,2IAA2I,qBAAqB,yEAAyE;AACzO;AACA,sFAAsF,sBAAsB,wGAAwG,aAAa;AACjO;AACA,CAAC,gBAAgB,E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACpCjB;AAEA;AACA;AAEA;AACA;AACA;AACA;AAEA;AAEA;AACA;AAEA;AACA;AACA;AAGA;AACA;;IAEM,gC;;;;;;;;;;;;;wBACW;AACb,aAA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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":""}