@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,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