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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (350) hide show
  1. package/dist/scripts/{bundle-59190acd1d.min.js → bundle-f689e204ce.min.js} +1 -1
  2. package/dist/scripts/bundles.json +1 -1
  3. package/package.json +1 -1
  4. package/dist/css/1.chunk.css.map +0 -1
  5. package/dist/css/10.chunk.css.map +0 -1
  6. package/dist/css/11.chunk.css +0 -137
  7. package/dist/css/11.chunk.css.map +0 -1
  8. package/dist/css/12.chunk.css.map +0 -1
  9. package/dist/css/13.chunk.css.map +0 -1
  10. package/dist/css/14.chunk.css.map +0 -1
  11. package/dist/css/16.chunk.css.map +0 -1
  12. package/dist/css/17.chunk.css.map +0 -1
  13. package/dist/css/18.chunk.css +0 -20
  14. package/dist/css/18.chunk.css.map +0 -1
  15. package/dist/css/2.chunk.css +0 -145
  16. package/dist/css/2.chunk.css.map +0 -1
  17. package/dist/css/21.chunk.css.map +0 -1
  18. package/dist/css/22.chunk.css.map +0 -1
  19. package/dist/css/23.chunk.css.map +0 -1
  20. package/dist/css/25.chunk.css.map +0 -1
  21. package/dist/css/26.chunk.css.map +0 -1
  22. package/dist/css/28.chunk.css.map +0 -1
  23. package/dist/css/29.chunk.css.map +0 -1
  24. package/dist/css/3.chunk.css.map +0 -1
  25. package/dist/css/30.chunk.css.map +0 -1
  26. package/dist/css/31.chunk.css.map +0 -1
  27. package/dist/css/32.chunk.css.map +0 -1
  28. package/dist/css/33.chunk.css +0 -4
  29. package/dist/css/33.chunk.css.map +0 -1
  30. package/dist/css/34.chunk.css +0 -21
  31. package/dist/css/34.chunk.css.map +0 -1
  32. package/dist/css/35.chunk.css +0 -20
  33. package/dist/css/35.chunk.css.map +0 -1
  34. package/dist/css/36.chunk.css.map +0 -1
  35. package/dist/css/37.chunk.css.map +0 -1
  36. package/dist/css/38.chunk.css.map +0 -1
  37. package/dist/css/40.chunk.css.map +0 -1
  38. package/dist/css/41.chunk.css.map +0 -1
  39. package/dist/css/42.chunk.css.map +0 -1
  40. package/dist/css/43.chunk.css.map +0 -1
  41. package/dist/css/44.chunk.css.map +0 -1
  42. package/dist/css/45.chunk.css.map +0 -1
  43. package/dist/css/46.chunk.css.map +0 -1
  44. package/dist/css/47.chunk.css.map +0 -1
  45. package/dist/css/48.chunk.css +0 -2
  46. package/dist/css/48.chunk.css.map +0 -1
  47. package/dist/css/49.chunk.css.map +0 -1
  48. package/dist/css/50.chunk.css.map +0 -1
  49. package/dist/css/51.chunk.css +0 -2
  50. package/dist/css/51.chunk.css.map +0 -1
  51. package/dist/css/52.chunk.css +0 -66
  52. package/dist/css/52.chunk.css.map +0 -1
  53. package/dist/css/55.chunk.css.map +0 -1
  54. package/dist/css/56.chunk.css.map +0 -1
  55. package/dist/css/58.chunk.css.map +0 -1
  56. package/dist/css/59.chunk.css +0 -2
  57. package/dist/css/59.chunk.css.map +0 -1
  58. package/dist/css/6.chunk.css.map +0 -1
  59. package/dist/css/60.chunk.css.map +0 -1
  60. package/dist/css/62.chunk.css +0 -2
  61. package/dist/css/62.chunk.css.map +0 -1
  62. package/dist/css/63.chunk.css +0 -170
  63. package/dist/css/63.chunk.css.map +0 -1
  64. package/dist/css/67.chunk.css +0 -78
  65. package/dist/css/67.chunk.css.map +0 -1
  66. package/dist/css/68.chunk.css +0 -17
  67. package/dist/css/68.chunk.css.map +0 -1
  68. package/dist/css/69.chunk.css +0 -17
  69. package/dist/css/69.chunk.css.map +0 -1
  70. package/dist/css/7.chunk.css.map +0 -1
  71. package/dist/css/70.chunk.css +0 -23
  72. package/dist/css/70.chunk.css.map +0 -1
  73. package/dist/css/71.chunk.css +0 -40
  74. package/dist/css/71.chunk.css.map +0 -1
  75. package/dist/css/72.chunk.css +0 -16
  76. package/dist/css/72.chunk.css.map +0 -1
  77. package/dist/css/73.chunk.css +0 -37
  78. package/dist/css/73.chunk.css.map +0 -1
  79. package/dist/css/74.chunk.css +0 -29
  80. package/dist/css/74.chunk.css.map +0 -1
  81. package/dist/css/75.chunk.css +0 -6
  82. package/dist/css/75.chunk.css.map +0 -1
  83. package/dist/css/76.chunk.css +0 -6
  84. package/dist/css/76.chunk.css.map +0 -1
  85. package/dist/css/8.chunk.css.map +0 -1
  86. package/dist/css/library-editor-app.css.map +0 -1
  87. package/dist/projects/library-editor/src/polyfills.d.ts +0 -2
  88. package/dist/scripts/0-ca679202dc.chunk.js +0 -1
  89. package/dist/scripts/0.chunk.js +0 -1034
  90. package/dist/scripts/0.chunk.js.map +0 -1
  91. package/dist/scripts/1-e99f6a4b40.chunk.js +0 -1
  92. package/dist/scripts/1.chunk.js +0 -442
  93. package/dist/scripts/1.chunk.js.map +0 -1
  94. package/dist/scripts/10-db266215e5.chunk.js +0 -1
  95. package/dist/scripts/10.chunk.js +0 -820
  96. package/dist/scripts/10.chunk.js.map +0 -1
  97. package/dist/scripts/11-51ab13cf04.chunk.js +0 -11
  98. package/dist/scripts/11.chunk.js +0 -4091
  99. package/dist/scripts/11.chunk.js.map +0 -1
  100. package/dist/scripts/12-a8ad430f3a.chunk.js +0 -1
  101. package/dist/scripts/12.chunk.js +0 -555
  102. package/dist/scripts/12.chunk.js.map +0 -1
  103. package/dist/scripts/13-107ba2526f.chunk.js +0 -1
  104. package/dist/scripts/13.chunk.js +0 -373
  105. package/dist/scripts/13.chunk.js.map +0 -1
  106. package/dist/scripts/14-d19ac2872e.chunk.js +0 -1
  107. package/dist/scripts/14.chunk.js +0 -2386
  108. package/dist/scripts/14.chunk.js.map +0 -1
  109. package/dist/scripts/15-979015a718.chunk.js +0 -1
  110. package/dist/scripts/15.chunk.js +0 -314
  111. package/dist/scripts/15.chunk.js.map +0 -1
  112. package/dist/scripts/16-2a8bfb08cb.chunk.js +0 -1
  113. package/dist/scripts/16.chunk.js +0 -1290
  114. package/dist/scripts/16.chunk.js.map +0 -1
  115. package/dist/scripts/17-b7d5d41f7e.chunk.js +0 -1
  116. package/dist/scripts/17.chunk.js +0 -381
  117. package/dist/scripts/17.chunk.js.map +0 -1
  118. package/dist/scripts/18.chunk.js +0 -393
  119. package/dist/scripts/18.chunk.js.map +0 -1
  120. package/dist/scripts/19.chunk.js +0 -364
  121. package/dist/scripts/19.chunk.js.map +0 -1
  122. package/dist/scripts/2-4e0702e404.chunk.js +0 -1
  123. package/dist/scripts/2.chunk.js +0 -519
  124. package/dist/scripts/2.chunk.js.map +0 -1
  125. package/dist/scripts/20-3c3507043d.chunk.js +0 -1
  126. package/dist/scripts/20.chunk.js +0 -317
  127. package/dist/scripts/20.chunk.js.map +0 -1
  128. package/dist/scripts/21-e1b652cbbd.chunk.js +0 -1
  129. package/dist/scripts/21.chunk.js +0 -531
  130. package/dist/scripts/21.chunk.js.map +0 -1
  131. package/dist/scripts/22-6ff4c8acc9.chunk.js +0 -1
  132. package/dist/scripts/22.chunk.js +0 -354
  133. package/dist/scripts/22.chunk.js.map +0 -1
  134. package/dist/scripts/23-84f6d42051.chunk.js +0 -1
  135. package/dist/scripts/23.chunk.js +0 -604
  136. package/dist/scripts/23.chunk.js.map +0 -1
  137. package/dist/scripts/24-71d0e5af84.chunk.js +0 -1
  138. package/dist/scripts/24.chunk.js +0 -318
  139. package/dist/scripts/24.chunk.js.map +0 -1
  140. package/dist/scripts/25-63e55b94d1.chunk.js +0 -1
  141. package/dist/scripts/25.chunk.js +0 -365
  142. package/dist/scripts/25.chunk.js.map +0 -1
  143. package/dist/scripts/26-03148e2beb.chunk.js +0 -1
  144. package/dist/scripts/26.chunk.js +0 -442
  145. package/dist/scripts/26.chunk.js.map +0 -1
  146. package/dist/scripts/27-4c1566e168.chunk.js +0 -1
  147. package/dist/scripts/27.chunk.js +0 -3565
  148. package/dist/scripts/27.chunk.js.map +0 -1
  149. package/dist/scripts/28-8b6147f186.chunk.js +0 -1
  150. package/dist/scripts/28.chunk.js +0 -3173
  151. package/dist/scripts/28.chunk.js.map +0 -1
  152. package/dist/scripts/29-ab744bc76f.chunk.js +0 -1
  153. package/dist/scripts/29.chunk.js +0 -3088
  154. package/dist/scripts/29.chunk.js.map +0 -1
  155. package/dist/scripts/3-948dad23b7.chunk.js +0 -1
  156. package/dist/scripts/3.chunk.js +0 -833
  157. package/dist/scripts/3.chunk.js.map +0 -1
  158. package/dist/scripts/30-ca11897c8c.chunk.js +0 -1
  159. package/dist/scripts/30.chunk.js +0 -1852
  160. package/dist/scripts/30.chunk.js.map +0 -1
  161. package/dist/scripts/31-c52013832c.chunk.js +0 -1
  162. package/dist/scripts/31.chunk.js +0 -958
  163. package/dist/scripts/31.chunk.js.map +0 -1
  164. package/dist/scripts/32-800ff7a3d2.chunk.js +0 -1
  165. package/dist/scripts/32.chunk.js +0 -1235
  166. package/dist/scripts/32.chunk.js.map +0 -1
  167. package/dist/scripts/33-a78c3eebd5.chunk.js +0 -1
  168. package/dist/scripts/33.chunk.js +0 -792
  169. package/dist/scripts/33.chunk.js.map +0 -1
  170. package/dist/scripts/34-3c4c65d69b.chunk.js +0 -1
  171. package/dist/scripts/34.chunk.js +0 -990
  172. package/dist/scripts/34.chunk.js.map +0 -1
  173. package/dist/scripts/35-8f001c740f.chunk.js +0 -1
  174. package/dist/scripts/35.chunk.js +0 -518
  175. package/dist/scripts/35.chunk.js.map +0 -1
  176. package/dist/scripts/36-3aeb2db7b1.chunk.js +0 -1
  177. package/dist/scripts/36.chunk.js +0 -335
  178. package/dist/scripts/36.chunk.js.map +0 -1
  179. package/dist/scripts/37-f837b37da6.chunk.js +0 -1
  180. package/dist/scripts/37.chunk.js +0 -236
  181. package/dist/scripts/37.chunk.js.map +0 -1
  182. package/dist/scripts/38-96a70abc7e.chunk.js +0 -1
  183. package/dist/scripts/38.chunk.js +0 -315
  184. package/dist/scripts/38.chunk.js.map +0 -1
  185. package/dist/scripts/39-2c91ed5792.chunk.js +0 -1
  186. package/dist/scripts/39.chunk.js +0 -116
  187. package/dist/scripts/39.chunk.js.map +0 -1
  188. package/dist/scripts/4-47a1458dff.chunk.js +0 -1
  189. package/dist/scripts/4.chunk.js +0 -335
  190. package/dist/scripts/4.chunk.js.map +0 -1
  191. package/dist/scripts/40-f3651a4572.chunk.js +0 -1
  192. package/dist/scripts/40.chunk.js +0 -1782
  193. package/dist/scripts/40.chunk.js.map +0 -1
  194. package/dist/scripts/41-908d353ede.chunk.js +0 -1
  195. package/dist/scripts/41.chunk.js +0 -2347
  196. package/dist/scripts/41.chunk.js.map +0 -1
  197. package/dist/scripts/42-7de5d85207.chunk.js +0 -1
  198. package/dist/scripts/42.chunk.js +0 -2116
  199. package/dist/scripts/42.chunk.js.map +0 -1
  200. package/dist/scripts/43-f1361f956d.chunk.js +0 -1
  201. package/dist/scripts/43.chunk.js +0 -2243
  202. package/dist/scripts/43.chunk.js.map +0 -1
  203. package/dist/scripts/44-50769e406b.chunk.js +0 -1
  204. package/dist/scripts/44.chunk.js +0 -1024
  205. package/dist/scripts/44.chunk.js.map +0 -1
  206. package/dist/scripts/45-9a434a5bd6.chunk.js +0 -1
  207. package/dist/scripts/45.chunk.js +0 -1065
  208. package/dist/scripts/45.chunk.js.map +0 -1
  209. package/dist/scripts/46-a9ca193eb7.chunk.js +0 -1
  210. package/dist/scripts/46.chunk.js +0 -656
  211. package/dist/scripts/46.chunk.js.map +0 -1
  212. package/dist/scripts/47-a919e008e6.chunk.js +0 -1
  213. package/dist/scripts/47.chunk.js +0 -735
  214. package/dist/scripts/47.chunk.js.map +0 -1
  215. package/dist/scripts/48-8b8ad444c6.chunk.js +0 -1
  216. package/dist/scripts/48.chunk.js +0 -994
  217. package/dist/scripts/48.chunk.js.map +0 -1
  218. package/dist/scripts/49-1060332c94.chunk.js +0 -1
  219. package/dist/scripts/49.chunk.js +0 -759
  220. package/dist/scripts/49.chunk.js.map +0 -1
  221. package/dist/scripts/5-cbac37484e.chunk.js +0 -1
  222. package/dist/scripts/5.chunk.js +0 -15
  223. package/dist/scripts/5.chunk.js.map +0 -1
  224. package/dist/scripts/50-421fc85bef.chunk.js +0 -1
  225. package/dist/scripts/50.chunk.js +0 -528
  226. package/dist/scripts/50.chunk.js.map +0 -1
  227. package/dist/scripts/51-7677f7ff70.chunk.js +0 -1
  228. package/dist/scripts/51.chunk.js +0 -932
  229. package/dist/scripts/51.chunk.js.map +0 -1
  230. package/dist/scripts/52-d4c61c1996.chunk.js +0 -1
  231. package/dist/scripts/52.chunk.js +0 -408
  232. package/dist/scripts/52.chunk.js.map +0 -1
  233. package/dist/scripts/53-8ae575251b.chunk.js +0 -1
  234. package/dist/scripts/53.chunk.js +0 -754
  235. package/dist/scripts/53.chunk.js.map +0 -1
  236. package/dist/scripts/54-6068a4d6c5.chunk.js +0 -1
  237. package/dist/scripts/54.chunk.js +0 -681
  238. package/dist/scripts/54.chunk.js.map +0 -1
  239. package/dist/scripts/55-989847d37e.chunk.js +0 -1
  240. package/dist/scripts/55.chunk.js +0 -645
  241. package/dist/scripts/55.chunk.js.map +0 -1
  242. package/dist/scripts/56-1215f5b596.chunk.js +0 -1
  243. package/dist/scripts/56.chunk.js +0 -346
  244. package/dist/scripts/56.chunk.js.map +0 -1
  245. package/dist/scripts/57-862310acde.chunk.js +0 -1
  246. package/dist/scripts/57.chunk.js +0 -422
  247. package/dist/scripts/57.chunk.js.map +0 -1
  248. package/dist/scripts/58-15786678f5.chunk.js +0 -1
  249. package/dist/scripts/58.chunk.js +0 -437
  250. package/dist/scripts/58.chunk.js.map +0 -1
  251. package/dist/scripts/59-0eaa35b612.chunk.js +0 -1
  252. package/dist/scripts/59.chunk.js +0 -342
  253. package/dist/scripts/59.chunk.js.map +0 -1
  254. package/dist/scripts/6-c9648df42d.chunk.js +0 -1
  255. package/dist/scripts/6.chunk.js +0 -484
  256. package/dist/scripts/6.chunk.js.map +0 -1
  257. package/dist/scripts/60-fd82862934.chunk.js +0 -1
  258. package/dist/scripts/60.chunk.js +0 -254
  259. package/dist/scripts/60.chunk.js.map +0 -1
  260. package/dist/scripts/61-51fca2bf0e.chunk.js +0 -1
  261. package/dist/scripts/61.chunk.js +0 -409
  262. package/dist/scripts/61.chunk.js.map +0 -1
  263. package/dist/scripts/62-2a372f4810.chunk.js +0 -1
  264. package/dist/scripts/62.chunk.js +0 -142
  265. package/dist/scripts/62.chunk.js.map +0 -1
  266. package/dist/scripts/63-3efa945b24.chunk.js +0 -1
  267. package/dist/scripts/63.chunk.js +0 -147
  268. package/dist/scripts/63.chunk.js.map +0 -1
  269. package/dist/scripts/64-eafdec6ee2.chunk.js +0 -1
  270. package/dist/scripts/64.chunk.js +0 -439
  271. package/dist/scripts/64.chunk.js.map +0 -1
  272. package/dist/scripts/65-7de035024e.chunk.js +0 -1
  273. package/dist/scripts/65.chunk.js +0 -582
  274. package/dist/scripts/65.chunk.js.map +0 -1
  275. package/dist/scripts/66-b42ac9bb08.chunk.js +0 -1
  276. package/dist/scripts/66.chunk.js +0 -442
  277. package/dist/scripts/66.chunk.js.map +0 -1
  278. package/dist/scripts/67-07f4863ec4.chunk.js +0 -1
  279. package/dist/scripts/67.chunk.js +0 -295
  280. package/dist/scripts/67.chunk.js.map +0 -1
  281. package/dist/scripts/68-6c49662638.chunk.js +0 -1
  282. package/dist/scripts/68.chunk.js +0 -165
  283. package/dist/scripts/68.chunk.js.map +0 -1
  284. package/dist/scripts/69-30f7b9bd2b.chunk.js +0 -1
  285. package/dist/scripts/69.chunk.js +0 -248
  286. package/dist/scripts/69.chunk.js.map +0 -1
  287. package/dist/scripts/7-06de2dc87e.chunk.js +0 -1
  288. package/dist/scripts/7.chunk.js +0 -309
  289. package/dist/scripts/7.chunk.js.map +0 -1
  290. package/dist/scripts/70-9a7afc7f7c.chunk.js +0 -1
  291. package/dist/scripts/70.chunk.js +0 -207
  292. package/dist/scripts/70.chunk.js.map +0 -1
  293. package/dist/scripts/71-8b092d42ed.chunk.js +0 -1
  294. package/dist/scripts/71.chunk.js +0 -237
  295. package/dist/scripts/71.chunk.js.map +0 -1
  296. package/dist/scripts/72-f1b9669186.chunk.js +0 -1
  297. package/dist/scripts/72.chunk.js +0 -331
  298. package/dist/scripts/72.chunk.js.map +0 -1
  299. package/dist/scripts/73.chunk.js +0 -404
  300. package/dist/scripts/73.chunk.js.map +0 -1
  301. package/dist/scripts/74.chunk.js +0 -301
  302. package/dist/scripts/74.chunk.js.map +0 -1
  303. package/dist/scripts/75.chunk.js +0 -231
  304. package/dist/scripts/75.chunk.js.map +0 -1
  305. package/dist/scripts/76.chunk.js +0 -157
  306. package/dist/scripts/76.chunk.js.map +0 -1
  307. package/dist/scripts/77.chunk.js +0 -307
  308. package/dist/scripts/77.chunk.js.map +0 -1
  309. package/dist/scripts/78.chunk.js +0 -249
  310. package/dist/scripts/78.chunk.js.map +0 -1
  311. package/dist/scripts/79.chunk.js +0 -282
  312. package/dist/scripts/79.chunk.js.map +0 -1
  313. package/dist/scripts/8-7a1c9219fe.chunk.js +0 -1
  314. package/dist/scripts/8.chunk.js +0 -307
  315. package/dist/scripts/8.chunk.js.map +0 -1
  316. package/dist/scripts/80.chunk.js +0 -308
  317. package/dist/scripts/80.chunk.js.map +0 -1
  318. package/dist/scripts/81.chunk.js +0 -366
  319. package/dist/scripts/81.chunk.js.map +0 -1
  320. package/dist/scripts/82.chunk.js +0 -314
  321. package/dist/scripts/82.chunk.js.map +0 -1
  322. package/dist/scripts/83.chunk.js +0 -328
  323. package/dist/scripts/83.chunk.js.map +0 -1
  324. package/dist/scripts/84.chunk.js +0 -313
  325. package/dist/scripts/84.chunk.js.map +0 -1
  326. package/dist/scripts/85.chunk.js +0 -291
  327. package/dist/scripts/85.chunk.js.map +0 -1
  328. package/dist/scripts/86.chunk.js +0 -119
  329. package/dist/scripts/86.chunk.js.map +0 -1
  330. package/dist/scripts/87.chunk.js +0 -219
  331. package/dist/scripts/87.chunk.js.map +0 -1
  332. package/dist/scripts/88.chunk.js +0 -194
  333. package/dist/scripts/88.chunk.js.map +0 -1
  334. package/dist/scripts/89.chunk.js +0 -522
  335. package/dist/scripts/89.chunk.js.map +0 -1
  336. package/dist/scripts/9-5bc6861938.chunk.js +0 -1
  337. package/dist/scripts/9.chunk.js +0 -222
  338. package/dist/scripts/9.chunk.js.map +0 -1
  339. package/dist/scripts/90.chunk.js +0 -337
  340. package/dist/scripts/90.chunk.js.map +0 -1
  341. package/dist/scripts/91.chunk.js +0 -131
  342. package/dist/scripts/91.chunk.js.map +0 -1
  343. package/dist/scripts/92.chunk.js +0 -266
  344. package/dist/scripts/92.chunk.js.map +0 -1
  345. package/dist/scripts/bundle-d83d171bc0.min.js +0 -1
  346. package/dist/scripts/bundle.js +0 -60670
  347. package/dist/scripts/bundle.js.map +0 -1
  348. package/dist/scripts/polyfills-cf8a15183c.min.js +0 -1
  349. package/dist/scripts/polyfills.js +0 -14844
  350. package/dist/scripts/polyfills.js.map +0 -1
@@ -1,366 +0,0 @@
1
- (window["webpackJsonp_clickview_library_editor"] = window["webpackJsonp_clickview_library_editor"] || []).push([[81],{
2
-
3
- /***/ "./src/apps/library-editor/views/edit-resource/EditResource.hbs":
4
- /*!**********************************************************************!*\
5
- !*** ./src/apps/library-editor/views/edit-resource/EditResource.hbs ***!
6
- \**********************************************************************/
7
- /*! no static exports found */
8
- /***/ (function(module, exports, __webpack_require__) {
9
-
10
- var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
11
- module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
12
- var stack1, alias1=container.propertyIsEnumerable;
13
-
14
- return ((stack1 = container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.spinnerEl : stack1), depth0)) != null ? stack1 : "")
15
- + "\r\n";
16
- },"3":function(container,depth0,helpers,partials,data) {
17
- var alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {}), alias3=container.hooks.helperMissing, alias4=container.escapeExpression;
18
-
19
- return "<form>\r\n <div class=\"form-group\">\r\n <label for=\"name\" class=\"control-label\">"
20
- + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"fileName",{"name":"lang","hash":{},"data":data}))
21
- + "</label>\r\n <input name=\"name\" id=\"name\" type=\"text\" class=\"form-control\" placeholder=\""
22
- + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"fileName",{"name":"lang","hash":{},"data":data}))
23
- + "\" autocomplete=\"off\" autofocus/>\r\n <div class=\"form-feedback\"></div>\r\n </div>\r\n</form>\r\n";
24
- },"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
25
- var stack1, alias1=container.propertyIsEnumerable;
26
-
27
- return ((stack1 = helpers.unless.call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.dataFetched : stack1),{"name":"unless","hash":{},"fn":container.program(1, data, 0),"inverse":container.program(3, data, 0),"data":data})) != null ? stack1 : "");
28
- },"useData":true});
29
-
30
- /***/ }),
31
-
32
- /***/ "./src/apps/library-editor/views/edit-resource/EditResourceView.ts":
33
- /*!*************************************************************************!*\
34
- !*** ./src/apps/library-editor/views/edit-resource/EditResourceView.ts ***!
35
- \*************************************************************************/
36
- /*! exports provided: EditResourceView */
37
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
38
-
39
- "use strict";
40
- __webpack_require__.r(__webpack_exports__);
41
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EditResourceView", function() { return EditResourceView; });
42
- /* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! underscore */ "underscore");
43
- /* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(underscore__WEBPACK_IMPORTED_MODULE_0__);
44
- /* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! backbone */ "backbone");
45
- /* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(backbone__WEBPACK_IMPORTED_MODULE_1__);
46
- /* harmony import */ var _libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../../libs/analytics/src/AnalyticsHelper */ "../../libs/analytics/src/AnalyticsHelper.ts");
47
- /* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
48
- /* harmony import */ var _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/services/InstanceManager */ "../../libs/common/src/backbone/services/InstanceManager.ts");
49
- /* harmony import */ var _libs_common_src_backbone_services_ViewModelService__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/services/ViewModelService */ "../../libs/common/src/backbone/services/ViewModelService.ts");
50
- /* harmony import */ var _shared_behaviors__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/behaviors */ "./src/shared/behaviors/index.ts");
51
- /* harmony import */ var _shared_components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/components/spinner-button/SpinnerButtonComponent */ "./src/shared/components/spinner-button/SpinnerButtonComponent.ts");
52
- /* harmony import */ var _shared_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../shared/constants */ "./src/shared/constants/index.ts");
53
- /* harmony import */ var _shared_utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../shared/utils */ "./src/shared/utils/index.ts");
54
- /* harmony import */ var _shared_models_DisabledSpinnerModel__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../shared/models/DisabledSpinnerModel */ "./src/shared/models/DisabledSpinnerModel.ts");
55
- /* harmony import */ var _shared_models_Resource__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../shared/models/Resource */ "./src/shared/models/Resource.ts");
56
- /* harmony import */ var _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/services/LanguageService */ "../../libs/common/src/backbone/services/LanguageService.tsx");
57
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../utils */ "./src/apps/library-editor/utils/index.ts");
58
- /* harmony import */ var _EditResource_hbs__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./EditResource.hbs */ "./src/apps/library-editor/views/edit-resource/EditResource.hbs");
59
- /* harmony import */ var _EditResource_hbs__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_EditResource_hbs__WEBPACK_IMPORTED_MODULE_14__);
60
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
61
-
62
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
63
-
64
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
65
-
66
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
67
-
68
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
69
-
70
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
71
-
72
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
73
-
74
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
75
-
76
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
77
-
78
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
79
-
80
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
81
-
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
- var EditResourceView = /*#__PURE__*/function (_Core$View) {
99
- _inherits(EditResourceView, _Core$View);
100
-
101
- var _super = _createSuper(EditResourceView);
102
-
103
- function EditResourceView(options) {
104
- _classCallCheck(this, EditResourceView);
105
-
106
- return _super.call(this, options);
107
- }
108
-
109
- _createClass(EditResourceView, [{
110
- key: "initialize",
111
- value: function initialize() {
112
- this.listenTo(_shared_constants__WEBPACK_IMPORTED_MODULE_8__["DataChannels"].RESOURCE, "resource:".concat(this.options.resourceId, ":sync"), this.render);
113
- this.resourceDataService = _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_4__["InstanceManager"].getInstance(_shared_constants__WEBPACK_IMPORTED_MODULE_8__["DataServices"].Resource, this);
114
- }
115
- }, {
116
- key: "events",
117
- value: function events() {
118
- return {
119
- 'submit': 'onSubmit',
120
- 'shown.bs.modal': 'onModalShown'
121
- };
122
- }
123
- }, {
124
- key: "onSubmit",
125
- value: function onSubmit(event) {
126
- var _this = this;
127
-
128
- event && event.preventDefault();
129
- this.viewModel.validate();
130
- if (this.viewModel.isValid() === false) return;
131
- backbone__WEBPACK_IMPORTED_MODULE_1__["Radio"].channel(this.channelName).trigger(_shared_components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_7__["SpinnerButtonEvents"].ShowSpinner);
132
- this.resourceDataService.updateResource(this.options.videoId, this.viewModel, function () {
133
- _this.logAction();
134
-
135
- _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_3__["Core"].AppLinkHelper.trigger({
136
- application: _shared_constants__WEBPACK_IMPORTED_MODULE_8__["AppChannels"].LIBRARY_EDITOR,
137
- action: _shared_constants__WEBPACK_IMPORTED_MODULE_8__["Actions"].LibraryEditor.EDIT_VIDEO_RESOURCES,
138
- args: [_this.options.videoId]
139
- });
140
- });
141
- }
142
- }, {
143
- key: "logAction",
144
- value: function logAction() {
145
- var data = {
146
- id: this.options.resourceId,
147
- parentId: +this.options.videoId,
148
- name: this.viewModel.get('name')
149
- };
150
- _libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_2__["AnalyticsHelper"].logUserAction(data, this.options.analyticsOptions);
151
- }
152
- }, {
153
- key: "selectAllWithoutExtension",
154
- value: function selectAllWithoutExtension() {
155
- if (!this.model) return;
156
- var nameSansExtension = this.model.get('name').split('.').slice(0, -1).join('.');
157
- var $name = this.getUI('name');
158
- /**
159
- * Browser compatible way of selecting part of an input
160
- * http://programanddesign.com/js/jquery-select-text-range/
161
- */
162
-
163
- $name.each(function (index, element) {
164
- if (underscore__WEBPACK_IMPORTED_MODULE_0__["isFunction"](element.setSelectionRange)) {
165
- $name.focus();
166
- element.setSelectionRange(0, nameSansExtension.length);
167
- } else if (underscore__WEBPACK_IMPORTED_MODULE_0__["isFunction"](element.createTextRange)) {
168
- var range = element.createTextRange();
169
- range.collapse(true);
170
- range.moveEnd('character', nameSansExtension.length);
171
- range.moveStart('character', 0);
172
- range.select();
173
- }
174
- });
175
- }
176
- }, {
177
- key: "onModalShown",
178
- value: function onModalShown() {
179
- this.selectAllWithoutExtension();
180
- }
181
- }, {
182
- key: "dataFetched",
183
- value: function dataFetched() {
184
- return !!this.model && !!this.viewModel;
185
- }
186
- }, {
187
- key: "onBeforeRender",
188
- value: function onBeforeRender() {
189
- var _this2 = this;
190
-
191
- this.model = this.resourceDataService.getResource(this.options.resourceId, function (resource) {
192
- _this2.viewModel = _libs_common_src_backbone_services_ViewModelService__WEBPACK_IMPORTED_MODULE_5__["ViewModelService"].get("resource:".concat(_this2.options.resourceId), resource.toJSON(), {
193
- ctor: _shared_models_Resource__WEBPACK_IMPORTED_MODULE_11__["Resource"]
194
- });
195
-
196
- _this2.viewModel.addValidation(_utils__WEBPACK_IMPORTED_MODULE_13__["ResourceValidation"]);
197
- });
198
- if (this.dataFetched()) this.spinnerModel.set(_shared_components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_7__["SpinnerButtonModelAttributes"].Disabled, false);
199
- }
200
- }, {
201
- key: "viewOptions",
202
- value: function viewOptions() {
203
- return {
204
- dataFetched: this.dataFetched(),
205
- spinnerEl: _shared_utils__WEBPACK_IMPORTED_MODULE_9__["SpinnerHelper"].getSpinner({
206
- size: _shared_utils__WEBPACK_IMPORTED_MODULE_9__["SpinnerSize"].Large,
207
- extraClasses: 'mx-auto'
208
- })
209
- };
210
- }
211
- }, {
212
- key: "onRender",
213
- value: function onRender() {
214
- if (!this.viewModel) return;
215
- this.stickit(this.viewModel);
216
- backbone__WEBPACK_IMPORTED_MODULE_1__["Validation"].bind(this, {
217
- model: this.viewModel
218
- });
219
- /**
220
- * This needs to be called both in onRender
221
- * and in onModalShown. This is because the second time
222
- * the modal is rendered the resource is not fetched so onRender
223
- * fires before the the popup has slid down.
224
- */
225
-
226
- this.selectAllWithoutExtension();
227
- }
228
- }, {
229
- key: "onClose",
230
- value: function onClose() {
231
- this.unstickit();
232
- backbone__WEBPACK_IMPORTED_MODULE_1__["Validation"].unbind(this);
233
- }
234
- }, {
235
- key: "name",
236
- get: function get() {
237
- return 'EditResourceView';
238
- }
239
- }, {
240
- key: "lang",
241
- get: function get() {
242
- return 'libraryEditor.editResource';
243
- }
244
- }, {
245
- key: "title",
246
- get: function get() {
247
- return _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_12__["LanguageService"].getPhrase(this.lang, 'title');
248
- }
249
- }, {
250
- key: "template",
251
- get: function get() {
252
- return _EditResource_hbs__WEBPACK_IMPORTED_MODULE_14___default.a;
253
- }
254
- }, {
255
- key: "channelName",
256
- get: function get() {
257
- return _shared_utils__WEBPACK_IMPORTED_MODULE_9__["RadioChannelHelper"].generateUniqueChannelName(this);
258
- }
259
- }, {
260
- key: "behaviors",
261
- get: function get() {
262
- var _this3 = this;
263
-
264
- return [{
265
- behaviorClass: _shared_behaviors__WEBPACK_IMPORTED_MODULE_6__["PopupBehavior"],
266
- title: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_12__["LanguageService"].getPhrase(this.lang, 'edit'),
267
- spinnerButtonOptions: {
268
- channelName: this.channelName,
269
- model: this.spinnerModel = new _shared_models_DisabledSpinnerModel__WEBPACK_IMPORTED_MODULE_10__["DisabledSpinnerModel"](),
270
- buttonText: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_12__["LanguageService"].getPhrase(this.lang, 'save'),
271
- onClick: function onClick(e) {
272
- return _this3.onSubmit(e);
273
- }
274
- }
275
- }];
276
- }
277
- }, {
278
- key: "bindings",
279
- get: function get() {
280
- return {
281
- '[name=name]': {
282
- observe: 'name',
283
- setOptions: {
284
- validate: true
285
- }
286
- }
287
- };
288
- }
289
- }, {
290
- key: "elements",
291
- get: function get() {
292
- return {
293
- name: '#name',
294
- feedback: '.form-feedback'
295
- };
296
- }
297
- }]);
298
-
299
- return EditResourceView;
300
- }(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_3__["Core"].View);
301
-
302
- /***/ }),
303
-
304
- /***/ "./src/shared/models/DisabledSpinnerModel.ts":
305
- /*!***************************************************!*\
306
- !*** ./src/shared/models/DisabledSpinnerModel.ts ***!
307
- \***************************************************/
308
- /*! exports provided: DisabledSpinnerModel */
309
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
310
-
311
- "use strict";
312
- __webpack_require__.r(__webpack_exports__);
313
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DisabledSpinnerModel", function() { return DisabledSpinnerModel; });
314
- /* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
315
- /* harmony import */ var _components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/spinner-button/SpinnerButtonComponent */ "./src/shared/components/spinner-button/SpinnerButtonComponent.ts");
316
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
317
-
318
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
319
-
320
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
321
-
322
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
323
-
324
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
325
-
326
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
327
-
328
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
329
-
330
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
331
-
332
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
333
-
334
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
335
-
336
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
337
-
338
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
339
-
340
-
341
-
342
- var DisabledSpinnerModel = /*#__PURE__*/function (_Core$Model) {
343
- _inherits(DisabledSpinnerModel, _Core$Model);
344
-
345
- var _super = _createSuper(DisabledSpinnerModel);
346
-
347
- function DisabledSpinnerModel() {
348
- _classCallCheck(this, DisabledSpinnerModel);
349
-
350
- return _super.apply(this, arguments);
351
- }
352
-
353
- _createClass(DisabledSpinnerModel, [{
354
- key: "defaults",
355
- value: function defaults() {
356
- return _defineProperty({}, _components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_1__["SpinnerButtonModelAttributes"].Disabled, true);
357
- }
358
- }]);
359
-
360
- return DisabledSpinnerModel;
361
- }(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].Model);
362
-
363
- /***/ })
364
-
365
- }]);
366
- //# sourceMappingURL=81.chunk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/apps/library-editor/views/edit-resource/EditResource.hbs","file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/apps/library-editor/views/edit-resource/EditResourceView.ts","file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/shared/models/DisabledSpinnerModel.ts"],"names":[],"mappings":";;;;;;;;;AAAA,iBAAiB,mBAAO,CAAC,8BAAY;AACrC,iEAAiE;AACjE;;AAEA;AACA;AACA,CAAC;AACD,4GAA4G;;AAE5G;AACA,qFAAqF,uBAAuB,aAAa;AACzH;AACA,qFAAqF,uBAAuB,aAAa;AACzH;AACA,CAAC;AACD;;AAEA,8FAA8F,iGAAiG,yBAAyB,wFAAwF;AAChT,CAAC,gBAAgB,E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AClBjB;AACA;AACA;AAGA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAGA;AAQO,IAAM,gBAAb;AAAA;;AAAA;;AAKE,4BAAY,OAAZ,EAA4C;AAAA;;AAAA,6BACpC,OADoC;AAE3C;;AAPH;AAAA;AAAA,iCASmB;AACf,WAAK,QAAL,CAAc,8DAAY,CAAC,QAA3B,qBAAiD,KAAK,OAAL,CAAa,UAA9D,YAAiF,K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GAAoB,IAAI,yFAAJ,EAFP;AAGpB,oBAAU,EAAE,mGAAe,CAAC,SAAhB,CAA0B,KAAK,IAA/B,EAAqC,MAArC,CAHQ;AAIpB,iBAAO,EAAE,iBAAC,CAAD;AAAA,mBAAqB,MAAI,CAAC,QAAL,CAAc,CAAd,CAArB;AAAA;AAJW;AAHxB,OADK,CAAP;AAYD;AAhDH;AAAA;AAAA,wBAkDqB;AACjB,aAAO;AACL,uBAAe;AACb,iBAAO,EAAE,MADI;AAEb,oBAAU,EAAE;AAAE,oBAAQ,EAAE;AAAZ;AAFC;AADV,OAAP;AAMD;AAzDH;AAAA;AAAA,wBA2DqB;AACjB,aAAO;AACL,YAAI,EAAE,OADD;AAEL,gBAAQ,EAAE;AAFL,OAAP;AAID;AAhEH;;AAAA;AAAA,EAAsC,8DAAI,CAAC,IAA3C,E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC5BA;AACA;AAEO,IAAM,oBAAb;AAAA;;AAAA;;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAAA,+BACiB;AACb,iCACG,8GAA4B,CAAC,QADhC,EAC2C,IAD3C;AAGD;AALH;;AAAA;AAAA,EAA0C,8DAAI,CAAC,KAA/C,E","file":"scripts/81.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 ((stack1 = container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.spinnerEl : stack1), depth0)) != null ? stack1 : \"\")\n + \"\\r\\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {}), alias3=container.hooks.helperMissing, alias4=container.escapeExpression;\n\n return \"<form>\\r\\n <div class=\\\"form-group\\\">\\r\\n <label for=\\\"name\\\" class=\\\"control-label\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"fileName\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</label>\\r\\n <input name=\\\"name\\\" id=\\\"name\\\" type=\\\"text\\\" class=\\\"form-control\\\" placeholder=\\\"\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"fileName\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"\\\" autocomplete=\\\"off\\\" autofocus/>\\r\\n <div class=\\\"form-feedback\\\"></div>\\r\\n </div>\\r\\n</form>\\r\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return ((stack1 = helpers.unless.call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.dataFetched : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.program(3, data, 0),\"data\":data})) != null ? stack1 : \"\");\n},\"useData\":true});","import * as _ from 'underscore';\r\nimport { ObjectHash, Validation } from 'backbone';\r\nimport { Radio } from 'backbone';\r\n\r\nimport { AnalyticsOptions } from 'libs/analytics/interfaces';\r\nimport { AnalyticsHelper } from 'libs/analytics/AnalyticsHelper';\r\nimport { Core } from 'libs/common/core';\r\nimport { InstanceManager } from 'libs/common/backbone/services/InstanceManager';\r\nimport { ViewModelService } from 'libs/common/backbone/services/ViewModelService';\r\n\r\nimport { PopupBehavior } from 'shared/behaviors';\r\nimport { SpinnerButtonEvents, SpinnerButtonModelAttributes } from 'shared/components/spinner-button/SpinnerButtonComponent';\r\nimport { Actions, DataServices, DataChannels, AppChannels } from 'shared/constants';\r\nimport { SpinnerHelper, SpinnerSize, RadioChannelHelper } from 'shared/utils';\r\nimport { DisabledSpinnerModel } from 'shared/models/DisabledSpinnerModel';\r\nimport { Resource } from 'shared/models/Resource';\r\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\r\n\r\nimport { ResourceValidation } from 'apps/library-editor/utils';\r\nimport { ResourceDataService } from 'apps/library-editor/services/ResourceDataService';\r\n\r\nimport EditResourceTemplate from './EditResource.hbs';\r\n\r\ninterface EditResourceViewOptions extends Core.ViewOptions {\r\n videoId: string;\r\n resourceId: string;\r\n analyticsOptions?: AnalyticsOptions;\r\n}\r\n\r\nexport class EditResourceView extends Core.View {\r\n public options: EditResourceViewOptions;\r\n private resourceDataService: ResourceDataService;\r\n private spinnerModel: DisabledSpinnerModel;\r\n\r\n constructor(options: EditResourceViewOptions) {\r\n super(options);\r\n }\r\n\r\n public initialize(): void {\r\n this.listenTo(DataChannels.RESOURCE, `resource:${this.options.resourceId}:sync`, this.render);\r\n\r\n this.resourceDataService = InstanceManager.getInstance(DataServices.Resource, this);\r\n }\r\n\r\n public get name(): string {\r\n return 'EditResourceView';\r\n }\r\n\r\n public get lang(): string {\r\n return 'libraryEditor.editResource';\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 template(): any {\r\n return EditResourceTemplate;\r\n }\r\n\r\n public get channelName(): string {\r\n return RadioChannelHelper.generateUniqueChannelName(this);\r\n }\r\n\r\n public get behaviors(): any[] {\r\n return [\r\n {\r\n behaviorClass: PopupBehavior,\r\n title: LanguageService.getPhrase(this.lang, 'edit'),\r\n spinnerButtonOptions: {\r\n channelName: this.channelName,\r\n model: this.spinnerModel = new DisabledSpinnerModel(),\r\n buttonText: LanguageService.getPhrase(this.lang, 'save'),\r\n onClick: (e: JQuery.Event) => this.onSubmit(e)\r\n }\r\n }\r\n ];\r\n }\r\n\r\n public get bindings(): ObjectHash {\r\n return {\r\n '[name=name]': {\r\n observe: 'name',\r\n setOptions: { validate: true }\r\n }\r\n };\r\n }\r\n\r\n public get elements(): ObjectHash {\r\n return {\r\n name: '#name',\r\n feedback: '.form-feedback'\r\n };\r\n }\r\n\r\n public events(): ObjectHash {\r\n return {\r\n 'submit': 'onSubmit',\r\n 'shown.bs.modal': 'onModalShown'\r\n };\r\n }\r\n\r\n private onSubmit(event: JQuery.Event): void {\r\n event && event.preventDefault();\r\n\r\n this.viewModel.validate();\r\n\r\n if (this.viewModel.isValid() === false) return;\r\n\r\n Radio.channel(this.channelName).trigger(SpinnerButtonEvents.ShowSpinner);\r\n\r\n this.resourceDataService.updateResource(this.options.videoId, this.viewModel, () => {\r\n this.logAction();\r\n Core.AppLinkHelper.trigger({\r\n application: AppChannels.LIBRARY_EDITOR,\r\n action: Actions.LibraryEditor.EDIT_VIDEO_RESOURCES,\r\n args: [this.options.videoId]\r\n });\r\n });\r\n }\r\n\r\n private logAction(): void {\r\n const data = {\r\n id: this.options.resourceId,\r\n parentId: +this.options.videoId,\r\n name: this.viewModel.get('name')\r\n };\r\n\r\n AnalyticsHelper.logUserAction(data, this.options.analyticsOptions);\r\n }\r\n\r\n private selectAllWithoutExtension(): void {\r\n if (!this.model)\r\n return;\r\n\r\n const nameSansExtension: string = this.model.get('name').split('.').slice(0, -1).join('.');\r\n const $name = this.getUI('name');\r\n\r\n /**\r\n * Browser compatible way of selecting part of an input\r\n * http://programanddesign.com/js/jquery-select-text-range/\r\n */\r\n $name.each((index: number, element: HTMLInputElement) => {\r\n if (_.isFunction(element.setSelectionRange)) {\r\n $name.focus();\r\n element.setSelectionRange(0, nameSansExtension.length);\r\n } else if (_.isFunction((element as any).createTextRange)) {\r\n const range = (element as any).createTextRange();\r\n range.collapse(true);\r\n range.moveEnd('character', nameSansExtension.length);\r\n range.moveStart('character', 0);\r\n range.select();\r\n }\r\n });\r\n }\r\n\r\n private onModalShown(): void {\r\n this.selectAllWithoutExtension();\r\n }\r\n\r\n private dataFetched(): boolean {\r\n return !!this.model && !!this.viewModel;\r\n }\r\n\r\n public onBeforeRender(): void {\r\n this.model = this.resourceDataService.getResource(this.options.resourceId, (resource: Resource) => {\r\n this.viewModel = ViewModelService.get<Resource>(\r\n `resource:${this.options.resourceId}`, resource.toJSON(), { ctor: Resource }\r\n );\r\n this.viewModel.addValidation(ResourceValidation);\r\n });\r\n\r\n if (this.dataFetched())\r\n this.spinnerModel.set(SpinnerButtonModelAttributes.Disabled, false);\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n return {\r\n dataFetched: this.dataFetched(),\r\n spinnerEl: SpinnerHelper.getSpinner({ size: SpinnerSize.Large, extraClasses: 'mx-auto' })\r\n };\r\n }\r\n\r\n public onRender(): void {\r\n if (!this.viewModel) return;\r\n\r\n this.stickit(this.viewModel);\r\n Validation.bind(this, { model: this.viewModel });\r\n\r\n /**\r\n * This needs to be called both in onRender\r\n * and in onModalShown. This is because the second time\r\n * the modal is rendered the resource is not fetched so onRender\r\n * fires before the the popup has slid down.\r\n */\r\n this.selectAllWithoutExtension();\r\n }\r\n\r\n public onClose(): void {\r\n this.unstickit();\r\n Validation.unbind(this);\r\n }\r\n}","import { ObjectHash } from 'backbone';\r\nimport { Core } from 'libs/common/core';\r\nimport { SpinnerButtonModelAttributes } from 'shared/components/spinner-button/SpinnerButtonComponent';\r\n\r\nexport class DisabledSpinnerModel extends Core.Model {\r\n public defaults(): ObjectHash {\r\n return {\r\n [SpinnerButtonModelAttributes.Disabled]: true\r\n };\r\n }\r\n}"],"sourceRoot":""}