@clickview/library-editor 1.1.23 → 1.1.24-rc.0

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 (436) 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/services/data-providers/SignalRDataProvider.d.ts +3 -3
  5. package/dist/libs/common/src/backbone/utils/UrlHelper.d.ts +1 -0
  6. package/dist/scripts/{0-09e1e33a5c.chunk.js → 0-d7651225fa.chunk.js} +1 -1
  7. package/dist/scripts/1-cc33bb779b.chunk.js +1 -0
  8. package/dist/scripts/{10-6c79d8c6f9.chunk.js → 10-8def4ad887.chunk.js} +1 -1
  9. package/dist/scripts/{11-cecf8d22f0.chunk.js → 11-9dbae07504.chunk.js} +1 -1
  10. package/dist/scripts/{12-dbffa50a92.chunk.js → 12-a14b4251c2.chunk.js} +1 -1
  11. package/dist/scripts/13-cb35d250be.chunk.js +1 -0
  12. package/dist/scripts/{14-b524fbd295.chunk.js → 14-5838ad208c.chunk.js} +1 -1
  13. package/dist/scripts/15-24e092ec41.chunk.js +1 -0
  14. package/dist/scripts/{16-b27142fe98.chunk.js → 16-7d17df97a9.chunk.js} +1 -1
  15. package/dist/scripts/{17-c3bbe50816.chunk.js → 17-1e803b099d.chunk.js} +1 -1
  16. package/dist/scripts/{2-e6d104415e.chunk.js → 2-5079f4b088.chunk.js} +1 -1
  17. package/dist/scripts/{20-6d9086f5db.chunk.js → 20-c81c6c48d7.chunk.js} +1 -1
  18. package/dist/scripts/{21-2f10553302.chunk.js → 21-e8d08a5ffd.chunk.js} +1 -1
  19. package/dist/scripts/{22-59ae44b448.chunk.js → 22-ba8b974fd1.chunk.js} +1 -1
  20. package/dist/scripts/23-bd84d7bd96.chunk.js +1 -0
  21. package/dist/scripts/{24-7f21e384d2.chunk.js → 24-e9feb90766.chunk.js} +1 -1
  22. package/dist/scripts/{25-f0f7fa16a4.chunk.js → 25-867fcb56c9.chunk.js} +1 -1
  23. package/dist/scripts/{26-e65533bd94.chunk.js → 26-7761674040.chunk.js} +1 -1
  24. package/dist/scripts/{27-9dc0f5a4df.chunk.js → 27-f61b2ded44.chunk.js} +1 -1
  25. package/dist/scripts/{28-26e5c371c7.chunk.js → 28-84d2b0cc7b.chunk.js} +1 -1
  26. package/dist/scripts/{29-61415c2af0.chunk.js → 29-1fedec31d7.chunk.js} +1 -1
  27. package/dist/scripts/{3-5eff8c9df5.chunk.js → 3-c6b3eb2a89.chunk.js} +1 -1
  28. package/dist/scripts/{30-6075c28972.chunk.js → 30-26ebe5bb1d.chunk.js} +1 -1
  29. package/dist/scripts/31-764a990844.chunk.js +1 -0
  30. package/dist/scripts/{32-d5a50a7592.chunk.js → 32-cb884e47b6.chunk.js} +1 -1
  31. package/dist/scripts/{33-5ae90ed7d7.chunk.js → 33-ad22c723ce.chunk.js} +1 -1
  32. package/dist/scripts/34-dbf6f22786.chunk.js +1 -0
  33. package/dist/scripts/{35-ec8c190357.chunk.js → 35-5a779b7b84.chunk.js} +1 -1
  34. package/dist/scripts/36-458fc89d94.chunk.js +1 -0
  35. package/dist/scripts/{37-37e8965783.chunk.js → 37-6bc27fbe24.chunk.js} +1 -1
  36. package/dist/scripts/{38-3dc24b8867.chunk.js → 38-94bc81865d.chunk.js} +1 -1
  37. package/dist/scripts/{39-350ff66a2b.chunk.js → 39-27817d8a9f.chunk.js} +1 -1
  38. package/dist/scripts/{4-b3f3c7c71c.chunk.js → 4-b5739aced7.chunk.js} +1 -1
  39. package/dist/scripts/{40-3443f99cb2.chunk.js → 40-450dc3b89e.chunk.js} +1 -1
  40. package/dist/scripts/{41-b5dfd35e9e.chunk.js → 41-8fd82c1728.chunk.js} +1 -1
  41. package/dist/scripts/{42-103fecb7b6.chunk.js → 42-1fb82fce56.chunk.js} +1 -1
  42. package/dist/scripts/{43-57b07579f7.chunk.js → 43-721ea51683.chunk.js} +1 -1
  43. package/dist/scripts/{44-210d64dffe.chunk.js → 44-88eba4ef79.chunk.js} +1 -1
  44. package/dist/scripts/{45-632b07e926.chunk.js → 45-4c6fa4e90b.chunk.js} +1 -1
  45. package/dist/scripts/{46-82cce63cbf.chunk.js → 46-aaf1e5ced0.chunk.js} +1 -1
  46. package/dist/scripts/{47-595b4aae87.chunk.js → 47-8e37893d60.chunk.js} +1 -1
  47. package/dist/scripts/{48-fcf6378889.chunk.js → 48-46c72a0c33.chunk.js} +1 -1
  48. package/dist/scripts/{49-d8a4899eb1.chunk.js → 49-c6b8c38dbb.chunk.js} +1 -1
  49. package/dist/scripts/{5-06bc197b1e.chunk.js → 5-510e90c527.chunk.js} +1 -1
  50. package/dist/scripts/{50-11b1a49916.chunk.js → 50-371e717865.chunk.js} +1 -1
  51. package/dist/scripts/{51-72a75e0265.chunk.js → 51-cfeca6d812.chunk.js} +1 -1
  52. package/dist/scripts/{52-195f73bcd6.chunk.js → 52-783ee4bb0b.chunk.js} +1 -1
  53. package/dist/scripts/{53-bb4f37ee25.chunk.js → 53-fd450648ed.chunk.js} +1 -1
  54. package/dist/scripts/{54-7a201d8285.chunk.js → 54-cb9e7c856b.chunk.js} +1 -1
  55. package/dist/scripts/{55-be3d7b8805.chunk.js → 55-6763b5e6df.chunk.js} +1 -1
  56. package/dist/scripts/{56-6aeece1bf1.chunk.js → 56-5a704d6c0c.chunk.js} +1 -1
  57. package/dist/scripts/{57-59ee15161b.chunk.js → 57-221213bb47.chunk.js} +1 -1
  58. package/dist/scripts/{58-8ff58b194a.chunk.js → 58-292cd4cf86.chunk.js} +1 -1
  59. package/dist/scripts/{59-3d33954fcb.chunk.js → 59-29ea193413.chunk.js} +1 -1
  60. package/dist/scripts/{6-a469872b10.chunk.js → 6-caa871ff8b.chunk.js} +1 -1
  61. package/dist/scripts/{60-f092baa91c.chunk.js → 60-41f227d0b5.chunk.js} +1 -1
  62. package/dist/scripts/{61-bd9ef62ccd.chunk.js → 61-5e912873e9.chunk.js} +1 -1
  63. package/dist/scripts/{62-f15b3bf74c.chunk.js → 62-815e0d9634.chunk.js} +1 -1
  64. package/dist/scripts/{63-92757f75e7.chunk.js → 63-03ad85ee46.chunk.js} +1 -1
  65. package/dist/scripts/{64-c5a1c55521.chunk.js → 64-adf6187f53.chunk.js} +1 -1
  66. package/dist/scripts/{65-6bb10ae23b.chunk.js → 65-9836d588fd.chunk.js} +1 -1
  67. package/dist/scripts/{66-f047027f7d.chunk.js → 66-a1f2500cf7.chunk.js} +1 -1
  68. package/dist/scripts/{67-2e1a011200.chunk.js → 67-d46c6051de.chunk.js} +1 -1
  69. package/dist/scripts/{68-d5c0ab3fc1.chunk.js → 68-f48bc2c796.chunk.js} +1 -1
  70. package/dist/scripts/{69-fc8325afc9.chunk.js → 69-1e1a882133.chunk.js} +1 -1
  71. package/dist/scripts/{7-58dd909fa3.chunk.js → 7-4b08a0afa9.chunk.js} +1 -1
  72. package/dist/scripts/{70-ceda95013e.chunk.js → 70-d8cdbe6833.chunk.js} +1 -1
  73. package/dist/scripts/{71-6e8fc95beb.chunk.js → 71-912def4359.chunk.js} +1 -1
  74. package/dist/scripts/{72-53fe3338bf.chunk.js → 72-e014377b5a.chunk.js} +1 -1
  75. package/dist/scripts/{8-6974afed28.chunk.js → 8-0c12750aa5.chunk.js} +1 -1
  76. package/dist/scripts/9-3b14845081.chunk.js +1 -0
  77. package/dist/scripts/bundle-7bfbc847d9.min.js +8 -0
  78. package/dist/scripts/bundles.json +2 -2
  79. package/dist/scripts/polyfills-8c1900c051.min.js +1 -0
  80. package/package.json +2 -2
  81. package/dist/css/1.chunk.css.map +0 -1
  82. package/dist/css/10.chunk.css.map +0 -1
  83. package/dist/css/11.chunk.css +0 -137
  84. package/dist/css/11.chunk.css.map +0 -1
  85. package/dist/css/12.chunk.css.map +0 -1
  86. package/dist/css/13.chunk.css.map +0 -1
  87. package/dist/css/14.chunk.css.map +0 -1
  88. package/dist/css/16.chunk.css.map +0 -1
  89. package/dist/css/17.chunk.css.map +0 -1
  90. package/dist/css/18.chunk.css +0 -20
  91. package/dist/css/18.chunk.css.map +0 -1
  92. package/dist/css/2.chunk.css +0 -145
  93. package/dist/css/2.chunk.css.map +0 -1
  94. package/dist/css/21.chunk.css.map +0 -1
  95. package/dist/css/22.chunk.css.map +0 -1
  96. package/dist/css/23.chunk.css.map +0 -1
  97. package/dist/css/25.chunk.css.map +0 -1
  98. package/dist/css/26.chunk.css.map +0 -1
  99. package/dist/css/28.chunk.css.map +0 -1
  100. package/dist/css/29.chunk.css.map +0 -1
  101. package/dist/css/3.chunk.css.map +0 -1
  102. package/dist/css/30.chunk.css.map +0 -1
  103. package/dist/css/31.chunk.css.map +0 -1
  104. package/dist/css/32.chunk.css.map +0 -1
  105. package/dist/css/33.chunk.css.map +0 -1
  106. package/dist/css/34.chunk.css +0 -21
  107. package/dist/css/34.chunk.css.map +0 -1
  108. package/dist/css/35.chunk.css +0 -20
  109. package/dist/css/35.chunk.css.map +0 -1
  110. package/dist/css/36.chunk.css +0 -14
  111. package/dist/css/36.chunk.css.map +0 -1
  112. package/dist/css/37.chunk.css.map +0 -1
  113. package/dist/css/38.chunk.css.map +0 -1
  114. package/dist/css/40.chunk.css.map +0 -1
  115. package/dist/css/41.chunk.css.map +0 -1
  116. package/dist/css/42.chunk.css.map +0 -1
  117. package/dist/css/43.chunk.css.map +0 -1
  118. package/dist/css/44.chunk.css.map +0 -1
  119. package/dist/css/45.chunk.css.map +0 -1
  120. package/dist/css/46.chunk.css.map +0 -1
  121. package/dist/css/47.chunk.css.map +0 -1
  122. package/dist/css/48.chunk.css.map +0 -1
  123. package/dist/css/49.chunk.css +0 -35
  124. package/dist/css/49.chunk.css.map +0 -1
  125. package/dist/css/50.chunk.css.map +0 -1
  126. package/dist/css/51.chunk.css.map +0 -1
  127. package/dist/css/52.chunk.css +0 -66
  128. package/dist/css/52.chunk.css.map +0 -1
  129. package/dist/css/55.chunk.css.map +0 -1
  130. package/dist/css/56.chunk.css.map +0 -1
  131. package/dist/css/58.chunk.css.map +0 -1
  132. package/dist/css/59.chunk.css.map +0 -1
  133. package/dist/css/6.chunk.css.map +0 -1
  134. package/dist/css/60.chunk.css +0 -18
  135. package/dist/css/60.chunk.css.map +0 -1
  136. package/dist/css/62.chunk.css.map +0 -1
  137. package/dist/css/63.chunk.css +0 -170
  138. package/dist/css/63.chunk.css.map +0 -1
  139. package/dist/css/67.chunk.css +0 -78
  140. package/dist/css/67.chunk.css.map +0 -1
  141. package/dist/css/68.chunk.css +0 -17
  142. package/dist/css/68.chunk.css.map +0 -1
  143. package/dist/css/69.chunk.css +0 -17
  144. package/dist/css/69.chunk.css.map +0 -1
  145. package/dist/css/7.chunk.css.map +0 -1
  146. package/dist/css/70.chunk.css +0 -23
  147. package/dist/css/70.chunk.css.map +0 -1
  148. package/dist/css/71.chunk.css +0 -40
  149. package/dist/css/71.chunk.css.map +0 -1
  150. package/dist/css/72.chunk.css +0 -16
  151. package/dist/css/72.chunk.css.map +0 -1
  152. package/dist/css/73.chunk.css +0 -37
  153. package/dist/css/73.chunk.css.map +0 -1
  154. package/dist/css/74.chunk.css +0 -29
  155. package/dist/css/74.chunk.css.map +0 -1
  156. package/dist/css/75.chunk.css +0 -6
  157. package/dist/css/75.chunk.css.map +0 -1
  158. package/dist/css/76.chunk.css +0 -6
  159. package/dist/css/76.chunk.css.map +0 -1
  160. package/dist/css/8.chunk.css.map +0 -1
  161. package/dist/css/library-editor-app.css.map +0 -1
  162. package/dist/scripts/0-f604eee110.chunk.js +0 -1
  163. package/dist/scripts/0.chunk.js +0 -1034
  164. package/dist/scripts/0.chunk.js.map +0 -1
  165. package/dist/scripts/1-056bd8c79b.chunk.js +0 -1
  166. package/dist/scripts/1-a66bb44471.chunk.js +0 -1
  167. package/dist/scripts/1.chunk.js +0 -442
  168. package/dist/scripts/1.chunk.js.map +0 -1
  169. package/dist/scripts/10-028c6001e1.chunk.js +0 -1
  170. package/dist/scripts/10.chunk.js +0 -820
  171. package/dist/scripts/10.chunk.js.map +0 -1
  172. package/dist/scripts/11-6eef9e160e.chunk.js +0 -11
  173. package/dist/scripts/11.chunk.js +0 -4091
  174. package/dist/scripts/11.chunk.js.map +0 -1
  175. package/dist/scripts/12-d3f51f4e06.chunk.js +0 -1
  176. package/dist/scripts/12.chunk.js +0 -555
  177. package/dist/scripts/12.chunk.js.map +0 -1
  178. package/dist/scripts/13-37e5cfab3e.chunk.js +0 -1
  179. package/dist/scripts/13-4029d31569.chunk.js +0 -1
  180. package/dist/scripts/13.chunk.js +0 -373
  181. package/dist/scripts/13.chunk.js.map +0 -1
  182. package/dist/scripts/14-4c94f97e4e.chunk.js +0 -1
  183. package/dist/scripts/14.chunk.js +0 -2386
  184. package/dist/scripts/14.chunk.js.map +0 -1
  185. package/dist/scripts/15-1ff1252d1a.chunk.js +0 -1
  186. package/dist/scripts/15-ec9aa4878b.chunk.js +0 -1
  187. package/dist/scripts/15.chunk.js +0 -314
  188. package/dist/scripts/15.chunk.js.map +0 -1
  189. package/dist/scripts/16-5bc8299e14.chunk.js +0 -1
  190. package/dist/scripts/16.chunk.js +0 -1290
  191. package/dist/scripts/16.chunk.js.map +0 -1
  192. package/dist/scripts/17-9fe035f9e2.chunk.js +0 -1
  193. package/dist/scripts/17.chunk.js +0 -381
  194. package/dist/scripts/17.chunk.js.map +0 -1
  195. package/dist/scripts/18.chunk.js +0 -393
  196. package/dist/scripts/18.chunk.js.map +0 -1
  197. package/dist/scripts/19.chunk.js +0 -364
  198. package/dist/scripts/19.chunk.js.map +0 -1
  199. package/dist/scripts/2-2cc3988222.chunk.js +0 -1
  200. package/dist/scripts/2.chunk.js +0 -523
  201. package/dist/scripts/2.chunk.js.map +0 -1
  202. package/dist/scripts/20-60e4eee833.chunk.js +0 -1
  203. package/dist/scripts/20.chunk.js +0 -317
  204. package/dist/scripts/20.chunk.js.map +0 -1
  205. package/dist/scripts/21-a7fffe8852.chunk.js +0 -1
  206. package/dist/scripts/21.chunk.js +0 -531
  207. package/dist/scripts/21.chunk.js.map +0 -1
  208. package/dist/scripts/22-f670791432.chunk.js +0 -1
  209. package/dist/scripts/22.chunk.js +0 -354
  210. package/dist/scripts/22.chunk.js.map +0 -1
  211. package/dist/scripts/23-11e008ee63.chunk.js +0 -1
  212. package/dist/scripts/23-4d26d6300a.chunk.js +0 -1
  213. package/dist/scripts/23.chunk.js +0 -604
  214. package/dist/scripts/23.chunk.js.map +0 -1
  215. package/dist/scripts/24-813ef82099.chunk.js +0 -1
  216. package/dist/scripts/24.chunk.js +0 -318
  217. package/dist/scripts/24.chunk.js.map +0 -1
  218. package/dist/scripts/25-023d08a591.chunk.js +0 -1
  219. package/dist/scripts/25.chunk.js +0 -365
  220. package/dist/scripts/25.chunk.js.map +0 -1
  221. package/dist/scripts/26-a9fcf0d596.chunk.js +0 -1
  222. package/dist/scripts/26.chunk.js +0 -442
  223. package/dist/scripts/26.chunk.js.map +0 -1
  224. package/dist/scripts/27-84f7bbade6.chunk.js +0 -1
  225. package/dist/scripts/27.chunk.js +0 -3630
  226. package/dist/scripts/27.chunk.js.map +0 -1
  227. package/dist/scripts/28-cdf603f4cf.chunk.js +0 -1
  228. package/dist/scripts/28.chunk.js +0 -3173
  229. package/dist/scripts/28.chunk.js.map +0 -1
  230. package/dist/scripts/29-8278d23f9b.chunk.js +0 -1
  231. package/dist/scripts/29.chunk.js +0 -3088
  232. package/dist/scripts/29.chunk.js.map +0 -1
  233. package/dist/scripts/3-1fa81c9d9b.chunk.js +0 -1
  234. package/dist/scripts/3.chunk.js +0 -833
  235. package/dist/scripts/3.chunk.js.map +0 -1
  236. package/dist/scripts/30-7ab880728c.chunk.js +0 -1
  237. package/dist/scripts/30.chunk.js +0 -1852
  238. package/dist/scripts/30.chunk.js.map +0 -1
  239. package/dist/scripts/31-aa4cd0f45e.chunk.js +0 -1
  240. package/dist/scripts/31-e35ae4e153.chunk.js +0 -1
  241. package/dist/scripts/31.chunk.js +0 -958
  242. package/dist/scripts/31.chunk.js.map +0 -1
  243. package/dist/scripts/32-7717941f1d.chunk.js +0 -1
  244. package/dist/scripts/32.chunk.js +0 -1235
  245. package/dist/scripts/32.chunk.js.map +0 -1
  246. package/dist/scripts/33-6da33143ea.chunk.js +0 -1
  247. package/dist/scripts/33.chunk.js +0 -792
  248. package/dist/scripts/33.chunk.js.map +0 -1
  249. package/dist/scripts/34-27e40f4d4b.chunk.js +0 -1
  250. package/dist/scripts/34-50402c1835.chunk.js +0 -1
  251. package/dist/scripts/34.chunk.js +0 -990
  252. package/dist/scripts/34.chunk.js.map +0 -1
  253. package/dist/scripts/35-3260300446.chunk.js +0 -1
  254. package/dist/scripts/35.chunk.js +0 -518
  255. package/dist/scripts/35.chunk.js.map +0 -1
  256. package/dist/scripts/36-4d467bc42e.chunk.js +0 -1
  257. package/dist/scripts/36-bec0c74d05.chunk.js +0 -1
  258. package/dist/scripts/36.chunk.js +0 -335
  259. package/dist/scripts/36.chunk.js.map +0 -1
  260. package/dist/scripts/37-3916177181.chunk.js +0 -1
  261. package/dist/scripts/37.chunk.js +0 -236
  262. package/dist/scripts/37.chunk.js.map +0 -1
  263. package/dist/scripts/38-89f7c22ea8.chunk.js +0 -1
  264. package/dist/scripts/38.chunk.js +0 -315
  265. package/dist/scripts/38.chunk.js.map +0 -1
  266. package/dist/scripts/39-9456631219.chunk.js +0 -1
  267. package/dist/scripts/39.chunk.js +0 -116
  268. package/dist/scripts/39.chunk.js.map +0 -1
  269. package/dist/scripts/4-a7f6d378e0.chunk.js +0 -1
  270. package/dist/scripts/4.chunk.js +0 -335
  271. package/dist/scripts/4.chunk.js.map +0 -1
  272. package/dist/scripts/40-f65196723f.chunk.js +0 -1
  273. package/dist/scripts/40.chunk.js +0 -2493
  274. package/dist/scripts/40.chunk.js.map +0 -1
  275. package/dist/scripts/41-70b16d99d0.chunk.js +0 -1
  276. package/dist/scripts/41.chunk.js +0 -1782
  277. package/dist/scripts/41.chunk.js.map +0 -1
  278. package/dist/scripts/42-e17f214d6c.chunk.js +0 -1
  279. package/dist/scripts/42.chunk.js +0 -2116
  280. package/dist/scripts/42.chunk.js.map +0 -1
  281. package/dist/scripts/43-6826fbc7d4.chunk.js +0 -1
  282. package/dist/scripts/43.chunk.js +0 -2243
  283. package/dist/scripts/43.chunk.js.map +0 -1
  284. package/dist/scripts/44-593e820fa2.chunk.js +0 -1
  285. package/dist/scripts/44.chunk.js +0 -1024
  286. package/dist/scripts/44.chunk.js.map +0 -1
  287. package/dist/scripts/45-8231a03833.chunk.js +0 -1
  288. package/dist/scripts/45.chunk.js +0 -1065
  289. package/dist/scripts/45.chunk.js.map +0 -1
  290. package/dist/scripts/46-682ca88fd9.chunk.js +0 -1
  291. package/dist/scripts/46.chunk.js +0 -656
  292. package/dist/scripts/46.chunk.js.map +0 -1
  293. package/dist/scripts/47-aec7cf95e8.chunk.js +0 -1
  294. package/dist/scripts/47.chunk.js +0 -735
  295. package/dist/scripts/47.chunk.js.map +0 -1
  296. package/dist/scripts/48-7b09165697.chunk.js +0 -1
  297. package/dist/scripts/48.chunk.js +0 -994
  298. package/dist/scripts/48.chunk.js.map +0 -1
  299. package/dist/scripts/49-0e6ceb191f.chunk.js +0 -1
  300. package/dist/scripts/49.chunk.js +0 -759
  301. package/dist/scripts/49.chunk.js.map +0 -1
  302. package/dist/scripts/5-e2e64bc05f.chunk.js +0 -1
  303. package/dist/scripts/5.chunk.js +0 -15
  304. package/dist/scripts/5.chunk.js.map +0 -1
  305. package/dist/scripts/50-fa6f6fd1dc.chunk.js +0 -1
  306. package/dist/scripts/50.chunk.js +0 -528
  307. package/dist/scripts/50.chunk.js.map +0 -1
  308. package/dist/scripts/51-1c9fca4604.chunk.js +0 -1
  309. package/dist/scripts/51.chunk.js +0 -932
  310. package/dist/scripts/51.chunk.js.map +0 -1
  311. package/dist/scripts/52-ebce0c9f12.chunk.js +0 -1
  312. package/dist/scripts/52.chunk.js +0 -408
  313. package/dist/scripts/52.chunk.js.map +0 -1
  314. package/dist/scripts/53-c6807d4e0b.chunk.js +0 -1
  315. package/dist/scripts/53.chunk.js +0 -754
  316. package/dist/scripts/53.chunk.js.map +0 -1
  317. package/dist/scripts/54-e6195aa62a.chunk.js +0 -1
  318. package/dist/scripts/54.chunk.js +0 -681
  319. package/dist/scripts/54.chunk.js.map +0 -1
  320. package/dist/scripts/55-f9f9a251af.chunk.js +0 -1
  321. package/dist/scripts/55.chunk.js +0 -645
  322. package/dist/scripts/55.chunk.js.map +0 -1
  323. package/dist/scripts/56-20f27f96db.chunk.js +0 -1
  324. package/dist/scripts/56.chunk.js +0 -346
  325. package/dist/scripts/56.chunk.js.map +0 -1
  326. package/dist/scripts/57-b25862dbf0.chunk.js +0 -1
  327. package/dist/scripts/57.chunk.js +0 -422
  328. package/dist/scripts/57.chunk.js.map +0 -1
  329. package/dist/scripts/58-edf06f18f9.chunk.js +0 -1
  330. package/dist/scripts/58.chunk.js +0 -437
  331. package/dist/scripts/58.chunk.js.map +0 -1
  332. package/dist/scripts/59-241a666e49.chunk.js +0 -1
  333. package/dist/scripts/59.chunk.js +0 -342
  334. package/dist/scripts/59.chunk.js.map +0 -1
  335. package/dist/scripts/6-c631df7bda.chunk.js +0 -1
  336. package/dist/scripts/6.chunk.js +0 -484
  337. package/dist/scripts/6.chunk.js.map +0 -1
  338. package/dist/scripts/60-ac631fa385.chunk.js +0 -1
  339. package/dist/scripts/60.chunk.js +0 -254
  340. package/dist/scripts/60.chunk.js.map +0 -1
  341. package/dist/scripts/61-360e50b6cb.chunk.js +0 -1
  342. package/dist/scripts/61.chunk.js +0 -409
  343. package/dist/scripts/61.chunk.js.map +0 -1
  344. package/dist/scripts/62-22ee1d2a94.chunk.js +0 -1
  345. package/dist/scripts/62.chunk.js +0 -142
  346. package/dist/scripts/62.chunk.js.map +0 -1
  347. package/dist/scripts/63-25413d744e.chunk.js +0 -1
  348. package/dist/scripts/63.chunk.js +0 -147
  349. package/dist/scripts/63.chunk.js.map +0 -1
  350. package/dist/scripts/64-1b027092be.chunk.js +0 -1
  351. package/dist/scripts/64.chunk.js +0 -439
  352. package/dist/scripts/64.chunk.js.map +0 -1
  353. package/dist/scripts/65-c8a9aae545.chunk.js +0 -1
  354. package/dist/scripts/65.chunk.js +0 -582
  355. package/dist/scripts/65.chunk.js.map +0 -1
  356. package/dist/scripts/66-20aec598ca.chunk.js +0 -1
  357. package/dist/scripts/66.chunk.js +0 -442
  358. package/dist/scripts/66.chunk.js.map +0 -1
  359. package/dist/scripts/67-d8d1cb35a4.chunk.js +0 -1
  360. package/dist/scripts/67.chunk.js +0 -295
  361. package/dist/scripts/67.chunk.js.map +0 -1
  362. package/dist/scripts/68-869ea333d9.chunk.js +0 -1
  363. package/dist/scripts/68.chunk.js +0 -165
  364. package/dist/scripts/68.chunk.js.map +0 -1
  365. package/dist/scripts/69-c4ff3e5568.chunk.js +0 -1
  366. package/dist/scripts/69.chunk.js +0 -248
  367. package/dist/scripts/69.chunk.js.map +0 -1
  368. package/dist/scripts/7-1d94e0bb0c.chunk.js +0 -1
  369. package/dist/scripts/7.chunk.js +0 -309
  370. package/dist/scripts/7.chunk.js.map +0 -1
  371. package/dist/scripts/70-171dcf9fe1.chunk.js +0 -1
  372. package/dist/scripts/70.chunk.js +0 -207
  373. package/dist/scripts/70.chunk.js.map +0 -1
  374. package/dist/scripts/71-33e7082ca2.chunk.js +0 -1
  375. package/dist/scripts/71.chunk.js +0 -237
  376. package/dist/scripts/71.chunk.js.map +0 -1
  377. package/dist/scripts/72-2eef8b13b0.chunk.js +0 -1
  378. package/dist/scripts/72.chunk.js +0 -331
  379. package/dist/scripts/72.chunk.js.map +0 -1
  380. package/dist/scripts/73.chunk.js +0 -404
  381. package/dist/scripts/73.chunk.js.map +0 -1
  382. package/dist/scripts/74.chunk.js +0 -301
  383. package/dist/scripts/74.chunk.js.map +0 -1
  384. package/dist/scripts/75.chunk.js +0 -231
  385. package/dist/scripts/75.chunk.js.map +0 -1
  386. package/dist/scripts/76.chunk.js +0 -157
  387. package/dist/scripts/76.chunk.js.map +0 -1
  388. package/dist/scripts/77.chunk.js +0 -307
  389. package/dist/scripts/77.chunk.js.map +0 -1
  390. package/dist/scripts/78.chunk.js +0 -249
  391. package/dist/scripts/78.chunk.js.map +0 -1
  392. package/dist/scripts/79.chunk.js +0 -282
  393. package/dist/scripts/79.chunk.js.map +0 -1
  394. package/dist/scripts/8-34ae87490f.chunk.js +0 -1
  395. package/dist/scripts/8.chunk.js +0 -307
  396. package/dist/scripts/8.chunk.js.map +0 -1
  397. package/dist/scripts/80.chunk.js +0 -308
  398. package/dist/scripts/80.chunk.js.map +0 -1
  399. package/dist/scripts/81.chunk.js +0 -366
  400. package/dist/scripts/81.chunk.js.map +0 -1
  401. package/dist/scripts/82.chunk.js +0 -314
  402. package/dist/scripts/82.chunk.js.map +0 -1
  403. package/dist/scripts/83.chunk.js +0 -328
  404. package/dist/scripts/83.chunk.js.map +0 -1
  405. package/dist/scripts/84.chunk.js +0 -313
  406. package/dist/scripts/84.chunk.js.map +0 -1
  407. package/dist/scripts/85.chunk.js +0 -291
  408. package/dist/scripts/85.chunk.js.map +0 -1
  409. package/dist/scripts/86.chunk.js +0 -119
  410. package/dist/scripts/86.chunk.js.map +0 -1
  411. package/dist/scripts/87.chunk.js +0 -219
  412. package/dist/scripts/87.chunk.js.map +0 -1
  413. package/dist/scripts/88.chunk.js +0 -194
  414. package/dist/scripts/88.chunk.js.map +0 -1
  415. package/dist/scripts/89.chunk.js +0 -522
  416. package/dist/scripts/89.chunk.js.map +0 -1
  417. package/dist/scripts/9-0d7004dd33.chunk.js +0 -1
  418. package/dist/scripts/9-9279038caa.chunk.js +0 -1
  419. package/dist/scripts/9.chunk.js +0 -222
  420. package/dist/scripts/9.chunk.js.map +0 -1
  421. package/dist/scripts/90.chunk.js +0 -337
  422. package/dist/scripts/90.chunk.js.map +0 -1
  423. package/dist/scripts/91.chunk.js +0 -131
  424. package/dist/scripts/91.chunk.js.map +0 -1
  425. package/dist/scripts/92.chunk.js +0 -266
  426. package/dist/scripts/92.chunk.js.map +0 -1
  427. package/dist/scripts/bundle-06dc1f4908.min.js +0 -8
  428. package/dist/scripts/bundle-8498807388.min.js +0 -1
  429. package/dist/scripts/bundle-891db89400.min.js +0 -1
  430. package/dist/scripts/bundle-f4a423ce34.min.js +0 -1
  431. package/dist/scripts/bundle.js +0 -66631
  432. package/dist/scripts/bundle.js.map +0 -1
  433. package/dist/scripts/polyfills-21eaf1215c.min.js +0 -1
  434. package/dist/scripts/polyfills-efb4d7caa3.min.js +0 -1
  435. package/dist/scripts/polyfills.js +0 -14866
  436. package/dist/scripts/polyfills.js.map +0 -1
@@ -1,833 +0,0 @@
1
- (window["webpackJsonp_clickview_library_editor"] = window["webpackJsonp_clickview_library_editor"] || []).push([[3],{
2
-
3
- /***/ "../../libs/analytics/src/utils/ObjectFormatHelper.ts":
4
- /*!************************************************************************************************!*\
5
- !*** C:/ClickView Projects/@clickview/packages/libs/analytics/src/utils/ObjectFormatHelper.ts ***!
6
- \************************************************************************************************/
7
- /*! exports provided: ObjectFormatHelper */
8
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9
-
10
- "use strict";
11
- __webpack_require__.r(__webpack_exports__);
12
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ObjectFormatHelper", function() { return ObjectFormatHelper; });
13
- /* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! backbone */ "backbone");
14
- /* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(backbone__WEBPACK_IMPORTED_MODULE_0__);
15
- /* harmony import */ var _common_src_backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../common/src/backbone */ "../../libs/common/src/backbone/index.ts");
16
-
17
- // Convert backbone models/collection to regular arrays/objects.
18
-
19
- var ObjectFormatHelper = {
20
- toJSON: function toJSON(object) {
21
- return object instanceof _common_src_backbone__WEBPACK_IMPORTED_MODULE_1__["Core"].Model || object instanceof _common_src_backbone__WEBPACK_IMPORTED_MODULE_1__["Core"].Collection || object instanceof backbone__WEBPACK_IMPORTED_MODULE_0__["Model"] || object instanceof backbone__WEBPACK_IMPORTED_MODULE_0__["Collection"] ? object.toJSON() : object;
22
- }
23
- };
24
-
25
- /***/ }),
26
-
27
- /***/ "../../libs/analytics/src/utils/VideoAnalyticsTracker.ts":
28
- /*!***************************************************************************************************!*\
29
- !*** C:/ClickView Projects/@clickview/packages/libs/analytics/src/utils/VideoAnalyticsTracker.ts ***!
30
- \***************************************************************************************************/
31
- /*! exports provided: VideoAnalyticsTracker */
32
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
33
-
34
- "use strict";
35
- __webpack_require__.r(__webpack_exports__);
36
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VideoAnalyticsTracker", function() { return VideoAnalyticsTracker; });
37
- /* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! underscore */ "underscore");
38
- /* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(underscore__WEBPACK_IMPORTED_MODULE_0__);
39
- /* harmony import */ var _common_src_backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../common/src/backbone */ "../../libs/common/src/backbone/index.ts");
40
- /* harmony import */ var _common_src_backbone_errors_DevError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../common/src/backbone/errors/DevError */ "../../libs/common/src/backbone/errors/DevError.ts");
41
- /* harmony import */ var _common_src_backbone_constants_Webplayer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../common/src/backbone/constants/Webplayer */ "../../libs/common/src/backbone/constants/Webplayer.ts");
42
- /* harmony import */ var _ObjectFormatHelper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ObjectFormatHelper */ "../../libs/analytics/src/utils/ObjectFormatHelper.ts");
43
- /* harmony import */ var _interfaces__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../interfaces */ "../../libs/analytics/src/interfaces/index.ts");
44
- /* harmony import */ var _Analytics__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Analytics */ "../../libs/analytics/src/Analytics.ts");
45
- /* harmony import */ var _AnalyticsHelper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../AnalyticsHelper */ "../../libs/analytics/src/AnalyticsHelper.ts");
46
- 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); }
47
-
48
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
49
-
50
- 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); } }
51
-
52
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
53
-
54
- 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); }
55
-
56
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
57
-
58
- 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); }; }
59
-
60
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
61
-
62
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
63
-
64
- 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; } }
65
-
66
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
67
-
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
- // Record progress watch progress every minute
76
-
77
- var DEFAULT_LOG_INTERVAL = 60; // Seconds
78
- // Legacy watch event was recorded after viewing for 8 seconds
79
-
80
- var LEGACY_WATCH_ELAPSE = 8;
81
- var SHOULD_LOG_VERBOSE = false; // See logVerbose function below.
82
-
83
- var VideoAnalyticsTracker = /*#__PURE__*/function (_Core$Service) {
84
- _inherits(VideoAnalyticsTracker, _Core$Service);
85
-
86
- var _super = _createSuper(VideoAnalyticsTracker);
87
-
88
- function VideoAnalyticsTracker(options) {
89
- var _this;
90
-
91
- _classCallCheck(this, VideoAnalyticsTracker);
92
-
93
- _this = _super.call(this, options);
94
- _this.captureInterval = DEFAULT_LOG_INTERVAL;
95
- return _this;
96
- }
97
-
98
- _createClass(VideoAnalyticsTracker, [{
99
- key: "initialize",
100
- value: function initialize() {
101
- this.eventsApi = this.options.eventsApi;
102
- if (!this.options.video) _common_src_backbone__WEBPACK_IMPORTED_MODULE_1__["Core"].ErrorHelper.throw(new _common_src_backbone_errors_DevError__WEBPACK_IMPORTED_MODULE_2__["DevError"]('Video logging requires video to be passed in.'));
103
- this.model = this.options.video;
104
- this.playbackStatus = this.getNewPlaybackStatus();
105
- if (this.options.captureInterval) this.captureInterval = this.options.captureInterval;
106
- this.bindListeners();
107
- this.getChapters();
108
- }
109
- }, {
110
- key: "bindListeners",
111
- value: function bindListeners() {
112
- this.eventsApi.on(_common_src_backbone_constants_Webplayer__WEBPACK_IMPORTED_MODULE_3__["WebplayerEvents"].RECEIVE.TIME_UPDATE, underscore__WEBPACK_IMPORTED_MODULE_0__["bind"](this.onPlayerTimeUpdate, this));
113
- this.eventsApi.on(_common_src_backbone_constants_Webplayer__WEBPACK_IMPORTED_MODULE_3__["WebplayerEvents"].RECEIVE.VIDEO_END, underscore__WEBPACK_IMPORTED_MODULE_0__["bind"](this.onEnd, this));
114
- this.eventsApi.on(_common_src_backbone_constants_Webplayer__WEBPACK_IMPORTED_MODULE_3__["WebplayerEvents"].RECEIVE.FULLSCREEN_CHANGE, underscore__WEBPACK_IMPORTED_MODULE_0__["bind"](this.onFullScreen, this));
115
- this.eventsApi.on(_common_src_backbone_constants_Webplayer__WEBPACK_IMPORTED_MODULE_3__["WebplayerEvents"].RECEIVE.CHAPTER_CHANGE, underscore__WEBPACK_IMPORTED_MODULE_0__["bind"](this.onChapterChange, this));
116
- }
117
- }, {
118
- key: "unbindListeners",
119
- value: function unbindListeners() {
120
- this.eventsApi.off(_common_src_backbone_constants_Webplayer__WEBPACK_IMPORTED_MODULE_3__["WebplayerEvents"].RECEIVE.TIME_UPDATE);
121
- this.eventsApi.off(_common_src_backbone_constants_Webplayer__WEBPACK_IMPORTED_MODULE_3__["WebplayerEvents"].RECEIVE.VIDEO_END);
122
- this.eventsApi.off(_common_src_backbone_constants_Webplayer__WEBPACK_IMPORTED_MODULE_3__["WebplayerEvents"].RECEIVE.FULLSCREEN_CHANGE);
123
- this.eventsApi.off(_common_src_backbone_constants_Webplayer__WEBPACK_IMPORTED_MODULE_3__["WebplayerEvents"].RECEIVE.CHAPTER_CHANGE);
124
- }
125
- }, {
126
- key: "getChapters",
127
- value: function getChapters() {
128
- var _this2 = this;
129
-
130
- this.queryWebplayer(_common_src_backbone_constants_Webplayer__WEBPACK_IMPORTED_MODULE_3__["WebplayerEvents"].QUERIES.GET_CHAPTERS, function (e, chapters) {
131
- _this2.setInitialChapter(chapters);
132
-
133
- _this2.setVideoDuration(chapters);
134
- });
135
- }
136
- }, {
137
- key: "queryWebplayer",
138
- value: function queryWebplayer(queryEvent, callback) {
139
- var uniqueTrackerId = underscore__WEBPACK_IMPORTED_MODULE_0__["uniqueId"](this.name);
140
-
141
- var queryCallbackEvent = "".concat(_common_src_backbone_constants_Webplayer__WEBPACK_IMPORTED_MODULE_3__["WebplayerEvents"].RECEIVE.QUERY_CALLBACK, "-").concat(uniqueTrackerId);
142
- this.eventsApi.one(queryCallbackEvent, callback);
143
- this.eventsApi.trigger(_common_src_backbone_constants_Webplayer__WEBPACK_IMPORTED_MODULE_3__["WebplayerEvents"].TRIGGER.QUERY, queryEvent, uniqueTrackerId);
144
- }
145
- }, {
146
- key: "onEnd",
147
- value: function onEnd() {
148
- this.setCurrentPosition(this.playbackStatus.totalDuration);
149
- this.logVerbose(_interfaces__WEBPACK_IMPORTED_MODULE_5__["PlaybackDescriptor"].Finish);
150
- this.resetPlaybackStatus();
151
- }
152
- }, {
153
- key: "onFullScreen",
154
- value: function onFullScreen(e, isFullScreen) {
155
- var descriptor = isFullScreen ? _interfaces__WEBPACK_IMPORTED_MODULE_5__["PlaybackDescriptor"].FullScreenEnter : _interfaces__WEBPACK_IMPORTED_MODULE_5__["PlaybackDescriptor"].FullScreenExit;
156
- this.logVerbose(descriptor);
157
- }
158
- }, {
159
- key: "onPlayerTimeUpdate",
160
- value: function onPlayerTimeUpdate(e, rawTime) {
161
- var _this3 = this;
162
-
163
- this.queryWebplayer(_common_src_backbone_constants_Webplayer__WEBPACK_IMPORTED_MODULE_3__["WebplayerEvents"].QUERIES.IS_PAUSED, function (ev, isPaused) {
164
- _this3.updateTime(rawTime, isPaused);
165
- });
166
- }
167
- }, {
168
- key: "onChapterChange",
169
- value: function onChapterChange(e, nextChapter) {
170
- if (!underscore__WEBPACK_IMPORTED_MODULE_0__["isObject"](nextChapter)) return;
171
- this.setCurrentChapter(nextChapter.number);
172
- }
173
- }, {
174
- key: "updateTime",
175
- value: function updateTime(rawTime, isPaused) {
176
- var time = Math.floor(rawTime);
177
- /**
178
- * Ignore the first time update at 0 and duplicate events with the same rawTime point.
179
- * This is necessary to avoid subtle bugs where the webplayer is reset at the end of playback.
180
- */
181
-
182
- if (!time || time === this.getCurrentPositon()) return;
183
- /**
184
- * Always set the position first, so we can restore state when the user continues
185
- * playback of the same video from a different location.
186
- */
187
-
188
- this.setCurrentPosition(time);
189
- /**
190
- * Only update watch time and log if we are actually playing a video
191
- */
192
-
193
- if (isPaused) return; // Log the start event
194
-
195
- if (!this.playbackHasStarted()) {
196
- this.logVerbose(_interfaces__WEBPACK_IMPORTED_MODULE_5__["PlaybackDescriptor"].Start);
197
- this.setPlaybackStarted();
198
- }
199
-
200
- this.incrementWatchTime(); // Log at each interval period
201
-
202
- if (this.getWatchTime() % this.captureInterval === 0) this.logVerbose(_interfaces__WEBPACK_IMPORTED_MODULE_5__["PlaybackDescriptor"].Playback);
203
- if (this.getWatchTime() === LEGACY_WATCH_ELAPSE) this.logStream();
204
- }
205
- }, {
206
- key: "setInitialChapter",
207
- value: function setInitialChapter(chapters) {
208
- var currentChapter = underscore__WEBPACK_IMPORTED_MODULE_0__["find"](chapters, function (c) {
209
- return c.current === true;
210
- });
211
-
212
- if (!underscore__WEBPACK_IMPORTED_MODULE_0__["isObject"](currentChapter)) return;
213
- this.setCurrentChapter(currentChapter.number);
214
- }
215
- }, {
216
- key: "setVideoDuration",
217
- value: function setVideoDuration(chapters) {
218
- var totalDuration = underscore__WEBPACK_IMPORTED_MODULE_0__["reduce"](chapters, function (d, c) {
219
- return d + c.duration;
220
- }, 0);
221
-
222
- if (underscore__WEBPACK_IMPORTED_MODULE_0__["isNaN"](totalDuration) || !underscore__WEBPACK_IMPORTED_MODULE_0__["isNumber"](totalDuration)) return; // Always round down to the current second
223
-
224
- this.playbackStatus.totalDuration = Math.floor(totalDuration);
225
- } // Store the current playback position
226
-
227
- }, {
228
- key: "setCurrentPosition",
229
- value: function setCurrentPosition(time) {
230
- this.playbackStatus.position = time;
231
- }
232
- }, {
233
- key: "getCurrentPositon",
234
- value: function getCurrentPositon() {
235
- return this.playbackStatus.position;
236
- }
237
- }, {
238
- key: "setCurrentChapter",
239
- value: function setCurrentChapter(chapter) {
240
- this.playbackStatus.chapter = chapter;
241
- }
242
- }, {
243
- key: "setPlaybackStarted",
244
- value: function setPlaybackStarted() {
245
- this.playbackStatus.hasStarted = true;
246
- }
247
- }, {
248
- key: "playbackHasStarted",
249
- value: function playbackHasStarted() {
250
- return this.playbackStatus.hasStarted;
251
- }
252
- }, {
253
- key: "getWatchTime",
254
- value: function getWatchTime() {
255
- return this.playbackStatus.totalWatched;
256
- }
257
- }, {
258
- key: "incrementWatchTime",
259
- value: function incrementWatchTime() {
260
- this.playbackStatus.totalWatched += 1;
261
- }
262
- }, {
263
- key: "getNewPlaybackStatus",
264
- value: function getNewPlaybackStatus() {
265
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
266
- var duration = options.duration,
267
- watched = options.watched;
268
- return {
269
- position: 0,
270
- chapter: 0,
271
- hasStarted: false,
272
- totalWatched: watched ? watched : 0,
273
- totalDuration: duration ? duration : 0
274
- };
275
- }
276
- }, {
277
- key: "resetPlaybackStatus",
278
- value: function resetPlaybackStatus() {
279
- var preservedState = {
280
- duration: this.playbackStatus.totalDuration,
281
- watched: this.playbackStatus.totalWatched
282
- };
283
- this.playbackStatus = this.getNewPlaybackStatus(preservedState);
284
- }
285
- }, {
286
- key: "unbindUnload",
287
- value: function unbindUnload() {
288
- $(window).off('unload');
289
- }
290
- }, {
291
- key: "bindUnload",
292
- value: function bindUnload() {
293
- $(window).on('unload', underscore__WEBPACK_IMPORTED_MODULE_0__["bind"](this.logUnload, this));
294
- }
295
- }, {
296
- key: "logUnload",
297
- value: function logUnload() {
298
- if (!this.playbackHasStarted()) return;
299
- this.logVerbose(_interfaces__WEBPACK_IMPORTED_MODULE_5__["PlaybackDescriptor"].Terminate);
300
- }
301
- }, {
302
- key: "logStream",
303
- value: function logStream() {
304
- var action = _AnalyticsHelper__WEBPACK_IMPORTED_MODULE_7__["AnalyticsHelper"].buildActionContext(this.options.analyticsOptions);
305
- _Analytics__WEBPACK_IMPORTED_MODULE_6__["Analytics"].log(_interfaces__WEBPACK_IMPORTED_MODULE_5__["UserAction"].Stream, this.getPlaybackData(), action);
306
- }
307
- /**
308
- * logVerbose is used for more granular logging than logStream, however as of June 2020
309
- * we are only logging the simpler stream event which is the same as videoWatched in Online.
310
- */
311
-
312
- }, {
313
- key: "logVerbose",
314
- value: function logVerbose(descriptor) {
315
- if (!SHOULD_LOG_VERBOSE) return;
316
- var analyticsOptions = _AnalyticsHelper__WEBPACK_IMPORTED_MODULE_7__["AnalyticsHelper"].mergeOptions(this.options.analyticsOptions, {
317
- descriptor: descriptor
318
- });
319
- var action = _AnalyticsHelper__WEBPACK_IMPORTED_MODULE_7__["AnalyticsHelper"].buildActionContext(analyticsOptions);
320
- _Analytics__WEBPACK_IMPORTED_MODULE_6__["Analytics"].log(_interfaces__WEBPACK_IMPORTED_MODULE_5__["UserAction"].Stream, this.getPlaybackData(), action);
321
- }
322
- }, {
323
- key: "getPlaybackData",
324
- value: function getPlaybackData() {
325
- return {
326
- model: _ObjectFormatHelper__WEBPACK_IMPORTED_MODULE_4__["ObjectFormatHelper"].toJSON(this.model),
327
-
328
- /**
329
- * Clone the playback status to ensure that the object is not mutated prior to being logged by
330
- * the AnalyticsService. Remove view-specific properties.
331
- */
332
- playbackStatus: underscore__WEBPACK_IMPORTED_MODULE_0__["omit"](this.playbackStatus, 'hasStarted')
333
- };
334
- }
335
- }, {
336
- key: "onDestroy",
337
- value: function onDestroy() {
338
- this.unbindListeners();
339
- this.unbindUnload();
340
- this.logUnload();
341
- }
342
- }, {
343
- key: "name",
344
- get: function get() {
345
- return 'VideoAnalyticsTracker';
346
- }
347
- }]);
348
-
349
- return VideoAnalyticsTracker;
350
- }(_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__["Core"].Service);
351
-
352
- /***/ }),
353
-
354
- /***/ "../../libs/common/src/backbone/constants/Webplayer.ts":
355
- /*!*************************************************************************************************!*\
356
- !*** C:/ClickView Projects/@clickview/packages/libs/common/src/backbone/constants/Webplayer.ts ***!
357
- \*************************************************************************************************/
358
- /*! exports provided: WebplayerEvents */
359
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
360
-
361
- "use strict";
362
- __webpack_require__.r(__webpack_exports__);
363
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WebplayerEvents", function() { return WebplayerEvents; });
364
- /**
365
- * Events are mapped against those in Webplayer.
366
- * @see http://gitlab.cvinternal.net/WebPlayer/WebPlayer/blob/master/ClickView.Html5.WebPlayer.Web/Scripts/CVPlayerEventsApi.js
367
- */
368
- var WebplayerEvents = {
369
- /**
370
- * Events emitted from webplayer via CVEventsAPI
371
- */
372
- RECEIVE: {
373
- PLAY: 'cv-player-play',
374
- PAUSE: 'cv-player-pause',
375
- VIDEO_END: 'cv-player-ended',
376
- VOLUME_CHANGE: 'cv-player-volumechange',
377
- CHAPTER_CHANGE: 'cv-player-chapterchange',
378
- TIME_UPDATE: 'cv-player-timeupdate',
379
- FULLSCREEN_CHANGE: 'cv-player-fullscreenchange',
380
- CLIP_POINTS_UPDATE: 'cv-player-cliptoolupdate',
381
- QUALITY_CHANGE: 'cv-player-qualitychange',
382
- QUERY_CALLBACK: 'cv-player-querycallback',
383
- SUBTITLES_ENABLED: 'cv-player-hassubtitles',
384
- SUBTITLES: 'cv-player-subtitles',
385
- PONG: 'cv-player-pong',
386
- // User-initiated events from webplayer UI
387
- FULLSCREEN_CLICK: '_cvwp:fsc',
388
- DEVICES_BTN_CLICK: '_cvwp:devices:click'
389
- },
390
-
391
- /**
392
- * Events to trigger on CVEventsAPI to manage/update webplayer
393
- */
394
- TRIGGER: {
395
- PLAY: 'cv-player-play',
396
- PAUSE: 'cv-player-pause',
397
- SET_VOLUME: 'cv-player-setvolume',
398
- NEXT_CHAPTER: 'cv-player-nextchapter',
399
- PREV_CHAPTER: 'cv-player-previouschapter',
400
- CHANGE_CHAPTER: 'cv-player-changechapter',
401
- TOGGLE_CLIPPING: 'cv-player-cliptooltoggle',
402
- SET_CLIP_POINTS: 'cv-player-cliptoolset',
403
- CLIP: 'cv-player-setclip',
404
- CLEAR_CLIP: 'cv-player-clearclip',
405
- SEEK_TO: 'cv-player-seekto',
406
- CONTROLS: 'cv-player-showcontrols',
407
- SUBTITLES: 'cv-player-subtitles',
408
- SET_QUALITY: 'cv-player-setquality',
409
- QUERY: 'cv-player-query',
410
- ADD_LISTENER: 'cv-player-addlistener',
411
- REMOVE_LISTENER: 'cv-player-removelistener',
412
- PING: 'cv-player-ping',
413
- // Update Webplayer UI
414
- TOGGLE_DEVICES_BTN: '_cv:toggledevicesbtn',
415
- SHOW_DEVICES_BTN: '_cv:showdevicesbtn',
416
- SHOW_FS_BTN: '_cv:showfsbtn'
417
- },
418
-
419
- /**
420
- * The webplayer can be queried directly for the following data.
421
- * Listen on QUERY_CALLBACK for result and trigger on QUERY.
422
- */
423
- QUERIES: {
424
- GET_AVAILABLE_QUALITIES: 'getAvailableQualities',
425
- GET_CURRENT_QUALITY: 'currentQuality',
426
- IS_PAUSED: 'paused',
427
- GET_CURRENT_TIME: 'currentTime',
428
- GET_CHAPTERS: 'getChapters',
429
- HAS_METADATA_CHAPTERS: 'hasMetadataChapters'
430
- }
431
- };
432
-
433
-
434
- /***/ }),
435
-
436
- /***/ "./src/shared/components/web-player/WebPlayer.handlebars":
437
- /*!***************************************************************!*\
438
- !*** ./src/shared/components/web-player/WebPlayer.handlebars ***!
439
- \***************************************************************/
440
- /*! no static exports found */
441
- /***/ (function(module, exports, __webpack_require__) {
442
-
443
- var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
444
- module.exports = (Handlebars['default'] || Handlebars).template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
445
- var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;
446
-
447
- return "<iframe class=\""
448
- + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.webPlayer : stack1), depth0))
449
- + " embed-responsive-item\" id=\""
450
- + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.id : stack1), depth0))
451
- + "\" allowfullscreen webkitallowfullscreen mozallowfullscreen allow=\"autoplay; fullscreen\" frameborder=\"0\" width=\""
452
- + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.width : stack1), depth0))
453
- + "\" height=\""
454
- + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.height : stack1), depth0))
455
- + "\" src=\""
456
- + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.url : stack1), depth0))
457
- + "\"></iframe>\r\n<div class=\""
458
- + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.svgContainer : stack1), depth0))
459
- + "\">"
460
- + ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.playSvg : stack1), depth0)) != null ? stack1 : "")
461
- + "</div>";
462
- },"useData":true});
463
-
464
- /***/ }),
465
-
466
- /***/ "./src/shared/components/web-player/WebPlayerComponent.ts":
467
- /*!****************************************************************!*\
468
- !*** ./src/shared/components/web-player/WebPlayerComponent.ts ***!
469
- \****************************************************************/
470
- /*! exports provided: WebPlayerComponent */
471
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
472
-
473
- "use strict";
474
- __webpack_require__.r(__webpack_exports__);
475
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WebPlayerComponent", function() { return WebPlayerComponent; });
476
- /* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! underscore */ "underscore");
477
- /* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(underscore__WEBPACK_IMPORTED_MODULE_0__);
478
- /* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! backbone */ "backbone");
479
- /* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(backbone__WEBPACK_IMPORTED_MODULE_1__);
480
- /* harmony import */ var _clickview_url_signer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @clickview/url-signer */ "../../../node_modules/@clickview/url-signer/dist/bundle.js");
481
- /* harmony import */ var _clickview_url_signer__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_clickview_url_signer__WEBPACK_IMPORTED_MODULE_2__);
482
- /* harmony import */ var _libs_common_src_backbone_constants_Webplayer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../libs/common/src/backbone/constants/Webplayer */ "../../libs/common/src/backbone/constants/Webplayer.ts");
483
- /* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
484
- /* harmony import */ var _libs_common_src_backbone_services_ViewModelService__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../libs/common/src/backbone/services/ViewModelService */ "../../libs/common/src/backbone/services/ViewModelService.ts");
485
- /* harmony import */ var _libs_common_src_backbone_errors_DevError__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../libs/common/src/backbone/errors/DevError */ "../../libs/common/src/backbone/errors/DevError.ts");
486
- /* harmony import */ var _libs_common_src_backbone_utils_UrlHelper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../../libs/common/src/backbone/utils/UrlHelper */ "../../libs/common/src/backbone/utils/UrlHelper.ts");
487
- /* harmony import */ var _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../../libs/shared/src/utils/SvgHelper */ "../../libs/shared/src/utils/SvgHelper.ts");
488
- /* harmony import */ var CVEvents__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! CVEvents */ "CVEvents");
489
- /* harmony import */ var CVEvents__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(CVEvents__WEBPACK_IMPORTED_MODULE_9__);
490
- /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../constants */ "./src/shared/constants/index.ts");
491
- /* harmony import */ var _libs_analytics_src_utils_VideoAnalyticsTracker__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../../../libs/analytics/src/utils/VideoAnalyticsTracker */ "../../libs/analytics/src/utils/VideoAnalyticsTracker.ts");
492
- /* harmony import */ var _WebPlayer_handlebars__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./WebPlayer.handlebars */ "./src/shared/components/web-player/WebPlayer.handlebars");
493
- /* harmony import */ var _WebPlayer_handlebars__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_WebPlayer_handlebars__WEBPACK_IMPORTED_MODULE_12__);
494
- /* harmony import */ var _webplayer_scss__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./webplayer.scss */ "./src/shared/components/web-player/webplayer.scss");
495
- /* harmony import */ var _webplayer_scss__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_webplayer_scss__WEBPACK_IMPORTED_MODULE_13__);
496
- 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); }
497
-
498
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
499
-
500
- 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); } }
501
-
502
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
503
-
504
- 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); }
505
-
506
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
507
-
508
- 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); }; }
509
-
510
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
511
-
512
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
513
-
514
- 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; } }
515
-
516
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
517
-
518
-
519
-
520
-
521
-
522
-
523
-
524
-
525
-
526
-
527
-
528
-
529
-
530
-
531
-
532
- var WebPlayerComponent = /*#__PURE__*/function (_Core$Component) {
533
- _inherits(WebPlayerComponent, _Core$Component);
534
-
535
- var _super = _createSuper(WebPlayerComponent);
536
-
537
- function WebPlayerComponent(options) {
538
- _classCallCheck(this, WebPlayerComponent);
539
-
540
- return _super.call(this, options);
541
- }
542
-
543
- _createClass(WebPlayerComponent, [{
544
- key: "initialize",
545
- value: function initialize() {
546
- this.enableIeFs = this.isTop();
547
- this.getViewModel();
548
- }
549
- }, {
550
- key: "seekTo",
551
- value: function seekTo(time) {
552
- if (this.eventsApi) this.eventsApi.trigger(_libs_common_src_backbone_constants_Webplayer__WEBPACK_IMPORTED_MODULE_3__["WebplayerEvents"].TRIGGER.SEEK_TO, time);
553
- }
554
- }, {
555
- key: "seekToChapter",
556
- value: function seekToChapter(chapterIndex) {
557
- if (this.eventsApi) this.eventsApi.trigger('cv-player-changechapter', chapterIndex);
558
- }
559
- }, {
560
- key: "getViewModel",
561
- value: function getViewModel() {
562
- var id = this.model.get('id');
563
- if (!id) id = this.model.get('trackingCode');
564
- this.viewModel = _libs_common_src_backbone_services_ViewModelService__WEBPACK_IMPORTED_MODULE_5__["ViewModelService"].get("".concat(_constants__WEBPACK_IMPORTED_MODULE_10__["Webplayer"].NAME, "-").concat(id));
565
- if (!this.viewModel.get('initialized')) this.initViewModel();
566
- this.setUrl();
567
- }
568
- }, {
569
- key: "initViewModel",
570
- value: function initViewModel() {
571
- var videoModel = this.model.pick('id');
572
- if (!videoModel.id) videoModel = this.model.pick('trackingCode');
573
-
574
- if (!videoModel.id && !videoModel.trackingCode) {
575
- _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_4__["Core"].ErrorHelper.throw(new _libs_common_src_backbone_errors_DevError__WEBPACK_IMPORTED_MODULE_6__["DevError"]("Must provide either a master id or a tracking code to ".concat(this.name)));
576
- }
577
-
578
- var attrs = underscore__WEBPACK_IMPORTED_MODULE_0__["extend"]({}, this.viewModelDefaults, videoModel, this.viewModel.toJSON(), {
579
- initialized: true
580
- });
581
-
582
- this.viewModel.set(attrs);
583
- }
584
- }, {
585
- key: "initWebPlayerEvents",
586
- value: function initWebPlayerEvents() {
587
- if (!this.enableIeFs) return;
588
- var $iframe = this.getUI('iframe');
589
- if (!$iframe || $iframe.length === 0) return;
590
- $iframe.on('load', this.bindWebPlayerEvents.bind(this));
591
- }
592
- }, {
593
- key: "bindWebPlayerEvents",
594
- value: function bindWebPlayerEvents() {
595
- if (this.iframeReady) return;
596
- var iframe = this.getUI('iframe').get(0);
597
- this.eventsApi = new CVEvents__WEBPACK_IMPORTED_MODULE_9__["CVEventsApi"](iframe.contentWindow); // Ping to see if we are ready
598
-
599
- this.eventsApi.on(_libs_common_src_backbone_constants_Webplayer__WEBPACK_IMPORTED_MODULE_3__["WebplayerEvents"].RECEIVE.PONG, this.onPong.bind(this));
600
- this.eventsApi.trigger(_libs_common_src_backbone_constants_Webplayer__WEBPACK_IMPORTED_MODULE_3__["WebplayerEvents"].TRIGGER.PING); // Bind events
601
-
602
- this.eventsApi.on(_libs_common_src_backbone_constants_Webplayer__WEBPACK_IMPORTED_MODULE_3__["WebplayerEvents"].RECEIVE.FULLSCREEN_CLICK, this.onFullscreenChange.bind(this));
603
- this.eventsApi.trigger(_libs_common_src_backbone_constants_Webplayer__WEBPACK_IMPORTED_MODULE_3__["WebplayerEvents"].TRIGGER.SHOW_FS_BTN);
604
- this.eventsApi.on(_libs_common_src_backbone_constants_Webplayer__WEBPACK_IMPORTED_MODULE_3__["WebplayerEvents"].RECEIVE.TIME_UPDATE, this.onTimeUpdate.bind(this));
605
- this.eventsApi.on(_libs_common_src_backbone_constants_Webplayer__WEBPACK_IMPORTED_MODULE_3__["WebplayerEvents"].RECEIVE.PLAY, this.onPlay.bind(this));
606
- this.eventsApi.on(_libs_common_src_backbone_constants_Webplayer__WEBPACK_IMPORTED_MODULE_3__["WebplayerEvents"].RECEIVE.PAUSE, this.onPause.bind(this));
607
- this.eventsApi.on(_libs_common_src_backbone_constants_Webplayer__WEBPACK_IMPORTED_MODULE_3__["WebplayerEvents"].RECEIVE.VIDEO_END, this.onEnded.bind(this)); // TODO: Push to device is not yet supported in LE. Also needs to check the user is an Admin.
608
- // Update default in future.
609
-
610
- if (this.options.showDevicesButton) {
611
- this.eventsApi.on(_libs_common_src_backbone_constants_Webplayer__WEBPACK_IMPORTED_MODULE_3__["WebplayerEvents"].RECEIVE.DEVICES_BTN_CLICK, this.showDeviceToggle.bind(this));
612
- this.eventsApi.trigger(_libs_common_src_backbone_constants_Webplayer__WEBPACK_IMPORTED_MODULE_3__["WebplayerEvents"].TRIGGER.SHOW_DEVICES_BTN);
613
- }
614
-
615
- if (this.options.captureAnalytics) this.tracker = new _libs_analytics_src_utils_VideoAnalyticsTracker__WEBPACK_IMPORTED_MODULE_11__["VideoAnalyticsTracker"]({
616
- video: this.model.toJSON(),
617
- eventsApi: this.eventsApi,
618
- analyticsOptions: this.options.analyticsOptions
619
- });
620
- }
621
- }, {
622
- key: "unbindWebPlayerEvents",
623
- value: function unbindWebPlayerEvents() {
624
- if (!this.eventsApi) return;
625
- this.eventsApi.off(_libs_common_src_backbone_constants_Webplayer__WEBPACK_IMPORTED_MODULE_3__["WebplayerEvents"].RECEIVE.FULLSCREEN_CLICK);
626
- this.eventsApi.off(_libs_common_src_backbone_constants_Webplayer__WEBPACK_IMPORTED_MODULE_3__["WebplayerEvents"].RECEIVE.TIME_UPDATE);
627
- this.eventsApi.off(_libs_common_src_backbone_constants_Webplayer__WEBPACK_IMPORTED_MODULE_3__["WebplayerEvents"].RECEIVE.PLAY);
628
- this.eventsApi.off(_libs_common_src_backbone_constants_Webplayer__WEBPACK_IMPORTED_MODULE_3__["WebplayerEvents"].RECEIVE.PAUSE);
629
- this.eventsApi.off(_libs_common_src_backbone_constants_Webplayer__WEBPACK_IMPORTED_MODULE_3__["WebplayerEvents"].RECEIVE.VIDEO_END);
630
- this.eventsApi.off(_libs_common_src_backbone_constants_Webplayer__WEBPACK_IMPORTED_MODULE_3__["WebplayerEvents"].RECEIVE.PONG);
631
- this.eventsApi.off(_libs_common_src_backbone_constants_Webplayer__WEBPACK_IMPORTED_MODULE_3__["WebplayerEvents"].RECEIVE.DEVICES_BTN_CLICK);
632
- }
633
- }, {
634
- key: "setUrl",
635
- value: function setUrl() {
636
- var webPlayerHost = "".concat(this.viewModel.get('webPlayerHost'), "embed");
637
- var reservedParams = ['p', 'vid'];
638
- var webPlayerParams = underscore__WEBPACK_IMPORTED_MODULE_0__["omit"](this.viewModel.get('parameters'), reservedParams) || {};
639
- webPlayerParams.a = !!this.viewModel.get('autoplay');
640
- var id = this.viewModel.get('id');
641
- if (id) webPlayerParams.vid = id;
642
- var trackingCode = this.viewModel.get('trackingCode');
643
- if (trackingCode) webPlayerParams.p = trackingCode;
644
-
645
- if (this.viewModel.get('currenttime')) {
646
- webPlayerParams.t = this.viewModel.get('currenttime');
647
- webPlayerParams.a = !this.viewModel.get('paused');
648
- }
649
-
650
- var url = _libs_common_src_backbone_utils_UrlHelper__WEBPACK_IMPORTED_MODULE_7__["UrlHelper"].urlBuilder(webPlayerHost, webPlayerParams);
651
- var signedUrl = Object(_clickview_url_signer__WEBPACK_IMPORTED_MODULE_2__["signUrl"])(url, {
652
- timestamp: true
653
- });
654
- this.viewModel.set({
655
- url: signedUrl
656
- });
657
- }
658
- }, {
659
- key: "isTop",
660
- value: function isTop() {
661
- return window.top === window;
662
- }
663
- }, {
664
- key: "onTimeUpdate",
665
- value: function onTimeUpdate(e, time) {
666
- this.viewModel.set('ready', true);
667
- this.viewModel.set('currenttime', time);
668
- }
669
- }, {
670
- key: "onPlay",
671
- value: function onPlay() {
672
- this.viewModel.set('ready', true);
673
- this.viewModel.set('paused', false);
674
- }
675
- }, {
676
- key: "onPause",
677
- value: function onPause() {
678
- this.viewModel.set('ready', true);
679
- this.viewModel.set('paused', true);
680
- }
681
- }, {
682
- key: "onEnded",
683
- value: function onEnded() {
684
- this.viewModel.trigger('ended');
685
- }
686
- }, {
687
- key: "onPong",
688
- value: function onPong() {
689
- this.iframeReady = true;
690
- this.viewModel.set('ready', true);
691
- var channel = backbone__WEBPACK_IMPORTED_MODULE_1__["Radio"].channel(this.channelName);
692
- channel.trigger('loaded'); // Notify any parent components once the webpalyer is ready
693
-
694
- if (this.options.parentChannelName) backbone__WEBPACK_IMPORTED_MODULE_1__["Radio"].channel(this.options.parentChannelName).trigger('webplayer:loaded');
695
- }
696
- }, {
697
- key: "onFullscreenChange",
698
- value: function onFullscreenChange(e, isFs, hasFsApi) {
699
- if (isFs) {
700
- this.requestFs(hasFsApi);
701
- return;
702
- }
703
-
704
- this.cancelFs(hasFsApi);
705
- }
706
- }, {
707
- key: "requestFs",
708
- value: function requestFs(hasFsApi) {
709
- // If the request wasn't sent using the fullscreen API, add the fs class
710
- if (!hasFsApi) $('html').addClass('player-fullscreen');
711
- }
712
- }, {
713
- key: "cancelFs",
714
- value: function cancelFs(hasFsApi) {
715
- // If the request wasn't sent using the fullscreen API, add the fs class
716
- if (!hasFsApi) $('html').removeClass('player-fullscreen');
717
- }
718
- }, {
719
- key: "showDeviceToggle",
720
- value: function showDeviceToggle(shouldShow) {
721
- this.viewModel.trigger('showDevices', !!shouldShow);
722
- }
723
- }, {
724
- key: "query",
725
- value: function query(queryName, callback) {
726
- var _this = this;
727
-
728
- if (!this.iframeReady) {
729
- this.listenToOnce(this.channelName, 'loaded', function () {
730
- return _this.query(queryName, callback);
731
- });
732
- return;
733
- }
734
-
735
- var uniqueId = underscore__WEBPACK_IMPORTED_MODULE_0__["uniqueId"]("cveventsapi");
736
-
737
- this.eventsApi.one("".concat(_libs_common_src_backbone_constants_Webplayer__WEBPACK_IMPORTED_MODULE_3__["WebplayerEvents"].RECEIVE.QUERY_CALLBACK, "-").concat(uniqueId), function (event, data) {
738
- callback(data);
739
- });
740
- this.eventsApi.trigger(_libs_common_src_backbone_constants_Webplayer__WEBPACK_IMPORTED_MODULE_3__["WebplayerEvents"].TRIGGER.QUERY, queryName, uniqueId);
741
- }
742
- }, {
743
- key: "viewOptions",
744
- value: function viewOptions() {
745
- return underscore__WEBPACK_IMPORTED_MODULE_0__["extend"]({}, {
746
- styles: _webplayer_scss__WEBPACK_IMPORTED_MODULE_13___default.a,
747
- playSvg: _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_8__["SvgHelper"].getSvg(_libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_8__["cvSvgLibrary"].Play)
748
- }, this.viewModel.toJSON());
749
- }
750
- }, {
751
- key: "onRender",
752
- value: function onRender() {
753
- this.initWebPlayerEvents();
754
- }
755
- }, {
756
- key: "onBeforeDestroy",
757
- value: function onBeforeDestroy() {
758
- this.unbindWebPlayerEvents(); // Clean up our analytics tracker
759
-
760
- if (this.tracker) this.tracker.destroy();
761
- }
762
- }, {
763
- key: "elements",
764
- get: function get() {
765
- return {
766
- iframe: 'iframe'
767
- };
768
- }
769
- }, {
770
- key: "name",
771
- get: function get() {
772
- return 'WebPlayerView';
773
- }
774
- }, {
775
- key: "template",
776
- get: function get() {
777
- return _WebPlayer_handlebars__WEBPACK_IMPORTED_MODULE_12___default.a;
778
- }
779
- }, {
780
- key: "className",
781
- get: function get() {
782
- return "".concat(_webplayer_scss__WEBPACK_IMPORTED_MODULE_13___default.a.webPlayerContainer, " embed-responsive embed-responsive-16by9");
783
- }
784
- }, {
785
- key: "channelName",
786
- get: function get() {
787
- return "".concat(this.name).concat(this.cid);
788
- }
789
- }, {
790
- key: "defaults",
791
- get: function get() {
792
- return {
793
- captureAnalytics: true,
794
- showDevicesButton: false
795
- };
796
- }
797
- }, {
798
- key: "viewModelDefaults",
799
- get: function get() {
800
- return {
801
- width: 640,
802
- height: 360,
803
- autoplay: !!this.options.autoplay,
804
- parameters: {
805
- s: false,
806
- bc: false,
807
- bf: false // Hide fullscreen button
808
-
809
- },
810
- webPlayerHost: this.options.webPlayerUrl
811
- };
812
- }
813
- }]);
814
-
815
- return WebPlayerComponent;
816
- }(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_4__["Core"].Component);
817
-
818
- /***/ }),
819
-
820
- /***/ "./src/shared/components/web-player/webplayer.scss":
821
- /*!*********************************************************!*\
822
- !*** ./src/shared/components/web-player/webplayer.scss ***!
823
- \*********************************************************/
824
- /*! no static exports found */
825
- /***/ (function(module, exports, __webpack_require__) {
826
-
827
- // extracted by mini-css-extract-plugin
828
- module.exports = {"webPlayerContainer":"cv--webPlayerContainer--2S4VF","webPlayer":"cv--webPlayer--3569L","svgContainer":"cv--svgContainer--1WsxD"};
829
-
830
- /***/ })
831
-
832
- }]);
833
- //# sourceMappingURL=3.chunk.js.map