@clickview/library-editor 1.1.27-dev.0 → 1.1.27-dev.1

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 (405) hide show
  1. package/dist/css/1.chunk.css.map +1 -0
  2. package/dist/css/10.chunk.css.map +1 -0
  3. package/dist/css/11.chunk.css +137 -0
  4. package/dist/css/11.chunk.css.map +1 -0
  5. package/dist/css/12.chunk.css.map +1 -0
  6. package/dist/css/13.chunk.css.map +1 -0
  7. package/dist/css/14.chunk.css.map +1 -0
  8. package/dist/css/16.chunk.css.map +1 -0
  9. package/dist/css/17.chunk.css.map +1 -0
  10. package/dist/css/18.chunk.css +20 -0
  11. package/dist/css/18.chunk.css.map +1 -0
  12. package/dist/css/2.chunk.css +145 -0
  13. package/dist/css/2.chunk.css.map +1 -0
  14. package/dist/css/21.chunk.css.map +1 -0
  15. package/dist/css/22.chunk.css.map +1 -0
  16. package/dist/css/23.chunk.css +5 -3
  17. package/dist/css/23.chunk.css.map +1 -0
  18. package/dist/css/25.chunk.css +3 -1
  19. package/dist/css/25.chunk.css.map +1 -0
  20. package/dist/css/26.chunk.css.map +1 -0
  21. package/dist/css/28.chunk.css.map +1 -0
  22. package/dist/css/29.chunk.css.map +1 -0
  23. package/dist/css/3.chunk.css.map +1 -0
  24. package/dist/css/30.chunk.css.map +1 -0
  25. package/dist/css/31.chunk.css.map +1 -0
  26. package/dist/css/32.chunk.css.map +1 -0
  27. package/dist/css/33.chunk.css.map +1 -0
  28. package/dist/css/34.chunk.css +21 -0
  29. package/dist/css/34.chunk.css.map +1 -0
  30. package/dist/css/35.chunk.css +20 -0
  31. package/dist/css/35.chunk.css.map +1 -0
  32. package/dist/css/36.chunk.css +14 -0
  33. package/dist/css/36.chunk.css.map +1 -0
  34. package/dist/css/37.chunk.css.map +1 -0
  35. package/dist/css/38.chunk.css.map +1 -0
  36. package/dist/css/40.chunk.css.map +1 -0
  37. package/dist/css/41.chunk.css.map +1 -0
  38. package/dist/css/42.chunk.css.map +1 -0
  39. package/dist/css/43.chunk.css.map +1 -0
  40. package/dist/css/44.chunk.css.map +1 -0
  41. package/dist/css/45.chunk.css.map +1 -0
  42. package/dist/css/46.chunk.css.map +1 -0
  43. package/dist/css/47.chunk.css.map +1 -0
  44. package/dist/css/48.chunk.css.map +1 -0
  45. package/dist/css/49.chunk.css +35 -0
  46. package/dist/css/49.chunk.css.map +1 -0
  47. package/dist/css/50.chunk.css.map +1 -0
  48. package/dist/css/51.chunk.css.map +1 -0
  49. package/dist/css/52.chunk.css +66 -0
  50. package/dist/css/52.chunk.css.map +1 -0
  51. package/dist/css/55.chunk.css.map +1 -0
  52. package/dist/css/56.chunk.css.map +1 -0
  53. package/dist/css/58.chunk.css.map +1 -0
  54. package/dist/css/59.chunk.css.map +1 -0
  55. package/dist/css/6.chunk.css.map +1 -0
  56. package/dist/css/60.chunk.css +18 -0
  57. package/dist/css/60.chunk.css.map +1 -0
  58. package/dist/css/62.chunk.css.map +1 -0
  59. package/dist/css/63.chunk.css +170 -0
  60. package/dist/css/63.chunk.css.map +1 -0
  61. package/dist/css/67.chunk.css +78 -0
  62. package/dist/css/67.chunk.css.map +1 -0
  63. package/dist/css/68.chunk.css +17 -0
  64. package/dist/css/68.chunk.css.map +1 -0
  65. package/dist/css/69.chunk.css +17 -0
  66. package/dist/css/69.chunk.css.map +1 -0
  67. package/dist/css/7.chunk.css.map +1 -0
  68. package/dist/css/70.chunk.css +23 -0
  69. package/dist/css/70.chunk.css.map +1 -0
  70. package/dist/css/71.chunk.css +40 -0
  71. package/dist/css/71.chunk.css.map +1 -0
  72. package/dist/css/72.chunk.css +16 -0
  73. package/dist/css/72.chunk.css.map +1 -0
  74. package/dist/css/73.chunk.css +37 -0
  75. package/dist/css/73.chunk.css.map +1 -0
  76. package/dist/css/74.chunk.css +29 -0
  77. package/dist/css/74.chunk.css.map +1 -0
  78. package/dist/css/75.chunk.css +6 -0
  79. package/dist/css/75.chunk.css.map +1 -0
  80. package/dist/css/76.chunk.css +6 -0
  81. package/dist/css/76.chunk.css.map +1 -0
  82. package/dist/css/8.chunk.css.map +1 -0
  83. package/dist/css/library-editor-app.css +2 -2
  84. package/dist/css/library-editor-app.css.map +1 -0
  85. package/dist/en.json +1 -1
  86. package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +1 -0
  87. package/dist/libs/common/src/backbone/core/BaseAppRouter.d.ts +5 -1
  88. package/dist/libs/common/src/backbone/core/index.d.ts +1 -1
  89. package/dist/libs/shared/src/apps/search/components/instant-search/series/SeriesSearchResultComponent.d.ts +5 -0
  90. package/dist/libs/shared/src/apps/search/enums/SearchQueryType.d.ts +1 -1
  91. package/dist/libs/shared/src/apps/search/views/search-bar/SearchBarView.d.ts +3 -0
  92. package/dist/libs/shared/src/constants/BootstrapKeys.d.ts +1 -0
  93. package/dist/libs/shared/src/enums/MediaQueries.d.ts +3 -1
  94. package/dist/libs/shared/src/enums/PlayerMediaType.d.ts +1 -0
  95. package/dist/libs/shared/src/enums/ResourceFileType.d.ts +9 -0
  96. package/dist/libs/shared/src/enums/SettingName.d.ts +0 -1
  97. package/dist/libs/shared/src/interfaces/app-variables/BaseSearchAppVariables.d.ts +1 -0
  98. package/dist/libs/shared/src/interfaces/collections/ClassificationCollection.d.ts +4 -0
  99. package/dist/libs/shared/src/interfaces/collections/ClassroomCollection.d.ts +4 -0
  100. package/dist/libs/shared/src/interfaces/collections/ClassroomGroupCollection.d.ts +4 -0
  101. package/dist/libs/shared/src/interfaces/collections/InteractiveCollection.d.ts +2 -2
  102. package/dist/libs/shared/src/interfaces/collections/index.d.ts +3 -0
  103. package/dist/libs/shared/src/interfaces/models/Classroom.d.ts +4 -0
  104. package/dist/libs/shared/src/interfaces/models/ClassroomGroup.d.ts +18 -0
  105. package/dist/libs/shared/src/interfaces/models/Clip.d.ts +4 -3
  106. package/dist/libs/shared/src/interfaces/models/Curriculum.d.ts +4 -0
  107. package/dist/libs/shared/src/interfaces/models/InteractiveMetadata.d.ts +14 -0
  108. package/dist/libs/shared/src/interfaces/models/Resource.d.ts +2 -2
  109. package/dist/libs/shared/src/interfaces/models/User.d.ts +4 -2
  110. package/dist/libs/shared/src/interfaces/models/Video.d.ts +6 -2
  111. package/dist/libs/shared/src/interfaces/models/VideoHistory.d.ts +4 -1
  112. package/dist/libs/shared/src/interfaces/models/Widget.d.ts +1 -1
  113. package/dist/libs/shared/src/interfaces/models/YearGroup.d.ts +5 -0
  114. package/dist/libs/shared/src/interfaces/models/index.d.ts +5 -1
  115. package/dist/libs/shared/src/interfaces/models/interactive/ActionableItem.d.ts +6 -0
  116. package/dist/libs/shared/src/interfaces/models/interactive/Interaction.d.ts +16 -0
  117. package/dist/libs/shared/src/interfaces/models/interactive/InteractionType.d.ts +7 -0
  118. package/dist/libs/shared/src/interfaces/models/interactive/InteractionTypeId.d.ts +8 -0
  119. package/dist/libs/shared/src/interfaces/models/interactive/Interactive.d.ts +7 -0
  120. package/dist/libs/shared/src/interfaces/models/interactive/Timepoint.d.ts +9 -0
  121. package/dist/libs/shared/src/interfaces/models/interactive/index.d.ts +6 -0
  122. package/dist/libs/shared/src/interfaces/models/primitives/BaseObject.d.ts +1 -0
  123. package/dist/libs/shared/src/interfaces/models/primitives/VirtualObject.d.ts +5 -0
  124. package/dist/libs/shared/src/interfaces/models/primitives/index.d.ts +1 -0
  125. package/dist/libs/shared/src/interfaces/requests/CreateOrUpdateClipRequest.d.ts +6 -0
  126. package/dist/libs/shared/src/interfaces/requests/CreateViewKeyRequest.d.ts +0 -2
  127. package/dist/libs/shared/src/interfaces/requests/index.d.ts +1 -0
  128. package/dist/libs/shared/src/utils/VideoDetailsHelper.d.ts +0 -9
  129. package/dist/projects/library-editor/src/apps/migration-wizard/MigrationWizardApplication.d.ts +1 -1
  130. package/dist/projects/library-editor/src/apps/migration-wizard/filters/MigrationFilters.d.ts +2 -2
  131. package/dist/projects/library-editor/src/apps/search/models/SearchAppVariables.d.ts +1 -0
  132. package/dist/projects/library-editor/src/apps/upload/UploadApplication.d.ts +1 -1
  133. package/dist/projects/library-editor/src/shared/filters/BetaAccessFilter.d.ts +1 -1
  134. package/dist/projects/library-editor/src/shared/filters/CustomerSettingsFilter.d.ts +1 -1
  135. package/dist/projects/library-editor/src/shared/filters/RoleFilter.d.ts +1 -1
  136. package/dist/projects/library-editor/src/shared/filters/VerifiedEmailFilter.d.ts +1 -1
  137. package/dist/scripts/{0-7d941d48a1.chunk.js → 0-e25d47c666.chunk.js} +1 -1
  138. package/dist/scripts/0.chunk.js +1039 -0
  139. package/dist/scripts/0.chunk.js.map +1 -0
  140. package/dist/scripts/{1-d174976195.chunk.js → 1-620c685eee.chunk.js} +1 -1
  141. package/dist/scripts/1.chunk.js +442 -0
  142. package/dist/scripts/1.chunk.js.map +1 -0
  143. package/dist/scripts/{10-9389c5decb.chunk.js → 10-3baf058564.chunk.js} +1 -1
  144. package/dist/scripts/10.chunk.js +820 -0
  145. package/dist/scripts/10.chunk.js.map +1 -0
  146. package/dist/scripts/{11-85acf490ea.chunk.js → 11-9f5f0c25dc.chunk.js} +1 -1
  147. package/dist/scripts/11.chunk.js +4091 -0
  148. package/dist/scripts/11.chunk.js.map +1 -0
  149. package/dist/scripts/{12-0db13732f7.chunk.js → 12-b460ad405e.chunk.js} +1 -1
  150. package/dist/scripts/12.chunk.js +555 -0
  151. package/dist/scripts/12.chunk.js.map +1 -0
  152. package/dist/scripts/{13-994f87e579.chunk.js → 13-89b3a0aebb.chunk.js} +1 -1
  153. package/dist/scripts/13.chunk.js +380 -0
  154. package/dist/scripts/13.chunk.js.map +1 -0
  155. package/dist/scripts/{14-2902bc9522.chunk.js → 14-670309ef33.chunk.js} +1 -1
  156. package/dist/scripts/14.chunk.js +2386 -0
  157. package/dist/scripts/14.chunk.js.map +1 -0
  158. package/dist/scripts/{15-c6ed60d5c9.chunk.js → 15-39010184ed.chunk.js} +1 -1
  159. package/dist/scripts/15.chunk.js +314 -0
  160. package/dist/scripts/15.chunk.js.map +1 -0
  161. package/dist/scripts/{16-745edb531a.chunk.js → 16-0971cabfc8.chunk.js} +1 -1
  162. package/dist/scripts/16.chunk.js +1290 -0
  163. package/dist/scripts/16.chunk.js.map +1 -0
  164. package/dist/scripts/{17-84499189f1.chunk.js → 17-f364868870.chunk.js} +1 -1
  165. package/dist/scripts/17.chunk.js +381 -0
  166. package/dist/scripts/17.chunk.js.map +1 -0
  167. package/dist/scripts/18.chunk.js +393 -0
  168. package/dist/scripts/18.chunk.js.map +1 -0
  169. package/dist/scripts/19.chunk.js +364 -0
  170. package/dist/scripts/19.chunk.js.map +1 -0
  171. package/dist/scripts/{2-236aa94486.chunk.js → 2-cd7f1d10b5.chunk.js} +1 -1
  172. package/dist/scripts/2.chunk.js +523 -0
  173. package/dist/scripts/2.chunk.js.map +1 -0
  174. package/dist/scripts/{20-96717eb19f.chunk.js → 20-42dc06da39.chunk.js} +1 -1
  175. package/dist/scripts/20.chunk.js +317 -0
  176. package/dist/scripts/20.chunk.js.map +1 -0
  177. package/dist/scripts/{21-65f36b6673.chunk.js → 21-05615559be.chunk.js} +1 -1
  178. package/dist/scripts/21.chunk.js +531 -0
  179. package/dist/scripts/21.chunk.js.map +1 -0
  180. package/dist/scripts/{22-5e4db41745.chunk.js → 22-70b4c18dd2.chunk.js} +1 -1
  181. package/dist/scripts/22.chunk.js +354 -0
  182. package/dist/scripts/22.chunk.js.map +1 -0
  183. package/dist/scripts/23-3166dfeef5.chunk.js +1 -0
  184. package/dist/scripts/23.chunk.js +604 -0
  185. package/dist/scripts/23.chunk.js.map +1 -0
  186. package/dist/scripts/{24-6ac1386d9a.chunk.js → 24-6fbd14025b.chunk.js} +1 -1
  187. package/dist/scripts/24.chunk.js +318 -0
  188. package/dist/scripts/24.chunk.js.map +1 -0
  189. package/dist/scripts/25-3d067b8b9a.chunk.js +1 -0
  190. package/dist/scripts/25.chunk.js +365 -0
  191. package/dist/scripts/25.chunk.js.map +1 -0
  192. package/dist/scripts/{26-58a421e3cb.chunk.js → 26-468305820a.chunk.js} +1 -1
  193. package/dist/scripts/26.chunk.js +442 -0
  194. package/dist/scripts/26.chunk.js.map +1 -0
  195. package/dist/scripts/{27-a507f85408.chunk.js → 27-d03a99658e.chunk.js} +1 -1
  196. package/dist/scripts/27.chunk.js +3630 -0
  197. package/dist/scripts/27.chunk.js.map +1 -0
  198. package/dist/scripts/{28-add4a2a74d.chunk.js → 28-f3f43a3001.chunk.js} +1 -1
  199. package/dist/scripts/28.chunk.js +3172 -0
  200. package/dist/scripts/28.chunk.js.map +1 -0
  201. package/dist/scripts/{29-adf22ec3a1.chunk.js → 29-268278d2ac.chunk.js} +1 -1
  202. package/dist/scripts/29.chunk.js +3090 -0
  203. package/dist/scripts/29.chunk.js.map +1 -0
  204. package/dist/scripts/{3-3c39acc333.chunk.js → 3-4694b66aa5.chunk.js} +1 -1
  205. package/dist/scripts/3.chunk.js +845 -0
  206. package/dist/scripts/3.chunk.js.map +1 -0
  207. package/dist/scripts/{30-6e869b77b2.chunk.js → 30-694b0a0d4b.chunk.js} +1 -1
  208. package/dist/scripts/30.chunk.js +1851 -0
  209. package/dist/scripts/30.chunk.js.map +1 -0
  210. package/dist/scripts/{31-f3a0832478.chunk.js → 31-4c542c18dc.chunk.js} +1 -1
  211. package/dist/scripts/31.chunk.js +958 -0
  212. package/dist/scripts/31.chunk.js.map +1 -0
  213. package/dist/scripts/{32-cbcb5dba41.chunk.js → 32-a1543ffe27.chunk.js} +1 -1
  214. package/dist/scripts/32.chunk.js +1239 -0
  215. package/dist/scripts/32.chunk.js.map +1 -0
  216. package/dist/scripts/{33-c9a197cce2.chunk.js → 33-9685703df6.chunk.js} +1 -1
  217. package/dist/scripts/33.chunk.js +971 -0
  218. package/dist/scripts/33.chunk.js.map +1 -0
  219. package/dist/scripts/{34-37fc1c9761.chunk.js → 34-eb9f6709b3.chunk.js} +1 -1
  220. package/dist/scripts/34.chunk.js +990 -0
  221. package/dist/scripts/34.chunk.js.map +1 -0
  222. package/dist/scripts/{35-21329b155d.chunk.js → 35-1ff49137e7.chunk.js} +1 -1
  223. package/dist/scripts/35.chunk.js +518 -0
  224. package/dist/scripts/35.chunk.js.map +1 -0
  225. package/dist/scripts/{36-0d3fa3d249.chunk.js → 36-9e89154ca2.chunk.js} +1 -1
  226. package/dist/scripts/36.chunk.js +335 -0
  227. package/dist/scripts/36.chunk.js.map +1 -0
  228. package/dist/scripts/{37-681f25d8de.chunk.js → 37-80589d542e.chunk.js} +1 -1
  229. package/dist/scripts/37.chunk.js +236 -0
  230. package/dist/scripts/37.chunk.js.map +1 -0
  231. package/dist/scripts/{38-5364f1bd67.chunk.js → 38-7e88534f67.chunk.js} +1 -1
  232. package/dist/scripts/38.chunk.js +315 -0
  233. package/dist/scripts/38.chunk.js.map +1 -0
  234. package/dist/scripts/{39-996d4ddc74.chunk.js → 39-99824f3b64.chunk.js} +1 -1
  235. package/dist/scripts/39.chunk.js +107 -0
  236. package/dist/scripts/39.chunk.js.map +1 -0
  237. package/dist/scripts/{4-93e14cac14.chunk.js → 4-ad1e4b43da.chunk.js} +1 -1
  238. package/dist/scripts/4.chunk.js +335 -0
  239. package/dist/scripts/4.chunk.js.map +1 -0
  240. package/dist/scripts/{40-7ecb39dfb5.chunk.js → 40-dbfd665c74.chunk.js} +1 -1
  241. package/dist/scripts/40.chunk.js +2493 -0
  242. package/dist/scripts/40.chunk.js.map +1 -0
  243. package/dist/scripts/{41-8b5abd983b.chunk.js → 41-25fbac3d17.chunk.js} +1 -1
  244. package/dist/scripts/41.chunk.js +1782 -0
  245. package/dist/scripts/41.chunk.js.map +1 -0
  246. package/dist/scripts/{42-b0867d7db0.chunk.js → 42-9f757567db.chunk.js} +1 -1
  247. package/dist/scripts/42.chunk.js +2327 -0
  248. package/dist/scripts/42.chunk.js.map +1 -0
  249. package/dist/scripts/{43-32a9ad2254.chunk.js → 43-5ef29feb2c.chunk.js} +1 -1
  250. package/dist/scripts/43.chunk.js +1206 -0
  251. package/dist/scripts/43.chunk.js.map +1 -0
  252. package/dist/scripts/{44-bf0ebe3cf7.chunk.js → 44-223f602431.chunk.js} +1 -1
  253. package/dist/scripts/44.chunk.js +2245 -0
  254. package/dist/scripts/44.chunk.js.map +1 -0
  255. package/dist/scripts/{45-2ba05e3821.chunk.js → 45-344492a36f.chunk.js} +1 -1
  256. package/dist/scripts/45.chunk.js +1065 -0
  257. package/dist/scripts/45.chunk.js.map +1 -0
  258. package/dist/scripts/{46-3bdc667e2e.chunk.js → 46-9ca7afd6a4.chunk.js} +1 -1
  259. package/dist/scripts/46.chunk.js +655 -0
  260. package/dist/scripts/46.chunk.js.map +1 -0
  261. package/dist/scripts/{47-9955928b6f.chunk.js → 47-ac0c9c5ce1.chunk.js} +1 -1
  262. package/dist/scripts/47.chunk.js +736 -0
  263. package/dist/scripts/47.chunk.js.map +1 -0
  264. package/dist/scripts/{48-3922b945f4.chunk.js → 48-6bf590b9a0.chunk.js} +1 -1
  265. package/dist/scripts/48.chunk.js +994 -0
  266. package/dist/scripts/48.chunk.js.map +1 -0
  267. package/dist/scripts/{49-23a1f6f7e7.chunk.js → 49-8e3e782ffb.chunk.js} +1 -1
  268. package/dist/scripts/49.chunk.js +761 -0
  269. package/dist/scripts/49.chunk.js.map +1 -0
  270. package/dist/scripts/{5-4bea739cc3.chunk.js → 5-b236603e85.chunk.js} +1 -1
  271. package/dist/scripts/5.chunk.js +15 -0
  272. package/dist/scripts/5.chunk.js.map +1 -0
  273. package/dist/scripts/{50-5c842985ec.chunk.js → 50-30ba08212e.chunk.js} +1 -1
  274. package/dist/scripts/50.chunk.js +530 -0
  275. package/dist/scripts/50.chunk.js.map +1 -0
  276. package/dist/scripts/{51-76bb20846a.chunk.js → 51-828972defb.chunk.js} +1 -1
  277. package/dist/scripts/51.chunk.js +932 -0
  278. package/dist/scripts/51.chunk.js.map +1 -0
  279. package/dist/scripts/{52-837abee352.chunk.js → 52-b2acf3e742.chunk.js} +1 -1
  280. package/dist/scripts/52.chunk.js +408 -0
  281. package/dist/scripts/52.chunk.js.map +1 -0
  282. package/dist/scripts/{53-52c9fac5eb.chunk.js → 53-5d6ea94871.chunk.js} +1 -1
  283. package/dist/scripts/53.chunk.js +756 -0
  284. package/dist/scripts/53.chunk.js.map +1 -0
  285. package/dist/scripts/{54-557f6ffe65.chunk.js → 54-2d8bd6fde0.chunk.js} +1 -1
  286. package/dist/scripts/54.chunk.js +681 -0
  287. package/dist/scripts/54.chunk.js.map +1 -0
  288. package/dist/scripts/{55-8dea861900.chunk.js → 55-4a8d360746.chunk.js} +1 -1
  289. package/dist/scripts/55.chunk.js +645 -0
  290. package/dist/scripts/55.chunk.js.map +1 -0
  291. package/dist/scripts/{56-491db19e9d.chunk.js → 56-ad12ebab5f.chunk.js} +1 -1
  292. package/dist/scripts/56.chunk.js +346 -0
  293. package/dist/scripts/56.chunk.js.map +1 -0
  294. package/dist/scripts/{57-87323c96be.chunk.js → 57-53b89c2ef0.chunk.js} +1 -1
  295. package/dist/scripts/57.chunk.js +422 -0
  296. package/dist/scripts/57.chunk.js.map +1 -0
  297. package/dist/scripts/{58-3408474ea9.chunk.js → 58-b246abe78c.chunk.js} +1 -1
  298. package/dist/scripts/58.chunk.js +437 -0
  299. package/dist/scripts/58.chunk.js.map +1 -0
  300. package/dist/scripts/{59-ad89e8b776.chunk.js → 59-19290686e0.chunk.js} +1 -1
  301. package/dist/scripts/59.chunk.js +342 -0
  302. package/dist/scripts/59.chunk.js.map +1 -0
  303. package/dist/scripts/{6-cf6bf13de2.chunk.js → 6-6fb543aa78.chunk.js} +1 -1
  304. package/dist/scripts/6.chunk.js +484 -0
  305. package/dist/scripts/6.chunk.js.map +1 -0
  306. package/dist/scripts/{60-3324435680.chunk.js → 60-0c075e7b5c.chunk.js} +1 -1
  307. package/dist/scripts/60.chunk.js +254 -0
  308. package/dist/scripts/60.chunk.js.map +1 -0
  309. package/dist/scripts/{61-57f4830468.chunk.js → 61-2725bbfab2.chunk.js} +1 -1
  310. package/dist/scripts/61.chunk.js +408 -0
  311. package/dist/scripts/61.chunk.js.map +1 -0
  312. package/dist/scripts/{62-27f0a916e8.chunk.js → 62-472d10a18e.chunk.js} +1 -1
  313. package/dist/scripts/62.chunk.js +142 -0
  314. package/dist/scripts/62.chunk.js.map +1 -0
  315. package/dist/scripts/{63-c328125cb6.chunk.js → 63-7d00e50441.chunk.js} +1 -1
  316. package/dist/scripts/63.chunk.js +147 -0
  317. package/dist/scripts/63.chunk.js.map +1 -0
  318. package/dist/scripts/{64-32b869d473.chunk.js → 64-1b42f78644.chunk.js} +1 -1
  319. package/dist/scripts/64.chunk.js +439 -0
  320. package/dist/scripts/64.chunk.js.map +1 -0
  321. package/dist/scripts/{65-2f7971dc4f.chunk.js → 65-14af88c745.chunk.js} +1 -1
  322. package/dist/scripts/65.chunk.js +582 -0
  323. package/dist/scripts/65.chunk.js.map +1 -0
  324. package/dist/scripts/{66-34c241cba2.chunk.js → 66-bc274df13a.chunk.js} +1 -1
  325. package/dist/scripts/66.chunk.js +442 -0
  326. package/dist/scripts/66.chunk.js.map +1 -0
  327. package/dist/scripts/{67-b5429e74ed.chunk.js → 67-d1edef09d6.chunk.js} +1 -1
  328. package/dist/scripts/67.chunk.js +295 -0
  329. package/dist/scripts/67.chunk.js.map +1 -0
  330. package/dist/scripts/{68-c8848a4a9d.chunk.js → 68-52468201b9.chunk.js} +1 -1
  331. package/dist/scripts/68.chunk.js +165 -0
  332. package/dist/scripts/68.chunk.js.map +1 -0
  333. package/dist/scripts/{69-3840d20a46.chunk.js → 69-b681e9a99c.chunk.js} +1 -1
  334. package/dist/scripts/69.chunk.js +248 -0
  335. package/dist/scripts/69.chunk.js.map +1 -0
  336. package/dist/scripts/{7-d1e99b91aa.chunk.js → 7-2807a666bc.chunk.js} +1 -1
  337. package/dist/scripts/7.chunk.js +309 -0
  338. package/dist/scripts/7.chunk.js.map +1 -0
  339. package/dist/scripts/{70-812a99c9c1.chunk.js → 70-d4018838a9.chunk.js} +1 -1
  340. package/dist/scripts/70.chunk.js +207 -0
  341. package/dist/scripts/70.chunk.js.map +1 -0
  342. package/dist/scripts/{71-5523ee0121.chunk.js → 71-29cce07c7f.chunk.js} +1 -1
  343. package/dist/scripts/71.chunk.js +237 -0
  344. package/dist/scripts/71.chunk.js.map +1 -0
  345. package/dist/scripts/{72-fd2b5e6473.chunk.js → 72-6f83214b8d.chunk.js} +1 -1
  346. package/dist/scripts/72.chunk.js +331 -0
  347. package/dist/scripts/72.chunk.js.map +1 -0
  348. package/dist/scripts/73.chunk.js +404 -0
  349. package/dist/scripts/73.chunk.js.map +1 -0
  350. package/dist/scripts/74.chunk.js +301 -0
  351. package/dist/scripts/74.chunk.js.map +1 -0
  352. package/dist/scripts/75.chunk.js +231 -0
  353. package/dist/scripts/75.chunk.js.map +1 -0
  354. package/dist/scripts/76.chunk.js +157 -0
  355. package/dist/scripts/76.chunk.js.map +1 -0
  356. package/dist/scripts/77.chunk.js +307 -0
  357. package/dist/scripts/77.chunk.js.map +1 -0
  358. package/dist/scripts/78.chunk.js +249 -0
  359. package/dist/scripts/78.chunk.js.map +1 -0
  360. package/dist/scripts/79.chunk.js +282 -0
  361. package/dist/scripts/79.chunk.js.map +1 -0
  362. package/dist/scripts/{8-1c22ae2c22.chunk.js → 8-8f44e8bfc4.chunk.js} +1 -1
  363. package/dist/scripts/8.chunk.js +307 -0
  364. package/dist/scripts/8.chunk.js.map +1 -0
  365. package/dist/scripts/80.chunk.js +308 -0
  366. package/dist/scripts/80.chunk.js.map +1 -0
  367. package/dist/scripts/81.chunk.js +366 -0
  368. package/dist/scripts/81.chunk.js.map +1 -0
  369. package/dist/scripts/82.chunk.js +314 -0
  370. package/dist/scripts/82.chunk.js.map +1 -0
  371. package/dist/scripts/83.chunk.js +328 -0
  372. package/dist/scripts/83.chunk.js.map +1 -0
  373. package/dist/scripts/84.chunk.js +313 -0
  374. package/dist/scripts/84.chunk.js.map +1 -0
  375. package/dist/scripts/85.chunk.js +291 -0
  376. package/dist/scripts/85.chunk.js.map +1 -0
  377. package/dist/scripts/86.chunk.js +119 -0
  378. package/dist/scripts/86.chunk.js.map +1 -0
  379. package/dist/scripts/87.chunk.js +219 -0
  380. package/dist/scripts/87.chunk.js.map +1 -0
  381. package/dist/scripts/88.chunk.js +194 -0
  382. package/dist/scripts/88.chunk.js.map +1 -0
  383. package/dist/scripts/89.chunk.js +522 -0
  384. package/dist/scripts/89.chunk.js.map +1 -0
  385. package/dist/scripts/{9-fab9edf019.chunk.js → 9-b8f9ea66c4.chunk.js} +1 -1
  386. package/dist/scripts/9.chunk.js +222 -0
  387. package/dist/scripts/9.chunk.js.map +1 -0
  388. package/dist/scripts/90.chunk.js +337 -0
  389. package/dist/scripts/90.chunk.js.map +1 -0
  390. package/dist/scripts/91.chunk.js +131 -0
  391. package/dist/scripts/91.chunk.js.map +1 -0
  392. package/dist/scripts/92.chunk.js +266 -0
  393. package/dist/scripts/92.chunk.js.map +1 -0
  394. package/dist/scripts/bundle-f28b86bf5b.min.js +8 -0
  395. package/dist/scripts/bundle.js +67206 -0
  396. package/dist/scripts/bundle.js.map +1 -0
  397. package/dist/scripts/bundles.json +2 -2
  398. package/dist/scripts/{polyfills-1554419c02.min.js → polyfills-1d2233ebcc.min.js} +1 -1
  399. package/dist/scripts/polyfills.js +14866 -0
  400. package/dist/scripts/polyfills.js.map +1 -0
  401. package/package.json +4 -4
  402. package/dist/scripts/23-d0172ec9d2.chunk.js +0 -1
  403. package/dist/scripts/25-36d490b1c6.chunk.js +0 -1
  404. package/dist/scripts/bundle-c2eae7224c.min.js +0 -8
  405. /package/dist/libs/shared/src/interfaces/models/{Interactive.d.ts → interactive.d.ts} +0 -0
@@ -1 +1 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[4],{1318:function(e,n,t){var a=t(10);e.exports=(a.default||a).template({1:function(e,n,t,a,r){e.propertyIsEnumerable;var i=null!=n?n:e.nullContext||{},o=e.hooks.helperMissing,l=e.escapeExpression;return"<p>"+l((t.lang||n&&n.lang||o).call(i,"infoHeading",{name:"lang",hash:{},data:r}))+"</p>\r\n<p>"+l((t.lang||n&&n.lang||o).call(i,"meaningSubheading",{name:"lang",hash:{},data:r}))+"</p>\r\n<ul>\r\n <li>"+l((t.lang||n&&n.lang||o).call(i,"meaning1",{name:"lang",hash:{},data:r}))+"</li>\r\n <li>"+l((t.lang||n&&n.lang||o).call(i,"meaning2",{name:"lang",hash:{},data:r}))+"</li>\r\n <li>"+l((t.lang||n&&n.lang||o).call(i,"meaning3",{name:"lang",hash:{},data:r}))+"</li>\r\n</ul>\r\n"},3:function(e,n,t,a,r){e.propertyIsEnumerable;var i=null!=n?n:e.nullContext||{},o=e.hooks.helperMissing,l=e.escapeExpression;return"<p>"+l((t.lang||n&&n.lang||o).call(i,"disclaimer",{name:"lang",hash:{},data:r}))+"</p>\r\n<p>"+l((t.lang||n&&n.lang||o).call(i,"featureSubheading",{name:"lang",hash:{},data:r}))+"</p>\r\n<ul>\r\n <li>"+l((t.lang||n&&n.lang||o).call(i,"feature1",{name:"lang",hash:{},data:r}))+"</li> \r\n <li>"+l((t.lang||n&&n.lang||o).call(i,"feature2",{name:"lang",hash:{},data:r}))+"</li>\r\n</ul>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,a,r){var i;e.propertyIsEnumerable;return null!=(i=t.if.call(null!=n?n:e.nullContext||{},null!=(i=null!=n?n.options:n)?i.noPublisher:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},1452:function(e,n,t){"use strict";t.r(n),t.d(n,"PublishLibraryView",(function(){return P}));var a=t(6),r=t(5),i=t(2),o=t(282),l=t(0),u=t(244),c=t(12),s=t(3),h=t(136),f=t(298),g=t(300),p=t(57),b=t(1318),y=t.n(b);function m(e){return(m="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 d(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function v(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function k(e,n){return(k=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function S(e){var n=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 t,a=_(e);if(n){var r=_(this).constructor;t=Reflect.construct(a,arguments,r)}else t=a.apply(this,arguments);return w(this,t)}}function w(e,n){return!n||"object"!==m(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var P=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&k(e,n)}(w,e);var n,t,b,m=S(w);function w(){return d(this,w),m.apply(this,arguments)}return n=w,(t=[{key:"initialize",value:function(){this.libraryDataService=r.a.getInstance(l.g.Library,this),this.migrationVideoDataService=r.a.getInstance(l.g.MigrationVideo,this),this.videoDataService=r.a.getInstance(l.g.Video,this)}},{key:"onClickContinue",value:function(){var e=this;a.Radio.channel(this.channelName).trigger(u.b.ShowSpinner);var n=0,t=function(){++n===e.libraries.length&&(e.triggerMethod("hide"),e.videoDataService.clearVideoCache(),a.Radio.channel(f.a.LIBRARY_STATUS).trigger("status:changed"))};p.a.noPublisher(this.customerMetadata)?this.libraries.each((function(n){e.libraryDataService.publishLibrary(n.get("id"),t)})):this.migrationVideoDataService.publishLibraries((function(){i.a.AppLinkHelper.trigger({application:l.b.MIGRATION_WIZARD,action:l.a.MigrationWizard.PUBLISH_LIBRARY_PROGRESS})}))}},{key:"viewOptions",value:function(){return{noPublisher:p.a.noPublisher(this.customerMetadata)}}},{key:"name",get:function(){return"PublishLibraryView"}},{key:"title",get:function(){return s.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.publishLibrary"}},{key:"template",get:function(){return y.a}},{key:"channelName",get:function(){return c.k.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{title:s.a.getPhrase(this.lang,"heading"),behaviorClass:o.e,spinnerButtonOptions:{channelName:this.channelName,buttonText:s.a.getPhrase(this.lang,"continue"),onClick:function(){return e.onClickContinue()}}}]}},{key:"requiredResources",get:function(){return{libraries:h.b.libraries,customerMetadata:g.b.customerMetaData}}}])&&v(n.prototype,t),b&&v(n,b),w}(i.a.View)}}]);
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[4],{1319:function(e,n,t){var a=t(10);e.exports=(a.default||a).template({1:function(e,n,t,a,r){e.propertyIsEnumerable;var i=null!=n?n:e.nullContext||{},o=e.hooks.helperMissing,l=e.escapeExpression;return"<p>"+l((t.lang||n&&n.lang||o).call(i,"infoHeading",{name:"lang",hash:{},data:r}))+"</p>\r\n<p>"+l((t.lang||n&&n.lang||o).call(i,"meaningSubheading",{name:"lang",hash:{},data:r}))+"</p>\r\n<ul>\r\n <li>"+l((t.lang||n&&n.lang||o).call(i,"meaning1",{name:"lang",hash:{},data:r}))+"</li>\r\n <li>"+l((t.lang||n&&n.lang||o).call(i,"meaning2",{name:"lang",hash:{},data:r}))+"</li>\r\n <li>"+l((t.lang||n&&n.lang||o).call(i,"meaning3",{name:"lang",hash:{},data:r}))+"</li>\r\n</ul>\r\n"},3:function(e,n,t,a,r){e.propertyIsEnumerable;var i=null!=n?n:e.nullContext||{},o=e.hooks.helperMissing,l=e.escapeExpression;return"<p>"+l((t.lang||n&&n.lang||o).call(i,"disclaimer",{name:"lang",hash:{},data:r}))+"</p>\r\n<p>"+l((t.lang||n&&n.lang||o).call(i,"featureSubheading",{name:"lang",hash:{},data:r}))+"</p>\r\n<ul>\r\n <li>"+l((t.lang||n&&n.lang||o).call(i,"feature1",{name:"lang",hash:{},data:r}))+"</li> \r\n <li>"+l((t.lang||n&&n.lang||o).call(i,"feature2",{name:"lang",hash:{},data:r}))+"</li>\r\n</ul>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,a,r){var i;e.propertyIsEnumerable;return null!=(i=t.if.call(null!=n?n:e.nullContext||{},null!=(i=null!=n?n.options:n)?i.noPublisher:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},1453:function(e,n,t){"use strict";t.r(n),t.d(n,"PublishLibraryView",(function(){return P}));var a=t(6),r=t(5),i=t(2),o=t(282),l=t(0),u=t(243),c=t(12),s=t(3),h=t(136),f=t(298),g=t(300),p=t(57),b=t(1319),y=t.n(b);function m(e){return(m="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 d(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function v(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function k(e,n){return(k=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function S(e){var n=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 t,a=_(e);if(n){var r=_(this).constructor;t=Reflect.construct(a,arguments,r)}else t=a.apply(this,arguments);return w(this,t)}}function w(e,n){return!n||"object"!==m(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var P=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&k(e,n)}(w,e);var n,t,b,m=S(w);function w(){return d(this,w),m.apply(this,arguments)}return n=w,(t=[{key:"initialize",value:function(){this.libraryDataService=r.a.getInstance(l.g.Library,this),this.migrationVideoDataService=r.a.getInstance(l.g.MigrationVideo,this),this.videoDataService=r.a.getInstance(l.g.Video,this)}},{key:"onClickContinue",value:function(){var e=this;a.Radio.channel(this.channelName).trigger(u.b.ShowSpinner);var n=0,t=function(){++n===e.libraries.length&&(e.triggerMethod("hide"),e.videoDataService.clearVideoCache(),a.Radio.channel(f.a.LIBRARY_STATUS).trigger("status:changed"))};p.a.noPublisher(this.customerMetadata)?this.libraries.each((function(n){e.libraryDataService.publishLibrary(n.get("id"),t)})):this.migrationVideoDataService.publishLibraries((function(){i.a.AppLinkHelper.trigger({application:l.b.MIGRATION_WIZARD,action:l.a.MigrationWizard.PUBLISH_LIBRARY_PROGRESS})}))}},{key:"viewOptions",value:function(){return{noPublisher:p.a.noPublisher(this.customerMetadata)}}},{key:"name",get:function(){return"PublishLibraryView"}},{key:"title",get:function(){return s.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.publishLibrary"}},{key:"template",get:function(){return y.a}},{key:"channelName",get:function(){return c.k.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{title:s.a.getPhrase(this.lang,"heading"),behaviorClass:o.e,spinnerButtonOptions:{channelName:this.channelName,buttonText:s.a.getPhrase(this.lang,"continue"),onClick:function(){return e.onClickContinue()}}}]}},{key:"requiredResources",get:function(){return{libraries:h.b.libraries,customerMetadata:g.b.customerMetaData}}}])&&v(n.prototype,t),b&&v(n,b),w}(i.a.View)}}]);
@@ -0,0 +1,335 @@
1
+ (window["webpackJsonp_clickview_library_editor"] = window["webpackJsonp_clickview_library_editor"] || []).push([[4],{
2
+
3
+ /***/ "./src/shared/components/checkbox/BulkCheckboxComponent.ts":
4
+ /*!*****************************************************************!*\
5
+ !*** ./src/shared/components/checkbox/BulkCheckboxComponent.ts ***!
6
+ \*****************************************************************/
7
+ /*! exports provided: ALL_CHECKBOX_ITEM_ID, BulkCheckboxComponent */
8
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
9
+
10
+ "use strict";
11
+ __webpack_require__.r(__webpack_exports__);
12
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ALL_CHECKBOX_ITEM_ID", function() { return ALL_CHECKBOX_ITEM_ID; });
13
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BulkCheckboxComponent", function() { return BulkCheckboxComponent; });
14
+ /* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! underscore */ "underscore");
15
+ /* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(underscore__WEBPACK_IMPORTED_MODULE_0__);
16
+ /* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
17
+ /* harmony import */ var _Checkbox_hbs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Checkbox.hbs */ "./src/shared/components/checkbox/Checkbox.hbs");
18
+ /* harmony import */ var _Checkbox_hbs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_Checkbox_hbs__WEBPACK_IMPORTED_MODULE_2__);
19
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../utils */ "./src/shared/utils/index.ts");
20
+ 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); }
21
+
22
+ 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; }
23
+
24
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25
+
26
+ 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); } }
27
+
28
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
29
+
30
+ 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); }
31
+
32
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
33
+
34
+ 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); }; }
35
+
36
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
37
+
38
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
39
+
40
+ 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; } }
41
+
42
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
43
+
44
+
45
+
46
+
47
+
48
+ var ALL_CHECKBOX_ITEM_ID = 'checkbox-all';
49
+ var BulkCheckboxComponent = /*#__PURE__*/function (_Core$Component) {
50
+ _inherits(BulkCheckboxComponent, _Core$Component);
51
+
52
+ var _super = _createSuper(BulkCheckboxComponent);
53
+
54
+ function BulkCheckboxComponent(options) {
55
+ _classCallCheck(this, BulkCheckboxComponent);
56
+
57
+ return _super.call(this, options);
58
+ }
59
+
60
+ _createClass(BulkCheckboxComponent, [{
61
+ key: "initialize",
62
+ value: function initialize() {
63
+ this.getViewModel();
64
+ this.bindListeners();
65
+ }
66
+ }, {
67
+ key: "getViewModel",
68
+ value: function getViewModel() {
69
+ this.model = _utils__WEBPACK_IMPORTED_MODULE_3__["BulkCheckboxHelper"].GetViewModel(this.options.key, this.options.type);
70
+ }
71
+ }, {
72
+ key: "bindListeners",
73
+ value: function bindListeners() {
74
+ if (this.options.disabled) return;
75
+ this.listenTo(this.model, 'change', this.onChange);
76
+ }
77
+ }, {
78
+ key: "events",
79
+ value: function events() {
80
+ return {
81
+ 'change .custom-control-input': 'onClick'
82
+ };
83
+ }
84
+ }, {
85
+ key: "onChange",
86
+ value: function onChange() {
87
+ this.checkAllChecked();
88
+ this.render();
89
+ }
90
+ }, {
91
+ key: "checkAllChecked",
92
+ value: function checkAllChecked() {
93
+ var values = underscore__WEBPACK_IMPORTED_MODULE_0__["values"](this.model.omit('all', ALL_CHECKBOX_ITEM_ID));
94
+
95
+ if (!underscore__WEBPACK_IMPORTED_MODULE_0__["every"](values, function (v) {
96
+ return !!v;
97
+ }) || !(this.model.get('all') || values.length === this.options.numberOfItems)) return;
98
+ this.model.set(_defineProperty({
99
+ all: true
100
+ }, this.getItemId(), true));
101
+ }
102
+ }, {
103
+ key: "getItemId",
104
+ value: function getItemId() {
105
+ return ALL_CHECKBOX_ITEM_ID;
106
+ }
107
+ }, {
108
+ key: "onClick",
109
+ value: function onClick() {
110
+ if (this.model.get(this.getItemId())) {
111
+ this.model.clear();
112
+ } else {
113
+ this.model.clear();
114
+ this.model.set(_defineProperty({
115
+ all: true
116
+ }, this.getItemId(), true));
117
+ }
118
+ }
119
+ }, {
120
+ key: "viewOptions",
121
+ value: function viewOptions() {
122
+ var id = this.getItemId();
123
+ return {
124
+ id: id,
125
+ checked: this.model.get(ALL_CHECKBOX_ITEM_ID),
126
+ disabled: this.options.disabled,
127
+ checkboxClassName: this.options.checkboxClassName
128
+ };
129
+ }
130
+ }, {
131
+ key: "name",
132
+ get: function get() {
133
+ return 'BulkCheckboxComponent';
134
+ }
135
+ }, {
136
+ key: "className",
137
+ get: function get() {
138
+ return this.options.className;
139
+ }
140
+ }, {
141
+ key: "template",
142
+ get: function get() {
143
+ return _Checkbox_hbs__WEBPACK_IMPORTED_MODULE_2___default.a;
144
+ }
145
+ }]);
146
+
147
+ return BulkCheckboxComponent;
148
+ }(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__["Core"].Component);
149
+
150
+ /***/ }),
151
+
152
+ /***/ "./src/shared/components/checkbox/Checkbox.hbs":
153
+ /*!*****************************************************!*\
154
+ !*** ./src/shared/components/checkbox/Checkbox.hbs ***!
155
+ \*****************************************************/
156
+ /*! no static exports found */
157
+ /***/ (function(module, exports, __webpack_require__) {
158
+
159
+ var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
160
+ module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
161
+ return " cursor-pointer";
162
+ },"3":function(container,depth0,helpers,partials,data) {
163
+ return "checked";
164
+ },"5":function(container,depth0,helpers,partials,data) {
165
+ return "disabled";
166
+ },"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
167
+ var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {});
168
+
169
+ return "<div class=\"custom-control custom-checkbox "
170
+ + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.checkboxClassName : stack1), depth0))
171
+ + "\">\r\n <input name=\"checkbox-"
172
+ + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.id : stack1), depth0))
173
+ + "\" id=\"checkbox-"
174
+ + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.id : stack1), depth0))
175
+ + "\" type=\"checkbox\" class=\"custom-control-input"
176
+ + ((stack1 = helpers.unless.call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.disabled : stack1),{"name":"unless","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
177
+ + "\" "
178
+ + ((stack1 = helpers["if"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.checked : stack1),{"name":"if","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
179
+ + " "
180
+ + ((stack1 = helpers["if"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.disabled : stack1),{"name":"if","hash":{},"fn":container.program(5, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
181
+ + " />\r\n <label class=\"custom-control-label"
182
+ + ((stack1 = helpers.unless.call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.disabled : stack1),{"name":"unless","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
183
+ + "\" for=\"checkbox-"
184
+ + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.id : stack1), depth0))
185
+ + "\">&nbsp;</label>\r\n</div>";
186
+ },"useData":true});
187
+
188
+ /***/ }),
189
+
190
+ /***/ "./src/shared/components/checkbox/CheckboxComponent.ts":
191
+ /*!*************************************************************!*\
192
+ !*** ./src/shared/components/checkbox/CheckboxComponent.ts ***!
193
+ \*************************************************************/
194
+ /*! exports provided: CheckboxComponent */
195
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
196
+
197
+ "use strict";
198
+ __webpack_require__.r(__webpack_exports__);
199
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CheckboxComponent", function() { return CheckboxComponent; });
200
+ /* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
201
+ /* harmony import */ var _Checkbox_hbs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Checkbox.hbs */ "./src/shared/components/checkbox/Checkbox.hbs");
202
+ /* harmony import */ var _Checkbox_hbs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_Checkbox_hbs__WEBPACK_IMPORTED_MODULE_1__);
203
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../utils */ "./src/shared/utils/index.ts");
204
+ /* harmony import */ var _BulkCheckboxComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./BulkCheckboxComponent */ "./src/shared/components/checkbox/BulkCheckboxComponent.ts");
205
+ 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); }
206
+
207
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
208
+
209
+ 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); } }
210
+
211
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
212
+
213
+ 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); }
214
+
215
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
216
+
217
+ 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); }; }
218
+
219
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
220
+
221
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
222
+
223
+ 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; } }
224
+
225
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
226
+
227
+
228
+
229
+
230
+
231
+ var CheckboxComponent = /*#__PURE__*/function (_Core$Component) {
232
+ _inherits(CheckboxComponent, _Core$Component);
233
+
234
+ var _super = _createSuper(CheckboxComponent);
235
+
236
+ function CheckboxComponent(options) {
237
+ _classCallCheck(this, CheckboxComponent);
238
+
239
+ return _super.call(this, options);
240
+ }
241
+
242
+ _createClass(CheckboxComponent, [{
243
+ key: "initialize",
244
+ value: function initialize() {
245
+ this.getViewModel();
246
+ this.bindListeners(); // If checked is passed as true, set the checkbox as checked initially
247
+
248
+ if (this.options.checked) {
249
+ var id = this.getItemId();
250
+ this.model.set(id, true, {
251
+ silent: true
252
+ });
253
+ }
254
+ }
255
+ }, {
256
+ key: "getViewModel",
257
+ value: function getViewModel() {
258
+ this.model = _utils__WEBPACK_IMPORTED_MODULE_2__["BulkCheckboxHelper"].GetViewModel(this.options.key, this.options.type);
259
+ }
260
+ }, {
261
+ key: "bindListeners",
262
+ value: function bindListeners() {
263
+ if (!this.options.disabled) this.listenTo(this.model, "change:all change:".concat(this.getItemId()), this.render);
264
+ }
265
+ }, {
266
+ key: "events",
267
+ value: function events() {
268
+ return {
269
+ 'click .custom-checkbox': 'onClickCheckbox',
270
+ 'change .custom-control-input': 'onChangeCheckbox'
271
+ };
272
+ }
273
+ }, {
274
+ key: "getItemId",
275
+ value: function getItemId() {
276
+ return this.options.itemId.toString();
277
+ }
278
+ }, {
279
+ key: "onClickCheckbox",
280
+ value: function onClickCheckbox(e) {
281
+ e.stopPropagation();
282
+ }
283
+ }, {
284
+ key: "onChangeCheckbox",
285
+ value: function onChangeCheckbox() {
286
+ if (this.options.disabled) return;
287
+ var id = this.getItemId();
288
+
289
+ if (!this.model.has(id) && !this.model.get('all')) {
290
+ this.model.set(id, true);
291
+ } else if (this.model.get(id) === false) {
292
+ this.model.set(id, true);
293
+ } else {
294
+ this.model.set(id, false);
295
+ this.model.set(_BulkCheckboxComponent__WEBPACK_IMPORTED_MODULE_3__["ALL_CHECKBOX_ITEM_ID"], false);
296
+ }
297
+
298
+ return;
299
+ }
300
+ }, {
301
+ key: "viewOptions",
302
+ value: function viewOptions() {
303
+ var id = this.getItemId();
304
+ var checked = this.model.has(id) ? this.model.get(id) : this.model.get('all');
305
+ return {
306
+ id: id,
307
+ checked: checked,
308
+ disabled: this.options.disabled,
309
+ checkboxClassName: this.options.checkboxClassName
310
+ };
311
+ }
312
+ }, {
313
+ key: "name",
314
+ get: function get() {
315
+ return 'CheckboxComponent';
316
+ }
317
+ }, {
318
+ key: "className",
319
+ get: function get() {
320
+ return this.options.className;
321
+ }
322
+ }, {
323
+ key: "template",
324
+ get: function get() {
325
+ return _Checkbox_hbs__WEBPACK_IMPORTED_MODULE_1___default.a;
326
+ }
327
+ }]);
328
+
329
+ return CheckboxComponent;
330
+ }(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].Component);
331
+
332
+ /***/ })
333
+
334
+ }]);
335
+ //# sourceMappingURL=4.chunk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/shared/components/checkbox/BulkCheckboxComponent.ts","file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/shared/components/checkbox/Checkbox.hbs","file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/shared/components/checkbox/CheckboxComponent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAGA;AAEA;AACA;AAEO,IAAM,oBAAoB,GAAW,cAArC;AAUA,IAAM,qBAAb;AAAA;;AAAA;;AAGE,iCAAY,OAAZ,EAAiD;AAAA;;AAAA,6BACzC,OADyC;AAEhD;;AALH;AAAA;AAAA,iCAOmB;AACf,WAAK,YAAL;AACA,WAAK,aAAL;AACD;AAVH;AAAA;AAAA,mCAwBsB;AAClB,WAAK,KAAL,GAAa,yDAAkB,CAAC,YAAnB,CAAgC,KAAK,OAAL,CAAa,GAA7C,EAAkD,KAAK,OAAL,CAAa,IAA/D,CAAb;AACD;AA1BH;AAAA;AAAA,oCA4BuB;AACnB,UAAI,KAAK,OAAL,CAAa,QAAjB,EAA2B;AAC3B,WAAK,QAAL,CAAc,KAAK,KAAnB,EAA0B,QAA1B,EAAoC,KAAK,QAAzC;AACD;AA/BH;AAAA;AAAA,6BAiCe;AACX,aAAO;AACL,wCAAgC;AAD3B,OAAP;AAGD;AArCH;AAAA;AAAA,+BAuCkB;AACd,WAAK,eAAL;AAEA,WAAK,MAAL;AACD;AA3CH;AAAA;AAAA,sCA6CyB;AACrB,UAAM,MAAM,GAAG,kDAAS,KAAK,KAAL,CAAW,IAAX,CAAgB,KAAhB,EAAuB,oBAAvB,CAAT,CAAf;;AAEA,UAAI,CAAC,iDAAQ,MAAR,EAAgB,WAAC;AAAA,eAAI,CAAC,CAAC,CAAN;AAAA,OAAjB,CAAD,IACC,EAAE,KAAK,KAAL,CAAW,GAAX,CAAe,KAAf,KAAyB,MAAM,CAAC,MAAP,KAAkB,KAAK,OAAL,CAAa,aAA1D,CADL,EAC+E;AAE/E,WAAK,KAAL,CAAW,GAAX;AACE,WAAG,EAAE;AADP,SAEG,KAAK,SAAL,EAFH,EAEsB,IAFtB;AAID;AAvDH;AAAA;AAAA,gCAyDmB;AACf,aAAO,oBAAP;AACD;AA3DH;AAAA;AAAA,8BA6DiB;AACb,UAAI,KAAK,KAAL,CAAW,GAAX,CAAe,KAAK,SAAL,EAAf,CAAJ,EAAsC;AACpC,aAAK,KAAL,CAAW,KAAX;AACD,OAFD,MAEO;AACL,aAAK,KAAL,CAAW,KAAX;AACA,aAAK,KAAL,CAAW,GAAX;AACE,aAAG,EAAE;AADP,WAEG,KAAK,SAAL,EAFH,EAEsB,IAFtB;AAID;AACF;AAvEH;AAAA;AAAA,kCAyEoB;AAChB,UAAM,EAAE,GAAG,KAAK,SAAL,EAAX;AAEA,aAAO;AACL,UAAE,EAAF,EADK;AAEL,eAAO,EAAE,KAAK,KAAL,CAAW,GAAX,CAAe,oBAAf,CAFJ;AAGL,gBAAQ,EAAE,KAAK,OAAL,CAAa,QAHlB;AAIL,yBAAiB,EAAE,KAAK,OAAL,CAAa;AAJ3B,OAAP;AAMD;AAlFH;AAAA;AAAA,wBAYiB;AACb,aAAO,uBAAP;AACD;AAdH;AAAA;AAAA,wBAgBsB;AAClB,aAAO,KAAK,OAAL,CAAa,SAApB;AACD;AAlBH;AAAA;AAAA,wBAoBqB;AACjB,aAAO,oDAAP;AACD;AAtBH;;AAAA;AAAA,EAA2C,8DAAI,CAAC,SAAhD,E;;;;;;;;;;;AClBA,iBAAiB,mBAAO,CAAC,8BAAY;AACrC,iEAAiE;AACjE;AACA,CAAC;AACD;AACA,CAAC;AACD;AACA,CAAC;AACD,gLAAgL;;AAEhL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wIAAwI,yBAAyB,yEAAyE;AAC1O;AACA,sIAAsI,qBAAqB,yEAAyE;AACpO;AACA,uIAAuI,qBAAqB,yEAAyE;AACrO;AACA,wIAAwI,yBAAyB,yEAAyE;AAC1O;AACA;AACA,gBAAgB;AAChB,CAAC,gBAAgB,E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC1BjB;AAEA;AACA;AACA;AAWO,IAAM,iBAAb;AAAA;;AAAA;;AAGE,6BAAY,OAAZ,EAA6C;AAAA;;AAAA,6BACrC,OADqC;AAE5C;;AALH;AAAA;AAAA,iCAOmB;AACf,WAAK,YAAL;AACA,WAAK,aAAL,GAFe,CAIf;;AACA,UAAI,KAAK,OAAL,CAAa,OAAjB,EAA0B;AACxB,YAAM,EAAE,GAAG,KAAK,SAAL,EAAX;AACA,aAAK,KAAL,CAAW,GAAX,CAAe,EAAf,EAAmB,IAAnB,EAAyB;AAAE,gBAAM,EAAE;AAAV,SAAzB;AACD;AACF;AAhBH;AAAA;AAAA,mCA8BsB;AAClB,WAAK,KAAL,GAAa,yDAAkB,CAAC,YAAnB,CAAgC,KAAK,OAAL,CAAa,GAA7C,EAAkD,KAAK,OAAL,CAAa,IAA/D,CAAb;AACD;AAhCH;AAAA;AAAA,oCAkCuB;AACnB,UAAI,CAAC,KAAK,OAAL,CAAa,QAAlB,EACE,KAAK,QAAL,CAAc,KAAK,KAAnB,8BAA+C,KAAK,SAAL,EAA/C,GAAmE,KAAK,MAAxE;AACH;AArCH;AAAA;AAAA,6BAuCe;AACX,aAAO;AACL,kCAA0B,iBADrB;AAEL,wCAAgC;AAF3B,OAAP;AAID;AA5CH;AAAA;AAAA,gCA8CmB;AACf,aAAO,KAAK,OAAL,CAAa,MAAb,CAAoB,QAApB,EAAP;AACD;AAhDH;AAAA;AAAA,oCAkD0B,CAlD1B,EAkDyC;AACrC,OAAC,CAAC,eAAF;AACD;AApDH;AAAA;AAAA,uCAsD0B;AACtB,UAAI,KAAK,OAAL,CAAa,QAAjB,EACE;AAEF,UAAM,EAAE,GAAG,KAAK,SAAL,EAAX;;AAEA,UAAI,CAAC,KAAK,KAAL,CAAW,GAAX,CAAe,EAAf,CAAD,IAAuB,CAAC,KAAK,KAAL,CAAW,GAAX,CAAe,KAAf,CAA5B,EAAmD;AACjD,aAAK,KAAL,CAAW,GAAX,CAAe,EAAf,EAAmB,IAAnB;AACD,OAFD,MAEO,IAAI,KAAK,KAAL,CAAW,GAAX,CAAe,EAAf,MAAuB,KAA3B,EAAkC;AACvC,aAAK,KAAL,CAAW,GAAX,CAAe,EAAf,EAAmB,IAAnB;AACD,OAFM,MAEA;AACL,aAAK,KAAL,CAAW,GAAX,CAAe,EAAf,EAAmB,KAAnB;AACA,aAAK,KAAL,CAAW,GAAX,CAAe,2EAAf,EAAqC,KAArC;AACD;;AACD;AACD;AArEH;AAAA;AAAA,kCAuEoB;AAChB,UAAM,EAAE,GAAG,KAAK,SAAL,EAAX;AACA,UAAM,OAAO,GAAG,KAAK,KAAL,CAAW,GAAX,CAAe,EAAf,IAAqB,KAAK,KAAL,CAAW,GAAX,CAAe,EAAf,CAArB,GAA0C,KAAK,KAAL,CAAW,GAAX,CAAe,KAAf,CAA1D;AAEA,aAAO;AACL,UAAE,EAAF,EADK;AAEL,eAAO,EAAP,OAFK;AAGL,gBAAQ,EAAE,KAAK,OAAL,CAAa,QAHlB;AAIL,yBAAiB,EAAE,KAAK,OAAL,CAAa;AAJ3B,OAAP;AAMD;AAjFH;AAAA;AAAA,wBAkBiB;AACb,aAAO,mBAAP;AACD;AApBH;AAAA;AAAA,wBAsBsB;AAClB,aAAO,KAAK,OAAL,CAAa,SAApB;AACD;AAxBH;AAAA;AAAA,wBA0BqB;AACjB,aAAO,oDAAP;AACD;AA5BH;;AAAA;AAAA,EAAuC,8DAAI,CAAC,SAA5C,E","file":"scripts/4.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 BulkCheckboxTemplate from './Checkbox.hbs';\r\nimport { BulkCheckboxHelper } from 'shared/utils';\r\n\r\nexport const ALL_CHECKBOX_ITEM_ID: string = 'checkbox-all';\r\n\r\ninterface BulkCheckboxComponentOptions extends Core.ComponentOptions {\r\n checkboxClassName?: string;\r\n key: string;\r\n type: string;\r\n disabled?: boolean;\r\n numberOfItems: number;\r\n}\r\n\r\nexport class BulkCheckboxComponent extends Core.Component {\r\n public options: BulkCheckboxComponentOptions;\r\n\r\n constructor(options: BulkCheckboxComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public initialize(): void {\r\n this.getViewModel();\r\n this.bindListeners();\r\n }\r\n\r\n public get name(): string {\r\n return 'BulkCheckboxComponent';\r\n }\r\n\r\n public get className(): string {\r\n return this.options.className;\r\n }\r\n\r\n public get template(): any {\r\n return BulkCheckboxTemplate;\r\n }\r\n\r\n private getViewModel(): void {\r\n this.model = BulkCheckboxHelper.GetViewModel(this.options.key, this.options.type);\r\n }\r\n\r\n private bindListeners(): void {\r\n if (this.options.disabled) return;\r\n this.listenTo(this.model, 'change', this.onChange);\r\n }\r\n\r\n public events(): ObjectHash {\r\n return {\r\n 'change .custom-control-input': 'onClick'\r\n };\r\n }\r\n\r\n private onChange(): void {\r\n this.checkAllChecked();\r\n\r\n this.render();\r\n }\r\n\r\n private checkAllChecked(): void {\r\n const values = _.values(this.model.omit('all', ALL_CHECKBOX_ITEM_ID));\r\n\r\n if (!_.every(values, v => !!v)\r\n || !(this.model.get('all') || values.length === this.options.numberOfItems)) return;\r\n\r\n this.model.set({\r\n all: true,\r\n [this.getItemId()]: true\r\n });\r\n }\r\n\r\n private getItemId(): string {\r\n return ALL_CHECKBOX_ITEM_ID;\r\n }\r\n\r\n private onClick(): void {\r\n if (this.model.get(this.getItemId())) {\r\n this.model.clear();\r\n } else {\r\n this.model.clear();\r\n this.model.set({\r\n all: true,\r\n [this.getItemId()]: true\r\n });\r\n }\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n const id = this.getItemId();\r\n\r\n return {\r\n id,\r\n checked: this.model.get(ALL_CHECKBOX_ITEM_ID),\r\n disabled: this.options.disabled,\r\n checkboxClassName: this.options.checkboxClassName\r\n };\r\n }\r\n}","var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n return \" cursor-pointer\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n return \"checked\";\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 || {});\n\n return \"<div class=\\\"custom-control custom-checkbox \"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.checkboxClassName : stack1), depth0))\n + \"\\\">\\r\\n <input name=\\\"checkbox-\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.id : stack1), depth0))\n + \"\\\" id=\\\"checkbox-\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.id : stack1), depth0))\n + \"\\\" type=\\\"checkbox\\\" class=\\\"custom-control-input\"\n + ((stack1 = helpers.unless.call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.disabled : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\\" \"\n + ((stack1 = helpers[\"if\"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.checked : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \" \"\n + ((stack1 = helpers[\"if\"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.disabled : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \" />\\r\\n <label class=\\\"custom-control-label\"\n + ((stack1 = helpers.unless.call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.disabled : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\\" for=\\\"checkbox-\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.id : stack1), depth0))\n + \"\\\">&nbsp;</label>\\r\\n</div>\";\n},\"useData\":true});","import { ObjectHash } from 'backbone';\r\nimport { Core } from 'libs/common/core';\r\n\r\nimport CheckboxTemplate from './Checkbox.hbs';\r\nimport { BulkCheckboxHelper } from 'shared/utils';\r\nimport { ALL_CHECKBOX_ITEM_ID } from './BulkCheckboxComponent';\r\n\r\nexport interface CheckboxComponentOptions extends Core.ComponentOptions {\r\n checkboxClassName?: string;\r\n itemId: number;\r\n key: string;\r\n type: string;\r\n checked?: boolean;\r\n disabled?: boolean;\r\n}\r\n\r\nexport class CheckboxComponent extends Core.Component {\r\n public options: CheckboxComponentOptions;\r\n\r\n constructor(options: CheckboxComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public initialize(): void {\r\n this.getViewModel();\r\n this.bindListeners();\r\n\r\n // If checked is passed as true, set the checkbox as checked initially\r\n if (this.options.checked) {\r\n const id = this.getItemId();\r\n this.model.set(id, true, { silent: true });\r\n }\r\n }\r\n\r\n public get name(): string {\r\n return 'CheckboxComponent';\r\n }\r\n\r\n public get className(): string {\r\n return this.options.className;\r\n }\r\n\r\n public get template(): any {\r\n return CheckboxTemplate;\r\n }\r\n\r\n private getViewModel(): void {\r\n this.model = BulkCheckboxHelper.GetViewModel(this.options.key, this.options.type);\r\n }\r\n\r\n private bindListeners(): void {\r\n if (!this.options.disabled)\r\n this.listenTo(this.model, `change:all change:${this.getItemId()}`, this.render);\r\n }\r\n\r\n public events(): ObjectHash {\r\n return {\r\n 'click .custom-checkbox': 'onClickCheckbox',\r\n 'change .custom-control-input': 'onChangeCheckbox'\r\n };\r\n }\r\n\r\n private getItemId(): string {\r\n return this.options.itemId.toString();\r\n }\r\n\r\n private onClickCheckbox(e: JQuery.Event): void {\r\n e.stopPropagation();\r\n }\r\n\r\n private onChangeCheckbox(): void {\r\n if (this.options.disabled)\r\n return;\r\n\r\n const id = this.getItemId();\r\n\r\n if (!this.model.has(id) && !this.model.get('all')) {\r\n this.model.set(id, true);\r\n } else if (this.model.get(id) === false) {\r\n this.model.set(id, true);\r\n } else {\r\n this.model.set(id, false);\r\n this.model.set(ALL_CHECKBOX_ITEM_ID, false);\r\n }\r\n return;\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n const id = this.getItemId();\r\n const checked = this.model.has(id) ? this.model.get(id) : this.model.get('all');\r\n\r\n return {\r\n id,\r\n checked,\r\n disabled: this.options.disabled,\r\n checkboxClassName: this.options.checkboxClassName\r\n };\r\n }\r\n}"],"sourceRoot":""}
@@ -1 +1 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[40],{1051:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));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 s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(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 p=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)}(c,e);var t,n,r,i=u(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)},1059: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",s={name:[{required:!0,msg:function(){return l.a.getPhrase(a,"folderNameRequired")}},{maxLength:255,msg:function(){return l.a.getPhrase(a,"folderNameExceeds")}}]},u=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({},s,u(o,i)):t?s:n?u(o,i):void 0}},1068:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(6),o=n(2),i=n(3),l=n(1082),a=n(12),s=n(1069),u=n.n(s),c=n(1070),f=n.n(c);function p(e){return(p="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 d(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"!==p(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,s=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),s.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 u.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"}}}])&&d(t.prototype,n),o&&d(t,o),c}(o.a.Component)},1069: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})},1070:function(e,t,n){e.exports={selectBtn:"_2TTgs",list:"_3wN7o",selector:"_3Xf1P",customItem:"_199PI"}},1126:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(2),o=n(282),i=n(12),l=n(1068),a=n(1059),s=n(1127),u=n.n(s);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 p(e,t){return(p=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=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&&p(e,t)}(c,e);var t,n,r,s=d(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),s.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 u.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.f}]}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}}}}}])&&f(t.prototype,n),r&&f(t,r),c}(r.a.Component)},1127: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})},1247: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})},1437:function(e,t,n){"use strict";n.r(t),n.d(t,"RenameFolderView",(function(){return _}));var r=n(1),o=n(6),i=n(30),l=n(5),a=n(2),s=n(42),u=n(0),c=n(282),f=n(1051),p=n(82),d=n(244),h=n(12),y=n(3),b=n(1126),m=n(1247),v=n.n(m);function g(e){return(g="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 w(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 k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(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=S(e);if(t){var o=S(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return P(this,n)}}function P(e,t){return!t||"object"!==g(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 S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(g,e);var t,n,a,m=O(g);function g(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),m.call(this,e)}return t=g,(n=[{key:"initialize",value:function(){this.bindListeners(),this.libraryDataService=l.a.getInstance(u.g.Library,this)}},{key:"bindListeners",value:function(){this.listenTo(u.e.LIBRARY,"folder:".concat(this.options.folderId,":sync"),this.render),this.listenTo(u.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()&&(o.Radio.channel(this.channelName).trigger(d.b.ShowSpinner),this.saveFolder(),this.logAction())}},{key:"logAction",value:function(){var e={id:this.options.folderId,name:this.viewModel.get("name")};s.a.logUserAction(e,this.options.analyticsOptions)}},{key:"saveFolder",value:function(){var e=this;this.libraryDataService.updateFolder(this.viewModel,(function(){e.triggerMethod("hide")}))}},{key:"setUpCollection",value:function(e){this.collection||(this.library=h.f.getLibrary(this.options.folderId,e),this.collection=this.library.children)}},{key:"setUpModel",value:function(e){this.model||(this.model=e,this.setUpViewModel())}},{key:"setUpViewModel",value:function(){if(!this.viewModel){var e="folder:details:".concat(this.options.folderId);this.viewModel=i.a.get(e,this.model.toJSON(),{ctor:p.a})}}},{key:"renderFolderDetails",value:function(){if(this.model&&this.collection){var e=new b.a({model:this.viewModel,channelName:this.channelName,editName:!0,editParent:!1});this.showChildView("folderDetails",e)}}},{key:"onBeforeRender",value:function(){this.libraryDataService.getLibraries(r.bind(this.setUpCollection,this)),this.libraryDataService.getFolderFromLibraries(this.options.folderId,r.bind(this.setUpModel,this)),this.model&&this.collection&&this.spinnerModel.set(d.c.Disabled,!1)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model&&!!this.collection,spinnerEl:h.q.getSpinner({size:h.r.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.renderFolderDetails()}},{key:"name",get:function(){return"RenameFolderView"}},{key:"title",get:function(){return y.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.renameFolder"}},{key:"template",get:function(){return v.a}},{key:"channelName",get:function(){return h.k.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:c.e,title:y.a.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new f.a,channelName:this.channelName,buttonText:y.a.getPhrase(this.lang,"save"),onClick:function(t){return e.onSubmit(t)}}}]}}])&&w(t.prototype,n),a&&w(t,a),g}(a.a.View)}}]);
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[40],{1051:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(2),o=n(243);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 s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(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 p=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)}(c,e);var t,n,r,i=u(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)},1059:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(1),o=n(49),i=n(160),l=n(3),a="libraryEditor.utils",s={name:[{required:!0,msg:function(){return l.a.getPhrase(a,"folderNameRequired")}},{maxLength:255,msg:function(){return l.a.getPhrase(a,"folderNameExceeds")}}]},u=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({},s,u(o,i)):t?s:n?u(o,i):void 0}},1068:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(6),o=n(2),i=n(3),l=n(1082),a=n(12),s=n(1069),u=n.n(s),c=n(1070),f=n.n(c);function p(e){return(p="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 d(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"!==p(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,s=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),s.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 u.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"}}}])&&d(t.prototype,n),o&&d(t,o),c}(o.a.Component)},1069: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})},1070:function(e,t,n){e.exports={selectBtn:"_2TTgs",list:"_3wN7o",selector:"_3Xf1P",customItem:"_199PI"}},1126:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(2),o=n(282),i=n(12),l=n(1068),a=n(1059),s=n(1127),u=n.n(s);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 p(e,t){return(p=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=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&&p(e,t)}(c,e);var t,n,r,s=d(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),s.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 u.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.f}]}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}}}}}])&&f(t.prototype,n),r&&f(t,r),c}(r.a.Component)},1127: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})},1248: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})},1438:function(e,t,n){"use strict";n.r(t),n.d(t,"RenameFolderView",(function(){return _}));var r=n(1),o=n(6),i=n(30),l=n(5),a=n(2),s=n(42),u=n(0),c=n(282),f=n(1051),p=n(82),d=n(243),h=n(12),y=n(3),b=n(1126),m=n(1248),v=n.n(m);function g(e){return(g="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 w(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 k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(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=S(e);if(t){var o=S(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return P(this,n)}}function P(e,t){return!t||"object"!==g(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 S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(g,e);var t,n,a,m=O(g);function g(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),m.call(this,e)}return t=g,(n=[{key:"initialize",value:function(){this.bindListeners(),this.libraryDataService=l.a.getInstance(u.g.Library,this)}},{key:"bindListeners",value:function(){this.listenTo(u.e.LIBRARY,"folder:".concat(this.options.folderId,":sync"),this.render),this.listenTo(u.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()&&(o.Radio.channel(this.channelName).trigger(d.b.ShowSpinner),this.saveFolder(),this.logAction())}},{key:"logAction",value:function(){var e={id:this.options.folderId,name:this.viewModel.get("name")};s.a.logUserAction(e,this.options.analyticsOptions)}},{key:"saveFolder",value:function(){var e=this;this.libraryDataService.updateFolder(this.viewModel,(function(){e.triggerMethod("hide")}))}},{key:"setUpCollection",value:function(e){this.collection||(this.library=h.f.getLibrary(this.options.folderId,e),this.collection=this.library.children)}},{key:"setUpModel",value:function(e){this.model||(this.model=e,this.setUpViewModel())}},{key:"setUpViewModel",value:function(){if(!this.viewModel){var e="folder:details:".concat(this.options.folderId);this.viewModel=i.a.get(e,this.model.toJSON(),{ctor:p.a})}}},{key:"renderFolderDetails",value:function(){if(this.model&&this.collection){var e=new b.a({model:this.viewModel,channelName:this.channelName,editName:!0,editParent:!1});this.showChildView("folderDetails",e)}}},{key:"onBeforeRender",value:function(){this.libraryDataService.getLibraries(r.bind(this.setUpCollection,this)),this.libraryDataService.getFolderFromLibraries(this.options.folderId,r.bind(this.setUpModel,this)),this.model&&this.collection&&this.spinnerModel.set(d.c.Disabled,!1)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model&&!!this.collection,spinnerEl:h.q.getSpinner({size:h.r.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.renderFolderDetails()}},{key:"name",get:function(){return"RenameFolderView"}},{key:"title",get:function(){return y.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.renameFolder"}},{key:"template",get:function(){return v.a}},{key:"channelName",get:function(){return h.k.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:c.e,title:y.a.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new f.a,channelName:this.channelName,buttonText:y.a.getPhrase(this.lang,"save"),onClick:function(t){return e.onSubmit(t)}}}]}}])&&w(t.prototype,n),a&&w(t,a),g}(a.a.View)}}]);