@clickview/lite 0.15.3 → 0.15.4-dev.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 (225) hide show
  1. package/.eslintrc.json +2 -2
  2. package/dist/bundles.json +2 -2
  3. package/dist/css/{2873-lite-11013d22b2.chunk.css → 6044-lite-8c9205e744.chunk.css} +1 -1
  4. package/dist/css/6480-lite-ed3488bfac.chunk.css +5 -0
  5. package/dist/css/{1003-lite-aa0fc0d71a.chunk.css → 6557-lite-2190cf04bf.chunk.css} +1 -1
  6. package/dist/css/{8278-lite-aa0fc0d71a.chunk.css → 7131-lite-2190cf04bf.chunk.css} +1 -1
  7. package/dist/css/7281-lite-121afa5d5c.chunk.css +4 -0
  8. package/dist/css/{5290-lite-11013d22b2.chunk.css → 9166-lite-8c9205e744.chunk.css} +1 -1
  9. package/dist/css/{lite-app-cf5196fb84.css → lite-app-b10e3f5631.css} +2 -2
  10. package/dist/languages/en.json +1 -1
  11. package/dist/scripts/{1200-c506d27e70-lite.chunk.js → 1200-7bc97aed97-lite.chunk.js} +1 -1
  12. package/dist/scripts/{1592-dc635b7440-lite.chunk.js → 1592-ee21fc0aa7-lite.chunk.js} +1 -1
  13. package/dist/scripts/{1679-fbcb0a6720-lite.chunk.js → 1679-126577e72d-lite.chunk.js} +1 -1
  14. package/dist/scripts/{1705-ae576f3641-lite.chunk.js → 1705-0e26b4eaf0-lite.chunk.js} +1 -1
  15. package/dist/scripts/{2097-1c5f2a1fcb-lite.chunk.js → 2097-146bcd1ddf-lite.chunk.js} +2 -2
  16. package/dist/scripts/{2190-471331d8f2-lite.chunk.js → 2190-589bf6f8af-lite.chunk.js} +1 -1
  17. package/dist/scripts/{2215-af79023240-lite.chunk.js → 2215-da187c9feb-lite.chunk.js} +1 -1
  18. package/dist/scripts/{2303-028cc0466f-lite.chunk.js → 2303-6126340963-lite.chunk.js} +1 -1
  19. package/dist/scripts/{2541-6ebd3ae13e-lite.chunk.js → 2541-cbcd289af6-lite.chunk.js} +1 -1
  20. package/dist/scripts/2560-c046fde2a7-lite.chunk.js +1 -0
  21. package/dist/scripts/2966-534977c67c-lite.chunk.js +1 -0
  22. package/dist/scripts/3202-6c9e45632f-lite.chunk.js +1 -0
  23. package/dist/scripts/{3231-f57e8dbad8-lite.chunk.js → 3231-90a6d4529c-lite.chunk.js} +1 -1
  24. package/dist/scripts/{3285-4b1f16d207-lite.chunk.js → 3285-30ed370d66-lite.chunk.js} +1 -1
  25. package/dist/scripts/3729-9f1b5c059f-lite.chunk.js +1 -0
  26. package/dist/scripts/4262-333422e343-lite.chunk.js +1 -0
  27. package/dist/scripts/{4309-d1547161e9-lite.chunk.js → 4309-00c179f744-lite.chunk.js} +1 -1
  28. package/dist/scripts/{4617-9ac1af6dfd-lite.chunk.js → 4617-55a38a0696-lite.chunk.js} +1 -1
  29. package/dist/scripts/{4722-8066074f20-lite.chunk.js → 4722-644338ad02-lite.chunk.js} +1 -1
  30. package/dist/scripts/4762-a54399fce4-lite.chunk.js +1 -0
  31. package/dist/scripts/5018-67695be6d6-lite.chunk.js +1 -0
  32. package/dist/scripts/5125-25de718469-lite.chunk.js +1 -0
  33. package/dist/scripts/{5763-6b4b39b05b-lite.chunk.js → 5763-45ef83bd4d-lite.chunk.js} +1 -1
  34. package/dist/scripts/{5875-4cdf932880-lite.chunk.js → 5875-eb7ea3e0e5-lite.chunk.js} +1 -1
  35. package/dist/scripts/5923-987f2c93aa-lite.chunk.js +1 -0
  36. package/dist/scripts/5986-3cc452ac87-lite.chunk.js +1 -0
  37. package/dist/scripts/6044-f522ee7ad5-lite.chunk.js +1 -0
  38. package/dist/scripts/{6080-0c2ee137e7-lite.chunk.js → 6080-297fb061ee-lite.chunk.js} +1 -1
  39. package/dist/scripts/{6160-ed553565f8-lite.chunk.js → 6160-1bfd8b6eb2-lite.chunk.js} +1 -1
  40. package/dist/scripts/6226-c7dfa87a78-lite.chunk.js +1 -0
  41. package/dist/scripts/{6263-2af1d7e30d-lite.chunk.js → 6263-999d99218d-lite.chunk.js} +1 -1
  42. package/dist/scripts/{6290-43f1441287-lite.chunk.js → 6290-b25a299771-lite.chunk.js} +1 -1
  43. package/dist/scripts/{6302-12f37e86e3-lite.chunk.js → 6302-b08c38e401-lite.chunk.js} +1 -1
  44. package/dist/scripts/6480-92c1141ba0-lite.chunk.js +1 -0
  45. package/dist/scripts/{6507-8ed19f9a8b-lite.chunk.js → 6507-8ca10f440c-lite.chunk.js} +1 -1
  46. package/dist/scripts/6557-23354d047f-lite.chunk.js +1 -0
  47. package/dist/scripts/{6736-4ded0efe20-lite.chunk.js → 6736-a4c7163c83-lite.chunk.js} +1 -1
  48. package/dist/scripts/{6801-f8466b395e-lite.chunk.js → 6801-ccfd47ed84-lite.chunk.js} +1 -1
  49. package/dist/scripts/6936-d91b012e77-lite.chunk.js +1 -0
  50. package/dist/scripts/7057-9caa393f6a-lite.chunk.js +1 -0
  51. package/dist/scripts/7093-13f22495dc-lite.chunk.js +1 -0
  52. package/dist/scripts/{1003-ef8ce5b335-lite.chunk.js → 7131-a9936bcad2-lite.chunk.js} +1 -1
  53. package/dist/scripts/{7210-37e5f73035-lite.chunk.js → 7210-f978145238-lite.chunk.js} +1 -1
  54. package/dist/scripts/7281-cc32d852d1-lite.chunk.js +2 -0
  55. package/dist/scripts/{7318-72714b7211-lite.chunk.js → 7318-6cc811f662-lite.chunk.js} +2 -2
  56. package/dist/scripts/{7385-d8a9d8d8e1-lite.chunk.js → 7385-47a0e78345-lite.chunk.js} +1 -1
  57. package/dist/scripts/{7397-638e09f9f9-lite.chunk.js → 7397-4955150f84-lite.chunk.js} +1 -1
  58. package/dist/scripts/7831-9841ba0dc4-lite.chunk.js +1 -0
  59. package/dist/scripts/7880-912034e651-lite.chunk.js +1 -0
  60. package/dist/scripts/{7888-52843639d6-lite.chunk.js → 7888-ae7d2a9a29-lite.chunk.js} +1 -1
  61. package/dist/scripts/7901-9bedd6d3c7-lite.chunk.js +1 -0
  62. package/dist/scripts/{7989-eb45eeb999-lite.chunk.js → 7989-1b3277ef7b-lite.chunk.js} +1 -1
  63. package/dist/scripts/{8323-2743057743-lite.chunk.js → 8323-ed50d28843-lite.chunk.js} +1 -1
  64. package/dist/scripts/{8779-725ad94876-lite.chunk.js → 8779-f555f018a8-lite.chunk.js} +1 -1
  65. package/dist/scripts/{8891-7e65f394fb-lite.chunk.js → 8891-f91f140e3f-lite.chunk.js} +1 -1
  66. package/dist/scripts/9005-11aa7b5025-lite.chunk.js +1 -0
  67. package/dist/scripts/9016-f5547114e1-lite.chunk.js +1 -0
  68. package/dist/scripts/{9035-658323ab5c-lite.chunk.js → 9035-1c409d1ad6-lite.chunk.js} +1 -1
  69. package/dist/scripts/{9133-fee6bf88ed-lite.chunk.js → 9133-10a177a126-lite.chunk.js} +1 -1
  70. package/dist/scripts/{9154-f3edd30058-lite.chunk.js → 9154-c23979875e-lite.chunk.js} +1 -1
  71. package/dist/scripts/9166-2108aa001e-lite.chunk.js +1 -0
  72. package/dist/scripts/{929-714a7dc6af-lite.chunk.js → 929-4957d8a224-lite.chunk.js} +1 -1
  73. package/dist/scripts/{9312-eb6e6faade-lite.chunk.js → 9312-f6d43cdce6-lite.chunk.js} +2 -2
  74. package/dist/scripts/{9478-65c3a1110d-lite.chunk.js → 9478-7e0614d2a8-lite.chunk.js} +2 -2
  75. package/dist/scripts/9478-7e0614d2a8-lite.chunk.js.LICENSE.txt +1 -0
  76. package/dist/scripts/{9686-1ed4393a38-lite.chunk.js → 9686-092c3d478c-lite.chunk.js} +1 -1
  77. package/dist/scripts/9899-326aa9652b-lite.chunk.js +1 -0
  78. package/dist/scripts/bundle-8e2840a7bf.min.js +2 -0
  79. package/jest.config.js +11 -11
  80. package/package.json +59 -58
  81. package/typings/libs/CVEvents.d.ts +12 -12
  82. package/typings/libs/CVLanguages.d.ts +24 -24
  83. package/typings/libs/backbone.validation.d.ts +99 -99
  84. package/typings/libs/cookiesjs.d.ts +25 -25
  85. package/typings/libs/draft-convert.d.ts +3 -3
  86. package/typings/libs/google-api.d.ts +93 -93
  87. package/typings/libs/intersection-observer.d.ts +82 -82
  88. package/typings/libs/microsoft-teams.d.ts +2 -2
  89. package/typings/libs/react-table-config.d.ts +138 -138
  90. package/typings/libs/trackjs.d.ts +2 -2
  91. package/typings/libs/videojs-contrib-quality-levels.d.ts +28 -28
  92. package/typings/utils/imports.d.ts +13 -13
  93. package/dist/scripts/2012-2f6b307507-lite.chunk.js +0 -1
  94. package/dist/scripts/2560-3041345565-lite.chunk.js +0 -1
  95. package/dist/scripts/2873-297718ffe4-lite.chunk.js +0 -1
  96. package/dist/scripts/2966-6c37f34938-lite.chunk.js +0 -1
  97. package/dist/scripts/3202-c6237ac449-lite.chunk.js +0 -1
  98. package/dist/scripts/3729-0518176814-lite.chunk.js +0 -1
  99. package/dist/scripts/4108-4a37946815-lite.chunk.js +0 -1
  100. package/dist/scripts/4262-45eb7313bd-lite.chunk.js +0 -1
  101. package/dist/scripts/4762-bed7f565f9-lite.chunk.js +0 -1
  102. package/dist/scripts/5018-4fa8bb7f15-lite.chunk.js +0 -1
  103. package/dist/scripts/5125-010d1df259-lite.chunk.js +0 -1
  104. package/dist/scripts/5290-93df8dcdf9-lite.chunk.js +0 -1
  105. package/dist/scripts/5923-690e9cc63a-lite.chunk.js +0 -1
  106. package/dist/scripts/5986-a36cfcf242-lite.chunk.js +0 -1
  107. package/dist/scripts/6936-09baf4a92f-lite.chunk.js +0 -1
  108. package/dist/scripts/7057-7283f25eef-lite.chunk.js +0 -1
  109. package/dist/scripts/7831-a1a1e893b8-lite.chunk.js +0 -1
  110. package/dist/scripts/7880-e464ee1c20-lite.chunk.js +0 -1
  111. package/dist/scripts/7901-558fd93326-lite.chunk.js +0 -1
  112. package/dist/scripts/8278-1aa39f0700-lite.chunk.js +0 -1
  113. package/dist/scripts/9005-b110294f6f-lite.chunk.js +0 -1
  114. package/dist/scripts/9016-0710323eaa-lite.chunk.js +0 -1
  115. package/dist/scripts/9899-b96c60ec3b-lite.chunk.js +0 -1
  116. package/dist/scripts/bundle-e90e082770.min.js +0 -2
  117. /package/dist/css/{4108-lite-c9bfd660fa.chunk.css → 7093-lite-c9bfd660fa.chunk.css} +0 -0
  118. /package/dist/scripts/{1007-2ca916e6d6-lite.chunk.js → 1007-c964b537de-lite.chunk.js} +0 -0
  119. /package/dist/scripts/{1200-c506d27e70-lite.chunk.js.LICENSE.txt → 1200-7bc97aed97-lite.chunk.js.LICENSE.txt} +0 -0
  120. /package/dist/scripts/{1235-aa0df7dc82-lite.chunk.js → 1235-f87c0b5db8-lite.chunk.js} +0 -0
  121. /package/dist/scripts/{1285-8f7e21c6c8-lite.chunk.js → 1285-e2bd8a3d06-lite.chunk.js} +0 -0
  122. /package/dist/scripts/{1291-de2ace7ed4-lite.chunk.js → 1291-000a87e198-lite.chunk.js} +0 -0
  123. /package/dist/scripts/{1518-2cef7e66cf-lite.chunk.js → 1518-4ec8790cb2-lite.chunk.js} +0 -0
  124. /package/dist/scripts/{1659-59d1428248-lite.chunk.js → 1659-19cf886865-lite.chunk.js} +0 -0
  125. /package/dist/scripts/{1725-8827df5901-lite.chunk.js → 1725-585ab6067c-lite.chunk.js} +0 -0
  126. /package/dist/scripts/{1792-ab897d369e-lite.chunk.js → 1792-2321d51dba-lite.chunk.js} +0 -0
  127. /package/dist/scripts/{1837-c4d960d524-lite.chunk.js → 1837-c57fc691a7-lite.chunk.js} +0 -0
  128. /package/dist/scripts/{1891-b00fa42970-lite.chunk.js → 1891-883205c90f-lite.chunk.js} +0 -0
  129. /package/dist/scripts/{1924-33f191fed1-lite.chunk.js → 1924-e9c7172d53-lite.chunk.js} +0 -0
  130. /package/dist/scripts/{209-16a13c2271-lite.chunk.js → 209-4768c11224-lite.chunk.js} +0 -0
  131. /package/dist/scripts/{2097-1c5f2a1fcb-lite.chunk.js.LICENSE.txt → 2097-146bcd1ddf-lite.chunk.js.LICENSE.txt} +0 -0
  132. /package/dist/scripts/{2175-5ff59ae9f4-lite.chunk.js → 2175-899f9ff876-lite.chunk.js} +0 -0
  133. /package/dist/scripts/{2229-74179fc95b-lite.chunk.js → 2229-931236512d-lite.chunk.js} +0 -0
  134. /package/dist/scripts/{227-5c7c67782c-lite.chunk.js → 227-9c12b92fc7-lite.chunk.js} +0 -0
  135. /package/dist/scripts/{2279-e542de566e-lite.chunk.js → 2279-004a1f3e13-lite.chunk.js} +0 -0
  136. /package/dist/scripts/{2452-ed97feb8f4-lite.chunk.js → 2452-ddcf0aa499-lite.chunk.js} +0 -0
  137. /package/dist/scripts/{2574-0a7bbfea42-lite.chunk.js → 2574-983b454ad7-lite.chunk.js} +0 -0
  138. /package/dist/scripts/{2592-085c2cd21c-lite.chunk.js → 2592-2f084dd8af-lite.chunk.js} +0 -0
  139. /package/dist/scripts/{27-e2dabf4466-lite.chunk.js → 27-80804c23ed-lite.chunk.js} +0 -0
  140. /package/dist/scripts/{2791-881b28a030-lite.chunk.js → 2791-b3c486a765-lite.chunk.js} +0 -0
  141. /package/dist/scripts/{2812-ea1ead0f4e-lite.chunk.js → 2812-64644796c1-lite.chunk.js} +0 -0
  142. /package/dist/scripts/{291-80f5120bdc-lite.chunk.js → 291-ce2b835b15-lite.chunk.js} +0 -0
  143. /package/dist/scripts/{2935-231926522c-lite.chunk.js → 2935-f78be6fc97-lite.chunk.js} +0 -0
  144. /package/dist/scripts/{3007-5207ac6a44-lite.chunk.js → 3007-9ee1ebf9f7-lite.chunk.js} +0 -0
  145. /package/dist/scripts/{3012-5a2e992d80-lite.chunk.js → 3012-4263dd0317-lite.chunk.js} +0 -0
  146. /package/dist/scripts/{3020-6297afe9aa-lite.chunk.js → 3020-efe1827524-lite.chunk.js} +0 -0
  147. /package/dist/scripts/{3108-7b6349607f-lite.chunk.js → 3108-90186be5f6-lite.chunk.js} +0 -0
  148. /package/dist/scripts/{3152-5393aebd54-lite.chunk.js → 3152-be39e1ea5d-lite.chunk.js} +0 -0
  149. /package/dist/scripts/{3171-1f3496bc29-lite.chunk.js → 3171-0f3cda86d4-lite.chunk.js} +0 -0
  150. /package/dist/scripts/{3174-d4dafe5c16-lite.chunk.js → 3174-ddf63dbf33-lite.chunk.js} +0 -0
  151. /package/dist/scripts/{3216-190f074311-lite.chunk.js → 3216-ad68938cab-lite.chunk.js} +0 -0
  152. /package/dist/scripts/{3237-76b4eacd1c-lite.chunk.js → 3237-abd4f2320e-lite.chunk.js} +0 -0
  153. /package/dist/scripts/{3269-3eed954253-lite.chunk.js → 3269-2dcd8315fb-lite.chunk.js} +0 -0
  154. /package/dist/scripts/{3468-3693024f26-lite.chunk.js → 3468-3668b5044d-lite.chunk.js} +0 -0
  155. /package/dist/scripts/{3754-ff751ace76-lite.chunk.js → 3754-ba9209ac1c-lite.chunk.js} +0 -0
  156. /package/dist/scripts/{3787-82c933d7ed-lite.chunk.js → 3787-5ad242b2f0-lite.chunk.js} +0 -0
  157. /package/dist/scripts/{4182-aa468b67ef-lite.chunk.js → 4182-3e9887f6bf-lite.chunk.js} +0 -0
  158. /package/dist/scripts/{4343-940ff0028f-lite.chunk.js → 4343-00a17c0adb-lite.chunk.js} +0 -0
  159. /package/dist/scripts/{4423-690a215874-lite.chunk.js → 4423-48a7394369-lite.chunk.js} +0 -0
  160. /package/dist/scripts/{4541-94a3392387-lite.chunk.js → 4541-538d1dd03a-lite.chunk.js} +0 -0
  161. /package/dist/scripts/{482-543bf1bb58-lite.chunk.js → 482-397917b1c7-lite.chunk.js} +0 -0
  162. /package/dist/scripts/{4893-97876b0f67-lite.chunk.js → 4893-b59fffe777-lite.chunk.js} +0 -0
  163. /package/dist/scripts/{5197-b928550a4d-lite.chunk.js → 5197-d85c77eb63-lite.chunk.js} +0 -0
  164. /package/dist/scripts/{5585-fb913e8144-lite.chunk.js → 5585-c52455e7ac-lite.chunk.js} +0 -0
  165. /package/dist/scripts/{5606-c733696024-lite.chunk.js → 5606-af27d0d181-lite.chunk.js} +0 -0
  166. /package/dist/scripts/{5875-4cdf932880-lite.chunk.js.LICENSE.txt → 5875-eb7ea3e0e5-lite.chunk.js.LICENSE.txt} +0 -0
  167. /package/dist/scripts/{5877-8ef5391aa9-lite.chunk.js → 5877-fe7fe23526-lite.chunk.js} +0 -0
  168. /package/dist/scripts/{5914-14a1cece1b-lite.chunk.js → 5914-e431f8ff72-lite.chunk.js} +0 -0
  169. /package/dist/scripts/{5956-149ed44852-lite.chunk.js → 5956-7aa28b3f38-lite.chunk.js} +0 -0
  170. /package/dist/scripts/{5974-41328f6830-lite.chunk.js → 5974-726f70e011-lite.chunk.js} +0 -0
  171. /package/dist/scripts/{6274-e72a9defe0-lite.chunk.js → 6274-8bd482354f-lite.chunk.js} +0 -0
  172. /package/dist/scripts/{6368-08b51680f0-lite.chunk.js → 6368-3dafa511a1-lite.chunk.js} +0 -0
  173. /package/dist/scripts/{6370-95dd54b1c3-lite.chunk.js → 6370-73a5f5b640-lite.chunk.js} +0 -0
  174. /package/dist/scripts/{6381-a056fb8a08-lite.chunk.js → 6381-9f24a47cb7-lite.chunk.js} +0 -0
  175. /package/dist/scripts/{6450-e266aa89ea-lite.chunk.js → 6450-c1f0423e8d-lite.chunk.js} +0 -0
  176. /package/dist/scripts/{6465-0c60c1cd6c-lite.chunk.js → 6465-6363e9ebf6-lite.chunk.js} +0 -0
  177. /package/dist/scripts/{6493-74f6946ca6-lite.chunk.js → 6493-2c1d2fad27-lite.chunk.js} +0 -0
  178. /package/dist/scripts/{6604-51f58c98be-lite.chunk.js → 6604-21e6cab511-lite.chunk.js} +0 -0
  179. /package/dist/scripts/{6725-47d9b15d14-lite.chunk.js → 6725-692a6bf6d9-lite.chunk.js} +0 -0
  180. /package/dist/scripts/{6736-4ded0efe20-lite.chunk.js.LICENSE.txt → 6736-a4c7163c83-lite.chunk.js.LICENSE.txt} +0 -0
  181. /package/dist/scripts/{6821-a985554f7d-lite.chunk.js → 6821-6859424d65-lite.chunk.js} +0 -0
  182. /package/dist/scripts/{6873-323ca69b42-lite.chunk.js → 6873-3caf3bd99a-lite.chunk.js} +0 -0
  183. /package/dist/scripts/{7045-9a70804c9a-lite.chunk.js → 7045-638058e6a9-lite.chunk.js} +0 -0
  184. /package/dist/scripts/{7056-5225cf8ce1-lite.chunk.js → 7056-15a17acdd3-lite.chunk.js} +0 -0
  185. /package/dist/scripts/{7115-77f4f95941-lite.chunk.js → 7115-b47d0943f3-lite.chunk.js} +0 -0
  186. /package/dist/scripts/{7128-193ffbf36e-lite.chunk.js → 7128-e249c51075-lite.chunk.js} +0 -0
  187. /package/dist/scripts/{716-f911abe0b5-lite.chunk.js → 716-279e6da74c-lite.chunk.js} +0 -0
  188. /package/dist/scripts/{7172-b46b99bc9f-lite.chunk.js → 7172-f7ba572736-lite.chunk.js} +0 -0
  189. /package/dist/scripts/{7178-79a2e83a9f-lite.chunk.js → 7178-c77095800f-lite.chunk.js} +0 -0
  190. /package/dist/scripts/{719-6bbb20b387-lite.chunk.js → 719-722225b0c0-lite.chunk.js} +0 -0
  191. /package/dist/scripts/{8323-2743057743-lite.chunk.js.LICENSE.txt → 7281-cc32d852d1-lite.chunk.js.LICENSE.txt} +0 -0
  192. /package/dist/scripts/{7318-72714b7211-lite.chunk.js.LICENSE.txt → 7318-6cc811f662-lite.chunk.js.LICENSE.txt} +0 -0
  193. /package/dist/scripts/{7332-3d9c2f21c3-lite.chunk.js → 7332-2a37cfd165-lite.chunk.js} +0 -0
  194. /package/dist/scripts/{7407-0dc924f426-lite.chunk.js → 7407-9ed25c23a1-lite.chunk.js} +0 -0
  195. /package/dist/scripts/{7413-ee228e9e6b-lite.chunk.js → 7413-7e3710396d-lite.chunk.js} +0 -0
  196. /package/dist/scripts/{7524-9489b28409-lite.chunk.js → 7524-88c405b1b2-lite.chunk.js} +0 -0
  197. /package/dist/scripts/{7552-40be3820db-lite.chunk.js → 7552-d1a8e6602b-lite.chunk.js} +0 -0
  198. /package/dist/scripts/{7767-6009061b47-lite.chunk.js → 7767-7ee6460e21-lite.chunk.js} +0 -0
  199. /package/dist/scripts/{7855-68913eaf38-lite.chunk.js → 7855-f47ffb61a9-lite.chunk.js} +0 -0
  200. /package/dist/scripts/{7925-1236157fe7-lite.chunk.js → 7925-a0e0e07c8a-lite.chunk.js} +0 -0
  201. /package/dist/scripts/{7989-eb45eeb999-lite.chunk.js.LICENSE.txt → 7989-1b3277ef7b-lite.chunk.js.LICENSE.txt} +0 -0
  202. /package/dist/scripts/{8025-1552bc6cd4-lite.chunk.js → 8025-babfe79090-lite.chunk.js} +0 -0
  203. /package/dist/scripts/{8038-593e87cc91-lite.chunk.js → 8038-be1f63c0ae-lite.chunk.js} +0 -0
  204. /package/dist/scripts/{8046-98d5f00223-lite.chunk.js → 8046-27cf494035-lite.chunk.js} +0 -0
  205. /package/dist/scripts/{8056-d0f84db2e5-lite.chunk.js → 8056-11a1dbabef-lite.chunk.js} +0 -0
  206. /package/dist/scripts/{8083-2b7dbb7078-lite.chunk.js → 8083-ec930527e2-lite.chunk.js} +0 -0
  207. /package/dist/scripts/{823-42151f959d-lite.chunk.js → 823-f6242135a8-lite.chunk.js} +0 -0
  208. /package/dist/scripts/{8252-2ab1871639-lite.chunk.js → 8252-a1fdb747cd-lite.chunk.js} +0 -0
  209. /package/dist/scripts/{9312-eb6e6faade-lite.chunk.js.LICENSE.txt → 8323-ed50d28843-lite.chunk.js.LICENSE.txt} +0 -0
  210. /package/dist/scripts/{8339-123423a4a1-lite.chunk.js → 8339-de192f2de3-lite.chunk.js} +0 -0
  211. /package/dist/scripts/{8466-d4ae83ca9d-lite.chunk.js → 8466-be5071f893-lite.chunk.js} +0 -0
  212. /package/dist/scripts/{8621-baf66fcdf3-lite.chunk.js → 8621-1bbcb94da7-lite.chunk.js} +0 -0
  213. /package/dist/scripts/{8745-c846303500-lite.chunk.js → 8745-e0b1fa5c33-lite.chunk.js} +0 -0
  214. /package/dist/scripts/{8801-f6628e7896-lite.chunk.js → 8801-7bc34939a6-lite.chunk.js} +0 -0
  215. /package/dist/scripts/{8868-793082d45a-lite.chunk.js → 8868-712a4fd410-lite.chunk.js} +0 -0
  216. /package/dist/scripts/{8955-6d4f8ff6bb-lite.chunk.js → 8955-5fcbf667e7-lite.chunk.js} +0 -0
  217. /package/dist/scripts/{9001-74a8cdfe51-lite.chunk.js → 9001-7a30be2b8d-lite.chunk.js} +0 -0
  218. /package/dist/scripts/{9038-49ee873485-lite.chunk.js → 9038-7a39972821-lite.chunk.js} +0 -0
  219. /package/dist/scripts/{9060-e6fd135bd3-lite.chunk.js → 9060-e6d0dd2e0b-lite.chunk.js} +0 -0
  220. /package/dist/scripts/{9147-fca99f99f5-lite.chunk.js → 9147-7d4c746c2a-lite.chunk.js} +0 -0
  221. /package/dist/scripts/{9242-ec6c35ef1f-lite.chunk.js → 9242-ae51b31111-lite.chunk.js} +0 -0
  222. /package/dist/scripts/{9478-65c3a1110d-lite.chunk.js.LICENSE.txt → 9312-f6d43cdce6-lite.chunk.js.LICENSE.txt} +0 -0
  223. /package/dist/scripts/{9455-a719e8891b-lite.chunk.js → 9455-9769e1bab9-lite.chunk.js} +0 -0
  224. /package/dist/scripts/{9552-b3068122ac-lite.chunk.js → 9552-cc19aaf243-lite.chunk.js} +0 -0
  225. /package/dist/scripts/{bundle-e90e082770.min.js.LICENSE.txt → bundle-8e2840a7bf.min.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[7210],{9826:(e,t,n)=>{n.d(t,{e:()=>d});var r=n(1024),a=n(79014),c=n(10038),l=n(81514),i=n(86764);function o(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 u(e){var t="justify-content-".concat(e.justify);return r.createElement("div",{className:"py-3 bg-white ".concat("rIUL4")},r.createElement("div",{className:"w-75 mx-auto d-flex ".concat(t)},e.children))}function s(e){var t=(0,l.V)(),n=t===i.r.SM||t===i.r.XS?"w-100":"w-75",a="justify-content-".concat(e.justify);return r.createElement("div",{className:"".concat(n," ").concat(a," ").concat("PuC_F"," d-flex px-3")},e.children)}function d(e){var t,n,l=function(){return window.innerHeight+window.scrollY>=document.body.offsetHeight-50},i=(t=r.useState(!1),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,a,c=[],l=!0,i=!1;try{for(n=n.call(e);!(l=(r=n.next()).done)&&(c.push(r.value),!t||c.length!==t);l=!0);}catch(e){i=!0,a=e}finally{try{l||null==n.return||n.return()}finally{if(i)throw a}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return o(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)?o(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.")}()),d=i[0],f=i[1];r.useEffect((function(){return f(!l())}),[]);var m=a.q.throttle((function(){var e=!l();!d||e?!d&&e&&f(!0):f(!1)}),100);return r.useEffect((function(){return window.addEventListener("scroll",m),function(){return window.removeEventListener("scroll",m)}}),[d,f]),(0,c.H)(m,m,[d,f]),d?r.createElement(u,Object.assign({},e),e.children):r.createElement(s,Object.assign({},e),e.children)}d.defaultProps={justify:"between"}},15214:(e,t,n)=>{n.d(t,{ed:()=>r.e,cQ:()=>m.c,i:()=>d,RP:()=>f.R});var r=n(9826),a=(n(95436),n(1024)),c=n(75896),l=n(86764),i=n(81514),o=n(70154),u=n(92875);function s(e){var t=a.useContext(o.x),n=t.expandedSubject,r=t.selectedSubjects;return a.createElement(a.Fragment,null,e.subjects.map((function(t){var c=function(e,t){return!(!t||e.id===t.id||t.children.find((function(t){return t.id===e.id})))}(t,n),l=e.onSelect;return t.isExpandableOption&&(l=e.onExpand),c&&(l=e.onCollapse),e.hasSelectedBulk&&(l=function(){}),a.createElement(f.R,{key:t.id,subject:t,selected:!e.hasSelectedBulk&&r.includes(t.id),disabled:e.hasSelectedBulk||c,onClick:function(){return l(t)},hasSelectedBulk:e.hasSelectedBulk})})))}function d(e){var t=e.subjects,n=e.hasSelectedBulk,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}(e,["subjects","hasSelectedBulk"]),f=a.useContext(o.x).expandedSubject,m=function(){switch((0,i.V)()){case l.r.LG:default:return 5;case l.r.MD:return 4;case l.r.SM:return 3;case l.r.XS:return 2}}(),p=t.reduce((function(e,t,n){return n%m==0?e.push([t]):c.m.last(e).push(t),e}),[]);return a.createElement("ul",{className:u.Z.grid},p.map((function(e,t){var c=f&&!!e.find((function(e){return f.id===e.id&&e.isExpandableOption}));return a.createElement(a.Fragment,{key:t},a.createElement(s,Object.assign({subjects:e,hasSelectedBulk:n},r)),c&&a.createElement("li",{className:"".concat(u.Z.subgrid," m-0")},a.createElement(d,Object.assign({subjects:f.children,hasSelectedBulk:n},r))))})))}var f=n(74058),m=n(386)},95436:(e,t,n)=>{n.d(t,{a:()=>c});var r=n(1024),a=n(8493);function c(e){return r.createElement("nav",{className:"d-flex justify-content-center pt-3 position-relative ".concat("cwMAI")},e.steps.map((function(e,t){return r.createElement(a.F,{key:t,appLink:e.disabled||e.active?null:e.appLink,className:(n=e.active,c=e.disabled,l=n?"bg-info":"bg-light",i=c||n?"":"cursor-pointer","".concat("rounded-circle mx-2 G0_JK"," ").concat(l," ").concat(i))});var n,c,l,i})))}},386:(e,t,n)=>{n.d(t,{c:()=>d});var r=n(1024),a=n.n(r),c=n(83914),l=n(58130);const i="H4u81",o="w5g0e";var u=function(e){return e.selectedChildrenCount?r.createElement("div",{className:"".concat(i," ").concat(o)},e.selectedChildrenCount):r.createElement(r.Fragment,null)},s=function(e){var t;return t=e.selected?r.createElement(c.x,{svgName:l.vn.Check}):e.radioButton?r.createElement(r.Fragment,null," "):r.createElement(c.x,{svgName:l.vn.Plus}),r.createElement("div",{className:"".concat(i," ").concat(e.selected?o:"iYkPv")},t)};function d(e){var t,n="".concat("CCsqs"," ").concat(e.expand?"w7N1R":"mO0Kn");return a().createElement("li",{className:(t="rounded ".concat("PSWHa"),e.extraClasses&&(t+=" "+e.extraClasses),e.isDisabled&&(t+=" Oyw2x"),e.isSelected&&!e.isExpandable&&(t+=" Czk2N"),e.hideStatus&&(t+=" _e7oe"),t),onClick:e.onClick,"aria-checked":e.isSelected,"aria-haspopup":e.isExpandable,role:e.isExpandable?"button":"checkbox",style:{backgroundImage:"url(".concat(e.imageUrl,")")},tabIndex:0,title:e.name},a().createElement("div",{className:"".concat("pfksF"," p-2")},a().createElement("p",{className:"text-truncate mb-0"},e.name,a().createElement("span",{className:e.isExpandable?n:""})),!e.hideStatus&&a().createElement(a().Fragment,null,e.isExpandable?a().createElement(u,{selectedChildrenCount:e.selectedChildCount}):a().createElement(s,{selected:e.isSelected,radioButton:e.radioButton}))))}},39097:(e,t,n)=>{n.d(t,{U:()=>j});var r=n(1024),a=n.n(r),c=n(81886),l=n(75896),i=n(23481),o=n(83345),u=n(83523),s=n(2102),d=n(69883),f=n(60836),m=n(49602),p=n(15214),b=n(70154),v=n(8493);function h(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,a,c=[],l=!0,i=!1;try{for(n=n.call(e);!(l=(r=n.next()).done)&&(c.push(r.value),!t||c.length!==t);l=!0);}catch(e){i=!0,a=e}finally{try{l||null==n.return||n.return()}finally{if(i)throw a}}return c}}(e,t)||g(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 y(e){return function(e){if(Array.isArray(e))return E(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){if(e){if("string"==typeof e)return E(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)?E(e,t):void 0}}function E(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 S="subjects.topicPreferences";function j(e){var t,n=h(a().useState([]),2),r=n[0],g=n[1],E=h(a().useState(null),2),j=E[0],x=E[1],k=h(a().useState(e.bulkPreferencesState),2),w=k[0],C=k[1],O=h(a().useState(!1),2),A=O[0],N=O[1],B=(0,d.Z)(),P=m.b.hasBulkSelectedTopics(w);a().useEffect((function(){var t;(null===(t=e.preselections)||void 0===t?void 0:t.length)?g(l.m.uniq([].concat(y(r),y(e.preselections.map((function(e){return e.id})))))):g([])}),[null===(t=e.preselections)||void 0===t?void 0:t.length]);var I=h((0,f.j)((function(){N(!1),e.isOnboarding||B.success(i.T.getPhrase(S,"success")),e.nextAppLink&&c.Q.AppLinkHelper.trigger(e.nextAppLink)})),2),L=I[0],F=I[1];function H(t){return!!e.preselections&&e.preselections.map((function(e){return e.id})).sort().toString()!==t.sort().toString()}function T(){return e.bulkPreferencesState!==w}function U(){if(!r.length&&!P)return!1;var t=T()||H(r);return!(!e.isOnboarding&&!t)}function M(){var e=m.b.getNextBulkState(w,"topics");x(null),C(e)}var _=function(e){if(!(null==e?void 0:e.length))return[];var t=[];return e.forEach((function(e){e.children&&e.children.length?t.push(Object.assign(Object.assign({},e),{isExpandableOption:!0,children:[Object.assign({},e)].concat(y(e.children))})):t.push(Object.assign({},e))})),t}(e.options);return a().createElement(o.D.Provider,{value:S},a().createElement("form",{className:"p-3 pb-5"},a().createElement("div",{className:"position-relative"},a().createElement(b.x.Provider,{value:{selectedSubjects:r,expandedSubject:j}},a().createElement(p.i,{subjects:_,onSelect:function(e){var t=l.m.addOrRemoveImmutable(r,e.id);g(t)},onExpand:function(e){x(j&&j.id===e.id?null:e)},onCollapse:function(){x(null)},hasSelectedBulk:P}))),a().createElement(p.ed,null,a().createElement("div",null,!!e.backButtonAppLink&&a().createElement(v.F,{appLink:e.backButtonAppLink,className:"btn btn-outline-dark"},a().createElement(o.x,{phrase:"back"}))),a().createElement("div",{className:"d-flex align-items-center justify-content-right"},a().createElement("div",{className:"d-flex mr-3"},a().createElement("p",{onClick:M,className:"mr-2 mb-0 font-weight-bold"},a().createElement(o.x,{phrase:"allSubjects"})),a().createElement(u.Z,{onClick:M,on:P,hideOutline:!0})),a().createElement(s.m,{variant:"dark",disabled:!U(),onClick:function(){if(U())if(H(r)||T()){N(!0);var t=r.filter((function(t){return!e.preselections.find((function(e){return e.id===t}))})),n=e.preselections.filter((function(e){return!r.includes(e.id)})),a=0;t.length&&a++,n.length&&a++,T()&&a++,F(a),e.saveChanges(t,n,w,L,(function(){B.error(i.T.getPhrase(S,"error")),N(!1)}))}else e.nextAppLink&&c.Q.AppLinkHelper.trigger(e.nextAppLink)},showSpinner:A},a().createElement(o.x,{phrase:e.isOnboarding?"next":"save"}))))))}},74058:(e,t,n)=>{n.d(t,{R:()=>u});var r=n(1024),a=n(67453),c=n(54610),l=n(70154),i=n(386),o=n(36532);function u(e){var t,n,u=r.useContext(l.x),s=e.subject.cover?a.j.createUrl(e.subject.cover.url,{size:c.h2.Small}):"",d=e.subject.isExpandableOption?e.subject.children.map((function(e){return e.id})):[],f=e.hasSelectedBulk?0:null===(t=null==u?void 0:u.selectedSubjects)||void 0===t?void 0:t.filter((function(e){return d.includes(e)})).length,m=r.createElement(i.c,{name:e.subject.name,imageUrl:s,onClick:e.onClick,isSelected:e.selected,isDisabled:e.disabled,isExpandable:e.subject.isExpandableOption,expand:(null===(n=null==u?void 0:u.expandedSubject)||void 0===n?void 0:n.id)===e.subject.id,selectedChildCount:f,extraClasses:e.extraClasses,hideStatus:e.hideStatus});return e.disabled?r.createElement("span",null,m):r.createElement(o.u,{title:e.subject.name},r.createElement("span",null,m))}},22129:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(1024),a=n(92875);function c(e){var t="grid"===e.style?a.Z.grid:"Ng80C";return r.createElement("div",{className:"p-3"},r.createElement("ul",{className:"".concat(t," ").concat(e.center?"justify-content-center":"")},Array(e.count).fill(null).map((function(t,n){return r.createElement("li",{key:n,className:"".concat("KQYyH"," partial-loading-background ").concat("lg"===e.size?"KiWap":"")})}))))}c.defaultProps={size:"sm"}},70154:(e,t,n)=>{n.d(t,{x:()=>r});var r=(0,n(1024).createContext)(void 0)},32910:(e,t,n)=>{n.d(t,{F:()=>c});var r=n(20354),a=n(61699);function c(e){var t=function(e){return e?e.filter((function(e){return e.canBePreferred})):[]},n=r.a.useBasicFetch(a.o.mySubjectPreferences((function(n){e&&e(t(n))})),{optimize:!0});return Object.assign(Object.assign({},n),{isFetching:n.isFetching,data:t(n.data)})}},60836:(e,t,n)=>{n.d(t,{j:()=>l});var r=n(1024),a=n.n(r);function c(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 l=function(e){var t,n,r=(t=a().useState(1),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,a,c=[],l=!0,i=!1;try{for(n=n.call(e);!(l=(r=n.next()).done)&&(c.push(r.value),!t||c.length!==t);l=!0);}catch(e){i=!0,a=e}finally{try{l||null==n.return||n.return()}finally{if(i)throw a}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return c(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)?c(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.")}()),l=r[0],i=r[1];return a().useEffect((function(){l>0||e()}),[l]),[function(){i((function(e){return e-1}))},i]}},92875:(e,t,n)=>{n.d(t,{Z:()=>r});const r={grid:"X9r1Y",subgrid:"TgYhp"}}}]);
1
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[7210],{9826:(e,t,n)=>{n.d(t,{e:()=>d});var r=n(1024),a=n(79014),c=n(10038),l=n(81514),i=n(86764);function o(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 u(e){var t="justify-content-".concat(e.justify);return r.createElement("div",{className:"py-3 bg-white ".concat("rIUL4")},r.createElement("div",{className:"w-75 mx-auto d-flex ".concat(t)},e.children))}function s(e){var t=(0,l.V)(),n=t===i.r.SM||t===i.r.XS?"w-100":"w-75",a="justify-content-".concat(e.justify);return r.createElement("div",{className:"".concat(n," ").concat(a," ").concat("PuC_F"," d-flex px-3")},e.children)}function d(e){var t,n,l=function(){return window.innerHeight+window.scrollY>=document.body.offsetHeight-50},i=(t=r.useState(!1),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,a,c=[],l=!0,i=!1;try{for(n=n.call(e);!(l=(r=n.next()).done)&&(c.push(r.value),!t||c.length!==t);l=!0);}catch(e){i=!0,a=e}finally{try{l||null==n.return||n.return()}finally{if(i)throw a}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return o(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)?o(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.")}()),d=i[0],f=i[1];r.useEffect((function(){return f(!l())}),[]);var m=a.q.throttle((function(){var e=!l();!d||e?!d&&e&&f(!0):f(!1)}),100);return r.useEffect((function(){return window.addEventListener("scroll",m),function(){return window.removeEventListener("scroll",m)}}),[d,f]),(0,c.H)(m,m,[d,f]),d?r.createElement(u,Object.assign({},e),e.children):r.createElement(s,Object.assign({},e),e.children)}d.defaultProps={justify:"between"}},15214:(e,t,n)=>{n.d(t,{ed:()=>r.e,cQ:()=>m.c,i:()=>d,RP:()=>f.R});var r=n(9826),a=(n(95436),n(1024)),c=n(75896),l=n(86764),i=n(81514),o=n(70154),u=n(92875);function s(e){var t=a.useContext(o.x),n=t.expandedSubject,r=t.selectedSubjects;return a.createElement(a.Fragment,null,e.subjects.map((function(t){var c=function(e,t){return!(!t||e.id===t.id||t.children.find((function(t){return t.id===e.id})))}(t,n),l=e.onSelect;return t.isExpandableOption&&(l=e.onExpand),c&&(l=e.onCollapse),e.hasSelectedBulk&&(l=function(){}),a.createElement(f.R,{key:t.id,subject:t,selected:!e.hasSelectedBulk&&r.includes(t.id),disabled:e.hasSelectedBulk||c,onClick:function(){return l(t)},hasSelectedBulk:e.hasSelectedBulk})})))}function d(e){var t=e.subjects,n=e.hasSelectedBulk,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}(e,["subjects","hasSelectedBulk"]),f=a.useContext(o.x).expandedSubject,m=function(){switch((0,i.V)()){case l.r.LG:default:return 5;case l.r.MD:return 4;case l.r.SM:return 3;case l.r.XS:return 2}}(),p=t.reduce((function(e,t,n){return n%m==0?e.push([t]):c.m.last(e).push(t),e}),[]);return a.createElement("ul",{className:u.Z.grid},p.map((function(e,t){var c=f&&!!e.find((function(e){return f.id===e.id&&e.isExpandableOption}));return a.createElement(a.Fragment,{key:t},a.createElement(s,Object.assign({subjects:e,hasSelectedBulk:n},r)),c&&a.createElement("li",{className:"".concat(u.Z.subgrid," m-0")},a.createElement(d,Object.assign({subjects:f.children,hasSelectedBulk:n},r))))})))}var f=n(74058),m=n(386)},95436:(e,t,n)=>{n.d(t,{a:()=>c});var r=n(1024),a=n(8493);function c(e){return r.createElement("nav",{className:"d-flex justify-content-center pt-3 position-relative ".concat("cwMAI")},e.steps.map((function(e,t){return r.createElement(a.F,{key:t,appLink:e.disabled||e.active?null:e.appLink,className:(n=e.active,c=e.disabled,l=n?"bg-info":"bg-light",i=c||n?"":"cursor-pointer","".concat("rounded-circle mx-2 G0_JK"," ").concat(l," ").concat(i))});var n,c,l,i})))}},386:(e,t,n)=>{n.d(t,{c:()=>d});var r=n(1024),a=n.n(r),c=n(83914),l=n(58130);const i="H4u81",o="w5g0e";var u=function(e){return e.selectedChildrenCount?r.createElement("div",{className:"".concat(i," ").concat(o)},e.selectedChildrenCount):r.createElement(r.Fragment,null)},s=function(e){var t;return t=e.selected?r.createElement(c.x,{svgName:l.vn.Check}):e.radioButton?r.createElement(r.Fragment,null," "):r.createElement(c.x,{svgName:l.vn.Plus}),r.createElement("div",{className:"".concat(i," ").concat(e.selected?o:"iYkPv")},t)};function d(e){var t,n="".concat("CCsqs"," ").concat(e.expand?"w7N1R":"mO0Kn");return a().createElement("li",{className:(t="rounded ".concat("PSWHa"),e.extraClasses&&(t+=" "+e.extraClasses),e.isDisabled&&(t+=" Oyw2x"),e.isSelected&&!e.isExpandable&&(t+=" Czk2N"),e.hideStatus&&(t+=" _e7oe"),t),onClick:e.onClick,"aria-checked":e.isSelected,"aria-haspopup":e.isExpandable,role:e.isExpandable?"button":"checkbox",style:{backgroundImage:"url(".concat(e.imageUrl,")")},tabIndex:0,title:e.name},a().createElement("div",{className:"".concat("pfksF"," p-2")},a().createElement("p",{className:"text-truncate mb-0"},e.name,a().createElement("span",{className:e.isExpandable?n:""})),!e.hideStatus&&a().createElement(a().Fragment,null,e.isExpandable?a().createElement(u,{selectedChildrenCount:e.selectedChildCount}):a().createElement(s,{selected:e.isSelected,radioButton:e.radioButton}))))}},39097:(e,t,n)=>{n.d(t,{U:()=>j});var r=n(1024),a=n.n(r),c=n(81886),l=n(75896),i=n(23481),o=n(83345),u=n(83523),s=n(2102),d=n(69883),f=n(60836),m=n(49602),p=n(15214),b=n(70154),v=n(8493);function h(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,a,c=[],l=!0,i=!1;try{for(n=n.call(e);!(l=(r=n.next()).done)&&(c.push(r.value),!t||c.length!==t);l=!0);}catch(e){i=!0,a=e}finally{try{l||null==n.return||n.return()}finally{if(i)throw a}}return c}}(e,t)||g(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 y(e){return function(e){if(Array.isArray(e))return E(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){if(e){if("string"==typeof e)return E(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)?E(e,t):void 0}}function E(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 S="subjects.topicPreferences";function j(e){var t,n=h(a().useState([]),2),r=n[0],g=n[1],E=h(a().useState(null),2),j=E[0],x=E[1],k=h(a().useState(e.bulkPreferencesState),2),w=k[0],C=k[1],O=h(a().useState(!1),2),A=O[0],N=O[1],B=(0,d.Z)(),P=m.b.hasBulkSelectedTopics(w);a().useEffect((function(){var t;(null===(t=e.preselections)||void 0===t?void 0:t.length)?g(l.m.uniq([].concat(y(r),y(e.preselections.map((function(e){return e.id})))))):g([])}),[null===(t=e.preselections)||void 0===t?void 0:t.length]);var I=h((0,f.j)((function(){N(!1),e.isOnboarding||B.success(i.T.getPhrase(S,"success")),e.nextAppLink&&c.Q.AppLinkHelper.trigger(e.nextAppLink)})),2),L=I[0],F=I[1];function H(t){return!!e.preselections&&e.preselections.map((function(e){return e.id})).sort().toString()!==t.sort().toString()}function T(){return e.bulkPreferencesState!==w}function U(){if(!r.length&&!P)return!1;var t=T()||H(r);return!(!e.isOnboarding&&!t)}function M(){var e=m.b.getNextBulkState(w,"topics");x(null),C(e)}var _=function(e){if(!(null==e?void 0:e.length))return[];var t=[];return e.forEach((function(e){e.children&&e.children.length?t.push(Object.assign(Object.assign({},e),{isExpandableOption:!0,children:[Object.assign({},e)].concat(y(e.children))})):t.push(Object.assign({},e))})),t}(e.options);return a().createElement(o.D.Provider,{value:S},a().createElement("form",{className:"p-3 pb-5"},a().createElement("div",{className:"position-relative"},a().createElement(b.x.Provider,{value:{selectedSubjects:r,expandedSubject:j}},a().createElement(p.i,{subjects:_,onSelect:function(e){var t=l.m.addOrRemoveImmutable(r,e.id);g(t)},onExpand:function(e){x(j&&j.id===e.id?null:e)},onCollapse:function(){x(null)},hasSelectedBulk:P}))),a().createElement(p.ed,null,a().createElement("div",null,!!e.backButtonAppLink&&a().createElement(v.F,{appLink:e.backButtonAppLink,className:"btn btn-outline-dark"},a().createElement(o.x,{phrase:"back"}))),a().createElement("div",{className:"d-flex align-items-center justify-content-right"},a().createElement("div",{className:"d-flex mr-3"},a().createElement("p",{onClick:M,className:"mr-2 mb-0 font-weight-bold"},a().createElement(o.x,{phrase:"allSubjects"})),a().createElement(u.Z,{onClick:M,on:P,hideOutline:!0})),a().createElement(s.m,{variant:"dark",disabled:!U(),onClick:function(){if(U())if(H(r)||T()){N(!0);var t=r.filter((function(t){return!e.preselections.find((function(e){return e.id===t}))})),n=e.preselections.filter((function(e){return!r.includes(e.id)})),a=0;t.length&&a++,n.length&&a++,T()&&a++,F(a),e.saveChanges(t,n,w,L,(function(){B.error(i.T.getPhrase(S,"error")),N(!1)}))}else e.nextAppLink&&c.Q.AppLinkHelper.trigger(e.nextAppLink)},showSpinner:A},a().createElement(o.x,{phrase:e.isOnboarding?"next":"save"}))))))}},74058:(e,t,n)=>{n.d(t,{R:()=>u});var r=n(1024),a=n(67453),c=n(54610),l=n(70154),i=n(386),o=n(36532);function u(e){var t,n,u=r.useContext(l.x),s=e.subject.cover?a.j.createUrl(e.subject.cover.url,{size:c.h2.Small}):"",d=e.subject.isExpandableOption?e.subject.children.map((function(e){return e.id})):[],f=e.hasSelectedBulk?0:null===(t=null==u?void 0:u.selectedSubjects)||void 0===t?void 0:t.filter((function(e){return d.includes(e)})).length,m=r.createElement(i.c,{name:e.subject.name,imageUrl:s,onClick:e.onClick,isSelected:e.selected,isDisabled:e.disabled,isExpandable:e.subject.isExpandableOption,expand:(null===(n=null==u?void 0:u.expandedSubject)||void 0===n?void 0:n.id)===e.subject.id,selectedChildCount:f,extraClasses:e.extraClasses,hideStatus:e.hideStatus});return e.disabled?r.createElement("span",null,m):r.createElement(o.u,{title:e.subject.name},r.createElement("span",null,m))}},22129:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(1024),a=n(92875);function c(e){var t="grid"===e.style?a.Z.grid:"Ng80C";return r.createElement("div",{className:"p-3"},r.createElement("ul",{className:"".concat(t," ").concat(e.center?"justify-content-center":"")},Array(e.count).fill(null).map((function(t,n){return r.createElement("li",{key:n,className:"".concat("KQYyH"," partial-loading-background ").concat("lg"===e.size?"KiWap":"")})}))))}c.defaultProps={size:"sm"}},70154:(e,t,n)=>{n.d(t,{x:()=>r});var r=(0,n(1024).createContext)(void 0)},32910:(e,t,n)=>{n.d(t,{F:()=>c});var r=n(20354),a=n(61699);function c(e){var t=function(e){return e?e.filter((function(e){return e.canBePreferred})):[]},n=r.a.useBasicFetch(a.o.mySubjectPreferences((function(n){e&&e(t(n))})));return Object.assign(Object.assign({},n),{isFetching:n.isFetching,data:t(n.data)})}},60836:(e,t,n)=>{n.d(t,{j:()=>l});var r=n(1024),a=n.n(r);function c(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 l=function(e){var t,n,r=(t=a().useState(1),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,a,c=[],l=!0,i=!1;try{for(n=n.call(e);!(l=(r=n.next()).done)&&(c.push(r.value),!t||c.length!==t);l=!0);}catch(e){i=!0,a=e}finally{try{l||null==n.return||n.return()}finally{if(i)throw a}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return c(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)?c(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.")}()),l=r[0],i=r[1];return a().useEffect((function(){l>0||e()}),[l]),[function(){i((function(e){return e-1}))},i]}},92875:(e,t,n)=>{n.d(t,{Z:()=>r});const r={grid:"X9r1Y",subgrid:"TgYhp"}}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 7281-cc32d852d1-lite.chunk.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[7281],{87281:(t,e,r)=>{r.r(e),r.d(e,{StartSignUpView:()=>It});var n=r(1024),o=r.n(n),a=r(2948),i=r(86702);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}var l=r(99910),u=r(2786),s=r(99940);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 h(){h=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:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof d?e:d,i=Object.create(a.prototype),c=new k(o||[]);return n(i,"_invoke",{value:S(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var p={};function d(){}function m(){}function y(){}var v={};l(v,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(O([])));b&&b!==e&&r.call(b,a)&&(v=b);var w=y.prototype=d.prototype=Object.create(v);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,h=u.value;return h&&"object"==f(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=N(i,r);if(c){if(c===p)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 l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function N(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,N(t,e),"throw"===e.method))return p;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=s(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,p;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function L(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 j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function O(t){if(t){var e=t[a];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:I}}function I(){return{value:void 0,done:!0}}return m.prototype=y,n(w,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:m,configurable:!0}),m.displayName=l(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},x(E.prototype),l(E.prototype,i,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new E(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},x(w),l(w,c,"Generator"),l(w,a,(function(){return this})),l(w,"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,k.prototype={constructor:k,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(j),!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 i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.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 a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(i)},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),p},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),j(r),p}},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;j(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),p}},t}function p(t){var e={method:s.k.GET,headers:{"Content-type":"application/json"}};t.method&&(e=Object.assign(Object.assign({},e),{method:t.method})),t.init&&(e=Object.assign(Object.assign({},e),t.init));var r,n,o,a=t.url;return e.method===s.k.GET&&t.data?(r=a,n=t.data,o=r,Object.keys(n).forEach((function(t,e){n[t]&&(o+=0===e?"?":"&",o+="".concat(t,"=").concat(encodeURIComponent(n[t])))})),a=o):t.data&&(e=Object.assign(Object.assign({},e),{body:JSON.stringify(t.data)})),{init:e,url:a}}var d={fetchAsync:function(t){return e=this,r=void 0,n=void 0,o=h().mark((function e(){var r;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=p(t),console.log("Fetch Request",t),e.next=4,fetch(r.url,r.init);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})),new(n||(n=Promise))((function(t,a){function i(t){try{l(o.next(t))}catch(t){a(t)}}function c(t){try{l(o.throw(t))}catch(t){a(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(t){t(r)}))).then(i,c)}l((o=o.apply(e,r||[])).next())}));var e,r,n,o},fetch:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){var e=p(t);return console.log("Fetch Request",t),fetch(e.url,e.init).then((function(t){return t.json()})).then((function(e){return t.success&&t.success(e),e})).catch((function(e){return t.error&&t.error(),e})).finally((function(){t.always&&t.always()}))}))};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 y(){y=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:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof h?e:h,i=Object.create(a.prototype),c=new k(o||[]);return n(i,"_invoke",{value:S(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var v={};l(v,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(O([])));b&&b!==e&&r.call(b,a)&&(v=b);var w=d.prototype=h.prototype=Object.create(v);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==m(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=N(i,r);if(c){if(c===f)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 l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function N(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,N(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=s(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function L(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 j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function O(t){if(t){var e=t[a];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:I}}function I(){return{value:void 0,done:!0}}return p.prototype=d,n(w,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=l(d,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,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},x(E.prototype),l(E.prototype,i,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new E(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},x(w),l(w,c,"Generator"),l(w,a,(function(){return this})),l(w,"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,k.prototype={constructor:k,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(j),!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 i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.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 a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},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),f},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),j(r),f}},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;j(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),f}},t}function v(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 g=["us","au","nz","gb","gg","im","je","ie"];function b(){var t,e,r=(t=o().useState(null),e=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,a=[],i=!0,c=!1;try{for(r=r.call(t);!(i=(n=r.next()).done)&&(a.push(n.value),!e||a.length!==e);i=!0);}catch(t){c=!0,o=t}finally{try{i||null==r.return||r.return()}finally{if(c)throw o}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return v(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)?v(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),n=r[0],a=r[1];function i(t){var e;g.includes(null===(e=null==t?void 0:t.countryCode)||void 0===e?void 0:e.toLowerCase())?a(t):a({countryCode:"us"})}return o().useEffect((function(){!function(){var t,e,r,o;t=this,e=void 0,r=void 0,o=y().mark((function t(){return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,t.next=5,d.fetch({url:"/api/geolocation"});case 5:i(t.sent),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(2),i(null);case 12:case"end":return t.stop()}}),t,null,[[2,9]])})),new(r||(r=Promise))((function(n,a){function i(t){try{l(o.next(t))}catch(t){a(t)}}function c(t){try{l(o.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,c)}l((o=o.apply(t,e||[])).next())}))}()}),[]),n}function w(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function x(t){return function(t){if(Array.isArray(t))return N(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||S(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a=[],i=!0,c=!1;try{for(r=r.call(t);!(i=(n=r.next()).done)&&(a.push(n.value),!e||a.length!==e);i=!0);}catch(t){c=!0,o=t}finally{try{i||null==r.return||r.return()}finally{if(c)throw o}}return a}}(t,e)||S(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(t,e){if(t){if("string"==typeof t)return N(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)?N(t,e):void 0}}function N(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 L,j={email:"",type:void 0,schoolLocality:void 0,schoolName:void 0,schoolPostCode:void 0,longitude:void 0,latitude:void 0,prospectId:void 0};function k(t){return k="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},k(t)}function O(){O=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:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof h?e:h,i=Object.create(a.prototype),c=new L(o||[]);return n(i,"_invoke",{value:x(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(j([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=h.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==k(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=E(i,r);if(c){if(c===f)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 l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=s(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(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 N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(t){if(t){var e=t[a];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:I}}function I(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=l(d,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,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"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=j,L.prototype={constructor:L,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(N),!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 i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.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 a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},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),f},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),N(r),f}},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;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}!function(t){t.FourteenDays="trial_14"}(L||(L={}));var I={checkTrialStatus:function(t,e,r,n){var o={email:t.email};d.fetch({url:"/api/user/trials/status",data:o,success:e,error:r,always:n})},checkProspectTrialStatus:function(t,e,r,n){var o="/api/user/trials/prospect/".concat(t.prospectId,"/status");d.fetch({url:o,success:e,error:r,always:n})},createTrial:function(t){return e=this,r=void 0,n=void 0,o=O().mark((function e(){var r;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={prospectId:t.prospectId,firstName:"Trial",surname:"User",email:t.email,userType:t.userType,accessPolicy:L.FourteenDays,appLink:null==t?void 0:t.appLink},e.next=3,d.fetchAsync({url:"/api/user/trials",method:s.k.POST,data:r});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})),new(n||(n=Promise))((function(t,a){function i(t){try{l(o.next(t))}catch(t){a(t)}}function c(t){try{l(o.throw(t))}catch(t){a(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(t){t(r)}))).then(i,c)}l((o=o.apply(e,r||[])).next())}));var e,r,n,o}};function A(t){return A="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},A(t)}function P(t,e){if(e&&("object"===A(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 _(t){var e="function"==typeof Map?new Map:void 0;return _=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return C(t,arguments,G(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),F(n,t)},_(t)}function C(t,e,r){return C=T()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&F(o,r.prototype),o},C.apply(null,arguments)}function T(){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 F(t,e){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},F(t,e)}function G(t){return G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},G(t)}var D=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=(e=a,r=T(),function(){var t,n=G(e);if(r){var o=G(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return P(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=o.call(this,t)).name="CreateTrialError",e}return n=a,Object.defineProperty(n,"prototype",{writable:!1}),n}(_(Error));function R(t){return o().createElement("button",{onClick:t.onClick},t.children)}var U,M,Y=r(28329);function q(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}!function(t){t.Unavailable="unavailable",t.Expired="expired",t.Active="active",t.NotRequired="not-required",t.Available="available"}(U||(U={}));var $=(q(M={},U.Active,"active-trial"),q(M,U.Available,"find-school"),q(M,U.Expired,"expired-trial"),q(M,U.NotRequired,"existing-customer"),q(M,U.Unavailable,"trial-not-available"),M);const H="qLxTw";function V(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 B=new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/);function K(t){if((null==t?void 0:t.previousStepIds)&&"find-school"===t.previousStepIds[t.previousStepIds.length-1]){var e=t.schoolName||"Your school";return o().createElement("h4",{className:"text-center font-weight-500"},e," trial has expired")}return o().createElement("h4",{className:"text-center font-weight-500"},"You trial has expired")}var z=r(2102);const W="LIq3Y",J="aFSaR",Q="hM9s4",X="Sp6A5";function Z(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a=[],i=!0,c=!1;try{for(r=r.call(t);!(i=(n=r.next()).done)&&(a.push(n.value),!e||a.length!==e);i=!0);}catch(t){c=!0,o=t}finally{try{i||null==r.return||r.return()}finally{if(c)throw o}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return tt(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)?tt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tt(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 et(t){var e=t.filteredSchoolsList,r=t.getSchoolName,n=t.onSchoolSuggestionClick;return o().createElement(o().Fragment,null,e.map((function(t){return o().createElement("div",{className:X,key:t.id,onClick:function(){return n(t)}},r(t))})))}function rt(t){var e=Z(o().useState(t.schoolName?t.schoolName+", "+t.schoolPostCode:""),2),r=e[0],n=e[1],a=Z(o().useState(!!t.schoolName),2),i=a[0],c=a[1],l=Z(o().useState(),2),u=l[0],s=l[1],f=Z(o().useState(),2),h=f[0],p=f[1];function m(t){var e=t.name;return t.postCode.length&&(e+=", "+t.postCode),e}return o().useEffect((function(){if(r.length||i)if(i)p(void 0);else{var t=null==u?void 0:u.filter((function(t){return m(t).toLocaleLowerCase().includes(r.toLocaleLowerCase())}));p(t)}else p(u)}),[r,u,i]),o().useEffect((function(){var e,r,n,o,a;i||(e={latitude:t.latitude,longitude:t.longitude},r=function(t){return s(t)},a={Longitude:e.longitude,Latitude:e.latitude},d.fetch({url:"/api/prospects/search",data:a,success:r,error:n,always:o}))}),[i]),o().useEffect((function(){t.schoolName?c(!0):c(!1)}),[t.schoolName]),o().createElement("div",{className:"my-2"},o().createElement("input",{value:r,onChange:function(e){(t.schoolName||t.setProspectId)&&t.clearStepItemData(),e.target.value!==r&&n(e.target.value)},className:"form-control ".concat((null==h?void 0:h.length)?J:W),type:"text",autoComplete:"off",placeholder:"Select a school from below",disabled:t.disabled}),!!(null==h?void 0:h.length)&&o().createElement("div",{className:Q},o().createElement(et,{filteredSchoolsList:h,onSchoolSuggestionClick:function(e){n(m(e)),t.setProspectId(e.id),t.setSchoolName(e.name),e.postCode.length&&t.setSchoolPostCode(e.postCode)},getSchoolName:m})))}function nt(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=ot(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function ot(t,e){if(t){if("string"==typeof t)return at(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)?at(t,e):void 0}}function at(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 it(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 ct,lt=new google.maps.places.AutocompleteService;function ut(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a=[],i=!0,c=!1;try{for(r=r.call(t);!(i=(n=r.next()).done)&&(a.push(n.value),!e||a.length!==e);i=!0);}catch(t){c=!0,o=t}finally{try{i||null==r.return||r.return()}finally{if(c)throw o}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return st(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)?st(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function st(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 ft(t){var e=t.predictions,r=t.getPlaceInfo;return o().createElement(o().Fragment,null,e.map((function(t){return o().createElement("div",{className:X,key:t.place_id,onClick:function(){return r(t)}},t.terms[0].value+", "+t.terms[1].value)})))}function ht(t){var e,r,n=o().useRef(),a=ut(o().useState(!1),2),i=a[0],c=a[1],l=ut(o().useState(null!==(e=t.locality)&&void 0!==e?e:""),2),u=l[0],s=l[1],f=function(t){var e,r,n=t.search,a=t.makePredicition,i=t.geoLocation,c=(0,Y.N)(n,300),l=(e=o().useState(),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a=[],i=!0,c=!1;try{for(r=r.call(t);!(i=(n=r.next()).done)&&(a.push(n.value),!e||a.length!==e);i=!0);}catch(t){c=!0,o=t}finally{try{i||null==r.return||r.return()}finally{if(c)throw o}}return a}}(e,r)||function(t,e){if(t){if("string"==typeof t)return it(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)?it(t,e):void 0}}(e,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.")}()),u=l[0],s=l[1];function f(t,e){e===google.maps.places.PlacesServiceStatus.OK&&t?(console.log(t),s(t)):console.log(e)}return o().useEffect((function(){0!==(null==c?void 0:c.length)&&a?lt.getPlacePredictions({input:c,componentRestrictions:{country:i.countryCode},types:["(cities)"]},f):s(void 0)}),[c,a]),{localityPredicitions:u,getPlaceInfo:function(t,e,r,n){new google.maps.places.PlacesService(e.current).getDetails({placeId:t.place_id,fields:["geometry","address_component"]},(function(t,e){if(e===google.maps.places.PlacesServiceStatus.OK){var o=t.geometry.location.lng(),a=t.geometry.location.lat(),i=r(t);n(o,a,i)}}))}}}({search:u,makePredicition:i,geoLocation:t.geoLocation}),h=f.localityPredicitions,p=f.getPlaceInfo,d=function(t){var e,r,n=t.setLocality,a=t.setCoordinates,i=(e=o().useState(!1),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a=[],i=!0,c=!1;try{for(r=r.call(t);!(i=(n=r.next()).done)&&(a.push(n.value),!e||a.length!==e);i=!0);}catch(t){c=!0,o=t}finally{try{i||null==r.return||r.return()}finally{if(c)throw o}}return a}}(e,r)||ot(e,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.")}()),c=i[0],l=i[1];function u(t){var e=t.coords,r=e.latitude,o=e.longitude,i=new google.maps.LatLng(r,o);(new google.maps.Geocoder).geocode({location:i},(function(t,e){if(e===google.maps.GeocoderStatus.OK){var i=f(t[0]);i&&n(i),a&&a(o,r),l(!1)}}))}function s(){l(!0)}function f(t){var e="";console.log(t);var r,n=nt(t.address_components);try{for(n.s();!(r=n.n()).done;){var o,a=r.value,i=nt(a.types);try{for(i.s();!(o=i.n()).done;){var c=o.value;"locality"===c&&(e=a.short_name),"administrative_area_level_1"===c&&(e+=", "+a.short_name),"postal_code"===c&&(e+=", "+a.short_name)}}catch(t){i.e(t)}finally{i.f()}}}catch(t){n.e(t)}finally{n.f()}return e}return{positionError:c,onClickGetCurrentLocation:function(){window.navigator.geolocation.getCurrentPosition(u,s)},findLocality:f}}({setMakePredicition:c,setLocality:function(e){s(e),t.setLocality(e)},setCoordinates:t.setCoordinates}),m=d.positionError,y=d.onClickGetCurrentLocation,v=d.findLocality;function g(e,r,n){(e||r||n)&&(t.setCoordinates(e,r),t.setLocality(n),s(n))}return o().useEffect((function(){c(!0)}),[m]),o().createElement("div",null,o().createElement("label",{className:"d-block text-center mb-3 font-weight-normal ".concat("k0IW3"),htmlFor:"locality-input"},"Enter your school postcode or suburb:"),o().createElement("input",{type:"text",value:u,onChange:function(e){i||c(!0),(t.longitude||t.latitude||t.locality)&&t.clearStepGroupData(),s(e.target.value)},id:"locality-input",className:"form-control ".concat((null==h?void 0:h.length)?J:W),ref:n,autoComplete:"off",placeholder:"E.g. 2212 or Revesby",disabled:t.disabled}),!!(null==h?void 0:h.length)&&o().createElement("div",{className:Q},o().createElement(ft,{predictions:h,getPlaceInfo:function(t){i&&c(!1),p(t,n,v,g)}})),window.navigator.geolocation&&!(null===(r=t.locality)||void 0===r?void 0:r.length)&&o().createElement("div",{className:"d-flex align-items-center"},o().createElement("button",{className:"btn btn-link info-link p-2",onClick:function(t){t.preventDefault(),c(!1),y()}},"Use my current location")))}function pt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a=[],i=!0,c=!1;try{for(r=r.call(t);!(i=(n=r.next()).done)&&(a.push(n.value),!e||a.length!==e);i=!0);}catch(t){c=!0,o=t}finally{try{i||null==r.return||r.return()}finally{if(c)throw o}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return dt(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)?dt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dt(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){t.Staff="staff",t.Learner="learner"}(ct||(ct={}));var mt=r(58130),yt=r(83914);function vt(t){return o().createElement("div",{className:"d-flex flex-column p-1 cursor-pointer ".concat("lanH2"),onClick:function(){return t.onClick(t.type)}},o().createElement("img",{src:t.imageSrc,className:"rounded-top"}),o().createElement("div",{className:"d-flex justify-content-center align-items-center bg-dark text-white py-2 px-3 font-weight-bold rounded-bottom"},t.selected&&o().createElement(yt.x,{svgName:mt.vn.CheckCircle}),o().createElement("span",{className:t.selected?"pl-1":""},t.buttonText)))}function gt(t){if((null==t?void 0:t.previousStepIds)&&"find-school"===t.previousStepIds[t.previousStepIds.length-1]){var e=t.schoolName||"Your school";return o().createElement(o().Fragment,null,o().createElement("h4",{className:"text-center font-weight-500"},e," already has ClickView 🎉"),o().createElement("p",{className:"text-center text-sm"},"Please contact your school admin for access."))}return o().createElement(o().Fragment,null,o().createElement("h4",{className:"text-center font-weight-500"},"You already have ClickView 🎉"),o().createElement("p",{className:"text-center text-sm"},"Click ",o().createElement("a",{href:"#",className:"info-link"},"here")," to sign in."))}function bt(t){return o().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto px-2"},o().createElement("h4",{className:"text-center font-weight-500"},"Good news!"),o().createElement(gt,{previousStepIds:t.previousStepIds,schoolName:t.data.schoolName}),o().createElement("div",{className:"d-flex justify-content-center mt-3 mb-2"},o().createElement("img",{src:"https://via.placeholder.com/200x200"})),o().createElement("p",{className:"text-center"},"Need Help? ",o().createElement("a",{href:"#",className:"info-link"},"Contact our Help Centre.")))}function wt(t){if((null==t?void 0:t.previousStepIds)&&"find-school"===t.previousStepIds[t.previousStepIds.length-1]){var e=t.schoolName||"Your school";return o().createElement(o().Fragment,null,o().createElement("h4",{className:"text-center font-weight-500"},e," does not qualify for ClickView"))}return o().createElement("h4",{className:"text-center font-weight-500"},"You do not qualify for ClickView")}function xt(t){return xt="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},xt(t)}function Et(){Et=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:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof h?e:h,i=Object.create(a.prototype),c=new L(o||[]);return n(i,"_invoke",{value:x(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(j([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=h.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==xt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=E(i,r);if(c){if(c===f)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 l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=s(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(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 N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(t){if(t){var e=t[a];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:k}}function k(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=l(d,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,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"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=j,L.prototype={constructor:L,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(N),!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 i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.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 a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},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),f},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),N(r),f}},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;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function St(t,e){if(t){if("string"==typeof t)return Nt(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)?Nt(t,e):void 0}}function Nt(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 Lt=["active-trial","existing-customer","expired-trial","trial-not-available","verify-account"];function jt(t){switch(t){case"select-type":return"enter-email";case"enter-email":return"find-school";case"find-school":return"verify-account";default:return t}}var kt={"select-type":function(t){function e(e){!function(e){t.setData("type",e)}(e),t.nextStep()}return o().createElement(o().Fragment,null,o().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto px-2"},o().createElement("h4",{className:"text-center font-weight-500 mb-3"},"Access educational videos at your fingertips."),o().createElement("p",{className:"text-sm text-center"},"What do you do at your school?")),o().createElement("div",{className:"row mx-auto my-5"},o().createElement("div",{className:"col-lg-6"},o().createElement(vt,{type:ct.Staff,buttonText:"I'm an educator",imageSrc:"https://via.placeholder.com/220x225/eff9f3?text=Educator+Image",onClick:e,selected:t.data.type===ct.Staff})),o().createElement("div",{className:"col-lg-6"},o().createElement(vt,{type:ct.Learner,buttonText:"I'm a student",imageSrc:"https://via.placeholder.com/220x225/ebf6fd?text=Student+Image",onClick:e,selected:t.data.type===ct.Learner}))))},"enter-email":function(t){var e,r,n,a,i,c=(a=o().useState(!1),i=2,function(t){if(Array.isArray(t))return t}(a)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a=[],i=!0,c=!1;try{for(r=r.call(t);!(i=(n=r.next()).done)&&(a.push(n.value),!e||a.length!==e);i=!0);}catch(t){c=!0,o=t}finally{try{i||null==r.return||r.return()}finally{if(c)throw o}}return a}}(a,i)||function(t,e){if(t){if("string"==typeof t)return V(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)?V(t,e):void 0}}(a,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.")}()),l=c[0],u=c[1],s=(0,Y.N)(t.data.email,300);function f(e){t.setError("email",e)}function h(e){u(!0),t.setNextStepId($[e.status])}function p(){u(!1),f("Please use school email address.")}return o().useEffect((function(){l&&u(!1)}),[t.data.email]),o().useEffect((function(){return(null==s?void 0:s.length)?B.test(s)?(f(""),void I.checkTrialStatus({email:s},h,p)):(u(!1),void f("Please use school email address.")):(u(!1),void f(""))}),[s]),o().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto px-2"},o().createElement("h4",{className:"text-center font-weight-500 mb-3"},"Lets get started!"),o().createElement("form",{className:"d-flex justify-content-center flex-column",onSubmit:function(e){e.preventDefault(),l&&t.nextStep()}},o().createElement("label",{className:"text-left mb-1",htmlFor:"email-input"},"School Email Address"),o().createElement("input",{value:t.data.email,onChange:function(e){return r=e.target.value,void t.setData("email",r);var r},name:"email-input",id:"email-input",type:"email",className:"form-control form-control-lg rounded ".concat((null===(e=null==t?void 0:t.errors)||void 0===e?void 0:e.email)&&"is-invalid"),placeholder:"Enter your school email address",autoComplete:"false",autoCorrect:"false"}),(null===(r=null==t?void 0:t.errors)||void 0===r?void 0:r.email)&&o().createElement(o().Fragment,null,o().createElement("small",{className:"text-danger mt-2"},null===(n=null==t?void 0:t.errors)||void 0===n?void 0:n.email),o().createElement("small",{className:"text-dark mt-1"},"Having an issue with your email? ",o().createElement("a",{href:"#",className:"info-link"},"Contact our team"),".")),o().createElement("button",{type:"submit",className:"btn btn-lg btn-dark p-2 mt-2 text-white font-weight-500",disabled:!l},"Next"),o().createElement("span",{className:"text-center text-md mt-2 text-normal ".concat(H)},"By clicking you agree to the ",o().createElement("a",{href:"#",className:"info-link"},"Terms and Conditions"),".")),o().createElement("div",{className:"border-bottom text-center mt-3 mb-4 border-gray-700 ".concat("dijpp")},o().createElement("span",{className:"bg-white px-3 text-muted"},"or")),o().createElement("button",{className:"btn btn-lg px-3 py-2 bg-dark-blue text-white mb-2 font-weight-500"},"Sign up with Clever"),o().createElement("button",{className:"btn btn-lg px-3 py-2 bg-green text-white mb-2 font-weight-500"},"Sign up with Google Classroom"),o().createElement("button",{className:"btn btn-lg px-3 py-2 bg-blue text-white mb-2 font-weight-500"},"Sign up with Class Link"),o().createElement("span",{className:"text-center text-md mt-2 ".concat(H)},"Have a ClickView account already? ",o().createElement("a",{href:"#",className:"info-link"},"Sign in"),"."))},"find-school":function(t){var e=pt(o().useState(t.canSubmitForm()),2),r=e[0],n=e[1],a=pt(o().useState(!1),2),i=a[0],c=a[1];function l(e){t.setData("schoolLocality",e)}function u(e,r){t.setData("longitude",e),t.setData("latitude",r)}function s(e){e!==t.data.prospectId&&t.setData("prospectId",e)}function f(e){e!==t.data.schoolName&&t.setData("schoolName",e)}function h(e){e!==t.data.schoolPostCode&&t.setData("schoolPostCode",e)}function p(){s(void 0),f(void 0),h(void 0),t.setSubmissionError("")}return o().useEffect((function(){var e=t.canSubmitForm();r!==e&&n(e)}),[t.canSubmitForm]),o().useEffect((function(){r&&(c(!0),I.checkProspectTrialStatus({prospectId:t.data.prospectId},(function(e){e.status!==U.Available?t.setNextStepId($[e.status]):t.setNextStepId("verify-account")}),(function(){console.log("error")}),(function(){c(!1)})))}),[r]),o().createElement(o().Fragment,null,o().createElement("div",{className:"d-flex justify-content-center flex-column w-75 mx-auto px-2"},o().createElement("h4",{className:"text-center font-weight-500 mb-3"},"Next, let's find your school")),o().createElement("div",{className:"d-flex justify-content-center flex-column w-75 mx-auto px-2"},o().createElement("form",{className:"d-flex justify-content-center flex-column"},o().createElement(ht,{locality:t.data.schoolLocality,longitude:t.data.longitude,latitude:t.data.latitude,setLocality:l,setCoordinates:u,clearStepGroupData:function(){l(void 0),u(void 0,void 0),p(),t.setSubmissionError("")},disabled:t.disabled,geoLocation:t.geoLocation}),!!(t.data.schoolLocality&&t.data.longitude&&t.data.latitude)&&o().createElement(rt,{locality:t.data.schoolLocality,longitude:t.data.longitude,latitude:t.data.latitude,schoolName:t.data.schoolName,schoolPostCode:t.data.schoolPostCode,setProspectId:s,setSchoolName:f,setSchoolPostCode:h,clearStepItemData:p,disabled:t.disabled}),(null==t?void 0:t.submissionError)&&o().createElement("p",{className:"text-danger mb-2"},t.submissionError),t.canSubmitForm()&&o().createElement(z.m,{className:"btn btn-dark font-weight-bold",onClick:t.requestTrial,showSpinner:t.disabled||i,disabled:t.disabled||i},"Get Started"))))},"verify-account":function(t){return o().createElement(o().Fragment,null,o().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto px-2"},t.data.email&&o().createElement(o().Fragment,null,o().createElement("h4",{className:"text-center font-weight-500 mb-3"},"Check your email to verify your account"),o().createElement("div",{className:"text-center text-sm"},o().createElement("p",{className:"mb-1"},"An email has been sent to ",o().createElement("strong",null,t.data.email),"."),o().createElement("p",{className:"mb-1"},"Didn't receive an email?",o().createElement("a",{href:"#",className:"px-1 info-link"},"Resend verification email")))),o().createElement("div",{className:"d-flex justify-content-center mt-5"},o().createElement("img",{src:"https://via.placeholder.com/200x200?text=paper-plane"}))))},"existing-customer":bt,"active-trial":bt,"expired-trial":function(t){return o().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto px-2"},o().createElement("h4",{className:"text-center font-weight-500"},"Uh oh..."),o().createElement(K,{previousStepIds:t.previousStepIds,schoolName:t.data.schoolName}),o().createElement("p",{className:"text-center text-sm"},"Please contact our ",o().createElement("a",{href:"#",className:"info-link"},"ClickView Sales Team"),"."),o().createElement("div",{className:"d-flex justify-content-center mt-3 mb-2"},o().createElement("img",{src:"https://via.placeholder.com/200x200"})))},"trial-not-available":function(t){return o().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto px-2"},o().createElement("h4",{className:"text-center font-weight-500"},"Sorry!"),o().createElement(wt,{previousStepIds:t.previousStepIds,schoolName:t.data.schoolName}),o().createElement("p",{className:"text-center text-sm"},"Please contact our ",o().createElement("a",{href:"#",className:"info-link"},"ClickView Sales Team")," for more information."),o().createElement("div",{className:"d-flex justify-content-center mt-3 mb-2"},o().createElement("img",{src:"https://via.placeholder.com/200x200"})))}};function Ot(t){var e,r,a,i=function(t){var e=t.initialFormState,r=t.initialStepId,o=t.completedStepIds,a=t.getNextStepId,i=E((0,n.useState)(r),2),c=i[0],l=i[1],u=E((0,n.useState)(a(r)),2),s=u[0],f=u[1],h=E((0,n.useState)([]),2),p=h[0],d=h[1],m=E((0,n.useState)(e||j),2),y=m[0],v=m[1],g=E((0,n.useState)({}),2),S=g[0],N=g[1],L=E((0,n.useState)(!1),2),k=L[0],O=L[1],I=E((0,n.useState)(),2),A=I[0],P=I[1];return(0,n.useEffect)((function(){var t=a(c);t!==c&&f(t)}),[c]),{currentStepId:c,data:y,errors:S,submitted:k,submissionError:A,setSubmissionError:P,previousStep:function(){if(p&&p.length){var t=x(p);l(t.pop()),d(t)}},hasPreviousStep:function(){return!!p.length},nextStep:function(){c!==s&&(o.includes(s)?O(!0):O(!1),l((function(t){return d([].concat(x(p),[t])),s})))},setData:function(t,e){v((function(r){return Object.assign(Object.assign({},r),w({},t,e))}))},setError:function(t,e){if(e.length)N((function(r){return Object.assign(Object.assign({},r),w({},t,e))}));else{var r=Object.assign({},S);delete r[t],N(r)}},canSubmitForm:function(){var t=y.email,e=y.type,r=y.prospectId,n=o.includes(s);return!!(t&&e&&r&&n)},setNextStepId:f,nextStepId:s,previousStepIds:p,geoLocation:b()}}({initialStepId:"select-type",completedStepIds:Lt,getNextStepId:jt}),c=(r=o().useState(!1),a=2,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a=[],i=!0,c=!1;try{for(r=r.call(t);!(i=(n=r.next()).done)&&(a.push(n.value),!e||a.length!==e);i=!0);}catch(t){c=!0,o=t}finally{try{i||null==r.return||r.return()}finally{if(c)throw o}}return a}}(r,a)||St(r,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=c[0],f=c[1];return o().createElement(l.Modal,{show:!0,onHide:t.closePopup,size:"lg"},o().createElement(l.Modal.Header,{className:"d-flex align-items-center border-0",closeButton:!0}),o().createElement(l.Modal.Body,{className:"w-75 mx-auto pb-5 pt-0 px-5 ".concat("fHGYj")},o().createElement("div",{className:"d-flex justify-content-center mb-4"},o().createElement("div",{className:"s3a6h"},o().createElement(u.$S,null))),(e=kt[i.currentStepId],o().createElement(e,Object.assign({},i,{requestTrial:function(){return e=this,r=void 0,n=void 0,o=Et().mark((function e(){var r,n,o,a;return Et().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,s||f(!0),i.canSubmitForm()){e.next=4;break}throw new D("Cannot submit form. Please enter all the details.");case 4:if("verify-account"===i.nextStepId){e.next=7;break}return i.nextStep(),e.abrupt("return");case 7:return e.next=9,I.createTrial({email:i.data.email,prospectId:i.data.prospectId,userType:i.data.type,appLink:t.pageAppLinkString});case 9:if((r=e.sent).ok){e.next=15;break}return e.next=13,r.json();case 13:throw n=e.sent,new D(n.title);case 15:return e.next=17,r.json();case 17:if((o=e.sent).id&&o.dateCreated){e.next=20;break}throw new Error;case 20:i.nextStep(),e.next=27;break;case 23:e.prev=23,e.t0=e.catch(0),a="Unable to request a trial. Please try again later.",e.t0 instanceof D?i.setSubmissionError(e.t0.message||a):i.setSubmissionError(a);case 27:return e.prev=27,f(!1),e.finish(27);case 30:case"end":return e.stop()}}),e,null,[[0,23,27,30]])})),new(n||(n=Promise))((function(t,a){function i(t){try{l(o.next(t))}catch(t){a(t)}}function c(t){try{l(o.throw(t))}catch(t){a(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(t){t(r)}))).then(i,c)}l((o=o.apply(e,r||[])).next())}));var e,r,n,o},disabled:s}))),i.hasPreviousStep()&&!i.submitted&&o().createElement(R,{onClick:i.previousStep},"Back")),o().createElement("div",{className:"fixed-bottom mb-4 ml-4 bg-dark rounded",style:{width:"400px"}},o().createElement("code",{className:"d-block p-4"},o().createElement("div",{className:"font-weight-bold pb-2"},"{ Debug: Form Data }"),o().createElement("div",{className:"pb-1"},"Current Step: ",o().createElement("b",{className:"text-white"},i.currentStepId)),o().createElement("div",{className:"pb-1"},"Next Step: ",o().createElement("b",{className:"text-white"},i.nextStepId)),o().createElement("div",{className:"pb-1"},"Previous Step: ",o().createElement("b",{className:"text-white"},function(t){return function(t){if(Array.isArray(t))return Nt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||St(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(i.previousStepIds).reverse().join(" -> "))),Object.keys(i.data).map((function(t){var e=t;return o().createElement("div",{className:"pb-1",key:e},e,": ",o().createElement("b",{className:"text-white"},i.data[e]))})))))}function It(t){var e,r,n,l=(e=(r=(0,a.D)(i.y.OPEN_IN_APP_DATA),n=1,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a=[],i=!0,c=!1;try{for(r=r.call(t);!(i=(n=r.next()).done)&&(a.push(n.value),!e||a.length!==e);i=!0);}catch(t){c=!0,o=t}finally{try{i||null==r.return||r.return()}finally{if(c)throw o}}return a}}(r,n)||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}}(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],{trialAppLinkString:function(){if(e&&["videos","clips","series","playlists","topics","interactives"].includes(e.app)){var t=e.id;switch(e.app){case"videos":return"video:".concat(t);case"playlists":return"playlist:".concat(t);case"series":return"series:".concat(t);case"topics":return"topic:".concat(t);case"interactives":return"interactive:".concat(t);case"clips":return"clip:".concat(t)}}}()}).trialAppLinkString;return o().createElement(Ot,{pageAppLinkString:l,closePopup:t.closePopup})}}}]);