@clickview/lite 0.44.0 → 0.44.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (267) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/scripts/1081-713b2009f0-lite.chunk.js +1 -0
  3. package/dist/scripts/{1197-cf9eb11a06-lite.chunk.js → 1197-3e8e196036-lite.chunk.js} +1 -1
  4. package/dist/scripts/121-7ea66e5966-lite.chunk.js +1 -0
  5. package/dist/scripts/1276-3649cb6030-lite.chunk.js +2 -0
  6. package/dist/scripts/{1437-68092ae0ec-lite.chunk.js → 1437-ca51aed59c-lite.chunk.js} +1 -1
  7. package/dist/scripts/1466-1e609d0f2d-lite.chunk.js +2 -0
  8. package/dist/scripts/{1526-58fe2eda49-lite.chunk.js → 1526-af2eac3dcb-lite.chunk.js} +1 -1
  9. package/dist/scripts/{1672-1cc56570f6-lite.chunk.js → 1672-3aee4ad2e0-lite.chunk.js} +2 -2
  10. package/dist/scripts/{170-84aefd7973-lite.chunk.js → 170-72e998fdba-lite.chunk.js} +2 -2
  11. package/dist/scripts/1818-a6a4b731f7-lite.chunk.js +1 -0
  12. package/dist/scripts/{1895-ab79a61bf0-lite.chunk.js → 1895-d2546a0cd3-lite.chunk.js} +2 -2
  13. package/dist/scripts/{2118-3019537e19-lite.chunk.js → 2118-dd0d1852f0-lite.chunk.js} +2 -2
  14. package/dist/scripts/2235-c26089dac6-lite.chunk.js +1 -0
  15. package/dist/scripts/2261-e9a7e61d6d-lite.chunk.js +1 -0
  16. package/dist/scripts/2383-81084e360a-lite.chunk.js +1 -0
  17. package/dist/scripts/{287-fafdc0fa85-lite.chunk.js → 287-384f5c9246-lite.chunk.js} +1 -1
  18. package/dist/scripts/2882-90f8dcd660-lite.chunk.js +1 -0
  19. package/dist/scripts/{2949-1e01a7289b-lite.chunk.js → 2949-695958186b-lite.chunk.js} +1 -1
  20. package/dist/scripts/{3020-b76ff2a7b4-lite.chunk.js → 3020-f7e674050d-lite.chunk.js} +1 -1
  21. package/dist/scripts/3081-b55baaca7c-lite.chunk.js +2 -0
  22. package/dist/scripts/{3095-c1da0202fd-lite.chunk.js → 3095-8ec332ba2b-lite.chunk.js} +2 -2
  23. package/dist/scripts/3216-157a11893b-lite.chunk.js +1 -0
  24. package/dist/scripts/3248-8b982f50fe-lite.chunk.js +1 -0
  25. package/dist/scripts/355-c2888d4603-lite.chunk.js +1 -0
  26. package/dist/scripts/3567-e6c2ad6aea-lite.chunk.js +1 -0
  27. package/dist/scripts/360-a6e2e997f5-lite.chunk.js +2 -0
  28. package/dist/scripts/3602-903eb1cd1e-lite.chunk.js +2 -0
  29. package/dist/scripts/{3645-688b11a98a-lite.chunk.js → 3645-c9fbac4441-lite.chunk.js} +1 -1
  30. package/dist/scripts/3654-758c9e46e0-lite.chunk.js +1 -0
  31. package/dist/scripts/3667-09226e6369-lite.chunk.js +2 -0
  32. package/dist/scripts/3728-c288e986a7-lite.chunk.js +1 -0
  33. package/dist/scripts/3836-c1b0423e7a-lite.chunk.js +1 -0
  34. package/dist/scripts/3841-539aa9573e-lite.chunk.js +2 -0
  35. package/dist/scripts/3848-4eb815382b-lite.chunk.js +1 -0
  36. package/dist/scripts/3867-2626e2cf7c-lite.chunk.js +2 -0
  37. package/dist/scripts/3966-5c38e725b9-lite.chunk.js +1 -0
  38. package/dist/scripts/{4032-b03e3ab723-lite.chunk.js → 4032-447a2a4182-lite.chunk.js} +1 -1
  39. package/dist/scripts/4077-031a1f7250-lite.chunk.js +1 -0
  40. package/dist/scripts/4393-48db651ab8-lite.chunk.js +1 -0
  41. package/dist/scripts/4436-94af094875-lite.chunk.js +1 -0
  42. package/dist/scripts/{4608-0ab89eddf5-lite.chunk.js → 4608-efd41f2274-lite.chunk.js} +1 -1
  43. package/dist/scripts/4612-f6ba941518-lite.chunk.js +1 -0
  44. package/dist/scripts/4676-beb0d246a2-lite.chunk.js +2 -0
  45. package/dist/scripts/{4753-c8a19a5c5f-lite.chunk.js → 4753-fa7c39e008-lite.chunk.js} +1 -1
  46. package/dist/scripts/4778-2d3bc4ef53-lite.chunk.js +2 -0
  47. package/dist/scripts/4942-4900decb33-lite.chunk.js +2 -0
  48. package/dist/scripts/5009-e742b3b11e-lite.chunk.js +2 -0
  49. package/dist/scripts/{5143-bb74b5c75b-lite.chunk.js → 5143-a61ff5768d-lite.chunk.js} +1 -1
  50. package/dist/scripts/{5236-4492f8d9d5-lite.chunk.js → 5236-5668fcb6e1-lite.chunk.js} +2 -2
  51. package/dist/scripts/5268-5d30359c44-lite.chunk.js +2 -0
  52. package/dist/scripts/5271-6cc2fa0197-lite.chunk.js +1 -1
  53. package/dist/scripts/{537-3e4996c5d8-lite.chunk.js → 537-546b4eb266-lite.chunk.js} +2 -2
  54. package/dist/scripts/5438-dba8f00d2c-lite.chunk.js +1 -0
  55. package/dist/scripts/5512-254e4101b7-lite.chunk.js +2 -0
  56. package/dist/scripts/5622-679a8d7288-lite.chunk.js +2 -0
  57. package/dist/scripts/{5940-957084c1db-lite.chunk.js → 5940-af6ed27cfb-lite.chunk.js} +1 -1
  58. package/dist/scripts/5956-3eb2129d6c-lite.chunk.js +1 -0
  59. package/dist/scripts/6014-8ffb3f5601-lite.chunk.js +1 -0
  60. package/dist/scripts/6086-6e1cd58ace-lite.chunk.js +2 -0
  61. package/dist/scripts/6102-ae346e08c2-lite.chunk.js +2 -0
  62. package/dist/scripts/615-92aa23faec-lite.chunk.js +1 -0
  63. package/dist/scripts/{6330-b5e65b8a25-lite.chunk.js → 6330-d1700c8c92-lite.chunk.js} +1 -1
  64. package/dist/scripts/6368-9615f5727d-lite.chunk.js +1 -0
  65. package/dist/scripts/6433-355f54088c-lite.chunk.js +2 -0
  66. package/dist/scripts/{6489-e1794b98c8-lite.chunk.js → 6489-4d22ec2409-lite.chunk.js} +2 -2
  67. package/dist/scripts/6532-0a8811d4b1-lite.chunk.js +1 -0
  68. package/dist/scripts/6617-60a05d215d-lite.chunk.js +2 -0
  69. package/dist/scripts/6741-4ded0ca496-lite.chunk.js +2 -0
  70. package/dist/scripts/6801-48746c5267-lite.chunk.js +1 -0
  71. package/dist/scripts/6823-0c0e463dc4-lite.chunk.js +2 -0
  72. package/dist/scripts/6896-a3d38ae7a4-lite.chunk.js +2 -0
  73. package/dist/scripts/7017-1c686d77cb-lite.chunk.js +2 -0
  74. package/dist/scripts/7030-c786d4e8ec-lite.chunk.js +2 -0
  75. package/dist/scripts/7052-8b6c726a6a-lite.chunk.js +2 -0
  76. package/dist/scripts/7112-5be394a047-lite.chunk.js +2 -0
  77. package/dist/scripts/7117-91ae366d34-lite.chunk.js +1 -0
  78. package/dist/scripts/7178-b0d19154b1-lite.chunk.js +1 -0
  79. package/dist/scripts/{7205-05c2b05546-lite.chunk.js → 7205-0a33c1ff11-lite.chunk.js} +1 -1
  80. package/dist/scripts/7221-fc696d1984-lite.chunk.js +2 -0
  81. package/dist/scripts/7288-2882ea6a8a-lite.chunk.js +1 -0
  82. package/dist/scripts/7385-8472652f32-lite.chunk.js +2 -0
  83. package/dist/scripts/7402-88ffc2535a-lite.chunk.js +2 -0
  84. package/dist/scripts/7506-799a5aa8ba-lite.chunk.js +1 -0
  85. package/dist/scripts/{7540-1306a8daf6-lite.chunk.js → 7540-7c5a0fc317-lite.chunk.js} +1 -1
  86. package/dist/scripts/{7555-181e877fce-lite.chunk.js → 7555-5650392ae9-lite.chunk.js} +1 -1
  87. package/dist/scripts/7670-9684a40bb3-lite.chunk.js +2 -0
  88. package/dist/scripts/771-2a50f4b492-lite.chunk.js +2 -0
  89. package/dist/scripts/7726-10f2482d47-lite.chunk.js +1 -0
  90. package/dist/scripts/8046-39bdfad774-lite.chunk.js +1 -0
  91. package/dist/scripts/8199-04230d108d-lite.chunk.js +2 -0
  92. package/dist/scripts/{8323-e28531b5e9-lite.chunk.js → 8323-a1dff86e20-lite.chunk.js} +2 -2
  93. package/dist/scripts/{841-51c690486c-lite.chunk.js → 841-204e8dffbc-lite.chunk.js} +2 -2
  94. package/dist/scripts/8581-e6c2975133-lite.chunk.js +1 -0
  95. package/dist/scripts/8681-fd629972e5-lite.chunk.js +2 -0
  96. package/dist/scripts/8759-e1bd74ab1c-lite.chunk.js +1 -0
  97. package/dist/scripts/8935-ba43b3d0dd-lite.chunk.js +2 -0
  98. package/dist/scripts/9173-33a8c5c0ba-lite.chunk.js +2 -0
  99. package/dist/scripts/9226-f6b171dbe4-lite.chunk.js +1 -0
  100. package/dist/scripts/9230-bea3f74253-lite.chunk.js +2 -0
  101. package/dist/scripts/9242-6064f14b8c-lite.chunk.js +1 -0
  102. package/dist/scripts/9371-adcc457db4-lite.chunk.js +2 -0
  103. package/dist/scripts/9428-02847e469a-lite.chunk.js +2 -0
  104. package/dist/scripts/9433-2633f88768-lite.chunk.js +1 -0
  105. package/dist/scripts/9478-7cd9d681d8-lite.chunk.js +2 -0
  106. package/dist/scripts/9484-5a77c57259-lite.chunk.js +2 -0
  107. package/dist/scripts/9557-e27e33f362-lite.chunk.js +1 -0
  108. package/dist/scripts/{9719-a171fa6dfc-lite.chunk.js → 9719-d0ad006c61-lite.chunk.js} +2 -2
  109. package/dist/scripts/9894-3628ac93b9-lite.chunk.js +2 -0
  110. package/dist/scripts/9918-eb167d3142-lite.chunk.js +2 -0
  111. package/dist/scripts/9931-abf79a99fb-lite.chunk.js +2 -0
  112. package/dist/scripts/bundle-354e7b3ce1.min.js +2 -0
  113. package/dist/scripts/{polyfills-7bd16772e3.min.js → polyfills-7cab3b27a6.min.js} +2 -2
  114. package/jest.config.js +11 -11
  115. package/package.json +60 -60
  116. package/typings/libs/CVEvents.d.ts +12 -12
  117. package/typings/libs/CVLanguages.d.ts +24 -24
  118. package/typings/libs/cloneDeep.d.ts +4 -4
  119. package/typings/libs/cookiesjs.d.ts +25 -25
  120. package/typings/libs/draft-convert.d.ts +3 -3
  121. package/typings/libs/google-api.d.ts +93 -93
  122. package/typings/libs/intersection-observer.d.ts +82 -82
  123. package/typings/libs/microsoft-teams.d.ts +2 -2
  124. package/typings/libs/react-table-config.d.ts +138 -138
  125. package/typings/libs/trackjs.d.ts +2 -2
  126. package/typings/libs/videojs-contrib-quality-levels.d.ts +28 -28
  127. package/typings/utils/imports.d.ts +13 -13
  128. package/dist/scripts/1081-6b44a08d22-lite.chunk.js +0 -1
  129. package/dist/scripts/121-67e7df47c6-lite.chunk.js +0 -1
  130. package/dist/scripts/1276-c906943bd2-lite.chunk.js +0 -2
  131. package/dist/scripts/1466-8c87c52bac-lite.chunk.js +0 -2
  132. package/dist/scripts/1818-d77367ca9a-lite.chunk.js +0 -1
  133. package/dist/scripts/2235-17d38cbc78-lite.chunk.js +0 -1
  134. package/dist/scripts/2261-60a35c5b26-lite.chunk.js +0 -1
  135. package/dist/scripts/2383-a4dc697816-lite.chunk.js +0 -1
  136. package/dist/scripts/2882-f061e2fc9f-lite.chunk.js +0 -1
  137. package/dist/scripts/3081-108dff6034-lite.chunk.js +0 -2
  138. package/dist/scripts/3216-2622b09d95-lite.chunk.js +0 -1
  139. package/dist/scripts/3248-bf43e6c8fb-lite.chunk.js +0 -1
  140. package/dist/scripts/355-833532b4ed-lite.chunk.js +0 -1
  141. package/dist/scripts/3567-3d63a029b4-lite.chunk.js +0 -1
  142. package/dist/scripts/360-9f12bacdff-lite.chunk.js +0 -2
  143. package/dist/scripts/3602-7fd870ae27-lite.chunk.js +0 -2
  144. package/dist/scripts/3654-e4ce211ef5-lite.chunk.js +0 -1
  145. package/dist/scripts/3667-ca54928839-lite.chunk.js +0 -2
  146. package/dist/scripts/3728-6dbaab9fa1-lite.chunk.js +0 -1
  147. package/dist/scripts/3836-ca3688f876-lite.chunk.js +0 -1
  148. package/dist/scripts/3841-de4f0b79fa-lite.chunk.js +0 -2
  149. package/dist/scripts/3848-3d23e7ebe9-lite.chunk.js +0 -1
  150. package/dist/scripts/3867-651a4b17b7-lite.chunk.js +0 -2
  151. package/dist/scripts/3966-f974de8f41-lite.chunk.js +0 -1
  152. package/dist/scripts/4077-c85b6bf2d7-lite.chunk.js +0 -1
  153. package/dist/scripts/4393-f5ca3cd7cc-lite.chunk.js +0 -1
  154. package/dist/scripts/4436-02ef766975-lite.chunk.js +0 -1
  155. package/dist/scripts/4612-668b3947be-lite.chunk.js +0 -1
  156. package/dist/scripts/4676-3b968e527e-lite.chunk.js +0 -2
  157. package/dist/scripts/4778-deafbc1336-lite.chunk.js +0 -2
  158. package/dist/scripts/4942-8a28a1d2d3-lite.chunk.js +0 -2
  159. package/dist/scripts/5009-d8f58f2f6d-lite.chunk.js +0 -2
  160. package/dist/scripts/5268-9928164a1f-lite.chunk.js +0 -2
  161. package/dist/scripts/5438-d05dbdfcab-lite.chunk.js +0 -1
  162. package/dist/scripts/5512-cef514f35e-lite.chunk.js +0 -2
  163. package/dist/scripts/5622-08b53be458-lite.chunk.js +0 -2
  164. package/dist/scripts/5956-cae52fa2a9-lite.chunk.js +0 -1
  165. package/dist/scripts/6014-442df0e2de-lite.chunk.js +0 -1
  166. package/dist/scripts/6086-119dd59a8c-lite.chunk.js +0 -2
  167. package/dist/scripts/6102-f470c97949-lite.chunk.js +0 -2
  168. package/dist/scripts/615-47359245c1-lite.chunk.js +0 -1
  169. package/dist/scripts/6368-3c4f8bd277-lite.chunk.js +0 -1
  170. package/dist/scripts/6433-2d6d2c0425-lite.chunk.js +0 -2
  171. package/dist/scripts/6532-ffb5c9cfad-lite.chunk.js +0 -1
  172. package/dist/scripts/6617-a01e71dced-lite.chunk.js +0 -2
  173. package/dist/scripts/6741-e9b17f849b-lite.chunk.js +0 -2
  174. package/dist/scripts/6801-07270579c3-lite.chunk.js +0 -1
  175. package/dist/scripts/6823-4d9cec7108-lite.chunk.js +0 -2
  176. package/dist/scripts/6896-07e4c9237f-lite.chunk.js +0 -2
  177. package/dist/scripts/7017-68fd760191-lite.chunk.js +0 -2
  178. package/dist/scripts/7030-7143384a72-lite.chunk.js +0 -2
  179. package/dist/scripts/7052-9ec18ca474-lite.chunk.js +0 -2
  180. package/dist/scripts/7112-3ed53681c3-lite.chunk.js +0 -2
  181. package/dist/scripts/7117-59efcfef9b-lite.chunk.js +0 -1
  182. package/dist/scripts/7178-c7988251f6-lite.chunk.js +0 -1
  183. package/dist/scripts/7221-f88ee657b5-lite.chunk.js +0 -2
  184. package/dist/scripts/7288-1890d3d440-lite.chunk.js +0 -1
  185. package/dist/scripts/7385-a9fecdfb18-lite.chunk.js +0 -2
  186. package/dist/scripts/7402-3f6f29e4d6-lite.chunk.js +0 -2
  187. package/dist/scripts/7506-728c338ce6-lite.chunk.js +0 -1
  188. package/dist/scripts/7670-4d64f337ea-lite.chunk.js +0 -2
  189. package/dist/scripts/771-7baa5d9948-lite.chunk.js +0 -2
  190. package/dist/scripts/7726-5ee4e48be5-lite.chunk.js +0 -1
  191. package/dist/scripts/8046-f9c2883b0f-lite.chunk.js +0 -1
  192. package/dist/scripts/8199-3a53d7decf-lite.chunk.js +0 -2
  193. package/dist/scripts/8581-de35c5edc9-lite.chunk.js +0 -1
  194. package/dist/scripts/8681-44c94eded8-lite.chunk.js +0 -2
  195. package/dist/scripts/8759-38a1df6fa0-lite.chunk.js +0 -1
  196. package/dist/scripts/8935-661eae356d-lite.chunk.js +0 -2
  197. package/dist/scripts/9173-f15b9cbcbe-lite.chunk.js +0 -2
  198. package/dist/scripts/9226-c83ae5aa82-lite.chunk.js +0 -1
  199. package/dist/scripts/9230-eccf2191f0-lite.chunk.js +0 -2
  200. package/dist/scripts/9242-253c1fa28f-lite.chunk.js +0 -1
  201. package/dist/scripts/9371-dfb78a274f-lite.chunk.js +0 -2
  202. package/dist/scripts/9428-1dcd12662a-lite.chunk.js +0 -2
  203. package/dist/scripts/9433-9d964eb375-lite.chunk.js +0 -1
  204. package/dist/scripts/9478-45dc5c0e2e-lite.chunk.js +0 -2
  205. package/dist/scripts/9484-4f44950d32-lite.chunk.js +0 -2
  206. package/dist/scripts/9557-b8691473f5-lite.chunk.js +0 -1
  207. package/dist/scripts/9894-04b7d1bf02-lite.chunk.js +0 -2
  208. package/dist/scripts/9918-f2d762f32e-lite.chunk.js +0 -2
  209. package/dist/scripts/9931-d0df42247b-lite.chunk.js +0 -2
  210. package/dist/scripts/bundle-9d9ab85581.min.js +0 -2
  211. /package/dist/scripts/{1276-c906943bd2-lite.chunk.js.LICENSE.txt → 1276-3649cb6030-lite.chunk.js.LICENSE.txt} +0 -0
  212. /package/dist/scripts/{1466-8c87c52bac-lite.chunk.js.LICENSE.txt → 1466-1e609d0f2d-lite.chunk.js.LICENSE.txt} +0 -0
  213. /package/dist/scripts/{1672-1cc56570f6-lite.chunk.js.LICENSE.txt → 1672-3aee4ad2e0-lite.chunk.js.LICENSE.txt} +0 -0
  214. /package/dist/scripts/{170-84aefd7973-lite.chunk.js.LICENSE.txt → 170-72e998fdba-lite.chunk.js.LICENSE.txt} +0 -0
  215. /package/dist/scripts/{1895-ab79a61bf0-lite.chunk.js.LICENSE.txt → 1895-d2546a0cd3-lite.chunk.js.LICENSE.txt} +0 -0
  216. /package/dist/scripts/{2118-3019537e19-lite.chunk.js.LICENSE.txt → 2118-dd0d1852f0-lite.chunk.js.LICENSE.txt} +0 -0
  217. /package/dist/scripts/{2452-c3f02e89b5-lite.chunk.js → 2452-54c1403617-lite.chunk.js} +0 -0
  218. /package/dist/scripts/{3081-108dff6034-lite.chunk.js.LICENSE.txt → 3081-b55baaca7c-lite.chunk.js.LICENSE.txt} +0 -0
  219. /package/dist/scripts/{3095-c1da0202fd-lite.chunk.js.LICENSE.txt → 3095-8ec332ba2b-lite.chunk.js.LICENSE.txt} +0 -0
  220. /package/dist/scripts/{360-9f12bacdff-lite.chunk.js.LICENSE.txt → 360-a6e2e997f5-lite.chunk.js.LICENSE.txt} +0 -0
  221. /package/dist/scripts/{3602-7fd870ae27-lite.chunk.js.LICENSE.txt → 3602-903eb1cd1e-lite.chunk.js.LICENSE.txt} +0 -0
  222. /package/dist/scripts/{3667-ca54928839-lite.chunk.js.LICENSE.txt → 3667-09226e6369-lite.chunk.js.LICENSE.txt} +0 -0
  223. /package/dist/scripts/{3841-de4f0b79fa-lite.chunk.js.LICENSE.txt → 3841-539aa9573e-lite.chunk.js.LICENSE.txt} +0 -0
  224. /package/dist/scripts/{3867-651a4b17b7-lite.chunk.js.LICENSE.txt → 3867-2626e2cf7c-lite.chunk.js.LICENSE.txt} +0 -0
  225. /package/dist/scripts/{4676-3b968e527e-lite.chunk.js.LICENSE.txt → 4676-beb0d246a2-lite.chunk.js.LICENSE.txt} +0 -0
  226. /package/dist/scripts/{4778-deafbc1336-lite.chunk.js.LICENSE.txt → 4778-2d3bc4ef53-lite.chunk.js.LICENSE.txt} +0 -0
  227. /package/dist/scripts/{4942-8a28a1d2d3-lite.chunk.js.LICENSE.txt → 4942-4900decb33-lite.chunk.js.LICENSE.txt} +0 -0
  228. /package/dist/scripts/{5009-d8f58f2f6d-lite.chunk.js.LICENSE.txt → 5009-e742b3b11e-lite.chunk.js.LICENSE.txt} +0 -0
  229. /package/dist/scripts/{5236-4492f8d9d5-lite.chunk.js.LICENSE.txt → 5236-5668fcb6e1-lite.chunk.js.LICENSE.txt} +0 -0
  230. /package/dist/scripts/{5268-9928164a1f-lite.chunk.js.LICENSE.txt → 5268-5d30359c44-lite.chunk.js.LICENSE.txt} +0 -0
  231. /package/dist/scripts/{537-3e4996c5d8-lite.chunk.js.LICENSE.txt → 537-546b4eb266-lite.chunk.js.LICENSE.txt} +0 -0
  232. /package/dist/scripts/{5512-cef514f35e-lite.chunk.js.LICENSE.txt → 5512-254e4101b7-lite.chunk.js.LICENSE.txt} +0 -0
  233. /package/dist/scripts/{5622-08b53be458-lite.chunk.js.LICENSE.txt → 5622-679a8d7288-lite.chunk.js.LICENSE.txt} +0 -0
  234. /package/dist/scripts/{6086-119dd59a8c-lite.chunk.js.LICENSE.txt → 6086-6e1cd58ace-lite.chunk.js.LICENSE.txt} +0 -0
  235. /package/dist/scripts/{6102-f470c97949-lite.chunk.js.LICENSE.txt → 6102-ae346e08c2-lite.chunk.js.LICENSE.txt} +0 -0
  236. /package/dist/scripts/{6433-2d6d2c0425-lite.chunk.js.LICENSE.txt → 6433-355f54088c-lite.chunk.js.LICENSE.txt} +0 -0
  237. /package/dist/scripts/{6489-e1794b98c8-lite.chunk.js.LICENSE.txt → 6489-4d22ec2409-lite.chunk.js.LICENSE.txt} +0 -0
  238. /package/dist/scripts/{6617-a01e71dced-lite.chunk.js.LICENSE.txt → 6617-60a05d215d-lite.chunk.js.LICENSE.txt} +0 -0
  239. /package/dist/scripts/{6741-e9b17f849b-lite.chunk.js.LICENSE.txt → 6741-4ded0ca496-lite.chunk.js.LICENSE.txt} +0 -0
  240. /package/dist/scripts/{6823-4d9cec7108-lite.chunk.js.LICENSE.txt → 6823-0c0e463dc4-lite.chunk.js.LICENSE.txt} +0 -0
  241. /package/dist/scripts/{6896-07e4c9237f-lite.chunk.js.LICENSE.txt → 6896-a3d38ae7a4-lite.chunk.js.LICENSE.txt} +0 -0
  242. /package/dist/scripts/{7017-68fd760191-lite.chunk.js.LICENSE.txt → 7017-1c686d77cb-lite.chunk.js.LICENSE.txt} +0 -0
  243. /package/dist/scripts/{7030-7143384a72-lite.chunk.js.LICENSE.txt → 7030-c786d4e8ec-lite.chunk.js.LICENSE.txt} +0 -0
  244. /package/dist/scripts/{7052-9ec18ca474-lite.chunk.js.LICENSE.txt → 7052-8b6c726a6a-lite.chunk.js.LICENSE.txt} +0 -0
  245. /package/dist/scripts/{7112-3ed53681c3-lite.chunk.js.LICENSE.txt → 7112-5be394a047-lite.chunk.js.LICENSE.txt} +0 -0
  246. /package/dist/scripts/{7221-f88ee657b5-lite.chunk.js.LICENSE.txt → 7221-fc696d1984-lite.chunk.js.LICENSE.txt} +0 -0
  247. /package/dist/scripts/{7385-a9fecdfb18-lite.chunk.js.LICENSE.txt → 7385-8472652f32-lite.chunk.js.LICENSE.txt} +0 -0
  248. /package/dist/scripts/{7402-3f6f29e4d6-lite.chunk.js.LICENSE.txt → 7402-88ffc2535a-lite.chunk.js.LICENSE.txt} +0 -0
  249. /package/dist/scripts/{7670-4d64f337ea-lite.chunk.js.LICENSE.txt → 7670-9684a40bb3-lite.chunk.js.LICENSE.txt} +0 -0
  250. /package/dist/scripts/{771-7baa5d9948-lite.chunk.js.LICENSE.txt → 771-2a50f4b492-lite.chunk.js.LICENSE.txt} +0 -0
  251. /package/dist/scripts/{8199-3a53d7decf-lite.chunk.js.LICENSE.txt → 8199-04230d108d-lite.chunk.js.LICENSE.txt} +0 -0
  252. /package/dist/scripts/{8323-e28531b5e9-lite.chunk.js.LICENSE.txt → 8323-a1dff86e20-lite.chunk.js.LICENSE.txt} +0 -0
  253. /package/dist/scripts/{841-51c690486c-lite.chunk.js.LICENSE.txt → 841-204e8dffbc-lite.chunk.js.LICENSE.txt} +0 -0
  254. /package/dist/scripts/{8681-44c94eded8-lite.chunk.js.LICENSE.txt → 8681-fd629972e5-lite.chunk.js.LICENSE.txt} +0 -0
  255. /package/dist/scripts/{8935-661eae356d-lite.chunk.js.LICENSE.txt → 8935-ba43b3d0dd-lite.chunk.js.LICENSE.txt} +0 -0
  256. /package/dist/scripts/{9173-f15b9cbcbe-lite.chunk.js.LICENSE.txt → 9173-33a8c5c0ba-lite.chunk.js.LICENSE.txt} +0 -0
  257. /package/dist/scripts/{9230-eccf2191f0-lite.chunk.js.LICENSE.txt → 9230-bea3f74253-lite.chunk.js.LICENSE.txt} +0 -0
  258. /package/dist/scripts/{9371-dfb78a274f-lite.chunk.js.LICENSE.txt → 9371-adcc457db4-lite.chunk.js.LICENSE.txt} +0 -0
  259. /package/dist/scripts/{9428-1dcd12662a-lite.chunk.js.LICENSE.txt → 9428-02847e469a-lite.chunk.js.LICENSE.txt} +0 -0
  260. /package/dist/scripts/{9478-45dc5c0e2e-lite.chunk.js.LICENSE.txt → 9478-7cd9d681d8-lite.chunk.js.LICENSE.txt} +0 -0
  261. /package/dist/scripts/{9484-4f44950d32-lite.chunk.js.LICENSE.txt → 9484-5a77c57259-lite.chunk.js.LICENSE.txt} +0 -0
  262. /package/dist/scripts/{9719-a171fa6dfc-lite.chunk.js.LICENSE.txt → 9719-d0ad006c61-lite.chunk.js.LICENSE.txt} +0 -0
  263. /package/dist/scripts/{9894-04b7d1bf02-lite.chunk.js.LICENSE.txt → 9894-3628ac93b9-lite.chunk.js.LICENSE.txt} +0 -0
  264. /package/dist/scripts/{9918-f2d762f32e-lite.chunk.js.LICENSE.txt → 9918-eb167d3142-lite.chunk.js.LICENSE.txt} +0 -0
  265. /package/dist/scripts/{9931-d0df42247b-lite.chunk.js.LICENSE.txt → 9931-abf79a99fb-lite.chunk.js.LICENSE.txt} +0 -0
  266. /package/dist/scripts/{bundle-9d9ab85581.min.js.LICENSE.txt → bundle-354e7b3ce1.min.js.LICENSE.txt} +0 -0
  267. /package/dist/scripts/{polyfills-7bd16772e3.min.js.LICENSE.txt → polyfills-7cab3b27a6.min.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
- /*! For license information please see 5236-4492f8d9d5-lite.chunk.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[5236],{69624:(e,t,n)=>{n.d(t,{F:()=>c});var r=n(97395),a=n(86664),o=n(93824),i={Marketing:{au:"https://www.clickview.com.au",uk:"https://www.clickview.co.uk",nz:"https://www.clickview.co.nz",us:"https://www.clickvieweducation.com"},Support:{au:"https://www.clickviewsupport.com/hc/en-au",uk:"https://www.clickviewsupport.com/hc/en-au#gb",nz:"https://www.clickviewsupport.com/hc/en-au#nz",us:"https://www.clickviewsupport.com/hc/en-au#us"}},c={getMarketingUrlForGeoLocation:function(e){var t=a.I.getCountryCode(null==e?void 0:e.countryCode);return i.Marketing[t]||i.Marketing.us},getMarketingSalesContactForGeoLocation:function(e){var t=a.I.getCountryCode(null==e?void 0:e.countryCode),n=this.getMarketingUrlForGeoLocation(e);return e&&t===o.C.NZ?n+"/contact-us/":n+"/contact-us/trial/"},getFreeResourcesForGeoLocation:function(e){var t=a.I.getCountryCode(null==e?void 0:e.countryCode);return t===o.C.NZ&&(t=o.C.AU),this.getMarketingUrlForGeoLocation({countryCode:t})+"/free-student-resources//"},getTermsAndConditionsLink:function(){return this.getMarketingUrlForGeoLocation(o.C.US)+"/terms-and-conditions/"},getPrivacyPolicyLink:function(){return this.getMarketingUrlForGeoLocation(o.C.US)+"/privacy-policy/"},getSupportUrlForGeoLocation:function(e){var t=a.I.getCountryCode(null==e?void 0:e.countryCode);return i.Support[t]||i.Support.us},getLoginLink:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.email,n=e.customerId,a={redirectUrl:window.location.pathname+window.location.search};return t&&(a.email=t),n&&(a.customerId=n),r._.urlBuilder("/login",a)}}},97481:(e,t,n)=>{n.d(t,{d:()=>l});var r=n(32735),a=n(11607),o=n(83345);const i={emptyState:"k5mEG"};var c="shared.typeaheadErrorState";function l(e){return r.createElement("div",{className:"d-flex flex-column align-items-center text-center",onClick:function(e){e.stopPropagation()}},r.createElement("img",{alt:"",role:"presentation",src:e.imageUrl,className:"pb-2 ".concat(i.emptyState)}),r.createElement("h2",{className:"h6"},r.createElement(o.x,{namespace:c,phrase:"error"})),r.createElement(a.L,{onClick:function(t){t.stopPropagation(),e.onClickTryAgain()},className:"btn btn-link info-link p-0"},r.createElement(o.x,{namespace:c,phrase:"tryAgain"})))}},99705:(e,t,n)=>{var r,a;n.d(t,{b:()=>a}),function(e){e.AddToPlaylist="115005679748",e.EditSsoAccounts="8202508040345",e.LibraryEditor="360001974533",e.VideoAccess="360000153947",e.AddFromOnline="360011718234",e.UploadToLibraryEditor="360012069334",e.PBTErrorCodes="360012421153",e.ManuelReview="360020004534",e.LibraryReview="360000163788"}(r||(r={})),function(e){e.Integrations="4407268725529",e.Classrooms="4405362551833",e.MakeInteractive="4405370510873",e.EditSsoAccounts="8202605666073",e.UploadToLibraryEditor="10672936659865",e.AddFromLite="10671345281561",e.ManageSsoYearGroups="12522160412313",e.ContentReview="18525199576601",e.ContentPermissions="14692125209497",e.AccessSettings="22110291468057",e.ContentGuidelines="24133696186009",e.FoxtelFaq="24133519542169",e.ViviIntegration="23826297956377",e.AppleTvIntegration="25832373739929"}(a||(a={}))},12617:(e,t,n)=>{n.d(t,{E:()=>s});var r=n(99940),a=n(97395),o=n(62803),i=n(5960),c=n(4594),l=n(78417),s={videos:function(e,t,n){var r=o.v.VIDEO_COLLECTION,s=o.v.CLIP_COLLECTION,u=o.v.INTERACTIVE,d="videos[".concat(r,"]{libraries.typeid:").concat(c.E.WorkspaceCollection,"}"),m="clips[".concat(s,"]{status:").concat(i.X.Published,"}"),p="interactives[".concat(u,"]{status:[").concat(i.X.Published,",").concat(i.X.Draft,"]}"),h=[];(null==n?void 0:n.length)?(n.includes("video")&&h.push(d),n.includes("clip")&&h.push(m),n.includes("interactive")&&h.push(p)):h.push(d,m,p);var v={query:"(".concat(h.join("|"),"){orderbydesc:timestamp}"),permissionFilterOption:l.r.StripMetadata};return t&&(v.cursor=t),{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),v),key:"my:videos:".concat(e,":").concat(t).concat(n?":".concat(Array.isArray(n)?n.join(":"):n):"")}},workspaceWithCategories:function(){return{url:a._.urlBuilder("/api/domain/v2/me/libraries",{type:["workspace"],maxCategoryDepth:6}),key:"workspace:folders",normalize:!1}},exchangeWithCategories:function(){return{url:a._.urlBuilder("/api/domain/v2/me/libraries",{type:["exchange"],maxCategoryDepth:5}),key:"exchange:folders",normalize:!1}},addFolder:function(e){var t="/api/domain/v2/collections/".concat(e.collectionId,"/categories");return e.parentCategoryId&&(t=a._.urlBuilder(t,{parentCategoryId:e.parentCategoryId})),{url:t,key:"add:folder",type:r.k.POST,data:{name:e.name},invalidationKeys:["workspace","folder"]}},deleteFolder:function(e){return{url:"{gateway}/v1/objects/".concat(e),key:"delete:folder",type:r.k.DELETE,invalidationKeys:["workspace","folder"]}},moveFolder:function(e){return{url:"/api/domain/v2/objects/move",key:"move:folder",type:r.k.POST,data:{assocType:"has",newCollectionId:e.newFolderId,oldCollectionId:e.oldFolderId,objectIds:[e.moveFolderId]},invalidationKeys:["workspace","folder"]}},updateFolder:function(e,t){return{url:"{gateway}/v1/objects/".concat(e),key:"rename:folder",type:r.k.PUT,data:{name:t},invalidationKeys:["workspace","folder"]}},videoFolders:function(e,t){return{url:"/api/domain/v2/objects/".concat(e,"/categories?query=libraries{id:").concat(t,"}"),key:"video:folders:".concat(e)}},moveVideo:function(e){var t={newCollectionId:e.newFolderId,oldCollectionId:e.oldFolderId,objectIds:e.videoId};return{url:"/api/domain/v3/objects/move",key:"move:folder:".concat(t.objectIds.join(",")),type:r.k.POST,data:t,invalidationKeys:["video"]}},addToExchange:function(e){return{url:"{gateway}/v1/users/me/videos/exchange",key:"add:to:exchange",type:r.k.POST,data:e}}}},54485:(e,t,n)=>{n.d(t,{b:()=>c});var r=n(32735),a=n(23481),o=n(11462),i=a.T.encloseNamespace("myVideos.hooks");function c(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return r.useMemo((function(){return(null==e?void 0:e.length)?{children:e.map((function(e){return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{name:t?i("myVideos"):e.data.name})})})).map(o.d.convertNestedObjectToTree)}:null}),[e])}},81720:(e,t,n)=>{n.r(t),n.d(t,{AddToExchangeView:()=>ie});var r=n(32735),a=n(81886),o=n(23481),i=n(20354),c=n(49985),l=n(65858),s=n(82644),u=n(9111),d=n(1575),m=n(69883),p=n(31908),h=n(14070),v=n(97291),f=n(24965),g=n(12617),y=n(54485),w=n(92802),E=n(5173),b=n(110),C=n(69624),k=n(38365),N=n(13876),x=n(83345),S=n(42648),L=n(55367);const T={selectButton:"HWv2E",suggestionsContainer:"m1Nm0"};var I="myVideos.addToExchange",F=o.T.encloseNamespace(I);function O(e){var t=(0,w.u6)();return r.createElement(k.W,{label:F("category"),name:"category",showRequiredStar:!0},(function(){var n,a,o;return r.createElement("div",{className:"dropdown mb-2"},r.createElement("button",{className:"dropdown-toggle form-control text-start position-relative ".concat(T.selectButton),type:"button",id:"select-folder","data-bs-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},r.createElement("div",{className:"text-truncate"},null!==(a=null===(n=t.values.category)||void 0===n?void 0:n.name)&&void 0!==a?a:r.createElement(x.x,{namespace:I,phrase:"categoryPlaceholder"}))),r.createElement("div",{className:"dropdown-menu w-100","aria-labelledby":"select-folder"},r.createElement(S.$B,{autoHeight:!0,autoHeightMax:300,hideTracksWhenNotNeeded:!0},r.createElement(L.m,{tree:e.categories,onSelect:function(e){return t.setFieldValue("category",e,!0)},selectedIds:(null===(o=t.values.category)||void 0===o?void 0:o.id)?[t.values.category.id]:void 0,selectedLinkClassName:"bg-light fw-semibold",isDropdown:!0}))))}))}var A=n(97395),P=n(2136),R=n(97481),_=n(99742),j=o.T.encloseNamespace("myVideos.addToExchange");function V(){var e=(0,w.u6)();return r.createElement(k.W,{label:j("channel"),name:"channel",id:"channel",showRequiredStar:!0},(function(){var t,n;return r.createElement(r.Fragment,null,r.createElement(P.E,{theme:function(){return{suggestionsContainer:T.suggestionsContainer,suggestionsContainerOpen:"pb-0 pt-1 overflow-hidden bg-white border rounded position-absolute w-100"}},activationLength:2,placeholder:j("channelPlaceholder"),clearQueryOnSelect:!1,searchIconPlacement:!1,debounceTime:300,allowableSuggestionFetchRequestedReasons:["input-changed","input-focused"],getRemoteUrl:function(e){return A._.urlBuilder("/api/domain/v1/search/channel/instant/raw",{q:e})},onSuggestionSelected:function(t){return e.setFieldValue("channel",t,!0)},showClearInputIcon:!0,renderAsForm:!1,onClickClearInput:function(){return e.setFieldValue("channel",null,!0)},initialQuery:null!==(n=null===(t=e.values.channel)||void 0===t?void 0:t.name)&&void 0!==n?n:"",getErrorStateComponent:function(e){return r.createElement(R.d,{imageUrl:_.W.TYPEAHEAD_ERROR,onClickTryAgain:e})},getEmptyStateComponent:function(e){return r.createElement("div",null,j("emptySearch",{query:e}))}}))}))}var B=n(36848),G=n(5438),M=n(54610),U=n(99705),q=n(68626),D=n(12778),Y="myVideos.addToExchange";function W(e){return r.createElement(r.Fragment,null,r.createElement("p",null,r.createElement(x.x,{namespace:Y,phrase:"message",options:{contentGuidelines:D.o.getLiteArticle(U.b.ContentGuidelines)}})),r.createElement("div",{className:"row form-group"},r.createElement("div",{className:"col-5"},r.createElement(G.u,{video:e.video,type:"cosmetic",imageOptions:{size:M.h2.Small},textPosition:q.z.Independent,preload:!0})),r.createElement("div",{className:"col-7"},r.createElement("h2",{className:"h6"},e.video.name),r.createElement(B.F,{appLink:{application:v.O.VIDEOS,action:h.e.Videos.EDIT_VIDEO,args:[e.video.id]},className:"info-link",onClick:e.onClickCancel},r.createElement(x.x,{namespace:Y,phrase:"edit"})))),r.createElement("p",null,r.createElement(x.x,{namespace:Y,phrase:"prompt"})))}var z=o.T.encloseNamespace("myVideos.addToExchange"),Z=128;function H(e){var t,n=(0,w.u6)();return r.createElement(k.W,{as:"select",label:z("rating"),name:"rating",showRequiredStar:!0,value:null===(t=n.values.rating)||void 0===t?void 0:t.id,onChange:function(t){var r=t.target.value;if(r){var a=e.ratings.find((function(e){return e.id.toString()===r.toString()}));n.setFieldValue("rating",a)}else n.setFieldValue("rating",null)}},r.createElement("option",{value:""},z("ratingPlaceholder")),e.ratings.map((function(e,t){return e.value>=Z?r.createElement(r.Fragment,{key:t}):r.createElement("option",{key:t,value:e.id},e.code||e.name)})))}var K=o.T.encloseNamespace("myVideos.addToExchange");function Q(){var e=(0,w.u6)();return r.createElement(k.W,{label:K("series"),name:"series",id:"series"},(function(){var t,n;return r.createElement(r.Fragment,null,r.createElement(P.E,{theme:function(){return{suggestionsContainer:T.suggestionsContainer,suggestionsContainerOpen:"pb-0 pt-1 overflow-hidden bg-white border rounded position-absolute w-100"}},activationLength:2,placeholder:K("seriesPlaceholder"),clearQueryOnSelect:!1,searchIconPlacement:!1,debounceTime:300,allowableSuggestionFetchRequestedReasons:["input-changed","input-focused"],getRemoteUrl:function(e){return A._.urlBuilder("/api/domain/v1/search/series/instant/raw",{q:e,filterEmptySeries:!1})},onSuggestionSelected:function(t){return e.setFieldValue("series",t,!0)},showClearInputIcon:!0,renderAsForm:!1,onClickClearInput:function(){return e.setFieldValue("series",null,!0)},initialQuery:null!==(n=null===(t=e.values.series)||void 0===t?void 0:t.name)&&void 0!==n?n:"",getErrorStateComponent:function(e){return r.createElement(R.d,{imageUrl:_.W.TYPEAHEAD_ERROR,onClickTryAgain:e})},getEmptyStateComponent:function(e){return r.createElement("div",null,K("emptySearch",{query:e}))}}))}))}var X="myVideos.addToExchange",$=o.T.encloseNamespace(X),J=E.Ry().shape({category:E.Ry().required($("categoryRequired")),rating:E.Ry().nullable().required($("ratingRequired")),channel:E.Ry().required($("channelRequired")),dateBroadcast:E.Z_().required($("dateBroadcastRequired")),series:E.Ry(),seasonNumber:E.Rx().integer().min(1,(function(){return $("seasonNumberRange")})).max(3e3,(function(){return $("seasonNumberRange")})),episodeNumber:E.Rx().integer().min(1,(function(){return $("episodeNumberRange")})).max(2147483647,(function(){return $("episodeNumberRange")}))});function ee(e){var t=(0,w.u6)();return r.createElement(w.l0,null,r.createElement(W,{video:e.video,onClickCancel:e.onClickCancel}),r.createElement("div",{className:"container"},r.createElement("div",{className:"row"},r.createElement("div",{className:"col-lg-6 col-12"},r.createElement(O,{categories:e.categories})),r.createElement("div",{className:"col-lg-6 col-12"},r.createElement(H,{ratings:e.ratings}))),r.createElement("div",{className:"row"},r.createElement("div",{className:"col-lg-6 col-12"},r.createElement(V,null)),r.createElement("div",{className:"col-lg-6 col-12"},r.createElement(k.W,{type:"date",name:"dateBroadcast",label:$("dateBroadcast"),value:t.values.dateBroadcast?b.O.format(t.values.dateBroadcast,"YYYY-MM-DD"):"",min:"1927-09-07",max:b.O.format(new Date,"YYYY-MM-DD"),showRequiredStar:!0}))),r.createElement("div",{className:"row"},r.createElement("div",{className:"col-lg-6 col-12"},r.createElement(Q,null)),r.createElement("div",{className:"col-lg-6 col-12"},r.createElement("div",{className:"row"},r.createElement("div",{className:"col-6"},r.createElement(k.W,{label:$("seasonNumber"),type:"number",name:"seasonNumber",id:"seasonNumber",placeholder:$("seasonNumber"),autoFocus:!0,value:t.values.seasonNumber,disabled:!t.values.series})),r.createElement("div",{className:"col-6"},r.createElement(k.W,{label:$("episodeNumber"),type:"number",name:"episodeNumber",id:"episodeNumber",placeholder:$("episodeNumber"),autoFocus:!0,value:t.values.episodeNumber,disabled:!t.values.series})))))),r.createElement("p",null,r.createElement(x.x,{namespace:X,phrase:"disclaimer",options:{termsAndCondiditons:C.F.getTermsAndConditionsLink()}})),r.createElement(N.u,null,r.createElement(N.u.Cancel,{onClick:e.onClickCancel}),r.createElement(N.u.Submit,{variant:"dark",showSpinner:e.showSpinner,text:$("contribute")})))}function te(e){return te="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},te(e)}function ne(){ne=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),c=new F(r||[]);return a(i,"_invoke",{value:S(e,n,c)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var m="suspendedStart",p="suspendedYield",h="executing",v="completed",f={};function g(){}function y(){}function w(){}var E={};s(E,i,(function(){return this}));var b=Object.getPrototypeOf,C=b&&b(b(O([])));C&&C!==n&&r.call(C,i)&&(E=C);var k=w.prototype=g.prototype=Object.create(E);function N(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(a,o,i,c){var l=d(e[a],e,o);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==te(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,i,c)}),(function(e){n("throw",e,i,c)})):t.resolve(u).then((function(e){s.value=e,i(s)}),(function(e){return n("throw",e,i,c)}))}c(l.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function S(t,n,r){var a=m;return function(o,i){if(a===h)throw new Error("Generator is already running");if(a===v){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var c=r.delegate;if(c){var l=L(c,r);if(l){if(l===f)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===m)throw a=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=h;var s=d(t,n,r);if("normal"===s.type){if(a=r.done?v:p,s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(a=v,r.method="throw",r.arg=s.arg)}}}function L(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,L(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=d(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,f;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,f):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function O(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(te(t)+" is not iterable")}return y.prototype=w,a(k,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:y,configurable:!0}),y.displayName=s(w,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,s(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},N(x.prototype),s(x.prototype,c,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new x(u(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},N(k),s(k,l,"Generator"),s(k,i,(function(){return this})),s(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=O,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return c.type="throw",c.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;I(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:O(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),f}},t}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 ae=function(e,t,n,r){return new(n||(n=Promise))((function(a,o){function i(e){try{l(r.next(e))}catch(e){o(e)}}function c(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,c)}l((r=r.apply(e,t||[])).next())}))},oe=o.T.encloseNamespace("myVideos.addToExchange");function ie(e){var t,n,o,w,E,b=(w=r.useState(!1),E=2,function(e){if(Array.isArray(e))return e}(w)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(w,E)||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}}(w,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.")}()),C=b[0],k=b[1],N=i.a.useGetFetchAsync(),x=(0,m.Z)(),S=i.a.useBasicFetch(d.R.video(e.id)),L=i.a.useBasicFetch(g.E.exchangeWithCategories()),T=(0,y.b)(null===(n=null===(t=L.data)||void 0===t?void 0:t[0])||void 0===n?void 0:n.children,!1),I=i.a.useBasicFetch(f.Z.ratings()),F=S.hasCompleted&&L.hasCompleted&&I.hasCompleted;return r.createElement(u.G,{title:oe("title"),closePopup:e.closePopup,showLoadingSpinner:!F,size:"lg"},F&&r.createElement(s.n,{initialValues:{rating:S.data.rating,channel:S.data.channel,dateBroadcast:S.data.dateBroadcast,series:S.data.series,seasonNumber:null===(o=S.data.season)||void 0===o?void 0:o.number,episodeNumber:S.data.episodeNumber},validationSchema:J,onSubmit:function(t){var n;return ae(this,void 0,void 0,ne().mark((function r(){var o;return ne().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return k(!0),o={videoId:S.data.id,categoryId:t.category.id,videoAttribute:{name:S.data.name,description:S.data.description,rating:t.rating.id,dateBroadcast:t.dateBroadcast,productionYear:S.data.productionYear,channel:t.channel.id,series:null===(n=t.series)||void 0===n?void 0:n.id,seasonNumber:t.seasonNumber,episodeNumber:t.episodeNumber}},r.prev=2,r.next=5,N(g.E.addToExchange(o));case 5:c.k.logUserAction({id:S.data.id,name:S.data.name,isBroadcast:p.M.isBroadcast(S.data)},{actionType:l.Vw.Create,entity:l.py.Video,location:l.LZ.Popup,workflowPhase:l.eu.Complete,descriptor:l.ne.AddToExchange}),x.success(oe("success")),a.Q.C$.trigger({application:v.O.MY_VIDEOS,action:h.e.MyVideos.ADD_TO_EXCHANGE_SUCCESS}),r.next=14;break;case 10:r.prev=10,r.t0=r.catch(2),x.error(oe("error")),e.closePopup();case 14:case"end":return r.stop()}}),r,null,[[2,10]])})))},validateOnMount:!0},r.createElement(ee,{categories:T,ratings:I.data,onClickCancel:e.closePopup,showSpinner:C,video:S.data})))}},24965:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(97395),a={ratings:function(e){return{url:"/api/domain/v2/me/ratings",publicUrl:r._.urlBuilder("/api/domain/v2/me/ratings",{countryCode:e}),key:"ratings",formatData:function(e){return e.sort((function(e,t){return e.value-t.value}))}}}}}}]);
1
+ /*! For license information please see 5236-5668fcb6e1-lite.chunk.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[5236],{69624:(e,t,n)=>{n.d(t,{F:()=>c});var r=n(97395),a=n(86664),o=n(93824),i={Marketing:{au:"https://www.clickview.com.au",uk:"https://www.clickview.co.uk",nz:"https://www.clickview.co.nz",us:"https://www.clickvieweducation.com"},Support:{au:"https://www.clickviewsupport.com/hc/en-au",uk:"https://www.clickviewsupport.com/hc/en-au#gb",nz:"https://www.clickviewsupport.com/hc/en-au#nz",us:"https://www.clickviewsupport.com/hc/en-au#us"}},c={getMarketingUrlForGeoLocation:function(e){var t=a.I.getCountryCode(null==e?void 0:e.countryCode);return i.Marketing[t]||i.Marketing.us},getMarketingSalesContactForGeoLocation:function(e){var t=a.I.getCountryCode(null==e?void 0:e.countryCode),n=this.getMarketingUrlForGeoLocation(e);return e&&t===o.C.NZ?n+"/contact-us/":n+"/contact-us/trial/"},getFreeResourcesForGeoLocation:function(e){var t=a.I.getCountryCode(null==e?void 0:e.countryCode);return t===o.C.NZ&&(t=o.C.AU),this.getMarketingUrlForGeoLocation({countryCode:t})+"/free-student-resources//"},getTermsAndConditionsLink:function(){return this.getMarketingUrlForGeoLocation(o.C.US)+"/terms-and-conditions/"},getPrivacyPolicyLink:function(){return this.getMarketingUrlForGeoLocation(o.C.US)+"/privacy-policy/"},getSupportUrlForGeoLocation:function(e){var t=a.I.getCountryCode(null==e?void 0:e.countryCode);return i.Support[t]||i.Support.us},getLoginLink:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.email,n=e.customerId,a={redirectUrl:window.location.pathname+window.location.search};return t&&(a.email=t),n&&(a.customerId=n),r._.urlBuilder("/login",a)}}},97481:(e,t,n)=>{n.d(t,{d:()=>l});var r=n(32735),a=n(11607),o=n(83345);const i={emptyState:"k5mEG"};var c="shared.typeaheadErrorState";function l(e){return r.createElement("div",{className:"d-flex flex-column align-items-center text-center",onClick:function(e){e.stopPropagation()}},r.createElement("img",{alt:"",role:"presentation",src:e.imageUrl,className:"pb-2 ".concat(i.emptyState)}),r.createElement("h2",{className:"h6"},r.createElement(o.x,{namespace:c,phrase:"error"})),r.createElement(a.L,{onClick:function(t){t.stopPropagation(),e.onClickTryAgain()},className:"btn btn-link info-link p-0"},r.createElement(o.x,{namespace:c,phrase:"tryAgain"})))}},99705:(e,t,n)=>{var r,a;n.d(t,{b:()=>a}),function(e){e.AddToPlaylist="115005679748",e.EditSsoAccounts="8202508040345",e.LibraryEditor="360001974533",e.VideoAccess="360000153947",e.AddFromOnline="360011718234",e.UploadToLibraryEditor="360012069334",e.PBTErrorCodes="360012421153",e.ManuelReview="360020004534",e.LibraryReview="360000163788"}(r||(r={})),function(e){e.Integrations="4407268725529",e.Classrooms="4405362551833",e.MakeInteractive="4405370510873",e.EditSsoAccounts="8202605666073",e.UploadToLibraryEditor="10672936659865",e.AddFromLite="10671345281561",e.ManageSsoYearGroups="12522160412313",e.ContentReview="18525199576601",e.ContentPermissions="14692125209497",e.AccessSettings="22110291468057",e.ContentGuidelines="24133696186009",e.FoxtelFaq="24133519542169",e.ViviIntegration="23826297956377",e.AppleTvIntegration="25832373739929"}(a||(a={}))},12617:(e,t,n)=>{n.d(t,{E:()=>s});var r=n(99940),a=n(97395),o=n(62803),i=n(5960),c=n(4594),l=n(78417),s={videos:function(e,t,n){var r=o.v.VIDEO_COLLECTION,s=o.v.CLIP_COLLECTION,u=o.v.INTERACTIVE,d="videos[".concat(r,"]{libraries.typeid:").concat(c.E.WorkspaceCollection,"}"),m="clips[".concat(s,"]{status:").concat(i.X.Published,"}"),p="interactives[".concat(u,"]{status:[").concat(i.X.Published,",").concat(i.X.Draft,"]}"),h=[];(null==n?void 0:n.length)?(n.includes("video")&&h.push(d),n.includes("clip")&&h.push(m),n.includes("interactive")&&h.push(p)):h.push(d,m,p);var v={query:"(".concat(h.join("|"),"){orderbydesc:timestamp}"),permissionFilterOption:l.r.StripMetadata};return t&&(v.cursor=t),{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),v),key:"my:videos:".concat(e,":").concat(t).concat(n?":".concat(Array.isArray(n)?n.join(":"):n):"")}},workspaceWithCategories:function(){return{url:a._.urlBuilder("/api/domain/v2/me/libraries",{type:["workspace"],maxCategoryDepth:6}),key:"workspace:folders",normalize:!1}},exchangeWithCategories:function(){return{url:a._.urlBuilder("/api/domain/v2/me/libraries",{type:["exchange"],maxCategoryDepth:5}),key:"exchange:folders",normalize:!1}},addFolder:function(e){var t="/api/domain/v2/collections/".concat(e.collectionId,"/categories");return e.parentCategoryId&&(t=a._.urlBuilder(t,{parentCategoryId:e.parentCategoryId})),{url:t,key:"add:folder",type:r.k.POST,data:{name:e.name},invalidationKeys:["workspace","folder"]}},deleteFolder:function(e){return{url:"{gateway}/v1/objects/".concat(e),key:"delete:folder",type:r.k.DELETE,invalidationKeys:["workspace","folder"]}},moveFolder:function(e){return{url:"/api/domain/v2/objects/move",key:"move:folder",type:r.k.POST,data:{assocType:"has",newCollectionId:e.newFolderId,oldCollectionId:e.oldFolderId,objectIds:[e.moveFolderId]},invalidationKeys:["workspace","folder"]}},updateFolder:function(e,t){return{url:"{gateway}/v1/objects/".concat(e),key:"rename:folder",type:r.k.PUT,data:{name:t},invalidationKeys:["workspace","folder"]}},videoFolders:function(e,t){return{url:"/api/domain/v2/objects/".concat(e,"/categories?query=libraries{id:").concat(t,"}"),key:"video:folders:".concat(e)}},moveVideo:function(e){var t={newCollectionId:e.newFolderId,oldCollectionId:e.oldFolderId,objectIds:e.videoId};return{url:"/api/domain/v3/objects/move",key:"move:folder:".concat(t.objectIds.join(",")),type:r.k.POST,data:t,invalidationKeys:["video"]}},addToExchange:function(e){return{url:"{gateway}/v1/users/me/videos/exchange",key:"add:to:exchange",type:r.k.POST,data:e}}}},54485:(e,t,n)=>{n.d(t,{b:()=>c});var r=n(32735),a=n(23481),o=n(11462),i=a.T.encloseNamespace("myVideos.hooks");function c(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return r.useMemo((function(){return(null==e?void 0:e.length)?{children:e.map((function(e){return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{name:t?i("myVideos"):e.data.name})})})).map(o.d.convertNestedObjectToTree)}:null}),[e])}},81720:(e,t,n)=>{n.r(t),n.d(t,{AddToExchangeView:()=>ie});var r=n(32735),a=n(81886),o=n(23481),i=n(20354),c=n(49985),l=n(65858),s=n(82644),u=n(9111),d=n(1575),m=n(69883),p=n(31908),h=n(14070),v=n(97291),f=n(24965),g=n(12617),y=n(54485),w=n(92802),E=n(5173),b=n(110),C=n(69624),k=n(38365),N=n(13876),x=n(83345),S=n(42648),L=n(55367);const T={selectButton:"HWv2E",suggestionsContainer:"m1Nm0"};var I="myVideos.addToExchange",F=o.T.encloseNamespace(I);function O(e){var t=(0,w.u6)();return r.createElement(k.W,{label:F("category"),name:"category",showRequiredStar:!0},(function(){var n,a,o;return r.createElement("div",{className:"dropdown mb-2"},r.createElement("button",{className:"dropdown-toggle form-control text-start position-relative ".concat(T.selectButton),type:"button",id:"select-folder","data-bs-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},r.createElement("div",{className:"text-truncate"},null!==(a=null===(n=t.values.category)||void 0===n?void 0:n.name)&&void 0!==a?a:r.createElement(x.x,{namespace:I,phrase:"categoryPlaceholder"}))),r.createElement("div",{className:"dropdown-menu w-100","aria-labelledby":"select-folder"},r.createElement(S.$B,{autoHeight:!0,autoHeightMax:300,hideTracksWhenNotNeeded:!0},r.createElement(L.m,{tree:e.categories,onSelect:function(e){return t.setFieldValue("category",e,!0)},selectedIds:(null===(o=t.values.category)||void 0===o?void 0:o.id)?[t.values.category.id]:void 0,selectedLinkClassName:"bg-light fw-semibold",isDropdown:!0}))))}))}var A=n(97395),P=n(2136),R=n(97481),_=n(99742),j=o.T.encloseNamespace("myVideos.addToExchange");function V(){var e=(0,w.u6)();return r.createElement(k.W,{label:j("channel"),name:"channel",id:"channel",showRequiredStar:!0},(function(){var t,n;return r.createElement(r.Fragment,null,r.createElement(P.E,{theme:function(){return{suggestionsContainer:T.suggestionsContainer,suggestionsContainerOpen:"pb-0 pt-1 overflow-hidden bg-white border rounded position-absolute w-100"}},activationLength:2,placeholder:j("channelPlaceholder"),clearQueryOnSelect:!1,searchIconPlacement:!1,debounceTime:300,allowableSuggestionFetchRequestedReasons:["input-changed","input-focused"],getRemoteUrl:function(e){return A._.urlBuilder("/api/domain/v1/search/channel/instant/raw",{q:e})},onSuggestionSelected:function(t){return e.setFieldValue("channel",t,!0)},showClearInputIcon:!0,renderAsForm:!1,onClickClearInput:function(){return e.setFieldValue("channel",null,!0)},initialQuery:null!==(n=null===(t=e.values.channel)||void 0===t?void 0:t.name)&&void 0!==n?n:"",getErrorStateComponent:function(e){return r.createElement(R.d,{imageUrl:_.W.TYPEAHEAD_ERROR,onClickTryAgain:e})},getEmptyStateComponent:function(e){return r.createElement("div",null,j("emptySearch",{query:e}))}}))}))}var B=n(36848),G=n(5438),M=n(54610),U=n(99705),q=n(68626),D=n(12778),Y="myVideos.addToExchange";function W(e){return r.createElement(r.Fragment,null,r.createElement("p",null,r.createElement(x.x,{namespace:Y,phrase:"message",options:{contentGuidelines:D.o.getLiteArticle(U.b.ContentGuidelines)}})),r.createElement("div",{className:"row form-group"},r.createElement("div",{className:"col-5"},r.createElement(G.u,{video:e.video,type:"cosmetic",imageOptions:{size:M.h2.Small},textPosition:q.z.Independent,preload:!0})),r.createElement("div",{className:"col-7"},r.createElement("h2",{className:"h6"},e.video.name),r.createElement(B.F,{appLink:{application:v.O.VIDEOS,action:h.e.Videos.EDIT_VIDEO,args:[e.video.id]},className:"info-link",onClick:e.onClickCancel},r.createElement(x.x,{namespace:Y,phrase:"edit"})))),r.createElement("p",null,r.createElement(x.x,{namespace:Y,phrase:"prompt"})))}var z=o.T.encloseNamespace("myVideos.addToExchange"),Z=128;function H(e){var t,n=(0,w.u6)();return r.createElement(k.W,{as:"select",label:z("rating"),name:"rating",showRequiredStar:!0,value:null===(t=n.values.rating)||void 0===t?void 0:t.id,onChange:function(t){var r=t.target.value;if(r){var a=e.ratings.find((function(e){return e.id.toString()===r.toString()}));n.setFieldValue("rating",a)}else n.setFieldValue("rating",null)}},r.createElement("option",{value:""},z("ratingPlaceholder")),e.ratings.map((function(e,t){return e.value>=Z?r.createElement(r.Fragment,{key:t}):r.createElement("option",{key:t,value:e.id},e.code||e.name)})))}var K=o.T.encloseNamespace("myVideos.addToExchange");function Q(){var e=(0,w.u6)();return r.createElement(k.W,{label:K("series"),name:"series",id:"series"},(function(){var t,n;return r.createElement(r.Fragment,null,r.createElement(P.E,{theme:function(){return{suggestionsContainer:T.suggestionsContainer,suggestionsContainerOpen:"pb-0 pt-1 overflow-hidden bg-white border rounded position-absolute w-100"}},activationLength:2,placeholder:K("seriesPlaceholder"),clearQueryOnSelect:!1,searchIconPlacement:!1,debounceTime:300,allowableSuggestionFetchRequestedReasons:["input-changed","input-focused"],getRemoteUrl:function(e){return A._.urlBuilder("/api/domain/v1/search/series/instant/raw",{q:e,filterEmptySeries:!1})},onSuggestionSelected:function(t){return e.setFieldValue("series",t,!0)},showClearInputIcon:!0,renderAsForm:!1,onClickClearInput:function(){return e.setFieldValue("series",null,!0)},initialQuery:null!==(n=null===(t=e.values.series)||void 0===t?void 0:t.name)&&void 0!==n?n:"",getErrorStateComponent:function(e){return r.createElement(R.d,{imageUrl:_.W.TYPEAHEAD_ERROR,onClickTryAgain:e})},getEmptyStateComponent:function(e){return r.createElement("div",null,K("emptySearch",{query:e}))}}))}))}var X="myVideos.addToExchange",$=o.T.encloseNamespace(X),J=E.Ry().shape({category:E.Ry().required($("categoryRequired")),rating:E.Ry().nullable().required($("ratingRequired")),channel:E.Ry().required($("channelRequired")),dateBroadcast:E.Z_().required($("dateBroadcastRequired")),series:E.Ry(),seasonNumber:E.Rx().integer().min(1,(function(){return $("seasonNumberRange")})).max(3e3,(function(){return $("seasonNumberRange")})),episodeNumber:E.Rx().integer().min(1,(function(){return $("episodeNumberRange")})).max(2147483647,(function(){return $("episodeNumberRange")}))});function ee(e){var t=(0,w.u6)();return r.createElement(w.l0,null,r.createElement(W,{video:e.video,onClickCancel:e.onClickCancel}),r.createElement("div",{className:"container"},r.createElement("div",{className:"row"},r.createElement("div",{className:"col-lg-6 col-12"},r.createElement(O,{categories:e.categories})),r.createElement("div",{className:"col-lg-6 col-12"},r.createElement(H,{ratings:e.ratings}))),r.createElement("div",{className:"row"},r.createElement("div",{className:"col-lg-6 col-12"},r.createElement(V,null)),r.createElement("div",{className:"col-lg-6 col-12"},r.createElement(k.W,{type:"date",name:"dateBroadcast",label:$("dateBroadcast"),value:t.values.dateBroadcast?b.O.format(t.values.dateBroadcast,"YYYY-MM-DD"):"",min:"1927-09-07",max:b.O.format(new Date,"YYYY-MM-DD"),showRequiredStar:!0}))),r.createElement("div",{className:"row"},r.createElement("div",{className:"col-lg-6 col-12"},r.createElement(Q,null)),r.createElement("div",{className:"col-lg-6 col-12"},r.createElement("div",{className:"row"},r.createElement("div",{className:"col-6"},r.createElement(k.W,{label:$("seasonNumber"),type:"number",name:"seasonNumber",id:"seasonNumber",placeholder:$("seasonNumber"),autoFocus:!0,value:t.values.seasonNumber,disabled:!t.values.series})),r.createElement("div",{className:"col-6"},r.createElement(k.W,{label:$("episodeNumber"),type:"number",name:"episodeNumber",id:"episodeNumber",placeholder:$("episodeNumber"),autoFocus:!0,value:t.values.episodeNumber,disabled:!t.values.series})))))),r.createElement("p",null,r.createElement(x.x,{namespace:X,phrase:"disclaimer",options:{termsAndCondiditons:C.F.getTermsAndConditionsLink()}})),r.createElement(N.u,null,r.createElement(N.u.Cancel,{onClick:e.onClickCancel}),r.createElement(N.u.Submit,{variant:"dark",showSpinner:e.showSpinner,text:$("contribute")})))}function te(e){return te="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},te(e)}function ne(){ne=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),c=new F(r||[]);return a(i,"_invoke",{value:S(e,n,c)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var m="suspendedStart",p="suspendedYield",h="executing",v="completed",f={};function g(){}function y(){}function w(){}var E={};s(E,i,(function(){return this}));var b=Object.getPrototypeOf,C=b&&b(b(O([])));C&&C!==n&&r.call(C,i)&&(E=C);var k=w.prototype=g.prototype=Object.create(E);function N(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(a,o,i,c){var l=d(e[a],e,o);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==te(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,i,c)}),(function(e){n("throw",e,i,c)})):t.resolve(u).then((function(e){s.value=e,i(s)}),(function(e){return n("throw",e,i,c)}))}c(l.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function S(t,n,r){var a=m;return function(o,i){if(a===h)throw Error("Generator is already running");if(a===v){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var c=r.delegate;if(c){var l=L(c,r);if(l){if(l===f)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===m)throw a=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=h;var s=d(t,n,r);if("normal"===s.type){if(a=r.done?v:p,s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(a=v,r.method="throw",r.arg=s.arg)}}}function L(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,L(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=d(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,f;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,f):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function O(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(te(t)+" is not iterable")}return y.prototype=w,a(k,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:y,configurable:!0}),y.displayName=s(w,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,s(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},N(x.prototype),s(x.prototype,c,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new x(u(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},N(k),s(k,l,"Generator"),s(k,i,(function(){return this})),s(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=O,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return c.type="throw",c.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;I(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:O(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),f}},t}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 ae=function(e,t,n,r){return new(n||(n=Promise))((function(a,o){function i(e){try{l(r.next(e))}catch(e){o(e)}}function c(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,c)}l((r=r.apply(e,t||[])).next())}))},oe=o.T.encloseNamespace("myVideos.addToExchange");function ie(e){var t,n,o,w,E,b=(w=r.useState(!1),E=2,function(e){if(Array.isArray(e))return e}(w)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(w,E)||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}}(w,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.")}()),C=b[0],k=b[1],N=i.a.useGetFetchAsync(),x=(0,m.Z)(),S=i.a.useBasicFetch(d.R.video(e.id)),L=i.a.useBasicFetch(g.E.exchangeWithCategories()),T=(0,y.b)(null===(n=null===(t=L.data)||void 0===t?void 0:t[0])||void 0===n?void 0:n.children,!1),I=i.a.useBasicFetch(f.Z.ratings()),F=S.hasCompleted&&L.hasCompleted&&I.hasCompleted;return r.createElement(u.G,{title:oe("title"),closePopup:e.closePopup,showLoadingSpinner:!F,size:"lg"},F&&r.createElement(s.n,{initialValues:{rating:S.data.rating,channel:S.data.channel,dateBroadcast:S.data.dateBroadcast,series:S.data.series,seasonNumber:null===(o=S.data.season)||void 0===o?void 0:o.number,episodeNumber:S.data.episodeNumber},validationSchema:J,onSubmit:function(t){var n;return ae(this,void 0,void 0,ne().mark((function r(){var o;return ne().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return k(!0),o={videoId:S.data.id,categoryId:t.category.id,videoAttribute:{name:S.data.name,description:S.data.description,rating:t.rating.id,dateBroadcast:t.dateBroadcast,productionYear:S.data.productionYear,channel:t.channel.id,series:null===(n=t.series)||void 0===n?void 0:n.id,seasonNumber:t.seasonNumber,episodeNumber:t.episodeNumber}},r.prev=2,r.next=5,N(g.E.addToExchange(o));case 5:c.k.logUserAction({id:S.data.id,name:S.data.name,isBroadcast:p.M.isBroadcast(S.data)},{actionType:l.Vw.Create,entity:l.py.Video,location:l.LZ.Popup,workflowPhase:l.eu.Complete,descriptor:l.ne.AddToExchange}),x.success(oe("success")),a.Q.C$.trigger({application:v.O.MY_VIDEOS,action:h.e.MyVideos.ADD_TO_EXCHANGE_SUCCESS}),r.next=14;break;case 10:r.prev=10,r.t0=r.catch(2),x.error(oe("error")),e.closePopup();case 14:case"end":return r.stop()}}),r,null,[[2,10]])})))},validateOnMount:!0},r.createElement(ee,{categories:T,ratings:I.data,onClickCancel:e.closePopup,showSpinner:C,video:S.data})))}},24965:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(97395),a={ratings:function(e){return{url:"/api/domain/v2/me/ratings",publicUrl:r._.urlBuilder("/api/domain/v2/me/ratings",{countryCode:e}),key:"ratings",formatData:function(e){return e.sort((function(e,t){return e.value-t.value}))}}}}}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 5268-5d30359c44-lite.chunk.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[5268],{12617:(e,t,r)=>{r.d(t,{E:()=>u});var n=r(99940),o=r(97395),a=r(62803),i=r(5960),c=r(4594),l=r(78417),u={videos:function(e,t,r){var n=a.v.VIDEO_COLLECTION,u=a.v.CLIP_COLLECTION,s=a.v.INTERACTIVE,d="videos[".concat(n,"]{libraries.typeid:").concat(c.E.WorkspaceCollection,"}"),f="clips[".concat(u,"]{status:").concat(i.X.Published,"}"),h="interactives[".concat(s,"]{status:[").concat(i.X.Published,",").concat(i.X.Draft,"]}"),p=[];(null==r?void 0:r.length)?(r.includes("video")&&p.push(d),r.includes("clip")&&p.push(f),r.includes("interactive")&&p.push(h)):p.push(d,f,h);var y={query:"(".concat(p.join("|"),"){orderbydesc:timestamp}"),permissionFilterOption:l.r.StripMetadata};return t&&(y.cursor=t),{url:o._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),y),key:"my:videos:".concat(e,":").concat(t).concat(r?":".concat(Array.isArray(r)?r.join(":"):r):"")}},workspaceWithCategories:function(){return{url:o._.urlBuilder("/api/domain/v2/me/libraries",{type:["workspace"],maxCategoryDepth:6}),key:"workspace:folders",normalize:!1}},exchangeWithCategories:function(){return{url:o._.urlBuilder("/api/domain/v2/me/libraries",{type:["exchange"],maxCategoryDepth:5}),key:"exchange:folders",normalize:!1}},addFolder:function(e){var t="/api/domain/v2/collections/".concat(e.collectionId,"/categories");return e.parentCategoryId&&(t=o._.urlBuilder(t,{parentCategoryId:e.parentCategoryId})),{url:t,key:"add:folder",type:n.k.POST,data:{name:e.name},invalidationKeys:["workspace","folder"]}},deleteFolder:function(e){return{url:"{gateway}/v1/objects/".concat(e),key:"delete:folder",type:n.k.DELETE,invalidationKeys:["workspace","folder"]}},moveFolder:function(e){return{url:"/api/domain/v2/objects/move",key:"move:folder",type:n.k.POST,data:{assocType:"has",newCollectionId:e.newFolderId,oldCollectionId:e.oldFolderId,objectIds:[e.moveFolderId]},invalidationKeys:["workspace","folder"]}},updateFolder:function(e,t){return{url:"{gateway}/v1/objects/".concat(e),key:"rename:folder",type:n.k.PUT,data:{name:t},invalidationKeys:["workspace","folder"]}},videoFolders:function(e,t){return{url:"/api/domain/v2/objects/".concat(e,"/categories?query=libraries{id:").concat(t,"}"),key:"video:folders:".concat(e)}},moveVideo:function(e){var t={newCollectionId:e.newFolderId,oldCollectionId:e.oldFolderId,objectIds:e.videoId};return{url:"/api/domain/v3/objects/move",key:"move:folder:".concat(t.objectIds.join(",")),type:n.k.POST,data:t,invalidationKeys:["video"]}},addToExchange:function(e){return{url:"{gateway}/v1/users/me/videos/exchange",key:"add:to:exchange",type:n.k.POST,data:e}}}},54485:(e,t,r)=>{r.d(t,{b:()=>c});var n=r(32735),o=r(23481),a=r(11462),i=o.T.encloseNamespace("myVideos.hooks");function c(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return n.useMemo((function(){return(null==e?void 0:e.length)?{children:e.map((function(e){return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{name:t?i("myVideos"):e.data.name})})})).map(a.d.convertNestedObjectToTree)}:null}),[e])}},82540:(e,t,r)=>{r.r(t),r.d(t,{AddFolderView:()=>T});var n=r(32735),o=r(81886),a=r(23481),i=r(20354),c=r(49985),l=r(65858),u=r(82644),s=r(9111),d=r(31949),f=r(69883),h=r(11462),p=r(14070),y=r(97291),v=r(12617),m=r(54485),g=r(42648),w=r(92802),b=r(5173),E=r(38365),k=r(13876),x=r(55367),L=a.T.encloseNamespace("myVideos.addFolder"),O=b.Ry().shape({name:b.Z_().required((function(){return L("nameRequired")})).max(255,(function(){return L("maxNameLength")})),folder:b.Ry().required()});function C(e){var t=(0,w.u6)();return n.createElement(w.l0,null,n.createElement(E.W,{label:L("name"),type:"text",name:"name",id:"name",placeholder:L("placeholder"),autoFocus:!0,value:t.values.name,required:!0}),n.createElement(E.W,{label:L("parentFolder"),name:"folder"},(function(){var r;return n.createElement(g.$B,{autoHeight:!0,autoHeightMax:300,className:"border rounded-3"},n.createElement(x.m,{tree:e.folders,onSelect:function(e){return t.setFieldValue("folder",e)},selectedIds:(null===(r=t.values.folder)||void 0===r?void 0:r.id)?[t.values.folder.id]:void 0,selectedLinkClassName:"bg-light",openDepth:1,maxDisplayDepth:6}))})),n.createElement(k.u,null,n.createElement(k.u.Cancel,{onClick:e.onClickCancel}),n.createElement(k.u.Submit,{variant:"dark",showSpinner:e.showSpinner})))}function I(e){return I="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},I(e)}function j(){j=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var a=t&&t.prototype instanceof m?t:m,i=Object.create(a.prototype),c=new T(n||[]);return o(i,"_invoke",{value:C(e,r,c)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var f="suspendedStart",h="suspendedYield",p="executing",y="completed",v={};function m(){}function g(){}function w(){}var b={};u(b,i,(function(){return this}));var E=Object.getPrototypeOf,k=E&&E(E(P([])));k&&k!==r&&n.call(k,i)&&(b=k);var x=w.prototype=m.prototype=Object.create(b);function L(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,a,i,c){var l=d(e[o],e,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==I(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,i,c)}),(function(e){r("throw",e,i,c)})):t.resolve(s).then((function(e){u.value=e,i(u)}),(function(e){return r("throw",e,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return a=a?a.then(o,o):o()}})}function C(t,r,n){var o=f;return function(a,i){if(o===p)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:e,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=F(c,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var u=d(t,r,n);if("normal"===u.type){if(o=n.done?y:h,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=y,n.method="throw",n.arg=u.arg)}}}function F(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,F(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var a=d(o,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,v;var i=a.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function P(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(I(t)+" is not iterable")}return g.prototype=w,o(x,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:g,configurable:!0}),g.displayName=u(w,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,u(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},L(O.prototype),u(O.prototype,c,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new O(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=P,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(_),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var S=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(e){a(e)}}function c(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,c)}l((n=n.apply(e,t||[])).next())}))},_=a.T.encloseNamespace("myVideos.addFolder");function T(e){var t,r,a=(t=n.useState(!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,r)||function(e,t){if(e){if("string"==typeof e)return F(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?F(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),g=a[0],w=a[1],b=i.a.useGetFetchAsync(),E=(0,f.Z)(),k=i.a.useBasicFetch(d.N.workspace()),x=i.a.useBasicFetch(v.E.workspaceWithCategories()),L=(0,m.b)(x.data),I=n.useMemo((function(){return h.d.find(L,e.parentFolderId)}),[L,e.parentFolderId]);n.useEffect((function(){x.data&&h.d.findDepth(x.data,e.parentFolderId)===h.q&&o.Q.C$.trigger({application:y.O.MY_VIDEOS,action:p.e.MyVideos.MAX_FOLDER_DEPTH,args:[h.q]})}),[x.hasCompleted]);var T=k.hasCompleted&&x.hasCompleted;return n.createElement(s.G,{title:_("title"),closePopup:e.closePopup,showLoadingSpinner:!T},T&&n.createElement(u.n,{initialValues:{name:"",folder:I},validationSchema:O,onSubmit:function(t){return S(this,void 0,void 0,j().mark((function r(){var n;return j().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return w(!0),r.prev=1,r.next=4,b(v.E.addFolder({collectionId:k.data.id,name:t.name,parentCategoryId:t.folder.id===k.data.id?void 0:t.folder.id}));case 4:n=r.sent,E.success(_("success")),e.closePopup(),c.k.logUserAction({id:n.id,name:n.name},{entity:l.py.Folder,actionType:l.Vw.Create,workflowPhase:l.eu.Complete,location:l.LZ.Popup}),r.next=14;break;case 10:r.prev=10,r.t0=r.catch(1),E.error(_("error")),e.closePopup();case 14:case"end":return r.stop()}}),r,null,[[1,10]])})))},validateOnMount:!0},n.createElement(C,{onClickCancel:e.closePopup,folders:L,showSpinner:g})))}}}]);