@clickview/lite 0.16.0 → 0.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) hide show
  1. package/.eslintrc.json +2 -2
  2. package/dist/bundles.json +1 -1
  3. package/dist/scripts/{1200-1752bc87fb-lite.chunk.js → 1200-fdbb00760e-lite.chunk.js} +1 -1
  4. package/dist/scripts/{1592-ccd23c32a3-lite.chunk.js → 1592-edae0cfd35-lite.chunk.js} +1 -1
  5. package/dist/scripts/{2097-13e9de4525-lite.chunk.js → 2097-5b8d15d472-lite.chunk.js} +1 -1
  6. package/dist/scripts/291-6c233ee692-lite.chunk.js +1 -0
  7. package/dist/scripts/3152-d618a10e42-lite.chunk.js +1 -0
  8. package/dist/scripts/3533-03d43a5e19-lite.chunk.js +1 -0
  9. package/dist/scripts/{4617-ed843d6a7d-lite.chunk.js → 4617-ee30946c00-lite.chunk.js} +1 -1
  10. package/dist/scripts/{5875-32c6f150e0-lite.chunk.js → 5875-380883e8d7-lite.chunk.js} +1 -1
  11. package/dist/scripts/{6118-fac4558e19-lite.chunk.js → 6118-c2e0ef9bf0-lite.chunk.js} +1 -1
  12. package/dist/scripts/6285-01df6e582b-lite.chunk.js +1 -0
  13. package/dist/scripts/{6736-ac71f42fe7-lite.chunk.js → 6736-807f6b6c82-lite.chunk.js} +1 -1
  14. package/dist/scripts/{6801-9e20065d3a-lite.chunk.js → 6801-958fd62c7b-lite.chunk.js} +1 -1
  15. package/dist/scripts/7318-6cc811f662-lite.chunk.js +1 -1
  16. package/dist/scripts/{7416-f33a86fe74-lite.chunk.js → 7416-571043c67f-lite.chunk.js} +1 -1
  17. package/dist/scripts/7939-030086947f-lite.chunk.js +1 -0
  18. package/dist/scripts/{7989-5756a29b8c-lite.chunk.js → 7989-9c4168b26f-lite.chunk.js} +1 -1
  19. package/dist/scripts/{8323-ba2c3375bb-lite.chunk.js → 8323-f335379d28-lite.chunk.js} +1 -1
  20. package/dist/scripts/{8976-a424e72e1c-lite.chunk.js → 8976-055dfe3ebd-lite.chunk.js} +1 -1
  21. package/dist/scripts/{9478-12ec0a2fb9-lite.chunk.js → 9478-223792d0e1-lite.chunk.js} +1 -1
  22. package/dist/scripts/bundle-4364d09ef6.min.js +2 -0
  23. package/jest.config.js +11 -11
  24. package/package.json +63 -63
  25. package/typings/libs/CVEvents.d.ts +12 -12
  26. package/typings/libs/CVLanguages.d.ts +24 -24
  27. package/typings/libs/backbone.validation.d.ts +99 -99
  28. package/typings/libs/cookiesjs.d.ts +25 -25
  29. package/typings/libs/draft-convert.d.ts +3 -3
  30. package/typings/libs/google-api.d.ts +93 -93
  31. package/typings/libs/intersection-observer.d.ts +82 -82
  32. package/typings/libs/microsoft-teams.d.ts +2 -2
  33. package/typings/libs/react-table-config.d.ts +138 -138
  34. package/typings/libs/trackjs.d.ts +2 -2
  35. package/typings/libs/videojs-contrib-quality-levels.d.ts +28 -28
  36. package/typings/utils/imports.d.ts +13 -13
  37. package/dist/scripts/27-bf5b5da7b0-lite.chunk.js +0 -1
  38. package/dist/scripts/291-3cdf00b119-lite.chunk.js +0 -1
  39. package/dist/scripts/3152-8cd8705639-lite.chunk.js +0 -1
  40. package/dist/scripts/6727-dc91e53918-lite.chunk.js +0 -1
  41. package/dist/scripts/bundle-1127604e6b.min.js +0 -2
  42. /package/dist/css/{6727-lite-0c9634ca3d.chunk.css → 291-lite-0c9634ca3d.chunk.css} +0 -0
  43. /package/dist/css/{27-lite-5f795295f3.chunk.css → 3533-lite-5f795295f3.chunk.css} +0 -0
  44. /package/dist/css/{291-lite-9c829a9c8b.chunk.css → 6285-lite-9c829a9c8b.chunk.css} +0 -0
  45. /package/dist/scripts/{1007-40c34e15b0-lite.chunk.js → 1007-4151cfd368-lite.chunk.js} +0 -0
  46. /package/dist/scripts/{1200-1752bc87fb-lite.chunk.js.LICENSE.txt → 1200-fdbb00760e-lite.chunk.js.LICENSE.txt} +0 -0
  47. /package/dist/scripts/{1235-996620bd8a-lite.chunk.js → 1235-37587ff1af-lite.chunk.js} +0 -0
  48. /package/dist/scripts/{1261-55aa0b5bd4-lite.chunk.js → 1261-86135e9600-lite.chunk.js} +0 -0
  49. /package/dist/scripts/{1285-7a93b69113-lite.chunk.js → 1285-6fb30fc0a1-lite.chunk.js} +0 -0
  50. /package/dist/scripts/{1291-d4871c743a-lite.chunk.js → 1291-23b2cd82a4-lite.chunk.js} +0 -0
  51. /package/dist/scripts/{1518-d1d91a487e-lite.chunk.js → 1518-96b398e84a-lite.chunk.js} +0 -0
  52. /package/dist/scripts/{1592-ccd23c32a3-lite.chunk.js.LICENSE.txt → 1592-edae0cfd35-lite.chunk.js.LICENSE.txt} +0 -0
  53. /package/dist/scripts/{1659-cbfd9a8f38-lite.chunk.js → 1659-9499c8d973-lite.chunk.js} +0 -0
  54. /package/dist/scripts/{1725-efe85aed19-lite.chunk.js → 1725-8f755ea42c-lite.chunk.js} +0 -0
  55. /package/dist/scripts/{1749-7027c6b046-lite.chunk.js → 1749-1f9003adbe-lite.chunk.js} +0 -0
  56. /package/dist/scripts/{1792-fe61497e92-lite.chunk.js → 1792-f72f5918d7-lite.chunk.js} +0 -0
  57. /package/dist/scripts/{1891-fdddecd3f3-lite.chunk.js → 1891-cb9e793dcd-lite.chunk.js} +0 -0
  58. /package/dist/scripts/{1924-62052616d4-lite.chunk.js → 1924-b3871f427a-lite.chunk.js} +0 -0
  59. /package/dist/scripts/{209-1301f41ed5-lite.chunk.js → 209-55b483415b-lite.chunk.js} +0 -0
  60. /package/dist/scripts/{2097-13e9de4525-lite.chunk.js.LICENSE.txt → 2097-5b8d15d472-lite.chunk.js.LICENSE.txt} +0 -0
  61. /package/dist/scripts/{2115-ad7e2c3fb7-lite.chunk.js → 2115-a31191ce7d-lite.chunk.js} +0 -0
  62. /package/dist/scripts/{2132-14cab8434d-lite.chunk.js → 2132-f4c755e897-lite.chunk.js} +0 -0
  63. /package/dist/scripts/{2215-4a0a376049-lite.chunk.js → 2215-b4a2c38dbb-lite.chunk.js} +0 -0
  64. /package/dist/scripts/{2229-558d6b535f-lite.chunk.js → 2229-e6fef215c2-lite.chunk.js} +0 -0
  65. /package/dist/scripts/{227-6e2c48d228-lite.chunk.js → 227-0c4bb367a5-lite.chunk.js} +0 -0
  66. /package/dist/scripts/{2279-00f6f2ee12-lite.chunk.js → 2279-e524379a62-lite.chunk.js} +0 -0
  67. /package/dist/scripts/{2303-9527da496d-lite.chunk.js → 2303-e72674b90c-lite.chunk.js} +0 -0
  68. /package/dist/scripts/{2452-ddcf0aa499-lite.chunk.js → 2452-ed97feb8f4-lite.chunk.js} +0 -0
  69. /package/dist/scripts/{2791-b85cbedd33-lite.chunk.js → 2791-0102aa4d54-lite.chunk.js} +0 -0
  70. /package/dist/scripts/{2877-44261798da-lite.chunk.js → 2877-6fee9aac4d-lite.chunk.js} +0 -0
  71. /package/dist/scripts/{2935-81ba55fa2b-lite.chunk.js → 2935-662f01ce12-lite.chunk.js} +0 -0
  72. /package/dist/scripts/{2966-afdc9d73fb-lite.chunk.js → 2966-541625267b-lite.chunk.js} +0 -0
  73. /package/dist/scripts/{3007-61432f7725-lite.chunk.js → 3007-d1dcacab45-lite.chunk.js} +0 -0
  74. /package/dist/scripts/{3012-782a31a259-lite.chunk.js → 3012-9e2742a042-lite.chunk.js} +0 -0
  75. /package/dist/scripts/{3019-85d57b329c-lite.chunk.js → 3019-7dfdb8c724-lite.chunk.js} +0 -0
  76. /package/dist/scripts/{3020-48fe422c57-lite.chunk.js → 3020-848b1078ff-lite.chunk.js} +0 -0
  77. /package/dist/scripts/{3108-6bc34f0fe9-lite.chunk.js → 3108-696c32179b-lite.chunk.js} +0 -0
  78. /package/dist/scripts/{3171-c56c71431a-lite.chunk.js → 3171-ad49c56dfb-lite.chunk.js} +0 -0
  79. /package/dist/scripts/{3174-d8dc94c643-lite.chunk.js → 3174-63be25dbc7-lite.chunk.js} +0 -0
  80. /package/dist/scripts/{3216-227b8b9a54-lite.chunk.js → 3216-1802bdd0de-lite.chunk.js} +0 -0
  81. /package/dist/scripts/{3231-eca10f5504-lite.chunk.js → 3231-8904d10cdd-lite.chunk.js} +0 -0
  82. /package/dist/scripts/{3237-38ee965093-lite.chunk.js → 3237-7767ad4903-lite.chunk.js} +0 -0
  83. /package/dist/scripts/{3238-130f790eaa-lite.chunk.js → 3238-b9d32818f5-lite.chunk.js} +0 -0
  84. /package/dist/scripts/{3285-00ec66e19b-lite.chunk.js → 3285-2f24c76dd7-lite.chunk.js} +0 -0
  85. /package/dist/scripts/{3436-25311e4765-lite.chunk.js → 3436-dc9cc2db93-lite.chunk.js} +0 -0
  86. /package/dist/scripts/{3468-afd0a7660c-lite.chunk.js → 3468-a1ee14a085-lite.chunk.js} +0 -0
  87. /package/dist/scripts/{3754-be1475a735-lite.chunk.js → 3754-7d99f79b5a-lite.chunk.js} +0 -0
  88. /package/dist/scripts/{3787-4317682fc0-lite.chunk.js → 3787-7b96f4d4a7-lite.chunk.js} +0 -0
  89. /package/dist/scripts/{380-266ef78156-lite.chunk.js → 380-df35cc0356-lite.chunk.js} +0 -0
  90. /package/dist/scripts/{3948-2fda1767c1-lite.chunk.js → 3948-fdaf6f97ca-lite.chunk.js} +0 -0
  91. /package/dist/scripts/{4182-015f11905d-lite.chunk.js → 4182-f3ef9a1810-lite.chunk.js} +0 -0
  92. /package/dist/scripts/{4309-0ef925ad83-lite.chunk.js → 4309-51c41f8605-lite.chunk.js} +0 -0
  93. /package/dist/scripts/{4343-0c2608cf4a-lite.chunk.js → 4343-9abe546d02-lite.chunk.js} +0 -0
  94. /package/dist/scripts/{4380-4e73d869f4-lite.chunk.js → 4380-11c6854916-lite.chunk.js} +0 -0
  95. /package/dist/scripts/{4541-ca3cb5ca84-lite.chunk.js → 4541-707fb37c69-lite.chunk.js} +0 -0
  96. /package/dist/scripts/{4722-dffbe59069-lite.chunk.js → 4722-54fc5063c8-lite.chunk.js} +0 -0
  97. /package/dist/scripts/{482-dd3e4495d9-lite.chunk.js → 482-848dc991e5-lite.chunk.js} +0 -0
  98. /package/dist/scripts/{4870-fd31df3ed1-lite.chunk.js → 4870-7aa1c50fa9-lite.chunk.js} +0 -0
  99. /package/dist/scripts/{4893-f30cd7ddcc-lite.chunk.js → 4893-f19c6f1593-lite.chunk.js} +0 -0
  100. /package/dist/scripts/{5092-bc5e96f0b8-lite.chunk.js → 5092-ddb8bda78a-lite.chunk.js} +0 -0
  101. /package/dist/scripts/{5585-5d8a4ca9fc-lite.chunk.js → 5585-f0349af1a7-lite.chunk.js} +0 -0
  102. /package/dist/scripts/{5606-f823519569-lite.chunk.js → 5606-5f241a1a57-lite.chunk.js} +0 -0
  103. /package/dist/scripts/{5652-25eff3d143-lite.chunk.js → 5652-24d17ceda1-lite.chunk.js} +0 -0
  104. /package/dist/scripts/{57-3acb9a9d4c-lite.chunk.js → 57-9d4fb5378a-lite.chunk.js} +0 -0
  105. /package/dist/scripts/{5875-32c6f150e0-lite.chunk.js.LICENSE.txt → 5875-380883e8d7-lite.chunk.js.LICENSE.txt} +0 -0
  106. /package/dist/scripts/{5877-a6684333e7-lite.chunk.js → 5877-d47251db33-lite.chunk.js} +0 -0
  107. /package/dist/scripts/{5914-cf8eadac4d-lite.chunk.js → 5914-5c809bdca8-lite.chunk.js} +0 -0
  108. /package/dist/scripts/{5956-af12da8fa0-lite.chunk.js → 5956-51289b18c5-lite.chunk.js} +0 -0
  109. /package/dist/scripts/{5974-a82ebc9ec9-lite.chunk.js → 5974-1a23d799ca-lite.chunk.js} +0 -0
  110. /package/dist/scripts/{6080-100066a582-lite.chunk.js → 6080-b70f0ee44e-lite.chunk.js} +0 -0
  111. /package/dist/scripts/{6118-fac4558e19-lite.chunk.js.LICENSE.txt → 6118-c2e0ef9bf0-lite.chunk.js.LICENSE.txt} +0 -0
  112. /package/dist/scripts/{6134-7d899fc7d5-lite.chunk.js → 6134-f44bf3e9f8-lite.chunk.js} +0 -0
  113. /package/dist/scripts/{614-6c4e1214fe-lite.chunk.js → 614-c14e73561a-lite.chunk.js} +0 -0
  114. /package/dist/scripts/{6235-ebc3aa5f1c-lite.chunk.js → 6235-4a5f6dee97-lite.chunk.js} +0 -0
  115. /package/dist/scripts/{6263-9bab78f67d-lite.chunk.js → 6263-6d6e717d81-lite.chunk.js} +0 -0
  116. /package/dist/scripts/{6274-cb4b511ee7-lite.chunk.js → 6274-9f5c641ca9-lite.chunk.js} +0 -0
  117. /package/dist/scripts/{6290-47dfcd7e4c-lite.chunk.js → 6290-38a35b6443-lite.chunk.js} +0 -0
  118. /package/dist/scripts/{6368-583aa3a89d-lite.chunk.js → 6368-6e6e962492-lite.chunk.js} +0 -0
  119. /package/dist/scripts/{6370-d6afc1876b-lite.chunk.js → 6370-407ad0543a-lite.chunk.js} +0 -0
  120. /package/dist/scripts/{6381-16b5dcf5d6-lite.chunk.js → 6381-4871c4a553-lite.chunk.js} +0 -0
  121. /package/dist/scripts/{6450-7e8f6a7a4f-lite.chunk.js → 6450-1faec22b11-lite.chunk.js} +0 -0
  122. /package/dist/scripts/{6465-ced8580921-lite.chunk.js → 6465-6bbc03a3e5-lite.chunk.js} +0 -0
  123. /package/dist/scripts/{6480-c5a48da666-lite.chunk.js → 6480-b6ea18383c-lite.chunk.js} +0 -0
  124. /package/dist/scripts/{6493-c0cb73766e-lite.chunk.js → 6493-7497177528-lite.chunk.js} +0 -0
  125. /package/dist/scripts/{6507-b657f7863a-lite.chunk.js → 6507-2d804921e2-lite.chunk.js} +0 -0
  126. /package/dist/scripts/{6604-2ff61304ce-lite.chunk.js → 6604-50d7e462ee-lite.chunk.js} +0 -0
  127. /package/dist/scripts/{6725-692a6bf6d9-lite.chunk.js → 6725-47d9b15d14-lite.chunk.js} +0 -0
  128. /package/dist/scripts/{6736-ac71f42fe7-lite.chunk.js.LICENSE.txt → 6736-807f6b6c82-lite.chunk.js.LICENSE.txt} +0 -0
  129. /package/dist/scripts/{6786-a3bccf310a-lite.chunk.js → 6786-656b43bc69-lite.chunk.js} +0 -0
  130. /package/dist/scripts/{6821-6859424d65-lite.chunk.js → 6821-a985554f7d-lite.chunk.js} +0 -0
  131. /package/dist/scripts/{6873-ea0453514a-lite.chunk.js → 6873-e73c869b94-lite.chunk.js} +0 -0
  132. /package/dist/scripts/{7045-2ff6b61236-lite.chunk.js → 7045-fcad8b1914-lite.chunk.js} +0 -0
  133. /package/dist/scripts/{7056-108f16b738-lite.chunk.js → 7056-91f8a7e829-lite.chunk.js} +0 -0
  134. /package/dist/scripts/{7115-34ee1a7f1b-lite.chunk.js → 7115-04d195d4c9-lite.chunk.js} +0 -0
  135. /package/dist/scripts/{7128-ea83e304a4-lite.chunk.js → 7128-49e5eafed1-lite.chunk.js} +0 -0
  136. /package/dist/scripts/{7172-017ad7330a-lite.chunk.js → 7172-f7823cfc9e-lite.chunk.js} +0 -0
  137. /package/dist/scripts/{7178-39887eaa85-lite.chunk.js → 7178-d519632282-lite.chunk.js} +0 -0
  138. /package/dist/scripts/{7307-0d4940037a-lite.chunk.js → 7307-35d2e8ee96-lite.chunk.js} +0 -0
  139. /package/dist/scripts/{7332-f542edf322-lite.chunk.js → 7332-ce12bfa834-lite.chunk.js} +0 -0
  140. /package/dist/scripts/{7407-0168b2e238-lite.chunk.js → 7407-db6e0f1149-lite.chunk.js} +0 -0
  141. /package/dist/scripts/{7416-f33a86fe74-lite.chunk.js.LICENSE.txt → 7416-571043c67f-lite.chunk.js.LICENSE.txt} +0 -0
  142. /package/dist/scripts/{7506-1637b67aea-lite.chunk.js → 7506-df6e972a6c-lite.chunk.js} +0 -0
  143. /package/dist/scripts/{7552-7934b01e63-lite.chunk.js → 7552-92ba8f6e32-lite.chunk.js} +0 -0
  144. /package/dist/scripts/{7767-55b704ca34-lite.chunk.js → 7767-8fcbc6668d-lite.chunk.js} +0 -0
  145. /package/dist/scripts/{7804-c36ec082ed-lite.chunk.js → 7804-1e4edb922b-lite.chunk.js} +0 -0
  146. /package/dist/scripts/{7855-b5df5613a6-lite.chunk.js → 7855-f282624e12-lite.chunk.js} +0 -0
  147. /package/dist/scripts/{7888-eec05aef3e-lite.chunk.js → 7888-2f6d672f99-lite.chunk.js} +0 -0
  148. /package/dist/scripts/{7925-a0e0e07c8a-lite.chunk.js → 7925-1236157fe7-lite.chunk.js} +0 -0
  149. /package/dist/scripts/{7989-5756a29b8c-lite.chunk.js.LICENSE.txt → 7989-9c4168b26f-lite.chunk.js.LICENSE.txt} +0 -0
  150. /package/dist/scripts/{8009-fa524a535b-lite.chunk.js → 8009-81136f8a63-lite.chunk.js} +0 -0
  151. /package/dist/scripts/{8025-588cf2d344-lite.chunk.js → 8025-d290070830-lite.chunk.js} +0 -0
  152. /package/dist/scripts/{8028-05c479dae2-lite.chunk.js → 8028-1da9f94ced-lite.chunk.js} +0 -0
  153. /package/dist/scripts/{8038-c697cf1f59-lite.chunk.js → 8038-1cecda6f42-lite.chunk.js} +0 -0
  154. /package/dist/scripts/{8046-d2ff018690-lite.chunk.js → 8046-f5a9bca578-lite.chunk.js} +0 -0
  155. /package/dist/scripts/{8056-16c77138bb-lite.chunk.js → 8056-a90b8b08a9-lite.chunk.js} +0 -0
  156. /package/dist/scripts/{8114-7054c146ac-lite.chunk.js → 8114-a67382343b-lite.chunk.js} +0 -0
  157. /package/dist/scripts/{8187-b53463d2dd-lite.chunk.js → 8187-5b85d31822-lite.chunk.js} +0 -0
  158. /package/dist/scripts/{823-4ce6c6b235-lite.chunk.js → 823-a7b464433f-lite.chunk.js} +0 -0
  159. /package/dist/scripts/{8252-f58b73e4c3-lite.chunk.js → 8252-09f92bf0cb-lite.chunk.js} +0 -0
  160. /package/dist/scripts/{8323-ba2c3375bb-lite.chunk.js.LICENSE.txt → 8323-f335379d28-lite.chunk.js.LICENSE.txt} +0 -0
  161. /package/dist/scripts/{8339-783d504f1e-lite.chunk.js → 8339-360d7818bc-lite.chunk.js} +0 -0
  162. /package/dist/scripts/{8377-6b806f657a-lite.chunk.js → 8377-63f0bb9bb3-lite.chunk.js} +0 -0
  163. /package/dist/scripts/{8466-97469111b1-lite.chunk.js → 8466-76ffd5eea9-lite.chunk.js} +0 -0
  164. /package/dist/scripts/{8472-5752b410f1-lite.chunk.js → 8472-4abd2e4ce3-lite.chunk.js} +0 -0
  165. /package/dist/scripts/{8801-7bf5ae6655-lite.chunk.js → 8801-901f330694-lite.chunk.js} +0 -0
  166. /package/dist/scripts/{8868-5f79a4612e-lite.chunk.js → 8868-013d237d7f-lite.chunk.js} +0 -0
  167. /package/dist/scripts/{8955-4e9d16032b-lite.chunk.js → 8955-28b5d3a3c4-lite.chunk.js} +0 -0
  168. /package/dist/scripts/{8976-a424e72e1c-lite.chunk.js.LICENSE.txt → 8976-055dfe3ebd-lite.chunk.js.LICENSE.txt} +0 -0
  169. /package/dist/scripts/{9001-48b1fb1888-lite.chunk.js → 9001-785d4f1808-lite.chunk.js} +0 -0
  170. /package/dist/scripts/{9035-69cd6bc42c-lite.chunk.js → 9035-31ab27fdbc-lite.chunk.js} +0 -0
  171. /package/dist/scripts/{9060-b1cc635585-lite.chunk.js → 9060-c1cfedd62b-lite.chunk.js} +0 -0
  172. /package/dist/scripts/{9154-e03891eb48-lite.chunk.js → 9154-e82bdb0e7c-lite.chunk.js} +0 -0
  173. /package/dist/scripts/{9242-1cdfaa46d8-lite.chunk.js → 9242-89631c2740-lite.chunk.js} +0 -0
  174. /package/dist/scripts/{9455-210c08b40a-lite.chunk.js → 9455-ff4f3ca528-lite.chunk.js} +0 -0
  175. /package/dist/scripts/{9478-12ec0a2fb9-lite.chunk.js.LICENSE.txt → 9478-223792d0e1-lite.chunk.js.LICENSE.txt} +0 -0
  176. /package/dist/scripts/{9552-85c8dd040b-lite.chunk.js → 9552-2b7f33d5ec-lite.chunk.js} +0 -0
  177. /package/dist/scripts/{9655-0a4dbcb746-lite.chunk.js → 9655-bacd4e7790-lite.chunk.js} +0 -0
  178. /package/dist/scripts/{9686-2de5bea6a9-lite.chunk.js → 9686-de11f8902f-lite.chunk.js} +0 -0
  179. /package/dist/scripts/{bundle-1127604e6b.min.js.LICENSE.txt → bundle-4364d09ef6.min.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
- /*! For license information please see 8976-a424e72e1c-lite.chunk.js.LICENSE.txt */
1
+ /*! For license information please see 8976-055dfe3ebd-lite.chunk.js.LICENSE.txt */
2
2
  "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[8976],{38976:(t,e,r)=>{r.d(e,{h:()=>wr,e:()=>vr});var n=r(1024),o=r.n(n),i=r(65858),a=r(23481),c=r(58130),l=r(2786),u=r(83914),s=r(99742),f=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=window.location.pathname,n=r;return t&&(n+=window.location.search),e?encodeURIComponent(n):n};function h(t,e){var r=t===e?"bg-info":"bg-light";return"".concat("rounded-circle mx-2 HuHpb"," ").concat(r)}function p(t){return o().createElement("div",{className:"w-100 d-flex align-items-center justify-content-center"},t.crumbs.map((function(e){return o().createElement("div",{className:h(t.currentStep,e),key:e})})))}var d="https://www.clickview.com.au",m="https://www.clickview.co.uk",y="https://www.clickview.co.nz",v="https://www.clickvieweducation.com",g="https://www.clickviewsupport.com/hc/en-au",b="https://www.clickviewsupport.com/hc/en-au#gb",w="https://www.clickviewsupport.com/hc/en-au#nz",x="https://www.clickviewsupport.com/hc/en-au#us",E={getMarketingUrlForGeoLocation:function(t){return{au:d,uk:m,us:v,gb:m,gg:m,im:m,je:m,ie:m,nz:y}[null==t?void 0:t.countryCode]||v},getMarketingSalesContactForGeoLocation:function(t){var e=this.getMarketingUrlForGeoLocation(t);return t&&"nz"===t.countryCode?e+"/contact-us/":e+"/contact-us/trial/"},getTermsAndConditionsLink:function(t){return this.getMarketingUrlForGeoLocation(t)+"/terms-and-conditions/"},getSupportUrlForGeoLocation:function(t){return{au:g,uk:b,us:x,gb:b,gg:b,im:b,je:b,ie:b,nz:w}[null==t?void 0:t.countryCode]||x},getLoginLink:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e="/login";return t.length?"".concat(e,"?redirectUrl=").concat(t):"/login"}};function S(t){return o().createElement("a",{onClick:t.onClick,className:"cursor-pointer d-inline-flex align-items-center"},o().createElement(u.x,{svgName:c.vn.ChevronLeft,size:u.S.Medium}),t.children)}var L=r(83345),k=r(49985),j=r(55460);function N(t){var e=t.href,r=t.className,o=t.newTab,i=t.children,a={onClick:function(r){var n;r.preventDefault(),null===(n=t.onClick)||void 0===n||n.call(t,r),t.analyticsData&&t.analyticsOptions&&k.k.logUserAction(Object.assign({href:e},t.analyticsData),t.analyticsOptions),j.LocationUtils.PageLoad(e,o)},href:e,className:r};return n.createElement("a",Object.assign({},a),i)}var O="signUp.general.termsAndConditions";function I(t){return o().createElement("span",{className:"text-center text-md mt-2 text-normal"},o().createElement(L.x,{phrase:"text",namespace:O})," ",o().createElement(N,{href:t.link,onClick:t.onClick,className:"info-link",newTab:!0},o().createElement(L.x,{phrase:"link",namespace:O})))}var A="signUp.general.existingAccountSignIn";function _(t){return o().createElement(o().Fragment,null,o().createElement(L.x,{phrase:"text",namespace:A}),o().createElement(N,{href:t.link,onClick:t.onClick,className:"info-link pl-1"},o().createElement(L.x,{phrase:"link",namespace:A})))}const C="Hpi0T",P="KsojV";function T(t){var e=t.geoLocation,r=t.currentStep,n=t.previousStep,a=t.hasPreviousStep,h=t.showBreadCrumbs,d=t.showBackButton,m=t.closeApp,y=t.children,v=E.getTermsAndConditionsLink(e),g=["enter-email","find-school"];function b(){return["enter-email","find-school","cant-find-school"].includes(r)}function w(){n(),t.logUserAction({},{actionType:i.UserAction.Click,descriptor:i.SignUpDescriptors.Back,workflowPhase:i.WorkflowPhase.Back})}var x=["enter-email","find-school","cant-find-school"].includes(t.currentStep),L=x?"".concat(P," ").concat("TJ9fO"):P;return o().createElement("div",{className:L},o().createElement("div",{className:"row mx-0 p-3 ".concat(C)},o().createElement("div",{className:"col d-lg-none"},a()&&b()&&d&&o().createElement(S,{onClick:w})),o().createElement("div",{className:"col col-lg-6 px-0"},o().createElement("div",{className:"JkF9k"},o().createElement("div",{className:"d-none d-lg-block"},x?o().createElement(l.Yo,null):o().createElement(l.$S,null)),o().createElement("div",{className:"d-block d-lg-none"},o().createElement(l.$S,null)))),o().createElement("div",{className:"col col-lg-6 d-flex flex-row justify-content-between px-0"},o().createElement("div",{className:"px-3"},o().createElement("div",{className:"d-none d-lg-block"},a()&&b()&&d&&o().createElement(S,{onClick:w}))),o().createElement("a",{onClick:m,className:"cursor-pointer d-inline-flex align-items-center"},o().createElement(u.x,{svgName:c.vn.Close,size:u.S.Medium})))),o().createElement("div",{className:"row mx-0 flex-grow-1 ".concat(C)},x&&o().createElement("div",{className:"col-6 px-0 d-none d-lg-block"},o().createElement("div",{className:"h-100 d-flex align-items-center justify-content-center"},o().createElement("img",{src:s.W.SignUp.POPUP_DASHBOARD,className:"w-100 p-4 pb-5"}))),o().createElement("div",{className:"px-4 pt-0 pb-4 ".concat(x?"col-12 col-lg-6":"col-12")},o().createElement("div",{className:"d-flex flex-column h-100"},g.includes(t.currentStep)&&h&&o().createElement("div",{className:"d-flex mb-2"},o().createElement(p,{crumbs:g,currentStep:r})),o().createElement("div",{className:"position-relative flex-grow-1"},y),o().createElement("div",{className:"position-relative text-center"},"select-type"===r&&o().createElement(_,{link:E.getLoginLink(f()),onClick:function(){t.logUserAction({},{actionType:i.UserAction.Click,descriptor:i.SignUpDescriptors.SignIn})}}),"enter-email"===r&&o().createElement(I,{link:v,onClick:function(){t.logUserAction({},{actionType:i.UserAction.Click,descriptor:i.SignUpDescriptors.TermsAndConditions})}}))))))}T.defaultProps={showBreadCrumbs:!0,showBackButton:!0};var U=r(2903);function F(t){var e=t.geoLocation,r=t.currentStep,n=t.previousStep,a=t.hasPreviousStep,c=t.showBreadCrumbs,u=t.showBackButton,s=t.children,f=E.getTermsAndConditionsLink(e);return o().createElement("div",{className:"d-flex flex-column justify-content-between px-4 py-0 ".concat("Ct4Ij")},o().createElement("div",{className:"d-flex mt-3 mb-2"},c&&o().createElement(p,{crumbs:["select-type","enter-email","find-school"],currentStep:r})),o().createElement("div",{className:"position-relative mx-auto w-100",style:{maxWidth:"select-type"===r?"42rem":["enter-email","find-school","cant-find-school"].includes(r)?"23.125rem":"30rem"}},o().createElement("div",{className:"d-flex flex-row justify-content-center align-items-center mt-2 mb-3"},a()&&u&&["enter-email","find-school","cant-find-school"].includes(r)&&o().createElement(S,{onClick:function(){n(),t.logUserAction({step:r},{actionType:i.UserAction.Click,descriptor:i.SignUpDescriptors.Back,workflowPhase:i.WorkflowPhase.Back})}}),o().createElement("div",{className:"d-flex justify-content-center align-items-center px-2 ".concat("RcL6k")},o().createElement(l.$S,null))),s),o().createElement("div",{className:"position-relative mb-4 text-center"},"select-type"===r&&o().createElement(_,{link:E.getLoginLink(),onClick:function(){t.logUserAction({},{actionType:i.UserAction.Click,descriptor:i.SignUpDescriptors.SignIn})}}),["enter-email","find-school"].includes(r)&&o().createElement(I,{link:f,onClick:function(){t.logUserAction({},{actionType:i.UserAction.Click,descriptor:i.SignUpDescriptors.TermsAndConditions})}})))}var G;function D(t){return D="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},D(t)}function M(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==D(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==D(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===D(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}F.defaultProps={showBreadCrumbs:!0,showBackButton:!0};var R={"active-trial":T,"cant-find-school":T,"enter-email":T,"existing-customer":T,"expired-trial":T,"find-school":T,"select-type":T,"trial-not-available":T,"verify-account":T,unsupported:T},B={"active-trial":F,"cant-find-school":F,"enter-email":F,"existing-customer":F,"expired-trial":F,"find-school":F,"select-type":F,"trial-not-available":F,"verify-account":F,unsupported:F},K=(M(G={},U.c.FullPage,B),M(G,U.c.Popup,R),G),$=r(99940);function Y(t){return Y="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},Y(t)}function W(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function z(t,e){if(e&&("object"===Y(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function H(t){var e="function"==typeof Map?new Map:void 0;return H=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 q(t,arguments,X(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),V(n,t)},H(t)}function q(t,e,r){return q=J()?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&&V(o,r.prototype),o},q.apply(null,arguments)}function J(){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 V(t,e){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},V(t,e)}function X(t){return X=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},X(t)}var Z=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&&V(t,e)}(i,t);var e,r,n,o=(e=i,r=J(),function(){var t,n=X(e);if(r){var o=X(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return z(this,t)});function i(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Error";return W(this,i),(e=o.call(this,r)).body=t,e}return n=i,Object.defineProperty(n,"prototype",{writable:!1}),n}(H(Error));function Q(t){return Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Q(t)}function tt(){tt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},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 h?e:h,a=Object.create(i.prototype),c=new k(o||[]);return n(a,"_invoke",{value:x(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 h(){}function p(){}function d(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(j([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=d.prototype=h.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Q(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 x(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 S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(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:N}}function N(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,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=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(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:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var et=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 rt(t){var e={method:$.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===$.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 nt={asyncFetch:function(t){return et(this,void 0,void 0,tt().mark((function e(){var r,n,o;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=rt(t),e.next=3,fetch(r.url,r.init);case 3:if((n=e.sent).ok){e.next=9;break}return e.next=7,n.json();case 7:throw o=e.sent,new Z(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 et(this,void 0,void 0,tt().mark((function e(){var r,n;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=rt(t),e.next=3,fetch(r.url,r.init);case 3:if((n=e.sent).ok){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,n.text();case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e)})))},fetch:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){var e=rt(t);return fetch(e.url,e.init).then((function(t){if(204!==t.status)return t.json()})).then((function(e){return t.success&&t.success(e),e})).catch((function(e){return t.error&&t.error(),e})).finally((function(){t.always&&t.always()}))}))};function ot(t){return ot="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},ot(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 h?e:h,a=Object.create(i.prototype),c=new k(o||[]);return n(a,"_invoke",{value:x(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 h(){}function p(){}function d(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(j([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=d.prototype=h.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==ot(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 x(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 S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(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:N}}function N(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,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=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(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:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var at=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())}))},ct={checkTrialStatus:function(t,e,r,n){var o={email:t.email};nt.fetch({url:"/api/user/trials/status",data:o,success:e,error:r,always:n})},checkProspectTrialStatus:function(t,e,r,n){var o="/api/user/trials/prospect/".concat(t.prospectId,"/status");nt.fetch({url:o,success:e,error:r,always:n})},createTrial:function(t){return at(this,void 0,void 0,it().mark((function e(){var r;return it().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={prospectId:t.prospectId,firstName:"Trial",surname:"User",email:t.email,userType:t.userType,accessPolicy:t.accessPolicy,appLink:null==t?void 0:t.appLink},e.abrupt("return",nt.asyncFetch({url:"/api/user/trials",method:$.k.POST,data:r}));case 2:case"end":return e.stop()}}),e)})))},resendTrialEmail:function(t,e){return at(this,void 0,void 0,it().mark((function r(){var n;return it().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={email:e.email,appLink:null==e?void 0:e.appLink},r.abrupt("return",nt.asyncFetch({url:"/api/user/trials/users/".concat(t,"/send-activation-email"),method:$.k.POST,data:n}));case 2:case"end":return r.stop()}}),r)})))}},lt=r(1048);function ut(t){return ut="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},ut(t)}function st(){st=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 h?e:h,a=Object.create(i.prototype),c=new k(o||[]);return n(a,"_invoke",{value:x(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 h(){}function p(){}function d(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(j([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=d.prototype=h.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==ut(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 x(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 S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(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:N}}function N(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,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=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(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:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function ft(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 ht=["us","au","nz","gb","gg","im","je","ie"];function pt(){var t,e,r=(t=o().useState(null),e=2,function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,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 ft(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)?ft(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),n=r[0],i=r[1];function a(t){var e;ht.includes(null===(e=null==t?void 0:t.countryCode)||void 0===e?void 0:e.toLowerCase())?i(t):i({countryCode:"us"})}return o().useEffect((function(){!function(){var t,e,r,o;t=this,e=void 0,r=void 0,o=st().mark((function t(){return st().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,t.next=5,nt.fetch({url:"/api/geolocation"});case 5:a(t.sent),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(2),a(null);case 12:case"end":return t.stop()}}),t,null,[[2,9]])})),new(r||(r=Promise))((function(n,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(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}l((o=o.apply(t,e||[])).next())}))}()}),[]),n}function dt(t){return dt="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},dt(t)}function mt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==dt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==dt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===dt(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yt(t){return function(t){if(Array.isArray(t))return bt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||gt(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vt(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)||gt(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 gt(t,e){if(t){if("string"==typeof t)return bt(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)?bt(t,e):void 0}}function bt(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 wt={userId:void 0,email:"",type:void 0,schoolLocality:void 0,schoolName:void 0,schoolPostCode:void 0,longitude:void 0,latitude:void 0,prospectId:void 0,city:void 0,schoolType:void 0,country:void 0,province:void 0,appLink:void 0};var xt,Et,St=r(2102);function Lt(t){return Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lt(t)}function kt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Lt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==Lt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===Lt(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}!function(t){t.InvalidEmail="invalid-email",t.Unavailable="unavailable",t.Expired="expired",t.Active="active",t.NotRequired="not-required",t.Available="available",t.Unsupported="unsupported"}(xt||(xt={}));var jt=(kt(Et={},xt.InvalidEmail,"enter-email"),kt(Et,xt.Active,"active-trial"),kt(Et,xt.Available,"find-school"),kt(Et,xt.Expired,"expired-trial"),kt(Et,xt.NotRequired,"existing-customer"),kt(Et,xt.Unavailable,"trial-not-available"),kt(Et,xt.Unsupported,"unsupported"),Et);function Nt(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 Ot(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)?Ot(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 Ot(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 It=new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/),At="signUp.enterEmailStepItem",_t=a.T.encloseNamespace(At),Ct=r(33003),Pt=r.n(Ct),Tt=r(63093);function Ut(t){return Ut="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},Ut(t)}function Ft(){Ft=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 h?e:h,a=Object.create(i.prototype),c=new k(o||[]);return n(a,"_invoke",{value:x(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 h(){}function p(){}function d(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(j([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=d.prototype=h.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Ut(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 x(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 S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(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:N}}function N(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,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=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(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:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var Gt=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())}))},Dt={config:function(){return Gt(this,void 0,void 0,Ft().mark((function t(){return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",nt.asyncFetch({url:"/api/config"}));case 1:case"end":return t.stop()}}),t)})))},version:function(){return Gt(this,void 0,void 0,Ft().mark((function t(){return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",nt.asyncFetchPlain({url:"/api/version"}));case 1:case"end":return t.stop()}}),t)})))}};function Mt(t){return Mt="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},Mt(t)}function Rt(){Rt=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 h?e:h,a=Object.create(i.prototype),c=new k(o||[]);return n(a,"_invoke",{value:x(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 h(){}function p(){}function d(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(j([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=d.prototype=h.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Mt(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 x(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 S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(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:N}}function N(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,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=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(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:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var Bt=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())}))},Kt={au:"cv-ap-southeast-1",uk:"cv-eu-west-1",us:"cv-ap-southeast-1",gb:"cv-eu-west-1",gg:"cv-eu-west-1",im:"cv-eu-west-1",je:"cv-eu-west-1",ie:"cv-eu-west-1",nz:"cv-ap-southeast-1"},$t={getConfig:function(){return Bt(this,void 0,void 0,Rt().mark((function t(){return Rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Dt.config();case 2:return t.t0=t.sent,t.next=5,Dt.version();case 5:return t.t1=t.sent,t.abrupt("return",{config:t.t0,version:t.t1});case 7:case"end":return t.stop()}}),t)})))},getClient:function(t){return Bt(this,void 0,void 0,Rt().mark((function e(){var r,n,o,i;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$t.getConfig();case 2:return r=e.sent,n=r.config,o=r.version,i=n.braze[Kt[null==t?void 0:t.countryCode]],e.abrupt("return",(0,Tt.getInstance)({baseUrl:i.url,apiKey:i.apiKey,productVersion:o,productName:"lite.web",enableLogging:!1,automaticallyShowInAppMessages:!1}));case 7:case"end":return e.stop()}}),e)})))},hashedEmail:function(t){var e=t.trim().toLowerCase();return Pt().hash(e)}};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 Wt(){Wt=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 h?e:h,a=Object.create(i.prototype),c=new k(o||[]);return n(a,"_invoke",{value:x(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 h(){}function p(){}function d(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(j([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=d.prototype=h.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,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 x(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 S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(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:N}}function N(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,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=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(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:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function zt(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 Ht(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)?Ht(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 Ht(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 qt="signUp.unsupportedStepItem",Jt=a.T.encloseNamespace(qt);function Vt(){return o().createElement(o().Fragment,null,o().createElement("h3",{className:"text-center font-weight-500 px-2 px-lg-4"},o().createElement(L.x,{namespace:qt,phrase:"schoolMessageTitle"})),o().createElement("p",{className:"text-center px-2 px-lg-4"},o().createElement(L.x,{namespace:qt,phrase:"schoolMessageDescription"})))}var Xt="signUp.expiredTrialStepItem";function Zt(t){if((null==t?void 0:t.previousStepIds)&&"find-school"===t.previousStepIds[t.previousStepIds.length-1]){var e=t.schoolName||"Your school";return o().createElement("h3",{className:"text-center font-weight-500"},o().createElement(L.x,{namespace:Xt,phrase:"schoolMessageTitle",options:{schoolName:e}}))}return o().createElement("h3",{className:"text-center font-weight-500"},o().createElement(L.x,{namespace:Xt,phrase:"userMessageTitle"}))}function Qt(t){return Qt="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},Qt(t)}function te(){te=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 h?e:h,a=Object.create(i.prototype),c=new k(o||[]);return n(a,"_invoke",{value:x(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 h(){}function p(){}function d(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(j([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=d.prototype=h.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Qt(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 x(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 S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(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:N}}function N(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,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=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(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:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var ee={search:function(t,e,r,n){var o={Longitude:t.longitude,Latitude:t.latitude};nt.fetch({url:"/api/prospects/search",data:o,success:e,error:r,always:n})},create:function(t){return e=this,r=void 0,n=void 0,o=te().mark((function e(){return te().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",nt.asyncFetch({url:"/api/prospects",method:$.k.POST,data:t}));case 1: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}};const re="LIq3Y",ne="aFSaR",oe="hM9s4",ie="Sp6A5";function ae(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,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 ce(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ce(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ce(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var le="signUp.searchSchoolStepGroup",ue=a.T.encloseNamespace(le);function se(t){var e=t.filteredSchoolsList,r=t.getSchoolName,n=t.onSchoolSuggestionClick;return o().createElement(o().Fragment,null,e.map((function(t){return o().createElement("div",{className:ie,key:t.id,onClick:function(){return n(t)}},r(t))})))}function fe(t){return o().createElement("div",{className:"info-link ".concat("xSdn2"),onClick:t.handleNoSuggestion},o().createElement(L.x,{namespace:le,phrase:"cantFindSchool"}))}function he(t){var e=ae(o().useState(!0),2),r=e[0],n=e[1],a=ae(o().useState(t.schoolName&&t.schoolPostCode?t.schoolName+", "+t.schoolPostCode:t.schoolName?t.schoolName:""),2),c=a[0],l=a[1],u=ae(o().useState(!!t.prospectId),2),s=u[0],f=u[1],h=ae(o().useState(),2),p=h[0],d=h[1],m=ae(o().useState(),2),y=m[0],v=m[1];function g(t){return t.name}function b(){return r&&!s}function w(){return!r&&!s&&!(null==y?void 0:y.length)}return o().useEffect((function(){if(c.length||s)if(s)v(void 0);else{var t=null==p?void 0:p.filter((function(t){return g(t).toLocaleLowerCase().includes(c.toLocaleLowerCase())}));v(t)}else v(p)}),[c,p,s]),o().useEffect((function(){s||(n(!0),ee.search({latitude:t.latitude,longitude:t.longitude},(function(t){return d(t)}),null,(function(){return n(!1)})))}),[s]),o().useEffect((function(){t.prospectId?f(!0):f(!1)}),[t.prospectId]),o().useEffect((function(){(null==y?void 0:y.length)||"cant-find-school"===t.currentStepId?"verify-account"===t.currentStepId||t.setNextStepId("verify-account"):t.setNextStepId("cant-find-school")}),[y]),o().createElement("div",{className:"mb-2 position-relative"},o().createElement("input",{value:c,onChange:function(e){(t.schoolName||t.setProspectId)&&t.clearStepItemData(),e.target.value!==c&&l(e.target.value)},className:"form-control ".concat((null==y?void 0:y.length)||b()||w()?ne:re),type:"text",autoComplete:"off",placeholder:ue("schoolInputPlaceholder"),disabled:t.disabled}),o().createElement("div",{className:"position-absolute w-100"},(null==y?void 0:y.length)?o().createElement("div",{className:oe},o().createElement(se,{filteredSchoolsList:y,onSchoolSuggestionClick:function(e){l(g(e)),t.setProspectId(e.id),t.setSchoolName(e.name),t.setSchoolType(e.prospectType),e.postCode.length&&t.setSchoolPostCode(e.postCode),e.countryCode.length&&t.setCountry(e.countryCode)},getSchoolName:g})):b()&&o().createElement("div",{className:oe},o().createElement("div",{className:"o1CUJ"},o().createElement(L.x,{namespace:le,phrase:"schoolLoadingText"}))),w()&&o().createElement("div",{className:oe},o().createElement(fe,{handleNoSuggestion:function(){t.nextStep(),t.logUserAction({},{actionType:i.UserAction.Click,descriptor:i.SignUpDescriptors.CantFindSchool,workflowPhase:i.WorkflowPhase.Next})}}))))}var pe=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 de="__googleMapsScriptId";var me;!function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"}(me||(me={}));class ye{constructor({apiKey:t,authReferrerPolicy:e,channel:r,client:n,id:o=de,language:i,libraries:a=[],mapIds:c,nonce:l,region:u,retries:s=3,url:f="https://maps.googleapis.com/maps/api/js",version:h}){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||de,this.language=i,this.libraries=a,this.mapIds=c,this.nonce=l,this.region=u,this.retries=s,this.url=f,this.version=h,ye.instance){if(!pe(this.options,ye.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(ye.instance.options)}`);return ye.instance}ye.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?me.FAILURE:this.done?me.SUCCESS:this.loading?me.LOADING:me.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 ve(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 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}}(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 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){return new ye({apiKey:t.apiKey,version:"weekly",libraries:t.libraries,retries:3})}function we(t){var e={apiKey:t.apiKey,libraries:t.libraries||["places"]},r=ve(o().useState(!1),2),n=r[0],i=r[1],a=ve(o().useState(be(e)),2),c=a[0],l=a[1];function u(t,r){c?c.loadCallback((function(e){if(e)return i(!1),void(r&&r(e));i(!0),t&&t()})):l(be(e))}return o().useEffect((function(){u()}),[]),{loader:c,scriptLoaded:n,onGoogleApiReady:u}}function xe(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 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&&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 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 Se=function(t){var e,r,n,o,i,a=t.formatted_address,c=xe(t.address_components);try{for(c.s();!(i=c.n()).done;){var l,u=i.value,s=xe(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 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 ke(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)?ke(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 ke(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 je=r(28329);function Ne(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,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 Oe(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Oe(t,e):void 0}}(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 Oe(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Ie=r(10874);function Ae(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,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 _e(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_e(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _e(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Ce="signUp.searchSchoolStepGroup",Pe=a.T.encloseNamespace(Ce);function Te(t){var e=t.predictions,r=t.getPlaceInfo;return o().createElement(o().Fragment,null,e.map((function(t){return o().createElement("div",{className:ie,key:t.place_id,onClick:function(){return r(t)}},t.description)})))}function Ue(t){var e,r,n,a=o().useRef(),l=Ae(o().useState(!1),2),s=l[0],f=l[1],h=Ae(o().useState(null!==(e=t.locality)&&void 0!==e?e:""),2),p=h[0],d=h[1],m=function(t){var e=t.search,r=t.makePredicition,n=t.geoLocation,i=we({apiKey:t.apiKey}).scriptLoaded,a=Ne(o().useState(),2),c=a[0],l=a[1];o().useEffect((function(){i&&l(new google.maps.places.AutocompleteService)}),[i]);var u=(0,je.N)(e,300),s=Ne(o().useState(),2),f=s[0],h=s[1];function p(t,e){e===google.maps.places.PlacesServiceStatus.OK&&t?h(t):h(void 0)}return o().useEffect((function(){c&&(0!==(null==u?void 0:u.length)&&r?c.getPlacePredictions({input:u,componentRestrictions:{country:n.countryCode},region:n.countryCode,types:["locality","sublocality","postal_code"]},p):h(void 0))}),[u,r,c]),{localityPredicitions:f,getPlaceInfo:function(t,e,r){new google.maps.places.PlacesService(e.current).getDetails({placeId:t.place_id,fields:["geometry","address_components","formatted_address"],region:n.countryCode},(function(t,e){if(e===google.maps.places.PlacesServiceStatus.OK){var n=t.geometry.location.lng(),o=t.geometry.location.lat(),i=Se(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:s,geoLocation:t.geoLocation,apiKey:t.googleMapsApiKey}),y=m.localityPredicitions,v=m.getPlaceInfo,g=function(t){var e=Le(o().useState(!1),2),r=e[0],n=e[1],i=Le(o().useState({}),2),a=i[0],c=i[1],l=we(t).onGoogleApiReady;function u(t){var e=t.coords,r=e.latitude,o=e.longitude,i=new google.maps.LatLng(r,o);(new google.maps.Geocoder).geocode({location:i},(function(t,e){if(e===google.maps.GeocoderStatus.OK){var i=t.find((function(t){return t.types.includes("locality")||t.types.includes("administrative_area_level_2")})),a=Se(i);c(Object.assign(Object.assign({},a),{longitude:o,latitude:r})),n(!1)}}))}function s(){n(!0)}return{placeDetails:a,positionError:r,onClickGetCurrentLocation:function(){l((function(){window.navigator.geolocation.getCurrentPosition(u,s)}))}}}({apiKey:t.googleMapsApiKey}),b=g.placeDetails,w=g.positionError,x=g.onClickGetCurrentLocation;function E(e){var r,n=e.longitude,o=e.latitude,i=e.locality,a=e.country,c=e.city,l=e.postalCode,u=e.province;n&&o&&t.setCoordinates(n,o),a&&t.setCountry(a),c&&t.setCity(c),l&&t.setPostalCode(l),u&&t.setProvince(u),i&&(d(r=i),t.setLocality(r))}o().useEffect((function(){E(b)}),[b]),o().useEffect((function(){f(!0)}),[w]);var S,k=(null==y?void 0:y.length)&&!(null===(r=t.locality)||void 0===r?void 0:r.length),j=window.navigator.geolocation&&!(null===(n=t.locality)||void 0===n?void 0:n.length),N=t.labelClassName||"d-block text-center mb-3 font-weight-normal ".concat("k0IW3");return o().createElement("div",{className:"form-group position-relative"},o().createElement("label",{className:N,htmlFor:"locality-input"},o().createElement(L.x,{namespace:Ce,phrase:"localityInputLabel"})),o().createElement("input",{type:"text",value:p,onChange:function(e){s||f(!0),(t.longitude||t.latitude||t.locality)&&t.clearStepGroupData(),d(e.target.value)},id:"locality-input",className:(S="form-control",k?"".concat(S," ").concat(ne):"".concat(S," ").concat(re)),ref:a,autoComplete:"off",placeholder:Pe(function(){var e,r,n="LocalityInputPlaceholder";return["gb","gg","im","je","ie"].includes(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode)?"uk".concat(n):["nz","au"].includes(null===(r=t.geoLocation)||void 0===r?void 0:r.countryCode)?"au".concat(n):"us".concat(n)}()),disabled:t.disabled}),o().createElement("div",{className:"position-absolute w-100"},!!k&&o().createElement("div",{className:function(){var t=oe;return k&&j?"".concat(t," ").concat("OcrX8"):"".concat(t)}()},o().createElement(Te,{predictions:y,getPlaceInfo:function(t){s&&f(!1),v(t,a,E)}})),j&&o().createElement("div",{className:k?oe:"d-flex"},o().createElement(Ie.h,{onClick:function(e){e.preventDefault(),f(!1),x(),t.logUserAction({},{actionType:i.UserAction.Click,descriptor:i.SignUpDescriptors.UseMyLocation})},svgName:c.vn.LocationCrosshair,className:"btn btn-link info-link bg-white",svgSize:u.S.Small},o().createElement(L.x,{namespace:Ce,phrase:"locationButtonText"})))))}function Fe(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 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}}(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 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}var De="signUp.searchSchoolStepGroup";function Me(t){return Me="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},Me(t)}function Re(){Re=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 h?e:h,a=Object.create(i.prototype),c=new k(o||[]);return n(a,"_invoke",{value:x(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 h(){}function p(){}function d(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(j([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=d.prototype=h.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Me(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 x(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 S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(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:N}}function N(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,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=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(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:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Be(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,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 Ke(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)?Ke(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 Ke(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 $e,Ye="signUp.verifyAccountStepItem";function We(t){var e=Be(o().useState(0),2),r=e[0],n=e[1],a=Be(o().useState(!1),2),c=a[0],l=a[1];return o().createElement(o().Fragment,null,o().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto px-2"},o().createElement("div",{className:"d-flex justify-content-center my-5 px-0 px-lg-3"},o().createElement("img",{src:s.W.SignUp.VERIFY_ACCOUNT,className:"w-100 h-auto"})),t.data.email&&o().createElement(o().Fragment,null,o().createElement("h4",{className:"text-center font-weight-bold mb-2"},o().createElement(L.x,{namespace:Ye,phrase:"heading"})),o().createElement("div",{className:"text-center text-sm"},o().createElement("p",{className:"mb-1"},o().createElement(L.x,{namespace:Ye,phrase:"message",options:{email:t.data.email}})),r<1?o().createElement("p",{className:"mb-1"},o().createElement(L.x,{namespace:Ye,phrase:"helpText"})," ",o().createElement("a",{onClick:function(e){return o=this,a=void 0,c=void 0,u=Re().mark((function o(){return Re().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return null==e||e.preventDefault(),o.prev=1,o.next=4,ct.resendTrialEmail(t.data.userId,{email:t.data.email,appLink:t.data.appLink});case 4:n(r+1),o.next=10;break;case 7:o.prev=7,o.t0=o.catch(1),l(!0);case 10:t.logUserAction({},{actionType:i.UserAction.Click,descriptor:i.SignUpDescriptors.ResendEmail});case 11:case"end":return o.stop()}}),o,null,[[1,7]])})),new(c||(c=Promise))((function(t,e){function r(t){try{i(u.next(t))}catch(t){e(t)}}function n(t){try{i(u.throw(t))}catch(t){e(t)}}function i(e){var o;e.done?t(e.value):(o=e.value,o instanceof c?o:new c((function(t){t(o)}))).then(r,n)}i((u=u.apply(o,a||[])).next())}));var o,a,c,u},className:"info-link"},o().createElement(L.x,{namespace:Ye,phrase:"helpLink"}))):o().createElement(L.x,{namespace:Ye,phrase:"resent"}),c&&o().createElement("p",{className:"text-danger"},o().createElement(L.x,{namespace:Ye,phrase:"resendErrorText"})," ",o().createElement("a",{href:E.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link"},o().createElement(L.x,{namespace:Ye,phrase:"resendErrorLink"})))))))}!function(t){t.Staff="staff",t.Learner="learner"}($e||($e={}));function ze(t){return o().createElement("div",{className:"d-flex flex-column justify-content-between h-100 cursor-pointer overflow-hidden p-3 mx-auto ".concat("lanH2"," ").concat(t.selected?"selected":""),onClick:function(){return t.onClick(t.type)}},o().createElement("img",{src:t.imageSrc,className:"rounded-top mx-auto pb-2",width:"100%",height:"auto",style:{maxWidth:"225px"}}),o().createElement("div",{className:"d-flex justify-content-center align-items-center text-dark py-2 font-weight-bold"},o().createElement("h3",{className:"".concat("P1owQ"," mb-0"),dangerouslySetInnerHTML:{__html:t.buttonText}})))}var He,qe="signUp.selectUserTypeStepItem",Je=a.T.encloseNamespace(qe);!function(t){t.Published="Published",t.Draft="Draft"}(He||(He={}));var Ve=["Primary","Secondary","K12","Special","TAFE","University"],Xe=["Primary","Secondary","Primary & Secondary","Special","Sixth Form College","FE College","University","Other"],Ze=["Elementary","Middle School","High School","College","Other"],Qe={au:Ve,nz:Ve,uk:Xe,gb:Xe,gg:Xe,im:Xe,je:Xe,ie:Xe,us:Ze};function tr(t){return Qe[t.toLocaleLowerCase()]||Ze}function er(t){return er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},er(t)}function rr(){rr=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 h?e:h,a=Object.create(i.prototype),c=new k(o||[]);return n(a,"_invoke",{value:x(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 h(){}function p(){}function d(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(j([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=d.prototype=h.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==er(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,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 x(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 S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(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:N}}function N(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,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=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(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:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function nr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,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 or(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?or(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function or(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var ir="signUp.cantFindSchoolStepItem",ar=a.T.encloseNamespace(ir),cr="signUp.existingCustomerStepItem";function lr(t){if((null==t?void 0:t.previousStepIds)&&"find-school"===t.previousStepIds[t.previousStepIds.length-1]){var e=t.schoolName||"Your school";return o().createElement(o().Fragment,null,o().createElement("h4",{className:"text-center font-weight-500 mb-1"},o().createElement(L.x,{phrase:"schoolMessageTitle",namespace:cr,options:{school:e}})),o().createElement("p",{className:"text-center text-sm"},o().createElement(L.x,{phrase:"schoolMessageParagraph",namespace:cr})))}return o().createElement(o().Fragment,null,o().createElement("h4",{className:"text-center font-weight-500 mb-1"},o().createElement(L.x,{phrase:"userMessageTitle",namespace:cr})),o().createElement("div",{className:"text-center my-2"},o().createElement("a",{href:E.getLoginLink(f()),className:"btn btn-dark"},"Sign in")))}var ur,sr="signUp.trialNotAvailableStepItem";function fr(t){if((null==t?void 0:t.previousStepIds)&&"find-school"===t.previousStepIds[t.previousStepIds.length-1]){var e=t.schoolName||"Your school";return o().createElement(o().Fragment,null,o().createElement("h3",{className:"text-center font-weight-500"},o().createElement(L.x,{namespace:sr,phrase:"schoolMessage",options:{schoolName:e}})))}return o().createElement("h3",{className:"text-center font-weight-500"},o().createElement(L.x,{namespace:sr,phrase:"userMessage"}))}!function(t){t.FourteenDays="trial_14_v1",t.Freemium="freemium_v1"}(ur||(ur={}));function hr(t){return hr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hr(t)}function pr(){pr=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 h?e:h,a=Object.create(i.prototype),c=new k(o||[]);return n(a,"_invoke",{value:x(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 h(){}function p(){}function d(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(j([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=d.prototype=h.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==hr(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 x(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 S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(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:N}}function N(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,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=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(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:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function dr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,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 yr=a.T.encloseNamespace("signUp.multiStepForm"),vr=["active-trial","existing-customer","expired-trial","trial-not-available","verify-account","unsupported"];function gr(t){switch(t){case"select-type":return"enter-email";case"enter-email":return"find-school";case"find-school":case"active-trial":case"cant-find-school":return"verify-account";default:return t}}var br={"select-type":function(t){function e(e){!function(e){t.setData("type",e)}(e),t.nextStep(),t.logUserAction({type:e},{actionType:i.UserAction.Click,workflowPhase:i.WorkflowPhase.Next,descriptor:e===$e.Staff?i.SignUpDescriptors.Educator:i.SignUpDescriptors.Student})}return o().createElement(o().Fragment,null,o().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto"},o().createElement("h4",{className:"text-center font-weight-500 mb-3"},o().createElement(L.x,{namespace:qe,phrase:"heading"})),o().createElement("p",{className:"text-sm text-center"},o().createElement(L.x,{namespace:qe,phrase:"subHeading"}))),o().createElement("div",{className:"row mx-auto"},o().createElement("div",{className:"col-lg-6 flex-grow-1 mb-3 mb-lg-0"},o().createElement(ze,{type:$e.Staff,buttonText:Je("educatorButtonText"),imageSrc:s.W.SignUp.EDUCATOR,onClick:e,selected:t.data.type===$e.Staff})),o().createElement("div",{className:"col-lg-6 flex-grow-1"},o().createElement(ze,{type:$e.Learner,buttonText:Je("studentButtonText"),imageSrc:s.W.SignUp.STUDENT,onClick:e,selected:t.data.type===$e.Learner}))))},"enter-email":function(t){var e,r,n,a,c,l=Nt(o().useState(!1),2),u=l[0],s=l[1],h=Nt(o().useState(!1),2),p=h[0],d=h[1],m=Nt(o().useState(!1),2),y=m[0],v=m[1],g=(a=t.geoLocation,c=E.getMarketingUrlForGeoLocation(a),"nz"===(null==a?void 0:a.countryCode)?c+"/contact-us/":c+"/contact-us/technical/");function b(e){t.setError("email",e)}function w(){var e;return(null===(e=t.data.email)||void 0===e?void 0:e.length)?It.test(t.data.email)?(s(!0),b(""),void ct.checkTrialStatus({email:t.data.email},x,S,(function(){s(!1)}))):(d(!1),void b(_t("invalidEmailErrorText"))):(d(!1),void b(_t("enterEmailErrorText")))}function x(e){if(d(!0),e.status===xt.InvalidEmail)return d(!1),void b(_t("invalidEmailErrorText"));e.status===xt.Active?t.setNextStepId(jt[xt.NotRequired]):t.setNextStepId(jt[e.status]),v(!0)}function S(){d(!1),v(!1),b(_t("trialStatusErrorText"))}return o().useEffect((function(){y&&v(!1),p&&d(!1)}),[t.data.email]),o().useEffect((function(){y&&(t.nextStep(),t.logUserAction({},{actionType:i.UserAction.Click,workflowPhase:i.WorkflowPhase.Next,descriptor:i.SignUpDescriptors.EnterEmail}))}),[y]),o().createElement("div",{className:"d-flex justify-content-between flex-column mx-auto h-100"},o().createElement("div",null,o().createElement("h4",{className:"text-center font-weight-500 mb-3"},o().createElement(L.x,{namespace:At,phrase:"heading"})),o().createElement("form",{className:"d-flex justify-content-center flex-column",onSubmit:function(t){t.preventDefault(),w()}},o().createElement("label",{className:"text-left mb-1",htmlFor:"email-input"},o().createElement(L.x,{namespace:At,phrase:"emailInputLabel"})),o().createElement("input",{value:t.data.email,onChange:function(e){return r=e.target.value,void t.setData("email",r);var r},name:"email-input",id:"email-input",type:"email",className:"form-control form-control-lg rounded ".concat((null===(e=null==t?void 0:t.errors)||void 0===e?void 0:e.email)&&"is-invalid"),placeholder:_t("emailInputPlaceholder"),autoComplete:"false",autoCorrect:"false"}),(null===(r=null==t?void 0:t.errors)||void 0===r?void 0:r.email)&&o().createElement(o().Fragment,null,o().createElement("small",{className:"text-danger mt-2"},null===(n=null==t?void 0:t.errors)||void 0===n?void 0:n.email),o().createElement("small",{className:"text-dark mt-1"},o().createElement(L.x,{phrase:"emailInputHelpText",namespace:At}),o().createElement(N,{href:g,onClick:function(){t.logUserAction({},{actionType:i.UserAction.Click,descriptor:i.SignUpDescriptors.ContactUs})},className:"info-link pl-1",newTab:!0},o().createElement(L.x,{phrase:"emailInputHelpLinkText",namespace:At})))),o().createElement(St.m,{showSpinner:u,className:"btn btn-dark mt-2",disabled:u,onClick:w},o().createElement(L.x,{namespace:At,phrase:"nextButtonText"}))),o().createElement("div",{className:"text-md mt-2"},o().createElement(_,{link:E.getLoginLink(f()),onClick:function(){t.logUserAction({},{actionType:i.UserAction.Click,descriptor:i.SignUpDescriptors.SignIn})}}))))},"find-school":function(t){var e=Fe(o().useState(t.canSubmitForm()),2),r=e[0],n=e[1],i=Fe(o().useState(!1),2),a=i[0],c=i[1];function l(e){t.setData("schoolLocality",e)}function u(e,r){t.setData("longitude",e),t.setData("latitude",r)}function s(e){e!==t.data.prospectId&&t.setData("prospectId",e)}function f(e){e!==t.data.schoolName&&t.setData("schoolName",e)}function h(e){e!==t.data.city&&t.setData("city",e)}function p(e){e!==t.data.province&&t.setData("province",e)}function d(e){e!==t.data.country&&t.setData("country",e)}function m(e){e!==t.data.schoolPostCode&&t.setData("schoolPostCode",e)}function y(){s(void 0),f(""),m(void 0),t.setSubmissionError(void 0)}return o().useEffect((function(){var e=t.canSubmitForm();r!==e&&n(e)}),[t.canSubmitForm]),o().useEffect((function(){r&&(c(!0),ct.checkProspectTrialStatus({prospectId:t.data.prospectId},(function(e){e.status!==xt.Available?t.setNextStepId(jt[e.status]):t.setNextStepId("verify-account")}),(function(){console.log("error")}),(function(){c(!1)})))}),[r]),o().createElement(o().Fragment,null,o().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto mb-2"},o().createElement("h4",{className:"text-center font-weight-500 mb-2"},o().createElement(L.x,{namespace:De,phrase:"groupHeading"})),o().createElement("p",{className:"text-center"},o().createElement(L.x,{namespace:De,phrase:"groupSubHeading"}))),o().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto"},o().createElement("form",{className:"d-flex justify-content-center flex-column"},o().createElement(Ue,{locality:t.data.schoolLocality,longitude:t.data.longitude,latitude:t.data.latitude,setLocality:l,setCoordinates:u,setCountry:d,setPostalCode:m,setCity:h,setProvince:p,clearStepGroupData:function(){l(void 0),u(void 0,void 0),h(void 0),p(void 0),d(void 0),y(),t.setSubmissionError(void 0)},disabled:t.disabled,geoLocation:t.geoLocation,labelClassName:"d-none",logUserAction:t.logUserAction,googleMapsApiKey:t.googleMapsApiKey}),!!(t.data.schoolLocality&&t.data.longitude&&t.data.latitude)&&o().createElement(he,{prospectId:t.data.prospectId,locality:t.data.schoolLocality,longitude:t.data.longitude,latitude:t.data.latitude,schoolName:t.data.schoolName,schoolPostCode:t.data.schoolPostCode,setProspectId:s,setSchoolName:f,setSchoolType:function(e){e!==t.data.schoolType&&t.setData("schoolType",e)},setSchoolPostCode:m,setCountry:d,clearStepItemData:y,setNextStepId:t.setNextStepId,nextStep:t.nextStep,currentStepId:t.currentStepId,disabled:t.disabled,logUserAction:t.logUserAction}),(null==t?void 0:t.submissionError)&&o().createElement("p",{className:"text-danger mb-2"},t.submissionError),t.canSubmitForm()&&o().createElement(St.m,{className:"btn btn-dark font-weight-bold",onClick:t.requestTrial,showSpinner:t.disabled||a,disabled:t.disabled||a},o().createElement(L.x,{namespace:De,phrase:"submitButtonText"})))))},"verify-account":We,"active-trial":We,"existing-customer":function(t){return o().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto px-2"},o().createElement("div",{className:"d-flex justify-content-center mt-5 mb-3 px-0 px-lg-3"},o().createElement("img",{src:s.W.SignUp.EXISTING_CUSTOMER,className:"w-100 h-auto"})),o().createElement("h4",{className:"text-center font-weight-500 mb-2"},o().createElement(L.x,{namespace:cr,phrase:"heading"})),o().createElement(lr,{previousStepIds:t.previousStepIds,schoolName:t.data.schoolName}),o().createElement("p",{className:"text-center"},o().createElement(L.x,{phrase:"helpText",namespace:cr})," ",o().createElement(N,{href:E.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link",newTab:!0},o().createElement(L.x,{phrase:"helpLink",namespace:cr}))))},"expired-trial":function(t){var e=E.getMarketingSalesContactForGeoLocation(t.geoLocation);return o().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto px-2"},o().createElement("div",{className:"d-flex justify-content-center my-5 px-0 px-lg-5"},o().createElement("img",{src:s.W.SignUp.EXPIRED_TRIAL,className:"w-100 h-auto"})),o().createElement(Zt,{previousStepIds:t.previousStepIds,schoolName:t.data.schoolName}),o().createElement("p",{className:"text-center text-sm"},o().createElement(L.x,{namespace:Xt,phrase:"context"})," ",o().createElement(N,{href:e,className:"info-link",newTab:!0},o().createElement(L.x,{namespace:Xt,phrase:"contextLink"}))))},"trial-not-available":function(t){var e=E.getMarketingSalesContactForGeoLocation(t.geoLocation);return o().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto px-2"},o().createElement("div",{className:"d-flex justify-content-center mt-5 mb-3 px-0 px-lg-3"},o().createElement("img",{src:s.W.SignUp.NOT_AVAILABLE,className:"w-100 h-auto"})),o().createElement("h3",{className:"text-center font-weight-500 mb-1"},o().createElement(L.x,{namespace:sr,phrase:"heading"})),o().createElement(fr,{previousStepIds:t.previousStepIds,schoolName:t.data.schoolName}),o().createElement("p",{className:"text-center text-sm"},o().createElement(L.x,{namespace:sr,phrase:"helpText",options:{link:e}})))},"cant-find-school":function(t){var e=nr(o().useState(!1),2),r=e[0],n=e[1],i=nr(o().useState((function(){var e;return tr(t.data.country||(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode))})),2),a=i[0],c=i[1];function l(e,r){t.setData("longitude",e),t.setData("latitude",r)}function u(e){t.setData("schoolLocality",e)}function s(e){t.setData("schoolPostCode",e)}function f(e){t.setData("country",e)}function h(e){t.setData("city",e)}function p(e){t.setData("province",e)}return o().useEffect((function(){return function(){t.setData("schoolType",void 0)}}),[]),o().useEffect((function(){t.data.prospectId&&t.requestTrial()}),[t.data.prospectId]),o().useEffect((function(){var e;t.setData("schoolType",void 0),c(tr(t.data.country||(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode)))}),[t.data.country]),o().createElement(o().Fragment,null,o().createElement("div",{className:"d-flex flex-column justify-content-center mx-auto mb-2"},o().createElement("h4",{className:"text-center font-weight-500 mb-2"},o().createElement(L.x,{namespace:ir,phrase:"heading"})),o().createElement("p",{className:"text-center"},o().createElement(L.x,{namespace:ir,phrase:"subHeading"}))),o().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto"},o().createElement("div",{className:"form-group"},o().createElement("label",{className:"d-block",htmlFor:"school-name-input"},o().createElement(L.x,{namespace:ir,phrase:"schoolNameInputLabel"})),o().createElement("input",{type:"text",value:t.data.schoolName||"",onChange:function(e){t.setData("schoolName",e.target.value)},id:"school-name-input",className:"form-control",autoComplete:"off",placeholder:ar("schoolNameInputPlaceholder")})),o().createElement("div",{className:"form-group"},o().createElement("label",{className:"d-block",htmlFor:"school-type-select"},o().createElement(L.x,{namespace:ir,phrase:"schoolTypeInputLabel"})),o().createElement("select",{id:"school-type-select",className:"form-control ".concat(t.data.schoolType?"":"text-muted"),autoComplete:"off",value:t.data.schoolType||"none",onChange:function(e){var r=e.target.value;t.setData("schoolType",r)}},o().createElement("option",{value:"none",className:"text-muted",disabled:!0},ar("schoolTypeInputDefault")),a.map((function(t){return o().createElement("option",{value:t,key:t,className:"text-dark"},t)})))),o().createElement(Ue,{locality:t.data.schoolLocality,longitude:t.data.longitude,latitude:t.data.latitude,setLocality:u,setCoordinates:l,setCountry:f,setPostalCode:s,setCity:h,setProvince:p,clearStepGroupData:function(){u(void 0),l(void 0,void 0),s(void 0),h(void 0),p(void 0),f(void 0),t.setData("schoolName",""),t.setSubmissionError("")},disabled:!1,labelClassName:"d-block",geoLocation:t.geoLocation,logUserAction:t.logUserAction,googleMapsApiKey:t.googleMapsApiKey}),o().createElement("div",{className:"text-danger"},t.submissionError||""),t.canCreateSchool()&&o().createElement(St.m,{className:"btn btn-dark font-weight-bold",onClick:function(){return e=this,r=void 0,o=void 0,i=rr().mark((function e(){var r;return rr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n(!0),e.prev=1,e.next=4,ee.create({name:t.data.schoolName,status:He.Draft,countryCode:t.data.country,prospectType:t.data.schoolType,city:t.data.city,postCode:t.data.schoolPostCode,province:t.data.province});case 4:r=e.sent,t.setData("prospectId",r.id),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),t.setSubmissionError(ar("submissionErrorText"));case 11:return e.prev=11,n(!1),e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[1,8,11,14]])})),new(o||(o=Promise))((function(t,n){function a(t){try{l(i.next(t))}catch(t){n(t)}}function c(t){try{l(i.throw(t))}catch(t){n(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(e,r||[])).next())}));var e,r,o,i},showSpinner:t.disabled||r,disabled:t.disabled||r},o().createElement(L.x,{namespace:ir,phrase:"submitButtonText"}))))},unsupported:function(t){var e=zt(o().useState(!1),2),r=e[0],n=e[1],i=zt(o().useState(),2),a=i[0],c=i[1],l=zt(o().useState(!1),2),u=l[0],f=l[1];function h(){var e={prospect_id:t.data.prospectId,email:t.data.email,user_type:t.data.type,organisation_sub_type:t.data.schoolType,account_name:t.data.schoolName,account_post_code:t.data.schoolPostCode,account_country:t.data.country};return Object.keys(e).forEach((function(t){var r;e[t]&&(null===(r=e[t])||void 0===r?void 0:r.length)||delete e[t]})),e}return o().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto px-2"},o().createElement("div",{className:"d-flex justify-content-center my-5 px-0 px-lg-5"},o().createElement("img",{src:s.W.SignUp.NOT_AVAILABLE,className:"w-100 h-auto"})),o().createElement(Vt,null),o().createElement("p",{className:"text-center text-sm"},u?o().createElement(L.x,{namespace:qt,phrase:"contextLinkAdded"}):o().createElement(St.m,{onClick:function(){return e=this,r=void 0,o=void 0,i=Wt().mark((function e(){var r,o;return Wt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!u){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,$t.getClient(t.geoLocation);case 4:r=e.sent,n(!0),o=h(),r.setUser($t.hashedEmail(t.data.email)),r.setUserEmail(t.data.email),r.openSession(),Object.entries(o).forEach((function(t){var e=zt(t,2),n=e[0],o=e[1];return r.setCustomUserAttribute(n,o)})),r.logEvent({type:"product_unsupported",data:o}),r.sendData((function(t){t?(c(void 0),f(!0)):(c(Jt("error")),f(!1)),n(!1)}));case 13:case"end":return e.stop()}}),e)})),new(o||(o=Promise))((function(t,n){function a(t){try{l(i.next(t))}catch(t){n(t)}}function c(t){try{l(i.throw(t))}catch(t){n(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(e,r||[])).next())}));var e,r,o,i},className:"btn ".concat(u?"btn-success":"btn-dark"),showSpinner:r},o().createElement(L.x,{namespace:qt,phrase:"contextLink"})),a&&o().createElement("span",{className:"text-danger"},a)))}};function wr(t){var e,r=(e=t.type,K[e]),a=function(t,e){var r=Object.assign({},e);return Object.keys(r).forEach((function(t){void 0===r[t]&&delete r[t]})),Object.keys(r).length?Object.assign(Object.assign({},t),r):t}(wt,t.defaultValues),c=function(t){var e=t.initialFormState,r=t.initialStepId,o=t.completedStepIds,a=t.getNextStepId,c=t.location,l=vt((0,n.useState)(r),2),u=l[0],s=l[1],f=vt((0,n.useState)(a(r)),2),h=f[0],p=f[1],d=vt((0,n.useState)([]),2),m=d[0],y=d[1],v=vt((0,n.useState)(e||wt),2),g=v[0],b=v[1],w=vt((0,n.useState)({}),2),x=w[0],E=w[1],S=vt((0,n.useState)(!1),2),L=S[0],j=S[1],N=vt((0,n.useState)(),2),O=N[0],I=N[1];return(0,n.useEffect)((function(){var t=a(u);t!==u&&p(t)}),[u]),{currentStepId:u,data:g,errors:x,submitted:L,submissionError:O,setSubmissionError:I,previousStep:function(){if(m&&m.length){var t=yt(m);s(t.pop()),y(t)}},hasPreviousStep:function(){return!!m.length},nextStep:function(){u!==h&&(o.includes(h)?j(!0):j(!1),s((function(t){return y([].concat(yt(m),[t])),h})))},setData:function(t,e){b((function(r){return Object.assign(Object.assign({},r),mt({},t,e))}))},setError:function(t,e){if(e.length)E((function(r){return Object.assign(Object.assign({},r),mt({},t,e))}));else{var r=Object.assign({},x);delete r[t],E(r)}},canSubmitForm:function(){var t=g.email,e=g.type,r=g.prospectId,n=o.includes(h);return!!(t&&e&&r&&n)},canCreateSchool:function(){var t=g.schoolName,e=g.schoolType,r=g.country,n=o.includes(h);return!!(t&&e&&r&&n)},setNextStepId:p,nextStepId:h,previousStepIds:m,geoLocation:pt(),logUserAction:function(t,e){var r=Object.assign(Object.assign({currentStepId:u,nextStepId:h},lt.t.omit(g,["email","longitude","latitude"])),t),n=Object.entries(r).filter((function(t){return void 0!==vt(t,2)[1]})).reduce((function(t,e){var r=vt(e,2),n=r[0],o=r[1];return Object.assign(Object.assign({},t),mt({},n,o))}),{});k.k.logUserAction(n,Object.assign({entity:i.EntityType.SignUp,location:c},e))}}}({initialFormState:a,initialStepId:"select-type",completedStepIds:vr,getNextStepId:gr,location:t.location}),l=dr(o().useState(!1),2),u=l[0],s=l[1],f=dr(o().useState(!1),2);function h(){return e=this,r=void 0,n=void 0,o=pr().mark((function e(){var r;return pr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,u||s(!0),c.canSubmitForm()||c.setSubmissionError(yr("cannotSubmitFormError")),"verify-account"===c.nextStepId||"active-trial"===c.nextStepId){e.next=7;break}return c.nextStep(),c.logUserAction({},{actionType:i.UserAction.Create,descriptor:i.SignUpDescriptors.DeadEnd,workflowPhase:i.WorkflowPhase.Discard}),e.abrupt("return");case 7:return e.next=9,ct.createTrial({email:c.data.email,prospectId:c.data.prospectId,userType:c.data.type,appLink:t.pageAppLinkString,accessPolicy:(n=c.data.country,"us"===(null==n?void 0:n.toLowerCase())?ur.Freemium:ur.FourteenDays)});case 9:if((r=e.sent).id&&r.dateCreated){e.next=12;break}throw new Error;case 12:c.setData("userId",r.id),c.setData("appLink",t.pageAppLinkString),c.nextStep(),c.logUserAction({},{actionType:i.UserAction.Create,descriptor:i.SignUpDescriptors.TrialCreated,workflowPhase:i.WorkflowPhase.Complete}),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(0),c.setSubmissionError(yr("requestTrialError"));case 21:return e.prev=21,s(!1),e.finish(21);case 24:case"end":return e.stop()}var n}),e,null,[[0,18,21,24]])})),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}return f[0],f[1],o().useEffect((function(){t.onStepUpdate&&t.onStepUpdate(c.currentStepId)}),[c.currentStepId]),o().createElement(o().Fragment,null,function(){var e=br[c.currentStepId],n=Object.assign(Object.assign({},c),{requestTrial:h,disabled:u,googleMapsApiKey:t.googleMapsApiKey});if(!t.withLayout)return o().createElement(e,Object.assign({},n));if(!Object.keys(r).includes(c.currentStepId))return o().createElement(e,Object.assign({},n));var i=r[c.currentStepId];return o().createElement(i,{geoLocation:c.geoLocation,currentStep:c.currentStepId,hasPreviousStep:c.hasPreviousStep,previousStep:c.previousStep,showBreadCrumbs:t.showBreadCrumbs,logUserAction:c.logUserAction,closeApp:t.close},o().createElement(e,Object.assign({},n)))}(),!1)}wr.defaultProps={type:U.c.FullPage,withLayout:!0}},2903:(t,e,r)=>{var n;r.d(e,{c:()=>n}),function(t){t.Popup="popup-form",t.FullPage="full-page-form"}(n||(n={}))}}]);
@@ -1,2 +1,2 @@
1
- /*! For license information please see 9478-12ec0a2fb9-lite.chunk.js.LICENSE.txt */
1
+ /*! For license information please see 9478-223792d0e1-lite.chunk.js.LICENSE.txt */
2
2
  "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9478],{39478:(t,e,r)=>{r.r(e),r.d(e,{BaseShareLinkView:()=>p});var n=r(1024),o=r.n(n),i=r(20354),a=r(31949),c=r(30439),u=r(4594);function l(t){return l="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},l(t)}function s(){s=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 u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function f(t,e,r,o){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new j(o||[]);return n(a,"_invoke",{value:S(t,r,c)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var d={};function v(){}function p(){}function y(){}var m={};u(m,i,(function(){return this}));var g=Object.getPrototypeOf,w=g&&g(g(O([])));w&&w!==e&&r.call(w,i)&&(m=w);var b=y.prototype=v.prototype=Object.create(m);function x(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function o(n,i,a,c){var u=h(t[n],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==l(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){s.value=t,a(s)}),(function(t){return o("throw",t,a,c)}))}c(u.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=L(a,r);if(c){if(c===d)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 u=h(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function L(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,L(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=h(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;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,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function k(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 I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function O(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:P}}function P(){return{value:void 0,done:!0}}return p.prototype=y,n(b,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:p,configurable:!0}),p.displayName=u(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},x(E.prototype),u(E.prototype,a,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(b),u(b,c,"Generator"),u(b,i,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=O,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(I),!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"),u=r.call(i,"finallyLoc");if(c&&u){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(!u)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,d):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),d},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),I(r),d}},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;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},t}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var h=function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function c(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}u((n=n.apply(t,e||[])).next())}))},d=r(22902),v=r(16714);function p(t){var e=t.shareId,n=t.queryParams,l=(0,d.T)().hasPermissions,p=i.a.useBasicFetch(a.N.currentUser()),y=i.a.useBasicFetch(e&&c.o.getShareObject(e)),m=function(t,e){var n,i,a=(n=o().useState(),i=2,function(t){if(Array.isArray(t))return t}(n)||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=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(n,i)||function(t,e){if(t){if("string"==typeof t)return f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,e):void 0}}(n,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=a[0],l=a[1];return o().useEffect((function(){c&&l(null)}),[e.videoId]),o().useEffect((function(){if(t&&!c){var n=t.objectTypeId;switch(e.videoId?n=u.E.Video:e.clipId?n=u.E.Clip:e.interactiveId&&(n=u.E.Interactive),n){case u.E.Video:var i=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(3019),r.e(6014),r.e(5986),r.e(3231),r.e(1518),r.e(3948),r.e(8377),r.e(4870)]).then(r.bind(r,93978));case 2:return e=t.sent,n=e.PlaySharedVideoView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(i);break;case u.E.Interactive:var a=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(7919),r.e(3019),r.e(6014),r.e(5986),r.e(3231),r.e(1518),r.e(3948),r.e(5875),r.e(9154),r.e(2877)]).then(r.bind(r,38280));case 2:return e=t.sent,n=e.SharedInteractiveView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(a);break;case u.E.Clip:var f=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(3019),r.e(6014),r.e(5986),r.e(3231),r.e(1518),r.e(3948),r.e(7831),r.e(8472)]).then(r.bind(r,41021));case 2:return e=t.sent,n=e.PlaySharedClipView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(f);break;case u.E.Playlist:var d=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(3019),r.e(6014),r.e(5986),r.e(3231),r.e(6263),r.e(8e3)]).then(r.bind(r,67537));case 2:return e=t.sent,n=e.SharedPlaylistView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(d);break;case u.E.Series:var v=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(3019),r.e(6014),r.e(5986),r.e(3231),r.e(2215),r.e(8200)]).then(r.bind(r,96922));case 2:return e=t.sent,n=e.SharedSeriesView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(v)}}}),[t,c]),c}(y.data,n);if(!m)return o().createElement(o().Fragment,null);var g={shareId:e,queryParams:n,objectId:n.videoId?n.videoId:n.clipId?n.clipId:n.interactiveId?n.interactiveId:y.data.objectId,currentUser:p.data,playNext:n.playNext};return l(v.C.StudentExperience)&&"activityStatus"in y.data&&(g.activityStatus=y.data.activityStatus),o().createElement(o().Suspense,{fallback:o().createElement(o().Fragment,null)},o().createElement(m,Object.assign({},g)))}}}]);