@clickview/lite 0.18.0 → 0.18.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 (172) hide show
  1. package/.eslintrc.json +2 -2
  2. package/dist/bundles.json +1 -1
  3. package/dist/scripts/{1200-0b2df6e770-lite.chunk.js → 1200-44a0a9f0e0-lite.chunk.js} +1 -1
  4. package/dist/scripts/{1592-14e9f658fd-lite.chunk.js → 1592-6f78f2b9a3-lite.chunk.js} +1 -1
  5. package/dist/scripts/1684-eb56af9845-lite.chunk.js +2 -0
  6. package/dist/scripts/{2097-1fec9b4c86-lite.chunk.js → 2097-9b51da3b04-lite.chunk.js} +1 -1
  7. package/dist/scripts/{3667-b8ef9efadf-lite.chunk.js → 3667-60e5161e97-lite.chunk.js} +1 -1
  8. package/dist/scripts/{4617-3530a84536-lite.chunk.js → 4617-c9f9751bee-lite.chunk.js} +1 -1
  9. package/dist/scripts/{5081-dab1f6cc6c-lite.chunk.js → 5081-526e2e79e3-lite.chunk.js} +1 -1
  10. package/dist/scripts/{5875-679a563954-lite.chunk.js → 5875-a911a9db8c-lite.chunk.js} +1 -1
  11. package/dist/scripts/{6736-cffe5aabea-lite.chunk.js → 6736-326f546fb8-lite.chunk.js} +1 -1
  12. package/dist/scripts/{6801-a381d427d2-lite.chunk.js → 6801-bf08e9129d-lite.chunk.js} +1 -1
  13. package/dist/scripts/7318-2624f3e7a8-lite.chunk.js +1 -1
  14. package/dist/scripts/{7416-1d038cbc54-lite.chunk.js → 7416-1aa6580a1b-lite.chunk.js} +1 -1
  15. package/dist/scripts/{8323-abba3829a3-lite.chunk.js → 8323-199575a310-lite.chunk.js} +1 -1
  16. package/dist/scripts/{9478-98989f923c-lite.chunk.js → 9478-1cddab324e-lite.chunk.js} +1 -1
  17. package/dist/scripts/bundle-2af583dba9.min.js +2 -0
  18. package/jest.config.js +11 -11
  19. package/package.json +62 -62
  20. package/typings/libs/CVEvents.d.ts +12 -12
  21. package/typings/libs/CVLanguages.d.ts +24 -24
  22. package/typings/libs/backbone.validation.d.ts +99 -99
  23. package/typings/libs/cloneDeep.d.ts +4 -4
  24. package/typings/libs/cookiesjs.d.ts +25 -25
  25. package/typings/libs/draft-convert.d.ts +3 -3
  26. package/typings/libs/google-api.d.ts +93 -93
  27. package/typings/libs/intersection-observer.d.ts +82 -82
  28. package/typings/libs/microsoft-teams.d.ts +2 -2
  29. package/typings/libs/react-table-config.d.ts +138 -138
  30. package/typings/libs/trackjs.d.ts +2 -2
  31. package/typings/libs/videojs-contrib-quality-levels.d.ts +28 -28
  32. package/typings/utils/imports.d.ts +13 -13
  33. package/dist/scripts/1684-4dae287426-lite.chunk.js +0 -2
  34. package/dist/scripts/bundle-e0931c53b5.min.js +0 -2
  35. /package/dist/scripts/{1200-0b2df6e770-lite.chunk.js.LICENSE.txt → 1200-44a0a9f0e0-lite.chunk.js.LICENSE.txt} +0 -0
  36. /package/dist/scripts/{1219-9157179bdd-lite.chunk.js → 1219-08053793d3-lite.chunk.js} +0 -0
  37. /package/dist/scripts/{1285-4501141c29-lite.chunk.js → 1285-f6ac7e5387-lite.chunk.js} +0 -0
  38. /package/dist/scripts/{1291-70427d0f12-lite.chunk.js → 1291-24b5a1566e-lite.chunk.js} +0 -0
  39. /package/dist/scripts/{1518-eed509b672-lite.chunk.js → 1518-0cfafd2c14-lite.chunk.js} +0 -0
  40. /package/dist/scripts/{1592-14e9f658fd-lite.chunk.js.LICENSE.txt → 1592-6f78f2b9a3-lite.chunk.js.LICENSE.txt} +0 -0
  41. /package/dist/scripts/{1684-4dae287426-lite.chunk.js.LICENSE.txt → 1684-eb56af9845-lite.chunk.js.LICENSE.txt} +0 -0
  42. /package/dist/scripts/{1725-2b1d9c5266-lite.chunk.js → 1725-223bf6f5b3-lite.chunk.js} +0 -0
  43. /package/dist/scripts/{1792-d40f895c3a-lite.chunk.js → 1792-2db7496827-lite.chunk.js} +0 -0
  44. /package/dist/scripts/{1863-2b2ba6802e-lite.chunk.js → 1863-299c4ea36a-lite.chunk.js} +0 -0
  45. /package/dist/scripts/{1891-6be69177b3-lite.chunk.js → 1891-d59f732615-lite.chunk.js} +0 -0
  46. /package/dist/scripts/{1924-91d2ce3025-lite.chunk.js → 1924-edb024e516-lite.chunk.js} +0 -0
  47. /package/dist/scripts/{209-539b6299c6-lite.chunk.js → 209-954826da04-lite.chunk.js} +0 -0
  48. /package/dist/scripts/{2097-1fec9b4c86-lite.chunk.js.LICENSE.txt → 2097-9b51da3b04-lite.chunk.js.LICENSE.txt} +0 -0
  49. /package/dist/scripts/{2135-e846e647f6-lite.chunk.js → 2135-249d97ca15-lite.chunk.js} +0 -0
  50. /package/dist/scripts/{2215-2d2ba45a81-lite.chunk.js → 2215-67b5894e65-lite.chunk.js} +0 -0
  51. /package/dist/scripts/{2229-a17489a3b1-lite.chunk.js → 2229-0285f90484-lite.chunk.js} +0 -0
  52. /package/dist/scripts/{227-47d9d69b18-lite.chunk.js → 227-e1e6911d36-lite.chunk.js} +0 -0
  53. /package/dist/scripts/{2279-673600a92b-lite.chunk.js → 2279-335f43ea35-lite.chunk.js} +0 -0
  54. /package/dist/scripts/{2303-c8806a714e-lite.chunk.js → 2303-d121a21e47-lite.chunk.js} +0 -0
  55. /package/dist/scripts/{2452-4a1c9e0123-lite.chunk.js → 2452-f1ccaff72b-lite.chunk.js} +0 -0
  56. /package/dist/scripts/{249-45f1f74613-lite.chunk.js → 249-ceb82b9d05-lite.chunk.js} +0 -0
  57. /package/dist/scripts/{2838-b4ee79c6d1-lite.chunk.js → 2838-d332fc8119-lite.chunk.js} +0 -0
  58. /package/dist/scripts/{2841-2551475208-lite.chunk.js → 2841-6ae6bfa58c-lite.chunk.js} +0 -0
  59. /package/dist/scripts/{291-dc43ed44d2-lite.chunk.js → 291-c189f97df1-lite.chunk.js} +0 -0
  60. /package/dist/scripts/{2937-dc0a9cef5b-lite.chunk.js → 2937-a3edd0333c-lite.chunk.js} +0 -0
  61. /package/dist/scripts/{2966-a4d65b2891-lite.chunk.js → 2966-510ab402e6-lite.chunk.js} +0 -0
  62. /package/dist/scripts/{3007-ff224c6b4a-lite.chunk.js → 3007-67c669974c-lite.chunk.js} +0 -0
  63. /package/dist/scripts/{3012-385bc14160-lite.chunk.js → 3012-7e5e8f11aa-lite.chunk.js} +0 -0
  64. /package/dist/scripts/{3019-121abfc7d3-lite.chunk.js → 3019-1c6e41272b-lite.chunk.js} +0 -0
  65. /package/dist/scripts/{3020-9aa88e14ad-lite.chunk.js → 3020-83da4073df-lite.chunk.js} +0 -0
  66. /package/dist/scripts/{3108-4e2349fae5-lite.chunk.js → 3108-eab647eb42-lite.chunk.js} +0 -0
  67. /package/dist/scripts/{3171-48a107d621-lite.chunk.js → 3171-20d8a113c7-lite.chunk.js} +0 -0
  68. /package/dist/scripts/{3216-029fc03dc3-lite.chunk.js → 3216-b1d4c2ded5-lite.chunk.js} +0 -0
  69. /package/dist/scripts/{3231-8036c953ca-lite.chunk.js → 3231-18bd8ed756-lite.chunk.js} +0 -0
  70. /package/dist/scripts/{3237-f976897749-lite.chunk.js → 3237-0dd3509b7d-lite.chunk.js} +0 -0
  71. /package/dist/scripts/{3240-7bc528811a-lite.chunk.js → 3240-4aa039123b-lite.chunk.js} +0 -0
  72. /package/dist/scripts/{3285-f85056c04f-lite.chunk.js → 3285-2d771421df-lite.chunk.js} +0 -0
  73. /package/dist/scripts/{3468-2f385ce0dd-lite.chunk.js → 3468-00730325f5-lite.chunk.js} +0 -0
  74. /package/dist/scripts/{3533-1bfb5747d2-lite.chunk.js → 3533-b438695633-lite.chunk.js} +0 -0
  75. /package/dist/scripts/{3626-f5fa249209-lite.chunk.js → 3626-34c536c31f-lite.chunk.js} +0 -0
  76. /package/dist/scripts/{3667-b8ef9efadf-lite.chunk.js.LICENSE.txt → 3667-60e5161e97-lite.chunk.js.LICENSE.txt} +0 -0
  77. /package/dist/scripts/{3754-fa7f42936a-lite.chunk.js → 3754-e5c26ec175-lite.chunk.js} +0 -0
  78. /package/dist/scripts/{3787-6a23e0bbc6-lite.chunk.js → 3787-8696fb6568-lite.chunk.js} +0 -0
  79. /package/dist/scripts/{389-9943206114-lite.chunk.js → 389-6e87daacd6-lite.chunk.js} +0 -0
  80. /package/dist/scripts/{3948-908c532b57-lite.chunk.js → 3948-82e6ae26b5-lite.chunk.js} +0 -0
  81. /package/dist/scripts/{4113-220d0e945f-lite.chunk.js → 4113-65189106ef-lite.chunk.js} +0 -0
  82. /package/dist/scripts/{4182-554dab5f52-lite.chunk.js → 4182-964678b7e2-lite.chunk.js} +0 -0
  83. /package/dist/scripts/{4343-62c6b29bfc-lite.chunk.js → 4343-9f273ff584-lite.chunk.js} +0 -0
  84. /package/dist/scripts/{4380-250987f344-lite.chunk.js → 4380-1859fe8b27-lite.chunk.js} +0 -0
  85. /package/dist/scripts/{4453-c859261c08-lite.chunk.js → 4453-b079bb8254-lite.chunk.js} +0 -0
  86. /package/dist/scripts/{4484-934cafe764-lite.chunk.js → 4484-906d80186e-lite.chunk.js} +0 -0
  87. /package/dist/scripts/{4519-ef4a945c19-lite.chunk.js → 4519-bd2f8a73e6-lite.chunk.js} +0 -0
  88. /package/dist/scripts/{4541-8a5f2fb33e-lite.chunk.js → 4541-537b1dfac2-lite.chunk.js} +0 -0
  89. /package/dist/scripts/{4559-10942d0d49-lite.chunk.js → 4559-851dd0c8de-lite.chunk.js} +0 -0
  90. /package/dist/scripts/{4722-02ba508014-lite.chunk.js → 4722-f57c243f7d-lite.chunk.js} +0 -0
  91. /package/dist/scripts/{482-b797830da6-lite.chunk.js → 482-7d8dd7275c-lite.chunk.js} +0 -0
  92. /package/dist/scripts/{4893-81662a0c1c-lite.chunk.js → 4893-553e8ae85e-lite.chunk.js} +0 -0
  93. /package/dist/scripts/{5081-dab1f6cc6c-lite.chunk.js.LICENSE.txt → 5081-526e2e79e3-lite.chunk.js.LICENSE.txt} +0 -0
  94. /package/dist/scripts/{5606-a95d7bec15-lite.chunk.js → 5606-0d0883a7f9-lite.chunk.js} +0 -0
  95. /package/dist/scripts/{5875-679a563954-lite.chunk.js.LICENSE.txt → 5875-a911a9db8c-lite.chunk.js.LICENSE.txt} +0 -0
  96. /package/dist/scripts/{5877-ffdafeda59-lite.chunk.js → 5877-113f809304-lite.chunk.js} +0 -0
  97. /package/dist/scripts/{5914-e3beb91ffc-lite.chunk.js → 5914-ee40d342b9-lite.chunk.js} +0 -0
  98. /package/dist/scripts/{5956-eb98106bf1-lite.chunk.js → 5956-83b2378ed6-lite.chunk.js} +0 -0
  99. /package/dist/scripts/{5974-c26980f894-lite.chunk.js → 5974-14c51a4a25-lite.chunk.js} +0 -0
  100. /package/dist/scripts/{6061-86607dadc7-lite.chunk.js → 6061-9a158302e7-lite.chunk.js} +0 -0
  101. /package/dist/scripts/{6080-f3c955754f-lite.chunk.js → 6080-599549e042-lite.chunk.js} +0 -0
  102. /package/dist/scripts/{614-9798c3a425-lite.chunk.js → 614-06b5688fbd-lite.chunk.js} +0 -0
  103. /package/dist/scripts/{6158-48f018bbdb-lite.chunk.js → 6158-9387aa7bcb-lite.chunk.js} +0 -0
  104. /package/dist/scripts/{6263-131d7f5c14-lite.chunk.js → 6263-de2ee52917-lite.chunk.js} +0 -0
  105. /package/dist/scripts/{6274-87d8a27451-lite.chunk.js → 6274-62cfc1e395-lite.chunk.js} +0 -0
  106. /package/dist/scripts/{6290-f35b8451f4-lite.chunk.js → 6290-cb324b904a-lite.chunk.js} +0 -0
  107. /package/dist/scripts/{6368-3400596edf-lite.chunk.js → 6368-e86d8d042d-lite.chunk.js} +0 -0
  108. /package/dist/scripts/{6369-c0bddb6f53-lite.chunk.js → 6369-67cf2bc0c0-lite.chunk.js} +0 -0
  109. /package/dist/scripts/{6370-62127696d9-lite.chunk.js → 6370-8bbe6fa78d-lite.chunk.js} +0 -0
  110. /package/dist/scripts/{6381-df33ada1f6-lite.chunk.js → 6381-eb5890d771-lite.chunk.js} +0 -0
  111. /package/dist/scripts/{6450-6016b12fa6-lite.chunk.js → 6450-3258db594e-lite.chunk.js} +0 -0
  112. /package/dist/scripts/{6465-5781dde945-lite.chunk.js → 6465-1608ceeb17-lite.chunk.js} +0 -0
  113. /package/dist/scripts/{6480-2a4e357bf8-lite.chunk.js → 6480-5d694f31a9-lite.chunk.js} +0 -0
  114. /package/dist/scripts/{6493-331029d2a9-lite.chunk.js → 6493-ae21e8927f-lite.chunk.js} +0 -0
  115. /package/dist/scripts/{6507-a22e294394-lite.chunk.js → 6507-1e66ea6ad9-lite.chunk.js} +0 -0
  116. /package/dist/scripts/{6604-3d09473f89-lite.chunk.js → 6604-0872ee892d-lite.chunk.js} +0 -0
  117. /package/dist/scripts/{6689-9959def9cb-lite.chunk.js → 6689-40f803dcb5-lite.chunk.js} +0 -0
  118. /package/dist/scripts/{6725-4681caad1e-lite.chunk.js → 6725-6a02a8aa52-lite.chunk.js} +0 -0
  119. /package/dist/scripts/{6736-cffe5aabea-lite.chunk.js.LICENSE.txt → 6736-326f546fb8-lite.chunk.js.LICENSE.txt} +0 -0
  120. /package/dist/scripts/{6821-c2c09e0258-lite.chunk.js → 6821-aa942da9f9-lite.chunk.js} +0 -0
  121. /package/dist/scripts/{6873-dd7240df43-lite.chunk.js → 6873-cbc488c212-lite.chunk.js} +0 -0
  122. /package/dist/scripts/{7007-c677dd3033-lite.chunk.js → 7007-48677c4bf8-lite.chunk.js} +0 -0
  123. /package/dist/scripts/{7045-aa30ff4722-lite.chunk.js → 7045-219ee73151-lite.chunk.js} +0 -0
  124. /package/dist/scripts/{7056-3d009caae3-lite.chunk.js → 7056-b3534ce4f4-lite.chunk.js} +0 -0
  125. /package/dist/scripts/{7115-04ab64ed64-lite.chunk.js → 7115-5d40008425-lite.chunk.js} +0 -0
  126. /package/dist/scripts/{7128-79f02bfd39-lite.chunk.js → 7128-a24bcfb120-lite.chunk.js} +0 -0
  127. /package/dist/scripts/{7172-8ad03692bd-lite.chunk.js → 7172-e8dce1ea68-lite.chunk.js} +0 -0
  128. /package/dist/scripts/{7178-87d1bdf5de-lite.chunk.js → 7178-3bac7129ae-lite.chunk.js} +0 -0
  129. /package/dist/scripts/{7307-ddf40c08db-lite.chunk.js → 7307-3b5ad30eae-lite.chunk.js} +0 -0
  130. /package/dist/scripts/{7332-8f3a5b8ef5-lite.chunk.js → 7332-0da13c2b90-lite.chunk.js} +0 -0
  131. /package/dist/scripts/{7407-a65ab04887-lite.chunk.js → 7407-8df799eb28-lite.chunk.js} +0 -0
  132. /package/dist/scripts/{7416-1d038cbc54-lite.chunk.js.LICENSE.txt → 7416-1aa6580a1b-lite.chunk.js.LICENSE.txt} +0 -0
  133. /package/dist/scripts/{7490-64bfa05bc7-lite.chunk.js → 7490-efaf808928-lite.chunk.js} +0 -0
  134. /package/dist/scripts/{7506-09a70fbf9f-lite.chunk.js → 7506-68ed3f4e65-lite.chunk.js} +0 -0
  135. /package/dist/scripts/{7708-cd0bc87fee-lite.chunk.js → 7708-63a3fa0f58-lite.chunk.js} +0 -0
  136. /package/dist/scripts/{7737-38869c947f-lite.chunk.js → 7737-1cda4795f6-lite.chunk.js} +0 -0
  137. /package/dist/scripts/{7756-2528a5880e-lite.chunk.js → 7756-f7531db813-lite.chunk.js} +0 -0
  138. /package/dist/scripts/{7767-7daefc5fac-lite.chunk.js → 7767-afdf49df83-lite.chunk.js} +0 -0
  139. /package/dist/scripts/{7855-18edc1946f-lite.chunk.js → 7855-74bda8e11e-lite.chunk.js} +0 -0
  140. /package/dist/scripts/{7888-77a06a9360-lite.chunk.js → 7888-aa0c52f105-lite.chunk.js} +0 -0
  141. /package/dist/scripts/{7925-088d8201ec-lite.chunk.js → 7925-1ed74c737d-lite.chunk.js} +0 -0
  142. /package/dist/scripts/{7939-640b0a3ed9-lite.chunk.js → 7939-3ede3264b8-lite.chunk.js} +0 -0
  143. /package/dist/scripts/{7967-744904c147-lite.chunk.js → 7967-1cf0440118-lite.chunk.js} +0 -0
  144. /package/dist/scripts/{8025-ccb49cd4aa-lite.chunk.js → 8025-ab2b2ecd89-lite.chunk.js} +0 -0
  145. /package/dist/scripts/{8038-f21a61b1ff-lite.chunk.js → 8038-656c52aed1-lite.chunk.js} +0 -0
  146. /package/dist/scripts/{8046-787309872c-lite.chunk.js → 8046-799f379c70-lite.chunk.js} +0 -0
  147. /package/dist/scripts/{8056-2ab549ad96-lite.chunk.js → 8056-80e7db3176-lite.chunk.js} +0 -0
  148. /package/dist/scripts/{8114-690a8c5eb7-lite.chunk.js → 8114-e8304a361b-lite.chunk.js} +0 -0
  149. /package/dist/scripts/{8187-c8ec1f5842-lite.chunk.js → 8187-1d5b309755-lite.chunk.js} +0 -0
  150. /package/dist/scripts/{823-15eec091e8-lite.chunk.js → 823-4dcac83167-lite.chunk.js} +0 -0
  151. /package/dist/scripts/{8252-25f5dcecbf-lite.chunk.js → 8252-ced0fbf148-lite.chunk.js} +0 -0
  152. /package/dist/scripts/{8323-abba3829a3-lite.chunk.js.LICENSE.txt → 8323-199575a310-lite.chunk.js.LICENSE.txt} +0 -0
  153. /package/dist/scripts/{8377-02852ec841-lite.chunk.js → 8377-bb0ba0fe7b-lite.chunk.js} +0 -0
  154. /package/dist/scripts/{8466-6fc579e8a5-lite.chunk.js → 8466-cde97fcd2d-lite.chunk.js} +0 -0
  155. /package/dist/scripts/{849-018a6e85e8-lite.chunk.js → 849-71daf83b40-lite.chunk.js} +0 -0
  156. /package/dist/scripts/{8801-457b1ca8e1-lite.chunk.js → 8801-572461a6a4-lite.chunk.js} +0 -0
  157. /package/dist/scripts/{8868-f58dea6bba-lite.chunk.js → 8868-8545161f5d-lite.chunk.js} +0 -0
  158. /package/dist/scripts/{8944-d290828f67-lite.chunk.js → 8944-c246dd84f8-lite.chunk.js} +0 -0
  159. /package/dist/scripts/{8955-92a584db62-lite.chunk.js → 8955-cb8d4a5b4c-lite.chunk.js} +0 -0
  160. /package/dist/scripts/{9035-0eb175113c-lite.chunk.js → 9035-4a3b814c3b-lite.chunk.js} +0 -0
  161. /package/dist/scripts/{9060-2846accc15-lite.chunk.js → 9060-d956071902-lite.chunk.js} +0 -0
  162. /package/dist/scripts/{9107-2920fc271c-lite.chunk.js → 9107-ad8c75ac90-lite.chunk.js} +0 -0
  163. /package/dist/scripts/{9154-6acfcb21e5-lite.chunk.js → 9154-1b9717548e-lite.chunk.js} +0 -0
  164. /package/dist/scripts/{9242-5a2d447f21-lite.chunk.js → 9242-1cddf1b075-lite.chunk.js} +0 -0
  165. /package/dist/scripts/{9455-15f92cc7cf-lite.chunk.js → 9455-6f2d578ea3-lite.chunk.js} +0 -0
  166. /package/dist/scripts/{9478-98989f923c-lite.chunk.js.LICENSE.txt → 9478-1cddab324e-lite.chunk.js.LICENSE.txt} +0 -0
  167. /package/dist/scripts/{9552-4f26e4c573-lite.chunk.js → 9552-91c4807c56-lite.chunk.js} +0 -0
  168. /package/dist/scripts/{9686-f9ddd9a8ee-lite.chunk.js → 9686-43c30eec32-lite.chunk.js} +0 -0
  169. /package/dist/scripts/{969-d5feffbce0-lite.chunk.js → 969-1a437472be-lite.chunk.js} +0 -0
  170. /package/dist/scripts/{9767-56c1eec3d8-lite.chunk.js → 9767-ff31001052-lite.chunk.js} +0 -0
  171. /package/dist/scripts/{9863-339e76d9af-lite.chunk.js → 9863-1642cff0c1-lite.chunk.js} +0 -0
  172. /package/dist/scripts/{bundle-e0931c53b5.min.js.LICENSE.txt → bundle-2af583dba9.min.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
- /*! For license information please see 7416-1d038cbc54-lite.chunk.js.LICENSE.txt */
1
+ /*! For license information please see 7416-1aa6580a1b-lite.chunk.js.LICENSE.txt */
2
2
  "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[7416],{82872:(e,t,n)=>{n.d(t,{t:()=>S});var r=n(1024),o=n.n(r),a=n(79014),i=n(58130),c=n(83914),l=n(11607),s=n(55452),u=n(4594),m=n(36511),f=n(76881),p=n(45778),d=n(99910),h=n(23481);const v={avatar:"srrS3"};function y(e){var t=e.imageUrl,n=e.initials,r={};return t&&(r.backgroundImage="url('".concat(t,"')")),o().createElement("div",{className:v.avatar,style:r},t?o().createElement(o().Fragment,null," "):n)}var g=n(36532);const E={svgContainer:"laVU4",selection:"vEOCt",expander:"d1NHd",iconContainer:"rFH4W",icon:"BarYz",bubble:"HF0E8",spinnerContainer:"iKeXW",remove:"pyzCM",removeBubble:"mgt6Y"};var b=h.T.encloseNamespace("shared.inputSelection");function x(e){var t,n="".concat(E.svgContainer," ").concat(E.icon);return e.typeId===u.E.Classroom?n+=" text-teal":n+=" text-".concat((0,m.I)(null===(t=e.metadata)||void 0===t?void 0:t.colour)),n}function w(e){var t,n=function(e){var t;switch(e.typeId){case u.E.Classroom:return"text-hover-teal";case u.E.ClassroomGroup:return"text-hover-".concat((0,m.I)(null===(t=e.metadata)||void 0===t?void 0:t.colour))}}(e.selection),r=e.selection.typeId===u.E.Classroom;if(!e.canExpand){if(!e.selection.typeId||e.selection.typeId===u.E.User){var a=e.selection;return o().createElement("div",{className:E.svgContainer},o().createElement(y,{imageUrl:null===(t=a.avatar)||void 0===t?void 0:t.url,initials:s.l.getInitials(e.selection.name,e.selection.surname)}))}return o().createElement(g.u,{title:b(r?"emptyClassroom":"emptyGroup")},o().createElement("div",{className:"align-items-center border border-white bg-white ".concat(E.iconContainer)},o().createElement(c.x,{className:x(e.selection),svgName:r?i.vn.Classrooms:i.vn.Group})))}return e.hasExpanded?o().createElement("div",{className:"d-flex align-items-center text-white ".concat(E.spinnerContainer," ").concat(E.svgContainer)},o().createElement(d.Spinner,{as:"div",size:"sm",animation:"border",role:"status"})):o().createElement(o().Fragment,null,o().createElement(l.L,{className:"align-items-center cursor-pointer text-white border border-white rounded-circle ".concat(E.expander," ").concat(n),onClick:e.onClickExpand},o().createElement(c.x,{svgName:i.vn.Plus,className:"d-flex align-items-center ".concat(E.svgContainer)})),o().createElement("div",{className:"align-items-center border border-white bg-white ".concat(E.iconContainer)},o().createElement(c.x,{className:x(e.selection),svgName:r?i.vn.Classrooms:i.vn.Group})))}function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,c=[],l=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return k(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)?k(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(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}function N(e){var t;if(!e.typeId)return"dark-blue";switch(e.typeId){case u.E.User:return"number"==typeof e.userType?2===e.userType?"dark-blue":"indigo":e.userType===f.Y.Learner?"dark-blue":"indigo";case u.E.Classroom:return"teal";case u.E.ClassroomGroup:return(0,m.I)(null===(t=e.metadata)||void 0===t?void 0:t.colour)}}function S(e){var t,n,r,a=p.G.isType(e.selection,u.E.Classroom),s=p.G.isType(e.selection,u.E.ClassroomGroup),m=e.onClickExpand&&(a||s),f=!!(null===(t=e.selection.users)||void 0===t?void 0:t.count),d=!!(null===(r=null===(n=e.selection.users)||void 0===n?void 0:n.data)||void 0===r?void 0:r.length),h=C(o().useState(!1),2),v=h[0],y=h[1],g=C(o().useState(m&&f),2),b=g[0],x=g[1];if(o().useEffect((function(){x(m&&f)}),[m,f]),d){var w=e.selection,k=N(e.selection);return o().createElement("div",{className:"d-flex align-items-center flex-wrap mr-1 mt-1 pb-1 pl-1 pr-4 position-relative border-".concat(k," text-").concat(k," ").concat(E.bubble)},w.users.data.map((function(t){return o().createElement(I,{key:"".concat(t.id,":").concat(e.selection.id),selection:t,colourVariant:k,hasStudentExperience:e.hasStudentExperience})})),o().createElement(l.L,{className:"cursor-pointer position-absolute text-".concat(k," ").concat(E.removeBubble),onClick:function(){return e.onClickRemove(e.selection.id)}},o().createElement(c.x,{svgName:i.vn.Close,className:"d-flex align-items-center ".concat(E.svgContainer)})))}return o().createElement(I,{selection:e.selection,canExpand:b,hasExpanded:v,onClickExpand:function(){y(!0),e.onClickExpand(e.selection.id)},onClickRemove:e.onClickRemove,colourVariant:N(e.selection),hasStudentExperience:e.hasStudentExperience})}function I(e){var t=e.colourVariant||N(e.selection),n=e.selection.name;return e.selection.typeId===u.E.User&&(n=e.hasStudentExperience?s.l.getDisplayName(e.selection):s.l.getFullName(e.selection)),o().createElement("div",{className:"".concat(E.selection," bg-").concat(t," badge-pill text-").concat(t," d-flex align-items-center mr-1 mt-1 overflow-hidden")},o().createElement(w,{canExpand:e.canExpand,hasExpanded:e.hasExpanded,onClickExpand:e.onClickExpand,selection:e.selection}),o().createElement("span",{className:"mx-1 text-white"},n),a.q.isFunction(e.onClickRemove)&&o().createElement(l.L,{className:"d-flex align-items-center cursor-pointer align-self-stretch text-white ".concat(E.remove),onClick:function(){return e.onClickRemove(e.selection.id)}},o().createElement(c.x,{svgName:i.vn.Close,className:"d-flex align-items-center ".concat(E.svgContainer)})))}},19808:(e,t,n)=>{var r;n.d(t,{b:()=>r}),function(e){e.AU="cv-ap-southeast-1",e.NZ="cv-ap-southeast-2",e.UK="cv-eu-west-1",e.US="cv-na-west-1"}(r||(r={}))},36511:(e,t,n)=>{n.d(t,{I:()=>o});var r=n(53957);function o(e){switch(e){case r.ClassroomGroupColour.Pink:return"pink";case r.ClassroomGroupColour.Orange:return"orange";case r.ClassroomGroupColour.Green:return"green";case r.ClassroomGroupColour.Blue:return"blue";case r.ClassroomGroupColour.Purple:return"purple";case r.ClassroomGroupColour.Indigo:return"indigo";default:return"pink"}}},37416:(e,t,n)=>{n.r(t),n.d(t,{InviteColleagueView:()=>U});var r=n(1024),o=n.n(r),a=n(49985),i=n(65858),c=n(20354),l=n(23481),s=n(9111),u=n(23232),m=n(82872),f=n(83345),p=n(2102),d=n(31949),h=n(19808),v=n(99742),y=n(99940),g={invite:function(e,t,n,r){return{url:"/api/user/trials/invite",key:"invite:colleague",normalize:!1,type:y.k.POST,data:e,success:t,error:n,always:r}}};const E={inputWithoutHighlight:"flhM4"};var b;function x(e){return x="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},x(e)}function w(){w=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var a=t&&t.prototype instanceof f?t:f,i=Object.create(a.prototype),c=new I(o||[]);return r(i,"_invoke",{value:C(e,n,c)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var m={};function f(){}function p(){}function d(){}var h={};l(h,a,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(L([])));y&&y!==t&&n.call(y,a)&&(h=y);var g=d.prototype=f.prototype=Object.create(h);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function o(r,a,i,c){var l=u(e[r],e,a);if("throw"!==l.type){var s=l.arg,m=s.value;return m&&"object"==x(m)&&n.call(m,"__await")?t.resolve(m.__await).then((function(e){o("next",e,i,c)}),(function(e){o("throw",e,i,c)})):t.resolve(m).then((function(e){s.value=e,i(s)}),(function(e){return o("throw",e,i,c)}))}c(l.arg)}var a;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return a=a?a.then(r,r):r()}})}function C(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return{value:void 0,done:!0}}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var c=k(i,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function k(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var o=u(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,m;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,m):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function N(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function L(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,r(g,"constructor",{value:d,configurable:!0}),r(d,"constructor",{value:p,configurable:!0}),p.displayName=l(d,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,l(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},E(b.prototype),l(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new b(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},E(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),e.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}},e.values=L,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.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,m):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),m},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),S(n),m}},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 o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),m}},e}function C(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)||N(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 k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,c=[],l=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return c}}(e,t)||N(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(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}}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}function I(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==x(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==x(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===x(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var L=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{l(r.next(e))}catch(e){a(e)}}function c(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(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())}))},j="signUp.inviteColleage",O=l.T.encloseNamespace(j),G=new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/),A=new RegExp(/[,;:\s]+/),T=(I(b={},h.b.AU,"james.smith@school.edu.au, jane.doe@school.edu.au"),I(b,h.b.UK,"james.smith@school.gov.uk, jane.doe@school.gov.uk"),I(b,h.b.US,"james.smith@school.gov, jane.doe@school.gov"),I(b,h.b.NZ,"james.smith@school.nz, jane.doe@school.nz"),b);function U(e){var t=c.a.useGetFetchAsync(),n=k(o().useState(""),2),r=n[0],l=n[1],h=k(o().useState([]),2),y=h[0],b=h[1],x=k(o().useState(),2),N=x[0],S=x[1],I=k(o().useState(!1),2),U=I[0],_=I[1],P=k(o().useState(!1),2),F=P[0],R=P[1],B=c.a.useBasicFetch(d.N.currentUser());function H(e){e.preventDefault(),M(r)}function M(e){var t=e.split(A).filter((function(e){return!!e}));t.every((function(e){return G.test(e)}))?(b([].concat(C(y),C(t))),l("")):S(O("invalidEmail",{smartCount:t.length}))}return B.hasCompleted?o().createElement(s.G,{title:O("title"),closePopup:e.closePopup},F?o().createElement(o().Fragment,null,o().createElement(u.u.Image,{src:v.W.EMAIL_SENT,className:"d-block mx-auto"}),o().createElement("div",{className:"text-center"},o().createElement("h2",{className:"h5"},o().createElement(f.x,{namespace:j,phrase:"successSubHeading"})),o().createElement("p",null,o().createElement(f.x,{namespace:j,phrase:"sentTo"}),y.map((function(e,t){return o().createElement("span",{className:"d-block",key:t},o().createElement("strong",null,e))}))),o().createElement("p",null,o().createElement(f.x,{namespace:j,phrase:"inviteMorePrompt"})," ",o().createElement("span",{className:"info-link",onClick:function(){b([]),R(!1)}},o().createElement(f.x,{namespace:j,phrase:"inviteMore"}))))):o().createElement(o().Fragment,null,o().createElement(u.u.Image,{src:v.W.SignUp.INVITE_COLLEAGUE,className:"d-block mx-auto"}),o().createElement("div",{className:"text-center"},o().createElement("h2",{className:"h5"},o().createElement(f.x,{namespace:j,phrase:"subHeading"})),o().createElement("p",null,o().createElement(f.x,{namespace:j,phrase:"message"}))),o().createElement("div",{className:"form-group"},o().createElement("label",null,o().createElement(f.x,{namespace:j,phrase:"label"})),o().createElement("div",{className:"form-control h-auto d-flex align-items-top flex-wrap px-1 pb-1 pt-0 position-relative"},y.map((function(e,t){return o().createElement(m.t,{selection:{name:e},onClickRemove:function(){return function(e){b(y.filter((function(t,n){return n!==e})))}(t)},key:t})})),o().createElement("form",{className:"d-inline p-1 mt-1 flex-grow-1",onSubmit:H},o().createElement("input",{className:"form-control ".concat(E.inputWithoutHighlight," p-0 border-0 h-100"),type:"text",autoComplete:"off",placeholder:y.length?"":T[B.data.instanceRegion],onChange:function(e){S(null),l(e.target.value),e.target.value.match(A)&&M(e.target.value)},value:r,onBlur:H,onKeyDown:function(e){"Backspace"===e.code&&!r.length&&y.length&&b(y.slice(0,y.length-1))}}))),!!N&&o().createElement("div",{className:"invalid-feedback d-block"},N)),o().createElement(p.m,{className:"btn btn-dark w-100 text-center",showSpinner:U,onClick:function(){return L(this,void 0,void 0,w().mark((function e(){var n;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _(!0),e.prev=1,n=g.invite({emails:y,userId:B.data.id,customerId:B.data.customerId}),e.next=5,t(n);case 5:R(!0),a.k.logUserAction({emailCount:y.length},{actionType:i.UserAction.SendEmail,location:i.LocationContext.TrialBanner,entity:i.EntityType.User,descriptor:i.SignUpDescriptors.InviteColleague,workflowPhase:i.WorkflowPhase.Complete}),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),S(O("error"));case 12:_(!1);case 13:case"end":return e.stop()}}),e,null,[[1,9]])})))},disabled:!y.length},o().createElement(f.x,{namespace:j,phrase:"invite"})))):o().createElement(o().Fragment,null)}}}]);
@@ -1,2 +1,2 @@
1
- /*! For license information please see 8323-abba3829a3-lite.chunk.js.LICENSE.txt */
1
+ /*! For license information please see 8323-199575a310-lite.chunk.js.LICENSE.txt */
2
2
  "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[8323],{58703:(e,t,r)=>{r.d(t,{N:()=>F,d:()=>M});var n=r(1024),a=r.n(n),o=r(81886),i=r(2948),l=r(23481),u=r(79352),c=r(92583),s=r(76881),d=r(89476),f=r(38143),p=r(99910),m=r(56050),h=r(8493),v=r(83345),y=r(96728),b=r(24453),g=r(12458);function k(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 w="userManager.userWizardHeader";function A(e){var t,r,n=(t=(0,i.D)(f.g.BULK_USER_ACTIONS),r=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,l=[],u=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(e){c=!0,a=e}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw a}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return k(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)?k(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.")}())[0],l=a().useContext(y.e),u=l.disableNext,c=l.onClickConfirm;return b.O.getCurrentContext().appLink.action===e.appLinks.bulkActionsStatus.complete.action?a().createElement(h.F,{className:"btn btn-dark ".concat(u?"disabled":""),appLink:e.appLinks.userManager,disabled:u,onClick:e.onFinish},a().createElement(v.x,{namespace:w,phrase:"finish"})):"confirmation"===e.currentStep?a().createElement(p.Button,{className:u?"disabled":"",variant:"dark",onClick:function(){g.I.onClickNext(n,e.currentStep),c()},disabled:u},a().createElement(v.x,{namespace:w,phrase:"confirm"})):"status"===e.currentStep?a().createElement(a().Fragment,null):a().createElement(h.F,{className:"btn btn-dark ".concat(u?"disabled":""),appLink:function(){switch(e.currentStep){case"review-accounts":return e.appLinks.bulkActionsSelectAction;case"select-action":return function(){if(!(null==n?void 0:n.action))return null;switch(n.action){case"delete":return e.appLinks.bulkActionsActionDetails.delete;case"activation":return e.appLinks.bulkActionsActionDetails.activation;case"yearGroupRollover":return e.appLinks.bulkActionsActionDetails.yearGroupRollover;case"changeYearGroup":return e.appLinks.bulkActionsActionDetails.changeYearGroup;case"addToClassroom":return e.appLinks.bulkActionsActionDetails.addToClassroom;case"resetPassword":return e.appLinks.bulkActionsActionDetails.resetPassword;case"resetEmail":return e.appLinks.bulkActionsConfirmation.resetEmail}o.Q.ErrorHelper.throw(new m.H("Missing switch statement case for ".concat(n.action," in BulkUserActionsContinueButton.tsx")))}();case"action-details":return e.appLinks.bulkActionsConfirmation[null==n?void 0:n.subAction];default:return null}}(),onClick:function(){return g.I.onClickNext(n,e.currentStep)},disabled:u},a().createElement(v.x,{namespace:w,phrase:"next"}))}var E=r(49985),S=r(65858),L=r(17291);function C(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 x="userManager.userWizardBackButtons";function I(e){var t,r,n=(t=(0,i.D)(f.g.BULK_USER_ACTIONS),r=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,l=[],u=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(e){c=!0,a=e}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw a}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return C(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)?C(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.")}())[0];return"status"===e.currentStep?a().createElement(a().Fragment,null):a().createElement(h.F,{className:"btn btn-link mr-2",appLink:function(){switch(e.currentStep){case"review-accounts":return e.appLinks.userManager;case"select-action":return e.appLinks.bulkActionsReviewAccounts;case"action-details":return e.appLinks.bulkActionsSelectAction;case"confirmation":return function(){if(!(null==n?void 0:n.action))return null;switch(n.action){case"delete":return e.appLinks.bulkActionsActionDetails.delete;case"activation":return e.appLinks.bulkActionsActionDetails.activation;case"yearGroupRollover":return e.appLinks.bulkActionsActionDetails.yearGroupRollover;case"changeYearGroup":return e.appLinks.bulkActionsActionDetails.changeYearGroup;case"addToClassroom":return e.appLinks.bulkActionsActionDetails.addToClassroom;case"resetPassword":return e.appLinks.bulkActionsActionDetails.resetPassword;case"resetEmail":return e.appLinks.bulkActionsConfirmation.resetEmail}}()}}()},a().createElement(v.x,{namespace:x,phrase:"review-accounts"===e.currentStep?"cancel":"back"}))}function N(){return a().createElement(a().Fragment,null,a().createElement("div",{className:"partial-loading-background mb-2",style:{height:"1.75rem",width:"15rem"}}),a().createElement("div",{className:"partial-loading-background mb-3",style:{height:"1.5rem",width:"12rem"}}),a().createElement("div",{className:"partial-loading-background mb-2",style:{height:"8em",width:"40rem"}}))}const j={wizardContent:"UBwkq"};function O(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 T="userManager.bulkUserActionsWizardLayout",F="bulk-user-actions-wizard";function M(e){var t,r,n,p=(r=(0,i.D)(f.g.BULK_USER_ACTIONS),n=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,a,o,i,l=[],u=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(e){c=!0,a=e}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw a}}return l}}(r,n)||function(e,t){if(e){if("string"==typeof e)return O(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)?O(e,t):void 0}}(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=p[0],h=p[1],v=(0,d.f)();function b(){var t,r;if(m){var n={step:e.currentStep,userCount:null!==(r=null===(t=null==m?void 0:m.userIdMap)||void 0===t?void 0:t.size)&&void 0!==r?r:0},a=g.I.getAnalyticsActionName(m);a&&(n.action=a),E.k.logUserAction(n,{workflowPhase:S.WorkflowPhase.Discard,actionType:S.UserAction.BulkAction,location:S.LocationContext.BulkUserActionsWizard,entity:S.EntityType.User})}}a().useEffect((function(){var t;return(null===(t=null==m?void 0:m.userIdMap)||void 0===t?void 0:t.size)||e.preventRedirect?e.preventNavLock?void 0:(v.lock({id:F,title:l.T.getPhrase(T,"navLockTitle"),text:l.T.getPhrase(T,"navLockBody"),appLinkWhitelist:c.b.getWizardAppLinks(e.appLinks),onConfirmUnlock:function(){b(),h({})}}),function(){v.unlock(F)}):(o.Q.AppLinkHelper.trigger(e.appLinks.userManager,{replace:!0}),void b())}),[]);var k=e.loaded&&!!(null===(t=e.users)||void 0===t?void 0:t.length);return a().createElement(y.D,null,a().createElement("div",{className:"px-3"},a().createElement(L.C,{title:l.T.getPhrase(T,"bulkActions"),currentStep:e.currentStep,hideHeader:e.hideHeader,loaded:e.loaded,continueButton:a().createElement(A,{currentStep:e.currentStep,appLinks:e.appLinks,onFinish:function(){h({})}}),backButton:a().createElement(I,{currentStep:e.currentStep,appLinks:e.appLinks}),breadcrumbs:[{name:l.T.getPhrase(T,"settingsBreadcrumb"),appLink:e.appLinks.settings},{name:l.T.getPhrase(T,e.userType===s.Y.Learner?"studentManager":"staffManager"),appLink:e.appLinks.userManager},{name:l.T.getPhrase(T,"bulkActions"),active:!0}]}),a().createElement("div",{className:"row no-gutters"},a().createElement("div",{className:"col-3"},a().createElement(u.a,{steps:c.b.getSteps(e.userType,e.userCount,e.appLinks,null==m?void 0:m.action),currentStep:e.currentStep,disableAppLinks:!k||e.disableAppLinks})),a().createElement("div",{className:"col-9 ".concat(j.wizardContent)},k?e.children:a().createElement(N,null)))))}},12458:(e,t,r)=>{r.d(t,{I:()=>u});var n=["userIdMap","params","action","subAction","allUsersSelected","allUsersCount","scrollContainer"],a=r(49985),o=r(65858),i=r(1048),l=r(58739),u={getAnalyticsActionName:function(e){if(!(null==e?void 0:e.action))return null;switch(e.action){case"activation":return(null==e?void 0:e.subAction)?"deactivate"===e.subAction?"Deactivate":"Reactivate":"Deactivate / reactivate";case"addToClassroom":return"Add to classroom";case"changeYearGroup":return"Change year group";case"delete":return"Delete user";case"resetEmail":return"Send password reset email";case"resetPassword":return"Reset password";case"yearGroupRollover":return"Annual year group rollover";default:return null}},onClickNext:function(e,t){if(e){var r={userCount:e.userIdMap.size,step:t},l=u.getAnalyticsActionName(e);l&&(r.action=l);var c=i.t.omit(e,n);Object.keys(c).length&&(r.actionData=c),a.k.logUserAction(r,{location:o.LocationContext.BulkUserActionsWizard,workflowPhase:o.WorkflowPhase.Next,actionType:o.UserAction.BulkAction,entity:o.EntityType.User})}},logYearGroupRolloverEntry:function(e){a.k.logUserAction({action:u.getAnalyticsActionName({action:"yearGroupRollover"})},{entity:o.EntityType.User,actionType:o.UserAction.BulkAction,workflowPhase:o.WorkflowPhase.Start,location:e})},getJobStatus:function(e){switch(e){case l.K.Completed:return"Success";case l.K.CompletedWithError:return"Completed with some errors";case l.K.Failed:return"Failed";default:return null}}}},49935:(e,t,r)=>{r.d(t,{Oo:()=>d,b2:()=>f});var n=r(1024),a=r(8493),o=r(5859),i=r(86764),l=r(3747),u=r(83914),c=r(58130),s=function(e){var t=e.breadcrumb,r=t.name,o=t.appLink,i=t.active,l=e.withBackIcon;return n.createElement("li",{className:"breadcrumb-item".concat(i?" active":"")},i?n.createElement("strong",null,r):n.createElement(a.F,{appLink:o},l&&n.createElement(u.x,{svgName:c.vn.ChevronLeft,size:u.S.Small}),n.createElement("span",{className:l?"ml-2":""},r)))},d=function(e){var t=e.breadcrumbs,r=(0,l.a)(i.r.XS),a=null==t?void 0:t.length;return!a||r&&a<2?n.createElement(n.Fragment,null):r?n.createElement("ol",{className:"breadcrumb m-0 p-0"},n.createElement(s,{breadcrumb:t[a-2],withBackIcon:!0})):n.createElement("ol",{className:"breadcrumb m-0 p-0"},t.map((function(e,t){return n.createElement(s,{key:t,breadcrumb:e})})))},f=n.memo((function(e){var t=e.numItems,r=void 0===t?3:t;return(0,l.a)(i.r.XS)?n.createElement("div",{className:"partial-loading-background",style:{height:"1.3125rem",width:"6rem"}}):n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},o.u.getPartialLoadingItems({numItems:r}).map((function(e,t){var r=e.width;return n.createElement("li",{key:t,className:"breadcrumb-item"},n.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:r},dangerouslySetInnerHTML:{__html:"&nbsp"}}))}))))}))},17291:(e,t,r)=>{r.d(t,{C:()=>l});var n=r(1024),a=r.n(n),o=r(96728),i=r(49935);function l(e){var t=a().useContext(o.e).showButtons;return a().createElement("div",{className:"d-flex justify-content-between"},e.hideHeader?a().createElement("div",null):a().createElement("div",null,a().createElement("h1",{className:"h2"},e.title),e.breadcrumbs&&a().createElement("div",{className:"pb-3"},a().createElement(i.Oo,{breadcrumbs:e.breadcrumbs}))),e.loaded&&t&&a().createElement("div",{className:"d-flex align-items-center"},e.backButton,e.continueButton))}},79352:(e,t,r)=>{r.d(t,{a:()=>c});var n=r(1024),a=r.n(n),o=r(23481),i=r(8493),l=o.T.encloseNamespace("shared.wizardStepList");function u(e){var t="",r="";e.isSelected&&(t+=" font-weight-500"),(!e.isSelected&&!e.isCompleted||e.disabled)&&(t+=" text-muted",r+=" text-muted");var n=a().createElement(a().Fragment,null,a().createElement("div",{className:t},e.text),e.subText&&a().createElement("div",{className:"ml-2 pl-1 pt-1 ".concat(r)},e.subText)),o="".concat(e.isSelected?"bg-light-blue":""," px-2 py-1 mb-1 rounded d-inline-block");return a().createElement("li",null,e.isCompleted&&e.appLink?a().createElement(i.F,{appLink:e.appLink,className:o},n):a().createElement("div",{className:o},n))}function c(e){var t=e.steps.reduce((function(t,r,n){return r.id===e.currentStep&&(t=n+1),t}),1);return a().createElement(a().Fragment,null,a().createElement("h2",{className:"h4"},l("stepNumber",{currentStep:t,totalSteps:e.steps.length})),a().createElement("ol",{className:"list-unstyled"},e.steps.map((function(r,n){var o=r.id===e.currentStep,i=t>n+1;return a().createElement(u,{key:r.id,text:r.text,subText:r.subText,isSelected:o,isCompleted:i,appLink:!e.disableAppLinks&&r.appLink,disabled:r.disabled})}))))}},58739:(e,t,r)=>{var n;r.d(t,{K:()=>n}),function(e){e[e.Submitted=0]="Submitted",e[e.Queued=1]="Queued",e[e.Pending=2]="Pending",e[e.InProgress=3]="InProgress",e[e.Completed=4]="Completed",e[e.CompletedWithError=5]="CompletedWithError",e[e.Failed=6]="Failed"}(n||(n={}))},63936:(e,t,r)=>{r.d(t,{K:()=>c});var n=r(1024),a=r(50242),o=r(79014),i=r(45719),l=r(8843);function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r,c,s,d){var f,p,m=(f=(0,n.useState)(0),p=2,function(e){if(Array.isArray(e))return e}(f)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,l=[],u=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(e){c=!0,a=e}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw a}}return l}}(f,p)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(f,p)||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.")}()),h=m[0],v=m[1],y=t,b=(0,i.P)((function(t){if(!e)return null;var r=e(t);return r?r.key:null}),c,s);return(0,l.M)({fetchNextPage:function(){if(t&&e&&b)return v((function(e){return e+1})),y(b.nextCursor)},hasMore:!!(null==b?void 0:b.nextCursor),isFetching:null==b?void 0:b.isFetching,scrollContainer:d}),(0,n.useEffect)((function(){b&&b.shouldInitialFetch&&t&&(y(),v((function(e){return e+1})))}),[null==b?void 0:b.shouldInitialFetch,t]),(0,n.useEffect)((function(){var e,t;if((null==b?void 0:b.statusCode)&&o.q.isFunction(r)){var n=+(null===(t=null===(e=b.statusCode)||void 0===e?void 0:e.toString())||void 0===t?void 0:t.substr(0,1));n!==a.k.ClientError&&n!==a.k.ServerError||r(h,b.statusCode)}}),[null==b?void 0:b.statusCode]),{items:null==b?void 0:b.items,hasMore:!!(null==b?void 0:b.nextCursor),nextCursor:null==b?void 0:b.nextCursor,isFetching:null==b?void 0:b.isFetching,totalItems:null==b?void 0:b.totalItems}}},8843:(e,t,r)=>{r.d(t,{M:()=>i});var n=r(1024),a=r(79014),o=400;function i(e){var t=function(){if(!e.isFetching){if(e.scrollContainer){var t=e.scrollContainer;if(t.getBoundingClientRect().height+t.scrollTop<t.scrollHeight-o)return}else if(window.innerHeight+document.documentElement.scrollTop<document.documentElement.scrollHeight-o)return;e.fetchNextPage()}};(0,n.useEffect)((function(){var r=a.q.throttle(t,200),n=e.scrollContainer||window;return e.hasMore&&n.addEventListener("scroll",r),function(){return n.removeEventListener("scroll",r)}}),[e.hasMore,e.fetchNextPage,e.scrollContainer])}},45719:(e,t,r)=>{r.d(t,{F:()=>u,P:()=>c});var n=r(1024),a=r(58566),o=r(20354),i=r(79014);function l(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 u={items:[],shouldInitialFetch:!1,nextCursor:null,isFetching:!1,statusCode:r(50242).o.Ok,hasCompleted:!0,totalItems:0};function c(e,t,r){function u(e){if(e)return i.q.isFunction(t)?t(e):e.data}function c(e){var t,n;if(e)return r?r(e):null===(n=null===(t=e.pagination)||void 0===t?void 0:t.cursors)||void 0===n?void 0:n.next}return(0,a.useSelector)((0,n.useMemo)((function(){return function(t){if(i.q.isFunction(e)){for(var r=e,n=i.q.isFunction(e)&&r(),a=n&&o.a.getResponse(t,n),s=a&&a.isFetching,d=a&&a.statusCode,f=a&&a.hasCompleted,p=a&&a.shouldFetch,m=u(a&&a.data),h=c(a&&a.data),v=function(e){var t;if(e)return null===(t=e)||void 0===t?void 0:t.count}(a&&a.data);h&&(a=o.a.getResponse(t,r(h)),s=s||a.isFetching,d=a.statusCode,f=a.hasCompleted,!a.shouldFetch);){var y=u(a.data);y&&m.push.apply(m,function(e){if(Array.isArray(e))return l(e)}(k=y)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(k)||function(e,t){if(e){if("string"==typeof e)return l(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)?l(e,t):void 0}}(k)||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 b=c(a.data);h=b===h?null:b}var g={shouldInitialFetch:p,items:m,nextCursor:h,isFetching:s,statusCode:d,hasCompleted:f};return"number"==typeof v&&(g.totalItems=v),g}var k}}),[e]))}},69217:(e,t,r)=>{r.d(t,{N:()=>i});var n=r(1024),a=r.n(n);function o(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 i=function(){var e,t,r=(e=a().useState(Date.now()),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,l=[],u=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(e){c=!0,a=e}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(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)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1];return function(){r(Date.now())}}},5859:(e,t,r)=>{function n(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}r.d(t,{u:()=>o});var a={numItems:5,minWidth:50,maxWidth:100},o={getPartialLoadingItems:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=Object.assign(Object.assign({},a),t);return(e=Array(r.numItems),function(e){if(Array.isArray(e))return n(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 n(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)?n(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.")}()).map((function(){return{width:"".concat(Math.max(Math.floor(Math.random()*r.maxWidth),r.minWidth),"px")}}))}}},88323:(e,t,r)=>{r.d(t,{h:()=>S});var n=r(20354),a=r(31949),o=r(1024),i=r.n(o),l=r(58566),u=r(81886),c=r(2948),s=r(63936),d=r(89476),f=r(58703),p=r(38143),m=r(89422),h=r(65858),v=r(69217),y=r(49985);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(){g=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=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 c(e,t,r,a){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),l=new x(a||[]);return n(i,"_invoke",{value:E(e,r,l)}),i}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function f(){}function p(){}function m(){}var h={};u(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(I([])));y&&y!==t&&r.call(y,o)&&(h=y);var k=m.prototype=f.prototype=Object.create(h);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function a(n,o,i,l){var u=s(e[n],e,o);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==b(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){a("next",e,i,l)}),(function(e){a("throw",e,i,l)})):t.resolve(d).then((function(e){c.value=e,i(c)}),(function(e){return a("throw",e,i,l)}))}l(u.arg)}var o;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){a(e,r,t,n)}))}return o=o?o.then(n,n):n()}})}function E(e,t,r){var n="suspendedStart";return function(a,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===a)throw o;return{value:void 0,done:!0}}for(r.method=a,r.arg=o;;){var i=r.delegate;if(i){var l=S(i,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=s(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function S(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var a=s(n,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,d;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function L(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 C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function I(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:N}}function N(){return{value:void 0,done:!0}}return p.prototype=m,n(k,"constructor",{value:m,configurable:!0}),n(m,"constructor",{value:p,configurable:!0}),p.displayName=u(m,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,u(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},w(A.prototype),u(A.prototype,i,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,a,o){void 0===o&&(o=Promise);var i=new A(c(t,r,n,a),o);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},w(k),u(k,l,"Generator"),u(k,o,(function(){return this})),u(k,"toString",(function(){return"[object Generator]"})),e.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}},e.values=I,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return i.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var l=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(l&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.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,d):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),d},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),C(r),d}},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 a=n.arg;C(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:I(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,l=[],u=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(e){c=!0,a=e}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw a}}return l}}(e,t)||w(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){if(e){if("string"==typeof e)return A(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)?A(e,t):void 0}}function A(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 E=r(18087),S=function(e){var t,r=(0,E.Y)(e);return function(e){var t,r,a,o=g().mark(F),b=e.appLinks,E=e.getUsersRequest,S=k((0,c.D)(p.g.BULK_USER_ACTIONS),2),L=S[0],C=S[1],x=(0,l.useDispatch)(),I=(0,d.f)(),N=k(i().useState(!0),2),j=N[0],O=N[1],T=i().useRef({keys:null===(t=null==L?void 0:L.userIdMap)||void 0===t?void 0:t.keys(),pages:{}});function F(e,t){var r;return g().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(t-- >0)){n.next=8;break}if(r=e.next().value){n.next=4;break}return n.abrupt("return");case 4:return n.next=6,r;case 6:n.next=0;break;case 8:case"end":return n.stop()}}),o)}function M(e){var t;if(!(null===(t=null==L?void 0:L.userIdMap)||void 0===t?void 0:t.size)||!T.current.keys)return null;if(T.current.pages[e]){var r=T.current.pages[e];return r.length?E(r):null}var n,a=function(e){if(Array.isArray(e))return A(e)}(n=F(T.current.keys,m.K.USER_PAGE_LIMIT))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||w(n)||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.")}();return T.current.pages[e]=a,a.length?E(a):(O(!1),null)}function U(e){var t=M(e);if(t)return n.a.getFetch(x)(t)}var P=(0,s.K)(M,U,null,(function(e){return e}),(function(e){var t;return null===(t=e[e.length-1])||void 0===t?void 0:t.id}),null==L?void 0:L.scrollContainer),_=P.items,B=P.isFetching,D=P.nextCursor,R=(0,v.N)();function G(){var e;return null===(e=null==L?void 0:L.userIdMap)||void 0===e?void 0:e.size}var z=null!==(r=null==_?void 0:_.filter((function(e){return L.userIdMap.has(e.id.toString())})))&&void 0!==r?r:[];return i().useEffect((function(){(null==L?void 0:L.userIdMap)&&!L.userIdMap.size&&setTimeout((function(){I.unlock(f.N),u.Q.AppLinkHelper.trigger(b.userManager,{replace:!0})}),0)}),[null===(a=null==L?void 0:L.userIdMap)||void 0===a?void 0:a.size,B]),{users:z,isFetching:B,removeUser:function(e){L.userIdMap.delete(e.id.toString()),C("allUsersSelected",!1),R(),y.k.logUserAction({id:e.id.toString(),userCount:G()},{location:h.LocationContext.BulkUserActionsWizard,entity:h.EntityType.User,actionType:h.UserAction.Remove})},hasMore:j,fetchNext:function(){return U(D)},count:G(),setAllUserIds:function(e){var t=new Map;e.forEach((function(e){t.set(e,!0)})),C({userIdMap:t,allUsersSelected:!0,allUsersCount:t.size}),T.current.keys=t.keys(),R()}}}({customerId:null===(t=n.a.useBasicFetch(a.N.currentUser()).data)||void 0===t?void 0:t.customerId,userType:e,appLinks:r,getUsersRequest:a.N.usersById})}}}]);
@@ -1,2 +1,2 @@
1
- /*! For license information please see 9478-98989f923c-lite.chunk.js.LICENSE.txt */
1
+ /*! For license information please see 9478-1cddab324e-lite.chunk.js.LICENSE.txt */
2
2
  "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9478],{39478:(t,e,r)=>{r.r(e),r.d(e,{BaseShareLinkView:()=>y});var n=r(1024),o=r.n(n),i=r(20354),a=r(31949),c=r(30439),u=r(4594);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function s(){s=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function f(t,e,r,o){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new j(o||[]);return n(a,"_invoke",{value:S(t,r,c)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var d={};function v(){}function p(){}function y(){}var m={};u(m,i,(function(){return this}));var g=Object.getPrototypeOf,w=g&&g(g(O([])));w&&w!==e&&r.call(w,i)&&(m=w);var b=y.prototype=v.prototype=Object.create(m);function x(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function o(n,i,a,c){var u=h(t[n],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==l(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,c)}))}c(u.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=L(a,r);if(c){if(c===d)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=h(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function L(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,L(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=h(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function O(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return p.prototype=y,n(b,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:p,configurable:!0}),p.displayName=u(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},x(E.prototype),u(E.prototype,a,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(b),u(b,c,"Generator"),u(b,i,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=O,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(I),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},t}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var h=function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function c(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}u((n=n.apply(t,e||[])).next())}))},d=function(t,e){var n,i,a=(n=o().useState(),i=2,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(n,i)||function(t,e){if(t){if("string"==typeof t)return f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,e):void 0}}(n,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=a[0],l=a[1];return o().useEffect((function(){c&&l(null)}),[e.videoId]),o().useEffect((function(){if(t&&!c){var n=t.objectTypeId;switch(e.videoId?n=u.E.Video:e.clipId?n=u.E.Clip:e.interactiveId&&(n=u.E.Interactive),n){case u.E.Video:var i=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(3019),r.e(6014),r.e(5986),r.e(3231),r.e(1518),r.e(3948),r.e(8377),r.e(6061)]).then(r.bind(r,93978));case 2:return e=t.sent,n=e.PlaySharedVideoView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(i);break;case u.E.Interactive:var a=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(7919),r.e(3019),r.e(6014),r.e(5986),r.e(3231),r.e(1518),r.e(3948),r.e(5875),r.e(9154),r.e(2135)]).then(r.bind(r,38280));case 2:return e=t.sent,n=e.SharedInteractiveView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(a);break;case u.E.Clip:var f=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(3019),r.e(6014),r.e(5986),r.e(3231),r.e(1518),r.e(3948),r.e(7831),r.e(7737)]).then(r.bind(r,41021));case 2:return e=t.sent,n=e.PlaySharedClipView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(f);break;case u.E.Playlist:var d=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(3019),r.e(6014),r.e(5986),r.e(3231),r.e(6263),r.e(9482)]).then(r.bind(r,67537));case 2:return e=t.sent,n=e.SharedPlaylistView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(d);break;case u.E.Series:var v=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(3019),r.e(6014),r.e(5986),r.e(3231),r.e(2215),r.e(2319)]).then(r.bind(r,96922));case 2:return e=t.sent,n=e.SharedSeriesView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(v)}}}),[t,c]),c},v=r(22902),p=r(16714);function y(t){var e=t.shareId,r=t.queryParams,n=(0,v.T)().hasPermissions,u=i.a.useBasicFetch(a.N.currentUser()),l=i.a.useBasicFetch(e&&c.o.getShareObject(e)),s=d(l.data,r);if(!s)return o().createElement(o().Fragment,null);var f={shareId:e,queryParams:r,objectId:r.videoId?r.videoId:r.clipId?r.clipId:r.interactiveId?r.interactiveId:l.data.objectId,currentUser:u.data,playNext:r.playNext};return n(p.C.StudentExperience)&&"activityStatus"in l.data&&(f.activityStatus=l.data.activityStatus),o().createElement(o().Suspense,{fallback:o().createElement(o().Fragment,null)},o().createElement(s,Object.assign({},f)))}}}]);