@clickview/lite 0.30.2 → 0.31.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (570) hide show
  1. package/dist/bundles.json +3 -3
  2. package/dist/css/{2856-lite-21cbe59080.chunk.css → 1064-lite-e6ec84fd3f.chunk.css} +10 -8
  3. package/dist/css/{9556-lite-1217c582af.chunk.css → 1285-lite-f0b44829ca.chunk.css} +1 -0
  4. package/dist/css/{6427-lite-df0bdfb283.chunk.css → 1291-lite-1c4780743f.chunk.css} +3 -2
  5. package/dist/css/1366-lite-0239ab3e7e.chunk.css +27 -0
  6. package/dist/css/{6152-lite-1708f1512d.chunk.css → 1526-lite-d9c7560726.chunk.css} +2 -1
  7. package/dist/css/162-lite-32e60d7e18.chunk.css +37 -0
  8. package/dist/css/1726-lite-137426e119.chunk.css +1 -0
  9. package/dist/css/{8531-lite-45c116a848.chunk.css → 1781-lite-d3216fb72f.chunk.css} +15 -14
  10. package/dist/css/{1820-lite-ef968a403a.chunk.css → 1820-lite-2e8b8f3d56.chunk.css} +1 -0
  11. package/dist/css/{7510-lite-5a94c338d4.chunk.css → 1863-lite-41eac57107.chunk.css} +2 -1
  12. package/dist/css/1977-lite-22ea72f8e3.chunk.css +11 -0
  13. package/dist/css/{4812-lite-9cf3338f3e.chunk.css → 2066-lite-4e16a83a36.chunk.css} +36 -34
  14. package/dist/css/{5347-lite-f8824ba1b2.chunk.css → 2095-lite-32dcae3b59.chunk.css} +3 -1
  15. package/dist/css/{3879-lite-8b6845e895.chunk.css → 2118-lite-74522bc90f.chunk.css} +0 -1
  16. package/dist/css/{7069-lite-84d84f9643.chunk.css → 2208-lite-2d92008860.chunk.css} +2 -1
  17. package/dist/css/{3129-lite-8dcbcce0ae.chunk.css → 2235-lite-da165be245.chunk.css} +2 -1
  18. package/dist/css/{2675-lite-4edf022f84.chunk.css → 2477-lite-416e958638.chunk.css} +10 -8
  19. package/dist/css/{6884-lite-b671289d33.chunk.css → 2701-lite-62beed2a51.chunk.css} +17 -14
  20. package/dist/css/{5356-lite-fe6a7995dc.chunk.css → 2729-lite-15aa778737.chunk.css} +10 -8
  21. package/dist/css/{157-lite-4062b848d8.chunk.css → 275-lite-71b01cc990.chunk.css} +10 -8
  22. package/dist/css/{6325-lite-c92aa18439.chunk.css → 3012-lite-35885ce429.chunk.css} +3 -2
  23. package/dist/css/3108-lite-78e825f26e.chunk.css +10 -0
  24. package/dist/css/3125-lite-29265dec67.chunk.css +30 -0
  25. package/dist/css/{3505-lite-f13e4562ae.chunk.css → 3154-lite-11158838c0.chunk.css} +4 -3
  26. package/dist/css/355-lite-271a4bb3d4.chunk.css +33 -0
  27. package/dist/css/{3645-lite-85a5f1ffe8.chunk.css → 3645-lite-304423256b.chunk.css} +2 -1
  28. package/dist/css/{3245-lite-1708f1512d.chunk.css → 3654-lite-da165be245.chunk.css} +3 -2
  29. package/dist/css/{3094-lite-9473436b64.chunk.css → 3755-lite-21f15b7906.chunk.css} +7 -6
  30. package/dist/css/{8944-lite-74cb244872.chunk.css → 389-lite-f591cce0a7.chunk.css} +1 -0
  31. package/dist/css/{8882-lite-b671289d33.chunk.css → 4026-lite-62beed2a51.chunk.css} +17 -14
  32. package/dist/css/4052-lite-6bf4f7a77b.chunk.css +33 -0
  33. package/dist/css/{65-lite-f6ef9091fb.chunk.css → 4145-lite-a27eec9ae8.chunk.css} +9 -7
  34. package/dist/css/{996-lite-bd985bffcc.chunk.css → 4229-lite-6aa69cd401.chunk.css} +22 -20
  35. package/dist/css/{9642-lite-e8f5b31ec7.chunk.css → 4380-lite-cdf9814e9a.chunk.css} +11 -8
  36. package/dist/css/{375-lite-8dcbcce0ae.chunk.css → 4393-lite-da165be245.chunk.css} +2 -1
  37. package/dist/css/4436-lite-ebe682079f.chunk.css +5 -0
  38. package/dist/css/4484-lite-204fa1d3ba.chunk.css +13 -0
  39. package/dist/css/{4090-lite-c73b1d27de.chunk.css → 4537-lite-beac80e560.chunk.css} +5 -4
  40. package/dist/css/4690-lite-a4fdd7e61e.chunk.css +4 -0
  41. package/dist/css/{4840-lite-fe6a7995dc.chunk.css → 4874-lite-15aa778737.chunk.css} +10 -8
  42. package/dist/css/4901-lite-d395807101.chunk.css +12 -0
  43. package/dist/css/{8779-lite-2daf9e9a3c.chunk.css → 4942-lite-bd40e9c904.chunk.css} +1 -0
  44. package/dist/css/5268-lite-bd40e9c904.chunk.css +4 -0
  45. package/dist/css/{5330-lite-80b37de1cd.chunk.css → 5590-lite-e6ec84fd3f.chunk.css} +12 -13
  46. package/dist/css/{5595-lite-3443a53fd0.chunk.css → 5595-lite-2e6f96854b.chunk.css} +2 -0
  47. package/dist/css/{9814-lite-9acceb877a.chunk.css → 6117-lite-fe222571f3.chunk.css} +3 -2
  48. package/dist/css/{7808-lite-a1ae83bd63.chunk.css → 6154-lite-b8ba830cd3.chunk.css} +9 -8
  49. package/dist/css/{8072-lite-98599b0065.chunk.css → 6254-lite-d969bbf4ac.chunk.css} +9 -7
  50. package/dist/css/6330-lite-bd40e9c904.chunk.css +4 -0
  51. package/dist/css/{8300-lite-cca9a2f323.chunk.css → 6689-lite-385dfbe1d8.chunk.css} +2 -1
  52. package/dist/css/{9029-lite-426f004e96.chunk.css → 6822-lite-927bfd9703.chunk.css} +16 -14
  53. package/dist/css/6866-lite-137426e119.chunk.css +1 -0
  54. package/dist/css/6913-lite-137426e119.chunk.css +1 -0
  55. package/dist/css/{5833-lite-953b2df0e3.chunk.css → 6930-lite-e4bd458c08.chunk.css} +1 -0
  56. package/dist/css/{5533-lite-c62cfcd0ef.chunk.css → 6932-lite-944c5933dc.chunk.css} +9 -7
  57. package/dist/css/7056-lite-32ce104e72.chunk.css +2 -0
  58. package/dist/css/{2835-lite-8b6845e895.chunk.css → 7112-lite-01b143fa0b.chunk.css} +2 -1
  59. package/dist/css/{5869-lite-4591628509.chunk.css → 7203-lite-65aaa80b60.chunk.css} +15 -11
  60. package/dist/css/{2755-lite-ca3921d92f.chunk.css → 7286-lite-da823e464b.chunk.css} +9 -7
  61. package/dist/css/{6186-lite-7dc5e5f000.chunk.css → 7341-lite-abb86816df.chunk.css} +1 -0
  62. package/dist/css/7515-lite-01b143fa0b.chunk.css +3 -0
  63. package/dist/css/7555-lite-da165be245.chunk.css +4 -0
  64. package/dist/css/{9902-lite-0bafaff9d8.chunk.css → 7952-lite-0a9d045149.chunk.css} +9 -7
  65. package/dist/css/{1410-lite-26ab29aa8c.chunk.css → 8035-lite-e6ec84fd3f.chunk.css} +11 -9
  66. package/dist/css/{5940-lite-a4cdb20903.chunk.css → 8367-lite-a3507f7491.chunk.css} +3 -2
  67. package/dist/css/{4210-lite-aafbbb1c85.chunk.css → 8500-lite-6cb624c329.chunk.css} +11 -9
  68. package/dist/css/{5645-lite-e8f5b31ec7.chunk.css → 8556-lite-cdf9814e9a.chunk.css} +11 -8
  69. package/dist/css/{8830-lite-fb1cdc777e.chunk.css → 8830-lite-6ec13eef7c.chunk.css} +1 -0
  70. package/dist/css/8960-lite-9068589bd0.chunk.css +32 -0
  71. package/dist/css/{1805-lite-55dbd057b8.chunk.css → 9118-lite-843a13bfcc.chunk.css} +2 -1
  72. package/dist/css/9484-lite-bd40e9c904.chunk.css +4 -0
  73. package/dist/css/{1419-lite-d52c7e4c5a.chunk.css → 9714-lite-194caaa213.chunk.css} +7 -6
  74. package/dist/css/{lite-app-de899ee69e.css → lite-app-1d0c2fd2b0.css} +16 -105
  75. package/dist/languages/en-gb.json +4218 -0
  76. package/dist/languages/en-us.json +4218 -0
  77. package/dist/languages/en.json +1 -1
  78. package/dist/scripts/1064-f67592534f-lite.chunk.js +1 -0
  79. package/dist/scripts/{5606-217c73cdd7-lite.chunk.js → 1090-ab8f0bb780-lite.chunk.js} +1 -1
  80. package/dist/scripts/{1106-0f86da7d7a-lite.chunk.js → 1106-bff7c39251-lite.chunk.js} +1 -1
  81. package/dist/scripts/{1200-549e8b8abc-lite.chunk.js → 1200-bec7db5b08-lite.chunk.js} +2 -2
  82. package/dist/scripts/1285-808ddb5840-lite.chunk.js +1 -0
  83. package/dist/scripts/1291-71d52440ec-lite.chunk.js +1 -0
  84. package/dist/scripts/1341-4d2b44ea1d-lite.chunk.js +1 -0
  85. package/dist/scripts/{1354-3346c46c0a-lite.chunk.js → 1354-635a2024da-lite.chunk.js} +2 -2
  86. package/dist/scripts/1366-97fd1ee802-lite.chunk.js +2 -0
  87. package/dist/scripts/147-82593463bf-lite.chunk.js +1 -0
  88. package/dist/scripts/1475-b95463b549-lite.chunk.js +1 -0
  89. package/dist/scripts/1517-c7b2628bf5-lite.chunk.js +1 -0
  90. package/dist/scripts/{1518-015dad7e32-lite.chunk.js → 1518-3c154650f6-lite.chunk.js} +1 -1
  91. package/dist/scripts/1526-4beff8cab8-lite.chunk.js +1 -0
  92. package/dist/scripts/1536-46e6a18e52-lite.chunk.js +1 -0
  93. package/dist/scripts/156-1752870661-lite.chunk.js +1 -0
  94. package/dist/scripts/{1592-7573d29b17-lite.chunk.js → 1592-68884d6d6c-lite.chunk.js} +2 -2
  95. package/dist/scripts/162-e4b981a0ac-lite.chunk.js +2 -0
  96. package/dist/scripts/{1628-14ff83c3ab-lite.chunk.js → 1628-b13c0d7b41-lite.chunk.js} +1 -1
  97. package/dist/scripts/1655-80e664abd2-lite.chunk.js +1 -0
  98. package/dist/scripts/1726-ba13ed4678-lite.chunk.js +1 -0
  99. package/dist/scripts/1766-984f175880-lite.chunk.js +1 -0
  100. package/dist/scripts/1781-c10bf95537-lite.chunk.js +1 -0
  101. package/dist/scripts/1794-c90de6e8b5-lite.chunk.js +1 -0
  102. package/dist/scripts/1818-d24058bd8f-lite.chunk.js +1 -0
  103. package/dist/scripts/1820-7e316e771c-lite.chunk.js +1 -0
  104. package/dist/scripts/{1837-d61969e2e5-lite.chunk.js → 1837-0673045eda-lite.chunk.js} +1 -1
  105. package/dist/scripts/1863-193dd09637-lite.chunk.js +1 -0
  106. package/dist/scripts/{3200-34b13082a8-lite.chunk.js → 1891-c6c9089212-lite.chunk.js} +1 -1
  107. package/dist/scripts/1913-255f9695d4-lite.chunk.js +1 -0
  108. package/dist/scripts/{1924-cba94abb2d-lite.chunk.js → 1924-3da4250730-lite.chunk.js} +1 -1
  109. package/dist/scripts/1934-a972017a0c-lite.chunk.js +2 -0
  110. package/dist/scripts/1934-a972017a0c-lite.chunk.js.LICENSE.txt +9 -0
  111. package/dist/scripts/{1943-9885fdda1a-lite.chunk.js → 1943-119060ac7f-lite.chunk.js} +1 -1
  112. package/dist/scripts/1958-14838db334-lite.chunk.js +1 -0
  113. package/dist/scripts/1977-5abe20f323-lite.chunk.js +2 -0
  114. package/dist/scripts/1977-5abe20f323-lite.chunk.js.LICENSE.txt +11 -0
  115. package/dist/scripts/2066-035a4e9ee9-lite.chunk.js +2 -0
  116. package/dist/scripts/2095-0f43115eb1-lite.chunk.js +1 -0
  117. package/dist/scripts/2118-e4f8b7b15b-lite.chunk.js +2 -0
  118. package/dist/scripts/{2175-0f84f00e1b-lite.chunk.js → 2175-0ee6619ca7-lite.chunk.js} +1 -1
  119. package/dist/scripts/{2199-d847f87dff-lite.chunk.js → 2199-e53e42509e-lite.chunk.js} +1 -1
  120. package/dist/scripts/2208-42904c2f44-lite.chunk.js +1 -0
  121. package/dist/scripts/{2229-3e6a038b93-lite.chunk.js → 2229-2f18b946ae-lite.chunk.js} +1 -1
  122. package/dist/scripts/2235-290199467a-lite.chunk.js +1 -0
  123. package/dist/scripts/2269-28704b094a-lite.chunk.js +1 -0
  124. package/dist/scripts/{227-b2189f910f-lite.chunk.js → 227-09e6fb95db-lite.chunk.js} +1 -1
  125. package/dist/scripts/2279-634b7aa366-lite.chunk.js +1 -0
  126. package/dist/scripts/{2318-0ff14c0bd3-lite.chunk.js → 2318-fb3aa4398a-lite.chunk.js} +1 -1
  127. package/dist/scripts/{2469-a665c8bcd7-lite.chunk.js → 2469-90dd90645b-lite.chunk.js} +1 -1
  128. package/dist/scripts/2477-8af0dd9a48-lite.chunk.js +1 -0
  129. package/dist/scripts/{2561-6e9be00863-lite.chunk.js → 2561-1e0b389a7a-lite.chunk.js} +1 -1
  130. package/dist/scripts/{2566-4d4210b567-lite.chunk.js → 2566-2f7100a498-lite.chunk.js} +1 -1
  131. package/dist/scripts/2592-24cd43fffe-lite.chunk.js +1 -0
  132. package/dist/scripts/2608-e01d98709d-lite.chunk.js +1 -0
  133. package/dist/scripts/{2665-1b4bfb587b-lite.chunk.js → 2665-cb6dff1d0e-lite.chunk.js} +1 -1
  134. package/dist/scripts/2701-e11c235912-lite.chunk.js +1 -0
  135. package/dist/scripts/2729-d0b201806b-lite.chunk.js +1 -0
  136. package/dist/scripts/275-02cb3cbc61-lite.chunk.js +1 -0
  137. package/dist/scripts/2956-11016d6da1-lite.chunk.js +1 -0
  138. package/dist/scripts/{2966-6cea808843-lite.chunk.js → 2966-fbcd8659a7-lite.chunk.js} +1 -1
  139. package/dist/scripts/3003-0ff3ea9398-lite.chunk.js +1 -0
  140. package/dist/scripts/3012-4f960076c8-lite.chunk.js +1 -0
  141. package/dist/scripts/3020-cf93b2862e-lite.chunk.js +1 -0
  142. package/dist/scripts/3093-d4d47a261b-lite.chunk.js +1 -0
  143. package/dist/scripts/3108-59f96004c1-lite.chunk.js +1 -0
  144. package/dist/scripts/3125-919003fe6b-lite.chunk.js +1 -0
  145. package/dist/scripts/3154-14324fdea1-lite.chunk.js +1 -0
  146. package/dist/scripts/{3171-8b56e5dc82-lite.chunk.js → 3171-2f782ced16-lite.chunk.js} +1 -1
  147. package/dist/scripts/3216-43bdb234b7-lite.chunk.js +1 -0
  148. package/dist/scripts/3285-591f1481e2-lite.chunk.js +1 -0
  149. package/dist/scripts/3301-1370b99f05-lite.chunk.js +1 -0
  150. package/dist/scripts/{3468-1402df4f32-lite.chunk.js → 3468-4d6fd53bf9-lite.chunk.js} +1 -1
  151. package/dist/scripts/3514-8a8dd2b680-lite.chunk.js +1 -0
  152. package/dist/scripts/3533-faab1d1e13-lite.chunk.js +1 -0
  153. package/dist/scripts/355-9d84132a7e-lite.chunk.js +1 -0
  154. package/dist/scripts/{3602-86e3ad2e1c-lite.chunk.js → 3602-9e631593b1-lite.chunk.js} +2 -2
  155. package/dist/scripts/3645-1cb04952b3-lite.chunk.js +2 -0
  156. package/dist/scripts/3654-5c8fc842aa-lite.chunk.js +1 -0
  157. package/dist/scripts/3667-286f44bcc9-lite.chunk.js +2 -0
  158. package/dist/scripts/{3728-200482d1b0-lite.chunk.js → 3728-12a39b4a42-lite.chunk.js} +1 -1
  159. package/dist/scripts/3729-74f7cebe6d-lite.chunk.js +1 -0
  160. package/dist/scripts/3754-8f2e909218-lite.chunk.js +1 -0
  161. package/dist/scripts/3755-8e694cf47f-lite.chunk.js +1 -0
  162. package/dist/scripts/3787-76a04b7060-lite.chunk.js +1 -0
  163. package/dist/scripts/383-be043be921-lite.chunk.js +1 -0
  164. package/dist/scripts/3836-9829ebb938-lite.chunk.js +1 -0
  165. package/dist/scripts/3848-a8f23fe5d2-lite.chunk.js +1 -0
  166. package/dist/scripts/3849-7291db19ee-lite.chunk.js +1 -0
  167. package/dist/scripts/389-1c741de6f0-lite.chunk.js +1 -0
  168. package/dist/scripts/3962-54498beb2f-lite.chunk.js +1 -0
  169. package/dist/scripts/3966-5a706a9450-lite.chunk.js +1 -0
  170. package/dist/scripts/4026-de6dccdbbb-lite.chunk.js +1 -0
  171. package/dist/scripts/4052-92609e6d25-lite.chunk.js +1 -0
  172. package/dist/scripts/4067-48c21d9303-lite.chunk.js +1 -0
  173. package/dist/scripts/414-553dbd2774-lite.chunk.js +1 -0
  174. package/dist/scripts/4145-7d354920a2-lite.chunk.js +1 -0
  175. package/dist/scripts/{4182-2c2c5571a6-lite.chunk.js → 4182-e168bebe60-lite.chunk.js} +1 -1
  176. package/dist/scripts/4229-43454055df-lite.chunk.js +1 -0
  177. package/dist/scripts/4290-6356cbba4b-lite.chunk.js +1 -0
  178. package/dist/scripts/4326-9a04c1675b-lite.chunk.js +1 -0
  179. package/dist/scripts/{4343-c52a4e0042-lite.chunk.js → 4343-ab569983cb-lite.chunk.js} +1 -1
  180. package/dist/scripts/4380-165a473ef0-lite.chunk.js +1 -0
  181. package/dist/scripts/4393-6d40d84805-lite.chunk.js +1 -0
  182. package/dist/scripts/4417-8ae222cad6-lite.chunk.js +1 -0
  183. package/dist/scripts/{4423-0321858398-lite.chunk.js → 4423-15fcd2a632-lite.chunk.js} +1 -1
  184. package/dist/scripts/4436-813f2de728-lite.chunk.js +1 -0
  185. package/dist/scripts/4484-65672447cd-lite.chunk.js +1 -0
  186. package/dist/scripts/4537-01038c7e8a-lite.chunk.js +1 -0
  187. package/dist/scripts/{4541-a119433212-lite.chunk.js → 4541-59de215916-lite.chunk.js} +1 -1
  188. package/dist/scripts/4617-b2272ef83d-lite.chunk.js +1 -0
  189. package/dist/scripts/4632-6b1fc03e10-lite.chunk.js +1 -0
  190. package/dist/scripts/{4676-020a60c057-lite.chunk.js → 4676-63c3c6916c-lite.chunk.js} +2 -2
  191. package/dist/scripts/4690-ddb6f8e33d-lite.chunk.js +1 -0
  192. package/dist/scripts/{1830-1f2cd59b2a-lite.chunk.js → 4763-7c2c7a86e0-lite.chunk.js} +1 -1
  193. package/dist/scripts/{4770-3c09f8eaa4-lite.chunk.js → 4770-02ee901240-lite.chunk.js} +1 -1
  194. package/dist/scripts/{482-97936e39ed-lite.chunk.js → 482-af25a29b0b-lite.chunk.js} +1 -1
  195. package/dist/scripts/4893-8e3089e4e0-lite.chunk.js +1 -0
  196. package/dist/scripts/{4895-9f5bae5afe-lite.chunk.js → 4895-c190fe08db-lite.chunk.js} +1 -1
  197. package/dist/scripts/4901-8082b8c806-lite.chunk.js +2 -0
  198. package/dist/scripts/4942-e1855d3e14-lite.chunk.js +2 -0
  199. package/dist/scripts/{5018-a0552ac60e-lite.chunk.js → 5018-5e67147716-lite.chunk.js} +1 -1
  200. package/dist/scripts/5041-f44af0519b-lite.chunk.js +1 -0
  201. package/dist/scripts/{510-88d82082a6-lite.chunk.js → 510-6b29b1c65e-lite.chunk.js} +1 -1
  202. package/dist/scripts/5173-b9dacfa8f7-lite.chunk.js +1 -0
  203. package/dist/scripts/5229-1fb29b4635-lite.chunk.js +1 -0
  204. package/dist/scripts/5268-7044ddf2c8-lite.chunk.js +2 -0
  205. package/dist/scripts/528-fa34d4e176-lite.chunk.js +1 -0
  206. package/dist/scripts/5291-7cbea59e7a-lite.chunk.js +1 -0
  207. package/dist/scripts/5385-fe599acaba-lite.chunk.js +1 -0
  208. package/dist/scripts/5395-34cf703caa-lite.chunk.js +1 -0
  209. package/dist/scripts/5590-0fab2043f5-lite.chunk.js +1 -0
  210. package/dist/scripts/5595-26ed2f284d-lite.chunk.js +1 -0
  211. package/dist/scripts/{5622-f59cb146d5-lite.chunk.js → 5622-2e03de5953-lite.chunk.js} +2 -2
  212. package/dist/scripts/{9016-5d3b7ebca7-lite.chunk.js → 5756-29a508f73a-lite.chunk.js} +1 -1
  213. package/dist/scripts/5776-b749e84450-lite.chunk.js +1 -0
  214. package/dist/scripts/{5823-931575f97a-lite.chunk.js → 5823-d64e3ad325-lite.chunk.js} +1 -1
  215. package/dist/scripts/5914-cfa6c18819-lite.chunk.js +1 -0
  216. package/dist/scripts/5974-1581f6f7f6-lite.chunk.js +1 -0
  217. package/dist/scripts/{5134-2cde05b9e1-lite.chunk.js → 5983-45f1df7cdf-lite.chunk.js} +1 -1
  218. package/dist/scripts/5986-d373b39115-lite.chunk.js +1 -0
  219. package/dist/scripts/{6057-ee0fc12212-lite.chunk.js → 6057-04eb525941-lite.chunk.js} +1 -1
  220. package/dist/scripts/6117-84c093b8be-lite.chunk.js +1 -0
  221. package/dist/scripts/615-e5cc2b7cdd-lite.chunk.js +1 -0
  222. package/dist/scripts/6154-ffb893a889-lite.chunk.js +1 -0
  223. package/dist/scripts/6158-0d65ceba28-lite.chunk.js +1 -0
  224. package/dist/scripts/{6159-6c381cdb40-lite.chunk.js → 6159-87c08c857e-lite.chunk.js} +1 -1
  225. package/dist/scripts/6254-1268090b9d-lite.chunk.js +1 -0
  226. package/dist/scripts/6263-9c75a88d29-lite.chunk.js +1 -0
  227. package/dist/scripts/6274-45d001b699-lite.chunk.js +1 -0
  228. package/dist/scripts/6285-3c6ecdb063-lite.chunk.js +1 -0
  229. package/dist/scripts/{6302-0403b6cfba-lite.chunk.js → 6302-4436120348-lite.chunk.js} +1 -1
  230. package/dist/scripts/6330-f66286f1bd-lite.chunk.js +1 -0
  231. package/dist/scripts/{6368-07b7907e8c-lite.chunk.js → 6368-a2e4a426ab-lite.chunk.js} +1 -1
  232. package/dist/scripts/6370-656f9c3e95-lite.chunk.js +1 -0
  233. package/dist/scripts/{6450-7fd1a35808-lite.chunk.js → 6450-2c3a1e7763-lite.chunk.js} +1 -1
  234. package/dist/scripts/{6465-f2556508fa-lite.chunk.js → 6465-a18bb45727-lite.chunk.js} +1 -1
  235. package/dist/scripts/{6480-3664de76df-lite.chunk.js → 6480-d55c2f6f97-lite.chunk.js} +1 -1
  236. package/dist/scripts/6493-9b29994c11-lite.chunk.js +1 -0
  237. package/dist/scripts/6572-925e1f6cd9-lite.chunk.js +1 -0
  238. package/dist/scripts/{6604-9fdc49ea46-lite.chunk.js → 6604-f78bf0630f-lite.chunk.js} +1 -1
  239. package/dist/scripts/6689-19a76c14e6-lite.chunk.js +1 -0
  240. package/dist/scripts/{6801-e186fa1fde-lite.chunk.js → 6801-aa9f8c265b-lite.chunk.js} +1 -1
  241. package/dist/scripts/6817-53272d5d88-lite.chunk.js +1 -0
  242. package/dist/scripts/{6821-fb59d25618-lite.chunk.js → 6821-cc3095a218-lite.chunk.js} +1 -1
  243. package/dist/scripts/6822-88521d238b-lite.chunk.js +1 -0
  244. package/dist/scripts/{6823-272c18d11d-lite.chunk.js → 6823-0083a3231c-lite.chunk.js} +2 -2
  245. package/dist/scripts/6866-a560486b95-lite.chunk.js +1 -0
  246. package/dist/scripts/{6873-d9d9bbf8de-lite.chunk.js → 6873-985ec69710-lite.chunk.js} +1 -1
  247. package/dist/scripts/689-3c6e57d812-lite.chunk.js +1 -0
  248. package/dist/scripts/{6896-bcd89e6cf3-lite.chunk.js → 6896-2890da233e-lite.chunk.js} +2 -2
  249. package/dist/scripts/691-720de5af0d-lite.chunk.js +2 -0
  250. package/dist/scripts/691-720de5af0d-lite.chunk.js.LICENSE.txt +13 -0
  251. package/dist/scripts/6913-8d05107c68-lite.chunk.js +1 -0
  252. package/dist/scripts/6930-24a4e7c71a-lite.chunk.js +1 -0
  253. package/dist/scripts/6932-4fceb404ed-lite.chunk.js +1 -0
  254. package/dist/scripts/{7017-b9352b104b-lite.chunk.js → 7017-cdf324e732-lite.chunk.js} +2 -2
  255. package/dist/scripts/{7030-d27b42e6b3-lite.chunk.js → 7030-67a3d8acb6-lite.chunk.js} +2 -2
  256. package/dist/scripts/7045-f578d0a23f-lite.chunk.js +1 -0
  257. package/dist/scripts/7052-69903b989d-lite.chunk.js +2 -0
  258. package/dist/scripts/7056-31c38a89dd-lite.chunk.js +1 -0
  259. package/dist/scripts/7072-9f3b5575a2-lite.chunk.js +2 -0
  260. package/dist/scripts/7108-5a736ac3bd-lite.chunk.js +1 -0
  261. package/dist/scripts/7112-88336f937e-lite.chunk.js +2 -0
  262. package/dist/scripts/7115-cb3e6b9f0e-lite.chunk.js +1 -0
  263. package/dist/scripts/7117-31061aa201-lite.chunk.js +1 -0
  264. package/dist/scripts/{7128-394a5b25cc-lite.chunk.js → 7128-bb325140b2-lite.chunk.js} +1 -1
  265. package/dist/scripts/714-302bba8f82-lite.chunk.js +1 -0
  266. package/dist/scripts/{7172-8a34e997ea-lite.chunk.js → 7172-e2add93436-lite.chunk.js} +1 -1
  267. package/dist/scripts/7203-4cd51b60a5-lite.chunk.js +1 -0
  268. package/dist/scripts/7205-84a68e0ae6-lite.chunk.js +1 -0
  269. package/dist/scripts/7221-c8f716fead-lite.chunk.js +2 -0
  270. package/dist/scripts/7286-1379008638-lite.chunk.js +1 -0
  271. package/dist/scripts/7293-d2339dc134-lite.chunk.js +1 -0
  272. package/dist/scripts/{7318-67ea8ef011-lite.chunk.js → 7318-7aa5593557-lite.chunk.js} +2 -2
  273. package/dist/scripts/{6186-816b26cc1d-lite.chunk.js → 7341-eb1bad3d02-lite.chunk.js} +1 -1
  274. package/dist/scripts/{7385-3d4bc59e02-lite.chunk.js → 7385-42b24a5db4-lite.chunk.js} +1 -1
  275. package/dist/scripts/7409-c0d306ab4f-lite.chunk.js +1 -0
  276. package/dist/scripts/{7506-c14efc267c-lite.chunk.js → 7506-3eaf344940-lite.chunk.js} +1 -1
  277. package/dist/scripts/{3879-1f6a71b0e1-lite.chunk.js → 7515-08ba1635e4-lite.chunk.js} +2 -2
  278. package/dist/scripts/754-4799619844-lite.chunk.js +1 -0
  279. package/dist/scripts/7555-0c28dae806-lite.chunk.js +1 -0
  280. package/dist/scripts/{7706-c173a4adce-lite.chunk.js → 7706-85973863b8-lite.chunk.js} +1 -1
  281. package/dist/scripts/7708-168b28b4b9-lite.chunk.js +1 -0
  282. package/dist/scripts/7724-66f50b3e25-lite.chunk.js +1 -0
  283. package/dist/scripts/7767-6dd2c2f5d5-lite.chunk.js +1 -0
  284. package/dist/scripts/{7855-fa28a68dc2-lite.chunk.js → 7855-d0b3720477-lite.chunk.js} +1 -1
  285. package/dist/scripts/{7888-9495520bce-lite.chunk.js → 7888-e89b67d09f-lite.chunk.js} +1 -1
  286. package/dist/scripts/{7939-9be850a448-lite.chunk.js → 7939-069695c2b5-lite.chunk.js} +1 -1
  287. package/dist/scripts/7950-6be639d990-lite.chunk.js +2 -0
  288. package/dist/scripts/7950-6be639d990-lite.chunk.js.LICENSE.txt +1 -0
  289. package/dist/scripts/{9902-ca0f065d90-lite.chunk.js → 7952-e47c1e49a3-lite.chunk.js} +1 -1
  290. package/dist/scripts/{8025-a09100f5f8-lite.chunk.js → 8025-1a3d147ab1-lite.chunk.js} +1 -1
  291. package/dist/scripts/8035-cfc9101b02-lite.chunk.js +1 -0
  292. package/dist/scripts/{8038-d984b789be-lite.chunk.js → 8038-64097776ae-lite.chunk.js} +1 -1
  293. package/dist/scripts/{8046-3042885a1c-lite.chunk.js → 8046-c100682365-lite.chunk.js} +1 -1
  294. package/dist/scripts/{8056-1a59f5f88e-lite.chunk.js → 8056-42c5b638a1-lite.chunk.js} +1 -1
  295. package/dist/scripts/{811-4c21882e66-lite.chunk.js → 811-c0682d38fc-lite.chunk.js} +1 -1
  296. package/dist/scripts/8176-3e3e552896-lite.chunk.js +1 -0
  297. package/dist/scripts/{823-96721061ac-lite.chunk.js → 823-394819b6e2-lite.chunk.js} +1 -1
  298. package/dist/scripts/8252-0e7545a270-lite.chunk.js +1 -0
  299. package/dist/scripts/{1891-fc22c8c80e-lite.chunk.js → 8292-5474c9d05b-lite.chunk.js} +1 -1
  300. package/dist/scripts/8323-7392e64015-lite.chunk.js +2 -0
  301. package/dist/scripts/8323-7392e64015-lite.chunk.js.LICENSE.txt +1 -0
  302. package/dist/scripts/8367-53976b1002-lite.chunk.js +1 -0
  303. package/dist/scripts/{8383-83c172464d-lite.chunk.js → 8383-e5491b0fea-lite.chunk.js} +1 -1
  304. package/dist/scripts/8419-1d91b60d17-lite.chunk.js +1 -0
  305. package/dist/scripts/8466-bfb6296286-lite.chunk.js +1 -0
  306. package/dist/scripts/8500-5a8c54adfb-lite.chunk.js +1 -0
  307. package/dist/scripts/8516-2dd2445007-lite.chunk.js +1 -0
  308. package/dist/scripts/{5645-b39f0da70a-lite.chunk.js → 8556-4258698c18-lite.chunk.js} +1 -1
  309. package/dist/scripts/8564-fa63bdf9ff-lite.chunk.js +1 -0
  310. package/dist/scripts/{8621-c514447ffb-lite.chunk.js → 8621-f56becd41d-lite.chunk.js} +1 -1
  311. package/dist/scripts/8627-a75e8c3c72-lite.chunk.js +1 -0
  312. package/dist/scripts/{8681-f9a8c79ee5-lite.chunk.js → 8681-9e4cc2dbc7-lite.chunk.js} +2 -2
  313. package/dist/scripts/8681-9e4cc2dbc7-lite.chunk.js.LICENSE.txt +1 -0
  314. package/dist/scripts/{872-44713ba930-lite.chunk.js → 872-ec1fa5330c-lite.chunk.js} +1 -1
  315. package/dist/scripts/8729-1a7f483f5d-lite.chunk.js +1 -0
  316. package/dist/scripts/8759-bebac8e7eb-lite.chunk.js +1 -0
  317. package/dist/scripts/8763-8565558446-lite.chunk.js +1 -0
  318. package/dist/scripts/8820-24cd0624e5-lite.chunk.js +1 -0
  319. package/dist/scripts/8830-f87703865e-lite.chunk.js +1 -0
  320. package/dist/scripts/{5877-375dae76a2-lite.chunk.js → 8884-e1b68fb19e-lite.chunk.js} +1 -1
  321. package/dist/scripts/8905-c4379b0814-lite.chunk.js +1 -0
  322. package/dist/scripts/8955-d96a8d96dd-lite.chunk.js +1 -0
  323. package/dist/scripts/{9005-7095f76099-lite.chunk.js → 9005-8da22ad68a-lite.chunk.js} +1 -1
  324. package/dist/scripts/{5512-fdcbe4ecee-lite.chunk.js → 9016-4f396c0fe7-lite.chunk.js} +1 -1
  325. package/dist/scripts/{9038-c51fe905f2-lite.chunk.js → 9038-ff47dcecd1-lite.chunk.js} +1 -1
  326. package/dist/scripts/{9060-b13c55ce5c-lite.chunk.js → 9060-055dda4160-lite.chunk.js} +1 -1
  327. package/dist/scripts/9118-de9f5956d0-lite.chunk.js +1 -0
  328. package/dist/scripts/{9133-b186d465f7-lite.chunk.js → 9133-9e8afb36ee-lite.chunk.js} +1 -1
  329. package/dist/scripts/9151-e185c78133-lite.chunk.js +1 -0
  330. package/dist/scripts/9242-e54f9cc9bc-lite.chunk.js +1 -0
  331. package/dist/scripts/{9264-a3576fe1b7-lite.chunk.js → 9264-d4a3940963-lite.chunk.js} +1 -1
  332. package/dist/scripts/{9273-a6fbfe7f10-lite.chunk.js → 9273-19f7050562-lite.chunk.js} +1 -1
  333. package/dist/scripts/{9428-b732575791-lite.chunk.js → 9428-1f28bc6429-lite.chunk.js} +2 -2
  334. package/dist/scripts/9428-1f28bc6429-lite.chunk.js.LICENSE.txt +1 -0
  335. package/dist/scripts/9455-fe8ba71803-lite.chunk.js +1 -0
  336. package/dist/scripts/{9478-37c6b7c1a2-lite.chunk.js → 9478-9b51791ecb-lite.chunk.js} +2 -2
  337. package/dist/scripts/9478-9b51791ecb-lite.chunk.js.LICENSE.txt +1 -0
  338. package/dist/scripts/9484-cf98c2c51d-lite.chunk.js +2 -0
  339. package/dist/scripts/9484-cf98c2c51d-lite.chunk.js.LICENSE.txt +1 -0
  340. package/dist/scripts/949-4e8c0b0874-lite.chunk.js +1 -0
  341. package/dist/scripts/9522-3c117f4efe-lite.chunk.js +2 -0
  342. package/dist/scripts/9522-3c117f4efe-lite.chunk.js.LICENSE.txt +1 -0
  343. package/dist/scripts/9674-80c7295bd8-lite.chunk.js +1 -0
  344. package/dist/scripts/9714-8f65a1e3d4-lite.chunk.js +1 -0
  345. package/dist/scripts/9798-24409ec696-lite.chunk.js +1 -0
  346. package/dist/scripts/9880-0ea17e51ac-lite.chunk.js +1 -0
  347. package/dist/scripts/{9899-4ff4814e57-lite.chunk.js → 9899-8e434818e4-lite.chunk.js} +1 -1
  348. package/dist/scripts/{9931-8290a97315-lite.chunk.js → 9931-e8eda5c94f-lite.chunk.js} +2 -2
  349. package/dist/scripts/9931-e8eda5c94f-lite.chunk.js.LICENSE.txt +1 -0
  350. package/dist/scripts/9961-ffb664f963-lite.chunk.js +1 -0
  351. package/dist/scripts/bundle-090e4ef8d6.min.js +2 -0
  352. package/dist/scripts/{bundle-42da83f804.min.js.LICENSE.txt → bundle-090e4ef8d6.min.js.LICENSE.txt} +0 -36
  353. package/dist/scripts/polyfills-cf6a3b6e3b.min.js +2 -0
  354. package/dist/scripts/polyfills-cf6a3b6e3b.min.js.LICENSE.txt +1 -0
  355. package/package.json +2 -3
  356. package/.eslintrc.json +0 -3
  357. package/dist/css/1725-lite-784f55ea22.chunk.css +0 -3
  358. package/dist/css/1726-lite-a6069ef511.chunk.css +0 -1
  359. package/dist/css/4690-lite-5a84a37ecb.chunk.css +0 -2
  360. package/dist/css/5048-lite-e3b19547a6.chunk.css +0 -4
  361. package/dist/css/5769-lite-26ab29aa8c.chunk.css +0 -27
  362. package/dist/css/6866-lite-a6069ef511.chunk.css +0 -1
  363. package/dist/css/6913-lite-a6069ef511.chunk.css +0 -1
  364. package/dist/css/7056-lite-2130360eaa.chunk.css +0 -2
  365. package/dist/css/924-lite-1708f1512d.chunk.css +0 -3
  366. package/dist/css/9897-lite-80875dbcaf.chunk.css +0 -1
  367. package/dist/scripts/1291-ed90014a0d-lite.chunk.js +0 -1
  368. package/dist/scripts/1324-b353cefaa0-lite.chunk.js +0 -1
  369. package/dist/scripts/1341-522b48ab88-lite.chunk.js +0 -1
  370. package/dist/scripts/1410-2c7a02d51b-lite.chunk.js +0 -1
  371. package/dist/scripts/1419-813a43acd2-lite.chunk.js +0 -1
  372. package/dist/scripts/1475-e8e933f8ec-lite.chunk.js +0 -1
  373. package/dist/scripts/157-0f37b0d04d-lite.chunk.js +0 -1
  374. package/dist/scripts/1672-6bed3f0c16-lite.chunk.js +0 -2
  375. package/dist/scripts/1725-f91870bf3e-lite.chunk.js +0 -1
  376. package/dist/scripts/1726-e2300b7de6-lite.chunk.js +0 -1
  377. package/dist/scripts/1766-de9cabbd90-lite.chunk.js +0 -1
  378. package/dist/scripts/1805-fb2c59deb6-lite.chunk.js +0 -1
  379. package/dist/scripts/1818-7bce6fbbc5-lite.chunk.js +0 -1
  380. package/dist/scripts/1820-020925054d-lite.chunk.js +0 -1
  381. package/dist/scripts/1913-1f5336f128-lite.chunk.js +0 -1
  382. package/dist/scripts/1958-cf002b0d1c-lite.chunk.js +0 -1
  383. package/dist/scripts/2272-9f8e109564-lite.chunk.js +0 -1
  384. package/dist/scripts/2279-f604704516-lite.chunk.js +0 -1
  385. package/dist/scripts/2608-3fd5d617da-lite.chunk.js +0 -1
  386. package/dist/scripts/2675-a7ad35ae0d-lite.chunk.js +0 -1
  387. package/dist/scripts/2755-5b8e88a5ea-lite.chunk.js +0 -1
  388. package/dist/scripts/2835-a21c8103a7-lite.chunk.js +0 -2
  389. package/dist/scripts/2856-6174c28732-lite.chunk.js +0 -1
  390. package/dist/scripts/3020-90d53525c7-lite.chunk.js +0 -1
  391. package/dist/scripts/3094-3697913391-lite.chunk.js +0 -1
  392. package/dist/scripts/3108-742edbe1cb-lite.chunk.js +0 -1
  393. package/dist/scripts/3129-f71b5ac677-lite.chunk.js +0 -1
  394. package/dist/scripts/3216-f4a39ad76e-lite.chunk.js +0 -1
  395. package/dist/scripts/3245-d069659e8b-lite.chunk.js +0 -1
  396. package/dist/scripts/3285-b6ef740841-lite.chunk.js +0 -1
  397. package/dist/scripts/3378-98b9150947-lite.chunk.js +0 -1
  398. package/dist/scripts/3505-35cda2aacc-lite.chunk.js +0 -1
  399. package/dist/scripts/3514-11b3a7031c-lite.chunk.js +0 -1
  400. package/dist/scripts/3533-141e2a9d8c-lite.chunk.js +0 -1
  401. package/dist/scripts/3645-0023a3c2ef-lite.chunk.js +0 -2
  402. package/dist/scripts/3667-b8cfdfbb44-lite.chunk.js +0 -2
  403. package/dist/scripts/3729-146a85a465-lite.chunk.js +0 -1
  404. package/dist/scripts/375-37936e0321-lite.chunk.js +0 -1
  405. package/dist/scripts/3754-dd8d9ebd14-lite.chunk.js +0 -1
  406. package/dist/scripts/3787-f53a50bb54-lite.chunk.js +0 -1
  407. package/dist/scripts/389-5b4ef87c08-lite.chunk.js +0 -1
  408. package/dist/scripts/3962-698cdf0810-lite.chunk.js +0 -1
  409. package/dist/scripts/4067-e5a60745aa-lite.chunk.js +0 -1
  410. package/dist/scripts/4090-654e4ae340-lite.chunk.js +0 -1
  411. package/dist/scripts/414-451bbb3e9d-lite.chunk.js +0 -1
  412. package/dist/scripts/4210-5102f81ead-lite.chunk.js +0 -1
  413. package/dist/scripts/4326-ecdc420ecb-lite.chunk.js +0 -1
  414. package/dist/scripts/4617-9aabc8fdde-lite.chunk.js +0 -1
  415. package/dist/scripts/4632-816d5010d4-lite.chunk.js +0 -1
  416. package/dist/scripts/4690-3572f41eab-lite.chunk.js +0 -1
  417. package/dist/scripts/4812-60103d16b0-lite.chunk.js +0 -2
  418. package/dist/scripts/4893-378ff6874a-lite.chunk.js +0 -1
  419. package/dist/scripts/5048-7431f34b22-lite.chunk.js +0 -1
  420. package/dist/scripts/5143-9942f1a64c-lite.chunk.js +0 -1
  421. package/dist/scripts/5173-1de1a1084c-lite.chunk.js +0 -1
  422. package/dist/scripts/528-c7f9d5fd8b-lite.chunk.js +0 -1
  423. package/dist/scripts/5291-d8de9e0a12-lite.chunk.js +0 -1
  424. package/dist/scripts/5330-af833082db-lite.chunk.js +0 -1
  425. package/dist/scripts/5347-734b9ab0fe-lite.chunk.js +0 -1
  426. package/dist/scripts/5356-8fe7dbc384-lite.chunk.js +0 -1
  427. package/dist/scripts/5533-6f7c8aeca4-lite.chunk.js +0 -1
  428. package/dist/scripts/5595-1d79fddb5c-lite.chunk.js +0 -1
  429. package/dist/scripts/5769-5d1b10e2e2-lite.chunk.js +0 -1
  430. package/dist/scripts/5776-f888ee7ad1-lite.chunk.js +0 -1
  431. package/dist/scripts/5833-4b2af7ae93-lite.chunk.js +0 -1
  432. package/dist/scripts/5869-a7bf7331bb-lite.chunk.js +0 -1
  433. package/dist/scripts/5914-bb8088b0e8-lite.chunk.js +0 -1
  434. package/dist/scripts/5940-a73965088a-lite.chunk.js +0 -1
  435. package/dist/scripts/5974-6756b06bff-lite.chunk.js +0 -1
  436. package/dist/scripts/5986-2b20ba1dbb-lite.chunk.js +0 -1
  437. package/dist/scripts/6001-6be03df74d-lite.chunk.js +0 -1
  438. package/dist/scripts/6113-16a83d9b44-lite.chunk.js +0 -1
  439. package/dist/scripts/615-adb7956bd2-lite.chunk.js +0 -1
  440. package/dist/scripts/6152-972f7302b9-lite.chunk.js +0 -1
  441. package/dist/scripts/6158-b653e86374-lite.chunk.js +0 -1
  442. package/dist/scripts/6274-80146584e7-lite.chunk.js +0 -1
  443. package/dist/scripts/6285-a26519084a-lite.chunk.js +0 -1
  444. package/dist/scripts/6290-6f61dee7ac-lite.chunk.js +0 -1
  445. package/dist/scripts/6325-178d2f471e-lite.chunk.js +0 -1
  446. package/dist/scripts/6370-96faff5748-lite.chunk.js +0 -1
  447. package/dist/scripts/6381-8a4d61a6f1-lite.chunk.js +0 -1
  448. package/dist/scripts/6427-4b4726de0e-lite.chunk.js +0 -1
  449. package/dist/scripts/6493-241d2f1bce-lite.chunk.js +0 -1
  450. package/dist/scripts/65-551e1329a5-lite.chunk.js +0 -1
  451. package/dist/scripts/6770-35fb1f60dc-lite.chunk.js +0 -1
  452. package/dist/scripts/6817-969a92a7df-lite.chunk.js +0 -1
  453. package/dist/scripts/6866-de4752df6e-lite.chunk.js +0 -1
  454. package/dist/scripts/6884-dbfd65e1c9-lite.chunk.js +0 -1
  455. package/dist/scripts/6913-1d7c241651-lite.chunk.js +0 -1
  456. package/dist/scripts/7045-0b0dc611ab-lite.chunk.js +0 -1
  457. package/dist/scripts/7056-fd8d859ef1-lite.chunk.js +0 -1
  458. package/dist/scripts/7069-7958f074c7-lite.chunk.js +0 -1
  459. package/dist/scripts/7108-411445c569-lite.chunk.js +0 -1
  460. package/dist/scripts/711-ad6a94c63e-lite.chunk.js +0 -1
  461. package/dist/scripts/7115-df1e77b86a-lite.chunk.js +0 -1
  462. package/dist/scripts/714-eea8a3447f-lite.chunk.js +0 -1
  463. package/dist/scripts/7178-85acf5024c-lite.chunk.js +0 -1
  464. package/dist/scripts/7205-b2bb570975-lite.chunk.js +0 -1
  465. package/dist/scripts/7221-1081606a10-lite.chunk.js +0 -2
  466. package/dist/scripts/7293-ecc66c0bc5-lite.chunk.js +0 -1
  467. package/dist/scripts/7409-b4d79d674f-lite.chunk.js +0 -1
  468. package/dist/scripts/7432-a38d4189e4-lite.chunk.js +0 -1
  469. package/dist/scripts/7510-0cfac2b1d7-lite.chunk.js +0 -1
  470. package/dist/scripts/7532-38c921f0c8-lite.chunk.js +0 -1
  471. package/dist/scripts/7708-18f97e6312-lite.chunk.js +0 -1
  472. package/dist/scripts/7767-d2c100f095-lite.chunk.js +0 -1
  473. package/dist/scripts/7808-666eed4323-lite.chunk.js +0 -1
  474. package/dist/scripts/8072-5a950137bc-lite.chunk.js +0 -1
  475. package/dist/scripts/8252-dd337034c3-lite.chunk.js +0 -1
  476. package/dist/scripts/8300-e6f255e4cb-lite.chunk.js +0 -1
  477. package/dist/scripts/8323-caedca162b-lite.chunk.js +0 -2
  478. package/dist/scripts/8419-ad3d004cb9-lite.chunk.js +0 -1
  479. package/dist/scripts/8466-5ed6352c4b-lite.chunk.js +0 -1
  480. package/dist/scripts/8531-f899f4714c-lite.chunk.js +0 -1
  481. package/dist/scripts/8564-f46b198c55-lite.chunk.js +0 -1
  482. package/dist/scripts/8729-7a2c044441-lite.chunk.js +0 -1
  483. package/dist/scripts/8763-9e7a972786-lite.chunk.js +0 -1
  484. package/dist/scripts/8779-40b67fde89-lite.chunk.js +0 -1
  485. package/dist/scripts/8816-b7575df853-lite.chunk.js +0 -1
  486. package/dist/scripts/8820-bf4bbda3f3-lite.chunk.js +0 -1
  487. package/dist/scripts/8830-9d69a3012c-lite.chunk.js +0 -1
  488. package/dist/scripts/8882-5f951653ff-lite.chunk.js +0 -1
  489. package/dist/scripts/8905-c4ef2e6fd9-lite.chunk.js +0 -1
  490. package/dist/scripts/8944-aba9581f23-lite.chunk.js +0 -1
  491. package/dist/scripts/8955-9fa8a98fdb-lite.chunk.js +0 -1
  492. package/dist/scripts/9029-e4d7a95c18-lite.chunk.js +0 -1
  493. package/dist/scripts/9151-6caecead76-lite.chunk.js +0 -1
  494. package/dist/scripts/9226-6cc9ae98fc-lite.chunk.js +0 -1
  495. package/dist/scripts/924-865b1d0fcf-lite.chunk.js +0 -1
  496. package/dist/scripts/9242-389e8e59c6-lite.chunk.js +0 -1
  497. package/dist/scripts/9455-5c0f5b350c-lite.chunk.js +0 -1
  498. package/dist/scripts/949-68ebef3de9-lite.chunk.js +0 -1
  499. package/dist/scripts/9522-1f5efe271e-lite.chunk.js +0 -2
  500. package/dist/scripts/9556-d6901ce835-lite.chunk.js +0 -1
  501. package/dist/scripts/9642-01f2b02ef4-lite.chunk.js +0 -1
  502. package/dist/scripts/9798-d54774ef4e-lite.chunk.js +0 -1
  503. package/dist/scripts/9814-b29f502ae6-lite.chunk.js +0 -1
  504. package/dist/scripts/9880-afbf1e0fc3-lite.chunk.js +0 -1
  505. package/dist/scripts/9897-e26852fc10-lite.chunk.js +0 -1
  506. package/dist/scripts/996-cc98267e1e-lite.chunk.js +0 -1
  507. package/dist/scripts/9961-acaa4c44fc-lite.chunk.js +0 -1
  508. package/dist/scripts/bundle-42da83f804.min.js +0 -2
  509. package/dist/scripts/polyfills-1177fd46db.min.js +0 -2
  510. package/dist/css/{5606-lite-0018feda9c.chunk.css → 1090-lite-0018feda9c.chunk.css} +0 -0
  511. package/dist/css/{389-lite-74cb244872.chunk.css → 147-lite-74cb244872.chunk.css} +0 -0
  512. package/dist/css/{1475-lite-d023364617.chunk.css → 1475-lite-1b41a0628c.chunk.css} +3 -3
  513. package/dist/css/{5143-lite-f1ca87e9ff.chunk.css → 156-lite-f1ca87e9ff.chunk.css} +0 -0
  514. package/dist/css/{1592-lite-c8bfbfe932.chunk.css → 1592-lite-7471086af4.chunk.css} +1 -1
  515. package/dist/css/{6381-lite-e7bdc675ac.chunk.css → 1655-lite-e7bdc675ac.chunk.css} +0 -0
  516. package/dist/css/{1766-lite-7241403fdd.chunk.css → 1766-lite-2cb4fd8dc1.chunk.css} +1 -1
  517. package/dist/css/{7178-lite-88303bbaf5.chunk.css → 1794-lite-88303bbaf5.chunk.css} +0 -0
  518. package/dist/css/{3200-lite-740e4cbd6f.chunk.css → 1891-lite-740e4cbd6f.chunk.css} +0 -0
  519. package/dist/css/{2318-lite-9b82e5b86c.chunk.css → 2318-lite-ca6d519c2e.chunk.css} +5 -5
  520. package/dist/css/{3667-lite-940fe57626.chunk.css → 3667-lite-37b25ceace.chunk.css} +1 -1
  521. package/dist/css/{7532-lite-19aa303fc2.chunk.css → 3849-lite-2eb46f0334.chunk.css} +6 -6
  522. package/dist/css/{6290-lite-15b96a54c9.chunk.css → 4290-lite-7bd376fdab.chunk.css} +1 -1
  523. package/dist/css/{4617-lite-b7212ef825.chunk.css → 4617-lite-5e8387006a.chunk.css} +5 -5
  524. package/dist/css/{528-lite-bf66aa0a37.chunk.css → 528-lite-4406ff9632.chunk.css} +1 -1
  525. package/dist/css/{5134-lite-8c9306617b.chunk.css → 5983-lite-8c9306617b.chunk.css} +0 -0
  526. package/dist/css/{615-lite-9d91934e82.chunk.css → 615-lite-02fc268229.chunk.css} +1 -1
  527. package/dist/css/{6285-lite-0365972b55.chunk.css → 6285-lite-86f715dee7.chunk.css} +1 -1
  528. package/dist/css/{9931-lite-027d4b6d58.chunk.css → 7030-lite-1678ae0292.chunk.css} +1 -1
  529. package/dist/css/{7108-lite-73d39503cb.chunk.css → 7108-lite-f52ee2c4e3.chunk.css} +2 -2
  530. package/dist/css/{714-lite-7afe3a3aa6.chunk.css → 714-lite-9c08f9622c.chunk.css} +1 -1
  531. package/dist/css/{7205-lite-06b4d10cf0.chunk.css → 7205-lite-d25306256f.chunk.css} +1 -1
  532. package/dist/css/{7409-lite-d610f16523.chunk.css → 7409-lite-3342fc3859.chunk.css} +1 -1
  533. package/dist/css/{7708-lite-6918135dfc.chunk.css → 7708-lite-fde0180a9a.chunk.css} +1 -1
  534. package/dist/css/{1672-lite-5e8082b0fb.chunk.css → 7950-lite-89fe5c9fc1.chunk.css} +1 -1
  535. package/dist/css/{1891-lite-a0648ee1fa.chunk.css → 8292-lite-a0648ee1fa.chunk.css} +0 -0
  536. package/dist/css/{1324-lite-6554428c5a.chunk.css → 8516-lite-6554428c5a.chunk.css} +0 -0
  537. package/dist/css/{8621-lite-38b7185436.chunk.css → 8621-lite-bbdcb78b4c.chunk.css} +1 -1
  538. package/dist/css/{1291-lite-a68f192c18.chunk.css → 8627-lite-a68f192c18.chunk.css} +0 -0
  539. package/dist/css/{8820-lite-e2b842f2b1.chunk.css → 8820-lite-76d15a1090.chunk.css} +1 -1
  540. package/dist/css/{8905-lite-46a5eda1f5.chunk.css → 8905-lite-d13d688920.chunk.css} +1 -1
  541. package/dist/css/{9133-lite-0338d50248.chunk.css → 9133-lite-26e2a668b0.chunk.css} +1 -1
  542. package/dist/css/{9151-lite-887e993b9b.chunk.css → 9151-lite-34a72dd76a.chunk.css} +5 -5
  543. package/dist/css/{9455-lite-e9fdacda31.chunk.css → 9455-lite-3cd1655cd7.chunk.css} +1 -1
  544. package/dist/css/{7030-lite-027d4b6d58.chunk.css → 9931-lite-1678ae0292.chunk.css} +1 -1
  545. package/dist/css/{9961-lite-61adefc4fe.chunk.css → 9961-lite-ce6b57f21d.chunk.css} +1 -1
  546. /package/dist/scripts/{1200-549e8b8abc-lite.chunk.js.LICENSE.txt → 1200-bec7db5b08-lite.chunk.js.LICENSE.txt} +0 -0
  547. /package/dist/scripts/{1354-3346c46c0a-lite.chunk.js.LICENSE.txt → 1354-635a2024da-lite.chunk.js.LICENSE.txt} +0 -0
  548. /package/dist/scripts/{1592-7573d29b17-lite.chunk.js.LICENSE.txt → 1366-97fd1ee802-lite.chunk.js.LICENSE.txt} +0 -0
  549. /package/dist/scripts/{1672-6bed3f0c16-lite.chunk.js.LICENSE.txt → 1592-68884d6d6c-lite.chunk.js.LICENSE.txt} +0 -0
  550. /package/dist/scripts/{2835-a21c8103a7-lite.chunk.js.LICENSE.txt → 162-e4b981a0ac-lite.chunk.js.LICENSE.txt} +0 -0
  551. /package/dist/scripts/{3602-86e3ad2e1c-lite.chunk.js.LICENSE.txt → 2066-035a4e9ee9-lite.chunk.js.LICENSE.txt} +0 -0
  552. /package/dist/scripts/{3645-0023a3c2ef-lite.chunk.js.LICENSE.txt → 2118-e4f8b7b15b-lite.chunk.js.LICENSE.txt} +0 -0
  553. /package/dist/scripts/{3667-b8cfdfbb44-lite.chunk.js.LICENSE.txt → 3602-9e631593b1-lite.chunk.js.LICENSE.txt} +0 -0
  554. /package/dist/scripts/{3879-1f6a71b0e1-lite.chunk.js.LICENSE.txt → 3645-1cb04952b3-lite.chunk.js.LICENSE.txt} +0 -0
  555. /package/dist/scripts/{4676-020a60c057-lite.chunk.js.LICENSE.txt → 3667-286f44bcc9-lite.chunk.js.LICENSE.txt} +0 -0
  556. /package/dist/scripts/{4812-60103d16b0-lite.chunk.js.LICENSE.txt → 4676-63c3c6916c-lite.chunk.js.LICENSE.txt} +0 -0
  557. /package/dist/scripts/{5622-f59cb146d5-lite.chunk.js.LICENSE.txt → 4901-8082b8c806-lite.chunk.js.LICENSE.txt} +0 -0
  558. /package/dist/scripts/{6896-bcd89e6cf3-lite.chunk.js.LICENSE.txt → 4942-e1855d3e14-lite.chunk.js.LICENSE.txt} +0 -0
  559. /package/dist/scripts/{7017-b9352b104b-lite.chunk.js.LICENSE.txt → 5268-7044ddf2c8-lite.chunk.js.LICENSE.txt} +0 -0
  560. /package/dist/scripts/{7030-d27b42e6b3-lite.chunk.js.LICENSE.txt → 5622-2e03de5953-lite.chunk.js.LICENSE.txt} +0 -0
  561. /package/dist/scripts/{6823-272c18d11d-lite.chunk.js.LICENSE.txt → 6823-0083a3231c-lite.chunk.js.LICENSE.txt} +0 -0
  562. /package/dist/scripts/{7221-1081606a10-lite.chunk.js.LICENSE.txt → 6896-2890da233e-lite.chunk.js.LICENSE.txt} +0 -0
  563. /package/dist/scripts/{8323-caedca162b-lite.chunk.js.LICENSE.txt → 7017-cdf324e732-lite.chunk.js.LICENSE.txt} +0 -0
  564. /package/dist/scripts/{8681-f9a8c79ee5-lite.chunk.js.LICENSE.txt → 7030-67a3d8acb6-lite.chunk.js.LICENSE.txt} +0 -0
  565. /package/dist/scripts/{9428-b732575791-lite.chunk.js.LICENSE.txt → 7052-69903b989d-lite.chunk.js.LICENSE.txt} +0 -0
  566. /package/dist/scripts/{9478-37c6b7c1a2-lite.chunk.js.LICENSE.txt → 7072-9f3b5575a2-lite.chunk.js.LICENSE.txt} +0 -0
  567. /package/dist/scripts/{9522-1f5efe271e-lite.chunk.js.LICENSE.txt → 7112-88336f937e-lite.chunk.js.LICENSE.txt} +0 -0
  568. /package/dist/scripts/{9931-8290a97315-lite.chunk.js.LICENSE.txt → 7221-c8f716fead-lite.chunk.js.LICENSE.txt} +0 -0
  569. /package/dist/scripts/{7318-67ea8ef011-lite.chunk.js.LICENSE.txt → 7318-7aa5593557-lite.chunk.js.LICENSE.txt} +0 -0
  570. /package/dist/scripts/{polyfills-1177fd46db.min.js.LICENSE.txt → 7515-08ba1635e4-lite.chunk.js.LICENSE.txt} +0 -0
@@ -1,2 +0,0 @@
1
- /*! For license information please see 9522-1f5efe271e-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,o=r(1024),a=r.n(o),i=r(57900),c=r(83529),l=r(65858),u=r(58130),s=r(11607),f=r(2786),p=r(83914);!function(t){t.AU="au",t.NZ="nz",t.UK="uk",t.US="us"}(n||(n={}));var h=r(83765),d=["uk","gb","gg","im","je","ie"],m={au:n.AU,nz:n.NZ,us:n.US,uk:n.UK,gb:n.UK,gg:n.UK,im:n.UK,je:n.UK,ie:n.UK},y={au:h.M.CvApSoutheast1,uk:h.M.CvEuWest1,us:h.M.CvNaWest1,nz:h.M.CvApSoutheast2},v={getInstanceRegion:function(t){var e=v.getCountryCode(t);return y[e]},getCountryCode:function(t){return m[null==t?void 0:t.toLowerCase()]||n.US},isCountryCodeUK:function(t){return d.includes(t.toLowerCase())},isCountryCodeAU:function(t){return(null==t?void 0:t.toLowerCase())===n.AU},isCountryCodeUS:function(t){return(null==t?void 0:t.toLowerCase())===n.US},isCountryCodeNZ:function(t){return(null==t?void 0:t.toLowerCase())===n.NZ},isSupportedCountryCode:function(t){return Object.keys(m).includes(null==t?void 0:t.toLowerCase())},getLocalizedLocalityPlaceholderPhrase:function(t){if(t)return v.isCountryCodeUK(t)?"E.g. CR0 3RL or 36 Factory Lane":v.isCountryCodeAU(t)||v.isCountryCodeNZ(t)?"E.g. 2212 or Revesby":v.isCountryCodeUS(t)?"E.g. 95826 or Sacramento":void 0},getLocalizedLocalityPlaceholderText:function(t){if(t){var e=v.getLocalizedLocalityPlaceholderPhrase(t);if(e)return e}}},g=r(97395),b={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"}},w={getMarketingUrlForGeoLocation:function(t){var e=v.getCountryCode(null==t?void 0:t.countryCode);return b.Marketing[e]||b.Marketing.us},getMarketingSalesContactForGeoLocation:function(t){var e=v.getCountryCode(null==t?void 0:t.countryCode),r=this.getMarketingUrlForGeoLocation(t);return t&&e===n.NZ?r+"/contact-us/":r+"/contact-us/trial/"},getFreeResourcesForGeoLocation:function(t){var e=v.getCountryCode(null==t?void 0:t.countryCode);return e===n.NZ&&(e=n.AU),this.getMarketingUrlForGeoLocation({countryCode:e})+"/free-student-resources//"},getTermsAndConditionsLink:function(){return this.getMarketingUrlForGeoLocation(n.US)+"/terms-and-conditions/"},getPrivacyPolicyLink:function(){return this.getMarketingUrlForGeoLocation(n.US)+"/privacy-policy/"},getSupportUrlForGeoLocation:function(t){var e=v.getCountryCode(null==t?void 0:t.countryCode);return b.Support[e]||b.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),g._.urlBuilder("/login",n)}};const S={crumb:"Btmx2"};function E(t,e){var r="rounded-circle mx-2 d-inline-block "+S.crumb,n=t===e?"bg-info":"bg-light";return"".concat(r," ").concat(n)}function x(t){return a().createElement("div",{className:"text-center"},t.crumbs.map((function(e){return a().createElement("div",{className:E(t.currentStep,e),key:e})})))}function L(t){return a().createElement("button",{onClick:t.onClick,className:"btn p-0 cursor-pointer d-inline-flex align-items-center"},a().createElement(p.x,{svgName:u.vn.ChevronLeft,size:p.S.Medium}),t.children)}var j=r(98461);function k(t){var e=w.getTermsAndConditionsLink(),r=w.getPrivacyPolicyLink();return a().createElement("span",{className:"text-center text-md mt-2 text-normal small"},"By signing up you agree to the",a().createElement("br",null),a().createElement(j.d,{href:e,onClick:t.onClickTermsAndConditions,className:"info-link",newTab:!0},"Terms and Conditions"),"  and  ",a().createElement(j.d,{href:r,onClick:t.onClickPrivacyPolicy,className:"info-link",newTab:!0},"Privacy Policy"))}function O(t){return a().createElement(a().Fragment,null,"Have a ClickView account already?",a().createElement("a",{href:t.link,className:"info-link ml-1",target:"_blank",onClick:t.onClick},"Sign in"))}var C=r(28366);P.defaultProps={showBackButton:!0};var A=["enter-email","find-school"],N=["enter-email","find-school","cant-find-school","add-to-braze","enter-age","request-access"];function P(t){var e=t.currentStep,r=t.previousStep,n=t.hasPreviousStep,o=t.showBackButton,i=t.closeApp,c=t.children;function h(){return["enter-email","find-school","cant-find-school","add-to-braze","enter-age"].includes(e)}function d(){r(),t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.Back,workflowPhase:l.WorkflowPhase.Back})}var m=N.includes(t.currentStep),y=m?"".concat(C.Z.leftHalfLayout," ").concat(C.Z.withBg):C.Z.leftHalfLayout;return a().createElement("div",{className:y},a().createElement("div",{className:"row mx-0 p-3"},a().createElement("div",{className:"col px-0 d-lg-none ".concat(C.Z.popupButton)},n&&h()&&o&&a().createElement(L,{onClick:d})),a().createElement("div",{className:"col col-lg-6 px-0"},a().createElement("div",{className:C.Z.logo},a().createElement("div",{className:"d-none d-lg-block"},m?a().createElement(f.Yo,null):a().createElement(f.$S,null)),a().createElement("div",{className:"d-block d-lg-none mt-1"},a().createElement(f.$S,null),A.includes(t.currentStep)&&a().createElement("div",{className:"mt-3"},a().createElement(x,{crumbs:A,currentStep:e}))))),a().createElement("div",{className:"col col-lg-6 d-flex flex-row justify-content-between px-0"},a().createElement("div",{className:"px-3"},a().createElement("div",{className:"d-none d-lg-block ".concat(C.Z.popupButton)},n&&h()&&o&&a().createElement(L,{onClick:d}))),A.includes(t.currentStep)&&a().createElement("div",{className:"d-none d-lg-block align-self-center"},a().createElement(x,{crumbs:A,currentStep:e})),a().createElement(s.L,{onClick:i,className:C.Z.popupButton},a().createElement(p.x,{svgName:u.vn.Close,size:p.S.Medium})))),a().createElement("div",{className:"row mx-0 flex-grow-1"},m&&a().createElement("div",{className:"col-6 px-0 d-none d-lg-block"},a().createElement("div",{className:"h-100 d-flex align-items-center justify-content-center"},a().createElement("img",{src:t.imageUrls.popupDashboard,className:"w-100 p-4 pb-5"}))),a().createElement("div",{className:"px-4 pt-0 pb-4 ".concat(m?"col-12 col-lg-6":"col-12")},a().createElement("div",{className:"d-flex flex-column h-100"},a().createElement("div",{className:"flex-grow-1"},c),a().createElement("div",{className:"text-center mt-3"},"select-type"===e&&a().createElement(O,{link:w.getLoginLink(),onClick:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.SignIn})}}),["enter-email","add-to-braze"].includes(e)&&a().createElement(k,{onClickTermsAndConditions:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.TermsAndConditions})},onClickPrivacyPolicy:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.PrivacyPolicy})}}))))))}T.defaultProps={showBackButton:!0};var U,I=["select-type","enter-email","find-school"];function T(t){var e=t.currentStep,r=t.previousStep,n=t.hasPreviousStep,o=t.showBackButton,i=t.children;return a().createElement("div",{className:"d-flex flex-column justify-content-between px-4 py-0 ".concat("jZ_Wp")},a().createElement("div",{className:"mt-3 mb-2"},I.includes(e)&&a().createElement(x,{crumbs:I,currentStep:e})),a().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")},a().createElement("div",{className:"d-flex flex-row justify-content-center align-items-center mt-2 mb-3"},n&&o&&["enter-email","find-school","cant-find-school","add-to-braze","enter-age","request-access"].includes(e)&&a().createElement(L,{onClick:function(){r(),t.logUserAction({step:e},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.Back,workflowPhase:l.WorkflowPhase.Back})}}),a().createElement("div",{className:"d-flex justify-content-center align-items-center px-2 ".concat("J97w_")},a().createElement(f.$S,null))),i),a().createElement("div",{className:"position-relative mb-4 mt-3 text-center"},"select-type"===e&&a().createElement(O,{link:w.getLoginLink(),onClick:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.SignIn})}}),["enter-email","find-school","add-to-braze"].includes(e)&&a().createElement(k,{onClickTermsAndConditions:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.TermsAndConditions})},onClickPrivacyPolicy:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.PrivacyPolicy})}})))}function _(t){return _="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)}function F(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==_(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===_(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var G,D,R={"cant-find-school":P,"enter-email":P,"find-school":P,"select-type":P,completed:P,"add-to-braze":P,"enter-age":P,"request-access":P},M={"cant-find-school":T,"enter-email":T,"find-school":T,"select-type":T,completed:T,"add-to-braze":T,"enter-age":T,"request-access":T},K=(F(U={},c.c.FullPage,M),F(U,c.c.Popup,R),U),z={getLayouts:function(t){return K[t]}};function q(t,e){return e?"".concat(t," ").concat(e):t}!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"}(D||(D={}));var B=function(t){return a().createElement("h1",{className:q("text-center mb-2 h4",t.className)},t.children)},Y=function(t){return a().createElement("div",{className:q("text-center text-sm px-2 px-lg-4",t.className)},t.children)},$=function(t){return a().createElement("p",{className:q("",t.className)},t.children)};function W(t){return W="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},W(t)}function V(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==W(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==W(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===W(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function H(t){var e,r=(V(e={},G.Available,t.imageUrls.statusImages.available),V(e,G.Active,t.imageUrls.statusImages.active),V(e,G.Expired,t.imageUrls.statusImages.expired),V(e,G.NotRequired,t.imageUrls.statusImages.notRequired),V(e,G.Unavailable,t.imageUrls.statusImages.unavailable),V(e,G.Unsupported,t.imageUrls.statusImages.unsupported),V(e,G.UserAutoJoinAllowed,t.imageUrls.statusImages.notRequired),V(e,G.UserJoinApprovalRequired,t.imageUrls.statusImages.notRequired),e);return a().createElement("div",{className:"d-flex justify-content-center my-4 px-2 px-lg-4"},a().createElement("img",{src:r[t.trialStatus],className:"w-100 h-auto"}))}var J="young-student",Z=r(99940);function X(t){return X="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},X(t)}function Q(t){var e="function"==typeof Map?new Map:void 0;return Q=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 tt(t,arguments,nt(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),rt(n,t)},Q(t)}function tt(t,e,r){return tt=et()?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&&rt(o,r.prototype),o},tt.apply(null,arguments)}function et(){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 rt(t,e){return rt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},rt(t,e)}function nt(t){return nt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},nt(t)}var ot=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&&rt(t,e)}(a,t);var e,r,n,o=(r=a,n=et(),function(){var t,e=nt(r);if(n){var o=nt(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===X(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}(Q(Error));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 it(){it=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"==at(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(at(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 ct=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 lt(t){var e={method:Z.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===Z.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 ut={asyncFetch:function(t){return ct(this,void 0,void 0,it().mark((function e(){var r,n,o;return it().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=lt(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 ot(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 ct(this,void 0,void 0,it().mark((function e(){var r,n;return it().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=lt(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=lt(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()}))}))},st=r(84789),ft=function(t,e){if(t.productName!==st.X.Lite)return Promise.reject();var r={email:e.email};return ut.asyncFetch({url:t.userStatus,data:r})},pt=function(t,e,r,n,o){var a=t.prospectStatus(e.prospectId);a=g._.urlBuilder(a,{email:e.email}),ut.fetch({url:a,success:r,error:n,always:o})},ht=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 ut.asyncFetch({url:t.createTrial,method:Z.k.POST,data:r})},dt=function(t,e,r){if(t.productName!==st.X.Lite)return Promise.reject();var n={email:r.email,appLink:null==r?void 0:r.appLink};return ut.asyncFetch({url:t.resendTrialEmail(e),method:Z.k.POST,data:n})},mt=function(t,e){var r=t.productName===st.X.Auth?t.joinRequest:t.joinRequest(e.customerId),n=t.productName===st.X.Auth?e:{email:e.email};return ut.asyncFetch({url:r,method:Z.k.POST,data:n})},yt=function(t,e){return t.productName!==st.X.Lite?Promise.reject():ut.asyncFetch({url:t.autoJoin,method:Z.k.POST,data:e})};function vt(t){return vt="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},vt(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"==vt(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(vt(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 bt(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 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}}(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 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;function Et(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 a().createElement(Y,{className:"mb-3"},e?a().createElement(a().Fragment,null,a().createElement(B,null,r,a().createElement("br",null),"already has ClickView 🎉"),a().createElement($,{className:"mt-3"},"If your school has SSO ",a().createElement("a",{href:w.getLoginLink({email:t.email,customerId:t.customerId}),className:"info-link"},"click here to sign in.")),a().createElement($,null,"Otherwise please contact your school admin for access.")):a().createElement(a().Fragment,null,a().createElement(B,null,"Good News!"),a().createElement($,null,"An account already exists for:",a().createElement("br",null)," ",a().createElement("strong",null,t.email)),a().createElement($,null,a().createElement("a",{href:w.getLoginLink({email:t.email}),className:"btn btn-dark btn-lg w-100"},"Sign into ClickView"))),a().createElement($,null,"Need Help? ",a().createElement("a",{href:w.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link",target:"_blank"},"Contact our Help Centre.")))}function xt(t){return xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xt(t)}function Lt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==xt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==xt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===xt(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var jt=(Lt(St={},G.Available,(function(t){var e=bt(a().useState(0),2),r=e[0],n=e[1],o=bt(a().useState(!1),2),i=o[0],c=o[1];if(null==t?void 0:t.email)return a().createElement(Y,null,a().createElement(B,null,"Success!"),a().createElement($,null,"An email has been sent to ",a().createElement("strong",null,t.email),". Please check your email for further instructions to complete the sign up process."),!!t.userId&&a().createElement(a().Fragment,null,r<1?a().createElement($,null,"Didn't receive an email?  ",a().createElement("button",{onClick:function(e){return o=this,a=void 0,i=void 0,u=gt().mark((function o(){return gt().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return null==e||e.preventDefault(),o.prev=1,o.next=4,dt(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:l.UserAction.Click,descriptor:l.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(u.next(t))}catch(t){e(t)}}function n(t){try{c(u.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((u=u.apply(o,a||[])).next())}));var o,a,i,u},className:"btn info-link p-0"},"Resend verification email")):"✅ Email has been resent!",i&&a().createElement($,{className:"mb-0 text-danger"},"❌ There was a problem resending the email. Please try again later or contact our  ",a().createElement("a",{href:w.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link"},"support"))))})),Lt(St,G.Active,Et),Lt(St,G.Expired,(function(t){var e=w.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 a().createElement(Y,null,a().createElement(B,null,r?"".concat(n," trial has expired"):"Your trial has expired"),a().createElement($,null,"Please contact our ",a().createElement("a",{href:e,className:"info-link",target:"_blank"},"ClickView Sales Team")))})),Lt(St,G.NotRequired,Et),Lt(St,G.Unavailable,(function(t){var e=w.getMarketingSalesContactForGeoLocation(t.geoLocation);return a().createElement(Y,null,a().createElement(B,null,"Your school no longer",a().createElement("br",null)," has access to ClickView"),a().createElement($,null,"Please contact our ",a().createElement("a",{href:e,className:"info-link"},"ClickView Sales Team")," for more information."))})),Lt(St,G.Unsupported,(function(){return a().createElement(Y,null,a().createElement(B,{className:"px-2 px-lg-4"},"ClickView isn't currently ",a().createElement("br",null)," available for your school"),a().createElement($,null,"We're working hard to get ClickView ready for more people."))})),Lt(St,G.UserAutoJoinAllowed,Et),Lt(St,G.UserJoinApprovalRequired,Et),St);function kt(t){var e=jt[t.trialStatus];return a().createElement(e,Object.assign({},t))}var Ot={"trial-status":function(t){return a().useEffect((function(){var e={actionType:l.UserAction.Create,descriptor:l.SignUpDescriptors.DeadEnd,workflowPhase:l.WorkflowPhase.Discard};t.trialCreated&&(e.descriptor=l.SignUpDescriptors.TrialCreated,e.workflowPhase=l.WorkflowPhase.Complete),t.logUserAction({},e)}),[]),a().createElement(a().Fragment,null,a().createElement(H,{trialStatus:t.trialStatus,imageUrls:t.imageUrls}),a().createElement(kt,Object.assign({},t)))},"added-to-braze":function(t){return a().useEffect((function(){t.logUserAction({},{actionType:l.UserAction.Create,descriptor:l.SignUpDescriptors.TrialRequested,workflowPhase:l.WorkflowPhase.Complete})}),[]),a().createElement(a().Fragment,null,a().createElement(H,{trialStatus:G.Available,imageUrls:t.imageUrls}),a().createElement(Y,{className:"mb-3"},a().createElement(B,null,"Submitted!"),a().createElement($,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=w.getFreeResourcesForGeoLocation(t.geoLocation);return a().useEffect((function(){i.SG.set(J,!0)}),[]),a().createElement(a().Fragment,null,a().createElement(H,{trialStatus:G.Active,imageUrls:t.imageUrls}),a().createElement(Y,{className:"mb-3"},a().createElement(B,null,"Discover our free content"),a().createElement($,null,"Click the button below to explore our videos"),a().createElement("a",{href:e,className:"btn btn-lg btn-dark w-100",target:"_blank"},"Start watching now")))},"requested-access":function(t){return a().createElement(a().Fragment,null,a().createElement(H,{trialStatus:G.Available,imageUrls:t.imageUrls}),a().createElement(Y,{className:"mb-3"},a().createElement(B,null,"You've requested access!"),a().createElement($,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.")))}},Ct=r(2102),At=r(42328),Nt=[{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"}];const Pt="gVdYS",Ut="Mlp3x";function It(t){var e=t.idp,r=t.onClick;return o.createElement("button",{className:"btn btn-lg btn-outline-dark w-100 mb-3 ".concat(Pt),onClick:function(){return r(e)}},e.logoUrl&&o.createElement("img",{src:e.logoUrl,className:Ut}),"Continue with ",e.name)}var Tt;!function(t){t.Staff="staff",t.Learner="learner"}(Tt||(Tt={}));var _t;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}function Dt(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 Rt(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)?Rt(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 Rt(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 Mt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Ft(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Ft(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Ft(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Kt=new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/),zt=(Mt(_t={},n.AU,"valerie.frizzle@school.edu.au"),Mt(_t,n.UK,"valerie.frizzle@school.gov.uk"),Mt(_t,n.US,"valerie.frizzle@school.gov"),Mt(_t,n.NZ,"valerie.frizzle@school.nz"),_t);function qt(t){return zt[v.getCountryCode(t.countryCode)]||zt.us}var Bt,Yt=[G.Expired,G.NotRequired,G.Unavailable,G.Unsupported,G.Active],$t=r(33003),Wt=r.n($t),Vt=r(63093);function Ht(t){return Ht="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},Ht(t)}function Jt(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 Zt(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)?Zt(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 Zt(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 Xt(){Xt=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"==Ht(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(Ht(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 Qt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Ht(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Ht(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Ht(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var te={k12:"Primary & Secondary"},ee=(Qt(Bt={},st.X.Auth,"auth.web"),Qt(Bt,st.X.Lite,"lite.web"),Bt),re={getClient:function(t){var e,r,n,o,a,i;return n=this,o=void 0,a=void 0,i=Xt().mark((function n(){var o,a,i,c,l,u;return Xt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=t.brazeConfig,a=t.geoLocation,i=t.version,c=o[v.getInstanceRegion(null==a?void 0:a.countryCode)],l=ee[t.productName],u=(0,Vt.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 Wt().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=Jt(t,2)[1];return null!==e&&!("string"==typeof e&&!e.length)})).reduce((function(t,e){var r=Jt(e,2),n=r[0],o=r[1];return Object.assign(Object.assign({},t),Qt({},n,o===Object(o)?re.removeEmptyKeys(o):o))}),{})},getEventTopic:function(){return"Free Trial Request"},getCustomEventType:function(){return Vt.ProductFormEvent.ProductTrailRequested},getSchoolType:function(t){if(t){var e=t.toLowerCase();if(!["unknown","other"].includes(e))return te[e]||t}}},ne=["Teacher","Librarian","Curriculum Coordinator","Digital Technology Coordinator","IT","Head of Department","Head of Subject","Deputy Principal","Principal"],oe=["Teacher","Librarian","Head of department","Subject lead","Curriculum coordinator","School leadership","District leadership","Academic coach","Instructional technology specialist","Consortium leadership","IT"],ae={au:ne,nz:ne,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:oe};function ie(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 ce(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)?ce(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 ce(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 le="OTHER";function ue(t){var e=t.error,r=t.onChange,n=t.countryCode,o=ie(a().useState(""),2),i=o[0],c=o[1],l=ie(a().useState(""),2),u=l[0],s=l[1],f=function(t){return ae[t]||oe}(n),p=i===le;return a().createElement(a().Fragment,null,a().createElement("div",{className:"mb-2"},a().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),s(""),r(t.target.value===le?"":t.target.value)}},a().createElement("option",{value:"",disabled:!0,className:"text-muted"},"What do you do?"),f.map((function(t,e){return a().createElement("option",{value:t,className:"text-dark",key:e},t)})),a().createElement("option",{value:le,className:"text-dark"},"Other")),!!e&&!p&&a().createElement("div",{className:"invalid-feedback"},e)),p&&a().createElement("div",{className:"mb-3"},a().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){s(t.target.value),r(t.target.value)}}),!!e&&a().createElement("div",{className:"invalid-feedback"},e)))}function se(t){return se="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},se(t)}function fe(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 pe(t){var e,r,n,o,i,c,l,u,s,f=(u=a().useState({fullname:"",jobTitle:"",phone:""}),s=2,function(t){if(Array.isArray(t))return t}(u)||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}}(u,s)||function(t,e){if(t){if("string"==typeof t)return fe(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)?fe(t,e):void 0}}(u,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=f[0],h=f[1];function d(t,e){h((function(r){return Object.assign(Object.assign({},r),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==se(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==se(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===se(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 a().createElement("div",{className:"text-center"},a().createElement("h1",{className:"text-center h4"},"A little more about you"),a().createElement("p",null,"Please enter your details."),a().createElement("form",{onSubmit:function(e){e.preventDefault(),t.handleSubmitForm(p)}},a().createElement("div",{className:"form-group text-left"},a().createElement("label",{className:"d-block font-weight-bold mb-1",htmlFor:"fullname-input"},"Full name"),a().createElement(At.w,{value:p.fullname,onChange:function(e){e.preventDefault(),d("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(){d("fullname",""),t.removeErrorForKey("fullname"),t.removeErrorForKey("submission")},autoFocus:!0}),t.errors.fullname&&a().createElement("div",{className:"invalid-feedback d-block"},t.errors.fullname)),a().createElement("div",{className:"form-group text-left"},a().createElement("label",{className:"d-block font-weight-bold mb-1",htmlFor:"phone-input"},"Contact number"),a().createElement(At.w,{value:p.phone,onChange:function(e){e.preventDefault(),d("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(){d("phone",""),t.removeErrorForKey("phone"),t.removeErrorForKey("submission")}}),t.errors.phone&&a().createElement("div",{className:"invalid-feedback d-block"},t.errors.phone)),a().createElement("div",{className:"form-group text-left"},a().createElement("label",{className:"d-block font-weight-bold mb-1",htmlFor:"jobTitle-select"},"Job title"),a().createElement(ue,{id:"jobTitle-select",countryCode:v.getCountryCode(t.country),onChange:function(e){d("jobTitle",e),t.removeErrorForKey("jobTitle"),t.removeErrorForKey("submission")},error:null===(n=t.errors)||void 0===n?void 0:n.jobTitle})),!!(null===(o=t.errors)||void 0===o?void 0:o.submission)&&a().createElement("div",{className:"form-group invalid-feedback d-block"},t.errors.submission),a().createElement("div",{className:"form-group mb-1"},a().createElement(Ct.m,{className:"btn btn-dark btn-lg w-100",onClick:function(){return t.handleSubmitForm(p)},showSpinner:t.loading,disabled:t.loading||(i=p.fullname,c=p.jobTitle,l=p.phone,!(i.length&&c.length&&l.length&&!Object.keys(t.errors).length))},"Submit"))))}var he=r(74254);function de(t){return de="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},de(t)}function me(){me=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"==de(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(de(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 ye(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 ve(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)?ve(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 ve(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 ge=255,be=/\$+[\w\s]?/,we=/^\+?\d{4,255}$/;function Se(t){if(!t)return{firstName:"",surname:""};var e=t.split(" ").filter((function(t){return t.length}));return{firstName:e.shift(),surname:e.join(" ")}}var Ee=r(99910),xe=r(28329);function Le(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 je(t){var e,r,n=(e=a().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 Le(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)?Le(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.")}()),o=n[0],i=n[1],c=a().useRef();function l(){var t;c.current&&(null===(t=c.current.children[o-1])||void 0===t||t.scrollIntoView({block:"center"}))}return{selectedIndex:o,onKeyDown:function(e){if("ArrowDown"===e.code){e.stopPropagation(),e.preventDefault();var r=o+1;return r>t.itemCount&&(r=1),i(r),void l()}if("ArrowUp"===e.code){e.stopPropagation(),e.preventDefault();var n=o-1;return n<=0&&(n=t.itemCount),i(n),void l()}if("Enter"===e.code&&o>0)return e.stopPropagation(),e.preventDefault(),void t.onSelected(o-1);i(0)},containerRef:c}}function ke(t){return ke="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},ke(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"==ke(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(ke(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 Ce={search:function(t,e,r,n,o){var a={longitude:e.longitude,latitude:e.latitude};e.query&&(a.query=e.query),ut.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=Oe().mark((function r(){return Oe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",ut.asyncFetch({url:t.createProspect,method:Z.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 ut.asyncFetch({url:t.prospectLookups(e)})}};const Ae={baseText:"KL3Q_",inputFocused:"I6wQy",input:"ChY5L",suggestionContainer:"Y78ea",noBottomBorder:"IeYUw",localitySuggestion:"P3aHR",suggestionItem:"magL7",suggestionLoading:"W7rH_",noSuggestion:"XXSnS",selected:"snnHR"};function Ne(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 Pe(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)?Pe(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 Pe(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 Ue(t){var e=t.filteredSchoolsList,r=t.getSchoolName,n=t.onSchoolSuggestionClick,o=t.selectedIndex;return a().createElement(a().Fragment,null,e.map((function(t,e){return a().createElement(s.L,{className:"".concat(Ae.suggestionItem," ").concat(o-1===e?Ae.selected:""),key:t.id,onClick:function(){return n(t)}},r(t)," ",a().createElement("br",null),a().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 Ie(t){return a().createElement("div",{className:"info-link ".concat(Ae.suggestionItem," ").concat(Ae.noSuggestion," ").concat(t.selected?Ae.selected:""),onClick:t.handleNoSuggestion},"Can't find your school?")}function Te(t){var e,r,n=a().useRef(),o=Ne(a().useState(!0),2),i=o[0],c=o[1],u=Ne(a().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=Ne(a().useState(),2),h=p[0],d=p[1],m=(0,xe.N)(s,250),y=je({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),Ce.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:l.UserAction.Click,descriptor:l.SignUpDescriptors.CantFindSchool,workflowPhase:l.WorkflowPhase.Next})}a().useEffect((function(){w||(m.length?!w&&m.length>1&&m===s&&j(m):j())}),[m,w]);var A=x||S||E;return a().createElement("div",{className:"form-group position-relative"},a().createElement(At.w,{value:s,onChange:function(t){return L(t.currentTarget.value)},ref:n,className:"form-control form-control-lg ".concat(A?Ae.inputFocused:Ae.input),type:"text",autoComplete:"off",placeholder:"Select your school below",disabled:t.disabled,autoFocus:!0,onClickClear:function(){L(""),n.current.focus()},onKeyDown:g}),a().createElement("div",{className:"position-absolute w-100"},a().createElement("div",{className:"".concat(Ae.suggestionContainer," ").concat(A?"":"d-none"),ref:b},x?a().createElement(Ue,{filteredSchoolsList:h,onSchoolSuggestionClick:k,getSchoolName:O,selectedIndex:v}):S&&a().createElement("div",{className:"".concat(Ae.suggestionLoading," py-4 d-flex justify-content-center")},a().createElement(Ee.Spinner,{animation:"border"})),!S&&(null==h?void 0:h.length)<5&&a().createElement(Ie,{selected:v===h.length+1,handleNoSuggestion:C}))))}var _e=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 Fe="__googleMapsScriptId";var Ge;!function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"}(Ge||(Ge={}));class De{constructor({apiKey:t,authReferrerPolicy:e,channel:r,client:n,id:o=Fe,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||Fe,this.language=a,this.libraries=i,this.mapIds=c,this.nonce=l,this.region=u,this.retries=s,this.url=f,this.version=p,De.instance){if(!_e(this.options,De.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(De.instance.options)}`);return De.instance}De.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?Ge.FAILURE:this.done?Ge.SUCCESS:this.loading?Ge.LOADING:Ge.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 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){return new De({apiKey:t.apiKey,version:"weekly",libraries:t.libraries,retries:3})}function ze(t){var e={apiKey:t.apiKey,libraries:t.libraries||["places"]},r=Re(a().useState(!1),2),n=r[0],o=r[1],i=Re(a().useState(Ke(e)),2),c=i[0],l=i[1];function u(t,r){c?c.loadCallback((function(e){if(e)return o(!1),void(r&&r(e));o(!0),t&&t()})):l(Ke(e))}return a().useEffect((function(){u()}),[]),{loader:c,scriptLoaded:n,onGoogleApiReady:u}}function qe(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 Be(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)?Be(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 Be(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 Ye=function(t){var e,r,n,o,a,i=t.formatted_address,c=qe(t.address_components);try{for(c.s();!(a=c.n()).done;){var l,u=a.value,s=qe(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 $e(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 We={1:"geocoderPermissionDenied",2:"geocoderUnavailable",3:"geocoderTimeout"};function Ve(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 He(t){var e,r,n=ze({apiKey:t.googleApiKey}).scriptLoaded,o=(e=a().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 Ve(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)?Ve(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=o[0],c=o[1];return a().useEffect((function(){n&&c(new google.maps.places.AutocompleteService)}),[n]),i}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}var Ze=r(45157);function Xe(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 Qe="us",tr="country:placeholder:text";function er(t){var e,r,n=t.apiKey,o=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=He({googleApiKey:n}),d=a().useState((function(){return function(t){var e=v.getLocalizedLocalityPlaceholderText(null==t?void 0:t.countryCode);return e||(i.SG.cacheGet("".concat(tr,":").concat(null==t?void 0:t.countryCode))||void 0)}(o)})),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 Xe(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)?Xe(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],g=m[1];function b(t,e){i.SG.cacheSet("".concat(tr,":").concat(e),t,86400),g(t)}return a().useEffect((function(){if(!y&&h&&l){var t=(null==o?void 0:o.countryCode)||Qe,e={input:String.fromCharCode(96+Ze.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[Ze.Y.getRandomInt(t.length)].description;b(s.replace(p,n),r)}else b(v.getLocalizedLocalityPlaceholderText(Qe),r)}(e,r,t)}))}}),[y,h,o,l]),y}function rr(){return a().createElement("svg",{viewBox:"0 0 24 24"},a().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"}))}function nr(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 or(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)?or(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 or(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 ar(t){var e=t.predictions,r=t.getPlaceInfo,n=t.selectedIndex;return a().createElement(a().Fragment,null,e.map((function(t,e){return a().createElement(s.L,{className:"".concat(Ae.suggestionItem," ").concat(n-1===e?Ae.selected:""),key:t.place_id,onClick:function(){return r(t)}},t.description)})))}function ir(t){var e,r,n,o,i,c,u=a().useRef(),f=nr(a().useState((null===(e=t.data)||void 0===e?void 0:e.schoolLocality)||""),2),p=f[0],h=f[1],d=nr(a().useState(!1),2),m=d[0],y=d[1],v=er({apiKey:t.googleMapsApiKey,geoLocation:t.geoLocation}),g=function(t){var e,r,n=t.search,o=t.makePredicition,i=t.geoLocation,c=He({googleApiKey:t.apiKey}),l=(0,xe.N)(n,300),u=(e=a().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 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.")}()),s=u[0],f=u[1];function p(t,e){e===google.maps.places.PlacesServiceStatus.OK&&t?f(t):f(void 0)}return a().useEffect((function(){if(c)if(0!==(null==l?void 0:l.length)&&o){var t=(null==i?void 0:i.countryCode)||"us";c.getPlacePredictions({input:l,componentRestrictions:{country:t},region:t,types:["locality","sublocality","postal_code"]},p)}else f(void 0)}),[l,o,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=Ye(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:p,makePredicition:m,geoLocation:t.geoLocation,apiKey:t.googleMapsApiKey}),b=g.localityPredicitions,w=g.getPlaceInfo,S=function(t){var e,r,n=(e=a().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 $e(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)?$e(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.")}()),o=n[0],i=n[1],c=ze(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=Ye(o);i(Object.assign(Object.assign({},a),{longitude:n,latitude:r}))}}))}function u(e){var r=We[e.code];r||(r="geocoderUnknown"),t.onPositionError("We are unable to access your location. Please try again later.")}return{placeDetails:o,onClickGetCurrentLocation:function(){c((function(){window.navigator.geolocation.getCurrentPosition(l,u)}))}}}({apiKey:t.googleMapsApiKey,onPositionError:function(t){y(!0),P(t)}}),E=S.placeDetails,x=S.onClickGetCurrentLocation,L=window.navigator.geolocation?1:0,j=je({onSelected:function(t){if(b)if(t!==b.length){var e=b[t];e&&T(e)}else _()},itemCount:null!==(r=(null==b?void 0:b.length)+L)&&void 0!==r?r:0}),k=j.selectedIndex,O=j.onKeyDown,C=j.containerRef,A=nr(a().useState(),2),N=A[0],P=A[1];function U(e){var r,n,o;N&&P(void 0),m||y(!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(),h(e)}function I(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),h(e)}(o)}function T(t){m&&y(!1),w(t,u,I)}function _(e){null==e||e.preventDefault(),y(!1),x(),t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.UseMyLocation})}a().useEffect((function(){I(E)}),[E]);var F,G=(null==b?void 0:b.length)&&!(null===(o=null===(n=t.data)||void 0===n?void 0:n.schoolLocality)||void 0===o?void 0:o.length),D=window.navigator.geolocation&&!(null===(c=null===(i=t.data)||void 0===i?void 0:i.schoolLocality)||void 0===c?void 0:c.length),R=t.labelClassName||"d-block text-center mb-3 font-weight-normal ".concat(Ae.baseText);return a().createElement("div",{className:"form-group position-relative"},a().createElement("label",{className:R,htmlFor:"locality-input"},"Postcode or suburb:"),a().createElement(At.w,{type:"text",value:p,onChange:function(t){return U(t.currentTarget.value)},id:"locality-input",className:(F="form-control form-control-lg",G?"".concat(F," ").concat(Ae.inputFocused):"".concat(F," ").concat(Ae.input)),ref:u,autoComplete:"off",placeholder:v||"Loading...",disabled:t.disabled||!v,autoFocus:null==t?void 0:t.autoFocus,onClickClear:function(){U(""),u.current.focus()},onKeyDown:O}),a().createElement("div",{className:"position-absolute w-100"},!!G&&a().createElement("div",{className:"".concat(Ae.suggestionContainer," ").concat(Ae.localitySuggestion),ref:C},a().createElement(ar,{predictions:b,getPlaceInfo:T,selectedIndex:k}),window.navigator.geolocation&&a().createElement(s.L,{className:"".concat(Ae.suggestionItem," px-1 ").concat(k-1===b.length?Ae.selected:""),onClick:_},a().createElement("div",{className:"btn btn-link info-link btn-with-icon bg-transparent py-0 pr-1"},a().createElement(rr,null),"Use my current location"))),D&&!G&&a().createElement("div",{className:"d-flex"},a().createElement("button",{onClick:_,className:"btn btn-link info-link bg-white btn-with-icon"},a().createElement(rr,null),"Use my current location")),!!N&&a().createElement("div",{className:"text-danger p-2"},N)))}var cr,lr=r(12238);!function(t){t.FourteenDays="trial_14_v1",t.Freemium="freemium_v1"}(cr||(cr={}));var ur=function(t){return v.isCountryCodeUS(t)||v.isCountryCodeUK(t)?cr.Freemium:cr.FourteenDays};function sr(t){return sr="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},sr(t)}function fr(){fr=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"==sr(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(sr(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 pr=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 hr(t){return hr="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},hr(t)}function dr(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 mr(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)?mr(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 mr(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 yr="R8ZPi",vr="SNEmW";function gr(t){return a().createElement(s.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(yr," ").concat(t.selected?vr:""),onClick:function(){return t.onClick(t.type)}},a().createElement("img",{src:t.imageSrc,className:"rounded-top mx-auto pb-2"}),a().createElement("div",{className:"py-2"},a().createElement("span",{className:"h4"},t.buttonText)))}var br;!function(t){t.Published="Published",t.Draft="Draft"}(br||(br={}));var wr=["Primary","Secondary","K12","Special","TAFE","University"],Sr=["Elementary","Middle School","High School","College","Other"],Er={au:wr,nz:wr,uk:["Primary","Secondary","Primary & Secondary","Special","Sixth Form College","FE College","University","Other"],us:Sr};function xr(t){return xr="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},xr(t)}function Lr(){Lr=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"==xr(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(xr(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 jr(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 kr(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)?kr(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 kr(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 Or(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 Cr(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)?Cr(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 Cr(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 Ar(t,e,r){return"".concat(t.padStart(4,"0"),"-").concat(e.padStart(2,"0"),"-").concat(r.padStart(2,"0"))}function Nr(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."}}function Pr(t){return Pr="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},Pr(t)}function Ur(){Ur=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"==Pr(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(Pr(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 Ir(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 Tr={"select-type":function(t){function e(e){t.logUserAction({userType:e},{actionType:l.UserAction.Click,workflowPhase:l.WorkflowPhase.Next,descriptor:e===Tt.Staff?l.SignUpDescriptors.Educator:l.SignUpDescriptors.Student}),e!==Tt.Staff?t.nextStep({step:"enter-age",userType:e}):t.nextStep({step:"enter-email",userType:e})}return a().createElement("div",{className:"text-center"},a().createElement("h1",{className:"h4"},"Access educational videos at your fingertips"),a().createElement("p",null,"Let's get you set up so you can access ClickView."),a().createElement("div",{className:"row"},a().createElement("div",{className:"col-lg-6 mb-3"},a().createElement(gr,{type:Tt.Staff,buttonText:"I'm an educator",imageSrc:t.imageUrls.educator,onClick:e,selected:t.userType===Tt.Staff})),a().createElement("div",{className:"col-lg-6 mb-3"},a().createElement(gr,{type:Tt.Learner,buttonText:"I'm a student",imageSrc:t.imageUrls.student,onClick:e,selected:t.userType===Tt.Learner}))))},"enter-email":function(t){var e,r,n=Dt(a().useState(!1),2),o=n[0],i=n[1],c=Dt(a().useState((null==t?void 0:t.email)||""),2),u=c[0],s=c[1],f=Dt(a().useState(),2),p=f[0],h=f[1],d=(e=t.geoLocation,r=w.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=Gt().mark((function e(){var r;return Gt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u.length?Kt.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,ft(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!==D.InvalidEmail){e.next=18;break}return h("Please use your school email address."),e.abrupt("return");case 18:if(t.logUserAction({},{actionType:l.UserAction.Click,workflowPhase:l.WorkflowPhase.Next,descriptor:l.SignUpDescriptors.EnterEmail}),!Yt.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===Tt.Staff;return a().createElement(a().Fragment,null,a().createElement("div",{className:"text-center"},a().createElement("h1",{className:"h4"},"Let's set up your account"),a().createElement("p",null,"Enter your school email address")),a().createElement("form",{onSubmit:m,noValidate:!0},a().createElement("div",{className:"form-group mb-3"},a().createElement(At.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:qt(t.geoLocation),autoComplete:"false",autoCorrect:"false",autoFocus:!0,onClickClear:function(){return s("")}}),p&&a().createElement(a().Fragment,null,a().createElement("div",{className:"invalid-feedback d-block"},p),a().createElement("small",null,"Having an issue with your email?",a().createElement("a",{href:d,className:"info-link pl-1",target:"_blank",onClick:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.ContactUs})}},"Contact our team")))),a().createElement(Ct.m,{showSpinner:o,className:"btn btn-dark btn-lg mb-3 w-100",disabled:o,onClick:m},"Continue")),v&&a().createElement("div",{className:"mt-n3"},a().createElement("div",{className:"my-3 border-bottom position-relative ".concat("bGwO5")}),Nt.map((function(t,e){return a().createElement(It,{onClick:y,idp:t,key:e})}))),a().createElement("div",{className:"text-center"},a().createElement(O,{link:w.getLoginLink(),onClick:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.SignIn})}})))},"find-school":function(t){var e,r,n=t.email,o=t.userType,i=dr(a().useState({schoolLocality:t.schoolLocality,country:t.country,longitude:t.longitude,latitude:t.latitude,city:t.city,province:t.province}),2),c=i[0],u=i[1],s=dr(a().useState(),2),f=s[0],p=s[1],h=dr(a().useState(),2),d=h[0],m=h[1],y=dr(a().useState(!1),2),v=y[0],g=y[1],b=dr(a().useState(!1),2),w=b[0],S=b[1],E=dr(a().useState(!1),2),x=E[0],L=E[1],j=function(t){var e=t.loading,r=t.canSubmitForm,n=t.setSubmissionError,o=t.prospectStatus,a=t.userType,i=t.logStepEvent,c=t.logUserAction,u=t.nextStep,s=t.data,f=t.productName,p=t.ajaxUrls,h=t.complete,d=t.setLoadingState,m=t.email,y=t.pageAppLinkString,v=t.setProperty;function g(){return pr(this,void 0,void 0,fr().mark((function t(){return fr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,yt(p,{prospectId:s.prospectId,email:m});case 3:c({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.AutoJoin}),h(Object.assign({completionStep:"trial-status",trialCreated:!0,trialStatus:G.Available},s)),t.next=12;break;case 7:return t.prev=7,t.t0=t.catch(0),n("Something went wrong! Please try again later."),d(!1),t.abrupt("return");case 12:case"end":return t.stop()}}),t,null,[[0,7]])})))}function b(){var t;return pr(this,void 0,void 0,fr().mark((function e(){var r,n;return fr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=void 0,!(null==s?void 0:s.prospectId)||o!==G.NotRequired){e.next=6;break}return e.next=4,Ce.getLookups(p,s.prospectId);case 4:n=e.sent,r=null===(t=n.find((function(t){return t.type===lr.C.MasterId})))||void 0===t?void 0:t.externalId;case 6:h(Object.assign({completionStep:"trial-status",trialStatus:o,trialCreated:!1,customerId:r},s)),i();case 8:case"end":return e.stop()}}),e)})))}function w(){var t;return pr(this,void 0,void 0,fr().mark((function e(){var r;return fr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return d(!0),e.prev=1,e.next=4,ht(p,{userType:a,email:m,prospectId:null==s?void 0:s.prospectId,appLink:y,accessPolicy:ur(s.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."),d(!1),e.abrupt("return");case 12:o===G.UserAutoJoinAllowed&&c({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.AutoJoin}),v("userId",r.id),h(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},s)),i();case 16:case"end":return e.stop()}}),e,null,[[1,7]])})))}return function(){return pr(this,void 0,void 0,fr().mark((function t(){return fr().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!==Tt.Staff){t.next=14;break}if(o!==G.Unsupported){t.next=8;break}return t.abrupt("return",(u(Object.assign({step:"add-to-braze",trialStatus:o},s)),void i()));case 8:if(o!==G.UserJoinApprovalRequired){t.next=10;break}return t.abrupt("return",(u(Object.assign({step:"request-access"},s)),void i()));case 10:if(o!==G.UserAutoJoinAllowed||f!==st.X.Lite){t.next=14;break}return t.next=13,g();case 13:case 17:case 20:return t.abrupt("return",t.sent);case 14:if(o===G.Active||o===G.Available||o===G.UserAutoJoinAllowed&&f===st.X.Auth){t.next=18;break}return t.next=17,b();case 18:return t.next=20,w();case 21:case"end":return t.stop()}}),t)})))}}(Object.assign(Object.assign({},t),{prospectStatus:f,loading:v,data:c,canSubmitForm:k,setSubmissionError:m,logStepEvent:function(){var e={actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.FindSchool,workflowPhase:l.WorkflowPhase.Next};t.logUserAction(c||{},e)},setLoadingState:function(t){S(t),L(t),g(t)},setProperty:O}));function k(){if(!c||!n||!o)return!1;var t=c.prospectId;return!!(n&&o&&t)}function O(e,r){"prospectId"===e&&r&&(g(!0),pt(t.ajaxUrls,{prospectId:r.toString(),email:t.email},(function(t){p(t.status)}),(function(){console.log("error")}),(function(){g(!1)}))),u((function(t){return Object.assign(Object.assign({},t),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==hr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==hr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===hr(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 C(){O("prospectId",void 0),O("schoolName",""),O("schoolPostCode",void 0),m(void 0)}return a().createElement(a().Fragment,null,a().createElement("div",{className:"text-center"},a().createElement("h1",{className:"h4"},"Next, let's find your school"),a().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")),a().createElement(ir,{data:c,setDataProperty:O,clearStepGroupData:function(){O("schoolLocality",void 0),u((function(t){return Object.assign(Object.assign({},t),{longitude:undefined,latitude:undefined})})),O("city",void 0),O("province",void 0),O("country",void 0),C(),m(void 0)},disabled:w,geoLocation:t.geoLocation,labelClassName:"d-none",logUserAction:t.logUserAction,googleMapsApiKey:t.googleMapsApiKey,autoFocus:!0}),!!(c&&c.schoolLocality&&c.longitude&&c.latitude)&&a().createElement(Te,{data:c,setDataProperty:O,clearStepItemData:C,nextStep:t.nextStep,currentStepId:t.currentStepId,disabled:x,logUserAction:t.logUserAction,ajaxUrls:t.ajaxUrls}),d&&a().createElement("p",{className:"text-danger mb-2"},d),k()&&a().createElement(Ct.m,{className:"btn btn-dark btn-lg w-100",onClick:j,showSpinner:w||x||v,disabled:w||x||v},"Get started"))},"cant-find-school":function(t){var e,r,n,o=jr(a().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=o[0],c=o[1],u=jr(a().useState(),2),s=u[0],f=u[1],p=jr(a().useState(!1),2),h=p[0],d=p[1],m=(r=i.country||(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode),n=v.getCountryCode(r),Er[n]||Sr);function y(){var t=i.schoolName,e=i.schoolType,r=i.country;return!!(t&&e&&r)}function g(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"!==xr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==xr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===xr(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 a().createElement(a().Fragment,null,a().createElement("div",{className:"text-center"},a().createElement("h1",{className:"h4"},"Tell us more about yourself"),a().createElement("p",null,"Please enter your school details.")),a().createElement("div",{className:"form-group"},a().createElement("label",{className:"d-block",htmlFor:"school-name-input"},"Name of school"),a().createElement("input",{type:"text",value:(null==i?void 0:i.schoolName)||"",onChange:function(t){g("schoolName",t.target.value)},id:"school-name-input",className:"form-control form-control-lg",autoComplete:"off",placeholder:"Enter name of school",autoFocus:!0})),a().createElement("div",{className:"form-group"},a().createElement("label",{className:"d-block",htmlFor:"school-type-select"},"Type of school"),a().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){g("schoolType",t.target.value)}},a().createElement("option",{value:"none",className:"text-muted",disabled:!0},"Select type of school"),m.map((function(t){return a().createElement("option",{value:t,key:t,className:"text-dark"},t)})))),a().createElement(ir,{data:i,setDataProperty:g,clearStepGroupData:function(){g("schoolLocality",void 0),c((function(t){return Object.assign(Object.assign({},t),{longitude:undefined,latitude:undefined})})),g("city",void 0),g("province",void 0),g("country",void 0),f("")},disabled:!1,labelClassName:"d-block",geoLocation:t.geoLocation,logUserAction:t.logUserAction,googleMapsApiKey:t.googleMapsApiKey,autoFocus:!1}),s&&a().createElement("div",{className:"text-danger mb-3"},s),y()&&a().createElement(Ct.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=Lr().mark((function n(){var o,a,c;return Lr().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.preventDefault(),y()){n.next=3;break}return n.abrupt("return");case 3:return t.logUserAction(i,{actionType:l.UserAction.Click,workflowPhase:l.WorkflowPhase.Next,descriptor:l.SignUpDescriptors.CantFindSchool}),d(!0),n.prev=5,n.next=8,Ce.create(t.ajaxUrls,{name:i.schoolName,status:br.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 d(!1),f("Error. Something went wrong."),n.abrupt("return");case 13:n.next=20;break;case 15:return n.prev=15,n.t0=n.catch(5),d(!1),f("Error. Something went wrong."),n.abrupt("return");case 20:return n.prev=20,n.next=23,ht(t.ajaxUrls,{userType:t.userType,email:t.email,prospectId:o.id,appLink:t.pageAppLinkString,accessPolicy:ur(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 d(!1),f("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:h,disabled:h},"Get started"))},completed:function(t){var e=Ot[t.completionStep];return a().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto px-2"},a().createElement(e,Object.assign({},t)))},"add-to-braze":function(t){var e,r=ye(a().useState(!1),2),n=r[0],o=r[1],i=ye(a().useState({}),2),c=i[0],l=i[1];function u(e){var r=Se(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:re.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:re.getEventTopic()};return re.removeEmptyKeys(a)}function s(){t.complete({completionStep:"added-to-braze",trialCreated:!1,trialStatus:null})}return a().useEffect((function(){t.userType===Tt.Learner&&t.complete({completionStep:"trial-status",trialCreated:!1,trialStatus:G.Unsupported})}),[]),a().createElement(pe,{errors:c,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,a;(function(t){var e=t.fullname,r=t.jobTitle,n=t.phone,o=Se(e),a=o.firstName,i=o.surname,c={};return a&&i||(c.fullname="Please enter your full name."),(be.test(a)||be.test(i))&&(c.fullname="Please enter your full name."),e.length>ge&&(c.fullname="Full name cannot exceed max length of ".concat(ge," characters.")),(null==r?void 0:r.length)||(c.jobTitle="Please enter your job title."),be.test(r)&&(c.jobTitle="Please enter a valid job title."),r.length>ge&&(c.jobTitle="Job Title cannot exceed max length of ".concat(ge," characters.")),(null==n?void 0:n.length)||(c.phone="Please enter your phone number."),!be.test(n)&&we.test(n)||(c.phone="Please enter a valid phone number."),l(c),!Object.keys(c).length})(e)&&((null===(r=e.jobTitle)||void 0===r?void 0:r.toLowerCase().includes("student"))||(null===(a=e.jobTitle)||void 0===a?void 0:a.toLowerCase().includes("parent"))?s():function(e){var r,a,i,f;r=this,a=void 0,i=void 0,f=me().mark((function r(){var a,i,f,p,h,d;return me().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!==Tt.Learner){r.next=5;break}return l(Object.assign(Object.assign({},c),{submission:"Something went wrong! Please try again later."})),r.abrupt("return");case 5:return t.logUserAction({},{actionType:he.Vw.Click,workflowPhase:he.eu.Next,descriptor:he.Yu.AddToBraze}),o(!0),a=u(e),r.next=10,re.getClient({brazeConfig:t.brazeConfig,geoLocation:t.geoLocation,productName:t.productName,version:t.version});case 10:i=r.sent,f=Se(e.fullname),p=f.firstName,h=f.surname,d={prospect_id:null==t?void 0:t.prospectId,organisation_sub_type:re.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},d=re.removeEmptyKeys(d);try{i.setUser(re.hashedEmail(null==t?void 0:t.email)),i.setUserFirstName(p),i.setUserLastName(h),i.setUserPhone(e.phone),i.setUserEmail(null==t?void 0:t.email),i.openSession(),i.bulkSetCustomUserAttributes(d),i.logEvent({type:re.getCustomEventType(),data:a}),i.sendData((function(t){l(t?{}:Object.assign(Object.assign({},c),{submission:"Something went wrong! Please try again later."})),o(!1)}))}catch(t){l(Object.assign(Object.assign({},c),{submission:"Something went wrong! Please try again later."}))}Object.keys(c).length||s();case 16:case"end":return r.stop()}}),r)})),new(i||(i=Promise))((function(t,e){function n(t){try{c(f.next(t))}catch(t){e(t)}}function o(t){try{c(f.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,o)}c((f=f.apply(r,a||[])).next())}))}(e))},removeErrorForKey:function(t){if(Object.keys(c).length&&c[t]){var e=Object.assign({},c);delete e[t],l(e)}}})},"enter-age":function(t){var e=Or(a().useState(""),2),r=e[0],n=e[1],o=Or(a().useState(""),2),i=o[0],c=o[1],l=Or(a().useState(""),2),u=l[0],s=l[1],f=Or(a().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":""),g="order-0",b="order-3",w=v.isCountryCodeUS(t.geoLocation.countryCode);return w&&(g="order-3",b="order-0"),a().createElement("form",{className:"text-center",onSubmit:function(e){if(e.preventDefault(),r&&i&&u?function(t,e,r){var n=new Date(Ar(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(Ar(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},a().createElement("h1",{className:"h4"},"Tell us a little about yourself"),a().createElement("p",null,"Please enter your date of birth"),a().createElement("div",{className:"my-4"},a().createElement("div",{className:"d-flex justify-content-center"},a().createElement("div",{className:"".concat(m," ").concat(g)},a().createElement("label",{className:"mb-0",htmlFor:"day"},"Day"),a().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:!w,tabIndex:w?2:1})),a().createElement("span",{className:"h1 font-weight-normal mt-3 mb-0 order-1 ".concat(p?"text-danger":"")},"/"),a().createElement("div",{className:"".concat(m," ").concat(b)},a().createElement("label",{className:"mb-0",htmlFor:"month"},"Month"),a().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:w,tabIndex:w?1:2})),a().createElement("span",{className:"h1 font-weight-normal mt-3 mb-0 order-4 ".concat(p?"text-danger":"")},"/"),a().createElement("div",{className:"".concat(m," order-5")},a().createElement("label",{className:"mb-0",htmlFor:"year"},"Year"),a().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&&a().createElement("div",{className:"invalid-feedback d-block"},p)),a().createElement("button",{type:"submit",className:"btn btn-lg btn-dark w-100"},"Continue"))},"request-access":function(t){var e,r,n=(e=a().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 Ir(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)?Ir(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.")}()),o=n[0],i=n[1];return a().createElement(a().Fragment,null,a().createElement(H,{trialStatus:G.UserJoinApprovalRequired,imageUrls:t.imageUrls}),a().createElement(Y,{className:"mb-3"},a().createElement(B,null,t.schoolName,a().createElement("br",null),"already has ClickView 🎉")),a().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=Ur().mark((function r(){var n,o;return Ur().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,Ce.getLookups(t.ajaxUrls,t.prospectId);case 3:if(n=r.sent,o=null===(e=n.find((function(t){return t.type===lr.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,mt(t.ajaxUrls,{customerId:o,email:t.email});case 10:t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.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(Nr(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"),o&&a().createElement("p",{className:"text-danger text-center mb-2"},o),a().createElement($,{className:"text-center"},"Need Help? ",a().createElement("a",{href:w.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link",target:"_blank"},"Contact our Help Centre.")))}};function _r(t){var e=t.state,r=t.geoLocation,n=t.layoutMapping,o=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=Tr[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?a().createElement(b,{geoLocation:t.geoLocation,currentStep:e.currentStepId,previousStep:l,closeApp:t.close,logUserAction:f,hasPreviousStep:o,imageUrls:t.imageUrls},a().createElement(v,Object.assign({},g))):a().createElement(v,Object.assign({},g))}var Fr=r(17331);function Gr(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 Dr(t){return Dr="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},Dr(t)}function Rr(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)||Mr(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 Mr(t,e){if(t){if("string"==typeof t)return Kr(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)?Kr(t,e):void 0}}function Kr(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 zr(t,e){var r,n,o=Object.assign(Object.assign({},t),{previousStepIds:[].concat((n=t.previousStepIds,function(t){if(Array.isArray(t))return Kr(t)}(n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||Mr(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!==Rr(t,2)[1]})).reduce((function(t,e){var r=Rr(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"!==Dr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Dr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Dr(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 qr(t,e){switch(e.type){case"nextStep":return zr(t,e);case"back":return function(t){var e,r=function(t){if(Array.isArray(t))return Gr(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 Gr(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)?Gr(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 Br(t){return Br="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},Br(t)}function Yr(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 $r(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)?$r(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 $r(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 Wr=function(t){var e=t.location,r=t.initialValues,n=t.onStepUpdate,o=t.externalLogUserAction,i=re.removeEmptyKeys(r),c=Object.assign({currentStepId:"select-type",previousStepIds:[]},i),l=Yr(a().useReducer(qr,c),2),u=l[0],s=l[1];return a().useEffect((function(){null==n||n(u)}),[u.currentStepId]),{state:u,back:function(){s({type:"back"})},nextStep:function(t){s(Object.assign({type:"nextStep"},t))},complete:function(t){s(Object.assign({type:"nextStep",step:"completed"},t))},hasPreviousStep:!!u.previousStepIds.length,logUserAction:function(t,r){var n=Object.assign(Object.assign({},u),t),a=Fr.i.filterBlacklistedKeys(n),i=Object.assign({currentStepId:u.currentStepId},a),c=Object.entries(i).filter((function(t){return void 0!==Yr(t,2)[1]})).reduce((function(t,e){var r=Yr(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"!==Br(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Br(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Br(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))}),{});o(c,Object.assign({entity:he.py.SignUp,location:e},r))}}},Vr=r(1048);const Hr={buttonContainer:"izZtA",dataContainer:"OgBv5"};function Jr(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 Zr(t){var e={};return Object.keys(t).forEach((function(r){var n=t[r];Vr.t.isObject(n)&&null!==n&&!Array.isArray(n)?Object.assign(e,Zr(n)):e[r]=n})),e}function Xr(t){var e=t.label,r=t.item,n=r;return Array.isArray(r)&&(n=n.join(" -> ")),"boolean"==typeof n&&(n=n?"true":"false"),a().createElement("div",{className:"pb-1"},e,": ",a().createElement("b",{className:"text-white"},n))}function Qr(t){var e,r,n=t.developmentEnv,o=t.objects,i=(e=a().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 Jr(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)?Jr(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=a().useMemo((function(){return Zr(o)}),[o]);return n&&a().createElement(a().Fragment,null,a().createElement("div",{className:"position-fixed p-4 ".concat(Hr.buttonContainer)},a().createElement("button",{onClick:function(){l(!c)},className:"btn btn-dark px-2 py-1"},c?"Hide":"Show"," debugger")),c&&a().createElement("div",{className:"fixed-bottom mb-4 ml-4 bg-dark rounded ".concat(Hr.dataContainer)},a().createElement("code",{className:"d-block p-4"},a().createElement("div",{className:"font-weight-bold pb-2"},"{ Debug: Form Data }"),Object.keys(u).map((function(t){return a().createElement(Xr,{key:t,label:t,item:u[t]})})))))}var tn=r(49985);function en(t){var e=z.getLayouts(t.type),r=t.location,n=t.initialValues,o=t.geoLocation,c=t.googleMapsApiKey,l=t.pageAppLinkString,u=t.onStepUpdate,s=t.imageUrls,f=t.ajaxUrls,p=t.brazeConfig,h=t.version,d=t.productName,m=t.close,y=Wr({location:r,initialValues:n,onStepUpdate:u,externalLogUserAction:tn.k.logUserAction}),v=y.back,g=y.nextStep,b=y.complete,w=y.hasPreviousStep,S=y.state,E=y.logUserAction,x={state:S,geoLocation:o,layoutMapping:e,hasPreviousStep:w,googleMapsApiKey:c,pageAppLinkString:l,back:v,close:m,nextStep:g,complete:b,logUserAction:E,imageUrls:s,ajaxUrls:f,brazeConfig:p,version:h,productName:d};return a().useEffect((function(){i.SG.get(J)&&b({completionStep:"young-student",trialCreated:!1,trialStatus:null})}),[]),a().createElement(a().Fragment,null,a().createElement(_r,Object.assign({},x)),a().createElement(Qr,{developmentEnv:!1,objects:Object.assign(Object.assign(Object.assign({},S),{pageAppLinkString:l}),o)}))}},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"};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(20354),o=r(39151),a=r(97395),i=r(84789);function c(){var t=n.a.useBasicFetch(o.L.config());if(!t.hasCompleted)return null;var e=t.data.gatewayApiUrl;return{productName:i.X.Lite,userStatus:a._.safeUrlConcat(e,"/v1/users/trial-status"),prospectStatus:function(t){return a._.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:a._.safeUrlConcat(e,"/v1/search/prospects"),createProspect:"/api/prospects",prospectLookups:function(t){return a._.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([[9556],{70197:(e,t,r)=>{var n;r.d(t,{q:()=>n}),function(e){e.YearGroupValues="yearGroupValues",e.UserProfilesStatus="userProfiles.status"}(n||(n={}))},299:(e,t,r)=>{r.d(t,{X:()=>c});var n=r(1024),a=r.n(n),o=r(94631),s=r(69217),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.idField,n=void 0===r?"id":r,c=t.persistNamespace,i=t.initialState?t.initialState:new Map,u=a().useRef(i),l=(0,s.N)(),d=(0,o.D)(e),m=(0,o.D)(c);function p(){u.current.clear(),l()}function g(e){return"number"==typeof e?e=e.toString():"string"!=typeof e&&(e=e[n].toString()),u.current.get(e)}function f(){return!!(null==e?void 0:e.length)&&e.every(g)}function v(e){e.forEach((function(e){u.current.set(e,!0)})),l()}return a().useEffect((function(){t.initialState||c&&m===c||(null==d?void 0:d.map((function(e){return e[n]})).join())!==(null==e?void 0:e.map((function(e){return e[n]})).join())&&p()}),[d,m,e,t.initialState]),a().useEffect((function(){var e;(null===(e=t.preselectedIds)||void 0===e?void 0:e.length)&&v(t.preselectedIds)}),[]),{onToggleBulk:function(){var t=!f();e.forEach((function(e){t?u.current.set(e[n].toString(),!0):u.current.delete(e[n].toString())})),l()},onToggleItem:function(e){var t=!u.current.get(e.toString());t?u.current.set(e.toString(),t):u.current.delete(e.toString()),l()},getSelected:function(){return Array.from(u.current.keys())},isChecked:g,bulkChecked:f(),deselectAll:function(){(null==e?void 0:e.length)&&(e.forEach((function(e){u.current.delete(e[n].toString())})),l())},hasSomeSelections:function(){return!!(null==e?void 0:e.length)&&!!e.find((function(e){return g(e)}))},setSelected:v,getSelectedCount:function(){return u.current.size},reset:p,getMap:function(){return u.current}}}},94631:(e,t,r)=>{r.d(t,{D:()=>o});var n=r(1024),a=r.n(n);function o(e){var t=a().useRef();return a().useEffect((function(){t.current=e})),t.current}},36511:(e,t,r)=>{r.d(t,{I:()=>a});var n=r(53957);function a(e){switch(e){case n.ClassroomGroupColour.Pink:return"pink";case n.ClassroomGroupColour.Orange:return"orange";case n.ClassroomGroupColour.Green:return"green";case n.ClassroomGroupColour.Blue:return"blue";case n.ClassroomGroupColour.Purple:return"purple";case n.ClassroomGroupColour.Indigo:return"indigo";default:return"pink"}}},6925:(e,t,r)=>{r.r(t),r.d(t,{ClassroomStudentsView:()=>ke});var n=r(1024),a=r.n(n),o=r(58566),s=r(20354),c=r(23481),i=r(31949),u=r(39151),l=r(76881),d=r(16714),m=r(22902),p=r(79612),g=r(65858),f=r(49985),v=r(88630),y=r(81886),h=r(69883),S=r(83345),k=r(11607),E=r(10874),b=r(83914),w=r(58130),C=r(89965),T=r(3747),I=r(86764),N=r(97291),P=r(14070),U=r(299),O=r(79014),A=r(83657),x=r(10038),G=r(20789),D=r(55452),j=r(99910),M=r(36848),L=r(36511);function R(e){var t;return e.group?a().createElement("div",{className:"classroom-pill text-white bg-".concat((0,L.I)(null===(t=e.group.metadata)||void 0===t?void 0:t.colour))},e.group.name):a().createElement(a().Fragment,null)}function F(e){return e.count?a().createElement(k.L,{onClick:e.onClick,className:"classroom-pill bg-white border border-dark"},"+",e.count):a().createElement(a().Fragment,null)}var _="classrooms.classroomGroupDropdown",q=function(e,t){return{application:N.O.CLASSROOMS,action:P.e.Classrooms.NEW_GROUP,args:[e],params:{addStudents:t.map((function(e){return e.id}))}}},B=function(e,t){return e.filter((function(e){return t.users.data.find((function(t){return t.id.toString()===e.id.toString()}))})).length};function H(e){var t,r=(0,U.X)(e.groups,{preselectedIds:e.preselections.map((function(e){return e.id}))}),n=r.onToggleItem,o=r.isChecked;a().useEffect((function(){e.groups.forEach((function(t){var r=B(e.selectedStudents,t);(!r||r!==e.selectedStudents.length||o(t.id))&&(r||!o(t.id))||n(t.id)}))}));var s={alignRight:!!e.alignRight};return e.disabled&&(s.show=!1),a().createElement(j.Dropdown,Object.assign({},s),a().createElement(j.Dropdown.Toggle,{as:"div",id:e.id,className:"".concat(e.disabled?"text-light":"cursor-pointer"," ").concat("mr-2 d-inline-block svg-container sm"," no-caret")},a().createElement(b.x,{svgName:w.vn.Group,title:c.T.getPhrase(_,"addToGroupTooltip"),tooltipPlacement:"top",tooltipSpanHack:!0,tooltipSpanHackClassName:""})),a().createElement(j.Dropdown.Menu,null,!!(null===(t=e.groups)||void 0===t?void 0:t.length)&&a().createElement("div",{className:"px-2 border-bottom mb-1"},a().createElement("p",{className:"mb-0"},a().createElement(S.x,{namespace:_,phrase:"addToGroup"})),a().createElement("ul",{className:"list-unstyled pr-3"},e.groups.map((function(t){return a().createElement("li",{key:t.id,className:"d-flex align-items-center bg-white my-1"},a().createElement(C.X,{id:"".concat(e.id,":").concat(t.id),checked:o(t.id),onChange:function(){return function(t){var r=!o(t.id);e.onSelectGroup(t,r),n(t.id)}(t)},indeterminate:!!B(e.selectedStudents,t)}),a().createElement(R,{group:t}))})))),a().createElement(M.F,{onClick:function(){f.k.logUserAction({},f.k.mergeOptions(e.analyticsOptions,{actionType:g.UserAction.Create,workflowPhase:g.WorkflowPhase.Start,entity:g.EntityType.ClassroomGroup}))},appLink:q(e.classroom.id,e.selectedStudents),className:"text-nowrap d-flex align-items-center px-2"},a().createElement(b.x,{svgName:w.vn.Plus}),a().createElement(S.x,{namespace:_,phrase:"createNew"}))))}H.defaultProps={preselections:[]};const z={avatarContainer:"rfVnC",name:"RYLWZ"};function K(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,s,c=[],i=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;i=!1}else for(;!(i=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);i=!0);}catch(e){u=!0,a=e}finally{try{if(!i&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw a}}return c}}(e,t)||W(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(e,t){if(e){if("string"==typeof e)return V(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?V(e,t):void 0}}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var X=c.T.encloseNamespace("classrooms.manageClassroomStudentItem"),Y=function(e){return{application:N.O.USER_MANAGER,action:P.e.UserManager.EDIT_USER,args:[e],params:{userType:l.Y.Learner}}},Q=function(e,t){return{application:N.O.CLASSROOMS,action:P.e.Classrooms.REMOVE_STUDENTS,args:[t],params:{studentIds:[e]}}};function Z(e){var t,r=K(a().useState(!1),2),n=r[0],o=r[1],s=K(a().useState(!1),2),c=s[0],i=s[1],u=K(a().useState({}),2),l=u[0],p=u[1],v=a().useRef(null),y=a().useRef(null),h=(0,m.T)().hasPermissions;a().useEffect((function(){E(),c||o(!0)}),[e.selectedGroups.length]);var S,k=O.q.throttle((function(){E(),o(!0)}),300);function E(){p(e.selectedGroups.reduce((function(e,t){return e[t.id]=!0,e}),{}))}return(0,x.H)((function(){c||k()})),a().useEffect((function(){if(v.current&&y.current&&n){var e=v.current.firstElementChild;if(e){var t,r,a=e.getBoundingClientRect().y,s={},c=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=W(e))){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 o,s=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw o}}}}(v.current.children);try{for(c.s();!(r=c.n()).done;){var i=r.value;i.id&&(s[i.id]=i.getBoundingClientRect().y===a,t=s[i.id]?i.id:t)}}catch(e){c.e(e)}finally{c.f()}y.current.getBoundingClientRect().y!==a&&(s[t]=!1),p(s),o(!1)}}}),[n]),a().createElement("div",{className:"d-flex align-items-center py-1 px-4"},a().createElement(C.X,{id:e.student.id,checked:e.checked,onChange:e.onToggleCheckbox,className:"mr-2"}),a().createElement("div",{className:"".concat(z.avatarContainer," mr-2")},a().createElement(G.q,{imageCdnUrl:e.config.imageCdnUrl,initials:D.l.getInitials(e.student.name,e.student.surname),imageUrl:null===(t=e.student.avatar)||void 0===t?void 0:t.url})),a().createElement("p",{className:"mr-2 ".concat(z.name," text-truncate mb-0 text-nowrap")},e.student.name," ",e.student.surname),a().createElement("div",{className:"".concat(n?"invisible":""," mr-auto d-flex flex-wrap mt-n1"),ref:v},e.selectedGroups.map((function(e){return l[e.id]?a().createElement("div",{key:e.id,className:"mr-1 mt-1",id:e.id},a().createElement(R,{group:e})):a().createElement(a().Fragment,{key:e.id})})),a().createElement("div",{ref:y,className:"mr-1 mt-1"},a().createElement(F,{count:Object.keys(l).reduce((function(e,t){return l[t]||e++,e}),0),onClick:function(){i(!0),E()}}))),a().createElement(H,{id:"add-group-".concat(e.student.id),classroom:e.classroom,groups:e.classroomGroups,selectedStudents:[e.student],preselections:e.selectedGroups,onSelectGroup:function(t,r){return e.onToggleGroup(e.student,t,r)},analyticsOptions:{location:g.LocationContext.ManageClassroomStudentListItem},alignRight:!0}),a().createElement(A.e,{actions:(S=[],h(d.C.ManageUsers)&&S.push({label:X("editStudent"),appLink:Y(e.student.id),onClick:function(){f.k.logUserAction({id:e.student.id},{actionType:g.UserAction.Edit,entity:g.EntityType.User,workflowPhase:g.WorkflowPhase.Start,location:g.LocationContext.ManageClassroomStudentListItem})}}),S.push({label:X("removeStudent"),appLink:Q(e.student.id,e.classroom.id),className:"text-danger",onClick:function(){f.k.logUserAction({id:e.classroom.id,userId:e.student.id},{actionType:g.UserAction.Dissociate,entity:g.EntityType.Classroom,descriptor:g.AssocDescriptor.User,workflowPhase:g.WorkflowPhase.Start,location:g.LocationContext.ManageClassroomStudentListItem})}}),S),actionsDropdownClassName:"btn"}))}var J=r(99742),$=r(23232),ee="classrooms.classroomsEmptyState";function te(e){return a().createElement(S.D.Provider,{value:ee},a().createElement($.u,null,a().createElement($.u.Image,{src:J.W.EmptyStates.Classrooms.NO_STUDENTS_IN_SCHOOL}),a().createElement($.u.Heading,null,a().createElement(S.x,{phrase:"noStudentsHeading"})),a().createElement($.u.Info,{className:"w-33 ".concat(e.canManageUsers?"":"mb-0")},a().createElement(S.x,{phrase:"noStudentsInfo"})),e.canManageUsers?a().createElement($.u.Cta,{text:c.T.getPhrase(ee,"noStudentsCta"),appLink:{application:N.O.USER_MANAGER,action:P.e.UserManager.STUDENTS}}):a().createElement($.u.Info,null,a().createElement(S.x,{phrase:"askAdmin"}))))}var re="classrooms.manageClassroomStudentsEmptyState",ne="https://static.clickview.com.au/Primary/Documents/Student-engagement-ideas.pdf";function ae(e){return e.schoolHasNoStudents?a().createElement(te,{canManageUsers:e.canManageUsers}):a().createElement(S.D.Provider,{value:re},a().createElement($.u,null,a().createElement($.u.Image,{src:J.W.EmptyStates.Classrooms.STUDENTS}),a().createElement($.u.Heading,null,a().createElement(S.x,{phrase:"emptyStateHeading"})),a().createElement($.u.Info,null,a().createElement(S.x,{phrase:"emptyStateInfo"})),a().createElement($.u.Cta,{text:c.T.getPhrase(re,"addStudents"),icon:w.vn.Plus,appLink:{application:N.O.CLASSROOMS,action:P.e.Classrooms.ADD_STUDENTS_CHOICES,args:[e.classroom.id]}}),a().createElement("a",{className:"btn btn-link info-link",href:ne,target:"_blank"},e.classroomIdeasText)))}var oe="classrooms.manageClassroomStudents",se=c.T.encloseNamespace(oe);function ce(e){var t,r=e.classroom,a=e.students,i=e.groups,u=(0,o.useDispatch)(),l=(0,h.Z)(),d=(0,U.X)(a.data),m=d.getSelected().length,p=i.filter((function(e){var t,r;if(!(null===(r=null===(t=e.users)||void 0===t?void 0:t.data)||void 0===r?void 0:r.length))return!1;var n=!0,a=0,o=d.getSelected();if(o.length){var s=function(){var t=o[a];e.users.data.find((function(e){return e.id.toString()===t.toString()}))||(n=!1),a++};do{s()}while(a<o.length);return n}})),O=(0,T.a)(I.r.XLDown);return(null===(t=a.data)||void 0===t?void 0:t.length)?n.createElement(n.Fragment,null,n.createElement("div",{className:"d-flex align-items-center py-2 ".concat(O?"pl-2":"pl-4")},n.createElement(C.X,{id:"manage-classroom-students-bulk",onChange:d.onToggleBulk,checked:d.bulkChecked,className:"mr-2",indeterminate:d.hasSomeSelections()}),n.createElement(H,{id:"bulk-add-group",classroom:r,selectedStudents:d.getSelected().map((function(t){return e.students.data.find((function(e){return e.id.toString()===t.toString()}))})),groups:i,onSelectGroup:function(e,t){var n=d.getSelected(),a=t?v.F.addStudentsToGroup:v.F.removeStudentsFromGroup;s.a.fetch(u,a(n,e.id,r.id,(function(){f.k.logUserAction({id:e.id,studentCount:n.length},{actionType:g.UserAction.Associate,entity:g.EntityType.ClassroomGroup,descriptor:g.AssocDescriptor.User,workflowPhase:g.WorkflowPhase.Complete,location:g.LocationContext.ManageClassroomStudents}),l.success(se("addSuccess",{groupName:e.name,escapeText:!0}))}),(function(){l.error(se("addError",{groupName:e.name,escapeText:!0}))})))},disabled:!m,preselections:p,analyticsOptions:{location:g.LocationContext.ManageClassroomStudents}}),n.createElement(k.L,{className:"mr-auto ".concat(m?"":"text-light cursor-default"),onClick:function(){if(m){var e=d.getSelected();f.k.logUserAction({id:r.id,studentCount:e.length},{entity:g.EntityType.Classroom,descriptor:g.AssocDescriptor.User,workflowPhase:g.WorkflowPhase.Start,actionType:g.UserAction.Dissociate,location:g.LocationContext.ManageClassroomStudents}),y.Q.AppLinkHelper.trigger({application:N.O.CLASSROOMS,action:P.e.Classrooms.REMOVE_STUDENTS,args:[r.id],params:{studentIds:e}})}}},n.createElement(b.x,{svgName:w.vn.Delete,title:c.T.getPhrase(oe,"delete"),tooltipPlacement:"top",tooltipSpanHack:!0})),n.createElement(E.h,{onClick:function(){f.k.logUserAction({id:r.id},{entity:g.EntityType.Classroom,descriptor:g.AssocDescriptor.User,workflowPhase:g.WorkflowPhase.Start,actionType:g.UserAction.Associate,location:g.LocationContext.ManageClassroomStudents}),y.Q.AppLinkHelper.trigger({application:N.O.CLASSROOMS,action:P.e.Classrooms.ADD_STUDENTS_CHOICES,args:[r.id]})},svgName:w.vn.Plus,className:"btn btn-outline-dark"},n.createElement(S.x,{namespace:oe,phrase:"addStudent"}))),n.createElement("ul",{className:"striped-list list-unstyled"},a.data.map((function(t){return n.createElement("li",{key:t.id},n.createElement(Z,{classroom:r,student:t,classroomGroups:e.groups,config:e.config,selectedGroups:e.groups.filter((function(e){return e.users.data.find((function(e){return e.id===t.id}))})),checked:d.isChecked(t.id),onToggleCheckbox:function(){return d.onToggleItem(t.id)},onToggleGroup:e.onToggleGroup}))})))):n.createElement(ae,{classroom:e.classroom,classroomIdeasText:se("classroomIdeasText"),schoolHasNoStudents:e.schoolHasNoStudents,canManageUsers:e.canManageUsers})}var ie=r(49935),ue=r(5062);const le="pJf6R",de="MSvzY",me="IFmvc",pe="pOcvk";var ge=a().memo((function(){return a().createElement("div",{className:"px-3"},a().createElement("div",{className:"mb-1 partial-loading-background ".concat("YrP_G")}),a().createElement("div",{className:"pb-3"},a().createElement(ie.b2,{numItems:2})),a().createElement("div",{className:"pb-2"},a().createElement(ue.Z,null)),a().createElement("div",{className:"d-flex align-items-center py-2"},a().createElement("div",{className:"mx-4 partial-loading-background ".concat(le)}),a().createElement("div",{className:"mr-2 partial-loading-background ".concat(de)}),a().createElement("div",{className:"mr-auto partial-loading-background ".concat(de)}),a().createElement("div",{className:"partial-loading-background ".concat("j62jt")})),a().createElement("ul",{className:"striped-list list-unstyled"},Array(20).fill(null).map((function(e,t){return a().createElement("li",{key:t},a().createElement("div",{className:"d-flex align-items-center py-1 px-4"},a().createElement("div",{className:"mr-2 partial-loading-background ".concat(le)}),a().createElement("div",{className:"mr-2 partial-loading-background ".concat("droqZ")}),a().createElement("div",{className:"w-25"},a().createElement("div",{className:"partial-loading-background ".concat("gorcb")})),a().createElement("div",{className:"mr-auto d-flex"},Math.random()>.5?a().createElement(a().Fragment,null,a().createElement("div",{className:"partial-loading-background rounded-pill mr-1 ".concat(me," ").concat("SdQ90")}),a().createElement("div",{className:"partial-loading-background rounded-pill ".concat(me," ").concat(pe)})):a().createElement("div",{className:"partial-loading-background rounded-pill ".concat(me," ").concat(pe)})),a().createElement("div",{className:"mr-2 partial-loading-background ".concat(de)}),a().createElement("div",{className:"partial-loading-background ".concat("S7p4K")})))}))))})),fe=r(5289),ve=r(31491),ye=r(39872),he=c.T.encloseNamespace("classrooms.classroomStudents"),Se={entity:g.EntityType.ClassroomGroup,descriptor:g.AssocDescriptor.User,workflowPhase:g.WorkflowPhase.Complete,location:g.LocationContext.ManageClassroomStudentListItem};function ke(e){var t,r,n,c,y,h,S,k,E,b=s.a.useBasicFetch(i.N.currentUser()),w=s.a.useBasicFetch(b.data&&v.F.getClassroom(e.id,b.data.id)),C=s.a.useBasicFetch(v.F.getClassroomStudents(e.id)),T=s.a.useBasicFetch(b.data&&ye.N.getUsers(b.data.customerId,l.Y.Learner)),I=s.a.useBasicFetch(v.F.getClassroomGroups(e.id)),N=s.a.useBasicFetch(u.L.config()),P=(0,o.useDispatch)(),U=(0,m.T)().hasPermissions;return(0,p.M)({title:he("pageTitle",{classroomName:null===(t=w.data)||void 0===t?void 0:t.name})}),(0,ve._)(w),w.data&&(null===(r=C.data)||void 0===r?void 0:r.data)&&(null===(n=I.data)||void 0===n?void 0:n.data)&&N.data&&T.data?a().createElement(fe.R,{classroom:w.data,currentUser:b.data,onTogglePin:function(e,t,r){var n=e?v.F.pinClassroom:v.F.unpinClassroom;s.a.fetch(P,n(w.data,t,r))},activeTab:"students"},(null===(y=null===(c=C.data)||void 0===c?void 0:c.data)||void 0===y?void 0:y.length)?a().createElement(ce,{classroom:w.data,students:C.data,groups:I.data.data,onToggleGroup:function(t,r,n){var a={id:r.id,studentCount:1},o=n?v.F.addStudentsToGroup([t.id],r.id,e.id,(function(){f.k.logUserAction(a,Object.assign(Object.assign({},Se),{actionType:g.UserAction.Associate}))})):v.F.removeStudentsFromGroup([t.id],r.id,e.id,(function(){f.k.logUserAction(a,Object.assign(Object.assign({},Se),{actionType:g.UserAction.Dissociate}))}));s.a.fetch(P,o)},config:N.data,schoolHasNoStudents:!(null===(S=null===(h=T.data)||void 0===h?void 0:h.data)||void 0===S?void 0:S.length),canManageUsers:U(d.C.ManageUsers)}):a().createElement(ae,{classroom:w.data,classroomIdeasText:he("classroomIdeasText"),schoolHasNoStudents:!(null===(E=null===(k=T.data)||void 0===k?void 0:k.data)||void 0===E?void 0:E.length),canManageUsers:U(d.C.ManageUsers)})):a().createElement(ge,null)}},39872:(e,t,r)=>{r.d(t,{N:()=>v});var n,a,o=r(97395),s=r(99940),c=r(54610),i=r(39739);!function(e){e.Content="content",e.OnlineContent="online_content",e.User="user",e.Customer="customer",e.Tag="tag",e.Organisation="organisation",e.Channel="channel"}(n||(n={})),function(e){e.TermsGroupBy="terms-group-by",e.NestedTermsGroupBy="nested-terms-group-by"}(a||(a={}));var u=r(70197),l=r(1048),d=r(40424);function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function p(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==m(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===m(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(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 f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var v={getUsers:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,c={query:i.P.buildGetUsersQuery(t,r)};n&&(c.cursor=n);var u="school:users:".concat(e,":").concat(t);return u+=Object.keys(c).map((function(e){return c[e]})).join(":"),{url:o._.urlBuilder("{gateway}/v1/customers/".concat(e,"/users"),c),key:u,success:a,error:s}},getUser:function(e){return{url:"{gateway}/v1/users/".concat(e,"?query=avatar"),key:"school:users:".concat(e)}},bulkRemoveUsers:function(e,t,r,n){var a,o=["school:users","search:users","search:aggregation"];return(null===(a=e.userIds)||void 0===a?void 0:a.length)&&e.userIds.forEach((function(e){return o.push("school:users:".concat(e))})),{url:"{gateway}/v1/users/delete",key:"remove:school:users",invalidationKeys:o,type:s.k.POST,data:e,success:t,error:r,always:n}},createUsers:function(e){var t=e.users,r=e.customerId,n=e.userType,a=e.userId,o=e.success,c=e.error,u=e.always,l=i.P.buildSearchDataAndKey({customerId:r,userId:a,userType:n}).key;return{url:"{gateway}/v1/users",key:"create:users",data:t,type:s.k.POST,invalidationKeys:["school:users","user:count"],success:o,error:c,always:u,updateState:{keys:[l],updateData:function(e,r){var n=e[l];if(!n)return e;var a=Object.assign(Object.assign(Object.assign({},t.users[0]),r),{username:r.username||t.users[0].username,name:t.users[0].firstName,metadata:{isEmailVerified:!1},id:r.userId,type:"user",status:t.users[0].email?d.w.Inactive:d.w.Active,userProfile:{status:t.users[0].email?d.w.Inactive:d.w.Active,role:t.users[0].masterRole,type:"userprofile"}});return Object.assign(Object.assign({},e),p({},l,{pagination:n.pagination,results:[a].concat(g(n.results))}))}}}},updateUser:function(e,t,r,n,a){var o=["school:users:".concat(e.userId)];return t.toString()===e.userId.toString()&&o.push("currentuser"),{url:"{gateway}/v1/users",key:"edit:user",type:s.k.PUT,data:e,invalidationKeys:["search:aggregation"],success:r,error:n,always:a}},searchUsers:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6?arguments[6]:void 0,u=i.P.buildSearchDataAndKey({customerId:e,userId:t,userType:r,queryParams:n,cursor:a}),l=u.data,d=u.key;return{url:"{gateway}/v3/search",data:l,type:s.k.POST,key:d,success:o,error:c}},getSearchUserIds:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=i.P.buildSearchData({customerId:e,userId:t,userType:r,queryParams:n}),u="search:user:ids";return{url:"{gateway}/v3/search/ids",key:u+=l.t.flattenObjectToString(c),data:c,type:s.k.POST,normalize:!1,success:a,error:o}},getSearchAggregation:function(e){var t=e.userId,r=e.customerId,o=e.userType,c=e.queryParams,l=void 0===c?{}:c,d=e.userIds,m=e.field,p=m===u.q.UserProfilesStatus,g={field:m,nestedPath:"userProfiles",termsFilters:{"userProfiles.customerId":[r]}},f=i.P.buildSearchFiltersObject(r,o,l),v="search:aggregation:".concat(t,":").concat(r,":").concat(m,":");v+=Object.keys(f).sort().map((function(e){return f[e]})).join(":"),v+=":"+d.join(":");var y={indices:["user"],searchType:n.User,isLearner:!1,type:p?a.NestedTermsGroupBy:a.TermsGroupBy,userId:t.toString(),customerId:r.toString(),data:p?g:{field:m},idFilters:d,filters:f};return{url:"{gateway}/v1/search/aggregation",type:s.k.POST,key:v,data:y,normalize:!1,formatData:function(e){var t=e.termCount;return m!==u.q.UserProfilesStatus?t:Object.keys(t).reduce((function(e,r){return e[r.charAt(0).toUpperCase()+r.slice(1)]=t[r],e}),{})}}},bulkToggleActivation:function(e,t,r,n,a){return{url:"{gateway}/v1/users/status",key:"update:users:status",type:s.k.PUT,data:e,success:r,error:n,always:a,invalidationKeys:["school:users:".concat(e.customerId,":").concat(t)].concat(g(e.users.map((function(e){return"school:users:".concat(e.userId)}))),["search:aggregation"])}},bulkValidate:function(e,t,r,n,a){return{url:"{gateway}/v1/users/validate",type:s.k.POST,key:"validate:users",data:e,success:r,error:n,always:a,normalize:!1,formatData:function(e){return e.failedResults.map((function(e){return{errorCodes:e.errorCodes,users:[e.user]}}))}}},yearGroups:function(e){return{url:"{gateway}/v1/customers/".concat(e,"/year-groups?query={orderby:value}"),key:"yeargroups:".concat(e)}},updateAvatar:function(e,t,r,n){return{url:"{gateway}/v1/users/me/avatar",key:"update:avatar",type:s.k.PUT,invalidationKeys:["currentuser","school:users:".concat(t)],data:{fileId:e,fileIdType:c.z9.ImageAPIv2},success:r,error:n}},deleteAvatar:function(e,t,r,n){return{url:"{gateway}/v1/users/me/avatar/".concat(e),key:"delete:avatar",type:s.k.DELETE,updateState:{keys:["school:users:".concat(t),"currentuser"],updateData:function(e){var r,n=e["school:users:".concat(t)],a=e.currentuser;return n.avatar=null,a.avatar=null,p(r={},"school:users:".concat(t),n),p(r,"currentuser",a),r}},success:r,error:n}},changeEmail:function(e,t,r,n){return{url:"{gateway}/v1/users/me/email",key:"change:email",type:s.k.PUT,data:{email:e},success:t,error:r,always:n}},changePassword:function(e,t,r,n){return{url:"{gateway}/v1/users/me/password",key:"change:password",type:s.k.PUT,data:{currentPassword:e.currentPassword,newPassword:e.newPassword},success:t,error:r,always:n}},changeUserPassword:function(e,t,r,n,a,o,c){return{url:"{gateway}/v1/users/admin/change-password",key:"change:password:".concat(t,":").concat(e),type:s.k.PUT,data:{userId:e,newPassword:r,changeOnNextLogin:n},success:a,error:o,always:c}},resendActivationEmail:function(e,t,r){return{url:"{gateway}/v1/users/admin/activation",key:"send:activation:email",type:s.k.POST,data:{userId:e},success:t,error:r}},sendPasswordResetEmail:function(e,t,r,n){return{url:"{gateway}/v1/users/admin/account-reminder",key:"send:password:reset:email",type:s.k.POST,data:{userIds:[e],customerId:t},success:r,error:n}},resendVerificationEmail:function(e,t,r,n){return{url:"{gateway}/v1/users/admin/email-verification",key:"send:verification:email",type:s.k.POST,data:{userId:e,customerId:t},success:r,error:n}},exportList:function(e,t,r,n){return{url:o._.urlBuilder("{gateway}/v1/customers/".concat(e,"/users/report"),{userType:t}),key:"export:users:".concat(t),type:s.k.GET,formatData:function(e){return"data:text/csv;charset=utf-8,".concat(e)},success:r,error:n,invalidationKeys:["export:users:".concat(t)],normalize:!1}},userCount:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=i.P.buildSearchData({customerId:e,userId:t,userType:r,queryParams:n}),o="search:user:count";return o+=l.t.flattenObjectToString(a),{url:"{gateway}/v3/search/count",data:a,type:s.k.POST,key:o,normalize:!1}},authenticationMethods:function(e){return{url:o._.urlBuilder("{gateway}/v1/users/authentication-methods",{id:e}),key:"login:methods:".concat(e.sort().join(":")),normalizeOptions:{idAttribute:"userId"}}},getIdentityProviders:function(e){return{url:"{gateway}/v1/customers/".concat(e,"/identity-providers"),key:"identity:providers:".concat(e),normalize:!1}},getSsoMappings:function(e){return{url:"{gateway}/v1/customers/".concat(e,"/sso-year-group-mappings"),key:"sso:year:group:mappings:".concat(e),normalize:!1}},updateSsoMappings:function(e,t){return{url:"{gateway}/v1/customers/".concat(e,"/sso-year-group-mappings"),key:"sso:year:group:mappings:".concat(e,":update"),type:s.k.POST,invalidationKeys:"sso:year:group:mappings:".concat(e),data:t}},joinRequests:function(){return{url:"{gateway}/v1/customers/join-requests?status=pending",key:"join:requests",normalize:!1}},resolveJoinRequest:function(e,t){return{url:"{gateway}/v1/customers/join-requests/".concat(e),key:"resolve:join:request",type:s.k.PUT,data:{status:t},normalize:!1,invalidationKeys:["join:requests"]}}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9642],{56871:(e,a,t)=>{t.d(a,{N:()=>L});var i=t(1024),n=t.n(i),r=t(28400),c=t(23481),l=t(83657),o=t(83345),s=t(36848),d=t(11518),u=t(58704),p=t(15446),m=t(47862),v=t(22902),h=t(16714),y=t(12754),g=t(38647),C=t(4594),E=t(67753),P=t(10439),I=t(11025),x=t(35429),N=t(65986),V=t(97291),f=t(14070),b=t(81024),k=t(78166),A=t(99719),T=t(47938),F="shared.playClip",q=c.T.encloseNamespace(F),U=130;function L(e){var a,t,i,c,L,_,S,w,M,B,G,O,j,D=(0,x.g)(),R=(0,v.T)().hasPermissions,W=I.M.getCanBeConsumed(e.clip).canConsume,z=(0,N._)(N.i.PlayPage);function H(){var a;return!(null===(a=e.currentUser)||void 0===a?void 0:a.isAuthenticated)||!e.hasProduct(y.x.Primary)||!!R(h.C.StudentExperience)}var Y,K=(Y=e.originalVideo)?{application:V.O.VIDEOS,action:f.e.Videos.PLAY_VIDEO,args:[Y.id,r.m.slugify(Y.name)]}:null,Q=null!==(c=null===(i=null===(t=null===(a=e.originalVideo)||void 0===a?void 0:a.clips)||void 0===t?void 0:t.data)||void 0===i?void 0:i.filter((function(a){return a.id.toString()!==e.clip.id.toString()})))&&void 0!==c?c:[];return n().createElement("div",{className:"px-4"},n().createElement(T.W,{restrictions:e.clip._restrictions,yearGroups:e.yearGroups,objectId:e.clip.id,objectTypeId:C.E.Clip,canManageVideoAccess:e.canManageVideoAccess}),n().createElement("div",{className:"mb-2"},W&&n().createElement(P.r,{key:e.clip.id,objectId:e.clip.id,objectTypeId:e.clip.typeId,shareId:e.shareId,context:null===(L=e.queryParams)||void 0===L?void 0:L.context,contextId:null===(_=e.queryParams)||void 0===_?void 0:_.contextId,moviesAndTv:null===(S=e.queryParams)||void 0===S?void 0:S.mtv,playNext:null===(w=e.queryParams)||void 0===w?void 0:w.playNext,startTime:null===(M=e.queryParams)||void 0===M?void 0:M.t,mode:"default"}),n().createElement("div",{className:"picture-in-picture"===D.mode?"":"d-none"},n().createElement(b.S,{video:e.clip,type:"pip"}))),n().createElement("div",{className:"d-flex justify-content-between align-items-center"},n().createElement("div",{className:"d-flex flex-column"},n().createElement("h1",{className:"h3 d-inline-block mb-1"},e.clip.name,n().createElement(g.m,{tooltipPlacement:"right",className:"pl-1 mb-n1",video:e.clip,yearGroups:e.yearGroups})),!H()&&!!(null===(B=e.clip._canUpdate)||void 0===B?void 0:B.value)&&K&&n().createElement("p",{className:"mb-1 mr-3 clamp-1"},n().createElement(o.x,{namespace:F,phrase:"backTo"})," ",n().createElement(s.F,{className:"info-link",appLink:K},e.originalVideo.name))),(null===(G=e.currentUser)||void 0===G?void 0:G.isAuthenticated)&&e.hasProduct(y.x.Primary)&&n().createElement(l.e,{actions:z(e.clip),actionsDropdownClassName:"btn btn-outline-dark"})),!!e.clip.description&&n().createElement("div",{className:"pt-3"},n().createElement(A.X,{video:e.clip,maxHeight:U})),!(!(null==Q?void 0:Q.length)||H())&&n().createElement("div",{className:"mt-3 pb-3"},n().createElement(d.kM,{name:q("otherClips",{count:Q.length}),contents:u.z.Clips,collection:Q,prefetched:!0,getChildAppLink:function(e){return{application:V.O.CLIPS,action:f.e.Clips.PLAY_CLIP,args:[e.id,r.m.slugify(e.name)]}},childComponent:p.C,extraChildComponentProps:{video:e.originalVideo,imageCdnUrl:e.imageCdnUrl},analyticsData:{widgetId:"clips"}})),!(!(null===(j=null===(O=e.clip.interactives)||void 0===O?void 0:O.data)||void 0===j?void 0:j.length)||H())&&n().createElement("div",{className:"mt-3 pb-3"},n().createElement(d.kM,{name:q("interactives",{count:e.clip.interactives.data.length}),contents:u.z.Interactives,collection:e.clip.interactives.data,prefetched:!0,getChildAppLink:function(e){return{application:V.O.INTERACTIVES,action:f.e.Interactives.VIEW_INTERACTIVE,args:[e.id,r.m.slugify(e.name)]}},childComponent:m.K,extraChildComponentProps:{video:e.clip,questionsAppLink:{application:V.O.INTERACTIVES,action:f.e.Interactives.PREVIEW_QUESTIONS},imageCdnUrl:e.imageCdnUrl},analyticsData:{widgetId:"interactives"}})),n().createElement(k.Z,{currentVideo:e.clip,yearGroups:e.yearGroups,relatedVideos:e.relatedVideos,setFavourite:e.setFavourite,canFavourite:e.canFavourite,currentUser:e.currentUser,audiences:e.audiences,className:"mt-3",getVideoAppLink:function(a){return E.W.getAppLink(a,{context:e.queryParams.context,contextId:e.queryParams.contextId,playNext:e.queryParams.playNext,shareId:e.shareId,moviesAndTv:e.queryParams.mtv})},moviesAndTv:e.queryParams.mtv}))}},44110:(e,a,t)=>{t.d(a,{i:()=>l});var i=t(20354),n=t(25925),r=t(89454),c=t(86698),l=function(e){var a=(0,c.y)(n.R.Subject,null,e,!!e).presentation;return i.a.useBasicFetch(!!a&&r.O.presentationAudiences(a.id))}},27478:(e,a,t)=>{t.r(a),t.d(a,{PlayClipView:()=>b});var i=t(1024),n=t(20354),r=t(50242),c=t(23481),l=t(43012),o=t(1575),s=t(31949),d=t(27995),u=t(97037),p=t(65858),m=t(15311),v=t(78417),h=t(39151),y=t(1666),g=t(76753),C=t(44110),E=t(7179),P=t(36873),I=t(97816),x=t(56871),N=t(41063),V=t(79612),f=c.T.encloseNamespace("shared.playClip");function b(e){var a,t,c,b=e.queryParams,k=b.context,A=b.contextId,T=b.mtv,F=(0,m.r)().hasProduct,q=(0,u.c)(p.LocationContext.PlayClip),U=q.setFavourite,L=q.canFavourite,_=(0,N.b)(),S=n.a.useBasicFetch(s.N.currentUser()),w=n.a.useBasicFetch(h.L.config()),M=n.a.useBasicFetch(l.e.clip(e.id)),B=n.a.useBasicFetch(!!(null===(a=M.data)||void 0===a?void 0:a._parentVideo)&&o.R.video(M.data._parentVideo.id)),G=n.a.useBasicFetch(M.statusCode===r.o.Forbidden&&l.e.clip(e.id,v.r.StripMetadata)),O=(0,P.k)({video:B.data,context:k,contextId:A,moviesAndTv:T,currentUser:S.data}),j=(0,C.i)(),D=n.a.useBasicFetch((null===(t=S.data)||void 0===t?void 0:t.isAuthenticated)&&y.h.yearGroups(S.data.customerId));return(0,V.M)(g.C.getClipMetadata({content:M.data,phraseContext:{phraseHandler:f,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"}})),(0,I.V)(null!==(c=O.videos)&&void 0!==c?c:[],{hasCurriculumLinks:!0}),(0,d.b)(G),(0,E.P)({id:e.id,app:"clips"}),M.data&&S.hasCompleted&&w.hasCompleted?i.createElement(x.N,{clip:M.data,originalVideo:B.data,currentUser:S.data,yearGroups:D.data,relatedVideos:O,canFavourite:L,setFavourite:U,hasProduct:F,queryParams:e.queryParams,audiences:j.data,imageCdnUrl:w.data.imageCdnUrl,canManageVideoAccess:_}):i.createElement(i.Fragment,null)}b.defaultProps={queryParams:{}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9798],{19798:(e,t,r)=>{r.r(t),r.d(t,{BulkActionSummaryView:()=>j});var a=r(1024),o=r.n(a),n=r(20354),c=r(23481),s=r(9111),u=r(110),l=r(76881),i=r(69883),m=r(13876),p=r(83345),y=r(68036);const b={summary:"e6MNo"};function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}var f="userManager.bulkActionSummary";function g(e){var t,r,a=(t=o().useState(!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,o,n,c,s=[],u=!0,l=!1;try{if(n=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(a=n.call(r)).done)&&(s.push(a.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(c=r.return(),Object(c)!==c))return}finally{if(l)throw o}}return s}}(t,r)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),n=a[0],s=a[1],g=(0,i.Z)(),h=y.b.mapDataTypeToUserType(e.job.dataType);return o().createElement(p.D.Provider,{value:f},o().createElement("p",null,o().createElement(p.x,{phrase:h===l.Y.Learner?"detailsStudent":"detailsStaff",options:{name:e.job.submitterName,actionName:y.b.mapJobTypeToName(e.job.type),date:u.O.format(e.job.dateCreated,"Do MMMM YYYY"),smartCount:e.summary.totalProcessed}})),o().createElement("p",{className:"font-weight-bold"},o().createElement(p.x,{phrase:"summary"})),o().createElement("div",{className:"".concat(b.summary," rounded-lg p-3 mb-3")},o().createElement("p",{className:"mb-1"},o().createElement(p.x,{phrase:"totalProcessed",options:{count:e.summary.totalProcessed}})),o().createElement("p",{className:"mb-1"},o().createElement(p.x,{phrase:"totalSucceeded",options:{count:e.summary.totalSucceeded}})),o().createElement("p",{className:"mb-1"},o().createElement(p.x,{phrase:"totalErrored",options:{count:e.summary.totalErrored}})),o().createElement("p",{className:"mb-0"},o().createElement(p.x,{phrase:"totalNoAction",options:{count:e.summary.totalNoAction}}))),o().createElement(m.u,null,o().createElement(m.u.Cancel,{text:c.T.getPhrase(f,"close"),onClick:e.closePopup}),o().createElement(m.u.Submit,{text:c.T.getPhrase(f,"exportLog"),variant:"dark",onClick:function(){s(!0),e.onClickExportLog().then((function(){return g.success(c.T.getPhrase(f,"exportSuccess"))})).catch((function(){return g.error(c.T.getPhrase(f,"exportError"))})).finally((function(){return s(!1)}))},showSpinner:n})))}var h=r(29613),v="userManager.bulkActionSummaryView";function j(e){var t=n.a.useBasicFetch(h.q.getJob(e.id)),r=n.a.useBasicFetch(h.q.getJobSummary(e.id)),a=n.a.useGetFetchAsync(),u=!!t.data&&!!r.data;return o().createElement(s.G,{title:c.T.getPhrase(v,"title"),closePopup:e.closePopup,showLoadingSpinner:!u},u&&o().createElement(g,{job:t.data,summary:r.data,onClickExportLog:function(){return a(h.q.sendJobReports([e.id]))},closePopup:e.closePopup}))}},29613:(e,t,r)=>{r.d(t,{q:()=>n});var a=r(99940),o=r(97395),n={createJob:function(e,t,r){return{url:"{gateway}/v1/batch/jobs",key:"create:job",type:a.k.POST,data:e,success:t,error:r}},getJobs:function(e){var t={},r=[],a=[];return e.cursor&&(t.cursor=e.cursor),e.sort&&("oldest"===e.sort?t.order="ASC":t.order="DESC"),e.bulkActionType&&(r=Array.isArray(e.bulkActionType)?e.bulkActionType:[e.bulkActionType],t.type=r),e.userType&&(a=Array.isArray(e.userType)?e.userType:[e.userType],t.dataType=a),{url:o._.urlBuilder("{gateway}/v1/batch/jobs",t),key:"batch:jobs:".concat(e.cursor,":").concat(e.sort,":").concat(r.sort().join(":"),":").concat(a.sort().join(":"))}},getJob:function(e){return{url:"{gateway}/v1/batch/jobs/".concat(e),key:"job:".concat(e)}},getJobProgress:function(e,t,r){return{url:"{gateway}/v1/batch/jobs/".concat(e,"/progress"),key:"job:".concat(e,":progress"),invalidationKeys:"job:".concat(e,":progress"),success:t,error:r}},getJobResults:function(e,t,r,a,n){var c={status:t};return r&&(c.cursor=r),{url:o._.urlBuilder("{gateway}/v1/batch/jobs/".concat(e,"/results"),c),key:"job:".concat(e,":results:").concat(t,":").concat(r),success:a,error:n}},getYearGroupRolloverStatus:function(e){return{url:"{gateway}/v1/batch/validations/customers/".concat(e,"/year-group-roll-over"),key:"year:group:rollover:status"}},sendJobReports:function(e){return{url:"{gateway}/v1/batch/results/export",key:"send:job:reports:".concat(e.sort().join(":")),type:a.k.POST,data:{jobIds:e}}},getJobSummary:function(e){return{url:"{gateway}/v1/batch/jobs/".concat(e,"/summary"),key:"job:summary:".concat(e)}}}}}]);