@clickview/library-editor 1.1.23 → 1.1.24-rc.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 (457) hide show
  1. package/dist/css/13.chunk.css +2 -2
  2. package/dist/en.json +1 -1
  3. package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +38 -2
  4. package/dist/libs/common/src/backbone/core/BaseView.d.ts +4 -0
  5. package/dist/libs/common/src/backbone/services/data-providers/SignalRDataProvider.d.ts +3 -3
  6. package/dist/libs/common/src/backbone/utils/UrlHelper.d.ts +1 -0
  7. package/dist/libs/common/src/react/utils/TextHelper.d.ts +9 -0
  8. package/dist/libs/shared/src/constants/AppVariables.d.ts +1 -0
  9. package/dist/libs/shared/src/enums/SettingName.d.ts +15 -1
  10. package/dist/libs/shared/src/interfaces/app-variables/BaseSearchAppVariables.d.ts +1 -0
  11. package/dist/libs/shared/src/interfaces/models/EntitySetting.d.ts +2 -2
  12. package/dist/libs/shared/src/interfaces/models/Theme.d.ts +7 -3
  13. package/dist/libs/shared/src/interfaces/models/User.d.ts +1 -1
  14. package/dist/libs/shared/src/interfaces/services/BaseSettingsDataService.d.ts +7 -0
  15. package/dist/libs/shared/src/interfaces/services/BaseUserDataService.d.ts +4 -0
  16. package/dist/libs/shared/src/interfaces/services/index.d.ts +2 -0
  17. package/dist/libs/shared/src/services/UserDataService.d.ts +4 -3
  18. package/dist/libs/shared/src/utils/ImageHelper.d.ts +1 -0
  19. package/dist/projects/library-editor/src/apps/search/models/SearchAppVariables.d.ts +1 -0
  20. package/dist/projects/library-editor/src/shared/enums/index.d.ts +0 -1
  21. package/dist/projects/library-editor/src/shared/errors/customer-setting/CustomerSettingError.d.ts +1 -1
  22. package/dist/projects/library-editor/src/shared/filters/CustomerSettingsFilter.d.ts +1 -1
  23. package/dist/projects/library-editor/src/shared/services/SettingsDataService.d.ts +6 -2
  24. package/dist/projects/library-editor/src/shared/utils/SettingsHelper.d.ts +1 -1
  25. package/dist/scripts/{0-09e1e33a5c.chunk.js → 0-64f8709b77.chunk.js} +1 -1
  26. package/dist/scripts/1-8f3f74d7ab.chunk.js +1 -0
  27. package/dist/scripts/{10-6c79d8c6f9.chunk.js → 10-c34a9f8786.chunk.js} +1 -1
  28. package/dist/scripts/{11-cecf8d22f0.chunk.js → 11-3dec7d2c7e.chunk.js} +1 -1
  29. package/dist/scripts/{12-dbffa50a92.chunk.js → 12-83486e66d2.chunk.js} +1 -1
  30. package/dist/scripts/13-91676908be.chunk.js +1 -0
  31. package/dist/scripts/{14-b524fbd295.chunk.js → 14-b4fd2ae68c.chunk.js} +1 -1
  32. package/dist/scripts/15-5fa4a707b6.chunk.js +1 -0
  33. package/dist/scripts/{16-b27142fe98.chunk.js → 16-1854ee8917.chunk.js} +1 -1
  34. package/dist/scripts/{17-c3bbe50816.chunk.js → 17-15af3147a3.chunk.js} +1 -1
  35. package/dist/scripts/{2-e6d104415e.chunk.js → 2-7cc9176e8a.chunk.js} +1 -1
  36. package/dist/scripts/{20-6d9086f5db.chunk.js → 20-c4b56b90a7.chunk.js} +1 -1
  37. package/dist/scripts/{21-2f10553302.chunk.js → 21-0ff3390fd0.chunk.js} +1 -1
  38. package/dist/scripts/{22-59ae44b448.chunk.js → 22-a266d3ebaf.chunk.js} +1 -1
  39. package/dist/scripts/23-a1bedc2abf.chunk.js +1 -0
  40. package/dist/scripts/{24-7f21e384d2.chunk.js → 24-5395319afd.chunk.js} +1 -1
  41. package/dist/scripts/{25-f0f7fa16a4.chunk.js → 25-d328075704.chunk.js} +1 -1
  42. package/dist/scripts/{26-e65533bd94.chunk.js → 26-c07a67c304.chunk.js} +1 -1
  43. package/dist/scripts/{27-9dc0f5a4df.chunk.js → 27-7c19dc0e07.chunk.js} +1 -1
  44. package/dist/scripts/{28-26e5c371c7.chunk.js → 28-8453c6a1a5.chunk.js} +1 -1
  45. package/dist/scripts/29-251320ec94.chunk.js +1 -0
  46. package/dist/scripts/{3-5eff8c9df5.chunk.js → 3-b5f655359f.chunk.js} +1 -1
  47. package/dist/scripts/{30-6075c28972.chunk.js → 30-2040afe178.chunk.js} +1 -1
  48. package/dist/scripts/31-c78e492fff.chunk.js +1 -0
  49. package/dist/scripts/{32-d5a50a7592.chunk.js → 32-1fbaf64553.chunk.js} +1 -1
  50. package/dist/scripts/{33-5ae90ed7d7.chunk.js → 33-7f74b15daa.chunk.js} +1 -1
  51. package/dist/scripts/34-06182d71ca.chunk.js +1 -0
  52. package/dist/scripts/{35-ec8c190357.chunk.js → 35-de846cd9ba.chunk.js} +1 -1
  53. package/dist/scripts/36-969e374669.chunk.js +1 -0
  54. package/dist/scripts/{37-37e8965783.chunk.js → 37-813a5d5c2c.chunk.js} +1 -1
  55. package/dist/scripts/{38-3dc24b8867.chunk.js → 38-0ac4079552.chunk.js} +1 -1
  56. package/dist/scripts/{39-350ff66a2b.chunk.js → 39-1af2b966bb.chunk.js} +1 -1
  57. package/dist/scripts/{4-b3f3c7c71c.chunk.js → 4-3782853ccc.chunk.js} +1 -1
  58. package/dist/scripts/{40-3443f99cb2.chunk.js → 40-de9b14c11c.chunk.js} +1 -1
  59. package/dist/scripts/{41-b5dfd35e9e.chunk.js → 41-a86a413701.chunk.js} +1 -1
  60. package/dist/scripts/{42-103fecb7b6.chunk.js → 42-c6f77d1281.chunk.js} +1 -1
  61. package/dist/scripts/{43-57b07579f7.chunk.js → 43-cacf93c4ef.chunk.js} +1 -1
  62. package/dist/scripts/{44-210d64dffe.chunk.js → 44-4e4902588e.chunk.js} +1 -1
  63. package/dist/scripts/{45-632b07e926.chunk.js → 45-303cff19b8.chunk.js} +1 -1
  64. package/dist/scripts/{46-82cce63cbf.chunk.js → 46-e0150c3a5b.chunk.js} +1 -1
  65. package/dist/scripts/{47-595b4aae87.chunk.js → 47-ed8bb29d9a.chunk.js} +1 -1
  66. package/dist/scripts/{48-fcf6378889.chunk.js → 48-64fe2b207d.chunk.js} +1 -1
  67. package/dist/scripts/{49-d8a4899eb1.chunk.js → 49-b21e03b234.chunk.js} +1 -1
  68. package/dist/scripts/{5-06bc197b1e.chunk.js → 5-eb5ed1d890.chunk.js} +1 -1
  69. package/dist/scripts/{50-11b1a49916.chunk.js → 50-fb3a755d2d.chunk.js} +1 -1
  70. package/dist/scripts/{51-72a75e0265.chunk.js → 51-9df5032226.chunk.js} +1 -1
  71. package/dist/scripts/{52-195f73bcd6.chunk.js → 52-8675ecad38.chunk.js} +1 -1
  72. package/dist/scripts/{53-bb4f37ee25.chunk.js → 53-4f3affc027.chunk.js} +1 -1
  73. package/dist/scripts/{54-7a201d8285.chunk.js → 54-67e3a031f0.chunk.js} +1 -1
  74. package/dist/scripts/{55-be3d7b8805.chunk.js → 55-e62c862627.chunk.js} +1 -1
  75. package/dist/scripts/{56-6aeece1bf1.chunk.js → 56-27ef75b33c.chunk.js} +1 -1
  76. package/dist/scripts/{57-59ee15161b.chunk.js → 57-f761652a6b.chunk.js} +1 -1
  77. package/dist/scripts/{58-8ff58b194a.chunk.js → 58-ac57438815.chunk.js} +1 -1
  78. package/dist/scripts/{59-3d33954fcb.chunk.js → 59-edc8e6eb72.chunk.js} +1 -1
  79. package/dist/scripts/{6-a469872b10.chunk.js → 6-179cf36d4d.chunk.js} +1 -1
  80. package/dist/scripts/{60-f092baa91c.chunk.js → 60-8922b491bc.chunk.js} +1 -1
  81. package/dist/scripts/{61-bd9ef62ccd.chunk.js → 61-eb56d033b9.chunk.js} +1 -1
  82. package/dist/scripts/{62-f15b3bf74c.chunk.js → 62-aa812b2bf2.chunk.js} +1 -1
  83. package/dist/scripts/{63-92757f75e7.chunk.js → 63-7c22b91a88.chunk.js} +1 -1
  84. package/dist/scripts/{64-c5a1c55521.chunk.js → 64-ef6892572c.chunk.js} +1 -1
  85. package/dist/scripts/{65-6bb10ae23b.chunk.js → 65-d818bfb54a.chunk.js} +1 -1
  86. package/dist/scripts/{66-f047027f7d.chunk.js → 66-bba14bbd56.chunk.js} +1 -1
  87. package/dist/scripts/{67-2e1a011200.chunk.js → 67-9ceaced9d2.chunk.js} +1 -1
  88. package/dist/scripts/{68-d5c0ab3fc1.chunk.js → 68-f479a22705.chunk.js} +1 -1
  89. package/dist/scripts/{69-fc8325afc9.chunk.js → 69-0b2b108bf9.chunk.js} +1 -1
  90. package/dist/scripts/{7-58dd909fa3.chunk.js → 7-05174a139c.chunk.js} +1 -1
  91. package/dist/scripts/{70-ceda95013e.chunk.js → 70-19812e042e.chunk.js} +1 -1
  92. package/dist/scripts/{71-6e8fc95beb.chunk.js → 71-0c55aa228f.chunk.js} +1 -1
  93. package/dist/scripts/{72-53fe3338bf.chunk.js → 72-c1ef717851.chunk.js} +1 -1
  94. package/dist/scripts/{8-6974afed28.chunk.js → 8-556650fab2.chunk.js} +1 -1
  95. package/dist/scripts/9-54ec14d3b3.chunk.js +1 -0
  96. package/dist/scripts/bundle-99208a7a66.min.js +8 -0
  97. package/dist/scripts/bundles.json +2 -2
  98. package/dist/scripts/polyfills-73e2407954.min.js +1 -0
  99. package/package.json +3 -3
  100. package/dist/css/1.chunk.css.map +0 -1
  101. package/dist/css/10.chunk.css.map +0 -1
  102. package/dist/css/11.chunk.css +0 -137
  103. package/dist/css/11.chunk.css.map +0 -1
  104. package/dist/css/12.chunk.css.map +0 -1
  105. package/dist/css/13.chunk.css.map +0 -1
  106. package/dist/css/14.chunk.css.map +0 -1
  107. package/dist/css/16.chunk.css.map +0 -1
  108. package/dist/css/17.chunk.css.map +0 -1
  109. package/dist/css/18.chunk.css +0 -20
  110. package/dist/css/18.chunk.css.map +0 -1
  111. package/dist/css/2.chunk.css +0 -145
  112. package/dist/css/2.chunk.css.map +0 -1
  113. package/dist/css/21.chunk.css.map +0 -1
  114. package/dist/css/22.chunk.css.map +0 -1
  115. package/dist/css/23.chunk.css.map +0 -1
  116. package/dist/css/25.chunk.css.map +0 -1
  117. package/dist/css/26.chunk.css.map +0 -1
  118. package/dist/css/28.chunk.css.map +0 -1
  119. package/dist/css/29.chunk.css.map +0 -1
  120. package/dist/css/3.chunk.css.map +0 -1
  121. package/dist/css/30.chunk.css.map +0 -1
  122. package/dist/css/31.chunk.css.map +0 -1
  123. package/dist/css/32.chunk.css.map +0 -1
  124. package/dist/css/33.chunk.css.map +0 -1
  125. package/dist/css/34.chunk.css +0 -21
  126. package/dist/css/34.chunk.css.map +0 -1
  127. package/dist/css/35.chunk.css +0 -20
  128. package/dist/css/35.chunk.css.map +0 -1
  129. package/dist/css/36.chunk.css +0 -14
  130. package/dist/css/36.chunk.css.map +0 -1
  131. package/dist/css/37.chunk.css.map +0 -1
  132. package/dist/css/38.chunk.css.map +0 -1
  133. package/dist/css/40.chunk.css.map +0 -1
  134. package/dist/css/41.chunk.css.map +0 -1
  135. package/dist/css/42.chunk.css.map +0 -1
  136. package/dist/css/43.chunk.css.map +0 -1
  137. package/dist/css/44.chunk.css.map +0 -1
  138. package/dist/css/45.chunk.css.map +0 -1
  139. package/dist/css/46.chunk.css.map +0 -1
  140. package/dist/css/47.chunk.css.map +0 -1
  141. package/dist/css/48.chunk.css.map +0 -1
  142. package/dist/css/49.chunk.css +0 -35
  143. package/dist/css/49.chunk.css.map +0 -1
  144. package/dist/css/50.chunk.css.map +0 -1
  145. package/dist/css/51.chunk.css.map +0 -1
  146. package/dist/css/52.chunk.css +0 -66
  147. package/dist/css/52.chunk.css.map +0 -1
  148. package/dist/css/55.chunk.css.map +0 -1
  149. package/dist/css/56.chunk.css.map +0 -1
  150. package/dist/css/58.chunk.css.map +0 -1
  151. package/dist/css/59.chunk.css.map +0 -1
  152. package/dist/css/6.chunk.css.map +0 -1
  153. package/dist/css/60.chunk.css +0 -18
  154. package/dist/css/60.chunk.css.map +0 -1
  155. package/dist/css/62.chunk.css.map +0 -1
  156. package/dist/css/63.chunk.css +0 -170
  157. package/dist/css/63.chunk.css.map +0 -1
  158. package/dist/css/67.chunk.css +0 -78
  159. package/dist/css/67.chunk.css.map +0 -1
  160. package/dist/css/68.chunk.css +0 -17
  161. package/dist/css/68.chunk.css.map +0 -1
  162. package/dist/css/69.chunk.css +0 -17
  163. package/dist/css/69.chunk.css.map +0 -1
  164. package/dist/css/7.chunk.css.map +0 -1
  165. package/dist/css/70.chunk.css +0 -23
  166. package/dist/css/70.chunk.css.map +0 -1
  167. package/dist/css/71.chunk.css +0 -40
  168. package/dist/css/71.chunk.css.map +0 -1
  169. package/dist/css/72.chunk.css +0 -16
  170. package/dist/css/72.chunk.css.map +0 -1
  171. package/dist/css/73.chunk.css +0 -37
  172. package/dist/css/73.chunk.css.map +0 -1
  173. package/dist/css/74.chunk.css +0 -29
  174. package/dist/css/74.chunk.css.map +0 -1
  175. package/dist/css/75.chunk.css +0 -6
  176. package/dist/css/75.chunk.css.map +0 -1
  177. package/dist/css/76.chunk.css +0 -6
  178. package/dist/css/76.chunk.css.map +0 -1
  179. package/dist/css/8.chunk.css.map +0 -1
  180. package/dist/css/library-editor-app.css.map +0 -1
  181. package/dist/projects/library-editor/src/shared/enums/Settings.d.ts +0 -18
  182. package/dist/scripts/0-f604eee110.chunk.js +0 -1
  183. package/dist/scripts/0.chunk.js +0 -1034
  184. package/dist/scripts/0.chunk.js.map +0 -1
  185. package/dist/scripts/1-056bd8c79b.chunk.js +0 -1
  186. package/dist/scripts/1-a66bb44471.chunk.js +0 -1
  187. package/dist/scripts/1.chunk.js +0 -442
  188. package/dist/scripts/1.chunk.js.map +0 -1
  189. package/dist/scripts/10-028c6001e1.chunk.js +0 -1
  190. package/dist/scripts/10.chunk.js +0 -820
  191. package/dist/scripts/10.chunk.js.map +0 -1
  192. package/dist/scripts/11-6eef9e160e.chunk.js +0 -11
  193. package/dist/scripts/11.chunk.js +0 -4091
  194. package/dist/scripts/11.chunk.js.map +0 -1
  195. package/dist/scripts/12-d3f51f4e06.chunk.js +0 -1
  196. package/dist/scripts/12.chunk.js +0 -555
  197. package/dist/scripts/12.chunk.js.map +0 -1
  198. package/dist/scripts/13-37e5cfab3e.chunk.js +0 -1
  199. package/dist/scripts/13-4029d31569.chunk.js +0 -1
  200. package/dist/scripts/13.chunk.js +0 -373
  201. package/dist/scripts/13.chunk.js.map +0 -1
  202. package/dist/scripts/14-4c94f97e4e.chunk.js +0 -1
  203. package/dist/scripts/14.chunk.js +0 -2386
  204. package/dist/scripts/14.chunk.js.map +0 -1
  205. package/dist/scripts/15-1ff1252d1a.chunk.js +0 -1
  206. package/dist/scripts/15-ec9aa4878b.chunk.js +0 -1
  207. package/dist/scripts/15.chunk.js +0 -314
  208. package/dist/scripts/15.chunk.js.map +0 -1
  209. package/dist/scripts/16-5bc8299e14.chunk.js +0 -1
  210. package/dist/scripts/16.chunk.js +0 -1290
  211. package/dist/scripts/16.chunk.js.map +0 -1
  212. package/dist/scripts/17-9fe035f9e2.chunk.js +0 -1
  213. package/dist/scripts/17.chunk.js +0 -381
  214. package/dist/scripts/17.chunk.js.map +0 -1
  215. package/dist/scripts/18.chunk.js +0 -393
  216. package/dist/scripts/18.chunk.js.map +0 -1
  217. package/dist/scripts/19.chunk.js +0 -364
  218. package/dist/scripts/19.chunk.js.map +0 -1
  219. package/dist/scripts/2-2cc3988222.chunk.js +0 -1
  220. package/dist/scripts/2.chunk.js +0 -523
  221. package/dist/scripts/2.chunk.js.map +0 -1
  222. package/dist/scripts/20-60e4eee833.chunk.js +0 -1
  223. package/dist/scripts/20.chunk.js +0 -317
  224. package/dist/scripts/20.chunk.js.map +0 -1
  225. package/dist/scripts/21-a7fffe8852.chunk.js +0 -1
  226. package/dist/scripts/21.chunk.js +0 -531
  227. package/dist/scripts/21.chunk.js.map +0 -1
  228. package/dist/scripts/22-f670791432.chunk.js +0 -1
  229. package/dist/scripts/22.chunk.js +0 -354
  230. package/dist/scripts/22.chunk.js.map +0 -1
  231. package/dist/scripts/23-11e008ee63.chunk.js +0 -1
  232. package/dist/scripts/23-4d26d6300a.chunk.js +0 -1
  233. package/dist/scripts/23.chunk.js +0 -604
  234. package/dist/scripts/23.chunk.js.map +0 -1
  235. package/dist/scripts/24-813ef82099.chunk.js +0 -1
  236. package/dist/scripts/24.chunk.js +0 -318
  237. package/dist/scripts/24.chunk.js.map +0 -1
  238. package/dist/scripts/25-023d08a591.chunk.js +0 -1
  239. package/dist/scripts/25.chunk.js +0 -365
  240. package/dist/scripts/25.chunk.js.map +0 -1
  241. package/dist/scripts/26-a9fcf0d596.chunk.js +0 -1
  242. package/dist/scripts/26.chunk.js +0 -442
  243. package/dist/scripts/26.chunk.js.map +0 -1
  244. package/dist/scripts/27-84f7bbade6.chunk.js +0 -1
  245. package/dist/scripts/27.chunk.js +0 -3630
  246. package/dist/scripts/27.chunk.js.map +0 -1
  247. package/dist/scripts/28-cdf603f4cf.chunk.js +0 -1
  248. package/dist/scripts/28.chunk.js +0 -3173
  249. package/dist/scripts/28.chunk.js.map +0 -1
  250. package/dist/scripts/29-61415c2af0.chunk.js +0 -1
  251. package/dist/scripts/29-8278d23f9b.chunk.js +0 -1
  252. package/dist/scripts/29.chunk.js +0 -3088
  253. package/dist/scripts/29.chunk.js.map +0 -1
  254. package/dist/scripts/3-1fa81c9d9b.chunk.js +0 -1
  255. package/dist/scripts/3.chunk.js +0 -833
  256. package/dist/scripts/3.chunk.js.map +0 -1
  257. package/dist/scripts/30-7ab880728c.chunk.js +0 -1
  258. package/dist/scripts/30.chunk.js +0 -1852
  259. package/dist/scripts/30.chunk.js.map +0 -1
  260. package/dist/scripts/31-aa4cd0f45e.chunk.js +0 -1
  261. package/dist/scripts/31-e35ae4e153.chunk.js +0 -1
  262. package/dist/scripts/31.chunk.js +0 -958
  263. package/dist/scripts/31.chunk.js.map +0 -1
  264. package/dist/scripts/32-7717941f1d.chunk.js +0 -1
  265. package/dist/scripts/32.chunk.js +0 -1235
  266. package/dist/scripts/32.chunk.js.map +0 -1
  267. package/dist/scripts/33-6da33143ea.chunk.js +0 -1
  268. package/dist/scripts/33.chunk.js +0 -792
  269. package/dist/scripts/33.chunk.js.map +0 -1
  270. package/dist/scripts/34-27e40f4d4b.chunk.js +0 -1
  271. package/dist/scripts/34-50402c1835.chunk.js +0 -1
  272. package/dist/scripts/34.chunk.js +0 -990
  273. package/dist/scripts/34.chunk.js.map +0 -1
  274. package/dist/scripts/35-3260300446.chunk.js +0 -1
  275. package/dist/scripts/35.chunk.js +0 -518
  276. package/dist/scripts/35.chunk.js.map +0 -1
  277. package/dist/scripts/36-4d467bc42e.chunk.js +0 -1
  278. package/dist/scripts/36-bec0c74d05.chunk.js +0 -1
  279. package/dist/scripts/36.chunk.js +0 -335
  280. package/dist/scripts/36.chunk.js.map +0 -1
  281. package/dist/scripts/37-3916177181.chunk.js +0 -1
  282. package/dist/scripts/37.chunk.js +0 -236
  283. package/dist/scripts/37.chunk.js.map +0 -1
  284. package/dist/scripts/38-89f7c22ea8.chunk.js +0 -1
  285. package/dist/scripts/38.chunk.js +0 -315
  286. package/dist/scripts/38.chunk.js.map +0 -1
  287. package/dist/scripts/39-9456631219.chunk.js +0 -1
  288. package/dist/scripts/39.chunk.js +0 -116
  289. package/dist/scripts/39.chunk.js.map +0 -1
  290. package/dist/scripts/4-a7f6d378e0.chunk.js +0 -1
  291. package/dist/scripts/4.chunk.js +0 -335
  292. package/dist/scripts/4.chunk.js.map +0 -1
  293. package/dist/scripts/40-f65196723f.chunk.js +0 -1
  294. package/dist/scripts/40.chunk.js +0 -2493
  295. package/dist/scripts/40.chunk.js.map +0 -1
  296. package/dist/scripts/41-70b16d99d0.chunk.js +0 -1
  297. package/dist/scripts/41.chunk.js +0 -1782
  298. package/dist/scripts/41.chunk.js.map +0 -1
  299. package/dist/scripts/42-e17f214d6c.chunk.js +0 -1
  300. package/dist/scripts/42.chunk.js +0 -2116
  301. package/dist/scripts/42.chunk.js.map +0 -1
  302. package/dist/scripts/43-6826fbc7d4.chunk.js +0 -1
  303. package/dist/scripts/43.chunk.js +0 -2243
  304. package/dist/scripts/43.chunk.js.map +0 -1
  305. package/dist/scripts/44-593e820fa2.chunk.js +0 -1
  306. package/dist/scripts/44.chunk.js +0 -1024
  307. package/dist/scripts/44.chunk.js.map +0 -1
  308. package/dist/scripts/45-8231a03833.chunk.js +0 -1
  309. package/dist/scripts/45.chunk.js +0 -1065
  310. package/dist/scripts/45.chunk.js.map +0 -1
  311. package/dist/scripts/46-682ca88fd9.chunk.js +0 -1
  312. package/dist/scripts/46.chunk.js +0 -656
  313. package/dist/scripts/46.chunk.js.map +0 -1
  314. package/dist/scripts/47-aec7cf95e8.chunk.js +0 -1
  315. package/dist/scripts/47.chunk.js +0 -735
  316. package/dist/scripts/47.chunk.js.map +0 -1
  317. package/dist/scripts/48-7b09165697.chunk.js +0 -1
  318. package/dist/scripts/48.chunk.js +0 -994
  319. package/dist/scripts/48.chunk.js.map +0 -1
  320. package/dist/scripts/49-0e6ceb191f.chunk.js +0 -1
  321. package/dist/scripts/49.chunk.js +0 -759
  322. package/dist/scripts/49.chunk.js.map +0 -1
  323. package/dist/scripts/5-e2e64bc05f.chunk.js +0 -1
  324. package/dist/scripts/5.chunk.js +0 -15
  325. package/dist/scripts/5.chunk.js.map +0 -1
  326. package/dist/scripts/50-fa6f6fd1dc.chunk.js +0 -1
  327. package/dist/scripts/50.chunk.js +0 -528
  328. package/dist/scripts/50.chunk.js.map +0 -1
  329. package/dist/scripts/51-1c9fca4604.chunk.js +0 -1
  330. package/dist/scripts/51.chunk.js +0 -932
  331. package/dist/scripts/51.chunk.js.map +0 -1
  332. package/dist/scripts/52-ebce0c9f12.chunk.js +0 -1
  333. package/dist/scripts/52.chunk.js +0 -408
  334. package/dist/scripts/52.chunk.js.map +0 -1
  335. package/dist/scripts/53-c6807d4e0b.chunk.js +0 -1
  336. package/dist/scripts/53.chunk.js +0 -754
  337. package/dist/scripts/53.chunk.js.map +0 -1
  338. package/dist/scripts/54-e6195aa62a.chunk.js +0 -1
  339. package/dist/scripts/54.chunk.js +0 -681
  340. package/dist/scripts/54.chunk.js.map +0 -1
  341. package/dist/scripts/55-f9f9a251af.chunk.js +0 -1
  342. package/dist/scripts/55.chunk.js +0 -645
  343. package/dist/scripts/55.chunk.js.map +0 -1
  344. package/dist/scripts/56-20f27f96db.chunk.js +0 -1
  345. package/dist/scripts/56.chunk.js +0 -346
  346. package/dist/scripts/56.chunk.js.map +0 -1
  347. package/dist/scripts/57-b25862dbf0.chunk.js +0 -1
  348. package/dist/scripts/57.chunk.js +0 -422
  349. package/dist/scripts/57.chunk.js.map +0 -1
  350. package/dist/scripts/58-edf06f18f9.chunk.js +0 -1
  351. package/dist/scripts/58.chunk.js +0 -437
  352. package/dist/scripts/58.chunk.js.map +0 -1
  353. package/dist/scripts/59-241a666e49.chunk.js +0 -1
  354. package/dist/scripts/59.chunk.js +0 -342
  355. package/dist/scripts/59.chunk.js.map +0 -1
  356. package/dist/scripts/6-c631df7bda.chunk.js +0 -1
  357. package/dist/scripts/6.chunk.js +0 -484
  358. package/dist/scripts/6.chunk.js.map +0 -1
  359. package/dist/scripts/60-ac631fa385.chunk.js +0 -1
  360. package/dist/scripts/60.chunk.js +0 -254
  361. package/dist/scripts/60.chunk.js.map +0 -1
  362. package/dist/scripts/61-360e50b6cb.chunk.js +0 -1
  363. package/dist/scripts/61.chunk.js +0 -409
  364. package/dist/scripts/61.chunk.js.map +0 -1
  365. package/dist/scripts/62-22ee1d2a94.chunk.js +0 -1
  366. package/dist/scripts/62.chunk.js +0 -142
  367. package/dist/scripts/62.chunk.js.map +0 -1
  368. package/dist/scripts/63-25413d744e.chunk.js +0 -1
  369. package/dist/scripts/63.chunk.js +0 -147
  370. package/dist/scripts/63.chunk.js.map +0 -1
  371. package/dist/scripts/64-1b027092be.chunk.js +0 -1
  372. package/dist/scripts/64.chunk.js +0 -439
  373. package/dist/scripts/64.chunk.js.map +0 -1
  374. package/dist/scripts/65-c8a9aae545.chunk.js +0 -1
  375. package/dist/scripts/65.chunk.js +0 -582
  376. package/dist/scripts/65.chunk.js.map +0 -1
  377. package/dist/scripts/66-20aec598ca.chunk.js +0 -1
  378. package/dist/scripts/66.chunk.js +0 -442
  379. package/dist/scripts/66.chunk.js.map +0 -1
  380. package/dist/scripts/67-d8d1cb35a4.chunk.js +0 -1
  381. package/dist/scripts/67.chunk.js +0 -295
  382. package/dist/scripts/67.chunk.js.map +0 -1
  383. package/dist/scripts/68-869ea333d9.chunk.js +0 -1
  384. package/dist/scripts/68.chunk.js +0 -165
  385. package/dist/scripts/68.chunk.js.map +0 -1
  386. package/dist/scripts/69-c4ff3e5568.chunk.js +0 -1
  387. package/dist/scripts/69.chunk.js +0 -248
  388. package/dist/scripts/69.chunk.js.map +0 -1
  389. package/dist/scripts/7-1d94e0bb0c.chunk.js +0 -1
  390. package/dist/scripts/7.chunk.js +0 -309
  391. package/dist/scripts/7.chunk.js.map +0 -1
  392. package/dist/scripts/70-171dcf9fe1.chunk.js +0 -1
  393. package/dist/scripts/70.chunk.js +0 -207
  394. package/dist/scripts/70.chunk.js.map +0 -1
  395. package/dist/scripts/71-33e7082ca2.chunk.js +0 -1
  396. package/dist/scripts/71.chunk.js +0 -237
  397. package/dist/scripts/71.chunk.js.map +0 -1
  398. package/dist/scripts/72-2eef8b13b0.chunk.js +0 -1
  399. package/dist/scripts/72.chunk.js +0 -331
  400. package/dist/scripts/72.chunk.js.map +0 -1
  401. package/dist/scripts/73.chunk.js +0 -404
  402. package/dist/scripts/73.chunk.js.map +0 -1
  403. package/dist/scripts/74.chunk.js +0 -301
  404. package/dist/scripts/74.chunk.js.map +0 -1
  405. package/dist/scripts/75.chunk.js +0 -231
  406. package/dist/scripts/75.chunk.js.map +0 -1
  407. package/dist/scripts/76.chunk.js +0 -157
  408. package/dist/scripts/76.chunk.js.map +0 -1
  409. package/dist/scripts/77.chunk.js +0 -307
  410. package/dist/scripts/77.chunk.js.map +0 -1
  411. package/dist/scripts/78.chunk.js +0 -249
  412. package/dist/scripts/78.chunk.js.map +0 -1
  413. package/dist/scripts/79.chunk.js +0 -282
  414. package/dist/scripts/79.chunk.js.map +0 -1
  415. package/dist/scripts/8-34ae87490f.chunk.js +0 -1
  416. package/dist/scripts/8.chunk.js +0 -307
  417. package/dist/scripts/8.chunk.js.map +0 -1
  418. package/dist/scripts/80.chunk.js +0 -308
  419. package/dist/scripts/80.chunk.js.map +0 -1
  420. package/dist/scripts/81.chunk.js +0 -366
  421. package/dist/scripts/81.chunk.js.map +0 -1
  422. package/dist/scripts/82.chunk.js +0 -314
  423. package/dist/scripts/82.chunk.js.map +0 -1
  424. package/dist/scripts/83.chunk.js +0 -328
  425. package/dist/scripts/83.chunk.js.map +0 -1
  426. package/dist/scripts/84.chunk.js +0 -313
  427. package/dist/scripts/84.chunk.js.map +0 -1
  428. package/dist/scripts/85.chunk.js +0 -291
  429. package/dist/scripts/85.chunk.js.map +0 -1
  430. package/dist/scripts/86.chunk.js +0 -119
  431. package/dist/scripts/86.chunk.js.map +0 -1
  432. package/dist/scripts/87.chunk.js +0 -219
  433. package/dist/scripts/87.chunk.js.map +0 -1
  434. package/dist/scripts/88.chunk.js +0 -194
  435. package/dist/scripts/88.chunk.js.map +0 -1
  436. package/dist/scripts/89.chunk.js +0 -522
  437. package/dist/scripts/89.chunk.js.map +0 -1
  438. package/dist/scripts/9-0d7004dd33.chunk.js +0 -1
  439. package/dist/scripts/9-9279038caa.chunk.js +0 -1
  440. package/dist/scripts/9.chunk.js +0 -222
  441. package/dist/scripts/9.chunk.js.map +0 -1
  442. package/dist/scripts/90.chunk.js +0 -337
  443. package/dist/scripts/90.chunk.js.map +0 -1
  444. package/dist/scripts/91.chunk.js +0 -131
  445. package/dist/scripts/91.chunk.js.map +0 -1
  446. package/dist/scripts/92.chunk.js +0 -266
  447. package/dist/scripts/92.chunk.js.map +0 -1
  448. package/dist/scripts/bundle-06dc1f4908.min.js +0 -8
  449. package/dist/scripts/bundle-8498807388.min.js +0 -1
  450. package/dist/scripts/bundle-891db89400.min.js +0 -1
  451. package/dist/scripts/bundle-f4a423ce34.min.js +0 -1
  452. package/dist/scripts/bundle.js +0 -66631
  453. package/dist/scripts/bundle.js.map +0 -1
  454. package/dist/scripts/polyfills-21eaf1215c.min.js +0 -1
  455. package/dist/scripts/polyfills-efb4d7caa3.min.js +0 -1
  456. package/dist/scripts/polyfills.js +0 -14866
  457. package/dist/scripts/polyfills.js.map +0 -1
@@ -1,365 +0,0 @@
1
- (window["webpackJsonp_clickview_library_editor"] = window["webpackJsonp_clickview_library_editor"] || []).push([[25],{
2
-
3
- /***/ "./src/shared/components/typeahead-input/SearchTypeaheadComponent.ts":
4
- /*!***************************************************************************!*\
5
- !*** ./src/shared/components/typeahead-input/SearchTypeaheadComponent.ts ***!
6
- \***************************************************************************/
7
- /*! exports provided: SearchTypeaheadComponent */
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__, "SearchTypeaheadComponent", function() { return SearchTypeaheadComponent; });
13
- /* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! underscore */ "underscore");
14
- /* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(underscore__WEBPACK_IMPORTED_MODULE_0__);
15
- /* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! backbone */ "backbone");
16
- /* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(backbone__WEBPACK_IMPORTED_MODULE_1__);
17
- /* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
18
- /* harmony import */ var _libs_common_src_backbone_errors_DevError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../libs/common/src/backbone/errors/DevError */ "../../libs/common/src/backbone/errors/DevError.ts");
19
- /* harmony import */ var _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../libs/shared/src/utils/SvgHelper */ "../../libs/shared/src/utils/SvgHelper.ts");
20
- /* harmony import */ var _libs_shared_src_apps_search_utils_TypeaheadHelper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../libs/shared/src/apps/search/utils/TypeaheadHelper */ "../../libs/shared/src/apps/search/utils/TypeaheadHelper.ts");
21
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../utils */ "./src/shared/utils/index.ts");
22
- /* harmony import */ var _Typeahead_hbs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Typeahead.hbs */ "./src/shared/components/typeahead-input/Typeahead.hbs");
23
- /* harmony import */ var _Typeahead_hbs__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_Typeahead_hbs__WEBPACK_IMPORTED_MODULE_7__);
24
- /* harmony import */ var _typeahead_scss__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./typeahead.scss */ "./src/shared/components/typeahead-input/typeahead.scss");
25
- /* harmony import */ var _typeahead_scss__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_typeahead_scss__WEBPACK_IMPORTED_MODULE_8__);
26
- 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); }
27
-
28
- 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; }
29
-
30
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
31
-
32
- 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); } }
33
-
34
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
35
-
36
- 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); }
37
-
38
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
39
-
40
- 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); }; }
41
-
42
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
43
-
44
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
45
-
46
- 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; } }
47
-
48
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
49
-
50
-
51
-
52
-
53
-
54
-
55
-
56
-
57
-
58
-
59
- var SearchTypeaheadComponent = /*#__PURE__*/function (_Core$Component) {
60
- _inherits(SearchTypeaheadComponent, _Core$Component);
61
-
62
- var _super = _createSuper(SearchTypeaheadComponent);
63
-
64
- function SearchTypeaheadComponent(options) {
65
- _classCallCheck(this, SearchTypeaheadComponent);
66
-
67
- return _super.call(this, options);
68
- }
69
-
70
- _createClass(SearchTypeaheadComponent, [{
71
- key: "events",
72
- value: function events() {
73
- return {
74
- 'submit': 'onSubmit',
75
- 'click .remove': 'onClickRemove'
76
- };
77
- }
78
- }, {
79
- key: "initialize",
80
- value: function initialize() {
81
- if (!this.model && !this.options.parentChannelName) _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__["Core"].ErrorHelper.throw(new _libs_common_src_backbone_errors_DevError__WEBPACK_IMPORTED_MODULE_3__["DevError"]('Either pass a model or a channelName to access the typeahead selection'));
82
- if (!this.model) this.model = new _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__["Core"].Model();
83
- /**
84
- * By default, set the input name to user the same name as our el id.
85
- * As soon as we need to add validation, this will need to be swapped out for the stickItProperty.
86
- * Or alternatively, we update the Validation cbs to not match on the model attribute name - Mike
87
- */
88
-
89
- if (!this.options.inputName) this.options.inputName = this.options.inputId;
90
- this.bindListeners();
91
- }
92
- }, {
93
- key: "bindListeners",
94
- value: function bindListeners() {
95
- if (this.options.parentChannelName) this.parentChannel = backbone__WEBPACK_IMPORTED_MODULE_1__["Radio"].channel(this.options.parentChannelName);
96
- this.listenTo(this.channelName, 'typeahead:set:input', this.setInput);
97
- this.listenTo(this.channelName, 'typeahead:clear:input', this.clearInput);
98
- }
99
- }, {
100
- key: "clearInput",
101
- value: function clearInput() {
102
- this.getUI("input").typeahead('val', null);
103
- }
104
- }, {
105
- key: "setInput",
106
- value: function setInput(newVal) {
107
- this.getUI("input").typeahead('val', newVal);
108
- }
109
- /**
110
- * TODO: Add submit on enter support
111
- */
112
-
113
- }, {
114
- key: "onTypeaheadSelect",
115
- value: function onTypeaheadSelect(event, suggestion, source) {
116
- event.preventDefault();
117
- var queryString;
118
- if (typeof suggestion === 'string') queryString = suggestion;else queryString = suggestion.title || suggestion.name || suggestion.query;
119
- this.model.set(this.options.stickItProperty, queryString); // Pass the entire suggestion object back up to the parent
120
-
121
- if (this.parentChannel && this.options.selectEvent) this.parentChannel.trigger(this.options.selectEvent, suggestion);
122
- this.onSubmit(event);
123
- this.toggleRemove();
124
- }
125
- }, {
126
- key: "onSubmit",
127
- value: function onSubmit(event) {
128
- var _this = this;
129
-
130
- event.preventDefault();
131
- if (this.isDestroyed()) return;
132
-
133
- var _this$getTypeaheadAct = this.getTypeaheadActionOptions(),
134
- clearOnSelect = _this$getTypeaheadAct.clearOnSelect;
135
-
136
- if (!clearOnSelect) return;
137
- this.getUI("input").typeahead('close');
138
- /**
139
- * Clear the current query after closing the typeahead.
140
- * We need to clear out all the existing suggestions too, so wait until the
141
- * next tick to ensure that the close event had properly finished.
142
- */
143
-
144
- setTimeout(function () {
145
- _this.model.clear();
146
-
147
- _this.clearInput();
148
- }, 0);
149
- return false;
150
- }
151
- }, {
152
- key: "onClickRemove",
153
- value: function onClickRemove() {
154
- this.model.clear();
155
- this.parentChannel.trigger(this.options.removeEvent, this.model);
156
- this.toggleRemove();
157
- }
158
- }, {
159
- key: "getSources",
160
- value: function getSources() {
161
- if (!underscore__WEBPACK_IMPORTED_MODULE_0__["isArray"](this.options.typeaheadConfigs)) return _libs_shared_src_apps_search_utils_TypeaheadHelper__WEBPACK_IMPORTED_MODULE_5__["TypeaheadHelper"].getSearchSources([this.options.typeaheadConfigs]);
162
- var sources = _libs_shared_src_apps_search_utils_TypeaheadHelper__WEBPACK_IMPORTED_MODULE_5__["TypeaheadHelper"].getSearchSources(this.options.typeaheadConfigs);
163
- return sources;
164
- }
165
- }, {
166
- key: "getTypeaheadOptions",
167
- value: function getTypeaheadOptions() {
168
- var defaults = {
169
- minLength: 1,
170
- highlight: true
171
- };
172
- if (!this.options.typeaheadOptions) return defaults;
173
- return underscore__WEBPACK_IMPORTED_MODULE_0__["extend"]({}, defaults, this.options.typeaheadOptions);
174
- }
175
- }, {
176
- key: "getTypeaheadActionOptions",
177
- value: function getTypeaheadActionOptions() {
178
- var baseOptions = {
179
- clearOnSelect: false
180
- };
181
- if (!underscore__WEBPACK_IMPORTED_MODULE_0__["isObject"](this.options.actionOptions)) return baseOptions;
182
- return underscore__WEBPACK_IMPORTED_MODULE_0__["extend"]({}, baseOptions, this.options.actionOptions);
183
- }
184
- }, {
185
- key: "bindOptionalCallbacks",
186
- value: function bindOptionalCallbacks() {
187
- if (!underscore__WEBPACK_IMPORTED_MODULE_0__["isObject"](this.options.callbacks)) return;
188
- if (underscore__WEBPACK_IMPORTED_MODULE_0__["isFunction"](this.options.callbacks.onRender)) this.getUI("input").on('typeahead:render', underscore__WEBPACK_IMPORTED_MODULE_0__["bind"](this.options.callbacks.onRender, this));
189
- if (underscore__WEBPACK_IMPORTED_MODULE_0__["isFunction"](this.options.callbacks.onInput)) this.listenTo(this.model, "change:".concat(this.options.stickItProperty), this.options.callbacks.onInput);
190
- if (underscore__WEBPACK_IMPORTED_MODULE_0__["isFunction"](this.options.callbacks.onBlur)) this.getUI("input").on('blur', underscore__WEBPACK_IMPORTED_MODULE_0__["bind"](this.options.callbacks.onBlur, this, this.channelName, this.options.stickItProperty));
191
- }
192
- }, {
193
- key: "initTypeahead",
194
- value: function initTypeahead() {
195
- this.getUI("input").typeahead(this.getTypeaheadOptions(), this.getSources());
196
- }
197
- }, {
198
- key: "initTypeaheadListeners",
199
- value: function initTypeaheadListeners() {
200
- this.getUI("input").on('typeahead:select', underscore__WEBPACK_IMPORTED_MODULE_0__["bind"](this.onTypeaheadSelect, this));
201
- this.bindOptionalCallbacks();
202
- }
203
- }, {
204
- key: "toggleRemove",
205
- value: function toggleRemove() {
206
- if (this.shouldShowRemove()) this.$el.find('.remove').show();else this.$el.find('.remove').hide();
207
- }
208
- /**
209
- * Show the remove button if:
210
- *
211
- * Content is editable
212
- * We have a value
213
- * We have a remove event to trigger
214
- *
215
- * OR
216
- *
217
- * We're being force to show the remove button (Used by PPDD)
218
- */
219
-
220
- }, {
221
- key: "shouldShowRemove",
222
- value: function shouldShowRemove() {
223
- if (!this.options.editable) return false;
224
- if (this.options.forceShowRemoveButton) return true;
225
- return this.options.removeEvent && !!this.model.get(this.options.stickItProperty);
226
- }
227
- }, {
228
- key: "viewOptions",
229
- value: function viewOptions() {
230
- return Object.assign(Object.assign({
231
- styles: _typeahead_scss__WEBPACK_IMPORTED_MODULE_8___default.a
232
- }, this.options), {
233
- showRemove: this.shouldShowRemove(),
234
- svgRemove: _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_4__["SvgHelper"].getSvg(_libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_4__["cvSvgLibrary"].Close)
235
- });
236
- }
237
- }, {
238
- key: "onRender",
239
- value: function onRender() {
240
- this.stickit();
241
- this.initTypeahead();
242
- this.initTypeaheadListeners();
243
- backbone__WEBPACK_IMPORTED_MODULE_1__["Validation"].bind(this);
244
- this.toggleRemove();
245
- }
246
- }, {
247
- key: "onClose",
248
- value: function onClose() {
249
- this.getUI('input').off();
250
- this.unstickit();
251
- backbone__WEBPACK_IMPORTED_MODULE_1__["Validation"].unbind(this);
252
- }
253
- }, {
254
- key: "name",
255
- get: function get() {
256
- return 'SearchTypeaheadComponent';
257
- }
258
- }, {
259
- key: "template",
260
- get: function get() {
261
- return _Typeahead_hbs__WEBPACK_IMPORTED_MODULE_7___default.a;
262
- }
263
- }, {
264
- key: "className",
265
- get: function get() {
266
- return "search-container ".concat(_typeahead_scss__WEBPACK_IMPORTED_MODULE_8___default.a.typeaheadContainer, " mb-2");
267
- }
268
- }, {
269
- key: "channelName",
270
- get: function get() {
271
- return _utils__WEBPACK_IMPORTED_MODULE_6__["RadioChannelHelper"].generateUniqueChannelName(this);
272
- }
273
- }, {
274
- key: "elements",
275
- get: function get() {
276
- return {
277
- input: "#".concat(this.options.inputId)
278
- };
279
- }
280
- }, {
281
- key: "defaults",
282
- get: function get() {
283
- return {
284
- inputId: 'search-typeahead',
285
- placeholderText: 'Search',
286
- stickItProperty: 'name',
287
- selectEvent: 'select:result',
288
- additionalClasses: '',
289
- editable: true
290
- };
291
- }
292
- }, {
293
- key: "bindings",
294
- get: function get() {
295
- var inputName = "[name=".concat(this.options.inputName, "]");
296
- return _defineProperty({}, inputName, {
297
- observe: this.options.stickItProperty,
298
- setOptions: {
299
- validate: true
300
- }
301
- });
302
- }
303
- }]);
304
-
305
- return SearchTypeaheadComponent;
306
- }(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__["Core"].Component);
307
-
308
- /***/ }),
309
-
310
- /***/ "./src/shared/components/typeahead-input/Typeahead.hbs":
311
- /*!*************************************************************!*\
312
- !*** ./src/shared/components/typeahead-input/Typeahead.hbs ***!
313
- \*************************************************************/
314
- /*! no static exports found */
315
- /***/ (function(module, exports, __webpack_require__) {
316
-
317
- var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
318
- module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
319
- var stack1, alias1=container.propertyIsEnumerable;
320
-
321
- return container.escapeExpression(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.disabled : stack1), depth0));
322
- },"3":function(container,depth0,helpers,partials,data) {
323
- return "autofocus";
324
- },"5":function(container,depth0,helpers,partials,data) {
325
- return "disabled";
326
- },"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
327
- var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {});
328
-
329
- return "<input\r\n name=\""
330
- + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.inputName : stack1), depth0))
331
- + "\"\r\n type=\"text\"\r\n class=\"form-control "
332
- + ((stack1 = helpers.unless.call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"unless","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
333
- + " "
334
- + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.additionalClasses : stack1), depth0))
335
- + "\"\r\n id=\""
336
- + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.inputId : stack1), depth0))
337
- + "\"\r\n autocomplete=\"off\"\r\n placeholder=\""
338
- + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.placeholderText : stack1), depth0))
339
- + "\"\r\n "
340
- + ((stack1 = helpers["if"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.autofocus : stack1),{"name":"if","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
341
- + "\r\n "
342
- + ((stack1 = helpers.unless.call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"unless","hash":{},"fn":container.program(5, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
343
- + "\r\n></input>\r\n<span class=\"svg-container mb-2 "
344
- + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.svg : stack1), depth0))
345
- + " remove\" style=\"display: none;\">"
346
- + ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.svgRemove : stack1), depth0)) != null ? stack1 : "")
347
- + "</span>";
348
- },"useData":true});
349
-
350
- /***/ }),
351
-
352
- /***/ "./src/shared/components/typeahead-input/typeahead.scss":
353
- /*!**************************************************************!*\
354
- !*** ./src/shared/components/typeahead-input/typeahead.scss ***!
355
- \**************************************************************/
356
- /*! no static exports found */
357
- /***/ (function(module, exports, __webpack_require__) {
358
-
359
- // extracted by mini-css-extract-plugin
360
- module.exports = {"svg":"cv--svg--1iL3O","typeaheadContainer":"cv--typeaheadContainer--1SWXc","disabled":"cv--disabled--3C2O8"};
361
-
362
- /***/ })
363
-
364
- }]);
365
- //# sourceMappingURL=25.chunk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/shared/components/typeahead-input/SearchTypeaheadComponent.ts","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/shared/components/typeahead-input/Typeahead.hbs","webpack://@clickview/library-editor/./src/shared/components/typeahead-input/typeahead.scss?b75a"],"names":[],"mappings":"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","file":"scripts/25.chunk.js","sourcesContent":["import * as _ from 'underscore';\r\nimport { Radio, Validation, ObjectHash } from 'backbone';\r\n\r\nimport { Core } from 'libs/common/core';\r\nimport { DevError } from 'libs/common/backbone/errors/DevError';\r\nimport { SvgHelper, cvSvgLibrary } from 'libs/shared/utils/SvgHelper';\r\nimport { TypeaheadConfigHandler, TypeaheadSourceItem } from 'libs/shared/apps/search/interfaces';\r\nimport { TypeaheadHelper } from 'libs/shared/apps/search/utils/TypeaheadHelper';\r\n\r\nimport { RadioChannelHelper } from 'shared/utils';\r\n\r\nimport TypeaheadTemplate from './Typeahead.hbs';\r\nimport styles from './typeahead.scss';\r\n\r\ninterface TypeaheadCallbacks {\r\n onRender?: Function;\r\n onInput?: Function;\r\n onBlur?: Function;\r\n}\r\n\r\ninterface TypeaheadActionOptions {\r\n clearOnSelect?: boolean;\r\n}\r\n\r\ninterface SearchTypeaheadComponentOptions<TSearchType> extends Core.ComponentOptions {\r\n parentChannelName: string;\r\n inputId: string;\r\n selectEvent: string;\r\n typeaheadConfigs: TypeaheadSourceItem<TSearchType> | TypeaheadSourceItem<TSearchType>[];\r\n stickItProperty?: string;\r\n inputName?: string;\r\n placeholderText?: string;\r\n callbacks?: TypeaheadCallbacks;\r\n typeaheadOptions?: ObjectHash;\r\n actionOptions?: TypeaheadActionOptions;\r\n editable?: boolean;\r\n additionalClasses?: string;\r\n removeEvent?: string;\r\n forceShowRemoveButton?: boolean;\r\n}\r\n\r\nexport class SearchTypeaheadComponent<TSearchType> extends Core.Component {\r\n public options: SearchTypeaheadComponentOptions<TSearchType>;\r\n private parentChannel: Radio.Channel;\r\n\r\n constructor(options?: SearchTypeaheadComponentOptions<TSearchType>) {\r\n super(options);\r\n }\r\n\r\n public get name(): string {\r\n return 'SearchTypeaheadComponent';\r\n }\r\n\r\n public get template(): any {\r\n return TypeaheadTemplate;\r\n }\r\n\r\n public get className(): string {\r\n return `search-container ${styles.typeaheadContainer} mb-2`;\r\n }\r\n\r\n public get channelName(): string {\r\n return RadioChannelHelper.generateUniqueChannelName(this);\r\n }\r\n\r\n public get elements(): ObjectHash {\r\n return {\r\n input: `#${this.options.inputId}`\r\n };\r\n }\r\n\r\n public get defaults(): ObjectHash {\r\n return {\r\n inputId: 'search-typeahead',\r\n placeholderText: 'Search',\r\n stickItProperty: 'name',\r\n selectEvent: 'select:result',\r\n additionalClasses: '',\r\n editable: true\r\n };\r\n }\r\n\r\n public events(): ObjectHash {\r\n return {\r\n 'submit': 'onSubmit',\r\n 'click .remove': 'onClickRemove'\r\n };\r\n }\r\n\r\n public initialize(): void {\r\n if (!this.model && !this.options.parentChannelName)\r\n Core.ErrorHelper.throw(new DevError('Either pass a model or a channelName to access the typeahead selection'));\r\n\r\n if (!this.model)\r\n this.model = new Core.Model();\r\n\r\n /**\r\n * By default, set the input name to user the same name as our el id.\r\n * As soon as we need to add validation, this will need to be swapped out for the stickItProperty.\r\n * Or alternatively, we update the Validation cbs to not match on the model attribute name - Mike\r\n */\r\n if (!this.options.inputName)\r\n this.options.inputName = this.options.inputId;\r\n\r\n this.bindListeners();\r\n }\r\n\r\n protected bindListeners(): void {\r\n if (this.options.parentChannelName)\r\n this.parentChannel = Radio.channel(this.options.parentChannelName);\r\n\r\n this.listenTo(this.channelName, 'typeahead:set:input', this.setInput);\r\n this.listenTo(this.channelName, 'typeahead:clear:input', this.clearInput);\r\n }\r\n\r\n public get bindings(): ObjectHash {\r\n const inputName = `[name=${this.options.inputName}]`;\r\n return {\r\n [inputName]: {\r\n observe: this.options.stickItProperty,\r\n setOptions : { validate: true },\r\n }\r\n };\r\n }\r\n\r\n public clearInput(): void {\r\n this.getUI(`input`).typeahead('val', null);\r\n }\r\n\r\n public setInput(newVal: string): void {\r\n this.getUI(`input`).typeahead('val', newVal);\r\n }\r\n /**\r\n * TODO: Add submit on enter support\r\n */\r\n protected onTypeaheadSelect(event: any, suggestion: string | ObjectHash, source: any): void {\r\n event.preventDefault();\r\n\r\n let queryString;\r\n if (typeof suggestion === 'string')\r\n queryString = suggestion;\r\n else\r\n queryString = suggestion.title || suggestion.name || suggestion.query;\r\n\r\n this.model.set(this.options.stickItProperty, queryString);\r\n\r\n // Pass the entire suggestion object back up to the parent\r\n if (this.parentChannel && this.options.selectEvent)\r\n this.parentChannel.trigger(this.options.selectEvent, suggestion);\r\n\r\n this.onSubmit(event);\r\n this.toggleRemove();\r\n }\r\n\r\n private onSubmit(event: JQuery.Event): boolean {\r\n event.preventDefault();\r\n\r\n if (this.isDestroyed())\r\n return;\r\n\r\n const { clearOnSelect } = this.getTypeaheadActionOptions();\r\n\r\n if (!clearOnSelect)\r\n return;\r\n\r\n this.getUI(`input`).typeahead('close');\r\n\r\n /**\r\n * Clear the current query after closing the typeahead.\r\n * We need to clear out all the existing suggestions too, so wait until the\r\n * next tick to ensure that the close event had properly finished.\r\n */\r\n setTimeout(() => {\r\n this.model.clear();\r\n this.clearInput();\r\n }, 0);\r\n\r\n return false;\r\n }\r\n\r\n private onClickRemove(): void {\r\n this.model.clear();\r\n this.parentChannel.trigger(this.options.removeEvent, this.model);\r\n this.toggleRemove();\r\n }\r\n\r\n protected getSources(): TypeaheadConfigHandler<TSearchType>[] | Twitter.Typeahead.Dataset<TSearchType>[] {\r\n if (!_.isArray(this.options.typeaheadConfigs))\r\n return TypeaheadHelper.getSearchSources<TSearchType>([this.options.typeaheadConfigs]);\r\n\r\n const sources = TypeaheadHelper.getSearchSources<TSearchType>(this.options.typeaheadConfigs);\r\n\r\n return sources;\r\n }\r\n\r\n private getTypeaheadOptions(): ObjectHash {\r\n const defaults = { minLength: 1, highlight: true };\r\n\r\n if (!this.options.typeaheadOptions)\r\n return defaults;\r\n\r\n return _.extend({}, defaults, this.options.typeaheadOptions);\r\n }\r\n\r\n private getTypeaheadActionOptions(): TypeaheadActionOptions {\r\n const baseOptions: TypeaheadActionOptions = { clearOnSelect: false };\r\n\r\n if (!_.isObject(this.options.actionOptions))\r\n return baseOptions;\r\n\r\n return _.extend({}, baseOptions, this.options.actionOptions);\r\n }\r\n\r\n private bindOptionalCallbacks(): TypeaheadActionOptions {\r\n if (!_.isObject(this.options.callbacks))\r\n return;\r\n\r\n if (_.isFunction(this.options.callbacks.onRender))\r\n this.getUI(`input`).on('typeahead:render', _.bind(this.options.callbacks.onRender, this));\r\n\r\n if (_.isFunction(this.options.callbacks.onInput))\r\n this.listenTo(this.model, `change:${this.options.stickItProperty}`, this.options.callbacks.onInput);\r\n\r\n if (_.isFunction(this.options.callbacks.onBlur))\r\n this.getUI(`input`).on('blur', _.bind(this.options.callbacks.onBlur, this, this.channelName, this.options.stickItProperty));\r\n }\r\n\r\n protected initTypeahead(): void {\r\n (this.getUI(`input`) as any).typeahead(this.getTypeaheadOptions(), this.getSources());\r\n }\r\n\r\n protected initTypeaheadListeners(): void {\r\n this.getUI(`input`).on('typeahead:select', _.bind(this.onTypeaheadSelect, this));\r\n this.bindOptionalCallbacks();\r\n }\r\n\r\n private toggleRemove(): void {\r\n if (this.shouldShowRemove())\r\n this.$el.find('.remove').show();\r\n else\r\n this.$el.find('.remove').hide();\r\n }\r\n\r\n /**\r\n * Show the remove button if:\r\n * \r\n * Content is editable \r\n * We have a value\r\n * We have a remove event to trigger\r\n * \r\n * OR\r\n * \r\n * We're being force to show the remove button (Used by PPDD)\r\n */\r\n private shouldShowRemove(): boolean {\r\n if (!this.options.editable)\r\n return false;\r\n\r\n if (this.options.forceShowRemoveButton)\r\n return true;\r\n\r\n return this.options.removeEvent && !!this.model.get(this.options.stickItProperty);\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n return {\r\n styles,\r\n ...this.options,\r\n showRemove: this.shouldShowRemove(),\r\n svgRemove: SvgHelper.getSvg(cvSvgLibrary.Close)\r\n };\r\n }\r\n\r\n public onRender(): void {\r\n this.stickit();\r\n this.initTypeahead();\r\n this.initTypeaheadListeners();\r\n Validation.bind(this);\r\n\r\n this.toggleRemove();\r\n }\r\n\r\n public onClose(): void {\r\n this.getUI('input').off();\r\n this.unstickit();\r\n Validation.unbind(this);\r\n }\r\n}\r\n","var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return container.escapeExpression(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.disabled : stack1), depth0));\n},\"3\":function(container,depth0,helpers,partials,data) {\n return \"autofocus\";\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 \"<input\\r\\n name=\\\"\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.inputName : stack1), depth0))\n + \"\\\"\\r\\n type=\\\"text\\\"\\r\\n class=\\\"form-control \"\n + ((stack1 = helpers.unless.call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \" \"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.additionalClasses : stack1), depth0))\n + \"\\\"\\r\\n id=\\\"\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.inputId : stack1), depth0))\n + \"\\\"\\r\\n autocomplete=\\\"off\\\"\\r\\n placeholder=\\\"\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.placeholderText : stack1), depth0))\n + \"\\\"\\r\\n \"\n + ((stack1 = helpers[\"if\"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.autofocus : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n \"\n + ((stack1 = helpers.unless.call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n></input>\\r\\n<span class=\\\"svg-container mb-2 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.svg : stack1), depth0))\n + \" remove\\\" style=\\\"display: none;\\\">\"\n + ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.svgRemove : stack1), depth0)) != null ? stack1 : \"\")\n + \"</span>\";\n},\"useData\":true});","// extracted by mini-css-extract-plugin\nmodule.exports = {\"svg\":\"cv--svg--1iL3O\",\"typeaheadContainer\":\"cv--typeaheadContainer--1SWXc\",\"disabled\":\"cv--disabled--3C2O8\"};"],"sourceRoot":""}
@@ -1 +0,0 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[26],{1016:function(t,e,n){t.exports={dragItem:"_2TIZ7",svgContainer:"_3JzEU",dragText:"_1Kdwj"}},1017:function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<span class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+' mr-2">'+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'</span>\r\n<span class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.dragText:i,e))+'">'+c(a(null!=(i=null!=e?e.options:e)?i.text:i,e))+"</span>"},useData:!0})},1023:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(1),o=n(2),i=n(278);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(s,t);var e,n,o,a=l(s);function s(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.call(this,t)}return e=s,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"getExtraClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.alignment,n=void 0===e?"left":e,r=t.extraClasses,o="dropdown-menu-".concat(n);return r&&(o="".concat(o," ").concat(r)),o}},{key:"centerSelectedItem",value:function(){var t=this.$el.find(".active");if(t.length){var e=this.$el.scrollTop()+t.position().top,n=.5*this.$el.height()+.5*t.height();this.$el.scrollTop(e-n)}}},{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"childView",get:function(){return i.a}},{key:"childViewOptions",get:function(){var t={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return r.extend(t,this.options.childOptions)}}])&&c(e.prototype,n),o&&c(e,o),s}(o.a.ComponentCollection)},1031:function(t,e,n){"use strict";var r=n(1016),o=n.n(r),i=n(1017),a=n.n(i);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(c,t);var e,n,r,i=s(c);function c(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),i.call(this,t)}return e=c,(n=[{key:"viewOptions",value:function(){return Object.assign({styles:o.a},this.options)}},{key:"name",get:function(){return"DraggableItemComponent"}},{key:"template",get:function(){return a.a}},{key:"className",get:function(){return"".concat(o.a.dragItem," p-3")}}])&&u(e.prototype,n),r&&u(e,r),c}(n(2).a.Component),d={delay:150,cursorAt:{left:-20,top:10},refreshPositions:!0};n.d(e,"c",(function(){return o.a})),n.d(e,"b",(function(){return y})),n.d(e,"a",(function(){return d}))},1037:function(t,e,n){"use strict";n.d(e,"a",(function(){return R}));var r=n(1),o=n(7),i=n(2),a=n(18),c=n(14),u=n(0),l=n(12),s=n(3),f=n(1031),p=n(179),y=n(1039),d=n.n(y);function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var o=O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w(this,n)}}function w(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function O(t){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var R=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(w,t);var e,n,y,h=v(w);function w(){return b(this,w),h.apply(this,arguments)}return e=w,(n=[{key:"initialize",value:function(){this.options.model||i.a.ErrorHelper.throw(new a.a("DraggableVideoBehavior must be passed a Video model")),this.listenTo(u.w.VIDEO_DRAG_DROP,"drag:style:".concat(this.options.model.id),this.styleDragStart),this.listenTo(u.w.VIDEO_DRAG_DROP,"drag:stop",this.styleDragStop)}},{key:"helper",value:function(){var t=this.getVideoModels();return new f.b({text:t.length>1?s.a.getPhrase(this.lang,"videos",{videoCount:t.length}):t[0].get("name"),svg:c.a.getSvg(c.b.Play)}).render().el}},{key:"getSelector",value:function(){return this.view.getUI(this.options.selector)}},{key:"styleDragStart",value:function(){this.getSelector().addClass(d.a.draggingVideo)}},{key:"styleDragStop",value:function(){this.getSelector().removeClass(d.a.draggingVideo)}},{key:"start",value:function(){var t=this.getVideoModels(),e=o.Radio.channel(u.w.VIDEO_DRAG_DROP);e.trigger("drag:start",t,this.options.collectionIdentifier),r.each(t,(function(t){return e.trigger("drag:style:".concat(t.id))}))}},{key:"stop",value:function(){o.Radio.channel(u.w.VIDEO_DRAG_DROP).trigger("drag:stop")}},{key:"getVideoModels",value:function(){var t=this,e=l.a.GetSelectedModels({key:this.options.collectionIdentifier.toString(),type:p.a.VIDEO_LIST,collection:this.view.model.collection});return r.any(e,(function(e){return e.id===t.view.model.id}))||(e=[this.view.model]),e.length?e:[this.view.model]}},{key:"getClassMappings",value:function(){return{"ui-draggable":f.c.draggable,"ui-draggable-disabled":f.c.disabled,"ui-draggable-handle":f.c.handle,"ui-draggable-dragging":f.c.dragging}}},{key:"onRender",value:function(){var t=this.getSelector(),e={helper:r.bind(this.helper,this),start:r.bind(this.start,this),stop:r.bind(this.stop,this)};e.classes=this.getClassMappings(),t.draggable(r.extend({},f.a,e))}},{key:"onBeforeDestroy",value:function(){var t=this.getSelector();t.draggable("instance")&&t.draggable("destroy")}},{key:"lang",get:function(){return"libraryEditor.behaviors"}}])&&g(e.prototype,n),y&&g(e,y),w}(i.a.Behavior)},1039:function(t,e,n){t.exports={draggingVideo:"_3cCHx"}},1071:function(t,e,n){"use strict";var r=n(183),o=n(1),i=n(181),a=n(0),c=n(130),u=n(275);function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=b(t);if(e){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==l(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(l,t);var e,n,r,i=d(l);function l(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(e=i.call(this,{collectionPrefix:"".concat(a.f.RECENT_VIDEOS,":collection"),cursor:t.cursor,sort:t.sort})).setAdditionalData(t),e}return e=l,(n=[{key:"setAdditionalData",value:function(t){var e=t.libraryIds,n=t.dateQueryString,r=t.subjects;e&&(this.libraryIds=e),r&&(o.isArray(r)&&r.length&&(this.subjects=r),o.isArray(r)||(this.subjects=[r]));var i=o.findWhere(u.g,{queryString:n})||u.e;this.dateOption=new c.b(i)}},{key:"toString",value:function(){var t=this.subjects&&this.subjects.length&&this.subjects.map((function(t){return escape(t.get("name"))}))||[];return[this.collectionPrefix,this.libraryIds,this.dateOption.get("from"),this.dateOption.get("to")].concat(s(t),[this.cursor]).filter(Boolean).join(":")}},{key:"toParams",value:function(){var t={};return this.libraryIds&&(t.libraryIds=this.libraryIds),this.dateOption&&(t.from=this.dateOption.get("from"),t.to=this.dateOption.get("to")),this.subjects&&(t.subjectIds=o.flatten(this.subjects.map((function(t){return t.get("subjectIds")})))),this.cursor&&(t.cursor=this.cursor),t}}])&&p(e.prototype,n),r&&p(e,r),l}(i.a);function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function w(t,e){return(w=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function O(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=_(t);if(e){var o=_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return R(this,n)}}function R(t,e){return!e||"object"!==m(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function _(t){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var k=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&w(t,e)}(l,t);var e,n,r,i=O(l);function l(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(e=i.call(this,{collectionPrefix:"".concat(a.f.RECENT_SUBJECTS,":collection"),sort:t.sort})).setAdditionalData(t),e}return e=l,(n=[{key:"setAdditionalData",value:function(t){var e=t.libraryIds,n=t.dateQueryString;e&&(this.libraryIds=e);var r=o.findWhere(u.g,{queryString:n})||u.e;this.dateOption=new c.b(r)}},{key:"toString",value:function(){return[this.collectionPrefix,this.libraryIds,this.dateOption.get("from"),this.dateOption.get("to")].filter(Boolean).join(":")}},{key:"toParams",value:function(){var t={};return this.libraryIds&&(t.libraryIds=this.libraryIds),this.dateOption&&(t.from=this.dateOption.get("from"),t.to=this.dateOption.get("to")),t}}])&&v(e.prototype,n),r&&v(e,r),l}(i.a);function S(t){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function E(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function P(t,e){return(P=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function D(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=C(t);if(e){var o=C(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return j(this,n)}}function j(t,e){return!e||"object"!==S(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function C(t){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var I=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&P(t,e)}(n,t);var e=D(n);function n(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return E(this,n),e.call(this,{collectionPrefix:a.f.LIBRARY_FOLDERS,id:t,sort:r,cursor:o})}return n}(i.a);n.d(e,"d",(function(){return r.a})),n.d(e,"b",(function(){return g})),n.d(e,"c",(function(){return k})),n.d(e,"a",(function(){return I}))},1073:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var r=n(1),o=n(7),i=n(2),a=n(138);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(p,t);var e,n,i,c=f(p);function p(){return u(this,p),c.apply(this,arguments)}return e=p,(n=[{key:"getDroppableElement",value:function(){return this.options.ui?this.view.getUI(this.options.ui):this.$el}},{key:"drop",value:function(){var t=this;r.each(this.options.channelNames,(function(e){o.Radio.channel(e).trigger("drag:drop",t.view.model,t.options.analyticsOptions)}))}},{key:"accept",value:function(){var t=this,e=!1;return r.each(this.options.channelNames,(function(n){!0===o.Radio.channel(n).request("accept",t.view.model)&&(e=!0)})),e}},{key:"over",value:function(){var t=this;this.isHoveringOver=!0,window.setTimeout((function(){t.isHoveringOver&&t.view.trigger("open:sub:folders",a.active)}),500)}},{key:"out",value:function(){this.isHoveringOver=!1}},{key:"onRender",value:function(){var t={tolerance:"pointer",drop:r.bind(this.drop,this),accept:r.bind(this.accept,this),over:r.bind(this.over,this),out:r.bind(this.out,this)};t.classes={"ui-droppable":a.droppable,"ui-droppable-active":a.active,"ui-droppable-hover":a.hover},this.getDroppableElement().droppable(t)}},{key:"onBeforeDestroy",value:function(){this.getDroppableElement().droppable("instance")&&this.getDroppableElement().droppable("destroy")}}])&&l(e.prototype,n),i&&l(e,i),p}(i.a.Behavior)},1076:function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var r=n(1),o=n(7),i=n(2),a=n(14),c=n(0),u=n(1031),l=n(1082),s=n.n(l);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=g(t);if(e){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(f,t);var e,n,i,l=h(f);function f(){return p(this,f),l.apply(this,arguments)}return e=f,(n=[{key:"getClassMappings",value:function(){return{"ui-draggable":u.c.draggable,"ui-draggable-handle":u.c.handle,"ui-draggable-disabled":u.c.disabled,"ui-draggable-dragging":u.c.dragging}}},{key:"helper",value:function(){return new u.b({text:this.view.model.get("name"),svg:a.a.getSvg(a.b.Folder)}).render().el}},{key:"start",value:function(){o.Radio.channel(c.w.FOLDER_DRAG_DROP).trigger("drag:start",this.view.model),this.view.$el.addClass(s.a.draggingFolder)}},{key:"stop",value:function(){o.Radio.channel(c.w.FOLDER_DRAG_DROP).trigger("drag:stop"),this.view.$el.removeClass(s.a.draggingFolder)}},{key:"onRender",value:function(){var t={helper:r.bind(this.helper,this),start:r.bind(this.start,this),stop:r.bind(this.stop,this)};t.classes=this.getClassMappings(),this.view.$el.draggable(r.extend({},u.a,t))}},{key:"onBeforeDestroy",value:function(){this.view.$el.draggable("instance")&&this.view.$el.draggable("destroy")}}])&&y(e.prototype,n),i&&y(e,i),f}(i.a.Behavior)},1080:function(t,e,n){"use strict";var r=n(2),o=n(14),i=n(78),a=n(4),c=n(40),u=n(1023),l=n(0),s=n(3),f=n(1083),p=n.n(f);function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function b(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=m(t);if(e){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==y(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(f,t);var e,n,o,i=b(f);function f(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),i.call(this,t)}return e=f,(n=[{key:"regions",value:function(){return{items:{el:".items-region",replaceElement:!0}}}},{key:"getFolderActions",value:function(){return[{title:s.a.getPhrase(this.lang,"addSubfolder"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.q.Create,entity:a.e.Folder,workflowPhase:a.r.Start}),appLink:{application:l.b.LIBRARY_EDITOR,action:l.a.LibraryEditor.NEW_SUB_FOLDER,args:[this.model.get("id")]}},{title:s.a.getPhrase(this.lang,"rename"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.q.Rename,entity:a.e.Folder,workflowPhase:a.r.Start}),appLink:{application:l.b.LIBRARY_EDITOR,action:l.a.LibraryEditor.RENAME_FOLDER,args:[this.model.get("id")]}},{title:s.a.getPhrase(this.lang,"move"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.q.Move,entity:a.e.Folder,workflowPhase:a.r.Start}),appLink:{application:l.b.LIBRARY_EDITOR,action:l.a.LibraryEditor.MOVE_FOLDER,args:[this.model.get("id")]}},{title:s.a.getPhrase(this.lang,"editImages"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.q.EditAssoc,entity:a.e.Folder,workflowPhase:a.r.Start,descriptor:a.a.Image}),appLink:{application:l.b.LIBRARY_EDITOR,action:l.a.LibraryEditor.EDIT_FOLDER_IMAGES,args:[this.model.get("id")]}},{title:s.a.getPhrase(this.lang,"generatePdf"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.q.Create,entity:a.e.PDF,workflowPhase:a.r.Start}),appLink:{application:l.b.LIBRARY_EDITOR,action:l.a.LibraryEditor.GENERATE_PDF,args:[this.model.get("id")]}},{title:s.a.getPhrase(this.lang,"remove"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.q.Delete,entity:a.e.Folder,workflowPhase:a.r.Start}),classes:"text-danger",appLink:{application:l.b.LIBRARY_EDITOR,action:l.a.LibraryEditor.DELETE_FOLDER,args:[this.model.get("id")]}}]}},{key:"onRender",value:function(){this.showChildView("items",new u.a({analyticsHelper:c.a,displayOptions:{alignment:"right"},channelName:this.channelName,collection:new r.a.Collection(this.getFolderActions()),childOptions:{isDisabled:function(){return this.model.get("disabled")}}}))}},{key:"name",get:function(){return"FolderActionsDropdownComponent"}},{key:"template",get:function(){return p.a}},{key:"lang",get:function(){return"libraryEditor.folderActionsDropdown"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}}])&&d(e.prototype,n),o&&d(e,o),f}(r.a.Component),w=n(1084),O=n.n(w),R=n(1085),_=n.n(R);function k(t){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function S(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function E(t,e){return(E=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function P(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=j(t);if(e){var o=j(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return D(this,n)}}function D(t,e){return!e||"object"!==k(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function j(t){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return C}));var C=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&E(t,e)}(c,t);var e,n,r,a=P(c);function c(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),a.call(this,t)}return e=c,(n=[{key:"events",value:function(){return{"click @ui.dropdownToggle":"onClickDropdownToggle","click @ui.dropdownItem":"onClickDropdownItem"}}},{key:"regions",value:function(){return{items:{replaceElement:!0,el:".items-region"}}}},{key:"onClickDropdownToggle",value:function(){this.model instanceof i.a&&this.showChildView("items",new v({model:this.model,analyticsOptions:this.options.analyticsOptions}))}},{key:"onClickDropdownItem",value:function(t){t.stopPropagation(),t.preventDefault(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"viewOptions",value:function(){return{hasActions:this.model instanceof i.a,dropdownClass:"".concat(_.a.dropdownButton," ").concat(this.options.buttonClass),svg:o.a.getSvg(o.b.More)}}},{key:"name",get:function(){return"VideoCollectionActionsComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){if(this.model instanceof i.a)return"position-absolute ".concat(this.options.overrideClasses?"":_.a.dropdownContainer," ").concat(this.options.extraClasses," ")}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",dropdownItem:".dropdown-item"}}},{key:"template",get:function(){return O.a}}])&&S(e.prototype,n),r&&S(e,r),c}(r.a.Component)},1082:function(t,e,n){t.exports={dragging:"_2wBn3",draggingFolder:"_1r3AS"}},1083:function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){return'<div class="items-region"></div>'},useData:!0})},1084:function(t,e,n){var r=n(9);t.exports=(r.default||r).template({1:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda;return'<span data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="'+t.escapeExpression(a(null!=(i=null!=e?e.options:e)?i.dropdownClass:i,e))+' d-inline-block ui-dropdown-toggle">\r\n '+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'\r\n</span>\r\n<div class="items-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.hasActions:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:""},useData:!0})},1085:function(t,e,n){t.exports={dropdownContainer:"_2F3Cz",dropdownButton:"_2TdId"}},1105:function(t,e,n){"use strict";n.d(e,"a",(function(){return w}));var r=n(2),o=n(14),i=n(4),a=n(40),c=n(1023),u=n(0),l=n(3),s=n(1106),f=n.n(s),p=n(1107),y=n.n(p);function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function b(t,e){return(b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(t,e){return!e||"object"!==d(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}(d,t);var e,n,s,p=g(d);function d(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),p.call(this,t)}return e=d,(n=[{key:"events",value:function(){return{"click @ui.dropdownToggle":"onClickDropdownToggle","click @ui.dropdownItem":"onClickDropdownItem"}}},{key:"regions",value:function(){return{dropdownItems:{replaceElement:!0,el:".items-region"}}}},{key:"onClickDropdownToggle",value:function(){this.showChildView("dropdownItems",new c.a({analyticsHelper:a.a,displayOptions:{alignment:"right"},channelName:this.channelName,collection:new r.a.Collection([{title:l.a.getPhrase(this.lang,"addFolder"),analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:i.q.Create,entity:i.e.Folder,workflowPhase:i.r.Start}),appLink:{application:u.b.LIBRARY_EDITOR,action:u.a.Shared.NEW_FOLDER,args:[this.model.get("id")]}},{title:l.a.getPhrase(this.lang,"rename"),analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:i.q.Rename,entity:i.e.Library,workflowPhase:i.r.Start}),appLink:{application:u.b.LIBRARY_EDITOR,action:u.a.LibraryEditor.RENAME_LIBRARY,args:[this.model.get("id")]}},{title:l.a.getPhrase(this.lang,"remove"),analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:i.q.Delete,entity:i.e.Library,workflowPhase:i.r.Start}),appLink:{application:u.b.LIBRARY_EDITOR,action:u.a.LibraryEditor.DELETE_LIBRARY,args:[this.model.get("id")]},classes:"text-danger"}])}))}},{key:"onClickDropdownItem",value:function(t){t.stopPropagation(),t.preventDefault(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"viewOptions",value:function(){return{dropdownClass:"".concat(y.a.dropdownButton," ").concat(this.options.buttonClass),svg:o.a.getSvg(o.b.More)}}},{key:"name",get:function(){return"LibraryActionsComponent"}},{key:"template",get:function(){return f.a}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"lang",get:function(){return"libraryEditor.libraryActions"}},{key:"className",get:function(){return"position-absolute ".concat(y.a.dropdownContainer," ").concat(this.options.extraClasses," ")}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",dropdownItem:".dropdown-item"}}}])&&h(e.prototype,n),s&&h(e,s),d}(r.a.Component)},1106:function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda;return'<span data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="'+t.escapeExpression(a(null!=(i=null!=e?e.options:e)?i.dropdownClass:i,e))+' d-inline-block ui-dropdown-toggle">\r\n '+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'\r\n</span>\r\n<div class="items-region"></div>'},useData:!0})},1107:function(t,e,n){t.exports={dropdownContainer:"_293SV",dropdownButton:"_23YxG"}},1184:function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.lambda,u=t.escapeExpression;return'<a\r\n class="d-block cursor-pointer no-decoration '+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.folder:i,e))+'"\r\n style="background-image: url(\''+u(c(null!=(i=null!=e?e.options:e)?i.imageUrl:i,e))+'\')"\r\n>\r\n <h3 class="position-absolute text-white text-center m-0">'+u("function"==typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:t.hooks.helperMissing)?a.call(null!=e?e:t.nullContext||{},{name:"name",hash:{},data:o}):a)+'</h3>\r\n</a>\r\n<div class="actions-region"></div>'},useData:!0})},1185:function(t,e,n){t.exports={folder:"_1MHyt",actions:"_3-hwy"}},1186:function(t,e,n){var r=n(9);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<h1 class="h3">'+t.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=e?e.name:e))?i:t.hooks.helperMissing)?i.call(null!=e?e:t.nullContext||{},{name:"name",hash:{},data:o}):i)+'</h1>\r\n<div class="folders-region"></div>\r\n<div class="actions-region"></div>'},useData:!0})},1187:function(t,e,n){t.exports={actions:"_3vCmp"}},1446:function(t,e,n){"use strict";n.r(e);var r=n(1),o=n(2),i=n(5),a=n(3),c=n(4),u=n(14),l=n(276),s=n(35),f=n(180),p=n(0),y=n(6),d=n(1071),h=n(1184),b=n.n(h),g=n(1185),m=n.n(g),v=n(12),w=n(1076),O=(n(1037),n(1073)),R=n(1080);function _(t){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function k(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function S(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function E(t,e,n){return e&&S(t.prototype,e),n&&S(t,n),t}function P(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&D(t,e)}function D(t,e){return(D=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function j(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=I(t);if(e){var o=I(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return C(this,n)}}function C(t,e){return!e||"object"!==_(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function I(t){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var T=function(t){P(n,t);var e=j(n);function n(t){return k(this,n),e.call(this,t)}return E(n,[{key:"initialize",value:function(){this.listenTo(this.model,"change:name",this.render)}},{key:"regions",value:function(){return{actions:{el:".actions-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){var t=v.g.createFolderThumbnailUrl(this.model.thumbnail,{fallbackBaseUrl:this.options.imageCdnUrl,fallbackCategoryName:this.model.get("name"),type:y.f.Thumbnails});return{styles:m.a,imageUrl:t}}},{key:"onRender",value:function(){this.showChildView("actions",new R.a({model:this.model,extraClasses:"".concat(m.a.actions," rounded-circle"),buttonClass:"text-light",analyticsOptions:{location:c.k.LibraryTiles},overrideClasses:!0}))}},{key:"name",get:function(){return"LibraryFolderItemComponent"}},{key:"template",get:function(){return b.a}},{key:"className",get:function(){return"col-3 p-2"}},{key:"appLinks",get:function(){return{a:{application:p.b.LIBRARY_EDITOR,action:p.a.LibraryEditor.FOLDER,args:[this.model.get("id")]}}}},{key:"behaviors",get:function(){return[{behaviorClass:O.a,channelNames:[p.w.VIDEO_DRAG_DROP,p.w.FOLDER_DRAG_DROP],analyticsOptions:{location:c.k.LibraryTiles}},{behaviorClass:w.a}]}}]),n}(o.a.Component),x=function(t){P(n,t);var e=j(n);function n(t){return k(this,n),e.call(this,t)}return E(n,[{key:"name",get:function(){return"LibraryFolderListComponent"}},{key:"className",get:function(){return"row"}},{key:"childView",get:function(){return T}},{key:"childViewOptions",get:function(){return this.options.childOptions}}]),n}(o.a.ComponentCollection),L=n(1105),A=n(1186),F=n.n(A),B=n(1187),N=n.n(B);function V(t){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function M(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function U(t,e){return(U=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=G(t);if(e){var o=G(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return q(this,n)}}function q(t,e){return!e||"object"!==V(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function G(t){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"LibraryView",(function(){return H}));var H=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&U(t,e)}(b,t);var e,n,o,h=Y(b);function b(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,b),h.call(this,t)}return e=b,(n=[{key:"initialize",value:function(){var t=this;this.libraryDataService=i.a.getInstance(p.g.Library,this),this.listenTo(p.e.LIBRARY,"clear:library:folder:cache",(function(){t.folders=null,t.render()}))}},{key:"regions",value:function(){return{folders:{el:".folders-region",replaceElement:!0,partialLoading:y.j.LibraryFolders},actions:{el:".actions-region",replaceElement:!0}}}},{key:"renderFolders",value:function(){this.showChildView("folders",new x({collection:this.folders,childOptions:{imageCdnUrl:this.config.get("imageCdnUrl")}}))}},{key:"renderActions",value:function(){this.showChildView("actions",new L.a({model:this.model,extraClasses:"".concat(N.a.actions," rounded-circle mr-2 mt-2"),analyticsOptions:{location:c.k.Banner}}))}},{key:"bindScrollListener",value:function(){var t=this;if(!this.scrollBound){this.scrollBound=!0;var e=$(window),n=r.debounce((function(){if(e.scrollTop()+e.height()>t.$el.offset().top+t.$el.height()&&t.currentIdentifier){var n=t.libraryDataService.getLibraryFoldersCursors(t.currentIdentifier);n&&n.next&&t.libraryDataService.getLibraryFolders(t.getNewCollectionIdentifier(n.next),(function(e){t.folders.add(e.toJSON())}))}}),333);e.scroll(n),window.setTimeout(n,100)}}},{key:"getNewCollectionIdentifier",value:function(t){return this.currentIdentifier=new d.a(this.model.categoryTree.get("id"),s.a.AtoZ,t)}},{key:"onBeforeRender",value:function(){var t=this;if(this.model)return this.folders||this.libraryDataService.getLibraryFolders(this.getNewCollectionIdentifier(),(function(e){t.folders=e,t.render()})),!!this.model&&!!this.folders;this.libraryDataService.getLibraries((function(e){t.model=e.get(t.options.libraryId),t.listenTo(t.model,"change:name",t.render),t.render()}))}},{key:"onRender",value:function(){this.renderFolders(),this.renderActions(),this.bindScrollListener()}},{key:"name",get:function(){return"LibraryView"}},{key:"title",get:function(){return!!this.model&&this.model.get("name")}},{key:"lang",get:function(){return"libraryEditor.library"}},{key:"template",get:function(){return F.a}},{key:"className",get:function(){return"bg-white px-3 pt-3 pb-2 position-relative ".concat(N.a.library)}},{key:"behaviors",get:function(){var t=this;return[{behaviorClass:l.a,region:"folders",type:y.c.Library,shouldRender:function(){return t.model&&!t.model.children.length},componentOptions:{libraryId:this.options.libraryId,moreSvg:u.a.getSvg(u.b.More),heading:a.a.getPhrase(this.lang,"emptyStateHeading"),description:a.a.getPhrase(this.lang,"emptyStateInfo",{moreSvg:'<span class="d-inline-block svg-container align-top">\n '.concat(u.a.getSvg(u.b.More),"</span>")})},emptyStateComponents:p.h}]}},{key:"requiredResources",get:function(){return{config:f.b.config}}}])&&M(e.prototype,n),o&&M(e,o),b}(o.a.View)}}]);