@clickview/lite 0.17.2-dev.1 → 0.18.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (490) hide show
  1. package/.eslintrc.json +2 -2
  2. package/dist/bundles.json +3 -3
  3. package/dist/css/{2153-lite-b125f676ec.chunk.css → 1219-lite-e5009a049c.chunk.css} +1 -2
  4. package/dist/css/{5985-lite-411dbea6f2.chunk.css → 2135-lite-defe9f955c.chunk.css} +2 -3
  5. package/dist/css/{9482-lite-7ff818466d.chunk.css → 2191-lite-52189306f3.chunk.css} +1 -1
  6. package/dist/css/{2319-lite-d11335bef9.chunk.css → 2319-lite-5c28ed5ccd.chunk.css} +1 -1
  7. package/dist/css/{2851-lite-e2160bfafd.chunk.css → 2841-lite-37c211f2ef.chunk.css} +1 -2
  8. package/dist/css/{4233-lite-da8d343988.chunk.css → 2937-lite-2b1610093d.chunk.css} +1 -2
  9. package/dist/css/{9963-lite-c04a808764.chunk.css → 3240-lite-949de64172.chunk.css} +10 -12
  10. package/dist/css/{777-lite-c0284aa568.chunk.css → 3565-lite-bf8ca9a160.chunk.css} +1 -2
  11. package/dist/css/{4453-lite-8140e3b34f.chunk.css → 4453-lite-dc48a3bc1d.chunk.css} +1 -1
  12. package/dist/css/{4471-lite-9ab2d5e09d.chunk.css → 5104-lite-bd8ea8e227.chunk.css} +2 -3
  13. package/dist/css/{1053-lite-ebc32a1533.chunk.css → 5687-lite-7959662677.chunk.css} +5 -4
  14. package/dist/css/{9424-lite-da8d343988.chunk.css → 6061-lite-2b1610093d.chunk.css} +1 -2
  15. package/dist/css/6379-lite-62f236f359.chunk.css +4 -0
  16. package/dist/css/{6330-lite-46ed6be11f.chunk.css → 655-lite-0314629b01.chunk.css} +1 -0
  17. package/dist/css/{5104-lite-07ab28ebc9.chunk.css → 6810-lite-88e93bd216.chunk.css} +5 -4
  18. package/dist/css/{309-lite-058a518c6d.chunk.css → 7478-lite-4674cd4cfe.chunk.css} +1 -0
  19. package/dist/css/{3994-lite-c0284aa568.chunk.css → 7737-lite-bf8ca9a160.chunk.css} +1 -2
  20. package/dist/css/{7958-lite-ae3425c81a.chunk.css → 7967-lite-dc1c2e8b0f.chunk.css} +8 -10
  21. package/dist/css/849-lite-cc73e26bd7.chunk.css +25 -0
  22. package/dist/css/{8898-lite-d11335bef9.chunk.css → 8898-lite-5c28ed5ccd.chunk.css} +1 -1
  23. package/dist/css/{2191-lite-7ff818466d.chunk.css → 9482-lite-52189306f3.chunk.css} +1 -1
  24. package/dist/css/{969-lite-bc5496da9f.chunk.css → 969-lite-7140acaf0b.chunk.css} +2 -3
  25. package/dist/css/{3177-lite-8df655c2f9.chunk.css → 9863-lite-9f8cedefda.chunk.css} +2 -3
  26. package/dist/css/{lite-app-0eddd54de0.css → lite-app-fc529bc51a.css} +3 -3
  27. package/dist/languages/en.json +1 -1
  28. package/dist/scripts/1075-90255430fb-lite.chunk.js +1 -0
  29. package/dist/scripts/1160-86d411f9e8-lite.chunk.js +1 -0
  30. package/dist/scripts/{1200-fdbb00760e-lite.chunk.js → 1200-0b2df6e770-lite.chunk.js} +2 -2
  31. package/dist/scripts/1219-9157179bdd-lite.chunk.js +1 -0
  32. package/dist/scripts/1285-4501141c29-lite.chunk.js +1 -0
  33. package/dist/scripts/1291-70427d0f12-lite.chunk.js +1 -0
  34. package/dist/scripts/1518-0873d61518-lite.chunk.js +1 -0
  35. package/dist/scripts/1592-14e9f658fd-lite.chunk.js +2 -0
  36. package/dist/scripts/1684-98ed45307f-lite.chunk.js +2 -0
  37. package/dist/scripts/1725-2b1d9c5266-lite.chunk.js +1 -0
  38. package/dist/scripts/1726-a44c01e562-lite.chunk.js +1 -0
  39. package/dist/scripts/1792-d40f895c3a-lite.chunk.js +1 -0
  40. package/dist/scripts/1837-2a096dbabd-lite.chunk.js +1 -0
  41. package/dist/scripts/1863-5e8d59b0ed-lite.chunk.js +1 -0
  42. package/dist/scripts/1891-6be69177b3-lite.chunk.js +1 -0
  43. package/dist/scripts/1924-91d2ce3025-lite.chunk.js +1 -0
  44. package/dist/scripts/1958-990cb7754f-lite.chunk.js +1 -0
  45. package/dist/scripts/209-539b6299c6-lite.chunk.js +1 -0
  46. package/dist/scripts/{2097-5b8d15d472-lite.chunk.js → 2097-1fec9b4c86-lite.chunk.js} +2 -2
  47. package/dist/scripts/{4471-5620ca10ad-lite.chunk.js → 2135-e846e647f6-lite.chunk.js} +1 -1
  48. package/dist/scripts/2208-ae1669cce3-lite.chunk.js +1 -0
  49. package/dist/scripts/2215-2d2ba45a81-lite.chunk.js +1 -0
  50. package/dist/scripts/2279-673600a92b-lite.chunk.js +1 -0
  51. package/dist/scripts/2281-b38a7a5794-lite.chunk.js +2 -0
  52. package/dist/scripts/2303-c8806a714e-lite.chunk.js +1 -0
  53. package/dist/scripts/249-45f1f74613-lite.chunk.js +1 -0
  54. package/dist/scripts/2838-b4ee79c6d1-lite.chunk.js +1 -0
  55. package/dist/scripts/2841-2551475208-lite.chunk.js +1 -0
  56. package/dist/scripts/291-dc43ed44d2-lite.chunk.js +1 -0
  57. package/dist/scripts/2937-dc0a9cef5b-lite.chunk.js +1 -0
  58. package/dist/scripts/3012-385bc14160-lite.chunk.js +1 -0
  59. package/dist/scripts/3019-121abfc7d3-lite.chunk.js +1 -0
  60. package/dist/scripts/3020-9aa88e14ad-lite.chunk.js +1 -0
  61. package/dist/scripts/{1684-7059d6d630-lite.chunk.js → 3053-a80bc38385-lite.chunk.js} +1 -1
  62. package/dist/scripts/3108-4e2349fae5-lite.chunk.js +1 -0
  63. package/dist/scripts/3171-48a107d621-lite.chunk.js +1 -0
  64. package/dist/scripts/3216-029fc03dc3-lite.chunk.js +1 -0
  65. package/dist/scripts/3231-8036c953ca-lite.chunk.js +1 -0
  66. package/dist/scripts/3237-f976897749-lite.chunk.js +1 -0
  67. package/dist/scripts/3240-7bc528811a-lite.chunk.js +1 -0
  68. package/dist/scripts/3285-f85056c04f-lite.chunk.js +1 -0
  69. package/dist/scripts/3468-2f385ce0dd-lite.chunk.js +1 -0
  70. package/dist/scripts/3533-1bfb5747d2-lite.chunk.js +1 -0
  71. package/dist/scripts/3565-111534490d-lite.chunk.js +1 -0
  72. package/dist/scripts/3626-f5fa249209-lite.chunk.js +1 -0
  73. package/dist/scripts/3667-b8ef9efadf-lite.chunk.js +2 -0
  74. package/dist/scripts/3728-7a337f4dc1-lite.chunk.js +1 -0
  75. package/dist/scripts/3754-fa7f42936a-lite.chunk.js +1 -0
  76. package/dist/scripts/3787-6a23e0bbc6-lite.chunk.js +1 -0
  77. package/dist/scripts/389-9943206114-lite.chunk.js +1 -0
  78. package/dist/scripts/3948-908c532b57-lite.chunk.js +1 -0
  79. package/dist/scripts/4113-220d0e945f-lite.chunk.js +1 -0
  80. package/dist/scripts/4182-554dab5f52-lite.chunk.js +1 -0
  81. package/dist/scripts/4343-62c6b29bfc-lite.chunk.js +1 -0
  82. package/dist/scripts/4380-250987f344-lite.chunk.js +1 -0
  83. package/dist/scripts/4423-00f0762359-lite.chunk.js +1 -0
  84. package/dist/scripts/4453-c859261c08-lite.chunk.js +1 -0
  85. package/dist/scripts/4484-934cafe764-lite.chunk.js +1 -0
  86. package/dist/scripts/4519-ef4a945c19-lite.chunk.js +1 -0
  87. package/dist/scripts/4541-8a5f2fb33e-lite.chunk.js +1 -0
  88. package/dist/scripts/4559-10942d0d49-lite.chunk.js +1 -0
  89. package/dist/scripts/4609-562a9b85c8-lite.chunk.js +1 -0
  90. package/dist/scripts/4617-3530a84536-lite.chunk.js +1 -0
  91. package/dist/scripts/4722-02ba508014-lite.chunk.js +1 -0
  92. package/dist/scripts/482-b797830da6-lite.chunk.js +1 -0
  93. package/dist/scripts/4893-81662a0c1c-lite.chunk.js +1 -0
  94. package/dist/scripts/5081-86adb76b64-lite.chunk.js +2 -0
  95. package/dist/scripts/{5985-e829a1f16f-lite.chunk.js → 5104-ac953a963b-lite.chunk.js} +1 -1
  96. package/dist/scripts/5134-086b35a21c-lite.chunk.js +1 -0
  97. package/dist/scripts/5173-ad4994bc60-lite.chunk.js +1 -0
  98. package/dist/scripts/5229-ab66e95fb9-lite.chunk.js +1 -0
  99. package/dist/scripts/5293-5d84db20ed-lite.chunk.js +1 -0
  100. package/dist/scripts/5509-281f22f4de-lite.chunk.js +1 -0
  101. package/dist/scripts/5606-a95d7bec15-lite.chunk.js +1 -0
  102. package/dist/scripts/5687-1a1feacde0-lite.chunk.js +1 -0
  103. package/dist/scripts/5823-f3245b4199-lite.chunk.js +1 -0
  104. package/dist/scripts/5875-679a563954-lite.chunk.js +2 -0
  105. package/dist/scripts/5877-ffdafeda59-lite.chunk.js +1 -0
  106. package/dist/scripts/5956-eb98106bf1-lite.chunk.js +1 -0
  107. package/dist/scripts/5974-c26980f894-lite.chunk.js +1 -0
  108. package/dist/scripts/598-2d7c3c8d2e-lite.chunk.js +1 -0
  109. package/dist/scripts/5986-c8b15d56d4-lite.chunk.js +1 -0
  110. package/dist/scripts/6014-724f921a28-lite.chunk.js +1 -0
  111. package/dist/scripts/6061-86607dadc7-lite.chunk.js +1 -0
  112. package/dist/scripts/6080-f3c955754f-lite.chunk.js +1 -0
  113. package/dist/scripts/6086-f7e07745bc-lite.chunk.js +1 -0
  114. package/dist/scripts/6117-202667041b-lite.chunk.js +1 -0
  115. package/dist/scripts/614-cee9d42a10-lite.chunk.js +1 -0
  116. package/dist/scripts/6158-48f018bbdb-lite.chunk.js +1 -0
  117. package/dist/scripts/6255-b0a6aa4a23-lite.chunk.js +1 -0
  118. package/dist/scripts/6263-131d7f5c14-lite.chunk.js +1 -0
  119. package/dist/scripts/6274-87d8a27451-lite.chunk.js +1 -0
  120. package/dist/scripts/6290-f35b8451f4-lite.chunk.js +1 -0
  121. package/dist/scripts/6302-bd98a0f211-lite.chunk.js +1 -0
  122. package/dist/scripts/6368-3400596edf-lite.chunk.js +1 -0
  123. package/dist/scripts/6369-c0bddb6f53-lite.chunk.js +1 -0
  124. package/dist/scripts/6370-62127696d9-lite.chunk.js +1 -0
  125. package/dist/scripts/6379-1b29e0491b-lite.chunk.js +1 -0
  126. package/dist/scripts/6381-df33ada1f6-lite.chunk.js +1 -0
  127. package/dist/scripts/6387-ba3224aa3b-lite.chunk.js +1 -0
  128. package/dist/scripts/6450-6016b12fa6-lite.chunk.js +1 -0
  129. package/dist/scripts/6465-5781dde945-lite.chunk.js +1 -0
  130. package/dist/scripts/6480-2a4e357bf8-lite.chunk.js +1 -0
  131. package/dist/scripts/6507-a22e294394-lite.chunk.js +1 -0
  132. package/dist/scripts/655-26c79c3810-lite.chunk.js +1 -0
  133. package/dist/scripts/6604-3d09473f89-lite.chunk.js +1 -0
  134. package/dist/scripts/6689-9959def9cb-lite.chunk.js +1 -0
  135. package/dist/scripts/6725-4681caad1e-lite.chunk.js +1 -0
  136. package/dist/scripts/6736-cffe5aabea-lite.chunk.js +2 -0
  137. package/dist/scripts/6801-a381d427d2-lite.chunk.js +1 -0
  138. package/dist/scripts/6810-3391e356f3-lite.chunk.js +1 -0
  139. package/dist/scripts/6823-a7fc572f4e-lite.chunk.js +2 -0
  140. package/dist/scripts/6823-a7fc572f4e-lite.chunk.js.LICENSE.txt +6 -0
  141. package/dist/scripts/6866-ee6fc0a0b5-lite.chunk.js +1 -0
  142. package/dist/scripts/6896-3193d908ba-lite.chunk.js +1 -0
  143. package/dist/scripts/6913-3bcc9ffab5-lite.chunk.js +1 -0
  144. package/dist/scripts/6930-f000b60fe7-lite.chunk.js +1 -0
  145. package/dist/scripts/7007-c677dd3033-lite.chunk.js +1 -0
  146. package/dist/scripts/7017-b08b7b5dd2-lite.chunk.js +1 -0
  147. package/dist/scripts/7045-aa30ff4722-lite.chunk.js +1 -0
  148. package/dist/scripts/7056-3d009caae3-lite.chunk.js +1 -0
  149. package/dist/scripts/{7112-a8fbba768e-lite.chunk.js → 7112-1f91af81de-lite.chunk.js} +2 -2
  150. package/dist/scripts/7115-04ab64ed64-lite.chunk.js +1 -0
  151. package/dist/scripts/7128-79f02bfd39-lite.chunk.js +1 -0
  152. package/dist/scripts/7172-8ad03692bd-lite.chunk.js +1 -0
  153. package/dist/scripts/7178-87d1bdf5de-lite.chunk.js +1 -0
  154. package/dist/scripts/7307-ddf40c08db-lite.chunk.js +1 -0
  155. package/dist/scripts/7318-2624f3e7a8-lite.chunk.js +2 -0
  156. package/dist/scripts/7327-96c43a1ae2-lite.chunk.js +2 -0
  157. package/dist/scripts/7332-8f3a5b8ef5-lite.chunk.js +1 -0
  158. package/dist/scripts/7397-d28706a4cb-lite.chunk.js +1 -0
  159. package/dist/scripts/7407-a65ab04887-lite.chunk.js +1 -0
  160. package/dist/scripts/7409-4c14128df0-lite.chunk.js +1 -0
  161. package/dist/scripts/7416-67821964bb-lite.chunk.js +2 -0
  162. package/dist/scripts/7478-9a21328b88-lite.chunk.js +1 -0
  163. package/dist/scripts/7490-653c999904-lite.chunk.js +1 -0
  164. package/dist/scripts/7506-09a70fbf9f-lite.chunk.js +1 -0
  165. package/dist/scripts/{7515-bf476781db-lite.chunk.js → 7515-8b1cb2acef-lite.chunk.js} +2 -2
  166. package/dist/scripts/7524-ccb68238a9-lite.chunk.js +1 -0
  167. package/dist/scripts/{754-555d370678-lite.chunk.js → 754-22cd39c043-lite.chunk.js} +1 -1
  168. package/dist/scripts/7708-cd0bc87fee-lite.chunk.js +1 -0
  169. package/dist/scripts/7737-38869c947f-lite.chunk.js +1 -0
  170. package/dist/scripts/7739-66ac056fc4-lite.chunk.js +1 -0
  171. package/dist/scripts/7756-2528a5880e-lite.chunk.js +1 -0
  172. package/dist/scripts/7831-3b7c6f532d-lite.chunk.js +1 -0
  173. package/dist/scripts/7855-27e0da95eb-lite.chunk.js +1 -0
  174. package/dist/scripts/7888-77a06a9360-lite.chunk.js +1 -0
  175. package/dist/scripts/7919-967360242e-lite.chunk.js +2 -0
  176. package/dist/scripts/7939-640b0a3ed9-lite.chunk.js +1 -0
  177. package/dist/scripts/7967-744904c147-lite.chunk.js +1 -0
  178. package/dist/scripts/8025-ccb49cd4aa-lite.chunk.js +1 -0
  179. package/dist/scripts/{8038-4c3d785f60-lite.chunk.js → 8038-f21a61b1ff-lite.chunk.js} +1 -1
  180. package/dist/scripts/8046-787309872c-lite.chunk.js +1 -0
  181. package/dist/scripts/8056-2ab549ad96-lite.chunk.js +1 -0
  182. package/dist/scripts/8114-690a8c5eb7-lite.chunk.js +1 -0
  183. package/dist/scripts/8187-c8ec1f5842-lite.chunk.js +1 -0
  184. package/dist/scripts/823-15eec091e8-lite.chunk.js +1 -0
  185. package/dist/scripts/824-488f354e66-lite.chunk.js +1 -0
  186. package/dist/scripts/8252-25f5dcecbf-lite.chunk.js +1 -0
  187. package/dist/scripts/8323-abba3829a3-lite.chunk.js +2 -0
  188. package/dist/scripts/8377-02852ec841-lite.chunk.js +1 -0
  189. package/dist/scripts/8466-6fc579e8a5-lite.chunk.js +1 -0
  190. package/dist/scripts/849-018a6e85e8-lite.chunk.js +1 -0
  191. package/dist/scripts/8621-347ed37736-lite.chunk.js +1 -0
  192. package/dist/scripts/8627-79ebb5eeee-lite.chunk.js +1 -0
  193. package/dist/scripts/8729-ba56364bc5-lite.chunk.js +1 -0
  194. package/dist/scripts/8772-e0ef7f5cd6-lite.chunk.js +1 -0
  195. package/dist/scripts/8801-457b1ca8e1-lite.chunk.js +1 -0
  196. package/dist/scripts/8820-bdaa6084e5-lite.chunk.js +1 -0
  197. package/dist/scripts/8830-557ddfca1c-lite.chunk.js +1 -0
  198. package/dist/scripts/8868-f58dea6bba-lite.chunk.js +1 -0
  199. package/dist/scripts/8944-d290828f67-lite.chunk.js +1 -0
  200. package/dist/scripts/8955-92a584db62-lite.chunk.js +1 -0
  201. package/dist/scripts/{9005-a269a44711-lite.chunk.js → 9005-199d6ce591-lite.chunk.js} +1 -1
  202. package/dist/scripts/9016-2ff1550ba8-lite.chunk.js +1 -0
  203. package/dist/scripts/9035-0eb175113c-lite.chunk.js +1 -0
  204. package/dist/scripts/9038-6c5951d312-lite.chunk.js +1 -0
  205. package/dist/scripts/9060-2846accc15-lite.chunk.js +1 -0
  206. package/dist/scripts/9107-2920fc271c-lite.chunk.js +1 -0
  207. package/dist/scripts/9133-0cf22ea834-lite.chunk.js +1 -0
  208. package/dist/scripts/9154-6acfcb21e5-lite.chunk.js +1 -0
  209. package/dist/scripts/9242-5a2d447f21-lite.chunk.js +1 -0
  210. package/dist/scripts/9264-30bf5991c7-lite.chunk.js +1 -0
  211. package/dist/scripts/9273-b11d622c62-lite.chunk.js +1 -0
  212. package/dist/scripts/9455-15f92cc7cf-lite.chunk.js +1 -0
  213. package/dist/scripts/{9478-72e72c2a5f-lite.chunk.js → 9478-98989f923c-lite.chunk.js} +2 -2
  214. package/dist/scripts/9552-4f26e4c573-lite.chunk.js +1 -0
  215. package/dist/scripts/9674-3d429f1f50-lite.chunk.js +1 -0
  216. package/dist/scripts/9686-f9ddd9a8ee-lite.chunk.js +1 -0
  217. package/dist/scripts/969-14cf1224cb-lite.chunk.js +1 -0
  218. package/dist/scripts/9749-4c78d6ab76-lite.chunk.js +1 -0
  219. package/dist/scripts/9767-56c1eec3d8-lite.chunk.js +1 -0
  220. package/dist/scripts/9798-370870abef-lite.chunk.js +1 -0
  221. package/dist/scripts/9863-339e76d9af-lite.chunk.js +1 -0
  222. package/dist/scripts/9880-f624350e3f-lite.chunk.js +1 -0
  223. package/dist/scripts/bundle-35f7d4ba04.min.js +2 -0
  224. package/dist/scripts/{bundle-74fa02174d.min.js.LICENSE.txt → bundle-35f7d4ba04.min.js.LICENSE.txt} +0 -9
  225. package/dist/scripts/pdf.worker.entry-df5108a90e.min.worker.js +2 -0
  226. package/dist/scripts/polyfills-7acbc0c997.min.js +2 -0
  227. package/dist/scripts/polyfills-7acbc0c997.min.js.LICENSE.txt +1 -0
  228. package/jest.config.js +11 -11
  229. package/package.json +62 -62
  230. package/typings/libs/CVEvents.d.ts +12 -12
  231. package/typings/libs/CVLanguages.d.ts +24 -24
  232. package/typings/libs/backbone.validation.d.ts +99 -99
  233. package/typings/libs/cloneDeep.d.ts +5 -0
  234. package/typings/libs/cookiesjs.d.ts +25 -25
  235. package/typings/libs/draft-convert.d.ts +3 -3
  236. package/typings/libs/google-api.d.ts +93 -93
  237. package/typings/libs/intersection-observer.d.ts +82 -82
  238. package/typings/libs/microsoft-teams.d.ts +2 -2
  239. package/typings/libs/react-table-config.d.ts +138 -138
  240. package/typings/libs/trackjs.d.ts +2 -2
  241. package/typings/libs/videojs-contrib-quality-levels.d.ts +28 -28
  242. package/typings/utils/imports.d.ts +13 -13
  243. package/dist/css/6379-lite-e8ae7fbfc0.chunk.css +0 -4
  244. package/dist/scripts/1053-6fc6dde0e3-lite.chunk.js +0 -1
  245. package/dist/scripts/1075-fea376305b-lite.chunk.js +0 -1
  246. package/dist/scripts/1160-baa6acc98b-lite.chunk.js +0 -1
  247. package/dist/scripts/1285-6fb30fc0a1-lite.chunk.js +0 -1
  248. package/dist/scripts/1291-34074f0f31-lite.chunk.js +0 -1
  249. package/dist/scripts/1442-8ecb7651ae-lite.chunk.js +0 -2
  250. package/dist/scripts/1518-854be3f010-lite.chunk.js +0 -1
  251. package/dist/scripts/1592-edae0cfd35-lite.chunk.js +0 -2
  252. package/dist/scripts/1725-4ef2cef26a-lite.chunk.js +0 -1
  253. package/dist/scripts/1726-9e67d5dad6-lite.chunk.js +0 -1
  254. package/dist/scripts/1792-f72f5918d7-lite.chunk.js +0 -1
  255. package/dist/scripts/1837-b51c3e35d5-lite.chunk.js +0 -1
  256. package/dist/scripts/1863-0418b6efba-lite.chunk.js +0 -1
  257. package/dist/scripts/1891-cb9e793dcd-lite.chunk.js +0 -1
  258. package/dist/scripts/1924-b3871f427a-lite.chunk.js +0 -1
  259. package/dist/scripts/1958-0198e2c350-lite.chunk.js +0 -1
  260. package/dist/scripts/209-73f76c7e1a-lite.chunk.js +0 -1
  261. package/dist/scripts/2153-28efcc4753-lite.chunk.js +0 -1
  262. package/dist/scripts/2208-903428f5a0-lite.chunk.js +0 -1
  263. package/dist/scripts/2215-9431031e3a-lite.chunk.js +0 -1
  264. package/dist/scripts/2279-e524379a62-lite.chunk.js +0 -1
  265. package/dist/scripts/2281-e04490741a-lite.chunk.js +0 -2
  266. package/dist/scripts/2303-246049858a-lite.chunk.js +0 -1
  267. package/dist/scripts/249-78644459d5-lite.chunk.js +0 -1
  268. package/dist/scripts/2851-ce45e50788-lite.chunk.js +0 -1
  269. package/dist/scripts/291-98aa4d621e-lite.chunk.js +0 -1
  270. package/dist/scripts/3012-9e2742a042-lite.chunk.js +0 -1
  271. package/dist/scripts/3019-581bb55112-lite.chunk.js +0 -1
  272. package/dist/scripts/3020-1246e157c1-lite.chunk.js +0 -1
  273. package/dist/scripts/309-82a6910606-lite.chunk.js +0 -1
  274. package/dist/scripts/3108-696c32179b-lite.chunk.js +0 -1
  275. package/dist/scripts/3143-2855610052-lite.chunk.js +0 -2
  276. package/dist/scripts/3171-ca3656aec1-lite.chunk.js +0 -1
  277. package/dist/scripts/3177-624802b850-lite.chunk.js +0 -1
  278. package/dist/scripts/3216-1802bdd0de-lite.chunk.js +0 -1
  279. package/dist/scripts/3231-0766d5b520-lite.chunk.js +0 -1
  280. package/dist/scripts/3237-ba03ae7add-lite.chunk.js +0 -1
  281. package/dist/scripts/3285-c4317b05f8-lite.chunk.js +0 -1
  282. package/dist/scripts/3468-852268650b-lite.chunk.js +0 -1
  283. package/dist/scripts/3533-42f411f61a-lite.chunk.js +0 -1
  284. package/dist/scripts/3626-458f2145ae-lite.chunk.js +0 -1
  285. package/dist/scripts/3728-0f9c4c500d-lite.chunk.js +0 -1
  286. package/dist/scripts/3754-b54aae1986-lite.chunk.js +0 -1
  287. package/dist/scripts/3787-7b96f4d4a7-lite.chunk.js +0 -1
  288. package/dist/scripts/389-e79bad42b1-lite.chunk.js +0 -1
  289. package/dist/scripts/3948-fdaf6f97ca-lite.chunk.js +0 -1
  290. package/dist/scripts/3994-b2a5b4f657-lite.chunk.js +0 -1
  291. package/dist/scripts/4113-ed8f9b3c93-lite.chunk.js +0 -1
  292. package/dist/scripts/4182-b6f53a82f6-lite.chunk.js +0 -1
  293. package/dist/scripts/4233-8954941fea-lite.chunk.js +0 -1
  294. package/dist/scripts/4343-9cdc01bcf4-lite.chunk.js +0 -1
  295. package/dist/scripts/4380-11c6854916-lite.chunk.js +0 -1
  296. package/dist/scripts/4423-4badf061c7-lite.chunk.js +0 -1
  297. package/dist/scripts/4453-2a7a132c00-lite.chunk.js +0 -1
  298. package/dist/scripts/4484-2e7a219372-lite.chunk.js +0 -1
  299. package/dist/scripts/4519-88242be1ac-lite.chunk.js +0 -1
  300. package/dist/scripts/4541-4d78904280-lite.chunk.js +0 -1
  301. package/dist/scripts/4609-fcdaed74c2-lite.chunk.js +0 -1
  302. package/dist/scripts/4617-79257249bf-lite.chunk.js +0 -1
  303. package/dist/scripts/4722-54fc5063c8-lite.chunk.js +0 -1
  304. package/dist/scripts/482-d2d8fd4bda-lite.chunk.js +0 -1
  305. package/dist/scripts/4893-f19c6f1593-lite.chunk.js +0 -1
  306. package/dist/scripts/5104-faecb14a85-lite.chunk.js +0 -1
  307. package/dist/scripts/5134-557dac36db-lite.chunk.js +0 -1
  308. package/dist/scripts/5145-ad64685aab-lite.chunk.js +0 -1
  309. package/dist/scripts/5173-3f1b431216-lite.chunk.js +0 -1
  310. package/dist/scripts/5229-a5a826a741-lite.chunk.js +0 -1
  311. package/dist/scripts/5293-9f76ad8f1e-lite.chunk.js +0 -1
  312. package/dist/scripts/5509-bb2c1781b9-lite.chunk.js +0 -1
  313. package/dist/scripts/5606-2f27f2fe34-lite.chunk.js +0 -1
  314. package/dist/scripts/5823-99243f8094-lite.chunk.js +0 -1
  315. package/dist/scripts/5875-95fbcaaa30-lite.chunk.js +0 -2
  316. package/dist/scripts/5877-ccf5835809-lite.chunk.js +0 -1
  317. package/dist/scripts/5956-51289b18c5-lite.chunk.js +0 -1
  318. package/dist/scripts/5974-1a23d799ca-lite.chunk.js +0 -1
  319. package/dist/scripts/598-e640813980-lite.chunk.js +0 -1
  320. package/dist/scripts/5986-8827c2f2e2-lite.chunk.js +0 -1
  321. package/dist/scripts/6014-60904fec14-lite.chunk.js +0 -1
  322. package/dist/scripts/6080-b70f0ee44e-lite.chunk.js +0 -1
  323. package/dist/scripts/6086-979266c2c6-lite.chunk.js +0 -1
  324. package/dist/scripts/6117-74590f7985-lite.chunk.js +0 -1
  325. package/dist/scripts/614-0bb64c3d45-lite.chunk.js +0 -1
  326. package/dist/scripts/6158-586db767e1-lite.chunk.js +0 -1
  327. package/dist/scripts/6255-0613937a45-lite.chunk.js +0 -1
  328. package/dist/scripts/6263-b99a4903f4-lite.chunk.js +0 -1
  329. package/dist/scripts/6274-3f826f9e45-lite.chunk.js +0 -1
  330. package/dist/scripts/6290-ad8e2d7e0c-lite.chunk.js +0 -1
  331. package/dist/scripts/6302-f47a1262be-lite.chunk.js +0 -1
  332. package/dist/scripts/6330-9a7743427a-lite.chunk.js +0 -1
  333. package/dist/scripts/6368-6e6e962492-lite.chunk.js +0 -1
  334. package/dist/scripts/6369-72d977b629-lite.chunk.js +0 -1
  335. package/dist/scripts/6370-407ad0543a-lite.chunk.js +0 -1
  336. package/dist/scripts/6379-c67d418d83-lite.chunk.js +0 -1
  337. package/dist/scripts/6381-4aab2942be-lite.chunk.js +0 -1
  338. package/dist/scripts/6387-286bfa4b20-lite.chunk.js +0 -1
  339. package/dist/scripts/6450-cd3d8f3502-lite.chunk.js +0 -1
  340. package/dist/scripts/6465-c11641adbe-lite.chunk.js +0 -1
  341. package/dist/scripts/6480-d3be6482fb-lite.chunk.js +0 -1
  342. package/dist/scripts/6507-4307a5f087-lite.chunk.js +0 -1
  343. package/dist/scripts/6604-3c2f3171a5-lite.chunk.js +0 -1
  344. package/dist/scripts/6689-e5d9f27111-lite.chunk.js +0 -1
  345. package/dist/scripts/6725-47d9b15d14-lite.chunk.js +0 -1
  346. package/dist/scripts/6736-807f6b6c82-lite.chunk.js +0 -2
  347. package/dist/scripts/6801-8e542cded8-lite.chunk.js +0 -1
  348. package/dist/scripts/6866-0ba7543875-lite.chunk.js +0 -1
  349. package/dist/scripts/6896-17de0fc356-lite.chunk.js +0 -1
  350. package/dist/scripts/6913-8c3281b311-lite.chunk.js +0 -1
  351. package/dist/scripts/6930-892e4e9465-lite.chunk.js +0 -1
  352. package/dist/scripts/7007-322fe4cee7-lite.chunk.js +0 -1
  353. package/dist/scripts/7017-ecb254e80b-lite.chunk.js +0 -1
  354. package/dist/scripts/7045-fcad8b1914-lite.chunk.js +0 -1
  355. package/dist/scripts/7056-91f8a7e829-lite.chunk.js +0 -1
  356. package/dist/scripts/7115-04d195d4c9-lite.chunk.js +0 -1
  357. package/dist/scripts/7128-e78381873f-lite.chunk.js +0 -1
  358. package/dist/scripts/7172-6b7be396b2-lite.chunk.js +0 -1
  359. package/dist/scripts/7178-c31b9022bb-lite.chunk.js +0 -1
  360. package/dist/scripts/7307-3a32bf564b-lite.chunk.js +0 -1
  361. package/dist/scripts/7318-6cc811f662-lite.chunk.js +0 -2
  362. package/dist/scripts/7327-178164fd2c-lite.chunk.js +0 -2
  363. package/dist/scripts/7332-78c2b7ba61-lite.chunk.js +0 -1
  364. package/dist/scripts/7397-1a2f0a8b1a-lite.chunk.js +0 -1
  365. package/dist/scripts/7407-db6e0f1149-lite.chunk.js +0 -1
  366. package/dist/scripts/7409-4440fe2429-lite.chunk.js +0 -1
  367. package/dist/scripts/7416-571043c67f-lite.chunk.js +0 -2
  368. package/dist/scripts/7490-cac0cd2515-lite.chunk.js +0 -1
  369. package/dist/scripts/7506-df6e972a6c-lite.chunk.js +0 -1
  370. package/dist/scripts/7524-c73a4bdedf-lite.chunk.js +0 -1
  371. package/dist/scripts/7708-6928f663bd-lite.chunk.js +0 -1
  372. package/dist/scripts/7739-1a6953af69-lite.chunk.js +0 -1
  373. package/dist/scripts/7756-9bffa0ba48-lite.chunk.js +0 -1
  374. package/dist/scripts/777-8dad152202-lite.chunk.js +0 -1
  375. package/dist/scripts/7825-b9a84630bd-lite.chunk.js +0 -1
  376. package/dist/scripts/7831-41d5fb1965-lite.chunk.js +0 -1
  377. package/dist/scripts/7855-f282624e12-lite.chunk.js +0 -1
  378. package/dist/scripts/7888-2f6d672f99-lite.chunk.js +0 -1
  379. package/dist/scripts/7919-3ec0f37103-lite.chunk.js +0 -2
  380. package/dist/scripts/7939-36f426cfc9-lite.chunk.js +0 -1
  381. package/dist/scripts/7958-7028820c52-lite.chunk.js +0 -1
  382. package/dist/scripts/7989-4762231e68-lite.chunk.js +0 -2
  383. package/dist/scripts/7989-4762231e68-lite.chunk.js.LICENSE.txt +0 -8
  384. package/dist/scripts/8025-a57448366a-lite.chunk.js +0 -1
  385. package/dist/scripts/8046-f5a9bca578-lite.chunk.js +0 -1
  386. package/dist/scripts/8056-a90b8b08a9-lite.chunk.js +0 -1
  387. package/dist/scripts/8114-a67382343b-lite.chunk.js +0 -1
  388. package/dist/scripts/8187-5b85d31822-lite.chunk.js +0 -1
  389. package/dist/scripts/823-a7b464433f-lite.chunk.js +0 -1
  390. package/dist/scripts/824-2ee9558d57-lite.chunk.js +0 -1
  391. package/dist/scripts/8252-09f92bf0cb-lite.chunk.js +0 -1
  392. package/dist/scripts/8300-40617c6125-lite.chunk.js +0 -1
  393. package/dist/scripts/8323-92be705264-lite.chunk.js +0 -2
  394. package/dist/scripts/8377-01009f500b-lite.chunk.js +0 -1
  395. package/dist/scripts/8466-cd2bc68564-lite.chunk.js +0 -1
  396. package/dist/scripts/8621-e4b53cb359-lite.chunk.js +0 -1
  397. package/dist/scripts/8627-4c5b304987-lite.chunk.js +0 -1
  398. package/dist/scripts/8729-747d9ff790-lite.chunk.js +0 -1
  399. package/dist/scripts/8772-b60c7b4070-lite.chunk.js +0 -1
  400. package/dist/scripts/8801-371bb76921-lite.chunk.js +0 -1
  401. package/dist/scripts/8820-fdcbf49a5e-lite.chunk.js +0 -1
  402. package/dist/scripts/8830-72a7f2b5bc-lite.chunk.js +0 -1
  403. package/dist/scripts/8868-013d237d7f-lite.chunk.js +0 -1
  404. package/dist/scripts/8944-d9d197d53c-lite.chunk.js +0 -1
  405. package/dist/scripts/8955-28b5d3a3c4-lite.chunk.js +0 -1
  406. package/dist/scripts/9016-f35b4e6522-lite.chunk.js +0 -1
  407. package/dist/scripts/9035-929ea95106-lite.chunk.js +0 -1
  408. package/dist/scripts/9038-2abcbf5553-lite.chunk.js +0 -1
  409. package/dist/scripts/9060-5b1bdb98eb-lite.chunk.js +0 -1
  410. package/dist/scripts/9133-146c73b62d-lite.chunk.js +0 -1
  411. package/dist/scripts/9154-e82bdb0e7c-lite.chunk.js +0 -1
  412. package/dist/scripts/9242-89631c2740-lite.chunk.js +0 -1
  413. package/dist/scripts/9264-c1d7bc6953-lite.chunk.js +0 -1
  414. package/dist/scripts/9273-727f8d93f1-lite.chunk.js +0 -1
  415. package/dist/scripts/9424-26fd2eab2d-lite.chunk.js +0 -1
  416. package/dist/scripts/9455-4200b1193d-lite.chunk.js +0 -1
  417. package/dist/scripts/9552-2b7f33d5ec-lite.chunk.js +0 -1
  418. package/dist/scripts/9674-72fd59245e-lite.chunk.js +0 -1
  419. package/dist/scripts/9686-de11f8902f-lite.chunk.js +0 -1
  420. package/dist/scripts/969-03e69c0dcf-lite.chunk.js +0 -1
  421. package/dist/scripts/9749-cb4d3b4baa-lite.chunk.js +0 -1
  422. package/dist/scripts/9767-b2d445a86d-lite.chunk.js +0 -1
  423. package/dist/scripts/9798-0e389ed33d-lite.chunk.js +0 -1
  424. package/dist/scripts/9880-925e037850-lite.chunk.js +0 -1
  425. package/dist/scripts/9963-d0a3e1ebc0-lite.chunk.js +0 -1
  426. package/dist/scripts/bundle-74fa02174d.min.js +0 -2
  427. package/dist/scripts/pdf.worker.entry-cdaf8e504d.min.worker.js +0 -2
  428. package/dist/scripts/polyfills-6009776bd8.min.js +0 -2
  429. /package/dist/css/{1684-lite-46a5eda1f5.chunk.css → 3053-lite-46a5eda1f5.chunk.css} +0 -0
  430. /package/dist/css/{7989-lite-0c98e52224.chunk.css → 3667-lite-0c98e52224.chunk.css} +0 -0
  431. /package/dist/css/{8300-lite-cc73e26bd7.chunk.css → 703-lite-cc73e26bd7.chunk.css} +0 -0
  432. /package/dist/scripts/{1106-277c9eb019-lite.chunk.js → 1106-49a75d3108-lite.chunk.js} +0 -0
  433. /package/dist/scripts/{1200-fdbb00760e-lite.chunk.js.LICENSE.txt → 1200-0b2df6e770-lite.chunk.js.LICENSE.txt} +0 -0
  434. /package/dist/scripts/{1442-8ecb7651ae-lite.chunk.js.LICENSE.txt → 1592-14e9f658fd-lite.chunk.js.LICENSE.txt} +0 -0
  435. /package/dist/scripts/{1628-cc1cdbedda-lite.chunk.js → 1628-9b31419a6b-lite.chunk.js} +0 -0
  436. /package/dist/scripts/{1592-edae0cfd35-lite.chunk.js.LICENSE.txt → 1684-98ed45307f-lite.chunk.js.LICENSE.txt} +0 -0
  437. /package/dist/scripts/{1913-ec8f291a4e-lite.chunk.js → 1913-5f7b65e004-lite.chunk.js} +0 -0
  438. /package/dist/scripts/{2097-5b8d15d472-lite.chunk.js.LICENSE.txt → 2097-1fec9b4c86-lite.chunk.js.LICENSE.txt} +0 -0
  439. /package/dist/scripts/{2175-7443a6bbd2-lite.chunk.js → 2175-7d0a94fb90-lite.chunk.js} +0 -0
  440. /package/dist/scripts/{2229-e6fef215c2-lite.chunk.js → 2229-a17489a3b1-lite.chunk.js} +0 -0
  441. /package/dist/scripts/{227-0c4bb367a5-lite.chunk.js → 227-47d9d69b18-lite.chunk.js} +0 -0
  442. /package/dist/scripts/{2281-e04490741a-lite.chunk.js.LICENSE.txt → 2281-b38a7a5794-lite.chunk.js.LICENSE.txt} +0 -0
  443. /package/dist/scripts/{2319-5a70978f17-lite.chunk.js → 2319-b1ef9434b3-lite.chunk.js} +0 -0
  444. /package/dist/scripts/{2452-ed97feb8f4-lite.chunk.js → 2452-4a1c9e0123-lite.chunk.js} +0 -0
  445. /package/dist/scripts/{2561-08ee3b287c-lite.chunk.js → 2561-e4f9cf04ee-lite.chunk.js} +0 -0
  446. /package/dist/scripts/{2566-b8482d05ad-lite.chunk.js → 2566-8e4bd2ceb7-lite.chunk.js} +0 -0
  447. /package/dist/scripts/{2665-53f972cbe0-lite.chunk.js → 2665-165a0944de-lite.chunk.js} +0 -0
  448. /package/dist/scripts/{276-5cee084435-lite.chunk.js → 276-2f012038d5-lite.chunk.js} +0 -0
  449. /package/dist/scripts/{2966-541625267b-lite.chunk.js → 2966-a4d65b2891-lite.chunk.js} +0 -0
  450. /package/dist/scripts/{3007-d1dcacab45-lite.chunk.js → 3007-ff224c6b4a-lite.chunk.js} +0 -0
  451. /package/dist/scripts/{3143-2855610052-lite.chunk.js.LICENSE.txt → 3667-b8ef9efadf-lite.chunk.js.LICENSE.txt} +0 -0
  452. /package/dist/scripts/{3729-9f1b5c059f-lite.chunk.js → 3729-c127276a1d-lite.chunk.js} +0 -0
  453. /package/dist/scripts/{3962-4383596d79-lite.chunk.js → 3962-af911624cb-lite.chunk.js} +0 -0
  454. /package/dist/scripts/{4067-19dfa93185-lite.chunk.js → 4067-a0d41767e2-lite.chunk.js} +0 -0
  455. /package/dist/scripts/{4770-568994c6a6-lite.chunk.js → 4770-f4d9d3424b-lite.chunk.js} +0 -0
  456. /package/dist/scripts/{4777-1b47908d01-lite.chunk.js → 4777-f1e81a112c-lite.chunk.js} +0 -0
  457. /package/dist/scripts/{4895-3b67c08e33-lite.chunk.js → 4895-fbdc7e2f11-lite.chunk.js} +0 -0
  458. /package/dist/scripts/{5018-67695be6d6-lite.chunk.js → 5018-ad9ea5ae37-lite.chunk.js} +0 -0
  459. /package/dist/scripts/{5875-95fbcaaa30-lite.chunk.js.LICENSE.txt → 5081-86adb76b64-lite.chunk.js.LICENSE.txt} +0 -0
  460. /package/dist/scripts/{510-a37e6f9b68-lite.chunk.js → 510-8db6b39fd5-lite.chunk.js} +0 -0
  461. /package/dist/scripts/{5271-2f8368b0c3-lite.chunk.js → 5271-5171e797e9-lite.chunk.js} +0 -0
  462. /package/dist/scripts/{528-7845e4c922-lite.chunk.js → 528-c8dae6e504-lite.chunk.js} +0 -0
  463. /package/dist/scripts/{5291-c166374506-lite.chunk.js → 5291-9a78823986-lite.chunk.js} +0 -0
  464. /package/dist/scripts/{6736-807f6b6c82-lite.chunk.js.LICENSE.txt → 5875-679a563954-lite.chunk.js.LICENSE.txt} +0 -0
  465. /package/dist/scripts/{5914-5c809bdca8-lite.chunk.js → 5914-e3beb91ffc-lite.chunk.js} +0 -0
  466. /package/dist/scripts/{6285-01df6e582b-lite.chunk.js → 6285-ab385978b3-lite.chunk.js} +0 -0
  467. /package/dist/scripts/{6493-7497177528-lite.chunk.js → 6493-331029d2a9-lite.chunk.js} +0 -0
  468. /package/dist/scripts/{7112-a8fbba768e-lite.chunk.js.LICENSE.txt → 6736-cffe5aabea-lite.chunk.js.LICENSE.txt} +0 -0
  469. /package/dist/scripts/{6817-6f2d28e1c8-lite.chunk.js → 6817-95f0611422-lite.chunk.js} +0 -0
  470. /package/dist/scripts/{6821-a985554f7d-lite.chunk.js → 6821-c2c09e0258-lite.chunk.js} +0 -0
  471. /package/dist/scripts/{6873-e73c869b94-lite.chunk.js → 6873-dd7240df43-lite.chunk.js} +0 -0
  472. /package/dist/scripts/{7416-571043c67f-lite.chunk.js.LICENSE.txt → 7112-1f91af81de-lite.chunk.js.LICENSE.txt} +0 -0
  473. /package/dist/scripts/{7318-6cc811f662-lite.chunk.js.LICENSE.txt → 7318-2624f3e7a8-lite.chunk.js.LICENSE.txt} +0 -0
  474. /package/dist/scripts/{7327-178164fd2c-lite.chunk.js.LICENSE.txt → 7327-96c43a1ae2-lite.chunk.js.LICENSE.txt} +0 -0
  475. /package/dist/scripts/{7385-3ff72674e5-lite.chunk.js → 7385-bfe8953cd9-lite.chunk.js} +0 -0
  476. /package/dist/scripts/{7515-bf476781db-lite.chunk.js.LICENSE.txt → 7416-67821964bb-lite.chunk.js.LICENSE.txt} +0 -0
  477. /package/dist/scripts/{8323-92be705264-lite.chunk.js.LICENSE.txt → 7515-8b1cb2acef-lite.chunk.js.LICENSE.txt} +0 -0
  478. /package/dist/scripts/{7706-ce4597c053-lite.chunk.js → 7706-6ad967c7ea-lite.chunk.js} +0 -0
  479. /package/dist/scripts/{7767-8fcbc6668d-lite.chunk.js → 7767-7daefc5fac-lite.chunk.js} +0 -0
  480. /package/dist/scripts/{7919-3ec0f37103-lite.chunk.js.LICENSE.txt → 7919-967360242e-lite.chunk.js.LICENSE.txt} +0 -0
  481. /package/dist/scripts/{7925-1236157fe7-lite.chunk.js → 7925-088d8201ec-lite.chunk.js} +0 -0
  482. /package/dist/scripts/{7946-5338d3f1a6-lite.chunk.js → 7946-5e62f902af-lite.chunk.js} +0 -0
  483. /package/dist/scripts/{811-a91a94fd46-lite.chunk.js → 811-aa0f757429-lite.chunk.js} +0 -0
  484. /package/dist/scripts/{9478-72e72c2a5f-lite.chunk.js.LICENSE.txt → 8323-abba3829a3-lite.chunk.js.LICENSE.txt} +0 -0
  485. /package/dist/scripts/{8383-dda3afb747-lite.chunk.js → 8383-beccd20f8b-lite.chunk.js} +0 -0
  486. /package/dist/scripts/{872-f3e867f928-lite.chunk.js → 872-33ef8a2f97-lite.chunk.js} +0 -0
  487. /package/dist/scripts/{9325-fcdbccf47a-lite.chunk.js → 9325-e63bfa161f-lite.chunk.js} +0 -0
  488. /package/dist/scripts/{polyfills-6009776bd8.min.js.LICENSE.txt → 9478-98989f923c-lite.chunk.js.LICENSE.txt} +0 -0
  489. /package/dist/scripts/{9482-d40d77f47f-lite.chunk.js → 9482-272127a50b-lite.chunk.js} +0 -0
  490. /package/dist/scripts/{pdf.worker.entry-cdaf8e504d.min.worker.js.LICENSE.txt → pdf.worker.entry-df5108a90e.min.worker.js.LICENSE.txt} +0 -0
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 1684-98ed45307f-lite.chunk.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[1684],{69542:(t,e,r)=>{r.d(e,{h:()=>qr});var n,o=r(1024),a=r.n(o),i=r(57900),c=r(2903),l=r(65858),u=r(58130),s=r(11607),f=r(2786),p=r(83914),h=r(99742),d=r(42976);!function(t){t.AU="au",t.NZ="nz",t.UK="uk",t.US="us"}(n||(n={}));var m=["uk","gb","gg","im","je","ie"],y={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},v={getCountryCode:function(t){return y[null==t?void 0:t.toLowerCase()]||n.US},isCountryCodeUK:function(t){return m.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}},g={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"}},b={getMarketingUrlForGeoLocation:function(t){var e=v.getCountryCode(null==t?void 0:t.countryCode);return g.Marketing[e]||g.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-teaching-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 g.Support[e]||g.Support.us},getLoginLink:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.length?"".concat("/login","?redirectUrl=").concat(t):"/login"}};const w={crumb:"HuHpb"};function E(t,e){var r="rounded-circle mx-2 d-inline-block "+w.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 S(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 L=r(83345),j=r(49985),k=r(55460);function O(t){var e=t.href,r=t.className,n=t.newTab,a=t.children,i={onClick:function(r){var o;r.preventDefault(),null===(o=t.onClick)||void 0===o||o.call(t,r),t.analyticsData&&t.analyticsOptions&&j.k.logUserAction(Object.assign({href:e},t.analyticsData),t.analyticsOptions),k.LocationUtils.PageLoad(e,n)},href:e,className:r};return o.createElement("a",Object.assign({},i),a)}var N="signUp.general.termsAndConditions";function C(t){var e=b.getTermsAndConditionsLink(),r=b.getPrivacyPolicyLink();return a().createElement("span",{className:"text-center text-md mt-2 text-normal"},a().createElement(L.x,{phrase:"textSignup",namespace:N}),a().createElement("br",null),a().createElement(O,{href:e,onClick:t.onClickTermsAndConditions,className:"info-link",newTab:!0},a().createElement(L.x,{phrase:"termsAndConditions",namespace:N}))," ",a().createElement(L.x,{phrase:"and",namespace:N})," ",a().createElement(O,{href:r,onClick:t.onClickPrivacyPolicy,className:"info-link",newTab:!0},a().createElement(L.x,{phrase:"privacyPolicy",namespace:N})))}var A="signUp.general.existingAccountSignIn";function T(t){return a().createElement(a().Fragment,null,a().createElement(L.x,{phrase:"text",namespace:A}),a().createElement(O,{href:t.link,onClick:t.onClick,className:"info-link ml-1"},a().createElement(L.x,{phrase:"link",namespace:A})))}var P=r(26392);U.defaultProps={showBackButton:!0};var I=["enter-email","find-school"],_=["enter-email","find-school","cant-find-school","add-to-braze","enter-age"];function U(t){var e=t.currentStep,r=t.previousStep,n=t.hasPreviousStep,o=t.showBackButton,i=t.closeApp,c=t.children;function m(){return["enter-email","find-school","cant-find-school","add-to-braze","enter-age"].includes(e)}function y(){r(),t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.Back,workflowPhase:l.WorkflowPhase.Back})}var v=_.includes(t.currentStep),g=v?"".concat(P.Z.leftHalfLayout," ").concat(P.Z.withBg):P.Z.leftHalfLayout;return a().createElement("div",{className:g},a().createElement("div",{className:"row mx-0 p-3"},a().createElement("div",{className:"col px-0 d-lg-none ".concat(P.Z.popupButton)},n&&m()&&o&&a().createElement(S,{onClick:y})),a().createElement("div",{className:"col col-lg-6 px-0"},a().createElement("div",{className:P.Z.logo},a().createElement("div",{className:"d-none d-lg-block"},v?a().createElement(f.Yo,null):a().createElement(f.$S,null)),a().createElement("div",{className:"d-block d-lg-none"},a().createElement(f.$S,null)))),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(P.Z.popupButton)},n&&m()&&o&&a().createElement(S,{onClick:y}))),a().createElement(s.L,{onClick:i,className:P.Z.popupButton},a().createElement(p.x,{svgName:u.vn.Close,size:p.S.Medium})))),a().createElement("div",{className:"row mx-0 flex-grow-1"},v&&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:h.W.SignUp.POPUP_DASHBOARD,className:"w-100 p-4 pb-5"}))),a().createElement("div",{className:"px-4 pt-0 pb-4 ".concat(v?"col-12 col-lg-6":"col-12")},a().createElement("div",{className:"d-flex flex-column h-100"},I.includes(t.currentStep)&&a().createElement("div",{className:"mb-2"},a().createElement(x,{crumbs:I,currentStep:e})),a().createElement("div",{className:"flex-grow-1"},c),a().createElement("div",{className:"text-center"},"select-type"===e&&a().createElement(T,{link:b.getLoginLink(d._.getRelativeUrl()),onClick:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.SignIn})}}),["enter-email","add-to-braze"].includes(e)&&a().createElement(C,{onClickTermsAndConditions:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.TermsAndConditions})},onClickPrivacyPolicy:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.PrivacyPolicy})}}))))))}const F={fullPageLayout:"Ct4Ij",logo:"RcL6k",maxWidth42rem:"ifgIL",maxWidth23rem:"VkYGJ",maxWidth30rem:"LFZms"};M.defaultProps={showBackButton:!0};var G,D=["select-type","enter-email","find-school"];function M(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(F.fullPageLayout)},a().createElement("div",{className:"mt-3 mb-2"},D.includes(e)&&a().createElement(x,{crumbs:D,currentStep:e})),a().createElement("div",{className:"position-relative mx-auto w-100 ".concat("select-type"===e?F.maxWidth42rem:["enter-email","find-school","cant-find-school","add-to-braze","enter-age"].includes(e)?F.maxWidth23rem:F.maxWidth30rem)},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"].includes(e)&&a().createElement(S,{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(F.logo)},a().createElement(f.$S,null))),i),a().createElement("div",{className:"position-relative mb-4 text-center"},"select-type"===e&&a().createElement(T,{link:b.getLoginLink(),onClick:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.SignIn})}}),["enter-email","find-school","add-to-braze"].includes(e)&&a().createElement(C,{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 K(t){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},K(t)}function R(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==K(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==K(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===K(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var B,z,$={"cant-find-school":U,"enter-email":U,"find-school":U,"select-type":U,completed:U,"add-to-braze":U,"enter-age":U},H={"cant-find-school":M,"enter-email":M,"find-school":M,"select-type":M,completed:M,"add-to-braze":M,"enter-age":M},Y=(R(G={},c.c.FullPage,H),R(G,c.c.Popup,$),G),W={getLayouts:function(t){return Y[t]}};function Z(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"}(B||(B={})),function(t){t.InvalidEmail="invalid-email"}(z||(z={}));var J,V={Heading:function(t){return a().createElement("h1",{className:Z("text-center mb-2 h4",t.className)},t.children)},Body:function(t){return a().createElement("div",{className:Z("text-center text-sm px-2 px-lg-4",t.className)},t.children)},Message:function(t){return a().createElement("p",{className:Z("",t.className)},t.children)}};function q(t){return q="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},q(t)}function Q(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==q(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==q(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===q(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var X=(Q(J={},B.Available,h.W.SignUp.VERIFY_ACCOUNT),Q(J,B.Active,h.W.SignUp.EXISTING_CUSTOMER),Q(J,B.Expired,h.W.SignUp.EXPIRED_TRIAL),Q(J,B.NotRequired,h.W.SignUp.EXISTING_CUSTOMER),Q(J,B.Unavailable,h.W.SignUp.NOT_AVAILABLE),Q(J,B.Unsupported,h.W.SignUp.NOT_AVAILABLE),J);function tt(t){return a().createElement("div",{className:"d-flex justify-content-center my-4 px-2 px-lg-4"},a().createElement("img",{src:X[t.trialStatus],className:"w-100 h-auto"}))}var et="signUp.completedStepItem.addedToBraze",rt="young-student",nt="signUp.youngStudent",ot="signUp.completedStepItem.unsupported",at="signUp.completedStepItem.expiredTrial",it=r(99940),ct=r(15661);function lt(t){return lt="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},lt(t)}function ut(){ut=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new j(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==lt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var st=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())}))},ft={checkTrialStatus:function(t){return st(this,void 0,void 0,ut().mark((function e(){var r;return ut().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={email:t.email},e.abrupt("return",ct.b.asyncFetch({url:"/api/user/trials/status",data:r}));case 2:case"end":return e.stop()}}),e)})))},checkProspectTrialStatus:function(t,e,r,n){var o="/api/user/trials/prospect/".concat(t.prospectId,"/status");ct.b.fetch({url:o,success:e,error:r,always:n})},createTrial:function(t){return st(this,void 0,void 0,ut().mark((function e(){var r;return ut().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={prospectId:t.prospectId,firstName:"Trial",surname:"User",email:t.email,userType:t.userType,accessPolicy:t.accessPolicy,appLink:null==t?void 0:t.appLink},e.abrupt("return",ct.b.asyncFetch({url:"/api/user/trials",method:it.k.POST,data:r}));case 2:case"end":return e.stop()}}),e)})))},resendTrialEmail:function(t,e){return st(this,void 0,void 0,ut().mark((function r(){var n;return ut().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={email:e.email,appLink:null==e?void 0:e.appLink},r.abrupt("return",ct.b.asyncFetch({url:"/api/user/trials/users/".concat(t,"/send-activation-email"),method:it.k.POST,data:n}));case 2:case"end":return r.stop()}}),r)})))}};function pt(t){return pt="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},pt(t)}function ht(){ht=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new j(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==pt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}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 mt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mt(t,e):void 0}}(t,e)||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 mt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var yt="signUp.completedStepItem.verifyAccount",vt="signUp.completedStepItem.existingCustomer";function gt(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(V.Body,{className:"mb-3"},a().createElement(V.Heading,null,a().createElement(L.x,{namespace:vt,phrase:"heading"})),a().createElement(V.Message,null,e?a().createElement(L.x,{phrase:"schoolMessageTitle",namespace:vt,options:{school:r}}):a().createElement(L.x,{phrase:"userMessageTitle",namespace:vt})),a().createElement(V.Message,null,e?a().createElement(L.x,{phrase:"schoolMessageParagraph",namespace:vt}):a().createElement("a",{href:b.getLoginLink(d._.getRelativeUrl()),className:"btn btn-dark btn-lg w-100"},a().createElement(L.x,{phrase:"signIn",namespace:vt}))),a().createElement(V.Message,null,a().createElement(L.x,{phrase:"helpText",namespace:vt})," ",a().createElement(O,{href:b.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link",newTab:!0},a().createElement(L.x,{phrase:"helpLink",namespace:vt}))))}var bt,wt="signUp.completedStepItem.trialNotAvailable";function Et(t){return Et="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},Et(t)}function xt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Et(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Et(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Et(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var St=(xt(bt={},B.Available,(function(t){var e=dt(a().useState(0),2),r=e[0],n=e[1],o=dt(a().useState(!1),2),i=o[0],c=o[1];if(null==t?void 0:t.email)return a().createElement(V.Body,null,a().createElement(V.Heading,null,a().createElement(L.x,{namespace:yt,phrase:"heading"})),a().createElement(V.Message,null,a().createElement(L.x,{namespace:yt,phrase:"message",options:{email:t.email}})),r<1?a().createElement(V.Message,null,a().createElement(L.x,{namespace:yt,phrase:"helpText"})," ",a().createElement("button",{onClick:function(e){return o=this,a=void 0,i=void 0,u=ht().mark((function o(){return ht().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return null==e||e.preventDefault(),o.prev=1,o.next=4,ft.resendTrialEmail(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"},a().createElement(L.x,{namespace:yt,phrase:"helpLink"}))):a().createElement(L.x,{namespace:yt,phrase:"resent"}),i&&a().createElement(V.Message,{className:"mb-0 text-danger"},a().createElement(L.x,{namespace:yt,phrase:"resendErrorText"})," ",a().createElement("a",{href:b.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link"},a().createElement(L.x,{namespace:yt,phrase:"resendErrorLink"}))))})),xt(bt,B.Active,gt),xt(bt,B.Expired,(function(t){var e=b.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(V.Body,null,a().createElement(V.Heading,null,r?a().createElement(L.x,{namespace:at,phrase:"schoolMessageTitle",options:{schoolName:n}}):a().createElement(L.x,{namespace:at,phrase:"userMessageTitle"})),a().createElement(V.Message,null,a().createElement(L.x,{namespace:at,phrase:"context"})," ",a().createElement(O,{href:e,className:"info-link",newTab:!0},a().createElement(L.x,{namespace:at,phrase:"contextLink"}))))})),xt(bt,B.NotRequired,gt),xt(bt,B.Unavailable,(function(t){var e=b.getMarketingSalesContactForGeoLocation(t.geoLocation);return a().createElement(V.Body,null,a().createElement(V.Heading,null,a().createElement(L.x,{namespace:wt,phrase:"heading"})),a().createElement(V.Message,null,a().createElement(L.x,{namespace:wt,phrase:"helpText",options:{link:e}})))})),xt(bt,B.Unsupported,(function(){return a().createElement(V.Body,null,a().createElement(V.Heading,{className:"px-2 px-lg-4"},a().createElement(L.x,{namespace:ot,phrase:"schoolMessageTitle"})),a().createElement(V.Message,null,a().createElement(L.x,{namespace:ot,phrase:"schoolMessageDescription"})))})),bt);function Lt(t){var e=St[t.trialStatus];return a().createElement(e,Object.assign({},t))}var jt={"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(tt,{trialStatus:t.trialStatus}),a().createElement(Lt,Object.assign({},t)))},"added-to-braze":function(){return a().createElement(a().Fragment,null,a().createElement(tt,{trialStatus:B.Available}),a().createElement(V.Body,{className:"mb-3"},a().createElement(V.Heading,null,a().createElement(L.x,{namespace:et,phrase:"heading"})),a().createElement(V.Message,null,a().createElement(L.x,{namespace:et,phrase:"message"}))))},"young-student":function(t){var e=b.getFreeResourcesForGeoLocation(t.geoLocation);return a().useEffect((function(){i.SG.set(rt,!0)}),[]),a().createElement(a().Fragment,null,a().createElement(tt,{trialStatus:B.Active}),a().createElement(V.Body,{className:"mb-3"},a().createElement(V.Heading,null,a().createElement(L.x,{namespace:nt,phrase:"heading"})),a().createElement(V.Message,null,a().createElement(L.x,{namespace:nt,phrase:"message"})),a().createElement(O,{href:e,className:"btn btn-lg btn-dark w-100"},a().createElement(L.x,{namespace:nt,phrase:"cta"}))))}},kt=r(23481),Ot=r(2102);var Nt,Ct=a().forwardRef((function(t,e){var r=t.onClickClear,n=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"]);return a().createElement("div",{className:"position-relative"},a().createElement("input",Object.assign({},n,{ref:e,className:"".concat(t.className," ").concat("LprCJ")})),!!t.value&&a().createElement("span",{className:"".concat("Xv1sR"," position-absolute cursor-pointer text-muted"),role:"button",onClick:r},a().createElement(p.x,{svgName:u.vn.Close,size:p.S.Medium})))}));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 Tt(){Tt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new j(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==At(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Pt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,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 It(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?It(t,e):void 0}}(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 It(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _t(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==At(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==At(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===At(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ut=new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/),Ft="signUp.enterEmailStepItem",Gt=kt.T.encloseNamespace(Ft),Dt=(_t(Nt={},n.AU,"valerie.frizzle@school.edu.au"),_t(Nt,n.UK,"valerie.frizzle@school.gov.uk"),_t(Nt,n.US,"valerie.frizzle@school.gov"),_t(Nt,n.NZ,"valerie.frizzle@school.nz"),Nt);function Mt(t){return Dt[v.getCountryCode(t.countryCode)]||Dt.us}var Kt=[B.Expired,B.NotRequired,B.Unavailable,B.Unsupported,B.Active],Rt=r(33003),Bt=r.n(Rt),zt=r(63093);function $t(t){return $t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$t(t)}function Ht(){Ht=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new j(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==$t(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var Yt=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())}))},Wt={config:function(){return Yt(this,void 0,void 0,Ht().mark((function t(){return Ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",ct.b.asyncFetch({url:"/api/config"}));case 1:case"end":return t.stop()}}),t)})))},version:function(){return Yt(this,void 0,void 0,Ht().mark((function t(){return Ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",ct.b.asyncFetchPlain({url:"/api/version"}));case 1:case"end":return t.stop()}}),t)})))}};function Zt(t){return Zt="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},Zt(t)}function Jt(){Jt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new j(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Zt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var Vt=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())}))},qt={au:"cv-ap-southeast-1",uk:"cv-eu-west-1",us:"cv-ap-southeast-1",nz:"cv-ap-southeast-1"},Qt={getConfig:function(){return Vt(this,void 0,void 0,Jt().mark((function t(){return Jt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Wt.config();case 2:return t.t0=t.sent,t.next=5,Wt.version();case 5:return t.t1=t.sent,t.abrupt("return",{config:t.t0,version:t.t1});case 7:case"end":return t.stop()}}),t)})))},getClient:function(t){return Vt(this,void 0,void 0,Jt().mark((function e(){var r,n,o,a,i;return Jt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Qt.getConfig();case 2:return r=e.sent,n=r.config,o=r.version,a=v.getCountryCode(null==t?void 0:t.countryCode),i=n.braze[qt[a]],e.abrupt("return",(0,zt.getInstance)({baseUrl:i.url,apiKey:i.apiKey,productVersion:o,productName:"lite.web",enableLogging:!1,automaticallyShowInAppMessages:!1}));case 8:case"end":return e.stop()}}),e)})))},hashedEmail:function(t){var e=t.trim().toLowerCase();return Bt().hash(e)},removeEmptyKeys:function(t){var e=Object.assign({},t);return Object.keys(e).forEach((function(t){null!==e[t]&&void 0!==e[t]&&("string"!=typeof e[t]||e[t].length)||delete e[t]})),e}},Xt=["Teacher","Librarian","Curriculum Coordinator","Digital Technology Coordinator","IT","Head of Department","Deputy Principal","Principal"],te=["Teacher","Librarian","Head of department","Curriculum coordinator","School leadership","District leadership","Academic coach","Instructional technology specialist","Consortium leadership","IT"],ee={au:Xt,nz:Xt,uk:["Teacher","Librarian","IT/LRC","e-Learning/ICT Coordinator","Head of Key Stage","Head of Department","Subject Lead","Assistant Head Teacher","Deputy Tead Teacher","Head Teacher"],us:te};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 ne(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)?ne(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 ne(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 oe="signUp.addToBrazeStepItem",ae=kt.T.encloseNamespace(oe),ie="OTHER";function ce(t){var e=t.error,r=t.onChange,n=t.countryCode,o=re(a().useState(""),2),i=o[0],c=o[1],l=re(a().useState(""),2),u=l[0],s=l[1],f=function(t){return ee[t]||te}(n),p=i===ie;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===ie?"":t.target.value)}},a().createElement("option",{value:"",disabled:!0,className:"text-muted"},a().createElement(L.x,{namespace:oe,phrase:"placeholderJobTitle"})),f.map((function(t,e){return a().createElement("option",{value:t,className:"text-dark",key:e},t)})),a().createElement("option",{value:ie,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:ae("placeholderJobTitle"),autoFocus:!0,onChange:function(t){s(t.target.value),r(t.target.value)}}),!!e&&a().createElement("div",{className:"invalid-feedback"},e)))}function le(t){return le="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},le(t)}function ue(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var se="signUp.addToBrazeStepItem",fe=kt.T.encloseNamespace(se);function pe(t){var e,r,n,o,i,c,l,u,s=(l=a().useState({fullname:"",jobTitle:"",phone:""}),u=2,function(t){if(Array.isArray(t))return t}(l)||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}}(l,u)||function(t,e){if(t){if("string"==typeof t)return ue(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)?ue(t,e):void 0}}(l,u)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=s[0],p=s[1];function h(t,e){p((function(r){return Object.assign(Object.assign({},r),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==le(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==le(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===le(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().createElement(L.x,{namespace:se,phrase:"formHeading"})),a().createElement("p",null,a().createElement(L.x,{namespace:se,phrase:"formSubHeading"})),a().createElement("form",{onSubmit:function(e){e.preventDefault(),t.handleSubmitForm(f)}},a().createElement("div",{className:"form-group text-left"},a().createElement("label",{className:"d-block font-weight-bold mb-1",htmlFor:"fullname-input"},a().createElement(L.x,{namespace:se,phrase:"labelFullName"})),a().createElement(Ct,{value:f.fullname,onChange:function(e){e.preventDefault(),h("fullname",e.target.value),t.removeErrorForKey("fullname")},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:fe("placeholderFullName"),onClickClear:function(){h("fullname",""),t.removeErrorForKey("fullname")},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"},a().createElement(L.x,{namespace:se,phrase:"labelPhone"})),a().createElement(Ct,{value:f.phone,onChange:function(e){e.preventDefault(),h("phone",e.target.value.trim()),t.removeErrorForKey("phone")},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:fe("placeholderPhone"),onClickClear:function(){h("phone",""),t.removeErrorForKey("phone")}}),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"},a().createElement(L.x,{namespace:se,phrase:"labelJobTitle"})),a().createElement(ce,{id:"jobTitle-select",countryCode:v.getCountryCode(t.country),onChange:function(e){h("jobTitle",e),t.removeErrorForKey("jobTitle")},error:null===(n=t.errors)||void 0===n?void 0:n.jobTitle})),a().createElement("div",{className:"form-group mb-1"},a().createElement(Ot.m,{className:"btn btn-dark btn-lg w-100",onClick:function(){return t.handleSubmitForm(f)},showSpinner:t.loading,disabled:t.loading||(o=f.fullname,i=f.jobTitle,c=f.phone,!(o.length&&i.length&&c.length&&!Object.keys(t.errors).length))},a().createElement(L.x,{namespace:se,phrase:"formSubmitButton"})))))}function he(t){return he="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},he(t)}function de(){de=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new j(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==he(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function me(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 ye(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)?ye(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 ye(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 ve,ge,be=255,we=/\$+[\w\s]?/,Ee=/^\+?\d{4,255}$/,xe=kt.T.encloseNamespace("signUp.addToBrazeStepItem");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(" ")}}!function(t){t.Staff="staff",t.Learner="learner"}(ve||(ve={})),function(t){t.FourteenDays="trial_14_v1",t.Freemium="freemium_v1"}(ge||(ge={}));var Le=function(t){return v.isCountryCodeUS(t)||v.isCountryCodeUK(t)?ge.Freemium:ge.FourteenDays},je=r(99910),ke=r(28329);function Oe(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ne(t){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 Oe(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)?Oe(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 Ce(t){return Ce="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},Ce(t)}function Ae(){Ae=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new j(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Ce(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var Te={search:function(t,e,r,n){var o={Longitude:t.longitude,Latitude:t.latitude};t.query&&(o.Query=t.query),ct.b.fetch({url:"/api/prospects/search",data:o,success:e,error:r,always:n})},create:function(t){return e=this,r=void 0,n=void 0,o=Ae().mark((function e(){return Ae().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",ct.b.asyncFetch({url:"/api/prospects",method:it.k.POST,data:t}));case 1:case"end":return e.stop()}}),e)})),new(n||(n=Promise))((function(t,a){function i(t){try{l(o.next(t))}catch(t){a(t)}}function c(t){try{l(o.throw(t))}catch(t){a(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(t){t(r)}))).then(i,c)}l((o=o.apply(e,r||[])).next())}));var e,r,n,o}};const Pe={baseText:"zCAkp",inputFocused:"hQufn",input:"j8tBX",suggestionContainer:"CnoBz",noBottomBorder:"E3f3x",localitySuggestion:"TGAhk",suggestionItem:"GQ_aO",suggestionLoading:"Eo2UF",noSuggestion:"xaEZw",selected:"mxCSz"};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 _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}}(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 _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 Ue="signUp.searchSchoolStepItem",Fe=kt.T.encloseNamespace(Ue);function Ge(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(Pe.suggestionItem," ").concat(o-1===e?Pe.selected:""),key:t.id,onClick:function(){return n(t)}},r(t))})))}function De(t){return a().createElement("div",{className:"info-link ".concat(Pe.suggestionItem," ").concat(Pe.noSuggestion," ").concat(t.selected?Pe.selected:""),onClick:t.handleNoSuggestion},a().createElement(L.x,{namespace:Ue,phrase:"cantFindSchool"}))}function Me(t){var e,r,n=a().useRef(),o=Ie(a().useState(!0),2),i=o[0],c=o[1],u=Ie(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=Ie(a().useState(),2),h=p[0],d=p[1],m=(0,ke.N)(s,250),y=Ne({onSelected:function(t){if(h||t)if(t!==h.length){var e=h[t];e&&k(e)}else N()},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),E=i&&!w,x=!i&&!w&&!(null==h?void 0:h.length),S=(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),Te.search(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 N(){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 C=S||E||x;return a().createElement("div",{className:"form-group position-relative"},a().createElement(Ct,{value:s,onChange:function(t){return L(t.currentTarget.value)},ref:n,className:"form-control form-control-lg ".concat(C?Pe.inputFocused:Pe.input),type:"text",autoComplete:"off",placeholder:Fe("schoolInputPlaceholder"),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(Pe.suggestionContainer," ").concat(C?"":"d-none"),ref:b},S?a().createElement(Ge,{filteredSchoolsList:h,onSchoolSuggestionClick:k,getSchoolName:O,selectedIndex:v}):E&&a().createElement("div",{className:"".concat(Pe.suggestionLoading," py-4 d-flex justify-content-center")},a().createElement(je.Spinner,{animation:"border"})),!E&&a().createElement(De,{selected:v===h.length+1,handleNoSuggestion:N}))))}var Ke=r(10874),Re=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 Be="__googleMapsScriptId";var ze;!function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"}(ze||(ze={}));class $e{constructor({apiKey:t,authReferrerPolicy:e,channel:r,client:n,id:o=Be,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||Be,this.language=a,this.libraries=i,this.mapIds=c,this.nonce=l,this.region=u,this.retries=s,this.url=f,this.version=p,$e.instance){if(!Re(this.options,$e.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify($e.instance.options)}`);return $e.instance}$e.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?ze.FAILURE:this.done?ze.SUCCESS:this.loading?ze.LOADING:ze.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 He(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 Ye(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)?Ye(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 Ye(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 We(t){return new $e({apiKey:t.apiKey,version:"weekly",libraries:t.libraries,retries:3})}function Ze(t){var e={apiKey:t.apiKey,libraries:t.libraries||["places"]},r=He(a().useState(!1),2),n=r[0],o=r[1],i=He(a().useState(We(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(We(e))}return a().useEffect((function(){u()}),[]),{loader:c,scriptLoaded:n,onGoogleApiReady:u}}function Je(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 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&&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 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 qe={getPlaceDetails:function(t){var e,r,n,o,a,i=t.formatted_address,c=Je(t.address_components);try{for(c.s();!(a=c.n()).done;){var l,u=a.value,s=Je(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 Qe(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 Xe(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 tr(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)?tr(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 tr(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 er(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return rr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?rr(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var nr="signUp.searchSchoolStepItem",or=kt.T.encloseNamespace(nr);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(Pe.suggestionItem," ").concat(n-1===e?Pe.selected:""),key:t.place_id,onClick:function(){return r(t)}},t.description)})))}function ir(t){var e,r,n,o,i,c,f=a().useRef(),h=er(a().useState((null===(e=t.data)||void 0===e?void 0:e.schoolLocality)||""),2),d=h[0],m=h[1],y=er(a().useState(!1),2),g=y[0],b=y[1],w=function(t){var e=t.search,r=t.makePredicition,n=t.geoLocation,o=Ze({apiKey:t.apiKey}).scriptLoaded,i=Xe(a().useState(),2),c=i[0],l=i[1];a().useEffect((function(){o&&l(new google.maps.places.AutocompleteService)}),[o]);var u=(0,ke.N)(e,300),s=Xe(a().useState(),2),f=s[0],p=s[1];function h(t,e){e===google.maps.places.PlacesServiceStatus.OK&&t?p(t):p(void 0)}return a().useEffect((function(){if(c)if(0!==(null==u?void 0:u.length)&&r){var t=(null==n?void 0:n.countryCode)||"us";c.getPlacePredictions({input:u,componentRestrictions:{country:t},region:t,types:["locality","sublocality","postal_code"]},h)}else p(void 0)}),[u,r,c]),{localityPredicitions:f,getPlaceInfo:function(t,e,r){new google.maps.places.PlacesService(e.current).getDetails({placeId:t.place_id,fields:["geometry","address_components","formatted_address"],region:n.countryCode},(function(t,e){if(e===google.maps.places.PlacesServiceStatus.OK){var n=t.geometry.location.lng(),o=t.geometry.location.lat(),a=qe.getPlaceDetails(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:d,makePredicition:g,geoLocation:t.geoLocation,apiKey:t.googleMapsApiKey}),E=w.localityPredicitions,x=w.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 Qe(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)?Qe(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=qe.getPlaceDetails(o);i(Object.assign(Object.assign({},a),{longitude:n,latitude:r}))}}))}function u(e){t.onPositionError(e)}return{placeDetails:o,onClickGetCurrentLocation:function(){c((function(){window.navigator.geolocation.getCurrentPosition(l,u)}))}}}({apiKey:t.googleMapsApiKey,onPositionError:function(){b(!0)}}),j=S.placeDetails,k=S.onClickGetCurrentLocation,O=window.navigator.geolocation?1:0,N=Ne({onSelected:function(t){if(E)if(t!==E.length){var e=E[t];e&&_(e)}else U()},itemCount:null!==(r=(null==E?void 0:E.length)+O)&&void 0!==r?r:0}),C=N.selectedIndex,A=N.onKeyDown,T=N.containerRef;function P(e){var r,n,o;g||b(!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(),m(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),m(e)}(o)}function _(t){g&&b(!1),x(t,f,I)}function U(e){null==e||e.preventDefault(),b(!1),k(),t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.UseMyLocation})}a().useEffect((function(){I(j)}),[j]);var F,G=(null==E?void 0:E.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),M=t.labelClassName||"d-block text-center mb-3 font-weight-normal ".concat(Pe.baseText);return a().createElement("div",{className:"form-group position-relative"},a().createElement("label",{className:M,htmlFor:"locality-input"},a().createElement(L.x,{namespace:nr,phrase:"localityInputLabel"})),a().createElement(Ct,{type:"text",value:d,onChange:function(t){return P(t.currentTarget.value)},id:"locality-input",className:(F="form-control form-control-lg",G?"".concat(F," ").concat(Pe.inputFocused):"".concat(F," ").concat(Pe.input)),ref:f,autoComplete:"off",placeholder:or(function(){var e,r,n,o="LocalityInputPlaceholder";return v.isCountryCodeUK(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode)?"uk".concat(o):v.isCountryCodeAU(null===(r=t.geoLocation)||void 0===r?void 0:r.countryCode)||v.isCountryCodeNZ(null===(n=t.geoLocation)||void 0===n?void 0:n.countryCode)?"au".concat(o):"us".concat(o)}()),disabled:t.disabled,autoFocus:!0,onClickClear:function(){P(""),f.current.focus()},onKeyDown:A}),a().createElement("div",{className:"position-absolute w-100"},!!G&&a().createElement("div",{className:"".concat(Pe.suggestionContainer," ").concat(Pe.localitySuggestion),ref:T},a().createElement(ar,{predictions:E,getPlaceInfo:_,selectedIndex:C}),window.navigator.geolocation&&a().createElement(s.L,{className:"".concat(Pe.suggestionItem," px-1 ").concat(C-1===E.length?Pe.selected:""),onClick:U},a().createElement(Ke.h,{svgName:u.vn.LocationCrosshair,className:"btn btn-link info-link bg-transparent py-0 pr-1",svgSize:p.S.Small},a().createElement(L.x,{namespace:nr,phrase:"locationButtonText"})))),D&&!G&&a().createElement("div",{className:"d-flex"},a().createElement(Ke.h,{onClick:U,svgName:u.vn.LocationCrosshair,className:"btn btn-link info-link bg-white",svgSize:p.S.Small},a().createElement(L.x,{namespace:nr,phrase:"locationButtonText"})))))}function cr(t){return cr="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},cr(t)}function lr(){lr=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new j(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==cr(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function ur(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 sr(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)?sr(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 sr(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 fr="signUp.searchSchoolStepItem",pr=kt.T.encloseNamespace(fr);const hr={userTypeOption:"tbNZB",selected:"Ehs7R"};function dr(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(hr.userTypeOption," ").concat(t.selected?hr.selected:""),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 mr,yr="signUp.selectUserTypeStepItem",vr=kt.T.encloseNamespace(yr);!function(t){t.Published="Published",t.Draft="Draft"}(mr||(mr={}));var gr=["Primary","Secondary","K12","Special","TAFE","University"],br=["Elementary","Middle School","High School","College","Other"],wr={au:gr,nz:gr,uk:["Primary","Secondary","Primary & Secondary","Special","Sixth Form College","FE College","University","Other"],us:br};function Er(t){return Er="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},Er(t)}function xr(){xr=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new j(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Er(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Sr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Lr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Lr(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var jr="signUp.cantFindSchoolStepItem",kr=kt.T.encloseNamespace(jr),Or=r(110);const Nr="QBvzz",Cr="Xnu80",Ar="fQ9t5";function Tr(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 Pr(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)?Pr(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 Pr(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 Ir="signUp.enterAgeStepItem",_r=kt.T.encloseNamespace(Ir);function Ur(t,e,r){return"".concat(t.padStart(4,"0"),"-").concat(e.padStart(2,"0"),"-").concat(r.padStart(2,"0"))}var Fr={"select-type":function(t){function e(e){t.logUserAction({userType:e},{actionType:l.UserAction.Click,workflowPhase:l.WorkflowPhase.Next,descriptor:e===ve.Staff?l.SignUpDescriptors.Educator:l.SignUpDescriptors.Student}),e!==ve.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"},a().createElement(L.x,{namespace:yr,phrase:"heading"})),a().createElement("p",null,a().createElement(L.x,{namespace:yr,phrase:"subHeading"})),a().createElement("div",{className:"row"},a().createElement("div",{className:"col-lg-6 mb-3"},a().createElement(dr,{type:ve.Staff,buttonText:vr("educatorButtonText"),imageSrc:h.W.SignUp.EDUCATOR,onClick:e,selected:t.userType===ve.Staff})),a().createElement("div",{className:"col-lg-6 mb-3"},a().createElement(dr,{type:ve.Learner,buttonText:vr("studentButtonText"),imageSrc:h.W.SignUp.STUDENT,onClick:e,selected:t.userType===ve.Learner}))))},"enter-email":function(t){var e,r,n=Pt(a().useState(!1),2),o=n[0],i=n[1],c=Pt(a().useState((null==t?void 0:t.email)||""),2),u=c[0],s=c[1],f=Pt(a().useState(),2),p=f[0],h=f[1],m=(e=t.geoLocation,r=b.getMarketingUrlForGeoLocation(e),"nz"===(null==e?void 0:e.countryCode)?r+"/contact-us/":r+"/contact-us/technical/");function y(e){null==e||e.preventDefault(),function(){var e,r,n,o;e=this,r=void 0,n=void 0,o=Tt().mark((function e(){var r;return Tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u.length?Ut.test(u)||(h(Gt("invalidEmailErrorText")),0):(h(Gt("enterEmailErrorText")),0)){e.next=2;break}return e.abrupt("return");case 2:return i(!0),h(""),e.prev=4,e.next=7,ft.checkTrialStatus({email:u});case 7:r=e.sent,e.next=14;break;case 10:return e.prev=10,e.t0=e.catch(4),h(Gt("trialStatusErrorText")),e.abrupt("return");case 14:if(i(!1),r.status!==z.InvalidEmail){e.next=18;break}return h(Gt("invalidEmailErrorText")),e.abrupt("return");case 18:if(t.logUserAction({},{actionType:l.UserAction.Click,workflowPhase:l.WorkflowPhase.Next,descriptor:l.SignUpDescriptors.EnterEmail}),!Kt.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())}))}()}return a().createElement(a().Fragment,null,a().createElement("div",{className:"text-center"},a().createElement("h1",{className:"h4"},a().createElement(L.x,{namespace:Ft,phrase:"heading"})),a().createElement("p",null,a().createElement(L.x,{namespace:Ft,phrase:"subHeading"}))),a().createElement("form",{onSubmit:y,noValidate:!0},a().createElement("div",{className:"form-group mb-3"},a().createElement(Ct,{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:Mt(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,a().createElement(L.x,{phrase:"emailInputHelpText",namespace:Ft}),a().createElement(O,{href:m,onClick:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.ContactUs})},className:"info-link pl-1",newTab:!0},a().createElement(L.x,{phrase:"emailInputHelpLinkText",namespace:Ft}))))),a().createElement(Ot.m,{showSpinner:o,className:"btn btn-dark btn-lg mb-3 w-100",disabled:o,onClick:y},a().createElement(L.x,{namespace:Ft,phrase:"nextButtonText"}))),a().createElement("div",{className:"text-center"},a().createElement(T,{link:b.getLoginLink(d._.getRelativeUrl()),onClick:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.SignIn})}})))},"find-school":function(t){var e=t.email,r=t.userType,n=ur(a().useState({schoolLocality:t.schoolLocality,country:t.country,longitude:t.longitude,latitude:t.latitude}),2),o=n[0],i=n[1],c=ur(a().useState(),2),l=c[0],u=c[1],s=ur(a().useState(),2),f=s[0],p=s[1],h=ur(a().useState(!1),2),d=h[0],m=h[1],y=ur(a().useState(!1),2),v=y[0],g=y[1],b=ur(a().useState(!1),2),w=b[0],E=b[1];function x(){if(!o||!e||!r)return!1;var t=o.prospectId;return!!(e&&r&&t)}function S(t){g(t),E(t),m(t)}function j(t,e){"prospectId"===t&&e&&(m(!0),ft.checkProspectTrialStatus({prospectId:e.toString()},(function(t){u(t.status)}),(function(){console.log("error")}),(function(){m(!1)}))),i((function(r){return Object.assign(Object.assign({},r),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==cr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==cr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===cr(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))}))}function k(){j("prospectId",void 0),j("schoolName",""),j("schoolPostCode",void 0),p(void 0)}return a().createElement(a().Fragment,null,a().createElement("div",{className:"text-center"},a().createElement("h1",{className:"h4"},a().createElement(L.x,{namespace:fr,phrase:"heading"})),a().createElement("p",null,a().createElement(L.x,{namespace:fr,phrase:"subHeading"}))),a().createElement(ir,{data:o,setDataProperty:j,clearStepGroupData:function(){j("schoolLocality",void 0),i((function(t){return Object.assign(Object.assign({},t),{longitude:undefined,latitude:undefined})})),j("city",void 0),j("province",void 0),j("country",void 0),k(),p(void 0)},disabled:v,geoLocation:t.geoLocation,labelClassName:"d-none",logUserAction:t.logUserAction,googleMapsApiKey:t.googleMapsApiKey}),!!(o&&o.schoolLocality&&o.longitude&&o.latitude)&&a().createElement(Me,{data:o,setDataProperty:j,clearStepItemData:k,nextStep:t.nextStep,currentStepId:t.currentStepId,disabled:w,logUserAction:t.logUserAction}),f&&a().createElement("p",{className:"text-danger mb-2"},f),x()&&a().createElement(Ot.m,{className:"btn btn-dark btn-lg w-100",onClick:function(){return n=this,a=void 0,i=void 0,c=lr().mark((function n(){var a;return lr().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!d){n.next=2;break}return n.abrupt("return");case 2:if(x()){n.next=5;break}return p(pr("cannotSubmitFormError")),n.abrupt("return");case 5:if(l!==B.Unsupported||r!==ve.Staff){n.next=8;break}return t.nextStep(Object.assign({step:"add-to-braze",trialStatus:l},o)),n.abrupt("return");case 8:if(l===B.Active||l===B.Available){n.next=11;break}return t.complete(Object.assign({completionStep:"trial-status",trialStatus:l,trialCreated:!1},o)),n.abrupt("return");case 11:return S(!0),n.prev=12,n.next=15,ft.createTrial({userType:r,email:e,prospectId:null==o?void 0:o.prospectId,appLink:t.pageAppLinkString,accessPolicy:Le(o.country)});case 15:a=n.sent,n.next=23;break;case 18:return n.prev=18,n.t0=n.catch(12),p(pr("requestTrialError")),S(!1),n.abrupt("return");case 23:if(a.id&&a.dateCreated){n.next=27;break}return p(pr("requestTrialError")),S(!1),n.abrupt("return");case 27:j("userId",a.id),t.complete(Object.assign({completionStep:"trial-status",userId:a.id,trialCreated:!0,trialStatus:B.Available},o));case 29:case"end":return n.stop()}}),n,null,[[12,18]])})),new(i||(i=Promise))((function(t,e){function r(t){try{l(c.next(t))}catch(t){e(t)}}function o(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 i?n:new i((function(t){t(n)}))).then(r,o)}l((c=c.apply(n,a||[])).next())}));var n,a,i,c},showSpinner:v||w||d,disabled:v||w||d},a().createElement(L.x,{namespace:fr,phrase:"submitButtonText"})))},"cant-find-school":function(t){var e,r,n,o=Sr(a().useState({prospectId:t.prospectId,schoolName:t.schoolName,schoolType:t.schoolType,schoolLocality:t.schoolLocality,country:t.country}),2),i=o[0],c=o[1],l=Sr(a().useState(),2),u=l[0],s=l[1],f=Sr(a().useState(!1),2),p=f[0],h=f[1],d=(r=i.country||(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode),n=v.getCountryCode(r),wr[n]||br);function m(){var t=i.schoolName,e=i.schoolType,r=i.country;return!!(t&&e&&r)}function y(t,e){c((function(r){return Object.assign(Object.assign({},r),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Er(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Er(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Er(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"},a().createElement(L.x,{namespace:jr,phrase:"heading"})),a().createElement("p",null,a().createElement(L.x,{namespace:jr,phrase:"subHeading"}))),a().createElement("div",{className:"form-group"},a().createElement("label",{className:"d-block",htmlFor:"school-name-input"},a().createElement(L.x,{namespace:jr,phrase:"schoolNameInputLabel"})),a().createElement("input",{type:"text",value:(null==i?void 0:i.schoolName)||"",onChange:function(t){y("schoolName",t.target.value)},id:"school-name-input",className:"form-control form-control-lg",autoComplete:"off",placeholder:kr("schoolNameInputPlaceholder")})),a().createElement("div",{className:"form-group"},a().createElement("label",{className:"d-block",htmlFor:"school-type-select"},a().createElement(L.x,{namespace:jr,phrase:"schoolTypeInputLabel"})),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){y("schoolType",t.target.value)}},a().createElement("option",{value:"none",className:"text-muted",disabled:!0},kr("schoolTypeInputDefault")),d.map((function(t){return a().createElement("option",{value:t,key:t,className:"text-dark"},t)})))),a().createElement(ir,{data:i,setDataProperty:y,clearStepGroupData:function(){y("schoolLocality",void 0),c((function(t){return Object.assign(Object.assign({},t),{longitude:undefined,latitude:undefined})})),y("city",void 0),y("province",void 0),y("country",void 0),s("")},disabled:!1,labelClassName:"d-block",geoLocation:t.geoLocation,logUserAction:t.logUserAction,googleMapsApiKey:t.googleMapsApiKey}),u&&a().createElement("div",{className:"text-danger mb-3"},u),m()&&a().createElement(Ot.m,{className:"btn btn-dark btn-lg w-100",onClick:function(e){return r=this,n=void 0,o=void 0,a=xr().mark((function r(){var n,o,a;return xr().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.preventDefault(),m()){r.next=3;break}return r.abrupt("return");case 3:return h(!0),r.prev=4,r.next=7,Te.create({name:i.schoolName,status:mr.Draft,countryCode:i.country,prospectType:i.schoolType,city:i.city,postCode:i.schoolPostCode,province:i.province});case 7:if((n=r.sent).id){r.next=12;break}return h(!1),s(kr("submissionErrorText")),r.abrupt("return");case 12:r.next=19;break;case 14:return r.prev=14,r.t0=r.catch(4),h(!1),s(kr("submissionErrorText")),r.abrupt("return");case 19:return r.prev=19,r.next=22,ft.createTrial({userType:t.userType,email:t.email,prospectId:n.id,appLink:t.pageAppLinkString,accessPolicy:Le(i.country)});case 22:if((o=r.sent).id){r.next=27;break}return h(!1),s(kr("submissionErrorText")),r.abrupt("return");case 27:t.complete({completionStep:"trial-status",email:t.email,userId:o.id,prospectId:n.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:B.Available,trialCreated:!0}),r.next=40;break;case 30:if(r.prev=30,r.t1=r.catch(19),r.t1.body){r.next=36;break}return h(!1),s(kr("submissionErrorText")),r.abrupt("return");case 36:if(400!==(a=r.t1).body.status||"trial-not-available"!==a.body.type){r.next=40;break}return t.nextStep(Object.assign(Object.assign({step:"add-to-braze"},i),{prospectId:n.id,trialStatus:B.Unavailable})),r.abrupt("return");case 40:case"end":return r.stop()}}),r,null,[[4,14],[19,30]])})),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},showSpinner:p,disabled:p},a().createElement(L.x,{namespace:jr,phrase:"submitButtonText"})))},completed:function(t){var e=jt[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=me(a().useState(!1),2),n=r[0],o=r[1],i=me(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,user_type:null==t?void 0:t.userType,organisation_sub_type: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,first_name:n,last_name:o,job_title:e.jobTitle,sync_to_crm:!0};return Qt.removeEmptyKeys(a)}return 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){(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=xe("emptyFullName")),(we.test(a)||we.test(i))&&(c.fullname=xe("invalidFullName")),e.length>be&&(c.fullname=xe("maxFullName",{maxLength:be})),(null==r?void 0:r.length)||(c.jobTitle=xe("emptyJobTitle")),we.test(r)&&(c.jobTitle=xe("invalidJobTitle")),r.length>be&&(c.jobTitle=xe("maxJobTitle",{maxLength:be})),(null==n?void 0:n.length)||(c.phone=xe("emptyPhone")),!we.test(n)&&Ee.test(n)||(c.phone=xe("invalidPhone")),l(c),!Object.keys(c).length})(e)&&function(e){var r,a,i,s;r=this,a=void 0,i=void 0,s=de().mark((function r(){var a,i,s,f,p,h;return de().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!n){r.next=2;break}return r.abrupt("return");case 2:return o(!0),a=u(e),r.next=6,Qt.getClient(t.geoLocation);case 6:i=r.sent,s=Se(e.fullname),f=s.firstName,p=s.surname,h={prospect_id:null==t?void 0:t.prospectId,user_type:null==t?void 0:t.userType,organisation_sub_type: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,job_title:e.jobTitle,sync_to_crm:!0},h=Qt.removeEmptyKeys(h);try{i.setUser(Qt.hashedEmail(null==t?void 0:t.email)),i.setUserFirstName(f),i.setUserLastName(p),i.setUserPhone(e.phone),i.setUserEmail(null==t?void 0:t.email),i.openSession(),i.bulkSetCustomUserAttributes(h),i.logEvent({type:"marketing_free_trial_signup",data:a}),i.sendData((function(t){l(t?{}:Object.assign(Object.assign({},c),{submission:xe("submissionError")})),o(!1)}))}catch(t){l(Object.assign(Object.assign({},c),{submission:xe("submissionError")}))}Object.keys(c).length||t.complete({completionStep:"added-to-braze",trialCreated:!1,trialStatus:null});case 12:case"end":return r.stop()}}),r)})),new(i||(i=Promise))((function(t,e){function n(t){try{c(s.next(t))}catch(t){e(t)}}function o(t){try{c(s.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((s=s.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=Tr(a().useState(""),2),r=e[0],n=e[1],o=Tr(a().useState(""),2),i=o[0],c=o[1],l=Tr(a().useState(""),2),u=l[0],s=l[1],f=Tr(a().useState(null),2),p=f[0],h=f[1],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?Or.O.isValid(Ur(u,i,r))?+u>d?(h(_r("future")),0):!(+u<d-120&&(h(_r("past",{age:d-+u})),1)):(h(_r("invalid")),0):(h(_r("missing")),0)){var n=new Date(Ur(u,i,r)),o=Or.O.subtract(new Date,13,"years");Or.O.isAfter(n,o)?t.complete({completionStep:"young-student",trialCreated:!1,trialStatus:null}):t.nextStep({step:"enter-email",userType:t.userType})}},noValidate:!0},a().createElement("h1",{className:"h4"},a().createElement(L.x,{namespace:Ir,phrase:"heading"})),a().createElement("p",null,a().createElement(L.x,{namespace:Ir,phrase:"subHeading"})),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"},a().createElement(L.x,{namespace:Ir,phrase:"day"})),a().createElement("input",{id:"day",type:"number",className:"".concat(y," ").concat(Nr),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"},a().createElement(L.x,{namespace:Ir,phrase:"month"})),a().createElement("input",{id:"month",type:"number",className:"".concat(y," ").concat(Cr),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"},a().createElement(L.x,{namespace:Ir,phrase:"year"})),a().createElement("input",{id:"year",type:"number",className:"".concat(y," ").concat(Ar),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"},a().createElement(L.x,{namespace:Ir,phrase:"submit"})))}};function Gr(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=Fr[e.currentStepId],h=Object.assign(Object.assign({},e),{geoLocation:r,googleMapsApiKey:i,pageAppLinkString:c,back:l,nextStep:u,complete:s,logUserAction:f}),d=n[e.currentStepId];return d?a().createElement(d,{geoLocation:t.geoLocation,currentStep:e.currentStepId,previousStep:l,closeApp:t.close,logUserAction:f,hasPreviousStep:o},a().createElement(p,Object.assign({},h))):a().createElement(p,Object.assign({},h))}var Dr=r(1048);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}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 Rr(t,e){switch(e.type){case"nextStep":return function(t,e){var r,n=Object.assign(Object.assign({},t),{previousStepIds:[].concat((r=t.previousStepIds,function(t){if(Array.isArray(t))return Kr(t)}(r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||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}}(r)||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({},n);if("enter-email"===e.step)return Object.assign(Object.assign({},n),{userType:e.userType});if("enter-age"===e.step)return Object.assign(Object.assign({},n),{userType:e.userType});if("find-school"===e.step)return Object.assign(Object.assign({},n),{email:e.email});if("cant-find-school"===e.step)return Object.assign(Object.assign({},n),{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){var o=Dr.t.omit(e,["type","step"]);return o=Dr.t.removeEmptyKeys(o),Object.assign(Object.assign({},n),o)}if("completed"===e.step){var a=Dr.t.omit(e,["type","step"]);return a=Dr.t.removeEmptyKeys(a),Object.assign(Object.assign({},n),a)}}(t,e);case"back":return function(t){var e,r=function(t){if(Array.isArray(t))return Mr(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 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}}(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 zr(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 Hr=function(t){var e=t.location,r=t.initialValues,n=t.onStepUpdate,o=Qt.removeEmptyKeys(r),i=Object.assign({currentStepId:"select-type",previousStepIds:[]},o),c=zr(a().useReducer(Rr,i),2),u=c[0],s=c[1];return a().useEffect((function(){null==n||n(u.currentStepId)}),[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({currentStepId:u.currentStepId},Dr.t.omit(u,["email","longitude","latitude","trialCreated"])),t),o=Object.entries(n).filter((function(t){return void 0!==zr(t,2)[1]})).reduce((function(t,e){var r=zr(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))}),{});j.k.logUserAction(o,Object.assign({entity:l.EntityType.SignUp,location:e},r))}}};const Yr={buttonContainer:"muxxq",dataContainer:"pbBua"};function Wr(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];Dr.t.isObject(n)&&null!==n&&!Array.isArray(n)?Object.assign(e,Zr(n)):e[r]=n})),e}function Jr(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 Vr(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 Wr(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)?Wr(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(Yr.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(Yr.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(Jr,{key:t,label:t,item:u[t]})})))))}function qr(t){var e=W.getLayouts(t.type),r=t.location,n=t.initialValues,o=t.geoLocation,c=t.googleMapsApiKey,l=t.pageAppLinkString,u=t.onStepUpdate,s=t.close,f=Hr({location:r,initialValues:n,onStepUpdate:u}),p=f.back,h=f.nextStep,d=f.complete,m=f.hasPreviousStep,y=f.state,v=f.logUserAction,g={state:y,geoLocation:o,layoutMapping:e,hasPreviousStep:m,googleMapsApiKey:c,pageAppLinkString:l,back:p,close:s,nextStep:h,complete:d,logUserAction:v};return a().useEffect((function(){i.SG.get(rt)&&d({completionStep:"young-student",trialCreated:!1,trialStatus:null})}),[]),a().createElement(a().Fragment,null,a().createElement(Gr,Object.assign({},g)),a().createElement(Vr,{developmentEnv:!1,objects:Object.assign(Object.assign(Object.assign({},y),{pageAppLinkString:l}),o)}))}},2903:(t,e,r)=>{var n;r.d(e,{c:()=>n}),function(t){t.Popup="popup-form",t.FullPage="full-page-form"}(n||(n={}))},15661:(t,e,r)=>{r.d(e,{b:()=>y});var n=r(99940);function o(t){return o="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},o(t)}function a(t){var e="function"==typeof Map?new Map:void 0;return a=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 i(t,arguments,u(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,t)},a(t)}function i(t,e,r){return i=c()?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&&l(o,r.prototype),o},i.apply(null,arguments)}function c(){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 l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var s=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&&l(t,e)}(i,t);var e,r,n,a=(r=i,n=c(),function(){var t,e=u(r);if(n){var a=u(this).constructor;t=Reflect.construct(e,arguments,a)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===o(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 i(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,i),(e=a.call(this,r)).body=t,e}return e=i,Object.defineProperty(e,"prototype",{writable:!1}),e}(a(Error)),f=r(42976);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function h(){h=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof d?e:d,i=Object.create(a.prototype),c=new O(o||[]);return n(i,"_invoke",{value:S(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function d(){}function m(){}function y(){}var v={};l(v,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(N([])));b&&b!==e&&r.call(b,a)&&(v=b);var w=y.prototype=d.prototype=Object.create(v);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==p(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=L(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function L(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,L(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function j(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 k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function N(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return m.prototype=y,n(w,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:m,configurable:!0}),m.displayName=l(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},E(x.prototype),l(x.prototype,i,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new x(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(w),l(w,c,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=N,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:N(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var d=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 m(t){var e={method:n.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=t.url;return e.method===n.k.GET&&t.data?r=f._.prepareQuery(r,t.data):t.data&&(e=Object.assign(Object.assign({},e),{body:JSON.stringify(t.data)})),{init:e,url:r}}var y={asyncFetch:function(t){return d(this,void 0,void 0,h().mark((function e(){var r,n,o;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=m(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 s(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 d(this,void 0,void 0,h().mark((function e(){var r,n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=m(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=m(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()}))}))}},42976:(t,e,r)=>{r.d(e,{_:()=>n});var n={prepareQuery:function(t,e){var r=t;return Object.keys(e).forEach((function(t,n){e[t]&&(r+=0===n?"?":"&",r+="".concat(t,"=").concat(encodeURIComponent(e[t])))})),r},getRelativeUrl:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=window.location.pathname;return t&&(r+=window.location.search),e?encodeURIComponent(r):r}}},82301:(t,e,r)=>{r.d(e,{M:()=>h});var n=r(1024),o=r.n(n),a=r(15661),i={geoLocation:function(){return a.b.fetch({url:"/api/geolocation"})}};function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function l(){l=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,o){var a=e&&e.prototype instanceof d?e:d,i=Object.create(a.prototype),c=new O(o||[]);return n(i,"_invoke",{value:S(t,r,c)}),i}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var h={};function d(){}function m(){}function y(){}var v={};s(v,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(N([])));b&&b!==e&&r.call(b,a)&&(v=b);var w=y.prototype=d.prototype=Object.create(v);function E(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function o(n,a,i,l){var u=p(t[n],t,a);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==c(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,l)}),(function(t){o("throw",t,i,l)})):e.resolve(f).then((function(t){s.value=t,i(s)}),(function(t){return o("throw",t,i,l)}))}l(u.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=L(i,r);if(c){if(c===h)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=p(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function L(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,L(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=p(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function j(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 k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function N(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return m.prototype=y,n(w,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:m,configurable:!0}),m.displayName=s(y,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,s(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},E(x.prototype),s(x.prototype,i,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new x(f(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(w),s(w,u,"Generator"),s(w,a,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=N,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):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),h},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),k(r),h}},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;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:N(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var s=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())}))},f=["us","au","nz","gb","gg","im","je","ie"],p="us";function h(){var t,e,r=(t=o().useState(null),e=2,function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,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 u(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),n=r[0],a=r[1];function c(t){var e;f.includes(null===(e=null==t?void 0:t.countryCode)||void 0===e?void 0:e.toLowerCase())?a(t):a({countryCode:p})}return o().useEffect((function(){!function(){s(this,void 0,void 0,l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,t.next=5,i.geoLocation();case 5:c(t.sent),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(2),c(null);case 12:case"end":return t.stop()}}),t,null,[[2,9]])})))}()}),[]),n}},26392:(t,e,r)=>{r.d(e,{Z:()=>n});const n={logo:"JkF9k",modalBody:"CmPcN",popupButton:"FkCPC",leftHalfLayout:"KsojV",withBg:"TJ9fO"}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[1725],{49935:(e,t,r)=>{r.d(t,{Oo:()=>m,b2:()=>d});var a=r(1024),n=r(8493),o=r(5859),s=r(86764),i=r(3747),c=r(83914),l=r(58130),u=function(e){var t=e.breadcrumb,r=t.name,o=t.appLink,s=t.active,i=e.withBackIcon;return a.createElement("li",{className:"breadcrumb-item".concat(s?" active":"")},s?a.createElement("strong",null,r):a.createElement(n.F,{appLink:o},i&&a.createElement(c.x,{svgName:l.vn.ChevronLeft,size:c.S.Small}),a.createElement("span",{className:i?"ml-2":""},r)))},m=function(e){var t=e.breadcrumbs,r=(0,i.a)(s.r.XS),n=null==t?void 0:t.length;return!n||r&&n<2?a.createElement(a.Fragment,null):r?a.createElement("ol",{className:"breadcrumb m-0 p-0"},a.createElement(u,{breadcrumb:t[n-2],withBackIcon:!0})):a.createElement("ol",{className:"breadcrumb m-0 p-0"},t.map((function(e,t){return a.createElement(u,{key:t,breadcrumb:e})})))},d=a.memo((function(e){var t=e.numItems,r=void 0===t?3:t;return(0,i.a)(s.r.XS)?a.createElement("div",{className:"partial-loading-background",style:{height:"1.3125rem",width:"6rem"}}):a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},o.u.getPartialLoadingItems({numItems:r}).map((function(e,t){var r=e.width;return a.createElement("li",{key:t,className:"breadcrumb-item"},a.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:r},dangerouslySetInnerHTML:{__html:"&nbsp"}}))}))))}))},23201:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(1024),n=r(92802),o=r(33936),s=r(83345),i=r(2102),c="shared.formButtons";function l(e){var t=(0,n.u6)(),r=(0,o.l)(t);return a.createElement(i.m,{variant:e.variant||"primary",type:"submit",disabled:!r,size:e.size,className:e.className?e.className:"",showSpinner:t.isSubmitting},e.submitText?a.createElement(a.Fragment,null,e.submitText):a.createElement(s.x,{namespace:c,phrase:e.isNew?"create":"save"}))}},38365:(e,t,r)=>{r.d(t,{n:()=>w,W:()=>E});var a=r(1024),n=r(92802),o=r(99910),s=r(1048),i=r(79014),c=r(73814),l=r(8493),u=function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(r[a[n]]=e[a[n]])}return r};function m(e){var t=e.label,r=e.checkboxLabelClassName,n=e.checkboxLabelFontWeight,s=e.className,i=u(e,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return a.createElement(o.Form.Group,null,a.createElement("div",{className:"custom-control custom-checkbox ".concat(s)},a.createElement(w,Object.assign({className:"custom-control-input"},i)),a.createElement(o.Form.Label,{className:"custom-control-label cursor-pointer ".concat("normal"===n?"font-weight-normal":""," \n ").concat(r),htmlFor:i.id},t),e.checkboxAppLink&&e.checkboxAppLinkText&&a.createElement(a.Fragment,null,a.createElement("span",null," "),a.createElement(l.F,{appLink:e.checkboxAppLink,className:"info-link"},e.checkboxAppLinkText))))}var d=r(83914),p=r(58130),f=r(83345);function y(e){var t=(0,n.u6)().values[e.fieldName];return"string"!=typeof t?a.createElement(a.Fragment,null):a.createElement("div",{className:"float-right text-muted font-weight-normal"},t.length,"/",e.limit," characters")}const g={revealPassword:"jCfI0",passwordInput:"RBJnf",passwordContainer:"d78lK",passwordContainerDisabled:"asbVo"};function v(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 b=function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(r[a[n]]=e[a[n]])}return r},h="shared.formField";function w(e){var t,r,o=e.children,c=b(e,["children"]),l=(t=a.useState(e.type),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,n,o,s,i=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(a=o.call(r)).done)&&(i.push(a.value),i.length!==t);c=!0);}catch(e){l=!0,n=e}finally{try{if(!c&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(l)throw n}}return i}}(t,r)||function(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}}(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.")}()),u=l[0],m=l[1],f=i.q.isFunction(o)?function(e){return o(e)}:a.Children.count(o)?o:null;if("password"!==c.type)return a.createElement(n.gN,Object.assign({},s.t.omit(c,["formSize"])),f);var y="position-relative ".concat(g.passwordContainer);return c.className&&(y+=" ".concat(c.className)),c.disabled&&(y+=" ".concat(g.passwordContainerDisabled)),a.createElement("div",{className:y},a.createElement(n.gN,Object.assign({},s.t.omit(c,["formSize","type","className"]),{type:u,className:"".concat(g.passwordInput," border-0 w-100 h-100 outline-none rounded")}),f),"password"===c.type&&a.createElement(d.x,{svgName:"password"===u?p.vn.VisibleOn:p.vn.VisibleOff,className:"svg-container cursor-pointer ".concat(g.revealPassword),onClick:function(){m("password"===u?"text":"password")}}))}function E(e){var t=e.label,r=e.className,i=e.showCharacterCounter,l=e.showRequiredStar,u=e.infoTooltip,g=e.infoText,v=e.formSize,E=e.showOptionalLabel,k=b(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoText","formSize","showOptionalLabel"]),S=(0,n.u6)(),N=S.errors,O=S.touched,I=function(){};if("checkbox"===k.type){var x=s.t.omit(e,["formSize"]);return e.disabled&&(x.onChange=I),a.createElement(m,Object.assign({},x))}var A=Object.assign(Object.assign({},k),{className:c.w.getCustomFormControlClassName(N,O,k.name,v,r)});return e.disabled&&(A.onChange=I),a.createElement(o.Form.Group,null,!!t&&a.createElement(o.Form.Label,{htmlFor:k.id,className:"d-flex align-items-center"},t,l&&a.createElement("span",{className:"text-danger"},"*"),u&&a.createElement(d.x,{svgName:p.vn.Info,title:u,tooltipPlacement:"top",tooltipSpanHack:!0}),E&&a.createElement("span",{className:"text-muted"}," ",a.createElement(f.x,{namespace:h,phrase:"optional"})),!!i&&!!k.maxLength&&a.createElement("div",{className:"ml-auto"},a.createElement(y,{fieldName:k.name,limit:k.maxLength}))),a.createElement(w,Object.assign({},A)),!!g&&a.createElement(o.Form.Text,{className:"text-muted"},g),a.createElement(n.Bc,{name:k.name},(function(e){return a.createElement(o.Form.Control.Feedback,{type:"invalid"},e)})))}w.defaultProps={autoComplete:"off"},E.defaultProps={autoComplete:"off"}},82644:(e,t,r)=>{r.d(t,{b:()=>u,n:()=>l});var a=r(1024),n=r(92802),o=r(79014),s=r(1048);function i(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 c=function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(r[a[n]]=e[a[n]])}return r};function l(e){var t=e.castInitialValues,r=e.castValuesOnSubmit,l=e.initialValues,u=e.onSubmit,m=c(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),d=t&&e.validationSchema?e.validationSchema.cast(function(e){if(!e)return{};var t=s.t.deepClone(e);return function e(r){Object.keys(t).forEach((function(a){t.hasOwnProperty(a)&&(s.t.isObject(r[a])?e(r[a]):null===t[a]&&delete t[a])}))}(t),t}(l)):l,p={allowInitialSubmit:e.allowInitialSubmit};return a.createElement(n.J9,Object.assign({enableReinitialize:!0},m,{initialValues:d,onSubmit:function(t,a){var n=a.setSubmitting,o=a.resetForm,s=a.setFieldError,c=r&&e.validationSchema?e.validationSchema.cast(t):t;u(c,(function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(r.reset&&o(),r.errors)for(var a=0,c=Object.entries(r.errors);a<c.length;a++){var l=(e=c[a],t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,o,s,i=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(a=o.call(r)).done)&&(i.push(a.value),i.length!==t);c=!0);}catch(e){l=!0,n=e}finally{try{if(!c&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(l)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(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)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=l[0],m=l[1];s(u,m)}n(!1)}))},initialStatus:p}),o.q.isFunction(e.children)?function(t){return e.children(t)}:a.Children.count(e.children)?e.children:null)}function u(){return(0,n.u6)()}l.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},70197:(e,t,r)=>{var a;r.d(t,{q:()=>a}),function(e){e.YearGroupValues="yearGroupValues",e.Status="status"}(a||(a={}))},73814:(e,t,r)=>{r.d(t,{w:()=>n});var a=r(92802),n={getCustomFormControlClassName:function(e,t,r,n,o){var s="form-control";return"sm"===n&&(s+=" form-control-sm"),"lg"===n&&(s+=" form-control-lg"),(0,a.u9)(t,r)&&(0,a.u9)(e,r)&&(s+=" is-invalid"),o&&(s+=" ".concat(o)),s}}},5859:(e,t,r)=>{function a(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}r.d(t,{u:()=>o});var n={numItems:5,minWidth:50,maxWidth:100},o={getPartialLoadingItems:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=Object.assign(Object.assign({},n),t);return(e=Array(r.numItems),function(e){if(Array.isArray(e))return a(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 a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(){return{width:"".concat(Math.max(Math.floor(Math.random()*r.maxWidth),r.minWidth),"px")}}))}}},81803:(e,t,r)=>{r.d(t,{d:()=>f});var a=r(1024),n=r.n(a),o=r(81886),s=r(23481),i=r(49935),c=r(97291),l=r(14070),u=r(96368);function m(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 d="settings.settingsLayout",p=function(){var e=o.Q.AppLinkHelper.getCurrentAppLink();return(0,u.e)().some((function(t){return t.modules.some((function(t){return"appLink"in t&&t.appLink.action===e.action}))}))};function f(e){var t=p();if(n().useEffect((function(){t||o.Q.AppLinkHelper.trigger({application:c.O.SETTINGS,action:l.e.Settings.HOME},{replace:!0})}),[t]),!t)return n().createElement(n().Fragment,null);var r,a=e.breadcrumbs.map((function(t,r){return{name:t,appLink:{application:c.O.SETTINGS,action:l.e.Settings.HOME},active:r===e.breadcrumbs.length-1}}));return n().createElement("div",{className:"px-3"},n().createElement("h1",{className:"h2"},e.heading),n().createElement("div",{className:"pb-3"},n().createElement(i.Oo,{breadcrumbs:[{name:s.T.getPhrase(d,"settingsBreadcrumb"),appLink:{application:c.O.SETTINGS,action:l.e.Settings.HOME}}].concat((r=a,function(e){if(Array.isArray(e))return m(e)}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return m(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)?m(e,t):void 0}}(r)||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.")}()))})),e.description&&n().createElement(n().Fragment,null,n().createElement("p",null,e.description),n().createElement("hr",null)),e.children)}},51725:(e,t,r)=>{r.r(t),r.d(t,{ProfileDetailsView:()=>q});var a=r(1024),n=r.n(a),o=r(58566),s=r(20354),i=r(23481),c=r(49985),l=r(65858),u=r(31949),m=r(69883),d=r(39151),p=r(54610),f=r(93543),y=r(39872),g=r(92802),v=r(38365),b=r(82644),h=r(23201),w=r(5173),E=i.T.encloseNamespace("settings.editProfileDetailsForm"),k=(0,w.Ry)().shape({firstName:(0,w.Z_)().max(255,(function(){return E("nameExceeds")})).required((function(){return E("nameRequired")})).default("").trim(),surname:(0,w.Z_)().max(255,(function(){return E("surnameExceeds")})).required((function(){return E("surnameRequired")})).default("").trim(),username:(0,w.Z_)().max(255,(function(){return E("usernameExceeds")})).default("").trim(),displayName:(0,w.Z_)().max(255,(function(){return E("displayNameExceeds")})).default("").trim()}),S=i.T.encloseNamespace("settings.editProfileDetailsForm");function N(e){var t,r;return n().createElement(b.n,{initialValues:{firstName:e.user.name,surname:e.user.surname,username:e.user.username,displayName:null!==(r=null===(t=e.user.metadata)||void 0===t?void 0:t.displayName)&&void 0!==r?r:""},validationSchema:k,onSubmit:e.onClickSave},n().createElement(g.l0,null,n().createElement(v.W,{label:S("firstName"),type:"text",name:"firstName",id:"firstName",placeholder:S("firstNamePlaceholder"),autoFocus:!0,showRequiredStar:!0}),n().createElement(v.W,{label:S("lastName"),type:"text",name:"surname",id:"surname",placeholder:S("lastNamePlaceholder"),showRequiredStar:!0}),n().createElement(v.W,{label:S("displayName"),type:"text",name:"displayName",id:"displayName",placeholder:S("displayNamePlaceholder"),infoTooltip:S("displayNameTooltip")}),n().createElement(v.W,{label:S("username"),type:"text",name:"username",id:"username",placeholder:S("usernamePlaceholder"),showRequiredStar:!0,disabled:!0,infoTooltip:S("usernameTooltip")}),n().createElement(h.A,{variant:"dark",submitText:S("saveChanges"),isNew:!1})))}var O=r(97395),I=r(83345),x=r(67453),A=r(55452),P=r(79483),j=r(497);const C={profileImage:"e1vsK"};var T="settings.editAvatar";function U(e){var t,r,a,o,s=n().useRef(null),i=(null===(t=e.user.avatar)||void 0===t?void 0:t.url)?e.user.avatar.url:(a=e.imageCdnUrl,o=A.l.getInitials(e.user.name,e.user.surname),x.j.createUrl(O._.safeUrlConcat(a,"/v1/profile-images?initials=".concat(o)),{size:p.h2.Medium}));return n().createElement(I.D.Provider,{value:T},n().createElement("div",{className:"form-group d-flex flex-column align-items-center pl-4"},n().createElement("label",{className:"align-self-start"},n().createElement(I.x,{phrase:"profileImage"})),n().createElement("img",{className:"img img-fluid rounded ".concat(C.profileImage," mb-2"),alt:"User avatar",src:i}),n().createElement("button",{className:"btn btn-outline-dark px-3 text-center",onClick:function(){s.current.value=null,s.current.click(null)}},n().createElement(I.x,{phrase:"uploadImage"})),n().createElement("input",{type:"file",autoComplete:"off",className:"file-select d-none",multiple:!1,accept:"image/jpg,image/jpeg,image/png",ref:s,onChange:function(t){var r;(r=t.target.files)&&r[0]&&P.J.onFileSelect(p.__.Avatars,r,(function(t){j.M.renderCropper({src:t.src,alt:"",onClickCrop:function(t,r){return e.onSelectImage(function(e){return e.split(",")[1]}(t),r)},imageType:p.__.Avatars})}))}}),!!(null===(r=e.user.avatar)||void 0===r?void 0:r.url)&&n().createElement("button",{className:"btn btn-link text-center",onClick:e.onClickRemoveImage},n().createElement(I.x,{phrase:"removeImage"}))))}var L=r(81803);const F={partialLabel:"Z_3rS",partialInput:"B0iyg",partialSubmit:"MZM6I",partialAvatar:"iqthe",partialUploadImage:"qmeIF"};function _(){return n().createElement("div",{className:"row no-gutters"},n().createElement("div",{className:"col-4"},n().createElement("div",{className:"form-group"},n().createElement("div",{className:"partial-loading-background ".concat(F.partialLabel)}),n().createElement("div",{className:"partial-loading-background ".concat(F.partialInput)})),n().createElement("div",{className:"form-group"},n().createElement("div",{className:"partial-loading-background ".concat(F.partialLabel)}),n().createElement("div",{className:"partial-loading-background ".concat(F.partialInput)})),n().createElement("div",{className:"form-group"},n().createElement("div",{className:"partial-loading-background ".concat(F.partialLabel)}),n().createElement("div",{className:"partial-loading-background ".concat(F.partialInput)})),n().createElement("div",{className:"partial-loading-background ".concat(F.partialSubmit)})),n().createElement("div",{className:"form-group d-flex flex-column align-items-center pl-4"},n().createElement("div",{className:"partial-loading-background align-self-start ".concat(F.partialLabel)}),n().createElement("div",{className:"partial-loading-background mb-2 ".concat(F.partialAvatar)}),n().createElement("div",{className:"partial-loading-background mx-3 ".concat(F.partialUploadImage)})))}var z=i.T.encloseNamespace("settings.profileDetails");function q(){var e=(0,o.useDispatch)(),t=(0,m.Z)(),r=s.a.useBasicFetch(u.N.currentUser()),a=s.a.useBasicFetch(r.data&&y.N.getUser(r.data.id)),i=s.a.useBasicFetch(d.L.config());return n().createElement(L.d,{heading:z("heading"),breadcrumbs:[z("breadcrumb")]},r.data&&a.data&&i.data?n().createElement("div",{className:"row no-gutters"},n().createElement("div",{className:"col-4"},n().createElement(N,{user:a.data,onClickSave:function(n,o){var i=Object.assign(Object.assign({},n),{customerId:r.data.customerId,masterRole:a.data.role,userId:a.data.id,userType:a.data.userType,masterYearGroup:a.data.masterYearGroup,displayName:n.displayName||null,username:a.data.username});s.a.fetch(e,y.N.updateUser(i,r.data.id,(function(){c.k.logUserAction(i,{location:l.LocationContext.Settings,actionType:l.UserAction.Edit,workflowPhase:l.WorkflowPhase.Complete,entity:l.EntityType.User}),t.success(z("success"))}),(function(){t.error(z("error"))}),o))}})),n().createElement(U,{user:a.data,onSelectImage:function(a,n){s.a.fetch(e,f.A.uploadBase64Image(p.__.Avatars,a,(function(a){!function(a,n){s.a.fetch(e,y.N.updateAvatar(a.id,r.data.id,(function(){c.k.logUserAction({id:r.data.id,avatarId:a.id,avatarUrl:a.location},{actionType:l.UserAction.Associate,workflowPhase:l.WorkflowPhase.Complete,location:l.LocationContext.Settings,entity:l.EntityType.User,descriptor:l.AssocDescriptor.Avatar}),n(),t.success(z("avatarUploadSuccess"))}),(function(){t.error(z("avatarUploadError"))})))}(a,n)}),(function(){t.error(z("avatarUploadError"))})))},onClickRemoveImage:function(){s.a.fetch(e,y.N.deleteAvatar(a.data.avatar.id,r.data.id,(function(){c.k.logUserAction({id:r.data.id,avatarId:a.data.avatar.id},{actionType:l.UserAction.Dissociate,workflowPhase:l.WorkflowPhase.Complete,location:l.LocationContext.Settings,entity:l.EntityType.User,descriptor:l.AssocDescriptor.Avatar}),t.success(z("avatarDeleteSuccess"))}),(function(){t.error(z("avatarDeleteError"))})))},imageCdnUrl:i.data.imageCdnUrl})):n().createElement(_,null))}},39872:(e,t,r)=>{r.d(t,{N:()=>p});var a,n,o=r(97395),s=r(99940),i=r(54610),c=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"}(a||(a={})),function(e){e.TermsGroupBy="terms-group-by"}(n||(n={}));var l=r(70197);function u(e){return u="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},u(e)}function m(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==u(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,"string");if("object"!==u(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===u(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}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 p={getUsers:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,n=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,i={query:c.P.buildGetUsersQuery(t,r)};a&&(i.cursor=a);var l="school:users:".concat(e,":").concat(t);return l+=Object.keys(i).map((function(e){return i[e]})).join(":"),{url:o._.urlBuilder("{gateway}/v1/customers/".concat(e,"/users"),i),key:l,success:n,error:s}},getUser:function(e){return{url:"{gateway}/v1/users/".concat(e,"?query=avatar"),key:"school:users:".concat(e)}},bulkRemoveUsers:function(e,t,r,a){var n,o=["school:users","search:users","search:aggregation"];return(null===(n=e.userIds)||void 0===n?void 0:n.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:a}},createUsers:function(e,t,r,a,n){return{url:"{gateway}/v1/users",key:"create:users",data:e,type:s.k.POST,invalidationKeys:["school:users","user:count"],success:r,error:a,always:n,normalize:!1}},updateUser:function(e,t,r,a,n){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:a,always:n}},searchUsers:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,n=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,i=c.P.buildSearchParams(e,t,r);a&&(i.cursor=a);var l="search:users:".concat(a);return l+=Object.keys(i).sort().map((function(e){return i[e]})).join(":"),{url:o._.urlBuilder("{gateway}/v1/search/users",i),key:l,success:n,error:s}},getSearchUserIds:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,n=arguments.length>4?arguments[4]:void 0,s=c.P.buildSearchParams(e,t,r),i="search:user:ids";return i+=Object.keys(s).sort().map((function(e){return s[e]})).join(":"),{url:o._.urlBuilder("{gateway}/v1/search/user/ids",s),key:i,normalize:!1,success:a,error:n}},getSearchAggregation:function(e){var t=e.userId,r=e.customerId,o=e.userType,i=e.queryParams,u=void 0===i?{}:i,m=e.userIds,d=e.field,p=c.P.buildSearchFiltersObject(r,o,u),f="search:aggregation:".concat(t,":").concat(r,":").concat(d,":");f+=Object.keys(p).sort().map((function(e){return p[e]})).join(":"),f+=":"+m.join(":");var y={indices:["user"],searchType:a.User,isLearner:!1,type:n.TermsGroupBy,userId:t.toString(),customerId:r.toString(),data:{field:d},idFilters:m,filters:p};return{url:"{gateway}/v1/search/aggregation",type:s.k.POST,key:f,data:y,normalize:!1,formatData:function(e){var t=e.termCount;return d!==l.q.Status?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,a,n){return{url:"{gateway}/v1/users/status",key:"update:users:status",type:s.k.PUT,data:e,success:r,error:a,always:n,invalidationKeys:["school:users:".concat(e.customerId,":").concat(t)].concat((o=e.users.map((function(e){return"school:users:".concat(e.userId)})),function(e){if(Array.isArray(e))return d(e)}(o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||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}}(o)||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.")}()),["search:aggregation"])};var o},bulkValidate:function(e,t,r,a,n){return{url:"{gateway}/v1/users/validate",type:s.k.POST,key:"validate:users",data:e,success:r,error:a,always:n,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,a){return{url:"{gateway}/v1/users/me/avatar",key:"update:avatar",type:s.k.PUT,invalidationKeys:["currentuser","school:users:".concat(t)],data:{fileId:e,fileIdType:i.z9.ImageAPIv2},success:r,error:a}},deleteAvatar:function(e,t,r,a){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,a=e["school:users:".concat(t)],n=e.currentuser;return a.avatar=null,n.avatar=null,m(r={},"school:users:".concat(t),a),m(r,"currentuser",n),r}},success:r,error:a}},changeEmail:function(e,t,r,a){return{url:"{gateway}/v1/users/me/email",key:"change:email",type:s.k.PUT,data:{email:e},success:t,error:r,always:a}},changePassword:function(e,t,r,a){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:a}},changeUserPassword:function(e,t,r,a,n,o,i){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:a},success:n,error:o,always:i}},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,a){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:a}},resendVerificationEmail:function(e,t,r,a){return{url:"{gateway}/v1/users/admin/email-verification",key:"send:verification:email",type:s.k.POST,data:{userId:e,customerId:t},success:r,error:a}},exportList:function(e,t,r,a){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:a,invalidationKeys:["export:users:".concat(t)],normalize:!1}},userCount:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=c.P.buildSearchParams(e,t,r),n="search:user:count";return n+=Object.keys(a).sort().map((function(e){return a[e]})).join(":"),{url:o._.urlBuilder("{gateway}/v1/search/user/count",a),key:n,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}}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[1726],{4366:(e,t,n)=>{n.d(t,{E:()=>d});var i=n(1024),r=n.n(i),a=n(9111),o=n(11607);const c={selected:"qGXyH"};function l(e){var t="text-center cursor-pointer p-3 border rounded-lg mx-2 user-select-none w-50";return e.selected&&(t+=" border-info ".concat(c.selected)),r().createElement(o.L,{onClick:function(){return e.onSelect(e.option)},className:t},r().createElement("img",{src:e.option.imageUrl,className:"img-fluid my-3",draggable:!1}),r().createElement("h2",{className:"h3"},e.option.title),r().createElement("p",null,e.option.description))}function s(e){return r().createElement("div",{className:"d-flex mb-3 mx-n2"},e.options.map((function(t){var n;return r().createElement(l,{key:t.id,option:t,selected:(null===(n=e.selection)||void 0===n?void 0:n.id)===t.id,onSelect:e.selectOption})})))}var u=n(13876);function d(e){return r().createElement(a.G,{size:"lg",title:e.title,showLoadingSpinner:e.showLoadingSpinner,closePopup:e.closePopup},r().createElement(r().Fragment,null,!!e.warningComponent&&e.warningComponent,e.question&&r().createElement("h2",{className:"h5 text-center font-weight-500 mb-3"},e.question),r().createElement(s,{options:e.options,selection:e.selection,selectOption:e.selectOption}),r().createElement(u.u,null,e.cancelButtonProps&&r().createElement(u.u.Cancel,Object.assign({},e.cancelButtonProps)),e.submitButtonProps&&r().createElement(u.u.Submit,Object.assign({},e.submitButtonProps)))))}},36199:(e,t,n)=>{var i;n.d(t,{V:()=>i}),function(e){e[e.Original=0]="Original",e[e.Copy=1]="Copy"}(i||(i={}))},91726:(e,t,n)=>{n.r(t),n.d(t,{NewInteractiveView:()=>b});var i=n(1024),r=n(20354),a=n(23481),o=n(31949),c=n(1575),l=n(4366),s=n(75986),u=n(49985),d=n(65858),p=n(99742);function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,c=[],l=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=a.call(n)).done)&&(c.push(i.value),c.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var v=a.T.encloseNamespace("shared.makeInteractive");function b(e){var t,n,a,f=e.videoId,b=e.closePopup,g=m(i.useState(!1),2),h=g[0],k=g[1],y=m(i.useState(null),2),w=y[0],E=y[1],I=r.a.useBasicFetch(o.N.currentUser()),C=r.a.useBasicFetch(c.R.video(f)),S=(0,s.$)({feedback:"feedback"===(null==w?void 0:w.id),setShowSpinner:k,closePopup:b,name:null===(t=C.data)||void 0===t?void 0:t.name,duration:null===(n=C.data)||void 0===n?void 0:n.duration,objectId:null===(a=C.data)||void 0===a?void 0:a.id,currentUser:I.data,baseAnalyticsData:{video:{id:f}}}).createInteractive,O=[{id:"feedback",title:v("feedbackTitle"),description:v("feedbackDescription"),imageUrl:p.W.Interactives.FeedbackOptions.FEEDBACK},{id:"no-feedback",title:v("noFeedbackTitle"),description:v("noFeedbackDescription"),imageUrl:p.W.Interactives.FeedbackOptions.NO_FEEDBACK}];return i.createElement(l.E,{title:v("title"),closePopup:b,options:O,selectOption:E,selection:w,showLoadingSpinner:!C.data||!I.data,cancelButtonProps:{onClick:function(){u.k.logUserAction({video:{id:f}},{location:d.LocationContext.NewInteractive,entity:d.EntityType.Interactive,actionType:d.UserAction.Create,workflowPhase:d.WorkflowPhase.Discard}),b()},text:v("cancel"),variant:"link"},submitButtonProps:{onClick:S,text:v("continue"),variant:"dark",showSpinner:h,disabled:!w}})}},75986:(e,t,n)=>{n.d(t,{$:()=>b});var i=n(58566),r=n(81886),a=n(20354),o=n(23481),c=n(36199),l=n(69883),s=n(20768),u=n(97291),d=n(14070),p=n(5960),m=n(49985),f=n(65858),v=o.T.encloseNamespace("shared.makeInteractive"),b=function(e){var t=e.feedback,n=e.setShowSpinner,o=e.objectId,b=e.name,g=e.duration,h=e.currentUser,k=e.closePopup,y=e.baseAnalyticsData,w=(0,i.useDispatch)(),E=(0,l.Z)();function I(){n(!1),E.error(v("error"))}function C(e){var t={name:b,interactiveId:e.id,owner:{id:h.id},originType:c.V.Original,status:p.X.Draft};a.a.fetch(w,s.b.createInteractiveMetadata(o,t,S,I))}function S(e){m.k.logUserAction(Object.assign(Object.assign({},y),{id:e.id}),{location:f.LocationContext.NewInteractive,entity:f.EntityType.Interactive,actionType:f.UserAction.Create,workflowPhase:f.WorkflowPhase.Complete}),r.Q.AppLinkHelper.trigger({application:u.O.INTERACTIVES,action:d.e.Interactives.EDIT_INTERACTIVE,args:[e.id]}),k()}return{createInteractive:function(){n(!0);var e={name:b,duration:g,immediateFeedback:t,preventScrubbing:!1};a.a.fetch(w,s.b.createInteractive(e,C,I))}}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[1792],{51497:(e,r,t)=>{t.d(r,{F:()=>l});var a=t(1024),n=t.n(a),o=t(99910),s=t(83345),u=t(40424),c=t(8612),i=t(74472);function l(e){return n().createElement(s.D.Provider,{value:"userManager.bulkUserActionsYearGroupRolloverActionDetails"},n().createElement(o.Row,{className:"mb-2"},n().createElement(o.Col,{xs:4},n().createElement(s.x,{phrase:"yearGroupsList"})),n().createElement(o.Col,{xs:8},n().createElement(s.x,{phrase:"rolloverTo"}))),e.yearGroups.map((function(r,t){var a,l,d=null!==(a=e.countsByYearGroup[r.value])&&void 0!==a?a:0,y=r.value>=(null===(l=e.graduatingYearGroup)||void 0===l?void 0:l.value),m=e.yearGroups[t+1],v={status:u.w.Disabled,id:"fake-deactivated-user"};return n().createElement(o.Row,{key:r.value,className:"mb-2"},n().createElement(o.Col,{xs:4},n().createElement(c.G,null,r.name),n().createElement("div",null,n().createElement(s.x,{phrase:"count",options:{smartCount:d}}))),n().createElement(o.Col,{xs:8},y?n().createElement(i.b,{user:v,className:"d-inline-block"}):n().createElement(c.G,null,null==m?void 0:m.name)))})))}},8612:(e,r,t)=>{t.d(r,{G:()=>o});var a=t(1024),n=t.n(a);function o(e){return n().createElement("span",{className:"".concat(e.className," rounded-pill px-2 text-nowrap bg-white border border-dark")},e.children)}},84566:(e,r,t)=>{t.d(r,{S:()=>l});var a=t(20354),n=t(2948),o=t(38143),s=t(31949);function u(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(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 c(e,r){if(e){if("string"==typeof e)return i(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?i(e,r):void 0}}function i(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}function l(e){var r,t,i=(r=(0,n.D)(o.g.BULK_USER_ACTIONS),t=1,function(e){if(Array.isArray(e))return e}(r)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,n,o,s,u=[],c=!0,i=!1;try{if(o=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;c=!1}else for(;!(c=(a=o.call(t)).done)&&(u.push(a.value),u.length!==r);c=!0);}catch(e){i=!0,n=e}finally{try{if(!c&&null!=t.return&&(s=t.return(),Object(s)!==s))return}finally{if(i)throw n}}return u}}(r,t)||c(r,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.")}())[0],l=a.a.useBasicFetch(s.N.currentUser());return a.a.useBasicFetch((null==i?void 0:i.userIdMap)&&l.data&&e.getSearchAggregation({userId:l.data.id,customerId:l.data.customerId,userType:e.userType,queryParams:i.params,userIds:u(i.userIdMap.keys()),field:e.field})).data}},70197:(e,r,t)=>{var a;t.d(r,{q:()=>a}),function(e){e.YearGroupValues="yearGroupValues",e.Status="status"}(a||(a={}))},99705:(e,r,t)=>{var a,n;t.d(r,{b:()=>n}),function(e){e.AddToPlaylist="115005679748",e.EditSsoAccounts="8202508040345",e.LibraryEditor="360001974533",e.VideoAccess="360000153947",e.AddFromOnline="360011718234",e.UploadToLibraryEditor="360012069334",e.PBTErrorCodes="360012421153",e.ManuelReview="360020004534",e.LibraryReview="360000163788"}(a||(a={})),function(e){e.Integrations="4407268725529",e.Classrooms="4405362551833",e.MakeInteractive="4405370510873",e.EditSsoAccounts="8202605666073",e.UploadToLibraryEditor="10672936659865",e.AddFromLite="10671345281561",e.ManageSsoYearGroups="12522160412313"}(n||(n={}))},39872:(e,r,t)=>{t.d(r,{N:()=>m});var a,n,o=t(97395),s=t(99940),u=t(54610),c=t(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"}(a||(a={})),function(e){e.TermsGroupBy="terms-group-by"}(n||(n={}));var i=t(70197);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function d(e,r,t){return(r=function(e){var r=function(e,r){if("object"!==l(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,"string");if("object"!==l(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===l(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function y(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}var m={getUsers:function(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,n=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,u={query:c.P.buildGetUsersQuery(r,t)};a&&(u.cursor=a);var i="school:users:".concat(e,":").concat(r);return i+=Object.keys(u).map((function(e){return u[e]})).join(":"),{url:o._.urlBuilder("{gateway}/v1/customers/".concat(e,"/users"),u),key:i,success:n,error:s}},getUser:function(e){return{url:"{gateway}/v1/users/".concat(e,"?query=avatar"),key:"school:users:".concat(e)}},bulkRemoveUsers:function(e,r,t,a){var n,o=["school:users","search:users","search:aggregation"];return(null===(n=e.userIds)||void 0===n?void 0:n.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:r,error:t,always:a}},createUsers:function(e,r,t,a,n){return{url:"{gateway}/v1/users",key:"create:users",data:e,type:s.k.POST,invalidationKeys:["school:users","user:count"],success:t,error:a,always:n,normalize:!1}},updateUser:function(e,r,t,a,n){var o=["school:users:".concat(e.userId)];return r.toString()===e.userId.toString()&&o.push("currentuser"),{url:"{gateway}/v1/users",key:"edit:user",type:s.k.PUT,data:e,invalidationKeys:["search:aggregation"],success:t,error:a,always:n}},searchUsers:function(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,n=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,u=c.P.buildSearchParams(e,r,t);a&&(u.cursor=a);var i="search:users:".concat(a);return i+=Object.keys(u).sort().map((function(e){return u[e]})).join(":"),{url:o._.urlBuilder("{gateway}/v1/search/users",u),key:i,success:n,error:s}},getSearchUserIds:function(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,n=arguments.length>4?arguments[4]:void 0,s=c.P.buildSearchParams(e,r,t),u="search:user:ids";return u+=Object.keys(s).sort().map((function(e){return s[e]})).join(":"),{url:o._.urlBuilder("{gateway}/v1/search/user/ids",s),key:u,normalize:!1,success:a,error:n}},getSearchAggregation:function(e){var r=e.userId,t=e.customerId,o=e.userType,u=e.queryParams,l=void 0===u?{}:u,d=e.userIds,y=e.field,m=c.P.buildSearchFiltersObject(t,o,l),v="search:aggregation:".concat(r,":").concat(t,":").concat(y,":");v+=Object.keys(m).sort().map((function(e){return m[e]})).join(":"),v+=":"+d.join(":");var p={indices:["user"],searchType:a.User,isLearner:!1,type:n.TermsGroupBy,userId:r.toString(),customerId:t.toString(),data:{field:y},idFilters:d,filters:m};return{url:"{gateway}/v1/search/aggregation",type:s.k.POST,key:v,data:p,normalize:!1,formatData:function(e){var r=e.termCount;return y!==i.q.Status?r:Object.keys(r).reduce((function(e,t){return e[t.charAt(0).toUpperCase()+t.slice(1)]=r[t],e}),{})}}},bulkToggleActivation:function(e,r,t,a,n){return{url:"{gateway}/v1/users/status",key:"update:users:status",type:s.k.PUT,data:e,success:t,error:a,always:n,invalidationKeys:["school:users:".concat(e.customerId,":").concat(r)].concat((o=e.users.map((function(e){return"school:users:".concat(e.userId)})),function(e){if(Array.isArray(e))return y(e)}(o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,r){if(e){if("string"==typeof e)return y(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?y(e,r):void 0}}(o)||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.")}()),["search:aggregation"])};var o},bulkValidate:function(e,r,t,a,n){return{url:"{gateway}/v1/users/validate",type:s.k.POST,key:"validate:users",data:e,success:t,error:a,always:n,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,r,t,a){return{url:"{gateway}/v1/users/me/avatar",key:"update:avatar",type:s.k.PUT,invalidationKeys:["currentuser","school:users:".concat(r)],data:{fileId:e,fileIdType:u.z9.ImageAPIv2},success:t,error:a}},deleteAvatar:function(e,r,t,a){return{url:"{gateway}/v1/users/me/avatar/".concat(e),key:"delete:avatar",type:s.k.DELETE,updateState:{keys:["school:users:".concat(r),"currentuser"],updateData:function(e){var t,a=e["school:users:".concat(r)],n=e.currentuser;return a.avatar=null,n.avatar=null,d(t={},"school:users:".concat(r),a),d(t,"currentuser",n),t}},success:t,error:a}},changeEmail:function(e,r,t,a){return{url:"{gateway}/v1/users/me/email",key:"change:email",type:s.k.PUT,data:{email:e},success:r,error:t,always:a}},changePassword:function(e,r,t,a){return{url:"{gateway}/v1/users/me/password",key:"change:password",type:s.k.PUT,data:{currentPassword:e.currentPassword,newPassword:e.newPassword},success:r,error:t,always:a}},changeUserPassword:function(e,r,t,a,n,o,u){return{url:"{gateway}/v1/users/admin/change-password",key:"change:password:".concat(r,":").concat(e),type:s.k.PUT,data:{userId:e,newPassword:t,changeOnNextLogin:a},success:n,error:o,always:u}},resendActivationEmail:function(e,r,t){return{url:"{gateway}/v1/users/admin/activation",key:"send:activation:email",type:s.k.POST,data:{userId:e},success:r,error:t}},sendPasswordResetEmail:function(e,r,t,a){return{url:"{gateway}/v1/users/admin/account-reminder",key:"send:password:reset:email",type:s.k.POST,data:{userIds:[e],customerId:r},success:t,error:a}},resendVerificationEmail:function(e,r,t,a){return{url:"{gateway}/v1/users/admin/email-verification",key:"send:verification:email",type:s.k.POST,data:{userId:e,customerId:r},success:t,error:a}},exportList:function(e,r,t,a){return{url:o._.urlBuilder("{gateway}/v1/customers/".concat(e,"/users/report"),{userType:r}),key:"export:users:".concat(r),type:s.k.GET,formatData:function(e){return"data:text/csv;charset=utf-8,".concat(e)},success:t,error:a,invalidationKeys:["export:users:".concat(r)],normalize:!1}},userCount:function(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=c.P.buildSearchParams(e,r,t),n="search:user:count";return n+=Object.keys(a).sort().map((function(e){return a[e]})).join(":"),{url:o._.urlBuilder("{gateway}/v1/search/user/count",a),key:n,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,r){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:r}}}}}]);