@clickview/lite 0.31.0 → 0.31.2-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (484) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/css/{2701-lite-62beed2a51.chunk.css → 3091-lite-e0fb499d6e.chunk.css} +1 -0
  3. package/dist/css/{3125-lite-29265dec67.chunk.css → 5171-lite-231fb4351a.chunk.css} +2 -0
  4. package/dist/css/{7203-lite-65aaa80b60.chunk.css → 7484-lite-ee2799eab2.chunk.css} +1 -0
  5. package/dist/css/{4026-lite-62beed2a51.chunk.css → 9744-lite-e0fb499d6e.chunk.css} +1 -0
  6. package/dist/languages/en.json +1 -1
  7. package/dist/scripts/1064-9bc00d1119-lite.chunk.js +1 -0
  8. package/dist/scripts/1090-9aace3f5ec-lite.chunk.js +1 -0
  9. package/dist/scripts/{1106-bff7c39251-lite.chunk.js → 1106-847d0bf2b8-lite.chunk.js} +1 -1
  10. package/dist/scripts/1200-f30709bde3-lite.chunk.js +2 -0
  11. package/dist/scripts/1285-19705b2fc5-lite.chunk.js +1 -0
  12. package/dist/scripts/1291-1d298ab17d-lite.chunk.js +1 -0
  13. package/dist/scripts/{1354-635a2024da-lite.chunk.js → 1354-adb83a2eaa-lite.chunk.js} +2 -2
  14. package/dist/scripts/1366-9e3f333cdc-lite.chunk.js +2 -0
  15. package/dist/scripts/147-28a27fe38b-lite.chunk.js +1 -0
  16. package/dist/scripts/1475-255496ec92-lite.chunk.js +1 -0
  17. package/dist/scripts/1517-cb081d1c58-lite.chunk.js +1 -0
  18. package/dist/scripts/1518-b3ed8fd9e5-lite.chunk.js +1 -0
  19. package/dist/scripts/1526-be5361acbf-lite.chunk.js +1 -0
  20. package/dist/scripts/1536-a8c6826e33-lite.chunk.js +1 -0
  21. package/dist/scripts/156-13c7d1ca82-lite.chunk.js +1 -0
  22. package/dist/scripts/{1592-dcc4772f16-lite.chunk.js → 1592-e5a0fbaee2-lite.chunk.js} +2 -2
  23. package/dist/scripts/162-c62a92235f-lite.chunk.js +2 -0
  24. package/dist/scripts/1628-3d2ab4a7f9-lite.chunk.js +1 -0
  25. package/dist/scripts/1655-4bb18c6f9b-lite.chunk.js +1 -0
  26. package/dist/scripts/1726-ce7ab78bcc-lite.chunk.js +1 -0
  27. package/dist/scripts/{1781-c10bf95537-lite.chunk.js → 1781-d407160975-lite.chunk.js} +1 -1
  28. package/dist/scripts/1794-e84731e75e-lite.chunk.js +1 -0
  29. package/dist/scripts/1818-a83253fc4a-lite.chunk.js +1 -0
  30. package/dist/scripts/1820-b59ec08f92-lite.chunk.js +1 -0
  31. package/dist/scripts/1863-0ff9f34469-lite.chunk.js +1 -0
  32. package/dist/scripts/1891-00d06bdb48-lite.chunk.js +1 -0
  33. package/dist/scripts/{1913-255f9695d4-lite.chunk.js → 1913-8f9af95784-lite.chunk.js} +1 -1
  34. package/dist/scripts/{1924-2a21fe2738-lite.chunk.js → 1924-c10778006b-lite.chunk.js} +1 -1
  35. package/dist/scripts/{1934-a972017a0c-lite.chunk.js → 1934-6641f7e580-lite.chunk.js} +1 -1
  36. package/dist/scripts/1943-4e126c7c8e-lite.chunk.js +1 -0
  37. package/dist/scripts/1958-7bbe5ed54b-lite.chunk.js +1 -0
  38. package/dist/scripts/{1977-7cc7e5343b-lite.chunk.js → 1977-7e46c81a05-lite.chunk.js} +2 -2
  39. package/dist/scripts/2066-2448ffab36-lite.chunk.js +2 -0
  40. package/dist/scripts/2095-a3bf2b1df5-lite.chunk.js +1 -0
  41. package/dist/scripts/2118-26ae54c3db-lite.chunk.js +2 -0
  42. package/dist/scripts/{2175-0ee6619ca7-lite.chunk.js → 2175-e6101da2c7-lite.chunk.js} +1 -1
  43. package/dist/scripts/2199-68ba7411fa-lite.chunk.js +1 -0
  44. package/dist/scripts/{2208-42904c2f44-lite.chunk.js → 2208-356e60f7ed-lite.chunk.js} +1 -1
  45. package/dist/scripts/2229-57d6491c9d-lite.chunk.js +1 -0
  46. package/dist/scripts/2235-5b283a630a-lite.chunk.js +1 -0
  47. package/dist/scripts/{2269-aafae0c3da-lite.chunk.js → 2269-63269b0a20-lite.chunk.js} +1 -1
  48. package/dist/scripts/227-2b68bcb5e6-lite.chunk.js +1 -0
  49. package/dist/scripts/{2279-91adb10745-lite.chunk.js → 2279-c077a223e7-lite.chunk.js} +1 -1
  50. package/dist/scripts/2318-43fc5f8fde-lite.chunk.js +1 -0
  51. package/dist/scripts/2469-26134f4110-lite.chunk.js +1 -0
  52. package/dist/scripts/{2477-f408e61006-lite.chunk.js → 2477-1ca7a26273-lite.chunk.js} +1 -1
  53. package/dist/scripts/{2561-1e0b389a7a-lite.chunk.js → 2561-f6bbda0461-lite.chunk.js} +1 -1
  54. package/dist/scripts/2608-91817d2e90-lite.chunk.js +1 -0
  55. package/dist/scripts/2665-58e5d43a70-lite.chunk.js +1 -0
  56. package/dist/scripts/{275-f95c8de900-lite.chunk.js → 275-d32bdaf3c4-lite.chunk.js} +1 -1
  57. package/dist/scripts/287-06fe2a9794-lite.chunk.js +1 -0
  58. package/dist/scripts/2966-5425811e8d-lite.chunk.js +1 -0
  59. package/dist/scripts/3012-a8407cc0d7-lite.chunk.js +1 -0
  60. package/dist/scripts/3020-b550dc32a1-lite.chunk.js +1 -0
  61. package/dist/scripts/3091-3d3850a415-lite.chunk.js +1 -0
  62. package/dist/scripts/3154-63fff5be79-lite.chunk.js +1 -0
  63. package/dist/scripts/3216-cd6222fff4-lite.chunk.js +1 -0
  64. package/dist/scripts/3285-6fd37b7b51-lite.chunk.js +1 -0
  65. package/dist/scripts/3322-6c49ef644a-lite.chunk.js +1 -0
  66. package/dist/scripts/{3468-5c42c3f485-lite.chunk.js → 3468-40c308ce30-lite.chunk.js} +1 -1
  67. package/dist/scripts/3514-3dd7072018-lite.chunk.js +1 -0
  68. package/dist/scripts/3533-98674ad469-lite.chunk.js +1 -0
  69. package/dist/scripts/355-16b3032c4f-lite.chunk.js +1 -0
  70. package/dist/scripts/{3602-9e631593b1-lite.chunk.js → 3602-7fb236937c-lite.chunk.js} +2 -2
  71. package/dist/scripts/3645-ccb3557f33-lite.chunk.js +2 -0
  72. package/dist/scripts/3654-68fc05281b-lite.chunk.js +1 -0
  73. package/dist/scripts/3667-6261d6a482-lite.chunk.js +2 -0
  74. package/dist/scripts/3727-61ad5aebc3-lite.chunk.js +1 -0
  75. package/dist/scripts/3729-ec68fee3f9-lite.chunk.js +1 -0
  76. package/dist/scripts/3754-43235d0887-lite.chunk.js +1 -0
  77. package/dist/scripts/3755-6e4ec3d174-lite.chunk.js +1 -0
  78. package/dist/scripts/383-81d5b0f3da-lite.chunk.js +1 -0
  79. package/dist/scripts/3836-89b781029f-lite.chunk.js +1 -0
  80. package/dist/scripts/3849-cc38632481-lite.chunk.js +1 -0
  81. package/dist/scripts/389-e0a9ec5a2b-lite.chunk.js +1 -0
  82. package/dist/scripts/{3966-61770122fe-lite.chunk.js → 3966-66cb50b7c4-lite.chunk.js} +1 -1
  83. package/dist/scripts/4052-f6e4be8ec3-lite.chunk.js +1 -0
  84. package/dist/scripts/414-395860a6ec-lite.chunk.js +1 -0
  85. package/dist/scripts/4145-f072f10ba6-lite.chunk.js +1 -0
  86. package/dist/scripts/{4182-f84b364819-lite.chunk.js → 4182-71b9d0c2ae-lite.chunk.js} +1 -1
  87. package/dist/scripts/4229-e0eec4f9cc-lite.chunk.js +1 -0
  88. package/dist/scripts/4290-50b30979bb-lite.chunk.js +1 -0
  89. package/dist/scripts/4326-0df396c7a9-lite.chunk.js +1 -0
  90. package/dist/scripts/{4343-ab569983cb-lite.chunk.js → 4343-97dc4dfb23-lite.chunk.js} +1 -1
  91. package/dist/scripts/{4380-165a473ef0-lite.chunk.js → 4380-880fb4cd78-lite.chunk.js} +1 -1
  92. package/dist/scripts/4393-7273cab163-lite.chunk.js +1 -0
  93. package/dist/scripts/4417-f74c436556-lite.chunk.js +1 -0
  94. package/dist/scripts/{4436-575256cade-lite.chunk.js → 4436-6939f395bc-lite.chunk.js} +1 -1
  95. package/dist/scripts/4484-6bb5f46ab3-lite.chunk.js +1 -0
  96. package/dist/scripts/{4537-01038c7e8a-lite.chunk.js → 4537-9b504a7131-lite.chunk.js} +1 -1
  97. package/dist/scripts/4617-543181732e-lite.chunk.js +1 -0
  98. package/dist/scripts/4632-8a515a2adf-lite.chunk.js +1 -0
  99. package/dist/scripts/{4676-bb8b7e034f-lite.chunk.js → 4676-d33096ed1d-lite.chunk.js} +2 -2
  100. package/dist/scripts/4690-8d1c868379-lite.chunk.js +1 -0
  101. package/dist/scripts/{4763-42f4ee27a6-lite.chunk.js → 4763-aa3b604925-lite.chunk.js} +1 -1
  102. package/dist/scripts/4893-4dfccfedc9-lite.chunk.js +1 -0
  103. package/dist/scripts/4942-d89ef696ed-lite.chunk.js +2 -0
  104. package/dist/scripts/5018-23fbddadb3-lite.chunk.js +1 -0
  105. package/dist/scripts/5041-65efb1da4e-lite.chunk.js +1 -0
  106. package/dist/scripts/5171-1124450f08-lite.chunk.js +1 -0
  107. package/dist/scripts/5229-54d273997c-lite.chunk.js +1 -0
  108. package/dist/scripts/5268-b63ac1972e-lite.chunk.js +2 -0
  109. package/dist/scripts/5385-50b65ee5b3-lite.chunk.js +1 -0
  110. package/dist/scripts/5395-aa5bc09b79-lite.chunk.js +1 -0
  111. package/dist/scripts/5590-f2358ed66e-lite.chunk.js +1 -0
  112. package/dist/scripts/5595-fed09c0f0d-lite.chunk.js +1 -0
  113. package/dist/scripts/{5622-df1c9f72f5-lite.chunk.js → 5622-080218eb5e-lite.chunk.js} +2 -2
  114. package/dist/scripts/{5756-7e5a76b657-lite.chunk.js → 5756-2c449fd1a4-lite.chunk.js} +1 -1
  115. package/dist/scripts/5776-43de233cad-lite.chunk.js +1 -0
  116. package/dist/scripts/5914-89452132ae-lite.chunk.js +1 -0
  117. package/dist/scripts/5974-56af1e8e57-lite.chunk.js +1 -0
  118. package/dist/scripts/{5983-45f1df7cdf-lite.chunk.js → 5983-8f4aa6c37a-lite.chunk.js} +1 -1
  119. package/dist/scripts/5986-38e236e499-lite.chunk.js +1 -0
  120. package/dist/scripts/6057-f6e5423975-lite.chunk.js +1 -0
  121. package/dist/scripts/6117-b1a64ee9d6-lite.chunk.js +1 -0
  122. package/dist/scripts/615-109caae84a-lite.chunk.js +1 -0
  123. package/dist/scripts/{6154-531092aec6-lite.chunk.js → 6154-1d0dfaf472-lite.chunk.js} +1 -1
  124. package/dist/scripts/6158-2cc856d000-lite.chunk.js +1 -0
  125. package/dist/scripts/6159-00d5adab24-lite.chunk.js +1 -0
  126. package/dist/scripts/6254-3237a629c8-lite.chunk.js +1 -0
  127. package/dist/scripts/6263-6b96369c8d-lite.chunk.js +1 -0
  128. package/dist/scripts/6274-ef6ea9aefc-lite.chunk.js +1 -0
  129. package/dist/scripts/{6302-6506ee47b5-lite.chunk.js → 6302-858c958370-lite.chunk.js} +1 -1
  130. package/dist/scripts/6368-0dc1c905d9-lite.chunk.js +1 -0
  131. package/dist/scripts/6370-73eb5d7165-lite.chunk.js +1 -0
  132. package/dist/scripts/{6465-61c304878d-lite.chunk.js → 6465-79f2f15c97-lite.chunk.js} +1 -1
  133. package/dist/scripts/{6480-0f993f9e8d-lite.chunk.js → 6480-08e2d6d634-lite.chunk.js} +1 -1
  134. package/dist/scripts/6572-a829585f06-lite.chunk.js +1 -0
  135. package/dist/scripts/6604-772ed75a7a-lite.chunk.js +1 -0
  136. package/dist/scripts/6662-51e2e6eaaf-lite.chunk.js +1 -0
  137. package/dist/scripts/{6689-f8f1fe1624-lite.chunk.js → 6689-0daba3d135-lite.chunk.js} +1 -1
  138. package/dist/scripts/6801-fb5064f563-lite.chunk.js +1 -0
  139. package/dist/scripts/6817-ed5e4e7d06-lite.chunk.js +1 -0
  140. package/dist/scripts/6821-7359de4d2e-lite.chunk.js +1 -0
  141. package/dist/scripts/{6822-3c052e82fe-lite.chunk.js → 6822-5831c9fd42-lite.chunk.js} +1 -1
  142. package/dist/scripts/{6823-0083a3231c-lite.chunk.js → 6823-22b0850abc-lite.chunk.js} +1 -1
  143. package/dist/scripts/{6866-a560486b95-lite.chunk.js → 6866-3253265092-lite.chunk.js} +1 -1
  144. package/dist/scripts/6873-4a90a15240-lite.chunk.js +1 -0
  145. package/dist/scripts/{689-872cae611f-lite.chunk.js → 689-f0a1edee9b-lite.chunk.js} +1 -1
  146. package/dist/scripts/{6896-467ac6697c-lite.chunk.js → 6896-79fa541f46-lite.chunk.js} +2 -2
  147. package/dist/scripts/{691-720de5af0d-lite.chunk.js → 691-1a7a29fb40-lite.chunk.js} +1 -1
  148. package/dist/scripts/{6913-8d05107c68-lite.chunk.js → 6913-507c07b46c-lite.chunk.js} +1 -1
  149. package/dist/scripts/6930-06c0bffc64-lite.chunk.js +1 -0
  150. package/dist/scripts/6932-05cfdb89f8-lite.chunk.js +1 -0
  151. package/dist/scripts/{7017-14feec9dd1-lite.chunk.js → 7017-76adb0abdc-lite.chunk.js} +2 -2
  152. package/dist/scripts/{7030-67a3d8acb6-lite.chunk.js → 7030-e6f622a775-lite.chunk.js} +1 -1
  153. package/dist/scripts/7045-6373f085f2-lite.chunk.js +1 -0
  154. package/dist/scripts/7052-6e758d823a-lite.chunk.js +2 -0
  155. package/dist/scripts/7056-e916d8c1d5-lite.chunk.js +1 -0
  156. package/dist/scripts/7072-39485fc286-lite.chunk.js +2 -0
  157. package/dist/scripts/{7108-2acfc76a8d-lite.chunk.js → 7108-7e3854252d-lite.chunk.js} +1 -1
  158. package/dist/scripts/{7112-88336f937e-lite.chunk.js → 7112-09720be50b-lite.chunk.js} +2 -2
  159. package/dist/scripts/7115-5651a1dba8-lite.chunk.js +1 -0
  160. package/dist/scripts/7117-2dc06cc559-lite.chunk.js +1 -0
  161. package/dist/scripts/{7128-e83c5ba823-lite.chunk.js → 7128-523988aea8-lite.chunk.js} +1 -1
  162. package/dist/scripts/714-0f92a1c65b-lite.chunk.js +1 -0
  163. package/dist/scripts/7147-8b38cb4a77-lite.chunk.js +1 -0
  164. package/dist/scripts/{7172-6c0b0b571e-lite.chunk.js → 7172-3478ca9fbf-lite.chunk.js} +1 -1
  165. package/dist/scripts/7205-6c84b9860e-lite.chunk.js +1 -0
  166. package/dist/scripts/7221-7c2e4bd2cf-lite.chunk.js +2 -0
  167. package/dist/scripts/7286-33d40f57b8-lite.chunk.js +1 -0
  168. package/dist/scripts/7293-50af1887dd-lite.chunk.js +1 -0
  169. package/dist/scripts/7318-c329ca7c0d-lite.chunk.js +2 -0
  170. package/dist/scripts/{7327-abbd47caab-lite.chunk.js → 7327-406b998419-lite.chunk.js} +1 -1
  171. package/dist/scripts/7341-a0366179fe-lite.chunk.js +1 -0
  172. package/dist/scripts/7385-9ae5fdf533-lite.chunk.js +1 -0
  173. package/dist/scripts/7409-145e2b0498-lite.chunk.js +1 -0
  174. package/dist/scripts/7484-bff36cf4bc-lite.chunk.js +1 -0
  175. package/dist/scripts/7515-1fa9993684-lite.chunk.js +2 -0
  176. package/dist/scripts/7555-6536e27567-lite.chunk.js +1 -0
  177. package/dist/scripts/{7706-85973863b8-lite.chunk.js → 7706-d9f05df3bd-lite.chunk.js} +1 -1
  178. package/dist/scripts/7708-d15c0df895-lite.chunk.js +1 -0
  179. package/dist/scripts/7855-e5071abd53-lite.chunk.js +1 -0
  180. package/dist/scripts/{7888-e89b67d09f-lite.chunk.js → 7888-fcf2d068bb-lite.chunk.js} +1 -1
  181. package/dist/scripts/7950-4a82e3281f-lite.chunk.js +2 -0
  182. package/dist/scripts/{7952-f487a842d1-lite.chunk.js → 7952-dd5c9af1ed-lite.chunk.js} +1 -1
  183. package/dist/scripts/{8025-aa024b643c-lite.chunk.js → 8025-84ccfae3cb-lite.chunk.js} +1 -1
  184. package/dist/scripts/8035-0116ccf4e5-lite.chunk.js +1 -0
  185. package/dist/scripts/8046-fa36daa5ce-lite.chunk.js +1 -0
  186. package/dist/scripts/8056-ccc1962ad7-lite.chunk.js +1 -0
  187. package/dist/scripts/823-2ddc27ac2a-lite.chunk.js +1 -0
  188. package/dist/scripts/8252-a6d0f554a5-lite.chunk.js +1 -0
  189. package/dist/scripts/{8292-ab603bf688-lite.chunk.js → 8292-e22a69738a-lite.chunk.js} +1 -1
  190. package/dist/scripts/8323-249c45a20e-lite.chunk.js +2 -0
  191. package/dist/scripts/8367-18538fb7ed-lite.chunk.js +1 -0
  192. package/dist/scripts/8383-4b59de6bfc-lite.chunk.js +1 -0
  193. package/dist/scripts/8466-db914a7d25-lite.chunk.js +1 -0
  194. package/dist/scripts/8500-f229b957ef-lite.chunk.js +1 -0
  195. package/dist/scripts/8516-ce00b83316-lite.chunk.js +1 -0
  196. package/dist/scripts/8556-2faa08c0bb-lite.chunk.js +1 -0
  197. package/dist/scripts/8564-f361b00c03-lite.chunk.js +1 -0
  198. package/dist/scripts/8621-bb707f1aa2-lite.chunk.js +1 -0
  199. package/dist/scripts/8627-7c7b3701fa-lite.chunk.js +1 -0
  200. package/dist/scripts/{8681-57707d9f89-lite.chunk.js → 8681-5190c78b95-lite.chunk.js} +2 -2
  201. package/dist/scripts/{872-ec1fa5330c-lite.chunk.js → 872-556704f056-lite.chunk.js} +1 -1
  202. package/dist/scripts/8729-5928d624f8-lite.chunk.js +1 -0
  203. package/dist/scripts/{8759-bf94a35e60-lite.chunk.js → 8759-d8e5c29a2e-lite.chunk.js} +1 -1
  204. package/dist/scripts/8763-0aae908218-lite.chunk.js +1 -0
  205. package/dist/scripts/{8820-24cd0624e5-lite.chunk.js → 8820-2ad02c32cb-lite.chunk.js} +1 -1
  206. package/dist/scripts/8830-94ce167cd3-lite.chunk.js +1 -0
  207. package/dist/scripts/8884-b6a7826c51-lite.chunk.js +1 -0
  208. package/dist/scripts/{8905-c4379b0814-lite.chunk.js → 8905-ea152b10f8-lite.chunk.js} +1 -1
  209. package/dist/scripts/8955-0889ae334e-lite.chunk.js +1 -0
  210. package/dist/scripts/{9005-8da22ad68a-lite.chunk.js → 9005-dfff5d4381-lite.chunk.js} +1 -1
  211. package/dist/scripts/{9016-4f396c0fe7-lite.chunk.js → 9016-53b4e0b866-lite.chunk.js} +1 -1
  212. package/dist/scripts/9038-d495e86d21-lite.chunk.js +1 -0
  213. package/dist/scripts/{9118-de9f5956d0-lite.chunk.js → 9118-1603bf2a31-lite.chunk.js} +1 -1
  214. package/dist/scripts/9133-2ac9e11023-lite.chunk.js +1 -0
  215. package/dist/scripts/9138-0f9bb9b0e3-lite.chunk.js +1 -0
  216. package/dist/scripts/{9151-e185c78133-lite.chunk.js → 9151-8b26396391-lite.chunk.js} +1 -1
  217. package/dist/scripts/9194-039e6b2075-lite.chunk.js +2 -0
  218. package/dist/scripts/{9242-d2e9f4c647-lite.chunk.js → 9242-d7a14a34f0-lite.chunk.js} +1 -1
  219. package/dist/scripts/9260-0abbf3480c-lite.chunk.js +1 -0
  220. package/dist/scripts/9264-756116983e-lite.chunk.js +1 -0
  221. package/dist/scripts/9273-8381c89f91-lite.chunk.js +1 -0
  222. package/dist/scripts/{9428-c2ec53b44d-lite.chunk.js → 9428-5917cd7b0a-lite.chunk.js} +2 -2
  223. package/dist/scripts/{9455-0ff9a13476-lite.chunk.js → 9455-7c1622838e-lite.chunk.js} +1 -1
  224. package/dist/scripts/{9478-76af6fb48c-lite.chunk.js → 9478-e817a33a69-lite.chunk.js} +2 -2
  225. package/dist/scripts/9484-6e93df7581-lite.chunk.js +2 -0
  226. package/dist/scripts/9701-f0cdfc4f92-lite.chunk.js +2 -0
  227. package/dist/scripts/{9714-43eeb20c56-lite.chunk.js → 9714-f2571e0227-lite.chunk.js} +1 -1
  228. package/dist/scripts/9744-8edc9b07ee-lite.chunk.js +1 -0
  229. package/dist/scripts/9880-d95662abc4-lite.chunk.js +1 -0
  230. package/dist/scripts/{9899-8e434818e4-lite.chunk.js → 9899-5322cee4bf-lite.chunk.js} +1 -1
  231. package/dist/scripts/{9931-e8eda5c94f-lite.chunk.js → 9931-bf2f253ffe-lite.chunk.js} +1 -1
  232. package/dist/scripts/9961-af90dcc493-lite.chunk.js +1 -0
  233. package/dist/scripts/bundle-999b3fc798.min.js +2 -0
  234. package/dist/scripts/{pdf.worker.entry-29e3094652.min.worker.js → pdf.worker.entry-0b35cddafa.min.worker.js} +1 -1
  235. package/dist/scripts/{polyfills-cf6a3b6e3b.min.js → polyfills-5c0684cd85.min.js} +2 -2
  236. package/package.json +2 -2
  237. package/dist/scripts/1064-f67592534f-lite.chunk.js +0 -1
  238. package/dist/scripts/1090-6357a8481e-lite.chunk.js +0 -1
  239. package/dist/scripts/1200-9a411abf42-lite.chunk.js +0 -2
  240. package/dist/scripts/1285-7afa47b773-lite.chunk.js +0 -1
  241. package/dist/scripts/1291-afca7b0cd0-lite.chunk.js +0 -1
  242. package/dist/scripts/1341-1d121961bb-lite.chunk.js +0 -1
  243. package/dist/scripts/1366-d52572015e-lite.chunk.js +0 -2
  244. package/dist/scripts/147-f32522149a-lite.chunk.js +0 -1
  245. package/dist/scripts/1475-820fef70f4-lite.chunk.js +0 -1
  246. package/dist/scripts/1517-5b862f657e-lite.chunk.js +0 -1
  247. package/dist/scripts/1518-277693df55-lite.chunk.js +0 -1
  248. package/dist/scripts/1526-4beff8cab8-lite.chunk.js +0 -1
  249. package/dist/scripts/1536-85717afe85-lite.chunk.js +0 -1
  250. package/dist/scripts/156-dde8ca94d7-lite.chunk.js +0 -1
  251. package/dist/scripts/162-16df777e96-lite.chunk.js +0 -2
  252. package/dist/scripts/1628-b13c0d7b41-lite.chunk.js +0 -1
  253. package/dist/scripts/1655-e5d6dfb27a-lite.chunk.js +0 -1
  254. package/dist/scripts/1726-ba13ed4678-lite.chunk.js +0 -1
  255. package/dist/scripts/1766-164756da7c-lite.chunk.js +0 -1
  256. package/dist/scripts/1794-2ce2b767a9-lite.chunk.js +0 -1
  257. package/dist/scripts/1818-d24058bd8f-lite.chunk.js +0 -1
  258. package/dist/scripts/1820-521c94621b-lite.chunk.js +0 -1
  259. package/dist/scripts/1863-4b2cc1922c-lite.chunk.js +0 -1
  260. package/dist/scripts/1891-f871c22b2f-lite.chunk.js +0 -1
  261. package/dist/scripts/1943-119060ac7f-lite.chunk.js +0 -1
  262. package/dist/scripts/1958-14838db334-lite.chunk.js +0 -1
  263. package/dist/scripts/2066-db515814ad-lite.chunk.js +0 -2
  264. package/dist/scripts/2095-fffbd264d1-lite.chunk.js +0 -1
  265. package/dist/scripts/2118-8b6fa7abde-lite.chunk.js +0 -2
  266. package/dist/scripts/2199-e53e42509e-lite.chunk.js +0 -1
  267. package/dist/scripts/2229-bc14b074ed-lite.chunk.js +0 -1
  268. package/dist/scripts/2235-290199467a-lite.chunk.js +0 -1
  269. package/dist/scripts/227-7c680a98a4-lite.chunk.js +0 -1
  270. package/dist/scripts/2318-fb3aa4398a-lite.chunk.js +0 -1
  271. package/dist/scripts/2469-90dd90645b-lite.chunk.js +0 -1
  272. package/dist/scripts/2592-24cd43fffe-lite.chunk.js +0 -1
  273. package/dist/scripts/2608-bf3f792d3d-lite.chunk.js +0 -1
  274. package/dist/scripts/2665-cb6dff1d0e-lite.chunk.js +0 -1
  275. package/dist/scripts/2701-093bcc66ac-lite.chunk.js +0 -1
  276. package/dist/scripts/2956-4b8e0a4c58-lite.chunk.js +0 -1
  277. package/dist/scripts/2966-a88d11d626-lite.chunk.js +0 -1
  278. package/dist/scripts/3012-5ffcff3af0-lite.chunk.js +0 -1
  279. package/dist/scripts/3020-9f0d773484-lite.chunk.js +0 -1
  280. package/dist/scripts/3125-919003fe6b-lite.chunk.js +0 -1
  281. package/dist/scripts/3154-14324fdea1-lite.chunk.js +0 -1
  282. package/dist/scripts/3216-ecf04b612f-lite.chunk.js +0 -1
  283. package/dist/scripts/3285-72f1592710-lite.chunk.js +0 -1
  284. package/dist/scripts/3514-8a8dd2b680-lite.chunk.js +0 -1
  285. package/dist/scripts/3533-ad26b0a09c-lite.chunk.js +0 -1
  286. package/dist/scripts/355-f578d9beb2-lite.chunk.js +0 -1
  287. package/dist/scripts/3645-dd57bf267e-lite.chunk.js +0 -2
  288. package/dist/scripts/3654-5c8fc842aa-lite.chunk.js +0 -1
  289. package/dist/scripts/3667-9a2a4c64b5-lite.chunk.js +0 -2
  290. package/dist/scripts/3729-74f7cebe6d-lite.chunk.js +0 -1
  291. package/dist/scripts/3754-6d17b49de7-lite.chunk.js +0 -1
  292. package/dist/scripts/3755-8e694cf47f-lite.chunk.js +0 -1
  293. package/dist/scripts/3787-f1b980ca08-lite.chunk.js +0 -1
  294. package/dist/scripts/383-439553ff8f-lite.chunk.js +0 -1
  295. package/dist/scripts/3836-0924c271f0-lite.chunk.js +0 -1
  296. package/dist/scripts/3849-815facaf40-lite.chunk.js +0 -1
  297. package/dist/scripts/389-5ff8e9b829-lite.chunk.js +0 -1
  298. package/dist/scripts/4026-de6dccdbbb-lite.chunk.js +0 -1
  299. package/dist/scripts/4052-a88bdbbcf1-lite.chunk.js +0 -1
  300. package/dist/scripts/414-baf33cb9d0-lite.chunk.js +0 -1
  301. package/dist/scripts/4145-52b65d2e94-lite.chunk.js +0 -1
  302. package/dist/scripts/4229-c1df7ea14b-lite.chunk.js +0 -1
  303. package/dist/scripts/4290-e921ae9e76-lite.chunk.js +0 -1
  304. package/dist/scripts/4326-ec9ca09585-lite.chunk.js +0 -1
  305. package/dist/scripts/4393-6d40d84805-lite.chunk.js +0 -1
  306. package/dist/scripts/4417-baddebbdf6-lite.chunk.js +0 -1
  307. package/dist/scripts/4484-bd2cf7b458-lite.chunk.js +0 -1
  308. package/dist/scripts/4617-67b3036cbe-lite.chunk.js +0 -1
  309. package/dist/scripts/4632-98c863e6c1-lite.chunk.js +0 -1
  310. package/dist/scripts/4690-7add6db107-lite.chunk.js +0 -1
  311. package/dist/scripts/4893-c8fbae6c8d-lite.chunk.js +0 -1
  312. package/dist/scripts/4901-dbbd888771-lite.chunk.js +0 -2
  313. package/dist/scripts/4942-41d01acc50-lite.chunk.js +0 -2
  314. package/dist/scripts/5018-5e67147716-lite.chunk.js +0 -1
  315. package/dist/scripts/5041-858ca41ef8-lite.chunk.js +0 -1
  316. package/dist/scripts/5229-1fb29b4635-lite.chunk.js +0 -1
  317. package/dist/scripts/5268-c0ad8047b8-lite.chunk.js +0 -2
  318. package/dist/scripts/5385-902a17aca1-lite.chunk.js +0 -1
  319. package/dist/scripts/5395-cc691d41a1-lite.chunk.js +0 -1
  320. package/dist/scripts/5590-0fab2043f5-lite.chunk.js +0 -1
  321. package/dist/scripts/5595-ec7a1d94d6-lite.chunk.js +0 -1
  322. package/dist/scripts/5776-b749e84450-lite.chunk.js +0 -1
  323. package/dist/scripts/5914-8fbc9ac553-lite.chunk.js +0 -1
  324. package/dist/scripts/5974-5de4c745e3-lite.chunk.js +0 -1
  325. package/dist/scripts/5986-d373b39115-lite.chunk.js +0 -1
  326. package/dist/scripts/6057-7472925513-lite.chunk.js +0 -1
  327. package/dist/scripts/6117-84c093b8be-lite.chunk.js +0 -1
  328. package/dist/scripts/615-e5cc2b7cdd-lite.chunk.js +0 -1
  329. package/dist/scripts/6158-e5522a2a15-lite.chunk.js +0 -1
  330. package/dist/scripts/6159-87c08c857e-lite.chunk.js +0 -1
  331. package/dist/scripts/6254-67c2d529b5-lite.chunk.js +0 -1
  332. package/dist/scripts/6263-cbad229bfe-lite.chunk.js +0 -1
  333. package/dist/scripts/6274-e6a04ae100-lite.chunk.js +0 -1
  334. package/dist/scripts/6368-d27d7ddad7-lite.chunk.js +0 -1
  335. package/dist/scripts/6370-9d45b8efc0-lite.chunk.js +0 -1
  336. package/dist/scripts/6572-925e1f6cd9-lite.chunk.js +0 -1
  337. package/dist/scripts/6604-afa7ada95d-lite.chunk.js +0 -1
  338. package/dist/scripts/6801-afab3dd733-lite.chunk.js +0 -1
  339. package/dist/scripts/6817-53272d5d88-lite.chunk.js +0 -1
  340. package/dist/scripts/6821-f7d1d7ef07-lite.chunk.js +0 -1
  341. package/dist/scripts/6873-032b4915f9-lite.chunk.js +0 -1
  342. package/dist/scripts/6930-24a4e7c71a-lite.chunk.js +0 -1
  343. package/dist/scripts/6932-c7817af4d6-lite.chunk.js +0 -1
  344. package/dist/scripts/7045-70afbf80c3-lite.chunk.js +0 -1
  345. package/dist/scripts/7052-baf4150fb1-lite.chunk.js +0 -2
  346. package/dist/scripts/7056-db7a72ae7a-lite.chunk.js +0 -1
  347. package/dist/scripts/7072-c3785ca37e-lite.chunk.js +0 -2
  348. package/dist/scripts/7115-1dc32e54d7-lite.chunk.js +0 -1
  349. package/dist/scripts/7117-f7821bddb5-lite.chunk.js +0 -1
  350. package/dist/scripts/714-2bf8567e2a-lite.chunk.js +0 -1
  351. package/dist/scripts/7203-89126e42d2-lite.chunk.js +0 -1
  352. package/dist/scripts/7205-84a68e0ae6-lite.chunk.js +0 -1
  353. package/dist/scripts/7221-aed0b2fd5c-lite.chunk.js +0 -2
  354. package/dist/scripts/7286-2500bc1b4d-lite.chunk.js +0 -1
  355. package/dist/scripts/7293-d2339dc134-lite.chunk.js +0 -1
  356. package/dist/scripts/7318-bee88ab659-lite.chunk.js +0 -2
  357. package/dist/scripts/7341-e37e1b4702-lite.chunk.js +0 -1
  358. package/dist/scripts/7385-42b24a5db4-lite.chunk.js +0 -1
  359. package/dist/scripts/7409-c0d306ab4f-lite.chunk.js +0 -1
  360. package/dist/scripts/7515-08ba1635e4-lite.chunk.js +0 -2
  361. package/dist/scripts/7555-0c28dae806-lite.chunk.js +0 -1
  362. package/dist/scripts/7708-a3f51335bb-lite.chunk.js +0 -1
  363. package/dist/scripts/7855-cb798dcf71-lite.chunk.js +0 -1
  364. package/dist/scripts/7950-5ea68fae3f-lite.chunk.js +0 -2
  365. package/dist/scripts/8035-ae1f82dc2b-lite.chunk.js +0 -1
  366. package/dist/scripts/8046-2f286c23d8-lite.chunk.js +0 -1
  367. package/dist/scripts/8056-02148dac14-lite.chunk.js +0 -1
  368. package/dist/scripts/823-95520826e7-lite.chunk.js +0 -1
  369. package/dist/scripts/8252-0b0bc1f57d-lite.chunk.js +0 -1
  370. package/dist/scripts/8323-ebde7e14b0-lite.chunk.js +0 -2
  371. package/dist/scripts/8367-9dfee373b1-lite.chunk.js +0 -1
  372. package/dist/scripts/8383-e5491b0fea-lite.chunk.js +0 -1
  373. package/dist/scripts/8466-d5ef6547c1-lite.chunk.js +0 -1
  374. package/dist/scripts/8500-2c7416d260-lite.chunk.js +0 -1
  375. package/dist/scripts/8516-eba25d7732-lite.chunk.js +0 -1
  376. package/dist/scripts/8556-4258698c18-lite.chunk.js +0 -1
  377. package/dist/scripts/8564-7754f107a5-lite.chunk.js +0 -1
  378. package/dist/scripts/8621-f56becd41d-lite.chunk.js +0 -1
  379. package/dist/scripts/8627-a75e8c3c72-lite.chunk.js +0 -1
  380. package/dist/scripts/8729-1a7f483f5d-lite.chunk.js +0 -1
  381. package/dist/scripts/8763-8565558446-lite.chunk.js +0 -1
  382. package/dist/scripts/8830-f87703865e-lite.chunk.js +0 -1
  383. package/dist/scripts/8884-dbdbc50014-lite.chunk.js +0 -1
  384. package/dist/scripts/8955-25ba847cda-lite.chunk.js +0 -1
  385. package/dist/scripts/9038-ff47dcecd1-lite.chunk.js +0 -1
  386. package/dist/scripts/9133-886ce0448d-lite.chunk.js +0 -1
  387. package/dist/scripts/9264-d4a3940963-lite.chunk.js +0 -1
  388. package/dist/scripts/9273-19f7050562-lite.chunk.js +0 -1
  389. package/dist/scripts/9484-d9aef28b8a-lite.chunk.js +0 -2
  390. package/dist/scripts/949-c7c36f2fb1-lite.chunk.js +0 -1
  391. package/dist/scripts/9522-fdc269fa55-lite.chunk.js +0 -2
  392. package/dist/scripts/9880-0ea17e51ac-lite.chunk.js +0 -1
  393. package/dist/scripts/9961-d95b268b23-lite.chunk.js +0 -1
  394. package/dist/scripts/bundle-307c4a7106.min.js +0 -2
  395. /package/dist/css/{1766-lite-2cb4fd8dc1.chunk.css → 3322-lite-2cb4fd8dc1.chunk.css} +0 -0
  396. /package/dist/css/{4901-lite-d395807101.chunk.css → 9194-lite-d395807101.chunk.css} +0 -0
  397. /package/dist/scripts/{1200-9a411abf42-lite.chunk.js.LICENSE.txt → 1200-f30709bde3-lite.chunk.js.LICENSE.txt} +0 -0
  398. /package/dist/scripts/{1354-635a2024da-lite.chunk.js.LICENSE.txt → 1354-adb83a2eaa-lite.chunk.js.LICENSE.txt} +0 -0
  399. /package/dist/scripts/{1366-d52572015e-lite.chunk.js.LICENSE.txt → 1366-9e3f333cdc-lite.chunk.js.LICENSE.txt} +0 -0
  400. /package/dist/scripts/{1592-dcc4772f16-lite.chunk.js.LICENSE.txt → 1592-e5a0fbaee2-lite.chunk.js.LICENSE.txt} +0 -0
  401. /package/dist/scripts/{162-16df777e96-lite.chunk.js.LICENSE.txt → 162-c62a92235f-lite.chunk.js.LICENSE.txt} +0 -0
  402. /package/dist/scripts/{1837-0673045eda-lite.chunk.js → 1837-8224775ee2-lite.chunk.js} +0 -0
  403. /package/dist/scripts/{1934-a972017a0c-lite.chunk.js.LICENSE.txt → 1934-6641f7e580-lite.chunk.js.LICENSE.txt} +0 -0
  404. /package/dist/scripts/{1977-7cc7e5343b-lite.chunk.js.LICENSE.txt → 1977-7e46c81a05-lite.chunk.js.LICENSE.txt} +0 -0
  405. /package/dist/scripts/{2066-db515814ad-lite.chunk.js.LICENSE.txt → 2066-2448ffab36-lite.chunk.js.LICENSE.txt} +0 -0
  406. /package/dist/scripts/{2118-8b6fa7abde-lite.chunk.js.LICENSE.txt → 2118-26ae54c3db-lite.chunk.js.LICENSE.txt} +0 -0
  407. /package/dist/scripts/{2452-bbbcc9cfc4-lite.chunk.js → 2452-446607a894-lite.chunk.js} +0 -0
  408. /package/dist/scripts/{2566-2f7100a498-lite.chunk.js → 2566-db0f3fdc44-lite.chunk.js} +0 -0
  409. /package/dist/scripts/{2729-d0b201806b-lite.chunk.js → 2729-bf3c1615b9-lite.chunk.js} +0 -0
  410. /package/dist/scripts/{276-8d1fc97138-lite.chunk.js → 276-bb5c3227d5-lite.chunk.js} +0 -0
  411. /package/dist/scripts/{2877-70d40e8577-lite.chunk.js → 2877-4171fae97e-lite.chunk.js} +0 -0
  412. /package/dist/scripts/{3003-0ff3ea9398-lite.chunk.js → 3003-982dd70f25-lite.chunk.js} +0 -0
  413. /package/dist/scripts/{3007-4a6a008485-lite.chunk.js → 3007-bfe9edfb5f-lite.chunk.js} +0 -0
  414. /package/dist/scripts/{3093-d4d47a261b-lite.chunk.js → 3093-6c5da8944e-lite.chunk.js} +0 -0
  415. /package/dist/scripts/{3108-7f0dde546a-lite.chunk.js → 3108-4774ebe606-lite.chunk.js} +0 -0
  416. /package/dist/scripts/{3171-88406511bb-lite.chunk.js → 3171-02af531a34-lite.chunk.js} +0 -0
  417. /package/dist/scripts/{3301-1370b99f05-lite.chunk.js → 3301-2ff0136e3b-lite.chunk.js} +0 -0
  418. /package/dist/scripts/{3602-9e631593b1-lite.chunk.js.LICENSE.txt → 3602-7fb236937c-lite.chunk.js.LICENSE.txt} +0 -0
  419. /package/dist/scripts/{3645-dd57bf267e-lite.chunk.js.LICENSE.txt → 3645-ccb3557f33-lite.chunk.js.LICENSE.txt} +0 -0
  420. /package/dist/scripts/{3667-9a2a4c64b5-lite.chunk.js.LICENSE.txt → 3667-6261d6a482-lite.chunk.js.LICENSE.txt} +0 -0
  421. /package/dist/scripts/{3728-12a39b4a42-lite.chunk.js → 3728-61154e9591-lite.chunk.js} +0 -0
  422. /package/dist/scripts/{3848-64b1dab37f-lite.chunk.js → 3848-ec29f6e574-lite.chunk.js} +0 -0
  423. /package/dist/scripts/{3962-54498beb2f-lite.chunk.js → 3962-f2dff30617-lite.chunk.js} +0 -0
  424. /package/dist/scripts/{4067-48c21d9303-lite.chunk.js → 4067-7bd2a9bb48-lite.chunk.js} +0 -0
  425. /package/dist/scripts/{4423-15fcd2a632-lite.chunk.js → 4423-972b49a9ea-lite.chunk.js} +0 -0
  426. /package/dist/scripts/{4541-169300086f-lite.chunk.js → 4541-7226b9836d-lite.chunk.js} +0 -0
  427. /package/dist/scripts/{4676-bb8b7e034f-lite.chunk.js.LICENSE.txt → 4676-d33096ed1d-lite.chunk.js.LICENSE.txt} +0 -0
  428. /package/dist/scripts/{4770-02ee901240-lite.chunk.js → 4770-19393b2e34-lite.chunk.js} +0 -0
  429. /package/dist/scripts/{4777-d59fe3518a-lite.chunk.js → 4777-4be0dff304-lite.chunk.js} +0 -0
  430. /package/dist/scripts/{482-91567ba9a5-lite.chunk.js → 482-1534ca1124-lite.chunk.js} +0 -0
  431. /package/dist/scripts/{4895-c190fe08db-lite.chunk.js → 4895-9d22529005-lite.chunk.js} +0 -0
  432. /package/dist/scripts/{4901-dbbd888771-lite.chunk.js.LICENSE.txt → 4942-d89ef696ed-lite.chunk.js.LICENSE.txt} +0 -0
  433. /package/dist/scripts/{510-6b29b1c65e-lite.chunk.js → 510-0aacaf4a3f-lite.chunk.js} +0 -0
  434. /package/dist/scripts/{5173-b9dacfa8f7-lite.chunk.js → 5173-8046faf648-lite.chunk.js} +0 -0
  435. /package/dist/scripts/{4942-41d01acc50-lite.chunk.js.LICENSE.txt → 5268-b63ac1972e-lite.chunk.js.LICENSE.txt} +0 -0
  436. /package/dist/scripts/{5271-96a33ef5c8-lite.chunk.js → 5271-a5ffc1b79a-lite.chunk.js} +0 -0
  437. /package/dist/scripts/{528-fa34d4e176-lite.chunk.js → 528-cc94d0b7ce-lite.chunk.js} +0 -0
  438. /package/dist/scripts/{5291-7cbea59e7a-lite.chunk.js → 5291-6ef2fcf319-lite.chunk.js} +0 -0
  439. /package/dist/scripts/{5509-9b0191030d-lite.chunk.js → 5509-35f1b780d4-lite.chunk.js} +0 -0
  440. /package/dist/scripts/{5268-c0ad8047b8-lite.chunk.js.LICENSE.txt → 5622-080218eb5e-lite.chunk.js.LICENSE.txt} +0 -0
  441. /package/dist/scripts/{5823-d64e3ad325-lite.chunk.js → 5823-273dc77097-lite.chunk.js} +0 -0
  442. /package/dist/scripts/{6285-3c6ecdb063-lite.chunk.js → 6285-202fcb0ab4-lite.chunk.js} +0 -0
  443. /package/dist/scripts/{6330-f66286f1bd-lite.chunk.js → 6330-188babc35b-lite.chunk.js} +0 -0
  444. /package/dist/scripts/{6450-3d380d7fb6-lite.chunk.js → 6450-3c16cc5c71-lite.chunk.js} +0 -0
  445. /package/dist/scripts/{6493-e8829f4043-lite.chunk.js → 6493-f6cec5b493-lite.chunk.js} +0 -0
  446. /package/dist/scripts/{6823-0083a3231c-lite.chunk.js.LICENSE.txt → 6823-22b0850abc-lite.chunk.js.LICENSE.txt} +0 -0
  447. /package/dist/scripts/{5622-df1c9f72f5-lite.chunk.js.LICENSE.txt → 6896-79fa541f46-lite.chunk.js.LICENSE.txt} +0 -0
  448. /package/dist/scripts/{691-720de5af0d-lite.chunk.js.LICENSE.txt → 691-1a7a29fb40-lite.chunk.js.LICENSE.txt} +0 -0
  449. /package/dist/scripts/{6896-467ac6697c-lite.chunk.js.LICENSE.txt → 7017-76adb0abdc-lite.chunk.js.LICENSE.txt} +0 -0
  450. /package/dist/scripts/{7017-14feec9dd1-lite.chunk.js.LICENSE.txt → 7030-e6f622a775-lite.chunk.js.LICENSE.txt} +0 -0
  451. /package/dist/scripts/{7030-67a3d8acb6-lite.chunk.js.LICENSE.txt → 7052-6e758d823a-lite.chunk.js.LICENSE.txt} +0 -0
  452. /package/dist/scripts/{7052-baf4150fb1-lite.chunk.js.LICENSE.txt → 7072-39485fc286-lite.chunk.js.LICENSE.txt} +0 -0
  453. /package/dist/scripts/{7072-c3785ca37e-lite.chunk.js.LICENSE.txt → 7112-09720be50b-lite.chunk.js.LICENSE.txt} +0 -0
  454. /package/dist/scripts/{7112-88336f937e-lite.chunk.js.LICENSE.txt → 7221-7c2e4bd2cf-lite.chunk.js.LICENSE.txt} +0 -0
  455. /package/dist/scripts/{7318-bee88ab659-lite.chunk.js.LICENSE.txt → 7318-c329ca7c0d-lite.chunk.js.LICENSE.txt} +0 -0
  456. /package/dist/scripts/{7327-abbd47caab-lite.chunk.js.LICENSE.txt → 7327-406b998419-lite.chunk.js.LICENSE.txt} +0 -0
  457. /package/dist/scripts/{7506-461f96e632-lite.chunk.js → 7506-6e5abb1ce8-lite.chunk.js} +0 -0
  458. /package/dist/scripts/{7221-aed0b2fd5c-lite.chunk.js.LICENSE.txt → 7515-1fa9993684-lite.chunk.js.LICENSE.txt} +0 -0
  459. /package/dist/scripts/{754-4799619844-lite.chunk.js → 754-af06e1c835-lite.chunk.js} +0 -0
  460. /package/dist/scripts/{7724-66f50b3e25-lite.chunk.js → 7724-fe8ee64e46-lite.chunk.js} +0 -0
  461. /package/dist/scripts/{7767-dec6177ee8-lite.chunk.js → 7767-697e83f840-lite.chunk.js} +0 -0
  462. /package/dist/scripts/{7925-271289a49d-lite.chunk.js → 7925-400ce5c362-lite.chunk.js} +0 -0
  463. /package/dist/scripts/{7939-2241334bbc-lite.chunk.js → 7939-50f67c7062-lite.chunk.js} +0 -0
  464. /package/dist/scripts/{7946-326535ac72-lite.chunk.js → 7946-dd3f088d1a-lite.chunk.js} +0 -0
  465. /package/dist/scripts/{7515-08ba1635e4-lite.chunk.js.LICENSE.txt → 7950-4a82e3281f-lite.chunk.js.LICENSE.txt} +0 -0
  466. /package/dist/scripts/{8038-d08d354f1d-lite.chunk.js → 8038-f1425fa036-lite.chunk.js} +0 -0
  467. /package/dist/scripts/{811-c0682d38fc-lite.chunk.js → 811-3c7448dc35-lite.chunk.js} +0 -0
  468. /package/dist/scripts/{8176-3e3e552896-lite.chunk.js → 8176-4f92cf69ff-lite.chunk.js} +0 -0
  469. /package/dist/scripts/{7950-5ea68fae3f-lite.chunk.js.LICENSE.txt → 8323-249c45a20e-lite.chunk.js.LICENSE.txt} +0 -0
  470. /package/dist/scripts/{8419-f49f8ac6fb-lite.chunk.js → 8419-a12e4d833e-lite.chunk.js} +0 -0
  471. /package/dist/scripts/{8323-ebde7e14b0-lite.chunk.js.LICENSE.txt → 8681-5190c78b95-lite.chunk.js.LICENSE.txt} +0 -0
  472. /package/dist/scripts/{9060-39ba0d65a3-lite.chunk.js → 9060-75b7bf8e06-lite.chunk.js} +0 -0
  473. /package/dist/scripts/{8681-57707d9f89-lite.chunk.js.LICENSE.txt → 9194-039e6b2075-lite.chunk.js.LICENSE.txt} +0 -0
  474. /package/dist/scripts/{9325-c08b194ae9-lite.chunk.js → 9325-76be09c5d9-lite.chunk.js} +0 -0
  475. /package/dist/scripts/{9428-c2ec53b44d-lite.chunk.js.LICENSE.txt → 9428-5917cd7b0a-lite.chunk.js.LICENSE.txt} +0 -0
  476. /package/dist/scripts/{9478-76af6fb48c-lite.chunk.js.LICENSE.txt → 9478-e817a33a69-lite.chunk.js.LICENSE.txt} +0 -0
  477. /package/dist/scripts/{9484-d9aef28b8a-lite.chunk.js.LICENSE.txt → 9484-6e93df7581-lite.chunk.js.LICENSE.txt} +0 -0
  478. /package/dist/scripts/{9674-80c7295bd8-lite.chunk.js → 9674-72dc791884-lite.chunk.js} +0 -0
  479. /package/dist/scripts/{9522-fdc269fa55-lite.chunk.js.LICENSE.txt → 9701-f0cdfc4f92-lite.chunk.js.LICENSE.txt} +0 -0
  480. /package/dist/scripts/{9798-24409ec696-lite.chunk.js → 9798-6d39196b90-lite.chunk.js} +0 -0
  481. /package/dist/scripts/{9931-e8eda5c94f-lite.chunk.js.LICENSE.txt → 9931-bf2f253ffe-lite.chunk.js.LICENSE.txt} +0 -0
  482. /package/dist/scripts/{bundle-307c4a7106.min.js.LICENSE.txt → bundle-999b3fc798.min.js.LICENSE.txt} +0 -0
  483. /package/dist/scripts/{pdf.worker.entry-29e3094652.min.worker.js.LICENSE.txt → pdf.worker.entry-0b35cddafa.min.worker.js.LICENSE.txt} +0 -0
  484. /package/dist/scripts/{polyfills-cf6a3b6e3b.min.js.LICENSE.txt → polyfills-5c0684cd85.min.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
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"}(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),p=t(83345),m=t(36033),d=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)(d.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(p.D.Provider,{value:g},a().createElement(m.s,null,a().createElement("ul",{className:"mt-1 pl-3 ml-1"},a().createElement("li",null,a().createElement(p.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(p.x,{namespace:g,phrase:"ssoWarning"})," ",!!e.editSsoHelpArticleUrl&&a().createElement("a",{href:e.editSsoHelpArticleUrl,target:"_blank",className:"info-link"},a().createElement(p.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 E=t(58703),C=t(84566),A=t(70197),S=t(99705),G=t(39151),U=t(31949),w=t(12778),T=t(29613),k=t(39872),x=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,x.h)(e.userType),p=u.users,m=u.count,f=u.isFetching,y=u.hasMore,h=u.fetchNext,v=(t=(0,i.D)(d.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&&k.N.yearGroups(g.data.customerId)),O=(0,C.S)({userType:e.userType,field:A.q.YearGroupValues,getSearchAggregation:k.N.getSearchAggregation}),B=(0,o.useDispatch)(),L=(0,N.Y)(e.userType),M=c.b.useCreateJobErrorAlert();function P(r){l.Q.AppLinkHelper.trigger(Object.assign(Object.assign({},L.bulkActionsStatus.polling),{params:{userType:e.userType,jobId:r.id}}))}var F=!!O&&!!Y.data;return a().createElement(E.d,{appLinks:L,userType:e.userType,users:p,currentStep:"confirmation",userCount:m,loaded:F},F&&a().createElement(b,{users:p,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,P,M))}},userCount:m,countsByYearGroup:O,yearGroups:Y.data,editSsoHelpArticleUrl:w.o.getLiteArticle(S.b.EditSsoAccounts)}))}}}]);
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"}(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),p=t(36033),d=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)(d.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(p.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 E=t(58703),C=t(84566),A=t(70197),S=t(99705),G=t(39151),U=t(31949),w=t(12778),T=t(29613),k=t(47288),x=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,x.h)(e.userType),m=u.users,p=u.count,f=u.isFetching,y=u.hasMore,h=u.fetchNext,v=(t=(0,i.D)(d.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&&k.N.yearGroups(g.data.customerId)),O=(0,C.S)({userType:e.userType,field:A.q.YearGroupValues,getSearchAggregation:k.N.getSearchAggregation}),B=(0,o.useDispatch)(),L=(0,N.Y)(e.userType),M=c.b.useCreateJobErrorAlert();function P(r){l.Q.C$.trigger(Object.assign(Object.assign({},L.bulkActionsStatus.polling),{params:{userType:e.userType,jobId:r.id}}))}var F=!!O&&!!Y.data;return a().createElement(E.d,{appLinks:L,userType:e.userType,users:m,currentStep:"confirmation",userCount:p,loaded:F},F&&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,P,M))}},userCount:p,countsByYearGroup:O,yearGroups:Y.data,editSsoHelpArticleUrl:w.o.getLiteArticle(S.b.EditSsoAccounts)}))}}}]);
@@ -0,0 +1 @@
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"}}}]);
@@ -0,0 +1 @@
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 +1 @@
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),o=r.n(n),i=r(99910),a=r(20354),c=r(49985),l=r(65858),s=r(40688),u=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,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){s=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(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,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){s=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(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(o().useState("lg"),2),U=k[0],j=k[1],C=A(o().useState(),2),P=C[0],L=C[1],O=a.a.useBasicFetch(d.L.config()),E=a.a.useBasicFetch(d.L.version()),I=(0,v.M)(),M=(0,g.c)();function _(){t.closePopup();var e=f.i.filterBlacklistedKeys(P);c.k.logUserAction(e||{},{actionType:l.UserAction.Click,location:l.LocationContext.SignUpPopup,entity:l.EntityType.SignUp,descriptor:l.SignUpDescriptors.ClosePopup,workflowPhase:l.WorkflowPhase.Discard})}return O.hasCompleted&&I&&M&&E.hasCompleted?o().createElement(i.Modal,{show:!0,onHide:_,size:U},o().createElement(i.Modal.Body,{className:"mx-auto p-0 ".concat(y.Z.modalBody," w-100 position-relative")},o().createElement(s.h,{onStepUpdate:function(t){L(t),"completed"===t.currentStepId&&j(void 0)},pageAppLinkString:w,close:_,type:u.c.Popup,location:l.LocationContext.SignUpPopup,googleMapsApiKey:O.data.googleMapsApiKey,geoLocation:I,imageUrls:m.v,ajaxUrls:M,brazeConfig:O.data.braze,version:E.data,productName:p.X.Lite}))):o().createElement(o().Fragment,null)}}}]);
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(52974),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)}}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 9194-039e6b2075-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){return-1!==Function.toString.call(t).indexOf("[native code]")}(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 +1 @@
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+$/,p=8;function h(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],h=f[1],S=m(o().useState(""),2),E=S[0],w=S[1],N=m(o().useState(""),2),C=N[0],k=N[1],x=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")+(C||"X");e.onChange(t)}),[r,i,d,E,C]);var P=(s(t={},y.One,{getNext:function(){return P[y.Two]},getPrevious:function(){return null},value:r,setState:a,focus:function(){return x.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:h,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:C,setState:k,focus:function(){return I.current.focus()}}),t);function T(e,t){var n,r;if(g.test(e.key)||e.keyCode===p){var o=P[t];if(e.keyCode===p)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:x,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:C,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),N=n(31949),C=n(58130),k=n(83421),x=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:x.e.Launchpad.LOGIN_LANDING,params:{showJoinCode:!0}},U={application:O.O.DASHBOARD,action:x.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(N.N.currentUser());function g(){i.Q.AppLinkHelper.trigger({application:O.O.LAUNCHPAD,action:x.e.Launchpad.JOIN_CLASSROOM,args:[r]})}function b(){s(T("invalid")),d(!1)}return o().createElement(k.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:C.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(h,{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],p=i.j.createUrl(e.imageUrl,{size:a.h2.Large}),h=m;return o().useEffect((function(){if(!p&&h&&0!==h.length){var e,t=(e=h)[Math.floor(Math.random()*e.length)];t.bgUrl&&d(t.bgUrl),t.textUrl&&b(t.textUrl)}}),[]),o().useEffect((function(){if(p){var e=new Image;return e.onload=function(){return u(!0)},e.src=p,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(p,"')")}}),o().createElement("div",{className:"".concat(l.imageContainer," ").concat(v(e.objectType))},o().createElement("div",{className:l.imagePosition},o().createElement("img",{className:l.image,src:p,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
+ "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))}}}]);