@clickview/lite 0.9.0-rc.0 → 0.9.0-rc.2

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 (154) hide show
  1. package/dist/bundles.json +1 -1
  2. package/dist/languages/en.json +1 -1
  3. package/dist/scripts/1909-808298ba95-lite.chunk.js +1 -0
  4. package/dist/scripts/{2097-7d91dbb439-lite.chunk.js → 2097-ab12e37af6-lite.chunk.js} +1 -1
  5. package/dist/scripts/{2246-9fe3e35baf-lite.chunk.js → 2246-7bfedee8a2-lite.chunk.js} +1 -1
  6. package/dist/scripts/{2711-890c8441d8-lite.chunk.js → 2711-e34c972bce-lite.chunk.js} +1 -1
  7. package/dist/scripts/{2916-7b227642e7-lite.chunk.js → 2916-157df7290e-lite.chunk.js} +1 -1
  8. package/dist/scripts/3285-1085cdaf22-lite.chunk.js +1 -0
  9. package/dist/scripts/436-445683fe32-lite.chunk.js +1 -0
  10. package/dist/scripts/{5875-253e8bfbf6-lite.chunk.js → 5875-fdcfea6b4c-lite.chunk.js} +1 -1
  11. package/dist/scripts/6507-384869dddd-lite.chunk.js +1 -0
  12. package/dist/scripts/{6736-680c4983ce-lite.chunk.js → 6736-5855562482-lite.chunk.js} +1 -1
  13. package/dist/scripts/7318-93615377c9-lite.chunk.js +1 -1
  14. package/dist/scripts/7888-dae11d0922-lite.chunk.js +1 -0
  15. package/dist/scripts/{7989-f8eb970189-lite.chunk.js → 7989-798c963d0b-lite.chunk.js} +1 -1
  16. package/dist/scripts/{8323-97cea6d041-lite.chunk.js → 8323-25d493a8c9-lite.chunk.js} +1 -1
  17. package/dist/scripts/{8414-7b21f0a268-lite.chunk.js → 8414-b68b779c30-lite.chunk.js} +1 -1
  18. package/dist/scripts/{8416-a0dbfbd9ae-lite.chunk.js → 8416-ecd0a751cc-lite.chunk.js} +1 -1
  19. package/dist/scripts/{8584-3866a6bdfc-lite.chunk.js → 8584-37e60ced16-lite.chunk.js} +1 -1
  20. package/dist/scripts/{8835-c93443f103-lite.chunk.js → 8835-83f3954627-lite.chunk.js} +1 -1
  21. package/dist/scripts/{9478-f10e302097-lite.chunk.js → 9478-51c101dd1d-lite.chunk.js} +2 -2
  22. package/dist/scripts/bundle-32e595daa1.min.js +2 -0
  23. package/package.json +61 -61
  24. package/dist/scripts/1825-8fa01a9450-lite.chunk.js +0 -1
  25. package/dist/scripts/3285-0442bb2ff8-lite.chunk.js +0 -1
  26. package/dist/scripts/436-1caeffa9f2-lite.chunk.js +0 -1
  27. package/dist/scripts/6507-694878006e-lite.chunk.js +0 -1
  28. package/dist/scripts/7888-80700f5c16-lite.chunk.js +0 -1
  29. package/dist/scripts/bundle-e0e3e6ab0b.min.js +0 -2
  30. /package/dist/scripts/{1235-e70d1cf41f-lite.chunk.js → 1235-ce0ba0711b-lite.chunk.js} +0 -0
  31. /package/dist/scripts/{1291-8af83594f6-lite.chunk.js → 1291-7e3d2729d6-lite.chunk.js} +0 -0
  32. /package/dist/scripts/{1592-af09aed653-lite.chunk.js → 1592-9e50840fc1-lite.chunk.js} +0 -0
  33. /package/dist/scripts/{160-47fad098f0-lite.chunk.js → 160-bdc2881779-lite.chunk.js} +0 -0
  34. /package/dist/scripts/{1659-79a7711609-lite.chunk.js → 1659-2b38013d21-lite.chunk.js} +0 -0
  35. /package/dist/scripts/{1725-78805eb867-lite.chunk.js → 1725-da38b13789-lite.chunk.js} +0 -0
  36. /package/dist/scripts/{1891-e2da22971c-lite.chunk.js → 1891-6919f567b9-lite.chunk.js} +0 -0
  37. /package/dist/scripts/{1924-27d1ec21c4-lite.chunk.js → 1924-8e5c3ccd51-lite.chunk.js} +0 -0
  38. /package/dist/scripts/{2097-7d91dbb439-lite.chunk.js.LICENSE.txt → 2097-ab12e37af6-lite.chunk.js.LICENSE.txt} +0 -0
  39. /package/dist/scripts/{2101-1323a71da7-lite.chunk.js → 2101-985748867b-lite.chunk.js} +0 -0
  40. /package/dist/scripts/{2190-106e778e6c-lite.chunk.js → 2190-4325168222-lite.chunk.js} +0 -0
  41. /package/dist/scripts/{2215-8986c5f732-lite.chunk.js → 2215-3eb9e98cd6-lite.chunk.js} +0 -0
  42. /package/dist/scripts/{2229-39b2ac2435-lite.chunk.js → 2229-0837db7387-lite.chunk.js} +0 -0
  43. /package/dist/scripts/{227-fcd0c53e87-lite.chunk.js → 227-21cf440e54-lite.chunk.js} +0 -0
  44. /package/dist/scripts/{2279-ae9bdc5e0d-lite.chunk.js → 2279-5b4789131e-lite.chunk.js} +0 -0
  45. /package/dist/scripts/{2541-29f1f7a48d-lite.chunk.js → 2541-82ecac5ee1-lite.chunk.js} +0 -0
  46. /package/dist/scripts/{2560-a08235ef71-lite.chunk.js → 2560-9739d6d42a-lite.chunk.js} +0 -0
  47. /package/dist/scripts/{2562-e5418aaeda-lite.chunk.js → 2562-05b6553962-lite.chunk.js} +0 -0
  48. /package/dist/scripts/{2633-1bf584474e-lite.chunk.js → 2633-9bee9a1de2-lite.chunk.js} +0 -0
  49. /package/dist/scripts/{2644-6797095857-lite.chunk.js → 2644-719db73cd4-lite.chunk.js} +0 -0
  50. /package/dist/scripts/{27-f8fab9518c-lite.chunk.js → 27-b2068d0c04-lite.chunk.js} +0 -0
  51. /package/dist/scripts/{291-7b44b68d9f-lite.chunk.js → 291-96e7e40842-lite.chunk.js} +0 -0
  52. /package/dist/scripts/{2935-bfc8cfa6be-lite.chunk.js → 2935-269109ddf0-lite.chunk.js} +0 -0
  53. /package/dist/scripts/{2966-367263220d-lite.chunk.js → 2966-079ef2cc9b-lite.chunk.js} +0 -0
  54. /package/dist/scripts/{3007-f108976432-lite.chunk.js → 3007-694f8e09ea-lite.chunk.js} +0 -0
  55. /package/dist/scripts/{3012-6642441b51-lite.chunk.js → 3012-e47192a666-lite.chunk.js} +0 -0
  56. /package/dist/scripts/{3020-9e5d6bf4ed-lite.chunk.js → 3020-9d11023826-lite.chunk.js} +0 -0
  57. /package/dist/scripts/{3044-3c96c7eb90-lite.chunk.js → 3044-90942867be-lite.chunk.js} +0 -0
  58. /package/dist/scripts/{3071-74d75c7fcc-lite.chunk.js → 3071-152b544817-lite.chunk.js} +0 -0
  59. /package/dist/scripts/{3108-478d735539-lite.chunk.js → 3108-6e145902ee-lite.chunk.js} +0 -0
  60. /package/dist/scripts/{3174-610aeca60a-lite.chunk.js → 3174-5a144ebd25-lite.chunk.js} +0 -0
  61. /package/dist/scripts/{3216-e314d72aa1-lite.chunk.js → 3216-6e41f9f43c-lite.chunk.js} +0 -0
  62. /package/dist/scripts/{3237-59057eb676-lite.chunk.js → 3237-9ff8041c98-lite.chunk.js} +0 -0
  63. /package/dist/scripts/{3269-0121173433-lite.chunk.js → 3269-6bf697437e-lite.chunk.js} +0 -0
  64. /package/dist/scripts/{3468-f379706a54-lite.chunk.js → 3468-4a67d91fcb-lite.chunk.js} +0 -0
  65. /package/dist/scripts/{3509-9c85ec1948-lite.chunk.js → 3509-8c301bb656-lite.chunk.js} +0 -0
  66. /package/dist/scripts/{3601-52402d8f9f-lite.chunk.js → 3601-dc9133d49d-lite.chunk.js} +0 -0
  67. /package/dist/scripts/{3656-7fd2de0443-lite.chunk.js → 3656-da4e38169a-lite.chunk.js} +0 -0
  68. /package/dist/scripts/{3732-a468352144-lite.chunk.js → 3732-36ffcb2e9f-lite.chunk.js} +0 -0
  69. /package/dist/scripts/{3754-607c2a1e9d-lite.chunk.js → 3754-6509362625-lite.chunk.js} +0 -0
  70. /package/dist/scripts/{4182-5380e7ca8c-lite.chunk.js → 4182-213ea70078-lite.chunk.js} +0 -0
  71. /package/dist/scripts/{4423-92fa30f013-lite.chunk.js → 4423-45a63318e1-lite.chunk.js} +0 -0
  72. /package/dist/scripts/{4512-68b0c246e6-lite.chunk.js → 4512-0e68ad5d0a-lite.chunk.js} +0 -0
  73. /package/dist/scripts/{4541-84ad419e15-lite.chunk.js → 4541-161ebedd4f-lite.chunk.js} +0 -0
  74. /package/dist/scripts/{4632-03003c6c3f-lite.chunk.js → 4632-1dea02005f-lite.chunk.js} +0 -0
  75. /package/dist/scripts/{4767-f0485f9900-lite.chunk.js → 4767-b8f4fb16fb-lite.chunk.js} +0 -0
  76. /package/dist/scripts/{4893-e6c79c1b3a-lite.chunk.js → 4893-16edbdc630-lite.chunk.js} +0 -0
  77. /package/dist/scripts/{5189-6fe5a045ed-lite.chunk.js → 5189-a4d941538e-lite.chunk.js} +0 -0
  78. /package/dist/scripts/{5266-068479f577-lite.chunk.js → 5266-e803b1fc58-lite.chunk.js} +0 -0
  79. /package/dist/scripts/{5454-fc5445beaf-lite.chunk.js → 5454-aff24d414d-lite.chunk.js} +0 -0
  80. /package/dist/scripts/{5466-a0d920e856-lite.chunk.js → 5466-73d34617c8-lite.chunk.js} +0 -0
  81. /package/dist/scripts/{5585-58759a7b8e-lite.chunk.js → 5585-acd46f4a4f-lite.chunk.js} +0 -0
  82. /package/dist/scripts/{5606-58416105d6-lite.chunk.js → 5606-957b3de1c6-lite.chunk.js} +0 -0
  83. /package/dist/scripts/{5680-9cd73297e0-lite.chunk.js → 5680-46851a67d0-lite.chunk.js} +0 -0
  84. /package/dist/scripts/{5856-b045536b4e-lite.chunk.js → 5856-6166c440c4-lite.chunk.js} +0 -0
  85. /package/dist/scripts/{5875-253e8bfbf6-lite.chunk.js.LICENSE.txt → 5875-fdcfea6b4c-lite.chunk.js.LICENSE.txt} +0 -0
  86. /package/dist/scripts/{5877-a83d6786ef-lite.chunk.js → 5877-00b0b69ba3-lite.chunk.js} +0 -0
  87. /package/dist/scripts/{5914-30323b33b7-lite.chunk.js → 5914-56d0f42719-lite.chunk.js} +0 -0
  88. /package/dist/scripts/{5931-545a0d4eb7-lite.chunk.js → 5931-b396480589-lite.chunk.js} +0 -0
  89. /package/dist/scripts/{5956-7cf4d5ed03-lite.chunk.js → 5956-bcc8351a67-lite.chunk.js} +0 -0
  90. /package/dist/scripts/{5974-b7f2b78a44-lite.chunk.js → 5974-a6ead2fe7b-lite.chunk.js} +0 -0
  91. /package/dist/scripts/{6274-78d0b5e7ef-lite.chunk.js → 6274-1a461fdbfa-lite.chunk.js} +0 -0
  92. /package/dist/scripts/{6302-09599f35c0-lite.chunk.js → 6302-1fa8d4e37e-lite.chunk.js} +0 -0
  93. /package/dist/scripts/{6355-02e4b2cd9c-lite.chunk.js → 6355-a3e55e30b3-lite.chunk.js} +0 -0
  94. /package/dist/scripts/{6370-cedb0e39b5-lite.chunk.js → 6370-f3a00445b4-lite.chunk.js} +0 -0
  95. /package/dist/scripts/{6381-c385dc8f97-lite.chunk.js → 6381-6d660ddc41-lite.chunk.js} +0 -0
  96. /package/dist/scripts/{6465-61bc59d1a7-lite.chunk.js → 6465-71157fbaa1-lite.chunk.js} +0 -0
  97. /package/dist/scripts/{6604-a5a6f7bf79-lite.chunk.js → 6604-7ee17b9e4c-lite.chunk.js} +0 -0
  98. /package/dist/scripts/{6725-106495e690-lite.chunk.js → 6725-eb0582de21-lite.chunk.js} +0 -0
  99. /package/dist/scripts/{6736-680c4983ce-lite.chunk.js.LICENSE.txt → 6736-5855562482-lite.chunk.js.LICENSE.txt} +0 -0
  100. /package/dist/scripts/{6801-dfdd6b5ddb-lite.chunk.js → 6801-38423525bd-lite.chunk.js} +0 -0
  101. /package/dist/scripts/{6864-fa3f23a694-lite.chunk.js → 6864-4b1f49811b-lite.chunk.js} +0 -0
  102. /package/dist/scripts/{6873-8942c67944-lite.chunk.js → 6873-d4d277d330-lite.chunk.js} +0 -0
  103. /package/dist/scripts/{6891-822882cbb8-lite.chunk.js → 6891-213023b107-lite.chunk.js} +0 -0
  104. /package/dist/scripts/{7045-c07a3d2183-lite.chunk.js → 7045-b2bddc9ec2-lite.chunk.js} +0 -0
  105. /package/dist/scripts/{7061-0cec6ef080-lite.chunk.js → 7061-8cdc130e3f-lite.chunk.js} +0 -0
  106. /package/dist/scripts/{7066-66360a703d-lite.chunk.js → 7066-2d4115e29a-lite.chunk.js} +0 -0
  107. /package/dist/scripts/{7115-fdad839dd8-lite.chunk.js → 7115-4af23ae038-lite.chunk.js} +0 -0
  108. /package/dist/scripts/{7127-40afff9ecb-lite.chunk.js → 7127-bbf01d9e27-lite.chunk.js} +0 -0
  109. /package/dist/scripts/{7128-0d8c3305f9-lite.chunk.js → 7128-f7feb5a7a3-lite.chunk.js} +0 -0
  110. /package/dist/scripts/{7172-2c30c4d3d8-lite.chunk.js → 7172-1d0867ea33-lite.chunk.js} +0 -0
  111. /package/dist/scripts/{7178-b8e23de42e-lite.chunk.js → 7178-d18e04a922-lite.chunk.js} +0 -0
  112. /package/dist/scripts/{7210-4883191298-lite.chunk.js → 7210-b70b3d6f58-lite.chunk.js} +0 -0
  113. /package/dist/scripts/{7545-060802bc75-lite.chunk.js → 7545-5970cb6ca7-lite.chunk.js} +0 -0
  114. /package/dist/scripts/{7552-7ed0cf2e2c-lite.chunk.js → 7552-1882ee4782-lite.chunk.js} +0 -0
  115. /package/dist/scripts/{7760-85a26c1525-lite.chunk.js → 7760-bdd6a22432-lite.chunk.js} +0 -0
  116. /package/dist/scripts/{7767-67e140f407-lite.chunk.js → 7767-e48780b6ea-lite.chunk.js} +0 -0
  117. /package/dist/scripts/{7804-a2180c81b3-lite.chunk.js → 7804-e0a0461e61-lite.chunk.js} +0 -0
  118. /package/dist/scripts/{7831-04cc9f8cc7-lite.chunk.js → 7831-f2cb3d5e4e-lite.chunk.js} +0 -0
  119. /package/dist/scripts/{7855-85bfbcc163-lite.chunk.js → 7855-437cba78b7-lite.chunk.js} +0 -0
  120. /package/dist/scripts/{7901-e3e5c72a90-lite.chunk.js → 7901-c605ff6d5a-lite.chunk.js} +0 -0
  121. /package/dist/scripts/{7925-3eec9fd182-lite.chunk.js → 7925-4c7a45eca6-lite.chunk.js} +0 -0
  122. /package/dist/scripts/{7947-b6477cb380-lite.chunk.js → 7947-d24bf64a13-lite.chunk.js} +0 -0
  123. /package/dist/scripts/{7989-f8eb970189-lite.chunk.js.LICENSE.txt → 7989-798c963d0b-lite.chunk.js.LICENSE.txt} +0 -0
  124. /package/dist/scripts/{8025-81d775f8bc-lite.chunk.js → 8025-ff6dfd0c26-lite.chunk.js} +0 -0
  125. /package/dist/scripts/{8046-b73cf16d23-lite.chunk.js → 8046-5972028b50-lite.chunk.js} +0 -0
  126. /package/dist/scripts/{8056-660b074e1e-lite.chunk.js → 8056-234e78b98c-lite.chunk.js} +0 -0
  127. /package/dist/scripts/{8072-667c5bcd3f-lite.chunk.js → 8072-c2fac25acf-lite.chunk.js} +0 -0
  128. /package/dist/scripts/{823-6301347e20-lite.chunk.js → 823-137910a8fd-lite.chunk.js} +0 -0
  129. /package/dist/scripts/{8252-2624c4ade7-lite.chunk.js → 8252-80b5d62e35-lite.chunk.js} +0 -0
  130. /package/dist/scripts/{8323-97cea6d041-lite.chunk.js.LICENSE.txt → 8323-25d493a8c9-lite.chunk.js.LICENSE.txt} +0 -0
  131. /package/dist/scripts/{8408-fd76c2cad2-lite.chunk.js → 8408-0e2a13b796-lite.chunk.js} +0 -0
  132. /package/dist/scripts/{8417-c49c0bd1c5-lite.chunk.js → 8417-02d2fb3f33-lite.chunk.js} +0 -0
  133. /package/dist/scripts/{8425-8debed0a1a-lite.chunk.js → 8425-3342020171-lite.chunk.js} +0 -0
  134. /package/dist/scripts/{8466-d931142894-lite.chunk.js → 8466-5380c44822-lite.chunk.js} +0 -0
  135. /package/dist/scripts/{8618-ef299b06d9-lite.chunk.js → 8618-ff945a9ce5-lite.chunk.js} +0 -0
  136. /package/dist/scripts/{8772-14470843d8-lite.chunk.js → 8772-7eda18711b-lite.chunk.js} +0 -0
  137. /package/dist/scripts/{8779-a74861a155-lite.chunk.js → 8779-9799e080bc-lite.chunk.js} +0 -0
  138. /package/dist/scripts/{8866-7ce29e5212-lite.chunk.js → 8866-2684ffdbd7-lite.chunk.js} +0 -0
  139. /package/dist/scripts/{8868-3e951e5fed-lite.chunk.js → 8868-d56bdf4d7c-lite.chunk.js} +0 -0
  140. /package/dist/scripts/{8955-043f31031a-lite.chunk.js → 8955-389214b3c9-lite.chunk.js} +0 -0
  141. /package/dist/scripts/{8968-bc9caf717b-lite.chunk.js → 8968-133fae3a20-lite.chunk.js} +0 -0
  142. /package/dist/scripts/{898-5fe128d07d-lite.chunk.js → 898-96bde492b9-lite.chunk.js} +0 -0
  143. /package/dist/scripts/{9001-c352f202f7-lite.chunk.js → 9001-1592436e63-lite.chunk.js} +0 -0
  144. /package/dist/scripts/{9060-ef267cbefe-lite.chunk.js → 9060-a703b59109-lite.chunk.js} +0 -0
  145. /package/dist/scripts/{9133-cdda571892-lite.chunk.js → 9133-a5f5669553-lite.chunk.js} +0 -0
  146. /package/dist/scripts/{9242-bd0c653f7e-lite.chunk.js → 9242-bf9045860f-lite.chunk.js} +0 -0
  147. /package/dist/scripts/{9478-f10e302097-lite.chunk.js.LICENSE.txt → 9478-51c101dd1d-lite.chunk.js.LICENSE.txt} +0 -0
  148. /package/dist/scripts/{9490-4ccc97721d-lite.chunk.js → 9490-f3b64303f4-lite.chunk.js} +0 -0
  149. /package/dist/scripts/{956-f1f4d93a37-lite.chunk.js → 956-41674af336-lite.chunk.js} +0 -0
  150. /package/dist/scripts/{9580-4fe31ca8c0-lite.chunk.js → 9580-7a5508bee2-lite.chunk.js} +0 -0
  151. /package/dist/scripts/{9686-6dde8b94ad-lite.chunk.js → 9686-de718324d4-lite.chunk.js} +0 -0
  152. /package/dist/scripts/{975-b05edbc051-lite.chunk.js → 975-ee3e46281c-lite.chunk.js} +0 -0
  153. /package/dist/scripts/{985-429e3cd2ee-lite.chunk.js → 985-c469168d73-lite.chunk.js} +0 -0
  154. /package/dist/scripts/{bundle-e0e3e6ab0b.min.js.LICENSE.txt → bundle-32e595daa1.min.js.LICENSE.txt} +0 -0
package/package.json CHANGED
@@ -1,61 +1,61 @@
1
- {
2
- "name": "@clickview/lite",
3
- "version": "0.9.0-rc.0",
4
- "description": "ClickView Lite",
5
- "main": "dist/scripts/bundle.js",
6
- "types": "dist/projects/lite/src/index.d.ts",
7
- "scripts": {
8
- "start": "set NODE_ENV=development&& webpack -w --config ./tooling/webpack.config.js",
9
- "build": "set NODE_ENV=production&& webpack --config ./tooling/webpack.config.js",
10
- "build-docker": "export NODE_ENV=production&& webpack --config ./tooling/webpack.config.js",
11
- "test": "jest",
12
- "test-watch": "jest --watch"
13
- },
14
- "repository": {
15
- "type": "git",
16
- "url": "https://gitlab.cvinternal.net/front-end/clickview"
17
- },
18
- "cv": {
19
- "publishable": true,
20
- "rebuildable": true
21
- },
22
- "author": "Joshua Taylor, Shale Kuzmanovski, Matt Trengrove, Michael McDonnell",
23
- "license": "ISC",
24
- "devDependencies": {
25
- "@clickview/eslint-config": "1.0.1",
26
- "@types/js-cookie": "2.2.6",
27
- "@types/marked": "0.7.3",
28
- "@types/papaparse": "5.0.3",
29
- "@types/react-copy-to-clipboard": "4.3.0",
30
- "@types/react-custom-scrollbars": "4.0.6",
31
- "@types/react-pdf": "5.0.0",
32
- "@types/react-window": "1.8.3"
33
- },
34
- "dependencies": {
35
- "@clickview/styles": "1.8.1-rc.1",
36
- "@microsoft/immersive-reader-sdk": "1.0.0",
37
- "@microsoft/teams-js": "1.5.2",
38
- "@typeform/embed-react": "1.2.6",
39
- "intersection-observer": "0.11.0",
40
- "js-cookie": "2.2.1",
41
- "marked": "0.8.0",
42
- "papaparse": "5.2.0",
43
- "print-js": "1.5.0",
44
- "react-copy-to-clipboard": "5.0.2",
45
- "react-custom-scrollbars": "4.2.1",
46
- "react-pdf": "5.0.0",
47
- "react-reverse-portal": "2.0.1",
48
- "redux-devtools-extension": "2.13.8"
49
- },
50
- "babel": {
51
- "presets": [
52
- [
53
- "@babel/preset-env",
54
- {
55
- "corejs": 3,
56
- "useBuiltIns": "entry"
57
- }
58
- ]
59
- ]
60
- }
61
- }
1
+ {
2
+ "name": "@clickview/lite",
3
+ "version": "0.9.0-rc.2",
4
+ "description": "ClickView Lite",
5
+ "main": "dist/scripts/bundle.js",
6
+ "types": "dist/projects/lite/src/index.d.ts",
7
+ "scripts": {
8
+ "start": "set NODE_ENV=development&& webpack -w --config ./tooling/webpack.config.js",
9
+ "build": "set NODE_ENV=production&& webpack --config ./tooling/webpack.config.js",
10
+ "build-docker": "export NODE_ENV=production&& webpack --config ./tooling/webpack.config.js",
11
+ "test": "jest",
12
+ "test-watch": "jest --watch"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://gitlab.cvinternal.net/front-end/clickview"
17
+ },
18
+ "cv": {
19
+ "publishable": true,
20
+ "rebuildable": true
21
+ },
22
+ "author": "Joshua Taylor, Shale Kuzmanovski, Matt Trengrove, Michael McDonnell",
23
+ "license": "ISC",
24
+ "devDependencies": {
25
+ "@clickview/eslint-config": "1.0.1",
26
+ "@types/js-cookie": "2.2.6",
27
+ "@types/marked": "0.7.3",
28
+ "@types/papaparse": "5.0.3",
29
+ "@types/react-copy-to-clipboard": "4.3.0",
30
+ "@types/react-custom-scrollbars": "4.0.6",
31
+ "@types/react-pdf": "5.0.0",
32
+ "@types/react-window": "1.8.3"
33
+ },
34
+ "dependencies": {
35
+ "@clickview/styles": "1.8.1-rc.3",
36
+ "@microsoft/immersive-reader-sdk": "1.0.0",
37
+ "@microsoft/teams-js": "1.5.2",
38
+ "@typeform/embed-react": "1.2.6",
39
+ "intersection-observer": "0.11.0",
40
+ "js-cookie": "2.2.1",
41
+ "marked": "0.8.0",
42
+ "papaparse": "5.2.0",
43
+ "print-js": "1.5.0",
44
+ "react-copy-to-clipboard": "5.0.2",
45
+ "react-custom-scrollbars": "4.2.1",
46
+ "react-pdf": "5.0.0",
47
+ "react-reverse-portal": "2.0.1",
48
+ "redux-devtools-extension": "2.13.8"
49
+ },
50
+ "babel": {
51
+ "presets": [
52
+ [
53
+ "@babel/preset-env",
54
+ {
55
+ "corejs": 3,
56
+ "useBuiltIns": "entry"
57
+ }
58
+ ]
59
+ ]
60
+ }
61
+ }
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[1825],{25723:(e,t,n)=>{n.d(t,{m:()=>p});var r=n(1024),o=n(77268),i=n(23481),a=n(49985),c=n(25105),l=n(99940),u=n(79014);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var f=null,d=!1;function p(e){var t,n,p=(t=r.useState(f),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(t,n)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=p[0],v=p[1];return f||d||(d=!0,(0,c.ajaxRequest)({resource:"/api/integrations/token/immersive-reader",type:l.k.GET,success:function(e){f=e,v(e),window.setTimeout((function(){f=null,d=!1}),9e5)},error:function(){}})),m?(e.title||(e.title=i.T.getPhrase("shared.immersiveReader","titleFallback")),r.createElement("span",{className:"".concat("nckQw"," ").concat(e.className||""),onClick:function(){u.q.isFunction(e.onLaunch)&&e.onLaunch(),a.k.logUserAction(e.analyticsData,e.analyticsOptions);var t={title:e.title,chunks:[{content:e.text,mimeType:e.html?"text/html":"text/plain"}]},n=m.subdomain,r=m.token,i={uiZIndex:5e3,onExit:function(){u.q.isFunction(e.onExit)&&e.onExit()}};o.launchAsync(r,n,t,i)}},r.createElement("svg",{viewBox:"0 0 40 37"},r.createElement("path",{d:"M37.4,0.9 L37.4,9.6 L35.4,9.6 L35.4,2.9 L24.4,2.9 C22.9,3.3 20,4.5 20,6 L20,17.2 L18,17.2 L18,6 C18,5 15.6,3.6 13.8,2.9 L2,2.9 L2,29 L12.4,29 L12.4,31 L0,31 L0,0.9 L14.1,0.9 L14.3,1 C15,1.2 17.5,2.2 18.9,3.7 C20.5,1.9 23.5,1.1 23.9,1 L24.1,1 L37.4,1 L37.4,0.9 Z",fill:"#000000"}),r.createElement("path",{d:"M27.4,37 L25.8,37 L18.4,29.4 L14,29.4 L14,21 L18.4,20.9 L26.1,13 L27.4,13 L27.4,37 Z M16,27.4 L19.2,27.4 L25.3,33.7 L25.3,16.6 L19.2,22.9 L15.9,22.9 L15.9,27.4 L16,27.4 Z",fill:"#0197F2"}),r.createElement("path",{d:"M31.3,32.7 L29.6,31.7 C29.6,31.7 31.7,28.3 31.7,25.2 C31.7,21.9 29.6,18.5 29.6,18.4 L31.3,17.4 C31.4,17.6 33.7,21.3 33.7,25.2 C33.7,28.8 31.4,32.6 31.3,32.7 Z",fill:"#0197F2"}),r.createElement("path",{d:"M36.4,36.2 L34.8,35 C34.8,35 38,30.8 38,25.2 C38,19.6 34.8,15.4 34.8,15.4 L36.4,14.2 C36.5,14.4 40,19 40,25.3 C40,31.5 36.5,36 36.4,36.2 Z",fill:"#0197F2"})))):r.createElement(r.Fragment,null)}},74696:(e,t,n)=>{n.d(t,{S:()=>u});var r=n(1024),o=n.n(r),i=n(99910),a=n(86764),c=n(81514);const l={partialName:"SicQQ",partialDescription:"dPGMq",partialThumbnail:"vZrnb",partialDragHandle:"iq73R"};function u(e){return o().createElement(o().Fragment,null,Array(e.numVideos).fill(null).map((function(t,n){return o().createElement(s,Object.assign({key:n},e))})))}function s(e){var t=(0,c.V)(),n=t===a.r.XS,r=t===a.r.SM||t===a.r.MD,u=e.withReordering&&!n;return o().createElement(i.Row,{className:"py-2"},o().createElement(i.Col,{xs:n?12:r?4:3,className:"flex-column align-items-flex-start mb-1"},o().createElement(i.Row,null,!!u&&o().createElement("div",{className:"d-flex align-items-center justify-content-center col-2"},o().createElement("div",{className:"partial-loading-background ".concat(l.partialDragHandle)})),o().createElement(i.Col,{xs:u?10:12},o().createElement("div",{className:"partial-loading-background rounded ".concat(l.partialThumbnail)})))),o().createElement(i.Col,{xs:n?12:r?8:9},o().createElement("div",{className:"partial-loading-background ".concat(l.partialSeriesLink)}),o().createElement("div",{className:"partial-loading-background mb-1 ".concat(l.partialName)}),o().createElement("div",{className:"partial-loading-background ".concat(l.partialDescription)}),o().createElement("div",{className:"partial-loading-background ".concat(l.partialBadges)}),o().createElement("div",{className:"partial-loading-background ".concat(l.partialActions)})))}u.defaultProps={numVideos:15}},3133:(e,t,n)=>{n.d(t,{R:()=>l});var r=n(1024),o=n.n(r),i=n(83345),a=n(2786),c=n(55452);function l(e){var t,n,r;if(!e.owner&&!e.isClickViewContent)return o().createElement(o().Fragment,null);if(e.isClickViewContent)return o().createElement("small",{className:"clamp-1 d-flex align-items-center"},o().createElement("div",{className:"svg-container sm ml-n1 ".concat("smUBc")},o().createElement(a.Sd,null)),o().createElement("em",null,o().createElement(i.x,{namespace:"shared.videoOwnerText",phrase:"clickViewContent"})));var l=c.l.getDisplayName(e.owner);if(!l)return o().createElement(o().Fragment,null);var u=null===(n=null===(t=e.owner.customers)||void 0===t?void 0:t.data)||void 0===n?void 0:n[0],s=null!==(r=null==u?void 0:u.name)&&void 0!==r?r:"";return s&&(l+=", "),o().createElement("small",{className:"clamp-1"},l,s&&o().createElement("em",null,s))}},11518:(e,t,n)=>{n.d(t,{j7:()=>o.j,kM:()=>r.k});var r=n(5281),o=(n(61871),n(31309))},47862:(e,t,n)=>{n.d(t,{K:()=>d});var r=n(1024),o=n.n(r),i=n(8493),a=n(57760),c=n(68626),l=n(83345),u=n(3133),s=n(54610),f=n(65858);var d=o().memo((function(e){var t,n=Object.assign(Object.assign({},e.questionsAppLink),{args:[e.data.id]});return o().createElement("div",{className:"flex-shrink-0 px-1 ".concat("rXatl")},o().createElement("div",{className:"row m-0 border rounded p-2 h-100"},o().createElement("div",{className:"col-6 p-0"},o().createElement(a.u,{video:e.data,appLink:e.getAppLink(e.data),type:"static",imageOptions:{size:s.h2.Small},textPosition:c.z.Independent,preload:!0,analyticsOptions:{location:f.LocationContext.SlidingListItem}})),o().createElement("div",{className:"col-6 p-0"},o().createElement("div",{className:"pl-2"},o().createElement(i.F,{appLink:e.getAppLink(e.data)},o().createElement("h3",{className:"h6 mb-1"},o().createElement("span",{className:"clamp-2"},e.data.name))),o().createElement(u.R,{owner:e.data.owner,isClickViewContent:null===(t=e.data._isClickViewContent)||void 0===t?void 0:t.value}),o().createElement(i.F,{className:"info-link",appLink:n},o().createElement(l.x,{namespace:"shared.interactiveWidgetItem",phrase:"previewQuestions"}))))))}))},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:()=>o});var r=n(99940),o={createViewKey:function(e,t,n){var o={mediaId:e.toString(),mediaIdType:t};return n&&(o.shareContextId=n),{url:"/api/player/create-view-key",key:"view:key:".concat(e,":").concat(t),type:r.k.POST,data:o,expiryTime:28800}}}},83921:(e,t,n)=>{n.d(t,{b:()=>V});var r=n(1024),o=n.n(r),i=n(81886),a=n(11025),c=n(33803),l=n(23481),u=n(64364);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 f(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 d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function p(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 m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var v=l.T.encloseNamespace("shared.videoRatingAccess");function y(e){return a.M.isClip(e)?v("clipTitle"):a.M.isInteractive(e)?v("interactiveTitle"):v("videoTitle")}var h=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&&d(e,t)}(c,e);var t,n,r,o,i=(r=c,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=m(r);if(o){var n=m(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return p(this,e)});function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=i.call(this,y(e))).video=e,t}return t=c,(n=[{key:"name",get:function(){return"VideoRatingAccessError"}},{key:"heading",get:function(){return y(this.video)}},{key:"description",get:function(){return e=this.video,a.M.isClip(e)?v("clipDescription"):a.M.isInteractive(e)?v("interactiveDescription"):v("videoDescription");var e}}])&&f(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(u.H);function b(e){return b="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},b(e)}function g(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(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}function w(e,t){if(t&&("object"===b(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 k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}var O=l.T.encloseNamespace("shared.parentVideoDeletedError");function j(e){return a.M.isClip(e)?O("clipTitle"):a.M.isInteractive(e)?O("interactiveTitle"):O("videoTitle")}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&&E(e,t)}(c,e);var t,n,r,o,i=(r=c,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=k(r);if(o){var n=k(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return w(this,e)});function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=i.call(this,j(e))).video=e,t}return t=c,(n=[{key:"name",get:function(){return"ParentVideoDeletedError"}},{key:"heading",get:function(){return j(this.video)}},{key:"description",get:function(){return e=this.video,a.M.isClip(e)?O("clipDescription"):a.M.isInteractive(e)?O("interactiveDescription"):O("videoDescription");var e}}])&&g(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(u.H);function C(e){return C="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},C(e)}function S(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 P(e,t){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},P(e,t)}function N(e,t){if(t&&("object"===C(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 T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}var A=l.T.encloseNamespace("shared.videoNotInSubscriptionError"),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&&P(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=T(r);if(o){var n=T(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return N(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,"VideoNotInSubscriptionError")).video=e,t}return t=a,(n=[{key:"name",get:function(){return"VideoNotInSubscriptionError"}},{key:"heading",get:function(){return A("title")}},{key:"description",get:function(){return A("description")}}])&&S(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(u.H),R={"rating-not-allowed":h,"video-deleted":L,private:c.G,"clickview-private":x},V=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R;o().useEffect((function(){var n;if(e.hasCompleted){var r=e.data;if(r){var o=a.M.getCanBeConsumed(r);if(!(null==o?void 0:o.value)){var c=Object.assign(Object.assign({},R),t)[null!==(n=null==o?void 0:o.reason)&&void 0!==n?n:"private"];i.Q.ErrorHelper.throw(new c(r))}}}}),[e.hasCompleted])}},87821:(e,t,n)=>{n.d(t,{p:()=>o});var r=n(33192),o={userVideoHistory:function(e,t,n,o){var i="video:history",a="{gateway}/v1/users/me/watch-history";return e&&(i+=":".concat(e),a+="?cursor=".concat(e)),{key:i,url:a,formatData:function(e){return{data:e.data.map((function(e){var t=r.utc(e.lastTimeWatched).local().format(),n=r(t).format("YYYY-MM-DD");return Object.assign(Object.assign({},e),{lastTimeWatched:t,lastDateWatched:n})})),pagination:e.pagination}},success:t,error:n,always:o}},videoHistory:function(e,t,n,r,o){var i=e.sort().map((function(e){return"videoId=".concat(e)}));return{key:"video:history:videos:".concat(i.join("&")),url:"{gateway}/v1/videos/history?".concat(i.join("&")),normalizeOptions:{namespace:t},formatData:function(e){return(null==e?void 0:e.length)?e.map((function(e){return{id:e.videoId,lastProgressPoint:e.lastProgressPoint}})):e},success:n,error:r,always:o}}}},78166:(e,t,n)=>{n.d(t,{Z:()=>v});var r=n(1024),o=n.n(r),i=n(28400),a=n(51365),c=n(4632),l=n(74696),u=n(83345),s=n(11025),f=n(97291),d=n(65986),p=n(14070),m=function(e){return{application:f.O.DEFAULT,action:p.e.Default.SERIES,args:[e.id,i.m.slugify(e.name)]}};function v(e){var t,n,r=(0,d._)(d.i.VideoItem);if(!(null===(t=e.currentUser)||void 0===t?void 0:t.isAuthenticated))return o().createElement(o().Fragment,null);if(e.relatedVideos.hasError)return o().createElement(o().Fragment,null);if(e.relatedVideos.hasCompleted&&!(null===(n=e.relatedVideos.videos)||void 0===n?void 0:n.length))return o().createElement(o().Fragment,null);if(!e.relatedVideos.isFetching&&!e.relatedVideos.hasCompleted)return o().createElement(o().Fragment,null);var i=!s.M.isInteractive(e.currentVideo);return o().createElement(a.M.Provider,{value:r},o().createElement("div",{className:e.className},o().createElement("h2",{className:"h4 mb-0"},o().createElement(u.x,{namespace:"shared.relatedVideos",phrase:i?"upNext":"relatedVideos"})),e.relatedVideos.isFetching?o().createElement(l.S,null):o().createElement(c.E4,{videos:e.relatedVideos.videos,getSeriesAppLink:m,getVideoAppLink:e.getVideoAppLink,setFavourite:e.setFavourite})))}},36873:(e,t,n)=>{n.d(t,{k:()=>u});var r=n(20354),o=n(11025),i=n(183),a=n(1575),c=n(15311),l=n(12754);function u(e,t,n,u){var s,f=(0,c.r)().hasProduct,d=r.a.useBasicFetch(e&&(null==t?void 0:t.isAuthenticated)&&f(l.x.Primary)?(n&&u||!o.M.isVideo(e)||!o.M.hasSeries(e)||(n=i.Q.Series,u=e.series.id),a.R.relatedVideos(e.id,t.id,n,u)):null);return{videos:(s=d.data,s?s.filter((function(e){var t;return null===(t=o.M.getCanBeConsumed(e))||void 0===t?void 0:t.value})):s),hasCompleted:d.hasCompleted,isFetching:d.isFetching,hasError:d.hasError}}},43853:(e,t,n)=>{n.d(t,{T:()=>i});var r=n(1024),o=n.n(r),i=function(){function e(e){if(38===e.keyCode||40===e.keyCode)return e.preventDefault(),!1}o().useEffect((function(){return window.addEventListener("keydown",e,!1),function(){window.removeEventListener("keydown",e,!1)}}),[])}},97816:(e,t,n)=>{n.d(t,{V:()=>p});var r=n(20354),o=n(31949),i=n(1575),a=n(21750),c=n(87821),l=n(63419);function u(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||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 s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var f={ratings:!1,favourites:!1,watchHistory:!1,hasCurriculumLinks:!1};function d(e,t){var n=r.a.useGetResponse(null==t?void 0:t.key),o=r.a.useGetFetch();e&&t&&n.shouldFetch&&o(t)}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},f),t),s=n.ratings,p=n.favourites,m=n.watchHistory,v=n.hasCurriculumLinks,y=r.a.useBasicFetch(o.N.currentUser()),h=e&&(Array.isArray(e)?e.filter(Boolean).map((function(e){return e.id})):e.data.filter(Boolean).map((function(e){return e.id}))),b=y.data;if(null==b?void 0:b.isAuthenticated){var g=[];s&&(g=[].concat(u(g),[!!(null==h?void 0:h.length)&&i.R.videoRatings(h,t.flightNamespace)])),p&&(g=[].concat(u(g),[!!(null==h?void 0:h.length)&&b&&l.P.isFavourited(b.id,h,t.flightNamespace)])),m&&(g=[].concat(u(g),[!!(null==h?void 0:h.length)&&b&&c.p.videoHistory(h,t.flightNamespace)])),v&&(g=[].concat(u(g),[!!(null==h?void 0:h.length)&&a.x.hasCurriculumLinks(h,t.flightNamespace)])),g.forEach((function(t){return d(!!e,t)}))}}},32690:(e,t,n)=>{n.d(t,{P:()=>u});var r=n(1024),o=n.n(r),i=n(2948),a=n(11025),c=n(86702);function l(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 u=function(e,t){var n,r,u=t.t,s=(n=(0,i.D)(c.y.WEB_PLAYER_DATA),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(n,r)||function(e,t){if(e){if("string"==typeof e)return l(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)?l(e,t):void 0}}(n,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.")}()),f=s[0],d=s[1];o().useEffect((function(){var t;if(e){var n=a.M.getVideoProgress(e),r=u&&+u||n,o=(null===(t=f.video)||void 0===t?void 0:t.id)!==e.id,i=Number.isInteger(r)&&r!==f.startTime;if(o||i){if(!r)return void d("startTime",0);if(u)return void d("startTime",+u);if(n>=e.duration/1e3-10)return void d("startTime",0);d("startTime",r)}}}),[e,u])}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[3285],{60051:(t,e,r)=>{var n;r.d(e,{f:()=>n}),function(t){t.Share="share",t.MasterObject="masterobject"}(n||(n={}))},94644:(t,e,r)=>{r.d(e,{r:()=>f});var n=r(81886),o=r(50242),i=r(67058),a=r(49075),u=r(14553),c=r(49267),l={notFound:i.d,forbidden:{rating:u.q,yearLevel:u.q,region:c.a,privacy:u.q},badRequest:a._};function f(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t){var i;i="number"==typeof t?t:t.status;var a=Object.assign(Object.assign({},l),e);i&&n.Q.ErrorHelper.isStatusCodeError(i)&&(i!==o.o.NotFound?i!==o.o.Forbidden?r.badRequest||n.Q.ErrorHelper.throw(new a.badRequest):r.forbidden||n.Q.ErrorHelper.throw(new a.forbidden.privacy):r.notFound||n.Q.ErrorHelper.throw(new a.notFound))}}},47812:(t,e,r)=>{r.d(e,{k:()=>o});var n=r(99940),o={createViewKey:function(t,e,r){var o={mediaId:t.toString(),mediaIdType:e};return r&&(o.shareContextId=r),{url:"/api/player/create-view-key",key:"view:key:".concat(t,":").concat(e),type:n.k.POST,data:o,expiryTime:28800}}}},3010:(t,e,r)=>{r.d(e,{i:()=>i});var n=r(1024),o=r(45719);function i(t,e){var r=t,i=e,a=(0,o.P)(t&&function(t){return r(t).key});return(0,n.useEffect)((function(){a&&a.shouldInitialFetch&&e&&i()}),[null==a?void 0:a.shouldInitialFetch,e]),(0,n.useEffect)((function(){a&&a.nextCursor&&!a.isFetching&&e&&i(a.nextCursor)}),[null==a?void 0:a.nextCursor,null==a?void 0:a.isFetching,e]),a}},91286:(t,e,r)=>{r.d(e,{v:()=>a});var n=r(1024),o=r(94644);function i(t){return t.map((function(t){return t.statusCode})).join(":")}function a(t,e,r){var a=Array.isArray(t)?t:[t];(0,n.useEffect)((function(){a.forEach((function(t){(0,o.r)(t.statusCode,e,r)}))}),[i(a),e,r])}},45719:(t,e,r)=>{r.d(e,{F:()=>c,P:()=>l});var n=r(1024),o=r(58566),i=r(20354),a=r(79014);function u(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 c={items:[],shouldInitialFetch:!1,nextCursor:null,isFetching:!1,statusCode:r(50242).o.Ok,hasCompleted:!0,totalItems:0};function l(t,e,r){function c(t){if(t)return a.q.isFunction(e)?e(t):t.data}function l(t){var e,n;if(t)return r?r(t):null===(n=null===(e=t.pagination)||void 0===e?void 0:e.cursors)||void 0===n?void 0:n.next}return(0,o.useSelector)((0,n.useMemo)((function(){return function(e){if(a.q.isFunction(t)){for(var r=t,n=a.q.isFunction(t)&&r(),o=n&&i.a.getResponse(e,n),f=o&&o.isFetching,s=o&&o.statusCode,d=o&&o.hasCompleted,p=o&&o.shouldFetch,y=c(o&&o.data),v=l(o&&o.data),b=function(t){var e;if(t)return null===(e=t)||void 0===e?void 0:e.count}(o&&o.data);v&&(f=(o=i.a.getResponse(e,r(v))).isFetching,s=o.statusCode,d=o.hasCompleted,!o.shouldFetch);){var h=c(o.data);h&&y.push.apply(y,function(t){if(Array.isArray(t))return u(t)}(w=h)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(w)||function(t,e){if(t){if("string"==typeof t)return u(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)?u(t,e):void 0}}(w)||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.")}());var m=l(o.data);v=m===v?null:m}var g={shouldInitialFetch:p,items:y,nextCursor:v,isFetching:f,statusCode:s,hasCompleted:d};return"number"==typeof b&&(g.totalItems=b),g}var w}}),[t]))}},83921:(t,e,r)=>{r.d(e,{b:()=>x});var n=r(1024),o=r.n(n),i=r(81886),a=r(11025),u=r(33803),c=r(23481),l=r(64364);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function p(t,e){if(e&&("object"===f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}var v=c.T.encloseNamespace("shared.videoRatingAccess");function b(t){return a.M.isClip(t)?v("clipTitle"):a.M.isInteractive(t)?v("interactiveTitle"):v("videoTitle")}var h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(u,t);var e,r,n,o,i=(n=u,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=y(n);if(o){var r=y(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return p(this,t)});function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(e=i.call(this,b(t))).video=t,e}return e=u,(r=[{key:"name",get:function(){return"VideoRatingAccessError"}},{key:"heading",get:function(){return b(this.video)}},{key:"description",get:function(){return t=this.video,a.M.isClip(t)?v("clipDescription"):a.M.isInteractive(t)?v("interactiveDescription"):v("videoDescription");var t}}])&&s(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(l.H);function m(t){return m="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},m(t)}function g(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function w(t,e){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},w(t,e)}function O(t,e){if(e&&("object"===m(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function j(t){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},j(t)}var E=c.T.encloseNamespace("shared.parentVideoDeletedError");function C(t){return a.M.isClip(t)?E("clipTitle"):a.M.isInteractive(t)?E("interactiveTitle"):E("videoTitle")}var F=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&w(t,e)}(u,t);var e,r,n,o,i=(n=u,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=j(n);if(o){var r=j(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return O(this,t)});function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(e=i.call(this,C(t))).video=t,e}return e=u,(r=[{key:"name",get:function(){return"ParentVideoDeletedError"}},{key:"heading",get:function(){return C(this.video)}},{key:"description",get:function(){return t=this.video,a.M.isClip(t)?E("clipDescription"):a.M.isInteractive(t)?E("interactiveDescription"):E("videoDescription");var t}}])&&g(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(l.H);function P(t){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},P(t)}function S(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function _(t,e){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_(t,e)}function k(t,e){if(e&&("object"===P(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function A(t){return A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},A(t)}var I=c.T.encloseNamespace("shared.videoNotInSubscriptionError"),R=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=A(n);if(o){var r=A(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return k(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,"VideoNotInSubscriptionError")).video=t,e}return e=a,(r=[{key:"name",get:function(){return"VideoNotInSubscriptionError"}},{key:"heading",get:function(){return I("title")}},{key:"description",get:function(){return I("description")}}])&&S(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(l.H),T={"rating-not-allowed":h,"video-deleted":F,private:u.G,"clickview-private":R},x=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T;o().useEffect((function(){var r;if(t.hasCompleted){var n=t.data;if(n){var o=a.M.getCanBeConsumed(n);if(!(null==o?void 0:o.value)){var u=Object.assign(Object.assign({},T),e)[null!==(r=null==o?void 0:o.reason)&&void 0!==r?r:"private"];i.Q.ErrorHelper.throw(new u(n))}}}}),[t.hasCompleted])}},61995:(t,e,r)=>{r.d(e,{_:()=>a});var n=r(45593),o=r(21938),i=r(76867),a={notFound:o.W,forbidden:{rating:n.F,yearLevel:n.F,region:i.z,privacy:n.F},badRequest:i.z}},33285:(t,e,r)=>{r.r(e),r.d(e,{EmbeddedLcsVideoView:()=>_});var n=r(1024),o=r(23049),i=r(20354),a=r(81886),u=r(2948),c=r(65858),l=r(39151),f=r(1643),s=r(31949),d=r(47812),p=r(60051),y=r(83921),v=r(1575),b=r(63419),h=r(91286),m=r(97037),g=r(13349),w=r(21972),O=r(97291),j=r(14070),E=r(86702),C=r(49948),F=r(45593),P=r(61995);function S(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _(t){var e,r,_,k,A,I,R;(0,w.I)();var T,x,D=(T=(0,u.D)(E.y.WEB_PLAYER_DATA),x=2,function(t){if(Array.isArray(t))return t}(T)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(T,x)||function(t,e){if(t){if("string"==typeof t)return S(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S(t,e):void 0}}(T,x)||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.")}())[1],M=i.a.useBasicFetch(s.N.currentUser()),B=i.a.useBasicFetch((null===(e=M.data)||void 0===e?void 0:e.isAuthenticated)&&v.R.video(t.id),{optimize:!0});i.a.useBasicFetch((null===(r=M.data)||void 0===r?void 0:r.isAuthenticated)&&B.data?b.P.isFavourited(M.data.id,[B.data.id]):null);var L=i.a.useBasicFetch((null===(_=M.data)||void 0===_?void 0:_.isAuthenticated)&&d.k.createViewKey(t.id,p.f.MasterObject),{optimize:!0}),q=i.a.useBasicFetch(l.L.config()),U=(0,C.l)((null===(k=M.data)||void 0===k?void 0:k.isAuthenticated)&&(null===(A=B.data)||void 0===A?void 0:A.id));(0,o.o)(null===(I=B.data)||void 0===I?void 0:I.name),(0,y.b)(B,{private:F.F}),(0,h.v)(B,P._);var H=(0,m.c)(c.LocationContext.EmbeddedPlayer),V=H.setFavourite,N=H.canFavourite,Q=f.h.isFavouritedByCurrentUser(B.data),z=!(null===(R=M.data)||void 0===R?void 0:R.isAuthenticated)||(null==U?void 0:U.hasCompleted);return n.useEffect((function(){var t;if(B.data)return D("video",B.data),(null===(t=null==U?void 0:U.items)||void 0===t?void 0:t.length)&&D("pointsOfInterest",U.items),function(){D("video",null),D("shareId",null),D("pointsOfInterest",null)}}),[!!B.data,z]),M.hasCompleted&&!M.data.isAuthenticated?(a.Q.AppLinkHelper.trigger({application:O.O.EMBED,action:j.e.Embed.LCS_LOGIN,args:[t.id],params:t.queryParams}),n.createElement(n.Fragment,null)):L.data&&q.data&&B.data&&z?n.createElement(g.M,{viewKey:L.data.viewKey,playerApiUrl:q.data.playerApiUrl,webPlayerUrl:q.data.webPlayerUrl,imageCdnUrl:q.data.imageCdnUrl,videoId:B.data.id,embed:!0,showResources:!0,currentUser:M.data,canFavourite:N(B.data),favourited:Q,onClickFavourite:function(){var t=!Q;V(B.data,t)},getExternalLink:function(e){return a.Q.AppLinkHelper.getHref({application:O.O.DEFAULT,action:j.e.Default.PLAY_VIDEO,args:[t.id],params:{t:e.currentTime,a:!0}})},autoplay:"true"===t.queryParams.a,allowPip:!1}):n.createElement(n.Fragment,null)}},49948:(t,e,r)=>{r.d(e,{l:()=>f});var n=r(58566),o=r(20354),i=r(3010),a=r(45719),u=r(1575),c=r(22902),l=r(16714);function f(t){var e=(0,n.useDispatch)(),r=(0,c.T)().hasPermissions;function f(e){return u.R.pointsOfInterest(t,e)}r(l.C.StudentExperience)&&(t=null),(0,i.i)(!!t&&f,!!t&&function(t){o.a.getFetch(e)(f(t))});var s=(0,a.P)(!!t&&function(t){return f(t).key});return r(l.C.StudentExperience)?a.F:s}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[436],{25723:(e,t,r)=>{r.d(t,{m:()=>y});var n=r(1024),o=r(77268),i=r(23481),c=r(49985),a=r(25105),u=r(99940),l=r(79014);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=null,p=!1;function y(e){var t,r,y=(t=n.useState(s),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,i=[],c=!0,a=!1;try{for(r=r.call(e);!(c=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);c=!0);}catch(e){a=!0,o=e}finally{try{c||null==r.return||r.return()}finally{if(a)throw o}}return i}}(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.")}()),d=y[0],b=y[1];return s||p||(p=!0,(0,a.ajaxRequest)({resource:"/api/integrations/token/immersive-reader",type:u.k.GET,success:function(e){s=e,b(e),window.setTimeout((function(){s=null,p=!1}),9e5)},error:function(){}})),d?(e.title||(e.title=i.T.getPhrase("shared.immersiveReader","titleFallback")),n.createElement("span",{className:"".concat("nckQw"," ").concat(e.className||""),onClick:function(){l.q.isFunction(e.onLaunch)&&e.onLaunch(),c.k.logUserAction(e.analyticsData,e.analyticsOptions);var t={title:e.title,chunks:[{content:e.text,mimeType:e.html?"text/html":"text/plain"}]},r=d.subdomain,n=d.token,i={uiZIndex:5e3,onExit:function(){l.q.isFunction(e.onExit)&&e.onExit()}};o.launchAsync(n,r,t,i)}},n.createElement("svg",{viewBox:"0 0 40 37"},n.createElement("path",{d:"M37.4,0.9 L37.4,9.6 L35.4,9.6 L35.4,2.9 L24.4,2.9 C22.9,3.3 20,4.5 20,6 L20,17.2 L18,17.2 L18,6 C18,5 15.6,3.6 13.8,2.9 L2,2.9 L2,29 L12.4,29 L12.4,31 L0,31 L0,0.9 L14.1,0.9 L14.3,1 C15,1.2 17.5,2.2 18.9,3.7 C20.5,1.9 23.5,1.1 23.9,1 L24.1,1 L37.4,1 L37.4,0.9 Z",fill:"#000000"}),n.createElement("path",{d:"M27.4,37 L25.8,37 L18.4,29.4 L14,29.4 L14,21 L18.4,20.9 L26.1,13 L27.4,13 L27.4,37 Z M16,27.4 L19.2,27.4 L25.3,33.7 L25.3,16.6 L19.2,22.9 L15.9,22.9 L15.9,27.4 L16,27.4 Z",fill:"#0197F2"}),n.createElement("path",{d:"M31.3,32.7 L29.6,31.7 C29.6,31.7 31.7,28.3 31.7,25.2 C31.7,21.9 29.6,18.5 29.6,18.4 L31.3,17.4 C31.4,17.6 33.7,21.3 33.7,25.2 C33.7,28.8 31.4,32.6 31.3,32.7 Z",fill:"#0197F2"}),n.createElement("path",{d:"M36.4,36.2 L34.8,35 C34.8,35 38,30.8 38,25.2 C38,19.6 34.8,15.4 34.8,15.4 L36.4,14.2 C36.5,14.4 40,19 40,25.3 C40,31.5 36.5,36 36.4,36.2 Z",fill:"#0197F2"})))):n.createElement(n.Fragment,null)}},60051:(e,t,r)=>{var n;r.d(t,{f:()=>n}),function(e){e.Share="share",e.MasterObject="masterobject"}(n||(n={}))},47812:(e,t,r)=>{r.d(t,{k:()=>o});var n=r(99940),o={createViewKey:function(e,t,r){var o={mediaId:e.toString(),mediaIdType:t};return r&&(o.shareContextId=r),{url:"/api/player/create-view-key",key:"view:key:".concat(e,":").concat(t),type:n.k.POST,data:o,expiryTime:28800}}}},83921:(e,t,r)=>{r.d(t,{b:()=>M});var n=r(1024),o=r.n(n),i=r(81886),c=r(11025),a=r(33803),u=r(23481),l=r(64364);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function y(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 d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var b=u.T.encloseNamespace("shared.videoRatingAccess");function v(e){return c.M.isClip(e)?b("clipTitle"):c.M.isInteractive(e)?b("interactiveTitle"):b("videoTitle")}var h=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&&p(e,t)}(a,e);var t,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=d(n);if(o){var r=d(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return y(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,v(e))).video=e,t}return t=a,(r=[{key:"name",get:function(){return"VideoRatingAccessError"}},{key:"heading",get:function(){return v(this.video)}},{key:"description",get:function(){return e=this.video,c.M.isClip(e)?b("clipDescription"):c.M.isInteractive(e)?b("interactiveDescription"):b("videoDescription");var e}}])&&s(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(l.H);function m(e){return m="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},m(e)}function w(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function O(e,t){if(t&&("object"===m(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 L(e){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},L(e)}var j=u.T.encloseNamespace("shared.parentVideoDeletedError");function E(e){return c.M.isClip(e)?j("clipTitle"):c.M.isInteractive(e)?j("interactiveTitle"):j("videoTitle")}var S=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,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=L(n);if(o){var r=L(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return O(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,E(e))).video=e,t}return t=a,(r=[{key:"name",get:function(){return"ParentVideoDeletedError"}},{key:"heading",get:function(){return E(this.video)}},{key:"description",get:function(){return e=this.video,c.M.isClip(e)?j("clipDescription"):c.M.isInteractive(e)?j("interactiveDescription"):j("videoDescription");var e}}])&&w(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(l.H);function k(e){return k="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},k(e)}function R(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function C(e,t){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},C(e,t)}function P(e,t){if(t&&("object"===k(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 T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}var _=u.T.encloseNamespace("shared.videoNotInSubscriptionError"),I=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&&C(e,t)}(c,e);var t,r,n,o,i=(n=c,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=T(n);if(o){var r=T(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return P(this,e)});function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=i.call(this,"VideoNotInSubscriptionError")).video=e,t}return t=c,(r=[{key:"name",get:function(){return"VideoNotInSubscriptionError"}},{key:"heading",get:function(){return _("title")}},{key:"description",get:function(){return _("description")}}])&&R(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(l.H),x={"rating-not-allowed":h,"video-deleted":S,private:a.G,"clickview-private":I},M=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:x;o().useEffect((function(){var r;if(e.hasCompleted){var n=e.data;if(n){var o=c.M.getCanBeConsumed(n);if(!(null==o?void 0:o.value)){var a=Object.assign(Object.assign({},x),t)[null!==(r=null==o?void 0:o.reason)&&void 0!==r?r:"private"];i.Q.ErrorHelper.throw(new a(n))}}}}),[e.hasCompleted])}},93264:(e,t,r)=>{r.d(t,{T:()=>i});var n=r(39479),o=function(e,t,r){var n=t-(e=e.toString()).length;return n<=0?e:new Array(n+1).join(r)+e},i={ToDisplayDuration:function(e){if(!n.isNumber(e))return"";var t=new Date(e),r=t.getUTCHours(),i=o(t.getUTCMinutes(),2,"0"),c=o(t.getUTCSeconds(),2,"0");return r>0?"".concat(r,":").concat(i,":").concat(c):"".concat(i,":").concat(c)}}},6332:(e,t,r)=>{r.r(t),r.d(t,{EmbeddedInteractiveView:()=>E});var n=r(1024),o=r.n(n),i=r(17082),c=r(81886),a=r(20354),u=r(23049),l=r(39151),f=r(20768),s=r(47812),p=r(31949),y=r(60051),d=r(83921),b=r(65858),v=r(57052),h=r(44960),m=r(97291),w=r(14070);var g=r(86764),O=r(81514),L=r(45593),j=r(30439);function E(e){var t,r=o().useRef(),n=o().useRef(),E=a.a.useBasicFetch(l.L.config()),S=a.a.useBasicFetch(p.N.currentUser()),k=a.a.useBasicFetch(f.b.sharedInteractiveMetadata(e.objectId,e.shareId)),R=a.a.useBasicFetch(s.k.createViewKey(e.shareId,y.f.Share)),C=a.a.useBasicFetch(j.o.getShareObject(e.shareId),{optimize:!0}),P=o().useMemo((function(){return(0,i.oD)()}),[]);(0,d.b)(k,{private:L.F});var T=(0,O.V)(),_=T!==g.r.XL&&T!==g.r.XXL;return(0,u.o)(null===(t=k.data)||void 0===t?void 0:t.name),E.data&&R.data&&S.data&&C.data?o().createElement(o().Fragment,null,o().createElement(v.S,{viewKey:R.data.viewKey,imageApi:new URL(E.data.imageCdnUrl),playerApi:new URL(E.data.playerApiUrl),supportSiteUrl:new URL(E.data.supportSiteUrl),hotkeyElQuerySelector:"body",autoplay:"true"===e.queryParams.a,onReady:function(t){r.current=t,n.current=new h.M({player:t,video:k.data,analyticsLocation:b.LocationContext.EmbeddedPlayer,shareId:e.shareId})},currentUser:S.data,collectResults:S.data.isAuthenticated,shareId:e.shareId,embed:!0,className:"tuc_r",summaryPortalNode:P,getExternalLink:function(t){return c.Q.AppLinkHelper.getHref({application:m.O.SHARE,action:w.e.Share.VIEW_SHARE_LINK,args:[e.shareId],params:{t:t.currentTime,a:!0}})},onShowSummary:function(e){e?document.body.classList.remove("overflow-hidden"):document.body.classList.add("overflow-hidden")},sharerInstanceRegion:C.data.ownerInstanceRegion,enableImmersiveReader:!0}),o().createElement("div",{className:"p-3 ".concat(_?"container-fluid":"container")},o().createElement(i.t0,{node:P}))):o().createElement(o().Fragment,null)}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[6507],{60051:(t,e,r)=>{var n;r.d(e,{f:()=>n}),function(t){t.Share="share",t.MasterObject="masterobject"}(n||(n={}))},47812:(t,e,r)=>{r.d(e,{k:()=>o});var n=r(99940),o={createViewKey:function(t,e,r){var o={mediaId:t.toString(),mediaIdType:e};return r&&(o.shareContextId=r),{url:"/api/player/create-view-key",key:"view:key:".concat(t,":").concat(e),type:n.k.POST,data:o,expiryTime:28800}}}},3010:(t,e,r)=>{r.d(e,{i:()=>i});var n=r(1024),o=r(45719);function i(t,e){var r=t,i=e,a=(0,o.P)(t&&function(t){return r(t).key});return(0,n.useEffect)((function(){a&&a.shouldInitialFetch&&e&&i()}),[null==a?void 0:a.shouldInitialFetch,e]),(0,n.useEffect)((function(){a&&a.nextCursor&&!a.isFetching&&e&&i(a.nextCursor)}),[null==a?void 0:a.nextCursor,null==a?void 0:a.isFetching,e]),a}},45719:(t,e,r)=>{r.d(e,{F:()=>c,P:()=>l});var n=r(1024),o=r(58566),i=r(20354),a=r(79014);function u(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 c={items:[],shouldInitialFetch:!1,nextCursor:null,isFetching:!1,statusCode:r(50242).o.Ok,hasCompleted:!0,totalItems:0};function l(t,e,r){function c(t){if(t)return a.q.isFunction(e)?e(t):t.data}function l(t){var e,n;if(t)return r?r(t):null===(n=null===(e=t.pagination)||void 0===e?void 0:e.cursors)||void 0===n?void 0:n.next}return(0,o.useSelector)((0,n.useMemo)((function(){return function(e){if(a.q.isFunction(t)){for(var r=t,n=a.q.isFunction(t)&&r(),o=n&&i.a.getResponse(e,n),f=o&&o.isFetching,s=o&&o.statusCode,d=o&&o.hasCompleted,p=o&&o.shouldFetch,y=c(o&&o.data),v=l(o&&o.data),h=function(t){var e;if(t)return null===(e=t)||void 0===e?void 0:e.count}(o&&o.data);v&&(f=(o=i.a.getResponse(e,r(v))).isFetching,s=o.statusCode,d=o.hasCompleted,!o.shouldFetch);){var b=c(o.data);b&&y.push.apply(y,function(t){if(Array.isArray(t))return u(t)}(w=b)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(w)||function(t,e){if(t){if("string"==typeof t)return u(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)?u(t,e):void 0}}(w)||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.")}());var m=l(o.data);v=m===v?null:m}var g={shouldInitialFetch:p,items:y,nextCursor:v,isFetching:f,statusCode:s,hasCompleted:d};return"number"==typeof h&&(g.totalItems=h),g}var w}}),[t]))}},83921:(t,e,r)=>{r.d(e,{b:()=>x});var n=r(1024),o=r.n(n),i=r(81886),a=r(11025),u=r(33803),c=r(23481),l=r(64364);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function p(t,e){if(e&&("object"===f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}var v=c.T.encloseNamespace("shared.videoRatingAccess");function h(t){return a.M.isClip(t)?v("clipTitle"):a.M.isInteractive(t)?v("interactiveTitle"):v("videoTitle")}var b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(u,t);var e,r,n,o,i=(n=u,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=y(n);if(o){var r=y(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return p(this,t)});function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(e=i.call(this,h(t))).video=t,e}return e=u,(r=[{key:"name",get:function(){return"VideoRatingAccessError"}},{key:"heading",get:function(){return h(this.video)}},{key:"description",get:function(){return t=this.video,a.M.isClip(t)?v("clipDescription"):a.M.isInteractive(t)?v("interactiveDescription"):v("videoDescription");var t}}])&&s(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(l.H);function m(t){return m="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},m(t)}function g(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function w(t,e){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},w(t,e)}function O(t,e){if(e&&("object"===m(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function j(t){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},j(t)}var S=c.T.encloseNamespace("shared.parentVideoDeletedError");function I(t){return a.M.isClip(t)?S("clipTitle"):a.M.isInteractive(t)?S("interactiveTitle"):S("videoTitle")}var P=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&w(t,e)}(u,t);var e,r,n,o,i=(n=u,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=j(n);if(o){var r=j(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return O(this,t)});function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(e=i.call(this,I(t))).video=t,e}return e=u,(r=[{key:"name",get:function(){return"ParentVideoDeletedError"}},{key:"heading",get:function(){return I(this.video)}},{key:"description",get:function(){return t=this.video,a.M.isClip(t)?S("clipDescription"):a.M.isInteractive(t)?S("interactiveDescription"):S("videoDescription");var t}}])&&g(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(l.H);function C(t){return C="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},C(t)}function E(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function F(t,e){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},F(t,e)}function _(t,e){if(e&&("object"===C(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function k(t){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},k(t)}var R=c.T.encloseNamespace("shared.videoNotInSubscriptionError"),A=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&F(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=k(n);if(o){var r=k(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return _(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,"VideoNotInSubscriptionError")).video=t,e}return e=a,(r=[{key:"name",get:function(){return"VideoNotInSubscriptionError"}},{key:"heading",get:function(){return R("title")}},{key:"description",get:function(){return R("description")}}])&&E(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(l.H),T={"rating-not-allowed":b,"video-deleted":P,private:u.G,"clickview-private":A},x=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T;o().useEffect((function(){var r;if(t.hasCompleted){var n=t.data;if(n){var o=a.M.getCanBeConsumed(n);if(!(null==o?void 0:o.value)){var u=Object.assign(Object.assign({},T),e)[null!==(r=null==o?void 0:o.reason)&&void 0!==r?r:"private"];i.Q.ErrorHelper.throw(new u(n))}}}}),[t.hasCompleted])}},56507:(t,e,r)=>{r.r(e),r.d(e,{EmbeddedVideoView:()=>E});var n=r(1024),o=r(23049),i=r(20354),a=r(81886),u=r(2948),c=r(39151),l=r(1643),f=r(31949),s=r(47812),d=r(60051),p=r(83921),y=r(65858),v=r(97037),h=r(13349),b=r(21972),m=r(97291),g=r(14070),w=r(86702),O=r(1575),j=r(63419),S=r(49948),I=r(45593),P=r(30439);function C(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function E(t){var e,r,E,F,_;(0,b.I)();var k,R,A=(k=(0,u.D)(w.y.WEB_PLAYER_DATA),R=2,function(t){if(Array.isArray(t))return t}(k)||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,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(k,R)||function(t,e){if(t){if("string"==typeof t)return C(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)?C(t,e):void 0}}(k,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.")}())[1],T=i.a.useBasicFetch(f.N.currentUser()),x=i.a.useBasicFetch(O.R.sharedVideo(t.objectId,t.shareId));i.a.useBasicFetch((null===(e=T.data)||void 0===e?void 0:e.isAuthenticated)&&x.data?j.P.isFavourited(T.data.id,[x.data.id]):null);var B=i.a.useBasicFetch(s.k.createViewKey(t.shareId,d.f.Share)),D=i.a.useBasicFetch(c.L.config()),M=i.a.useBasicFetch(P.o.getShareObject(t.shareId),{optimize:!0}),U=(0,S.l)((null===(r=T.data)||void 0===r?void 0:r.isAuthenticated)&&(null===(E=x.data)||void 0===E?void 0:E.id));(0,o.o)(null===(F=x.data)||void 0===F?void 0:F.name),(0,p.b)(x,{private:I.F});var V=(0,v.c)(y.LocationContext.EmbeddedPlayer),H=V.setFavourite,N=V.canFavourite,L=l.h.isFavouritedByCurrentUser(x.data),K=!(null===(_=T.data)||void 0===_?void 0:_.isAuthenticated)||(null==U?void 0:U.hasCompleted);return n.useEffect((function(){var e;if(x.data&&M.data)return A("video",x.data),A("shareId",t.shareId),M.data.ownerInstanceRegion&&A("sharerInstanceRegion",M.data.ownerInstanceRegion),(null===(e=null==U?void 0:U.items)||void 0===e?void 0:e.length)&&A("pointsOfInterest",U.items),function(){A("video",null),A("shareId",null),A("pointsOfInterest",null)}}),[!!x.data,t.shareId,!!M.data,K]),B.data&&D.data&&x.data&&K?n.createElement(h.M,{viewKey:B.data.viewKey,playerApiUrl:D.data.playerApiUrl,webPlayerUrl:D.data.webPlayerUrl,imageCdnUrl:D.data.imageCdnUrl,videoId:x.data.id,embed:!0,showResources:!0,currentUser:T.data,canFavourite:N(x.data),favourited:L,onClickFavourite:function(){var t=!L;H(x.data,t)},getExternalLink:function(e){return a.Q.AppLinkHelper.getHref({application:m.O.SHARE,action:g.e.Share.VIEW_SHARE_LINK,args:[t.shareId],params:{t:e.currentTime,a:!0}})},autoplay:"true"===t.queryParams.a,allowPip:!1}):n.createElement(n.Fragment,null)}},49948:(t,e,r)=>{r.d(e,{l:()=>f});var n=r(58566),o=r(20354),i=r(3010),a=r(45719),u=r(1575),c=r(22902),l=r(16714);function f(t){var e=(0,n.useDispatch)(),r=(0,c.T)().hasPermissions;function f(e){return u.R.pointsOfInterest(t,e)}r(l.C.StudentExperience)&&(t=null),(0,i.i)(!!t&&f,!!t&&function(t){o.a.getFetch(e)(f(t))});var s=(0,a.P)(!!t&&function(t){return f(t).key});return r(l.C.StudentExperience)?a.F:s}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[7888],{60051:(e,t,r)=>{var n;r.d(t,{f:()=>n}),function(e){e.Share="share",e.MasterObject="masterobject"}(n||(n={}))},47812:(e,t,r)=>{r.d(t,{k:()=>o});var n=r(99940),o={createViewKey:function(e,t,r){var o={mediaId:e.toString(),mediaIdType:t};return r&&(o.shareContextId=r),{url:"/api/player/create-view-key",key:"view:key:".concat(e,":").concat(t),type:n.k.POST,data:o,expiryTime:28800}}}},83921:(e,t,r)=>{r.d(t,{b:()=>D});var n=r(1024),o=r.n(n),i=r(81886),a=r(11025),c=r(33803),u=r(23481),f=r(64364);function l(e){return l="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},l(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function y(e,t){if(t&&("object"===l(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 d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var b=u.T.encloseNamespace("shared.videoRatingAccess");function v(e){return a.M.isClip(e)?b("clipTitle"):a.M.isInteractive(e)?b("interactiveTitle"):b("videoTitle")}var h=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&&p(e,t)}(c,e);var t,r,n,o,i=(n=c,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=d(n);if(o){var r=d(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return y(this,e)});function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=i.call(this,v(e))).video=e,t}return t=c,(r=[{key:"name",get:function(){return"VideoRatingAccessError"}},{key:"heading",get:function(){return v(this.video)}},{key:"description",get:function(){return e=this.video,a.M.isClip(e)?b("clipDescription"):a.M.isInteractive(e)?b("interactiveDescription"):b("videoDescription");var e}}])&&s(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(f.H);function m(e){return m="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},m(e)}function w(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}function g(e,t){if(t&&("object"===m(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 j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}var P=u.T.encloseNamespace("shared.parentVideoDeletedError");function S(e){return a.M.isClip(e)?P("clipTitle"):a.M.isInteractive(e)?P("interactiveTitle"):P("videoTitle")}var E=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&&O(e,t)}(c,e);var t,r,n,o,i=(n=c,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=j(n);if(o){var r=j(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return g(this,e)});function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=i.call(this,S(e))).video=e,t}return t=c,(r=[{key:"name",get:function(){return"ParentVideoDeletedError"}},{key:"heading",get:function(){return S(this.video)}},{key:"description",get:function(){return e=this.video,a.M.isClip(e)?P("clipDescription"):a.M.isInteractive(e)?P("interactiveDescription"):P("videoDescription");var e}}])&&w(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(f.H);function _(e){return _="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},_(e)}function k(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function R(e,t){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},R(e,t)}function I(e,t){if(t&&("object"===_(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 T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}var C=u.T.encloseNamespace("shared.videoNotInSubscriptionError"),A=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&&R(e,t)}(a,e);var t,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=T(n);if(o){var r=T(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return I(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,"VideoNotInSubscriptionError")).video=e,t}return t=a,(r=[{key:"name",get:function(){return"VideoNotInSubscriptionError"}},{key:"heading",get:function(){return C("title")}},{key:"description",get:function(){return C("description")}}])&&k(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(f.H),B={"rating-not-allowed":h,"video-deleted":E,private:c.G,"clickview-private":A},D=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:B;o().useEffect((function(){var r;if(e.hasCompleted){var n=e.data;if(n){var o=a.M.getCanBeConsumed(n);if(!(null==o?void 0:o.value)){var c=Object.assign(Object.assign({},B),t)[null!==(r=null==o?void 0:o.reason)&&void 0!==r?r:"private"];i.Q.ErrorHelper.throw(new c(n))}}}}),[e.hasCompleted])}},77888:(e,t,r)=>{r.r(t),r.d(t,{EmbeddedClipView:()=>S});var n=r(1024),o=r(81886),i=r(20354),a=r(23049),c=r(2948),u=r(39151),f=r(65858),l=r(47812),s=r(60051),p=r(31949),y=r(1643),d=r(83921),b=r(86702),v=r(43012),h=r(13349),m=r(97291),w=r(14070),O=r(97037),g=r(45593),j=r(30439);function P(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}function S(e){var t,r,S,E=(r=(0,c.D)(b.y.WEB_PLAYER_DATA),S=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}}(r,S)||function(e,t){if(e){if("string"==typeof e)return P(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)?P(e,t):void 0}}(r,S)||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.")}()),_=E[0],k=E[1],R=i.a.useBasicFetch(p.N.currentUser()),I=i.a.useBasicFetch(!!R.data&&v.e.sharedClip(e.objectId,e.shareId)),T=i.a.useBasicFetch(u.L.config()),C=i.a.useBasicFetch(l.k.createViewKey(e.shareId,s.f.Share)),A=i.a.useBasicFetch(j.o.getShareObject(e.shareId),{optimize:!0});(0,a.o)(null===(t=I.data)||void 0===t?void 0:t.name),(0,d.b)(I,{private:g.F});var B=y.h.isFavouritedByCurrentUser(I.data),D=(0,O.c)(f.LocationContext.EmbeddedPlayer),F=D.setFavourite,M=D.canFavourite;return n.useEffect((function(){I.data&&C.data&&A.data&&(k("video",I.data),k("viewKey",C.data),k("shareId",e.shareId),A.data.ownerInstanceRegion&&k("sharerInstanceRegion",A.data.ownerInstanceRegion))}),[!!I.data,!!C.data,!!A.data]),(null==_?void 0:_.viewKey)&&(null==_?void 0:_.video)&&T.data?n.createElement(h.M,{viewKey:C.data.viewKey,playerApiUrl:T.data.playerApiUrl,webPlayerUrl:T.data.webPlayerUrl,imageCdnUrl:T.data.imageCdnUrl,videoId:I.data.id,embed:!0,showResources:!0,currentUser:R.data,canFavourite:M(I.data),favourited:B,onClickFavourite:function(){var e=!B;F(I.data,e)},getExternalLink:function(t){return o.Q.AppLinkHelper.getHref({application:m.O.SHARE,action:w.e.Share.VIEW_SHARE_LINK,args:[e.shareId],params:{t:t.currentTime,a:!0}})},autoplay:"true"===e.queryParams.a,allowPip:!1}):n.createElement(n.Fragment,null)}}}]);