@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,1290 +0,0 @@
1
- (window["webpackJsonp_clickview_library_editor"] = window["webpackJsonp_clickview_library_editor"] || []).push([[16],{
2
-
3
- /***/ "./src/shared/components/dropdown/DropdownButton.hbs":
4
- /*!***********************************************************!*\
5
- !*** ./src/shared/components/dropdown/DropdownButton.hbs ***!
6
- \***********************************************************/
7
- /*! no static exports found */
8
- /***/ (function(module, exports, __webpack_require__) {
9
-
10
- var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
11
- module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
12
- var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;
13
-
14
- return "<label for=\""
15
- + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.buttonId : stack1), depth0))
16
- + "\" class=\"control-label\">"
17
- + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.labelText : stack1), depth0))
18
- + "</label>\r\n";
19
- },"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
20
- var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;
21
-
22
- return ((stack1 = helpers["if"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.labelText : stack1),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
23
- + "<button class=\"dropdown-toggle form-control btn-block text-left "
24
- + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.buttonClass : stack1), depth0))
25
- + "\" type=\"button\" id=\""
26
- + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.buttonId : stack1), depth0))
27
- + "\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\">\r\n "
28
- + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.selected : stack1), depth0))
29
- + "\r\n</button>\r\n<div class=\"dropdown-menu-region\"></div>";
30
- },"useData":true});
31
-
32
- /***/ }),
33
-
34
- /***/ "./src/shared/components/dropdown/DropdownButtonComponent.ts":
35
- /*!*******************************************************************!*\
36
- !*** ./src/shared/components/dropdown/DropdownButtonComponent.ts ***!
37
- \*******************************************************************/
38
- /*! exports provided: DropdownButtonComponent */
39
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
40
-
41
- "use strict";
42
- __webpack_require__.r(__webpack_exports__);
43
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DropdownButtonComponent", function() { return DropdownButtonComponent; });
44
- /* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
45
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../utils */ "./src/shared/utils/index.ts");
46
- /* harmony import */ var _DropdownComponentCollection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DropdownComponentCollection */ "./src/shared/components/dropdown/DropdownComponentCollection.ts");
47
- /* harmony import */ var _DropdownButton_hbs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DropdownButton.hbs */ "./src/shared/components/dropdown/DropdownButton.hbs");
48
- /* harmony import */ var _DropdownButton_hbs__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_DropdownButton_hbs__WEBPACK_IMPORTED_MODULE_3__);
49
- 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); }
50
-
51
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
52
-
53
- 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); } }
54
-
55
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
56
-
57
- 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); }
58
-
59
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
60
-
61
- 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); }; }
62
-
63
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
64
-
65
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
66
-
67
- 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; } }
68
-
69
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
70
-
71
-
72
-
73
-
74
-
75
- /**
76
- * IMPORTANT: Always use the DropdownComponentCollection DIRECTLY where possible.
77
- *
78
- * Use this component ONLY when you need an intermediate layer between a parent view/component and the dropdown list.
79
- *
80
- * During a select event, we need to re-render the template of the button to display the updated value, if this markup
81
- * already exists in your parent it will introduce additional rendering overhead if your parent already has other
82
- * complex UI logic (with stickit, validation, etc) - which will be executed again with each select.
83
- */
84
-
85
- var DropdownButtonComponent = /*#__PURE__*/function (_Core$Component) {
86
- _inherits(DropdownButtonComponent, _Core$Component);
87
-
88
- var _super = _createSuper(DropdownButtonComponent);
89
-
90
- function DropdownButtonComponent(options) {
91
- _classCallCheck(this, DropdownButtonComponent);
92
-
93
- return _super.call(this, options);
94
- }
95
-
96
- _createClass(DropdownButtonComponent, [{
97
- key: "initialize",
98
- value: function initialize() {
99
- var id = this.model ? this.model.get('id') : '';
100
- _utils__WEBPACK_IMPORTED_MODULE_1__["CollectionHelpers"].setSelected(id, this.collection);
101
- this.listenTo(this.options.channelName, this.options.eventName, this.onSelect);
102
- }
103
- }, {
104
- key: "regions",
105
- value: function regions() {
106
- return {
107
- dropdown: {
108
- el: '.dropdown-menu-region',
109
- replaceElement: true
110
- }
111
- };
112
- }
113
- }, {
114
- key: "onSelect",
115
- value: function onSelect(model) {
116
- _utils__WEBPACK_IMPORTED_MODULE_1__["CollectionHelpers"].setSelected(model.get('id'), this.collection);
117
- this.render();
118
- }
119
- }, {
120
- key: "viewOptions",
121
- value: function viewOptions() {
122
- var model = _utils__WEBPACK_IMPORTED_MODULE_1__["CollectionHelpers"].getSelected(this.collection);
123
- return Object.assign({
124
- selected: model && model.get('name')
125
- }, this.options);
126
- }
127
- }, {
128
- key: "getIsOptionDisabledFn",
129
- value: function getIsOptionDisabledFn() {
130
- var currentModel = _utils__WEBPACK_IMPORTED_MODULE_1__["CollectionHelpers"].getSelected(this.collection);
131
- var currentSelectionId = currentModel && currentModel.id;
132
- return function () {
133
- if (!currentSelectionId) return false;
134
- currentSelectionId = currentSelectionId.toString();
135
- var id = this.model.get('id').toString();
136
- return id === currentSelectionId;
137
- };
138
- }
139
- }, {
140
- key: "renderChannelDropdown",
141
- value: function renderChannelDropdown() {
142
- this.showChildView('dropdown', new _DropdownComponentCollection__WEBPACK_IMPORTED_MODULE_2__["DropdownComponentCollection"]({
143
- collection: this.collection,
144
- channelName: this.options.channelName,
145
- childOptions: {
146
- titleProperty: this.options.titleProperty,
147
- isDisabled: this.getIsOptionDisabledFn(),
148
- eventName: this.options.eventName
149
- },
150
- displayOptions: this.options.displayOptions,
151
- analyticsHelper: this.options.analyticsHelper
152
- }));
153
- }
154
- }, {
155
- key: "onRender",
156
- value: function onRender() {
157
- this.renderChannelDropdown();
158
- }
159
- }, {
160
- key: "name",
161
- get: function get() {
162
- return 'DropdownComponent';
163
- }
164
- }, {
165
- key: "template",
166
- get: function get() {
167
- return _DropdownButton_hbs__WEBPACK_IMPORTED_MODULE_3___default.a;
168
- }
169
- }, {
170
- key: "className",
171
- get: function get() {
172
- if (this.options.buttonClass) return "select-channel ".concat(this.options.buttonClass);
173
- return 'select-channel';
174
- }
175
- }]);
176
-
177
- return DropdownButtonComponent;
178
- }(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].Component);
179
-
180
- /***/ }),
181
-
182
- /***/ "./src/shared/components/dropdown/DropdownComponentCollection.ts":
183
- /*!***********************************************************************!*\
184
- !*** ./src/shared/components/dropdown/DropdownComponentCollection.ts ***!
185
- \***********************************************************************/
186
- /*! exports provided: DropdownComponentCollection */
187
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
188
-
189
- "use strict";
190
- __webpack_require__.r(__webpack_exports__);
191
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DropdownComponentCollection", function() { return DropdownComponentCollection; });
192
- /* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! underscore */ "underscore");
193
- /* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(underscore__WEBPACK_IMPORTED_MODULE_0__);
194
- /* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
195
- /* harmony import */ var _DropdownItemComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DropdownItemComponent */ "./src/shared/components/dropdown/DropdownItemComponent.ts");
196
- 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); }
197
-
198
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
199
-
200
- 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); } }
201
-
202
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
203
-
204
- 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); }
205
-
206
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
207
-
208
- 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); }; }
209
-
210
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
211
-
212
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
213
-
214
- 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; } }
215
-
216
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
217
-
218
-
219
-
220
-
221
- var DropdownComponentCollection = /*#__PURE__*/function (_Core$ComponentCollec) {
222
- _inherits(DropdownComponentCollection, _Core$ComponentCollec);
223
-
224
- var _super = _createSuper(DropdownComponentCollection);
225
-
226
- function DropdownComponentCollection(options) {
227
- _classCallCheck(this, DropdownComponentCollection);
228
-
229
- return _super.call(this, options);
230
- }
231
-
232
- _createClass(DropdownComponentCollection, [{
233
- key: "initialize",
234
- value: function initialize() {
235
- this.listenTo(this.options.channelName, 'center:dropdown', this.centerSelectedItem);
236
- }
237
- }, {
238
- key: "getExtraClasses",
239
- value: function getExtraClasses() {
240
- var displayOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
241
- var _displayOptions$align = displayOptions.alignment,
242
- alignment = _displayOptions$align === void 0 ? 'left' : _displayOptions$align,
243
- extraClasses = displayOptions.extraClasses;
244
- var className = "dropdown-menu-".concat(alignment);
245
- if (extraClasses) className = "".concat(className, " ").concat(extraClasses);
246
- return className;
247
- }
248
- }, {
249
- key: "centerSelectedItem",
250
- value: function centerSelectedItem() {
251
- var active = this.$el.find('.active');
252
- if (!active.length) return;
253
- var halfRatio = 0.5;
254
- var top = this.$el.scrollTop() + active.position().top;
255
- var distance = this.$el.height() * halfRatio + active.height() * halfRatio;
256
- this.$el.scrollTop(top - distance);
257
- }
258
- }, {
259
- key: "name",
260
- get: function get() {
261
- return 'DropdownCollectionComponent';
262
- }
263
- }, {
264
- key: "className",
265
- get: function get() {
266
- return "dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions));
267
- }
268
- }, {
269
- key: "attributes",
270
- get: function get() {
271
- return {
272
- 'aria-labelledby': 'dropdownSelector'
273
- };
274
- }
275
- }, {
276
- key: "childView",
277
- get: function get() {
278
- return _DropdownItemComponent__WEBPACK_IMPORTED_MODULE_2__["DropdownItemComponent"];
279
- }
280
- }, {
281
- key: "childViewOptions",
282
- get: function get() {
283
- var baseChildOptions = {
284
- channelName: this.options.channelName,
285
- analyticsHelper: this.options.analyticsHelper
286
- };
287
- return underscore__WEBPACK_IMPORTED_MODULE_0__["extend"](baseChildOptions, this.options.childOptions);
288
- }
289
- }]);
290
-
291
- return DropdownComponentCollection;
292
- }(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__["Core"].ComponentCollection);
293
-
294
- /***/ }),
295
-
296
- /***/ "./src/shared/models/DisabledSpinnerModel.ts":
297
- /*!***************************************************!*\
298
- !*** ./src/shared/models/DisabledSpinnerModel.ts ***!
299
- \***************************************************/
300
- /*! exports provided: DisabledSpinnerModel */
301
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
302
-
303
- "use strict";
304
- __webpack_require__.r(__webpack_exports__);
305
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DisabledSpinnerModel", function() { return DisabledSpinnerModel; });
306
- /* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
307
- /* harmony import */ var _components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/spinner-button/SpinnerButtonComponent */ "./src/shared/components/spinner-button/SpinnerButtonComponent.ts");
308
- 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); }
309
-
310
- 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; }
311
-
312
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
313
-
314
- 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); } }
315
-
316
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
317
-
318
- 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); }
319
-
320
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
321
-
322
- 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); }; }
323
-
324
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
325
-
326
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
327
-
328
- 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; } }
329
-
330
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
331
-
332
-
333
-
334
- var DisabledSpinnerModel = /*#__PURE__*/function (_Core$Model) {
335
- _inherits(DisabledSpinnerModel, _Core$Model);
336
-
337
- var _super = _createSuper(DisabledSpinnerModel);
338
-
339
- function DisabledSpinnerModel() {
340
- _classCallCheck(this, DisabledSpinnerModel);
341
-
342
- return _super.apply(this, arguments);
343
- }
344
-
345
- _createClass(DisabledSpinnerModel, [{
346
- key: "defaults",
347
- value: function defaults() {
348
- return _defineProperty({}, _components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_1__["SpinnerButtonModelAttributes"].Disabled, true);
349
- }
350
- }]);
351
-
352
- return DisabledSpinnerModel;
353
- }(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].Model);
354
-
355
- /***/ }),
356
-
357
- /***/ "./src/shared/views/restrict-access/RestrictAccess.hbs":
358
- /*!*************************************************************!*\
359
- !*** ./src/shared/views/restrict-access/RestrictAccess.hbs ***!
360
- \*************************************************************/
361
- /*! no static exports found */
362
- /***/ (function(module, exports, __webpack_require__) {
363
-
364
- var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
365
- module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
366
- var stack1, alias1=container.propertyIsEnumerable;
367
-
368
- return ((stack1 = container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.spinnerEl : stack1), depth0)) != null ? stack1 : "")
369
- + "\r\n";
370
- },"3":function(container,depth0,helpers,partials,data) {
371
- var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;
372
-
373
- return "<div class=\"d-flex align-items-center\">\r\n<label class=\"control-label m-0 pb-2\">"
374
- + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.restrictFromLabel : stack1), depth0))
375
- + "</label>\r\n"
376
- + ((stack1 = helpers["if"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.supportUrl : stack1),{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
377
- + "</div>\r\n<div class=\"dropdown-region "
378
- + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.select : stack1), depth0))
379
- + " mb-3\"></div>\r\n<div class=\"access-view-region\"></div>\r\n";
380
- },"4":function(container,depth0,helpers,partials,data) {
381
- var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;
382
-
383
- return "<a \r\n class=\"d-inline-block ml-1 mb-3 "
384
- + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.svgContainer : stack1), depth0))
385
- + "\"\r\n title=\""
386
- + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"findOutMore",{"name":"lang","hash":{},"data":data}))
387
- + "\"\r\n href=\""
388
- + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.supportUrl : stack1), depth0))
389
- + "\" \r\n target=\"_blank\"\r\n>\r\n "
390
- + ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.svg : stack1), depth0)) != null ? stack1 : "")
391
- + "\r\n</a>\r\n";
392
- },"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
393
- var stack1, alias1=container.propertyIsEnumerable;
394
-
395
- return ((stack1 = helpers.unless.call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.dataFetched : stack1),{"name":"unless","hash":{},"fn":container.program(1, data, 0),"inverse":container.program(3, data, 0),"data":data})) != null ? stack1 : "");
396
- },"useData":true});
397
-
398
- /***/ }),
399
-
400
- /***/ "./src/shared/views/restrict-access/RestrictAccessComponent.ts":
401
- /*!*********************************************************************!*\
402
- !*** ./src/shared/views/restrict-access/RestrictAccessComponent.ts ***!
403
- \*********************************************************************/
404
- /*! exports provided: RestrictAccessComponent */
405
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
406
-
407
- "use strict";
408
- __webpack_require__.r(__webpack_exports__);
409
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RestrictAccessComponent", function() { return RestrictAccessComponent; });
410
- /* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
411
- /* harmony import */ var _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../libs/common/src/backbone/services/LanguageService */ "../../libs/common/src/backbone/services/LanguageService.tsx");
412
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../utils */ "./src/shared/utils/index.ts");
413
- 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); }
414
-
415
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
416
-
417
- 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); } }
418
-
419
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
420
-
421
- 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); }
422
-
423
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
424
-
425
- 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); }; }
426
-
427
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
428
-
429
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
430
-
431
- 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; } }
432
-
433
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
434
-
435
-
436
-
437
-
438
- var RestrictAccessComponent = /*#__PURE__*/function (_Core$Component) {
439
- _inherits(RestrictAccessComponent, _Core$Component);
440
-
441
- var _super = _createSuper(RestrictAccessComponent);
442
-
443
- function RestrictAccessComponent() {
444
- _classCallCheck(this, RestrictAccessComponent);
445
-
446
- return _super.apply(this, arguments);
447
- }
448
-
449
- _createClass(RestrictAccessComponent, [{
450
- key: "getTemplateText",
451
- value: function getTemplateText() {
452
- return _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_1__["LanguageService"].getPhrase(this.lang, 'groupNoAccess', {
453
- groupName: _utils__WEBPACK_IMPORTED_MODULE_2__["RestrictedAccessHelper"].mapYearGroupToName(this.model.get('groupId'))
454
- });
455
- }
456
- }, {
457
- key: "name",
458
- get: function get() {
459
- return 'RestrictAccessComponent';
460
- }
461
- }, {
462
- key: "template",
463
- get: function get() {
464
- return "<p>".concat(this.getTemplateText(), "</p>");
465
- }
466
- }, {
467
- key: "lang",
468
- get: function get() {
469
- return 'shared.restrictAccess';
470
- }
471
- }]);
472
-
473
- return RestrictAccessComponent;
474
- }(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].Component);
475
-
476
- /***/ }),
477
-
478
- /***/ "./src/shared/views/restrict-access/RestrictAccessGroup.hbs":
479
- /*!******************************************************************!*\
480
- !*** ./src/shared/views/restrict-access/RestrictAccessGroup.hbs ***!
481
- \******************************************************************/
482
- /*! no static exports found */
483
- /***/ (function(module, exports, __webpack_require__) {
484
-
485
- var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
486
- module.exports = (Handlebars['default'] || Handlebars).template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
487
- return "<div class=\"year-group-region\"></div>\r\n<div name=\"year\" class=\"mt-3\"></div>";
488
- },"useData":true});
489
-
490
- /***/ }),
491
-
492
- /***/ "./src/shared/views/restrict-access/RestrictAccessGroupComponent.ts":
493
- /*!**************************************************************************!*\
494
- !*** ./src/shared/views/restrict-access/RestrictAccessGroupComponent.ts ***!
495
- \**************************************************************************/
496
- /*! exports provided: RestrictAccessGroupComponent */
497
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
498
-
499
- "use strict";
500
- __webpack_require__.r(__webpack_exports__);
501
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RestrictAccessGroupComponent", function() { return RestrictAccessGroupComponent; });
502
- /* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! underscore */ "underscore");
503
- /* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(underscore__WEBPACK_IMPORTED_MODULE_0__);
504
- /* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! backbone */ "backbone");
505
- /* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(backbone__WEBPACK_IMPORTED_MODULE_1__);
506
- /* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
507
- /* harmony import */ var _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../libs/common/src/backbone/services/InstanceManager */ "../../libs/common/src/backbone/services/InstanceManager.ts");
508
- /* harmony import */ var _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../libs/common/src/backbone/services/LanguageService */ "../../libs/common/src/backbone/services/LanguageService.tsx");
509
- /* harmony import */ var _restrict_access_scss__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./restrict-access.scss */ "./src/shared/views/restrict-access/restrict-access.scss");
510
- /* harmony import */ var _restrict_access_scss__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_restrict_access_scss__WEBPACK_IMPORTED_MODULE_5__);
511
- /* harmony import */ var _RestrictAccessGroup_hbs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./RestrictAccessGroup.hbs */ "./src/shared/views/restrict-access/RestrictAccessGroup.hbs");
512
- /* harmony import */ var _RestrictAccessGroup_hbs__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_RestrictAccessGroup_hbs__WEBPACK_IMPORTED_MODULE_6__);
513
- /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../constants */ "./src/shared/constants/index.ts");
514
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../utils */ "./src/shared/utils/index.ts");
515
- /* harmony import */ var _services_UserDataService__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../services/UserDataService */ "./src/shared/services/UserDataService.ts");
516
- /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../enums */ "./src/shared/enums/index.ts");
517
- 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); }
518
-
519
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
520
-
521
- 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); } }
522
-
523
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
524
-
525
- 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); }
526
-
527
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
528
-
529
- 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); }; }
530
-
531
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
532
-
533
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
534
-
535
- 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; } }
536
-
537
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
538
-
539
-
540
-
541
-
542
-
543
-
544
-
545
-
546
-
547
-
548
-
549
-
550
-
551
- var RestrictAccessYearGroupItemCollection = /*#__PURE__*/function (_Core$Component) {
552
- _inherits(RestrictAccessYearGroupItemCollection, _Core$Component);
553
-
554
- var _super = _createSuper(RestrictAccessYearGroupItemCollection);
555
-
556
- function RestrictAccessYearGroupItemCollection() {
557
- _classCallCheck(this, RestrictAccessYearGroupItemCollection);
558
-
559
- return _super.apply(this, arguments);
560
- }
561
-
562
- _createClass(RestrictAccessYearGroupItemCollection, [{
563
- key: "events",
564
- value: function events() {
565
- return {
566
- click: 'onClick'
567
- };
568
- }
569
- }, {
570
- key: "onClick",
571
- value: function onClick() {
572
- var channel = backbone__WEBPACK_IMPORTED_MODULE_1__["Radio"].channel(this.options.channelName);
573
- channel.trigger('group:selected', this.model);
574
- }
575
- }, {
576
- key: "name",
577
- get: function get() {
578
- return 'RestrictAccessYearGroupItemView';
579
- }
580
- }, {
581
- key: "className",
582
- get: function get() {
583
- var className = "btn text-center p-0 pb-1 pt-1 ".concat(_restrict_access_scss__WEBPACK_IMPORTED_MODULE_5___default.a.groupButton);
584
- if (this.model.get('selected')) className += " ".concat(_restrict_access_scss__WEBPACK_IMPORTED_MODULE_5___default.a.groupButtonSelected);
585
- return className;
586
- }
587
- }, {
588
- key: "tagName",
589
- get: function get() {
590
- return 'button';
591
- }
592
- }, {
593
- key: "attributes",
594
- get: function get() {
595
- var width = 100 / this.model.collection.length;
596
- return {
597
- type: 'button',
598
- style: "width: ".concat(width, "%")
599
- };
600
- }
601
- }, {
602
- key: "template",
603
- get: function get() {
604
- var year = this.model.get('year');
605
- return "<span>".concat(year, "</span>");
606
- }
607
- }]);
608
-
609
- return RestrictAccessYearGroupItemCollection;
610
- }(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__["Core"].Component);
611
-
612
- var RestrictAccessYearGroupComponentCollection = /*#__PURE__*/function (_Core$CollectionView) {
613
- _inherits(RestrictAccessYearGroupComponentCollection, _Core$CollectionView);
614
-
615
- var _super2 = _createSuper(RestrictAccessYearGroupComponentCollection);
616
-
617
- function RestrictAccessYearGroupComponentCollection() {
618
- _classCallCheck(this, RestrictAccessYearGroupComponentCollection);
619
-
620
- return _super2.apply(this, arguments);
621
- }
622
-
623
- _createClass(RestrictAccessYearGroupComponentCollection, [{
624
- key: "initialize",
625
- value: function initialize() {
626
- this.bindListeners();
627
- }
628
- }, {
629
- key: "bindListeners",
630
- value: function bindListeners() {
631
- this.listenTo(this.channelName, 'group:selected', this.onYearGroupSelected);
632
- }
633
- }, {
634
- key: "onYearGroupSelected",
635
- value: function onYearGroupSelected(model) {
636
- this.collection.each(function (m) {
637
- return m.set('selected', m.get('groupId') <= model.get('groupId'));
638
- });
639
- this.model.set('groupId', model.get('groupId'));
640
- this.model.set('yearGroup', model.get('groupId'));
641
- this.render();
642
- }
643
- }, {
644
- key: "onBeforeRender",
645
- value: function onBeforeRender() {
646
- // Year group in this view has been previously set, so refresh that state
647
- var yearGroup = this.model.get('yearGroup') || this.model.get('groupId');
648
-
649
- if (yearGroup) {
650
- this.collection.each(function (g) {
651
- return g.set('selected', g.get('groupId') <= yearGroup);
652
- });
653
- this.model.set('groupId', yearGroup);
654
- }
655
- }
656
- }, {
657
- key: "name",
658
- get: function get() {
659
- return 'RestrictAccessYearGroupComponentCollection';
660
- }
661
- }, {
662
- key: "className",
663
- get: function get() {
664
- return "btn-group w-100 ".concat(_restrict_access_scss__WEBPACK_IMPORTED_MODULE_5___default.a.groupButtons);
665
- }
666
- }, {
667
- key: "channelName",
668
- get: function get() {
669
- return "".concat(this.name).concat(this.cid);
670
- }
671
- }, {
672
- key: "childView",
673
- get: function get() {
674
- return RestrictAccessYearGroupItemCollection;
675
- }
676
- }, {
677
- key: "childViewOptions",
678
- get: function get() {
679
- return {
680
- channelName: this.channelName
681
- };
682
- }
683
- }]);
684
-
685
- return RestrictAccessYearGroupComponentCollection;
686
- }(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__["Core"].CollectionView);
687
-
688
- var RestrictAccessGroupComponent = /*#__PURE__*/function (_Core$Component2) {
689
- _inherits(RestrictAccessGroupComponent, _Core$Component2);
690
-
691
- var _super3 = _createSuper(RestrictAccessGroupComponent);
692
-
693
- function RestrictAccessGroupComponent() {
694
- _classCallCheck(this, RestrictAccessGroupComponent);
695
-
696
- return _super3.apply(this, arguments);
697
- }
698
-
699
- _createClass(RestrictAccessGroupComponent, [{
700
- key: "initialize",
701
- value: function initialize() {
702
- this.configDataService = _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_3__["InstanceManager"].getInstance(_constants__WEBPACK_IMPORTED_MODULE_7__["DataServices"].Config, this);
703
- }
704
- }, {
705
- key: "regions",
706
- value: function regions() {
707
- return {
708
- yearGroupList: {
709
- replaceElement: true,
710
- el: '.year-group-region'
711
- }
712
- };
713
- }
714
- }, {
715
- key: "viewOptions",
716
- value: function viewOptions() {
717
- return {
718
- styles: _restrict_access_scss__WEBPACK_IMPORTED_MODULE_5___default.a
719
- };
720
- }
721
- }, {
722
- key: "onBeforeRender",
723
- value: function onBeforeRender() {
724
- var _this = this;
725
-
726
- if (!this.yearGroups) this.getYearGroups(); // If the videos groupId isn't a year group, set it to undefined
727
-
728
- if (!underscore__WEBPACK_IMPORTED_MODULE_0__["some"](this.yearGroups, function (g) {
729
- return g.groupId === _this.model.get('groupId');
730
- })) this.model.set('groupId', undefined);
731
- }
732
- }, {
733
- key: "onRender",
734
- value: function onRender() {
735
- this.stickit();
736
- this.showChildView('yearGroupList', new RestrictAccessYearGroupComponentCollection({
737
- model: this.model,
738
- collection: new _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__["Core"].Collection(this.yearGroups)
739
- }));
740
- }
741
- }, {
742
- key: "onBeforeDestroy",
743
- value: function onBeforeDestroy() {
744
- this.unstickit();
745
- }
746
- }, {
747
- key: "getYearGroups",
748
- value: function getYearGroups() {
749
- var _this2 = this;
750
-
751
- var customerYearGroups = this.configDataService.getCustomerYearGroups(this.currentUser.get('countryCode'));
752
- this.yearGroups = [];
753
-
754
- underscore__WEBPACK_IMPORTED_MODULE_0__["keys"](_enums__WEBPACK_IMPORTED_MODULE_10__["YearGroup"]).forEach(function (oyg) {
755
- var groupId = parseInt(oyg, 10); // Only add year groups present in the customers year groups
756
-
757
- if (!underscore__WEBPACK_IMPORTED_MODULE_0__["isNaN"](groupId) && underscore__WEBPACK_IMPORTED_MODULE_0__["contains"](customerYearGroups, groupId)) {
758
- var year = groupId === _enums__WEBPACK_IMPORTED_MODULE_10__["YearGroup"].Kindergarten ? 'K' : _enums__WEBPACK_IMPORTED_MODULE_10__["YearGroup"][groupId].replace('Year', 'Y');
759
-
760
- _this2.yearGroups.push({
761
- year: year,
762
- groupId: groupId
763
- });
764
- }
765
- });
766
- }
767
- }, {
768
- key: "buildGroupMessage",
769
- value: function buildGroupMessage(group) {
770
- if (group) {
771
- var groupName = _utils__WEBPACK_IMPORTED_MODULE_8__["RestrictedAccessHelper"].mapYearGroupToName(group);
772
- return _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_4__["LanguageService"].getPhrase(this.lang, 'selectedYearGroups', {
773
- classNames: _restrict_access_scss__WEBPACK_IMPORTED_MODULE_5___default.a.mediumWeight,
774
- groupName: groupName
775
- });
776
- }
777
-
778
- return _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_4__["LanguageService"].getPhrase(this.lang, 'selectYearGroups');
779
- }
780
- }, {
781
- key: "name",
782
- get: function get() {
783
- return 'RestrictAccessGroupComponent';
784
- }
785
- }, {
786
- key: "lang",
787
- get: function get() {
788
- return 'shared.restrictAccess';
789
- }
790
- }, {
791
- key: "props",
792
- get: function get() {
793
- return ['configDataService', 'currentUser'];
794
- }
795
- }, {
796
- key: "template",
797
- get: function get() {
798
- return _RestrictAccessGroup_hbs__WEBPACK_IMPORTED_MODULE_6___default.a;
799
- }
800
- /**
801
- * Setup a binding for when the value of the year group changes
802
- */
803
-
804
- }, {
805
- key: "bindings",
806
- get: function get() {
807
- var _this3 = this;
808
-
809
- return {
810
- '[name=year]': {
811
- observe: 'groupId',
812
- onGet: function onGet(value) {
813
- return _this3.buildGroupMessage(value);
814
- },
815
- updateMethod: 'html',
816
- escape: false
817
- }
818
- };
819
- }
820
- }, {
821
- key: "requiredResources",
822
- get: function get() {
823
- return {
824
- currentUser: _services_UserDataService__WEBPACK_IMPORTED_MODULE_9__["UserDataServiceHelper"].currentUser
825
- };
826
- }
827
- }]);
828
-
829
- return RestrictAccessGroupComponent;
830
- }(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__["Core"].Component);
831
-
832
- /***/ }),
833
-
834
- /***/ "./src/shared/views/restrict-access/RestrictAccessView.ts":
835
- /*!****************************************************************!*\
836
- !*** ./src/shared/views/restrict-access/RestrictAccessView.ts ***!
837
- \****************************************************************/
838
- /*! exports provided: RestrictAccessView */
839
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
840
-
841
- "use strict";
842
- __webpack_require__.r(__webpack_exports__);
843
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RestrictAccessView", function() { return RestrictAccessView; });
844
- /* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! underscore */ "underscore");
845
- /* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(underscore__WEBPACK_IMPORTED_MODULE_0__);
846
- /* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! backbone */ "backbone");
847
- /* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(backbone__WEBPACK_IMPORTED_MODULE_1__);
848
- /* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
849
- /* harmony import */ var _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../libs/common/src/backbone/services/InstanceManager */ "../../libs/common/src/backbone/services/InstanceManager.ts");
850
- /* harmony import */ var _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../libs/common/src/backbone/services/LanguageService */ "../../libs/common/src/backbone/services/LanguageService.tsx");
851
- /* harmony import */ var _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../libs/shared/src/utils/SvgHelper */ "../../libs/shared/src/utils/SvgHelper.ts");
852
- /* harmony import */ var _libs_shared_src_legacy_behaviors_tooltip_TooltipBehavior__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../libs/shared/src/legacy/behaviors/tooltip/TooltipBehavior */ "../../libs/shared/src/legacy/behaviors/tooltip/TooltipBehavior.ts");
853
- /* harmony import */ var _models_DisabledSpinnerModel__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../models/DisabledSpinnerModel */ "./src/shared/models/DisabledSpinnerModel.ts");
854
- /* harmony import */ var _behaviors__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../behaviors */ "./src/shared/behaviors/index.ts");
855
- /* harmony import */ var _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../../libs/analytics/src/interfaces */ "../../libs/analytics/src/interfaces/index.ts");
856
- /* harmony import */ var _libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../../../libs/analytics/src/AnalyticsHelper */ "../../libs/analytics/src/AnalyticsHelper.ts");
857
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../utils */ "./src/shared/utils/index.ts");
858
- /* harmony import */ var _models_Restriction__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../models/Restriction */ "./src/shared/models/Restriction.ts");
859
- /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../constants */ "./src/shared/constants/index.ts");
860
- /* harmony import */ var _services_UserDataService__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../services/UserDataService */ "./src/shared/services/UserDataService.ts");
861
- /* harmony import */ var _services_ConfigDataService__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../services/ConfigDataService */ "./src/shared/services/ConfigDataService.ts");
862
- /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../enums */ "./src/shared/enums/index.ts");
863
- /* harmony import */ var _components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../components/spinner-button/SpinnerButtonComponent */ "./src/shared/components/spinner-button/SpinnerButtonComponent.ts");
864
- /* harmony import */ var _components_dropdown_DropdownButtonComponent__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../components/dropdown/DropdownButtonComponent */ "./src/shared/components/dropdown/DropdownButtonComponent.ts");
865
- /* harmony import */ var _RestrictAccessGroupComponent__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./RestrictAccessGroupComponent */ "./src/shared/views/restrict-access/RestrictAccessGroupComponent.ts");
866
- /* harmony import */ var _RestrictAccessComponent__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./RestrictAccessComponent */ "./src/shared/views/restrict-access/RestrictAccessComponent.ts");
867
- /* harmony import */ var _RestrictAccess_hbs__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./RestrictAccess.hbs */ "./src/shared/views/restrict-access/RestrictAccess.hbs");
868
- /* harmony import */ var _RestrictAccess_hbs__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_RestrictAccess_hbs__WEBPACK_IMPORTED_MODULE_21__);
869
- /* harmony import */ var _restrict_access_scss__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./restrict-access.scss */ "./src/shared/views/restrict-access/restrict-access.scss");
870
- /* harmony import */ var _restrict_access_scss__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(_restrict_access_scss__WEBPACK_IMPORTED_MODULE_22__);
871
- 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); }
872
-
873
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
874
-
875
- 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); } }
876
-
877
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
878
-
879
- 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); }
880
-
881
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
882
-
883
- 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); }; }
884
-
885
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
886
-
887
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
888
-
889
- 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; } }
890
-
891
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
892
-
893
-
894
-
895
-
896
-
897
-
898
-
899
-
900
-
901
-
902
-
903
-
904
-
905
-
906
-
907
-
908
-
909
-
910
-
911
-
912
-
913
-
914
-
915
-
916
-
917
- var DropdownOption;
918
-
919
- (function (DropdownOption) {
920
- DropdownOption["Students"] = "Students";
921
- DropdownOption["Groups"] = "Certain year groups";
922
- DropdownOption["All"] = "Students and staff";
923
- })(DropdownOption || (DropdownOption = {}));
924
-
925
- var RestrictAccessView = /*#__PURE__*/function (_Core$View) {
926
- _inherits(RestrictAccessView, _Core$View);
927
-
928
- var _super = _createSuper(RestrictAccessView);
929
-
930
- function RestrictAccessView(options) {
931
- _classCallCheck(this, RestrictAccessView);
932
-
933
- return _super.call(this, options);
934
- }
935
-
936
- _createClass(RestrictAccessView, [{
937
- key: "initialize",
938
- value: function initialize() {
939
- this.restriction = new _models_Restriction__WEBPACK_IMPORTED_MODULE_12__["Restriction"]({
940
- groupId: _enums__WEBPACK_IMPORTED_MODULE_16__["YearGroup"].Students
941
- });
942
- this.selected = DropdownOption.Students;
943
- this.bindListeners();
944
- this.videoDataService = _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_3__["InstanceManager"].getInstance(_constants__WEBPACK_IMPORTED_MODULE_13__["DataServices"].Video, this);
945
- this.restrictedVideoDataService = _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_3__["InstanceManager"].getInstance(_constants__WEBPACK_IMPORTED_MODULE_13__["DataServices"].RestrictedVideo, this);
946
- this.videoMixinService = _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_3__["InstanceManager"].getInstance(_constants__WEBPACK_IMPORTED_MODULE_13__["Services"].VideoMixin, this);
947
- }
948
- }, {
949
- key: "bindListeners",
950
- value: function bindListeners() {
951
- this.listenTo(this.channelName, 'dropdown:selected', this.onOptionSelected);
952
- this.listenTo(this.restriction, 'change:groupId', this.onGroupChanged);
953
- this.listenTo(_constants__WEBPACK_IMPORTED_MODULE_13__["DataChannels"].VIDEO, "".concat(_constants__WEBPACK_IMPORTED_MODULE_13__["DataPrefixes"].VIDEOS, ":").concat(this.options.videoId, ":sync"), this.render);
954
- this.listenTo(_constants__WEBPACK_IMPORTED_MODULE_13__["DataChannels"].RESTRICTED_VIDEO, "".concat(_constants__WEBPACK_IMPORTED_MODULE_13__["DataPrefixes"].RESTRICTED_OBJECTS, ":").concat(this.options.videoId, ":sync"), this.render);
955
- }
956
- }, {
957
- key: "events",
958
- value: function events() {
959
- return {
960
- 'submit': 'onSubmit',
961
- 'click .allow-full-access': 'onAllowFullAccess'
962
- };
963
- }
964
- }, {
965
- key: "regions",
966
- value: function regions() {
967
- return {
968
- dropdown: '.dropdown-region',
969
- accessView: {
970
- replaceElement: true,
971
- el: '.access-view-region'
972
- }
973
- };
974
- }
975
- }, {
976
- key: "getAllowFullAccessBtnClassName",
977
- value: function getAllowFullAccessBtnClassName() {
978
- var className = 'btn btn-link cursor-pointer mr-2 allow-full-access';
979
- if (!this.dataFetched() || this.spinnerModel.get(_components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_17__["SpinnerButtonModelAttributes"].ShowSpinner)) className += ' disabled';
980
- return className;
981
- }
982
- }, {
983
- key: "getSubmitBtnTooltipOptions",
984
- value: function getSubmitBtnTooltipOptions() {
985
- if (!this.dataFetched() || !this.spinnerModel.get(_components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_17__["SpinnerButtonModelAttributes"].Disabled)) return;
986
- return {
987
- title: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_4__["LanguageService"].getPhrase(this.lang, 'selectYear')
988
- };
989
- }
990
- /**
991
- * Called when a dropdown access option is selected
992
- */
993
-
994
- }, {
995
- key: "onOptionSelected",
996
- value: function onOptionSelected(model) {
997
- this.refreshRestriction();
998
- var accessView = this.getAccessView(model.get('name'));
999
- this.showChildView('accessView', new accessView({
1000
- model: this.restriction,
1001
- currentUser: this.currentUser
1002
- }));
1003
- this.renderDropdown();
1004
- }
1005
- /**
1006
- * Make sure a year group is selected in the year group button group
1007
- */
1008
-
1009
- }, {
1010
- key: "onGroupChanged",
1011
- value: function onGroupChanged(model) {
1012
- if (!this.isRendered()) return;
1013
- this.spinnerModel.set(_components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_17__["SpinnerButtonModelAttributes"].Disabled, underscore__WEBPACK_IMPORTED_MODULE_0__["isUndefined"](model.get('groupId')));
1014
- }
1015
- /**
1016
- * Returns corresponding view to render based on selected option
1017
- * and sets group if Students or All selected
1018
- */
1019
-
1020
- }, {
1021
- key: "getAccessView",
1022
- value: function getAccessView(selected) {
1023
- this.selected = selected;
1024
-
1025
- switch (selected) {
1026
- case DropdownOption.Students:
1027
- this.restriction.set('groupId', _enums__WEBPACK_IMPORTED_MODULE_16__["YearGroup"].Students);
1028
- return _RestrictAccessComponent__WEBPACK_IMPORTED_MODULE_20__["RestrictAccessComponent"];
1029
-
1030
- case DropdownOption.Groups:
1031
- return _RestrictAccessGroupComponent__WEBPACK_IMPORTED_MODULE_19__["RestrictAccessGroupComponent"];
1032
-
1033
- case DropdownOption.All:
1034
- this.restriction.set('groupId', _enums__WEBPACK_IMPORTED_MODULE_16__["YearGroup"].All);
1035
- return _RestrictAccessComponent__WEBPACK_IMPORTED_MODULE_20__["RestrictAccessComponent"];
1036
- }
1037
- }
1038
- /**
1039
- * Returns the dropdown item corresponding to the given restriction groupId
1040
- */
1041
-
1042
- }, {
1043
- key: "getSelection",
1044
- value: function getSelection(groupId) {
1045
- switch (groupId) {
1046
- case _enums__WEBPACK_IMPORTED_MODULE_16__["YearGroup"].All:
1047
- case _enums__WEBPACK_IMPORTED_MODULE_16__["YearGroup"].Staff:
1048
- return DropdownOption.All;
1049
-
1050
- case _enums__WEBPACK_IMPORTED_MODULE_16__["YearGroup"].Students:
1051
- return DropdownOption.Students;
1052
-
1053
- default:
1054
- return DropdownOption.Groups;
1055
- }
1056
- }
1057
- /**
1058
- * Re-sets the server side restriction on the model, essentially refreshing the model with its
1059
- * actual restrictions. Also sets the dropdown selection to the dropdown corresponding to the restriction
1060
- */
1061
-
1062
- }, {
1063
- key: "refreshRestriction",
1064
- value: function refreshRestriction() {
1065
- if (!this.restrictedObjectCollection || !this.restrictedObjectCollection.length || !this.model) return;
1066
- this.videoMixinService.mixinVideoRestriction(this.model, this.restrictedObjectCollection);
1067
- var restriction = this.model.restrictions.last(); // If a restriction on the video exists, set the views selection and restriction to it
1068
-
1069
- if (restriction && underscore__WEBPACK_IMPORTED_MODULE_0__["isNumber"](restriction.get('groupId'))) {
1070
- this.restriction.set('groupId', restriction.get('groupId'));
1071
- this.selected = this.getSelection(restriction.get('groupId'));
1072
- }
1073
- }
1074
- }, {
1075
- key: "onSubmit",
1076
- value: function onSubmit(e) {
1077
- var _this = this;
1078
-
1079
- e && e.preventDefault();
1080
- if (underscore__WEBPACK_IMPORTED_MODULE_0__["isUndefined"](this.restriction.get('groupId'))) return false;
1081
- backbone__WEBPACK_IMPORTED_MODULE_1__["Radio"].channel(this.channelName).trigger(_components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_17__["SpinnerButtonEvents"].ShowSpinner);
1082
- this.restrictedVideoDataService.updateVideoRestriction(this.options.videoId, this.restriction.get('groupId'), this.currentUser.get('customerId'), this.currentUser.get('id'), function () {
1083
- _this.triggerMethod('hide');
1084
-
1085
- backbone__WEBPACK_IMPORTED_MODULE_1__["Radio"].channel(_constants__WEBPACK_IMPORTED_MODULE_13__["DataChannels"].RESTRICTED_VIDEO).trigger('cache:cleared');
1086
- });
1087
- this.logAction(this.restriction.get('groupId'));
1088
- }
1089
- }, {
1090
- key: "onAllowFullAccess",
1091
- value: function onAllowFullAccess() {
1092
- if (!this.dataFetched() || this.spinnerModel.get(_components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_17__["SpinnerButtonModelAttributes"].ShowSpinner)) return;
1093
- this.spinnerModel.set(_components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_17__["SpinnerButtonModelAttributes"].Disabled, true);
1094
- this.restriction.set('groupId', _enums__WEBPACK_IMPORTED_MODULE_16__["YearGroup"].All);
1095
- this.restrictedVideoDataService.deleteVideoRestriction(this.options.videoId, function () {
1096
- backbone__WEBPACK_IMPORTED_MODULE_1__["Radio"].channel(_constants__WEBPACK_IMPORTED_MODULE_13__["DataChannels"].RESTRICTED_VIDEO).trigger('cache:cleared');
1097
- });
1098
- this.triggerMethod('hide');
1099
- this.logAction();
1100
- }
1101
- }, {
1102
- key: "logAction",
1103
- value: function logAction(groupId) {
1104
- var analyticsOptions = {
1105
- location: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_9__["LocationContext"].Popup,
1106
- actionType: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_9__["UserAction"].SetAccess,
1107
- entity: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_9__["EntityType"].Video,
1108
- workflowPhase: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_9__["WorkflowPhase"].Complete
1109
- };
1110
- var data = {
1111
- id: this.model.get('id'),
1112
- restriction: underscore__WEBPACK_IMPORTED_MODULE_0__["isNumber"](groupId) ? _enums__WEBPACK_IMPORTED_MODULE_16__["YearGroup"][groupId] : false
1113
- };
1114
- _libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_10__["AnalyticsHelper"].logUserAction(data, analyticsOptions);
1115
- }
1116
- }, {
1117
- key: "dataFetched",
1118
- value: function dataFetched() {
1119
- return !!this.model && !!this.restrictedObjectCollection;
1120
- }
1121
- }, {
1122
- key: "renderDropdown",
1123
- value: function renderDropdown() {
1124
- var _this2 = this;
1125
-
1126
- this.collection = new _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__["Core"].Collection([{
1127
- name: DropdownOption.Students
1128
- }, {
1129
- name: DropdownOption.Groups
1130
- }, {
1131
- name: DropdownOption.All
1132
- }]); // TODO: uncomment this when schoolType is populated in user model
1133
- // if (SchoolTypeMetadata[this.currentUser.get('schoolType')].hasYearGroups)
1134
- // this.collection.findWhere({ name: DropdownOption.Groups }).destroy();
1135
- // Set selected model to the one chosen in the access dropdown
1136
-
1137
- this.collection.each(function (m) {
1138
- return m.set('selected', m.get('name') === _this2.selected);
1139
- });
1140
- this.showChildView('dropdown', new _components_dropdown_DropdownButtonComponent__WEBPACK_IMPORTED_MODULE_18__["DropdownButtonComponent"]({
1141
- titleProperty: 'name',
1142
- eventName: 'dropdown:selected',
1143
- buttonId: 'select-btn',
1144
- collection: this.collection,
1145
- channelName: this.channelName,
1146
- buttonClass: _restrict_access_scss__WEBPACK_IMPORTED_MODULE_22___default.a.selectButton,
1147
- displayOptions: {
1148
- extraClasses: 'w-100'
1149
- },
1150
- analyticsHelper: _libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_10__["AnalyticsHelper"]
1151
- }));
1152
- }
1153
- }, {
1154
- key: "onBeforeRender",
1155
- value: function onBeforeRender() {
1156
- this.model = this.videoDataService.getVideo(this.options.videoId);
1157
- this.restrictedObjectCollection = this.restrictedVideoDataService.getVideoRestrictions([this.options.videoId]);
1158
- if (this.model && this.restrictedObjectCollection) this.refreshRestriction();
1159
- if (this.dataFetched()) this.spinnerModel.set(_components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_17__["SpinnerButtonModelAttributes"].Disabled, false);
1160
- }
1161
- }, {
1162
- key: "viewOptions",
1163
- value: function viewOptions() {
1164
- var supportUrl = this.config ? "".concat(this.config.get('supportSiteUrl')).concat(_constants__WEBPACK_IMPORTED_MODULE_13__["SupportArticles"].VIDEO_ACCESS) : '';
1165
- return {
1166
- styles: _restrict_access_scss__WEBPACK_IMPORTED_MODULE_22___default.a,
1167
- supportUrl: supportUrl,
1168
- svg: _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_5__["SvgHelper"].getSvg(_libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_5__["cvSvgLibrary"].Info),
1169
- dataFetched: this.dataFetched(),
1170
- spinnerEl: _utils__WEBPACK_IMPORTED_MODULE_11__["SpinnerHelper"].getSpinner({
1171
- size: _utils__WEBPACK_IMPORTED_MODULE_11__["SpinnerSize"].Large,
1172
- extraClasses: 'mx-auto'
1173
- }),
1174
- restrictFromLabel: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_4__["LanguageService"].getPhrase(this.lang, 'popupSubheading')
1175
- };
1176
- }
1177
- }, {
1178
- key: "onRender",
1179
- value: function onRender() {
1180
- if (!this.dataFetched()) return;
1181
- this.renderDropdown();
1182
- this.onOptionSelected(new _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__["Core"].Model({
1183
- name: this.selected
1184
- }));
1185
- }
1186
- }, {
1187
- key: "name",
1188
- get: function get() {
1189
- return 'RestrictAccessView';
1190
- }
1191
- }, {
1192
- key: "title",
1193
- get: function get() {
1194
- return _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_4__["LanguageService"].getPhrase(this.lang, 'title');
1195
- }
1196
- }, {
1197
- key: "lang",
1198
- get: function get() {
1199
- return 'shared.restrictAccess';
1200
- }
1201
- }, {
1202
- key: "tagName",
1203
- get: function get() {
1204
- return 'form';
1205
- }
1206
- }, {
1207
- key: "className",
1208
- get: function get() {
1209
- return 'form-group';
1210
- }
1211
- }, {
1212
- key: "channelName",
1213
- get: function get() {
1214
- return _utils__WEBPACK_IMPORTED_MODULE_11__["RadioChannelHelper"].generateUniqueChannelName(this);
1215
- }
1216
- }, {
1217
- key: "template",
1218
- get: function get() {
1219
- return _RestrictAccess_hbs__WEBPACK_IMPORTED_MODULE_21___default.a;
1220
- }
1221
- }, {
1222
- key: "behaviors",
1223
- get: function get() {
1224
- var _this3 = this;
1225
-
1226
- return [{
1227
- behaviorClass: _behaviors__WEBPACK_IMPORTED_MODULE_8__["PopupBehavior"],
1228
- title: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_4__["LanguageService"].getPhrase(this.lang, 'popupHeading'),
1229
- modalClasses: _restrict_access_scss__WEBPACK_IMPORTED_MODULE_22___default.a.modal,
1230
- hideCloseButton: true,
1231
- size: 'modal-md',
1232
- spinnerButtonOptions: {
1233
- channelName: this.channelName,
1234
- model: this.spinnerModel = new _models_DisabledSpinnerModel__WEBPACK_IMPORTED_MODULE_7__["DisabledSpinnerModel"](),
1235
- buttonText: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_4__["LanguageService"].getPhrase(this.lang, 'updateAccess'),
1236
- tooltip: function tooltip() {
1237
- return _this3.getSubmitBtnTooltipOptions();
1238
- },
1239
- onClick: function onClick(e) {
1240
- return _this3.onSubmit(e);
1241
- }
1242
- },
1243
- buttons: [{
1244
- text: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_4__["LanguageService"].getPhrase(this.lang, 'allowFullAccess'),
1245
- getClassName: function getClassName() {
1246
- return _this3.getAllowFullAccessBtnClassName();
1247
- }
1248
- }]
1249
- }, {
1250
- behaviorClass: _libs_shared_src_legacy_behaviors_tooltip_TooltipBehavior__WEBPACK_IMPORTED_MODULE_6__["TooltipBehavior"],
1251
- selector: ".".concat(_restrict_access_scss__WEBPACK_IMPORTED_MODULE_22___default.a.svgContainer),
1252
- title: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_4__["LanguageService"].getPhrase(this.lang, 'findOutMore')
1253
- }];
1254
- }
1255
- }, {
1256
- key: "elements",
1257
- get: function get() {
1258
- return {
1259
- submit: 'submit'
1260
- };
1261
- }
1262
- }, {
1263
- key: "requiredResources",
1264
- get: function get() {
1265
- return {
1266
- config: _services_ConfigDataService__WEBPACK_IMPORTED_MODULE_15__["ConfigDataServiceHelper"].config,
1267
- currentUser: _services_UserDataService__WEBPACK_IMPORTED_MODULE_14__["UserDataServiceHelper"].currentUser
1268
- };
1269
- }
1270
- }]);
1271
-
1272
- return RestrictAccessView;
1273
- }(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__["Core"].View);
1274
-
1275
- /***/ }),
1276
-
1277
- /***/ "./src/shared/views/restrict-access/restrict-access.scss":
1278
- /*!***************************************************************!*\
1279
- !*** ./src/shared/views/restrict-access/restrict-access.scss ***!
1280
- \***************************************************************/
1281
- /*! no static exports found */
1282
- /***/ (function(module, exports, __webpack_require__) {
1283
-
1284
- // extracted by mini-css-extract-plugin
1285
- module.exports = {"select":"cv--select--1rbBR","selectButton":"cv--selectButton--htYy7","svgContainer":"cv--svgContainer--1sQ7D","groupButton":"cv--groupButton--2CM1D","groupButtons":"cv--groupButtons--3uv-z","groupButtonSelected":"cv--groupButtonSelected--uC5RG","buttonDisabled":"cv--buttonDisabled--3-I1L","mediumWeight":"cv--mediumWeight--10amI"};
1286
-
1287
- /***/ })
1288
-
1289
- }]);
1290
- //# sourceMappingURL=16.chunk.js.map