@clickview/lite 0.27.0-dev.0 → 0.27.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 (192) hide show
  1. package/.eslintrc.json +2 -2
  2. package/dist/bundles.json +1 -1
  3. package/dist/css/{1181-lite-d024d94988.chunk.css → 1181-lite-128a1a9952.chunk.css} +1 -1
  4. package/dist/css/{317-lite-322c2dae33.chunk.css → 317-lite-d3040de97d.chunk.css} +1 -1
  5. package/dist/css/{9296-lite-1585614993.chunk.css → 9296-lite-bfc8c517bf.chunk.css} +1 -1
  6. package/dist/languages/en.json +1 -1
  7. package/dist/scripts/{1200-9877a7ee56-lite.chunk.js → 1200-6a89c2db3a-lite.chunk.js} +1 -1
  8. package/dist/scripts/{1592-cf0f982494-lite.chunk.js → 1592-fbec415025-lite.chunk.js} +1 -1
  9. package/dist/scripts/{1672-cdf3a9a034-lite.chunk.js → 1672-50c8debade-lite.chunk.js} +1 -1
  10. package/dist/scripts/1976-c75baa71eb-lite.chunk.js +2 -0
  11. package/dist/scripts/{2097-f9b13023a1-lite.chunk.js → 2097-5b2064a2de-lite.chunk.js} +1 -1
  12. package/dist/scripts/3533-c77aa5f546-lite.chunk.js +1 -0
  13. package/dist/scripts/{3645-46860b112f-lite.chunk.js → 3645-7b001dbb07-lite.chunk.js} +1 -1
  14. package/dist/scripts/{3667-4c841df29a-lite.chunk.js → 3667-f0384d124f-lite.chunk.js} +1 -1
  15. package/dist/scripts/{4617-4be7ef4496-lite.chunk.js → 4617-102986b146-lite.chunk.js} +1 -1
  16. package/dist/scripts/4632-aaebd088d3-lite.chunk.js +1 -0
  17. package/dist/scripts/{5622-6d7a8a4f10-lite.chunk.js → 5622-2c1ba91057-lite.chunk.js} +1 -1
  18. package/dist/scripts/6204-3f6b0e0be3-lite.chunk.js +1 -0
  19. package/dist/scripts/6285-8b41c19cfe-lite.chunk.js +1 -0
  20. package/dist/scripts/6381-044ed8885d-lite.chunk.js +1 -0
  21. package/dist/scripts/{6736-fcc416a392-lite.chunk.js → 6736-3f5c69bde8-lite.chunk.js} +1 -1
  22. package/dist/scripts/{6801-0a42301681-lite.chunk.js → 6801-150c253f94-lite.chunk.js} +1 -1
  23. package/dist/scripts/{7221-6f736071b0-lite.chunk.js → 7221-de323cddf1-lite.chunk.js} +1 -1
  24. package/dist/scripts/7318-3483e60edc-lite.chunk.js +1 -1
  25. package/dist/scripts/7939-70aa3d7b55-lite.chunk.js +1 -0
  26. package/dist/scripts/{8323-dbef982594-lite.chunk.js → 8323-4934589220-lite.chunk.js} +1 -1
  27. package/dist/scripts/{862-8bc17ac62b-lite.chunk.js → 862-59a502c1b0-lite.chunk.js} +1 -1
  28. package/dist/scripts/{8681-b910a0df72-lite.chunk.js → 8681-d55034eb3e-lite.chunk.js} +1 -1
  29. package/dist/scripts/{9428-9a436fe6e2-lite.chunk.js → 9428-cd86676f05-lite.chunk.js} +1 -1
  30. package/dist/scripts/{9478-c2e956f0fb-lite.chunk.js → 9478-54ed57bd4c-lite.chunk.js} +2 -2
  31. package/dist/scripts/bundle-eac69cac9a.min.js +2 -0
  32. package/jest.config.js +11 -11
  33. package/package.json +62 -62
  34. package/typings/libs/CVEvents.d.ts +12 -12
  35. package/typings/libs/CVLanguages.d.ts +24 -24
  36. package/typings/libs/backbone.validation.d.ts +99 -99
  37. package/typings/libs/cloneDeep.d.ts +4 -4
  38. package/typings/libs/cookiesjs.d.ts +25 -25
  39. package/typings/libs/draft-convert.d.ts +3 -3
  40. package/typings/libs/google-api.d.ts +93 -93
  41. package/typings/libs/intersection-observer.d.ts +82 -82
  42. package/typings/libs/microsoft-teams.d.ts +2 -2
  43. package/typings/libs/react-table-config.d.ts +138 -138
  44. package/typings/libs/trackjs.d.ts +2 -2
  45. package/typings/libs/videojs-contrib-quality-levels.d.ts +28 -28
  46. package/typings/utils/imports.d.ts +13 -13
  47. package/dist/scripts/2272-90dc43b966-lite.chunk.js +0 -1
  48. package/dist/scripts/3533-fd7c9a71d9-lite.chunk.js +0 -1
  49. package/dist/scripts/4632-fd1d044549-lite.chunk.js +0 -1
  50. package/dist/scripts/6204-02c345a991-lite.chunk.js +0 -1
  51. package/dist/scripts/6285-4126715f0a-lite.chunk.js +0 -1
  52. package/dist/scripts/6825-6fb3ef7569-lite.chunk.js +0 -2
  53. package/dist/scripts/7338-01aaacd827-lite.chunk.js +0 -1
  54. package/dist/scripts/7818-1463edc3d0-lite.chunk.js +0 -1
  55. package/dist/scripts/bundle-5760806ecd.min.js +0 -2
  56. /package/dist/css/{7818-lite-e7bdc675ac.chunk.css → 6381-lite-e7bdc675ac.chunk.css} +0 -0
  57. /package/dist/scripts/{1181-a49607579e-lite.chunk.js → 1181-7458474570-lite.chunk.js} +0 -0
  58. /package/dist/scripts/{1200-9877a7ee56-lite.chunk.js.LICENSE.txt → 1200-6a89c2db3a-lite.chunk.js.LICENSE.txt} +0 -0
  59. /package/dist/scripts/{1301-ddd8da2bb1-lite.chunk.js → 1301-038e62a24b-lite.chunk.js} +0 -0
  60. /package/dist/scripts/{1324-3b9ff8b09b-lite.chunk.js → 1324-6b6f9dc959-lite.chunk.js} +0 -0
  61. /package/dist/scripts/{1341-f85c00256c-lite.chunk.js → 1341-a23e890814-lite.chunk.js} +0 -0
  62. /package/dist/scripts/{1351-f69a47758a-lite.chunk.js → 1351-e48f564f4c-lite.chunk.js} +0 -0
  63. /package/dist/scripts/{1518-f247316051-lite.chunk.js → 1518-e638c52346-lite.chunk.js} +0 -0
  64. /package/dist/scripts/{1592-cf0f982494-lite.chunk.js.LICENSE.txt → 1592-fbec415025-lite.chunk.js.LICENSE.txt} +0 -0
  65. /package/dist/scripts/{1672-cdf3a9a034-lite.chunk.js.LICENSE.txt → 1672-50c8debade-lite.chunk.js.LICENSE.txt} +0 -0
  66. /package/dist/scripts/{1725-149189d1d7-lite.chunk.js → 1725-37c76bc83b-lite.chunk.js} +0 -0
  67. /package/dist/scripts/{1766-e65a5c7a6b-lite.chunk.js → 1766-d111dca804-lite.chunk.js} +0 -0
  68. /package/dist/scripts/{1820-345bda9a6f-lite.chunk.js → 1820-156a2f5391-lite.chunk.js} +0 -0
  69. /package/dist/scripts/{189-daaba5ce15-lite.chunk.js → 189-45e4b50c90-lite.chunk.js} +0 -0
  70. /package/dist/scripts/{1891-66ab2f3ee8-lite.chunk.js → 1891-6d6a9e64ec-lite.chunk.js} +0 -0
  71. /package/dist/scripts/{1924-4b80915a85-lite.chunk.js → 1924-27db747ee4-lite.chunk.js} +0 -0
  72. /package/dist/scripts/{2097-f9b13023a1-lite.chunk.js.LICENSE.txt → 1976-c75baa71eb-lite.chunk.js.LICENSE.txt} +0 -0
  73. /package/dist/scripts/{3645-46860b112f-lite.chunk.js.LICENSE.txt → 2097-5b2064a2de-lite.chunk.js.LICENSE.txt} +0 -0
  74. /package/dist/scripts/{2229-ca15880387-lite.chunk.js → 2229-fd3d4d2908-lite.chunk.js} +0 -0
  75. /package/dist/scripts/{227-59850afce4-lite.chunk.js → 227-dd52f8f742-lite.chunk.js} +0 -0
  76. /package/dist/scripts/{2279-c450fff61a-lite.chunk.js → 2279-ccc2a79f5b-lite.chunk.js} +0 -0
  77. /package/dist/scripts/{2452-486a1274d5-lite.chunk.js → 2452-7790633d59-lite.chunk.js} +0 -0
  78. /package/dist/scripts/{2512-104774fab9-lite.chunk.js → 2512-a8d4c192e9-lite.chunk.js} +0 -0
  79. /package/dist/scripts/{2608-b4e60f73a3-lite.chunk.js → 2608-7602efd51b-lite.chunk.js} +0 -0
  80. /package/dist/scripts/{2883-469869d36d-lite.chunk.js → 2883-2f0c5e5750-lite.chunk.js} +0 -0
  81. /package/dist/scripts/{2966-5e37b17d4d-lite.chunk.js → 2966-0c49e10e6c-lite.chunk.js} +0 -0
  82. /package/dist/scripts/{3007-500410ac05-lite.chunk.js → 3007-8bd8fa2d39-lite.chunk.js} +0 -0
  83. /package/dist/scripts/{3020-a86c397bf9-lite.chunk.js → 3020-a6640c405e-lite.chunk.js} +0 -0
  84. /package/dist/scripts/{3108-4f06a2697e-lite.chunk.js → 3108-e908e3d0b6-lite.chunk.js} +0 -0
  85. /package/dist/scripts/{3135-bd827bdc99-lite.chunk.js → 3135-fef64a55b2-lite.chunk.js} +0 -0
  86. /package/dist/scripts/{3171-344b4d7c38-lite.chunk.js → 3171-55ee5b20b2-lite.chunk.js} +0 -0
  87. /package/dist/scripts/{3200-c533d42a45-lite.chunk.js → 3200-09251b177e-lite.chunk.js} +0 -0
  88. /package/dist/scripts/{3216-f1c5ee07cb-lite.chunk.js → 3216-8217ac9cd1-lite.chunk.js} +0 -0
  89. /package/dist/scripts/{3285-b1fb6f6e84-lite.chunk.js → 3285-77c88377ad-lite.chunk.js} +0 -0
  90. /package/dist/scripts/{3468-c174c68fc8-lite.chunk.js → 3468-44e40ddbee-lite.chunk.js} +0 -0
  91. /package/dist/scripts/{3667-4c841df29a-lite.chunk.js.LICENSE.txt → 3645-7b001dbb07-lite.chunk.js.LICENSE.txt} +0 -0
  92. /package/dist/scripts/{5622-6d7a8a4f10-lite.chunk.js.LICENSE.txt → 3667-f0384d124f-lite.chunk.js.LICENSE.txt} +0 -0
  93. /package/dist/scripts/{3754-8fa54c697c-lite.chunk.js → 3754-e7441bc6b1-lite.chunk.js} +0 -0
  94. /package/dist/scripts/{3787-717801553f-lite.chunk.js → 3787-ae769c8aab-lite.chunk.js} +0 -0
  95. /package/dist/scripts/{389-17db049de5-lite.chunk.js → 389-884dd437ea-lite.chunk.js} +0 -0
  96. /package/dist/scripts/{3952-2069c6f558-lite.chunk.js → 3952-facba08ed6-lite.chunk.js} +0 -0
  97. /package/dist/scripts/{4113-6883ae9f75-lite.chunk.js → 4113-4297cbc477-lite.chunk.js} +0 -0
  98. /package/dist/scripts/{4182-5d02d8b7fe-lite.chunk.js → 4182-8e55433ee6-lite.chunk.js} +0 -0
  99. /package/dist/scripts/{4332-1c9c4a94b6-lite.chunk.js → 4332-7717ffe8b8-lite.chunk.js} +0 -0
  100. /package/dist/scripts/{4380-5e4b479ec8-lite.chunk.js → 4380-25ddeb26ad-lite.chunk.js} +0 -0
  101. /package/dist/scripts/{4541-f194b26fa5-lite.chunk.js → 4541-f00a2a6ad2-lite.chunk.js} +0 -0
  102. /package/dist/scripts/{455-3852432f2c-lite.chunk.js → 455-2014a0ee45-lite.chunk.js} +0 -0
  103. /package/dist/scripts/{4690-1b322998c5-lite.chunk.js → 4690-686dc871cf-lite.chunk.js} +0 -0
  104. /package/dist/scripts/{482-db8b006570-lite.chunk.js → 482-4dcd1126a2-lite.chunk.js} +0 -0
  105. /package/dist/scripts/{4893-4e4125e58c-lite.chunk.js → 4893-4a1bb6f0a1-lite.chunk.js} +0 -0
  106. /package/dist/scripts/{4898-a867d3f212-lite.chunk.js → 4898-30175e8513-lite.chunk.js} +0 -0
  107. /package/dist/scripts/{5143-23d3632f9e-lite.chunk.js → 5143-cb0de0a629-lite.chunk.js} +0 -0
  108. /package/dist/scripts/{5347-68f0bb6f28-lite.chunk.js → 5347-6db9c6380f-lite.chunk.js} +0 -0
  109. /package/dist/scripts/{5606-3fc37aa573-lite.chunk.js → 5606-0bc69e3f55-lite.chunk.js} +0 -0
  110. /package/dist/scripts/{6736-fcc416a392-lite.chunk.js.LICENSE.txt → 5622-2c1ba91057-lite.chunk.js.LICENSE.txt} +0 -0
  111. /package/dist/scripts/{5877-296f1ab445-lite.chunk.js → 5877-55be7736ed-lite.chunk.js} +0 -0
  112. /package/dist/scripts/{5914-f3ab2a7a44-lite.chunk.js → 5914-f79b26ae07-lite.chunk.js} +0 -0
  113. /package/dist/scripts/{5929-2b4ac12ea7-lite.chunk.js → 5929-b529690f9b-lite.chunk.js} +0 -0
  114. /package/dist/scripts/{5940-0c60ea404a-lite.chunk.js → 5940-65a35dbbc9-lite.chunk.js} +0 -0
  115. /package/dist/scripts/{5974-446e64b8c7-lite.chunk.js → 5974-ca578c0bef-lite.chunk.js} +0 -0
  116. /package/dist/scripts/{6001-acf5bbb565-lite.chunk.js → 6001-34850587e9-lite.chunk.js} +0 -0
  117. /package/dist/scripts/{6113-5ed0a4082c-lite.chunk.js → 6113-aeba5a379a-lite.chunk.js} +0 -0
  118. /package/dist/scripts/{614-929649208c-lite.chunk.js → 614-ca84a9ab7b-lite.chunk.js} +0 -0
  119. /package/dist/scripts/{6158-37ae21245e-lite.chunk.js → 6158-f19e8306aa-lite.chunk.js} +0 -0
  120. /package/dist/scripts/{6186-2d2b24c7bd-lite.chunk.js → 6186-31d0d84aa2-lite.chunk.js} +0 -0
  121. /package/dist/scripts/{6274-0cc8c6d18a-lite.chunk.js → 6274-696f3554c8-lite.chunk.js} +0 -0
  122. /package/dist/scripts/{6290-1f29f4a29a-lite.chunk.js → 6290-85ab8bb383-lite.chunk.js} +0 -0
  123. /package/dist/scripts/{6302-508f3631e4-lite.chunk.js → 6302-c7e8411d7e-lite.chunk.js} +0 -0
  124. /package/dist/scripts/{6325-ec5ce1bb36-lite.chunk.js → 6325-021b3eb470-lite.chunk.js} +0 -0
  125. /package/dist/scripts/{6368-f405248f28-lite.chunk.js → 6368-2856c1f08a-lite.chunk.js} +0 -0
  126. /package/dist/scripts/{6370-c7580fe700-lite.chunk.js → 6370-7c4683f6a7-lite.chunk.js} +0 -0
  127. /package/dist/scripts/{6427-4e2c07fbf4-lite.chunk.js → 6427-06f42f7c39-lite.chunk.js} +0 -0
  128. /package/dist/scripts/{6450-40522dbebd-lite.chunk.js → 6450-e6712cdbf2-lite.chunk.js} +0 -0
  129. /package/dist/scripts/{6465-bdacf40f70-lite.chunk.js → 6465-2abd3029e9-lite.chunk.js} +0 -0
  130. /package/dist/scripts/{6477-1af2eff1c8-lite.chunk.js → 6477-aaa1a15c16-lite.chunk.js} +0 -0
  131. /package/dist/scripts/{6480-494cf7486f-lite.chunk.js → 6480-f6992f0d69-lite.chunk.js} +0 -0
  132. /package/dist/scripts/{6493-6fe904db3f-lite.chunk.js → 6493-d6d417c652-lite.chunk.js} +0 -0
  133. /package/dist/scripts/{6604-974b54d52d-lite.chunk.js → 6604-3d22ae919a-lite.chunk.js} +0 -0
  134. /package/dist/scripts/{6725-cb3aa9156c-lite.chunk.js → 6725-fede9c3e66-lite.chunk.js} +0 -0
  135. /package/dist/scripts/{6825-6fb3ef7569-lite.chunk.js.LICENSE.txt → 6736-3f5c69bde8-lite.chunk.js.LICENSE.txt} +0 -0
  136. /package/dist/scripts/{6821-f3accffe10-lite.chunk.js → 6821-68dc55c20a-lite.chunk.js} +0 -0
  137. /package/dist/scripts/{6873-583b864180-lite.chunk.js → 6873-c9698cdac7-lite.chunk.js} +0 -0
  138. /package/dist/scripts/{6884-3643f0b39a-lite.chunk.js → 6884-c983c13f79-lite.chunk.js} +0 -0
  139. /package/dist/scripts/{7045-5fd0615e0c-lite.chunk.js → 7045-82600d820b-lite.chunk.js} +0 -0
  140. /package/dist/scripts/{7056-e2276e17b0-lite.chunk.js → 7056-2b36668764-lite.chunk.js} +0 -0
  141. /package/dist/scripts/{7115-fc2ee52102-lite.chunk.js → 7115-ec16a77eaa-lite.chunk.js} +0 -0
  142. /package/dist/scripts/{7128-49a65ce567-lite.chunk.js → 7128-f63b7440f2-lite.chunk.js} +0 -0
  143. /package/dist/scripts/{714-4959b01e01-lite.chunk.js → 714-b0e9ada45d-lite.chunk.js} +0 -0
  144. /package/dist/scripts/{7153-60c480f405-lite.chunk.js → 7153-0d625cfcd1-lite.chunk.js} +0 -0
  145. /package/dist/scripts/{7172-f75969c7a6-lite.chunk.js → 7172-9e41478825-lite.chunk.js} +0 -0
  146. /package/dist/scripts/{7178-86872f0c66-lite.chunk.js → 7178-317b92c166-lite.chunk.js} +0 -0
  147. /package/dist/scripts/{7201-a2506ef649-lite.chunk.js → 7201-e88a5b4e34-lite.chunk.js} +0 -0
  148. /package/dist/scripts/{7221-6f736071b0-lite.chunk.js.LICENSE.txt → 7221-de323cddf1-lite.chunk.js.LICENSE.txt} +0 -0
  149. /package/dist/scripts/{7506-5f5822c223-lite.chunk.js → 7506-ae381b0f4a-lite.chunk.js} +0 -0
  150. /package/dist/scripts/{7510-04f9925b31-lite.chunk.js → 7510-f8bfdcaae8-lite.chunk.js} +0 -0
  151. /package/dist/scripts/{7708-a41a668688-lite.chunk.js → 7708-b8c7b03f5a-lite.chunk.js} +0 -0
  152. /package/dist/scripts/{7767-aa7c04e92b-lite.chunk.js → 7767-d77cbefe9d-lite.chunk.js} +0 -0
  153. /package/dist/scripts/{7855-d2fccb4828-lite.chunk.js → 7855-4576f031b3-lite.chunk.js} +0 -0
  154. /package/dist/scripts/{7925-592a86ae68-lite.chunk.js → 7925-b905e7accb-lite.chunk.js} +0 -0
  155. /package/dist/scripts/{7954-fcef687dda-lite.chunk.js → 7954-ef9ea53f3f-lite.chunk.js} +0 -0
  156. /package/dist/scripts/{7966-6b9c890010-lite.chunk.js → 7966-91aee59e9f-lite.chunk.js} +0 -0
  157. /package/dist/scripts/{8025-be79ad6319-lite.chunk.js → 8025-19a1080300-lite.chunk.js} +0 -0
  158. /package/dist/scripts/{8038-81106fb644-lite.chunk.js → 8038-4b3d6a9201-lite.chunk.js} +0 -0
  159. /package/dist/scripts/{8046-5454db6ce2-lite.chunk.js → 8046-bfe732f968-lite.chunk.js} +0 -0
  160. /package/dist/scripts/{8056-079ad44052-lite.chunk.js → 8056-eb013779e5-lite.chunk.js} +0 -0
  161. /package/dist/scripts/{8114-2731d10a41-lite.chunk.js → 8114-fd83004fee-lite.chunk.js} +0 -0
  162. /package/dist/scripts/{823-d546ce3529-lite.chunk.js → 823-41f9646545-lite.chunk.js} +0 -0
  163. /package/dist/scripts/{8252-3d6aa9f04c-lite.chunk.js → 8252-a75eab0ef5-lite.chunk.js} +0 -0
  164. /package/dist/scripts/{8300-a853d64040-lite.chunk.js → 8300-c9a25e7d05-lite.chunk.js} +0 -0
  165. /package/dist/scripts/{8323-dbef982594-lite.chunk.js.LICENSE.txt → 8323-4934589220-lite.chunk.js.LICENSE.txt} +0 -0
  166. /package/dist/scripts/{8466-6a8853c5e1-lite.chunk.js → 8466-d2bc435426-lite.chunk.js} +0 -0
  167. /package/dist/scripts/{8564-5bd66f3b3a-lite.chunk.js → 8564-07109cac6f-lite.chunk.js} +0 -0
  168. /package/dist/scripts/{862-8bc17ac62b-lite.chunk.js.LICENSE.txt → 862-59a502c1b0-lite.chunk.js.LICENSE.txt} +0 -0
  169. /package/dist/scripts/{8681-b910a0df72-lite.chunk.js.LICENSE.txt → 8681-d55034eb3e-lite.chunk.js.LICENSE.txt} +0 -0
  170. /package/dist/scripts/{8779-af551ee653-lite.chunk.js → 8779-a7a4a5ae60-lite.chunk.js} +0 -0
  171. /package/dist/scripts/{8789-99092c3982-lite.chunk.js → 8789-54fe5b6a66-lite.chunk.js} +0 -0
  172. /package/dist/scripts/{8816-7c252655d7-lite.chunk.js → 8816-d69451ba89-lite.chunk.js} +0 -0
  173. /package/dist/scripts/{8944-a558edd144-lite.chunk.js → 8944-98b6638607-lite.chunk.js} +0 -0
  174. /package/dist/scripts/{8955-1347621729-lite.chunk.js → 8955-9d1c302c16-lite.chunk.js} +0 -0
  175. /package/dist/scripts/{9060-468a11d9fc-lite.chunk.js → 9060-7a480e9b29-lite.chunk.js} +0 -0
  176. /package/dist/scripts/{9133-4a4612ed74-lite.chunk.js → 9133-fa2a7a4d58-lite.chunk.js} +0 -0
  177. /package/dist/scripts/{9150-e9f6fa5c3a-lite.chunk.js → 9150-796e203c3f-lite.chunk.js} +0 -0
  178. /package/dist/scripts/{9226-a03f8ea188-lite.chunk.js → 9226-1e1fe27361-lite.chunk.js} +0 -0
  179. /package/dist/scripts/{9242-236946a839-lite.chunk.js → 9242-1e9f365b16-lite.chunk.js} +0 -0
  180. /package/dist/scripts/{9296-37ae1d156f-lite.chunk.js → 9296-2681226283-lite.chunk.js} +0 -0
  181. /package/dist/scripts/{9428-9a436fe6e2-lite.chunk.js.LICENSE.txt → 9428-cd86676f05-lite.chunk.js.LICENSE.txt} +0 -0
  182. /package/dist/scripts/{9455-12f9f94833-lite.chunk.js → 9455-7961651b8d-lite.chunk.js} +0 -0
  183. /package/dist/scripts/{9478-c2e956f0fb-lite.chunk.js.LICENSE.txt → 9478-54ed57bd4c-lite.chunk.js.LICENSE.txt} +0 -0
  184. /package/dist/scripts/{9483-b2d2f6ec2b-lite.chunk.js → 9483-9fd26dd46b-lite.chunk.js} +0 -0
  185. /package/dist/scripts/{9556-f9115953cc-lite.chunk.js → 9556-b90a89a605-lite.chunk.js} +0 -0
  186. /package/dist/scripts/{9590-e34455c9ee-lite.chunk.js → 9590-abe4e4e0ef-lite.chunk.js} +0 -0
  187. /package/dist/scripts/{9686-cf6f34fead-lite.chunk.js → 9686-18d9908ba6-lite.chunk.js} +0 -0
  188. /package/dist/scripts/{9863-4aae121b7e-lite.chunk.js → 9863-44ee032961-lite.chunk.js} +0 -0
  189. /package/dist/scripts/{9897-8dcae4612b-lite.chunk.js → 9897-c6f41816e8-lite.chunk.js} +0 -0
  190. /package/dist/scripts/{9905-e6ac80a154-lite.chunk.js → 9905-c97398f045-lite.chunk.js} +0 -0
  191. /package/dist/scripts/{9961-701360574b-lite.chunk.js → 9961-45cbc7ccad-lite.chunk.js} +0 -0
  192. /package/dist/scripts/{bundle-5760806ecd.min.js.LICENSE.txt → bundle-eac69cac9a.min.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[7939],{68670:(e,t,n)=>{n.d(t,{p:()=>d});var r=n(1024),a=n.n(r),o=n(92802),l=n(23481),i=n(38365),s=n(83345),c=n(23201),u="shared.changePasswordForm",m=l.T.encloseNamespace(u);function d(e){var t=(0,o.u6)();return a().createElement(o.l0,null,!e.hideCurrentPassword&&a().createElement(i.W,{className:e.inputWidthClass,name:"currentPassword",label:m("currentPassword"),placeholder:m("currentPasswordPlaceholder"),type:"password",autoComplete:"current-password",showRequiredStar:!0}),a().createElement(i.W,{className:e.inputWidthClass,name:"newPassword",label:m("newPassword"),placeholder:m("newPasswordPlaceholder"),type:"password",autoComplete:"new-password",showRequiredStar:!0}),a().createElement(i.W,{className:e.inputWidthClass,name:"confirmPassword",label:m("confirmPassword"),placeholder:m("confirmPasswordPlaceholder"),type:"password",autoComplete:"off",showRequiredStar:!0}),e.showChangeOnNextLogin&&a().createElement(i.W,{id:"changeOnNextLogin",name:"changeOnNextLogin",label:m("changeOnNextLogin"),type:"checkbox",checked:t.values.changeOnNextLogin,checkboxLabelFontWeight:"normal"}),!e.hideButtons&&a().createElement("div",{className:e.buttonContainerClass},!e.hideCancelButton&&!!e.onClickCancel&&a().createElement("button",{type:"button",className:"btn btn-link mr-2 ".concat("lg"===e.buttonSize?"btn-lg":""),onClick:e.onClickCancel},a().createElement(s.x,{namespace:u,phrase:"cancel"})),a().createElement(c.A,{isNew:!1,submitText:e.submitText||m("save"),variant:e.submitVariant,size:e.buttonSize})))}d.defaultProps={submitVariant:"outline-dark",buttonContainerClass:"btn-container d-flex justify-content-end align-items-center",inputWidthClass:"w-100"}},16715:(e,t,n)=>{n.d(t,{U:()=>o});var r=n(5173),a=n(23481).T.encloseNamespace("userManager.validation"),o=function(e){return(0,r.Ry)().shape({newPassword:(0,r.Z_)().required((function(){return a("newPasswordRequired")})).min(e,(function(){return a("newPasswordMinLength",{minLen:e})})).trim().default(""),confirmPassword:(0,r.Z_)().required((function(){return a("confirmPasswordRequired")})).oneOf([(0,r.iH)("newPassword"),null],(function(){return a("passwordsDontMatch")})).trim().default("")})}},23201:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(1024),a=n(92802),o=n(33936),l=n(83345),i=n(2102),s="shared.formButtons";function c(e){var t=(0,a.u6)(),n=(0,o.l)(t);return r.createElement(i.m,{variant:e.variant||"primary",type:"submit",disabled:!n,size:e.size,className:e.className?e.className:"",showSpinner:t.isSubmitting},e.submitText?r.createElement(r.Fragment,null,e.submitText):r.createElement(l.x,{namespace:s,phrase:e.isNew?"create":"save"}))}},38365:(e,t,n)=>{n.d(t,{n:()=>v,W:()=>O});var r=n(1024),a=n(92802),o=n(99910),l=n(1048),i=n(79014),s=n(73814),c=n(36848),u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function m(e){var t=e.label,n=e.checkboxLabelClassName,a=e.checkboxLabelFontWeight,l=e.className,i=u(e,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return r.createElement(o.Form.Group,null,r.createElement("div",{className:"custom-control custom-checkbox ".concat(l)},r.createElement(v,Object.assign({className:"custom-control-input"},i)),r.createElement(o.Form.Label,{className:"custom-control-label cursor-pointer ".concat("normal"===a?"font-weight-normal":""," \n ").concat(n),htmlFor:i.id},t),e.checkboxAppLink&&e.checkboxAppLinkText&&r.createElement(r.Fragment,null,r.createElement("span",null," "),r.createElement(c.F,{appLink:e.checkboxAppLink,className:"info-link"},e.checkboxAppLinkText))))}var d=n(83914),f=n(58130),p=n(83345);function b(e){var t=(0,a.u6)().values[e.fieldName];return"string"!=typeof t?r.createElement(r.Fragment,null):r.createElement("div",{className:"float-right text-muted font-weight-normal"},t.length,"/",e.limit," characters")}const h={revealPassword:"jCfI0",passwordInput:"RBJnf",passwordContainer:"d78lK",passwordContainerDisabled:"asbVo",infoTooltip:"wzyOG"};function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},g="shared.formField";function v(e){var t,n,o=e.children,s=w(e,["children"]),c=(t=r.useState(e.type),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,l,i=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(i.push(r.value),i.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw a}}return i}}(t,n)||function(e,t){if(e){if("string"==typeof e)return y(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)?y(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=c[0],m=c[1],p=i.q.isFunction(o)?function(e){return o(e)}:r.Children.count(o)?o:null;if("password"!==s.type)return r.createElement(a.gN,Object.assign({},l.t.omit(s,["formSize"])),p);var b="position-relative ".concat(h.passwordContainer);return s.className&&(b+=" ".concat(s.className)),s.disabled&&(b+=" ".concat(h.passwordContainerDisabled)),r.createElement("div",{className:b},r.createElement(a.gN,Object.assign({},l.t.omit(s,["formSize","type","className"]),{type:u,className:"".concat(h.passwordInput," border-0 w-100 h-100 outline-none rounded")}),p),"password"===s.type&&r.createElement(d.x,{svgName:"password"===u?f.vn.VisibleOn:f.vn.VisibleOff,className:"svg-container cursor-pointer ".concat(h.revealPassword),onClick:function(){m("password"===u?"text":"password")}}))}function O(e){var t=e.label,n=e.className,i=e.showCharacterCounter,c=e.showRequiredStar,u=e.infoTooltip,y=e.infoTooltipPlacement,O=e.infoText,C=e.formSize,S=e.showOptionalLabel,x=w(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoTooltipPlacement","infoText","formSize","showOptionalLabel"]),N=(0,a.u6)(),E=N.errors,P=N.touched,k=function(){};if("checkbox"===x.type){var j=l.t.omit(e,["formSize"]);return e.disabled&&(j.onChange=k),r.createElement(m,Object.assign({},j))}var F=Object.assign(Object.assign({},x),{className:s.w.getCustomFormControlClassName(E,P,x.name,C,n)});return e.disabled&&(F.onChange=k),r.createElement(o.Form.Group,null,!!t&&r.createElement(o.Form.Label,{htmlFor:x.id,className:"d-flex align-items-center"},t,c&&r.createElement("span",{className:"text-danger"},"*"),u&&r.createElement(d.x,{className:"svg-container text-muted ".concat(h.infoTooltip),svgName:f.vn.Info,title:u,tooltipPlacement:y,tooltipSpanHack:!0}),S&&r.createElement("span",{className:"text-muted"}," ",r.createElement(p.x,{namespace:g,phrase:"optional"})),!!i&&!!x.maxLength&&r.createElement("div",{className:"ml-auto"},r.createElement(b,{fieldName:x.name,limit:x.maxLength}))),r.createElement(v,Object.assign({},F)),!!O&&r.createElement(o.Form.Text,{className:"text-muted"},O),r.createElement(a.Bc,{name:x.name},(function(e){return r.createElement(o.Form.Control.Feedback,{type:"invalid"},e)})))}v.defaultProps={autoComplete:"off"},O.defaultProps={autoComplete:"off",infoTooltipPlacement:"top"}},82644:(e,t,n)=>{n.d(t,{b:()=>u,n:()=>c});var r=n(1024),a=n(92802),o=n(79014),l=n(1048);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function c(e){var t=e.castInitialValues,n=e.castValuesOnSubmit,c=e.initialValues,u=e.onSubmit,m=s(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),d=t&&e.validationSchema?e.validationSchema.cast(function(e){if(!e)return{};var t=l.t.deepClone(e);return function e(n){Object.keys(t).forEach((function(r){t.hasOwnProperty(r)&&(l.t.isObject(n[r])?e(n[r]):null===t[r]&&delete t[r])}))}(t),t}(c)):c,f={allowInitialSubmit:e.allowInitialSubmit};return r.createElement(a.J9,Object.assign({enableReinitialize:!0},m,{initialValues:d,onSubmit:function(t,r){var a=r.setSubmitting,o=r.resetForm,l=r.setFieldError,s=n&&e.validationSchema?e.validationSchema.cast(t):t;u(s,(function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n.reset&&o(),n.errors)for(var r=0,s=Object.entries(n.errors);r<s.length;r++){var c=(e=s[r],t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,l,i=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(i.push(r.value),i.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(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)?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=c[0],m=c[1];l(u,m)}a(!1)}))},initialStatus:f}),o.q.isFunction(e.children)?function(t){return e.children(t)}:r.Children.count(e.children)?e.children:null)}function u(){return(0,a.u6)()}c.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},73814:(e,t,n)=>{n.d(t,{w:()=>a});var r=n(92802),a={getCustomFormControlClassName:function(e,t,n,a,o){var l="form-control";return"sm"===a&&(l+=" form-control-sm"),"lg"===a&&(l+=" form-control-lg"),(0,r.u9)(t,n)&&(0,r.u9)(e,n)&&(l+=" is-invalid"),o&&(l+=" ".concat(o)),l}}},706:(e,t,n)=>{n.d(t,{F:()=>a});var r=n(99940),a={getCustomerSecuritySettings:function(e,t,n){return{url:"{gateway}/v1/customers/".concat(e,"/settings/security"),key:"customers:security:settings",normalize:!1,success:t,error:n}},setCustomerSecuritySettings:function(e,t,n,a){return{url:"{gateway}/v1/customers/".concat(e,"/settings/security"),key:"update:security:settings",invalidationKeys:"customers:security:settings",type:r.k.PUT,normalize:!1,data:t,success:n,error:a}}}}}]);
@@ -1,2 +1,2 @@
1
- /*! For license information please see 8323-dbef982594-lite.chunk.js.LICENSE.txt */
1
+ /*! For license information please see 8323-4934589220-lite.chunk.js.LICENSE.txt */
2
2
  "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[8323],{58703:(e,t,r)=>{r.d(t,{N:()=>U,d:()=>M});var n=r(1024),a=r.n(n),o=r(81886),i=r(2948),l=r(23481),c=r(79352),u=r(92583),s=r(76881),d=r(89476),f=r(38143),p=r(99910),m=r(56050),h=r(36848),v=r(83345),y=r(96728),b=r(24453),g=r(12458);function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var w="userManager.userWizardHeader";function A(e){var t,r,n=(t=(0,i.D)(f.g.BULK_USER_ACTIONS),r=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,l=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,a=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw a}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?k(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],l=a().useContext(y.e),c=l.disableNext,u=l.onClickConfirm;return b.O.getCurrentContext().appLink.action===e.appLinks.bulkActionsStatus.complete.action?a().createElement(h.F,{className:"btn btn-dark ".concat(c?"disabled":""),appLink:e.appLinks.userManager,disabled:c,onClick:e.onFinish},a().createElement(v.x,{namespace:w,phrase:"finish"})):"confirmation"===e.currentStep?a().createElement(p.Button,{className:c?"disabled":"",variant:"dark",onClick:function(){g.I.onClickNext(n,e.currentStep),u()},disabled:c},a().createElement(v.x,{namespace:w,phrase:"confirm"})):"status"===e.currentStep?a().createElement(a().Fragment,null):a().createElement(h.F,{className:"btn btn-dark ".concat(c?"disabled":""),appLink:function(){switch(e.currentStep){case"review-accounts":return e.appLinks.bulkActionsSelectAction;case"select-action":return function(){if(!(null==n?void 0:n.action))return null;switch(n.action){case"delete":return e.appLinks.bulkActionsActionDetails.delete;case"activation":return e.appLinks.bulkActionsActionDetails.activation;case"yearGroupRollover":return e.appLinks.bulkActionsActionDetails.yearGroupRollover;case"changeYearGroup":return e.appLinks.bulkActionsActionDetails.changeYearGroup;case"addToClassroom":return e.appLinks.bulkActionsActionDetails.addToClassroom;case"resetPassword":return e.appLinks.bulkActionsActionDetails.resetPassword;case"resetEmail":return e.appLinks.bulkActionsConfirmation.resetEmail}o.Q.ErrorHelper.throw(new m.H("Missing switch statement case for ".concat(n.action," in BulkUserActionsContinueButton.tsx")))}();case"action-details":return e.appLinks.bulkActionsConfirmation[null==n?void 0:n.subAction];default:return null}}(),onClick:function(){return g.I.onClickNext(n,e.currentStep)},disabled:c},a().createElement(v.x,{namespace:w,phrase:"next"}))}var E=r(49985),S=r(65858),L=r(17291);function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var C="userManager.userWizardBackButtons";function I(e){var t,r,n=(t=(0,i.D)(f.g.BULK_USER_ACTIONS),r=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,l=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,a=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw a}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return x(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)?x(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];return"status"===e.currentStep?a().createElement(a().Fragment,null):a().createElement(h.F,{className:"btn btn-link mr-2",appLink:function(){switch(e.currentStep){case"review-accounts":return e.appLinks.userManager;case"select-action":return e.appLinks.bulkActionsReviewAccounts;case"action-details":return e.appLinks.bulkActionsSelectAction;case"confirmation":return function(){if(!(null==n?void 0:n.action))return null;switch(n.action){case"delete":return e.appLinks.bulkActionsActionDetails.delete;case"activation":return e.appLinks.bulkActionsActionDetails.activation;case"yearGroupRollover":return e.appLinks.bulkActionsActionDetails.yearGroupRollover;case"changeYearGroup":return e.appLinks.bulkActionsActionDetails.changeYearGroup;case"addToClassroom":return e.appLinks.bulkActionsActionDetails.addToClassroom;case"resetPassword":return e.appLinks.bulkActionsActionDetails.resetPassword;case"resetEmail":return e.appLinks.bulkActionsConfirmation.resetEmail}}()}}()},a().createElement(v.x,{namespace:C,phrase:"review-accounts"===e.currentStep?"cancel":"back"}))}function N(){return a().createElement(a().Fragment,null,a().createElement("div",{className:"partial-loading-background mb-2",style:{height:"1.75rem",width:"15rem"}}),a().createElement("div",{className:"partial-loading-background mb-3",style:{height:"1.5rem",width:"12rem"}}),a().createElement("div",{className:"partial-loading-background mb-2",style:{height:"8em",width:"40rem"}}))}const T={wizardContent:"UBwkq"};function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var O="userManager.bulkUserActionsWizardLayout",U="bulk-user-actions-wizard";function M(e){var t,r,n,p=(r=(0,i.D)(f.g.BULK_USER_ACTIONS),n=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,l=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,a=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw a}}return l}}(r,n)||function(e,t){if(e){if("string"==typeof e)return j(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)?j(e,t):void 0}}(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=p[0],h=p[1],v=(0,d.f)();function b(){var t,r;if(m){var n={step:e.currentStep,userCount:null!==(r=null===(t=null==m?void 0:m.userIdMap)||void 0===t?void 0:t.size)&&void 0!==r?r:0},a=g.I.getAnalyticsActionName(m);a&&(n.action=a),E.k.logUserAction(n,{workflowPhase:S.WorkflowPhase.Discard,actionType:S.UserAction.BulkAction,location:S.LocationContext.BulkUserActionsWizard,entity:S.EntityType.User})}}a().useEffect((function(){var t;return(null===(t=null==m?void 0:m.userIdMap)||void 0===t?void 0:t.size)||e.preventRedirect?e.preventNavLock?void 0:(v.lock({id:U,title:l.T.getPhrase(O,"navLockTitle"),text:l.T.getPhrase(O,"navLockBody"),appLinkWhitelist:u.b.getWizardAppLinks(e.appLinks),onConfirmUnlock:function(){b(),h({})}}),function(){v.unlock(U)}):(o.Q.AppLinkHelper.trigger(e.appLinks.userManager,{replace:!0}),void b())}),[]);var k=e.loaded&&!!(null===(t=e.users)||void 0===t?void 0:t.length);return a().createElement(y.D,null,a().createElement("div",{className:"px-3"},a().createElement(L.C,{title:l.T.getPhrase(O,"bulkActions"),currentStep:e.currentStep,hideHeader:e.hideHeader,loaded:e.loaded,continueButton:a().createElement(A,{currentStep:e.currentStep,appLinks:e.appLinks,onFinish:function(){h({})}}),backButton:a().createElement(I,{currentStep:e.currentStep,appLinks:e.appLinks}),breadcrumbs:[{name:l.T.getPhrase(O,"settingsBreadcrumb"),appLink:e.appLinks.settings},{name:l.T.getPhrase(O,e.userType===s.Y.Learner?"studentManager":"staffManager"),appLink:e.appLinks.userManager},{name:l.T.getPhrase(O,"bulkActions"),active:!0}]}),a().createElement("div",{className:"row no-gutters"},a().createElement("div",{className:"col-3"},a().createElement(c.a,{steps:u.b.getSteps(e.userType,e.userCount,e.appLinks,null==m?void 0:m.action),currentStep:e.currentStep,disableAppLinks:!k||e.disableAppLinks})),a().createElement("div",{className:"col-9 ".concat(T.wizardContent)},k?e.children:a().createElement(N,null)))))}},12458:(e,t,r)=>{r.d(t,{I:()=>c});var n=["userIdMap","params","action","subAction","allUsersSelected","allUsersCount","scrollContainer"],a=r(49985),o=r(65858),i=r(1048),l=r(58739),c={getAnalyticsActionName:function(e){if(!(null==e?void 0:e.action))return null;switch(e.action){case"activation":return(null==e?void 0:e.subAction)?"deactivate"===e.subAction?"Deactivate":"Reactivate":"Deactivate / reactivate";case"addToClassroom":return"Add to classroom";case"changeYearGroup":return"Change year group";case"delete":return"Delete user";case"resetEmail":return"Send password reset email";case"resetPassword":return"Reset password";case"yearGroupRollover":return"Annual year group rollover";default:return null}},onClickNext:function(e,t){if(e){var r={userCount:e.userIdMap.size,step:t},l=c.getAnalyticsActionName(e);l&&(r.action=l);var u=i.t.omit(e,n);Object.keys(u).length&&(r.actionData=u),a.k.logUserAction(r,{location:o.LocationContext.BulkUserActionsWizard,workflowPhase:o.WorkflowPhase.Next,actionType:o.UserAction.BulkAction,entity:o.EntityType.User})}},logYearGroupRolloverEntry:function(e){a.k.logUserAction({action:c.getAnalyticsActionName({action:"yearGroupRollover"})},{entity:o.EntityType.User,actionType:o.UserAction.BulkAction,workflowPhase:o.WorkflowPhase.Start,location:e})},getJobStatus:function(e){switch(e){case l.K.Completed:return"Success";case l.K.CompletedWithError:return"Completed with some errors";case l.K.Failed:return"Failed";default:return null}}}},49935:(e,t,r)=>{r.d(t,{Oo:()=>d,b2:()=>f});var n=r(1024),a=r(36848),o=r(5859),i=r(86764),l=r(3747),c=r(83914),u=r(58130),s=function(e){var t=e.breadcrumb,r=t.name,o=t.appLink,i=t.active,l=e.withBackIcon;return n.createElement("li",{className:"breadcrumb-item".concat(i?" active":"")},i?n.createElement("strong",null,r):n.createElement(a.F,{appLink:o},l&&n.createElement(c.x,{svgName:u.vn.ChevronLeft,size:c.S.Small}),n.createElement("span",{className:l?"ml-2":""},r)))},d=function(e){var t=e.breadcrumbs,r=(0,l.a)(i.r.XS),a=null==t?void 0:t.length;return!a||r&&a<2?n.createElement(n.Fragment,null):r?n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},n.createElement(s,{breadcrumb:t[a-2],withBackIcon:!0}))):n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},t.map((function(e,t){return n.createElement(s,{key:t,breadcrumb:e})}))))},f=n.memo((function(e){var t=e.numItems,r=void 0===t?3:t;return(0,l.a)(i.r.XS)?n.createElement("div",{className:"partial-loading-background",style:{height:"1.3125rem",width:"6rem"}}):n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},o.u.getPartialLoadingItems({numItems:r}).map((function(e,t){var r=e.width;return n.createElement("li",{key:t,className:"breadcrumb-item"},n.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:r},dangerouslySetInnerHTML:{__html:"&nbsp"}}))}))))}))},17291:(e,t,r)=>{r.d(t,{C:()=>l});var n=r(1024),a=r.n(n),o=r(96728),i=r(49935);function l(e){var t=a().useContext(o.e).showButtons;return a().createElement("div",{className:"d-flex justify-content-between"},e.hideHeader?a().createElement("div",null):a().createElement("div",null,a().createElement("h1",{className:"h2"},e.title),e.breadcrumbs&&a().createElement("div",{className:"pb-3"},a().createElement(i.Oo,{breadcrumbs:e.breadcrumbs}))),e.loaded&&t&&a().createElement("div",{className:"d-flex align-items-center"},e.backButton,e.continueButton))}},79352:(e,t,r)=>{r.d(t,{a:()=>u});var n=r(1024),a=r.n(n),o=r(23481),i=r(36848),l=o.T.encloseNamespace("shared.wizardStepList");function c(e){var t="",r="";e.isSelected&&(t+=" font-weight-500"),(!e.isSelected&&!e.isCompleted||e.disabled)&&(t+=" text-muted",r+=" text-muted");var n=a().createElement(a().Fragment,null,a().createElement("div",{className:t},e.text),e.subText&&a().createElement("div",{className:"ml-2 pl-1 pt-1 ".concat(r)},e.subText)),o="".concat(e.isSelected?"bg-light-blue":""," px-2 py-1 mb-1 rounded d-inline-block");return a().createElement("li",null,e.isCompleted&&e.appLink?a().createElement(i.F,{appLink:e.appLink,className:o},n):a().createElement("div",{className:o},n))}function u(e){var t=e.steps.reduce((function(t,r,n){return r.id===e.currentStep&&(t=n+1),t}),1);return a().createElement(a().Fragment,null,a().createElement("h2",{className:"h4"},l("stepNumber",{currentStep:t,totalSteps:e.steps.length})),a().createElement("ol",{className:"list-unstyled"},e.steps.map((function(r,n){var o=r.id===e.currentStep,i=t>n+1;return a().createElement(c,{key:r.id,text:r.text,subText:r.subText,isSelected:o,isCompleted:i,appLink:!e.disableAppLinks&&r.appLink,disabled:r.disabled})}))))}},58739:(e,t,r)=>{var n;r.d(t,{K:()=>n}),function(e){e[e.Submitted=0]="Submitted",e[e.Queued=1]="Queued",e[e.Pending=2]="Pending",e[e.InProgress=3]="InProgress",e[e.Completed=4]="Completed",e[e.CompletedWithError=5]="CompletedWithError",e[e.Failed=6]="Failed"}(n||(n={}))},63936:(e,t,r)=>{r.d(t,{K:()=>u});var n=r(1024),a=r(50242),o=r(79014),i=r(45719),l=r(8843);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t,r,u,s,d){var f,p,m=(f=(0,n.useState)(0),p=2,function(e){if(Array.isArray(e))return e}(f)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,l=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,a=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw a}}return l}}(f,p)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}(f,p)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=m[0],v=m[1],y=t,b=(0,i.P)((function(t){if(!e)return null;var r=e(t);return r?r.key:null}),u,s);return(0,l.M)({fetchNextPage:function(){if(t&&e&&b)return v((function(e){return e+1})),y(b.nextCursor)},hasMore:!!(null==b?void 0:b.nextCursor),isFetching:null==b?void 0:b.isFetching,scrollContainer:d}),(0,n.useEffect)((function(){b&&b.shouldInitialFetch&&t&&(y(),v((function(e){return e+1})))}),[null==b?void 0:b.shouldInitialFetch,t]),(0,n.useEffect)((function(){var e,t;if((null==b?void 0:b.statusCode)&&o.q.isFunction(r)){var n=+(null===(t=null===(e=b.statusCode)||void 0===e?void 0:e.toString())||void 0===t?void 0:t.substr(0,1));n!==a.k.ClientError&&n!==a.k.ServerError||r(h,b.statusCode)}}),[null==b?void 0:b.statusCode]),{items:null==b?void 0:b.items,hasMore:!!(null==b?void 0:b.nextCursor),nextCursor:null==b?void 0:b.nextCursor,isFetching:null==b?void 0:b.isFetching,totalItems:null==b?void 0:b.totalItems}}},8843:(e,t,r)=>{r.d(t,{M:()=>i});var n=r(1024),a=r(79014),o=400;function i(e){var t=function(){if(!e.isFetching){if(e.scrollContainer){var t=e.scrollContainer;if(t.getBoundingClientRect().height+t.scrollTop<t.scrollHeight-o)return}else if(window.innerHeight+document.documentElement.scrollTop<document.documentElement.scrollHeight-o)return;e.fetchNextPage()}};(0,n.useEffect)((function(){var r=a.q.throttle(t,200),n=e.scrollContainer||window;return e.hasMore&&n.addEventListener("scroll",r),function(){return n.removeEventListener("scroll",r)}}),[e.hasMore,e.fetchNextPage,e.scrollContainer])}},5859:(e,t,r)=>{function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{u:()=>o});var a={numItems:5,minWidth:50,maxWidth:100},o={getPartialLoadingItems:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=Object.assign(Object.assign({},a),t);return(e=Array(r.numItems),function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(){return{width:"".concat(Math.max(Math.floor(Math.random()*r.maxWidth),r.minWidth),"px")}}))}}},88323:(e,t,r)=>{r.d(t,{h:()=>S});var n=r(20354),a=r(31949),o=r(1024),i=r.n(o),l=r(58566),c=r(81886),u=r(2948),s=r(63936),d=r(89476),f=r(58703),p=r(38143),m=r(89422),h=r(65858),v=r(69217),y=r(49985);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function g(){g=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,a){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),l=new C(a||[]);return n(i,"_invoke",{value:E(e,r,l)}),i}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function f(){}function p(){}function m(){}var h={};c(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(I([])));y&&y!==t&&r.call(y,o)&&(h=y);var k=m.prototype=f.prototype=Object.create(h);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function a(n,o,i,l){var c=s(e[n],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==b(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){a("next",e,i,l)}),(function(e){a("throw",e,i,l)})):t.resolve(d).then((function(e){u.value=e,i(u)}),(function(e){return a("throw",e,i,l)}))}l(c.arg)}var o;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){a(e,r,t,n)}))}return o=o?o.then(n,n):n()}})}function E(e,t,r){var n="suspendedStart";return function(a,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===a)throw o;return{value:void 0,done:!0}}for(r.method=a,r.arg=o;;){var i=r.delegate;if(i){var l=S(i,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var a=s(n,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,d;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function I(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:N}}function N(){return{value:void 0,done:!0}}return p.prototype=m,n(k,"constructor",{value:m,configurable:!0}),n(m,"constructor",{value:p,configurable:!0}),p.displayName=c(m,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,c(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},w(A.prototype),c(A.prototype,i,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,a,o){void 0===o&&(o=Promise);var i=new A(u(t,r,n,a),o);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},w(k),c(k,l,"Generator"),c(k,o,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=I,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return i.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var l=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;x(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:I(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,l=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,a=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw a}}return l}}(e,t)||w(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){if(e){if("string"==typeof e)return A(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(e,t):void 0}}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var E=r(18087),S=function(e){var t,r=(0,E.Y)(e);return function(e){var t,r,a,o=g().mark(U),b=e.appLinks,E=e.getUsersRequest,S=k((0,u.D)(p.g.BULK_USER_ACTIONS),2),L=S[0],x=S[1],C=(0,l.useDispatch)(),I=(0,d.f)(),N=k(i().useState(!0),2),T=N[0],j=N[1],O=i().useRef({keys:null===(t=null==L?void 0:L.userIdMap)||void 0===t?void 0:t.keys(),pages:{}});function U(e,t){var r;return g().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(t-- >0)){n.next=8;break}if(r=e.next().value){n.next=4;break}return n.abrupt("return");case 4:return n.next=6,r;case 6:n.next=0;break;case 8:case"end":return n.stop()}}),o)}function M(e){var t;if(!(null===(t=null==L?void 0:L.userIdMap)||void 0===t?void 0:t.size)||!O.current.keys)return null;if(O.current.pages[e]){var r=O.current.pages[e];return r.length?E(r):null}var n,a=function(e){if(Array.isArray(e))return A(e)}(n=U(O.current.keys,m.K.USER_PAGE_LIMIT))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||w(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();return O.current.pages[e]=a,a.length?E(a):(j(!1),null)}function P(e){var t=M(e);if(t)return n.a.getFetch(C)(t)}var F=(0,s.K)(M,P,null,(function(e){return e}),(function(e){var t;return null===(t=e[e.length-1])||void 0===t?void 0:t.id}),null==L?void 0:L.scrollContainer),_=F.items,B=F.isFetching,D=F.nextCursor,G=(0,v.N)();function R(){var e;return null===(e=null==L?void 0:L.userIdMap)||void 0===e?void 0:e.size}var z=null!==(r=null==_?void 0:_.filter((function(e){return L.userIdMap.has(e.id.toString())})))&&void 0!==r?r:[];return i().useEffect((function(){(null==L?void 0:L.userIdMap)&&!L.userIdMap.size&&setTimeout((function(){I.unlock(f.N),c.Q.AppLinkHelper.trigger(b.userManager,{replace:!0})}),0)}),[null===(a=null==L?void 0:L.userIdMap)||void 0===a?void 0:a.size,B]),{users:z,isFetching:B,removeUser:function(e){L.userIdMap.delete(e.id.toString()),x("allUsersSelected",!1),G(),y.k.logUserAction({id:e.id.toString(),userCount:R()},{location:h.LocationContext.BulkUserActionsWizard,entity:h.EntityType.User,actionType:h.UserAction.Remove})},hasMore:T,fetchNext:function(){return P(D)},count:R(),setAllUserIds:function(e){var t=new Map;e.forEach((function(e){t.set(e,!0)})),x({userIdMap:t,allUsersSelected:!0,allUsersCount:t.size}),O.current.keys=t.keys(),G()}}}({customerId:null===(t=n.a.useBasicFetch(a.N.currentUser()).data)||void 0===t?void 0:t.customerId,userType:e,appLinks:r,getUsersRequest:a.N.usersById})}}}]);
@@ -1,2 +1,2 @@
1
- /*! For license information please see 862-8bc17ac62b-lite.chunk.js.LICENSE.txt */
1
+ /*! For license information please see 862-59a502c1b0-lite.chunk.js.LICENSE.txt */
2
2
  "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[862],{42328:(t,e,r)=>{r.d(e,{w:()=>a});var n=r(1024),o=r.n(n);function i(){return o().createElement("svg",{viewBox:"0 0 24 24"},o().createElement("path",{d:"M11.959 10.641l4.402-4.296a.964.964 0 0 1 1.358 0 .951.951 0 0 1 0 1.35l-4.403 4.297 4.403 4.378a.951.951 0 0 1 0 1.35.964.964 0 0 1-1.358 0l-4.402-4.378-4.32 4.378a.964.964 0 0 1-1.358 0 .951.951 0 0 1 0-1.35l4.32-4.378-4.32-4.362a.951.951 0 0 1 0-1.35.964.964 0 0 1 1.358 0l4.32 4.361z"}))}var a=o().forwardRef((function(t,e){var r=t.onClickClear,n=t.showClearButton,a=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}(t,["onClickClear","showClearButton"]);return o().createElement("div",{className:"position-relative"},o().createElement("input",Object.assign({},a,{ref:e,className:"".concat(t.className," ").concat("aYpO7")})),(!!t.value||n)&&o().createElement("span",{className:"".concat("ygMgF"," position-absolute cursor-pointer text-muted"),role:"button",onClick:r},o().createElement("div",{className:"d-inline-block svg-container md"},o().createElement(i,null))))}))},5419:(t,e,r)=>{r.d(e,{h:()=>Hr});var n,o=r(1024),i=r.n(o),a=r(57900),c=r(83529),l=r(65858),u=r(58130),s=r(11607),f=r(2786),p=r(83914);!function(t){t.AU="au",t.NZ="nz",t.UK="uk",t.US="us"}(n||(n={}));var d=r(83765),h=["uk","gb","gg","im","je","ie"],m={au:n.AU,nz:n.NZ,us:n.US,uk:n.UK,gb:n.UK,gg:n.UK,im:n.UK,je:n.UK,ie:n.UK},y={au:d.M.CvApSoutheast1,uk:d.M.CvEuWest1,us:d.M.CvNaWest1,nz:d.M.CvApSoutheast2},v={getInstanceRegion:function(t){var e=v.getCountryCode(t);return y[e]},getCountryCode:function(t){return m[null==t?void 0:t.toLowerCase()]||n.US},isCountryCodeUK:function(t){return h.includes(t.toLowerCase())},isCountryCodeAU:function(t){return(null==t?void 0:t.toLowerCase())===n.AU},isCountryCodeUS:function(t){return(null==t?void 0:t.toLowerCase())===n.US},isCountryCodeNZ:function(t){return(null==t?void 0:t.toLowerCase())===n.NZ},isSupportedCountryCode:function(t){return Object.keys(m).includes(null==t?void 0:t.toLowerCase())},getLocalizedLocalityPlaceholderPhrase:function(t){if(t)return v.isCountryCodeUK(t)?"E.g. CR0 3RL or 36 Factory Lane":v.isCountryCodeAU(t)||v.isCountryCodeNZ(t)?"E.g. 2212 or Revesby":v.isCountryCodeUS(t)?"E.g. 95826 or Sacramento":void 0},getLocalizedLocalityPlaceholderText:function(t){if(t){var e=v.getLocalizedLocalityPlaceholderPhrase(t);if(e)return e}}},g=r(97395),b={Marketing:{au:"https://www.clickview.com.au",uk:"https://www.clickview.co.uk",nz:"https://www.clickview.co.nz",us:"https://www.clickvieweducation.com"},Support:{au:"https://www.clickviewsupport.com/hc/en-au",uk:"https://www.clickviewsupport.com/hc/en-au#gb",nz:"https://www.clickviewsupport.com/hc/en-au#nz",us:"https://www.clickviewsupport.com/hc/en-au#us"}},w={getMarketingUrlForGeoLocation:function(t){var e=v.getCountryCode(null==t?void 0:t.countryCode);return b.Marketing[e]||b.Marketing.us},getMarketingSalesContactForGeoLocation:function(t){var e=v.getCountryCode(null==t?void 0:t.countryCode),r=this.getMarketingUrlForGeoLocation(t);return t&&e===n.NZ?r+"/contact-us/":r+"/contact-us/trial/"},getFreeResourcesForGeoLocation:function(t){var e=v.getCountryCode(null==t?void 0:t.countryCode);return e===n.NZ&&(e=n.AU),this.getMarketingUrlForGeoLocation({countryCode:e})+"/free-student-resources//"},getTermsAndConditionsLink:function(){return this.getMarketingUrlForGeoLocation(n.US)+"/terms-and-conditions/"},getPrivacyPolicyLink:function(){return this.getMarketingUrlForGeoLocation(n.US)+"/privacy-policy/"},getSupportUrlForGeoLocation:function(t){var e=v.getCountryCode(null==t?void 0:t.countryCode);return b.Support[e]||b.Support.us},getLoginLink:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.email,r=t.customerId,n={redirectUrl:window.location.pathname+window.location.search};return e&&(n.email=e),r&&(n.customerId=r),g._.urlBuilder("/login",n)}};const S={crumb:"Btmx2"};function E(t,e){var r="rounded-circle mx-2 d-inline-block "+S.crumb,n=t===e?"bg-info":"bg-light";return"".concat(r," ").concat(n)}function x(t){return i().createElement("div",{className:"text-center"},t.crumbs.map((function(e){return i().createElement("div",{className:E(t.currentStep,e),key:e})})))}function L(t){return i().createElement("button",{onClick:t.onClick,className:"btn p-0 cursor-pointer d-inline-flex align-items-center"},i().createElement(p.x,{svgName:u.vn.ChevronLeft,size:p.S.Medium}),t.children)}var j=r(98461);function k(t){var e=w.getTermsAndConditionsLink(),r=w.getPrivacyPolicyLink();return i().createElement("span",{className:"text-center text-md mt-2 text-normal"},"By signing up you agree to the",i().createElement("br",null),i().createElement(j.d,{href:e,onClick:t.onClickTermsAndConditions,className:"info-link",newTab:!0},"Terms and Conditions"),"  and  ",i().createElement(j.d,{href:r,onClick:t.onClickPrivacyPolicy,className:"info-link",newTab:!0},"Privacy Policy"))}function O(t){return i().createElement(i().Fragment,null,"Have a ClickView account already?",i().createElement("a",{href:t.link,className:"info-link ml-1",target:"_blank",onClick:t.onClick},"Sign in"))}var C=r(28366);P.defaultProps={showBackButton:!0};var N=["enter-email","find-school"],A=["enter-email","find-school","cant-find-school","add-to-braze","enter-age","request-access"];function P(t){var e=t.currentStep,r=t.previousStep,n=t.hasPreviousStep,o=t.showBackButton,a=t.closeApp,c=t.children;function d(){return["enter-email","find-school","cant-find-school","add-to-braze","enter-age"].includes(e)}function h(){r(),t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.Back,workflowPhase:l.WorkflowPhase.Back})}var m=A.includes(t.currentStep),y=m?"".concat(C.Z.leftHalfLayout," ").concat(C.Z.withBg):C.Z.leftHalfLayout;return i().createElement("div",{className:y},i().createElement("div",{className:"row mx-0 p-3"},i().createElement("div",{className:"col px-0 d-lg-none ".concat(C.Z.popupButton)},n&&d()&&o&&i().createElement(L,{onClick:h})),i().createElement("div",{className:"col col-lg-6 px-0"},i().createElement("div",{className:C.Z.logo},i().createElement("div",{className:"d-none d-lg-block"},m?i().createElement(f.Yo,null):i().createElement(f.$S,null)),i().createElement("div",{className:"d-block d-lg-none"},i().createElement(f.$S,null)))),i().createElement("div",{className:"col col-lg-6 d-flex flex-row justify-content-between px-0"},i().createElement("div",{className:"px-3"},i().createElement("div",{className:"d-none d-lg-block ".concat(C.Z.popupButton)},n&&d()&&o&&i().createElement(L,{onClick:h}))),i().createElement(s.L,{onClick:a,className:C.Z.popupButton},i().createElement(p.x,{svgName:u.vn.Close,size:p.S.Medium})))),i().createElement("div",{className:"row mx-0 flex-grow-1"},m&&i().createElement("div",{className:"col-6 px-0 d-none d-lg-block"},i().createElement("div",{className:"h-100 d-flex align-items-center justify-content-center"},i().createElement("img",{src:t.imageUrls.popupDashboard,className:"w-100 p-4 pb-5"}))),i().createElement("div",{className:"px-4 pt-0 pb-4 ".concat(m?"col-12 col-lg-6":"col-12")},i().createElement("div",{className:"d-flex flex-column h-100"},N.includes(t.currentStep)&&i().createElement("div",{className:"mb-2"},i().createElement(x,{crumbs:N,currentStep:e})),i().createElement("div",{className:"flex-grow-1"},c),i().createElement("div",{className:"text-center"},"select-type"===e&&i().createElement(O,{link:w.getLoginLink(),onClick:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.SignIn})}}),["enter-email","add-to-braze"].includes(e)&&i().createElement(k,{onClickTermsAndConditions:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.TermsAndConditions})},onClickPrivacyPolicy:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.PrivacyPolicy})}}))))))}T.defaultProps={showBackButton:!0};var I,U=["select-type","enter-email","find-school"];function T(t){var e=t.currentStep,r=t.previousStep,n=t.hasPreviousStep,o=t.showBackButton,a=t.children;return i().createElement("div",{className:"d-flex flex-column justify-content-between px-4 py-0 ".concat("jZ_Wp")},i().createElement("div",{className:"mt-3 mb-2"},U.includes(e)&&i().createElement(x,{crumbs:U,currentStep:e})),i().createElement("div",{className:"position-relative mx-auto w-100 ".concat("select-type"===e?"Ye154":["enter-email","find-school","cant-find-school","add-to-braze","enter-age"].includes(e)?"m2kAT":"ollkc")},i().createElement("div",{className:"d-flex flex-row justify-content-center align-items-center mt-2 mb-3"},n&&o&&["enter-email","find-school","cant-find-school","add-to-braze","enter-age","request-access"].includes(e)&&i().createElement(L,{onClick:function(){r(),t.logUserAction({step:e},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.Back,workflowPhase:l.WorkflowPhase.Back})}}),i().createElement("div",{className:"d-flex justify-content-center align-items-center px-2 ".concat("J97w_")},i().createElement(f.$S,null))),a),i().createElement("div",{className:"position-relative mb-4 text-center"},"select-type"===e&&i().createElement(O,{link:w.getLoginLink(),onClick:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.SignIn})}}),["enter-email","find-school","add-to-braze"].includes(e)&&i().createElement(k,{onClickTermsAndConditions:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.TermsAndConditions})},onClickPrivacyPolicy:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.PrivacyPolicy})}})))}function _(t){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(t)}function F(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==_(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===_(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var G,D,R={"cant-find-school":P,"enter-email":P,"find-school":P,"select-type":P,completed:P,"add-to-braze":P,"enter-age":P,"request-access":P},M={"cant-find-school":T,"enter-email":T,"find-school":T,"select-type":T,completed:T,"add-to-braze":T,"enter-age":T,"request-access":T},K=(F(I={},c.c.FullPage,M),F(I,c.c.Popup,R),I),z={getLayouts:function(t){return K[t]}};function q(t,e){return e?"".concat(t," ").concat(e):t}!function(t){t.Unavailable="unavailable",t.Expired="expired",t.Active="active",t.NotRequired="not-required",t.Available="available",t.Unsupported="unsupported",t.UserAutoJoinAllowed="user-auto-join-allowed",t.UserJoinApprovalRequired="user-join-approval-required"}(G||(G={})),function(t){t.InvalidEmail="invalid-email"}(D||(D={}));var B=function(t){return i().createElement("h1",{className:q("text-center mb-2 h4",t.className)},t.children)},Y=function(t){return i().createElement("div",{className:q("text-center text-sm px-2 px-lg-4",t.className)},t.children)},$=function(t){return i().createElement("p",{className:q("",t.className)},t.children)};function W(t){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},W(t)}function V(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==W(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==W(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===W(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function H(t){var e,r=(V(e={},G.Available,t.imageUrls.statusImages.available),V(e,G.Active,t.imageUrls.statusImages.active),V(e,G.Expired,t.imageUrls.statusImages.expired),V(e,G.NotRequired,t.imageUrls.statusImages.notRequired),V(e,G.Unavailable,t.imageUrls.statusImages.unavailable),V(e,G.Unsupported,t.imageUrls.statusImages.unsupported),V(e,G.UserAutoJoinAllowed,t.imageUrls.statusImages.notRequired),V(e,G.UserJoinApprovalRequired,t.imageUrls.statusImages.notRequired),e);return i().createElement("div",{className:"d-flex justify-content-center my-4 px-2 px-lg-4"},i().createElement("img",{src:r[t.trialStatus],className:"w-100 h-auto"}))}var Z="young-student",J=r(99940);function X(t){return X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},X(t)}function Q(t){var e="function"==typeof Map?new Map:void 0;return Q=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return tt(t,arguments,nt(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),rt(n,t)},Q(t)}function tt(t,e,r){return tt=et()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&rt(o,r.prototype),o},tt.apply(null,arguments)}function et(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function rt(t,e){return rt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},rt(t,e)}function nt(t){return nt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},nt(t)}var ot=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&rt(t,e)}(i,t);var e,r,n,o=(r=i,n=et(),function(){var t,e=nt(r);if(n){var o=nt(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===X(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function 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=o.call(this,r)).body=t,e}return e=i,Object.defineProperty(e,"prototype",{writable:!1}),e}(Q(Error));function it(t){return it="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},it(t)}function at(){at=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function 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 i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new j(o||[]);return n(a,"_invoke",{value:S(t,r,c)}),a}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 d(){}function h(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=h.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,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==it(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=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,E(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 i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(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(x,this),this.reset(!0)}function k(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=l(h,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(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 a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),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 ct=function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{l(n.next(t))}catch(t){i(t)}}function c(t){try{l(n.throw(t))}catch(t){i(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(a,c)}l((n=n.apply(t,e||[])).next())}))};function lt(t){var e={method:J.k.GET,headers:{"Content-type":"application/json"}};t.method&&(e=Object.assign(Object.assign({},e),{method:t.method})),t.init&&(e=Object.assign(Object.assign({},e),t.init));var r,n,o,i=t.url;return e.method===J.k.GET&&t.data?(r=i,n=t.data,o=r,Object.keys(n).forEach((function(t,e){n[t]&&(o+=0===e?"?":"&",o+="".concat(t,"=").concat(encodeURIComponent(n[t])))})),i=o):t.data&&(e=Object.assign(Object.assign({},e),{body:JSON.stringify(t.data)})),{init:e,url:i}}var ut={asyncFetch:function(t){return ct(this,void 0,void 0,at().mark((function e(){var r,n,o;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=lt(t),e.next=3,fetch(r.url,r.init);case 3:if((n=e.sent).ok){e.next=9;break}return e.next=7,n.json();case 7:throw o=e.sent,new ot(o);case 9:if(204!==n.status){e.next=11;break}return e.abrupt("return");case 11:return e.next=13,n.json();case 13:return e.abrupt("return",e.sent);case 14:case"end":return e.stop()}}),e)})))},asyncFetchPlain:function(t){return ct(this,void 0,void 0,at().mark((function e(){var r,n;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=lt(t),e.next=3,fetch(r.url,r.init);case 3:if((n=e.sent).ok){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,n.text();case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e)})))},fetch:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){var e=lt(t);return fetch(e.url,e.init).then((function(t){if(204!==t.status)return t.json()})).then((function(e){return t.success&&t.success(e),e})).catch((function(e){return t.error&&t.error(),e})).finally((function(){t.always&&t.always()}))}))},st=r(84789),ft=function(t,e){if(t.productName!==st.X.Lite)return Promise.reject();var r={email:e.email};return ut.asyncFetch({url:t.userStatus,data:r})},pt=function(t,e,r,n,o){var i=t.prospectStatus(e.prospectId);i=g._.urlBuilder(i,{email:e.email}),ut.fetch({url:i,success:r,error:n,always:o})},dt=function(t,e){var r={prospectId:e.prospectId,firstName:"Trial",surname:"User",email:e.email,userType:e.userType,accessPolicy:e.accessPolicy,appLink:null==e?void 0:e.appLink};return ut.asyncFetch({url:t.createTrial,method:J.k.POST,data:r})},ht=function(t,e,r){if(t.productName!==st.X.Lite)return Promise.reject();var n={email:r.email,appLink:null==r?void 0:r.appLink};return ut.asyncFetch({url:t.resendTrialEmail(e),method:J.k.POST,data:n})},mt=function(t,e){var r=t.productName===st.X.Auth?t.joinRequest:t.joinRequest(e.customerId),n=t.productName===st.X.Auth?e:{email:e.email};return ut.asyncFetch({url:r,method:J.k.POST,data:n})},yt=function(t,e){return t.productName!==st.X.Lite?Promise.reject():ut.asyncFetch({url:t.autoJoin,method:J.k.POST,data:e})};function vt(t){return vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vt(t)}function gt(){gt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function 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 i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new j(o||[]);return n(a,"_invoke",{value:S(t,r,c)}),a}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 d(){}function h(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=h.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,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==vt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=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,E(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 i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(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(x,this),this.reset(!0)}function k(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=l(h,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(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 a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),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 bt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.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&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return wt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?wt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var St;function Et(t){var e=(null==t?void 0:t.previousStepIds)&&"find-school"===t.previousStepIds[t.previousStepIds.length-1],r=(null==t?void 0:t.schoolName)||"Your school";return i().createElement(Y,{className:"mb-3"},e?i().createElement(i().Fragment,null,i().createElement(B,null,r,i().createElement("br",null),"already has ClickView 🎉"),i().createElement($,{className:"mt-3"},"If your school has SSO ",i().createElement("a",{href:w.getLoginLink({email:t.email,customerId:t.customerId}),className:"info-link"},"click here to sign in.")),i().createElement($,null,"Otherwise please contact your school admin for access.")):i().createElement(i().Fragment,null,i().createElement(B,null,"Good News!"),i().createElement($,null,"An account already exists for:",i().createElement("br",null)," ",i().createElement("strong",null,t.email)),i().createElement($,null,i().createElement("a",{href:w.getLoginLink({email:t.email}),className:"btn btn-dark btn-lg w-100"},"Sign into ClickView"))),i().createElement($,null,"Need Help? ",i().createElement("a",{href:w.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link",target:"_blank"},"Contact our Help Centre.")))}function xt(t){return xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xt(t)}function Lt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==xt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==xt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===xt(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var jt=(Lt(St={},G.Available,(function(t){var e=bt(i().useState(0),2),r=e[0],n=e[1],o=bt(i().useState(!1),2),a=o[0],c=o[1];if(null==t?void 0:t.email)return i().createElement(Y,null,i().createElement(B,null,"Success!"),i().createElement($,null,"An email has been sent to ",i().createElement("strong",null,t.email),". Please check your email for further instructions to complete the sign up process."),!!t.userId&&i().createElement(i().Fragment,null,r<1?i().createElement($,null,"Didn't receive an email?  ",i().createElement("button",{onClick:function(e){return o=this,i=void 0,a=void 0,u=gt().mark((function o(){return gt().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return null==e||e.preventDefault(),o.prev=1,o.next=4,ht(t.ajaxUrls,t.userId,{email:t.email,appLink:t.pageAppLinkString});case 4:n(r+1),o.next=10;break;case 7:o.prev=7,o.t0=o.catch(1),c(!0);case 10:t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.ResendEmail});case 11:case"end":return o.stop()}}),o,null,[[1,7]])})),new(a||(a=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 a?o:new a((function(t){t(o)}))).then(r,n)}c((u=u.apply(o,i||[])).next())}));var o,i,a,u},className:"btn info-link p-0"},"Resend verification email")):"✅ Email has been resent!",a&&i().createElement($,{className:"mb-0 text-danger"},"❌ There was a problem resending the email. Please try again later or contact our  ",i().createElement("a",{href:w.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link"},"support"))))})),Lt(St,G.Active,Et),Lt(St,G.Expired,(function(t){var e=w.getMarketingSalesContactForGeoLocation(t.geoLocation),r=(null==t?void 0:t.previousStepIds)&&"find-school"===t.previousStepIds[t.previousStepIds.length-1],n=(null==t?void 0:t.schoolName)||"Your school";return i().createElement(Y,null,i().createElement(B,null,r?"".concat(n," trial has expired"):"Your trial has expired"),i().createElement($,null,"Please contact our ",i().createElement("a",{href:e,className:"info-link",target:"_blank"},"ClickView Sales Team")))})),Lt(St,G.NotRequired,Et),Lt(St,G.Unavailable,(function(t){var e=w.getMarketingSalesContactForGeoLocation(t.geoLocation);return i().createElement(Y,null,i().createElement(B,null,"Your school no longer",i().createElement("br",null)," has access to ClickView"),i().createElement($,null,"Please contact our ",i().createElement("a",{href:e,className:"info-link"},"ClickView Sales Team")," for more information."))})),Lt(St,G.Unsupported,(function(){return i().createElement(Y,null,i().createElement(B,{className:"px-2 px-lg-4"},"ClickView isn't currently ",i().createElement("br",null)," available for your school"),i().createElement($,null,"We're working hard to get ClickView ready for more people."))})),Lt(St,G.UserAutoJoinAllowed,Et),Lt(St,G.UserJoinApprovalRequired,Et),St);function kt(t){var e=jt[t.trialStatus];return i().createElement(e,Object.assign({},t))}var Ot,Ct={"trial-status":function(t){return i().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)}),[]),i().createElement(i().Fragment,null,i().createElement(H,{trialStatus:t.trialStatus,imageUrls:t.imageUrls}),i().createElement(kt,Object.assign({},t)))},"added-to-braze":function(t){return i().useEffect((function(){t.logUserAction({},{actionType:l.UserAction.Create,descriptor:l.SignUpDescriptors.TrialRequested,workflowPhase:l.WorkflowPhase.Complete})}),[]),i().createElement(i().Fragment,null,i().createElement(H,{trialStatus:G.Available,imageUrls:t.imageUrls}),i().createElement(Y,{className:"mb-3"},i().createElement(B,null,"Submitted!"),i().createElement($,null,"Thank you for your interest in trialing ClickView. We will be in touch with you as soon as possible.")))},"young-student":function(t){var e=w.getFreeResourcesForGeoLocation(t.geoLocation);return i().useEffect((function(){a.SG.set(Z,!0)}),[]),i().createElement(i().Fragment,null,i().createElement(H,{trialStatus:G.Active,imageUrls:t.imageUrls}),i().createElement(Y,{className:"mb-3"},i().createElement(B,null,"Discover our free content"),i().createElement($,null,"Click the button below to explore our videos"),i().createElement("a",{href:e,className:"btn btn-lg btn-dark w-100",target:"_blank"},"Start watching now")))},"requested-access":function(t){return i().createElement(i().Fragment,null,i().createElement(H,{trialStatus:G.Available,imageUrls:t.imageUrls}),i().createElement(Y,{className:"mb-3"},i().createElement(B,null,"You've requested access!"),i().createElement($,null,"We've sent a request to your ClickView admin. Once your account is ready, you'll receive an email notification with instructions on how to get started with ClickView.")))}},Nt=r(2102),At=r(42328);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 It(){It=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function 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 i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new j(o||[]);return n(a,"_invoke",{value:S(t,r,c)}),a}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 d(){}function h(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=h.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,i,a,c){var l=s(t[n],t,i);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,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=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,E(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 i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(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(x,this),this.reset(!0)}function k(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=l(h,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(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 a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),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 Ut(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.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&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Tt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Tt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _t(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Pt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Pt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Pt(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ft=new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/),Gt=(_t(Ot={},n.AU,"valerie.frizzle@school.edu.au"),_t(Ot,n.UK,"valerie.frizzle@school.gov.uk"),_t(Ot,n.US,"valerie.frizzle@school.gov"),_t(Ot,n.NZ,"valerie.frizzle@school.nz"),Ot);function Dt(t){return Gt[v.getCountryCode(t.countryCode)]||Gt.us}var Rt,Mt=[G.Expired,G.NotRequired,G.Unavailable,G.Unsupported,G.Active];!function(t){t.Staff="staff",t.Learner="learner"}(Rt||(Rt={}));var Kt,zt=r(33003),qt=r.n(zt),Bt=r(63093);function Yt(t){return Yt="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},Yt(t)}function $t(){$t=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function 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 i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new j(o||[]);return n(a,"_invoke",{value:S(t,r,c)}),a}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 d(){}function h(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=h.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,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Yt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=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,E(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 i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(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(x,this),this.reset(!0)}function k(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=l(h,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(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 a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),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 Wt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Yt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Yt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Yt(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Vt={k12:"Primary & Secondary"},Ht=(Wt(Kt={},st.X.Auth,"auth.web"),Wt(Kt,st.X.Lite,"lite.web"),Kt),Zt={getClient:function(t){return e=this,r=void 0,n=void 0,o=$t().mark((function e(){var r,n,o,i,a;return $t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.brazeConfig,n=t.geoLocation,o=t.version,i=r[v.getInstanceRegion(null==n?void 0:n.countryCode)],a=Ht[t.productName],e.abrupt("return",(0,Bt.getInstance)({baseUrl:i.url,apiKey:i.apiKey,productVersion:o,productName:a,enableLogging:!1,automaticallyShowInAppMessages:!1}));case 4:case"end":return e.stop()}}),e)})),new(n||(n=Promise))((function(t,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function c(t){try{l(o.throw(t))}catch(t){i(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(a,c)}l((o=o.apply(e,r||[])).next())}));var e,r,n,o},hashedEmail:function(t){var e=t.trim().toLowerCase();return qt().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},getEventTopic:function(){return"Free Trial Request"},getCustomEventType:function(){return Bt.ProductFormEvent.ProductTrailRequested},getSchoolType:function(t){if(t&&"unknown"!==t.toLowerCase())return Vt[t.toLowerCase()]||t}},Jt=["Teacher","Librarian","Curriculum Coordinator","Digital Technology Coordinator","IT","Head of Department","Head of Subject","Deputy Principal","Principal"],Xt=["Teacher","Librarian","Head of department","Subject lead","Curriculum coordinator","School leadership","District leadership","Academic coach","Instructional technology specialist","Consortium leadership","IT"],Qt={au:Jt,nz:Jt,uk:["Teacher","Librarian","IT/LRC","e-Learning/ICT Coordinator","Head of Key Stage","Head of Department","Subject Lead","Assistant Head Teacher","Deputy Head Teacher","Head Teacher"],us:Xt};function te(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,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.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&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ee(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)?ee(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 ee(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 re="OTHER";function ne(t){var e=t.error,r=t.onChange,n=t.countryCode,o=te(i().useState(""),2),a=o[0],c=o[1],l=te(i().useState(""),2),u=l[0],s=l[1],f=function(t){return Qt[t]||Xt}(n),p=a===re;return i().createElement(i().Fragment,null,i().createElement("div",{className:"mb-2"},i().createElement("select",{id:t.id,name:t.id,className:"form-control form-control-lg ".concat(a.length?"text-dark":"text-secondary"," ").concat(!!e&&"is-invalid"),value:a,placeholder:"Role",onChange:function(t){c(t.target.value),s(""),r(t.target.value===re?"":t.target.value)}},i().createElement("option",{value:"",disabled:!0,className:"text-muted"},"What do you do?"),f.map((function(t,e){return i().createElement("option",{value:t,className:"text-dark",key:e},t)})),i().createElement("option",{value:re,className:"text-dark"},"Other")),!!e&&!p&&i().createElement("div",{className:"invalid-feedback"},e)),p&&i().createElement("div",{className:"mb-3"},i().createElement("input",{className:"form-control form-control-lg ".concat(!!e&&"is-invalid"),type:"text",value:u,placeholder:"What do you do?",autoFocus:!0,onChange:function(t){s(t.target.value),r(t.target.value)}}),!!e&&i().createElement("div",{className:"invalid-feedback"},e)))}function oe(t){return oe="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},oe(t)}function ie(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ae(t){var e,r,n,o,a,c,l,u,s,f=(u=i().useState({fullname:"",jobTitle:"",phone:""}),s=2,function(t){if(Array.isArray(t))return t}(u)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.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&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(u,s)||function(t,e){if(t){if("string"==typeof t)return ie(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ie(t,e):void 0}}(u,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=f[0],d=f[1];function h(t,e){d((function(r){return Object.assign(Object.assign({},r),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==oe(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==oe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===oe(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 i().createElement("div",{className:"text-center"},i().createElement("h1",{className:"text-center h4"},"A little more about you"),i().createElement("p",null,"Please enter your details."),i().createElement("form",{onSubmit:function(e){e.preventDefault(),t.handleSubmitForm(p)}},i().createElement("div",{className:"form-group text-left"},i().createElement("label",{className:"d-block font-weight-bold mb-1",htmlFor:"fullname-input"},"Full name"),i().createElement(At.w,{value:p.fullname,onChange:function(e){e.preventDefault(),h("fullname",e.target.value),t.removeErrorForKey("fullname"),t.removeErrorForKey("submission")},name:"fullname-input",id:"fullname-input",type:"text",className:"form-control form-control-lg ".concat((null===(e=t.errors.fullname)||void 0===e?void 0:e.length)?"is-invalid":""),placeholder:"Enter your name",onClickClear:function(){h("fullname",""),t.removeErrorForKey("fullname"),t.removeErrorForKey("submission")},autoFocus:!0}),t.errors.fullname&&i().createElement("div",{className:"invalid-feedback d-block"},t.errors.fullname)),i().createElement("div",{className:"form-group text-left"},i().createElement("label",{className:"d-block font-weight-bold mb-1",htmlFor:"phone-input"},"Contact number"),i().createElement(At.w,{value:p.phone,onChange:function(e){e.preventDefault(),h("phone",e.target.value.trim()),t.removeErrorForKey("phone"),t.removeErrorForKey("submission")},name:"phone-input",id:"phone-input",type:"tel",className:"form-control form-control-lg ".concat((null===(r=t.errors.phone)||void 0===r?void 0:r.length)?"is-invalid":""),placeholder:"Enter your phone number",onClickClear:function(){h("phone",""),t.removeErrorForKey("phone"),t.removeErrorForKey("submission")}}),t.errors.phone&&i().createElement("div",{className:"invalid-feedback d-block"},t.errors.phone)),i().createElement("div",{className:"form-group text-left"},i().createElement("label",{className:"d-block font-weight-bold mb-1",htmlFor:"jobTitle-select"},"Job title"),i().createElement(ne,{id:"jobTitle-select",countryCode:v.getCountryCode(t.country),onChange:function(e){h("jobTitle",e),t.removeErrorForKey("jobTitle"),t.removeErrorForKey("submission")},error:null===(n=t.errors)||void 0===n?void 0:n.jobTitle})),!!(null===(o=t.errors)||void 0===o?void 0:o.submission)&&i().createElement("div",{className:"form-group invalid-feedback d-block"},t.errors.submission),i().createElement("div",{className:"form-group mb-1"},i().createElement(Nt.m,{className:"btn btn-dark btn-lg w-100",onClick:function(){return t.handleSubmitForm(p)},showSpinner:t.loading,disabled:t.loading||(a=p.fullname,c=p.jobTitle,l=p.phone,!(a.length&&c.length&&l.length&&!Object.keys(t.errors).length))},"Submit"))))}var ce=r(74254);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(){ue=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function 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 i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new j(o||[]);return n(a,"_invoke",{value:S(t,r,c)}),a}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 d(){}function h(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=h.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,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==le(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=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,E(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 i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(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(x,this),this.reset(!0)}function k(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=l(h,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(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 a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),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 se(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,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.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&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return fe(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?fe(t,e):void 0}}(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 fe(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var pe=255,de=/\$+[\w\s]?/,he=/^\+?\d{4,255}$/;function me(t){if(!t)return{firstName:"",surname:""};var e=t.split(" ").filter((function(t){return t.length}));return{firstName:e.shift(),surname:e.join(" ")}}var ye=r(99910),ve=r(28329);function ge(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 be(t){var e,r,n=(e=i().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,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.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&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return ge(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)?ge(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],a=n[1],c=i().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),a(r),void l()}if("ArrowUp"===e.code){e.stopPropagation(),e.preventDefault();var n=o-1;return n<=0&&(n=t.itemCount),a(n),void l()}if("Enter"===e.code&&o>0)return e.stopPropagation(),e.preventDefault(),void t.onSelected(o-1);a(0)},containerRef:c}}function we(t){return we="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},we(t)}function Se(){Se=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function 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 i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new j(o||[]);return n(a,"_invoke",{value:S(t,r,c)}),a}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 d(){}function h(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=h.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,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==we(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=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,E(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 i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(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(x,this),this.reset(!0)}function k(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=l(h,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(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 a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),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 Ee={search:function(t,e,r,n,o){var i={longitude:e.longitude,latitude:e.latitude};e.query&&(i.query=e.query),ut.fetch({url:t.searchProspect,data:i,success:r,error:n,always:o})},create:function(t,e){return r=this,n=void 0,o=void 0,i=Se().mark((function r(){return Se().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",ut.asyncFetch({url:t.createProspect,method:J.k.POST,data:e}));case 1:case"end":return r.stop()}}),r)})),new(o||(o=Promise))((function(t,e){function a(t){try{l(i.next(t))}catch(t){e(t)}}function c(t){try{l(i.throw(t))}catch(t){e(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof o?r:new o((function(t){t(r)}))).then(a,c)}l((i=i.apply(r,n||[])).next())}));var r,n,o,i},getLookups:function(t,e){return ut.asyncFetch({url:t.prospectLookups(e)})}};const xe={baseText:"KL3Q_",inputFocused:"I6wQy",input:"ChY5L",suggestionContainer:"Y78ea",noBottomBorder:"IeYUw",localitySuggestion:"P3aHR",suggestionItem:"magL7",suggestionLoading:"W7rH_",noSuggestion:"XXSnS",selected:"snnHR"};function Le(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,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.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&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return je(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?je(t,e):void 0}}(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 je(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ke(t){var e=t.filteredSchoolsList,r=t.getSchoolName,n=t.onSchoolSuggestionClick,o=t.selectedIndex;return i().createElement(i().Fragment,null,e.map((function(t,e){return i().createElement(s.L,{className:"".concat(xe.suggestionItem," ").concat(o-1===e?xe.selected:""),key:t.id,onClick:function(){return n(t)}},r(t)," ",i().createElement("br",null),i().createElement("small",{className:"text-muted"},function(t){var e=[];return t.city&&e.push(t.city.toLowerCase().split(" ").map((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})).join(" ")),t.province&&e.push(t.province),t.postCode&&e.push(t.postCode),e.join(" ")}(t)))})))}function Oe(t){return i().createElement("div",{className:"info-link ".concat(xe.suggestionItem," ").concat(xe.noSuggestion," ").concat(t.selected?xe.selected:""),onClick:t.handleNoSuggestion},"Can't find your school?")}function Ce(t){var e,r,n=i().useRef(),o=Le(i().useState(!0),2),a=o[0],c=o[1],u=Le(i().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=Le(i().useState(),2),d=p[0],h=p[1],m=(0,ve.N)(s,250),y=be({onSelected:function(t){if(d||t)if(t!==d.length){var e=d[t];e&&k(e)}else C()},itemCount:null!==(e=(null==d?void 0:d.length)+1)&&void 0!==e?e:0}),v=y.selectedIndex,g=y.onKeyDown,b=y.containerRef,w=!!(null===(r=t.data)||void 0===r?void 0:r.prospectId),S=a&&!w,E=!a&&!w&&!(null==d?void 0:d.length),x=(null==d?void 0:d.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),Ee.search(t.ajaxUrls,r,(function(t){return h(t)}),null,(function(){return c(!1)}))}function k(e){f(O(e)),t.setDataProperty("prospectId",e.id),t.setDataProperty("schoolName",e.name),t.setDataProperty("schoolPostCode",e.postCode),t.setDataProperty("schoolType",e.prospectType),t.setDataProperty("province",e.province),t.setDataProperty("city",e.city),t.setDataProperty("country",e.countryCode)}function O(t){return t.name}function C(){t.nextStep({step:"cant-find-school",prospectId:t.data.prospectId,schoolName:s,schoolLocality:t.data.schoolLocality,longitude:t.data.longitude,latitude:t.data.latitude,country:t.data.country,city:t.data.city,province:t.data.province}),t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.CantFindSchool,workflowPhase:l.WorkflowPhase.Next})}i().useEffect((function(){w||(m.length?!w&&m.length>1&&m===s&&j(m):j())}),[m,w]);var N=x||S||E;return i().createElement("div",{className:"form-group position-relative"},i().createElement(At.w,{value:s,onChange:function(t){return L(t.currentTarget.value)},ref:n,className:"form-control form-control-lg ".concat(N?xe.inputFocused:xe.input),type:"text",autoComplete:"off",placeholder:"Select your school below",disabled:t.disabled,autoFocus:!0,onClickClear:function(){L(""),n.current.focus()},onKeyDown:g}),i().createElement("div",{className:"position-absolute w-100"},i().createElement("div",{className:"".concat(xe.suggestionContainer," ").concat(N?"":"d-none"),ref:b},x?i().createElement(ke,{filteredSchoolsList:d,onSchoolSuggestionClick:k,getSchoolName:O,selectedIndex:v}):S&&i().createElement("div",{className:"".concat(xe.suggestionLoading," py-4 d-flex justify-content-center")},i().createElement(ye.Spinner,{animation:"border"})),!S&&(null==d?void 0:d.length)<5&&i().createElement(Oe,{selected:v===d.length+1,handleNoSuggestion:C}))))}var Ne=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,i;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=(i=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;0!=o--;){var a=i[o];if(!t(e[a],r[a]))return!1}return!0}return e!=e&&r!=r};const Ae="__googleMapsScriptId";var Pe;!function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"}(Pe||(Pe={}));class Ie{constructor({apiKey:t,authReferrerPolicy:e,channel:r,client:n,id:o=Ae,language:i,libraries:a=[],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||Ae,this.language=i,this.libraries=a,this.mapIds=c,this.nonce=l,this.region=u,this.retries=s,this.url=f,this.version=p,Ie.instance){if(!Ne(this.options,Ie.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(Ie.instance.options)}`);return Ie.instance}Ie.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?Pe.FAILURE:this.done?Pe.SUCCESS:this.loading?Pe.LOADING:Pe.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 Ue(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,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.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&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Te(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)?Te(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 Te(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 _e(t){return new Ie({apiKey:t.apiKey,version:"weekly",libraries:t.libraries,retries:3})}function Fe(t){var e={apiKey:t.apiKey,libraries:t.libraries||["places"]},r=Ue(i().useState(!1),2),n=r[0],o=r[1],a=Ue(i().useState(_e(e)),2),c=a[0],l=a[1];function u(t,r){c?c.loadCallback((function(e){if(e)return o(!1),void(r&&r(e));o(!0),t&&t()})):l(_e(e))}return i().useEffect((function(){u()}),[]),{loader:c,scriptLoaded:n,onGoogleApiReady:u}}function Ge(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 De(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)?De(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 i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function De(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 Re=function(t){var e,r,n,o,i,a=t.formatted_address,c=Ge(t.address_components);try{for(c.s();!(i=c.n()).done;){var l,u=i.value,s=Ge(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:a,country:n,postalCode:o,city:e,province:r}};function Me(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Ke={1:"geocoderPermissionDenied",2:"geocoderUnavailable",3:"geocoderTimeout"};function ze(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 qe(t){var e,r,n=Fe({apiKey:t.googleApiKey}).scriptLoaded,o=(e=i().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,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.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&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return ze(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)?ze(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=o[0],c=o[1];return i().useEffect((function(){n&&c(new google.maps.places.AutocompleteService)}),[n]),a}function Be(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Ye=r(45157);function $e(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var We="us",Ve="country:placeholder:text";function He(t){var e,r,n=t.apiKey,o=t.geoLocation,c=t.makeRequest,l=void 0===c||c,u=t.template,s=void 0===u?"E.g. [placeholder]":u,f=t.templateKey,p=void 0===f?"[placeholder]":f,d=qe({googleApiKey:n}),h=i().useState((function(){return function(t){var e=v.getLocalizedLocalityPlaceholderText(null==t?void 0:t.countryCode);return e||(a.SG.cacheGet("".concat(Ve,":").concat(null==t?void 0:t.countryCode))||void 0)}(o)})),m=(r=2,function(t){if(Array.isArray(t))return t}(e=h)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.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&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return $e(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$e(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),y=m[0],g=m[1];function b(t,e){a.SG.cacheSet("".concat(Ve,":").concat(e),t,86400),g(t)}return i().useEffect((function(){if(!y&&d&&l){var t=(null==o?void 0:o.countryCode)||We,e={input:String.fromCharCode(96+Ye.Y.getRandomInt(26)),types:["(cities)"],region:t,componentRestrictions:{country:t}};d.getPlacePredictions(e,(function(e,r){return function(t,e,r){if(e===google.maps.places.PlacesServiceStatus.OK&&t){var n=t[Ye.Y.getRandomInt(t.length)].description;b(s.replace(p,n),r)}else b(v.getLocalizedLocalityPlaceholderText(We),r)}(e,r,t)}))}}),[y,d,o,l]),y}function Ze(){return i().createElement("svg",{viewBox:"0 0 24 24"},i().createElement("path",{d:"m12.00559,20.40189c4.60881,0 8.37242,-3.78424 8.37242,-8.40189c0,-4.61764 -3.76361,-8.40187 -8.37242,-8.40187c-4.62002,0 -8.38365,3.78422 -8.38365,8.40187c0,4.61765 3.76364,8.40189 8.38365,8.40189zm0,-1.65557c-3.75235,0 -6.67085,-2.96208 -6.67085,-6.74632c0,-3.7842 2.91851,-6.74625 6.67085,-6.74625c3.74105,0 6.67084,2.96206 6.67084,6.74625c0,3.78424 -2.92978,6.74632 -6.67084,6.74632zm-10.14151,-6.02552l6.01731,0c0.40566,0 0.72118,-0.31536 0.72118,-0.7208c0,-0.40544 -0.31552,-0.7208 -0.72118,-0.7208l-6.01731,0c-0.40566,0 -0.72117,0.31536 -0.72117,0.7208c0,0.40544 0.31551,0.7208 0.72118,0.7208l-0.00001,0zm14.25442,0l6.0174,0c0.40565,0 0.72118,-0.31536 0.72118,-0.7208c0,-0.40544 -0.31553,-0.7208 -0.72118,-0.7208l-6.0174,0c-0.40565,0 -0.72118,0.31536 -0.72118,0.7208c0,0.40544 0.31553,0.7208 0.72118,0.7208zm-4.12417,-4.1221c0.40566,0 0.72118,-0.31534 0.72118,-0.70952l0,-6.02547c0,-0.40544 -0.31552,-0.7208 -0.72118,-0.7208c-0.3944,0 -0.7099,0.31536 -0.7099,0.7208l0,6.02547c0,0.39418 0.31551,0.70952 0.7099,0.70952zm0,14.25838c0.40566,0 0.72118,-0.3154 0.72118,-0.72077l0,-6.02541c0,-0.39425 -0.31552,-0.70965 -0.72118,-0.70965c-0.3944,0 -0.7099,0.3154 -0.7099,0.70965l0,6.02541c0,0.40538 0.31551,0.72077 0.7099,0.72077z"}))}function Je(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,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.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&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Xe(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Xe(t,e):void 0}}(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 Xe(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Qe(t){var e=t.predictions,r=t.getPlaceInfo,n=t.selectedIndex;return i().createElement(i().Fragment,null,e.map((function(t,e){return i().createElement(s.L,{className:"".concat(xe.suggestionItem," ").concat(n-1===e?xe.selected:""),key:t.place_id,onClick:function(){return r(t)}},t.description)})))}function tr(t){var e,r,n,o,a,c,u=i().useRef(),f=Je(i().useState((null===(e=t.data)||void 0===e?void 0:e.schoolLocality)||""),2),p=f[0],d=f[1],h=Je(i().useState(!1),2),m=h[0],y=h[1],v=He({apiKey:t.googleMapsApiKey,geoLocation:t.geoLocation}),g=function(t){var e,r,n=t.search,o=t.makePredicition,a=t.geoLocation,c=qe({googleApiKey:t.apiKey}),l=(0,ve.N)(n,300),u=(e=i().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,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.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&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return Be(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Be(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=u[0],f=u[1];function p(t,e){e===google.maps.places.PlacesServiceStatus.OK&&t?f(t):f(void 0)}return i().useEffect((function(){if(c)if(0!==(null==l?void 0:l.length)&&o){var t=(null==a?void 0:a.countryCode)||"us";c.getPlacePredictions({input:l,componentRestrictions:{country:t},region:t,types:["locality","sublocality","postal_code"]},p)}else f(void 0)}),[l,o,c]),{localityPredicitions:s,getPlaceInfo:function(t,e,r){new google.maps.places.PlacesService(e.current).getDetails({placeId:t.place_id,fields:["geometry","address_components","formatted_address"],region:a.countryCode},(function(t,e){if(e===google.maps.places.PlacesServiceStatus.OK){var n=t.geometry.location.lng(),o=t.geometry.location.lat(),i=Re(t),a=i.locality,c=i.country,l=i.postalCode,u=i.city,s=i.province;r({longitude:n,latitude:o,locality:a,country:c,city:u,postalCode:l,province:s})}}))}}}({search:p,makePredicition:m,geoLocation:t.geoLocation,apiKey:t.googleMapsApiKey}),b=g.localityPredicitions,w=g.getPlaceInfo,S=function(t){var e,r,n=(e=i().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,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.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&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return Me(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Me(t,e):void 0}}(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],a=n[1],c=Fe(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")})),i=Re(o);a(Object.assign(Object.assign({},i),{longitude:n,latitude:r}))}}))}function u(e){var r=Ke[e.code];r||(r="geocoderUnknown"),t.onPositionError("We are unable to access your location. Please try again later.")}return{placeDetails:o,onClickGetCurrentLocation:function(){c((function(){window.navigator.geolocation.getCurrentPosition(l,u)}))}}}({apiKey:t.googleMapsApiKey,onPositionError:function(t){y(!0),P(t)}}),E=S.placeDetails,x=S.onClickGetCurrentLocation,L=window.navigator.geolocation?1:0,j=be({onSelected:function(t){if(b)if(t!==b.length){var e=b[t];e&&T(e)}else _()},itemCount:null!==(r=(null==b?void 0:b.length)+L)&&void 0!==r?r:0}),k=j.selectedIndex,O=j.onKeyDown,C=j.containerRef,N=Je(i().useState(),2),A=N[0],P=N[1];function I(e){var r,n,o;A&&P(void 0),m||y(!0),((null===(r=t.data)||void 0===r?void 0:r.longitude)||(null===(n=t.data)||void 0===n?void 0:n.latitude)||(null===(o=t.data)||void 0===o?void 0:o.schoolLocality))&&t.clearStepGroupData(),d(e)}function U(e){var r=e.longitude,n=e.latitude,o=e.locality,i=e.country,a=e.city,c=e.province;r&&t.setDataProperty("longitude",r),n&&t.setDataProperty("latitude",n),i&&t.setDataProperty("country",i),a&&t.setDataProperty("city",a),c&&t.setDataProperty("province",c),o&&function(e){t.setDataProperty("schoolLocality",e),d(e)}(o)}function T(t){m&&y(!1),w(t,u,U)}function _(e){null==e||e.preventDefault(),y(!1),x(),t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.UseMyLocation})}i().useEffect((function(){U(E)}),[E]);var F,G=(null==b?void 0:b.length)&&!(null===(o=null===(n=t.data)||void 0===n?void 0:n.schoolLocality)||void 0===o?void 0:o.length),D=window.navigator.geolocation&&!(null===(c=null===(a=t.data)||void 0===a?void 0:a.schoolLocality)||void 0===c?void 0:c.length),R=t.labelClassName||"d-block text-center mb-3 font-weight-normal ".concat(xe.baseText);return i().createElement("div",{className:"form-group position-relative"},i().createElement("label",{className:R,htmlFor:"locality-input"},"Postcode or suburb:"),i().createElement(At.w,{type:"text",value:p,onChange:function(t){return I(t.currentTarget.value)},id:"locality-input",className:(F="form-control form-control-lg",G?"".concat(F," ").concat(xe.inputFocused):"".concat(F," ").concat(xe.input)),ref:u,autoComplete:"off",placeholder:v||"Loading...",disabled:t.disabled||!v,autoFocus:null==t?void 0:t.autoFocus,onClickClear:function(){I(""),u.current.focus()},onKeyDown:O}),i().createElement("div",{className:"position-absolute w-100"},!!G&&i().createElement("div",{className:"".concat(xe.suggestionContainer," ").concat(xe.localitySuggestion),ref:C},i().createElement(Qe,{predictions:b,getPlaceInfo:T,selectedIndex:k}),window.navigator.geolocation&&i().createElement(s.L,{className:"".concat(xe.suggestionItem," px-1 ").concat(k-1===b.length?xe.selected:""),onClick:_},i().createElement("div",{className:"btn btn-link info-link btn-with-icon bg-transparent py-0 pr-1"},i().createElement(Ze,null),"Use my current location"))),D&&!G&&i().createElement("div",{className:"d-flex"},i().createElement("button",{onClick:_,className:"btn btn-link info-link bg-white btn-with-icon"},i().createElement(Ze,null),"Use my current location")),!!A&&i().createElement("div",{className:"text-danger p-2"},A)))}var er,rr=r(12238);!function(t){t.FourteenDays="trial_14_v1",t.Freemium="freemium_v1"}(er||(er={}));var nr=function(t){return v.isCountryCodeUS(t)||v.isCountryCodeUK(t)?er.Freemium:er.FourteenDays};function or(t){return or="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},or(t)}function ir(){ir=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function 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 i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new j(o||[]);return n(a,"_invoke",{value:S(t,r,c)}),a}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 d(){}function h(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=h.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,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==or(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=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,E(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 i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(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(x,this),this.reset(!0)}function k(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=l(h,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(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 a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),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 ar=function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{l(n.next(t))}catch(t){i(t)}}function c(t){try{l(n.throw(t))}catch(t){i(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(a,c)}l((n=n.apply(t,e||[])).next())}))};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(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,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.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&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ur(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)?ur(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 ur(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}const sr="R8ZPi",fr="SNEmW";function pr(t){return i().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(sr," ").concat(t.selected?fr:""),onClick:function(){return t.onClick(t.type)}},i().createElement("img",{src:t.imageSrc,className:"rounded-top mx-auto pb-2"}),i().createElement("div",{className:"py-2"},i().createElement("span",{className:"h4"},t.buttonText)))}var dr;!function(t){t.Published="Published",t.Draft="Draft"}(dr||(dr={}));var hr=["Primary","Secondary","K12","Special","TAFE","University"],mr=["Elementary","Middle School","High School","College","Other"],yr={au:hr,nz:hr,uk:["Primary","Secondary","Primary & Secondary","Special","Sixth Form College","FE College","University","Other"],us:mr};function vr(t){return vr="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},vr(t)}function gr(){gr=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function 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 i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new j(o||[]);return n(a,"_invoke",{value:S(t,r,c)}),a}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 d(){}function h(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=h.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,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==vr(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=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,E(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 i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(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(x,this),this.reset(!0)}function k(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=l(h,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(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 a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),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 br(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,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.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&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||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}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wr(t,e){(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 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,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.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&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Er(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)?Er(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 Er(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 xr(t,e,r){return"".concat(t.padStart(4,"0"),"-").concat(e.padStart(2,"0"),"-").concat(r.padStart(2,"0"))}function Lr(t){var e;switch(null===(e=null==t?void 0:t.body)||void 0===e?void 0:e.type){case"user-type-not-supported":return"Students may not request to join schools.";case"join-request-already-pending":return"Your request is awaiting administrator approval.";case"join-request-already-denied":return"Your request has been denied by an administrator.";default:return"Something went wrong."}}function jr(t){return jr="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},jr(t)}function kr(){kr=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function 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 i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new j(o||[]);return n(a,"_invoke",{value:S(t,r,c)}),a}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 d(){}function h(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=h.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,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==jr(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=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,E(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 i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(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(x,this),this.reset(!0)}function k(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=l(h,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(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 a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),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 Or(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Cr={"select-type":function(t){function e(e){t.logUserAction({userType:e},{actionType:l.UserAction.Click,workflowPhase:l.WorkflowPhase.Next,descriptor:e===Rt.Staff?l.SignUpDescriptors.Educator:l.SignUpDescriptors.Student}),e!==Rt.Staff?t.nextStep({step:"enter-age",userType:e}):t.nextStep({step:"enter-email",userType:e})}return i().createElement("div",{className:"text-center"},i().createElement("h1",{className:"h4"},"Access educational videos at your fingertips"),i().createElement("p",null,"Let's get you set up so you can access ClickView."),i().createElement("div",{className:"row"},i().createElement("div",{className:"col-lg-6 mb-3"},i().createElement(pr,{type:Rt.Staff,buttonText:"I'm an educator",imageSrc:t.imageUrls.educator,onClick:e,selected:t.userType===Rt.Staff})),i().createElement("div",{className:"col-lg-6 mb-3"},i().createElement(pr,{type:Rt.Learner,buttonText:"I'm a student",imageSrc:t.imageUrls.student,onClick:e,selected:t.userType===Rt.Learner}))))},"enter-email":function(t){var e,r,n=Ut(i().useState(!1),2),o=n[0],a=n[1],c=Ut(i().useState((null==t?void 0:t.email)||""),2),u=c[0],s=c[1],f=Ut(i().useState(),2),p=f[0],d=f[1],h=(e=t.geoLocation,r=w.getMarketingUrlForGeoLocation(e),"nz"===(null==e?void 0:e.countryCode)?r+"/contact-us/":r+"/contact-us/technical/");function m(e){null==e||e.preventDefault(),function(){var e,r,n,o;e=this,r=void 0,n=void 0,o=It().mark((function e(){var r;return It().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u.length?Ft.test(u)||(d("Please use your school email address."),0):(d("Please enter your school email address."),0)){e.next=2;break}return e.abrupt("return");case 2:return a(!0),d(""),e.prev=4,e.next=7,ft(t.ajaxUrls,{email:u});case 7:r=e.sent,e.next=14;break;case 10:return e.prev=10,e.t0=e.catch(4),d("Something went wrong! Please try again later."),e.abrupt("return");case 14:if(a(!1),r.status!==D.InvalidEmail){e.next=18;break}return d("Please use your school email address."),e.abrupt("return");case 18:if(t.logUserAction({},{actionType:l.UserAction.Click,workflowPhase:l.WorkflowPhase.Next,descriptor:l.SignUpDescriptors.EnterEmail}),!Mt.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,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function c(t){try{l(o.throw(t))}catch(t){i(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(a,c)}l((o=o.apply(e,r||[])).next())}))}()}return i().createElement(i().Fragment,null,i().createElement("div",{className:"text-center"},i().createElement("h1",{className:"h4"},"Let's set up your account"),i().createElement("p",null,"Enter your school email address")),i().createElement("form",{onSubmit:m,noValidate:!0},i().createElement("div",{className:"form-group mb-3"},i().createElement(At.w,{value:u,onChange:function(t){t.preventDefault(),s(t.target.value),d("")},name:"email-input",id:"email-input",type:"email",className:"form-control form-control-lg ".concat(p?"is-invalid":""),placeholder:Dt(t.geoLocation),autoComplete:"false",autoCorrect:"false",autoFocus:!0,onClickClear:function(){return s("")}}),p&&i().createElement(i().Fragment,null,i().createElement("div",{className:"invalid-feedback d-block"},p),i().createElement("small",null,"Having an issue with your email?",i().createElement("a",{href:h,className:"info-link pl-1",target:"_blank",onClick:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.ContactUs})}},"Contact our team")))),i().createElement(Nt.m,{showSpinner:o,className:"btn btn-dark btn-lg mb-3 w-100",disabled:o,onClick:m},"Next")),i().createElement("div",{className:"text-center"},i().createElement(O,{link:w.getLoginLink(),onClick:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.SignIn})}})))},"find-school":function(t){var e,r,n=t.email,o=t.userType,a=lr(i().useState({schoolLocality:t.schoolLocality,country:t.country,longitude:t.longitude,latitude:t.latitude,city:t.city,province:t.province}),2),c=a[0],u=a[1],s=lr(i().useState(),2),f=s[0],p=s[1],d=lr(i().useState(),2),h=d[0],m=d[1],y=lr(i().useState(!1),2),v=y[0],g=y[1],b=lr(i().useState(!1),2),w=b[0],S=b[1],E=lr(i().useState(!1),2),x=E[0],L=E[1],j=function(t){var e=t.loading,r=t.canSubmitForm,n=t.setSubmissionError,o=t.prospectStatus,i=t.userType,a=t.logStepEvent,c=t.nextStep,l=t.data,u=t.productName,s=t.ajaxUrls,f=t.complete,p=t.setLoadingState,d=t.email,h=t.pageAppLinkString,m=t.setProperty;function y(){return ar(this,void 0,void 0,ir().mark((function t(){return ir().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,yt(s,{prospectId:l.prospectId,email:d});case 3:f(Object.assign({completionStep:"trial-status",trialCreated:!0,trialStatus:G.Available},l)),t.next=11;break;case 6:return t.prev=6,t.t0=t.catch(0),n("Something went wrong! Please try again later."),p(!1),t.abrupt("return");case 11:case"end":return t.stop()}}),t,null,[[0,6]])})))}function v(){var t;return ar(this,void 0,void 0,ir().mark((function e(){var r,n;return ir().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=void 0,!(null==l?void 0:l.prospectId)||o!==G.NotRequired){e.next=6;break}return e.next=4,Ee.getLookups(s,l.prospectId);case 4:n=e.sent,r=null===(t=n.find((function(t){return t.type===rr.C.MasterId})))||void 0===t?void 0:t.externalId;case 6:f(Object.assign({completionStep:"trial-status",trialStatus:o,trialCreated:!1,customerId:r},l)),a();case 8:case"end":return e.stop()}}),e)})))}function g(){var t;return ar(this,void 0,void 0,ir().mark((function e(){var r;return ir().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p(!0),e.prev=1,e.next=4,dt(s,{userType:i,email:d,prospectId:null==l?void 0:l.prospectId,appLink:h,accessPolicy:nr(l.country)});case 4:r=e.sent,e.next=12;break;case 7:return e.prev=7,e.t0=e.catch(1),n("Something went wrong! Please try again later."),p(!1),e.abrupt("return");case 12:m("userId",r.id),f(Object.assign({completionStep:"trial-status",userId:r.id,trialCreated:!0,trialStatus:G.Available,customerId:null===(t=r.data)||void 0===t?void 0:t.customerId},l)),a();case 15:case"end":return e.stop()}}),e,null,[[1,7]])})))}return function(){return ar(this,void 0,void 0,ir().mark((function t(){return ir().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=2;break}return t.abrupt("return");case 2:if(r()){t.next=5;break}return n("Something went wrong! Please try again later."),t.abrupt("return");case 5:if(i!==Rt.Staff){t.next=14;break}if(o!==G.Unsupported){t.next=8;break}return t.abrupt("return",(c(Object.assign({step:"add-to-braze",trialStatus:o},l)),void a()));case 8:if(o!==G.UserJoinApprovalRequired){t.next=10;break}return t.abrupt("return",(c(Object.assign({step:"request-access"},l)),void a()));case 10:if(o!==G.UserAutoJoinAllowed||u!==st.X.Lite){t.next=14;break}return t.next=13,y();case 13:case 17:case 20:return t.abrupt("return",t.sent);case 14:if(o===G.Active||o===G.Available||o===G.UserAutoJoinAllowed&&u===st.X.Auth){t.next=18;break}return t.next=17,v();case 18:return t.next=20,g();case 21:case"end":return t.stop()}}),t)})))}}(Object.assign(Object.assign({},t),{prospectStatus:f,loading:v,data:c,canSubmitForm:k,setSubmissionError:m,logStepEvent:function(){var e={actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.FindSchool,workflowPhase:l.WorkflowPhase.Next};t.logUserAction(c||{},e)},setLoadingState:function(t){S(t),L(t),g(t)},setProperty:O}));function k(){if(!c||!n||!o)return!1;var t=c.prospectId;return!!(n&&o&&t)}function O(e,r){"prospectId"===e&&r&&(g(!0),pt(t.ajaxUrls,{prospectId:r.toString(),email:t.email},(function(t){p(t.status)}),(function(){console.log("error")}),(function(){g(!1)}))),u((function(t){return Object.assign(Object.assign({},t),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==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}({},e,r))}))}function C(){O("prospectId",void 0),O("schoolName",""),O("schoolPostCode",void 0),m(void 0)}return i().createElement(i().Fragment,null,i().createElement("div",{className:"text-center"},i().createElement("h1",{className:"h4"},"Next, let's find your school"),i().createElement("p",null,"au"===(null==(r=null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode)?void 0:r.toLowerCase())?"Enter your school postcode or suburb":"Enter your school postcode or city")),i().createElement(tr,{data:c,setDataProperty:O,clearStepGroupData:function(){O("schoolLocality",void 0),u((function(t){return Object.assign(Object.assign({},t),{longitude:undefined,latitude:undefined})})),O("city",void 0),O("province",void 0),O("country",void 0),C(),m(void 0)},disabled:w,geoLocation:t.geoLocation,labelClassName:"d-none",logUserAction:t.logUserAction,googleMapsApiKey:t.googleMapsApiKey,autoFocus:!0}),!!(c&&c.schoolLocality&&c.longitude&&c.latitude)&&i().createElement(Ce,{data:c,setDataProperty:O,clearStepItemData:C,nextStep:t.nextStep,currentStepId:t.currentStepId,disabled:x,logUserAction:t.logUserAction,ajaxUrls:t.ajaxUrls}),h&&i().createElement("p",{className:"text-danger mb-2"},h),k()&&i().createElement(Nt.m,{className:"btn btn-dark btn-lg w-100",onClick:j,showSpinner:w||x||v,disabled:w||x||v},"Get started"))},"cant-find-school":function(t){var e,r,n,o=br(i().useState({prospectId:t.prospectId,schoolName:t.schoolName,schoolType:t.schoolType,schoolLocality:t.schoolLocality,country:t.country,province:t.province,city:t.city,longitude:t.longitude,latitude:t.latitude}),2),a=o[0],c=o[1],u=br(i().useState(),2),s=u[0],f=u[1],p=br(i().useState(!1),2),d=p[0],h=p[1],m=(r=a.country||(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode),n=v.getCountryCode(r),yr[n]||mr);function y(){var t=a.schoolName,e=a.schoolType,r=a.country;return!!(t&&e&&r)}function g(t,e){c((function(r){return Object.assign(Object.assign({},r),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==vr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==vr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===vr(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 i().createElement(i().Fragment,null,i().createElement("div",{className:"text-center"},i().createElement("h1",{className:"h4"},"Tell us more about yourself"),i().createElement("p",null,"Please enter your school details.")),i().createElement("div",{className:"form-group"},i().createElement("label",{className:"d-block",htmlFor:"school-name-input"},"Name of school"),i().createElement("input",{type:"text",value:(null==a?void 0:a.schoolName)||"",onChange:function(t){g("schoolName",t.target.value)},id:"school-name-input",className:"form-control form-control-lg",autoComplete:"off",placeholder:"Enter name of school",autoFocus:!0})),i().createElement("div",{className:"form-group"},i().createElement("label",{className:"d-block",htmlFor:"school-type-select"},"Type of school"),i().createElement("select",{id:"school-type-select",className:"form-control form-control-lg ".concat(a.schoolType?"":"text-muted"),autoComplete:"off",value:a.schoolType||"none",onChange:function(t){g("schoolType",t.target.value)}},i().createElement("option",{value:"none",className:"text-muted",disabled:!0},"Select type of school"),m.map((function(t){return i().createElement("option",{value:t,key:t,className:"text-dark"},t)})))),i().createElement(tr,{data:a,setDataProperty:g,clearStepGroupData:function(){g("schoolLocality",void 0),c((function(t){return Object.assign(Object.assign({},t),{longitude:undefined,latitude:undefined})})),g("city",void 0),g("province",void 0),g("country",void 0),f("")},disabled:!1,labelClassName:"d-block",geoLocation:t.geoLocation,logUserAction:t.logUserAction,googleMapsApiKey:t.googleMapsApiKey,autoFocus:!1}),s&&i().createElement("div",{className:"text-danger mb-3"},s),y()&&i().createElement(Nt.m,{className:"btn btn-dark btn-lg w-100",onClick:function(e){var r,n,o,i,c;return n=this,o=void 0,i=void 0,c=gr().mark((function n(){var o,i,c;return gr().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.preventDefault(),y()){n.next=3;break}return n.abrupt("return");case 3:return t.logUserAction(a,{actionType:l.UserAction.Click,workflowPhase:l.WorkflowPhase.Next,descriptor:l.SignUpDescriptors.CantFindSchool}),h(!0),n.prev=5,n.next=8,Ee.create(t.ajaxUrls,{name:a.schoolName,status:dr.Draft,countryCode:a.country,prospectType:a.schoolType,city:a.city,postCode:a.schoolPostCode,province:a.province});case 8:if((o=n.sent).id){n.next=13;break}return h(!1),f("Error. Something went wrong."),n.abrupt("return");case 13:n.next=20;break;case 15:return n.prev=15,n.t0=n.catch(5),h(!1),f("Error. Something went wrong."),n.abrupt("return");case 20:return n.prev=20,n.next=23,dt(t.ajaxUrls,{userType:t.userType,email:t.email,prospectId:o.id,appLink:t.pageAppLinkString,accessPolicy:nr(a.country)});case 23:i=n.sent,t.complete({completionStep:"trial-status",email:t.email,userId:i.id,prospectId:o.id,schoolName:a.schoolName,schoolLocality:a.schoolLocality,country:a.country,schoolType:a.schoolType,city:a.city,schoolPostCode:a.schoolPostCode,latitude:a.latitude,longitude:a.longitude,province:a.province,trialStatus:G.Available,trialCreated:!0,customerId:null===(r=i.data)||void 0===r?void 0:r.customerId}),n.next=37;break;case 27:if(n.prev=27,n.t1=n.catch(20),n.t1.body){n.next=33;break}return h(!1),f("Error. Something went wrong."),n.abrupt("return");case 33:if(400!==(c=n.t1).body.status||"trial-not-available"!==c.body.type){n.next=37;break}return t.nextStep(Object.assign(Object.assign({step:"add-to-braze"},a),{prospectId:o.id,trialStatus:G.Unavailable})),n.abrupt("return");case 37:case"end":return n.stop()}}),n,null,[[5,15],[20,27]])})),new(i||(i=Promise))((function(t,e){function r(t){try{l(c.next(t))}catch(t){e(t)}}function a(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,a)}l((c=c.apply(n,o||[])).next())}))},showSpinner:d,disabled:d},"Get started"))},completed:function(t){var e=Ct[t.completionStep];return i().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto px-2"},i().createElement(e,Object.assign({},t)))},"add-to-braze":function(t){var e,r=se(i().useState(!1),2),n=r[0],o=r[1],a=se(i().useState({}),2),c=a[0],l=a[1];function u(e){var r=me(e.fullname),n=r.firstName,o=r.surname,i={prospect_id:null==t?void 0:t.prospectId,email:null==t?void 0:t.email,organisation_sub_type:Zt.getSchoolType(null==t?void 0:t.schoolType),account_name:null==t?void 0:t.schoolName,account_post_code:null==t?void 0:t.schoolPostCode,account_country:null==t?void 0:t.country,first_name:n,last_name:o,job_title:e.jobTitle,sync_to_crm:!0,event_topic:Zt.getEventTopic()};return Zt.removeEmptyKeys(i)}function s(){t.complete({completionStep:"added-to-braze",trialCreated:!1,trialStatus:null})}return i().useEffect((function(){t.userType===Rt.Learner&&t.complete({completionStep:"trial-status",trialCreated:!1,trialStatus:G.Unsupported})}),[]),i().createElement(ae,{errors:c,loading:n,geoLocation:t.geoLocation,country:t.country||(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode),logUserAction:t.logUserAction,handleSubmitForm:function(e){var r,i;(function(t){var e=t.fullname,r=t.jobTitle,n=t.phone,o=me(e),i=o.firstName,a=o.surname,c={};return i&&a||(c.fullname="Please enter your full name."),(de.test(i)||de.test(a))&&(c.fullname="Please enter your full name."),e.length>pe&&(c.fullname="Full name cannot exceed max length of ".concat(pe," characters.")),(null==r?void 0:r.length)||(c.jobTitle="Please enter your job title."),de.test(r)&&(c.jobTitle="Please enter a valid job title."),r.length>pe&&(c.jobTitle="Job Title cannot exceed max length of ".concat(pe," characters.")),(null==n?void 0:n.length)||(c.phone="Please enter your phone number."),!de.test(n)&&he.test(n)||(c.phone="Please enter a valid phone number."),l(c),!Object.keys(c).length})(e)&&((null===(r=e.jobTitle)||void 0===r?void 0:r.toLowerCase().includes("student"))||(null===(i=e.jobTitle)||void 0===i?void 0:i.toLowerCase().includes("parent"))?s():function(e){var r,i,a,f;r=this,i=void 0,a=void 0,f=ue().mark((function r(){var i,a,f,p,d,h;return ue().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!n){r.next=2;break}return r.abrupt("return");case 2:if(t.userType!==Rt.Learner){r.next=5;break}return l(Object.assign(Object.assign({},c),{submission:"Something went wrong! Please try again later."})),r.abrupt("return");case 5:return t.logUserAction({},{actionType:ce.Vw.Click,workflowPhase:ce.eu.Next,descriptor:ce.Yu.AddToBraze}),o(!0),i=u(e),r.next=10,Zt.getClient({brazeConfig:t.brazeConfig,geoLocation:t.geoLocation,productName:t.productName,version:t.version});case 10:a=r.sent,f=me(e.fullname),p=f.firstName,d=f.surname,h={prospect_id:null==t?void 0:t.prospectId,organisation_sub_type:Zt.getSchoolType(null==t?void 0:t.schoolType),account_name:null==t?void 0:t.schoolName,account_post_code:null==t?void 0:t.schoolPostCode,account_country:null==t?void 0:t.country,job_title:e.jobTitle,sync_to_crm:!0},h=Zt.removeEmptyKeys(h);try{a.setUser(Zt.hashedEmail(null==t?void 0:t.email)),a.setUserFirstName(p),a.setUserLastName(d),a.setUserPhone(e.phone),a.setUserEmail(null==t?void 0:t.email),a.openSession(),a.bulkSetCustomUserAttributes(h),a.logEvent({type:Zt.getCustomEventType(),data:i}),a.sendData((function(t){l(t?{}:Object.assign(Object.assign({},c),{submission:"Something went wrong! Please try again later."})),o(!1)}))}catch(t){l(Object.assign(Object.assign({},c),{submission:"Something went wrong! Please try again later."}))}Object.keys(c).length||s();case 16:case"end":return r.stop()}}),r)})),new(a||(a=Promise))((function(t,e){function n(t){try{c(f.next(t))}catch(t){e(t)}}function o(t){try{c(f.throw(t))}catch(t){e(t)}}function c(e){var r;e.done?t(e.value):(r=e.value,r instanceof a?r:new a((function(t){t(r)}))).then(n,o)}c((f=f.apply(r,i||[])).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=Sr(i().useState(""),2),r=e[0],n=e[1],o=Sr(i().useState(""),2),a=o[0],c=o[1],l=Sr(i().useState(""),2),u=l[0],s=l[1],f=Sr(i().useState(null),2),p=f[0],d=f[1];var h=(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"),i().createElement("form",{className:"text-center",onSubmit:function(e){if(e.preventDefault(),r&&a&&u?function(t,e,r){var n=new Date(xr(t,e,r));return!isNaN(+n)}(u,a,r)?+u>h?(d("Please enter a date in the past"),0):!(+u<h-120&&(d("Please enter a realistic date of birth"),1)):(d("Please enter a valid date"),0):(d("Please enter your date of birth"),0)){var n=new Date(xr(u,a,r)),o=h-13,i=new Date;i.setFullYear(o),n>i?t.complete({completionStep:"young-student",trialCreated:!1,trialStatus:null}):t.nextStep({step:"enter-email",userType:t.userType})}},noValidate:!0},i().createElement("h1",{className:"h4"},"Tell us a little about yourself"),i().createElement("p",null,"Please enter your date of birth"),i().createElement("div",{className:"my-4"},i().createElement("div",{className:"d-flex justify-content-center"},i().createElement("div",{className:"".concat(m," ").concat(g)},i().createElement("label",{className:"mb-0",htmlFor:"day"},"Day"),i().createElement("input",{id:"day",type:"number",className:"".concat(y," ").concat("e0Dbj"),min:"1",max:"31",placeholder:"DD",value:r,onChange:function(t){n(t.target.value),d(null)},autoFocus:!w,tabIndex:w?2:1})),i().createElement("span",{className:"h1 font-weight-normal mt-3 mb-0 order-1 ".concat(p?"text-danger":"")},"/"),i().createElement("div",{className:"".concat(m," ").concat(b)},i().createElement("label",{className:"mb-0",htmlFor:"month"},"Month"),i().createElement("input",{id:"month",type:"number",className:"".concat(y," ").concat("zLcQr"),min:"1",max:"12",placeholder:"MM",value:a,onChange:function(t){c(t.target.value),d(null)},autoFocus:w,tabIndex:w?1:2})),i().createElement("span",{className:"h1 font-weight-normal mt-3 mb-0 order-4 ".concat(p?"text-danger":"")},"/"),i().createElement("div",{className:"".concat(m," order-5")},i().createElement("label",{className:"mb-0",htmlFor:"year"},"Year"),i().createElement("input",{id:"year",type:"number",className:"".concat(y," ").concat("XiXPP"),min:h-120,max:h,placeholder:"YYYY",value:u,onChange:function(t){s(t.target.value),d(null)},tabIndex:3}))),!!p&&i().createElement("div",{className:"invalid-feedback d-block"},p)),i().createElement("button",{type:"submit",className:"btn btn-lg btn-dark w-100"},"Next"))},"request-access":function(t){var e,r,n=(e=i().useState(null),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.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&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return Or(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Or(t,e):void 0}}(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],a=n[1];return i().createElement(i().Fragment,null,i().createElement(H,{trialStatus:G.UserJoinApprovalRequired,imageUrls:t.imageUrls}),i().createElement(Y,{className:"mb-3"},i().createElement(B,null,t.schoolName,i().createElement("br",null),"already has ClickView 🎉")),i().createElement("button",{className:"btn btn-lg btn-dark w-100 mb-3",onClick:function(){var e,r,n,o,i;return r=this,n=void 0,o=void 0,i=kr().mark((function r(){var n,o;return kr().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,Ee.getLookups(t.ajaxUrls,t.prospectId);case 3:if(n=r.sent,o=null===(e=n.find((function(t){return t.type===rr.C.MasterId})))||void 0===e?void 0:e.externalId){r.next=8;break}return a("Something went wrong."),r.abrupt("return");case 8:return r.next=10,mt(t.ajaxUrls,{customerId:o,email:t.email});case 10:t.complete({completionStep:"requested-access",trialCreated:!1,trialStatus:G.UserJoinApprovalRequired}),r.next=16;break;case 13:r.prev=13,r.t0=r.catch(0),a(Lr(r.t0));case 16:case"end":return r.stop()}}),r,null,[[0,13]])})),new(o||(o=Promise))((function(t,e){function a(t){try{l(i.next(t))}catch(t){e(t)}}function c(t){try{l(i.throw(t))}catch(t){e(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof o?r:new o((function(t){t(r)}))).then(a,c)}l((i=i.apply(r,n||[])).next())}))}},"Request access"),o&&i().createElement("p",{className:"text-danger text-center mb-2"},o),i().createElement($,{className:"text-center"},"Need Help? ",i().createElement("a",{href:w.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link",target:"_blank"},"Contact our Help Centre.")))}};function Nr(t){var e=t.state,r=t.geoLocation,n=t.layoutMapping,o=t.hasPreviousStep,a=t.googleMapsApiKey,c=t.pageAppLinkString,l=t.back,u=t.nextStep,s=t.complete,f=t.logUserAction,p=t.imageUrls,d=t.ajaxUrls,h=t.brazeConfig,m=t.version,y=t.productName,v=Cr[e.currentStepId],g=Object.assign(Object.assign({},e),{geoLocation:r,googleMapsApiKey:a,pageAppLinkString:c,back:l,nextStep:u,complete:s,logUserAction:f,imageUrls:p,ajaxUrls:d,brazeConfig:h,version:m,productName:y}),b=null==n?void 0:n[e.currentStepId];return b?i().createElement(b,{geoLocation:t.geoLocation,currentStep:e.currentStepId,previousStep:l,closeApp:t.close,logUserAction:f,hasPreviousStep:o,imageUrls:t.imageUrls},i().createElement(v,Object.assign({},g))):i().createElement(v,Object.assign({},g))}var Ar=r(17331);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}function Ir(t){return Ir="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ir(t)}function 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,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.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&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||Tr(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){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}}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}function Fr(t,e){var r,n,o=Object.assign(Object.assign({},t),{previousStepIds:[].concat((n=t.previousStepIds,function(t){if(Array.isArray(t))return _r(t)}(n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||Tr(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[t.currentStepId]),currentStepId:e.step});if("select-type"===e.step)return Object.assign({},o);if("enter-email"===e.step||"enter-age"===e.step)return Object.assign(Object.assign({},o),{userType:e.userType});if("find-school"===e.step)return Object.assign(Object.assign({},o),{email:e.email});if("cant-find-school"===e.step)return Object.assign(Object.assign({},o),{prospectId:e.prospectId,schoolName:e.schoolName,schoolLocality:e.schoolLocality,country:e.country,longitude:e.longitude,latitude:e.latitude,city:e.city,province:e.province});if("add-to-braze"===e.step||"completed"===e.step||"request-access"===e.step){var i=Object.assign({},e);return delete i.type,delete i.step,r=i,i=Object.entries(r).filter((function(t){return null!==Ur(t,2)[1]})).reduce((function(t,e){var r=Ur(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"!==Ir(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Ir(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Ir(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},n,o))}),{}),Object.assign(Object.assign({},o),i)}}function Gr(t,e){switch(e.type){case"nextStep":return Fr(t,e);case"back":return function(t){var e,r=function(t){if(Array.isArray(t))return Pr(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 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}}(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 Dr(t){return Dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dr(t)}function Rr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.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&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Mr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Mr(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Kr=function(t){var e=t.location,r=t.initialValues,n=t.onStepUpdate,o=t.externalLogUserAction,a=Zt.removeEmptyKeys(r),c=Object.assign({currentStepId:"select-type",previousStepIds:[]},a),l=Rr(i().useReducer(Gr,c),2),u=l[0],s=l[1];return i().useEffect((function(){null==n||n(u)}),[u.currentStepId]),{state:u,back:function(){s({type:"back"})},nextStep:function(t){s(Object.assign({type:"nextStep"},t))},complete:function(t){s(Object.assign({type:"nextStep",step:"completed"},t))},hasPreviousStep:!!u.previousStepIds.length,logUserAction:function(t,r){var n=Object.assign(Object.assign({},u),t),i=Ar.i.filterBlacklistedKeys(n),a=Object.assign({currentStepId:u.currentStepId},i),c=Object.entries(a).filter((function(t){return void 0!==Rr(t,2)[1]})).reduce((function(t,e){var r=Rr(e,2),n=r[0],o=r[1];return Object.assign(Object.assign({},t),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Dr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Dr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Dr(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},n,o))}),{});o(c,Object.assign({entity:ce.py.SignUp,location:e},r))}}},zr=r(1048);const qr={buttonContainer:"izZtA",dataContainer:"OgBv5"};function Br(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Yr(t){var e={};return Object.keys(t).forEach((function(r){var n=t[r];zr.t.isObject(n)&&null!==n&&!Array.isArray(n)?Object.assign(e,Yr(n)):e[r]=n})),e}function $r(t){var e=t.label,r=t.item,n=r;return Array.isArray(r)&&(n=n.join(" -> ")),"boolean"==typeof n&&(n=n?"true":"false"),i().createElement("div",{className:"pb-1"},e,": ",i().createElement("b",{className:"text-white"},n))}function Wr(t){var e,r,n=t.developmentEnv,o=t.objects,a=(e=i().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,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.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&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return Br(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Br(t,e):void 0}}(e,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=a[0],l=a[1],u=i().useMemo((function(){return Yr(o)}),[o]);return n&&i().createElement(i().Fragment,null,i().createElement("div",{className:"position-fixed p-4 ".concat(qr.buttonContainer)},i().createElement("button",{onClick:function(){l(!c)},className:"btn btn-dark px-2 py-1"},c?"Hide":"Show"," debugger")),c&&i().createElement("div",{className:"fixed-bottom mb-4 ml-4 bg-dark rounded ".concat(qr.dataContainer)},i().createElement("code",{className:"d-block p-4"},i().createElement("div",{className:"font-weight-bold pb-2"},"{ Debug: Form Data }"),Object.keys(u).map((function(t){return i().createElement($r,{key:t,label:t,item:u[t]})})))))}var Vr=r(49985);function Hr(t){var e=z.getLayouts(t.type),r=t.location,n=t.initialValues,o=t.geoLocation,c=t.googleMapsApiKey,l=t.pageAppLinkString,u=t.onStepUpdate,s=t.imageUrls,f=t.ajaxUrls,p=t.brazeConfig,d=t.version,h=t.productName,m=t.close,y=Kr({location:r,initialValues:n,onStepUpdate:u,externalLogUserAction:Vr.k.logUserAction}),v=y.back,g=y.nextStep,b=y.complete,w=y.hasPreviousStep,S=y.state,E=y.logUserAction,x={state:S,geoLocation:o,layoutMapping:e,hasPreviousStep:w,googleMapsApiKey:c,pageAppLinkString:l,back:v,close:m,nextStep:g,complete:b,logUserAction:E,imageUrls:s,ajaxUrls:f,brazeConfig:p,version:d,productName:h};return i().useEffect((function(){a.SG.get(Z)&&b({completionStep:"young-student",trialCreated:!1,trialStatus:null})}),[]),i().createElement(i().Fragment,null,i().createElement(Nr,Object.assign({},x)),i().createElement(Wr,{developmentEnv:!1,objects:Object.assign(Object.assign(Object.assign({},S),{pageAppLinkString:l}),o)}))}},83529:(t,e,r)=>{var n;r.d(e,{c:()=>n}),function(t){t.Popup="popup-form",t.FullPage="full-page-form"}(n||(n={}))},12238:(t,e,r)=>{var n;r.d(e,{C:()=>n}),function(t){t.MasterId="master_id",t.CrmId="crm_id",t.SalesforceId="salesforce_id"}(n||(n={}))},84789:(t,e,r)=>{var n;r.d(e,{X:()=>n}),function(t){t.Lite="lite",t.Auth="auth"}(n||(n={}))},17331:(t,e,r)=>{r.d(e,{i:()=>o});var n=["email","longitude","latitude","trialCreated"],o={filterBlacklistedKeys:function(t){var e=Object.assign({},t);return n.forEach((function(t){return delete e[t]})),e}}},48456:(t,e,r)=>{r.d(e,{v:()=>o});var n=r(99742),o={popupDashboard:n.W.SignUp.POPUP_DASHBOARD,educator:n.W.SignUp.EDUCATOR,student:n.W.SignUp.STUDENT,statusImages:{available:n.W.SignUp.VERIFY_ACCOUNT,active:n.W.SignUp.EXISTING_CUSTOMER,expired:n.W.SignUp.EXPIRED_TRIAL,notRequired:n.W.SignUp.EXISTING_CUSTOMER,unavailable:n.W.SignUp.NOT_AVAILABLE,unsupported:n.W.SignUp.NOT_AVAILABLE,autoJoin:n.W.SignUp.EXISTING_CUSTOMER,requestAccess:n.W.SignUp.EXISTING_CUSTOMER}}},17762:(t,e,r)=>{r.d(e,{M:()=>a});var n=r(20354),o=r(39151),i={countryCode:"us"};function a(){var t=n.a.useBasicFetch(o.L.geoLocation());return t.hasError?i:t.data}},63643:(t,e,r)=>{r.d(e,{c:()=>c});var n=r(20354),o=r(39151),i=r(97395),a=r(84789);function c(){var t=n.a.useBasicFetch(o.L.config());if(!t.hasCompleted)return null;var e=t.data.gatewayApiUrl;return{productName:a.X.Lite,userStatus:i._.safeUrlConcat(e,"/v1/users/trial-status"),prospectStatus:function(t){return i._.safeUrlConcat(e,"/v1/prospects/".concat(t,"/trial-status"))},createTrial:"/api/user/trials",resendTrialEmail:function(t){return"/api/user/trials/users/".concat(t,"/send-activation-email")},searchProspect:i._.safeUrlConcat(e,"/v1/search/prospects"),createProspect:"/api/prospects",prospectLookups:function(t){return i._.safeUrlConcat(e,"/v1/prospects/".concat(t,"/lookups"))},autoJoin:"/api/user/trials/auto-join",joinRequest:function(t){return"/api/user/customers/".concat(t,"/join-requests")}}}},28366:(t,e,r)=>{r.d(e,{Z:()=>n});const n={logo:"Kh4Dd",modalBody:"V9nIN",popupButton:"hS60U",leftHalfLayout:"aQ1K8",withBg:"zALxE"}}}]);