@clickview/lite 0.32.3 → 0.32.5-dev.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 (673) hide show
  1. package/dist/bundles.json +3 -3
  2. package/dist/css/{1064-lite-e6ec84fd3f.chunk.css → 1064-lite-b3840e522e.chunk.css} +2 -2
  3. package/dist/css/{1366-lite-0239ab3e7e.chunk.css → 1366-lite-7a13bffe4a.chunk.css} +3 -3
  4. package/dist/css/{1475-lite-1b41a0628c.chunk.css → 1475-lite-8717f8b322.chunk.css} +3 -3
  5. package/dist/css/162-lite-2da1ee274f.chunk.css +37 -0
  6. package/dist/css/{4484-lite-204fa1d3ba.chunk.css → 1725-lite-6efa9a8c08.chunk.css} +1 -1
  7. package/dist/css/1750-lite-1464ddc6ff.chunk.css +3 -0
  8. package/dist/css/{1781-lite-d3216fb72f.chunk.css → 1781-lite-028e7f49eb.chunk.css} +2 -2
  9. package/dist/css/1891-lite-ff35c99cb7.chunk.css +2 -0
  10. package/dist/css/{2066-lite-4e16a83a36.chunk.css → 2066-lite-c31f88668c.chunk.css} +4 -4
  11. package/dist/css/2118-lite-5d3ec54337.chunk.css +1 -0
  12. package/dist/css/{2318-lite-ca6d519c2e.chunk.css → 2318-lite-1d266f666c.chunk.css} +1 -1
  13. package/dist/css/{4874-lite-15aa778737.chunk.css → 2729-lite-ebe3cdda84.chunk.css} +2 -2
  14. package/dist/css/{275-lite-71b01cc990.chunk.css → 275-lite-f1860ca39a.chunk.css} +2 -2
  15. package/dist/css/{3091-lite-e0fb499d6e.chunk.css → 3091-lite-ea247cd3c7.chunk.css} +2 -2
  16. package/dist/css/{3154-lite-11158838c0.chunk.css → 3154-lite-e39ddb97b4.chunk.css} +1 -1
  17. package/dist/css/{4229-lite-6aa69cd401.chunk.css → 3446-lite-ded5e413ce.chunk.css} +2 -2
  18. package/dist/css/3468-lite-5d3ec54337.chunk.css +1 -0
  19. package/dist/css/3533-lite-5d3ec54337.chunk.css +1 -0
  20. package/dist/css/{355-lite-271a4bb3d4.chunk.css → 355-lite-eb1d4d3152.chunk.css} +2 -2
  21. package/dist/css/{3645-lite-304423256b.chunk.css → 3645-lite-f1f1b748f7.chunk.css} +1 -1
  22. package/dist/css/3667-lite-c160f399ef.chunk.css +3 -0
  23. package/dist/css/{3755-lite-21f15b7906.chunk.css → 3755-lite-19658f72e9.chunk.css} +2 -2
  24. package/dist/css/{9194-lite-d395807101.chunk.css → 3789-lite-25d999ba37.chunk.css} +2 -1
  25. package/dist/css/{3849-lite-2eb46f0334.chunk.css → 3849-lite-fa93aa92bf.chunk.css} +1 -1
  26. package/dist/css/4032-lite-d9c7560726.chunk.css +4 -0
  27. package/dist/css/{4052-lite-6bf4f7a77b.chunk.css → 4052-lite-e96ead7ea1.chunk.css} +2 -2
  28. package/dist/css/{4145-lite-a27eec9ae8.chunk.css → 4145-lite-419c7a3152.chunk.css} +2 -2
  29. package/dist/css/{3322-lite-2cb4fd8dc1.chunk.css → 420-lite-898652e17b.chunk.css} +0 -1
  30. package/dist/css/{2477-lite-416e958638.chunk.css → 4373-lite-975f9b4d75.chunk.css} +2 -2
  31. package/dist/css/{8556-lite-cdf9814e9a.chunk.css → 4380-lite-1e4722df6b.chunk.css} +2 -2
  32. package/dist/css/{4537-lite-beac80e560.chunk.css → 4537-lite-3469c21deb.chunk.css} +1 -1
  33. package/dist/css/4541-lite-5d3ec54337.chunk.css +1 -0
  34. package/dist/css/{1291-lite-1c4780743f.chunk.css → 4612-lite-3886475291.chunk.css} +2 -2
  35. package/dist/css/{4617-lite-5e8387006a.chunk.css → 4617-lite-ed371d2824.chunk.css} +2 -2
  36. package/dist/css/4705-lite-54b30399d3.chunk.css +3 -0
  37. package/dist/css/4753-lite-d25306256f.chunk.css +2 -0
  38. package/dist/css/482-lite-5d3ec54337.chunk.css +1 -0
  39. package/dist/css/{2729-lite-15aa778737.chunk.css → 4874-lite-ebe3cdda84.chunk.css} +2 -2
  40. package/dist/css/{4942-lite-bd40e9c904.chunk.css → 4942-lite-5189588330.chunk.css} +1 -1
  41. package/dist/css/510-lite-b97d0f723f.chunk.css +3 -0
  42. package/dist/css/{5171-lite-231fb4351a.chunk.css → 5171-lite-bb5871d776.chunk.css} +2 -2
  43. package/dist/css/519-lite-e5eb6a5c45.chunk.css +3 -0
  44. package/dist/css/{6330-lite-bd40e9c904.chunk.css → 5268-lite-5189588330.chunk.css} +1 -1
  45. package/dist/css/{8035-lite-e6ec84fd3f.chunk.css → 5590-lite-b3840e522e.chunk.css} +2 -2
  46. package/dist/css/{5590-lite-e6ec84fd3f.chunk.css → 5659-lite-b3840e522e.chunk.css} +2 -2
  47. package/dist/css/{6117-lite-fe222571f3.chunk.css → 6117-lite-9f291e9fd0.chunk.css} +1 -1
  48. package/dist/css/{6154-lite-b8ba830cd3.chunk.css → 6154-lite-a0abd6b2f9.chunk.css} +3 -3
  49. package/dist/css/6285-lite-d714304d0d.chunk.css +2 -0
  50. package/dist/css/{4290-lite-7bd376fdab.chunk.css → 6290-lite-cbc4dea7ce.chunk.css} +1 -1
  51. package/dist/css/{5268-lite-bd40e9c904.chunk.css → 6330-lite-5189588330.chunk.css} +1 -1
  52. package/dist/css/{6932-lite-944c5933dc.chunk.css → 6407-lite-2a91046512.chunk.css} +2 -2
  53. package/dist/css/6465-lite-5d3ec54337.chunk.css +1 -0
  54. package/dist/css/6689-lite-ed8e07dd89.chunk.css +4 -0
  55. package/dist/css/{7952-lite-0a9d045149.chunk.css → 6702-lite-285d18c247.chunk.css} +2 -2
  56. package/dist/css/6817-lite-b97d0f723f.chunk.css +3 -0
  57. package/dist/css/{6822-lite-927bfd9703.chunk.css → 6822-lite-c2527edca1.chunk.css} +2 -2
  58. package/dist/css/{8500-lite-6cb624c329.chunk.css → 6957-lite-8d71b12aa5.chunk.css} +2 -2
  59. package/dist/css/7112-lite-a4bcbd8002.chunk.css +3 -0
  60. package/dist/css/7128-lite-5d3ec54337.chunk.css +1 -0
  61. package/dist/css/7172-lite-5d3ec54337.chunk.css +1 -0
  62. package/dist/css/7178-lite-b4e4346f43.chunk.css +3 -0
  63. package/dist/css/{7286-lite-da823e464b.chunk.css → 7286-lite-5a6b3f32ab.chunk.css} +2 -2
  64. package/dist/css/{7409-lite-3342fc3859.chunk.css → 7409-lite-3b312b926d.chunk.css} +2 -2
  65. package/dist/css/{7484-lite-ee2799eab2.chunk.css → 7484-lite-1a3ccb3597.chunk.css} +2 -2
  66. package/dist/css/7818-lite-02acf4690b.chunk.css +2 -0
  67. package/dist/css/8025-lite-5d3ec54337.chunk.css +1 -0
  68. package/dist/css/{6254-lite-d969bbf4ac.chunk.css → 817-lite-665d49932b.chunk.css} +2 -2
  69. package/dist/css/8383-lite-5d3ec54337.chunk.css +1 -0
  70. package/dist/css/{4380-lite-cdf9814e9a.chunk.css → 8556-lite-1e4722df6b.chunk.css} +2 -2
  71. package/dist/css/{8621-lite-bbdcb78b4c.chunk.css → 8621-lite-76dde2eb8d.chunk.css} +1 -1
  72. package/dist/css/{8820-lite-76d15a1090.chunk.css → 8820-lite-57008e3940.chunk.css} +2 -2
  73. package/dist/css/8935-lite-dda85abf44.chunk.css +4 -0
  74. package/dist/css/{8960-lite-9068589bd0.chunk.css → 8960-lite-79f8856b6c.chunk.css} +2 -2
  75. package/dist/css/9060-lite-5d3ec54337.chunk.css +1 -0
  76. package/dist/css/{9151-lite-34a72dd76a.chunk.css → 9151-lite-c4a0ad3e8f.chunk.css} +1 -1
  77. package/dist/css/9455-lite-a1c3df8800.chunk.css +5 -0
  78. package/dist/css/{9484-lite-bd40e9c904.chunk.css → 9484-lite-5189588330.chunk.css} +1 -1
  79. package/dist/css/{9714-lite-194caaa213.chunk.css → 9714-lite-72b0f59716.chunk.css} +3 -3
  80. package/dist/css/{9744-lite-e0fb499d6e.chunk.css → 9744-lite-ea247cd3c7.chunk.css} +2 -2
  81. package/dist/css/lite-app-3a1c9a1d2b.css +52 -0
  82. package/dist/languages/en.json +1 -1
  83. package/dist/scripts/1064-c89603c84c-lite.chunk.js +1 -0
  84. package/dist/scripts/1106-654e5682c2-lite.chunk.js +1 -0
  85. package/dist/scripts/1285-6f221ec83e-lite.chunk.js +1 -0
  86. package/dist/scripts/1291-94108fc09a-lite.chunk.js +1 -0
  87. package/dist/scripts/1354-33c5905ae6-lite.chunk.js +2 -0
  88. package/dist/scripts/1366-666ef709a1-lite.chunk.js +2 -0
  89. package/dist/scripts/1475-c84cf7b8c7-lite.chunk.js +1 -0
  90. package/dist/scripts/1517-ba6874eca4-lite.chunk.js +1 -0
  91. package/dist/scripts/1518-c4881607ce-lite.chunk.js +1 -0
  92. package/dist/scripts/1526-4b6226c3a3-lite.chunk.js +1 -0
  93. package/dist/scripts/1592-aa2bc45d63-lite.chunk.js +2 -0
  94. package/dist/scripts/162-51e28f0e8d-lite.chunk.js +2 -0
  95. package/dist/scripts/1628-ab186495a7-lite.chunk.js +1 -0
  96. package/dist/scripts/1672-2a6d69b169-lite.chunk.js +2 -0
  97. package/dist/scripts/1725-30a5110c8d-lite.chunk.js +1 -0
  98. package/dist/scripts/1726-3bd6a64ab2-lite.chunk.js +1 -0
  99. package/dist/scripts/1750-4b785132ad-lite.chunk.js +1 -0
  100. package/dist/scripts/1781-40d8e94385-lite.chunk.js +1 -0
  101. package/dist/scripts/1818-6e03769806-lite.chunk.js +1 -0
  102. package/dist/scripts/1820-8268536e88-lite.chunk.js +1 -0
  103. package/dist/scripts/1830-565ee5aa0c-lite.chunk.js +1 -0
  104. package/dist/scripts/1837-e6891957ae-lite.chunk.js +1 -0
  105. package/dist/scripts/1863-47eef75488-lite.chunk.js +1 -0
  106. package/dist/scripts/1891-20227a97bd-lite.chunk.js +1 -0
  107. package/dist/scripts/1913-6c98c0a34f-lite.chunk.js +1 -0
  108. package/dist/scripts/1924-8c219e2149-lite.chunk.js +1 -0
  109. package/dist/scripts/1943-cf609bd18b-lite.chunk.js +1 -0
  110. package/dist/scripts/1958-6de295ac2f-lite.chunk.js +1 -0
  111. package/dist/scripts/2066-f1ee632b62-lite.chunk.js +2 -0
  112. package/dist/scripts/209-bea4fb3c22-lite.chunk.js +1 -0
  113. package/dist/scripts/2095-498558805d-lite.chunk.js +1 -0
  114. package/dist/scripts/2118-a281da36fd-lite.chunk.js +2 -0
  115. package/dist/scripts/2175-1a9cac2654-lite.chunk.js +1 -0
  116. package/dist/scripts/2199-d8e643d50d-lite.chunk.js +1 -0
  117. package/dist/scripts/2208-6320d5c5ec-lite.chunk.js +1 -0
  118. package/dist/scripts/2229-c122a30392-lite.chunk.js +1 -0
  119. package/dist/scripts/2235-b9198e9674-lite.chunk.js +1 -0
  120. package/dist/scripts/2269-7a1c771947-lite.chunk.js +1 -0
  121. package/dist/scripts/227-e81fa36f91-lite.chunk.js +1 -0
  122. package/dist/scripts/2279-40f438c92d-lite.chunk.js +1 -0
  123. package/dist/scripts/2318-204c094444-lite.chunk.js +1 -0
  124. package/dist/scripts/2469-8591c7a350-lite.chunk.js +1 -0
  125. package/dist/scripts/2561-a7ccb8c0fa-lite.chunk.js +1 -0
  126. package/dist/scripts/2564-6030f21acd-lite.chunk.js +1 -0
  127. package/dist/scripts/2566-c38b03672e-lite.chunk.js +1 -0
  128. package/dist/scripts/2608-e2b5d4de7a-lite.chunk.js +1 -0
  129. package/dist/scripts/2665-af12e85b3f-lite.chunk.js +1 -0
  130. package/dist/scripts/2678-b53d60e821-lite.chunk.js +2 -0
  131. package/dist/scripts/2729-feeb22f8a9-lite.chunk.js +1 -0
  132. package/dist/scripts/275-0cd72590c8-lite.chunk.js +1 -0
  133. package/dist/scripts/276-11cc4ff717-lite.chunk.js +1 -0
  134. package/dist/scripts/287-223a01d363-lite.chunk.js +1 -0
  135. package/dist/scripts/2877-d3c00abb14-lite.chunk.js +1 -0
  136. package/dist/scripts/2958-3f6dfb6fa9-lite.chunk.js +1 -0
  137. package/dist/scripts/{2966-5425811e8d-lite.chunk.js → 2966-0a626741f2-lite.chunk.js} +1 -1
  138. package/dist/scripts/3012-b64578f4b5-lite.chunk.js +1 -0
  139. package/dist/scripts/3020-b0fd4b4978-lite.chunk.js +1 -0
  140. package/dist/scripts/3091-b372a6e5a8-lite.chunk.js +1 -0
  141. package/dist/scripts/3108-9f90ad6dba-lite.chunk.js +1 -0
  142. package/dist/scripts/3154-25535da78b-lite.chunk.js +1 -0
  143. package/dist/scripts/3171-ca6a42c306-lite.chunk.js +1 -0
  144. package/dist/scripts/3200-3bbafd3e8a-lite.chunk.js +1 -0
  145. package/dist/scripts/3216-47d94fcff8-lite.chunk.js +1 -0
  146. package/dist/scripts/{8176-4f92cf69ff-lite.chunk.js → 3237-35a98ed3a1-lite.chunk.js} +1 -1
  147. package/dist/scripts/3285-85360362bb-lite.chunk.js +1 -0
  148. package/dist/scripts/3371-61857af54b-lite.chunk.js +1 -0
  149. package/dist/scripts/3378-205ec27cf3-lite.chunk.js +1 -0
  150. package/dist/scripts/3446-cb79c1bff9-lite.chunk.js +1 -0
  151. package/dist/scripts/3468-ce102222d3-lite.chunk.js +1 -0
  152. package/dist/scripts/3514-4c7a73efac-lite.chunk.js +1 -0
  153. package/dist/scripts/3533-165a400f8a-lite.chunk.js +1 -0
  154. package/dist/scripts/355-43835ac290-lite.chunk.js +1 -0
  155. package/dist/scripts/3602-c5f7a74c8b-lite.chunk.js +2 -0
  156. package/dist/scripts/3645-86f0ed022f-lite.chunk.js +2 -0
  157. package/dist/scripts/3654-5344eb1cc5-lite.chunk.js +1 -0
  158. package/dist/scripts/3667-c5b8a096c2-lite.chunk.js +2 -0
  159. package/dist/scripts/3727-6c63240ea2-lite.chunk.js +1 -0
  160. package/dist/scripts/3728-952e59af2f-lite.chunk.js +1 -0
  161. package/dist/scripts/3729-fb0ebdda2b-lite.chunk.js +1 -0
  162. package/dist/scripts/3754-ad907b38cc-lite.chunk.js +1 -0
  163. package/dist/scripts/3755-51bd37a5c6-lite.chunk.js +1 -0
  164. package/dist/scripts/3789-4cb6d829f6-lite.chunk.js +2 -0
  165. package/dist/scripts/{3848-ec29f6e574-lite.chunk.js → 3848-0c6b5bba24-lite.chunk.js} +1 -1
  166. package/dist/scripts/3849-b0db69d3db-lite.chunk.js +1 -0
  167. package/dist/scripts/389-fc8f4fcbf4-lite.chunk.js +1 -0
  168. package/dist/scripts/3962-e5b5657359-lite.chunk.js +1 -0
  169. package/dist/scripts/4032-279a38c349-lite.chunk.js +1 -0
  170. package/dist/scripts/4052-4548ee2a0c-lite.chunk.js +1 -0
  171. package/dist/scripts/4067-7dea084485-lite.chunk.js +1 -0
  172. package/dist/scripts/414-712655c265-lite.chunk.js +1 -0
  173. package/dist/scripts/4145-bc7f5915d7-lite.chunk.js +1 -0
  174. package/dist/scripts/4182-6a6ad037b3-lite.chunk.js +1 -0
  175. package/dist/scripts/420-1d548d3b84-lite.chunk.js +1 -0
  176. package/dist/scripts/4326-af6113a1df-lite.chunk.js +1 -0
  177. package/dist/scripts/4343-84cca94426-lite.chunk.js +1 -0
  178. package/dist/scripts/4373-039b523832-lite.chunk.js +1 -0
  179. package/dist/scripts/4380-719146155f-lite.chunk.js +1 -0
  180. package/dist/scripts/4393-df6aadca06-lite.chunk.js +1 -0
  181. package/dist/scripts/4417-63dce95be2-lite.chunk.js +1 -0
  182. package/dist/scripts/4423-3424b647e8-lite.chunk.js +1 -0
  183. package/dist/scripts/4436-843f23ed17-lite.chunk.js +1 -0
  184. package/dist/scripts/4537-9c5fd00b48-lite.chunk.js +1 -0
  185. package/dist/scripts/4541-33b739b0d8-lite.chunk.js +1 -0
  186. package/dist/scripts/4612-2c0e7977a2-lite.chunk.js +1 -0
  187. package/dist/scripts/4617-591aee68e0-lite.chunk.js +1 -0
  188. package/dist/scripts/4632-83f6987cd0-lite.chunk.js +1 -0
  189. package/dist/scripts/4657-da41ee610c-lite.chunk.js +2 -0
  190. package/dist/scripts/4676-adc55dfa15-lite.chunk.js +2 -0
  191. package/dist/scripts/4690-180c8c170a-lite.chunk.js +1 -0
  192. package/dist/scripts/4705-96be64b79d-lite.chunk.js +1 -0
  193. package/dist/scripts/4753-31e147c1a9-lite.chunk.js +1 -0
  194. package/dist/scripts/4770-78dca0fe91-lite.chunk.js +1 -0
  195. package/dist/scripts/482-7c9d6c3584-lite.chunk.js +1 -0
  196. package/dist/scripts/4893-c04f7f4d32-lite.chunk.js +1 -0
  197. package/dist/scripts/4895-ab469a3b66-lite.chunk.js +1 -0
  198. package/dist/scripts/4942-9db184d708-lite.chunk.js +2 -0
  199. package/dist/scripts/5009-9e45034def-lite.chunk.js +2 -0
  200. package/dist/scripts/5018-d2c1af9240-lite.chunk.js +1 -0
  201. package/dist/scripts/5040-3d6023b7e1-lite.chunk.js +1 -0
  202. package/dist/scripts/510-ef57ce883d-lite.chunk.js +1 -0
  203. package/dist/scripts/5134-6d70bcc26e-lite.chunk.js +1 -0
  204. package/dist/scripts/5143-d11346cce2-lite.chunk.js +1 -0
  205. package/dist/scripts/5171-926c0772a6-lite.chunk.js +1 -0
  206. package/dist/scripts/{5173-8046faf648-lite.chunk.js → 5173-e1c8a64adb-lite.chunk.js} +1 -1
  207. package/dist/scripts/519-5dff99c40b-lite.chunk.js +1 -0
  208. package/dist/scripts/5229-13ee2bf768-lite.chunk.js +1 -0
  209. package/dist/scripts/5268-029905c5f0-lite.chunk.js +2 -0
  210. package/dist/scripts/5271-1df4d9d742-lite.chunk.js +1 -0
  211. package/dist/scripts/528-bc970ef53c-lite.chunk.js +1 -0
  212. package/dist/scripts/5291-ca756f9f8a-lite.chunk.js +1 -0
  213. package/dist/scripts/5385-a2451e3eec-lite.chunk.js +1 -0
  214. package/dist/scripts/{5509-35f1b780d4-lite.chunk.js → 5509-9e9e7bc4a9-lite.chunk.js} +1 -1
  215. package/dist/scripts/5512-82edf40ee3-lite.chunk.js +1 -0
  216. package/dist/scripts/5590-f5dbe096c3-lite.chunk.js +1 -0
  217. package/dist/scripts/5595-99e11127bb-lite.chunk.js +1 -0
  218. package/dist/scripts/5606-486a41d299-lite.chunk.js +1 -0
  219. package/dist/scripts/5622-7b29606856-lite.chunk.js +2 -0
  220. package/dist/scripts/5659-92c6bf622e-lite.chunk.js +1 -0
  221. package/dist/scripts/5776-27f15a637f-lite.chunk.js +1 -0
  222. package/dist/scripts/5823-480e485fdb-lite.chunk.js +1 -0
  223. package/dist/scripts/5877-e318dacbf1-lite.chunk.js +1 -0
  224. package/dist/scripts/5914-3162035c4e-lite.chunk.js +1 -0
  225. package/dist/scripts/5974-107738ce13-lite.chunk.js +1 -0
  226. package/dist/scripts/{5986-38e236e499-lite.chunk.js → 5986-d9b797867b-lite.chunk.js} +1 -1
  227. package/dist/scripts/6057-dd865f2846-lite.chunk.js +1 -0
  228. package/dist/scripts/6117-fae9185071-lite.chunk.js +1 -0
  229. package/dist/scripts/615-50555390cc-lite.chunk.js +1 -0
  230. package/dist/scripts/6154-107ea02e45-lite.chunk.js +1 -0
  231. package/dist/scripts/6158-4bdb28b41e-lite.chunk.js +1 -0
  232. package/dist/scripts/6159-2111108b27-lite.chunk.js +1 -0
  233. package/dist/scripts/6274-723129c5c6-lite.chunk.js +1 -0
  234. package/dist/scripts/6285-4808d8e6db-lite.chunk.js +1 -0
  235. package/dist/scripts/6290-8204f439c2-lite.chunk.js +1 -0
  236. package/dist/scripts/6302-6690979e80-lite.chunk.js +1 -0
  237. package/dist/scripts/6330-1a2cb669fa-lite.chunk.js +1 -0
  238. package/dist/scripts/6368-8532bb9df5-lite.chunk.js +1 -0
  239. package/dist/scripts/6370-a15bddb981-lite.chunk.js +1 -0
  240. package/dist/scripts/6407-651ccf60e3-lite.chunk.js +1 -0
  241. package/dist/scripts/6450-6e367c2ef3-lite.chunk.js +1 -0
  242. package/dist/scripts/6465-3b025df7ce-lite.chunk.js +1 -0
  243. package/dist/scripts/6480-126763c9bc-lite.chunk.js +1 -0
  244. package/dist/scripts/6493-8957a82163-lite.chunk.js +1 -0
  245. package/dist/scripts/6532-04ba86364b-lite.chunk.js +1 -0
  246. package/dist/scripts/6572-8800413390-lite.chunk.js +1 -0
  247. package/dist/scripts/6604-968eb39831-lite.chunk.js +1 -0
  248. package/dist/scripts/6662-0cdefe8716-lite.chunk.js +1 -0
  249. package/dist/scripts/6689-bf6b056ced-lite.chunk.js +1 -0
  250. package/dist/scripts/6702-bbebb7030e-lite.chunk.js +1 -0
  251. package/dist/scripts/6788-e7ccd0d5a6-lite.chunk.js +1 -0
  252. package/dist/scripts/6817-bed9ca6833-lite.chunk.js +1 -0
  253. package/dist/scripts/6821-dd1c07bb4f-lite.chunk.js +1 -0
  254. package/dist/scripts/6822-15e9977d1f-lite.chunk.js +1 -0
  255. package/dist/scripts/6866-6824b66ebf-lite.chunk.js +1 -0
  256. package/dist/scripts/6873-24746fa2b4-lite.chunk.js +1 -0
  257. package/dist/scripts/689-076f4dd986-lite.chunk.js +1 -0
  258. package/dist/scripts/{6896-79fa541f46-lite.chunk.js → 6896-75b32c41e8-lite.chunk.js} +2 -2
  259. package/dist/scripts/{691-1a7a29fb40-lite.chunk.js → 691-670cb6f7e6-lite.chunk.js} +2 -2
  260. package/dist/scripts/6913-f2a9eea63b-lite.chunk.js +1 -0
  261. package/dist/scripts/6930-4c28b4f509-lite.chunk.js +1 -0
  262. package/dist/scripts/6957-058e2001c4-lite.chunk.js +1 -0
  263. package/dist/scripts/{7017-76adb0abdc-lite.chunk.js → 7017-35c73244a6-lite.chunk.js} +2 -2
  264. package/dist/scripts/7030-041896252c-lite.chunk.js +2 -0
  265. package/dist/scripts/7045-8f704951d9-lite.chunk.js +1 -0
  266. package/dist/scripts/7052-0a94f7b10e-lite.chunk.js +2 -0
  267. package/dist/scripts/7056-b5cd72d1b8-lite.chunk.js +1 -0
  268. package/dist/scripts/7108-0f6adbabf0-lite.chunk.js +1 -0
  269. package/dist/scripts/7112-ec1031994e-lite.chunk.js +2 -0
  270. package/dist/scripts/7115-ca20dcea0a-lite.chunk.js +1 -0
  271. package/dist/scripts/{7117-2dc06cc559-lite.chunk.js → 7117-1da2d8e101-lite.chunk.js} +1 -1
  272. package/dist/scripts/7128-1ee42ef21c-lite.chunk.js +1 -0
  273. package/dist/scripts/714-7d4a73ae45-lite.chunk.js +1 -0
  274. package/dist/scripts/7172-f8288f9f70-lite.chunk.js +1 -0
  275. package/dist/scripts/7178-7389623a5a-lite.chunk.js +1 -0
  276. package/dist/scripts/7205-4c232d2ac0-lite.chunk.js +1 -0
  277. package/dist/scripts/7221-dab37ddabe-lite.chunk.js +2 -0
  278. package/dist/scripts/7286-cb1923e134-lite.chunk.js +1 -0
  279. package/dist/scripts/7288-e945b5adc9-lite.chunk.js +1 -0
  280. package/dist/scripts/7293-e20274d243-lite.chunk.js +1 -0
  281. package/dist/scripts/7332-7bfaeba358-lite.chunk.js +1 -0
  282. package/dist/scripts/7338-a11845d2a6-lite.chunk.js +1 -0
  283. package/dist/scripts/7385-c433287c92-lite.chunk.js +1 -0
  284. package/dist/scripts/7409-8a76274449-lite.chunk.js +1 -0
  285. package/dist/scripts/{1977-7e46c81a05-lite.chunk.js → 7422-8f60c3028d-lite.chunk.js} +2 -2
  286. package/dist/scripts/7432-d4e8bef2f4-lite.chunk.js +1 -0
  287. package/dist/scripts/7484-6bc5cab7dd-lite.chunk.js +1 -0
  288. package/dist/scripts/7506-84f4593d4e-lite.chunk.js +1 -0
  289. package/dist/scripts/754-b54addb690-lite.chunk.js +1 -0
  290. package/dist/scripts/7540-fabe7ac275-lite.chunk.js +1 -0
  291. package/dist/scripts/7555-4d6b6eda04-lite.chunk.js +1 -0
  292. package/dist/scripts/{7706-d9f05df3bd-lite.chunk.js → 7706-1f9e23a067-lite.chunk.js} +1 -1
  293. package/dist/scripts/7708-f170b2ca80-lite.chunk.js +1 -0
  294. package/dist/scripts/7767-3a6db3d0ec-lite.chunk.js +1 -0
  295. package/dist/scripts/7818-4910db8536-lite.chunk.js +1 -0
  296. package/dist/scripts/7855-23c0238091-lite.chunk.js +1 -0
  297. package/dist/scripts/7888-e721ba550f-lite.chunk.js +1 -0
  298. package/dist/scripts/7925-f5bfc42b6b-lite.chunk.js +1 -0
  299. package/dist/scripts/8025-ebb2a6e951-lite.chunk.js +1 -0
  300. package/dist/scripts/8046-bf50ba7dc9-lite.chunk.js +1 -0
  301. package/dist/scripts/8056-0044639a66-lite.chunk.js +1 -0
  302. package/dist/scripts/811-9575586e7f-lite.chunk.js +1 -0
  303. package/dist/scripts/817-19c50fb9e7-lite.chunk.js +1 -0
  304. package/dist/scripts/823-cb0629ec55-lite.chunk.js +1 -0
  305. package/dist/scripts/8236-06e2326d22-lite.chunk.js +1 -0
  306. package/dist/scripts/8252-82ab60c504-lite.chunk.js +1 -0
  307. package/dist/scripts/8323-aeb803ba70-lite.chunk.js +2 -0
  308. package/dist/scripts/8367-c2e291cfc2-lite.chunk.js +1 -0
  309. package/dist/scripts/8383-84a5223bb5-lite.chunk.js +1 -0
  310. package/dist/scripts/8419-8ddf8d53f5-lite.chunk.js +1 -0
  311. package/dist/scripts/8466-ee3317e095-lite.chunk.js +1 -0
  312. package/dist/scripts/8556-f6d1f3fe46-lite.chunk.js +1 -0
  313. package/dist/scripts/8564-97a9548afd-lite.chunk.js +1 -0
  314. package/dist/scripts/8621-4f47ca7ad9-lite.chunk.js +1 -0
  315. package/dist/scripts/8681-da6e12f2d5-lite.chunk.js +2 -0
  316. package/dist/scripts/872-f2695b16b4-lite.chunk.js +1 -0
  317. package/dist/scripts/8763-30018c2eba-lite.chunk.js +1 -0
  318. package/dist/scripts/8820-192385d246-lite.chunk.js +1 -0
  319. package/dist/scripts/8830-a30a1fab45-lite.chunk.js +1 -0
  320. package/dist/scripts/8873-f8598046db-lite.chunk.js +1 -0
  321. package/dist/scripts/8905-63f31e0b26-lite.chunk.js +1 -0
  322. package/dist/scripts/8935-0d85df691f-lite.chunk.js +2 -0
  323. package/dist/scripts/8944-fa935f6ed4-lite.chunk.js +1 -0
  324. package/dist/scripts/8955-9823de95f3-lite.chunk.js +1 -0
  325. package/dist/scripts/9005-7329883227-lite.chunk.js +1 -0
  326. package/dist/scripts/9016-17e09819a6-lite.chunk.js +1 -0
  327. package/dist/scripts/9038-d071dd25ce-lite.chunk.js +1 -0
  328. package/dist/scripts/9060-5cee4638c6-lite.chunk.js +1 -0
  329. package/dist/scripts/9118-948d6029d3-lite.chunk.js +1 -0
  330. package/dist/scripts/9133-1c2f07cd11-lite.chunk.js +1 -0
  331. package/dist/scripts/9151-049f79d533-lite.chunk.js +1 -0
  332. package/dist/scripts/9226-941d653db1-lite.chunk.js +1 -0
  333. package/dist/scripts/9242-4b15b572db-lite.chunk.js +1 -0
  334. package/dist/scripts/9264-c265dc4e08-lite.chunk.js +1 -0
  335. package/dist/scripts/9273-535bb6b083-lite.chunk.js +1 -0
  336. package/dist/scripts/9325-8200a8eca7-lite.chunk.js +1 -0
  337. package/dist/scripts/9428-f581bbe764-lite.chunk.js +2 -0
  338. package/dist/scripts/9455-cde3c093dc-lite.chunk.js +1 -0
  339. package/dist/scripts/9478-fecaea6d54-lite.chunk.js +2 -0
  340. package/dist/scripts/9484-312aa1531d-lite.chunk.js +2 -0
  341. package/dist/scripts/9674-cd38b69de3-lite.chunk.js +1 -0
  342. package/dist/scripts/9714-d0bcd64c24-lite.chunk.js +1 -0
  343. package/dist/scripts/9744-49217aba0f-lite.chunk.js +1 -0
  344. package/dist/scripts/9798-cf0181fd79-lite.chunk.js +1 -0
  345. package/dist/scripts/9843-9f510ac1c1-lite.chunk.js +1 -0
  346. package/dist/scripts/9880-c7ad9079c0-lite.chunk.js +1 -0
  347. package/dist/scripts/9894-75159b2fc0-lite.chunk.js +2 -0
  348. package/dist/scripts/9899-e695d8ad4c-lite.chunk.js +1 -0
  349. package/dist/scripts/9931-08cf05b177-lite.chunk.js +2 -0
  350. package/dist/scripts/9961-62c9f288a2-lite.chunk.js +1 -0
  351. package/dist/scripts/bundle-88ea810319.min.js +2 -0
  352. package/dist/scripts/bundle-88ea810319.min.js.LICENSE.txt +129 -0
  353. package/dist/scripts/{polyfills-5c0684cd85.min.js → polyfills-02090a38a6.min.js} +2 -2
  354. package/dist/scripts/polyfills-02090a38a6.min.js.LICENSE.txt +1 -0
  355. package/package.json +61 -61
  356. package/dist/css/162-lite-32e60d7e18.chunk.css +0 -37
  357. package/dist/css/1655-lite-e7bdc675ac.chunk.css +0 -2
  358. package/dist/css/1794-lite-88303bbaf5.chunk.css +0 -3
  359. package/dist/css/2118-lite-74522bc90f.chunk.css +0 -1
  360. package/dist/css/3468-lite-74522bc90f.chunk.css +0 -1
  361. package/dist/css/3533-lite-74522bc90f.chunk.css +0 -1
  362. package/dist/css/3667-lite-37b25ceace.chunk.css +0 -3
  363. package/dist/css/4541-lite-74522bc90f.chunk.css +0 -1
  364. package/dist/css/482-lite-74522bc90f.chunk.css +0 -1
  365. package/dist/css/510-lite-6661240a96.chunk.css +0 -3
  366. package/dist/css/6285-lite-86f715dee7.chunk.css +0 -2
  367. package/dist/css/6465-lite-74522bc90f.chunk.css +0 -1
  368. package/dist/css/6689-lite-385dfbe1d8.chunk.css +0 -4
  369. package/dist/css/6817-lite-6661240a96.chunk.css +0 -3
  370. package/dist/css/7112-lite-01b143fa0b.chunk.css +0 -3
  371. package/dist/css/7128-lite-74522bc90f.chunk.css +0 -1
  372. package/dist/css/7172-lite-74522bc90f.chunk.css +0 -1
  373. package/dist/css/7515-lite-01b143fa0b.chunk.css +0 -3
  374. package/dist/css/8025-lite-74522bc90f.chunk.css +0 -1
  375. package/dist/css/8292-lite-a0648ee1fa.chunk.css +0 -2
  376. package/dist/css/8383-lite-74522bc90f.chunk.css +0 -1
  377. package/dist/css/9060-lite-74522bc90f.chunk.css +0 -1
  378. package/dist/css/9455-lite-3cd1655cd7.chunk.css +0 -5
  379. package/dist/css/lite-app-1d0c2fd2b0.css +0 -53
  380. package/dist/scripts/1064-458b68fb91-lite.chunk.js +0 -1
  381. package/dist/scripts/1090-9aace3f5ec-lite.chunk.js +0 -1
  382. package/dist/scripts/1106-847d0bf2b8-lite.chunk.js +0 -1
  383. package/dist/scripts/1200-f30709bde3-lite.chunk.js +0 -2
  384. package/dist/scripts/1285-19705b2fc5-lite.chunk.js +0 -1
  385. package/dist/scripts/1291-1d298ab17d-lite.chunk.js +0 -1
  386. package/dist/scripts/1354-adb83a2eaa-lite.chunk.js +0 -2
  387. package/dist/scripts/1366-c65306205c-lite.chunk.js +0 -2
  388. package/dist/scripts/147-28a27fe38b-lite.chunk.js +0 -1
  389. package/dist/scripts/1475-255496ec92-lite.chunk.js +0 -1
  390. package/dist/scripts/1517-4c765cf6b6-lite.chunk.js +0 -1
  391. package/dist/scripts/1518-b3ed8fd9e5-lite.chunk.js +0 -1
  392. package/dist/scripts/1526-be5361acbf-lite.chunk.js +0 -1
  393. package/dist/scripts/1536-a8c6826e33-lite.chunk.js +0 -1
  394. package/dist/scripts/156-13c7d1ca82-lite.chunk.js +0 -1
  395. package/dist/scripts/1592-e5a0fbaee2-lite.chunk.js +0 -2
  396. package/dist/scripts/162-64b366f2d0-lite.chunk.js +0 -2
  397. package/dist/scripts/1628-3d2ab4a7f9-lite.chunk.js +0 -1
  398. package/dist/scripts/1655-4bb18c6f9b-lite.chunk.js +0 -1
  399. package/dist/scripts/1726-ce7ab78bcc-lite.chunk.js +0 -1
  400. package/dist/scripts/1781-d407160975-lite.chunk.js +0 -1
  401. package/dist/scripts/1794-196bab58b7-lite.chunk.js +0 -1
  402. package/dist/scripts/1818-1566ab6170-lite.chunk.js +0 -1
  403. package/dist/scripts/1820-961e34dc3f-lite.chunk.js +0 -1
  404. package/dist/scripts/1837-8224775ee2-lite.chunk.js +0 -1
  405. package/dist/scripts/1863-0ff9f34469-lite.chunk.js +0 -1
  406. package/dist/scripts/1891-00d06bdb48-lite.chunk.js +0 -1
  407. package/dist/scripts/1913-121ddb03c7-lite.chunk.js +0 -1
  408. package/dist/scripts/1924-c10778006b-lite.chunk.js +0 -1
  409. package/dist/scripts/1943-4e126c7c8e-lite.chunk.js +0 -1
  410. package/dist/scripts/1958-7bbe5ed54b-lite.chunk.js +0 -1
  411. package/dist/scripts/2066-2448ffab36-lite.chunk.js +0 -2
  412. package/dist/scripts/2095-0a482240d2-lite.chunk.js +0 -1
  413. package/dist/scripts/2118-26ae54c3db-lite.chunk.js +0 -2
  414. package/dist/scripts/2175-e6101da2c7-lite.chunk.js +0 -1
  415. package/dist/scripts/2199-68ba7411fa-lite.chunk.js +0 -1
  416. package/dist/scripts/2208-8cca4d3922-lite.chunk.js +0 -1
  417. package/dist/scripts/2229-57d6491c9d-lite.chunk.js +0 -1
  418. package/dist/scripts/2235-5b283a630a-lite.chunk.js +0 -1
  419. package/dist/scripts/2269-63269b0a20-lite.chunk.js +0 -1
  420. package/dist/scripts/227-2b68bcb5e6-lite.chunk.js +0 -1
  421. package/dist/scripts/2279-c077a223e7-lite.chunk.js +0 -1
  422. package/dist/scripts/2318-f20f53577b-lite.chunk.js +0 -1
  423. package/dist/scripts/2469-26134f4110-lite.chunk.js +0 -1
  424. package/dist/scripts/2477-0c1cc0274e-lite.chunk.js +0 -1
  425. package/dist/scripts/2561-f6bbda0461-lite.chunk.js +0 -1
  426. package/dist/scripts/2566-db0f3fdc44-lite.chunk.js +0 -1
  427. package/dist/scripts/2608-91817d2e90-lite.chunk.js +0 -1
  428. package/dist/scripts/2665-58e5d43a70-lite.chunk.js +0 -1
  429. package/dist/scripts/2729-bf3c1615b9-lite.chunk.js +0 -1
  430. package/dist/scripts/275-48e39524cd-lite.chunk.js +0 -1
  431. package/dist/scripts/276-bb5c3227d5-lite.chunk.js +0 -1
  432. package/dist/scripts/287-06fe2a9794-lite.chunk.js +0 -1
  433. package/dist/scripts/2877-4171fae97e-lite.chunk.js +0 -1
  434. package/dist/scripts/3012-a8407cc0d7-lite.chunk.js +0 -1
  435. package/dist/scripts/3020-b550dc32a1-lite.chunk.js +0 -1
  436. package/dist/scripts/3091-23bbaf2400-lite.chunk.js +0 -1
  437. package/dist/scripts/3108-4774ebe606-lite.chunk.js +0 -1
  438. package/dist/scripts/3154-63fff5be79-lite.chunk.js +0 -1
  439. package/dist/scripts/3171-02af531a34-lite.chunk.js +0 -1
  440. package/dist/scripts/3216-cd6222fff4-lite.chunk.js +0 -1
  441. package/dist/scripts/3285-dcec4d8e24-lite.chunk.js +0 -1
  442. package/dist/scripts/3322-90da5fc550-lite.chunk.js +0 -1
  443. package/dist/scripts/3468-40c308ce30-lite.chunk.js +0 -1
  444. package/dist/scripts/3514-31c2f97242-lite.chunk.js +0 -1
  445. package/dist/scripts/3533-98674ad469-lite.chunk.js +0 -1
  446. package/dist/scripts/355-16b3032c4f-lite.chunk.js +0 -1
  447. package/dist/scripts/3602-7fb236937c-lite.chunk.js +0 -2
  448. package/dist/scripts/3645-ccb3557f33-lite.chunk.js +0 -2
  449. package/dist/scripts/3654-68fc05281b-lite.chunk.js +0 -1
  450. package/dist/scripts/3667-6261d6a482-lite.chunk.js +0 -2
  451. package/dist/scripts/3727-61ad5aebc3-lite.chunk.js +0 -1
  452. package/dist/scripts/3728-61154e9591-lite.chunk.js +0 -1
  453. package/dist/scripts/3729-ec68fee3f9-lite.chunk.js +0 -1
  454. package/dist/scripts/3754-43235d0887-lite.chunk.js +0 -1
  455. package/dist/scripts/3755-6e4ec3d174-lite.chunk.js +0 -1
  456. package/dist/scripts/383-867d273f61-lite.chunk.js +0 -1
  457. package/dist/scripts/3849-cc38632481-lite.chunk.js +0 -1
  458. package/dist/scripts/389-e0a9ec5a2b-lite.chunk.js +0 -1
  459. package/dist/scripts/3962-6b13cdecc3-lite.chunk.js +0 -1
  460. package/dist/scripts/4052-f6e4be8ec3-lite.chunk.js +0 -1
  461. package/dist/scripts/4067-7bd2a9bb48-lite.chunk.js +0 -1
  462. package/dist/scripts/414-395860a6ec-lite.chunk.js +0 -1
  463. package/dist/scripts/4145-ab4ad95b9a-lite.chunk.js +0 -1
  464. package/dist/scripts/4182-71b9d0c2ae-lite.chunk.js +0 -1
  465. package/dist/scripts/4229-e0eec4f9cc-lite.chunk.js +0 -1
  466. package/dist/scripts/4290-9275108346-lite.chunk.js +0 -1
  467. package/dist/scripts/4326-0df396c7a9-lite.chunk.js +0 -1
  468. package/dist/scripts/4343-97dc4dfb23-lite.chunk.js +0 -1
  469. package/dist/scripts/4380-880fb4cd78-lite.chunk.js +0 -1
  470. package/dist/scripts/4393-7273cab163-lite.chunk.js +0 -1
  471. package/dist/scripts/4417-f74c436556-lite.chunk.js +0 -1
  472. package/dist/scripts/4423-972b49a9ea-lite.chunk.js +0 -1
  473. package/dist/scripts/4436-6939f395bc-lite.chunk.js +0 -1
  474. package/dist/scripts/4484-6bb5f46ab3-lite.chunk.js +0 -1
  475. package/dist/scripts/4537-9b504a7131-lite.chunk.js +0 -1
  476. package/dist/scripts/4541-7226b9836d-lite.chunk.js +0 -1
  477. package/dist/scripts/4617-9f75859a94-lite.chunk.js +0 -1
  478. package/dist/scripts/4632-8a515a2adf-lite.chunk.js +0 -1
  479. package/dist/scripts/4657-5482d930f8-lite.chunk.js +0 -2
  480. package/dist/scripts/4676-d33096ed1d-lite.chunk.js +0 -2
  481. package/dist/scripts/4690-8d1c868379-lite.chunk.js +0 -1
  482. package/dist/scripts/4763-aa3b604925-lite.chunk.js +0 -1
  483. package/dist/scripts/4770-19393b2e34-lite.chunk.js +0 -1
  484. package/dist/scripts/482-1534ca1124-lite.chunk.js +0 -1
  485. package/dist/scripts/4893-4dfccfedc9-lite.chunk.js +0 -1
  486. package/dist/scripts/4895-9d22529005-lite.chunk.js +0 -1
  487. package/dist/scripts/4942-d89ef696ed-lite.chunk.js +0 -2
  488. package/dist/scripts/5018-23fbddadb3-lite.chunk.js +0 -1
  489. package/dist/scripts/510-0aacaf4a3f-lite.chunk.js +0 -1
  490. package/dist/scripts/5171-f894a1dff0-lite.chunk.js +0 -1
  491. package/dist/scripts/5229-54d273997c-lite.chunk.js +0 -1
  492. package/dist/scripts/5268-b63ac1972e-lite.chunk.js +0 -2
  493. package/dist/scripts/5271-a5ffc1b79a-lite.chunk.js +0 -1
  494. package/dist/scripts/528-c80dafea15-lite.chunk.js +0 -1
  495. package/dist/scripts/5291-6ef2fcf319-lite.chunk.js +0 -1
  496. package/dist/scripts/5385-50b65ee5b3-lite.chunk.js +0 -1
  497. package/dist/scripts/5395-aa5bc09b79-lite.chunk.js +0 -1
  498. package/dist/scripts/5590-f1cdd7bd5c-lite.chunk.js +0 -1
  499. package/dist/scripts/5595-fed09c0f0d-lite.chunk.js +0 -1
  500. package/dist/scripts/5622-080218eb5e-lite.chunk.js +0 -2
  501. package/dist/scripts/5756-2c449fd1a4-lite.chunk.js +0 -1
  502. package/dist/scripts/5776-3015e0c3b2-lite.chunk.js +0 -1
  503. package/dist/scripts/5823-273dc77097-lite.chunk.js +0 -1
  504. package/dist/scripts/5914-89452132ae-lite.chunk.js +0 -1
  505. package/dist/scripts/5974-56af1e8e57-lite.chunk.js +0 -1
  506. package/dist/scripts/5983-8f4aa6c37a-lite.chunk.js +0 -1
  507. package/dist/scripts/6057-f6e5423975-lite.chunk.js +0 -1
  508. package/dist/scripts/6117-a149fd0dce-lite.chunk.js +0 -1
  509. package/dist/scripts/615-109caae84a-lite.chunk.js +0 -1
  510. package/dist/scripts/6154-1d0dfaf472-lite.chunk.js +0 -1
  511. package/dist/scripts/6158-2cc856d000-lite.chunk.js +0 -1
  512. package/dist/scripts/6159-00d5adab24-lite.chunk.js +0 -1
  513. package/dist/scripts/6254-3237a629c8-lite.chunk.js +0 -1
  514. package/dist/scripts/6263-8e38e9b596-lite.chunk.js +0 -1
  515. package/dist/scripts/6274-ef6ea9aefc-lite.chunk.js +0 -1
  516. package/dist/scripts/6285-202fcb0ab4-lite.chunk.js +0 -1
  517. package/dist/scripts/6302-858c958370-lite.chunk.js +0 -1
  518. package/dist/scripts/6330-188babc35b-lite.chunk.js +0 -1
  519. package/dist/scripts/6368-0dc1c905d9-lite.chunk.js +0 -1
  520. package/dist/scripts/6370-73eb5d7165-lite.chunk.js +0 -1
  521. package/dist/scripts/6450-3c16cc5c71-lite.chunk.js +0 -1
  522. package/dist/scripts/6465-79f2f15c97-lite.chunk.js +0 -1
  523. package/dist/scripts/6480-08e2d6d634-lite.chunk.js +0 -1
  524. package/dist/scripts/6493-f6cec5b493-lite.chunk.js +0 -1
  525. package/dist/scripts/6572-a829585f06-lite.chunk.js +0 -1
  526. package/dist/scripts/6604-772ed75a7a-lite.chunk.js +0 -1
  527. package/dist/scripts/6662-51e2e6eaaf-lite.chunk.js +0 -1
  528. package/dist/scripts/6689-0daba3d135-lite.chunk.js +0 -1
  529. package/dist/scripts/6817-ed5e4e7d06-lite.chunk.js +0 -1
  530. package/dist/scripts/6821-7359de4d2e-lite.chunk.js +0 -1
  531. package/dist/scripts/6822-5831c9fd42-lite.chunk.js +0 -1
  532. package/dist/scripts/6823-22b0850abc-lite.chunk.js +0 -2
  533. package/dist/scripts/6866-3253265092-lite.chunk.js +0 -1
  534. package/dist/scripts/6873-4a90a15240-lite.chunk.js +0 -1
  535. package/dist/scripts/689-f0a1edee9b-lite.chunk.js +0 -1
  536. package/dist/scripts/6913-507c07b46c-lite.chunk.js +0 -1
  537. package/dist/scripts/6930-06c0bffc64-lite.chunk.js +0 -1
  538. package/dist/scripts/6932-59789e4aea-lite.chunk.js +0 -1
  539. package/dist/scripts/7030-e6f622a775-lite.chunk.js +0 -2
  540. package/dist/scripts/7045-6373f085f2-lite.chunk.js +0 -1
  541. package/dist/scripts/7052-b5ffd3e5ae-lite.chunk.js +0 -2
  542. package/dist/scripts/7056-1278a992e8-lite.chunk.js +0 -1
  543. package/dist/scripts/7108-7e3854252d-lite.chunk.js +0 -1
  544. package/dist/scripts/7112-72e5351e87-lite.chunk.js +0 -2
  545. package/dist/scripts/7115-5651a1dba8-lite.chunk.js +0 -1
  546. package/dist/scripts/7128-523988aea8-lite.chunk.js +0 -1
  547. package/dist/scripts/714-0f92a1c65b-lite.chunk.js +0 -1
  548. package/dist/scripts/7147-8b38cb4a77-lite.chunk.js +0 -1
  549. package/dist/scripts/7172-3478ca9fbf-lite.chunk.js +0 -1
  550. package/dist/scripts/7205-6c84b9860e-lite.chunk.js +0 -1
  551. package/dist/scripts/7221-7c2e4bd2cf-lite.chunk.js +0 -2
  552. package/dist/scripts/7286-33d40f57b8-lite.chunk.js +0 -1
  553. package/dist/scripts/7293-50af1887dd-lite.chunk.js +0 -1
  554. package/dist/scripts/7318-c329ca7c0d-lite.chunk.js +0 -2
  555. package/dist/scripts/7318-c329ca7c0d-lite.chunk.js.LICENSE.txt +0 -5
  556. package/dist/scripts/7341-a0366179fe-lite.chunk.js +0 -1
  557. package/dist/scripts/7385-9ae5fdf533-lite.chunk.js +0 -1
  558. package/dist/scripts/7409-145e2b0498-lite.chunk.js +0 -1
  559. package/dist/scripts/7484-9089dfc5b4-lite.chunk.js +0 -1
  560. package/dist/scripts/7506-6e5abb1ce8-lite.chunk.js +0 -1
  561. package/dist/scripts/7515-1fa9993684-lite.chunk.js +0 -2
  562. package/dist/scripts/754-af06e1c835-lite.chunk.js +0 -1
  563. package/dist/scripts/7555-6536e27567-lite.chunk.js +0 -1
  564. package/dist/scripts/7708-d15c0df895-lite.chunk.js +0 -1
  565. package/dist/scripts/7758-d8cd43af1a-lite.chunk.js +0 -1
  566. package/dist/scripts/7767-697e83f840-lite.chunk.js +0 -1
  567. package/dist/scripts/7855-e5071abd53-lite.chunk.js +0 -1
  568. package/dist/scripts/7888-fcf2d068bb-lite.chunk.js +0 -1
  569. package/dist/scripts/7925-400ce5c362-lite.chunk.js +0 -1
  570. package/dist/scripts/7939-50f67c7062-lite.chunk.js +0 -1
  571. package/dist/scripts/7950-057729fd3f-lite.chunk.js +0 -2
  572. package/dist/scripts/7952-da7e2efbb9-lite.chunk.js +0 -1
  573. package/dist/scripts/8025-84ccfae3cb-lite.chunk.js +0 -1
  574. package/dist/scripts/8035-0116ccf4e5-lite.chunk.js +0 -1
  575. package/dist/scripts/8038-f1425fa036-lite.chunk.js +0 -1
  576. package/dist/scripts/8046-fa36daa5ce-lite.chunk.js +0 -1
  577. package/dist/scripts/8056-ccc1962ad7-lite.chunk.js +0 -1
  578. package/dist/scripts/811-3c7448dc35-lite.chunk.js +0 -1
  579. package/dist/scripts/823-2ddc27ac2a-lite.chunk.js +0 -1
  580. package/dist/scripts/8252-a6d0f554a5-lite.chunk.js +0 -1
  581. package/dist/scripts/8292-e22a69738a-lite.chunk.js +0 -1
  582. package/dist/scripts/8323-249c45a20e-lite.chunk.js +0 -2
  583. package/dist/scripts/8367-18538fb7ed-lite.chunk.js +0 -1
  584. package/dist/scripts/8383-4b59de6bfc-lite.chunk.js +0 -1
  585. package/dist/scripts/8419-a12e4d833e-lite.chunk.js +0 -1
  586. package/dist/scripts/8466-db914a7d25-lite.chunk.js +0 -1
  587. package/dist/scripts/8500-f229b957ef-lite.chunk.js +0 -1
  588. package/dist/scripts/8516-401b97bede-lite.chunk.js +0 -1
  589. package/dist/scripts/8556-2faa08c0bb-lite.chunk.js +0 -1
  590. package/dist/scripts/8564-f361b00c03-lite.chunk.js +0 -1
  591. package/dist/scripts/8621-bb707f1aa2-lite.chunk.js +0 -1
  592. package/dist/scripts/8627-7c7b3701fa-lite.chunk.js +0 -1
  593. package/dist/scripts/8681-5190c78b95-lite.chunk.js +0 -2
  594. package/dist/scripts/872-556704f056-lite.chunk.js +0 -1
  595. package/dist/scripts/8729-5928d624f8-lite.chunk.js +0 -1
  596. package/dist/scripts/8763-0aae908218-lite.chunk.js +0 -1
  597. package/dist/scripts/8820-2ad02c32cb-lite.chunk.js +0 -1
  598. package/dist/scripts/8830-94ce167cd3-lite.chunk.js +0 -1
  599. package/dist/scripts/8884-b6a7826c51-lite.chunk.js +0 -1
  600. package/dist/scripts/8905-76145a06df-lite.chunk.js +0 -1
  601. package/dist/scripts/8955-0889ae334e-lite.chunk.js +0 -1
  602. package/dist/scripts/9005-dfff5d4381-lite.chunk.js +0 -1
  603. package/dist/scripts/9016-53b4e0b866-lite.chunk.js +0 -1
  604. package/dist/scripts/9038-d495e86d21-lite.chunk.js +0 -1
  605. package/dist/scripts/9060-75b7bf8e06-lite.chunk.js +0 -1
  606. package/dist/scripts/9118-936a46d5aa-lite.chunk.js +0 -1
  607. package/dist/scripts/9133-2ac9e11023-lite.chunk.js +0 -1
  608. package/dist/scripts/9138-0f9bb9b0e3-lite.chunk.js +0 -1
  609. package/dist/scripts/9151-d8f10661a1-lite.chunk.js +0 -1
  610. package/dist/scripts/9194-c255b66c7c-lite.chunk.js +0 -2
  611. package/dist/scripts/9242-d7a14a34f0-lite.chunk.js +0 -1
  612. package/dist/scripts/9264-756116983e-lite.chunk.js +0 -1
  613. package/dist/scripts/9273-8381c89f91-lite.chunk.js +0 -1
  614. package/dist/scripts/9325-76be09c5d9-lite.chunk.js +0 -1
  615. package/dist/scripts/9428-5917cd7b0a-lite.chunk.js +0 -2
  616. package/dist/scripts/9455-7c1622838e-lite.chunk.js +0 -1
  617. package/dist/scripts/9478-e817a33a69-lite.chunk.js +0 -2
  618. package/dist/scripts/9484-6e93df7581-lite.chunk.js +0 -2
  619. package/dist/scripts/9674-72dc791884-lite.chunk.js +0 -1
  620. package/dist/scripts/9714-f2571e0227-lite.chunk.js +0 -1
  621. package/dist/scripts/9744-57f41382a5-lite.chunk.js +0 -1
  622. package/dist/scripts/9798-6d39196b90-lite.chunk.js +0 -1
  623. package/dist/scripts/9880-d95662abc4-lite.chunk.js +0 -1
  624. package/dist/scripts/9899-5322cee4bf-lite.chunk.js +0 -1
  625. package/dist/scripts/9931-bf2f253ffe-lite.chunk.js +0 -2
  626. package/dist/scripts/9961-7cea13c70e-lite.chunk.js +0 -1
  627. package/dist/scripts/bundle-e8987fb37e.min.js +0 -2
  628. package/dist/scripts/bundle-e8987fb37e.min.js.LICENSE.txt +0 -38
  629. package/typings/libs/backbone.validation.d.ts +0 -100
  630. /package/dist/css/{8627-lite-a68f192c18.chunk.css → 1291-lite-a68f192c18.chunk.css} +0 -0
  631. /package/dist/css/{7950-lite-89fe5c9fc1.chunk.css → 1672-lite-89fe5c9fc1.chunk.css} +0 -0
  632. /package/dist/css/{8516-lite-6554428c5a.chunk.css → 209-lite-6554428c5a.chunk.css} +0 -0
  633. /package/dist/css/{1891-lite-740e4cbd6f.chunk.css → 3200-lite-740e4cbd6f.chunk.css} +0 -0
  634. /package/dist/css/{5983-lite-8c9306617b.chunk.css → 5134-lite-8c9306617b.chunk.css} +0 -0
  635. /package/dist/css/{156-lite-f1ca87e9ff.chunk.css → 5143-lite-f1ca87e9ff.chunk.css} +0 -0
  636. /package/dist/css/{1090-lite-0018feda9c.chunk.css → 5606-lite-0018feda9c.chunk.css} +0 -0
  637. /package/dist/css/{7341-lite-abb86816df.chunk.css → 7332-lite-abb86816df.chunk.css} +0 -0
  638. /package/dist/css/{1977-lite-22ea72f8e3.chunk.css → 7422-lite-22ea72f8e3.chunk.css} +0 -0
  639. /package/dist/css/{147-lite-74cb244872.chunk.css → 8944-lite-74cb244872.chunk.css} +0 -0
  640. /package/dist/scripts/{1354-adb83a2eaa-lite.chunk.js.LICENSE.txt → 1354-33c5905ae6-lite.chunk.js.LICENSE.txt} +0 -0
  641. /package/dist/scripts/{1200-f30709bde3-lite.chunk.js.LICENSE.txt → 1366-666ef709a1-lite.chunk.js.LICENSE.txt} +0 -0
  642. /package/dist/scripts/{1366-c65306205c-lite.chunk.js.LICENSE.txt → 1592-aa2bc45d63-lite.chunk.js.LICENSE.txt} +0 -0
  643. /package/dist/scripts/{1592-e5a0fbaee2-lite.chunk.js.LICENSE.txt → 162-51e28f0e8d-lite.chunk.js.LICENSE.txt} +0 -0
  644. /package/dist/scripts/{162-64b366f2d0-lite.chunk.js.LICENSE.txt → 1672-2a6d69b169-lite.chunk.js.LICENSE.txt} +0 -0
  645. /package/dist/scripts/{2066-2448ffab36-lite.chunk.js.LICENSE.txt → 2066-f1ee632b62-lite.chunk.js.LICENSE.txt} +0 -0
  646. /package/dist/scripts/{2118-26ae54c3db-lite.chunk.js.LICENSE.txt → 2118-a281da36fd-lite.chunk.js.LICENSE.txt} +0 -0
  647. /package/dist/scripts/{6823-22b0850abc-lite.chunk.js.LICENSE.txt → 2678-b53d60e821-lite.chunk.js.LICENSE.txt} +0 -0
  648. /package/dist/scripts/{3602-7fb236937c-lite.chunk.js.LICENSE.txt → 3602-c5f7a74c8b-lite.chunk.js.LICENSE.txt} +0 -0
  649. /package/dist/scripts/{3645-ccb3557f33-lite.chunk.js.LICENSE.txt → 3645-86f0ed022f-lite.chunk.js.LICENSE.txt} +0 -0
  650. /package/dist/scripts/{3667-6261d6a482-lite.chunk.js.LICENSE.txt → 3667-c5b8a096c2-lite.chunk.js.LICENSE.txt} +0 -0
  651. /package/dist/scripts/{4657-5482d930f8-lite.chunk.js.LICENSE.txt → 3789-4cb6d829f6-lite.chunk.js.LICENSE.txt} +0 -0
  652. /package/dist/scripts/{4676-d33096ed1d-lite.chunk.js.LICENSE.txt → 4657-da41ee610c-lite.chunk.js.LICENSE.txt} +0 -0
  653. /package/dist/scripts/{4942-d89ef696ed-lite.chunk.js.LICENSE.txt → 4676-adc55dfa15-lite.chunk.js.LICENSE.txt} +0 -0
  654. /package/dist/scripts/{5268-b63ac1972e-lite.chunk.js.LICENSE.txt → 4942-9db184d708-lite.chunk.js.LICENSE.txt} +0 -0
  655. /package/dist/scripts/{5622-080218eb5e-lite.chunk.js.LICENSE.txt → 5009-9e45034def-lite.chunk.js.LICENSE.txt} +0 -0
  656. /package/dist/scripts/{6896-79fa541f46-lite.chunk.js.LICENSE.txt → 5268-029905c5f0-lite.chunk.js.LICENSE.txt} +0 -0
  657. /package/dist/scripts/{7017-76adb0abdc-lite.chunk.js.LICENSE.txt → 5622-7b29606856-lite.chunk.js.LICENSE.txt} +0 -0
  658. /package/dist/scripts/{7030-e6f622a775-lite.chunk.js.LICENSE.txt → 6896-75b32c41e8-lite.chunk.js.LICENSE.txt} +0 -0
  659. /package/dist/scripts/{691-1a7a29fb40-lite.chunk.js.LICENSE.txt → 691-670cb6f7e6-lite.chunk.js.LICENSE.txt} +0 -0
  660. /package/dist/scripts/{7052-b5ffd3e5ae-lite.chunk.js.LICENSE.txt → 7017-35c73244a6-lite.chunk.js.LICENSE.txt} +0 -0
  661. /package/dist/scripts/{7112-72e5351e87-lite.chunk.js.LICENSE.txt → 7030-041896252c-lite.chunk.js.LICENSE.txt} +0 -0
  662. /package/dist/scripts/{7221-7c2e4bd2cf-lite.chunk.js.LICENSE.txt → 7052-0a94f7b10e-lite.chunk.js.LICENSE.txt} +0 -0
  663. /package/dist/scripts/{7515-1fa9993684-lite.chunk.js.LICENSE.txt → 7112-ec1031994e-lite.chunk.js.LICENSE.txt} +0 -0
  664. /package/dist/scripts/{7950-057729fd3f-lite.chunk.js.LICENSE.txt → 7221-dab37ddabe-lite.chunk.js.LICENSE.txt} +0 -0
  665. /package/dist/scripts/{1977-7e46c81a05-lite.chunk.js.LICENSE.txt → 7422-8f60c3028d-lite.chunk.js.LICENSE.txt} +0 -0
  666. /package/dist/scripts/{8323-249c45a20e-lite.chunk.js.LICENSE.txt → 8323-aeb803ba70-lite.chunk.js.LICENSE.txt} +0 -0
  667. /package/dist/scripts/{8681-5190c78b95-lite.chunk.js.LICENSE.txt → 8681-da6e12f2d5-lite.chunk.js.LICENSE.txt} +0 -0
  668. /package/dist/scripts/{9194-c255b66c7c-lite.chunk.js.LICENSE.txt → 8935-0d85df691f-lite.chunk.js.LICENSE.txt} +0 -0
  669. /package/dist/scripts/{9428-5917cd7b0a-lite.chunk.js.LICENSE.txt → 9428-f581bbe764-lite.chunk.js.LICENSE.txt} +0 -0
  670. /package/dist/scripts/{9478-e817a33a69-lite.chunk.js.LICENSE.txt → 9478-fecaea6d54-lite.chunk.js.LICENSE.txt} +0 -0
  671. /package/dist/scripts/{9484-6e93df7581-lite.chunk.js.LICENSE.txt → 9484-312aa1531d-lite.chunk.js.LICENSE.txt} +0 -0
  672. /package/dist/scripts/{9931-bf2f253ffe-lite.chunk.js.LICENSE.txt → 9894-75159b2fc0-lite.chunk.js.LICENSE.txt} +0 -0
  673. /package/dist/scripts/{polyfills-5c0684cd85.min.js.LICENSE.txt → 9931-08cf05b177-lite.chunk.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9060],{38365:(e,t,n)=>{n.d(t,{n:()=>O,W:()=>w});var a=n(1024),r=n(99910),o=n(92802),l=n(79014),i=n(1048),c=n(36848),s=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};function u(e){var t=e.label,n=e.checkboxLabelClassName,o=e.checkboxLabelFontWeight,l=e.className,i=s(e,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return a.createElement(r.Form.Group,null,a.createElement("div",{className:"custom-control custom-checkbox ".concat(l)},a.createElement(O,Object.assign({className:"custom-control-input"},i)),a.createElement(r.Form.Label,{className:"custom-control-label cursor-pointer ".concat("normal"===o?"font-weight-normal":""," \n ").concat(n),htmlFor:i.id},t),e.checkboxAppLink&&e.checkboxAppLinkText&&a.createElement(a.Fragment,null,a.createElement("span",null," "),a.createElement(c.F,{appLink:e.checkboxAppLink,className:"info-link"},e.checkboxAppLinkText))))}var m=n(83914),f=n(83345),p=n(73814),d=n(58130);function b(e){var t=(0,o.u6)().values[e.fieldName];return"string"!=typeof t?a.createElement(a.Fragment,null):a.createElement("div",{className:"float-right text-muted font-weight-normal"},t.length,"/",e.limit," characters")}const h={revealPassword:"jCfI0",passwordInput:"RBJnf",passwordContainer:"d78lK",passwordContainerDisabled:"asbVo",infoTooltip:"wzyOG"};function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var y=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n},g="shared.formField";function O(e){var t,n,r=e.children,c=y(e,["children"]),s=(t=a.useState(e.type),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,l,i=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(i.push(a.value),i.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(s)throw r}}return i}}(t,n)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=s[0],f=s[1],p=l.q.isFunction(r)?function(e){return r(e)}:a.Children.count(r)?r:null;if("password"!==c.type)return a.createElement(o.gN,Object.assign({},i.t.omit(c,["formSize"])),p);var b="position-relative ".concat(h.passwordContainer);return c.className&&(b+=" ".concat(c.className)),c.disabled&&(b+=" ".concat(h.passwordContainerDisabled)),a.createElement("div",{className:b},a.createElement(o.gN,Object.assign({},i.t.omit(c,["formSize","type","className"]),{type:u,className:"".concat(h.passwordInput," border-0 w-100 h-100 outline-none rounded")}),p),"password"===c.type&&a.createElement(m.x,{svgName:"password"===u?d.vn.VisibleOn:d.vn.VisibleOff,className:"svg-container cursor-pointer ".concat(h.revealPassword),onClick:function(){f("password"===u?"text":"password")}}))}function w(e){var t=e.label,n=e.className,l=e.showCharacterCounter,c=e.showRequiredStar,s=e.infoTooltip,v=e.infoTooltipPlacement,w=e.infoText,C=e.formSize,E=e.showOptionalLabel,S=y(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoTooltipPlacement","infoText","formSize","showOptionalLabel"]),x=(0,o.u6)(),N=x.errors,j=x.touched,k=function(){};if("checkbox"===S.type){var F=i.t.omit(e,["formSize","infoTooltipPlacement"]);return e.disabled&&(F.onChange=k),a.createElement(u,Object.assign({},F))}var P=Object.assign(Object.assign({},S),{className:p.w.getCustomFormControlClassName(N,j,S.name,C,n)});return e.disabled&&(P.onChange=k),a.createElement(r.Form.Group,null,!!t&&a.createElement(r.Form.Label,{htmlFor:S.id,className:"d-flex align-items-center"},t,c&&a.createElement("span",{className:"text-danger"},"*"),s&&a.createElement(m.x,{className:"svg-container text-muted ".concat(h.infoTooltip),svgName:d.vn.Info,title:s,tooltipPlacement:v,tooltipSpanHack:!0}),E&&a.createElement("span",{className:"text-muted"}," ",a.createElement(f.x,{namespace:g,phrase:"optional"})),!!l&&!!S.maxLength&&a.createElement("div",{className:"ml-auto"},a.createElement(b,{fieldName:S.name,limit:S.maxLength}))),a.createElement(O,Object.assign({},P)),!!w&&a.createElement(r.Form.Text,{className:"text-muted"},w),a.createElement(o.Bc,{name:S.name},(function(e){return a.createElement(r.Form.Control.Feedback,{type:"invalid"},e)})))}O.defaultProps={autoComplete:"off"},w.defaultProps={autoComplete:"off",infoTooltipPlacement:"top"}},82644:(e,t,n)=>{n.d(t,{b:()=>u,n:()=>s});var a=n(1024),r=n(92802),o=n(79014),l=n(1048);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var c=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};function s(e){var t=e.castInitialValues,n=e.castValuesOnSubmit,s=e.initialValues,u=e.onSubmit,m=c(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),f=t&&e.validationSchema?e.validationSchema.cast(function(e){if(!e)return{};var t=l.t.deepClone(e);return function e(n){Object.keys(t).forEach((function(a){t.hasOwnProperty(a)&&(l.t.isObject(n[a])?e(n[a]):null===t[a]&&delete t[a])}))}(t),t}(s)):s,p={allowInitialSubmit:e.allowInitialSubmit};return a.createElement(r.J9,Object.assign({enableReinitialize:!0},m,{initialValues:f,onSubmit:function(t,a){var r=a.setSubmitting,o=a.resetForm,l=a.setFieldError,c=n&&e.validationSchema?e.validationSchema.cast(t):t;u(c,(function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n.reset&&o(),n.errors)for(var a=0,c=Object.entries(n.errors);a<c.length;a++){var s=(e=c[a],t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,l,i=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(i.push(a.value),i.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=s[0],m=s[1];l(u,m)}r(!1)}))},initialStatus:p}),o.q.isFunction(e.children)?function(t){return e.children(t)}:a.Children.count(e.children)?e.children:null)}function u(){return(0,r.u6)()}s.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},73814:(e,t,n)=>{n.d(t,{w:()=>r});var a=n(92802),r={getCustomFormControlClassName:function(e,t,n,r,o){var l="form-control";return"sm"===r&&(l+=" form-control-sm"),"lg"===r&&(l+=" form-control-lg"),(0,a.u9)(t,n)&&(0,a.u9)(e,n)&&(l+=" is-invalid"),o&&(l+=" ".concat(o)),l}}},79536:(e,t,n)=>{n.d(t,{x:()=>b});var a=n(1024),r=n.n(a),o=n(82644),l=n(92802),i=n(23481),c=n(38365),s=n(13876),u=i.T.encloseNamespace("classrooms.classroomDetailsForm");function m(e){var t=(0,o.b)();return r().createElement(l.l0,null,r().createElement(c.W,{label:u("nameLabel"),type:"text",name:"name",id:"name",placeholder:u("namePlaceholder"),autoFocus:!0,value:t.values.name}),r().createElement(s.u,null,r().createElement(s.u.Cancel,{onClick:e.onClickCancel}),r().createElement(s.u.Submit,{variant:"dark",isNew:e.isNew})))}var f=n(5173),p=i.T.encloseNamespace("classrooms.classroomValidation"),d=(0,f.Ry)().shape({name:(0,f.Z_)().max(255,(function(){return p("nameExceeds")})).required((function(){return p("nameRequired")})).default("")});function b(e){var t=e.classroom,n=e.saveClassroom,a=e.onClickCancel,l={id:null==t?void 0:t.id,name:null==t?void 0:t.name};return r().createElement(o.n,{initialValues:l,validationSchema:d,onSubmit:n},r().createElement(m,{isNew:!t,onClickCancel:a}))}},69060:(e,t,n)=>{n.r(t),n.d(t,{EditClassroomView:()=>b});var a=n(1024),r=n.n(a),o=n(58566),l=n(23481),i=n(20354),c=n(49985),s=n(9111),u=n(31949),m=n(69883),f=n(79536),p=n(88630),d=l.T.encloseNamespace("classrooms.editClassroom");function b(e){var t=(0,m.Z)(),n=(0,o.useDispatch)(),a=i.a.useBasicFetch(u.N.currentUser()),l=i.a.useBasicFetch(a.data&&p.F.getClassroom(e.id,a.data.id));return r().createElement(s.G,{title:d("title"),closePopup:e.closePopup,showLoadingSpinner:!l.data},l.data&&r().createElement(f.x,{classroom:l.data,saveClassroom:function(a){i.a.fetch(n,p.F.editClassroom(a,(function(){c.k.logUserAction(a,e.analyticsOptions),t.success(d("success",{name:a.name,escapeText:!0})),e.closePopup()}),(function(){t.error(d("error",{name:l.data.name,escapeText:!0})),e.closePopup()})))},onClickCancel:e.closePopup}))}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9118],{75143:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(1024),a=t.n(n),o=t(99910),l=t(8612),s=t(83345);const i={emptyPill:"uDXhS"};var u="userManager.bulkUserActionsChangeYearGroupActionDetails";function c(e){return a().createElement(s.D.Provider,{value:u},a().createElement(o.Row,{className:"mb-2"},a().createElement(o.Col,{xs:4},a().createElement(s.x,{phrase:"yearGroupsList"})),a().createElement(o.Col,{xs:8},a().createElement(s.x,{phrase:"changesTo"}))),e.yearGroups.filter((function(r){return e.countsByYearGroup[r.value]>0})).map((function(r){var t,n;return a().createElement(o.Row,{key:r.value,className:"mb-2"},a().createElement(o.Col,{xs:4},a().createElement(l.G,null,r.name),a().createElement("div",null,a().createElement(s.x,{phrase:"count",options:{smartCount:e.countsByYearGroup[r.value]}}))),a().createElement(o.Col,{xs:8},(null===(t=e.selectedYearGroup)||void 0===t?void 0:t.id)?a().createElement(l.G,null,null===(n=e.selectedYearGroup)||void 0===n?void 0:n.name):a().createElement(l.G,{className:i.emptyPill},a().createElement(s.x,{phrase:"emptyPill"}))))})))}},8612:(e,r,t)=>{t.d(r,{G:()=>o});var n=t(1024),a=t.n(n);function o(e){return a().createElement("span",{className:"".concat(e.className," rounded-pill px-2 text-nowrap bg-white border border-dark")},e.children)}},99705:(e,r,t)=>{var n,a;t.d(r,{b:()=>a}),function(e){e.AddToPlaylist="115005679748",e.EditSsoAccounts="8202508040345",e.LibraryEditor="360001974533",e.VideoAccess="360000153947",e.AddFromOnline="360011718234",e.UploadToLibraryEditor="360012069334",e.PBTErrorCodes="360012421153",e.ManuelReview="360020004534",e.LibraryReview="360000163788"}(n||(n={})),function(e){e.Integrations="4407268725529",e.Classrooms="4405362551833",e.MakeInteractive="4405370510873",e.EditSsoAccounts="8202605666073",e.UploadToLibraryEditor="10672936659865",e.AddFromLite="10671345281561",e.ManageSsoYearGroups="12522160412313",e.ContentReview="18525199576601",e.ContentPermissions="14692125209497",e.AccessSettings="22110291468057",e.ContentGuidelines="24133696186009",e.FoxtelFaq="24133519542169"}(a||(a={}))},23118:(e,r,t)=>{t.r(r),t.d(r,{BulkUserActionsChangeYearGroupConfirmationView:()=>I});var n=t(1024),a=t.n(n),o=t(58566),l=t(81886),s=t(20354),i=t(2948),u=t(3044),c=t(68036),m=t(83345),d=t(36033),p=t(38143),f=t(40424),y=t(75143);const h={infoContainer:"jWW4t"};function v(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}var g="userManager.bulkUserActionsChangeYearGroupConfirmation";function b(e){var r,t,n,o,l=(n=(0,i.D)(p.g.BULK_USER_ACTIONS),o=1,function(e){if(Array.isArray(e))return e}(n)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,o,l,s=[],i=!0,u=!1;try{if(o=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;i=!1}else for(;!(i=(n=o.call(t)).done)&&(s.push(n.value),s.length!==r);i=!0);}catch(e){u=!0,a=e}finally{try{if(!i&&null!=t.return&&(l=t.return(),Object(l)!==l))return}finally{if(u)throw a}}return s}}(n,o)||function(e,r){if(e){if("string"==typeof e)return v(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?v(e,r):void 0}}(n,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];return c.b.useSetWizardConfirmationCallback(e.onClickConfirm),a().createElement(m.D.Provider,{value:g},a().createElement(d.s,null,a().createElement("ul",{className:"mt-1 pl-3 ml-1"},a().createElement("li",null,a().createElement(m.x,{namespace:g,phrase:"heading",options:{smartCount:e.userCount,yearGroup:null!==(t=null===(r=null==l?void 0:l.yearGroup)||void 0===r?void 0:r.name)&&void 0!==t?t:""}})),a().createElement("li",null,a().createElement(m.x,{namespace:g,phrase:"ssoWarning"})," ",!!e.editSsoHelpArticleUrl&&a().createElement("a",{href:e.editSsoHelpArticleUrl,target:"_blank",className:"info-link"},a().createElement(m.x,{namespace:g,phrase:"ssoWarningArticle"})))),a().createElement("div",{className:"".concat(h.infoContainer," rounded-lg p-2")},a().createElement(y.A,{yearGroups:e.yearGroups,selectedYearGroup:null==l?void 0:l.yearGroup,countsByYearGroup:e.countsByYearGroup}))),a().createElement(u.Q,{users:e.users,imageCdnUrl:e.imageCdnUrl,statuses:[f.w.Active,f.w.Inactive],hasMore:e.hasMoreUsers,isFetching:e.isFetchingUsers,fetchNext:e.fetchNextUserPage,userType:e.userType,userCount:e.userCount}))}var C=t(58703),E=t(84566),A=t(70197),S=t(99705),G=t(39151),U=t(31949),w=t(12778),T=t(29613),x=t(47288),k=t(88323),N=t(18087);function j(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function I(e){var r,t,n,u=(0,k.h)(e.userType),m=u.users,d=u.count,f=u.isFetching,y=u.hasMore,h=u.fetchNext,v=(t=(0,i.D)(p.g.BULK_USER_ACTIONS),n=1,function(e){if(Array.isArray(e))return e}(t)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,o,l,s=[],i=!0,u=!1;try{if(o=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;i=!1}else for(;!(i=(n=o.call(t)).done)&&(s.push(n.value),s.length!==r);i=!0);}catch(e){u=!0,a=e}finally{try{if(!i&&null!=t.return&&(l=t.return(),Object(l)!==l))return}finally{if(u)throw a}}return s}}(t,n)||function(e,r){if(e){if("string"==typeof e)return j(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?j(e,r):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],g=s.a.useBasicFetch(U.N.currentUser()),I=s.a.useBasicFetch(G.L.config()),Y=s.a.useBasicFetch(g.data&&x.N.yearGroups(g.data.customerId)),O=(0,E.S)({userType:e.userType,field:A.q.YearGroupValues,getSearchAggregation:x.N.getSearchAggregation}),B=(0,o.useDispatch)(),F=(0,N.Y)(e.userType),L=c.b.useCreateJobErrorAlert();function M(r){l.Q.C$.trigger(Object.assign(Object.assign({},F.bulkActionsStatus.polling),{params:{userType:e.userType,jobId:r.id}}))}var P=!!O&&!!Y.data;return a().createElement(C.d,{appLinks:F,userType:e.userType,users:m,currentStep:"confirmation",userCount:d,loaded:P},P&&a().createElement(b,{users:m,imageCdnUrl:null===(r=I.data)||void 0===r?void 0:r.imageCdnUrl,hasMoreUsers:y,isFetchingUsers:f,fetchNextUserPage:h,userType:e.userType,onClickConfirm:function(){if(v){var r=c.b.getCreateJobRequestData(v,g.data.customerId,e.userType);s.a.fetch(B,T.q.createJob(r,M,L))}},userCount:d,countsByYearGroup:O,yearGroups:Y.data,editSsoHelpArticleUrl:w.o.getLiteArticle(S.b.EditSsoAccounts)}))}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9133],{61628:(e,t,r)=>{r.d(t,{g:()=>C});var n=r(1024),a=r.n(n),c=r(23481),i=r(81886),l=r(9826),o=r(386),u=r(36848),s=r(2102),d=r(83345),m=r(54610),p=r(25925),f=r(69883),v=r(67453);const b={optionsContainer:"xPRbH",preferenceItem:"bGs8t"};function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,c,i,l=[],o=!0,u=!1;try{if(c=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;o=!1}else for(;!(o=(n=c.call(r)).done)&&(l.push(n.value),l.length!==t);o=!0);}catch(e){u=!0,a=e}finally{try{if(!o&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var y="subjects.curriculumSelector",E=c.T.encloseNamespace(y);function C(e){var t,r=h(a().useState(!1),2),n=r[0],c=r[1],g=h(a().useState(null===(t=e.currentCurriculum)||void 0===t?void 0:t.id),2),C=g[0],k=g[1],x=h(a().useState(!0),2),S=x[0],w=x[1],L=(0,f.Z)();function j(){if(c(!1),!e.isOnboarding)return L.success(E("success")),void w(!0);e.nextAppLink&&i.Q.C$.trigger(e.nextAppLink)}function N(){c(!1),L.error(E("error"))}return a().useEffect((function(){e.isOnboarding&&e.currentCurriculum&&w(!1)}),[e.isOnboarding,e.currentCurriculum]),a().createElement(d.D.Provider,{value:y},a().createElement("form",{className:"p-3 d-flex justify-content-center"},a().createElement("div",{className:"position-relative"},a().createElement("ul",{className:"".concat(b.optionsContainer," list-unstyled")},e.curriculums.map((function(t){var r;return t.type!==p.R.Curriculum?a().createElement(a().Fragment,{key:t.id}):a().createElement(o.c,{key:t.id,name:t.name,imageUrl:v.j.createUrl(null===(r=t.cover)||void 0===r?void 0:r.url,{size:m.h2.Medium})||"",onClick:function(){return function(t){var r;if(C===t.id)return k(null),void w(!0);t.id!==(null===(r=e.currentCurriculum)||void 0===r?void 0:r.id)||e.isOnboarding?S&&w(!1):w(!0),k(t.id)}(t)},isSelected:C===t.id,extraClasses:"".concat(b.preferenceItem," col"),radioButton:!0})})))),a().createElement(l.e,{justify:e.backBtnAppLink?"between":"end"},!!e.backBtnAppLink&&a().createElement("div",null,a().createElement(u.F,{appLink:e.backBtnAppLink,className:"btn btn-outline-dark"},a().createElement(d.x,{phrase:"back"}))),a().createElement("div",{className:"d-flex justify-content-right"},a().createElement(s.m,{variant:"dark",disabled:S,onClick:function(){var t;if(!S)if((null===(t=e.currentCurriculum)||void 0===t?void 0:t.id)===C&&e.nextAppLink)i.Q.C$.trigger(e.nextAppLink);else{c(!0);var r=e.curriculums.find((function(e){return e.id===C}));e.saveChanges(r,j,N)}},showSpinner:n},e.isOnboarding?e.nextAppLink?E("next"):E("getStarted"):E("save"))))))}},9826:(e,t,r)=>{r.d(t,{e:()=>p});var n=r(1024),a=r(79014),c=r(86764),i=r(81514),l=r(10038);const o={stickyFooter:"rIUL4",nonStickyFooter:"PuC_F"};function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var s=50;function d(e){var t="justify-content-".concat(e.justify);return n.createElement("div",{className:"py-3 bg-white ".concat(o.stickyFooter)},n.createElement("div",{className:"w-75 mx-auto d-flex ".concat(t)},e.children))}function m(e){var t=(0,i.V)(),r=t===c.r.SM||t===c.r.XS?"w-100":"w-75",a="justify-content-".concat(e.justify);return n.createElement("div",{className:"".concat(r," ").concat(a," ").concat(o.nonStickyFooter," d-flex px-3")},e.children)}function p(e){var t,r,c=function(){return window.innerHeight+window.scrollY>=document.body.offsetHeight-s},i=(t=n.useState(!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,c,i,l=[],o=!0,u=!1;try{if(c=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;o=!1}else for(;!(o=(n=c.call(r)).done)&&(l.push(n.value),l.length!==t);o=!0);}catch(e){u=!0,a=e}finally{try{if(!o&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw a}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],p=i[1];n.useEffect((function(){return p(!c())}),[]);var f=a.q.throttle((function(){var e=!c();!o||e?!o&&e&&p(!0):p(!1)}),100);return n.useEffect((function(){return window.addEventListener("scroll",f),function(){return window.removeEventListener("scroll",f)}}),[o,p]),(0,l.H)(f,f,[o,p]),o?n.createElement(d,Object.assign({},e),e.children):n.createElement(m,Object.assign({},e),e.children)}p.defaultProps={justify:"between"}},44972:(e,t,r)=>{r.d(t,{z:()=>i});var n=r(1024),a=r.n(n),c=r(95436);function i(e){var t;return a().createElement("div",{className:"position-relative px-3 bg-white onboarding-layout"},(null===(t=e.steps)||void 0===t?void 0:t.length)>1&&a().createElement(c.a,{steps:e.steps}),a().createElement("main",null,e.children))}},95436:(e,t,r)=>{r.d(t,{a:()=>i});var n=r(1024),a=r(36848);const c={progress:"cwMAI",progressItem:"G0_JK"};function i(e){return n.createElement("nav",{className:"d-flex justify-content-center pt-3 position-relative ".concat(c.progress)},e.steps.map((function(e,t){return n.createElement(a.F,{key:t,appLink:e.disabled||e.active?null:e.appLink,className:(r=e.active,i=e.disabled,l="rounded-circle mx-2 "+c.progressItem,o=r?"bg-info":"bg-light",u=i||r?"":"cursor-pointer","".concat(l," ").concat(o," ").concat(u))});var r,i,l,o,u})))}},386:(e,t,r)=>{r.d(t,{c:()=>s});var n=r(1024),a=r.n(n),c=r(83914),i=r(58130);const l={preferenceItem:"PSWHa",expandCaret:"CCsqs",up:"w7N1R",down:"mO0Kn",disabled:"Oyw2x",selected:"Czk2N",noBorder:"_e7oe",textBox:"pfksF",itemStatus:"H4u81",unchecked:"iYkPv",green:"w5g0e"};var o=function(e){return e.selectedChildrenCount?n.createElement("div",{className:"".concat(l.itemStatus," ").concat(l.green)},e.selectedChildrenCount):n.createElement(n.Fragment,null)},u=function(e){var t;return t=e.selected?n.createElement(c.x,{svgName:i.vn.Check}):e.radioButton?n.createElement(n.Fragment,null," "):n.createElement(c.x,{svgName:i.vn.Plus}),n.createElement("div",{className:"".concat(l.itemStatus," ").concat(e.selected?l.green:l.unchecked)},t)};function s(e){var t,r="".concat(l.expandCaret," ").concat(e.expand?l.up:l.down);return a().createElement("li",{className:(t="rounded-lg ".concat(l.preferenceItem),e.extraClasses&&(t+=" "+e.extraClasses),e.isDisabled&&(t+=" "+l.disabled),e.isSelected&&!e.isExpandable&&(t+=" "+l.selected),e.hideStatus&&(t+=" "+l.noBorder),t),onClick:e.onClick,"aria-checked":e.isSelected,"aria-haspopup":e.isExpandable,role:e.isExpandable?"button":"checkbox",style:{backgroundImage:"url(".concat(e.imageUrl,")")},tabIndex:0,title:e.name},a().createElement("div",{className:"".concat(l.textBox," p-2")},a().createElement("p",{className:"text-truncate mb-0"},e.name,a().createElement("span",{className:e.isExpandable?r:""})),!e.hideStatus&&a().createElement(a().Fragment,null,e.isExpandable?a().createElement(o,{selectedChildrenCount:e.selectedChildCount}):a().createElement(u,{selected:e.isSelected,radioButton:e.radioButton}))))}},22129:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(1024),a=r(92875);const c={partialSubject:"KQYyH",lg:"KiWap",partialSubjectList:"Ng80C"};function i(e){var t="grid"===e.style?a.Z.grid:c.partialSubjectList;return n.createElement("div",{className:"p-3"},n.createElement("ul",{className:"".concat(t," ").concat(e.center?"justify-content-center":"")},Array(e.count).fill(null).map((function(t,r){return n.createElement("li",{key:r,className:"".concat(c.partialSubject," partial-loading-background rounded-lg ").concat("lg"===e.size?c.lg:"")})}))))}i.defaultProps={size:"sm"}},81514:(e,t,r)=>{r.d(t,{V:()=>c});var n=r(86764),a=r(3747);function c(){var e=(0,a.a)(n.r.XS),t=(0,a.a)(n.r.SM),r=(0,a.a)(n.r.MD),c=(0,a.a)(n.r.LG),i=(0,a.a)(n.r.XL),l=(0,a.a)(n.r.XXL),o=n.r.LG;return e&&(o=n.r.XS),t&&(o=n.r.SM),r&&(o=n.r.MD),c&&(o=n.r.LG),i&&(o=n.r.XL),l&&(o=n.r.XXL),o}},51780:(e,t,r)=>{r.d(t,{L:()=>l});var n=r(20354),a=r(49602),c=r(21750),i=r(61699),l=function(e,t,r){var l=n.a.useBasicFetch(i.o.availablePresentations()),o=n.a.useBasicFetch(c.x.presentation()),u=a.b.hasManyPresentationTypes(l.data),s=u.hasManySubjectPresentations,d=u.hasManyCurriculumPresentations;if(!l.hasCompleted||!o.hasCompleted)return[];var m=[];return s&&m.push({active:"school-level"===e,appLink:t("school-level",r)}),d&&m.push({active:"curriculum"===e,appLink:t("curriculum",r)}),m}},39133:(e,t,r)=>{r.r(t),r.d(t,{OnboardingCurriculumPresentationSelectorView:()=>k});var n=r(1024),a=r.n(n),c=r(58566),i=r(20354),l=r(65858),o=r(61628),u=r(44972),s=r(22129),d=r(83345),m=r(25925),p=r(77963),f=r(65728),v=r(21750),b=r(61699),h=r(31949),g=r(37802),y=r(51780),E=r(4312),C="subjects.onboardingCurriculumPresentationSelector";function k(e){var t=i.a.useBasicFetch(b.o.availablePresentations()),r=i.a.useBasicFetch(v.x.presentation(m.R.Curriculum)),n=i.a.useBasicFetch(h.N.currentUser()),k=E.b.hasManyPresentationTypes(t.data),x=k.hasManySubjectPresentations,S=k.hasManyCurriculumPresentations;a().useEffect((function(){if(t.hasCompleted&&!S)return t.hasError?E.b.redirect(e.redirectUrl):S?void 0:E.b.redirect(e.redirectUrl)}),[t.hasCompleted]);var w=(0,c.useDispatch)(),L=(0,g.r)(l.LZ.TopicsOnboarding).updateSetting,j=(0,y.L)("curriculum",E.b.buildAppLink,e.redirectUrl);function N(){var t={name:f.E.HasCompletedOnboarding,value:!0,kind:p.g.Permanent};L(n.data.id,t,(function(){return E.b.onCompleteOnboardingSuccess(n.data.id,e.redirectUrl)}))}var A=t.hasCompleted&&r.hasCompleted;return a().createElement(d.D.Provider,{value:C},a().createElement(u.z,{steps:j},a().createElement("div",{className:"text-center mb-4"},a().createElement("h1",{className:"my-3"},a().createElement(d.x,{phrase:"heading"})),a().createElement("p",{className:"m-0 h6"},a().createElement(d.x,{phrase:"info"}))),A?a().createElement(o.g,{curriculums:t.data.filter((function(e){return e.type===m.R.Curriculum})),currentCurriculum:r.data,saveChanges:function(e,t,r){i.a.fetch(w,b.o.setPresentation(e,m.R.Curriculum,N,r))},backBtnAppLink:x?E.b.buildAppLink("school-level",e.redirectUrl):E.b.buildAppLink("welcome",e.redirectUrl),isOnboarding:!0}):a().createElement(s.A,{style:"grid",size:"lg",count:2,center:!0})))}},92875:(e,t,r)=>{r.d(t,{Z:()=>n});const n={grid:"X9r1Y",subgrid:"TgYhp"}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9138],{84566:(e,r,t)=>{t.d(r,{S:()=>l});var a=t(20354),n=t(2948),s=t(38143),o=t(31949);function u(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,r){if(e){if("string"==typeof e)return i(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?i(e,r):void 0}}function i(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}function l(e){var r,t,i=(r=(0,n.D)(s.g.BULK_USER_ACTIONS),t=1,function(e){if(Array.isArray(e))return e}(r)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,n,s,o,u=[],c=!0,i=!1;try{if(s=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;c=!1}else for(;!(c=(a=s.call(t)).done)&&(u.push(a.value),u.length!==r);c=!0);}catch(e){i=!0,n=e}finally{try{if(!c&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(i)throw n}}return u}}(r,t)||c(r,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],l=a.a.useBasicFetch(o.N.currentUser());return a.a.useBasicFetch((null==i?void 0:i.userIdMap)&&l.data&&e.getSearchAggregation({userId:l.data.id,customerId:l.data.customerId,userType:e.userType,queryParams:i.params,userIds:u(i.userIdMap.keys()),field:e.field})).data}},70197:(e,r,t)=>{var a;t.d(r,{q:()=>a}),function(e){e.YearGroupValues="yearGroups.value",e.UserProfilesStatus="userProfiles.status"}(a||(a={}))},47288:(e,r,t)=>{t.d(r,{N:()=>g});var a,n,s=t(99940),o=t(97395),u=t(1048),c=t(39739),i=t(70197);!function(e){e.yearGroups="yearGroups",e.userProfiles="userProfiles"}(a||(a={})),function(e){e.TermsGroupBy="terms-group-by",e.NestedTermsGroupBy="nested-terms-group-by"}(n||(n={}));var l,y=t(54610);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}function p(e,r,t){return(r=function(e){var r=function(e,r){if("object"!==d(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,"string");if("object"!==d(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===d(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}!function(e){e.Content="content",e.OnlineContent="online_content",e.User="user",e.Customer="customer",e.Tag="tag",e.Organisation="organisation",e.Channel="channel"}(l||(l={}));var g={getUsers:function(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,n=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,u={query:c.P.buildGetUsersQuery(r,t)};a&&(u.cursor=a);var i="school:users:".concat(e,":").concat(r);return i+=Object.keys(u).map((function(e){return u[e]})).join(":"),{url:o._.urlBuilder("{gateway}/v1/customers/".concat(e,"/users"),u),key:i,success:n,error:s}},getUser:function(e){return{url:"{gateway}/v1/users/".concat(e,"?query=avatar"),key:"school:users:".concat(e)}},bulkRemoveUsers:function(e,r,t,a){var n,o=["school:users","search:users","search:aggregation"];return(null===(n=e.userIds)||void 0===n?void 0:n.length)&&e.userIds.forEach((function(e){return o.push("school:users:".concat(e))})),{url:"{gateway}/v1/users/delete",key:"remove:school:users",invalidationKeys:o,type:s.k.POST,data:e,success:r,error:t,always:a}},createUsers:function(e){var r=e.users,t=e.success,a=e.error,n=e.always;return{url:"{gateway}/v1/users",key:"create:users",data:r,type:s.k.POST,invalidationKeys:["school:users","user:count","search:users"],success:t,error:a,always:n}},updateUser:function(e,r,t,a,n){var o=["school:users:".concat(e.userId)];return r.toString()===e.userId.toString()&&o.push("currentuser"),{url:"{gateway}/v1/users",key:"edit:user",type:s.k.PUT,data:e,invalidationKeys:["search:aggregation"],success:t,error:a,always:n}},searchUsers:function(e,r,t){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,u=arguments.length>6?arguments[6]:void 0,i=c.P.buildSearchDataAndKey({customerId:e,userId:r,userType:t,queryParams:a,cursor:n}),l=i.data,y=i.key;return{url:"{gateway}/v3/search",data:l,type:s.k.POST,key:y,success:o,error:u}},getSearchUserIds:function(e,r,t){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,i=c.P.buildSearchData({customerId:e,userId:r,userType:t,queryParams:a}),l="search:user:ids";return{url:"{gateway}/v3/search/ids",key:l+=u.t.flattenObjectToString(i),data:i,type:s.k.POST,normalize:!1,success:n,error:o}},getSearchAggregation:function(e){var r=e.userId,t=e.customerId,o=e.userType,u=e.queryParams,y=void 0===u?{}:u,d=e.userIds,f=e.field,g=f===i.q.UserProfilesStatus?a.userProfiles:a.yearGroups,v=c.P.buildSearchFiltersObject(t,o,y),m="search:aggregation:".concat(r,":").concat(t,":").concat(f,":");m+=Object.keys(v).sort().map((function(e){return v[e]})).join(":"),m+=":"+d.join(":");var h={indices:["user"],searchType:l.User,isLearner:!1,type:n.NestedTermsGroupBy,userId:r.toString(),customerId:t.toString(),data:{field:f,nestedPath:g,termsFilters:p({},"".concat(g,".customerId"),[t])},idFilters:d,filters:v};return{url:"{gateway}/v1/search/aggregation",type:s.k.POST,key:m,data:h,normalize:!1,formatData:function(e){var r=e.termCount;return f!==i.q.UserProfilesStatus?r:Object.keys(r).reduce((function(e,t){return e[t.charAt(0).toUpperCase()+t.slice(1)]=r[t],e}),{})}}},bulkToggleActivation:function(e,r,t,a,n){return{url:"{gateway}/v1/users/status",key:"update:users:status",type:s.k.PUT,data:e,success:t,error:a,always:n,invalidationKeys:["school:users:".concat(e.customerId,":").concat(r)].concat((o=e.users.map((function(e){return"school:users:".concat(e.userId)})),function(e){if(Array.isArray(e))return f(e)}(o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,r){if(e){if("string"==typeof e)return f(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?f(e,r):void 0}}(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),["search:aggregation"])};var o},bulkValidate:function(e,r,t,a,n){return{url:"{gateway}/v1/users/validate",type:s.k.POST,key:"validate:users",data:e,success:t,error:a,always:n,normalize:!1,formatData:function(e){return e.failedResults.map((function(e){return{errorCodes:e.errorCodes,users:[e.user]}}))}}},yearGroups:function(e){return{url:"{gateway}/v1/customers/".concat(e,"/year-groups?query={orderby:value}"),key:"yeargroups:".concat(e)}},updateAvatar:function(e,r,t,a){return{url:"{gateway}/v1/users/me/avatar",key:"update:avatar",type:s.k.PUT,invalidationKeys:["currentuser","school:users:".concat(r)],data:{fileId:e,fileIdType:y.z9.ImageAPIv2},success:t,error:a}},deleteAvatar:function(e,r,t,a){return{url:"{gateway}/v1/users/me/avatar/".concat(e),key:"delete:avatar",type:s.k.DELETE,updateState:{keys:["school:users:".concat(r),"currentuser"],updateData:function(e){var t,a=e["school:users:".concat(r)],n=e.currentuser;return a.avatar=null,n.avatar=null,p(t={},"school:users:".concat(r),a),p(t,"currentuser",n),t}},success:t,error:a}},changeEmail:function(e,r,t,a){return{url:"{gateway}/v1/users/me/email",key:"change:email",type:s.k.PUT,data:{email:e},success:r,error:t,always:a}},changePassword:function(e,r,t,a){return{url:"{gateway}/v1/users/me/password",key:"change:password",type:s.k.PUT,data:{currentPassword:e.currentPassword,newPassword:e.newPassword},success:r,error:t,always:a}},changeUserPassword:function(e,r,t,a,n,o,u){return{url:"{gateway}/v1/users/admin/change-password",key:"change:password:".concat(r,":").concat(e),type:s.k.PUT,data:{userId:e,newPassword:t,changeOnNextLogin:a},success:n,error:o,always:u}},resendActivationEmail:function(e,r,t){return{url:"{gateway}/v1/users/admin/activation",key:"send:activation:email",type:s.k.POST,data:{userId:e},success:r,error:t}},sendPasswordResetEmail:function(e,r,t,a){return{url:"{gateway}/v1/users/admin/account-reminder",key:"send:password:reset:email",type:s.k.POST,data:{userIds:[e],customerId:r},success:t,error:a}},resendVerificationEmail:function(e,r,t,a){return{url:"{gateway}/v1/users/admin/email-verification",key:"send:verification:email",type:s.k.POST,data:{userId:e,customerId:r},success:t,error:a}},exportList:function(e,r,t,a){return{url:o._.urlBuilder("{gateway}/v1/customers/".concat(e,"/users/report"),{userType:r}),key:"export:users:".concat(r),type:s.k.GET,formatData:function(e){return"data:text/csv;charset=utf-8,".concat(e)},success:t,error:a,invalidationKeys:["export:users:".concat(r)],normalize:!1}},userCount:function(e,r,t){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=c.P.buildSearchData({customerId:e,userId:r,userType:t,queryParams:a}),o="search:user:count";return o+=u.t.flattenObjectToString(n),{url:"{gateway}/v3/search/count",data:n,type:s.k.POST,key:o,normalize:!1}},authenticationMethods:function(e){return{url:o._.urlBuilder("{gateway}/v1/users/authentication-methods",{id:e}),key:"login:methods:".concat(e.sort().join(":")),normalizeOptions:{idAttribute:"userId"}}},getIdentityProviders:function(e){return{url:"{gateway}/v1/customers/".concat(e,"/identity-providers"),key:"identity:providers:".concat(e),normalize:!1}},getSsoMappings:function(e){return{url:"{gateway}/v1/customers/".concat(e,"/sso-year-group-mappings"),key:"sso:year:group:mappings:".concat(e),normalize:!1}},updateSsoMappings:function(e,r){return{url:"{gateway}/v1/customers/".concat(e,"/sso-year-group-mappings"),key:"sso:year:group:mappings:".concat(e,":update"),type:s.k.POST,invalidationKeys:"sso:year:group:mappings:".concat(e),data:r}},joinRequests:function(){return{url:"{gateway}/v1/customers/join-requests?status=pending",key:"join:requests",normalize:!1}},resolveJoinRequest:function(e,r){return{url:"{gateway}/v1/customers/join-requests/".concat(e),key:"resolve:join:request",type:s.k.PUT,data:{status:r},normalize:!1,invalidationKeys:["join:requests"]}}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9151],{33472:(t,e,r)=>{r.r(e),r.d(e,{StartSignUpView:()=>k});var n=r(1024),i=r.n(n),a=r(99910),o=r(20354),l=r(49985),c=r(65858),u=r(12594),s=r(83529),p=r(84789),f=r(17331),y=r(28366),d=r(39151),m=r(48456),v=r(17762),g=r(63643),h=r(2948),b=r(86702);function S(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function A(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,l=[],c=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(l.push(n.value),l.length!==e);c=!0);}catch(t){u=!0,i=t}finally{try{if(!c&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return w(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function k(t){var e,r,n,w=(e=(r=(0,h.D)(b.y.OPEN_IN_APP_DATA),n=1,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,l=[],c=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(l.push(n.value),l.length!==e);c=!0);}catch(t){u=!0,i=t}finally{try{if(!c&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(r,n)||function(t,e){if(t){if("string"==typeof t)return S(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S(t,e):void 0}}(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],{trialAppLinkString:function(){if(e&&["videos","clips","series","playlists","topics","interactives"].includes(e.app)){var t=e.id;switch(e.app){case"videos":return"video:".concat(t);case"playlists":return"playlist:".concat(t);case"series":return"series:".concat(t);case"topics":return"topic:".concat(t);case"interactives":return"interactive:".concat(t);case"clips":return"clip:".concat(t)}}}()}).trialAppLinkString,k=A(i().useState("lg"),2),j=k[0],U=k[1],C=A(i().useState(),2),L=C[0],O=C[1],P=o.a.useBasicFetch(d.L.config()),I=o.a.useBasicFetch(d.L.version()),E=(0,v.M)(),M=(0,g.c)();function _(){t.closePopup();var e=f.i.filterBlacklistedKeys(L);l.k.logUserAction(e||{},{actionType:c.Vw.Click,location:c.LZ.SignUpPopup,entity:c.py.SignUp,descriptor:c.Yu.ClosePopup,workflowPhase:c.eu.Discard})}return P.hasCompleted&&E&&M&&I.hasCompleted?i().createElement(a.Modal,{show:!0,onHide:_,size:j},i().createElement(a.Modal.Body,{className:"mx-auto p-0 ".concat(y.Z.modalBody," w-100 position-relative")},i().createElement(u.h,{onStepUpdate:function(t){O(t),"completed"===t.currentStepId&&U(void 0)},pageAppLinkString:w,close:_,type:s.c.Popup,location:c.LZ.SignUpPopup,googleMapsApiKey:P.data.googleMapsApiKey,geoLocation:E,imageUrls:m.v,ajaxUrls:M,brazeConfig:P.data.braze,version:I.data,productName:p.X.Lite}))):i().createElement(i().Fragment,null)}}}]);
@@ -1,2 +0,0 @@
1
- /*! For license information please see 9194-c255b66c7c-lite.chunk.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9194],{73758:(t,e,n)=>{function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(i.key),"symbol"===r(o)?o:String(o)),i)}var o}n.d(e,{n:()=>o});var o=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.listeners={}}var e,n;return e=t,n=[{key:"subscribe",value:function(t,e){this.registerListener(t,e)}},{key:"subscribeOnce",value:function(t,e){this.registerListener(t,e,1)}},{key:"unsubscribe",value:function(t,e){this.deregisterListener(t,e)}},{key:"trigger",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.triggerCallbacks(t,n)}},{key:"registerListener",value:function(t,e,n){var r;if("string"!=typeof t)throw new Error("Event name must be a string");if("function"!=typeof e)throw new Error("Event callback must be a function");if(n&&"number"!=typeof n)throw new Error("Execution limit must be a number or undefined");this.listeners[t]=null!==(r=this.listeners[t])&&void 0!==r?r:[],this.listeners[t].push({callback:e,executionLimit:n})}},{key:"deregisterListener",value:function(t,e){var n;if("string"!=typeof t)throw new Error("Event name must be a string");if(e&&"function"!=typeof e)throw new Error("Event callback must be a function");if(e){var r=null===(n=this.listeners[t])||void 0===n?void 0:n.findIndex((function(t){return t.callback===e}));"number"==typeof r&&-1!==r&&(this.listeners[t].splice(r,1),0===this.listeners[t].length&&delete this.listeners[t])}else this.listeners[t]=[]}},{key:"triggerCallbacks",value:function(t){for(var e=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(this.listeners[t]){var o=[];this.listeners[t].forEach((function(t){var e,n;"number"==typeof t.executionLimit&&(t.executionCount=null!==(n=t.executionCount)&&void 0!==n?n:0,t.executionCount++,t.executionCount===t.executionLimit&&o.push(t.callback)),(e=t.callback).apply.apply(e,[null].concat(r))})),o.length&&o.forEach((function(n){return e.deregisterListener(t,n)}))}}}],n&&i(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}())},26733:(t,e,n)=>{n.d(e,{s:()=>P,R:()=>S});var r=n(1024),i=n.n(r),o=n(39202),a=n(97395),s=n(49985),u=n(65858),c=n(36848),l=n(78276),f=n(36532),h=n(71063),p=n(54610),y=n(4594),d=n(1164),v=n(79967),b=n(67453);const g={imageStyle:"I9E5O",item:"tqUFn",background:"s1dNr",thumbnailContainer:"EDiGi",teacherPack:"_tdVE",text:"g5NWS",hoverState:"xRYhX",atomGuide:"X39wU",studentActivity:"X9pMl",additionalMaterials:"qRVUo",userUploaded:"_18JaV",imageTypeResource:"KYtZL"};var m={width:200,resizeType:p.Nq.Cover};function w(t,e){var n,r,i;if("thumbnail"in e&&(null===(n=e.thumbnail)||void 0===n?void 0:n.url))return b.j.createUrl(null===(r=e.thumbnail)||void 0===r?void 0:r.url,Object.assign({},m));var o=a._.safeUrlConcat(t,"/v1/previews");return"metadata"in e?e.metadata.type===d.L.Pdf?b.j.createResourceImage(o,e.url,m):e.metadata.type===d.L.Image?b.j.createUrl(e.url,{size:p.h2.Medium,resizeType:p.Nq.Cover}):(null===(i=e.pdf)||void 0===i?void 0:i.url)?b.j.createResourceImage(o,e.pdf.url,m):(e.metadata.type,d.L.Zip,"/images/zip-resource.png"):b.j.createResourceImage(o,e.url,Object.assign({},m))}function O(t){var e;return"metadata"in t?t.metadata.type===d.L.Pdf?p.__.Pdf:t.metadata.type===d.L.Image?p.__.Thumbnails:(null===(e=t.pdf)||void 0===e?void 0:e.url)?p.__.Pdf:(t.metadata.type,d.L.Zip,p.__.Thumbnails):p.__.Link}function P(t){var e,n,r,o,a,s,c,h=null,p=0;"metadata"in t.data&&(h=t.data.metadata,p=null!==(r=null===(n=null===(e=t.data.thumbnail)||void 0===e?void 0:e.metadata)||void 0===n?void 0:n.rotation)&&void 0!==r?r:0);var y="".concat(null!==(a=null===(o=t.theme)||void 0===o?void 0:o.containerClass)&&void 0!==a?a:""," pt-3 px-3 rounded-lg d-flex flex-column align-items-center")+" justify-content-end ".concat(function(t){switch(t){case"atom-guide":return g.atomGuide;case"student-activity":return g.studentActivity;case"teacher-pack":return g.teacherPack;case"additional-materials":return g.additionalMaterials;default:return g.userUploaded}}(null==h?void 0:h.resourceType)," ").concat(g.background," ").concat(t.applyHoverState?g.hoverState:""," ");return i().createElement("div",{className:y},!t.hideHeading&&i().createElement(f.u,{title:t.data.name},i().createElement("h3",{className:"text-center text-break h5 mb-3 ".concat(g.text)},i().createElement("span",{className:"clamp-1"},t.data.name))),i().createElement("div",{className:"".concat(null!==(c=null===(s=t.theme)||void 0===s?void 0:s.thumbnailContainerClass)&&void 0!==c?c:""," w-75 overflow-hidden ").concat(g.thumbnailContainer," ").concat(g.imageStyle)},i().createElement(l.Z,{data:w(t.imageCdnUrl,t.data),imageType:O(t.data),imageStyle:{transform:"rotate(".concat(p,"deg)")},alt:t.data.name,analyticsOptions:{location:u.LZ.SlidingListItem},errorFallbackImageSrc:t.imageErrorFallbackUrl,imageClassName:(null==h?void 0:h.type)===d.L.Image?"".concat(g.imageTypeResource," ").concat(g.imageStyle):"",preload:t.preloadImage,preventLoad:!t.preloadImage})))}P.defaultProps={preloadImage:!0,actionBehaviour:"normal"};var S=i().memo((function(t){var e,n,r,a,l=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,[]),f=(e=t.data,n=t.actionBehaviour,a=(0,v.k)(),"public"===n||!a.xs&&!a.sm&&"resource"===e.type&&"metadata"in e&&(e.metadata.type===d.L.Image||(e.metadata.type===d.L.Pdf?!!e.url:!!(null===(r=e.pdf)||void 0===r?void 0:r.url)))),p=Object.assign(Object.assign({},t.analyticsData),t.data),b=Object.assign(Object.assign({},t.analyticsOptions),{actionType:u.Vw.Click,entity:t.data.typeId===y.E.Resource?u.py.Resource:u.py.Link});function m(){s.k.logUserAction(p,b)}var w,O=!!t.data.url;return l.applyHoverState=f||O,i().createElement("div",{className:"pt-1 px-1 flex-shrink-0 ".concat(g.item," ").concat(h.M.RESOURCE_ITEM_SELECTOR)},(w="d-block no-decoration","link"===t.data.type?i().createElement("a",{href:t.data.url,target:"_blank",className:w,onClick:m},i().createElement(P,Object.assign({},l))):f?"public"===t.actionBehaviour?i().createElement("div",{className:"".concat(w," cursor-pointer d-inline"),onClick:function(){m(),o.C$.trigger(t.getAppLink(t.data))}},i().createElement(P,Object.assign({},l))):i().createElement(c.F,{appLink:t.getAppLink(t.data),className:w,analyticsData:p,analyticsOptions:b},i().createElement(P,Object.assign({},l))):O?i().createElement("a",{href:t.data.url,className:w,onClick:m},i().createElement(P,Object.assign({},l))):i().createElement("div",{className:w},i().createElement(P,Object.assign({},l)))))}))},43965:(t,e,n)=>{n.r(e),n.d(e,{ClickViewPlayer:()=>xn});var r=n(1024),i=n.n(r),o=n(2200),a=(n(16852),n(93861));function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==s(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===s(i)?i:String(i)),r)}var i}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=f(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},c.apply(this,arguments)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}var h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(a,t);var e,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=f(r);if(i){var n=f(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.apply(this,arguments)).alwaysCollapsed=!1,t.isCollapsed=!1,t.isCollabsible=!0,t}return e=a,(n=[{key:"buildCSSClass",value:function(){return"cv-create-clip-button"}},{key:"getCollabsibleName",value:function(){return this.controlText_}},{key:"getCollabsibleValue",value:function(){return""}},{key:"showInCollabsibleMenu",value:function(){return!0}},{key:"showCollapsibleMenu",value:function(){c(f(a.prototype),"handleClick",this).call(this,null)}}])&&u(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(a.Z.getComponent("Button"));function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==p(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===p(i)?i:String(i)),r)}var i}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}h.prototype.controlText_="Create Clip",a.Z.registerComponent("CreateClipButton",h);var b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(a,t);var e,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=v(r);if(i){var n=v(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===p(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,t,e)).options=e,t.ready((function(){return n.onReady()})),n}return e=a,(n=[{key:"onReady",value:function(){var t,e=this.player.getChild("collapserator"),n=null===(t=null==e?void 0:e.children())||void 0===t?void 0:t.findIndex((function(t){return"CustomControlSpacer"===t.name()}));n&&-1!==n&&e.addChild("CreateClipButton",{clickHandler:this.options.onClick},n+1)}}])&&y(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(a.Z.getPlugin("plugin"));function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function m(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==g(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===g(i)?i:String(i)),r)}var i}function w(t,e){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},w(t,e)}function O(t){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},O(t)}a.Z.registerPlugin("createClipButtonPlugin",b);var P=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&w(t,e)}(a,t);var e,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=O(r);if(i){var n=O(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===g(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return e=a,(n=[{key:"handlePictureInPictureEnabledChange",value:function(){this.enable()}}])&&m(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(a.Z.getComponent("PictureInPictureToggle"));function S(t){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(t)}function k(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==S(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==S(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===S(i)?i:String(i)),r)}var i}function j(){return j="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=T(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},j.apply(this,arguments)}function E(t,e){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},E(t,e)}function T(t){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},T(t)}a.Z.registerComponent("PictureInPictureToggle",P);var x=a.Z.getComponent("PlayToggle"),C=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&E(t,e)}(a,t);var e,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=T(r);if(i){var n=T(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===S(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,t,e)).pictureInPictureEnabled=!1,n.options=e,n.bindFunctions(),n}return e=a,(n=[{key:"bindFunctions",value:function(){this.requestPictureInPicture=this.requestPictureInPicture.bind(this),this.exitPictureInPicture=this.exitPictureInPicture.bind(this),this.onPlayerResize=this.onPlayerResize.bind(this),this.playerRequestPictureInPictureFn=this.player.requestPictureInPicture,this.playerExitPictureInPictureFn=this.player.exitPictureInPicture,this.player.requestPictureInPicture=this.requestPictureInPicture,this.player.exitPictureInPicture=this.exitPictureInPicture}},{key:"enablePictureInPicture",value:function(){var t=this;if(this.player.options_.fluid&&!this.pictureInPictureEnabled){var e=this.getToggleParentComponent();if(e){this.pictureInPictureEnabled=!0;var n=e.children().findIndex((function(t){var e;return"fullscreentoggle"===(null===(e=t.name())||void 0===e?void 0:e.toLowerCase())}));-1===n&&(n=e.children().length-1),e.addChild("pictureInPictureToggle",{},n);var r=e.getChild("pictureInPictureToggle");null==r||r.enable(),this.player.on("playerresize",this.onPlayerResize),this.player.on("dispose",(function(){var e;null===(e=t.player)||void 0===e||e.off("playerresize",t.onPlayerResize)}))}}}},{key:"disablePictureInPicture",value:function(){if(this.pictureInPictureEnabled){this.pictureInPictureEnabled=!1;var t=this.getToggleParentComponent(),e=null==t?void 0:t.getChild("pictureInPictureToggle");e&&t.removeChild(e),this.player.off("playerresize",this.onPlayerResize)}}},{key:"togglePictureInPicture",value:function(t){if(t!==this.player.isInPictureInPicture()){var e=t?"enterpictureinpicture":"leavepictureinpicture";this.player.isInPictureInPicture(t),this.player.trigger(e),t?this.addPipStyles():this.removePipStyles()}}},{key:"onPlayerResize",value:function(){if(!this.player.isInPictureInPicture()){var t=this.player.el().getBoundingClientRect();0!==t.width&&(t.width<800?this.disablePictureInPicture():this.enablePictureInPicture())}}},{key:"addPipStyles",value:function(){this.player.addClass("cv-picture-in-picture"),this.playToggle=new x(this.player),this.playToggle.addClass("cv-pip-play-toggle"),this.player.addChild(this.playToggle),this.player.paused()?this.playToggle.handlePause():this.playToggle.handlePlay()}},{key:"removePipStyles",value:function(){this.player.removeClass("cv-picture-in-picture"),this.player.removeChild(this.playToggle),delete this.playToggle}},{key:"requestPictureInPicture",value:function(){var t;this.pictureInPictureEnabled&&(this.togglePictureInPicture(!0),"function"==typeof(null===(t=this.options)||void 0===t?void 0:t.onRequestPictureInPicture)&&this.options.onRequestPictureInPicture(!0))}},{key:"exitPictureInPicture",value:function(){this.togglePictureInPicture(!1),this.options.onRequestPictureInPicture(!1),this.removePipStyles()}},{key:"getToggleParentComponent",value:function(){return this.player.getChild("collapserator")}},{key:"dispose",value:function(){this.player.requestPictureInPicture=this.playerRequestPictureInPictureFn,this.player.exitPictureInPicture=this.playerExitPictureInPictureFn,j(T(a.prototype),"dispose",this).call(this)}}])&&k(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(a.Z.getPlugin("plugin"));a.Z.registerPlugin("pictureInPicture",C);var _=n(23035),I=n(42892),R=n(73758);function L(t){return L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},L(t)}function D(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==L(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==L(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===L(i)?i:String(i)),r)}var i}function M(){return M="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=V(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},M.apply(this,arguments)}function N(t,e){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},N(t,e)}function B(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function V(t){return V=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},V(t)}var A=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&N(t,e)}(s,t);var e,n,r,i,o=(r=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=V(r);if(i){var n=V(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===L(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return B(t)}(this,t)});function s(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(n=o.call(this,t,e)).hasBuffered=!1,n.hasPlayed=!1,n.eventsService=R.n,n.pointOfInterest=e.pointOfInterest,n.onMouseOver=n.onMouseOver.bind(B(n)),n.onMouseLeave=n.onMouseLeave.bind(B(n)),n.onGlancePointOfInterestMouseEnter=n.onGlancePointOfInterestMouseEnter.bind(B(n)),n.onGlancePointOfInterestMouseLeave=n.onGlancePointOfInterestMouseLeave.bind(B(n)),n.initialize(),n}return e=s,(n=[{key:"initialize",value:function(){this.setPosition(),this.bindListeners()}},{key:"buildCSSClass",value:function(){return"cv-point-of-interest-indicator ".concat(M(V(s.prototype),"buildCSSClass",this).call(this))}},{key:"createEl",value:function(t,e,n){return M(V(s.prototype),"createEl",this).call(this,t,Object.assign(Object.assign({},e),{className:this.buildCSSClass()}),n)}},{key:"bindListeners",value:function(){this.on("mouseover",this.onMouseOver),this.on("mouseleave",this.onMouseLeave),this.eventsService.subscribe("glance:poi:mouseover",this.onGlancePointOfInterestMouseEnter),this.eventsService.subscribe("glance:poi:mouseleave",this.onGlancePointOfInterestMouseLeave)}},{key:"dispose",value:function(){this.eventsService.unsubscribe("glance:poi:mouseover",this.onGlancePointOfInterestMouseEnter),this.eventsService.unsubscribe("glance:poi:mouseleave",this.onGlancePointOfInterestMouseLeave)}},{key:"getPointOfInterestTime",value:function(){return this.pointOfInterest.startTime}},{key:"setPosition",value:function(){var t=this.player().duration();this.el_.style.left=this.getPointOfInterestTime()/t*100+"%"}},{key:"updateBuffered",value:function(t){var e=this.getPointOfInterestTime()<=t;if(e!==this.hasBuffered){this.hasBuffered=e;var n="cv-point-of-interest-indicator-buffered";this.hasBuffered?this.addClass(n):this.removeClass(n)}}},{key:"updatePlaybackProgress",value:function(t){var e=this.getPointOfInterestTime()<=t;if(e!==this.hasPlayed){this.hasPlayed=e;var n="cv-point-of-interest-indicator-played";e?this.addClass(n):this.removeClass(n)}}},{key:"toggleVisibility",value:function(t){var e="cv-point-of-interest-indicator-hidden";t?this.removeClass(e):this.addClass(e)}},{key:"onMouseOver",value:function(){this.setTimeTooltipText(),this.eventsService.trigger("player:poi:mouseover",this.pointOfInterest)}},{key:"onMouseLeave",value:function(){this.clearTimeTooltipText(),this.eventsService.trigger("player:poi:mouseleave")}},{key:"onGlancePointOfInterestMouseEnter",value:function(t){t.id===this.pointOfInterest.id&&(this.addClass("cv-point-of-interest-indicator-highlight"),this.setTimeTooltipTime(),this.setTimeTooltipText(),this.positionMouseTimeDisplay(),this.showMouseTimeDisplay())}},{key:"onGlancePointOfInterestMouseLeave",value:function(){this.removeClass("cv-point-of-interest-indicator-highlight"),this.hideMouseTimeDisplay()}},{key:"setTimeTooltipText",value:function(){var t;null===(t=this.getTimeTooltip())||void 0===t||t.setCustomChapterText(this.pointOfInterest.description)}},{key:"clearTimeTooltipText",value:function(){var t;null===(t=this.getTimeTooltip())||void 0===t||t.setCustomChapterText()}},{key:"setTimeTooltipTime",value:function(){var t=this.getTimeTooltip();null==t||t.updateTime(this.getPointOfInterestTime())}},{key:"positionMouseTimeDisplay",value:function(){var t,e,n=null===(t=this.getSeekBar())||void 0===t?void 0:t.el();if(n){var r=a.Z.dom.findPosition(n),i=this.getPointOfInterestTime()/this.player().duration();null===(e=this.getMouseTimeDisplay())||void 0===e||e.update(r,i)}}},{key:"showMouseTimeDisplay",value:function(){var t;null===(t=this.getMouseTimeDisplay())||void 0===t||t.forceShow()}},{key:"hideMouseTimeDisplay",value:function(){var t;null===(t=this.getMouseTimeDisplay())||void 0===t||t.removeForceShow()}},{key:"getSeekBar",value:function(){var t;return null===(t=this.player().controlBar.getChild("ProgressControl"))||void 0===t?void 0:t.getChild("SeekBar")}},{key:"getMouseTimeDisplay",value:function(){var t;return null===(t=this.getSeekBar())||void 0===t?void 0:t.getChild("MouseTimeDisplay")}},{key:"getTimeTooltip",value:function(){var t;return null===(t=this.getMouseTimeDisplay())||void 0===t?void 0:t.getChild("TimeTooltip")}}])&&D(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(a.Z.getComponent("Component"));function F(t){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},F(t)}function Z(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==F(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==F(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===F(i)?i:String(i)),r)}var i}function U(){return U="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=G(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},U.apply(this,arguments)}function z(t,e){return z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},z(t,e)}function G(t){return G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},G(t)}var q=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&z(t,e)}(s,t);var e,n,r,i,o=(r=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=G(r);if(i){var n=G(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===F(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function s(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(n=o.call(this,t,e)).pointsOfInterestVisible=e.pointsOfInterestVisible,n.toggle(n.pointsOfInterestVisible),n}return e=s,(n=[{key:"handleToggle",value:function(){this.toggle(!this.pointsOfInterestVisible)}},{key:"toggle",value:function(t){t?this.toggleOn():this.toggleOff()}},{key:"toggleOn",value:function(){a.Z.dom.addClass(this.toggleEl,"on"),this.pointsOfInterestVisible=!0,this.player().pointsOfInterestPlugin().togglePointsOfInterest(this.pointsOfInterestVisible)}},{key:"toggleOff",value:function(){a.Z.dom.removeClass(this.toggleEl,"on"),this.pointsOfInterestVisible=!1,this.player().pointsOfInterestPlugin().togglePointsOfInterest(this.pointsOfInterestVisible)}},{key:"handleClick",value:function(t){t.stopImmediatePropagation()}},{key:"createEl",value:function(t,e,n){this.handlerBound||(this.handleToggle=this.handleToggle.bind(this),this.handlerBound=!0),this.toggleEl&&this.toggleEl.removeEventListener("click",this.handleToggle),this.toggleEl=a.Z.dom.createEl("div",{className:"custom-toggle toggle-option float-right",innerHTML:'<span class="handle"></span></div>'}),this.toggleEl.addEventListener("click",this.handleToggle);var r=U(G(s.prototype),"createEl",this).call(this,t,{className:"vjs-menu-item cv-cog-menu-item",innerHTML:'\n <span class="vjs-menu-item-text">Points of Interest</span>\n <span class="cv-toggle-container"></span>'},n);return r.children[1].appendChild(this.toggleEl),r}}])&&Z(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(a.Z.getComponent("MenuItem"));function H(t){return H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},H(t)}function W(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==H(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==H(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===H(i)?i:String(i)),r)}var i}function Y(t,e){return Y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Y(t,e)}function $(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Q(t){return Q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Q(t)}a.Z.registerComponent("PointsOfInterestMenuItem",q);var J=a.Z.getPlugin("plugin"),X="cvplayer-points-of-interest",K=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Y(t,e)}(a,t);var e,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Q(r);if(i){var n=Q(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===H(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return $(t)}(this,t)});function a(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,t)).pointOfInterestIndicators=[],n.enabled=!0,n.pointsOfInterest=null==e?void 0:e.pointsOfInterest,n.initialize=n.initialize.bind($(n)),n.updateBuffered=n.updateBuffered.bind($(n)),n.updatePlaybackProgress=n.updatePlaybackProgress.bind($(n)),n.player.one("loadedmetadata",(function(){return n.player.ready(n.initialize)})),n}return e=a,(n=[{key:"initialize",value:function(){this.pointsOfInterest&&(I.S.hasLocalStorage()&&"false"===I.S.get(X)&&(this.enabled=!1),this.setupTrack(),this.createPointOfInterestIndicators(),this.addMenuItem(),this.bindListeners())}},{key:"bindListeners",value:function(){var t=this;this.player.on("progress",this.updateBuffered),this.player.on("timeupdate",this.updatePlaybackProgress),this.player.on("dispose",(function(){var e,n;null===(e=t.player)||void 0===e||e.off("progress",t.updateBuffered),null===(n=t.player)||void 0===n||n.off("timeupdate",t.updatePlaybackProgress)}))}},{key:"togglePointsOfInterest",value:function(t){I.S.set(X,t.toString()),this.pointOfInterestIndicators.forEach((function(e){return e.toggleVisibility(t)}))}},{key:"setupTrack",value:function(){var t=this.player.addTextTrack("metadata","pointsofinterest");this.pointsOfInterest.forEach((function(e){t.addCue({startTime:e.startTime,endTime:e.endTime,text:e.description})})),t.trigger({type:"loadeddata",target:t})}},{key:"createPointOfInterestIndicators",value:function(){var t,e=this,n=null===(t=this.player.controlBar.getChild("ProgressControl"))||void 0===t?void 0:t.getChild("SeekBar");this.pointsOfInterest.forEach((function(t){var r=new A(e.player,{pointOfInterest:t});e.pointOfInterestIndicators.push(r),n.addChild(r)}))}},{key:"addMenuItem",value:function(){var t;(null===(t=this.player.getChild("collapserator"))||void 0===t?void 0:t.getChild("cogButton")).addItem({index:0,ctor:q,name:"PointsOfInterestMenuItem",options:{pointsOfInterestVisible:this.enabled}})}},{key:"updateBuffered",value:function(){var t=this;this.pointOfInterestIndicators.forEach((function(e){return e.updateBuffered((0,_.b)(t.player))}))}},{key:"updatePlaybackProgress",value:function(){var t=this;this.pointOfInterestIndicators.forEach((function(e){return e.updatePlaybackProgress(t.player.currentTime())}))}}])&&W(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(J);a.Z.registerPlugin("pointsOfInterestPlugin",K),n(93262);var tt=n(95569),et=function(){var t,e;return null!==(e=null===(t=window.crypto)||void 0===t?void 0:t.randomUUID())&&void 0!==e?e:Math.random().toString()};function nt(t){var e="function"==typeof Map?new Map:void 0;return nt=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return rt(t,arguments,at(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ot(n,t)},nt(t)}function rt(t,e,n){return rt=it()?Reflect.construct.bind():function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&ot(i,n.prototype),i},rt.apply(null,arguments)}function it(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function ot(t,e){return ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ot(t,e)}function at(t){return at=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},at(t)}function st(t){return st="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},st(t)}function ut(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ct(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==st(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==st(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===st(i)?i:String(i)),r)}var i}function lt(t,e,n){return e&&ct(t.prototype,e),n&&ct(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var ft=function(){function t(){ut(this,t),this.callbacks=[],this.predicates=[],this.controller=new AbortController,this.signal=this.controller.signal,this.trigger=this.trigger.bind(this),this.on=this.on.bind(this),this.one=this.one.bind(this),this.off=this.off.bind(this),this.dispose=this.dispose.bind(this),this.isDisposed=this.isDisposed.bind(this)}return lt(t,[{key:"trigger",value:function(t){var e=this;this.callbacks.forEach((function(n,r){var i=e.predicates[r];i&&!i(t)||n(t)}))}},{key:"on",value:function(t){var e=this;this.isDisposed()&&console.warn("This EventChannel instance been disposed - this is a no-op");var n=this.callbacks.length;this.callbacks[n]=t,this.predicates[n]=function(){return!0};var r=function(){e.off(t)};return{off:r,filter:function(t){return e.predicates[n]=t,r}}}},{key:"one",value:function(){var t,e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!0};return this.isDisposed()?ht.reject(new Error("This EventChannel instance has been disposed")):new ht((function(r,i){t=e.on((function(n){e.signal.removeEventListener("abort",o),t(),r(n)})).filter(n);var o=function(){t(),i(new Error("Aborted while waiting for message"))};e.signal.addEventListener("abort",o,{once:!0})}),(function(){t()}))}},{key:"off",value:function(t){var e=this.callbacks.indexOf(t);-1!==e&&(this.callbacks.splice(e,1),this.predicates.splice(e,1))}},{key:"dispose",value:function(){this.callbacks.length=0,this.predicates.length=0,this.controller.abort()}},{key:"isDisposed",value:function(){return this.signal.aborted}}]),t}(),ht=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ot(t,e)}(i,t);var e,n,r=(e=i,n=it(),function(){var t,r=at(e);if(n){var i=at(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return function(t,e){if(e&&("object"===st(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function i(t,e){var n;return ut(this,i),(n=r.call(this,t)).onTimeout=e,n.bindFunctions(),n}return lt(i,[{key:"bindFunctions",value:function(){this.timeout=this.timeout.bind(this)}},{key:"timeout",value:function(t){var e=this;return new Promise((function(n,r){e.then(n).catch(r).finally((function(){return clearTimeout(i)}));var i=setTimeout((function(){var t;null===(t=e.onTimeout)||void 0===t||t.call(e),r(new Error("Promise timed out"))}),t)}))}}],[{key:"reject",value:function(t){return new i((function(e,n){return n(t)}))}}]),i}(nt(Promise)),pt=function(){function t(){ut(this,t),this.channels={},this.trigger=this.trigger.bind(this),this.on=this.on.bind(this),this.one=this.one.bind(this),this.off=this.off.bind(this),this.dispose=this.dispose.bind(this),this.getChannel=this.getChannel.bind(this)}return lt(t,[{key:"trigger",value:function(t,e){this.getChannel(t).trigger(e)}},{key:"on",value:function(t,e){return this.getChannel(t).on(e)}},{key:"one",value:function(t,e){return this.getChannel(t).one(e)}},{key:"off",value:function(t,e){this.getChannel(t).off(e)}},{key:"dispose",value:function(){this.trigger("dispose",yt.void),Object.values(this.channels).forEach((function(t){return t.dispose()})),this.channels={}}},{key:"getChannel",value:function(t){return this.channels[t]||(this.channels[t]=new ft),this.channels[t]}}]),t}(),yt={void:void 0};function dt(t){return dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dt(t)}function vt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==dt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==dt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===dt(i)?i:String(i)),r)}var i}var bt=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.bindFunctions()}var e,n;return e=t,(n=[{key:"bindFunctions",value:function(){this.schedule=this.schedule.bind(this),this.every=this.every.bind(this),this.trigger=this.trigger.bind(this),this.start=this.start.bind(this),this.stop=this.stop.bind(this)}},{key:"schedule",value:function(t){return this.task=t,this}},{key:"every",value:function(t){return this.intervalInMilliseconds=t,this}},{key:"trigger",value:function(){var t;return null===(t=this.task)||void 0===t||t.call(this,this),this}},{key:"start",value:function(){var t=this;return this.intervalId||(this.intervalId=setInterval((function(){return t.trigger()}),this.intervalInMilliseconds)),this}},{key:"stop",value:function(){return this.intervalId&&(clearInterval(this.intervalId),this.intervalId=void 0),this}}])&&vt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function gt(t){return gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gt(t)}function mt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==gt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==gt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===gt(i)?i:String(i)),r)}var i}var wt,Ot={reconnectIntervalInMilliseconds:3e3,heartbeatEnabled:!1,heartbeatIntervalInMillseconds:1e4,heartbeatMessage:""},Pt=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ot;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.bindFunctions(),this.url=e,this.options=Object.assign(Object.assign({},Ot),r),this.webSocket=this.connect(),this.heartbeat=(new bt).schedule((function(){return n.send(n.options.heartbeatMessage)})).every(this.options.heartbeatIntervalInMillseconds)}var e,n;return e=t,(n=[{key:"bindFunctions",value:function(){this.cleanup=this.cleanup.bind(this),this.handleOpen=this.handleOpen.bind(this),this.handleMessage=this.handleMessage.bind(this),this.handleClose=this.handleClose.bind(this),this.handleError=this.handleError.bind(this),this.connect=this.connect.bind(this),this.send=this.send.bind(this),this.dipose=this.dipose.bind(this)}},{key:"cleanup",value:function(){this.heartbeat.stop(),this.webSocket.removeEventListener("error",this.handleError),this.webSocket.removeEventListener("message",this.handleMessage),this.webSocket.removeEventListener("open",this.handleOpen),this.webSocket.removeEventListener("close",this.handleClose)}},{key:"handleOpen",value:function(t){var e;null===(e=this.onOpen)||void 0===e||e.call(this,t),this.options.heartbeatEnabled&&this.heartbeat.start()}},{key:"handleMessage",value:function(t){var e;null===(e=this.onMessage)||void 0===e||e.call(this,t)}},{key:"handleClose",value:function(t){var e,n=this;null===(e=this.onClose)||void 0===e||e.call(this,t),this.cleanup(),setTimeout((function(){n.webSocket=n.connect()}),this.options.reconnectIntervalInMilliseconds)}},{key:"handleError",value:function(t){var e;null===(e=this.onError)||void 0===e||e.call(this,t),this.handleClose()}},{key:"connect",value:function(){var t=new WebSocket(this.url);return t.addEventListener("open",this.handleOpen),t.addEventListener("message",this.handleMessage),t.addEventListener("close",this.handleClose),t.addEventListener("error",this.handleError),t}},{key:"send",value:function(t){this.webSocket.send(t)}},{key:"dipose",value:function(){this.cleanup(),this.webSocket.close()}}])&&mt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function St(t){return St="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},St(t)}function kt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==St(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==St(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===St(i)?i:String(i)),r)}var i}!function(t){t.AppleTv="apple-tv",t.Vivi="vivi"}(wt||(wt={}));var jt=function(){function t(e,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.lastModified={},this.position=0,this.duration=0,this.playing=!1,this.mute=!1,this.videoSource="",this.subtitleSource="",this.subtitles=!1,this.volume=0,this.title=e,this.device=n,this.ready=!1,this.debounced=this.withDebouncedSetters(),this.withTimestampedSetters()}var e,n;return e=t,(n=[{key:"withDebouncedSetters",value:function(){var t=this;return new Proxy(this,{set:function(e,n,r,i){var o=t.lastModified[n.toString()];return!!(o&&Date.now()<o+2e3)||Reflect.set(e,n,r,i)}})}},{key:"withTimestampedSetters",value:function(){var t=this;return new Proxy(this,{set:function(e,n,r,i){return t.lastModified[n.toString()]=Date.now(),Reflect.set(e,n,r,i)}})}}])&&kt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Et(t){return Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Et(t)}function Tt(){Tt=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),s=new _(r||[]);return i(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var h="suspendedStart",p="suspendedYield",y="executing",d="completed",v={};function b(){}function g(){}function m(){}var w={};c(w,a,(function(){return this}));var O=Object.getPrototypeOf,P=O&&O(O(I([])));P&&P!==n&&r.call(P,a)&&(w=P);var S=m.prototype=b.prototype=Object.create(w);function k(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(i,o,a,s){var u=f(t[i],t,o);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==Et(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,s)}))}s(u.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function E(e,n,r){var i=h;return function(o,a){if(i===y)throw new Error("Generator is already running");if(i===d){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=T(s,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=y;var c=f(e,n,r);if("normal"===c.type){if(i=r.done?d:p,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=d,r.method="throw",r.arg=c.arg)}}}function T(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var o=f(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(Et(e)+" is not iterable")}return g.prototype=m,i(S,"constructor",{value:m,configurable:!0}),i(m,"constructor",{value:g,configurable:!0}),g.displayName=c(m,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,u,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},k(j.prototype),c(j.prototype,s,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new j(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(S),c(S,u,"Generator"),c(S,a,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=I,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function xt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==Et(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Et(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===Et(i)?i:String(i)),r)}var i}function Ct(){return Ct="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=It(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},Ct.apply(this,arguments)}function _t(t,e){return _t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_t(t,e)}function It(t){return It=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},It(t)}var Rt=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},Lt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_t(t,e)}(a,t);var e,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=It(r);if(i){var n=It(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Et(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this)).client=t,n.queryDeviceState=new bt,n.localState=new jt(e.title,e.device),n.bindFunctions(),n.initialize(),n}return e=a,(n=[{key:"bindFunctions",value:function(){this.initialize=this.initialize.bind(this),this.dispose=this.dispose.bind(this),this.handleDisconnect=this.handleDisconnect.bind(this),this.reconcileRemoteState=this.reconcileRemoteState.bind(this),this.loadSource=this.loadSource.bind(this),this.play=this.play.bind(this),this.pause=this.pause.bind(this),this.seek=this.seek.bind(this),this.setVolume=this.setVolume.bind(this),this.isPlaying=this.isPlaying.bind(this),this.getPosition=this.getPosition.bind(this),this.getDuration=this.getDuration.bind(this),this.getVolume=this.getVolume.bind(this)}},{key:"initialize",value:function(){var t=this;this.client.on("dispose",this.dispose),this.client.on("message",this.handleDisconnect).filter((function(e){return e.source===t.getDevice().id&&"disconnect"===e.message.type})),this.queryDeviceState.every(1e3).schedule((function(){return t.reconcileRemoteState()}))}},{key:"dispose",value:function(){this.client.off("dispose",this.dispose),this.client.off("message",this.handleDisconnect),this.queryDeviceState.stop(),this.client.stop(this.getDevice().id).catch(tt.ZT),Ct(It(a.prototype),"dispose",this).call(this)}},{key:"handleDisconnect",value:function(){return Rt(this,void 0,void 0,Tt().mark((function t(){return Tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.client.joinRoom(this.getDevice().id);case 3:t.next=9;break;case 5:t.prev=5,t.t0=t.catch(0),this.trigger("error",t.t0),this.dispose();case 9:case"end":return t.stop()}}),t,this,[[0,5]])})))}},{key:"reconcileRemoteState",value:function(){return Rt(this,void 0,void 0,Tt().mark((function t(){var e,n,r,i,o,a;return Tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.client.query(this.getDevice().id);case 2:if(e=t.sent,n=this.localState.debounced,r=e.message.payload.play_state,i=e.message.payload.urls,o=i.find((function(t){return t.url===n.videoSource})),a=i.indexOf(o),o&&a===r.chapter){t.next=12;break}return console.info("The device is no longer playing the source we loaded - disposing the session"),this.dispose(),t.abrupt("return");case 12:n.subtitleSource!==o.suburl&&(n.subtitleSource=o.suburl,this.trigger("subtitleschange",yt.void)),n.subtitles!==r.subtitles&&(n.subtitles=r.subtitles,this.trigger("subtitleschange",yt.void)),n.volume!==r.volume&&(n.volume=r.volume,this.trigger("volumechange",yt.void)),n.mute!==r.mute&&(n.mute=r.mute,this.trigger("volumechange",yt.void)),n.duration!==r.duration&&(n.duration=r.duration,this.trigger("durationchange",yt.void)),n.playing!==r.playing&&(n.playing=r.playing,this.trigger("playingchange",yt.void)),n.position!==r.position&&(n.position=r.position,this.trigger("positionchange",yt.void));case 19:case"end":return t.stop()}}),t,this)})))}},{key:"loadSource",value:function(t,e){return Rt(this,void 0,void 0,Tt().mark((function n(){return Tt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(this.localState.videoSource!==t||this.localState.subtitleSource!==e){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,this.localState.videoSource=t,this.localState.subtitleSource=e,this.localState.ready=!1,this.queryDeviceState.stop(),n.next=9,this.client.joinRoom(this.getDevice().id);case 9:return n.next=11,this.client.loadQueue({roomId:this.getDevice().id,title:this.getTitle(),videoSource:t,subtitleSource:e});case 11:this.client.seek(this.getDevice().id,this.localState.position),this.localState.ready=!0,this.queryDeviceState.start(),this.trigger("sourceloaded",yt.void),n.next=20;break;case 17:n.prev=17,n.t0=n.catch(2),this.trigger("error",n.t0);case 20:case"end":return n.stop()}}),n,this,[[2,17]])})))}},{key:"play",value:function(){this.localState.ready&&!0!==this.localState.playing&&(this.localState.playing=!0,this.client.play(this.getDevice().id),this.trigger("playingchange",yt.void))}},{key:"pause",value:function(){this.localState.ready&&!1!==this.localState.playing&&(this.localState.playing=!1,this.client.pause(this.getDevice().id),this.trigger("playingchange",yt.void))}},{key:"seek",value:function(t){this.localState.ready&&this.localState.position!==t&&(this.localState.position=t,this.client.seek(this.getDevice().id,t),this.trigger("positionchange",yt.void))}},{key:"setVolume",value:function(t){this.localState.ready&&this.localState.volume!==t&&(this.localState.volume=t,this.client.setVolume(this.getDevice().id,t),this.trigger("volumechange",yt.void))}},{key:"setMuted",value:function(t){this.localState.ready&&this.localState.mute!==t&&(this.localState.mute=t,this.client.setMuted(this.getDevice().id,t),this.trigger("volumechange",yt.void))}},{key:"setSubtitles",value:function(t){return Rt(this,void 0,void 0,Tt().mark((function e(){var n;return Tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.localState.ready){e.next=2;break}return e.abrupt("return");case 2:if(!t){e.next=5;break}return e.next=5,this.loadSource(this.localState.videoSource,t);case 5:n=!!t,this.localState.subtitles!==n&&(this.localState.subtitles=n,this.client.setSubtitles(this.getDevice().id,n),this.trigger("subtitleschange",yt.void));case 7:case"end":return e.stop()}}),e,this)})))}},{key:"isPlaying",value:function(){return this.localState.playing}},{key:"getPosition",value:function(){return this.localState.position}},{key:"getDuration",value:function(){return this.localState.duration}},{key:"getVolume",value:function(){return this.localState.volume}},{key:"getMuted",value:function(){return this.localState.mute}},{key:"getSubtitles",value:function(){if(this.localState.subtitles)return this.localState.subtitleSource}},{key:"getDevice",value:function(){return this.localState.device}},{key:"getTitle",value:function(){return this.localState.title}}])&&xt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(pt);function Dt(t){return Dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dt(t)}function Mt(){Mt=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),s=new _(r||[]);return i(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var h="suspendedStart",p="suspendedYield",y="executing",d="completed",v={};function b(){}function g(){}function m(){}var w={};c(w,a,(function(){return this}));var O=Object.getPrototypeOf,P=O&&O(O(I([])));P&&P!==n&&r.call(P,a)&&(w=P);var S=m.prototype=b.prototype=Object.create(w);function k(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(i,o,a,s){var u=f(t[i],t,o);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==Dt(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,s)}))}s(u.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function E(e,n,r){var i=h;return function(o,a){if(i===y)throw new Error("Generator is already running");if(i===d){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=T(s,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=y;var c=f(e,n,r);if("normal"===c.type){if(i=r.done?d:p,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=d,r.method="throw",r.arg=c.arg)}}}function T(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var o=f(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(Dt(e)+" is not iterable")}return g.prototype=m,i(S,"constructor",{value:m,configurable:!0}),i(m,"constructor",{value:g,configurable:!0}),g.displayName=c(m,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,u,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},k(j.prototype),c(j.prototype,s,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new j(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(S),c(S,u,"Generator"),c(S,a,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=I,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function Nt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==Dt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Dt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===Dt(i)?i:String(i)),r)}var i}function Bt(){return Bt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=At(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},Bt.apply(this,arguments)}function Vt(t,e){return Vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Vt(t,e)}function At(t){return At=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},At(t)}var Ft=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},Zt=1e4,Ut=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Vt(t,e)}(s,t);var e,n,r,i,o,a=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=At(i);if(o){var n=At(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Dt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(e=a.call(this)).options=t,e.accessToken="",e.devices=[],e.deviceDiscovery=new bt,e.bindFunctions(),e.initialize(),e}return e=s,r=[{key:"createAckId",value:function(){return et()}}],(n=[{key:"bindFunctions",value:function(){this.initialize=this.initialize.bind(this),this.beginDeviceDiscovery=this.beginDeviceDiscovery.bind(this),this.dispose=this.dispose.bind(this),this.sendMessage=this.sendMessage.bind(this),this.sendMessageDebounced=(0,tt.Ds)(this.sendMessage,500,!0),this.getDevices=this.getDevices.bind(this),this.authenticateWithVivi=this.authenticateWithVivi.bind(this),this.getRoomList=this.getRoomList.bind(this),this.joinRoom=this.joinRoom.bind(this),this.query=this.query.bind(this),this.loadQueue=this.loadQueue.bind(this),this.play=this.play.bind(this),this.pause=this.pause.bind(this),this.stop=this.stop.bind(this),this.seek=this.seek.bind(this),this.setVolume=this.setVolume.bind(this),this.setMuted=this.setMuted.bind(this),this.setSubtitles=this.setSubtitles.bind(this)}},{key:"initialize",value:function(){var t=this;this.webSocket=new Pt(this.options.url.toString()),this.webSocket.onMessage=function(e){return t.trigger("message",JSON.parse(e.data))},this.webSocket.onOpen=function(){return Ft(t,void 0,void 0,Mt().mark((function t(){return Mt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.options.fetchAccessToken();case 3:return this.accessToken=t.sent,t.next=6,this.authenticateWithVivi();case 6:this.beginDeviceDiscovery(),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),this.trigger("error",t.t0);case 12:case"end":return t.stop()}}),t,this,[[0,9]])})))}}},{key:"beginDeviceDiscovery",value:function(){var t=this;this.deviceDiscovery.every(1e4).schedule((function(){return Ft(t,void 0,void 0,Mt().mark((function t(){var e;return Mt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getRoomList();case 2:if((e=t.sent).map((function(t){return t.id})).sort().join(",")!==this.devices.map((function(t){return t.id})).sort().join(",")){t.next=5;break}return t.abrupt("return");case 5:this.devices=e.map((function(t){return{id:t.id,name:t.name,type:wt.Vivi,available:!0}})),this.trigger("deviceschange",yt.void);case 7:case"end":return t.stop()}}),t,this)})))})).trigger().start()}},{key:"dispose",value:function(){var t;this.deviceDiscovery.stop(),null===(t=this.webSocket)||void 0===t||t.dipose(),Bt(At(s.prototype),"dispose",this).call(this)}},{key:"sendMessage",value:function(t){var e;null===(e=this.webSocket)||void 0===e||e.send(JSON.stringify(t))}},{key:"canCastToDevice",value:function(t){return t===wt.Vivi}},{key:"getDevices",value:function(){return this.devices}},{key:"startCastSession",value:function(t){return new Lt(this,t)}},{key:"authenticateWithVivi",value:function(){return Ft(this,void 0,void 0,Mt().mark((function t(){return Mt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.sendMessage({destination:"relay",message:{token:this.accessToken,type:"identify_video_api"}}),t.next=3,this.one("message",(function(t){return"video_api_identified"===t.message.type})).timeout(Zt).catch((function(){throw new Error("Failed to authenticate with Vivi")}));case 3:case"end":return t.stop()}}),t,this)})))}},{key:"getRoomList",value:function(){return Ft(this,void 0,void 0,Mt().mark((function t(){var e;return Mt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.sendMessage({destination:"relay",message:{type:"video_api_rooms"}}),t.next=3,this.one("message",(function(t){return"video_api_rooms"===t.message.type})).timeout(Zt).catch((function(){throw new Error("Failed to fetch rooms")}));case 3:return e=t.sent,t.abrupt("return",e.message.rooms||[]);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"joinRoom",value:function(t){return Ft(this,void 0,void 0,Mt().mark((function e(){return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.sendMessage({destination:"relay",message:{destination_type:"box",new_destination:t,token:this.accessToken,type:"connect"}}),e.next=3,this.one("message",(function(e){return e.source===t&&"connect"===e.message.type||"error"===e.message.type&&"already_connected"===e.message.error_type||void 0})).timeout(Zt).catch((function(){throw new Error("Failed to join room")}));case 3:case"end":return e.stop()}}),e,this)})))}},{key:"query",value:function(t){return Ft(this,void 0,void 0,Mt().mark((function e(){var n;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=s.createAckId(),this.sendMessage({destination:t,message:{type:"message_with_ack",ack_id:n,name:"query"}}),e.next=4,this.one("message",(function(t){return t.message.ack_id===n})).timeout(Zt).catch((function(){throw new Error("Failed to fetch query")}));case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e,this)})))}},{key:"loadQueue",value:function(t){var e=t.roomId,n=t.title,r=t.videoSource,i=t.subtitleSource;return Ft(this,void 0,void 0,Mt().mark((function t(){return Mt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.sendMessage({destination:e,message:{type:"message_with_ack",ack_id:s.createAckId(),name:"queue_load",payload:{urls:[{title:n,url:r,suburl:i}]}}}),t.next=3,this.one("message",(function(t){var n;return t.source===e&&"playing"===(null===(n=t.message.payload)||void 0===n?void 0:n.event)})).timeout(Zt).catch((function(){throw new Error("Failed to load media")}));case 3:case"end":return t.stop()}}),t,this)})))}},{key:"play",value:function(t){return Ft(this,void 0,void 0,Mt().mark((function e(){return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.sendMessage({destination:t,message:{type:"message",name:"video_play",payload:{}}}),e.next=3,this.one("message",(function(e){var n;return e.source===t&&"playing"===(null===(n=e.message.payload)||void 0===n?void 0:n.event)})).timeout(Zt).catch((function(){throw new Error("Failed to play video")}));case 3:case"end":return e.stop()}}),e,this)})))}},{key:"pause",value:function(t){return Ft(this,void 0,void 0,Mt().mark((function e(){return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.sendMessage({destination:t,message:{type:"message",name:"video_pause"}}),e.next=3,this.one("message",(function(e){var n;return e.source===t&&"paused"===(null===(n=e.message.payload)||void 0===n?void 0:n.event)})).timeout(Zt).catch((function(){throw new Error("Failed to pause video")}));case 3:case"end":return e.stop()}}),e,this)})))}},{key:"stop",value:function(t){return Ft(this,void 0,void 0,Mt().mark((function e(){return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.sendMessage({destination:t,message:{type:"message",name:"video_stop"}}),e.next=3,this.one("message",(function(e){var n;return e.source===t&&"stopped"===(null===(n=e.message.payload)||void 0===n?void 0:n.event)})).timeout(Zt).catch((function(){throw new Error("Failed to stop video")}));case 3:case"end":return e.stop()}}),e,this)})))}},{key:"seek",value:function(t,e){return Ft(this,void 0,void 0,Mt().mark((function n(){return Mt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!this.sendMessageDebounced({destination:t,message:{type:"message",name:"video_seek",payload:{position:e}}})){n.next=4;break}return n.next=4,this.one("message",(function(e){var n;return e.source===t&&"playing"===(null===(n=e.message.payload)||void 0===n?void 0:n.event)})).timeout(Zt).catch((function(){throw new Error("Failed to seek video")}));case 4:case"end":return n.stop()}}),n,this)})))}},{key:"setVolume",value:function(t,e){return Ft(this,void 0,void 0,Mt().mark((function n(){return Mt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!this.sendMessageDebounced({destination:t,message:{type:"message",name:"set_volume",payload:{volume:e}}})){n.next=4;break}return n.next=4,this.one("message",(function(e){var n;return e.source===t&&"volume"===(null===(n=e.message.payload)||void 0===n?void 0:n.event)})).timeout(Zt).catch((function(){throw new Error("Failed to set volume")}));case 4:case"end":return n.stop()}}),n,this)})))}},{key:"setMuted",value:function(t,e){return Ft(this,void 0,void 0,Mt().mark((function n(){return Mt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this.sendMessage({destination:t,message:{type:"message",name:"set_mute",payload:{mute:e}}}),n.next=3,this.one("message",(function(e){var n;return e.source===t&&"mute"===(null===(n=e.message.payload)||void 0===n?void 0:n.event)})).timeout(Zt).catch((function(){throw new Error("Failed to set mute")}));case 3:case"end":return n.stop()}}),n,this)})))}},{key:"setSubtitles",value:function(t,e){return Ft(this,void 0,void 0,Mt().mark((function n(){var r;return Mt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=s.createAckId(),this.sendMessage({destination:t,message:{type:"message_with_ack",ack_id:r,name:"set_subtitles",payload:{subtitles:e}}}),n.next=4,this.one("message",(function(e){return e.source===t&&e.message.ack_id===r})).timeout(Zt).catch((function(){throw new Error("Failed to set subtitles")}));case 4:case"end":return n.stop()}}),n,this)})))}}])&&Nt(e.prototype,n),r&&Nt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),s}(pt);function zt(t){return zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zt(t)}function Gt(t){return function(t){if(Array.isArray(t))return qt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return qt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qt(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ht(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==zt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==zt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===zt(i)?i:String(i)),r)}var i}function Wt(){return Wt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=$t(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},Wt.apply(this,arguments)}function Yt(t,e){return Yt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Yt(t,e)}function $t(t){return $t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$t(t)}var Qt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Yt(t,e)}(s,t);var e,n,r,i,o,a=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=$t(i);if(o){var n=$t(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===zt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function s(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(t=a.call(this)).clients=[],t.bindFunctions(),t}return e=s,r=[{key:"getOrCreateInstance",value:function(t){if(!t)throw new Error("instanceId is required");return this.instances[t]||(this.instances[t]=new s),this.instances[t]}},{key:"disposeAndRemoveInstance",value:function(t){this.getOrCreateInstance(t).dispose(),delete this.instances[t]}},{key:"isActive",value:function(){return Object.keys(this.instances).length>0}}],(n=[{key:"bindFunctions",value:function(){this.addClient=this.addClient.bind(this),this.hasInstanceOfClient=this.hasInstanceOfClient.bind(this),this.startCastSession=this.startCastSession.bind(this),this.gatherAndPublishDevices=this.gatherAndPublishDevices.bind(this),this.dispose=this.dispose.bind(this)}},{key:"addClient",value:function(t){var e=this;t.on("deviceschange",this.gatherAndPublishDevices),t.on("error",(function(t){return e.trigger("error",t)})),this.clients.push(t)}},{key:"hasInstanceOfClient",value:function(t){return this.clients.some((function(e){return e instanceof t}))}},{key:"startCastSession",value:function(t){var e=this;if(this.castSession){if(this.castSession.getDevice().id===t.device.id)return void console.info("A session with device ".concat(t.device.id," already exists - this is a no-op"));this.castSession.dispose()}var n=this.clients.find((function(e){return e.canCastToDevice(t.device.type)}));n&&(this.castSession=n.startCastSession(t),this.castSession.on("error",(function(t){e.castSession.dispose(),e.trigger("error",t)})),this.castSession.on("dispose",(function(){e.castSession=void 0,e.trigger("castsessionchange",void 0)})),this.trigger("castsessionchange",this.castSession))}},{key:"getCastSession",value:function(){return this.castSession}},{key:"gatherAndPublishDevices",value:function(){var t=this.clients.map((function(t){return t.getDevices()})).reduce((function(t,e){return[].concat(Gt(t),Gt(e))}),[]);this.trigger("deviceschange",t)}},{key:"dispose",value:function(){var t;null===(t=this.castSession)||void 0===t||t.dispose(),this.clients.forEach((function(t){return t.dispose()})),this.castSession=void 0,this.clients=[],Wt($t(s.prototype),"dispose",this).call(this)}}])&&Ht(e.prototype,n),r&&Ht(e,r),Object.defineProperty(e,"prototype",{writable:!1}),s}(pt);Qt.instances={};var Jt=n(30050),Xt=n(98115);function Kt(t){return Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kt(t)}function te(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==Kt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Kt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===Kt(i)?i:String(i)),r)}var i}function ee(){return ee="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ie(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},ee.apply(this,arguments)}function ne(t,e){return ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ne(t,e)}function re(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ie(t){return ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ie(t)}var oe=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ne(t,e)}(a,t);var e,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=ie(r);if(i){var n=ie(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Kt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return re(t)}(this,t)});function a(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,t,e)).isVisible=n.isVisible.bind(re(n)),n}return e=a,(n=[{key:"createEl",value:function(){return ee(ie(a.prototype),"createEl",this).call(this,"li",{className:"vjs-menu-item cv-device-menu-item",innerHTML:'\n <span class="cv-device-icon '.concat({vivi:"cv-vivi-icon","apple-tv":"cv-apple-icon"}[this.options_.type],'"></span>\n <span class="vjs-menu-item-text">').concat(this.options_.label,"</span>\n ")})}},{key:"handleClick",value:function(){this.options_.onClick()}},{key:"show",value:function(){ee(ie(a.prototype),"show",this).call(this)}},{key:"hide",value:function(){ee(ie(a.prototype),"hide",this).call(this)}},{key:"isVisible",value:function(){return!ee(ie(a.prototype),"hasClass",this).call(this,"vjs-hidden")}}])&&te(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(a.Z.getComponent("MenuItem"));function ae(t){return ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ae(t)}function se(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==ae(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==ae(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===ae(i)?i:String(i)),r)}var i}function ue(){return ue="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=le(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},ue.apply(this,arguments)}function ce(t,e){return ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ce(t,e)}function le(t){return le=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},le(t)}var fe=a.Z.getComponent("MenuButton"),he=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ce(t,e)}(a,t);var e,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=le(r);if(i){var n=le(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===ae(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,t,e)).alwaysCollapsed=!1,n.isCollapsed=!1,n.isCollabsible=!0,n.searchText="",n.devices=[],n.castSession=void 0,n.bindFunctions(),n.bindEventListeners(),n}return e=a,n=[{key:"bindFunctions",value:function(){this.bindEventListeners=this.bindEventListeners.bind(this),this.setDevices=this.setDevices.bind(this),this.setCastSession=this.setCastSession.bind(this),this.setSearchText=this.setSearchText.bind(this),this.getDeviceMenuItems=this.getDeviceMenuItems.bind(this),this.render=this.render.bind(this),this.removeMenuItems=this.removeMenuItems.bind(this),this.addMenuItemsForDevices=this.addMenuItemsForDevices.bind(this),this.shouldShowSearchInput=this.shouldShowSearchInput.bind(this),this.toggleSearchInput=this.toggleSearchInput.bind(this),this.toggleDeviceMenuItems=this.toggleDeviceMenuItems.bind(this),this.toggleEmptyStatePlaceholder=this.toggleEmptyStatePlaceholder.bind(this)}},{key:"bindEventListeners",value:function(){var t=this,e=this.$("button"),n=function(e){t.menu.handleBlur(e)};e.addEventListener("blur",n),this.one("dispose",(function(){e.removeEventListener("blur",n)}))}},{key:"createEl",value:function(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=fe.prototype.createEl).apply.apply(t,[this].concat(n))}},{key:"buildWrapperCSSClass",value:function(){return"cv-menu-small cv-devices-button ".concat(ue(le(a.prototype),"buildWrapperCSSClass",this).call(this))}},{key:"createItems",value:function(){var t=this,e=[];return this.headingItem=new Jt.Z(this.player_,{label:this.localize("Select a device"),selectable:!1}),this.searchInputItem=new Xt.Z(this.player_,{menuButton:this,search:function(e){return t.setSearchText(e)},className:"cv-devices-search-input"}),this.emptyPlaceholder=new Xt.C(this.player_,{label:"No devices found",selected:!1,selectable:!1,multiSelectable:!1}),this.headingItem.show(),this.searchInputItem.hide(),this.emptyPlaceholder.show(),e.push(this.headingItem,this.searchInputItem,this.emptyPlaceholder),e}},{key:"pressButton",value:function(){var t;ue(le(a.prototype),"pressButton",this).call(this),this.shouldShowSearchInput()&&(null===(t=this.searchInputItem)||void 0===t||t.focus())}},{key:"setDevices",value:function(t){this.devices=t,this.render()}},{key:"setCastSession",value:function(t){this.castSession=t,this.render()}},{key:"setSearchText",value:function(t){this.searchText=t,this.render()}},{key:"getDeviceMenuItems",value:function(){return this.menu.children_.filter((function(t){return t instanceof oe}))}},{key:"render",value:function(){var t=this.getDeviceMenuItems();this.removeMenuItems(t),this.addMenuItemsForDevices(this.devices),this.toggleSearchInput(),this.toggleDeviceMenuItems(),this.toggleEmptyStatePlaceholder()}},{key:"removeMenuItems",value:function(t){var e=this;t.forEach((function(t){return e.menu.removeChild(t)}))}},{key:"addMenuItemsForDevices",value:function(t){var e=this;t.forEach((function(t){var n=new oe(e.player(),{id:t.id,label:t.name,selected:!1,multiSelectable:!1,selectable:t.available,available:t.available,type:t.type,onClick:function(){e.options_.onDeviceMenuItemClick(n,t)}});e.menu.addItem(n)}))}},{key:"shouldShowSearchInput",value:function(){return this.getDeviceMenuItems().length>=20}},{key:"toggleSearchInput",value:function(){this.shouldShowSearchInput()?(this.headingItem.hide(),this.searchInputItem.show(),this.menu.addClass("vertical-fill")):(this.headingItem.show(),this.searchInputItem.hide(),this.menu.removeClass("vertical-fill"))}},{key:"toggleDeviceMenuItems",value:function(){var t=this,e=this.getDeviceMenuItems(),n=this.shouldShowSearchInput(),r=this.searchText.toLowerCase();e.forEach((function(e){var i,o=t.devices.find((function(t){return t.id===e.options_.id}));if(o){var a=o.available,s=!n||-1!==o.name.toLowerCase().indexOf(r),u=o.id===(null===(i=t.castSession)||void 0===i?void 0:i.getDevice().id);a?e.enable():e.disable(),s?e.show():e.hide(),u?e.selected(!0):e.selected(!1)}}))}},{key:"toggleEmptyStatePlaceholder",value:function(){var t=this.getDeviceMenuItems();t.filter((function(t){return t.isVisible()})).length?this.emptyPlaceholder.hide():this.emptyPlaceholder.show(),t.length?this.emptyPlaceholder.setLabel(this.localize("No matching results")):this.emptyPlaceholder.setLabel(this.localize("No devices found"))}},{key:"getCollabsibleName",value:function(){return this.controlText_}},{key:"getCollabsibleValue",value:function(){var t,e;return null!==(e=null===(t=this.castSession)||void 0===t?void 0:t.getDevice().name)&&void 0!==e?e:" "}},{key:"showInCollabsibleMenu",value:function(){return!0}},{key:"showCollapsibleMenu",value:function(){this.handleClick()}},{key:"handleClick",value:function(){ue(le(a.prototype),"handleClick",this).call(this,null),this.options_.onClick()}}],n&&se(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(fe);he.prototype.controlText_="Devices",a.Z.registerComponent("DevicesButton",he);var pe=n(10463);function ye(t){return ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ye(t)}function de(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==ye(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==ye(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===ye(i)?i:String(i)),r)}var i}function ve(){return ve="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ge(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},ve.apply(this,arguments)}function be(t,e){return be=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},be(t,e)}function ge(t){return ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ge(t)}var me=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&be(t,e)}(a,t);var e,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=ge(r);if(i){var n=ge(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===ye(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),o.call(this,null,t)}return e=a,(n=[{key:"createEl",value:function(){return ve(ge(a.prototype),"createEl",this).call(this,"div",{className:"cv-devices-tech"})}},{key:"setPoster",value:function(t){this.poster=t,this.update()}},{key:"setDeviceName",value:function(t){this.deviceName=t,this.update()}},{key:"update",value:function(){var t=this;this.el_.innerHTML='\n <div class="cv-devices-content">\n <p>'.concat(this.localize("Currently playing on"),"</p>\n <h2>").concat(this.deviceName||"",'</h2>\n </div>\n <div class="cv-devices-background" style="background-image: url(').concat(this.poster,')"></div>\n ');var e=document.createElement("button"),n=function(e){e.stopPropagation(),t.options_.onStopCasting()};e.onclick=n,e.ontouchstart=n,e.className="stop-casting-button",e.innerHTML=this.localize("Stop casting"),this.el_.querySelector(".cv-devices-content").appendChild(e)}},{key:"play",value:function(){}}])&&de(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(a.Z.getComponent("Component"));function we(t){return we="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},we(t)}function Oe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==we(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==we(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===we(i)?i:String(i)),r)}var i}function Pe(){return Pe="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ke(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},Pe.apply(this,arguments)}function Se(t,e){return Se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Se(t,e)}function ke(t){return ke=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ke(t)}var je=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Se(t,e)}(u,t);var e,n,r,i,o,s=(i=u,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=ke(i);if(o){var n=ke(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===we(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(n=s.call(this,t,e)).featuresVolumeControl=!0,n.featuresPlaybackRate=!1,n.movingMediaElementInDOM=!1,n.featuresFullscreenResize=!0,n.featuresTimeupdateEvents=!0,n.featuresProgressEvents=!1,n.featuresNativeTextTracks=!1,n.featuresNativeAudioTracks=!1,n.featuresNativeVideoTracks=!1,n.featuresMuteControl=!0,n.featuresSourceset=!1,n.canControlPlaybackRate=!1,n.videojsPlayer=(0,a.Z)(n.options_.playerId),n.bindFunctions(),n.bindEventListeners(),n.setSource(n.options_.source),n.triggerReady(),n}return e=u,r=[{key:"canPlayType",value:function(){return""}},{key:"canPlaySource",value:function(t,e){var n;return!!Qt.getOrCreateInstance(null!==(n=null==e?void 0:e.instanceId)&&void 0!==n?n:"").getCastSession()}},{key:"isSupported",value:function(){return Qt.isActive()}}],(n=[{key:"bindFunctions",value:function(){this.bindEventListeners=this.bindEventListeners.bind(this),this.onTextTrackChanged=this.onTextTrackChanged.bind(this),this.getSelectedTextTrack=this.getSelectedTextTrack.bind(this),this.setSelectedTextTrack=this.setSelectedTextTrack.bind(this),this.showUI=this.showUI.bind(this),this.hideUI=this.hideUI.bind(this),this.dispose=this.dispose.bind(this),this.setSource=this.setSource.bind(this),this.getCastSession=this.getCastSession.bind(this)}},{key:"bindEventListeners",value:function(){var t=this,e=this.getCastSession();e&&(this.textTracks().on("change",this.onTextTrackChanged),this.videojsPlayer.one("ended",(function(){e.dispose()})),e.on("durationchange",(function(){t.trigger("durationchange")})),e.on("dispose",(function(){t.trigger("ended"),t.hideUI()})),e.on("playingchange",(function(){e.isPlaying()?(t.trigger("play"),t.trigger("playing")):t.trigger("pause")})),e.on("volumechange",(function(){t.trigger("volumechange")})),e.on("sourceloaded",(function(){t.trigger("loadeddata");var n=t.getSelectedTextTrack();n&&e.setSubtitles(n.src)})),e.on("subtitleschange",(function(){t.setSelectedTextTrack(e.getSubtitles())})))}},{key:"onTextTrackChanged",value:function(){var t,e=this.getSelectedTextTrack();null===(t=this.getCastSession())||void 0===t||t.setSubtitles(null==e?void 0:e.src)}},{key:"getSelectedTextTrack",value:function(){return pe.O.getCurrentTextTrack(this.videojsPlayer)}},{key:"setSelectedTextTrack",value:function(t){pe.O.forEachTrack(this.videojsPlayer,(function(e){e.src===t?e.mode="showing":e.mode="hidden"}))}},{key:"showUI",value:function(t){this.ui&&(this.ui.setPoster(this.options_.poster),this.ui.setDeviceName(t),this.ui.show())}},{key:"hideUI",value:function(){var t;null===(t=this.ui)||void 0===t||t.hide()}},{key:"dispose",value:function(){this.textTracks().off("change",this.onTextTrackChanged),Pe(ke(u.prototype),"dispose",this).call(this)}},{key:"createEl",value:function(){var t=this;return this.ui=this.ui||new me({onStopCasting:function(){var e;null===(e=t.getCastSession())||void 0===e||e.dispose()}}),this.ui.el()}},{key:"setSource",value:function(t){var e=this.getCastSession();e&&(this.showUI(e.getDevice().name),this.triggerReady(),this.trigger("loadstart"),e.loadSource(t.src))}},{key:"addRemoteTextTrack",value:function(t){return Pe(ke(u.prototype),"addRemoteTextTrack",this).call(this,t,!0)}},{key:"getCastSession",value:function(){var t;return Qt.getOrCreateInstance(null!==(t=this.options_.instanceId)&&void 0!==t?t:"").getCastSession()}},{key:"play",value:function(){var t;null===(t=this.getCastSession())||void 0===t||t.play()}},{key:"pause",value:function(){var t;null===(t=this.getCastSession())||void 0===t||t.pause()}},{key:"paused",value:function(){var t;return!1===(null===(t=this.getCastSession())||void 0===t?void 0:t.isPlaying())}},{key:"ended",value:function(){return void 0===this.getCastSession()}},{key:"setCurrentTime",value:function(t){var e;null===(e=this.getCastSession())||void 0===e||e.seek(null!=t?t:0)}},{key:"currentTime",value:function(){var t,e;return null!==(e=null===(t=this.getCastSession())||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}},{key:"duration",value:function(){var t,e;return null!==(e=null===(t=this.getCastSession())||void 0===t?void 0:t.getDuration())&&void 0!==e?e:0}},{key:"volume",value:function(){var t,e;return null!==(e=null===(t=this.getCastSession())||void 0===t?void 0:t.getVolume())&&void 0!==e?e:1}},{key:"setVolume",value:function(t){var e;null===(e=this.getCastSession())||void 0===e||e.setVolume(t)}},{key:"muted",value:function(){var t,e;return null!==(e=null===(t=this.getCastSession())||void 0===t?void 0:t.getMuted())&&void 0!==e&&e}},{key:"setMuted",value:function(t){var e;null===(e=this.getCastSession())||void 0===e||e.setMuted(t)}},{key:"buffered",value:function(){}},{key:"seekable",value:function(){return a.Z.createTimeRanges(0,this.duration())}},{key:"playbackRate",value:function(){return 1}},{key:"readyState",value:function(){return 4}},{key:"controls",value:function(){return!1}},{key:"playsinline",value:function(){return!0}},{key:"supportsFullScreen",value:function(){return!0}},{key:"setAutoplay",value:function(){}},{key:"preload",value:function(){}},{key:"load",value:function(){}},{key:"setPlaybackRate",value:function(){}}])&&Oe(e.prototype,n),r&&Oe(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(a.Z.getComponent("Tech"));function Ee(t){return Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ee(t)}function Te(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==Ee(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Ee(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===Ee(i)?i:String(i)),r)}var i}function xe(){return xe="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_e(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},xe.apply(this,arguments)}function Ce(t,e){return Ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ce(t,e)}function _e(t){return _e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_e(t)}a.Z.registerTech("devices",je);var Ie=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ce(t,e)}(a,t);var e,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=_e(r);if(i){var n=_e(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Ee(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(t,e){var n,r,i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,t,e)).options=e,n.instanceId=null!==(i=null===(r=n.player.options_.devices)||void 0===r?void 0:r.instanceId)&&void 0!==i?i:"",n.bindFunctions(),n.initialize(),n}return e=a,(n=[{key:"bindFunctions",value:function(){this.initialize=this.initialize.bind(this),this.onReady=this.onReady.bind(this),this.onDevicesChanged=this.onDevicesChanged.bind(this),this.onCastSessionChanged=this.onCastSessionChanged.bind(this),this.onDevicesError=this.onDevicesError.bind(this),this.reloadTech=this.reloadTech.bind(this),this.getSessionManager=this.getSessionManager.bind(this),this.dispose=this.dispose.bind(this)}},{key:"initialize",value:function(){this.player.ready(this.onReady)}},{key:"onReady",value:function(){var t=this,e=this.player.getChild("collapserator"),n=null==e?void 0:e.children().findIndex((function(t){return"CustomControlSpacer"===t.name()})),r=this.getSessionManager();if(e&&n&&-1!==n&&r){r.on("deviceschange",this.onDevicesChanged),r.on("castsessionchange",this.onCastSessionChanged),r.on("error",this.onDevicesError);var i={onClick:function(){if(t.options.viviApi&&t.options.fetchViviAccessToken&&!r.hasInstanceOfClient(Ut)){var e=new Ut({url:t.options.viviApi,fetchAccessToken:t.options.fetchViviAccessToken});r.addClient(e)}},onDeviceMenuItemClick:function(e,n){r.startCastSession({device:n,title:t.options.title})}};this.devicesButton=e.addChild("DevicesButton",i,n+1)}}},{key:"onDevicesChanged",value:function(t){var e;null===(e=this.devicesButton)||void 0===e||e.setDevices(t)}},{key:"onCastSessionChanged",value:function(t){var e;null===(e=this.devicesButton)||void 0===e||e.setCastSession(t),this.reloadTech()}},{key:"onDevicesError",value:function(t){this.player.error(t.message),this.player.pause()}},{key:"reloadTech",value:function(){var t=this.player,e=t.currentSources(),n=t.currentTime(),r=t.paused(),i=t.muted(),o=t.volume();t.src(e),t.one("playing",(function(){t.volume(o),t.muted(i),t.currentTime(n),r?t.pause():t.play()}))}},{key:"getSessionManager",value:function(){if(this.instanceId)return Qt.getOrCreateInstance(this.instanceId)}},{key:"dispose",value:function(){this.instanceId&&Qt.disposeAndRemoveInstance(this.instanceId),xe(_e(a.prototype),"dispose",this).call(this)}}])&&Te(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(a.Z.getPlugin("plugin"));function Re(t){return Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Re(t)}function Le(){Le=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),s=new _(r||[]);return i(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var h="suspendedStart",p="suspendedYield",y="executing",d="completed",v={};function b(){}function g(){}function m(){}var w={};c(w,a,(function(){return this}));var O=Object.getPrototypeOf,P=O&&O(O(I([])));P&&P!==n&&r.call(P,a)&&(w=P);var S=m.prototype=b.prototype=Object.create(w);function k(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(i,o,a,s){var u=f(t[i],t,o);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==Re(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,s)}))}s(u.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function E(e,n,r){var i=h;return function(o,a){if(i===y)throw new Error("Generator is already running");if(i===d){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=T(s,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=y;var c=f(e,n,r);if("normal"===c.type){if(i=r.done?d:p,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=d,r.method="throw",r.arg=c.arg)}}}function T(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var o=f(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(Re(e)+" is not iterable")}return g.prototype=m,i(S,"constructor",{value:m,configurable:!0}),i(m,"constructor",{value:g,configurable:!0}),g.displayName=c(m,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,u,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},k(j.prototype),c(j.prototype,s,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new j(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(S),c(S,u,"Generator"),c(S,a,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=I,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function De(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Me(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==Re(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Re(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===Re(i)?i:String(i)),r)}var i}function Ne(){return Ne="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Ve(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},Ne.apply(this,arguments)}function Be(t,e){return Be=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Be(t,e)}function Ve(t){return Ve=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ve(t)}a.Z.registerPlugin("devicesPlugin",Ie);var Ae=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Be(t,e)}(a,t);var e,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Ve(r);if(i){var n=Ve(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Re(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(t,e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),o.call(this,t,e)}return e=a,(n=[{key:"getPlayerOptions",value:function(){var t,e=Ne(Ve(a.prototype),"getPlayerOptions",this).call(this);return e.enableDevices?Object.assign(Object.assign({},e),{techOrder:["devices"].concat((t=e.techOrder,function(t){if(Array.isArray(t))return De(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return De(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?De(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),devices:{instanceId:et()}}):e}},{key:"configurePlugins",value:function(){var t;try{this.options.onClickCreateClip&&this.player.createClipButtonPlugin({onClick:this.options.onClickCreateClip}),this.options.onRequestPictureInPicture&&this.player.pictureInPicture({onRequestPictureInPicture:this.options.onRequestPictureInPicture}),(null===(t=this.options.pointsOfInterest)||void 0===t?void 0:t.length)&&this.player.pointsOfInterestPlugin({pointsOfInterest:this.options.pointsOfInterest})}catch(t){console.log("failed to register plugins",t)}}},{key:"setNextVideo",value:function(t,e,n){this.player.nextVideoPlugin&&this.player.nextVideoPlugin().setNextVideo(t,e,n)}},{key:"enablePictureInPicture",value:function(){var t=this.player.pictureInPicture();t&&t.enablePictureInPicture()}},{key:"disablePictureInPicture",value:function(){var t=this.player.pictureInPicture();t&&t.disablePictureInPicture()}},{key:"togglePictureInPicture",value:function(t){var e=this.player.pictureInPicture();e&&e.togglePictureInPicture(t)}},{key:"additionalSetup",value:function(t){var e,n,r,i,o=this,s=Object.create(null,{additionalSetup:{get:function(){return Ne(Ve(a.prototype),"additionalSetup",o)}}});return e=this,n=void 0,r=void 0,i=Le().mark((function e(){var n;return Le().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s.additionalSetup.call(this,t),this.options.showResources&&t.resources&&this.player.resourcesPlugin&&this.player.resourcesPlugin({resources:t.resources.list,imageCdnUrl:this.options.imageCdnUrl}),"MasterClip"!==t.mediaType){e.next=7;break}if(null!==(n=t.additionalData)){e.next=6;break}throw Error("Invalid clip data");case 6:this.player.clipPlugin({startTime:n.startTime,endTime:n.endTime});case 7:this.options.enableDevices&&this.player.devicesPlugin({viviApi:this.options.viviApi,fetchViviAccessToken:this.options.fetchViviAccessToken,title:t.title});case 8:case"end":return e.stop()}}),e,this)})),new(r||(r=Promise))((function(t,o){function a(t){try{u(i.next(t))}catch(t){o(t)}}function s(t){try{u(i.throw(t))}catch(t){o(t)}}function u(e){var n;e.done?t(e.value):(n=e.value,n instanceof r?n:new r((function(t){t(n)}))).then(a,s)}u((i=i.apply(e,n||[])).next())}))}},{key:"setActivityStatus",value:function(t,e){this.player.activityStatusPlugin().setActivityStatus(t,e)}}])&&Me(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(o.r),Fe=n(63816),Ze=n(14735);function Ue(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ze(t){var e,n,i,o=r.useRef(t.player.duration()-t.player.currentTime()),a=(n=r.useState(o.current),i=2,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(n,i)||function(t,e){if(t){if("string"==typeof t)return Ue(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ue(t,e):void 0}}(n,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=a[0],u=a[1];function c(){var e=t.player.duration()-t.player.currentTime();u(e),e>o.current&&(o.current=e)}if(r.useEffect((function(){return t.player.on("timeupdate",c),function(){t.player.off("timeupdate",c)}}),[]),!t.nextVideo||!t.onPlayNext)return r.createElement(r.Fragment,null);var l=Math.ceil(s),f=1===l?"second":"seconds";return r.createElement(r.Fragment,null,r.createElement("div",{className:"cv-up-next-container"},r.createElement("div",{className:"cv-cancel-up-next cursor-pointer",role:"button",onClick:t.onCancel},"×"),r.createElement("div",{className:"cv-up-next-heading"},"Up next in ",l," ",f,":"),r.createElement("div",{className:"cv-up-next-image cursor-pointer",onClick:t.onPlayNext,style:{backgroundImage:"url(".concat(null===(e=t.nextVideo)||void 0===e?void 0:e.thumbnailUrl,")")}}),r.createElement("div",{className:"cv-up-next-title"},t.nextVideo.name)))}function Ge(t){return Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ge(t)}function qe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==Ge(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Ge(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===Ge(i)?i:String(i)),r)}var i}function He(){return He="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Ye(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},He.apply(this,arguments)}function We(t,e){return We=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},We(t,e)}function Ye(t){return Ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ye(t)}a.Z.registerComponent("UpNext",(0,Ze.Z)((function(t,e){return r.createElement(ze,Object.assign({player:t},e))})));var $e=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&We(t,e)}(s,t);var e,n,r,i,o=(r=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Ye(r);if(i){var n=Ye(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Ge(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function s(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(n=o.call(this,t,e)).playNext=t.nextVideoPlugin().getShouldPlayNext(),n.toggle(n.playNext),n}return e=s,(n=[{key:"handleToggle",value:function(){this.toggle(!this.playNext)}},{key:"toggle",value:function(t){t?this.toggleOn():this.toggleOff()}},{key:"toggleOn",value:function(){this.playNext=!0,a.Z.dom.addClass(this.toggleEl,"on"),this.player_.nextVideoPlugin().setShouldPlayNext(this.playNext,!0)}},{key:"toggleOff",value:function(){this.playNext=!1,a.Z.dom.removeClass(this.toggleEl,"on"),this.player_.nextVideoPlugin().setShouldPlayNext(this.playNext,!0)}},{key:"handleClick",value:function(t){t.stopImmediatePropagation()}},{key:"createEl",value:function(t,e,n){this.handlerBound||(this.handleToggle=this.handleToggle.bind(this),this.handlerBound=!0),this.toggleEl&&this.toggleEl.removeEventListener("click",this.handleToggle),this.toggleEl=a.Z.dom.createEl("div",{className:"custom-toggle toggle-option float-right",innerHTML:'<span class="handle"></span></div>'}),this.toggleEl.addEventListener("click",this.handleToggle);var r=He(Ye(s.prototype),"createEl",this).call(this,t,{className:"vjs-menu-item cv-cog-menu-item",innerHTML:'\n <span class="vjs-menu-item-text">Play next video</span>\n <span class="cv-toggle-container"></span>'},n);return r.children[1].appendChild(this.toggleEl),r}}])&&qe(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(a.Z.getComponent("MenuItem"));function Qe(t){return Qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qe(t)}function Je(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==Qe(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Qe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===Qe(i)?i:String(i)),r)}var i}function Xe(){return Xe="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=en(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},Xe.apply(this,arguments)}function Ke(t,e){return Ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ke(t,e)}function tn(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function en(t){return en=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},en(t)}a.Z.registerComponent("NextVideoMenuItem",$e);var nn="cv-persisttest",rn="cv-play-next-video",on=a.Z.getPlugin("plugin"),an=(a.Z.getComponent("MenuItem"),a.Z.getComponent("NextVideoMenuItem")),sn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ke(t,e)}(a,t);var e,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=en(r);if(i){var n=en(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Qe(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return tn(t)}(this,t)});function a(t){var e;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=o.call(this,t)).setShouldPlayNext=e.setShouldPlayNext.bind(tn(e)),e.getShouldPlayNext=e.getShouldPlayNext.bind(tn(e)),e.setChapterTrack=e.setChapterTrack.bind(tn(e)),e.onTimeUpdate=e.onTimeUpdate.bind(tn(e)),e.hasLocalStorage=e.testHasLocalStorage(),e.shouldPlayNextVideo=!1,e.hasLocalStorage){var n=window.localStorage.getItem(rn);e.shouldPlayNextVideo="true"===n}return t.ready((function(){e.initialize()})),e}return e=a,(n=[{key:"initialize",value:function(){this.player.isDisposed()||(pe.O.useTrack(this.player,"chapters",null,this.setChapterTrack),this.bindListeners())}},{key:"setNextVideo",value:function(t,e,n){var r;this.nextVideo=t,this.callback=n,e&&this.setShouldPlayNext(!0),(null===(r=this.player.getChild("collapserator"))||void 0===r?void 0:r.getChild("cogButton")).addItem({index:0,ctor:an,name:"NextVideoMenuItem"})}},{key:"getShouldPlayNext",value:function(){return this.shouldPlayNextVideo}},{key:"setShouldPlayNext",value:function(t,e){this.shouldPlayNextVideo=t,this.hasLocalStorage&&e&&window.localStorage.setItem(rn,t.toString())}},{key:"setChapterTrack",value:function(t){this.chapterTrack=t}},{key:"bindListeners",value:function(){this.player.on("timeupdate",this.onTimeUpdate)}},{key:"dispose",value:function(){this.player.off("timeupdate",this.onTimeUpdate),Xe(en(a.prototype),"dispose",this).call(this)}},{key:"onTimeUpdate",value:function(){var t,e,n;if(!this.player.pictureInPicture||!this.player.isInPictureInPicture())if(this.getShouldPlayNext()){if(this.player.ended())return this.callback(),void this.hideUpNext();if(!(this.upNextRendered&&this.player.currentTime()>this.upNextTimepoint)){var r=(null===(e=null===(t=this.chapterTrack)||void 0===t?void 0:t.activeCues)||void 0===e?void 0:e.length)&&this.chapterTrack.activeCues[0];"credits"===(null===(n=null==r?void 0:r.text)||void 0===n?void 0:n.toLowerCase())||this.player.currentTime()>=this.player.duration()-5?this.showUpNext():this.hideUpNext()}}else this.hideUpNext()}},{key:"showUpNext",value:function(){var t=this;this.upNextRendered||(this.upNextRendered=!0,this.upNextTimepoint=this.player.currentTime(),this.player.addChild("UpNext",{nextVideo:this.nextVideo,onPlayNext:this.callback,onCancel:function(){t.hideUpNext(),t.setShouldPlayNext(!1)}}))}},{key:"hideUpNext",value:function(){if(this.upNextRendered){this.upNextRendered=!1,this.upNextTimepoint=null;var t=this.player.getChild("UpNext");t&&this.player.removeChild(t)}}},{key:"testHasLocalStorage",value:function(){try{return window.localStorage.setItem(nn,"persistPlayNext"),window.localStorage.removeItem(nn),!0}catch(t){return!1}}}])&&Je(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(on);a.Z.registerPlugin("nextVideoPlugin",sn);var un=n(26733);function cn(t){return cn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cn(t)}function ln(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==cn(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==cn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===cn(i)?i:String(i)),r)}var i}function fn(t,e){return fn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},fn(t,e)}function hn(t){return hn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},hn(t)}function pn(t){return i().createElement("div",{className:"cv-resource-item"},i().createElement(un.s,{data:t.resource,imageCdnUrl:t.imageCdnUrl}))}var yn=(0,Ze.Z)((function(t,e){return i().createElement(pn,Object.assign({},e))})),dn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&fn(t,e)}(s,t);var e,n,r,i,o=(r=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=hn(r);if(i){var n=hn(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===cn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function s(t,e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),n=o.call(this,t,e);var r=new yn(t,{resource:e.resource,imageCdnUrl:e.imageCdnUrl});return n.addChild(r),n}return e=s,(n=[{key:"createEl",value:function(){return a.Z.dom.createEl("div")}},{key:"handleClick",value:function(t){t.stopImmediatePropagation(),this.options_.downloadResource(this.options_.resource)}}])&&ln(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(a.Z.getComponent("ClickableComponent"));function vn(t){return vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vn(t)}function bn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==vn(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==vn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===vn(i)?i:String(i)),r)}var i}function gn(){return gn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=wn(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},gn.apply(this,arguments)}function mn(t,e){return mn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},mn(t,e)}function wn(t){return wn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wn(t)}var On=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&mn(t,e)}(s,t);var e,n,r,i,o=(r=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=wn(r);if(i){var n=wn(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===vn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function s(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(t=o.apply(this,arguments)).alwaysCollapsed=!1,t.isCollapsed=!1,t.isCollabsible=!0,t}return e=s,(n=[{key:"buildWrapperCSSClass",value:function(){return"cv-menu-small ".concat(gn(wn(s.prototype),"buildWrapperCSSClass",this).call(this))}},{key:"buildCSSClass",value:function(){return"cv-resources-button ".concat(gn(wn(s.prototype),"buildCSSClass",this).call(this))}},{key:"update",value:function(){gn(wn(s.prototype),"update",this).call(this)}},{key:"createMenu",value:function(){return this.options_.title="Resources",gn(wn(s.prototype),"createMenu",this).call(this)}},{key:"createItems",value:function(){var t=this,e=[];return this.options_.resources.forEach((function(n){var r=new dn(t.player(),{resource:n,imageCdnUrl:t.options_.imageCdnUrl,downloadResource:function(e){return t.downloadResource(e)}});e.push(r)})),e}},{key:"downloadResource",value:function(t){this.getDownloadIframe().src=t.url}},{key:"getDownloadIframe",value:function(){return this.downloadIframe||(this.downloadIframe=a.Z.dom.createEl("iframe"),this.downloadIframe.style.display="none",a.Z.dom.appendContent(a.Z.dom.$("body"),this.downloadIframe)),this.downloadIframe}},{key:"getCollabsibleName",value:function(){return this.controlText_}},{key:"getCollabsibleValue",value:function(){return""}},{key:"showInCollabsibleMenu",value:function(){return!0}},{key:"showCollapsibleMenu",value:function(){gn(wn(s.prototype),"handleClick",this).call(this,null)}}])&&bn(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(a.Z.getComponent("MenuButton"));function Pn(t){return Pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pn(t)}function Sn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==Pn(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Pn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===Pn(i)?i:String(i)),r)}var i}function kn(t,e){return kn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},kn(t,e)}function jn(t){return jn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},jn(t)}On.prototype.controlText_="Resources",a.Z.registerComponent("ResourcesButton",On);var En=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&kn(t,e)}(a,t);var e,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=jn(r);if(i){var n=jn(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Pn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,t,e)).options=e,t.ready((function(){return n.onReady()})),n}return e=a,(n=[{key:"onReady",value:function(){if(this.options.resources.length){var t=this.player.getChild("collapserator");t.addChild("ResourcesButton",{resources:this.options.resources,imageCdnUrl:this.options.imageCdnUrl},t.children_.length-3)}}}])&&Sn(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(a.Z.getPlugin("plugin"));a.Z.registerPlugin("resourcesPlugin",En);var Tn=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function xn(t){var e=t.className,n=void 0===e?"":e,r=t.playerApi,o=t.onReady,a=t.onDispose,s=Tn(t,["className","playerApi","onReady","onDispose"]),u=i().useRef();return i().useEffect((function(){if(u){var t=new Ae(u.current,Object.assign(Object.assign({},s),{playerApi:r}));return o&&t.ready((function(){o((0,Fe.G)(t))})),a&&t.one("dispose",a),function(){null==t||t.dispose()}}}),[t.viewKey]),i().createElement("div",{ref:u,className:n})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9242],{9242:(e,t,n)=>{n.r(t),n.d(t,{JoinClassroomPromptView:()=>L});var r=n(1024),o=n.n(r),a=n(58566),u=n(23481),i=n(81886),c=n(20354);const l={input:"Aptlf",codeInputContainer:"cRvSA"};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==f(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===f(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,u,i=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(i.push(r.value),i.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(l)throw o}}return i}}(e,t)||v(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var y,g=/^[0-9]$/,b=/^\d+$/,h=8;function p(e){var t,n=m(o().useState(""),2),r=n[0],a=n[1],u=m(o().useState(""),2),i=u[0],c=u[1],f=m(o().useState(""),2),d=f[0],p=f[1],S=m(o().useState(""),2),E=S[0],w=S[1],C=m(o().useState(""),2),N=C[0],x=C[1],k=o().useRef(null),O=o().useRef(null),j=o().useRef(null),A=o().useRef(null),I=o().useRef(null);o().useEffect((function(){var t=(r||"X")+(i||"X")+(d||"X")+(E||"X")+(N||"X");e.onChange(t)}),[r,i,d,E,N]);var P=(s(t={},y.One,{getNext:function(){return P[y.Two]},getPrevious:function(){return null},value:r,setState:a,focus:function(){return k.current.focus()}}),s(t,y.Two,{getNext:function(){return P[y.Three]},getPrevious:function(){return P[y.One]},value:i,setState:c,focus:function(){return O.current.focus()}}),s(t,y.Three,{getNext:function(){return P[y.Four]},getPrevious:function(){return P[y.Two]},value:d,setState:p,focus:function(){return j.current.focus()}}),s(t,y.Four,{getNext:function(){return P[y.Five]},getPrevious:function(){return P[y.Three]},value:E,setState:w,focus:function(){return A.current.focus()}}),s(t,y.Five,{getNext:function(){return null},getPrevious:function(){return P[y.Four]},value:N,setState:x,focus:function(){return I.current.focus()}}),t);function T(e,t){var n,r;if(g.test(e.key)||e.keyCode===h){var o=P[t];if(e.keyCode===h)return o.setState(""),void(null===(n=o.getPrevious())||void 0===n||n.focus());if(e.currentTarget.selectionStart>0){var a=o.getNext();if(!a)return;return a.setState(e.key),void(a.getNext()?a.getNext().focus():a.focus())}o.setState(e.key),null===(r=o.getNext())||void 0===r||r.focus()}}function D(e,t){e.preventDefault();var n=e.clipboardData.getData("text").trim();if(b.test(n)){var r=n.split("");if(6!==r.length){var o=P[t];o.value&&o.getNext()&&(o=o.getNext());do{o.focus(),o.setState(r.shift()),o=o.getNext()}while(r.length&&o)}else{var a,u=P[y.One],i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=v(e))){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,i=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){i=!0,a=e},f:function(){try{u||null==n.return||n.return()}finally{if(i)throw a}}}}(r);try{for(i.s();!(a=i.n()).done;){var c=a.value;u.setState(c),null==(u=u.getNext())||u.focus()}}catch(e){i.e(e)}finally{i.f()}}}}var U={className:"form-control h-100 font-weight-500 mx-1 text-center ".concat(l.input," ").concat(e.hasError?"is-invalid":""),autoCorrect:"off",inputMode:"numeric",pattern:"[0-9]*",autoCapitalize:"off",autoComplete:"off"};return o().createElement("div",{className:"".concat(l.codeInputContainer," d-flex justify-content-between")},o().createElement("input",Object.assign({onPaste:function(e){return D(e,y.One)},onKeyDown:function(e){return T(e,y.One)},value:r,ref:k,onChange:function(){},autoComplete:"off"},U)),o().createElement("input",Object.assign({onPaste:function(e){return D(e,y.Two)},onKeyDown:function(e){return T(e,y.Two)},value:i,ref:O,onChange:function(){}},U)),o().createElement("input",Object.assign({onPaste:function(e){return D(e,y.Three)},onKeyDown:function(e){return T(e,y.Three)},value:d,ref:j,onChange:function(){}},U)),o().createElement("input",Object.assign({onPaste:function(e){return D(e,y.Four)},onKeyDown:function(e){return T(e,y.Four)},value:E,ref:A,onChange:function(){}},U)),o().createElement("input",Object.assign({onPaste:function(e){return D(e,y.Five)},onKeyDown:function(e){return T(e,y.Five)},value:N,ref:I,onChange:function(){}},U)))}!function(e){e.One="verify-1",e.Two="verify-2",e.Three="verify-3",e.Four="verify-4",e.Five="verify-5"}(y||(y={}));var S=n(10874),E=n(2102),w=n(2786),C=n(31949),N=n(58130),x=n(83421),k=n(14070),O=n(97291),j=n(88630);const A={logo:"FSXXf",formContainer:"yEBMm",backButton:"DRrEn",codeInputContainer:"gSuIK"};function I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,u,i=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(i.push(r.value),i.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var T=u.T.encloseNamespace("classrooms.joinClassroomPrompt"),D={application:O.O.LAUNCHPAD,action:k.e.Launchpad.LOGIN_LANDING,params:{showJoinCode:!0}},U={application:O.O.DASHBOARD,action:k.e.Dashboard.HOME},F="X";function L(){var e,t=(0,a.useDispatch)(),n=I(o().useState(""),2),r=n[0],u=n[1],l=I(o().useState(""),2),f=l[0],s=l[1],m=I(o().useState(!1),2),v=m[0],d=m[1],y=c.a.useBasicFetch(C.N.currentUser());function g(){i.Q.C$.trigger({application:O.O.LAUNCHPAD,action:k.e.Launchpad.JOIN_CLASSROOM,args:[r]})}function b(){s(T("invalid")),d(!1)}return o().createElement(x.Z,null,o().createElement("div",{className:"".concat(A.formContainer," m-auto")},o().createElement("form",{onSubmit:function(e){e.preventDefault(),d(!0),c.a.fetch(t,j.F.checkJoinCode(r,g,b))}},o().createElement("div",{className:"text-center position-relative mb-3"},o().createElement("span",{className:"".concat(A.backButton," position-absolute")},o().createElement(S.h,{appLink:(null===(e=y.data)||void 0===e?void 0:e.isAuthenticated)?U:D,svgName:N.vn.ChevronLeft})),o().createElement("span",{className:"".concat(A.logo," d-inline-block")},o().createElement(w.$S,null))),o().createElement("p",{className:"text-center"},T("enterClassCode")),o().createElement("div",{className:"mx-4"},o().createElement(p,{onChange:function(e){s(""),u(e)},hasError:!!f}),!!f&&o().createElement("div",{className:"d-block invalid-feedback"},f)),o().createElement(E.m,{showSpinner:v,className:"d-block btn w-75 mt-3 mx-auto btn-lg btn-dark",type:"submit",disabled:r.includes(F)},T("next")))))}},83421:(e,t,n)=>{n.d(t,{Z:()=>d});var r=n(1024),o=n.n(r),a=n(54610),u=n(4594),i=n(67453),c=n(99742);const l={left:"vIypY",leftTextImage:"YViNj",right:"MkD4u",blur:"X6mCh",imageContainer:"bc7kz",imagePosition:"JOhEj",image:"Ef2QR",thumbnail:"Gdurb",tallposter:"fjVNK",cover:"o3j31",linksContainer:"AT9Dk"};function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,u,i=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(i.push(r.value),i.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var m=[{bgUrl:c.W.LaunchPad.BG_1},{bgUrl:c.W.LaunchPad.BG_2},{bgUrl:c.W.LaunchPad.BG_3},{bgUrl:c.W.LaunchPad.BG_4},{bgUrl:c.W.LaunchPad.BG_5}];function v(e){switch(e){case u.E.Video:case u.E.Interactive:case u.E.Clip:return l.thumbnail;case u.E.Subject:case u.E.Playlist:return l.cover;case u.E.Series:return l.tallposter;default:return""}}function d(e){var t,n=f(o().useState(!1),2),r=n[0],u=n[1],c=f(o().useState(""),2),s=c[0],d=c[1],y=f(o().useState(""),2),g=y[0],b=y[1],h=i.j.createUrl(e.imageUrl,{size:a.h2.Large}),p=m;return o().useEffect((function(){if(!h&&p&&0!==p.length){var e,t=(e=p)[Math.floor(Math.random()*e.length)];t.bgUrl&&d(t.bgUrl),t.textUrl&&b(t.textUrl)}}),[]),o().useEffect((function(){if(h){var e=new Image;return e.onload=function(){return u(!0)},e.src=h,function(){return e.onload=null}}}),[]),o().createElement("div",{className:"d-flex"},e.leftComponent?e.leftComponent():o().createElement("div",{className:"".concat(l.left," bg-light"),style:{backgroundImage:"url('".concat(s,"')")}},g&&o().createElement("div",{className:l.leftTextImage,style:{backgroundImage:"url('".concat(g,"')")}}),r&&o().createElement(o().Fragment,null,o().createElement("div",{className:l.blur,style:{backgroundImage:"url('".concat(h,"')")}}),o().createElement("div",{className:"".concat(l.imageContainer," ").concat(v(e.objectType))},o().createElement("div",{className:l.imagePosition},o().createElement("img",{className:l.image,src:h,alt:e.title}))))),o().createElement("div",{className:"".concat(l.right," bg-white d-flex flex-column")},o().createElement("div",{className:"position-absolute d-flex align-items-center ".concat(l.linksContainer)},null===(t=e.links)||void 0===t?void 0:t.map((function(e,t){return e.hide?o().createElement(o().Fragment,{key:t}):o().createElement("a",{key:t,href:e.url,className:"info-link font-weight-500",onClick:e.onClick},e.text)}))),e.children))}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9264],{75608:(e,t,a)=>{a.d(t,{a:()=>d});var r=a(20354),n=a(30439),l=a(4594),c=a(21750),o=a(43012),i=a(20768),s=a(74357),u=a(60011),m=a(31949),f=a(1575);function d(e){var t=r.a.useBasicFetch(m.N.currentUser()),a=r.a.useBasicFetch(n.o.getShareObject(e)),d=function(){if(!a.data||!t.data)return null;switch(a.data.objectTypeId){case l.E.Video:return f.R.publicVideo(a.data.objectId,e);case l.E.Clip:return o.e.publicClip(a.data.objectId,e);case l.E.Interactive:return i.b.publicInteractiveMetadata(a.data.objectId,e);case l.E.Playlist:return s.C.getSharedPlaylist(a.data.objectId,e);case l.E.Subject:return c.x.classification(a.data.objectId,t.data.id);case l.E.Series:return u.J.sharedSeries(a.data.objectId,e)}}();return r.a.useBasicFetch(d).data}},69264:(e,t,a)=>{a.r(t),a.d(t,{PasswordProtectedShareLinkView:()=>C});var r=a(1024),n=a.n(r),l=a(99910),c=a(58566),o=a(23481),i=a(57900),s=a(81886),u=a(20354),m=a(30439),f=a(64249),d=a(11607),b=a(2102),g=a(83914),h=a(2786),p=a(83345),v=a(58130),y=a(83421),E=a(75608);const S={logo:"gaVVw",formContainer:"ByuHb",toggleEye:"t0aye"};function I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var r,n,l,c,o=[],i=!0,s=!1;try{if(l=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;i=!1}else for(;!(i=(r=l.call(a)).done)&&(o.push(r.value),o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{if(!i&&null!=a.return&&(c=a.return(),Object(c)!==c))return}finally{if(s)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return j(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?j(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a<t;a++)r[a]=e[a];return r}var k="share.passwordProtectedShareLink",w=o.T.encloseNamespace(k);function C(e){var t=I(n().useState(""),2),a=t[0],r=t[1],o=I(n().useState(!1),2),j=o[0],C=o[1],N=I(n().useState(!1),2),x=N[0],P=N[1],U=I(n().useState(""),2),A=U[0],O=U[1],L=(0,E.a)(e.shareId),V=(0,c.useDispatch)();return L?n().createElement(y.Z,{title:L.name,imageUrl:f.I.getImageUrl(L),objectType:L.typeId},n().createElement("div",{className:"".concat(S.formContainer," m-auto")},n().createElement("div",{className:"".concat(S.logo," mb-4 mx-auto")},n().createElement(h.$S,null)),n().createElement("p",{className:"mb-3"},n().createElement(p.x,{namespace:k,phrase:"info"})),n().createElement("form",{onSubmit:function(t){t.preventDefault(),a&&(C(!0),u.a.fetch(V,m.o.checkPassword(e.shareId,a,(function(t){if(t.success){i.qS.set(e.shareId,a);var r=s.Q.C$.getHref(e.appLink);s.Q.Ab.PageLoad(r)}else O(w("incorrectPasswordErrorMessage")),C(!1)}),(function(){O(w("ajaxErrorMessage")),C(!1)}))))},className:"position-relative"},n().createElement("div",{className:"form-group"},n().createElement("input",{id:"link-password",type:x?"text":"password",className:"form-control form-control-lg ".concat(A?"is-invalid":""),placeholder:w("placeholder"),onChange:function(e){return r(e.target.value)},value:a,autoComplete:"off"}),A&&n().createElement(l.Form.Control.Feedback,{type:"invalid",className:"mb-n3"},A)),n().createElement(d.L,{className:"btn btn-link ".concat(S.toggleEye),onClick:function(){return P((function(e){return!e}))}},n().createElement(g.x,{svgName:x?v.vn.VisibleOn:v.vn.VisibleOff})),n().createElement(b.m,{variant:"primary",showSpinner:j,type:"submit",className:"w-100 mt-3",disabled:j||!a},n().createElement(p.x,{namespace:k,phrase:"confirm"}))))):n().createElement(n().Fragment,null)}},83421:(e,t,a)=>{a.d(t,{Z:()=>b});var r=a(1024),n=a.n(r),l=a(54610),c=a(4594),o=a(67453),i=a(99742);const s={left:"vIypY",leftTextImage:"YViNj",right:"MkD4u",blur:"X6mCh",imageContainer:"bc7kz",imagePosition:"JOhEj",image:"Ef2QR",thumbnail:"Gdurb",tallposter:"fjVNK",cover:"o3j31",linksContainer:"AT9Dk"};function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var r,n,l,c,o=[],i=!0,s=!1;try{if(l=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;i=!1}else for(;!(i=(r=l.call(a)).done)&&(o.push(r.value),o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{if(!i&&null!=a.return&&(c=a.return(),Object(c)!==c))return}finally{if(s)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?m(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a<t;a++)r[a]=e[a];return r}var f=[{bgUrl:i.W.LaunchPad.BG_1},{bgUrl:i.W.LaunchPad.BG_2},{bgUrl:i.W.LaunchPad.BG_3},{bgUrl:i.W.LaunchPad.BG_4},{bgUrl:i.W.LaunchPad.BG_5}];function d(e){switch(e){case c.E.Video:case c.E.Interactive:case c.E.Clip:return s.thumbnail;case c.E.Subject:case c.E.Playlist:return s.cover;case c.E.Series:return s.tallposter;default:return""}}function b(e){var t,a=u(n().useState(!1),2),r=a[0],c=a[1],i=u(n().useState(""),2),m=i[0],b=i[1],g=u(n().useState(""),2),h=g[0],p=g[1],v=o.j.createUrl(e.imageUrl,{size:l.h2.Large}),y=f;return n().useEffect((function(){if(!v&&y&&0!==y.length){var e,t=(e=y)[Math.floor(Math.random()*e.length)];t.bgUrl&&b(t.bgUrl),t.textUrl&&p(t.textUrl)}}),[]),n().useEffect((function(){if(v){var e=new Image;return e.onload=function(){return c(!0)},e.src=v,function(){return e.onload=null}}}),[]),n().createElement("div",{className:"d-flex"},e.leftComponent?e.leftComponent():n().createElement("div",{className:"".concat(s.left," bg-light"),style:{backgroundImage:"url('".concat(m,"')")}},h&&n().createElement("div",{className:s.leftTextImage,style:{backgroundImage:"url('".concat(h,"')")}}),r&&n().createElement(n().Fragment,null,n().createElement("div",{className:s.blur,style:{backgroundImage:"url('".concat(v,"')")}}),n().createElement("div",{className:"".concat(s.imageContainer," ").concat(d(e.objectType))},n().createElement("div",{className:s.imagePosition},n().createElement("img",{className:s.image,src:v,alt:e.title}))))),n().createElement("div",{className:"".concat(s.right," bg-white d-flex flex-column")},n().createElement("div",{className:"position-absolute d-flex align-items-center ".concat(s.linksContainer)},null===(t=e.links)||void 0===t?void 0:t.map((function(e,t){return e.hide?n().createElement(n().Fragment,{key:t}):n().createElement("a",{key:t,href:e.url,className:"info-link font-weight-500",onClick:e.onClick},e.text)}))),e.children))}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9273],{19273:(e,t,a)=>{a.r(t),a.d(t,{ShareLinkSignIn:()=>I});var n=a(1024),r=a.n(n),c=a(23481),l=a(65858),i=a(64249),o=a(36848),s=a(96022),u=a(2786),d=a(83345),m=a(4594),f=a(83421),g=a(14070),h=a(97291),b=a(7179),p=a(75608);const v={logo:"XVbHC",container:"vxDwV"};var E="launchpad.shareLinkSignIn";function I(e){var t=e.shareId,a=e.redirectUrl,n=e.customerId,I=(0,b.P)({id:null==C?void 0:C.id,app:(0,b.e)(null==C?void 0:C.typeId),shareId:t},l.LZ.Launchpad),y=I.deepLink,k=I.showDeepLink,j=I.onClickDeepLink,C=(0,p.a)(t);return C?r().createElement(f.Z,{title:C.name,imageUrl:i.I.getImageUrl(C),objectType:C.typeId,links:[{text:c.T.getPhrase(E,"openInApp"),url:y,hide:!k,onClick:j}]},r().createElement("div",{className:"".concat(v.container," m-auto")},r().createElement("div",{className:"".concat(v.logo," mb-4 mx-auto")},r().createElement(u.$S,null)),!!C.name&&r().createElement("h1",{className:"h3"},C.typeId===m.E.Video&&r().createElement(s.M,{video:C,analyticsOptions:{},size:"sm"}),C.name),"description"in C&&r().createElement("p",{className:"mb-0 clamp-3"},C.description),r().createElement(o.F,{className:"btn btn-dark btn-lg w-100 mt-4",appLink:{application:h.O.DEFAULT,action:g.e.Default.LOG_IN,params:{redirectUrl:a,customerId:n}}},r().createElement(d.x,{namespace:E,phrase:"signInToWatch"})))):r().createElement(r().Fragment,null)}},75608:(e,t,a)=>{a.d(t,{a:()=>f});var n=a(20354),r=a(30439),c=a(4594),l=a(21750),i=a(43012),o=a(20768),s=a(74357),u=a(60011),d=a(31949),m=a(1575);function f(e){var t=n.a.useBasicFetch(d.N.currentUser()),a=n.a.useBasicFetch(r.o.getShareObject(e)),f=function(){if(!a.data||!t.data)return null;switch(a.data.objectTypeId){case c.E.Video:return m.R.publicVideo(a.data.objectId,e);case c.E.Clip:return i.e.publicClip(a.data.objectId,e);case c.E.Interactive:return o.b.publicInteractiveMetadata(a.data.objectId,e);case c.E.Playlist:return s.C.getSharedPlaylist(a.data.objectId,e);case c.E.Subject:return l.x.classification(a.data.objectId,t.data.id);case c.E.Series:return u.J.sharedSeries(a.data.objectId,e)}}();return n.a.useBasicFetch(f).data}},83421:(e,t,a)=>{a.d(t,{Z:()=>g});var n=a(1024),r=a.n(n),c=a(54610),l=a(4594),i=a(67453),o=a(99742);const s={left:"vIypY",leftTextImage:"YViNj",right:"MkD4u",blur:"X6mCh",imageContainer:"bc7kz",imagePosition:"JOhEj",image:"Ef2QR",thumbnail:"Gdurb",tallposter:"fjVNK",cover:"o3j31",linksContainer:"AT9Dk"};function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,c,l,i=[],o=!0,s=!1;try{if(c=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;o=!1}else for(;!(o=(n=c.call(a)).done)&&(i.push(n.value),i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{if(!o&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?d(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var m=[{bgUrl:o.W.LaunchPad.BG_1},{bgUrl:o.W.LaunchPad.BG_2},{bgUrl:o.W.LaunchPad.BG_3},{bgUrl:o.W.LaunchPad.BG_4},{bgUrl:o.W.LaunchPad.BG_5}];function f(e){switch(e){case l.E.Video:case l.E.Interactive:case l.E.Clip:return s.thumbnail;case l.E.Subject:case l.E.Playlist:return s.cover;case l.E.Series:return s.tallposter;default:return""}}function g(e){var t,a=u(r().useState(!1),2),n=a[0],l=a[1],o=u(r().useState(""),2),d=o[0],g=o[1],h=u(r().useState(""),2),b=h[0],p=h[1],v=i.j.createUrl(e.imageUrl,{size:c.h2.Large}),E=m;return r().useEffect((function(){if(!v&&E&&0!==E.length){var e,t=(e=E)[Math.floor(Math.random()*e.length)];t.bgUrl&&g(t.bgUrl),t.textUrl&&p(t.textUrl)}}),[]),r().useEffect((function(){if(v){var e=new Image;return e.onload=function(){return l(!0)},e.src=v,function(){return e.onload=null}}}),[]),r().createElement("div",{className:"d-flex"},e.leftComponent?e.leftComponent():r().createElement("div",{className:"".concat(s.left," bg-light"),style:{backgroundImage:"url('".concat(d,"')")}},b&&r().createElement("div",{className:s.leftTextImage,style:{backgroundImage:"url('".concat(b,"')")}}),n&&r().createElement(r().Fragment,null,r().createElement("div",{className:s.blur,style:{backgroundImage:"url('".concat(v,"')")}}),r().createElement("div",{className:"".concat(s.imageContainer," ").concat(f(e.objectType))},r().createElement("div",{className:s.imagePosition},r().createElement("img",{className:s.image,src:v,alt:e.title}))))),r().createElement("div",{className:"".concat(s.right," bg-white d-flex flex-column")},r().createElement("div",{className:"position-absolute d-flex align-items-center ".concat(s.linksContainer)},null===(t=e.links)||void 0===t?void 0:t.map((function(e,t){return e.hide?r().createElement(r().Fragment,{key:t}):r().createElement("a",{key:t,href:e.url,className:"info-link font-weight-500",onClick:e.onClick},e.text)}))),e.children))}}}]);