@clickview/lite 0.31.1 → 0.31.2-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (499) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/css/{2701-lite-62beed2a51.chunk.css → 3091-lite-e0fb499d6e.chunk.css} +1 -0
  3. package/dist/css/{3125-lite-29265dec67.chunk.css → 5171-lite-231fb4351a.chunk.css} +2 -0
  4. package/dist/css/{7203-lite-65aaa80b60.chunk.css → 7484-lite-ee2799eab2.chunk.css} +1 -0
  5. package/dist/css/{4026-lite-62beed2a51.chunk.css → 9744-lite-e0fb499d6e.chunk.css} +1 -0
  6. package/dist/languages/en.json +1 -1
  7. package/dist/scripts/1064-9bc00d1119-lite.chunk.js +1 -0
  8. package/dist/scripts/1090-9aace3f5ec-lite.chunk.js +1 -0
  9. package/dist/scripts/{1106-bff7c39251-lite.chunk.js → 1106-847d0bf2b8-lite.chunk.js} +1 -1
  10. package/dist/scripts/1200-f30709bde3-lite.chunk.js +2 -0
  11. package/dist/scripts/1285-19705b2fc5-lite.chunk.js +1 -0
  12. package/dist/scripts/1291-1d298ab17d-lite.chunk.js +1 -0
  13. package/dist/scripts/{1354-635a2024da-lite.chunk.js → 1354-adb83a2eaa-lite.chunk.js} +2 -2
  14. package/dist/scripts/1366-9e3f333cdc-lite.chunk.js +2 -0
  15. package/dist/scripts/147-28a27fe38b-lite.chunk.js +1 -0
  16. package/dist/scripts/1475-255496ec92-lite.chunk.js +1 -0
  17. package/dist/scripts/1517-cb081d1c58-lite.chunk.js +1 -0
  18. package/dist/scripts/1518-b3ed8fd9e5-lite.chunk.js +1 -0
  19. package/dist/scripts/1526-be5361acbf-lite.chunk.js +1 -0
  20. package/dist/scripts/1536-a8c6826e33-lite.chunk.js +1 -0
  21. package/dist/scripts/156-13c7d1ca82-lite.chunk.js +1 -0
  22. package/dist/scripts/{1592-68884d6d6c-lite.chunk.js → 1592-e5a0fbaee2-lite.chunk.js} +2 -2
  23. package/dist/scripts/162-c62a92235f-lite.chunk.js +2 -0
  24. package/dist/scripts/1628-3d2ab4a7f9-lite.chunk.js +1 -0
  25. package/dist/scripts/1655-4bb18c6f9b-lite.chunk.js +1 -0
  26. package/dist/scripts/1726-ce7ab78bcc-lite.chunk.js +1 -0
  27. package/dist/scripts/{1781-c10bf95537-lite.chunk.js → 1781-d407160975-lite.chunk.js} +1 -1
  28. package/dist/scripts/1794-e84731e75e-lite.chunk.js +1 -0
  29. package/dist/scripts/1818-a83253fc4a-lite.chunk.js +1 -0
  30. package/dist/scripts/1820-b59ec08f92-lite.chunk.js +1 -0
  31. package/dist/scripts/1863-0ff9f34469-lite.chunk.js +1 -0
  32. package/dist/scripts/1891-00d06bdb48-lite.chunk.js +1 -0
  33. package/dist/scripts/{1913-255f9695d4-lite.chunk.js → 1913-8f9af95784-lite.chunk.js} +1 -1
  34. package/dist/scripts/{1924-3da4250730-lite.chunk.js → 1924-c10778006b-lite.chunk.js} +1 -1
  35. package/dist/scripts/{1934-a972017a0c-lite.chunk.js → 1934-6641f7e580-lite.chunk.js} +1 -1
  36. package/dist/scripts/1943-4e126c7c8e-lite.chunk.js +1 -0
  37. package/dist/scripts/1958-7bbe5ed54b-lite.chunk.js +1 -0
  38. package/dist/scripts/{1977-5abe20f323-lite.chunk.js → 1977-7e46c81a05-lite.chunk.js} +2 -2
  39. package/dist/scripts/2066-2448ffab36-lite.chunk.js +2 -0
  40. package/dist/scripts/2095-a3bf2b1df5-lite.chunk.js +1 -0
  41. package/dist/scripts/2118-26ae54c3db-lite.chunk.js +2 -0
  42. package/dist/scripts/{2175-0ee6619ca7-lite.chunk.js → 2175-e6101da2c7-lite.chunk.js} +1 -1
  43. package/dist/scripts/2199-68ba7411fa-lite.chunk.js +1 -0
  44. package/dist/scripts/{2208-42904c2f44-lite.chunk.js → 2208-356e60f7ed-lite.chunk.js} +1 -1
  45. package/dist/scripts/2229-57d6491c9d-lite.chunk.js +1 -0
  46. package/dist/scripts/2235-5b283a630a-lite.chunk.js +1 -0
  47. package/dist/scripts/{2269-28704b094a-lite.chunk.js → 2269-63269b0a20-lite.chunk.js} +1 -1
  48. package/dist/scripts/227-2b68bcb5e6-lite.chunk.js +1 -0
  49. package/dist/scripts/{2279-634b7aa366-lite.chunk.js → 2279-c077a223e7-lite.chunk.js} +1 -1
  50. package/dist/scripts/2318-43fc5f8fde-lite.chunk.js +1 -0
  51. package/dist/scripts/2469-26134f4110-lite.chunk.js +1 -0
  52. package/dist/scripts/{2477-8af0dd9a48-lite.chunk.js → 2477-1ca7a26273-lite.chunk.js} +1 -1
  53. package/dist/scripts/{2561-1e0b389a7a-lite.chunk.js → 2561-f6bbda0461-lite.chunk.js} +1 -1
  54. package/dist/scripts/2608-91817d2e90-lite.chunk.js +1 -0
  55. package/dist/scripts/2665-58e5d43a70-lite.chunk.js +1 -0
  56. package/dist/scripts/{275-02cb3cbc61-lite.chunk.js → 275-d32bdaf3c4-lite.chunk.js} +1 -1
  57. package/dist/scripts/287-06fe2a9794-lite.chunk.js +1 -0
  58. package/dist/scripts/2966-5425811e8d-lite.chunk.js +1 -0
  59. package/dist/scripts/3012-a8407cc0d7-lite.chunk.js +1 -0
  60. package/dist/scripts/3020-b550dc32a1-lite.chunk.js +1 -0
  61. package/dist/scripts/3091-3d3850a415-lite.chunk.js +1 -0
  62. package/dist/scripts/3154-63fff5be79-lite.chunk.js +1 -0
  63. package/dist/scripts/3216-cd6222fff4-lite.chunk.js +1 -0
  64. package/dist/scripts/3285-6fd37b7b51-lite.chunk.js +1 -0
  65. package/dist/scripts/3322-6c49ef644a-lite.chunk.js +1 -0
  66. package/dist/scripts/{3468-4d6fd53bf9-lite.chunk.js → 3468-40c308ce30-lite.chunk.js} +1 -1
  67. package/dist/scripts/3514-3dd7072018-lite.chunk.js +1 -0
  68. package/dist/scripts/3533-98674ad469-lite.chunk.js +1 -0
  69. package/dist/scripts/355-16b3032c4f-lite.chunk.js +1 -0
  70. package/dist/scripts/{3602-9e631593b1-lite.chunk.js → 3602-7fb236937c-lite.chunk.js} +2 -2
  71. package/dist/scripts/3645-ccb3557f33-lite.chunk.js +2 -0
  72. package/dist/scripts/3654-68fc05281b-lite.chunk.js +1 -0
  73. package/dist/scripts/3667-6261d6a482-lite.chunk.js +2 -0
  74. package/dist/scripts/3727-61ad5aebc3-lite.chunk.js +1 -0
  75. package/dist/scripts/3729-ec68fee3f9-lite.chunk.js +1 -0
  76. package/dist/scripts/3754-43235d0887-lite.chunk.js +1 -0
  77. package/dist/scripts/3755-6e4ec3d174-lite.chunk.js +1 -0
  78. package/dist/scripts/383-81d5b0f3da-lite.chunk.js +1 -0
  79. package/dist/scripts/3836-89b781029f-lite.chunk.js +1 -0
  80. package/dist/scripts/3849-cc38632481-lite.chunk.js +1 -0
  81. package/dist/scripts/389-e0a9ec5a2b-lite.chunk.js +1 -0
  82. package/dist/scripts/{3966-5a706a9450-lite.chunk.js → 3966-66cb50b7c4-lite.chunk.js} +1 -1
  83. package/dist/scripts/4052-f6e4be8ec3-lite.chunk.js +1 -0
  84. package/dist/scripts/414-395860a6ec-lite.chunk.js +1 -0
  85. package/dist/scripts/4145-f072f10ba6-lite.chunk.js +1 -0
  86. package/dist/scripts/{4182-e168bebe60-lite.chunk.js → 4182-71b9d0c2ae-lite.chunk.js} +1 -1
  87. package/dist/scripts/4229-e0eec4f9cc-lite.chunk.js +1 -0
  88. package/dist/scripts/4290-50b30979bb-lite.chunk.js +1 -0
  89. package/dist/scripts/4326-0df396c7a9-lite.chunk.js +1 -0
  90. package/dist/scripts/{4343-ab569983cb-lite.chunk.js → 4343-97dc4dfb23-lite.chunk.js} +1 -1
  91. package/dist/scripts/{4380-165a473ef0-lite.chunk.js → 4380-880fb4cd78-lite.chunk.js} +1 -1
  92. package/dist/scripts/4393-7273cab163-lite.chunk.js +1 -0
  93. package/dist/scripts/4417-f74c436556-lite.chunk.js +1 -0
  94. package/dist/scripts/{4436-813f2de728-lite.chunk.js → 4436-6939f395bc-lite.chunk.js} +1 -1
  95. package/dist/scripts/4484-6bb5f46ab3-lite.chunk.js +1 -0
  96. package/dist/scripts/{4537-01038c7e8a-lite.chunk.js → 4537-9b504a7131-lite.chunk.js} +1 -1
  97. package/dist/scripts/4617-543181732e-lite.chunk.js +1 -0
  98. package/dist/scripts/4632-8a515a2adf-lite.chunk.js +1 -0
  99. package/dist/scripts/{4676-63c3c6916c-lite.chunk.js → 4676-d33096ed1d-lite.chunk.js} +2 -2
  100. package/dist/scripts/4690-8d1c868379-lite.chunk.js +1 -0
  101. package/dist/scripts/{4763-7c2c7a86e0-lite.chunk.js → 4763-aa3b604925-lite.chunk.js} +1 -1
  102. package/dist/scripts/4893-4dfccfedc9-lite.chunk.js +1 -0
  103. package/dist/scripts/4942-d89ef696ed-lite.chunk.js +2 -0
  104. package/dist/scripts/5018-23fbddadb3-lite.chunk.js +1 -0
  105. package/dist/scripts/5041-65efb1da4e-lite.chunk.js +1 -0
  106. package/dist/scripts/5171-1124450f08-lite.chunk.js +1 -0
  107. package/dist/scripts/5229-54d273997c-lite.chunk.js +1 -0
  108. package/dist/scripts/5268-b63ac1972e-lite.chunk.js +2 -0
  109. package/dist/scripts/5385-50b65ee5b3-lite.chunk.js +1 -0
  110. package/dist/scripts/5395-aa5bc09b79-lite.chunk.js +1 -0
  111. package/dist/scripts/5590-f2358ed66e-lite.chunk.js +1 -0
  112. package/dist/scripts/5595-fed09c0f0d-lite.chunk.js +1 -0
  113. package/dist/scripts/{5622-2e03de5953-lite.chunk.js → 5622-080218eb5e-lite.chunk.js} +2 -2
  114. package/dist/scripts/{5756-29a508f73a-lite.chunk.js → 5756-2c449fd1a4-lite.chunk.js} +1 -1
  115. package/dist/scripts/5776-43de233cad-lite.chunk.js +1 -0
  116. package/dist/scripts/5914-89452132ae-lite.chunk.js +1 -0
  117. package/dist/scripts/5974-56af1e8e57-lite.chunk.js +1 -0
  118. package/dist/scripts/{5983-45f1df7cdf-lite.chunk.js → 5983-8f4aa6c37a-lite.chunk.js} +1 -1
  119. package/dist/scripts/5986-38e236e499-lite.chunk.js +1 -0
  120. package/dist/scripts/6057-f6e5423975-lite.chunk.js +1 -0
  121. package/dist/scripts/6117-b1a64ee9d6-lite.chunk.js +1 -0
  122. package/dist/scripts/615-109caae84a-lite.chunk.js +1 -0
  123. package/dist/scripts/{6154-ffb893a889-lite.chunk.js → 6154-1d0dfaf472-lite.chunk.js} +1 -1
  124. package/dist/scripts/6158-2cc856d000-lite.chunk.js +1 -0
  125. package/dist/scripts/6159-00d5adab24-lite.chunk.js +1 -0
  126. package/dist/scripts/6254-3237a629c8-lite.chunk.js +1 -0
  127. package/dist/scripts/6263-6b96369c8d-lite.chunk.js +1 -0
  128. package/dist/scripts/6274-ef6ea9aefc-lite.chunk.js +1 -0
  129. package/dist/scripts/{6302-4436120348-lite.chunk.js → 6302-858c958370-lite.chunk.js} +1 -1
  130. package/dist/scripts/6368-0dc1c905d9-lite.chunk.js +1 -0
  131. package/dist/scripts/6370-73eb5d7165-lite.chunk.js +1 -0
  132. package/dist/scripts/{6465-a18bb45727-lite.chunk.js → 6465-79f2f15c97-lite.chunk.js} +1 -1
  133. package/dist/scripts/{6480-d55c2f6f97-lite.chunk.js → 6480-08e2d6d634-lite.chunk.js} +1 -1
  134. package/dist/scripts/6572-a829585f06-lite.chunk.js +1 -0
  135. package/dist/scripts/6604-772ed75a7a-lite.chunk.js +1 -0
  136. package/dist/scripts/6662-51e2e6eaaf-lite.chunk.js +1 -0
  137. package/dist/scripts/{6689-19a76c14e6-lite.chunk.js → 6689-0daba3d135-lite.chunk.js} +1 -1
  138. package/dist/scripts/6801-fb5064f563-lite.chunk.js +1 -0
  139. package/dist/scripts/6817-ed5e4e7d06-lite.chunk.js +1 -0
  140. package/dist/scripts/6821-7359de4d2e-lite.chunk.js +1 -0
  141. package/dist/scripts/{6822-88521d238b-lite.chunk.js → 6822-5831c9fd42-lite.chunk.js} +1 -1
  142. package/dist/scripts/{6823-0083a3231c-lite.chunk.js → 6823-22b0850abc-lite.chunk.js} +1 -1
  143. package/dist/scripts/{6866-a560486b95-lite.chunk.js → 6866-3253265092-lite.chunk.js} +1 -1
  144. package/dist/scripts/6873-4a90a15240-lite.chunk.js +1 -0
  145. package/dist/scripts/{689-3c6e57d812-lite.chunk.js → 689-f0a1edee9b-lite.chunk.js} +1 -1
  146. package/dist/scripts/{6896-2890da233e-lite.chunk.js → 6896-79fa541f46-lite.chunk.js} +2 -2
  147. package/dist/scripts/{691-720de5af0d-lite.chunk.js → 691-1a7a29fb40-lite.chunk.js} +1 -1
  148. package/dist/scripts/{6913-8d05107c68-lite.chunk.js → 6913-507c07b46c-lite.chunk.js} +1 -1
  149. package/dist/scripts/6930-06c0bffc64-lite.chunk.js +1 -0
  150. package/dist/scripts/6932-05cfdb89f8-lite.chunk.js +1 -0
  151. package/dist/scripts/{7017-cdf324e732-lite.chunk.js → 7017-76adb0abdc-lite.chunk.js} +2 -2
  152. package/dist/scripts/{7030-67a3d8acb6-lite.chunk.js → 7030-e6f622a775-lite.chunk.js} +1 -1
  153. package/dist/scripts/7045-6373f085f2-lite.chunk.js +1 -0
  154. package/dist/scripts/7052-6e758d823a-lite.chunk.js +2 -0
  155. package/dist/scripts/7056-e916d8c1d5-lite.chunk.js +1 -0
  156. package/dist/scripts/7072-39485fc286-lite.chunk.js +2 -0
  157. package/dist/scripts/{7108-5a736ac3bd-lite.chunk.js → 7108-7e3854252d-lite.chunk.js} +1 -1
  158. package/dist/scripts/{7112-88336f937e-lite.chunk.js → 7112-09720be50b-lite.chunk.js} +2 -2
  159. package/dist/scripts/7115-5651a1dba8-lite.chunk.js +1 -0
  160. package/dist/scripts/7117-2dc06cc559-lite.chunk.js +1 -0
  161. package/dist/scripts/{7128-bb325140b2-lite.chunk.js → 7128-523988aea8-lite.chunk.js} +1 -1
  162. package/dist/scripts/714-0f92a1c65b-lite.chunk.js +1 -0
  163. package/dist/scripts/7147-8b38cb4a77-lite.chunk.js +1 -0
  164. package/dist/scripts/{7172-e2add93436-lite.chunk.js → 7172-3478ca9fbf-lite.chunk.js} +1 -1
  165. package/dist/scripts/7205-6c84b9860e-lite.chunk.js +1 -0
  166. package/dist/scripts/7221-7c2e4bd2cf-lite.chunk.js +2 -0
  167. package/dist/scripts/7286-33d40f57b8-lite.chunk.js +1 -0
  168. package/dist/scripts/7293-50af1887dd-lite.chunk.js +1 -0
  169. package/dist/scripts/{7318-7aa5593557-lite.chunk.js → 7318-c329ca7c0d-lite.chunk.js} +2 -2
  170. package/dist/scripts/{7327-abbd47caab-lite.chunk.js → 7327-406b998419-lite.chunk.js} +1 -1
  171. package/dist/scripts/7341-a0366179fe-lite.chunk.js +1 -0
  172. package/dist/scripts/7385-9ae5fdf533-lite.chunk.js +1 -0
  173. package/dist/scripts/7409-145e2b0498-lite.chunk.js +1 -0
  174. package/dist/scripts/7484-bff36cf4bc-lite.chunk.js +1 -0
  175. package/dist/scripts/7515-1fa9993684-lite.chunk.js +2 -0
  176. package/dist/scripts/7555-6536e27567-lite.chunk.js +1 -0
  177. package/dist/scripts/{7706-85973863b8-lite.chunk.js → 7706-d9f05df3bd-lite.chunk.js} +1 -1
  178. package/dist/scripts/7708-d15c0df895-lite.chunk.js +1 -0
  179. package/dist/scripts/7855-e5071abd53-lite.chunk.js +1 -0
  180. package/dist/scripts/{7888-e89b67d09f-lite.chunk.js → 7888-fcf2d068bb-lite.chunk.js} +1 -1
  181. package/dist/scripts/7950-4a82e3281f-lite.chunk.js +2 -0
  182. package/dist/scripts/{7952-e47c1e49a3-lite.chunk.js → 7952-dd5c9af1ed-lite.chunk.js} +1 -1
  183. package/dist/scripts/{8025-1a3d147ab1-lite.chunk.js → 8025-84ccfae3cb-lite.chunk.js} +1 -1
  184. package/dist/scripts/8035-0116ccf4e5-lite.chunk.js +1 -0
  185. package/dist/scripts/8046-fa36daa5ce-lite.chunk.js +1 -0
  186. package/dist/scripts/8056-ccc1962ad7-lite.chunk.js +1 -0
  187. package/dist/scripts/823-2ddc27ac2a-lite.chunk.js +1 -0
  188. package/dist/scripts/8252-a6d0f554a5-lite.chunk.js +1 -0
  189. package/dist/scripts/{8292-5474c9d05b-lite.chunk.js → 8292-e22a69738a-lite.chunk.js} +1 -1
  190. package/dist/scripts/8323-249c45a20e-lite.chunk.js +2 -0
  191. package/dist/scripts/8367-18538fb7ed-lite.chunk.js +1 -0
  192. package/dist/scripts/8383-4b59de6bfc-lite.chunk.js +1 -0
  193. package/dist/scripts/8466-db914a7d25-lite.chunk.js +1 -0
  194. package/dist/scripts/8500-f229b957ef-lite.chunk.js +1 -0
  195. package/dist/scripts/8516-ce00b83316-lite.chunk.js +1 -0
  196. package/dist/scripts/8556-2faa08c0bb-lite.chunk.js +1 -0
  197. package/dist/scripts/8564-f361b00c03-lite.chunk.js +1 -0
  198. package/dist/scripts/8621-bb707f1aa2-lite.chunk.js +1 -0
  199. package/dist/scripts/8627-7c7b3701fa-lite.chunk.js +1 -0
  200. package/dist/scripts/{8681-9e4cc2dbc7-lite.chunk.js → 8681-5190c78b95-lite.chunk.js} +2 -2
  201. package/dist/scripts/{872-ec1fa5330c-lite.chunk.js → 872-556704f056-lite.chunk.js} +1 -1
  202. package/dist/scripts/8729-5928d624f8-lite.chunk.js +1 -0
  203. package/dist/scripts/{8759-bebac8e7eb-lite.chunk.js → 8759-d8e5c29a2e-lite.chunk.js} +1 -1
  204. package/dist/scripts/8763-0aae908218-lite.chunk.js +1 -0
  205. package/dist/scripts/{8820-24cd0624e5-lite.chunk.js → 8820-2ad02c32cb-lite.chunk.js} +1 -1
  206. package/dist/scripts/8830-94ce167cd3-lite.chunk.js +1 -0
  207. package/dist/scripts/8884-b6a7826c51-lite.chunk.js +1 -0
  208. package/dist/scripts/{8905-c4379b0814-lite.chunk.js → 8905-ea152b10f8-lite.chunk.js} +1 -1
  209. package/dist/scripts/8955-0889ae334e-lite.chunk.js +1 -0
  210. package/dist/scripts/{9005-8da22ad68a-lite.chunk.js → 9005-dfff5d4381-lite.chunk.js} +1 -1
  211. package/dist/scripts/{9016-4f396c0fe7-lite.chunk.js → 9016-53b4e0b866-lite.chunk.js} +1 -1
  212. package/dist/scripts/9038-d495e86d21-lite.chunk.js +1 -0
  213. package/dist/scripts/{9118-de9f5956d0-lite.chunk.js → 9118-1603bf2a31-lite.chunk.js} +1 -1
  214. package/dist/scripts/9133-2ac9e11023-lite.chunk.js +1 -0
  215. package/dist/scripts/9138-0f9bb9b0e3-lite.chunk.js +1 -0
  216. package/dist/scripts/{9151-e185c78133-lite.chunk.js → 9151-8b26396391-lite.chunk.js} +1 -1
  217. package/dist/scripts/9194-039e6b2075-lite.chunk.js +2 -0
  218. package/dist/scripts/{9242-e54f9cc9bc-lite.chunk.js → 9242-d7a14a34f0-lite.chunk.js} +1 -1
  219. package/dist/scripts/9260-0abbf3480c-lite.chunk.js +1 -0
  220. package/dist/scripts/9264-756116983e-lite.chunk.js +1 -0
  221. package/dist/scripts/9273-8381c89f91-lite.chunk.js +1 -0
  222. package/dist/scripts/{9428-1f28bc6429-lite.chunk.js → 9428-5917cd7b0a-lite.chunk.js} +2 -2
  223. package/dist/scripts/{9455-fe8ba71803-lite.chunk.js → 9455-7c1622838e-lite.chunk.js} +1 -1
  224. package/dist/scripts/{9478-9b51791ecb-lite.chunk.js → 9478-e817a33a69-lite.chunk.js} +2 -2
  225. package/dist/scripts/9484-6e93df7581-lite.chunk.js +2 -0
  226. package/dist/scripts/9701-f0cdfc4f92-lite.chunk.js +2 -0
  227. package/dist/scripts/{9714-8f65a1e3d4-lite.chunk.js → 9714-f2571e0227-lite.chunk.js} +1 -1
  228. package/dist/scripts/9744-8edc9b07ee-lite.chunk.js +1 -0
  229. package/dist/scripts/9880-d95662abc4-lite.chunk.js +1 -0
  230. package/dist/scripts/{9899-8e434818e4-lite.chunk.js → 9899-5322cee4bf-lite.chunk.js} +1 -1
  231. package/dist/scripts/{9931-e8eda5c94f-lite.chunk.js → 9931-bf2f253ffe-lite.chunk.js} +1 -1
  232. package/dist/scripts/9961-af90dcc493-lite.chunk.js +1 -0
  233. package/dist/scripts/bundle-999b3fc798.min.js +2 -0
  234. package/dist/scripts/{pdf.worker.entry-29e3094652.min.worker.js → pdf.worker.entry-0b35cddafa.min.worker.js} +1 -1
  235. package/dist/scripts/{polyfills-cf6a3b6e3b.min.js → polyfills-5c0684cd85.min.js} +2 -2
  236. package/jest.config.js +11 -11
  237. package/package.json +61 -61
  238. package/typings/libs/CVEvents.d.ts +12 -12
  239. package/typings/libs/CVLanguages.d.ts +24 -24
  240. package/typings/libs/backbone.validation.d.ts +99 -99
  241. package/typings/libs/cloneDeep.d.ts +4 -4
  242. package/typings/libs/cookiesjs.d.ts +25 -25
  243. package/typings/libs/draft-convert.d.ts +3 -3
  244. package/typings/libs/google-api.d.ts +93 -93
  245. package/typings/libs/intersection-observer.d.ts +82 -82
  246. package/typings/libs/microsoft-teams.d.ts +2 -2
  247. package/typings/libs/react-table-config.d.ts +138 -138
  248. package/typings/libs/trackjs.d.ts +2 -2
  249. package/typings/libs/videojs-contrib-quality-levels.d.ts +28 -28
  250. package/typings/utils/imports.d.ts +13 -13
  251. package/dist/languages/en-gb.json +0 -4218
  252. package/dist/languages/en-us.json +0 -4218
  253. package/dist/scripts/1064-f67592534f-lite.chunk.js +0 -1
  254. package/dist/scripts/1090-ab8f0bb780-lite.chunk.js +0 -1
  255. package/dist/scripts/1200-bec7db5b08-lite.chunk.js +0 -2
  256. package/dist/scripts/1285-808ddb5840-lite.chunk.js +0 -1
  257. package/dist/scripts/1291-71d52440ec-lite.chunk.js +0 -1
  258. package/dist/scripts/1341-4d2b44ea1d-lite.chunk.js +0 -1
  259. package/dist/scripts/1366-97fd1ee802-lite.chunk.js +0 -2
  260. package/dist/scripts/147-82593463bf-lite.chunk.js +0 -1
  261. package/dist/scripts/1475-b95463b549-lite.chunk.js +0 -1
  262. package/dist/scripts/1517-c7b2628bf5-lite.chunk.js +0 -1
  263. package/dist/scripts/1518-3c154650f6-lite.chunk.js +0 -1
  264. package/dist/scripts/1526-4beff8cab8-lite.chunk.js +0 -1
  265. package/dist/scripts/1536-46e6a18e52-lite.chunk.js +0 -1
  266. package/dist/scripts/156-1752870661-lite.chunk.js +0 -1
  267. package/dist/scripts/162-e4b981a0ac-lite.chunk.js +0 -2
  268. package/dist/scripts/1628-b13c0d7b41-lite.chunk.js +0 -1
  269. package/dist/scripts/1655-80e664abd2-lite.chunk.js +0 -1
  270. package/dist/scripts/1726-ba13ed4678-lite.chunk.js +0 -1
  271. package/dist/scripts/1766-984f175880-lite.chunk.js +0 -1
  272. package/dist/scripts/1794-c90de6e8b5-lite.chunk.js +0 -1
  273. package/dist/scripts/1818-d24058bd8f-lite.chunk.js +0 -1
  274. package/dist/scripts/1820-7e316e771c-lite.chunk.js +0 -1
  275. package/dist/scripts/1863-193dd09637-lite.chunk.js +0 -1
  276. package/dist/scripts/1891-c6c9089212-lite.chunk.js +0 -1
  277. package/dist/scripts/1943-119060ac7f-lite.chunk.js +0 -1
  278. package/dist/scripts/1958-14838db334-lite.chunk.js +0 -1
  279. package/dist/scripts/2066-035a4e9ee9-lite.chunk.js +0 -2
  280. package/dist/scripts/2095-0f43115eb1-lite.chunk.js +0 -1
  281. package/dist/scripts/2118-e4f8b7b15b-lite.chunk.js +0 -2
  282. package/dist/scripts/2199-e53e42509e-lite.chunk.js +0 -1
  283. package/dist/scripts/2229-2f18b946ae-lite.chunk.js +0 -1
  284. package/dist/scripts/2235-290199467a-lite.chunk.js +0 -1
  285. package/dist/scripts/227-09e6fb95db-lite.chunk.js +0 -1
  286. package/dist/scripts/2318-fb3aa4398a-lite.chunk.js +0 -1
  287. package/dist/scripts/2469-90dd90645b-lite.chunk.js +0 -1
  288. package/dist/scripts/2592-24cd43fffe-lite.chunk.js +0 -1
  289. package/dist/scripts/2608-e01d98709d-lite.chunk.js +0 -1
  290. package/dist/scripts/2665-cb6dff1d0e-lite.chunk.js +0 -1
  291. package/dist/scripts/2701-e11c235912-lite.chunk.js +0 -1
  292. package/dist/scripts/2956-11016d6da1-lite.chunk.js +0 -1
  293. package/dist/scripts/2966-fbcd8659a7-lite.chunk.js +0 -1
  294. package/dist/scripts/3012-4f960076c8-lite.chunk.js +0 -1
  295. package/dist/scripts/3020-cf93b2862e-lite.chunk.js +0 -1
  296. package/dist/scripts/3125-919003fe6b-lite.chunk.js +0 -1
  297. package/dist/scripts/3154-14324fdea1-lite.chunk.js +0 -1
  298. package/dist/scripts/3216-43bdb234b7-lite.chunk.js +0 -1
  299. package/dist/scripts/3285-591f1481e2-lite.chunk.js +0 -1
  300. package/dist/scripts/3514-8a8dd2b680-lite.chunk.js +0 -1
  301. package/dist/scripts/3533-faab1d1e13-lite.chunk.js +0 -1
  302. package/dist/scripts/355-9d84132a7e-lite.chunk.js +0 -1
  303. package/dist/scripts/3645-1cb04952b3-lite.chunk.js +0 -2
  304. package/dist/scripts/3654-5c8fc842aa-lite.chunk.js +0 -1
  305. package/dist/scripts/3667-286f44bcc9-lite.chunk.js +0 -2
  306. package/dist/scripts/3729-74f7cebe6d-lite.chunk.js +0 -1
  307. package/dist/scripts/3754-8f2e909218-lite.chunk.js +0 -1
  308. package/dist/scripts/3755-8e694cf47f-lite.chunk.js +0 -1
  309. package/dist/scripts/3787-76a04b7060-lite.chunk.js +0 -1
  310. package/dist/scripts/383-be043be921-lite.chunk.js +0 -1
  311. package/dist/scripts/3836-9829ebb938-lite.chunk.js +0 -1
  312. package/dist/scripts/3849-7291db19ee-lite.chunk.js +0 -1
  313. package/dist/scripts/389-1c741de6f0-lite.chunk.js +0 -1
  314. package/dist/scripts/4026-de6dccdbbb-lite.chunk.js +0 -1
  315. package/dist/scripts/4052-92609e6d25-lite.chunk.js +0 -1
  316. package/dist/scripts/414-553dbd2774-lite.chunk.js +0 -1
  317. package/dist/scripts/4145-7d354920a2-lite.chunk.js +0 -1
  318. package/dist/scripts/4229-43454055df-lite.chunk.js +0 -1
  319. package/dist/scripts/4290-6356cbba4b-lite.chunk.js +0 -1
  320. package/dist/scripts/4326-9a04c1675b-lite.chunk.js +0 -1
  321. package/dist/scripts/4393-6d40d84805-lite.chunk.js +0 -1
  322. package/dist/scripts/4417-8ae222cad6-lite.chunk.js +0 -1
  323. package/dist/scripts/4484-65672447cd-lite.chunk.js +0 -1
  324. package/dist/scripts/4617-b2272ef83d-lite.chunk.js +0 -1
  325. package/dist/scripts/4632-6b1fc03e10-lite.chunk.js +0 -1
  326. package/dist/scripts/4690-ddb6f8e33d-lite.chunk.js +0 -1
  327. package/dist/scripts/4893-8e3089e4e0-lite.chunk.js +0 -1
  328. package/dist/scripts/4901-8082b8c806-lite.chunk.js +0 -2
  329. package/dist/scripts/4942-e1855d3e14-lite.chunk.js +0 -2
  330. package/dist/scripts/5018-5e67147716-lite.chunk.js +0 -1
  331. package/dist/scripts/5041-f44af0519b-lite.chunk.js +0 -1
  332. package/dist/scripts/5229-1fb29b4635-lite.chunk.js +0 -1
  333. package/dist/scripts/5268-7044ddf2c8-lite.chunk.js +0 -2
  334. package/dist/scripts/5385-fe599acaba-lite.chunk.js +0 -1
  335. package/dist/scripts/5395-34cf703caa-lite.chunk.js +0 -1
  336. package/dist/scripts/5590-0fab2043f5-lite.chunk.js +0 -1
  337. package/dist/scripts/5595-26ed2f284d-lite.chunk.js +0 -1
  338. package/dist/scripts/5776-b749e84450-lite.chunk.js +0 -1
  339. package/dist/scripts/5914-cfa6c18819-lite.chunk.js +0 -1
  340. package/dist/scripts/5974-1581f6f7f6-lite.chunk.js +0 -1
  341. package/dist/scripts/5986-d373b39115-lite.chunk.js +0 -1
  342. package/dist/scripts/6057-04eb525941-lite.chunk.js +0 -1
  343. package/dist/scripts/6117-84c093b8be-lite.chunk.js +0 -1
  344. package/dist/scripts/615-e5cc2b7cdd-lite.chunk.js +0 -1
  345. package/dist/scripts/6158-0d65ceba28-lite.chunk.js +0 -1
  346. package/dist/scripts/6159-87c08c857e-lite.chunk.js +0 -1
  347. package/dist/scripts/6254-1268090b9d-lite.chunk.js +0 -1
  348. package/dist/scripts/6263-9c75a88d29-lite.chunk.js +0 -1
  349. package/dist/scripts/6274-45d001b699-lite.chunk.js +0 -1
  350. package/dist/scripts/6368-a2e4a426ab-lite.chunk.js +0 -1
  351. package/dist/scripts/6370-656f9c3e95-lite.chunk.js +0 -1
  352. package/dist/scripts/6572-925e1f6cd9-lite.chunk.js +0 -1
  353. package/dist/scripts/6604-f78bf0630f-lite.chunk.js +0 -1
  354. package/dist/scripts/6801-aa9f8c265b-lite.chunk.js +0 -1
  355. package/dist/scripts/6817-53272d5d88-lite.chunk.js +0 -1
  356. package/dist/scripts/6821-cc3095a218-lite.chunk.js +0 -1
  357. package/dist/scripts/6873-985ec69710-lite.chunk.js +0 -1
  358. package/dist/scripts/6930-24a4e7c71a-lite.chunk.js +0 -1
  359. package/dist/scripts/6932-4fceb404ed-lite.chunk.js +0 -1
  360. package/dist/scripts/7045-f578d0a23f-lite.chunk.js +0 -1
  361. package/dist/scripts/7052-69903b989d-lite.chunk.js +0 -2
  362. package/dist/scripts/7056-31c38a89dd-lite.chunk.js +0 -1
  363. package/dist/scripts/7072-9f3b5575a2-lite.chunk.js +0 -2
  364. package/dist/scripts/7115-cb3e6b9f0e-lite.chunk.js +0 -1
  365. package/dist/scripts/7117-31061aa201-lite.chunk.js +0 -1
  366. package/dist/scripts/714-302bba8f82-lite.chunk.js +0 -1
  367. package/dist/scripts/7203-4cd51b60a5-lite.chunk.js +0 -1
  368. package/dist/scripts/7205-84a68e0ae6-lite.chunk.js +0 -1
  369. package/dist/scripts/7221-c8f716fead-lite.chunk.js +0 -2
  370. package/dist/scripts/7286-1379008638-lite.chunk.js +0 -1
  371. package/dist/scripts/7293-d2339dc134-lite.chunk.js +0 -1
  372. package/dist/scripts/7341-eb1bad3d02-lite.chunk.js +0 -1
  373. package/dist/scripts/7385-42b24a5db4-lite.chunk.js +0 -1
  374. package/dist/scripts/7409-c0d306ab4f-lite.chunk.js +0 -1
  375. package/dist/scripts/7515-08ba1635e4-lite.chunk.js +0 -2
  376. package/dist/scripts/7555-0c28dae806-lite.chunk.js +0 -1
  377. package/dist/scripts/7708-168b28b4b9-lite.chunk.js +0 -1
  378. package/dist/scripts/7855-d0b3720477-lite.chunk.js +0 -1
  379. package/dist/scripts/7950-6be639d990-lite.chunk.js +0 -2
  380. package/dist/scripts/8035-cfc9101b02-lite.chunk.js +0 -1
  381. package/dist/scripts/8046-c100682365-lite.chunk.js +0 -1
  382. package/dist/scripts/8056-42c5b638a1-lite.chunk.js +0 -1
  383. package/dist/scripts/823-394819b6e2-lite.chunk.js +0 -1
  384. package/dist/scripts/8252-0e7545a270-lite.chunk.js +0 -1
  385. package/dist/scripts/8323-7392e64015-lite.chunk.js +0 -2
  386. package/dist/scripts/8367-53976b1002-lite.chunk.js +0 -1
  387. package/dist/scripts/8383-e5491b0fea-lite.chunk.js +0 -1
  388. package/dist/scripts/8466-bfb6296286-lite.chunk.js +0 -1
  389. package/dist/scripts/8500-5a8c54adfb-lite.chunk.js +0 -1
  390. package/dist/scripts/8516-2dd2445007-lite.chunk.js +0 -1
  391. package/dist/scripts/8556-4258698c18-lite.chunk.js +0 -1
  392. package/dist/scripts/8564-fa63bdf9ff-lite.chunk.js +0 -1
  393. package/dist/scripts/8621-f56becd41d-lite.chunk.js +0 -1
  394. package/dist/scripts/8627-a75e8c3c72-lite.chunk.js +0 -1
  395. package/dist/scripts/8729-1a7f483f5d-lite.chunk.js +0 -1
  396. package/dist/scripts/8763-8565558446-lite.chunk.js +0 -1
  397. package/dist/scripts/8830-f87703865e-lite.chunk.js +0 -1
  398. package/dist/scripts/8884-e1b68fb19e-lite.chunk.js +0 -1
  399. package/dist/scripts/8955-d96a8d96dd-lite.chunk.js +0 -1
  400. package/dist/scripts/9038-ff47dcecd1-lite.chunk.js +0 -1
  401. package/dist/scripts/9133-9e8afb36ee-lite.chunk.js +0 -1
  402. package/dist/scripts/9264-d4a3940963-lite.chunk.js +0 -1
  403. package/dist/scripts/9273-19f7050562-lite.chunk.js +0 -1
  404. package/dist/scripts/9484-cf98c2c51d-lite.chunk.js +0 -2
  405. package/dist/scripts/949-4e8c0b0874-lite.chunk.js +0 -1
  406. package/dist/scripts/9522-3c117f4efe-lite.chunk.js +0 -2
  407. package/dist/scripts/9880-0ea17e51ac-lite.chunk.js +0 -1
  408. package/dist/scripts/9961-ffb664f963-lite.chunk.js +0 -1
  409. package/dist/scripts/bundle-090e4ef8d6.min.js +0 -2
  410. /package/dist/css/{1766-lite-2cb4fd8dc1.chunk.css → 3322-lite-2cb4fd8dc1.chunk.css} +0 -0
  411. /package/dist/css/{4901-lite-d395807101.chunk.css → 9194-lite-d395807101.chunk.css} +0 -0
  412. /package/dist/scripts/{1200-bec7db5b08-lite.chunk.js.LICENSE.txt → 1200-f30709bde3-lite.chunk.js.LICENSE.txt} +0 -0
  413. /package/dist/scripts/{1354-635a2024da-lite.chunk.js.LICENSE.txt → 1354-adb83a2eaa-lite.chunk.js.LICENSE.txt} +0 -0
  414. /package/dist/scripts/{1366-97fd1ee802-lite.chunk.js.LICENSE.txt → 1366-9e3f333cdc-lite.chunk.js.LICENSE.txt} +0 -0
  415. /package/dist/scripts/{1592-68884d6d6c-lite.chunk.js.LICENSE.txt → 1592-e5a0fbaee2-lite.chunk.js.LICENSE.txt} +0 -0
  416. /package/dist/scripts/{162-e4b981a0ac-lite.chunk.js.LICENSE.txt → 162-c62a92235f-lite.chunk.js.LICENSE.txt} +0 -0
  417. /package/dist/scripts/{1837-0673045eda-lite.chunk.js → 1837-8224775ee2-lite.chunk.js} +0 -0
  418. /package/dist/scripts/{1934-a972017a0c-lite.chunk.js.LICENSE.txt → 1934-6641f7e580-lite.chunk.js.LICENSE.txt} +0 -0
  419. /package/dist/scripts/{1977-5abe20f323-lite.chunk.js.LICENSE.txt → 1977-7e46c81a05-lite.chunk.js.LICENSE.txt} +0 -0
  420. /package/dist/scripts/{2066-035a4e9ee9-lite.chunk.js.LICENSE.txt → 2066-2448ffab36-lite.chunk.js.LICENSE.txt} +0 -0
  421. /package/dist/scripts/{2118-e4f8b7b15b-lite.chunk.js.LICENSE.txt → 2118-26ae54c3db-lite.chunk.js.LICENSE.txt} +0 -0
  422. /package/dist/scripts/{2452-c3bbdacb87-lite.chunk.js → 2452-446607a894-lite.chunk.js} +0 -0
  423. /package/dist/scripts/{2566-2f7100a498-lite.chunk.js → 2566-db0f3fdc44-lite.chunk.js} +0 -0
  424. /package/dist/scripts/{2729-d0b201806b-lite.chunk.js → 2729-bf3c1615b9-lite.chunk.js} +0 -0
  425. /package/dist/scripts/{276-8d1fc97138-lite.chunk.js → 276-bb5c3227d5-lite.chunk.js} +0 -0
  426. /package/dist/scripts/{2877-70d40e8577-lite.chunk.js → 2877-4171fae97e-lite.chunk.js} +0 -0
  427. /package/dist/scripts/{3003-0ff3ea9398-lite.chunk.js → 3003-982dd70f25-lite.chunk.js} +0 -0
  428. /package/dist/scripts/{3007-9507eed4ed-lite.chunk.js → 3007-bfe9edfb5f-lite.chunk.js} +0 -0
  429. /package/dist/scripts/{3093-d4d47a261b-lite.chunk.js → 3093-6c5da8944e-lite.chunk.js} +0 -0
  430. /package/dist/scripts/{3108-59f96004c1-lite.chunk.js → 3108-4774ebe606-lite.chunk.js} +0 -0
  431. /package/dist/scripts/{3171-2f782ced16-lite.chunk.js → 3171-02af531a34-lite.chunk.js} +0 -0
  432. /package/dist/scripts/{3301-1370b99f05-lite.chunk.js → 3301-2ff0136e3b-lite.chunk.js} +0 -0
  433. /package/dist/scripts/{3602-9e631593b1-lite.chunk.js.LICENSE.txt → 3602-7fb236937c-lite.chunk.js.LICENSE.txt} +0 -0
  434. /package/dist/scripts/{3645-1cb04952b3-lite.chunk.js.LICENSE.txt → 3645-ccb3557f33-lite.chunk.js.LICENSE.txt} +0 -0
  435. /package/dist/scripts/{3667-286f44bcc9-lite.chunk.js.LICENSE.txt → 3667-6261d6a482-lite.chunk.js.LICENSE.txt} +0 -0
  436. /package/dist/scripts/{3728-12a39b4a42-lite.chunk.js → 3728-61154e9591-lite.chunk.js} +0 -0
  437. /package/dist/scripts/{3848-a8f23fe5d2-lite.chunk.js → 3848-ec29f6e574-lite.chunk.js} +0 -0
  438. /package/dist/scripts/{3962-54498beb2f-lite.chunk.js → 3962-f2dff30617-lite.chunk.js} +0 -0
  439. /package/dist/scripts/{4067-48c21d9303-lite.chunk.js → 4067-7bd2a9bb48-lite.chunk.js} +0 -0
  440. /package/dist/scripts/{4423-15fcd2a632-lite.chunk.js → 4423-972b49a9ea-lite.chunk.js} +0 -0
  441. /package/dist/scripts/{4541-59de215916-lite.chunk.js → 4541-7226b9836d-lite.chunk.js} +0 -0
  442. /package/dist/scripts/{4676-63c3c6916c-lite.chunk.js.LICENSE.txt → 4676-d33096ed1d-lite.chunk.js.LICENSE.txt} +0 -0
  443. /package/dist/scripts/{4770-02ee901240-lite.chunk.js → 4770-19393b2e34-lite.chunk.js} +0 -0
  444. /package/dist/scripts/{4777-d59fe3518a-lite.chunk.js → 4777-4be0dff304-lite.chunk.js} +0 -0
  445. /package/dist/scripts/{482-af25a29b0b-lite.chunk.js → 482-1534ca1124-lite.chunk.js} +0 -0
  446. /package/dist/scripts/{4895-c190fe08db-lite.chunk.js → 4895-9d22529005-lite.chunk.js} +0 -0
  447. /package/dist/scripts/{4901-8082b8c806-lite.chunk.js.LICENSE.txt → 4942-d89ef696ed-lite.chunk.js.LICENSE.txt} +0 -0
  448. /package/dist/scripts/{510-6b29b1c65e-lite.chunk.js → 510-0aacaf4a3f-lite.chunk.js} +0 -0
  449. /package/dist/scripts/{5173-b9dacfa8f7-lite.chunk.js → 5173-8046faf648-lite.chunk.js} +0 -0
  450. /package/dist/scripts/{4942-e1855d3e14-lite.chunk.js.LICENSE.txt → 5268-b63ac1972e-lite.chunk.js.LICENSE.txt} +0 -0
  451. /package/dist/scripts/{5271-96a33ef5c8-lite.chunk.js → 5271-a5ffc1b79a-lite.chunk.js} +0 -0
  452. /package/dist/scripts/{528-fa34d4e176-lite.chunk.js → 528-cc94d0b7ce-lite.chunk.js} +0 -0
  453. /package/dist/scripts/{5291-7cbea59e7a-lite.chunk.js → 5291-6ef2fcf319-lite.chunk.js} +0 -0
  454. /package/dist/scripts/{5509-9b0191030d-lite.chunk.js → 5509-35f1b780d4-lite.chunk.js} +0 -0
  455. /package/dist/scripts/{5268-7044ddf2c8-lite.chunk.js.LICENSE.txt → 5622-080218eb5e-lite.chunk.js.LICENSE.txt} +0 -0
  456. /package/dist/scripts/{5823-d64e3ad325-lite.chunk.js → 5823-273dc77097-lite.chunk.js} +0 -0
  457. /package/dist/scripts/{6285-3c6ecdb063-lite.chunk.js → 6285-202fcb0ab4-lite.chunk.js} +0 -0
  458. /package/dist/scripts/{6330-f66286f1bd-lite.chunk.js → 6330-188babc35b-lite.chunk.js} +0 -0
  459. /package/dist/scripts/{6450-2c3a1e7763-lite.chunk.js → 6450-3c16cc5c71-lite.chunk.js} +0 -0
  460. /package/dist/scripts/{6493-9b29994c11-lite.chunk.js → 6493-f6cec5b493-lite.chunk.js} +0 -0
  461. /package/dist/scripts/{6823-0083a3231c-lite.chunk.js.LICENSE.txt → 6823-22b0850abc-lite.chunk.js.LICENSE.txt} +0 -0
  462. /package/dist/scripts/{5622-2e03de5953-lite.chunk.js.LICENSE.txt → 6896-79fa541f46-lite.chunk.js.LICENSE.txt} +0 -0
  463. /package/dist/scripts/{691-720de5af0d-lite.chunk.js.LICENSE.txt → 691-1a7a29fb40-lite.chunk.js.LICENSE.txt} +0 -0
  464. /package/dist/scripts/{6896-2890da233e-lite.chunk.js.LICENSE.txt → 7017-76adb0abdc-lite.chunk.js.LICENSE.txt} +0 -0
  465. /package/dist/scripts/{7017-cdf324e732-lite.chunk.js.LICENSE.txt → 7030-e6f622a775-lite.chunk.js.LICENSE.txt} +0 -0
  466. /package/dist/scripts/{7030-67a3d8acb6-lite.chunk.js.LICENSE.txt → 7052-6e758d823a-lite.chunk.js.LICENSE.txt} +0 -0
  467. /package/dist/scripts/{7052-69903b989d-lite.chunk.js.LICENSE.txt → 7072-39485fc286-lite.chunk.js.LICENSE.txt} +0 -0
  468. /package/dist/scripts/{7072-9f3b5575a2-lite.chunk.js.LICENSE.txt → 7112-09720be50b-lite.chunk.js.LICENSE.txt} +0 -0
  469. /package/dist/scripts/{7112-88336f937e-lite.chunk.js.LICENSE.txt → 7221-7c2e4bd2cf-lite.chunk.js.LICENSE.txt} +0 -0
  470. /package/dist/scripts/{7318-7aa5593557-lite.chunk.js.LICENSE.txt → 7318-c329ca7c0d-lite.chunk.js.LICENSE.txt} +0 -0
  471. /package/dist/scripts/{7327-abbd47caab-lite.chunk.js.LICENSE.txt → 7327-406b998419-lite.chunk.js.LICENSE.txt} +0 -0
  472. /package/dist/scripts/{7506-3eaf344940-lite.chunk.js → 7506-6e5abb1ce8-lite.chunk.js} +0 -0
  473. /package/dist/scripts/{7221-c8f716fead-lite.chunk.js.LICENSE.txt → 7515-1fa9993684-lite.chunk.js.LICENSE.txt} +0 -0
  474. /package/dist/scripts/{754-4799619844-lite.chunk.js → 754-af06e1c835-lite.chunk.js} +0 -0
  475. /package/dist/scripts/{7724-66f50b3e25-lite.chunk.js → 7724-fe8ee64e46-lite.chunk.js} +0 -0
  476. /package/dist/scripts/{7767-6dd2c2f5d5-lite.chunk.js → 7767-697e83f840-lite.chunk.js} +0 -0
  477. /package/dist/scripts/{7925-d30e261c55-lite.chunk.js → 7925-400ce5c362-lite.chunk.js} +0 -0
  478. /package/dist/scripts/{7939-069695c2b5-lite.chunk.js → 7939-50f67c7062-lite.chunk.js} +0 -0
  479. /package/dist/scripts/{7946-326535ac72-lite.chunk.js → 7946-dd3f088d1a-lite.chunk.js} +0 -0
  480. /package/dist/scripts/{7515-08ba1635e4-lite.chunk.js.LICENSE.txt → 7950-4a82e3281f-lite.chunk.js.LICENSE.txt} +0 -0
  481. /package/dist/scripts/{8038-64097776ae-lite.chunk.js → 8038-f1425fa036-lite.chunk.js} +0 -0
  482. /package/dist/scripts/{811-c0682d38fc-lite.chunk.js → 811-3c7448dc35-lite.chunk.js} +0 -0
  483. /package/dist/scripts/{8176-3e3e552896-lite.chunk.js → 8176-4f92cf69ff-lite.chunk.js} +0 -0
  484. /package/dist/scripts/{7950-6be639d990-lite.chunk.js.LICENSE.txt → 8323-249c45a20e-lite.chunk.js.LICENSE.txt} +0 -0
  485. /package/dist/scripts/{8419-1d91b60d17-lite.chunk.js → 8419-a12e4d833e-lite.chunk.js} +0 -0
  486. /package/dist/scripts/{8323-7392e64015-lite.chunk.js.LICENSE.txt → 8681-5190c78b95-lite.chunk.js.LICENSE.txt} +0 -0
  487. /package/dist/scripts/{9060-055dda4160-lite.chunk.js → 9060-75b7bf8e06-lite.chunk.js} +0 -0
  488. /package/dist/scripts/{8681-9e4cc2dbc7-lite.chunk.js.LICENSE.txt → 9194-039e6b2075-lite.chunk.js.LICENSE.txt} +0 -0
  489. /package/dist/scripts/{9325-c08b194ae9-lite.chunk.js → 9325-76be09c5d9-lite.chunk.js} +0 -0
  490. /package/dist/scripts/{9428-1f28bc6429-lite.chunk.js.LICENSE.txt → 9428-5917cd7b0a-lite.chunk.js.LICENSE.txt} +0 -0
  491. /package/dist/scripts/{9478-9b51791ecb-lite.chunk.js.LICENSE.txt → 9478-e817a33a69-lite.chunk.js.LICENSE.txt} +0 -0
  492. /package/dist/scripts/{9484-cf98c2c51d-lite.chunk.js.LICENSE.txt → 9484-6e93df7581-lite.chunk.js.LICENSE.txt} +0 -0
  493. /package/dist/scripts/{9674-80c7295bd8-lite.chunk.js → 9674-72dc791884-lite.chunk.js} +0 -0
  494. /package/dist/scripts/{9522-3c117f4efe-lite.chunk.js.LICENSE.txt → 9701-f0cdfc4f92-lite.chunk.js.LICENSE.txt} +0 -0
  495. /package/dist/scripts/{9798-24409ec696-lite.chunk.js → 9798-6d39196b90-lite.chunk.js} +0 -0
  496. /package/dist/scripts/{9931-e8eda5c94f-lite.chunk.js.LICENSE.txt → 9931-bf2f253ffe-lite.chunk.js.LICENSE.txt} +0 -0
  497. /package/dist/scripts/{bundle-090e4ef8d6.min.js.LICENSE.txt → bundle-999b3fc798.min.js.LICENSE.txt} +0 -0
  498. /package/dist/scripts/{pdf.worker.entry-29e3094652.min.worker.js.LICENSE.txt → pdf.worker.entry-0b35cddafa.min.worker.js.LICENSE.txt} +0 -0
  499. /package/dist/scripts/{polyfills-cf6a3b6e3b.min.js.LICENSE.txt → polyfills-5c0684cd85.min.js.LICENSE.txt} +0 -0
@@ -1,2 +0,0 @@
1
- /*! For license information please see 9522-3c117f4efe-lite.chunk.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9522],{42328:(t,e,r)=>{r.d(e,{w:()=>i});var n=r(1024),o=r.n(n);function a(){return o().createElement("svg",{viewBox:"0 0 24 24"},o().createElement("path",{d:"M11.959 10.641l4.402-4.296a.964.964 0 0 1 1.358 0 .951.951 0 0 1 0 1.35l-4.403 4.297 4.403 4.378a.951.951 0 0 1 0 1.35.964.964 0 0 1-1.358 0l-4.402-4.378-4.32 4.378a.964.964 0 0 1-1.358 0 .951.951 0 0 1 0-1.35l4.32-4.378-4.32-4.362a.951.951 0 0 1 0-1.35.964.964 0 0 1 1.358 0l4.32 4.361z"}))}var i=o().forwardRef((function(t,e){var r=t.onClickClear,n=t.showClearButton,i=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}(t,["onClickClear","showClearButton"]);return o().createElement("div",{className:"position-relative"},o().createElement("input",Object.assign({},i,{ref:e,className:"".concat(t.className," ").concat("aYpO7")})),(!!t.value||n)&&o().createElement("span",{className:"".concat("ygMgF"," position-absolute cursor-pointer text-muted"),role:"button",onClick:r},o().createElement("div",{className:"d-inline-block svg-container md"},o().createElement(a,null))))}))},40688:(t,e,r)=>{r.d(e,{h:()=>en});var n=r(1024),o=r.n(n),a=r(57900),i=r(49985),c=r(74254),l=r(42328),u=["Teacher","Librarian","Curriculum Coordinator","Digital Technology Coordinator","IT","Head of Department","Head of Subject","Deputy Principal","Principal"],s=["Teacher","Librarian","Head of department","Subject lead","Curriculum coordinator","School leadership","District leadership","Academic coach","Instructional technology specialist","Consortium leadership","IT"],f={au:u,nz:u,uk:["Teacher","Librarian","IT/LRC","e-Learning/ICT Coordinator","Head of Key Stage","Head of Department","Subject Lead","Assistant Head Teacher","Deputy Head Teacher","Head Teacher"],us:s};function p(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,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return h(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)?h(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 h(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 d="OTHER";function m(t){var e=t.error,r=t.onChange,n=t.countryCode,a=p(o().useState(""),2),i=a[0],c=a[1],l=p(o().useState(""),2),u=l[0],h=l[1],m=function(t){return f[t]||s}(n),y=i===d;return o().createElement(o().Fragment,null,o().createElement("div",{className:"mb-2"},o().createElement("select",{id:t.id,name:t.id,className:"form-control form-control-lg ".concat(i.length?"text-dark":"text-secondary"," ").concat(!!e&&"is-invalid"),value:i,placeholder:"Role",onChange:function(t){c(t.target.value),h(""),r(t.target.value===d?"":t.target.value)}},o().createElement("option",{value:"",disabled:!0,className:"text-muted"},"What do you do?"),m.map((function(t,e){return o().createElement("option",{value:t,className:"text-dark",key:e},t)})),o().createElement("option",{value:d,className:"text-dark"},"Other")),!!e&&!y&&o().createElement("div",{className:"invalid-feedback"},e)),y&&o().createElement("div",{className:"mb-3"},o().createElement("input",{className:"form-control form-control-lg ".concat(!!e&&"is-invalid"),type:"text",value:u,placeholder:"What do you do?",autoFocus:!0,onChange:function(t){h(t.target.value),r(t.target.value)}}),!!e&&o().createElement("div",{className:"invalid-feedback"},e)))}var y,v=r(83765);!function(t){t.AU="au",t.NZ="nz",t.UK="uk",t.US="us"}(y||(y={}));var g,b,w,S=["uk","gb","gg","im","je","ie"],E={au:y.AU,nz:y.NZ,us:y.US,uk:y.UK,gb:y.UK,gg:y.UK,im:y.UK,je:y.UK,ie:y.UK},x={au:v.M.CvApSoutheast1,uk:v.M.CvEuWest1,us:v.M.CvNaWest1,nz:v.M.CvApSoutheast2},L={getInstanceRegion:function(t){var e=L.getCountryCode(t);return x[e]},getCountryCode:function(t){return E[null==t?void 0:t.toLowerCase()]||y.US},isCountryCodeUK:function(t){return S.includes(t.toLowerCase())},isCountryCodeAU:function(t){return(null==t?void 0:t.toLowerCase())===y.AU},isCountryCodeUS:function(t){return(null==t?void 0:t.toLowerCase())===y.US},isCountryCodeNZ:function(t){return(null==t?void 0:t.toLowerCase())===y.NZ},isSupportedCountryCode:function(t){return Object.keys(E).includes(null==t?void 0:t.toLowerCase())},getLocalizedLocalityPlaceholderPhrase:function(t){if(t)return L.isCountryCodeUK(t)?"E.g. CR0 3RL or 36 Factory Lane":L.isCountryCodeAU(t)||L.isCountryCodeNZ(t)?"E.g. 2212 or Revesby":L.isCountryCodeUS(t)?"E.g. 95826 or Sacramento":void 0},getLocalizedLocalityPlaceholderText:function(t){if(t){var e=L.getLocalizedLocalityPlaceholderPhrase(t);if(e)return e}}},j=r(2102);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(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 C(t){var e,r,n,a,i,c,u,s,f,p=(s=o().useState({fullname:"",jobTitle:"",phone:""}),f=2,function(t){if(Array.isArray(t))return t}(s)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(s,f)||function(t,e){if(t){if("string"==typeof t)return O(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)?O(t,e):void 0}}(s,f)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=p[0],d=p[1];function y(t,e){d((function(r){return Object.assign(Object.assign({},r),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==k(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==k(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===k(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},t,e))}))}return o().createElement("div",{className:"text-center"},o().createElement("h1",{className:"text-center h4"},"A little more about you"),o().createElement("p",null,"Please enter your details."),o().createElement("form",{onSubmit:function(e){e.preventDefault(),t.handleSubmitForm(h)}},o().createElement("div",{className:"form-group text-left"},o().createElement("label",{className:"d-block font-weight-bold mb-1",htmlFor:"fullname-input"},"Full name"),o().createElement(l.w,{value:h.fullname,onChange:function(e){e.preventDefault(),y("fullname",e.target.value),t.removeErrorForKey("fullname"),t.removeErrorForKey("submission")},name:"fullname-input",id:"fullname-input",type:"text",className:"form-control form-control-lg ".concat((null===(e=t.errors.fullname)||void 0===e?void 0:e.length)?"is-invalid":""),placeholder:"Enter your name",onClickClear:function(){y("fullname",""),t.removeErrorForKey("fullname"),t.removeErrorForKey("submission")},autoFocus:!0}),t.errors.fullname&&o().createElement("div",{className:"invalid-feedback d-block"},t.errors.fullname)),o().createElement("div",{className:"form-group text-left"},o().createElement("label",{className:"d-block font-weight-bold mb-1",htmlFor:"phone-input"},"Contact number"),o().createElement(l.w,{value:h.phone,onChange:function(e){e.preventDefault(),y("phone",e.target.value.trim()),t.removeErrorForKey("phone"),t.removeErrorForKey("submission")},name:"phone-input",id:"phone-input",type:"tel",className:"form-control form-control-lg ".concat((null===(r=t.errors.phone)||void 0===r?void 0:r.length)?"is-invalid":""),placeholder:"Enter your phone number",onClickClear:function(){y("phone",""),t.removeErrorForKey("phone"),t.removeErrorForKey("submission")}}),t.errors.phone&&o().createElement("div",{className:"invalid-feedback d-block"},t.errors.phone)),o().createElement("div",{className:"form-group text-left"},o().createElement("label",{className:"d-block font-weight-bold mb-1",htmlFor:"jobTitle-select"},"Job title"),o().createElement(m,{id:"jobTitle-select",countryCode:L.getCountryCode(t.country),onChange:function(e){y("jobTitle",e),t.removeErrorForKey("jobTitle"),t.removeErrorForKey("submission")},error:null===(n=t.errors)||void 0===n?void 0:n.jobTitle})),!!(null===(a=t.errors)||void 0===a?void 0:a.submission)&&o().createElement("div",{className:"form-group invalid-feedback d-block"},t.errors.submission),o().createElement("div",{className:"form-group mb-1"},o().createElement(j.m,{className:"btn btn-dark btn-lg w-100",onClick:function(){return t.handleSubmitForm(h)},showSpinner:t.loading,disabled:t.loading||(i=h.fullname,c=h.jobTitle,u=h.phone,!(i.length&&c.length&&u.length&&!Object.keys(t.errors).length))},"Submit"))))}!function(t){t.Unavailable="unavailable",t.Expired="expired",t.Active="active",t.NotRequired="not-required",t.Available="available",t.Unsupported="unsupported",t.UserAutoJoinAllowed="user-auto-join-allowed",t.UserJoinApprovalRequired="user-join-approval-required"}(g||(g={})),function(t){t.InvalidEmail="invalid-email"}(b||(b={})),function(t){t.Staff="staff",t.Learner="learner"}(w||(w={}));var A,N=r(63093),P=r(33003),U=r.n(P),I=r(84789);function T(t){return T="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},T(t)}function _(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,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return F(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?F(t,e):void 0}}(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 F(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function G(){G=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:k(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",h="suspendedYield",d="executing",m="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(P([])));E&&E!==r&&n.call(E,i)&&(w=E);var x=b.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==T(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function k(e,r,n){var o=p;return function(a,i){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=O(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function C(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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(T(e)+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(j.prototype),u(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new j(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.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}},e.values=P,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===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,y):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),y},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),A(r),y}},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;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function D(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==T(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==T(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===T(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var R={k12:"Primary & Secondary"},M=(D(A={},I.X.Auth,"auth.web"),D(A,I.X.Lite,"lite.web"),A),K={getClient:function(t){var e,r,n,o,a,i;return n=this,o=void 0,a=void 0,i=G().mark((function n(){var o,a,i,c,l,u;return G().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=t.brazeConfig,a=t.geoLocation,i=t.version,c=o[L.getInstanceRegion(null==a?void 0:a.countryCode)],l=M[t.productName],u=(0,N.getInstance)({baseUrl:c.url,apiKey:c.apiKey,productVersion:i,productName:l,enableLogging:!1,automaticallyShowInAppMessages:!1}),(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode)&&u.setUserCountry(null===(r=t.geoLocation)||void 0===r?void 0:r.countryCode),n.abrupt("return",u);case 6:case"end":return n.stop()}}),n)})),new(a||(a=Promise))((function(t,e){function r(t){try{l(i.next(t))}catch(t){e(t)}}function c(t){try{l(i.throw(t))}catch(t){e(t)}}function l(e){var n;e.done?t(e.value):(n=e.value,n instanceof a?n:new a((function(t){t(n)}))).then(r,c)}l((i=i.apply(n,o||[])).next())}))},hashedEmail:function(t){var e=t.trim().toLowerCase();return U().hash(e)},removeEmptyKeys:function(t){if(Array.isArray(t))return t;var e=Object.assign({},t);return Object.entries(e).filter((function(t){var e=_(t,2)[1];return null!==e&&!("string"==typeof e&&!e.length)})).reduce((function(t,e){var r=_(e,2),n=r[0],o=r[1];return Object.assign(Object.assign({},t),D({},n,o===Object(o)?K.removeEmptyKeys(o):o))}),{})},getEventTopic:function(){return"Free Trial Request"},getCustomEventType:function(){return N.ProductFormEvent.ProductTrailRequested},getSchoolType:function(t){if(t){var e=t.toLowerCase();if(!["unknown","other"].includes(e))return R[e]||t}}};function z(t){return z="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},z(t)}function q(){q=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:k(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",h="suspendedYield",d="executing",m="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(P([])));E&&E!==r&&n.call(E,i)&&(w=E);var x=b.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==z(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function k(e,r,n){var o=p;return function(a,i){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=O(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function C(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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(z(e)+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(j.prototype),u(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new j(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.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}},e.values=P,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===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,y):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),y},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),A(r),y}},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;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function B(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,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Y(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)?Y(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 Y(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 $=255,W=/\$+[\w\s]?/,V=/^\+?\d{4,255}$/;function H(t){if(!t)return{firstName:"",surname:""};var e=t.split(" ").filter((function(t){return t.length}));return{firstName:e.shift(),surname:e.join(" ")}}var J=r(65858),Z=r(45157),X=function t(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){if(e.constructor!==r.constructor)return!1;var n,o,a;if(Array.isArray(e)){if((n=e.length)!=r.length)return!1;for(o=n;0!=o--;)if(!t(e[o],r[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if((n=(a=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,a[o]))return!1;for(o=n;0!=o--;){var i=a[o];if(!t(e[i],r[i]))return!1}return!0}return e!=e&&r!=r};const Q="__googleMapsScriptId";var tt;!function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"}(tt||(tt={}));class et{constructor({apiKey:t,authReferrerPolicy:e,channel:r,client:n,id:o=Q,language:a,libraries:i=[],mapIds:c,nonce:l,region:u,retries:s=3,url:f="https://maps.googleapis.com/maps/api/js",version:p}){if(this.CALLBACK="__googleMapsCallback",this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=e,this.channel=r,this.client=n,this.id=o||Q,this.language=a,this.libraries=i,this.mapIds=c,this.nonce=l,this.region=u,this.retries=s,this.url=f,this.version=p,et.instance){if(!X(this.options,et.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(et.instance.options)}`);return et.instance}et.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?tt.FAILURE:this.done?tt.SUCCESS:this.loading?tt.LOADING:tt.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let t=this.url;return t+=`?callback=${this.CALLBACK}`,this.apiKey&&(t+=`&key=${this.apiKey}`),this.channel&&(t+=`&channel=${this.channel}`),this.client&&(t+=`&client=${this.client}`),this.libraries.length>0&&(t+=`&libraries=${this.libraries.join(",")}`),this.language&&(t+=`&language=${this.language}`),this.region&&(t+=`&region=${this.region}`),this.version&&(t+=`&v=${this.version}`),this.mapIds&&(t+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(t+=`&auth_referrer_policy=${this.authReferrerPolicy}`),t}deleteScript(){const t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise(((t,e)=>{this.loadCallback((r=>{r?e(r.error):t(window.google)}))}))}loadCallback(t){this.callbacks.push(t),this.execute()}setScript(){if(document.getElementById(this.id))return void this.callback();const t=this.createUrl(),e=document.createElement("script");e.id=this.id,e.type="text/javascript",e.src=t,e.onerror=this.loadErrorCallback.bind(this),e.defer=!0,e.async=!0,this.nonce&&(e.nonce=this.nonce),document.head.appendChild(e)}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(t){if(this.errors.push(t),this.errors.length<=this.retries){const t=this.errors.length*Math.pow(2,this.errors.length);console.log(`Failed to load Google Maps script, retrying in ${t} ms.`),setTimeout((()=>{this.deleteScript(),this.setScript()}),t)}else this.onerrorEvent=t,this.callback()}setCallback(){window.__googleMapsCallback=this.callback.bind(this)}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach((t=>{t(this.onerrorEvent)})),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),void this.callback();this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}}function rt(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,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(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}}(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 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}function ot(t){return new et({apiKey:t.apiKey,version:"weekly",libraries:t.libraries,retries:3})}function at(t){var e={apiKey:t.apiKey,libraries:t.libraries||["places"]},r=rt(o().useState(!1),2),n=r[0],a=r[1],i=rt(o().useState(ot(e)),2),c=i[0],l=i[1];function u(t,r){c?c.loadCallback((function(e){if(e)return a(!1),void(r&&r(e));a(!0),t&&t()})):l(ot(e))}return o().useEffect((function(){u()}),[]),{loader:c,scriptLoaded:n,onGoogleApiReady:u}}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}function ct(t){var e,r,n=at({apiKey:t.googleApiKey}).scriptLoaded,a=(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,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(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.")}()),i=a[0],c=a[1];return o().useEffect((function(){n&&c(new google.maps.places.AutocompleteService)}),[n]),i}function lt(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 ut="us",st="country:placeholder:text";function ft(t){var e,r,n=t.apiKey,i=t.geoLocation,c=t.makeRequest,l=void 0===c||c,u=t.template,s=void 0===u?"E.g. [placeholder]":u,f=t.templateKey,p=void 0===f?"[placeholder]":f,h=ct({googleApiKey:n}),d=o().useState((function(){return function(t){var e=L.getLocalizedLocalityPlaceholderText(null==t?void 0:t.countryCode);return e||(a.SG.cacheGet("".concat(st,":").concat(null==t?void 0:t.countryCode))||void 0)}(i)})),m=(r=2,function(t){if(Array.isArray(t))return t}(e=d)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return lt(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)?lt(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.")}()),y=m[0],v=m[1];function g(t,e){a.SG.cacheSet("".concat(st,":").concat(e),t,86400),v(t)}return o().useEffect((function(){if(!y&&h&&l){var t=(null==i?void 0:i.countryCode)||ut,e={input:String.fromCharCode(96+Z.Y.getRandomInt(26)),types:["(cities)"],region:t,componentRestrictions:{country:t}};h.getPlacePredictions(e,(function(e,r){return function(t,e,r){if(e===google.maps.places.PlacesServiceStatus.OK&&t){var n=t[Z.Y.getRandomInt(t.length)].description;g(s.replace(p,n),r)}else g(L.getLocalizedLocalityPlaceholderText(ut),r)}(e,r,t)}))}}),[y,h,i,l]),y}function pt(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 ht(t){var e,r,n=(e=o().useState(0),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,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return pt(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)?pt(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.")}()),a=n[0],i=n[1],c=o().useRef();function l(){var t;c.current&&(null===(t=c.current.children[a-1])||void 0===t||t.scrollIntoView({block:"center"}))}return{selectedIndex:a,onKeyDown:function(e){if("ArrowDown"===e.code){e.stopPropagation(),e.preventDefault();var r=a+1;return r>t.itemCount&&(r=1),i(r),void l()}if("ArrowUp"===e.code){e.stopPropagation(),e.preventDefault();var n=a-1;return n<=0&&(n=t.itemCount),i(n),void l()}if("Enter"===e.code&&a>0)return e.stopPropagation(),e.preventDefault(),void t.onSelected(a-1);i(0)},containerRef:c}}function dt(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return mt(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)?mt(t,e):void 0}}(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 mt(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 yt=function(t){var e,r,n,o,a,i=t.formatted_address,c=dt(t.address_components);try{for(c.s();!(a=c.n()).done;){var l,u=a.value,s=dt(u.types);try{for(s.s();!(l=s.n()).done;){var f=l.value;"locality"===f&&(e=u.short_name),"administrative_area_level_1"===f&&(r=u.short_name),"postal_code"===f&&(o=u.short_name),"country"===f&&(n=u.short_name)}}catch(t){s.e(t)}finally{s.f()}}}catch(t){c.e(t)}finally{c.f()}return{locality:i,country:n,postalCode:o,city:e,province:r}};function vt(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 gt={1:"geocoderPermissionDenied",2:"geocoderUnavailable",3:"geocoderTimeout"},bt=r(28329);function wt(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 St=r(11607);function Et(){return o().createElement("svg",{viewBox:"0 0 24 24"},o().createElement("path",{d:"m12.00559,20.40189c4.60881,0 8.37242,-3.78424 8.37242,-8.40189c0,-4.61764 -3.76361,-8.40187 -8.37242,-8.40187c-4.62002,0 -8.38365,3.78422 -8.38365,8.40187c0,4.61765 3.76364,8.40189 8.38365,8.40189zm0,-1.65557c-3.75235,0 -6.67085,-2.96208 -6.67085,-6.74632c0,-3.7842 2.91851,-6.74625 6.67085,-6.74625c3.74105,0 6.67084,2.96206 6.67084,6.74625c0,3.78424 -2.92978,6.74632 -6.67084,6.74632zm-10.14151,-6.02552l6.01731,0c0.40566,0 0.72118,-0.31536 0.72118,-0.7208c0,-0.40544 -0.31552,-0.7208 -0.72118,-0.7208l-6.01731,0c-0.40566,0 -0.72117,0.31536 -0.72117,0.7208c0,0.40544 0.31551,0.7208 0.72118,0.7208l-0.00001,0zm14.25442,0l6.0174,0c0.40565,0 0.72118,-0.31536 0.72118,-0.7208c0,-0.40544 -0.31553,-0.7208 -0.72118,-0.7208l-6.0174,0c-0.40565,0 -0.72118,0.31536 -0.72118,0.7208c0,0.40544 0.31553,0.7208 0.72118,0.7208zm-4.12417,-4.1221c0.40566,0 0.72118,-0.31534 0.72118,-0.70952l0,-6.02547c0,-0.40544 -0.31552,-0.7208 -0.72118,-0.7208c-0.3944,0 -0.7099,0.31536 -0.7099,0.7208l0,6.02547c0,0.39418 0.31551,0.70952 0.7099,0.70952zm0,14.25838c0.40566,0 0.72118,-0.3154 0.72118,-0.72077l0,-6.02541c0,-0.39425 -0.31552,-0.70965 -0.72118,-0.70965c-0.3944,0 -0.7099,0.3154 -0.7099,0.70965l0,6.02541c0,0.40538 0.31551,0.72077 0.7099,0.72077z"}))}const xt={baseText:"KL3Q_",inputFocused:"I6wQy",input:"ChY5L",suggestionContainer:"Y78ea",noBottomBorder:"IeYUw",localitySuggestion:"P3aHR",suggestionItem:"magL7",suggestionLoading:"W7rH_",noSuggestion:"XXSnS",selected:"snnHR"};function Lt(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,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return jt(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)?jt(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 jt(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 kt(t){var e=t.predictions,r=t.getPlaceInfo,n=t.selectedIndex;return o().createElement(o().Fragment,null,e.map((function(t,e){return o().createElement(St.L,{className:"".concat(xt.suggestionItem," ").concat(n-1===e?xt.selected:""),key:t.place_id,onClick:function(){return r(t)}},t.description)})))}function Ot(t){var e,r,n,a,i,c,u=o().useRef(),s=Lt(o().useState((null===(e=t.data)||void 0===e?void 0:e.schoolLocality)||""),2),f=s[0],p=s[1],h=Lt(o().useState(!1),2),d=h[0],m=h[1],y=ft({apiKey:t.googleMapsApiKey,geoLocation:t.geoLocation}),v=function(t){var e,r,n=t.search,a=t.makePredicition,i=t.geoLocation,c=ct({googleApiKey:t.apiKey}),l=(0,bt.N)(n,300),u=(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,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return wt(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)?wt(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.")}()),s=u[0],f=u[1];function p(t,e){e===google.maps.places.PlacesServiceStatus.OK&&t?f(t):f(void 0)}return o().useEffect((function(){if(c)if(0!==(null==l?void 0:l.length)&&a){var t=(null==i?void 0:i.countryCode)||"us";c.getPlacePredictions({input:l,componentRestrictions:(null==i?void 0:i.isFallback)?void 0:{country:t},region:t,types:["locality","sublocality","postal_code"]},p)}else f(void 0)}),[l,a,c]),{localityPredicitions:s,getPlaceInfo:function(t,e,r){new google.maps.places.PlacesService(e.current).getDetails({placeId:t.place_id,fields:["geometry","address_components","formatted_address"],region:i.countryCode},(function(t,e){if(e===google.maps.places.PlacesServiceStatus.OK){var n=t.geometry.location.lng(),o=t.geometry.location.lat(),a=yt(t),i=a.locality,c=a.country,l=a.postalCode,u=a.city,s=a.province;r({longitude:n,latitude:o,locality:i,country:c,city:u,postalCode:l,province:s})}}))}}}({search:f,makePredicition:d,geoLocation:t.geoLocation,apiKey:t.googleMapsApiKey}),g=v.localityPredicitions,b=v.getPlaceInfo,w=function(t){var e,r,n=(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,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return vt(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)?vt(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.")}()),a=n[0],i=n[1],c=at(t).onGoogleApiReady;function l(t){var e=t.coords,r=e.latitude,n=e.longitude,o=new google.maps.LatLng(r,n);(new google.maps.Geocoder).geocode({location:o},(function(t,e){if(e===google.maps.GeocoderStatus.OK){var o=t.find((function(t){return t.types.includes("locality")||t.types.includes("administrative_area_level_2")})),a=yt(o);i(Object.assign(Object.assign({},a),{longitude:n,latitude:r}))}}))}function u(e){var r=gt[e.code];r||(r="geocoderUnknown"),t.onPositionError("We are unable to access your location. Please try again later.")}return{placeDetails:a,onClickGetCurrentLocation:function(){c((function(){window.navigator.geolocation.getCurrentPosition(l,u)}))}}}({apiKey:t.googleMapsApiKey,onPositionError:function(t){m(!0),N(t)}}),S=w.placeDetails,E=w.onClickGetCurrentLocation,x=window.navigator.geolocation?1:0,L=ht({onSelected:function(t){if(g)if(t!==g.length){var e=g[t];e&&I(e)}else T()},itemCount:null!==(r=(null==g?void 0:g.length)+x)&&void 0!==r?r:0}),j=L.selectedIndex,k=L.onKeyDown,O=L.containerRef,C=Lt(o().useState(),2),A=C[0],N=C[1];function P(e){var r,n,o;A&&N(void 0),d||m(!0),((null===(r=t.data)||void 0===r?void 0:r.longitude)||(null===(n=t.data)||void 0===n?void 0:n.latitude)||(null===(o=t.data)||void 0===o?void 0:o.schoolLocality))&&t.clearStepGroupData(),p(e)}function U(e){var r=e.longitude,n=e.latitude,o=e.locality,a=e.country,i=e.city,c=e.province;r&&t.setDataProperty("longitude",r),n&&t.setDataProperty("latitude",n),a&&t.setDataProperty("country",a),i&&t.setDataProperty("city",i),c&&t.setDataProperty("province",c),o&&function(e){t.setDataProperty("schoolLocality",e),p(e)}(o)}function I(t){d&&m(!1),b(t,u,U)}function T(e){null==e||e.preventDefault(),m(!1),E(),t.logUserAction({},{actionType:J.UserAction.Click,descriptor:J.SignUpDescriptors.UseMyLocation})}o().useEffect((function(){U(S)}),[S]);var _,F=(null==g?void 0:g.length)&&!(null===(a=null===(n=t.data)||void 0===n?void 0:n.schoolLocality)||void 0===a?void 0:a.length),G=window.navigator.geolocation&&!(null===(c=null===(i=t.data)||void 0===i?void 0:i.schoolLocality)||void 0===c?void 0:c.length),D=t.labelClassName||"d-block text-center mb-3 font-weight-normal ".concat(xt.baseText);return o().createElement("div",{className:"form-group position-relative"},o().createElement("label",{className:D,htmlFor:"locality-input"},"Postcode or suburb:"),o().createElement(l.w,{type:"text",value:f,onChange:function(t){return P(t.currentTarget.value)},id:"locality-input",className:(_="form-control form-control-lg",F?"".concat(_," ").concat(xt.inputFocused):"".concat(_," ").concat(xt.input)),ref:u,autoComplete:"off",placeholder:y||"Loading...",disabled:t.disabled||!y,autoFocus:null==t?void 0:t.autoFocus,onClickClear:function(){P(""),u.current.focus()},onKeyDown:k}),o().createElement("div",{className:"position-absolute w-100"},!!F&&o().createElement("div",{className:"".concat(xt.suggestionContainer," ").concat(xt.localitySuggestion),ref:O},o().createElement(kt,{predictions:g,getPlaceInfo:I,selectedIndex:j}),window.navigator.geolocation&&o().createElement(St.L,{className:"".concat(xt.suggestionItem," px-1 ").concat(j-1===g.length?xt.selected:""),onClick:T},o().createElement("div",{className:"btn btn-link info-link btn-with-icon bg-transparent py-0 pr-1"},o().createElement(Et,null),"Use my current location"))),G&&!F&&o().createElement("div",{className:"d-flex"},o().createElement("button",{onClick:T,className:"btn btn-link info-link bg-white btn-with-icon"},o().createElement(Et,null),"Use my current location")),!!A&&o().createElement("div",{className:"text-danger p-2"},A)))}var Ct=r(99940);function At(t){return At="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},At(t)}function Nt(t){var e="function"==typeof Map?new Map:void 0;return Nt=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 Pt(t,arguments,Tt(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),It(n,t)},Nt(t)}function Pt(t,e,r){return Pt=Ut()?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&&It(o,r.prototype),o},Pt.apply(null,arguments)}function Ut(){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 It(t,e){return It=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},It(t,e)}function Tt(t){return Tt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Tt(t)}var _t=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&&It(t,e)}(a,t);var e,r,n,o=(r=a,n=Ut(),function(){var t,e=Tt(r);if(n){var o=Tt(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===At(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)}(this,t)});function a(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Error";return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=o.call(this,r)).body=t,e}return e=a,Object.defineProperty(e,"prototype",{writable:!1}),e}(Nt(Error));function Ft(t){return Ft="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},Ft(t)}function Gt(){Gt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:k(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",h="suspendedYield",d="executing",m="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(P([])));E&&E!==r&&n.call(E,i)&&(w=E);var x=b.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==Ft(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function k(e,r,n){var o=p;return function(a,i){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=O(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function C(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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(Ft(e)+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(j.prototype),u(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new j(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.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}},e.values=P,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===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,y):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),y},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),A(r),y}},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;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}var Dt=function(t,e,r,n){return new(r||(r=Promise))((function(o,a){function i(t){try{l(n.next(t))}catch(t){a(t)}}function c(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,c)}l((n=n.apply(t,e||[])).next())}))};function Rt(t){var e={method:Ct.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===Ct.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 Mt={asyncFetch:function(t){return Dt(this,void 0,void 0,Gt().mark((function e(){var r,n,o;return Gt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Rt(t),e.next=3,fetch(r.url,r.init);case 3:if((n=e.sent).ok){e.next=9;break}return e.next=7,n.json();case 7:throw o=e.sent,new _t(o);case 9:if(204!==n.status){e.next=11;break}return e.abrupt("return");case 11:return e.next=13,n.json();case 13:return e.abrupt("return",e.sent);case 14:case"end":return e.stop()}}),e)})))},asyncFetchPlain:function(t){return Dt(this,void 0,void 0,Gt().mark((function e(){var r,n;return Gt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Rt(t),e.next=3,fetch(r.url,r.init);case 3:if((n=e.sent).ok){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,n.text();case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e)})))},fetch:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){var e=Rt(t);return fetch(e.url,e.init).then((function(t){if(204!==t.status)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 Kt(t){return Kt="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},Kt(t)}function zt(){zt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:k(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",h="suspendedYield",d="executing",m="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(P([])));E&&E!==r&&n.call(E,i)&&(w=E);var x=b.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==Kt(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function k(e,r,n){var o=p;return function(a,i){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=O(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function C(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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(Kt(e)+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(j.prototype),u(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new j(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.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}},e.values=P,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===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,y):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),y},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),A(r),y}},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;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}var qt,Bt={search:function(t,e,r,n,o){var a={longitude:e.longitude,latitude:e.latitude};e.query&&(a.query=e.query),Mt.fetch({url:t.searchProspect,data:a,success:r,error:n,always:o})},create:function(t,e){return r=this,n=void 0,o=void 0,a=zt().mark((function r(){return zt().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Mt.asyncFetch({url:t.createProspect,method:Ct.k.POST,data:e}));case 1:case"end":return r.stop()}}),r)})),new(o||(o=Promise))((function(t,e){function i(t){try{l(a.next(t))}catch(t){e(t)}}function c(t){try{l(a.throw(t))}catch(t){e(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof o?r:new o((function(t){t(r)}))).then(i,c)}l((a=a.apply(r,n||[])).next())}));var r,n,o,a},getLookups:function(t,e){return Mt.asyncFetch({url:t.prospectLookups(e)})}},Yt=r(97395),$t=function(t,e){if(t.productName!==I.X.Lite)return Promise.reject();var r={email:e.email};return Mt.asyncFetch({url:t.userStatus,data:r})},Wt=function(t,e,r,n,o){var a=t.prospectStatus(e.prospectId);a=Yt._.urlBuilder(a,{email:e.email}),Mt.fetch({url:a,success:r,error:n,always:o})},Vt=function(t,e){var r={prospectId:e.prospectId,firstName:"Trial",surname:"User",email:e.email,userType:e.userType,accessPolicy:e.accessPolicy,appLink:null==e?void 0:e.appLink};return Mt.asyncFetch({url:t.createTrial,method:Ct.k.POST,data:r})},Ht=function(t,e,r){if(t.productName!==I.X.Lite)return Promise.reject();var n={email:r.email,appLink:null==r?void 0:r.appLink};return Mt.asyncFetch({url:t.resendTrialEmail(e),method:Ct.k.POST,data:n})},Jt=function(t,e){var r=t.productName===I.X.Auth?t.joinRequest:t.joinRequest(e.customerId),n=t.productName===I.X.Auth?e:{email:e.email};return Mt.asyncFetch({url:r,method:Ct.k.POST,data:n})},Zt=function(t,e){return t.productName!==I.X.Lite?Promise.reject():Mt.asyncFetch({url:t.autoJoin,method:Ct.k.POST,data:e})};!function(t){t.FourteenDays="trial_14_v1",t.Freemium="freemium_v1"}(qt||(qt={}));var Xt,Qt=function(t){return L.isCountryCodeUS(t)||L.isCountryCodeUK(t)?qt.Freemium:qt.FourteenDays},te=["Primary","Secondary","K12","Special","TAFE","University"],ee=["Elementary","Middle School","High School","College","Other"],re={au:te,nz:te,uk:["Primary","Secondary","Primary & Secondary","Special","Sixth Form College","FE College","University","Other"],us:ee};function ne(t){return ne="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},ne(t)}function oe(){oe=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:k(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",h="suspendedYield",d="executing",m="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(P([])));E&&E!==r&&n.call(E,i)&&(w=E);var x=b.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==ne(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function k(e,r,n){var o=p;return function(a,i){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=O(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function C(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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(ne(e)+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(j.prototype),u(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new j(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.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}},e.values=P,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===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,y):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),y},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),A(r),y}},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;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function ae(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,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ie(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)?ie(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 ie(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.Published="Published",t.Draft="Draft"}(Xt||(Xt={}));function ce(t,e){return e?"".concat(t," ").concat(e):t}var le=function(t){return o().createElement("h1",{className:ce("text-center mb-2 h4",t.className)},t.children)},ue=function(t){return o().createElement("div",{className:ce("text-center text-sm px-2 px-lg-4",t.className)},t.children)},se=function(t){return o().createElement("p",{className:ce("",t.className)},t.children)};function fe(t){return fe="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},fe(t)}function pe(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==fe(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==fe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===fe(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function he(t){var e,r=(pe(e={},g.Available,t.imageUrls.statusImages.available),pe(e,g.Active,t.imageUrls.statusImages.active),pe(e,g.Expired,t.imageUrls.statusImages.expired),pe(e,g.NotRequired,t.imageUrls.statusImages.notRequired),pe(e,g.Unavailable,t.imageUrls.statusImages.unavailable),pe(e,g.Unsupported,t.imageUrls.statusImages.unsupported),pe(e,g.UserAutoJoinAllowed,t.imageUrls.statusImages.notRequired),pe(e,g.UserJoinApprovalRequired,t.imageUrls.statusImages.notRequired),e);return o().createElement("div",{className:"d-flex justify-content-center my-4 px-2 px-lg-4"},o().createElement("img",{src:r[t.trialStatus],className:"w-100 h-auto"}))}var de={Marketing:{au:"https://www.clickview.com.au",uk:"https://www.clickview.co.uk",nz:"https://www.clickview.co.nz",us:"https://www.clickvieweducation.com"},Support:{au:"https://www.clickviewsupport.com/hc/en-au",uk:"https://www.clickviewsupport.com/hc/en-au#gb",nz:"https://www.clickviewsupport.com/hc/en-au#nz",us:"https://www.clickviewsupport.com/hc/en-au#us"}},me={getMarketingUrlForGeoLocation:function(t){var e=L.getCountryCode(null==t?void 0:t.countryCode);return de.Marketing[e]||de.Marketing.us},getMarketingSalesContactForGeoLocation:function(t){var e=L.getCountryCode(null==t?void 0:t.countryCode),r=this.getMarketingUrlForGeoLocation(t);return t&&e===y.NZ?r+"/contact-us/":r+"/contact-us/trial/"},getFreeResourcesForGeoLocation:function(t){var e=L.getCountryCode(null==t?void 0:t.countryCode);return e===y.NZ&&(e=y.AU),this.getMarketingUrlForGeoLocation({countryCode:e})+"/free-student-resources//"},getTermsAndConditionsLink:function(){return this.getMarketingUrlForGeoLocation(y.US)+"/terms-and-conditions/"},getPrivacyPolicyLink:function(){return this.getMarketingUrlForGeoLocation(y.US)+"/privacy-policy/"},getSupportUrlForGeoLocation:function(t){var e=L.getCountryCode(null==t?void 0:t.countryCode);return de.Support[e]||de.Support.us},getLoginLink:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.email,r=t.customerId,n={redirectUrl:window.location.pathname+window.location.search};return e&&(n.email=e),r&&(n.customerId=r),Yt._.urlBuilder("/login",n)}};function ye(t){var e=(null==t?void 0:t.previousStepIds)&&"find-school"===t.previousStepIds[t.previousStepIds.length-1],r=(null==t?void 0:t.schoolName)||"Your school";return o().createElement(ue,{className:"mb-3"},e?o().createElement(o().Fragment,null,o().createElement(le,null,r,o().createElement("br",null),"already has ClickView 🎉"),o().createElement(se,{className:"mt-3"},"If your school has SSO ",o().createElement("a",{href:me.getLoginLink({email:t.email,customerId:t.customerId}),className:"info-link"},"click here to sign in.")),o().createElement(se,null,"Otherwise please contact your school admin for access.")):o().createElement(o().Fragment,null,o().createElement(le,null,"Good News!"),o().createElement(se,null,"An account already exists for:",o().createElement("br",null)," ",o().createElement("strong",null,t.email)),o().createElement(se,null,o().createElement("a",{href:me.getLoginLink({email:t.email}),className:"btn btn-dark btn-lg w-100"},"Sign into ClickView"))),o().createElement(se,null,"Need Help? ",o().createElement("a",{href:me.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link",target:"_blank"},"Contact our Help Centre.")))}function ve(t){return ve="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},ve(t)}function ge(){ge=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:k(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",h="suspendedYield",d="executing",m="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(P([])));E&&E!==r&&n.call(E,i)&&(w=E);var x=b.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==ve(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function k(e,r,n){var o=p;return function(a,i){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=O(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function C(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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(ve(e)+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(j.prototype),u(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new j(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.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}},e.values=P,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===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,y):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),y},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),A(r),y}},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;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function be(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,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return we(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)?we(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 we(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 Se;function Ee(t){return Ee="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},Ee(t)}function xe(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Ee(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Ee(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Ee(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Le=(xe(Se={},g.Available,(function(t){var e=be(o().useState(0),2),r=e[0],n=e[1],a=be(o().useState(!1),2),i=a[0],c=a[1];if(null==t?void 0:t.email)return o().createElement(ue,null,o().createElement(le,null,"Success!"),o().createElement(se,null,"An email has been sent to ",o().createElement("strong",null,t.email),". Please check your email for further instructions to complete the sign up process."),!!t.userId&&o().createElement(o().Fragment,null,r<1?o().createElement(se,null,"Didn't receive an email?  ",o().createElement("button",{onClick:function(e){return o=this,a=void 0,i=void 0,l=ge().mark((function o(){return ge().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return null==e||e.preventDefault(),o.prev=1,o.next=4,Ht(t.ajaxUrls,t.userId,{email:t.email,appLink:t.pageAppLinkString});case 4:n(r+1),o.next=10;break;case 7:o.prev=7,o.t0=o.catch(1),c(!0);case 10:t.logUserAction({},{actionType:J.UserAction.Click,descriptor:J.SignUpDescriptors.ResendEmail});case 11:case"end":return o.stop()}}),o,null,[[1,7]])})),new(i||(i=Promise))((function(t,e){function r(t){try{c(l.next(t))}catch(t){e(t)}}function n(t){try{c(l.throw(t))}catch(t){e(t)}}function c(e){var o;e.done?t(e.value):(o=e.value,o instanceof i?o:new i((function(t){t(o)}))).then(r,n)}c((l=l.apply(o,a||[])).next())}));var o,a,i,l},className:"btn info-link p-0"},"Resend verification email")):"✅ Email has been resent!",i&&o().createElement(se,{className:"mb-0 text-danger"},"❌ There was a problem resending the email. Please try again later or contact our  ",o().createElement("a",{href:me.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link"},"support"))))})),xe(Se,g.Active,ye),xe(Se,g.Expired,(function(t){var e=me.getMarketingSalesContactForGeoLocation(t.geoLocation),r=(null==t?void 0:t.previousStepIds)&&"find-school"===t.previousStepIds[t.previousStepIds.length-1],n=(null==t?void 0:t.schoolName)||"Your school";return o().createElement(ue,null,o().createElement(le,null,r?"".concat(n," trial has expired"):"Your trial has expired"),o().createElement(se,null,"Please contact our ",o().createElement("a",{href:e,className:"info-link",target:"_blank"},"ClickView Sales Team")))})),xe(Se,g.NotRequired,ye),xe(Se,g.Unavailable,(function(t){var e=me.getMarketingSalesContactForGeoLocation(t.geoLocation);return o().createElement(ue,null,o().createElement(le,null,"Your school no longer",o().createElement("br",null)," has access to ClickView"),o().createElement(se,null,"Please contact our ",o().createElement("a",{href:e,className:"info-link"},"ClickView Sales Team")," for more information."))})),xe(Se,g.Unsupported,(function(){return o().createElement(ue,null,o().createElement(le,{className:"px-2 px-lg-4"},"ClickView isn't currently ",o().createElement("br",null)," available for your school"),o().createElement(se,null,"We're working hard to get ClickView ready for more people."))})),xe(Se,g.UserAutoJoinAllowed,ye),xe(Se,g.UserJoinApprovalRequired,ye),Se);function je(t){var e=Le[t.trialStatus];return o().createElement(e,Object.assign({},t))}var ke="young-student",Oe={"trial-status":function(t){return o().useEffect((function(){var e={actionType:J.UserAction.Create,descriptor:J.SignUpDescriptors.DeadEnd,workflowPhase:J.WorkflowPhase.Discard};t.trialCreated&&(e.descriptor=J.SignUpDescriptors.TrialCreated,e.workflowPhase=J.WorkflowPhase.Complete),t.logUserAction({},e)}),[]),o().createElement(o().Fragment,null,o().createElement(he,{trialStatus:t.trialStatus,imageUrls:t.imageUrls}),o().createElement(je,Object.assign({},t)))},"added-to-braze":function(t){return o().useEffect((function(){t.logUserAction({},{actionType:J.UserAction.Create,descriptor:J.SignUpDescriptors.TrialRequested,workflowPhase:J.WorkflowPhase.Complete})}),[]),o().createElement(o().Fragment,null,o().createElement(he,{trialStatus:g.Available,imageUrls:t.imageUrls}),o().createElement(ue,{className:"mb-3"},o().createElement(le,null,"Submitted!"),o().createElement(se,null,"Thank you for your interest in trialing ClickView. We will be in touch with you as soon as possible.")))},"young-student":function(t){var e=me.getFreeResourcesForGeoLocation(t.geoLocation);return o().useEffect((function(){a.SG.set(ke,!0)}),[]),o().createElement(o().Fragment,null,o().createElement(he,{trialStatus:g.Active,imageUrls:t.imageUrls}),o().createElement(ue,{className:"mb-3"},o().createElement(le,null,"Discover our free content"),o().createElement(se,null,"Click the button below to explore our videos"),o().createElement("a",{href:e,className:"btn btn-lg btn-dark w-100",target:"_blank"},"Start watching now")))},"requested-access":function(t){return o().createElement(o().Fragment,null,o().createElement(he,{trialStatus:g.Available,imageUrls:t.imageUrls}),o().createElement(ue,{className:"mb-3"},o().createElement(le,null,"You've requested access!"),o().createElement(se,null,"We've sent a request to your ClickView admin. Once your account is ready, you'll receive an email notification with instructions on how to get started with ClickView.")))}};function Ce(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,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Ae(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)?Ae(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 Ae(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 Ne(t,e,r){return"".concat(t.padStart(4,"0"),"-").concat(e.padStart(2,"0"),"-").concat(r.padStart(2,"0"))}function Pe(t){return o().createElement(o().Fragment,null,"Have a ClickView account already?",o().createElement("a",{href:t.link,className:"info-link ml-1",target:"_blank",onClick:t.onClick},"Sign in"))}const Ue="gVdYS",Ie="Mlp3x";function Te(t){var e=t.idp,r=t.onClick;return n.createElement("button",{className:"btn btn-lg btn-outline-dark w-100 mb-3 ".concat(Ue),onClick:function(){return r(e)}},e.logoUrl&&n.createElement("img",{src:e.logoUrl,className:Ie}),"Continue with ",e.name)}var _e=[{name:"ClassLink",logoUrl:"https://img.clickviewapp.com/v2/logos/ZA2ew5",url:"/login?idp=classlink"},{name:"Clever",logoUrl:"https://img.clickviewapp.com/v2/logos/LqlKgd",url:"/login?idp=clever"},{name:"Google",logoUrl:"https://img.clickviewapp.com/v2/logos/l5x0jL",url:"/login?idp=google"},{name:"Microsoft",logoUrl:"https://img.clickviewapp.com/v2/logos/xAxGPP",url:"/login?idp=microsoft"}];var Fe;function Ge(t){return Ge="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},Ge(t)}function De(){De=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:k(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",h="suspendedYield",d="executing",m="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(P([])));E&&E!==r&&n.call(E,i)&&(w=E);var x=b.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==Ge(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function k(e,r,n){var o=p;return function(a,i){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=O(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function C(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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(Ge(e)+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(j.prototype),u(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new j(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.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}},e.values=P,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===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,y):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),y},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),A(r),y}},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;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Re(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,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Me(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)?Me(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 Me(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 Ke(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Ge(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Ge(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Ge(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ze=new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/),qe=(Ke(Fe={},y.AU,"valerie.frizzle@school.edu.au"),Ke(Fe,y.UK,"valerie.frizzle@school.gov.uk"),Ke(Fe,y.US,"valerie.frizzle@school.gov"),Ke(Fe,y.NZ,"valerie.frizzle@school.nz"),Fe);function Be(t){return qe[L.getCountryCode(t.countryCode)]||qe.us}var Ye=[g.Expired,g.NotRequired,g.Unavailable,g.Unsupported,g.Active];function $e(t){var e;switch(null===(e=null==t?void 0:t.body)||void 0===e?void 0:e.type){case"user-type-not-supported":return"Students may not request to join schools.";case"join-request-already-pending":return"Your request is awaiting administrator approval.";case"join-request-already-denied":return"Your request has been denied by an administrator.";default:return"Something went wrong."}}var We=r(12238);function Ve(t){return Ve="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},Ve(t)}function He(){He=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:k(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",h="suspendedYield",d="executing",m="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(P([])));E&&E!==r&&n.call(E,i)&&(w=E);var x=b.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==Ve(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function k(e,r,n){var o=p;return function(a,i){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=O(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function C(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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(Ve(e)+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(j.prototype),u(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new j(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.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}},e.values=P,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===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,y):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),y},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),A(r),y}},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;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Je(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 Ze(t){return Ze="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},Ze(t)}function Xe(){Xe=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:k(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",h="suspendedYield",d="executing",m="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(P([])));E&&E!==r&&n.call(E,i)&&(w=E);var x=b.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==Ze(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function k(e,r,n){var o=p;return function(a,i){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=O(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function C(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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(Ze(e)+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(j.prototype),u(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new j(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.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}},e.values=P,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===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,y):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),y},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),A(r),y}},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;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}var Qe=function(t,e,r,n){return new(r||(r=Promise))((function(o,a){function i(t){try{l(n.next(t))}catch(t){a(t)}}function c(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,c)}l((n=n.apply(t,e||[])).next())}))},tr=r(99910);function er(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,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return rr(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)?rr(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 rr(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 nr(t){var e=t.filteredSchoolsList,r=t.getSchoolName,n=t.onSchoolSuggestionClick,a=t.selectedIndex;return o().createElement(o().Fragment,null,e.map((function(t,e){return o().createElement(St.L,{className:"".concat(xt.suggestionItem," ").concat(a-1===e?xt.selected:""),key:t.id,onClick:function(){return n(t)}},r(t)," ",o().createElement("br",null),o().createElement("small",{className:"text-muted"},function(t){var e=[];return t.city&&e.push(t.city.toLowerCase().split(" ").map((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})).join(" ")),t.province&&e.push(t.province),t.postCode&&e.push(t.postCode),e.join(" ")}(t)))})))}function or(t){return o().createElement("div",{className:"info-link ".concat(xt.suggestionItem," ").concat(xt.noSuggestion," ").concat(t.selected?xt.selected:""),onClick:t.handleNoSuggestion},"Can't find your school?")}function ar(t){var e,r,n=o().useRef(),a=er(o().useState(!0),2),i=a[0],c=a[1],u=er(o().useState(t.data.schoolName&&t.data.schoolPostCode?t.data.schoolName+", "+t.data.schoolPostCode:t.data.schoolName?t.data.schoolName:""),2),s=u[0],f=u[1],p=er(o().useState(),2),h=p[0],d=p[1],m=(0,bt.N)(s,250),y=ht({onSelected:function(t){if(h||t)if(t!==h.length){var e=h[t];e&&k(e)}else C()},itemCount:null!==(e=(null==h?void 0:h.length)+1)&&void 0!==e?e:0}),v=y.selectedIndex,g=y.onKeyDown,b=y.containerRef,w=!!(null===(r=t.data)||void 0===r?void 0:r.prospectId),S=i&&!w,E=!i&&!w&&!(null==h?void 0:h.length),x=(null==h?void 0:h.length)&&!w;function L(e){(t.data.schoolName||t.data.prospectId)&&t.clearStepItemData(),e!==s&&f(e)}function j(e){c(!0);var r={latitude:t.data.latitude,longitude:t.data.longitude};e&&e.length&&(r.query=e),Bt.search(t.ajaxUrls,r,(function(t){return d(t)}),null,(function(){return c(!1)}))}function k(e){f(O(e)),t.setDataProperty("prospectId",e.id),t.setDataProperty("schoolName",e.name),t.setDataProperty("schoolPostCode",e.postCode),t.setDataProperty("schoolType",e.prospectType),t.setDataProperty("province",e.province),t.setDataProperty("city",e.city),t.setDataProperty("country",e.countryCode)}function O(t){return t.name}function C(){t.nextStep({step:"cant-find-school",prospectId:t.data.prospectId,schoolName:s,schoolLocality:t.data.schoolLocality,longitude:t.data.longitude,latitude:t.data.latitude,country:t.data.country,city:t.data.city,province:t.data.province}),t.logUserAction({},{actionType:J.UserAction.Click,descriptor:J.SignUpDescriptors.CantFindSchool,workflowPhase:J.WorkflowPhase.Next})}o().useEffect((function(){w||(m.length?!w&&m.length>1&&m===s&&j(m):j())}),[m,w]);var A=x||S||E;return o().createElement("div",{className:"form-group position-relative"},o().createElement(l.w,{value:s,onChange:function(t){return L(t.currentTarget.value)},ref:n,className:"form-control form-control-lg ".concat(A?xt.inputFocused:xt.input),type:"text",autoComplete:"off",placeholder:"Select your school below",disabled:t.disabled,autoFocus:!0,onClickClear:function(){L(""),n.current.focus()},onKeyDown:g}),o().createElement("div",{className:"position-absolute w-100"},o().createElement("div",{className:"".concat(xt.suggestionContainer," ").concat(A?"":"d-none"),ref:b},x?o().createElement(nr,{filteredSchoolsList:h,onSchoolSuggestionClick:k,getSchoolName:O,selectedIndex:v}):S&&o().createElement("div",{className:"".concat(xt.suggestionLoading," py-4 d-flex justify-content-center")},o().createElement(tr.Spinner,{animation:"border"})),!S&&(null==h?void 0:h.length)<5&&o().createElement(or,{selected:v===h.length+1,handleNoSuggestion:C}))))}function ir(t){return ir="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},ir(t)}function cr(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,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return lr(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)?lr(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 lr(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}const ur="R8ZPi",sr="SNEmW";function fr(t){return o().createElement(St.L,{className:"\n d-flex\n flex-column\n justify-content-between\n h-100\n p-3\n border\n rounded\n rounded-lg\n mx-auto\n ".concat(ur," ").concat(t.selected?sr:""),onClick:function(){return t.onClick(t.type)}},o().createElement("img",{src:t.imageSrc,className:"rounded-top mx-auto pb-2"}),o().createElement("div",{className:"py-2"},o().createElement("span",{className:"h4"},t.buttonText)))}var pr={"select-type":function(t){function e(e){t.logUserAction({userType:e},{actionType:J.UserAction.Click,workflowPhase:J.WorkflowPhase.Next,descriptor:e===w.Staff?J.SignUpDescriptors.Educator:J.SignUpDescriptors.Student}),e!==w.Staff?t.nextStep({step:"enter-age",userType:e}):t.nextStep({step:"enter-email",userType:e})}return o().createElement("div",{className:"text-center"},o().createElement("h1",{className:"h4"},"Access educational videos at your fingertips"),o().createElement("p",null,"Let's get you set up so you can access ClickView."),o().createElement("div",{className:"row"},o().createElement("div",{className:"col-lg-6 mb-3"},o().createElement(fr,{type:w.Staff,buttonText:"I'm an educator",imageSrc:t.imageUrls.educator,onClick:e,selected:t.userType===w.Staff})),o().createElement("div",{className:"col-lg-6 mb-3"},o().createElement(fr,{type:w.Learner,buttonText:"I'm a student",imageSrc:t.imageUrls.student,onClick:e,selected:t.userType===w.Learner}))))},"enter-email":function(t){var e,r,n=Re(o().useState(!1),2),a=n[0],i=n[1],c=Re(o().useState((null==t?void 0:t.email)||""),2),u=c[0],s=c[1],f=Re(o().useState(),2),p=f[0],h=f[1],d=(e=t.geoLocation,r=me.getMarketingUrlForGeoLocation(e),"nz"===(null==e?void 0:e.countryCode)?r+"/contact-us/":r+"/contact-us/technical/");function m(e){null==e||e.preventDefault(),function(){var e,r,n,o;e=this,r=void 0,n=void 0,o=De().mark((function e(){var r;return De().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u.length?ze.test(u)||(h("Please use your school email address."),0):(h("Please enter your school email address."),0)){e.next=2;break}return e.abrupt("return");case 2:return i(!0),h(""),e.prev=4,e.next=7,$t(t.ajaxUrls,{email:u});case 7:r=e.sent,e.next=14;break;case 10:return e.prev=10,e.t0=e.catch(4),h("Something went wrong! Please try again later."),e.abrupt("return");case 14:if(i(!1),r.status!==b.InvalidEmail){e.next=18;break}return h("Please use your school email address."),e.abrupt("return");case 18:if(t.logUserAction({},{actionType:J.UserAction.Click,workflowPhase:J.WorkflowPhase.Next,descriptor:J.SignUpDescriptors.EnterEmail}),!Ye.includes(r.status)){e.next=22;break}return t.complete({completionStep:"trial-status",email:u,trialStatus:r.status,trialCreated:!1}),e.abrupt("return");case 22:t.nextStep({step:"find-school",email:u});case 23:case"end":return e.stop()}}),e,null,[[4,10]])})),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())}))}()}function y(t){var e=window.location.pathname+window.location.search;window.location.href=t.url+"&redirectUrl="+encodeURIComponent(e)}var v="true"===docCookies.getItem("features.social-signup")&&t.userType===w.Staff;return o().createElement(o().Fragment,null,o().createElement("div",{className:"text-center"},o().createElement("h1",{className:"h4"},"Let's set up your account"),o().createElement("p",null,"Enter your school email address")),o().createElement("form",{onSubmit:m,noValidate:!0},o().createElement("div",{className:"form-group mb-3"},o().createElement(l.w,{value:u,onChange:function(t){t.preventDefault(),s(t.target.value),h("")},name:"email-input",id:"email-input",type:"email",className:"form-control form-control-lg ".concat(p?"is-invalid":""),placeholder:Be(t.geoLocation),autoComplete:"false",autoCorrect:"false",autoFocus:!0,onClickClear:function(){return s("")}}),p&&o().createElement(o().Fragment,null,o().createElement("div",{className:"invalid-feedback d-block"},p),o().createElement("small",null,"Having an issue with your email?",o().createElement("a",{href:d,className:"info-link pl-1",target:"_blank",onClick:function(){t.logUserAction({},{actionType:J.UserAction.Click,descriptor:J.SignUpDescriptors.ContactUs})}},"Contact our team")))),o().createElement(j.m,{showSpinner:a,className:"btn btn-dark btn-lg mb-3 w-100",disabled:a,onClick:m},"Continue")),v&&o().createElement("div",{className:"mt-n3"},o().createElement("div",{className:"my-3 border-bottom position-relative ".concat("bGwO5")}),_e.map((function(t,e){return o().createElement(Te,{onClick:y,idp:t,key:e})}))),o().createElement("div",{className:"text-center"},o().createElement(Pe,{link:me.getLoginLink(),onClick:function(){t.logUserAction({},{actionType:J.UserAction.Click,descriptor:J.SignUpDescriptors.SignIn})}})))},"find-school":function(t){var e,r,n=t.email,a=t.userType,i=cr(o().useState({schoolLocality:t.schoolLocality,country:t.country,longitude:t.longitude,latitude:t.latitude,city:t.city,province:t.province}),2),c=i[0],l=i[1],u=cr(o().useState(),2),s=u[0],f=u[1],p=cr(o().useState(),2),h=p[0],d=p[1],m=cr(o().useState(!1),2),y=m[0],v=m[1],b=cr(o().useState(!1),2),S=b[0],E=b[1],x=cr(o().useState(!1),2),L=x[0],k=x[1],O=function(t){var e=t.loading,r=t.canSubmitForm,n=t.setSubmissionError,o=t.prospectStatus,a=t.userType,i=t.logStepEvent,c=t.logUserAction,l=t.nextStep,u=t.data,s=t.productName,f=t.ajaxUrls,p=t.complete,h=t.setLoadingState,d=t.email,m=t.pageAppLinkString,y=t.setProperty;function v(){return Qe(this,void 0,void 0,Xe().mark((function t(){return Xe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Zt(f,{prospectId:u.prospectId,email:d});case 3:c({},{actionType:J.UserAction.Click,descriptor:J.SignUpDescriptors.AutoJoin}),p(Object.assign({completionStep:"trial-status",trialCreated:!0,trialStatus:g.Available},u)),t.next=12;break;case 7:return t.prev=7,t.t0=t.catch(0),n("Something went wrong! Please try again later."),h(!1),t.abrupt("return");case 12:case"end":return t.stop()}}),t,null,[[0,7]])})))}function b(){var t;return Qe(this,void 0,void 0,Xe().mark((function e(){var r,n;return Xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=void 0,!(null==u?void 0:u.prospectId)||o!==g.NotRequired){e.next=6;break}return e.next=4,Bt.getLookups(f,u.prospectId);case 4:n=e.sent,r=null===(t=n.find((function(t){return t.type===We.C.MasterId})))||void 0===t?void 0:t.externalId;case 6:p(Object.assign({completionStep:"trial-status",trialStatus:o,trialCreated:!1,customerId:r},u)),i();case 8:case"end":return e.stop()}}),e)})))}function S(){var t;return Qe(this,void 0,void 0,Xe().mark((function e(){var r;return Xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h(!0),e.prev=1,e.next=4,Vt(f,{userType:a,email:d,prospectId:null==u?void 0:u.prospectId,appLink:m,accessPolicy:Qt(u.country)});case 4:r=e.sent,e.next=12;break;case 7:return e.prev=7,e.t0=e.catch(1),n("Something went wrong! Please try again later."),h(!1),e.abrupt("return");case 12:o===g.UserAutoJoinAllowed&&c({},{actionType:J.UserAction.Click,descriptor:J.SignUpDescriptors.AutoJoin}),y("userId",r.id),p(Object.assign({completionStep:"trial-status",userId:r.id,trialCreated:!0,trialStatus:g.Available,customerId:null===(t=r.data)||void 0===t?void 0:t.customerId},u)),i();case 16:case"end":return e.stop()}}),e,null,[[1,7]])})))}return function(){return Qe(this,void 0,void 0,Xe().mark((function t(){return Xe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=2;break}return t.abrupt("return");case 2:if(r()){t.next=5;break}return n("Something went wrong! Please try again later."),t.abrupt("return");case 5:if(a!==w.Staff){t.next=14;break}if(o!==g.Unsupported){t.next=8;break}return t.abrupt("return",(l(Object.assign({step:"add-to-braze",trialStatus:o},u)),void i()));case 8:if(o!==g.UserJoinApprovalRequired){t.next=10;break}return t.abrupt("return",(l(Object.assign({step:"request-access"},u)),void i()));case 10:if(o!==g.UserAutoJoinAllowed||s!==I.X.Lite){t.next=14;break}return t.next=13,v();case 13:case 17:case 20:return t.abrupt("return",t.sent);case 14:if(o===g.Active||o===g.Available||o===g.UserAutoJoinAllowed&&s===I.X.Auth){t.next=18;break}return t.next=17,b();case 18:return t.next=20,S();case 21:case"end":return t.stop()}}),t)})))}}(Object.assign(Object.assign({},t),{prospectStatus:s,loading:y,data:c,canSubmitForm:C,setSubmissionError:d,logStepEvent:function(){var e={actionType:J.UserAction.Click,descriptor:J.SignUpDescriptors.FindSchool,workflowPhase:J.WorkflowPhase.Next};t.logUserAction(c||{},e)},setLoadingState:function(t){E(t),k(t),v(t)},setProperty:A}));function C(){if(!c||!n||!a)return!1;var t=c.prospectId;return!!(n&&a&&t)}function A(e,r){"prospectId"===e&&r&&(v(!0),Wt(t.ajaxUrls,{prospectId:r.toString(),email:t.email},(function(t){f(t.status)}),(function(){console.log("error")}),(function(){v(!1)}))),l((function(t){return Object.assign(Object.assign({},t),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==ir(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==ir(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===ir(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},e,r))}))}function N(){A("prospectId",void 0),A("schoolName",""),A("schoolPostCode",void 0),d(void 0)}return o().createElement(o().Fragment,null,o().createElement("div",{className:"text-center"},o().createElement("h1",{className:"h4"},"Next, let's find your school"),o().createElement("p",null,"au"===(null==(r=null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode)?void 0:r.toLowerCase())?"Enter your school postcode or suburb":"Enter your school postcode or city")),o().createElement(Ot,{data:c,setDataProperty:A,clearStepGroupData:function(){A("schoolLocality",void 0),l((function(t){return Object.assign(Object.assign({},t),{longitude:undefined,latitude:undefined})})),A("city",void 0),A("province",void 0),A("country",void 0),N(),d(void 0)},disabled:S,geoLocation:t.geoLocation,labelClassName:"d-none",logUserAction:t.logUserAction,googleMapsApiKey:t.googleMapsApiKey,autoFocus:!0}),!!(c&&c.schoolLocality&&c.longitude&&c.latitude)&&o().createElement(ar,{data:c,setDataProperty:A,clearStepItemData:N,nextStep:t.nextStep,currentStepId:t.currentStepId,disabled:L,logUserAction:t.logUserAction,ajaxUrls:t.ajaxUrls}),h&&o().createElement("p",{className:"text-danger mb-2"},h),C()&&o().createElement(j.m,{className:"btn btn-dark btn-lg w-100",onClick:O,showSpinner:S||L||y,disabled:S||L||y},"Get started"))},"cant-find-school":function(t){var e,r,n,a=ae(o().useState({prospectId:t.prospectId,schoolName:t.schoolName,schoolType:t.schoolType,schoolLocality:t.schoolLocality,country:t.country,province:t.province,city:t.city,longitude:t.longitude,latitude:t.latitude}),2),i=a[0],c=a[1],l=ae(o().useState(),2),u=l[0],s=l[1],f=ae(o().useState(!1),2),p=f[0],h=f[1],d=(r=i.country||(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode),n=L.getCountryCode(r),re[n]||ee);function m(){var t=i.schoolName,e=i.schoolType,r=i.country;return!!(t&&e&&r)}function y(t,e){c((function(r){return Object.assign(Object.assign({},r),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==ne(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==ne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===ne(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},t,e))}))}return o().createElement(o().Fragment,null,o().createElement("div",{className:"text-center"},o().createElement("h1",{className:"h4"},"Tell us more about yourself"),o().createElement("p",null,"Please enter your school details.")),o().createElement("div",{className:"form-group"},o().createElement("label",{className:"d-block",htmlFor:"school-name-input"},"Name of school"),o().createElement("input",{type:"text",value:(null==i?void 0:i.schoolName)||"",onChange:function(t){y("schoolName",t.target.value)},id:"school-name-input",className:"form-control form-control-lg",autoComplete:"off",placeholder:"Enter name of school",autoFocus:!0})),o().createElement("div",{className:"form-group"},o().createElement("label",{className:"d-block",htmlFor:"school-type-select"},"Type of school"),o().createElement("select",{id:"school-type-select",className:"form-control form-control-lg ".concat(i.schoolType?"":"text-muted"),autoComplete:"off",value:i.schoolType||"none",onChange:function(t){y("schoolType",t.target.value)}},o().createElement("option",{value:"none",className:"text-muted",disabled:!0},"Select type of school"),d.map((function(t){return o().createElement("option",{value:t,key:t,className:"text-dark"},t)})))),o().createElement(Ot,{data:i,setDataProperty:y,clearStepGroupData:function(){y("schoolLocality",void 0),c((function(t){return Object.assign(Object.assign({},t),{longitude:undefined,latitude:undefined})})),y("city",void 0),y("province",void 0),y("country",void 0),s("")},disabled:!1,labelClassName:"d-block",geoLocation:t.geoLocation,logUserAction:t.logUserAction,googleMapsApiKey:t.googleMapsApiKey,autoFocus:!1}),u&&o().createElement("div",{className:"text-danger mb-3"},u),m()&&o().createElement(j.m,{className:"btn btn-dark btn-lg w-100",onClick:function(e){var r,n,o,a,c;return n=this,o=void 0,a=void 0,c=oe().mark((function n(){var o,a,c;return oe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.preventDefault(),m()){n.next=3;break}return n.abrupt("return");case 3:return t.logUserAction(i,{actionType:J.UserAction.Click,workflowPhase:J.WorkflowPhase.Next,descriptor:J.SignUpDescriptors.CantFindSchool}),h(!0),n.prev=5,n.next=8,Bt.create(t.ajaxUrls,{name:i.schoolName,status:Xt.Draft,countryCode:i.country,prospectType:i.schoolType,city:i.city,postCode:i.schoolPostCode,province:i.province});case 8:if((o=n.sent).id){n.next=13;break}return h(!1),s("Error. Something went wrong."),n.abrupt("return");case 13:n.next=20;break;case 15:return n.prev=15,n.t0=n.catch(5),h(!1),s("Error. Something went wrong."),n.abrupt("return");case 20:return n.prev=20,n.next=23,Vt(t.ajaxUrls,{userType:t.userType,email:t.email,prospectId:o.id,appLink:t.pageAppLinkString,accessPolicy:Qt(i.country)});case 23:a=n.sent,t.complete({completionStep:"trial-status",email:t.email,userId:a.id,prospectId:o.id,schoolName:i.schoolName,schoolLocality:i.schoolLocality,country:i.country,schoolType:i.schoolType,city:i.city,schoolPostCode:i.schoolPostCode,latitude:i.latitude,longitude:i.longitude,province:i.province,trialStatus:g.Available,trialCreated:!0,customerId:null===(r=a.data)||void 0===r?void 0:r.customerId}),n.next=37;break;case 27:if(n.prev=27,n.t1=n.catch(20),n.t1.body){n.next=33;break}return h(!1),s("Error. Something went wrong."),n.abrupt("return");case 33:if(400!==(c=n.t1).body.status||"trial-not-available"!==c.body.type){n.next=37;break}return t.nextStep(Object.assign(Object.assign({step:"add-to-braze"},i),{prospectId:o.id,trialStatus:g.Unavailable})),n.abrupt("return");case 37:case"end":return n.stop()}}),n,null,[[5,15],[20,27]])})),new(a||(a=Promise))((function(t,e){function r(t){try{l(c.next(t))}catch(t){e(t)}}function i(t){try{l(c.throw(t))}catch(t){e(t)}}function l(e){var n;e.done?t(e.value):(n=e.value,n instanceof a?n:new a((function(t){t(n)}))).then(r,i)}l((c=c.apply(n,o||[])).next())}))},showSpinner:p,disabled:p},"Get started"))},completed:function(t){var e=Oe[t.completionStep];return o().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto px-2"},o().createElement(e,Object.assign({},t)))},"add-to-braze":function(t){var e,r=B(o().useState(!1),2),n=r[0],a=r[1],i=B(o().useState({}),2),l=i[0],u=i[1];function s(e){var r=H(e.fullname),n=r.firstName,o=r.surname,a={prospect_id:null==t?void 0:t.prospectId,email:null==t?void 0:t.email,organisation_sub_type:K.getSchoolType(null==t?void 0:t.schoolType),account_name:null==t?void 0:t.schoolName,account_post_code:null==t?void 0:t.schoolPostCode,account_country:null==t?void 0:t.country,province:null==t?void 0:t.province,first_name:n,last_name:o,job_title:e.jobTitle,sync_to_crm:!0,event_topic:K.getEventTopic()};return K.removeEmptyKeys(a)}function f(){t.complete({completionStep:"added-to-braze",trialCreated:!1,trialStatus:null})}return o().useEffect((function(){t.userType===w.Learner&&t.complete({completionStep:"trial-status",trialCreated:!1,trialStatus:g.Unsupported})}),[]),o().createElement(C,{errors:l,loading:n,geoLocation:t.geoLocation,country:t.country||(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode),logUserAction:t.logUserAction,handleSubmitForm:function(e){var r,o;(function(t){var e=t.fullname,r=t.jobTitle,n=t.phone,o=H(e),a=o.firstName,i=o.surname,c={};return a&&i||(c.fullname="Please enter your full name."),(W.test(a)||W.test(i))&&(c.fullname="Please enter your full name."),e.length>$&&(c.fullname="Full name cannot exceed max length of ".concat($," characters.")),(null==r?void 0:r.length)||(c.jobTitle="Please enter your job title."),W.test(r)&&(c.jobTitle="Please enter a valid job title."),r.length>$&&(c.jobTitle="Job Title cannot exceed max length of ".concat($," characters.")),(null==n?void 0:n.length)||(c.phone="Please enter your phone number."),!W.test(n)&&V.test(n)||(c.phone="Please enter a valid phone number."),u(c),!Object.keys(c).length})(e)&&((null===(r=e.jobTitle)||void 0===r?void 0:r.toLowerCase().includes("student"))||(null===(o=e.jobTitle)||void 0===o?void 0:o.toLowerCase().includes("parent"))?f():function(e){var r,o,i,p;r=this,o=void 0,i=void 0,p=q().mark((function r(){var o,i,p,h,d,m;return q().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!n){r.next=2;break}return r.abrupt("return");case 2:if(t.userType!==w.Learner){r.next=5;break}return u(Object.assign(Object.assign({},l),{submission:"Something went wrong! Please try again later."})),r.abrupt("return");case 5:return t.logUserAction({},{actionType:c.Vw.Click,workflowPhase:c.eu.Next,descriptor:c.Yu.AddToBraze}),a(!0),o=s(e),r.next=10,K.getClient({brazeConfig:t.brazeConfig,geoLocation:t.geoLocation,productName:t.productName,version:t.version});case 10:i=r.sent,p=H(e.fullname),h=p.firstName,d=p.surname,m={prospect_id:null==t?void 0:t.prospectId,organisation_sub_type:K.getSchoolType(null==t?void 0:t.schoolType),account_name:null==t?void 0:t.schoolName,account_address:{country_code:null==t?void 0:t.country,province:null==t?void 0:t.province},job_title:e.jobTitle,sync_to_crm:!0},m=K.removeEmptyKeys(m);try{i.setUser(K.hashedEmail(null==t?void 0:t.email)),i.setUserFirstName(h),i.setUserLastName(d),i.setUserPhone(e.phone),i.setUserEmail(null==t?void 0:t.email),i.openSession(),i.bulkSetCustomUserAttributes(m),i.logEvent({type:K.getCustomEventType(),data:o}),i.sendData((function(t){u(t?{}:Object.assign(Object.assign({},l),{submission:"Something went wrong! Please try again later."})),a(!1)}))}catch(t){u(Object.assign(Object.assign({},l),{submission:"Something went wrong! Please try again later."}))}Object.keys(l).length||f();case 16:case"end":return r.stop()}}),r)})),new(i||(i=Promise))((function(t,e){function n(t){try{c(p.next(t))}catch(t){e(t)}}function a(t){try{c(p.throw(t))}catch(t){e(t)}}function c(e){var r;e.done?t(e.value):(r=e.value,r instanceof i?r:new i((function(t){t(r)}))).then(n,a)}c((p=p.apply(r,o||[])).next())}))}(e))},removeErrorForKey:function(t){if(Object.keys(l).length&&l[t]){var e=Object.assign({},l);delete e[t],u(e)}}})},"enter-age":function(t){var e=Ce(o().useState(""),2),r=e[0],n=e[1],a=Ce(o().useState(""),2),i=a[0],c=a[1],l=Ce(o().useState(""),2),u=l[0],s=l[1],f=Ce(o().useState(null),2),p=f[0],h=f[1];var d=(new Date).getFullYear(),m="mx-2 d-inline-block text-left",y="form-control form-control-lg ".concat(p?"is-invalid":""),v="order-0",g="order-3",b=L.isCountryCodeUS(t.geoLocation.countryCode);return b&&(v="order-3",g="order-0"),o().createElement("form",{className:"text-center",onSubmit:function(e){if(e.preventDefault(),r&&i&&u?function(t,e,r){var n=new Date(Ne(t,e,r));return!isNaN(+n)}(u,i,r)?+u>d?(h("Please enter a date in the past"),0):!(+u<d-120&&(h("Please enter a realistic date of birth"),1)):(h("Please enter a valid date"),0):(h("Please enter your date of birth"),0)){var n=new Date(Ne(u,i,r)),o=d-13,a=new Date;a.setFullYear(o),n>a?t.complete({completionStep:"young-student",trialCreated:!1,trialStatus:null}):t.nextStep({step:"enter-email",userType:t.userType})}},noValidate:!0},o().createElement("h1",{className:"h4"},"Tell us a little about yourself"),o().createElement("p",null,"Please enter your date of birth"),o().createElement("div",{className:"my-4"},o().createElement("div",{className:"d-flex justify-content-center"},o().createElement("div",{className:"".concat(m," ").concat(v)},o().createElement("label",{className:"mb-0",htmlFor:"day"},"Day"),o().createElement("input",{id:"day",type:"number",className:"".concat(y," ").concat("e0Dbj"),min:"1",max:"31",placeholder:"DD",value:r,onChange:function(t){n(t.target.value),h(null)},autoFocus:!b,tabIndex:b?2:1})),o().createElement("span",{className:"h1 font-weight-normal mt-3 mb-0 order-1 ".concat(p?"text-danger":"")},"/"),o().createElement("div",{className:"".concat(m," ").concat(g)},o().createElement("label",{className:"mb-0",htmlFor:"month"},"Month"),o().createElement("input",{id:"month",type:"number",className:"".concat(y," ").concat("zLcQr"),min:"1",max:"12",placeholder:"MM",value:i,onChange:function(t){c(t.target.value),h(null)},autoFocus:b,tabIndex:b?1:2})),o().createElement("span",{className:"h1 font-weight-normal mt-3 mb-0 order-4 ".concat(p?"text-danger":"")},"/"),o().createElement("div",{className:"".concat(m," order-5")},o().createElement("label",{className:"mb-0",htmlFor:"year"},"Year"),o().createElement("input",{id:"year",type:"number",className:"".concat(y," ").concat("XiXPP"),min:d-120,max:d,placeholder:"YYYY",value:u,onChange:function(t){s(t.target.value),h(null)},tabIndex:3}))),!!p&&o().createElement("div",{className:"invalid-feedback d-block"},p)),o().createElement("button",{type:"submit",className:"btn btn-lg btn-dark w-100"},"Continue"))},"request-access":function(t){var e,r,n=(e=o().useState(null),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,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return Je(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)?Je(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.")}()),a=n[0],i=n[1];return o().createElement(o().Fragment,null,o().createElement(he,{trialStatus:g.UserJoinApprovalRequired,imageUrls:t.imageUrls}),o().createElement(ue,{className:"mb-3"},o().createElement(le,null,t.schoolName,o().createElement("br",null),"already has ClickView 🎉")),o().createElement("button",{className:"btn btn-lg btn-dark w-100 mb-3",onClick:function(){var e,r,n,o,a;return r=this,n=void 0,o=void 0,a=He().mark((function r(){var n,o;return He().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,Bt.getLookups(t.ajaxUrls,t.prospectId);case 3:if(n=r.sent,o=null===(e=n.find((function(t){return t.type===We.C.MasterId})))||void 0===e?void 0:e.externalId){r.next=8;break}return i("Something went wrong."),r.abrupt("return");case 8:return r.next=10,Jt(t.ajaxUrls,{customerId:o,email:t.email});case 10:t.logUserAction({},{actionType:J.UserAction.Click,descriptor:J.SignUpDescriptors.RequestAccess}),t.complete({completionStep:"requested-access",trialCreated:!1,trialStatus:g.UserJoinApprovalRequired}),r.next=17;break;case 14:r.prev=14,r.t0=r.catch(0),i($e(r.t0));case 17:case"end":return r.stop()}}),r,null,[[0,14]])})),new(o||(o=Promise))((function(t,e){function i(t){try{l(a.next(t))}catch(t){e(t)}}function c(t){try{l(a.throw(t))}catch(t){e(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof o?r:new o((function(t){t(r)}))).then(i,c)}l((a=a.apply(r,n||[])).next())}))}},"Request access"),a&&o().createElement("p",{className:"text-danger text-center mb-2"},a),o().createElement(se,{className:"text-center"},"Need Help? ",o().createElement("a",{href:me.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link",target:"_blank"},"Contact our Help Centre.")))}};function hr(t){var e=t.state,r=t.geoLocation,n=t.layoutMapping,a=t.hasPreviousStep,i=t.googleMapsApiKey,c=t.pageAppLinkString,l=t.back,u=t.nextStep,s=t.complete,f=t.logUserAction,p=t.imageUrls,h=t.ajaxUrls,d=t.brazeConfig,m=t.version,y=t.productName,v=pr[e.currentStepId],g=Object.assign(Object.assign({},e),{geoLocation:r,googleMapsApiKey:i,pageAppLinkString:c,back:l,nextStep:u,complete:s,logUserAction:f,imageUrls:p,ajaxUrls:h,brazeConfig:d,version:m,productName:y}),b=null==n?void 0:n[e.currentStepId];return b?o().createElement(b,{geoLocation:t.geoLocation,currentStep:e.currentStepId,previousStep:l,closeApp:t.close,logUserAction:f,hasPreviousStep:a,imageUrls:t.imageUrls},o().createElement(v,Object.assign({},g))):o().createElement(v,Object.assign({},g))}var dr=r(1048);const mr={buttonContainer:"izZtA",dataContainer:"OgBv5"};function yr(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 vr(t){var e={};return Object.keys(t).forEach((function(r){var n=t[r];dr.t.isObject(n)&&null!==n&&!Array.isArray(n)?Object.assign(e,vr(n)):e[r]=n})),e}function gr(t){var e=t.label,r=t.item,n=r;return Array.isArray(r)&&(n=n.join(" -> ")),"boolean"==typeof n&&(n=n?"true":"false"),o().createElement("div",{className:"pb-1"},e,": ",o().createElement("b",{className:"text-white"},n))}function br(t){var e,r,n=t.developmentEnv,a=t.objects,i=(e=o().useState(!0),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,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return yr(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)?yr(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.")}()),c=i[0],l=i[1],u=o().useMemo((function(){return vr(a)}),[a]);return n&&o().createElement(o().Fragment,null,o().createElement("div",{className:"position-fixed p-4 ".concat(mr.buttonContainer)},o().createElement("button",{onClick:function(){l(!c)},className:"btn btn-dark px-2 py-1"},c?"Hide":"Show"," debugger")),c&&o().createElement("div",{className:"fixed-bottom mb-4 ml-4 bg-dark rounded ".concat(mr.dataContainer)},o().createElement("code",{className:"d-block p-4"},o().createElement("div",{className:"font-weight-bold pb-2"},"{ Debug: Form Data }"),Object.keys(u).map((function(t){return o().createElement(gr,{key:t,label:t,item:u[t]})})))))}var wr=r(83529);const Sr={crumb:"Btmx2"};function Er(t,e){var r="rounded-circle mx-2 d-inline-block "+Sr.crumb,n=t===e?"bg-info":"bg-light";return"".concat(r," ").concat(n)}function xr(t){return o().createElement("div",{className:"text-center"},t.crumbs.map((function(e){return o().createElement("div",{className:Er(t.currentStep,e),key:e})})))}var Lr=r(98461);function jr(t){var e=me.getTermsAndConditionsLink(),r=me.getPrivacyPolicyLink();return o().createElement("span",{className:"text-center text-md mt-2 text-normal small"},"By signing up you agree to the",o().createElement("br",null),o().createElement(Lr.d,{href:e,onClick:t.onClickTermsAndConditions,className:"info-link",newTab:!0},"Terms and Conditions"),"  and  ",o().createElement(Lr.d,{href:r,onClick:t.onClickPrivacyPolicy,className:"info-link",newTab:!0},"Privacy Policy"))}var kr=r(83914),Or=r(58130);function Cr(t){return o().createElement("button",{onClick:t.onClick,className:"btn p-0 cursor-pointer d-inline-flex align-items-center"},o().createElement(kr.x,{svgName:Or.vn.ChevronLeft,size:kr.S.Medium}),t.children)}var Ar=r(2786);Pr.defaultProps={showBackButton:!0};var Nr=["select-type","enter-email","find-school"];function Pr(t){var e=t.currentStep,r=t.previousStep,n=t.hasPreviousStep,a=t.showBackButton,i=t.children;return o().createElement("div",{className:"d-flex flex-column justify-content-between px-4 py-0 ".concat("jZ_Wp")},o().createElement("div",{className:"mt-3 mb-2"},Nr.includes(e)&&o().createElement(xr,{crumbs:Nr,currentStep:e})),o().createElement("div",{className:"position-relative mx-auto w-100 ".concat("select-type"===e?"Ye154":["enter-email","find-school","cant-find-school","add-to-braze","enter-age"].includes(e)?"m2kAT":"ollkc")},o().createElement("div",{className:"d-flex flex-row justify-content-center align-items-center mt-2 mb-3"},n&&a&&["enter-email","find-school","cant-find-school","add-to-braze","enter-age","request-access"].includes(e)&&o().createElement(Cr,{onClick:function(){r(),t.logUserAction({step:e},{actionType:J.UserAction.Click,descriptor:J.SignUpDescriptors.Back,workflowPhase:J.WorkflowPhase.Back})}}),o().createElement("div",{className:"d-flex justify-content-center align-items-center px-2 ".concat("J97w_")},o().createElement(Ar.$S,null))),i),o().createElement("div",{className:"position-relative mb-4 mt-3 text-center"},"select-type"===e&&o().createElement(Pe,{link:me.getLoginLink(),onClick:function(){t.logUserAction({},{actionType:J.UserAction.Click,descriptor:J.SignUpDescriptors.SignIn})}}),["enter-email","find-school","add-to-braze"].includes(e)&&o().createElement(jr,{onClickTermsAndConditions:function(){t.logUserAction({},{actionType:J.UserAction.Click,descriptor:J.SignUpDescriptors.TermsAndConditions})},onClickPrivacyPolicy:function(){t.logUserAction({},{actionType:J.UserAction.Click,descriptor:J.SignUpDescriptors.PrivacyPolicy})}})))}var Ur=r(28366);Fr.defaultProps={showBackButton:!0};var Ir,Tr=["enter-email","find-school"],_r=["enter-email","find-school","cant-find-school","add-to-braze","enter-age","request-access"];function Fr(t){var e=t.currentStep,r=t.previousStep,n=t.hasPreviousStep,a=t.showBackButton,i=t.closeApp,c=t.children;function l(){return["enter-email","find-school","cant-find-school","add-to-braze","enter-age"].includes(e)}function u(){r(),t.logUserAction({},{actionType:J.UserAction.Click,descriptor:J.SignUpDescriptors.Back,workflowPhase:J.WorkflowPhase.Back})}var s=_r.includes(t.currentStep),f=s?"".concat(Ur.Z.leftHalfLayout," ").concat(Ur.Z.withBg):Ur.Z.leftHalfLayout;return o().createElement("div",{className:f},o().createElement("div",{className:"row mx-0 p-3"},o().createElement("div",{className:"col px-0 d-lg-none ".concat(Ur.Z.popupButton)},n&&l()&&a&&o().createElement(Cr,{onClick:u})),o().createElement("div",{className:"col col-lg-6 px-0"},o().createElement("div",{className:Ur.Z.logo},o().createElement("div",{className:"d-none d-lg-block"},s?o().createElement(Ar.Yo,null):o().createElement(Ar.$S,null)),o().createElement("div",{className:"d-block d-lg-none mt-1"},o().createElement(Ar.$S,null),Tr.includes(t.currentStep)&&o().createElement("div",{className:"mt-3"},o().createElement(xr,{crumbs:Tr,currentStep:e}))))),o().createElement("div",{className:"col col-lg-6 d-flex flex-row justify-content-between px-0"},o().createElement("div",{className:"px-3"},o().createElement("div",{className:"d-none d-lg-block ".concat(Ur.Z.popupButton)},n&&l()&&a&&o().createElement(Cr,{onClick:u}))),Tr.includes(t.currentStep)&&o().createElement("div",{className:"d-none d-lg-block align-self-center"},o().createElement(xr,{crumbs:Tr,currentStep:e})),o().createElement(St.L,{onClick:i,className:Ur.Z.popupButton},o().createElement(kr.x,{svgName:Or.vn.Close,size:kr.S.Medium})))),o().createElement("div",{className:"row mx-0 flex-grow-1"},s&&o().createElement("div",{className:"col-6 px-0 d-none d-lg-block"},o().createElement("div",{className:"h-100 d-flex align-items-center justify-content-center"},o().createElement("img",{src:t.imageUrls.popupDashboard,className:"w-100 p-4 pb-5"}))),o().createElement("div",{className:"px-4 pt-0 pb-4 ".concat(s?"col-12 col-lg-6":"col-12")},o().createElement("div",{className:"d-flex flex-column h-100"},o().createElement("div",{className:"flex-grow-1"},c),o().createElement("div",{className:"text-center mt-3"},"select-type"===e&&o().createElement(Pe,{link:me.getLoginLink(),onClick:function(){t.logUserAction({},{actionType:J.UserAction.Click,descriptor:J.SignUpDescriptors.SignIn})}}),["enter-email","add-to-braze"].includes(e)&&o().createElement(jr,{onClickTermsAndConditions:function(){t.logUserAction({},{actionType:J.UserAction.Click,descriptor:J.SignUpDescriptors.TermsAndConditions})},onClickPrivacyPolicy:function(){t.logUserAction({},{actionType:J.UserAction.Click,descriptor:J.SignUpDescriptors.PrivacyPolicy})}}))))))}function Gr(t){return Gr="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},Gr(t)}function Dr(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Gr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Gr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Gr(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Rr={"cant-find-school":Fr,"enter-email":Fr,"find-school":Fr,"select-type":Fr,completed:Fr,"add-to-braze":Fr,"enter-age":Fr,"request-access":Fr},Mr={"cant-find-school":Pr,"enter-email":Pr,"find-school":Pr,"select-type":Pr,completed:Pr,"add-to-braze":Pr,"enter-age":Pr,"request-access":Pr},Kr=(Dr(Ir={},wr.c.FullPage,Mr),Dr(Ir,wr.c.Popup,Rr),Ir),zr={getLayouts:function(t){return Kr[t]}},qr=r(17331);function Br(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 Yr(t){return Yr="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},Yr(t)}function $r(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,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||Wr(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 Wr(t,e){if(t){if("string"==typeof t)return Vr(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)?Vr(t,e):void 0}}function Vr(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 Hr(t,e){var r,n,o=Object.assign(Object.assign({},t),{previousStepIds:[].concat((n=t.previousStepIds,function(t){if(Array.isArray(t))return Vr(t)}(n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||Wr(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[t.currentStepId]),currentStepId:e.step});if("select-type"===e.step)return Object.assign({},o);if("enter-email"===e.step||"enter-age"===e.step)return Object.assign(Object.assign({},o),{userType:e.userType});if("find-school"===e.step)return Object.assign(Object.assign({},o),{email:e.email});if("cant-find-school"===e.step)return Object.assign(Object.assign({},o),{prospectId:e.prospectId,schoolName:e.schoolName,schoolLocality:e.schoolLocality,country:e.country,longitude:e.longitude,latitude:e.latitude,city:e.city,province:e.province});if("add-to-braze"===e.step||"completed"===e.step||"request-access"===e.step){var a=Object.assign({},e);return delete a.type,delete a.step,r=a,a=Object.entries(r).filter((function(t){return null!==$r(t,2)[1]})).reduce((function(t,e){var r=$r(e,2),n=r[0],o=r[1];return Object.assign(Object.assign({},t),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Yr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Yr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Yr(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},n,o))}),{}),Object.assign(Object.assign({},o),a)}}function Jr(t,e){switch(e.type){case"nextStep":return Hr(t,e);case"back":return function(t){var e,r=function(t){if(Array.isArray(t))return Br(t)}(e=t.previousStepIds)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return Br(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)?Br(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=r.pop();return Object.assign(Object.assign({},t),{previousStepIds:r,currentStepId:n})}(t)}}function Zr(t){return Zr="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},Zr(t)}function Xr(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,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Qr(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)?Qr(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 Qr(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 tn=function(t){var e=t.location,r=t.initialValues,n=t.onStepUpdate,a=t.externalLogUserAction,i=K.removeEmptyKeys(r),l=Object.assign({currentStepId:"select-type",previousStepIds:[]},i),u=Xr(o().useReducer(Jr,l),2),s=u[0],f=u[1];return o().useEffect((function(){null==n||n(s)}),[s.currentStepId]),{state:s,back:function(){f({type:"back"})},nextStep:function(t){f(Object.assign({type:"nextStep"},t))},complete:function(t){f(Object.assign({type:"nextStep",step:"completed"},t))},hasPreviousStep:!!s.previousStepIds.length,logUserAction:function(t,r){var n=Object.assign(Object.assign({},s),t),o=qr.i.filterBlacklistedKeys(n),i=Object.assign({currentStepId:s.currentStepId},o),l=Object.entries(i).filter((function(t){return void 0!==Xr(t,2)[1]})).reduce((function(t,e){var r=Xr(e,2),n=r[0],o=r[1];return Object.assign(Object.assign({},t),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Zr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Zr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Zr(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},n,o))}),{});a(l,Object.assign({entity:c.py.SignUp,location:e},r))}}};function en(t){var e=zr.getLayouts(t.type),r=t.location,n=t.initialValues,c=t.geoLocation,l=t.googleMapsApiKey,u=t.pageAppLinkString,s=t.onStepUpdate,f=t.imageUrls,p=t.ajaxUrls,h=t.brazeConfig,d=t.version,m=t.productName,y=t.close,v=tn({location:r,initialValues:n,onStepUpdate:s,externalLogUserAction:i.k.logUserAction}),g=v.back,b=v.nextStep,w=v.complete,S=v.hasPreviousStep,E=v.state,x=v.logUserAction,L={state:E,geoLocation:c,layoutMapping:e,hasPreviousStep:S,googleMapsApiKey:l,pageAppLinkString:u,back:g,close:y,nextStep:b,complete:w,logUserAction:x,imageUrls:f,ajaxUrls:p,brazeConfig:h,version:d,productName:m};return o().useEffect((function(){a.SG.get(ke)&&w({completionStep:"young-student",trialCreated:!1,trialStatus:null})}),[]),o().createElement(o().Fragment,null,o().createElement(hr,Object.assign({},L)),o().createElement(br,{developmentEnv:!1,objects:Object.assign(Object.assign(Object.assign({},E),{pageAppLinkString:u}),c)}))}},83529:(t,e,r)=>{var n;r.d(e,{c:()=>n}),function(t){t.Popup="popup-form",t.FullPage="full-page-form"}(n||(n={}))},12238:(t,e,r)=>{var n;r.d(e,{C:()=>n}),function(t){t.MasterId="master_id",t.CrmId="crm_id",t.SalesforceId="salesforce_id"}(n||(n={}))},84789:(t,e,r)=>{var n;r.d(e,{X:()=>n}),function(t){t.Lite="lite",t.Auth="auth"}(n||(n={}))},17331:(t,e,r)=>{r.d(e,{i:()=>o});var n=["email","longitude","latitude","trialCreated"],o={filterBlacklistedKeys:function(t){var e=Object.assign({},t);return n.forEach((function(t){return delete e[t]})),e}}},48456:(t,e,r)=>{r.d(e,{v:()=>o});var n=r(99742),o={popupDashboard:n.W.SignUp.POPUP_DASHBOARD,educator:n.W.SignUp.EDUCATOR,student:n.W.SignUp.STUDENT,statusImages:{available:n.W.SignUp.VERIFY_ACCOUNT,active:n.W.SignUp.EXISTING_CUSTOMER,expired:n.W.SignUp.EXPIRED_TRIAL,notRequired:n.W.SignUp.EXISTING_CUSTOMER,unavailable:n.W.SignUp.NOT_AVAILABLE,unsupported:n.W.SignUp.NOT_AVAILABLE,autoJoin:n.W.SignUp.EXISTING_CUSTOMER,requestAccess:n.W.SignUp.EXISTING_CUSTOMER}}},17762:(t,e,r)=>{r.d(e,{M:()=>i});var n=r(20354),o=r(39151),a={countryCode:"us",isFallback:!0};function i(){var t=n.a.useBasicFetch(o.L.geoLocation());return t.hasCompleted&&!t.data?a:t.data}},63643:(t,e,r)=>{r.d(e,{c:()=>c});var n=r(97395),o=r(20354),a=r(84789),i=r(39151);function c(){var t=o.a.useBasicFetch(i.L.config());if(!t.hasCompleted)return null;var e=t.data.gatewayApiUrl;return{productName:a.X.Lite,userStatus:n._.safeUrlConcat(e,"/v1/users/trial-status"),prospectStatus:function(t){return n._.safeUrlConcat(e,"/v1/prospects/".concat(t,"/trial-status"))},createTrial:"/api/user/trials",resendTrialEmail:function(t){return"/api/user/trials/users/".concat(t,"/send-activation-email")},searchProspect:n._.safeUrlConcat(e,"/v1/search/prospects"),createProspect:"/api/prospects",prospectLookups:function(t){return n._.safeUrlConcat(e,"/v1/prospects/".concat(t,"/lookups"))},autoJoin:"/api/user/trials/auto-join",joinRequest:function(t){return"/api/user/customers/".concat(t,"/join-requests")}}}},28366:(t,e,r)=>{r.d(e,{Z:()=>n});const n={logo:"Kh4Dd",modalBody:"V9nIN",popupButton:"hS60U",leftHalfLayout:"aQ1K8",withBg:"zALxE"}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9880],{29880:(e,o,t)=>{t.r(o),t.d(o,{DownloadVideoView:()=>w});var n=t(1024),a=t.n(n),c=t(20354),i=t(49985),r=t(65858),l=t(39151),d=t(97395),u={getVideoDownloadUrl:function(e,o){return d._.safeUrlConcat(d._.makeHttps(e),"/download?token=".concat(o))}},s=t(99940),k={createDownloadToken:function(e){return{url:"/api/downloadproxy/api/tokens",key:"download:token:".concat(e),data:{objectId:e},type:s.k.POST,normalize:!1}}};function w(e){var o=a().useRef(null),t=c.a.useBasicFetch(l.L.config()),n=c.a.useBasicFetch(k.createDownloadToken(e.id)),d=!!t.data&&!!n.data;return a().useEffect((function(){if(d&&o.current){var a=u.getVideoDownloadUrl(t.data.downloadProxy,n.data.token);o.current.src=a,i.k.logUserAction({id:e.id},{actionType:r.UserAction.Download,location:r.LocationContext.Popup,entity:r.EntityType.Video,workflowPhase:r.WorkflowPhase.Complete})}}),[d,o.current]),a().createElement("iframe",{ref:o})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9961],{3278:(e,t,n)=>{n.d(t,{z:()=>v});var a=n(1024),r=n.n(a),o=n(55460),i=n(23481),c=n(65858),l=n(38502),s=n(83345),u=n(53957);const d={pillTab:"bMJM0"};var m="discover.header";function v(e){var t,n,a,v,p,f;if(!e.type)return r().createElement(r().Fragment,null);if(e.type===u.DashboardUserType.Learner||e.hasStudentExperience)return r().createElement("div",{className:"py-3"},r().createElement("h1",{className:"h2 mb-0"},r().createElement(s.x,{namespace:m,phrase:"heading"})));var h=[{name:i.T.getPhrase(m,"forYou"),appLink:null===(t=e.appLinks)||void 0===t?void 0:t.forYou,active:"forYou"===e.active,analyticsData:{name:i.T.getPhrase(m,"forYou"),url:o.AppLinkHelper.getHref(null===(n=e.appLinks)||void 0===n?void 0:n.forYou)},analyticsOptions:{actionType:c.UserAction.Click,entity:c.EntityType.Url,location:c.LocationContext.MagicTabs}},{name:i.T.getPhrase(m,"whatsNew"),appLink:null===(a=e.appLinks)||void 0===a?void 0:a.whatsNew,active:"whatsNew"===e.active,analyticsData:{name:i.T.getPhrase(m,"whatsNew"),url:o.AppLinkHelper.getHref(null===(v=e.appLinks)||void 0===v?void 0:v.whatsNew)},analyticsOptions:{actionType:c.UserAction.Click,entity:c.EntityType.Url,location:c.LocationContext.MagicTabs}}];return e.showCalendar&&h.push({name:i.T.getPhrase(m,"calendar"),appLink:null===(p=e.appLinks)||void 0===p?void 0:p.calendar,active:"calendar"===e.active,analyticsData:{name:i.T.getPhrase(m,"calendar"),url:o.AppLinkHelper.getHref(null===(f=e.appLinks)||void 0===f?void 0:f.calendar)},analyticsOptions:{actionType:c.UserAction.Click,entity:c.EntityType.Url,location:c.LocationContext.MagicTabs}}),r().createElement("div",{className:"py-3 text-center"},r().createElement(l.r,{tabs:h,className:d.pillTab}))}},38502:(e,t,n)=>{n.d(t,{r:()=>u});var a=n(1024),r=n.n(a),o=n(49985),i=n(36848),c=n(76246),l=n(11607),s=n(87432);function u(e){var t;return r().createElement("nav",{className:null!==(t=e.className)&&void 0!==t?t:""},r().createElement("ul",{className:"list-unstyled d-inline-block m-0 ".concat(s.Z.pillTabSelector)},e.tabs.map((function(e){return r().createElement("li",{className:"p-0 ".concat(e.active?"btn btn-dark":"btn btn-outline-dark"),key:e.name},e.appLink?r().createElement(i.F,{appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,className:"cursor-pointer d-flex justify-content-center text-decoration-none text-reset px-2 ".concat(s.Z.pillItem)},e.name,"number"==typeof e.count&&r().createElement("div",{className:"pl-2"},r().createElement(c.C,{type:c.g.Count,data:e.count}))):r().createElement(l.L,{className:"".concat(s.Z.pillItem," d-flex justify-content-center p-2"),onClick:function(){return function(e){!e.active&&e.onSelect&&(e.onSelect(),e.analyticsData&&e.analyticsOptions&&o.k.logUserAction(e.analyticsData,e.analyticsOptions))}(e)}},e.name,"number"==typeof e.count&&r().createElement("div",{className:"pl-2"},r().createElement(c.C,{type:c.g.Count,data:e.count}))))}))))}},2284:(e,t,n)=>{var a;n.d(t,{W:()=>a}),function(e){e.Draft="Draft",e.ComingSoon="ComingSoon",e.Published="Published"}(a||(a={}))},29917:(e,t,n)=>{n.d(t,{r:()=>d});var a=n(1024),r=n.n(a),o=n(23481),i=n(83914),c=n(36532),l=n(58130);const s={tag:"k1Yjy",tooltip:"Cgeav"};var u="specialEventCalendar.comingSoonTag";function d(e){return r().createElement(c.u,{title:o.T.getPhrase(u,"tooltip"),spanHackClassName:"d-block ".concat(s.tooltip),spanHack:!0},r().createElement("div",{className:"d-flex text-dark align-items-center ".concat(s.tag," ").concat(e.className)},r().createElement(i.x,{svgName:l.vn.Timer}),!e.onlyIcon&&o.T.getPhrase(u,"comingSoon")))}},13037:(e,t,n)=>{n.d(t,{b:()=>E});var a=n(1024),r=n.n(a),o=n(23481),i=n(110),c=n(49985),l=n(65858),s=n(42735),u=n(36848),d=n(2284),m=n(54610),v=n(79967),p=n(67453),f=n(61557),h=n(29917);const y={modalWidth:"v5TkI",banner:"LlPSp",bannerContent:"upY3A",pill:"B7ypp"};var g="specialEventCalendar.eventsListItem";function E(e){var t,n=(0,v.k)(),a=e.getAppLink(e.event.content.id,e.event.name),E=e.event.content.metadata.backgroundColor,b=p.j.createUrl(null===(t=e.event.content.banner)||void 0===t?void 0:t.url,{size:m.h2.Large}),O=!!e.event.endDate,D=e.event.content.status===d.W.ComingSoon,M={actionType:l.UserAction.Click,entity:l.EntityType.SpecialEvent,location:e.inPopup?l.LocationContext.CalendarPopup:l.LocationContext.CalendarDay},C={topicId:e.event.content.id,eventId:e.event.specialEventId,presentationId:e.presentationId,date:i.O.format(new Date(e.event.startDate),"YYYY-MM-DD"),status:e.event.content.status};return r().createElement("div",{onClick:function(){D&&c.k.logUserAction(C,M)}},r().createElement(u.F,{appLink:!D&&a,className:"".concat(D?"":"cursor-pointer"," text-decoration-none"),onClick:e.onClick,analyticsOptions:M,analyticsData:C},r().createElement("div",{className:"banner rounded-lg position-relative ".concat(y.banner),style:{backgroundColor:E,backgroundImage:"url('".concat(b,"')")}},r().createElement("div",{className:"".concat(y.bannerContent," px-3")},r().createElement("div",{className:"text-white"},D&&r().createElement(h.r,{className:"pr-2 font-weight-500 mb-1 rounded-pill justify-content-start ".concat(y.pill)}),O&&r().createElement("div",{className:"mb-1"},f.T.getDisplayDate(e.event.startDate,e.event.endDate)),r().createElement("h2",{className:"h4 clamp-1 text-white text-shadow",title:e.event.name},e.event.name)),r().createElement("div",{className:"flex-shrink-0"},!D&&r().createElement(s.K,{className:"btn btn-outline-dark font-weight-500"},o.T.getPhrase(g,n.xs?"mobileButtonLabel":"buttonLabel")))))),r().createElement("div",{className:"mt-2 mb-3"},e.event.description||e.event.content.description))}},39780:(e,t,n)=>{n.d(t,{N:()=>r});var a=n(97395),r={calendarEvents:function(e,t,n){return{url:a._.urlBuilder("{gateway}/v1/discover/special-events/content",{from:e,to:t,presentationId:n}),publicUrl:a._.urlBuilder("/api/discover/special-events/content",{from:e,to:t,presentationId:n}),key:"presentation:".concat(n,":events:from:").concat(e,":to").concat(t)}}}},74590:(e,t,n)=>{n.d(t,{N:()=>v});var a=n(1024),r=n.n(a),o=n(35242),i=n(55171),c=n(25925),l=n(37802),s=n(86698);function u(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 a,r,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=o.call(n)).done)&&(c.push(a.value),c.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(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)?d(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var m=[i.e.PresentationIds.US_ELEMENTARY,i.e.PresentationIds.SCOTLAND_PRIMARY,i.e.PresentationIds.ENGLAND_PRIMARY];function v(e){var t=(0,l.r)(null),n=t.hasSpecialEventCalendar,a=t.isLoadingSettings,i=(0,s.y)(c.R.Subject,null,e,!0).presentation,d=!a&&!n,v=(null==i?void 0:i.id)&&!m.includes(+i.id),p=u(r().useState(!d&&!v),2),f=p[0],h=p[1],y=u(r().useState(a||!(null==i?void 0:i.id)),2),g=y[0],E=y[1];return r().useEffect((function(){d||v?h(!1):g||h(!0),E(a||!(null==i?void 0:i.id))}),[n,null==i?void 0:i.id,g]),o.h.isDevelopment?{showCalendar:!0,isLoading:!1}:{showCalendar:f,isLoading:g}}},61557:(e,t,n)=>{n.d(t,{T:()=>c});var a=n(110),r=n(28400),o=n(14070),i=n(97291),c={getTopicAppLink:function(e,t){return{application:i.O.SUBJECT,action:o.e.Subjects.CLASSIFICATION,args:[e,r.m.slugify(t)]}},getDisplayDate:function(e,t){return t?e.slice(5,7)!==t.slice(5,7)?"".concat(a.O.format(e,"D MMM")," - ").concat(a.O.format(t,"D MMM")):"".concat(a.O.format(e,"D")," - ").concat(a.O.format(t,"D")," ").concat(a.O.format(e,"MMM")):a.O.format(e,"D MMM")},getEventsInMonth:function(e,t){return e.filter((function(e){return a.O.format(e.startDate,"YYYY-MM")===a.O.format(t,"YYYY-MM")}))},getOrdinalDate:function(e){return"".concat(a.O.localeData().ordinal(a.O.get(e,"date"))," ").concat(a.O.format(e,"MMMM"))}}},19961:(e,t,n)=>{n.r(t),n.d(t,{CalendarView:()=>He});var a=n(1024),r=n.n(a),o=n(23481),i=n(81886),c=n(110),l=n(3278),s=n(25925),u=n(79612),d=n(53957),m=n(76753),v=n(14070),p=n(97291),f=n(86698),h=n(18921),y=n(99910),g=n(79967),E=n(27867),b=n(49439);const O={cellDate:"MvrIK",label:"UFPJm",isHovering:"d4VLP",numberWrapper:"PyWl_"};function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var M=o.T.encloseNamespace("specialEventCalendar.calendarCellDate");function C(e){var t=c.O.isToday(e.date),n="".concat(O.cellDate," d-flex flex-nowrap");t&&(n+=" bg-dark text-white"),e.notCurrentMonth&&!e.isHovering&&(n+=" text-secondary"),e.hasEvent&&(n+=" text-white"),e.className&&(n+=" ".concat(e.className));var a,o,i=(a=(0,b.L)({delay:250}),o=2,function(e){if(Array.isArray(e))return e}(a)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=o.call(n)).done)&&(c.push(a.value),c.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return c}}(a,o)||function(e,t){if(e){if("string"==typeof e)return D(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)?D(e,t):void 0}}(a,o)||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=i[0],s=i[1];return r().createElement("div",{className:"".concat(n," ").concat(s?O.isHovering:""),ref:l},r().createElement("div",{className:"".concat(O.numberWrapper," ").concat("d-flex text-center justify-content-center align-items-center flex-shrink-0")},c.O.format(e.date,"D")),t&&r().createElement("div",{className:"".concat(O.label," justify-content-start align-items-center")},M("today")))}var k=n(49985),w=n(65858),N=n(36848),Y=n(11607),A=n(44435),S=n(83914),I=n(55171),L=n(2284),T=n(54610),x=n(67453),j=n(58130),H=n(29917),P=n(61557);const U={hardcodedCover:"o0bws",tag:"UIeoi",date:"p1FoI",backgroundImage:"_33D7",eventCard:"MPgib",wrapper:"yvPrI",left:"KBv2n",right:"dowd6",noAnimation:"HWvit",cover:"hoJcZ",tagWrap:"VKCBZ",appear:"zh9Ja",displayDate:"i5dV5",title:"od2i9",titleText:"oNtXC",circle:"Y9ovs",active:"DSUJW",arrow:"RjkfI",bottomBar:"RlRw7",bottomPlaceholder:"Hs06S",multiEventFilter:"O2Dl3"};function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function F(e){var t,n,a,o,i=e.sliderStep,l=e.setSliderStep,s=e.eventsOnDay.length>1,u=e.eventsOnDay.find((function(e,t){return t===i})),d=!!u.endDate,m=u.content.metadata.backgroundColor,f=I.e.SpecialEvents[u.content.id],h=f?x.j.createUrl(f.iconUrl,{size:T.h2.Medium}):x.j.createUrl(null===(t=u.content.icon)||void 0===t?void 0:t.url,{size:T.h2.Small}),y=x.j.createUrl(null===(n=u.content.cover)||void 0===n?void 0:n.url,{size:T.h2.Small}),g=P.T.getTopicAppLink(u.content.id,u.name),E=u.content.status===L.W.ComingSoon,b={application:p.O.CALENDAR,action:v.e.Calendar.SPECIAL_EVENT_LIST,params:Object.assign(Object.assign({},e.monthQuery),{date:e.date.toString()})},O=(a=r().useState(e.hasInited?U.appear:""),o=2,function(e){if(Array.isArray(e))return e}(a)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=o.call(n)).done)&&(c.push(a.value),c.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return c}}(a,o)||function(e,t){if(e){if("string"==typeof e)return R(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)?R(e,t):void 0}}(a,o)||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=O[0],M=O[1];r().useEffect((function(){if(!e.hasInited){var t=Math.floor(600*Math.random()+400);window.setTimeout((function(){M(U.appear),window.setTimeout((function(){e.setHasInited(!0)}),400)}),t)}}),[e.hasInited]),r().useEffect((function(){e.isHovering&&e.setHoveredEvent(u)}),[e.isHovering,u]),r().useEffect((function(){return function(){var t;e.isHovering&&(null===(t=e.hoveredEvent)||void 0===t?void 0:t.specialEventId)===u.specialEventId&&e.setHoveredEvent(null)}}),[e.isHovering,e.hoveredEvent,u]);var F=null;s?F=b:E||(F=g);var _=function(){var t={date:c.O.format(e.date,"YYYY-MM-DD"),presentationId:e.presentationId,eventCount:e.eventsOnDay.length};return s?(t.eventId=e.eventsOnDay.map((function(e){return e.specialEventId})).join(","),t.topicId=e.eventsOnDay.map((function(e){return e.content.id})).join(",")):(t.eventId=u.specialEventId,t.topicId=u.content.id,t.eventStatus=u.content.status),t}(),W={actionType:w.UserAction.Click,entity:w.EntityType.SpecialEvent,location:w.LocationContext.CalendarDay};function B(e){return c.O.format(e,"YYYY-MM-DD")}return r().createElement("div",{onClick:function(){E&&k.k.logUserAction(_,W)}},r().createElement(N.F,{appLink:F,className:"d-flex justify-content-end",analyticsOptions:W,analyticsData:_},r().createElement("div",{className:"".concat(U.tagWrap," p-1")},E&&r().createElement(H.r,{className:"justify-content-center p-0 rounded-circle ".concat(U.tag," ").concat(D),onlyIcon:!0})),r().createElement(C,{date:e.date,notCurrentMonth:e.notCurrentMonth,className:"".concat(U.date," ").concat(D),hasEvent:!0,isHovering:e.isHovering}),r().createElement("div",{className:"postion-relative ".concat(U.wrapper)},r().createElement("div",{style:{backgroundColor:m},className:"position-absolute d-flex flex-column justify-content-end align-items-center text-white px-1 pt-2 pb-1 ".concat(U.eventCard," ").concat(D," ").concat(e.isHovering?"rounded-lg":""," ").concat(e.isMultiEventDate?U.multiEventFilter:"")},r().createElement("div",{style:{backgroundImage:"url('".concat(h||y,"')")},className:"".concat(f?"".concat(U.hardcodedCover," position-absolute"):U.backgroundImage," ").concat(h?"":U.cover," ").concat(E?U.comingSoon:""," ").concat(D," ").concat(e.hasInited?U.noAnimation:""," ").concat(e.isHovering?"rounded-lg":""," ").concat(e.isMultiEventDate?U.multiEventFilter:"")}),d&&r().createElement("div",{className:"".concat(U.displayDate)},P.T.getDisplayDate(u.startDate,u.endDate)),r().createElement("div",{className:"text-center ".concat(U.title," ").concat(s?"mb-1":"mb-2")},r().createElement("div",{className:"".concat(U.titleText," ").concat(e.isHovering?"":"clamp-2"," ").concat(e.isHovering?"mb-0":""," h6"),title:u.name},u.name)),s&&0!==i&&r().createElement("div",{className:"position-absolute bg-white rounded-circle ".concat(U.left)},r().createElement(Y.L,{onClick:function(t){t.stopPropagation(),t.preventDefault(),l((function(e){return e-1})),k.k.logUserAction({date:B(e.date),action:"previous",eventCount:e.eventsOnDay.length},W)}},r().createElement(S.x,{svgName:j.vn.ChevronLeft,className:"d-inline-block svg-container text-dark ".concat(U.arrow)}))),s&&i!==e.eventsOnDay.length-1&&r().createElement("div",{className:"position-absolute bg-white rounded-circle ".concat(U.right)},r().createElement(Y.L,{onClick:function(t){t.stopPropagation(),t.preventDefault(),l((function(e){return e+1})),k.k.logUserAction({date:B(e.date),action:"next",eventCount:e.eventsOnDay.length},W)}},r().createElement(S.x,{svgName:j.vn.ChevronRight,className:"d-inline-block svg-container text-dark ".concat(U.arrow)}))),s&&r().createElement("div",{className:"d-flex ".concat(U.bottomBar," ").concat(s?"":U.bottomPlaceholder)},r().createElement(A.e,{sliderStep:i,sliderLength:e.eventsOnDay.length,size:"sm",className:"".concat(e.isHovering?"mb-2":"mb-1"),onSliderDotClick:function(t){l(t),k.k.logUserAction({date:B(e.date),action:"jump",eventCount:e.eventsOnDay.length},W)}}))))))}const _={wrapper:"ID5BX",notCurrentMonth:"KThJz",weekend:"Le3vK",cell:"GY1K5",multiEventCell:"OhwMa",fadeIn:"hDM5I"};function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function B(e){var t,n,a=r().useMemo((function(){var t,n,a,r;return(null===(t=e.hoveredEvent)||void 0===t?void 0:t.endDate)&&!c.O.isSame(e.date,null===(n=e.hoveredEvent)||void 0===n?void 0:n.startDate)&&c.O.isBetween(c.O.format(e.date,"YYYY-MM-DD"),null===(a=e.hoveredEvent)||void 0===a?void 0:a.startDate,null===(r=e.hoveredEvent)||void 0===r?void 0:r.endDate)}),[e.hoveredEvent]),o=null===(t=e.hoveredEvent)||void 0===t?void 0:t.content.metadata.backgroundColor;return r().createElement("div",{className:"".concat(_.cell," font-weight-500")},r().createElement(C,{date:e.date,notCurrentMonth:e.notCurrentMonth}),a&&r().createElement("div",{style:{backgroundColor:o},className:_.multiEventCell}),(null===(n=e.eventsOnDay)||void 0===n?void 0:n.length)>0&&r().createElement(F,Object.assign({},e,{isMultiEventDate:a})))}function V(e){var t,n,a,o=e.date,i=e.notCurrentMonth,l=(n=r().useState(0),a=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=o.call(n)).done)&&(c.push(a.value),c.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return c}}(n,a)||function(e,t){if(e){if("string"==typeof e)return W(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)?W(e,t):void 0}}(n,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=l[0],u=l[1],d="position-relative border border-light-blue ".concat(_.wrapper);(function(e){return 0===c.O.getWeekday(e)||6===c.O.getWeekday(e)})(o)&&(d+=" ".concat(_.weekend)),i&&(d+=" ".concat(_.notCurrentMonth));var m=(null===(t=e.events)||void 0===t?void 0:t.filter((function(t){return c.O.isSame(e.date,t.startDate)})))||[],v=Object.assign(Object.assign({},e),{eventsOnDay:m,sliderStep:s,setSliderStep:u});return r().createElement("td",{className:d},(null==m?void 0:m.length)>0?r().createElement(E.K,{hoverableComponent:B,componentProps:v,hoverScale:1.35}):r().createElement(B,Object.assign({},v,{isHovering:!1})))}var z=n(23232),J=n(83345),K=n(99742),Q="specialEvent.eventsEmptyState",$=o.T.encloseNamespace(Q);function Z(e){return r().createElement(J.D.Provider,{value:Q},r().createElement(z.u,null,r().createElement(z.u.Image,{src:K.W.EmptyStates.CALENDAR.NO_EVENTS,altText:$("info")}),r().createElement(z.u.Heading,null,r().createElement(J.x,{phrase:"heading"})),r().createElement(z.u.Info,null,r().createElement(J.x,{namespace:Q,phrase:"info"}),r().createElement(N.F,{appLink:e.appLink},r().createElement("span",{className:"text-blue"},$("link"))))))}var X=n(13037);const G={date:"dn7Hd",first:"axdj4"};function q(e){var t={};e.events.forEach((function(e){var n=e.startDate;t[n]?t[n].push(e):t[n]=[e]}));var n=Object.keys(t);return n.sort((function(e,t){return c.O.isBefore(e,t)?-1:0})),r().createElement("div",{className:"py-1"},n.map((function(n,a){return r().createElement("div",{key:n},r().createElement("div",{className:"h4 mt-4 ".concat(G.date," ").concat(0===a?G.first:"")},P.T.getOrdinalDate(n)),t[n].map((function(t){return r().createElement(X.b,{key:t.content.id,getAppLink:P.T.getTopicAppLink,event:t,presentationId:e.presentationId})})))})))}const ee={header:"xLOrx",thead:"ef_XJ"};function te(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 a,r,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=o.call(n)).done)&&(c.push(a.value),c.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ne(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)?ne(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function ae(e){var t=(0,g.k)(),n=P.T.getEventsInMonth(e.events||[],e.viewingMonth),a=te(r().useState(!1),2),o=a[0],i=a[1],c=te(r().useState(null),2),l=c[0],s=c[1];return t.xs||t.sm||t.md?e.eventsLoaded?(null==n?void 0:n.length)?r().createElement(q,{events:n,presentationId:e.presentationId}):r().createElement(Z,{appLink:{application:p.O.CONTENT_UPDATES,action:v.e.ContentUpdates.CONTENT_UPDATES}}):r().createElement("div",{className:"d-flex justify-content-center align-items-center"},r().createElement(y.Spinner,{as:"div",animation:"border",role:"status"})):r().createElement("table",{className:"user-select-none w-100 mt-3 overflow-hidden rounded-top-lg"},r().createElement("thead",{className:"border border-light-blue ".concat(ee.thead)},r().createElement("tr",{className:"font-weight-500 bg-light-blue ".concat(ee.header)},e.weekDaysHeader.map((function(e){return r().createElement("th",{key:e,className:"px-2 h4"},e)})))),r().createElement("tbody",null,e.weekDays.map((function(t){return r().createElement("tr",{key:t[0].toString()},t.map((function(t){return r().createElement(V,{key:t.toString(),date:t,notCurrentMonth:!!t.notCurrentMonth,events:e.events,monthQuery:e.monthQuery,hasInited:o,setHasInited:i,presentationId:e.presentationId,hoveredEvent:l,setHoveredEvent:s})})))}))))}var re=n(33192),oe=n.n(re),ie=n(75896),ce=new Date("2023-01-01"),le=12;function se(e,t){for(var n=c.O.startOf(e,"month"),a=c.O.getWeekday(n),r=[],o=t?0===a?6:a-1:a,i=t?1:0;i<=o;i++){var l=n,s=c.O.weekday(l,a-i);r.push(Object.assign(s,{notCurrentMonth:!0}))}return r.reverse()}function ue(e,t){for(var n=c.O.endOf(e,"month"),a=c.O.getWeekday(n),r=[],o=t?7-(0===a?7:a):7-a,i=1;i<=o;i+=1){var l=c.O.add(n,i,"days");r.push(Object.assign(l,{notCurrentMonth:!0}))}return r}function de(e){var t=c.O.startOf(e,"month");return 1===c.O.getWeekday(t)?t:ie.m.first(se(e,!0))}function me(e){var t=c.O.endOf(e,"month");return 0===c.O.getWeekday(t)?t:ie.m.last(ue(e,!0))}function ve(e){return[de(e),me(e)]}var pe=new Date;const fe={actions:"DpKMU",chevron:"IE4Ui",left:"AFmnx",right:"N1Rz_"};var he="specialEventCalendar.calendarNav";function ye(e){var t="previous"===e.action?j.vn.ChevronLeft:j.vn.ChevronRight,n="previous"===e.action?fe.left:fe.right;return r().createElement(Y.L,{className:"".concat(fe.chevron," ").concat(n," border border-dark rounded-circle bg-white d-flex align-items-center justify-content-center"),onClick:e.onClick},r().createElement(S.x,{svgName:t,size:S.S.Medium,className:"svg-container d-inline-block ".concat(fe.svg)}))}var ge=new Date;function Ee(e){var t=(0,g.k)();function n(e){var t=c.O.format(e,"MMMM").toLocaleLowerCase(),n=(new Date).getFullYear(),a=e.getFullYear(),r={application:p.O.CALENDAR,action:v.e.Calendar.CALENDAR_MONTH,args:[t]};return n!==a&&(r.params={year:a}),r}var a,i,l=(a=e.monthDate,i=c.O.diffBetween(c.O.startOf(a,"month"),c.O.startOf(pe,"month"),"months"),{showPrev:c.O.isAfter(a,ce,"month"),showNext:i<le}),s=l.showPrev,u=l.showNext,d={actionType:w.UserAction.Click,entity:w.EntityType.SpecialEvent,location:w.LocationContext.CalendarNav};function m(e){return c.O.format(e,"YYYY-MM-DD")}return r().createElement("div",{className:"d-flex justify-content-between align-items-center"},r().createElement("h1",{className:"mb-0 h2"},c.O.format(e.monthDate,t.xs?"MMM YYYY":"MMMM YYYY")),r().createElement("div",{className:"d-flex ".concat(fe.actions)},s&&r().createElement(N.F,{appLink:n(c.O.startOf(c.O.subtract(e.monthDate,1,"month"),"month")),className:"d-flex",analyticsOptions:d,analyticsData:{action:"previous",date:m(c.O.startOf(c.O.add(e.monthDate,1,"month"),"month"))}},r().createElement(ye,{action:"previous",onClick:function(){var t=c.O.subtract(e.monthDate,1,"month");e.setViewingMonthDate(t)}})),r().createElement(N.F,{appLink:{application:p.O.CALENDAR,action:v.e.Calendar.CALENDAR},className:"d-flex",analyticsOptions:d,analyticsData:{action:"today",date:m(c.O.startOf(ge,"month"))}},r().createElement(Y.L,{className:"".concat(fe.todayWrapper," btn btn-outline-dark font-weight-500"),onClick:function(){c.O.format(ge,"YYYY-MM-DD")!==c.O.format(e.monthDate,"YYYY-MM-DD")&&e.setViewingMonthDate()}},o.T.getPhrase(he,"today"))),u&&r().createElement(N.F,{appLink:n(c.O.startOf(c.O.add(e.monthDate,1,"month"),"month")),className:"d-flex",analyticsOptions:d,analyticsData:{action:"next",date:m(c.O.startOf(c.O.add(e.monthDate,1,"month"),"month"))}},r().createElement(ye,{action:"next",onClick:function(){var t=c.O.add(e.monthDate,1,"month");e.setViewingMonthDate(t)}}))))}var be="specialEvent.eventsErrorState",Oe=o.T.encloseNamespace(be);function De(e){return r().createElement(J.D.Provider,{value:be},r().createElement(z.u,null,r().createElement(z.u.Image,{src:K.W.EmptyStates.CALENDAR.INVALID_DATE}),r().createElement(z.u.Heading,null,r().createElement(J.x,{phrase:"heading"})),r().createElement(z.u.Info,null,r().createElement(J.x,{namespace:be,phrase:"info"}),r().createElement("br",null),r().createElement(N.F,{appLink:e.appLink},r().createElement("span",{className:"text-blue"},Oe("link"))))))}var Me=n(20354),Ce=n(39780);function ke(e){return function(e){if(Array.isArray(e))return Ye(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ne(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 we(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 a,r,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=o.call(n)).done)&&(c.push(a.value),c.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return c}}(e,t)||Ne(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 Ne(e,t){if(e){if("string"==typeof e)return Ye(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)?Ye(e,t):void 0}}function Ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function Ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var Se=new Date;function Ie(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Se,a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=function(e){var t=e?[1,2,3,4,5,6,0]:[0,1,2,3,4,5,6],n=new Date;return t.map((function(e){return c.O.format(c.O.weekday(n,e),"ddd")}))}(a),l=r().useRef({}),s=(e=r().useState([]),t=2,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 a,r,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=o.call(n)).done)&&(c.push(a.value),c.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ae(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)?Ae(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=s[0],d=s[1],m=c.O.format(n,"YYYY-MM");r().useEffect((function(){var e=l.current[m];if(e)d(e.weeksTable);else{var t=function(e,t){for(var n=[],a={},r=se(e,t).concat(function(e){for(var t=c.O.daysInMonth(e),n=[],a=1;a<=t;a++){var r=c.O.set(e,"date",a);n.push(Object.assign(r,{notCurrentMonth:!1}))}return n}(e)).concat(ue(e,t)),o=function(e){var t=r.slice(i,i+7);t.forEach((function(t,n){a[c.O.format(t,"YYYY-MM-DD")]={row:e,col:n}})),n.push(t),e++,l=e},i=0,l=0;i<r.length;i+=7)o(l);return{datePositionMap:a,weeksTable:n}}(n,a),r=t.weeksTable,o=t.datePositionMap;l.current[m]={weeksTable:r,datePositionMap:o},d(r)}}),[c.O.format(n,"YYYY-MM")]);var f=ie.m.first(ie.m.first(u)),h=ie.m.last(ie.m.last(u));return{weekDaysHeader:o,weekDays:u,monthDate:n,setMonthDate:function(e){if(e){if(m!==c.O.format(e,"YYYY-MM")){var t=c.O.format(e,"MMMM").toLocaleLowerCase(),a=(new Date).getFullYear(),r=n.getFullYear(),o={application:p.O.CALENDAR,action:v.e.Calendar.CALENDAR_MONTH,args:[t]};a!==r&&(o.params={year:r}),i.Q.AppLinkHelper.trigger(o)}}else i.Q.AppLinkHelper.trigger({application:p.O.CALENDAR,action:v.e.Calendar.CALENDAR})},startDate:f,endDate:h}}var Le=n(74590),Te=o.T.encloseNamespace("specialEventCalendar.calendarView"),xe={whatsNew:{application:p.O.CONTENT_UPDATES,action:v.e.ContentUpdates.CONTENT_UPDATES},forYou:{application:p.O.DASHBOARD,action:v.e.Dashboard.HOME},calendar:{application:p.O.CALENDAR,action:v.e.Calendar.CALENDAR}},je=c.O.format(new Date,"MMMM-YYYY").toLocaleLowerCase();function He(e){var t=(0,f.y)(s.R.Subject,null,e.presentationSlug,!0).presentation,n=(0,Le.N)(e.presentationSlug),a=n.showCalendar,o=n.isLoading,v=function(e){if(!e)return!0;if(!c.O.formatIsValid(e,"MMMM-YYYY",!0))return!1;var t=oe()(e,"MMMM-YYYY").toDate();return c.O.isSame(t,ce,"month")||c.O.isAfter(t,ce,"month")}(e.month);r().useEffect((function(){o||a||i.Q.AppLinkHelper.trigger(xe.forYou,{replace:!0})}),[a,o]);var p,y=(p=e.month)?oe()(p,"MMMM-YYYY").toDate():c.O.parseDateString(),g=Ie(y),E=g.monthDate,b=g.setMonthDate,O=g.weekDays,D=g.weekDaysHeader,M=g.startDate,C=g.endDate,k=function(e,t){var n=(0,f.y)(s.R.Subject,null,t,!0).presentation,a=null==n?void 0:n.id,r=we(ve(e),2),o=r[0],i=r[1],l=we(ve(c.O.add(e,1,"month")),2),u=l[0],d=l[1],m=we(ve(c.O.subtract(e,1,"month")),2),v=m[0],p=m[1],h=Me.a.useBasicFetch(o&&i&&a&&Ce.N.calendarEvents(c.O.format(o,"YYYY-MM-DD"),c.O.format(i,"YYYY-MM-DD"),a)),y=Me.a.useBasicFetch(u&&d&&a&&Ce.N.calendarEvents(c.O.format(u,"YYYY-MM-DD"),c.O.format(d,"YYYY-MM-DD"),a)),g=Me.a.useBasicFetch(v&&p&&a&&Ce.N.calendarEvents(c.O.format(v,"YYYY-MM-DD"),c.O.format(p,"YYYY-MM-DD"),a));return{events:ie.m.uniq([].concat(ke(g.data||[]),ke(h.data||[]),ke(y.data||[])),(function(e){return e.specialEventId})),loaded:h.hasCompleted}}(y,e.presentationSlug),w=k.events,N=k.loaded,Y=c.O.format(E,"MMMM YYYY");return(0,u.M)(m.C.getDefaultMetadata({title:Y,phraseContext:{phraseHandler:Te,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:h.f.getCanonicalLink({allowedParams:["year"]}),allowIndexing:h.f.allowIndexing()})),null===e.month||v?o||!(null==t?void 0:t.id)?r().createElement(r().Fragment,null):r().createElement("div",{className:"bg-white px-3"},r().createElement(l.z,{type:d.DashboardUserType.Staff,appLinks:xe,showCalendar:a,active:"calendar"}),r().createElement(Ee,{monthDate:E,setViewingMonthDate:b}),r().createElement(ae,{weekDays:O,weekDaysHeader:D,events:w,monthQuery:{from:null==M?void 0:M.toString(),to:null==C?void 0:C.toString()},viewingMonth:y,eventsLoaded:N,presentationId:t.id})):r().createElement(De,{appLink:Object.assign(Object.assign({},xe.calendar),{args:[je]})})}},87432:(e,t,n)=>{n.d(t,{Z:()=>a});const a={pillTabSelector:"Hdi6o",pillItem:"hUJx1"}}}]);