@clickview/lite 0.15.3 → 0.15.4-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/.eslintrc.json +2 -2
  2. package/dist/bundles.json +2 -2
  3. package/dist/css/4830-lite-121afa5d5c.chunk.css +4 -0
  4. package/dist/css/6480-lite-ed3488bfac.chunk.css +5 -0
  5. package/dist/languages/en.json +1 -1
  6. package/dist/scripts/{1200-c506d27e70-lite.chunk.js → 1200-7bc97aed97-lite.chunk.js} +1 -1
  7. package/dist/scripts/{1592-dc635b7440-lite.chunk.js → 1592-ee21fc0aa7-lite.chunk.js} +1 -1
  8. package/dist/scripts/{1679-fbcb0a6720-lite.chunk.js → 1679-126577e72d-lite.chunk.js} +1 -1
  9. package/dist/scripts/{1705-ae576f3641-lite.chunk.js → 1705-0e26b4eaf0-lite.chunk.js} +1 -1
  10. package/dist/scripts/{2012-2f6b307507-lite.chunk.js → 2012-67a199f22f-lite.chunk.js} +1 -1
  11. package/dist/scripts/{2097-1c5f2a1fcb-lite.chunk.js → 2097-146bcd1ddf-lite.chunk.js} +2 -2
  12. package/dist/scripts/{2190-471331d8f2-lite.chunk.js → 2190-589bf6f8af-lite.chunk.js} +1 -1
  13. package/dist/scripts/{2215-af79023240-lite.chunk.js → 2215-da187c9feb-lite.chunk.js} +1 -1
  14. package/dist/scripts/{2303-028cc0466f-lite.chunk.js → 2303-6126340963-lite.chunk.js} +1 -1
  15. package/dist/scripts/2560-c046fde2a7-lite.chunk.js +1 -0
  16. package/dist/scripts/2873-e6e89a4d04-lite.chunk.js +1 -0
  17. package/dist/scripts/2966-534977c67c-lite.chunk.js +1 -0
  18. package/dist/scripts/3202-6c9e45632f-lite.chunk.js +1 -0
  19. package/dist/scripts/{3231-f57e8dbad8-lite.chunk.js → 3231-90a6d4529c-lite.chunk.js} +1 -1
  20. package/dist/scripts/{3285-4b1f16d207-lite.chunk.js → 3285-d6a55789c8-lite.chunk.js} +1 -1
  21. package/dist/scripts/3729-9f1b5c059f-lite.chunk.js +1 -0
  22. package/dist/scripts/4262-333422e343-lite.chunk.js +1 -0
  23. package/dist/scripts/{4309-d1547161e9-lite.chunk.js → 4309-00c179f744-lite.chunk.js} +1 -1
  24. package/dist/scripts/{4617-9ac1af6dfd-lite.chunk.js → 4617-55a38a0696-lite.chunk.js} +1 -1
  25. package/dist/scripts/{4722-8066074f20-lite.chunk.js → 4722-644338ad02-lite.chunk.js} +1 -1
  26. package/dist/scripts/4762-a54399fce4-lite.chunk.js +1 -0
  27. package/dist/scripts/4830-839bc2e5e9-lite.chunk.js +2 -0
  28. package/dist/scripts/5018-67695be6d6-lite.chunk.js +1 -0
  29. package/dist/scripts/5125-25de718469-lite.chunk.js +1 -0
  30. package/dist/scripts/5290-07036ae357-lite.chunk.js +1 -0
  31. package/dist/scripts/{5763-6b4b39b05b-lite.chunk.js → 5763-45ef83bd4d-lite.chunk.js} +1 -1
  32. package/dist/scripts/{5875-4cdf932880-lite.chunk.js → 5875-eb7ea3e0e5-lite.chunk.js} +1 -1
  33. package/dist/scripts/5923-987f2c93aa-lite.chunk.js +1 -0
  34. package/dist/scripts/5986-8885fc1dfa-lite.chunk.js +1 -0
  35. package/dist/scripts/{6080-0c2ee137e7-lite.chunk.js → 6080-297fb061ee-lite.chunk.js} +1 -1
  36. package/dist/scripts/{6160-ed553565f8-lite.chunk.js → 6160-1bfd8b6eb2-lite.chunk.js} +1 -1
  37. package/dist/scripts/{6263-2af1d7e30d-lite.chunk.js → 6263-999d99218d-lite.chunk.js} +1 -1
  38. package/dist/scripts/{6290-43f1441287-lite.chunk.js → 6290-b25a299771-lite.chunk.js} +1 -1
  39. package/dist/scripts/{6302-12f37e86e3-lite.chunk.js → 6302-b08c38e401-lite.chunk.js} +1 -1
  40. package/dist/scripts/6480-92c1141ba0-lite.chunk.js +1 -0
  41. package/dist/scripts/{6507-8ed19f9a8b-lite.chunk.js → 6507-697def4d7e-lite.chunk.js} +1 -1
  42. package/dist/scripts/{6736-4ded0efe20-lite.chunk.js → 6736-a4c7163c83-lite.chunk.js} +1 -1
  43. package/dist/scripts/{6801-f8466b395e-lite.chunk.js → 6801-ccfd47ed84-lite.chunk.js} +1 -1
  44. package/dist/scripts/6936-d91b012e77-lite.chunk.js +1 -0
  45. package/dist/scripts/7057-9caa393f6a-lite.chunk.js +1 -0
  46. package/dist/scripts/7093-13f22495dc-lite.chunk.js +1 -0
  47. package/dist/scripts/{7210-37e5f73035-lite.chunk.js → 7210-f978145238-lite.chunk.js} +1 -1
  48. package/dist/scripts/{7318-72714b7211-lite.chunk.js → 7318-6cc811f662-lite.chunk.js} +2 -2
  49. package/dist/scripts/{7385-d8a9d8d8e1-lite.chunk.js → 7385-47a0e78345-lite.chunk.js} +1 -1
  50. package/dist/scripts/{7397-638e09f9f9-lite.chunk.js → 7397-4955150f84-lite.chunk.js} +1 -1
  51. package/dist/scripts/7831-141b12d016-lite.chunk.js +1 -0
  52. package/dist/scripts/7880-912034e651-lite.chunk.js +1 -0
  53. package/dist/scripts/{7888-52843639d6-lite.chunk.js → 7888-ae7d2a9a29-lite.chunk.js} +1 -1
  54. package/dist/scripts/7901-9bedd6d3c7-lite.chunk.js +1 -0
  55. package/dist/scripts/{7989-eb45eeb999-lite.chunk.js → 7989-1b3277ef7b-lite.chunk.js} +1 -1
  56. package/dist/scripts/{8278-1aa39f0700-lite.chunk.js → 8278-e35179b96d-lite.chunk.js} +1 -1
  57. package/dist/scripts/{8323-2743057743-lite.chunk.js → 8323-ed50d28843-lite.chunk.js} +1 -1
  58. package/dist/scripts/{8779-725ad94876-lite.chunk.js → 8779-f555f018a8-lite.chunk.js} +1 -1
  59. package/dist/scripts/{8891-7e65f394fb-lite.chunk.js → 8891-f91f140e3f-lite.chunk.js} +1 -1
  60. package/dist/scripts/9005-11aa7b5025-lite.chunk.js +1 -0
  61. package/dist/scripts/9016-f5547114e1-lite.chunk.js +1 -0
  62. package/dist/scripts/{9035-658323ab5c-lite.chunk.js → 9035-1c409d1ad6-lite.chunk.js} +1 -1
  63. package/dist/scripts/{9133-fee6bf88ed-lite.chunk.js → 9133-10a177a126-lite.chunk.js} +1 -1
  64. package/dist/scripts/{9154-f3edd30058-lite.chunk.js → 9154-c23979875e-lite.chunk.js} +1 -1
  65. package/dist/scripts/{929-714a7dc6af-lite.chunk.js → 929-4957d8a224-lite.chunk.js} +1 -1
  66. package/dist/scripts/{9312-eb6e6faade-lite.chunk.js → 9312-f6d43cdce6-lite.chunk.js} +2 -2
  67. package/dist/scripts/{9478-65c3a1110d-lite.chunk.js → 9478-fd6d0f412e-lite.chunk.js} +2 -2
  68. package/dist/scripts/9478-fd6d0f412e-lite.chunk.js.LICENSE.txt +1 -0
  69. package/dist/scripts/{9686-1ed4393a38-lite.chunk.js → 9686-092c3d478c-lite.chunk.js} +1 -1
  70. package/dist/scripts/9899-326aa9652b-lite.chunk.js +1 -0
  71. package/dist/scripts/bundle-cccf775961.min.js +2 -0
  72. package/jest.config.js +11 -11
  73. package/package.json +59 -58
  74. package/typings/libs/CVEvents.d.ts +12 -12
  75. package/typings/libs/CVLanguages.d.ts +24 -24
  76. package/typings/libs/backbone.validation.d.ts +99 -99
  77. package/typings/libs/cookiesjs.d.ts +25 -25
  78. package/typings/libs/draft-convert.d.ts +3 -3
  79. package/typings/libs/google-api.d.ts +93 -93
  80. package/typings/libs/intersection-observer.d.ts +82 -82
  81. package/typings/libs/microsoft-teams.d.ts +2 -2
  82. package/typings/libs/react-table-config.d.ts +138 -138
  83. package/typings/libs/trackjs.d.ts +2 -2
  84. package/typings/libs/videojs-contrib-quality-levels.d.ts +28 -28
  85. package/typings/utils/imports.d.ts +13 -13
  86. package/dist/scripts/2560-3041345565-lite.chunk.js +0 -1
  87. package/dist/scripts/2873-297718ffe4-lite.chunk.js +0 -1
  88. package/dist/scripts/2966-6c37f34938-lite.chunk.js +0 -1
  89. package/dist/scripts/3202-c6237ac449-lite.chunk.js +0 -1
  90. package/dist/scripts/3729-0518176814-lite.chunk.js +0 -1
  91. package/dist/scripts/4108-4a37946815-lite.chunk.js +0 -1
  92. package/dist/scripts/4262-45eb7313bd-lite.chunk.js +0 -1
  93. package/dist/scripts/4762-bed7f565f9-lite.chunk.js +0 -1
  94. package/dist/scripts/5018-4fa8bb7f15-lite.chunk.js +0 -1
  95. package/dist/scripts/5125-010d1df259-lite.chunk.js +0 -1
  96. package/dist/scripts/5290-93df8dcdf9-lite.chunk.js +0 -1
  97. package/dist/scripts/5923-690e9cc63a-lite.chunk.js +0 -1
  98. package/dist/scripts/5986-a36cfcf242-lite.chunk.js +0 -1
  99. package/dist/scripts/6936-09baf4a92f-lite.chunk.js +0 -1
  100. package/dist/scripts/7057-7283f25eef-lite.chunk.js +0 -1
  101. package/dist/scripts/7831-a1a1e893b8-lite.chunk.js +0 -1
  102. package/dist/scripts/7880-e464ee1c20-lite.chunk.js +0 -1
  103. package/dist/scripts/7901-558fd93326-lite.chunk.js +0 -1
  104. package/dist/scripts/9005-b110294f6f-lite.chunk.js +0 -1
  105. package/dist/scripts/9016-0710323eaa-lite.chunk.js +0 -1
  106. package/dist/scripts/9899-b96c60ec3b-lite.chunk.js +0 -1
  107. package/dist/scripts/bundle-e90e082770.min.js +0 -2
  108. package/dist/css/{4108-lite-c9bfd660fa.chunk.css → 7093-lite-c9bfd660fa.chunk.css} +0 -0
  109. package/dist/css/{lite-app-cf5196fb84.css → lite-app-9e40980504.css} +1 -1
  110. /package/dist/scripts/{1007-2ca916e6d6-lite.chunk.js → 1007-c964b537de-lite.chunk.js} +0 -0
  111. /package/dist/scripts/{1200-c506d27e70-lite.chunk.js.LICENSE.txt → 1200-7bc97aed97-lite.chunk.js.LICENSE.txt} +0 -0
  112. /package/dist/scripts/{1235-aa0df7dc82-lite.chunk.js → 1235-f87c0b5db8-lite.chunk.js} +0 -0
  113. /package/dist/scripts/{1285-8f7e21c6c8-lite.chunk.js → 1285-e2bd8a3d06-lite.chunk.js} +0 -0
  114. /package/dist/scripts/{1291-de2ace7ed4-lite.chunk.js → 1291-000a87e198-lite.chunk.js} +0 -0
  115. /package/dist/scripts/{1518-2cef7e66cf-lite.chunk.js → 1518-4ec8790cb2-lite.chunk.js} +0 -0
  116. /package/dist/scripts/{1659-59d1428248-lite.chunk.js → 1659-19cf886865-lite.chunk.js} +0 -0
  117. /package/dist/scripts/{1725-8827df5901-lite.chunk.js → 1725-585ab6067c-lite.chunk.js} +0 -0
  118. /package/dist/scripts/{1792-ab897d369e-lite.chunk.js → 1792-2321d51dba-lite.chunk.js} +0 -0
  119. /package/dist/scripts/{1837-c4d960d524-lite.chunk.js → 1837-c57fc691a7-lite.chunk.js} +0 -0
  120. /package/dist/scripts/{1891-b00fa42970-lite.chunk.js → 1891-883205c90f-lite.chunk.js} +0 -0
  121. /package/dist/scripts/{1924-33f191fed1-lite.chunk.js → 1924-e9c7172d53-lite.chunk.js} +0 -0
  122. /package/dist/scripts/{209-16a13c2271-lite.chunk.js → 209-4768c11224-lite.chunk.js} +0 -0
  123. /package/dist/scripts/{2097-1c5f2a1fcb-lite.chunk.js.LICENSE.txt → 2097-146bcd1ddf-lite.chunk.js.LICENSE.txt} +0 -0
  124. /package/dist/scripts/{2175-5ff59ae9f4-lite.chunk.js → 2175-899f9ff876-lite.chunk.js} +0 -0
  125. /package/dist/scripts/{2229-74179fc95b-lite.chunk.js → 2229-931236512d-lite.chunk.js} +0 -0
  126. /package/dist/scripts/{227-5c7c67782c-lite.chunk.js → 227-9c12b92fc7-lite.chunk.js} +0 -0
  127. /package/dist/scripts/{2279-e542de566e-lite.chunk.js → 2279-004a1f3e13-lite.chunk.js} +0 -0
  128. /package/dist/scripts/{2452-ed97feb8f4-lite.chunk.js → 2452-ddcf0aa499-lite.chunk.js} +0 -0
  129. /package/dist/scripts/{2541-6ebd3ae13e-lite.chunk.js → 2541-c529f7b3cd-lite.chunk.js} +0 -0
  130. /package/dist/scripts/{2574-0a7bbfea42-lite.chunk.js → 2574-983b454ad7-lite.chunk.js} +0 -0
  131. /package/dist/scripts/{2592-085c2cd21c-lite.chunk.js → 2592-2f084dd8af-lite.chunk.js} +0 -0
  132. /package/dist/scripts/{27-e2dabf4466-lite.chunk.js → 27-80804c23ed-lite.chunk.js} +0 -0
  133. /package/dist/scripts/{2791-881b28a030-lite.chunk.js → 2791-b3c486a765-lite.chunk.js} +0 -0
  134. /package/dist/scripts/{2812-ea1ead0f4e-lite.chunk.js → 2812-64644796c1-lite.chunk.js} +0 -0
  135. /package/dist/scripts/{291-80f5120bdc-lite.chunk.js → 291-ce2b835b15-lite.chunk.js} +0 -0
  136. /package/dist/scripts/{2935-231926522c-lite.chunk.js → 2935-f78be6fc97-lite.chunk.js} +0 -0
  137. /package/dist/scripts/{3007-5207ac6a44-lite.chunk.js → 3007-9ee1ebf9f7-lite.chunk.js} +0 -0
  138. /package/dist/scripts/{3012-5a2e992d80-lite.chunk.js → 3012-4263dd0317-lite.chunk.js} +0 -0
  139. /package/dist/scripts/{3020-6297afe9aa-lite.chunk.js → 3020-efe1827524-lite.chunk.js} +0 -0
  140. /package/dist/scripts/{3108-7b6349607f-lite.chunk.js → 3108-90186be5f6-lite.chunk.js} +0 -0
  141. /package/dist/scripts/{3152-5393aebd54-lite.chunk.js → 3152-be39e1ea5d-lite.chunk.js} +0 -0
  142. /package/dist/scripts/{3171-1f3496bc29-lite.chunk.js → 3171-0f3cda86d4-lite.chunk.js} +0 -0
  143. /package/dist/scripts/{3174-d4dafe5c16-lite.chunk.js → 3174-ddf63dbf33-lite.chunk.js} +0 -0
  144. /package/dist/scripts/{3216-190f074311-lite.chunk.js → 3216-ad68938cab-lite.chunk.js} +0 -0
  145. /package/dist/scripts/{3237-76b4eacd1c-lite.chunk.js → 3237-abd4f2320e-lite.chunk.js} +0 -0
  146. /package/dist/scripts/{3269-3eed954253-lite.chunk.js → 3269-2dcd8315fb-lite.chunk.js} +0 -0
  147. /package/dist/scripts/{3468-3693024f26-lite.chunk.js → 3468-3668b5044d-lite.chunk.js} +0 -0
  148. /package/dist/scripts/{3754-ff751ace76-lite.chunk.js → 3754-ba9209ac1c-lite.chunk.js} +0 -0
  149. /package/dist/scripts/{3787-82c933d7ed-lite.chunk.js → 3787-5ad242b2f0-lite.chunk.js} +0 -0
  150. /package/dist/scripts/{4182-aa468b67ef-lite.chunk.js → 4182-3e9887f6bf-lite.chunk.js} +0 -0
  151. /package/dist/scripts/{4343-940ff0028f-lite.chunk.js → 4343-00a17c0adb-lite.chunk.js} +0 -0
  152. /package/dist/scripts/{4423-690a215874-lite.chunk.js → 4423-48a7394369-lite.chunk.js} +0 -0
  153. /package/dist/scripts/{4541-94a3392387-lite.chunk.js → 4541-538d1dd03a-lite.chunk.js} +0 -0
  154. /package/dist/scripts/{482-543bf1bb58-lite.chunk.js → 482-397917b1c7-lite.chunk.js} +0 -0
  155. /package/dist/scripts/{5875-4cdf932880-lite.chunk.js.LICENSE.txt → 4830-839bc2e5e9-lite.chunk.js.LICENSE.txt} +0 -0
  156. /package/dist/scripts/{4893-97876b0f67-lite.chunk.js → 4893-b59fffe777-lite.chunk.js} +0 -0
  157. /package/dist/scripts/{5197-b928550a4d-lite.chunk.js → 5197-d85c77eb63-lite.chunk.js} +0 -0
  158. /package/dist/scripts/{5585-fb913e8144-lite.chunk.js → 5585-c52455e7ac-lite.chunk.js} +0 -0
  159. /package/dist/scripts/{5606-c733696024-lite.chunk.js → 5606-af27d0d181-lite.chunk.js} +0 -0
  160. /package/dist/scripts/{6736-4ded0efe20-lite.chunk.js.LICENSE.txt → 5875-eb7ea3e0e5-lite.chunk.js.LICENSE.txt} +0 -0
  161. /package/dist/scripts/{5877-8ef5391aa9-lite.chunk.js → 5877-fe7fe23526-lite.chunk.js} +0 -0
  162. /package/dist/scripts/{5914-14a1cece1b-lite.chunk.js → 5914-e431f8ff72-lite.chunk.js} +0 -0
  163. /package/dist/scripts/{5956-149ed44852-lite.chunk.js → 5956-7aa28b3f38-lite.chunk.js} +0 -0
  164. /package/dist/scripts/{5974-41328f6830-lite.chunk.js → 5974-726f70e011-lite.chunk.js} +0 -0
  165. /package/dist/scripts/{6274-e72a9defe0-lite.chunk.js → 6274-8bd482354f-lite.chunk.js} +0 -0
  166. /package/dist/scripts/{6368-08b51680f0-lite.chunk.js → 6368-3dafa511a1-lite.chunk.js} +0 -0
  167. /package/dist/scripts/{6370-95dd54b1c3-lite.chunk.js → 6370-73a5f5b640-lite.chunk.js} +0 -0
  168. /package/dist/scripts/{6381-a056fb8a08-lite.chunk.js → 6381-9f24a47cb7-lite.chunk.js} +0 -0
  169. /package/dist/scripts/{6450-e266aa89ea-lite.chunk.js → 6450-c1f0423e8d-lite.chunk.js} +0 -0
  170. /package/dist/scripts/{6465-0c60c1cd6c-lite.chunk.js → 6465-6363e9ebf6-lite.chunk.js} +0 -0
  171. /package/dist/scripts/{6493-74f6946ca6-lite.chunk.js → 6493-2c1d2fad27-lite.chunk.js} +0 -0
  172. /package/dist/scripts/{6604-51f58c98be-lite.chunk.js → 6604-21e6cab511-lite.chunk.js} +0 -0
  173. /package/dist/scripts/{6725-47d9b15d14-lite.chunk.js → 6725-692a6bf6d9-lite.chunk.js} +0 -0
  174. /package/dist/scripts/{8323-2743057743-lite.chunk.js.LICENSE.txt → 6736-a4c7163c83-lite.chunk.js.LICENSE.txt} +0 -0
  175. /package/dist/scripts/{6821-a985554f7d-lite.chunk.js → 6821-6859424d65-lite.chunk.js} +0 -0
  176. /package/dist/scripts/{6873-323ca69b42-lite.chunk.js → 6873-3caf3bd99a-lite.chunk.js} +0 -0
  177. /package/dist/scripts/{7045-9a70804c9a-lite.chunk.js → 7045-638058e6a9-lite.chunk.js} +0 -0
  178. /package/dist/scripts/{7056-5225cf8ce1-lite.chunk.js → 7056-15a17acdd3-lite.chunk.js} +0 -0
  179. /package/dist/scripts/{7115-77f4f95941-lite.chunk.js → 7115-b47d0943f3-lite.chunk.js} +0 -0
  180. /package/dist/scripts/{7128-193ffbf36e-lite.chunk.js → 7128-e249c51075-lite.chunk.js} +0 -0
  181. /package/dist/scripts/{716-f911abe0b5-lite.chunk.js → 716-279e6da74c-lite.chunk.js} +0 -0
  182. /package/dist/scripts/{7172-b46b99bc9f-lite.chunk.js → 7172-f7ba572736-lite.chunk.js} +0 -0
  183. /package/dist/scripts/{7178-79a2e83a9f-lite.chunk.js → 7178-c77095800f-lite.chunk.js} +0 -0
  184. /package/dist/scripts/{719-6bbb20b387-lite.chunk.js → 719-722225b0c0-lite.chunk.js} +0 -0
  185. /package/dist/scripts/{7318-72714b7211-lite.chunk.js.LICENSE.txt → 7318-6cc811f662-lite.chunk.js.LICENSE.txt} +0 -0
  186. /package/dist/scripts/{7332-3d9c2f21c3-lite.chunk.js → 7332-2a37cfd165-lite.chunk.js} +0 -0
  187. /package/dist/scripts/{7407-0dc924f426-lite.chunk.js → 7407-9ed25c23a1-lite.chunk.js} +0 -0
  188. /package/dist/scripts/{7413-ee228e9e6b-lite.chunk.js → 7413-7e3710396d-lite.chunk.js} +0 -0
  189. /package/dist/scripts/{7524-9489b28409-lite.chunk.js → 7524-88c405b1b2-lite.chunk.js} +0 -0
  190. /package/dist/scripts/{7552-40be3820db-lite.chunk.js → 7552-d1a8e6602b-lite.chunk.js} +0 -0
  191. /package/dist/scripts/{7767-6009061b47-lite.chunk.js → 7767-7ee6460e21-lite.chunk.js} +0 -0
  192. /package/dist/scripts/{7855-68913eaf38-lite.chunk.js → 7855-f47ffb61a9-lite.chunk.js} +0 -0
  193. /package/dist/scripts/{7925-1236157fe7-lite.chunk.js → 7925-a0e0e07c8a-lite.chunk.js} +0 -0
  194. /package/dist/scripts/{7989-eb45eeb999-lite.chunk.js.LICENSE.txt → 7989-1b3277ef7b-lite.chunk.js.LICENSE.txt} +0 -0
  195. /package/dist/scripts/{8025-1552bc6cd4-lite.chunk.js → 8025-babfe79090-lite.chunk.js} +0 -0
  196. /package/dist/scripts/{8038-593e87cc91-lite.chunk.js → 8038-be1f63c0ae-lite.chunk.js} +0 -0
  197. /package/dist/scripts/{8046-98d5f00223-lite.chunk.js → 8046-27cf494035-lite.chunk.js} +0 -0
  198. /package/dist/scripts/{8056-d0f84db2e5-lite.chunk.js → 8056-11a1dbabef-lite.chunk.js} +0 -0
  199. /package/dist/scripts/{8083-2b7dbb7078-lite.chunk.js → 8083-ec930527e2-lite.chunk.js} +0 -0
  200. /package/dist/scripts/{823-42151f959d-lite.chunk.js → 823-f6242135a8-lite.chunk.js} +0 -0
  201. /package/dist/scripts/{8252-2ab1871639-lite.chunk.js → 8252-a1fdb747cd-lite.chunk.js} +0 -0
  202. /package/dist/scripts/{9312-eb6e6faade-lite.chunk.js.LICENSE.txt → 8323-ed50d28843-lite.chunk.js.LICENSE.txt} +0 -0
  203. /package/dist/scripts/{8339-123423a4a1-lite.chunk.js → 8339-de192f2de3-lite.chunk.js} +0 -0
  204. /package/dist/scripts/{8466-d4ae83ca9d-lite.chunk.js → 8466-be5071f893-lite.chunk.js} +0 -0
  205. /package/dist/scripts/{8621-baf66fcdf3-lite.chunk.js → 8621-1bbcb94da7-lite.chunk.js} +0 -0
  206. /package/dist/scripts/{8745-c846303500-lite.chunk.js → 8745-e0b1fa5c33-lite.chunk.js} +0 -0
  207. /package/dist/scripts/{8801-f6628e7896-lite.chunk.js → 8801-7bc34939a6-lite.chunk.js} +0 -0
  208. /package/dist/scripts/{8868-793082d45a-lite.chunk.js → 8868-712a4fd410-lite.chunk.js} +0 -0
  209. /package/dist/scripts/{8955-6d4f8ff6bb-lite.chunk.js → 8955-5fcbf667e7-lite.chunk.js} +0 -0
  210. /package/dist/scripts/{9001-74a8cdfe51-lite.chunk.js → 9001-7a30be2b8d-lite.chunk.js} +0 -0
  211. /package/dist/scripts/{9038-49ee873485-lite.chunk.js → 9038-7a39972821-lite.chunk.js} +0 -0
  212. /package/dist/scripts/{9060-e6fd135bd3-lite.chunk.js → 9060-e6d0dd2e0b-lite.chunk.js} +0 -0
  213. /package/dist/scripts/{9147-fca99f99f5-lite.chunk.js → 9147-7d4c746c2a-lite.chunk.js} +0 -0
  214. /package/dist/scripts/{9242-ec6c35ef1f-lite.chunk.js → 9242-ae51b31111-lite.chunk.js} +0 -0
  215. /package/dist/scripts/{9478-65c3a1110d-lite.chunk.js.LICENSE.txt → 9312-f6d43cdce6-lite.chunk.js.LICENSE.txt} +0 -0
  216. /package/dist/scripts/{9455-a719e8891b-lite.chunk.js → 9455-9769e1bab9-lite.chunk.js} +0 -0
  217. /package/dist/scripts/{9552-b3068122ac-lite.chunk.js → 9552-cc19aaf243-lite.chunk.js} +0 -0
  218. /package/dist/scripts/{bundle-e90e082770.min.js.LICENSE.txt → bundle-cccf775961.min.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
- /*! For license information please see 9478-65c3a1110d-lite.chunk.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9478],{39478:(t,e,r)=>{r.r(e),r.d(e,{BaseShareLinkView:()=>y});var n=r(1024),o=r.n(n),i=r(20354),a=r(31949),c=r(30439),u=r(4594);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 s(){s=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function f(t,e,r,o){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new j(o||[]);return n(a,"_invoke",{value:S(t,r,c)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var d={};function v(){}function p(){}function y(){}var m={};u(m,i,(function(){return this}));var w=Object.getPrototypeOf,g=w&&w(w(P([])));g&&g!==e&&r.call(g,i)&&(m=g);var b=y.prototype=v.prototype=Object.create(m);function x(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function o(n,i,a,c){var u=h(t[n],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==l(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,c)}))}c(u.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=L(a,r);if(c){if(c===d)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=h(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function L(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,L(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=h(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,d;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function k(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 I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function P(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:_}}function _(){return{value:void 0,done:!0}}return p.prototype=y,n(b,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:p,configurable:!0}),p.displayName=u(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},x(E.prototype),u(E.prototype,a,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(b),u(b,c,"Generator"),u(b,i,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=P,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(I),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):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),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},t}function f(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}var h=function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function c(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}u((n=n.apply(t,e||[])).next())}))},d=r(22902),v=r(16714),p={optimize:!0};function y(t){var e=t.shareId,n=t.queryParams,l=(0,d.T)().hasPermissions,y=i.a.useBasicFetch(a.N.currentUser(),p),m=i.a.useBasicFetch(e&&c.o.getShareObject(e),p),w=function(t,e){var n,i,a=(n=o().useState(),i=2,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){c=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}}(n,i)||function(t,e){if(t){if("string"==typeof t)return f(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)?f(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.")}()),c=a[0],l=a[1];return o().useEffect((function(){c&&l(null)}),[e.videoId]),o().useEffect((function(){if(t&&!c){var n=t.objectTypeId;switch(e.videoId?n=u.E.Video:e.clipId?n=u.E.Clip:e.interactiveId&&(n=u.E.Interactive),n){case u.E.Video:var i=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(7760),r.e(6014),r.e(5986),r.e(3231),r.e(1518),r.e(5763),r.e(2541),r.e(2012),r.e(5290)]).then(r.bind(r,93978));case 2:return e=t.sent,n=e.PlaySharedVideoView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(i);break;case u.E.Interactive:var a=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(7919),r.e(7760),r.e(6014),r.e(5986),r.e(3231),r.e(1518),r.e(5763),r.e(5875),r.e(9154),r.e(7880)]).then(r.bind(r,38280));case 2:return e=t.sent,n=e.SharedInteractiveView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(a);break;case u.E.Clip:var f=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(7760),r.e(6014),r.e(5986),r.e(3231),r.e(1518),r.e(5763),r.e(7831),r.e(8278)]).then(r.bind(r,41021));case 2:return e=t.sent,n=e.PlaySharedClipView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(f);break;case u.E.Playlist:var d=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(7760),r.e(6014),r.e(5986),r.e(3231),r.e(6263),r.e(5125)]).then(r.bind(r,67537));case 2:return e=t.sent,n=e.SharedPlaylistView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(d);break;case u.E.Series:var v=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(7760),r.e(6014),r.e(5986),r.e(3231),r.e(2215),r.e(4955)]).then(r.bind(r,96922));case 2:return e=t.sent,n=e.SharedSeriesView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(v)}}}),[t,c]),c}(m.data,n);if(!w)return o().createElement(o().Fragment,null);var g={shareId:e,queryParams:n,objectId:n.videoId?n.videoId:n.clipId?n.clipId:n.interactiveId?n.interactiveId:m.data.objectId,currentUser:y.data,playNext:n.playNext};return l(v.C.StudentExperience)&&"activityStatus"in m.data&&(g.activityStatus=m.data.activityStatus),o().createElement(o().Suspense,{fallback:o().createElement(o().Fragment,null)},o().createElement(w,Object.assign({},g)))}}}]);
1
+ /*! For license information please see 9478-fd6d0f412e-lite.chunk.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9478],{39478:(t,e,r)=>{r.r(e),r.d(e,{BaseShareLinkView:()=>p});var n=r(1024),o=r.n(n),i=r(20354),a=r(31949),c=r(30439),u=r(4594);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 s(){s=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function f(t,e,r,o){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new j(o||[]);return n(a,"_invoke",{value:S(t,r,c)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var d={};function v(){}function p(){}function y(){}var m={};u(m,i,(function(){return this}));var w=Object.getPrototypeOf,g=w&&w(w(P([])));g&&g!==e&&r.call(g,i)&&(m=g);var b=y.prototype=v.prototype=Object.create(m);function x(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function o(n,i,a,c){var u=h(t[n],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==l(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,c)}))}c(u.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=L(a,r);if(c){if(c===d)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=h(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function L(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,L(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=h(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,d;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function k(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 I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function P(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:_}}function _(){return{value:void 0,done:!0}}return p.prototype=y,n(b,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:p,configurable:!0}),p.displayName=u(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},x(E.prototype),u(E.prototype,a,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(b),u(b,c,"Generator"),u(b,i,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=P,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(I),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):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),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},t}function f(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}var h=function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function c(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}u((n=n.apply(t,e||[])).next())}))},d=r(22902),v=r(16714);function p(t){var e=t.shareId,n=t.queryParams,l=(0,d.T)().hasPermissions,p=i.a.useBasicFetch(a.N.currentUser()),y=i.a.useBasicFetch(e&&c.o.getShareObject(e)),m=function(t,e){var n,i,a=(n=o().useState(),i=2,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){c=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}}(n,i)||function(t,e){if(t){if("string"==typeof t)return f(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)?f(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.")}()),c=a[0],l=a[1];return o().useEffect((function(){c&&l(null)}),[e.videoId]),o().useEffect((function(){if(t&&!c){var n=t.objectTypeId;switch(e.videoId?n=u.E.Video:e.clipId?n=u.E.Clip:e.interactiveId&&(n=u.E.Interactive),n){case u.E.Video:var i=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(7760),r.e(6014),r.e(5986),r.e(3231),r.e(1518),r.e(5763),r.e(2541),r.e(2012),r.e(5290)]).then(r.bind(r,93978));case 2:return e=t.sent,n=e.PlaySharedVideoView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(i);break;case u.E.Interactive:var a=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(7919),r.e(7760),r.e(6014),r.e(5986),r.e(3231),r.e(1518),r.e(5763),r.e(5875),r.e(9154),r.e(7880)]).then(r.bind(r,38280));case 2:return e=t.sent,n=e.SharedInteractiveView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(a);break;case u.E.Clip:var f=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(7760),r.e(6014),r.e(5986),r.e(3231),r.e(1518),r.e(5763),r.e(7831),r.e(8278)]).then(r.bind(r,41021));case 2:return e=t.sent,n=e.PlaySharedClipView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(f);break;case u.E.Playlist:var d=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(7760),r.e(6014),r.e(5986),r.e(3231),r.e(6263),r.e(5125)]).then(r.bind(r,67537));case 2:return e=t.sent,n=e.SharedPlaylistView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(d);break;case u.E.Series:var v=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(7760),r.e(6014),r.e(5986),r.e(3231),r.e(2215),r.e(4955)]).then(r.bind(r,96922));case 2:return e=t.sent,n=e.SharedSeriesView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(v)}}}),[t,c]),c}(y.data,n);if(!m)return o().createElement(o().Fragment,null);var w={shareId:e,queryParams:n,objectId:n.videoId?n.videoId:n.clipId?n.clipId:n.interactiveId?n.interactiveId:y.data.objectId,currentUser:p.data,playNext:n.playNext};return l(v.C.StudentExperience)&&"activityStatus"in y.data&&(w.activityStatus=y.data.activityStatus),o().createElement(o().Suspense,{fallback:o().createElement(o().Fragment,null)},o().createElement(m,Object.assign({},w)))}}}]);
@@ -0,0 +1 @@
1
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9686],{60051:(e,t,n)=>{var r;n.d(t,{f:()=>r}),function(e){e.Share="share",e.MasterObject="masterobject"}(r||(r={}))},47812:(e,t,n)=>{n.d(t,{k:()=>i});var r=n(99940),i={createViewKey:function(e,t,n){var i={mediaId:e.toString(),mediaIdType:t};return n&&(i.shareContextId=n),{url:"/api/player/create-view-key",key:"view:key:".concat(e,":").concat(t),type:r.k.POST,data:i,expiryTime:28800}}}},99686:(e,t,n)=>{n.r(t),n.d(t,{EditClipTimepointsView:()=>Ne});var r=n(1024),i=n.n(r),o=n(20354),a=n(81886),c=n(23481),u=n(23049),l=n(47812),s=n(39151),f=n(497),p=n(85768),d=n(24967);function y(e){return y="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},y(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(){return v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=b(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},v.apply(this,arguments)}function b(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=O(e)););return e}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function T(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(a,e);var t,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(e){return!1}}(),function(){var e,t=O(r);if(i){var n=O(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return T(this,e)});function a(){return h(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"buildCSSClass",value:function(){return"cv-clip-timepoint-handle ".concat(v(O(a.prototype),"buildCSSClass",this).call(this))}},{key:"createEl",value:function(e,t,n){return v(O(a.prototype),"createEl",this).call(this,e,Object.assign(Object.assign({},t),{className:this.buildCSSClass(),innerHTML:'<svg viewBox="0 0 5 14" pointer-events="none"><g id="Clips" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Clip-2" transform="translate(-835.000000, -632.000000)" fill="#FFFFFF"><g id="Video-Copy" transform="translate(275.000000, 96.000000)"><g id="Handles" transform="translate(560.000000, 536.000000)"><circle id="Oval" cx="1" cy="1" r="1"></circle><circle id="Oval-Copy-2" cx="1" cy="5" r="1"></circle><circle id="Oval-Copy-4" cx="1" cy="9" r="1"></circle><circle id="Oval-Copy-8" cx="1" cy="13" r="1"></circle><circle id="Oval-Copy" cx="4" cy="1" r="1"></circle><circle id="Oval-Copy-3" cx="4" cy="5" r="1"></circle><circle id="Oval-Copy-5" cx="4" cy="9" r="1"></circle><circle id="Oval-Copy-9" cx="4" cy="13" r="1"></circle></g></g></g></g></svg>'}),n)}},{key:"isEventTarget",value:function(e){return this.el().contains(e.target)}}])&&m(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(d.Z.getComponent("Component"));function S(e){return S="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},S(e)}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function E(){return E="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=C(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},E.apply(this,arguments)}function C(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_(e)););return e}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}function j(e,t){if(t&&("object"===S(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var D=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}(a,e);var t,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(e){return!1}}(),function(){var e,t=_(r);if(i){var n=_(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return j(this,e)});function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,e,t)).dragStartActive=!1,n.dragEndActive=!1,n.dragSliderActive=!1,n.dragSliderCurrentPosition=null,n.minDuration=Math.min(e.duration(),n.options_.minDuration),n.setStartTime(t.startTime,!1),n.setEndTime(t.endTime,!1),n.startHandle=new w(n.player(),t),n.startHandle.addClass("cv-clip-start-handle"),n.addChild(n.startHandle),n.endHandle=new w(n.player(),t),n.endHandle.addClass("cv-clip-end-handle"),n.addChild(n.endHandle),n.on(n.player(),"update:clip:start:time",(function(e){var t=e.time;return n.setStartTime(t)})),n.on(n.player(),"update:clip:end:time",(function(e){var t=e.time;return n.setEndTime(t)})),n.bindListeners(),n.update(),n}return t=a,n=[{key:"createEl",value:function(){return E(_(a.prototype),"createEl",this).call(this,"div",{className:"cv-clip-timepoint-selector"},{})}},{key:"update",value:function(){var e=this;this.options_.onChangeStartTime(this.startTime),this.options_.onChangeEndTime(this.endTime),this.requestAnimationFrame((function(){e.setStartOffset(),e.setWidth()}))}},{key:"setStartTime",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!isNaN(e)){var n=this.hasStartTime()&&this.hasEndTime()&&this.endTime-this.startTime,r=this.player().duration()-this.minDuration;if(e>r&&(e=r),e<0&&(e=0),this.startTime=e,this.endTime&&this.endTime-this.startTime<this.minDuration){var i="number"==typeof n?this.startTime+n:this.startTime+this.minDuration;this.setEndTime(i)}this.player().currentTime(this.startTime),t&&this.update()}}},{key:"setEndTime",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!isNaN(e)){var n=this.hasStartTime()&&this.hasEndTime()&&this.endTime-this.startTime,r=this.minDuration;if(e<r&&(e=r),e>this.player().duration()&&(e=this.player().duration()),this.endTime=e,this.startTime&&this.endTime-this.startTime<this.minDuration){var i="number"==typeof n?this.endTime-n:this.endTime-this.minDuration;this.setStartTime(i)}t&&this.update()}}},{key:"bindListeners",value:function(){var e=this;this.onTimeupdate=this.onTimeupdate.bind(this),this.player().on("timeupdate",this.onTimeupdate),this.on("mousedown",this.dragStart),this.on("touchstart",this.dragStart),this.player().on("dispose",(function(){e.player().off("timeupdate",e.onTimeupdate),e.off("mousedown",e.dragStart),e.off("touchstart",e.dragStart)}))}},{key:"hasStartTime",value:function(){return"number"==typeof this.startTime}},{key:"hasEndTime",value:function(){return"number"==typeof this.endTime}},{key:"onTimeupdate",value:function(){var e=this.player().currentTime();e>this.endTime&&e<this.endTime+.5&&this.player().pause()}},{key:"dragStart",value:function(e){this.startHandle.isEventTarget(e)&&(e.stopImmediatePropagation(),this.dragStartActive=!0),this.endHandle.isEventTarget(e)&&(e.stopImmediatePropagation(),this.dragEndActive=!0),e.target===this.el()&&(e.stopImmediatePropagation(),this.dragSliderActive=!0,this.dragSliderCurrentPosition=this.getPosition(e));var t=this.el().ownerDocument;this.on(t,"mousemove",this.drag),this.on(t,"mouseup",this.dragEnd),this.on(t,"touchmove",this.drag),this.on(t,"touchend",this.dragEnd),this.drag(e)}},{key:"dragEnd",value:function(){this.dragStartActive=!1,this.dragEndActive=!1,this.dragSliderActive=!1,this.dragSliderCurrentPosition=null;var e=this.el().ownerDocument;this.off(e,"mousemove",this.drag),this.off(e,"mouseup",this.dragEnd),this.off(e,"touchmove",this.drag),this.off(e,"touchend",this.dragEnd)}},{key:"drag",value:function(e){if((this.dragStartActive||this.dragEndActive||this.dragSliderActive)&&d.Z.dom.isSingleLeftClick(e)){var t=this.getPosition(e),n=t*this.player().duration();this.dragStartActive&&this.handleStartHandleDrag(n),this.dragEndActive&&this.handleEndHandleDrag(n),this.dragSliderActive&&this.handleSliderDrag(t)}}},{key:"handleStartHandleDrag",value:function(e){this.setStartTime(e)}},{key:"handleEndHandleDrag",value:function(e){this.setEndTime(e)}},{key:"handleSliderDrag",value:function(e){var t=(e-this.dragSliderCurrentPosition)*this.player().duration(),n=this.startTime+t,r=this.endTime+t;n<=0||r>=this.player().duration()||(this.dragSliderCurrentPosition=e,this.setStartTime(n),this.setEndTime(r))}},{key:"getPosition",value:function(e){return d.Z.dom.getPointerPosition(this.el_.parentNode,e).x}},{key:"setStartOffset",value:function(){this.el_.style.marginLeft="".concat(this.getPercentage(this.startTime),"%")}},{key:"setWidth",value:function(){this.el_.style.width="".concat(this.getPercentage(this.endTime-this.startTime),"%")}},{key:"getPercentage",value:function(e){return+(e/this.player().duration()*100).toFixed(4)}}],n&&P(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(d.Z.getComponent("Component"));function R(e){return R="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},R(e)}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function B(){return B="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=A(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},B.apply(this,arguments)}function A(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=I(e)););return e}function N(e,t){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},N(e,t)}function M(e,t){if(t&&("object"===R(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},I(e)}var L=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&N(e,t)}(a,e);var t,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(e){return!1}}(),function(){var e,t=I(r);if(i){var n=I(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return M(this,e)});function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,e,t)).seekBar_=t.seekBar,n.playProgressBar_=t.playProgressBar,n.bindListeners(),n.player_.one("dispose",(function(){n.unbindListeners()})),n}return t=a,(n=[{key:"createEl",value:function(e,t,n){return B(I(a.prototype),"createEl",this).call(this,e,Object.assign(Object.assign({},t),{className:"cv-create-clip-progress-indicator"}),n)}},{key:"bindListeners",value:function(){this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown)}},{key:"unbindListeners",value:function(){var e=this.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp)}},{key:"handleMouseDown",value:function(e){if(d.Z.dom.isSingleLeftClick(e)){e.stopPropagation(),"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||d.Z.browser.IS_CHROME||e.preventDefault(),this.player_.scrubbing(!0),this.videoWasPlaying_=!this.player_.paused(),this.player_.pause(),d.Z.dom.blockTextSelection();var t=this.el_.ownerDocument;this.on(t,"mousemove",this.handleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchmove",this.handleMouseMove),this.on(t,"touchend",this.handleMouseUp),this.handleMouseMove(e),this.player_.addClass("cv-hide-mouse-time")}}},{key:"handleMouseMove",value:function(e){if(d.Z.dom.isSingleLeftClick(e)){var t=d.Z.dom.getPointerPosition(this.seekBar_.el_,e).x*this.player_.duration();t===this.player_.duration()&&(t-=.1),this.player_.currentTime(t),this.playProgressBar_.update()}}},{key:"handleMouseUp",value:function(e){d.Z.dom.unblockTextSelection();var t=this.el_.ownerDocument;this.off(t,"mousemove",this.handleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchmove",this.handleMouseMove),this.off(t,"touchend",this.handleMouseUp),null==e||e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying_&&this.player_.play(),this.seekBar_.update(),this.player_.removeClass("cv-hide-mouse-time")}}])&&x(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(d.Z.getComponent("Component"));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 H(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Z(e,t){return Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Z(e,t)}function U(e,t){if(t&&("object"===F(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function V(e){return V=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},V(e)}d.Z.registerComponent("CreateClipProgressIndicator",L);var K=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Z(e,t)}(a,e);var t,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(e){return!1}}(),function(){var e,t=V(r);if(i){var n=V(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return U(this,e)});function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,e,t)).addClass("cv-create-clip-seek-bar"),n}return t=a,(n=[{key:"initialize",value:function(e){var t=new D(this.player(),e);this.addChild(t);var n=this.getChild("playProgressBar"),r=new L(this.player_,{seekBar:this,playProgressBar:n});n.addChild(r)}}])&&H(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(d.Z.getComponent("SeekBar"));function z(e){return z="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},z(e)}function W(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function G(){return G="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Q(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},G.apply(this,arguments)}function Q(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Y(e)););return e}function $(e,t){return $=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$(e,t)}function q(e,t){if(t&&("object"===z(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return J(e)}function J(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y(e){return Y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Y(e)}K.prototype.options_={children:["playProgressBar"],barName:"playProgressBar"},d.Z.browser.IS_IOS||d.Z.browser.IS_ANDROID||K.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),d.Z.registerComponent("CreateClipSeekBar",K);var X=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$(e,t)}(a,e);var t,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(e){return!1}}(),function(){var e,t=Y(r);if(i){var n=Y(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return q(this,e)});function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,e,t)).options=t,n.initCreateClipSeekBar=n.initCreateClipSeekBar.bind(J(n)),n.player.one("loadedmetadata",(function(){return n.player.ready(n.initCreateClipSeekBar)})),n}return t=a,(n=[{key:"initCreateClipSeekBar",value:function(){var e,t=null===(e=this.player.controlBar.getChild("ProgressControl"))||void 0===e?void 0:e.getChild("SeekBar");if(t){var n=!isNaN(this.options.startTime)&&this.options.startTime>=0?this.options.startTime:0,r=!isNaN(this.options.endTime)&&this.options.endTime<=this.player.duration()?this.options.endTime:this.player.duration(),i=Math.min(this.options.minDuration||5,this.player.duration());t.initialize({startTime:n,endTime:r,minDuration:i,onChangeStartTime:this.options.onChangeStartTime,onChangeEndTime:this.options.onChangeEndTime})}}},{key:"dispose",value:function(){this.player.off("loadedmetadata",this.initCreateClipSeekBar),G(Y(a.prototype),"dispose",this).call(this)}}])&&W(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(d.Z.getPlugin("plugin"));function ee(e){return ee="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},ee(e)}function te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ne(){return ne="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=re(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},ne.apply(this,arguments)}function re(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ae(e)););return e}function ie(e,t){return ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ie(e,t)}function oe(e,t){if(t&&("object"===ee(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ae(e){return ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ae(e)}d.Z.registerPlugin("createClipPlugin",X);var ce=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ie(e,t)}(a,e);var t,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(e){return!1}}(),function(){var e,t=ae(r);if(i){var n=ae(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return oe(this,e)});function a(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.call(this,e,Object.assign(Object.assign({},t),{playbackRates:null,enableLocalCache:!1}))}return t=a,(n=[{key:"getPlayerClassName",value:function(){return"cv-create-clip-player"}},{key:"configurePlugins",value:function(){var e=this.options,t=e.startTime,n=e.endTime,r=e.minDuration,i=e.onChangeStartTime,o=e.onChangeEndTime;this.player.createClipPlugin({startTime:t,endTime:n,minDuration:r,onChangeStartTime:i,onChangeEndTime:o})}},{key:"getPlayerOptions",value:function(){var e=ne(ae(a.prototype),"getPlayerOptions",this).call(this);return e.inactivityTimeout=0,e}},{key:"getSeekBarName",value:function(){return"CreateClipSeekBar"}},{key:"getAnalyticsPlayerType",value:function(){return"create-clip-player"}}])&&te(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(p.r);function ue(e){var t=e.onReady,n=e.onDispose,r=i().useRef(),o=i().useRef();return i().useEffect((function(){var i;if(null===(i=o.current)||void 0===i||i.dispose(),r)return o.current=new ce(r.current,e),t&&o.current.ready((function(){t(o.current)})),n&&o.current.one("dispose",n),function(){var e;null===(e=o.current)||void 0===e||e.dispose()}}),[e.viewKey]),i().useEffect((function(){var t;null===(t=o.current)||void 0===t||t.trigger({type:"update:clip:start:time",time:e.startTime})}),[e.startTime]),i().useEffect((function(){var t;null===(t=o.current)||void 0===t||t.trigger({type:"update:clip:end:time",time:e.endTime})}),[e.endTime]),i().createElement("div",{ref:r})}var le=n(74122),se=n(93264),fe=n(83345),pe=n(95047);const de="lFyGP";function ye(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,i,o=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){c=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return he(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)?he(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 he(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 me=/[^0-9]/g,ve=/^0+/,be=":";function ge(e){var t=function(e){var t=function(e){return se.T.ToDisplayDuration(1e3*e)},n=ye(r.useState(t(e.value)),2),i=n[0],o=n[1];return r.useEffect((function(){o(t(e.value))}),[e.value]),[i,o]}(e),n=ye(t,2),i=n[0],o=n[1];function a(){u(pe.k.convertDurationToSeconds(i)+1)}function c(){u(pe.k.convertDurationToSeconds(i)-1)}function u(t){t<0||e.maxValue&&t>e.maxValue||e.setTime(t)}return r.createElement("div",{className:"position-relative ".concat("xvpu6")},r.createElement("input",{className:"form-control form-control".concat("md"===e.formSize?"-md":"-lg"," ").concat(e.hasError?"is-invalid":""," text-center ").concat("vW_eV"," ").concat(e.hideButtons&&"px-2"),value:i,onChange:function(t){if(e.allowKeyboardInput){var n=function(e){var t=e.trim().replace(me,"").replace(ve,"").slice(0,6);if(!t)return"00:00";for(var n=t.split(""),r=[],i=n.length-1;i>=0;i--){var o=r.indexOf(be);(-1===o&&2===r.length||2===o)&&r.unshift(be),r.unshift(n[i])}return 1!==r.length&&1!==r.indexOf(be)||r.unshift("0"),2===r.length&&r.unshift("00",be),r.join("")}(t.target.value);if(n){var r=pe.k.convertDurationToSeconds(n);e.maxValue&&r>e.maxValue||o(n)}}},onBlur:function(){e.allowKeyboardInput&&u(pe.k.convertDurationToSeconds(i))},onKeyDown:function(e){38===e.keyCode&&a(),40===e.keyCode&&c()},disabled:e.disabled}),!e.hideButtons&&r.createElement("div",{className:"A8cSJ"},r.createElement("div",{className:de,onClick:a},r.createElement("div",{className:"_zBG5"})),r.createElement("div",{className:de,onClick:c},r.createElement("div",{className:"kuLky"}))))}ge.defaultProps={allowKeyboardInput:!0,size:"lg"};var Te="shared.clipTimeForm",Oe=c.T.encloseNamespace(Te);function we(e){if(isNaN(e.startTime)||isNaN(e.endTime))return r.createElement(r.Fragment,null);var t=Math.floor(e.endTime)-Math.floor(e.startTime);return r.createElement("div",{className:"px-3"},r.createElement("form",{className:"form-inline justify-content-center pb-4"},r.createElement("div",{className:"form-group"},r.createElement(ge,{value:e.startTime,setTime:e.setStartTime})),r.createElement("span",{className:"px-2"},"-"),r.createElement("div",{className:"form-group mr-2"},r.createElement(ge,{value:e.endTime,setTime:e.setEndTime})),r.createElement("span",null,r.createElement("strong",null,r.createElement(fe.x,{namespace:Te,phrase:"duration"}))," ",se.T.ToDisplayDuration(1e3*t))),r.createElement("div",{className:"d-flex justify-content-end"},r.createElement("button",{className:"btn btn-link",onClick:e.onCancel},Oe("cancel")),r.createElement("button",{className:"btn btn-dark",onClick:e.onSubmit},Oe("next"))))}var Se=n(97291),Pe=n(14070),Ee=n(43012),Ce=n(1575),ke=n(89476),je=n(60051),_e=n(28400);function De(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,i,o=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){c=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Re(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)?Re(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 Re(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 xe="edit-clip-timepoints",Be="shared.editClipTimepoints",Ae=c.T.encloseNamespace(Be);function Ne(e){var t,n,i,p,d=De((0,le.g)(),2),y=d[0],h=d[1],m=r.useRef(),v=e.startTime||(null===(t=null==y?void 0:y.playerRef)||void 0===t?void 0:t.currentTime())||0,b=De(r.useState(v),2),g=b[0],T=b[1],O=De(r.useState(v+30),2),w=O[0],S=O[1],P=o.a.useBasicFetch(s.L.config()),E=o.a.useBasicFetch(!!e.id&&Ee.e.clip(e.id)),C=(null===(i=null===(n=E.data)||void 0===n?void 0:n.video)||void 0===i?void 0:i.id)||e.videoId,k=o.a.useBasicFetch(!!C&&l.k.createViewKey(C,je.f.MasterObject)),j=o.a.useBasicFetch(!!C&&Ce.R.video(C)),_=(0,ke.f)();return(0,u.o)(e.id?null===(p=E.data)||void 0===p?void 0:p.name:Ae("pageTitle")),r.useEffect((function(){h("allowFloatingPlayer",!1),_.lock({id:xe,title:c.T.getPhrase(Be,"navLockTitle"),text:c.T.getPhrase(Be,"navLockBody")})}),[]),r.useEffect((function(){E.data&&(T(E.data.startTime),S(E.data.endTime))}),[E.data]),e.id||e.videoId?r.createElement("div",{className:"px-3"},!!P.data&&!!k.data&&!!j.data&&(!e.id||!!E.data)&&r.createElement("div",{className:"pb-3"},r.createElement("div",{className:"mb-3"},r.createElement(ue,{onReady:function(e){m.current=e},playerApi:new URL(P.data.playerApiUrl),viewKey:k.data.viewKey,startTime:g,endTime:w,onChangeStartTime:T,onChangeEndTime:S,minDuration:5,autoplay:!0})),r.createElement(we,{startTime:g,endTime:w,setStartTime:T,setEndTime:S,onSubmit:function(){var t="";g>w&&(t=Ae("startTimeGreaterThanEndTime")),w-g<5&&(t=Ae("tooShort",{minDuration:5})),t?function(e){f.M.render(r.createElement("p",null,e),{title:Ae("errorHeading"),cancelButtonProps:{variant:"link",text:Ae("close")}})}(t):(_.unlock(xe),a.Q.AppLinkHelper.trigger({application:Se.O.DEFAULT,action:e.id?Pe.e.Default.EDIT_CLIP_DETAILS:Pe.e.Default.CREATE_CLIP_DETAILS,args:e.id?[e.id]:[e.videoId],params:{startTime:g,endTime:w,isCopying:e.isCopying}}))},onCancel:function(){var e,t;m.current&&h("startTime",m.current.currentTime()),a.Q.AppLinkHelper.trigger({application:Se.O.DEFAULT,action:Pe.e.Default.PLAY_VIDEO,args:[null===(e=j.data)||void 0===e?void 0:e.id,_e.m.slugify(null===(t=j.data)||void 0===t?void 0:t.name)]})}}))):r.createElement(r.Fragment,null)}}}]);
1
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9686],{60051:(e,t,n)=>{var r;n.d(t,{f:()=>r}),function(e){e.Share="share",e.MasterObject="masterobject"}(r||(r={}))},47812:(e,t,n)=>{n.d(t,{k:()=>i});var r=n(99940),i={createViewKey:function(e,t,n){var i={mediaId:e.toString(),mediaIdType:t};return n&&(i.shareContextId=n),{url:"/api/player/create-view-key",key:"view:key:".concat(e,":").concat(t),type:r.k.POST,data:i,expiryTime:28800}}}},99686:(e,t,n)=>{n.r(t),n.d(t,{EditClipTimepointsView:()=>Ae});var r=n(1024),i=n.n(r),o=n(20354),a=n(81886),c=n(23481),u=n(23049),l=n(47812),s=n(39151),f=n(497),p=n(85768),d=n(24967);function y(e){return y="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},y(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(){return v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=b(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},v.apply(this,arguments)}function b(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=O(e)););return e}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function T(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(a,e);var t,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(e){return!1}}(),function(){var e,t=O(r);if(i){var n=O(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return T(this,e)});function a(){return h(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"buildCSSClass",value:function(){return"cv-clip-timepoint-handle ".concat(v(O(a.prototype),"buildCSSClass",this).call(this))}},{key:"createEl",value:function(e,t,n){return v(O(a.prototype),"createEl",this).call(this,e,Object.assign(Object.assign({},t),{className:this.buildCSSClass(),innerHTML:'<svg viewBox="0 0 5 14" pointer-events="none"><g id="Clips" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Clip-2" transform="translate(-835.000000, -632.000000)" fill="#FFFFFF"><g id="Video-Copy" transform="translate(275.000000, 96.000000)"><g id="Handles" transform="translate(560.000000, 536.000000)"><circle id="Oval" cx="1" cy="1" r="1"></circle><circle id="Oval-Copy-2" cx="1" cy="5" r="1"></circle><circle id="Oval-Copy-4" cx="1" cy="9" r="1"></circle><circle id="Oval-Copy-8" cx="1" cy="13" r="1"></circle><circle id="Oval-Copy" cx="4" cy="1" r="1"></circle><circle id="Oval-Copy-3" cx="4" cy="5" r="1"></circle><circle id="Oval-Copy-5" cx="4" cy="9" r="1"></circle><circle id="Oval-Copy-9" cx="4" cy="13" r="1"></circle></g></g></g></g></svg>'}),n)}},{key:"isEventTarget",value:function(e){return this.el().contains(e.target)}}])&&m(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(d.Z.getComponent("Component"));function S(e){return S="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},S(e)}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function E(){return E="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=C(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},E.apply(this,arguments)}function C(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_(e)););return e}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}function j(e,t){if(t&&("object"===S(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var R=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}(a,e);var t,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(e){return!1}}(),function(){var e,t=_(r);if(i){var n=_(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return j(this,e)});function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,e,t)).dragStartActive=!1,n.dragEndActive=!1,n.dragSliderActive=!1,n.dragSliderCurrentPosition=null,n.minDuration=Math.min(e.duration(),n.options_.minDuration),n.setStartTime(t.startTime,!1),n.setEndTime(t.endTime,!1),n.startHandle=new w(n.player(),t),n.startHandle.addClass("cv-clip-start-handle"),n.addChild(n.startHandle),n.endHandle=new w(n.player(),t),n.endHandle.addClass("cv-clip-end-handle"),n.addChild(n.endHandle),n.on(n.player(),"update:clip:start:time",(function(e){var t=e.time;return n.setStartTime(t)})),n.on(n.player(),"update:clip:end:time",(function(e){var t=e.time;return n.setEndTime(t)})),n.bindListeners(),n.update(),n}return t=a,n=[{key:"createEl",value:function(){return E(_(a.prototype),"createEl",this).call(this,"div",{className:"cv-clip-timepoint-selector"},{})}},{key:"update",value:function(){var e=this;this.options_.onChangeStartTime(this.startTime),this.options_.onChangeEndTime(this.endTime),this.requestAnimationFrame((function(){e.setStartOffset(),e.setWidth()}))}},{key:"setStartTime",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!isNaN(e)){var n=this.hasStartTime()&&this.hasEndTime()&&this.endTime-this.startTime,r=this.player().duration()-this.minDuration;if(e>r&&(e=r),e<0&&(e=0),this.startTime=e,this.endTime&&this.endTime-this.startTime<this.minDuration){var i="number"==typeof n?this.startTime+n:this.startTime+this.minDuration;this.setEndTime(i)}this.player().currentTime(this.startTime),t&&this.update()}}},{key:"setEndTime",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!isNaN(e)){var n=this.hasStartTime()&&this.hasEndTime()&&this.endTime-this.startTime,r=this.minDuration;if(e<r&&(e=r),e>this.player().duration()&&(e=this.player().duration()),this.endTime=e,this.startTime&&this.endTime-this.startTime<this.minDuration){var i="number"==typeof n?this.endTime-n:this.endTime-this.minDuration;this.setStartTime(i)}t&&this.update()}}},{key:"bindListeners",value:function(){var e=this;this.onTimeupdate=this.onTimeupdate.bind(this),this.player().on("timeupdate",this.onTimeupdate),this.on("mousedown",this.dragStart),this.on("touchstart",this.dragStart),this.player().on("dispose",(function(){e.player().off("timeupdate",e.onTimeupdate),e.off("mousedown",e.dragStart),e.off("touchstart",e.dragStart)}))}},{key:"hasStartTime",value:function(){return"number"==typeof this.startTime}},{key:"hasEndTime",value:function(){return"number"==typeof this.endTime}},{key:"onTimeupdate",value:function(){var e=this.player().currentTime();e>this.endTime&&e<this.endTime+.5&&this.player().pause()}},{key:"dragStart",value:function(e){this.startHandle.isEventTarget(e)&&(e.stopImmediatePropagation(),this.dragStartActive=!0),this.endHandle.isEventTarget(e)&&(e.stopImmediatePropagation(),this.dragEndActive=!0),e.target===this.el()&&(e.stopImmediatePropagation(),this.dragSliderActive=!0,this.dragSliderCurrentPosition=this.getPosition(e));var t=this.el().ownerDocument;this.on(t,"mousemove",this.drag),this.on(t,"mouseup",this.dragEnd),this.on(t,"touchmove",this.drag),this.on(t,"touchend",this.dragEnd),this.drag(e)}},{key:"dragEnd",value:function(){this.dragStartActive=!1,this.dragEndActive=!1,this.dragSliderActive=!1,this.dragSliderCurrentPosition=null;var e=this.el().ownerDocument;this.off(e,"mousemove",this.drag),this.off(e,"mouseup",this.dragEnd),this.off(e,"touchmove",this.drag),this.off(e,"touchend",this.dragEnd)}},{key:"drag",value:function(e){if((this.dragStartActive||this.dragEndActive||this.dragSliderActive)&&d.Z.dom.isSingleLeftClick(e)){var t=this.getPosition(e),n=t*this.player().duration();this.dragStartActive&&this.handleStartHandleDrag(n),this.dragEndActive&&this.handleEndHandleDrag(n),this.dragSliderActive&&this.handleSliderDrag(t)}}},{key:"handleStartHandleDrag",value:function(e){this.setStartTime(e)}},{key:"handleEndHandleDrag",value:function(e){this.setEndTime(e)}},{key:"handleSliderDrag",value:function(e){var t=(e-this.dragSliderCurrentPosition)*this.player().duration(),n=this.startTime+t,r=this.endTime+t;n<=0||r>=this.player().duration()||(this.dragSliderCurrentPosition=e,this.setStartTime(n),this.setEndTime(r))}},{key:"getPosition",value:function(e){return d.Z.dom.getPointerPosition(this.el_.parentNode,e).x}},{key:"setStartOffset",value:function(){this.el_.style.marginLeft="".concat(this.getPercentage(this.startTime),"%")}},{key:"setWidth",value:function(){this.el_.style.width="".concat(this.getPercentage(this.endTime-this.startTime),"%")}},{key:"getPercentage",value:function(e){return+(e/this.player().duration()*100).toFixed(4)}}],n&&P(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(d.Z.getComponent("Component"));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 x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function B(){return B="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=N(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},B.apply(this,arguments)}function N(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=I(e)););return e}function A(e,t){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},A(e,t)}function M(e,t){if(t&&("object"===D(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},I(e)}var L=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&A(e,t)}(a,e);var t,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(e){return!1}}(),function(){var e,t=I(r);if(i){var n=I(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return M(this,e)});function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,e,t)).seekBar_=t.seekBar,n.playProgressBar_=t.playProgressBar,n.bindListeners(),n.player_.one("dispose",(function(){n.unbindListeners()})),n}return t=a,(n=[{key:"createEl",value:function(e,t,n){return B(I(a.prototype),"createEl",this).call(this,e,Object.assign(Object.assign({},t),{className:"cv-create-clip-progress-indicator"}),n)}},{key:"bindListeners",value:function(){this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown)}},{key:"unbindListeners",value:function(){var e=this.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp)}},{key:"handleMouseDown",value:function(e){if(d.Z.dom.isSingleLeftClick(e)){e.stopPropagation(),"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||d.Z.browser.IS_CHROME||e.preventDefault(),this.player_.scrubbing(!0),this.videoWasPlaying_=!this.player_.paused(),this.player_.pause(),d.Z.dom.blockTextSelection();var t=this.el_.ownerDocument;this.on(t,"mousemove",this.handleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchmove",this.handleMouseMove),this.on(t,"touchend",this.handleMouseUp),this.handleMouseMove(e),this.player_.addClass("cv-hide-mouse-time")}}},{key:"handleMouseMove",value:function(e){if(d.Z.dom.isSingleLeftClick(e)){var t=d.Z.dom.getPointerPosition(this.seekBar_.el_,e).x*this.player_.duration();t===this.player_.duration()&&(t-=.1),this.player_.currentTime(t),this.playProgressBar_.update()}}},{key:"handleMouseUp",value:function(e){d.Z.dom.unblockTextSelection();var t=this.el_.ownerDocument;this.off(t,"mousemove",this.handleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchmove",this.handleMouseMove),this.off(t,"touchend",this.handleMouseUp),null==e||e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying_&&this.player_.play(),this.seekBar_.update(),this.player_.removeClass("cv-hide-mouse-time")}}])&&x(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(d.Z.getComponent("Component"));function H(e){return H="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},H(e)}function Z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function F(e,t){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},F(e,t)}function V(e,t){if(t&&("object"===H(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function U(e){return U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},U(e)}d.Z.registerComponent("CreateClipProgressIndicator",L);var K=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&F(e,t)}(a,e);var t,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(e){return!1}}(),function(){var e,t=U(r);if(i){var n=U(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return V(this,e)});function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,e,t)).addClass("cv-create-clip-seek-bar"),n}return t=a,(n=[{key:"initialize",value:function(e){var t=new R(this.player(),e);this.addChild(t);var n=this.getChild("playProgressBar"),r=new L(this.player_,{seekBar:this,playProgressBar:n});n.addChild(r)}}])&&Z(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(d.Z.getComponent("SeekBar"));function z(e){return z="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},z(e)}function W(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function G(){return G="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Q(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},G.apply(this,arguments)}function Q(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Y(e)););return e}function $(e,t){return $=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$(e,t)}function q(e,t){if(t&&("object"===z(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return J(e)}function J(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y(e){return Y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Y(e)}K.prototype.options_={children:["playProgressBar"],barName:"playProgressBar"},d.Z.browser.IS_IOS||d.Z.browser.IS_ANDROID||K.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),d.Z.registerComponent("CreateClipSeekBar",K);var X=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$(e,t)}(a,e);var t,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(e){return!1}}(),function(){var e,t=Y(r);if(i){var n=Y(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return q(this,e)});function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,e,t)).options=t,n.initCreateClipSeekBar=n.initCreateClipSeekBar.bind(J(n)),n.player.one("loadedmetadata",(function(){return n.player.ready(n.initCreateClipSeekBar)})),n}return t=a,(n=[{key:"initCreateClipSeekBar",value:function(){var e,t=null===(e=this.player.controlBar.getChild("ProgressControl"))||void 0===e?void 0:e.getChild("SeekBar");if(t){var n=!isNaN(this.options.startTime)&&this.options.startTime>=0?this.options.startTime:0,r=!isNaN(this.options.endTime)&&this.options.endTime<=this.player.duration()?this.options.endTime:this.player.duration(),i=Math.min(this.options.minDuration||5,this.player.duration());t.initialize({startTime:n,endTime:r,minDuration:i,onChangeStartTime:this.options.onChangeStartTime,onChangeEndTime:this.options.onChangeEndTime})}}},{key:"dispose",value:function(){this.player.off("loadedmetadata",this.initCreateClipSeekBar),G(Y(a.prototype),"dispose",this).call(this)}}])&&W(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(d.Z.getPlugin("plugin"));function ee(e){return ee="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},ee(e)}function te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ne(){return ne="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=re(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},ne.apply(this,arguments)}function re(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ae(e)););return e}function ie(e,t){return ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ie(e,t)}function oe(e,t){if(t&&("object"===ee(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ae(e){return ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ae(e)}d.Z.registerPlugin("createClipPlugin",X);var ce=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ie(e,t)}(a,e);var t,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(e){return!1}}(),function(){var e,t=ae(r);if(i){var n=ae(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return oe(this,e)});function a(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.call(this,e,Object.assign(Object.assign({},t),{playbackRates:null,enableLocalCache:!1}))}return t=a,(n=[{key:"getPlayerClassName",value:function(){return"cv-create-clip-player"}},{key:"configurePlugins",value:function(){var e=this.options,t=e.startTime,n=e.endTime,r=e.minDuration,i=e.onChangeStartTime,o=e.onChangeEndTime;this.player.createClipPlugin({startTime:t,endTime:n,minDuration:r,onChangeStartTime:i,onChangeEndTime:o})}},{key:"getPlayerOptions",value:function(){var e=ne(ae(a.prototype),"getPlayerOptions",this).call(this);return e.inactivityTimeout=0,e}},{key:"getSeekBarName",value:function(){return"CreateClipSeekBar"}},{key:"getAnalyticsPlayerType",value:function(){return"create-clip-player"}}])&&te(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(p.r);function ue(e){var t=e.onReady,n=e.onDispose,r=i().useRef(),o=i().useRef();return i().useEffect((function(){var i;if(null===(i=o.current)||void 0===i||i.dispose(),r)return o.current=new ce(r.current,e),t&&o.current.ready((function(){t(o.current)})),n&&o.current.one("dispose",n),function(){var e;null===(e=o.current)||void 0===e||e.dispose()}}),[e.viewKey]),i().useEffect((function(){var t;null===(t=o.current)||void 0===t||t.trigger({type:"update:clip:start:time",time:e.startTime})}),[e.startTime]),i().useEffect((function(){var t;null===(t=o.current)||void 0===t||t.trigger({type:"update:clip:end:time",time:e.endTime})}),[e.endTime]),i().createElement("div",{ref:r})}var le=n(74122),se=n(93264),fe=n(83345),pe=n(95047);const de="lFyGP";function ye(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,i,o=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){c=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return he(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)?he(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 he(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 me=/[^0-9]/g,ve=/^0+/,be=":";function ge(e){var t=function(e){var t=function(e){return se.T.ToDisplayDuration(1e3*e)},n=ye(r.useState(t(e.value)),2),i=n[0],o=n[1];return r.useEffect((function(){o(t(e.value))}),[e.value]),[i,o]}(e),n=ye(t,2),i=n[0],o=n[1];function a(){u(pe.k.convertDurationToSeconds(i)+1)}function c(){u(pe.k.convertDurationToSeconds(i)-1)}function u(t){t<0||e.maxValue&&t>e.maxValue||e.setTime(t)}return r.createElement("div",{className:"position-relative ".concat("xvpu6")},r.createElement("input",{className:"form-control form-control".concat("md"===e.formSize?"-md":"-lg"," ").concat(e.hasError?"is-invalid":""," text-center ").concat("vW_eV"," ").concat(e.hideButtons&&"px-2"),value:i,onChange:function(t){if(e.allowKeyboardInput){var n=function(e){var t=e.trim().replace(me,"").replace(ve,"").slice(0,6);if(!t)return"00:00";for(var n=t.split(""),r=[],i=n.length-1;i>=0;i--){var o=r.indexOf(be);(-1===o&&2===r.length||2===o)&&r.unshift(be),r.unshift(n[i])}return 1!==r.length&&1!==r.indexOf(be)||r.unshift("0"),2===r.length&&r.unshift("00",be),r.join("")}(t.target.value);if(n){var r=pe.k.convertDurationToSeconds(n);e.maxValue&&r>e.maxValue||o(n)}}},onBlur:function(){e.allowKeyboardInput&&u(pe.k.convertDurationToSeconds(i))},onKeyDown:function(e){38===e.keyCode&&a(),40===e.keyCode&&c()},disabled:e.disabled}),!e.hideButtons&&r.createElement("div",{className:"A8cSJ"},r.createElement("div",{className:de,onClick:a},r.createElement("div",{className:"_zBG5"})),r.createElement("div",{className:de,onClick:c},r.createElement("div",{className:"kuLky"}))))}ge.defaultProps={allowKeyboardInput:!0,size:"lg"};var Te="shared.clipTimeForm",Oe=c.T.encloseNamespace(Te);function we(e){if(isNaN(e.startTime)||isNaN(e.endTime))return r.createElement(r.Fragment,null);var t=Math.floor(e.endTime)-Math.floor(e.startTime);return r.createElement("div",{className:"px-3"},r.createElement("form",{className:"form-inline justify-content-center pb-4"},r.createElement("div",{className:"form-group"},r.createElement(ge,{value:e.startTime,setTime:e.setStartTime})),r.createElement("span",{className:"px-2"},"-"),r.createElement("div",{className:"form-group mr-2"},r.createElement(ge,{value:e.endTime,setTime:e.setEndTime})),r.createElement("span",null,r.createElement("strong",null,r.createElement(fe.x,{namespace:Te,phrase:"duration"}))," ",se.T.ToDisplayDuration(1e3*t))),r.createElement("div",{className:"d-flex justify-content-end"},r.createElement("button",{className:"btn btn-link",onClick:e.onCancel},Oe("cancel")),r.createElement("button",{className:"btn btn-dark",onClick:e.onSubmit},Oe("next"))))}var Se=n(97291),Pe=n(14070),Ee=n(43012),Ce=n(1575),ke=n(89476),je=n(60051),_e=n(28400);function Re(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,i,o=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){c=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return De(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)?De(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 De(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 xe="edit-clip-timepoints",Be="shared.editClipTimepoints",Ne=c.T.encloseNamespace(Be);function Ae(e){var t,n,i,p,d=Re((0,le.g)(),2),y=d[0],h=d[1],m=r.useRef(),v=e.startTime||(null===(t=null==y?void 0:y.playerRef)||void 0===t?void 0:t.currentTime())||0,b=Re(r.useState(v),2),g=b[0],T=b[1],O=Re(r.useState(v+30),2),w=O[0],S=O[1],P=o.a.useBasicFetch(s.L.config()),E=o.a.useBasicFetch(!!e.id&&Ee.e.clip(e.id)),C=(null===(i=null===(n=E.data)||void 0===n?void 0:n.video)||void 0===i?void 0:i.id)||e.videoId,k=o.a.useBasicFetch(!!C&&l.k.createViewKey(C,je.f.MasterObject)),j=o.a.useBasicFetch(!!C&&Ce.R.video(C)),_=(0,ke.f)();return(0,u.o)(e.id?null===(p=E.data)||void 0===p?void 0:p.name:Ne("pageTitle")),r.useEffect((function(){h("allowFloatingPlayer",!1),_.lock({id:xe,title:c.T.getPhrase(Be,"navLockTitle"),text:c.T.getPhrase(Be,"navLockBody")})}),[]),r.useEffect((function(){E.data&&(T(E.data.startTime),S(E.data.endTime))}),[E.data]),e.id||e.videoId?r.createElement("div",{className:"px-3"},!!P.data&&!!k.data&&!!j.data&&(!e.id||!!E.data)&&r.createElement("div",{className:"pb-3"},r.createElement("div",{className:"mb-3"},r.createElement(ue,{onReady:function(e){m.current=e},playerApi:new URL(P.data.playerApiUrl),viewKey:k.data.viewKey,startTime:g,endTime:w,onChangeStartTime:T,onChangeEndTime:S,minDuration:5,autoplay:!0})),r.createElement(we,{startTime:g,endTime:w,setStartTime:T,setEndTime:S,onSubmit:function(){var t="";g>w&&(t=Ne("startTimeGreaterThanEndTime")),w-g<5&&(t=Ne("tooShort",{minDuration:5})),t?function(e){f.M.render(r.createElement("p",null,e),{title:Ne("errorHeading"),cancelButtonProps:{variant:"link",text:Ne("close")}})}(t):(_.unlock(xe),a.Q.AppLinkHelper.trigger({application:Se.O.CLIPS,action:e.id?Pe.e.Clips.EDIT_CLIP_DETAILS:Pe.e.Clips.CREATE_CLIP_DETAILS,args:e.id?[e.id]:[e.videoId],params:{startTime:g,endTime:w,isCopying:e.isCopying}}))},onCancel:function(){var e,t;m.current&&h("startTime",m.current.currentTime()),a.Q.AppLinkHelper.trigger({application:Se.O.VIDEOS,action:Pe.e.Videos.PLAY_VIDEO,args:[null===(e=j.data)||void 0===e?void 0:e.id,_e.m.slugify(null===(t=j.data)||void 0===t?void 0:t.name)]})}}))):r.createElement(r.Fragment,null)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9899],{54644:(e,t,a)=>{a.d(t,{v:()=>i});var n=a(97395),i={getContentUpdates:function(e,t){return{url:n._.urlBuilder("/api/domain/v1/subjects/content-updates",{from:e,to:t,limit:6,query:"(videoCollection)"}),key:"content:updates",normalizeOptions:{namespace:"contentupdates"},formatData:function(e){return e.map((function(e){return{id:e.classificationId,videos:e.videos}}))}}},getClassifications:function(e){var t=[];return e.forEach((function(e){return t.push("id=".concat(e))})),{url:"".concat("/api/domain/v1/subjects","?").concat(t.join("&"),"&query=banner"),key:"classifications:".concat(e.join(","))}},getClassification:function(e){return{url:"/api/domain/v1/subjects/".concat(e,"?query=banner"),key:"classification:".concat(e)}},getClassificationUpdates:function(e,t,a){return{url:n._.urlBuilder("/api/domain/v1/subjects/".concat(e,"/content-updates"),{from:t,to:a,query:"(videoCollection)"}),key:"classification:update:".concat(e,":").concat(t,":").concat(a)}},getContentUpdateVideos:function(e,t){return{url:n._.urlBuilder("/api/domain/v1/subjects/content-updates/videos",{from:e,to:t,query:"(videoCollection)"}),key:"content:update:videos:".concat(e,":").concat(t)}},videos:function(e,t){return{url:"/api/domain/v1/videos?ids=".concat(e.join(","),"&with=(videoCollection)"),key:"videos:by:id:".concat(e.join(",")),success:t}}}},43482:(e,t,a)=>{a.d(t,{z:()=>m});var n=a(1024),i=a.n(n),r=a(81886),o=a(23481),s=a(83345),c=a(53957),l=a(38502),d=a(65858),u=a(55460),p="discover.header";function m(e){var t,a,n,m;if(!e.type)return i().createElement(i().Fragment,null);if(e.type===c.DashboardUserType.Learner)return i().createElement("div",{className:"py-3"},i().createElement("h1",{className:"h2 mb-0"},i().createElement(s.x,{namespace:p,phrase:"heading"})));function v(){var t,a=r.Q.AppLinkHelper.getCurrentAppLink();return(null===(t=e.appLinks)||void 0===t?void 0:t.newReleases.action)===a.action?"newReleases":"forYou"}return i().createElement("div",{className:"py-3 text-center"},i().createElement(l.r,{tabs:[{name:o.T.getPhrase(p,"forYou"),appLink:null===(t=e.appLinks)||void 0===t?void 0:t.forYou,active:"forYou"===v(),analyticsData:{name:o.T.getPhrase(p,"forYou"),url:u.AppLinkHelper.getHref(null===(a=e.appLinks)||void 0===a?void 0:a.forYou)},analyticsOptions:{actionType:d.UserAction.Click,entity:d.EntityType.Url,location:d.LocationContext.MagicTabs}},{name:o.T.getPhrase(p,"newReleases"),appLink:null===(n=e.appLinks)||void 0===n?void 0:n.newReleases,active:"newReleases"===v(),analyticsData:{name:o.T.getPhrase(p,"newReleases"),url:u.AppLinkHelper.getHref(null===(m=e.appLinks)||void 0===m?void 0:m.newReleases)},analyticsOptions:{actionType:d.UserAction.Click,entity:d.EntityType.Url,location:d.LocationContext.MagicTabs}}]}))}},38502:(e,t,a)=>{a.d(t,{r:()=>l});var n=a(1024),i=a.n(n),r=a(11607),o=a(8493),s=a(87432),c=a(49985);function l(e){var t;return i().createElement("nav",{className:null!==(t=e.className)&&void 0!==t?t:""},i().createElement("ul",{className:"list-unstyled d-inline-block m-0 ".concat(s.Z.pillTabSelector)},e.tabs.map((function(e){return i().createElement("li",{className:"p-0 ".concat(e.active?"btn btn-dark":"btn btn-outline-dark"),key:e.name},e.appLink?i().createElement(o.F,{appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,className:"cursor-pointer d-block text-decoration-none text-reset px-2 ".concat(s.Z.pillItem)},e.name):i().createElement(r.L,{className:"".concat(s.Z.pillItem," px-2"),onClick:function(){return function(e){!e.active&&e.onSelect&&(e.onSelect(),e.analyticsData&&e.analyticsOptions&&c.k.logUserAction(e.analyticsData,e.analyticsOptions))}(e)}},e.name))}))))}},3865:(e,t,a)=>{a.d(t,{_:()=>l});var n=a(97395),i=a(62803),r=a(4434),o=function(e,t){return"widget:".concat(e,":").concat(t)},s=function(e){return n._.urlBuilder("/api/domain/v3/dashboards/widgets",{libraryType:e})},c=function(e){return"{gateway}/v1/objects/".concat(e,"?query=videos[").concat(r.H.WIDGET_VIDEO_COLLECTION,"]{orderBy:orderindex}")},l={widgets:function(e){return{url:s(e),key:"widgets:v3:".concat(e)}},playlist:function(e,t){return{url:c(e),key:o(e,t)}},getPlaylistVideos:function(e,t){var a={query:"(videos[".concat(i.v.VIDEO_COLLECTION,"]){orderBy:orderindex,limit:100}")};return t&&(a.cursor=t),{url:n._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),a),key:"widget:videos:".concat(e,":").concat(t)}}}},28810:(e,t,a)=>{a.r(t),a.d(t,{DiscoverViewWrapper:()=>pe});var n,i=a(1024),r=a.n(i),o=a(37802),s=a(65858),c=a(39479),l=a(33192),d=a(20354),u=a(2948),p=a(23481),m=a(23049),v=a(57900),f=a(75896),g=a(53957);!function(e){e[e.HostedLibrary=0]="HostedLibrary",e[e.Exchange=1]="Exchange",e[e.MoviesAndTvLibrary=2]="MoviesAndTvLibrary"}(n||(n={}));var y=a(58704),h=a(31949),b=a(5281),E=a(96519),T=a(21750),C=a(38143),S=a(69454),L=a(54644),I=a(22902),A=a(16714),O=a(45739),D=a(97037),k=a(14070),U=a(97291),N=a(25925),w=a(39151),x=a(28400),F=a(87348),B=a(64628),j=a(41523),P=a(65203),_=a(93475),R=a(3865),H=a(83345),Y=a(10874),V=a(58130),q=a(99742);var M="shared.upgradeVideoBanner";function W(){return i.createElement("div",{className:"py-4 px-3 rounded h4 ".concat("Vqx6B"," border"),style:{backgroundImage:'url("'.concat(q.W.Upgrade.VIDEO_BANNER,'")')}},i.createElement(H.x,{namespace:M,phrase:"message"}),i.createElement(Y.h,{svgName:V.vn.Play,appLink:{application:U.O.DEFAULT,action:k.e.Default.LITE_UPGRADE_VIDEO},className:"btn btn-outline-dark ml-3 align-middle"},i.createElement(H.x,{namespace:M,phrase:"button"})))}var J=a(490),z=a(9408),Z=a(43482);function Q(e){return function(e){if(Array.isArray(e))return $(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||G(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 G(e,t){if(e){if("string"==typeof e)return $(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?$(e,t):void 0}}function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var K=p.T.encloseNamespace("dashboard.dashboard"),X="explore-all-topics",ee={video:{application:U.O.VIDEOS,action:k.e.Videos.PLAY_VIDEO},collection:{application:U.O.DASHBOARD,action:k.e.Dashboard.DASHBOARD},series:{application:U.O.SERIES,action:k.e.Series.SERIES},classification:{application:U.O.SUBJECT,action:k.e.Subjects.CLASSIFICATION},contentUpdates:{application:U.O.CONTENT_UPDATES,action:k.e.ContentUpdates.CONTENT_UPDATES},allClassifications:{application:U.O.SUBJECT,action:k.e.Subjects.CLASSIFICATION_ALL},discover:{application:U.O.DASHBOARD,action:k.e.Dashboard.HOME}};function te(e,t,a){return d.a.useBasicFetch(a?R._.playlist(e,null==t?void 0:t.id):null)}function ae(){var e,t,a,r,o,p,k,U,H=(0,D.c)(s.LocationContext.ExpandableVideoThumbnail).setFavourite,Y=d.a.useBasicFetch(w.L.config()),V=d.a.useBasicFetch(T.x.presentation()),q=d.a.useBasicFetch(T.x.availablePresentations(N.R.Subject)),M=d.a.useBasicFetch(h.N.currentUser()),$=(p=(null==(o=M.data)?void 0:o.countryCode)&&R._.widgets(n.HostedLibrary),d.a.useBasicFetch(p).data),ae=function(e,t){var a,n=d.a.useBasicFetch(w.L.config()),i=O.i.getFeaturedTopic(null==t?void 0:t.id,null===(a=n.data)||void 0===a?void 0:a.featuredTopics);return d.a.useBasicFetch((null==i?void 0:i.id)&&T.x.classification(i.id,null==e?void 0:e.id))}(M.data,V.data),ne=function(e){var t,a,n=null,i=!e.isFetching,r=d.a.useBasicFetch(i&&T.x.classifications());return(null===(t=r.data)||void 0===t?void 0:t.length)&&(n=(null===(a=e.data)||void 0===a?void 0:a.id)?r.data.filter((function(t){return t.id!==e.data.id})):r.data),Object.assign(Object.assign({},r),{data:n})}(ae),ie=(k=l().subtract(1,"year").endOf("day").format("YYYY-MM-DD"),U=l().endOf("day").format("YYYY-MM-DD"),d.a.useBasicFetch(L.v.getContentUpdateVideos(k,U))),re=O.i.getPresentationLevelImage(null===(e=V.data)||void 0===e?void 0:e.learningLevel,"new-release-banner"),oe=f.m.last(re.split("/")),se=(0,I.T)().hasPermissions,ce=(0,F.Q)();(0,m.o)(K("pageTitle"));var le,de,ue=(le=(0,u.D)(C.g.AUDIENCE_FILTER,void 0,{storage:v.Z1.SessionStorage}),de=1,function(e){if(Array.isArray(e))return e}(le)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,i,r=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(r.push(n.value),!t||r.length!==t);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw i}}return r}}(le,de)||G(le,de)||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 i.createElement("div",{className:"bg-white px-3"},ce.isUpgrading&&!se(A.C.StudentExperience)&&i.createElement(W,null),i.createElement(Z.z,{type:se(A.C.StudentExperience)?g.DashboardUserType.Learner:g.DashboardUserType.Staff,appLinks:{forYou:ee.discover,newReleases:ee.contentUpdates}}),ne.hasCompleted?i.createElement(B.f,{appLinks:{allTopics:function(){return ee.allClassifications},classification:function(e){return Object.assign(Object.assign({},ee.classification),{args:[e.id,x.m.slugify(e.name)],params:S.T.getAudienceParams(ue)})}},name:se(A.C.StudentExperience)?K("topicsHeadingLearner"):K("topicsHeadingStaff"),content:[{id:X,name:O.i.getExploreAllTopicsTitle(null===(t=V.data)||void 0===t?void 0:t.name,null===(a=q.data)||void 0===a?void 0:a.length),tallPoster:{url:O.i.getPresentationLevelImage(null===(r=V.data)||void 0===r?void 0:r.learningLevel,"tall-poster")}}].concat(Q(ne.data))}):i.createElement(j.J,null),!!ae.data&&i.createElement("div",{className:"px-1"},i.createElement(J.U,{appLinks:{classification:function(){return Object.assign(Object.assign({},ee.classification),{args:[ae.data.id,ae.data.slug]})}},content:[ae.data],name:ae.data.name})),ae.isFetching&&i.createElement("div",{className:"px-1"},i.createElement(z.D,null)),!se(A.C.StudentExperience)&&i.createElement(i.Fragment,null,ie.hasCompleted?i.createElement(P.o,{content:ie.data,appLinks:{latestReleases:function(){return ee.contentUpdates},videoType:function(e){return Object.assign(Object.assign({},ee.video),{args:[e.id,x.m.slugify(e.name)]})},series:function(){return ee.series}},name:K("latestReleases"),setFavourite:H,metadata:{appLink:g.CuratedDashboardAppLink.LatestReleases,imageId:oe},imageCdnUrl:Y.data.imageCdnUrl,limitTotalItems:!0}):i.createElement(_.B,null)),$&&i.createElement("div",{className:"mx-n1"},$.map((function(e,t){return i.createElement(b.k,{key:t,type:e.type,contents:y.z.Videos,fetch:c.partial(te,e.collectionId.toString(),M.data),setData:function(e){var t;return null===(t=null==e?void 0:e.videos)||void 0===t?void 0:t.data},lazyLoad:!0,childComponent:E.E,extraChildComponentProps:{seriesAppLink:ee.series,setFavourite:H},appLink:ee.collection,getChildAppLink:function(e){return Object.assign(Object.assign({},ee.video),{args:[e.id,x.m.slugify(e.name)]})},minimumItemCount:3,limitTotalItems:!0})}))))}var ne=a(77548),ie=a(21366);function re(e){var t,a,n=f.m.sortBy(null===(t=e.dashboard)||void 0===t?void 0:t.widgets,"index");function i(t,a,n){var i=ie.S.getWidgetParams(a,n,ie.S.getDashboardTargetType(e.dashboard));return e.getWidgetContentRequest(t,i)}return r().createElement(r().Fragment,null,r().createElement(Z.z,{type:null===(a=e.dashboard)||void 0===a?void 0:a.userType,appLinks:e.headerAppLinks}),n.map((function(t){return r().createElement(ne.L,{key:t.id,id:t.id,imageCdnUrl:e.imageCdnUrl,getContentRequest:i,name:t.name,description:t.description,templateId:t.templateId,metadata:t.metadata,presentation:e.presentation,setFavourite:e.setFavourite,appLinks:e.widgetAppLinks,shouldShowHighlight:(null==e?void 0:e.highlightedWidgetId)===t.id,widgetTypeId:t.widgetId,hideFavouriteButton:e.hideFavouriteButton})})))}var oe=a(80889),se=a(42617),ce=a(22490);function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var de=p.T.encloseNamespace("dashboard.dashboard");function ue(e){var t,a,n=d.a.useBasicFetch(w.L.config()),i=d.a.useBasicFetch(h.N.currentUser()),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=(0,I.T)().hasPermissions,n=t.presentationId&&t.dashboardId&&"true"===t.preview,i=a(A.C.StudentExperience),r=d.a.useBasicFetch(e&&n&&h.N.groups(e)),o=d.a.useBasicFetch(T.x.presentation()),s=d.a.useBasicFetch(t.presentationId&&T.x.presentationById(t.presentationId)),c=(!n||r.hasCompleted)&&!!o.data;function l(){var e,a,i,s,l;if(!c)return{presentationId:null===(e=o.data)||void 0===e?void 0:e.id};if(!n)return{presentationId:null===(a=o.data)||void 0===a?void 0:a.id};var d=[se.j.Curator,se.j.Content,se.j.Developer];return(null===(s=null===(i=r.data)||void 0===i?void 0:i.data)||void 0===s?void 0:s.find((function(e){return d.includes(e.name)})))?{dashboardId:t.dashboardId,presentationId:t.presentationId}:{presentationId:null===(l=o.data)||void 0===l?void 0:l.id}}var u=l(),p=u.presentationId,m=u.dashboardId;function v(){if(!m)return i?g.DashboardUserType.Learner:g.DashboardUserType.Staff}function f(){return m?[g.DashboardStatus.Published,g.DashboardStatus.Draft,g.DashboardStatus.Archived]:[g.DashboardStatus.Published]}return{dashboard:d.a.useBasicFetch(c&&oe._.discoverDashboard(p,v(),f(),m)),presentation:m?s:o,isPreviewing:!!m}}(null===(t=i.data)||void 0===t?void 0:t.id,e.queryParams),c=o.dashboard,l=o.presentation,p=(0,F.Q)(),f=(0,D.c)(s.LocationContext.Dashboard).setFavourite;(0,m.o)(de("pageTitle"));var y,b,E,L=(b=(0,u.D)(C.g.AUDIENCE_FILTER,void 0,{storage:v.Z1.SessionStorage}),E=1,function(e){if(Array.isArray(e))return e}(b)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,i,r=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(r.push(n.value),!t||r.length!==t);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw i}}return r}}(b,E)||function(e,t){if(e){if("string"==typeof e)return le(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?le(e,t):void 0}}(b,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.")}())[0],O=(y=S.T.getAudienceParams(L),{classification:function(e){return{application:U.O.SUBJECT,action:k.e.Subjects.CLASSIFICATION,args:[null==e?void 0:e.id,x.m.slugify(null==e?void 0:e.name)],params:y||{}}},classificationTopics:function(){return{application:U.O.SUBJECT,action:k.e.Subjects.CLASSIFICATION_TOPICS,params:y||{}}},videoType:function(e){return ce.W.getAppLink(e)},series:function(e){return{application:U.O.SERIES,action:k.e.Series.SERIES,args:e?[e.id,x.m.slugify(e.name)]:[]}},playlist:function(e){return{application:U.O.PLAYLISTS,action:k.e.Playlists.PLAYLIST,args:[e.id,x.m.slugify(e.name)]}},latestReleases:function(){return{application:U.O.CONTENT_UPDATES,action:k.e.ContentUpdates.CONTENT_UPDATES}},allTopics:function(){return{application:U.O.SUBJECT,action:k.e.Subjects.CLASSIFICATION_ALL}},classificationLatestReleases:function(e){return"classification-latest-releases"===e.id?{application:U.O.CONTENT_UPDATES,action:k.e.ContentUpdates.CONTENT_UPDATES}:{application:U.O.CONTENT_UPDATES,action:k.e.ContentUpdates.CLASSIFICATION_UPDATE,args:[e.id,x.m.slugify(e.name)]}}});return r().createElement("div",{className:"bg-white px-3"},p.isUpgrading&&(null===(a=c.data)||void 0===a?void 0:a.userType)===g.DashboardUserType.Staff&&r().createElement(W,null),r().createElement(re,{currentUser:i.data,dashboard:c.data,widgetAppLinks:O,headerAppLinks:{forYou:{application:U.O.DASHBOARD,action:k.e.Dashboard.HOME},newReleases:{application:U.O.CONTENT_UPDATES,action:k.e.ContentUpdates.CONTENT_UPDATES}},presentation:l.data,imageCdnUrl:n.data.imageCdnUrl,getWidgetContentRequest:oe._.dashboardWidgetContent,setFavourite:f}))}function pe(e){var t=(0,o.r)(s.LocationContext.Classification),a=t.hasCuratedDiscoverDashboards;return t.isLoadingSettings?r().createElement(r().Fragment,null):a?r().createElement(ue,Object.assign({},e)):r().createElement(ae,null)}},87432:(e,t,a)=>{a.d(t,{Z:()=>n});const n={pillTabSelector:"Hdi6o",pillItem:"hUJx1"}}}]);