@clickview/lite 0.21.0 → 0.21.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 (182) hide show
  1. package/.eslintrc.json +2 -2
  2. package/dist/bundles.json +1 -1
  3. package/dist/scripts/{1200-a6f398c740-lite.chunk.js → 1200-24f7d81a3e-lite.chunk.js} +1 -1
  4. package/dist/scripts/1297-2446383ab4-lite.chunk.js +1 -0
  5. package/dist/scripts/{1592-aeac7741f9-lite.chunk.js → 1592-d465772de5-lite.chunk.js} +1 -1
  6. package/dist/scripts/{2097-66aad0b2ec-lite.chunk.js → 2097-d9696e2dbc-lite.chunk.js} +1 -1
  7. package/dist/scripts/3533-4b14e63562-lite.chunk.js +1 -0
  8. package/dist/scripts/{3667-00995d20ff-lite.chunk.js → 3667-b4bf177ef8-lite.chunk.js} +1 -1
  9. package/dist/scripts/{4396-9583d082a1-lite.chunk.js → 4396-7e18d58a30-lite.chunk.js} +1 -1
  10. package/dist/scripts/{4617-3a5f0d34bc-lite.chunk.js → 4617-12bbd109c1-lite.chunk.js} +1 -1
  11. package/dist/scripts/{5622-df70c2e4d8-lite.chunk.js → 5622-548a92a2e4-lite.chunk.js} +1 -1
  12. package/dist/scripts/{6257-b8720ec608-lite.chunk.js → 6257-a2a2ca1d87-lite.chunk.js} +1 -1
  13. package/dist/scripts/6285-5bd408b61b-lite.chunk.js +1 -0
  14. package/dist/scripts/{6736-cffe5aabea-lite.chunk.js → 6736-326f546fb8-lite.chunk.js} +1 -1
  15. package/dist/scripts/{6801-c9fd0487cf-lite.chunk.js → 6801-371a9b4d34-lite.chunk.js} +1 -1
  16. package/dist/scripts/7318-b73e12f5a8-lite.chunk.js +1 -1
  17. package/dist/scripts/7338-1a927a706e-lite.chunk.js +1 -0
  18. package/dist/scripts/{7950-44f07724fd-lite.chunk.js → 7950-2985ea7f90-lite.chunk.js} +1 -1
  19. package/dist/scripts/{8323-431a465fd5-lite.chunk.js → 8323-1c054e5eea-lite.chunk.js} +1 -1
  20. package/dist/scripts/8681-0ce42b0460-lite.chunk.js +2 -0
  21. package/dist/scripts/{8685-47385c8d1b-lite.chunk.js → 8685-16c6ca7c1d-lite.chunk.js} +1 -1
  22. package/dist/scripts/{9428-37d616a4ba-lite.chunk.js → 9428-63f031caf2-lite.chunk.js} +1 -1
  23. package/dist/scripts/{9478-a636d803b5-lite.chunk.js → 9478-f8ac26691a-lite.chunk.js} +1 -1
  24. package/dist/scripts/bundle-8135115b02.min.js +2 -0
  25. package/jest.config.js +11 -11
  26. package/package.json +62 -62
  27. package/typings/libs/CVEvents.d.ts +12 -12
  28. package/typings/libs/CVLanguages.d.ts +24 -24
  29. package/typings/libs/backbone.validation.d.ts +99 -99
  30. package/typings/libs/cloneDeep.d.ts +4 -4
  31. package/typings/libs/cookiesjs.d.ts +25 -25
  32. package/typings/libs/draft-convert.d.ts +3 -3
  33. package/typings/libs/google-api.d.ts +93 -93
  34. package/typings/libs/intersection-observer.d.ts +82 -82
  35. package/typings/libs/microsoft-teams.d.ts +2 -2
  36. package/typings/libs/react-table-config.d.ts +138 -138
  37. package/typings/libs/trackjs.d.ts +2 -2
  38. package/typings/libs/videojs-contrib-quality-levels.d.ts +28 -28
  39. package/typings/utils/imports.d.ts +13 -13
  40. package/dist/scripts/1655-41cb9e238b-lite.chunk.js +0 -1
  41. package/dist/scripts/3533-2b73ee343c-lite.chunk.js +0 -1
  42. package/dist/scripts/6285-5d8cec58d1-lite.chunk.js +0 -1
  43. package/dist/scripts/7939-25697fe490-lite.chunk.js +0 -1
  44. package/dist/scripts/8681-eab57e5c95-lite.chunk.js +0 -2
  45. package/dist/scripts/bundle-b512089c91.min.js +0 -2
  46. /package/dist/css/{1655-lite-e7bdc675ac.chunk.css → 1297-lite-e7bdc675ac.chunk.css} +0 -0
  47. /package/dist/scripts/{1090-0a7a3a2c5a-lite.chunk.js → 1090-5e1af08009-lite.chunk.js} +0 -0
  48. /package/dist/scripts/{1186-416d953065-lite.chunk.js → 1186-6df15b6967-lite.chunk.js} +0 -0
  49. /package/dist/scripts/{1200-a6f398c740-lite.chunk.js.LICENSE.txt → 1200-24f7d81a3e-lite.chunk.js.LICENSE.txt} +0 -0
  50. /package/dist/scripts/{1301-2785e09044-lite.chunk.js → 1301-a8a0ef7e46-lite.chunk.js} +0 -0
  51. /package/dist/scripts/{1340-95c8a62ecc-lite.chunk.js → 1340-ae2cb3206e-lite.chunk.js} +0 -0
  52. /package/dist/scripts/{1351-da33070f1b-lite.chunk.js → 1351-ae480b62f4-lite.chunk.js} +0 -0
  53. /package/dist/scripts/{1453-ffe46c959a-lite.chunk.js → 1453-9387c997d8-lite.chunk.js} +0 -0
  54. /package/dist/scripts/{147-4fd2693b57-lite.chunk.js → 147-7dfb549bc2-lite.chunk.js} +0 -0
  55. /package/dist/scripts/{1518-0c21dc8d97-lite.chunk.js → 1518-09426d9002-lite.chunk.js} +0 -0
  56. /package/dist/scripts/{1592-aeac7741f9-lite.chunk.js.LICENSE.txt → 1592-d465772de5-lite.chunk.js.LICENSE.txt} +0 -0
  57. /package/dist/scripts/{1794-f6b31da313-lite.chunk.js → 1794-e26231e944-lite.chunk.js} +0 -0
  58. /package/dist/scripts/{1891-83d4ee5cae-lite.chunk.js → 1891-b279e10dfa-lite.chunk.js} +0 -0
  59. /package/dist/scripts/{1924-6b2a7d2e30-lite.chunk.js → 1924-7fb3294bbe-lite.chunk.js} +0 -0
  60. /package/dist/scripts/{2097-66aad0b2ec-lite.chunk.js.LICENSE.txt → 2097-d9696e2dbc-lite.chunk.js.LICENSE.txt} +0 -0
  61. /package/dist/scripts/{2215-d720e674af-lite.chunk.js → 2215-404894d17b-lite.chunk.js} +0 -0
  62. /package/dist/scripts/{2229-4452e6e7f0-lite.chunk.js → 2229-7227ffd514-lite.chunk.js} +0 -0
  63. /package/dist/scripts/{227-cc5a924852-lite.chunk.js → 227-58e2472479-lite.chunk.js} +0 -0
  64. /package/dist/scripts/{2279-673600a92b-lite.chunk.js → 2279-335f43ea35-lite.chunk.js} +0 -0
  65. /package/dist/scripts/{2303-af295f2b65-lite.chunk.js → 2303-fdaacdd62d-lite.chunk.js} +0 -0
  66. /package/dist/scripts/{2452-4a1c9e0123-lite.chunk.js → 2452-f1ccaff72b-lite.chunk.js} +0 -0
  67. /package/dist/scripts/{2512-8aebcc22ad-lite.chunk.js → 2512-b79f680e2b-lite.chunk.js} +0 -0
  68. /package/dist/scripts/{2608-9ff6f5dd7b-lite.chunk.js → 2608-95e7db781d-lite.chunk.js} +0 -0
  69. /package/dist/scripts/{2883-6a10e0042f-lite.chunk.js → 2883-2fdbc7041f-lite.chunk.js} +0 -0
  70. /package/dist/scripts/{2966-0c0bfe06c3-lite.chunk.js → 2966-388683bcd6-lite.chunk.js} +0 -0
  71. /package/dist/scripts/{3007-ff224c6b4a-lite.chunk.js → 3007-67c669974c-lite.chunk.js} +0 -0
  72. /package/dist/scripts/{3020-2ba9f82a47-lite.chunk.js → 3020-32e560bee9-lite.chunk.js} +0 -0
  73. /package/dist/scripts/{3108-4e2349fae5-lite.chunk.js → 3108-eab647eb42-lite.chunk.js} +0 -0
  74. /package/dist/scripts/{3171-6da0210542-lite.chunk.js → 3171-6119cb933c-lite.chunk.js} +0 -0
  75. /package/dist/scripts/{3216-b268d43ec0-lite.chunk.js → 3216-05a8119d7a-lite.chunk.js} +0 -0
  76. /package/dist/scripts/{3285-bd7a7a95d7-lite.chunk.js → 3285-213eacd3fd-lite.chunk.js} +0 -0
  77. /package/dist/scripts/{3468-7a9a0ce9a7-lite.chunk.js → 3468-2322c61a84-lite.chunk.js} +0 -0
  78. /package/dist/scripts/{3667-00995d20ff-lite.chunk.js.LICENSE.txt → 3667-b4bf177ef8-lite.chunk.js.LICENSE.txt} +0 -0
  79. /package/dist/scripts/{3754-1b1ac87300-lite.chunk.js → 3754-fe8190d2ad-lite.chunk.js} +0 -0
  80. /package/dist/scripts/{3787-40eb4f8acf-lite.chunk.js → 3787-53ab4ffaaf-lite.chunk.js} +0 -0
  81. /package/dist/scripts/{389-f594d7dc39-lite.chunk.js → 389-7d32d43138-lite.chunk.js} +0 -0
  82. /package/dist/scripts/{3952-8aa84954fa-lite.chunk.js → 3952-a4f58ad799-lite.chunk.js} +0 -0
  83. /package/dist/scripts/{4029-e79e8572a0-lite.chunk.js → 4029-0b05c56293-lite.chunk.js} +0 -0
  84. /package/dist/scripts/{4113-a5d0b16a3a-lite.chunk.js → 4113-209f45f6d7-lite.chunk.js} +0 -0
  85. /package/dist/scripts/{4182-894f7f6fba-lite.chunk.js → 4182-44f52b675e-lite.chunk.js} +0 -0
  86. /package/dist/scripts/{4290-236cb842a9-lite.chunk.js → 4290-3e770989fe-lite.chunk.js} +0 -0
  87. /package/dist/scripts/{4343-62c6b29bfc-lite.chunk.js → 4343-9f273ff584-lite.chunk.js} +0 -0
  88. /package/dist/scripts/{4380-7578e72c04-lite.chunk.js → 4380-5fa3db4048-lite.chunk.js} +0 -0
  89. /package/dist/scripts/{4396-9583d082a1-lite.chunk.js.LICENSE.txt → 4396-7e18d58a30-lite.chunk.js.LICENSE.txt} +0 -0
  90. /package/dist/scripts/{4484-aeba3c09c7-lite.chunk.js → 4484-0b3c7acb4a-lite.chunk.js} +0 -0
  91. /package/dist/scripts/{4541-d3265c7adb-lite.chunk.js → 4541-18f406c3e6-lite.chunk.js} +0 -0
  92. /package/dist/scripts/{4588-434c851b61-lite.chunk.js → 4588-d0a8f4b2f7-lite.chunk.js} +0 -0
  93. /package/dist/scripts/{4597-1d71f31a50-lite.chunk.js → 4597-59aa22732e-lite.chunk.js} +0 -0
  94. /package/dist/scripts/{4690-9e14a0919a-lite.chunk.js → 4690-336ab1884e-lite.chunk.js} +0 -0
  95. /package/dist/scripts/{482-62b57fd498-lite.chunk.js → 482-55ecda1638-lite.chunk.js} +0 -0
  96. /package/dist/scripts/{4893-3c755c9e9e-lite.chunk.js → 4893-dad65eb405-lite.chunk.js} +0 -0
  97. /package/dist/scripts/{4898-819c12ce24-lite.chunk.js → 4898-70a9c3c890-lite.chunk.js} +0 -0
  98. /package/dist/scripts/{5165-5ac91feecb-lite.chunk.js → 5165-65592b4f14-lite.chunk.js} +0 -0
  99. /package/dist/scripts/{5347-f0b4ab4640-lite.chunk.js → 5347-975049c51f-lite.chunk.js} +0 -0
  100. /package/dist/scripts/{5622-df70c2e4d8-lite.chunk.js.LICENSE.txt → 5622-548a92a2e4-lite.chunk.js.LICENSE.txt} +0 -0
  101. /package/dist/scripts/{5746-565c8d88c0-lite.chunk.js → 5746-eaceae9b42-lite.chunk.js} +0 -0
  102. /package/dist/scripts/{5914-83f14d2f25-lite.chunk.js → 5914-7c936ecffb-lite.chunk.js} +0 -0
  103. /package/dist/scripts/{5974-067b3050ce-lite.chunk.js → 5974-d7f6ad6ad5-lite.chunk.js} +0 -0
  104. /package/dist/scripts/{6158-9aeb7839e1-lite.chunk.js → 6158-ebe3c80016-lite.chunk.js} +0 -0
  105. /package/dist/scripts/{6257-b8720ec608-lite.chunk.js.LICENSE.txt → 6257-a2a2ca1d87-lite.chunk.js.LICENSE.txt} +0 -0
  106. /package/dist/scripts/{6263-624d23726f-lite.chunk.js → 6263-dfa6b64dfc-lite.chunk.js} +0 -0
  107. /package/dist/scripts/{6274-d2123cdc66-lite.chunk.js → 6274-b4101bacdc-lite.chunk.js} +0 -0
  108. /package/dist/scripts/{6325-428b11c811-lite.chunk.js → 6325-c3bedf36b7-lite.chunk.js} +0 -0
  109. /package/dist/scripts/{6368-591a215562-lite.chunk.js → 6368-3adc622000-lite.chunk.js} +0 -0
  110. /package/dist/scripts/{6370-35a8d5e932-lite.chunk.js → 6370-d5be30336e-lite.chunk.js} +0 -0
  111. /package/dist/scripts/{6427-5280ef4fa4-lite.chunk.js → 6427-1055f31cea-lite.chunk.js} +0 -0
  112. /package/dist/scripts/{6450-11cdf0c405-lite.chunk.js → 6450-78e74f7202-lite.chunk.js} +0 -0
  113. /package/dist/scripts/{6465-2817c163a3-lite.chunk.js → 6465-da6609773f-lite.chunk.js} +0 -0
  114. /package/dist/scripts/{6477-ea205b40df-lite.chunk.js → 6477-f42f00fe20-lite.chunk.js} +0 -0
  115. /package/dist/scripts/{6480-c6b6dd78c5-lite.chunk.js → 6480-56fa1675ac-lite.chunk.js} +0 -0
  116. /package/dist/scripts/{6493-331029d2a9-lite.chunk.js → 6493-ae21e8927f-lite.chunk.js} +0 -0
  117. /package/dist/scripts/{6604-6efe5b290b-lite.chunk.js → 6604-9d51729e51-lite.chunk.js} +0 -0
  118. /package/dist/scripts/{6708-7d9af42415-lite.chunk.js → 6708-666964fa42-lite.chunk.js} +0 -0
  119. /package/dist/scripts/{6725-4681caad1e-lite.chunk.js → 6725-6a02a8aa52-lite.chunk.js} +0 -0
  120. /package/dist/scripts/{6736-cffe5aabea-lite.chunk.js.LICENSE.txt → 6736-326f546fb8-lite.chunk.js.LICENSE.txt} +0 -0
  121. /package/dist/scripts/{6795-8f86567ccb-lite.chunk.js → 6795-cda692f8f8-lite.chunk.js} +0 -0
  122. /package/dist/scripts/{6821-c2c09e0258-lite.chunk.js → 6821-aa942da9f9-lite.chunk.js} +0 -0
  123. /package/dist/scripts/{6873-4b14b86a51-lite.chunk.js → 6873-336d25fe83-lite.chunk.js} +0 -0
  124. /package/dist/scripts/{6884-4c12ac9035-lite.chunk.js → 6884-da51fcccec-lite.chunk.js} +0 -0
  125. /package/dist/scripts/{6966-295b85fbcd-lite.chunk.js → 6966-5e5d3d6522-lite.chunk.js} +0 -0
  126. /package/dist/scripts/{7045-882c8445fc-lite.chunk.js → 7045-655270d34b-lite.chunk.js} +0 -0
  127. /package/dist/scripts/{7056-9052eecc41-lite.chunk.js → 7056-e6aea680e3-lite.chunk.js} +0 -0
  128. /package/dist/scripts/{7059-7267b303d2-lite.chunk.js → 7059-ad64494434-lite.chunk.js} +0 -0
  129. /package/dist/scripts/{7115-748ec79aa9-lite.chunk.js → 7115-1f9288a3c8-lite.chunk.js} +0 -0
  130. /package/dist/scripts/{7128-fa0cce35e8-lite.chunk.js → 7128-a38ffbd703-lite.chunk.js} +0 -0
  131. /package/dist/scripts/{7172-cbe01f026d-lite.chunk.js → 7172-494eb53179-lite.chunk.js} +0 -0
  132. /package/dist/scripts/{7351-818e8b65f7-lite.chunk.js → 7351-e394235f6c-lite.chunk.js} +0 -0
  133. /package/dist/scripts/{7506-09a70fbf9f-lite.chunk.js → 7506-68ed3f4e65-lite.chunk.js} +0 -0
  134. /package/dist/scripts/{7510-ee4b2f14de-lite.chunk.js → 7510-dadbf124b5-lite.chunk.js} +0 -0
  135. /package/dist/scripts/{7638-92c32d81ca-lite.chunk.js → 7638-a8440c0e5c-lite.chunk.js} +0 -0
  136. /package/dist/scripts/{7708-2f1feb5979-lite.chunk.js → 7708-bbbced57b1-lite.chunk.js} +0 -0
  137. /package/dist/scripts/{7767-344dd935b6-lite.chunk.js → 7767-9268c4a683-lite.chunk.js} +0 -0
  138. /package/dist/scripts/{7820-e5d6ad2fb8-lite.chunk.js → 7820-ed4679419d-lite.chunk.js} +0 -0
  139. /package/dist/scripts/{7855-18edc1946f-lite.chunk.js → 7855-74bda8e11e-lite.chunk.js} +0 -0
  140. /package/dist/scripts/{7925-088d8201ec-lite.chunk.js → 7925-1ed74c737d-lite.chunk.js} +0 -0
  141. /package/dist/scripts/{7950-44f07724fd-lite.chunk.js.LICENSE.txt → 7950-2985ea7f90-lite.chunk.js.LICENSE.txt} +0 -0
  142. /package/dist/scripts/{7966-6cff9a795b-lite.chunk.js → 7966-9e7a490d8d-lite.chunk.js} +0 -0
  143. /package/dist/scripts/{7969-35ee7801b4-lite.chunk.js → 7969-b16e8bae70-lite.chunk.js} +0 -0
  144. /package/dist/scripts/{8025-ca1d4ae5db-lite.chunk.js → 8025-955738d60f-lite.chunk.js} +0 -0
  145. /package/dist/scripts/{8038-6c2a256fca-lite.chunk.js → 8038-2d3f7277ee-lite.chunk.js} +0 -0
  146. /package/dist/scripts/{8046-787309872c-lite.chunk.js → 8046-799f379c70-lite.chunk.js} +0 -0
  147. /package/dist/scripts/{8056-d967c4ec71-lite.chunk.js → 8056-4476ad4eb5-lite.chunk.js} +0 -0
  148. /package/dist/scripts/{8114-12abea85e8-lite.chunk.js → 8114-fab7b94633-lite.chunk.js} +0 -0
  149. /package/dist/scripts/{823-440317098b-lite.chunk.js → 823-9684f2e786-lite.chunk.js} +0 -0
  150. /package/dist/scripts/{8239-5dca46369c-lite.chunk.js → 8239-53ad337f40-lite.chunk.js} +0 -0
  151. /package/dist/scripts/{8252-aa97c540e4-lite.chunk.js → 8252-badc58b2a5-lite.chunk.js} +0 -0
  152. /package/dist/scripts/{8292-ff7df28770-lite.chunk.js → 8292-9ce884743c-lite.chunk.js} +0 -0
  153. /package/dist/scripts/{8300-c2509f2d64-lite.chunk.js → 8300-8839d9b4af-lite.chunk.js} +0 -0
  154. /package/dist/scripts/{8323-431a465fd5-lite.chunk.js.LICENSE.txt → 8323-1c054e5eea-lite.chunk.js.LICENSE.txt} +0 -0
  155. /package/dist/scripts/{834-65a3767bdc-lite.chunk.js → 834-e6e5957a6c-lite.chunk.js} +0 -0
  156. /package/dist/scripts/{8359-a820574782-lite.chunk.js → 8359-83769cfe51-lite.chunk.js} +0 -0
  157. /package/dist/scripts/{8466-6fc579e8a5-lite.chunk.js → 8466-cde97fcd2d-lite.chunk.js} +0 -0
  158. /package/dist/scripts/{8564-d8c80b7237-lite.chunk.js → 8564-5b7a8d0bdb-lite.chunk.js} +0 -0
  159. /package/dist/scripts/{8573-f86a15cb76-lite.chunk.js → 8573-53f8afdaa7-lite.chunk.js} +0 -0
  160. /package/dist/scripts/{8592-118573d431-lite.chunk.js → 8592-65a1b429da-lite.chunk.js} +0 -0
  161. /package/dist/scripts/{8681-eab57e5c95-lite.chunk.js.LICENSE.txt → 8681-0ce42b0460-lite.chunk.js.LICENSE.txt} +0 -0
  162. /package/dist/scripts/{8685-47385c8d1b-lite.chunk.js.LICENSE.txt → 8685-16c6ca7c1d-lite.chunk.js.LICENSE.txt} +0 -0
  163. /package/dist/scripts/{8779-c00be310e6-lite.chunk.js → 8779-d33f6c6dd9-lite.chunk.js} +0 -0
  164. /package/dist/scripts/{8789-cbe2ae6d04-lite.chunk.js → 8789-815ee0417d-lite.chunk.js} +0 -0
  165. /package/dist/scripts/{8816-649cd67b39-lite.chunk.js → 8816-f0cf5479be-lite.chunk.js} +0 -0
  166. /package/dist/scripts/{8868-f58dea6bba-lite.chunk.js → 8868-8545161f5d-lite.chunk.js} +0 -0
  167. /package/dist/scripts/{8884-14aa072877-lite.chunk.js → 8884-590d2228a3-lite.chunk.js} +0 -0
  168. /package/dist/scripts/{8955-c9c450fbd9-lite.chunk.js → 8955-60682c0ba8-lite.chunk.js} +0 -0
  169. /package/dist/scripts/{9060-47b8dc83c6-lite.chunk.js → 9060-5a79549f6d-lite.chunk.js} +0 -0
  170. /package/dist/scripts/{9107-232b01e278-lite.chunk.js → 9107-790d22dc86-lite.chunk.js} +0 -0
  171. /package/dist/scripts/{9231-2a3a1a88e1-lite.chunk.js → 9231-3fe5b5a394-lite.chunk.js} +0 -0
  172. /package/dist/scripts/{9242-5a2d447f21-lite.chunk.js → 9242-1cddf1b075-lite.chunk.js} +0 -0
  173. /package/dist/scripts/{9428-37d616a4ba-lite.chunk.js.LICENSE.txt → 9428-63f031caf2-lite.chunk.js.LICENSE.txt} +0 -0
  174. /package/dist/scripts/{9455-1be4596b49-lite.chunk.js → 9455-3217810808-lite.chunk.js} +0 -0
  175. /package/dist/scripts/{9478-a636d803b5-lite.chunk.js.LICENSE.txt → 9478-f8ac26691a-lite.chunk.js.LICENSE.txt} +0 -0
  176. /package/dist/scripts/{9556-eca382932a-lite.chunk.js → 9556-f361722af4-lite.chunk.js} +0 -0
  177. /package/dist/scripts/{9590-8f41a6e462-lite.chunk.js → 9590-d812a37a73-lite.chunk.js} +0 -0
  178. /package/dist/scripts/{9686-c0e4a20a7a-lite.chunk.js → 9686-e96ed5b44e-lite.chunk.js} +0 -0
  179. /package/dist/scripts/{9863-d77407e40c-lite.chunk.js → 9863-22313ca53e-lite.chunk.js} +0 -0
  180. /package/dist/scripts/{9897-61fba7bce8-lite.chunk.js → 9897-d8eb76fffe-lite.chunk.js} +0 -0
  181. /package/dist/scripts/{9905-f9a8958b48-lite.chunk.js → 9905-3adaead6f5-lite.chunk.js} +0 -0
  182. /package/dist/scripts/{bundle-b512089c91.min.js.LICENSE.txt → bundle-8135115b02.min.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
- /*! For license information please see 6257-b8720ec608-lite.chunk.js.LICENSE.txt */
1
+ /*! For license information please see 6257-a2a2ca1d87-lite.chunk.js.LICENSE.txt */
2
2
  "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[6257],{98461:(t,e,r)=>{r.d(e,{d:()=>i});var n=r(1024),o=r(49985),a=r(55460);function i(t){var e=t.href,r=t.className,i=t.newTab,c=t.children,l={onClick:function(r){var n;r.preventDefault(),null===(n=t.onClick)||void 0===n||n.call(t,r),t.analyticsData&&t.analyticsOptions&&o.k.logUserAction(Object.assign({href:e},t.analyticsData),t.analyticsOptions),a.LocationUtils.PageLoad(e,i)},href:e,className:r};return n.createElement("a",Object.assign({},l),c)}},7989:(t,e,r)=>{r.d(e,{w:()=>c});var n=r(1024),o=r.n(n),a=r(58130),i=r(83914);var c=o().forwardRef((function(t,e){var r=t.onClickClear,n=t.showClearButton,c=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}(t,["onClickClear","showClearButton"]);return o().createElement("div",{className:"position-relative"},o().createElement("input",Object.assign({},c,{ref:e,className:"".concat(t.className," ").concat("LprCJ")})),(!!t.value||n)&&o().createElement("span",{className:"".concat("Xv1sR"," position-absolute cursor-pointer text-muted"),role:"button",onClick:r},o().createElement(i.x,{svgName:a.vn.Close,size:i.S.Medium})))}))},1355:(t,e,r)=>{r.d(e,{h:()=>ln});var n,o=r(1024),a=r.n(o),i=r(57900),c=r(2903),l=r(65858),u=r(58130),s=r(11607),f=r(2786),p=r(83914),h=r(99742);!function(t){t.AU="au",t.NZ="nz",t.UK="uk",t.US="us"}(n||(n={}));var d=r(1048),m=r(23481),y=m.T.encloseNamespace("signUp.helpers"),v=["uk","gb","gg","im","je","ie"],g={au:n.AU,nz:n.NZ,us:n.US,uk:n.UK,gb:n.UK,gg:n.UK,im:n.UK,je:n.UK,ie:n.UK},b={getCountryCode:function(t){return g[null==t?void 0:t.toLowerCase()]||n.US},isCountryCodeUK:function(t){return v.includes(t.toLowerCase())},isCountryCodeAU:function(t){return(null==t?void 0:t.toLowerCase())===n.AU},isCountryCodeUS:function(t){return(null==t?void 0:t.toLowerCase())===n.US},isCountryCodeNZ:function(t){return(null==t?void 0:t.toLowerCase())===n.NZ},isSupportedCountryCode:function(t){return d.t.keys(g).includes(null==t?void 0:t.toLowerCase())},getLocalizedLocalityPlaceholderPhrase:function(t){if(t){var e="LocalityInputPlaceholder";return b.isCountryCodeUK(t)?"uk".concat(e):b.isCountryCodeAU(t)||b.isCountryCodeNZ(t)?"au".concat(e):b.isCountryCodeUS(t)?"us".concat(e):void 0}},getLocalizedLocalityPlaceholderText:function(t){if(t){var e=b.getLocalizedLocalityPlaceholderPhrase(t);if(e)return y(e)}}},w=r(97395),E={Marketing:{au:"https://www.clickview.com.au",uk:"https://www.clickview.co.uk",nz:"https://www.clickview.co.nz",us:"https://www.clickvieweducation.com"},Support:{au:"https://www.clickviewsupport.com/hc/en-au",uk:"https://www.clickviewsupport.com/hc/en-au#gb",nz:"https://www.clickviewsupport.com/hc/en-au#nz",us:"https://www.clickviewsupport.com/hc/en-au#us"}},S={getMarketingUrlForGeoLocation:function(t){var e=b.getCountryCode(null==t?void 0:t.countryCode);return E.Marketing[e]||E.Marketing.us},getMarketingSalesContactForGeoLocation:function(t){var e=b.getCountryCode(null==t?void 0:t.countryCode),r=this.getMarketingUrlForGeoLocation(t);return t&&e===n.NZ?r+"/contact-us/":r+"/contact-us/trial/"},getFreeResourcesForGeoLocation:function(t){var e=b.getCountryCode(null==t?void 0:t.countryCode);return e===n.NZ&&(e=n.AU),this.getMarketingUrlForGeoLocation({countryCode:e})+"/free-student-resources//"},getTermsAndConditionsLink:function(){return this.getMarketingUrlForGeoLocation(n.US)+"/terms-and-conditions/"},getPrivacyPolicyLink:function(){return this.getMarketingUrlForGeoLocation(n.US)+"/privacy-policy/"},getSupportUrlForGeoLocation:function(t){var e=b.getCountryCode(null==t?void 0:t.countryCode);return E.Support[e]||E.Support.us},getLoginLink:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.email,r=t.customerId,n={redirectUrl:window.location.pathname+window.location.search};return e&&(n.email=e),r&&(n.customerId=r),w._.urlBuilder("/login",n)}};const x={crumb:"HuHpb"};function L(t,e){var r="rounded-circle mx-2 d-inline-block "+x.crumb,n=t===e?"bg-info":"bg-light";return"".concat(r," ").concat(n)}function k(t){return a().createElement("div",{className:"text-center"},t.crumbs.map((function(e){return a().createElement("div",{className:L(t.currentStep,e),key:e})})))}function j(t){return a().createElement("button",{onClick:t.onClick,className:"btn p-0 cursor-pointer d-inline-flex align-items-center"},a().createElement(p.x,{svgName:u.vn.ChevronLeft,size:p.S.Medium}),t.children)}var O=r(83345),N=r(98461),C="signUp.general.termsAndConditions";function A(t){var e=S.getTermsAndConditionsLink(),r=S.getPrivacyPolicyLink();return a().createElement("span",{className:"text-center text-md mt-2 text-normal"},a().createElement(O.x,{phrase:"textSignup",namespace:C}),a().createElement("br",null),a().createElement(N.d,{href:e,onClick:t.onClickTermsAndConditions,className:"info-link",newTab:!0},a().createElement(O.x,{phrase:"termsAndConditions",namespace:C}))," ",a().createElement(O.x,{phrase:"and",namespace:C})," ",a().createElement(N.d,{href:r,onClick:t.onClickPrivacyPolicy,className:"info-link",newTab:!0},a().createElement(O.x,{phrase:"privacyPolicy",namespace:C})))}var T="signUp.general.existingAccountSignIn";function P(t){return a().createElement(a().Fragment,null,a().createElement(O.x,{phrase:"text",namespace:T}),a().createElement(N.d,{href:t.link,onClick:t.onClick,className:"info-link ml-1"},a().createElement(O.x,{phrase:"link",namespace:T})))}var I=r(26392);F.defaultProps={showBackButton:!0};var _=["enter-email","find-school"],U=["enter-email","find-school","cant-find-school","add-to-braze","enter-age"];function F(t){var e=t.currentStep,r=t.previousStep,n=t.hasPreviousStep,o=t.showBackButton,i=t.closeApp,c=t.children;function d(){return["enter-email","find-school","cant-find-school","add-to-braze","enter-age"].includes(e)}function m(){r(),t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.Back,workflowPhase:l.WorkflowPhase.Back})}var y=U.includes(t.currentStep),v=y?"".concat(I.Z.leftHalfLayout," ").concat(I.Z.withBg):I.Z.leftHalfLayout;return a().createElement("div",{className:v},a().createElement("div",{className:"row mx-0 p-3"},a().createElement("div",{className:"col px-0 d-lg-none ".concat(I.Z.popupButton)},n&&d()&&o&&a().createElement(j,{onClick:m})),a().createElement("div",{className:"col col-lg-6 px-0"},a().createElement("div",{className:I.Z.logo},a().createElement("div",{className:"d-none d-lg-block"},y?a().createElement(f.Yo,null):a().createElement(f.$S,null)),a().createElement("div",{className:"d-block d-lg-none"},a().createElement(f.$S,null)))),a().createElement("div",{className:"col col-lg-6 d-flex flex-row justify-content-between px-0"},a().createElement("div",{className:"px-3"},a().createElement("div",{className:"d-none d-lg-block ".concat(I.Z.popupButton)},n&&d()&&o&&a().createElement(j,{onClick:m}))),a().createElement(s.L,{onClick:i,className:I.Z.popupButton},a().createElement(p.x,{svgName:u.vn.Close,size:p.S.Medium})))),a().createElement("div",{className:"row mx-0 flex-grow-1"},y&&a().createElement("div",{className:"col-6 px-0 d-none d-lg-block"},a().createElement("div",{className:"h-100 d-flex align-items-center justify-content-center"},a().createElement("img",{src:h.W.SignUp.POPUP_DASHBOARD,className:"w-100 p-4 pb-5"}))),a().createElement("div",{className:"px-4 pt-0 pb-4 ".concat(y?"col-12 col-lg-6":"col-12")},a().createElement("div",{className:"d-flex flex-column h-100"},_.includes(t.currentStep)&&a().createElement("div",{className:"mb-2"},a().createElement(k,{crumbs:_,currentStep:e})),a().createElement("div",{className:"flex-grow-1"},c),a().createElement("div",{className:"text-center"},"select-type"===e&&a().createElement(P,{link:S.getLoginLink(),onClick:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.SignIn})}}),["enter-email","add-to-braze"].includes(e)&&a().createElement(A,{onClickTermsAndConditions:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.TermsAndConditions})},onClickPrivacyPolicy:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.PrivacyPolicy})}}))))))}const G={fullPageLayout:"Ct4Ij",logo:"RcL6k",maxWidth42rem:"ifgIL",maxWidth23rem:"VkYGJ",maxWidth30rem:"LFZms"};K.defaultProps={showBackButton:!0};var D,M=["select-type","enter-email","find-school"];function K(t){var e=t.currentStep,r=t.previousStep,n=t.hasPreviousStep,o=t.showBackButton,i=t.children;return a().createElement("div",{className:"d-flex flex-column justify-content-between px-4 py-0 ".concat(G.fullPageLayout)},a().createElement("div",{className:"mt-3 mb-2"},M.includes(e)&&a().createElement(k,{crumbs:M,currentStep:e})),a().createElement("div",{className:"position-relative mx-auto w-100 ".concat("select-type"===e?G.maxWidth42rem:["enter-email","find-school","cant-find-school","add-to-braze","enter-age"].includes(e)?G.maxWidth23rem:G.maxWidth30rem)},a().createElement("div",{className:"d-flex flex-row justify-content-center align-items-center mt-2 mb-3"},n&&o&&["enter-email","find-school","cant-find-school","add-to-braze","enter-age"].includes(e)&&a().createElement(j,{onClick:function(){r(),t.logUserAction({step:e},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.Back,workflowPhase:l.WorkflowPhase.Back})}}),a().createElement("div",{className:"d-flex justify-content-center align-items-center px-2 ".concat(G.logo)},a().createElement(f.$S,null))),i),a().createElement("div",{className:"position-relative mb-4 text-center"},"select-type"===e&&a().createElement(P,{link:S.getLoginLink(),onClick:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.SignIn})}}),["enter-email","find-school","add-to-braze"].includes(e)&&a().createElement(A,{onClickTermsAndConditions:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.TermsAndConditions})},onClickPrivacyPolicy:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.PrivacyPolicy})}})))}function B(t){return B="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},B(t)}function R(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==B(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==B(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===B(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var z,$,Y={"cant-find-school":F,"enter-email":F,"find-school":F,"select-type":F,completed:F,"add-to-braze":F,"enter-age":F},H={"cant-find-school":K,"enter-email":K,"find-school":K,"select-type":K,completed:K,"add-to-braze":K,"enter-age":K},W=(R(D={},c.c.FullPage,H),R(D,c.c.Popup,Y),D),Z={getLayouts:function(t){return W[t]}};function q(t,e){return e?"".concat(t," ").concat(e):t}!function(t){t.Unavailable="unavailable",t.Expired="expired",t.Active="active",t.NotRequired="not-required",t.Available="available",t.Unsupported="unsupported"}(z||(z={})),function(t){t.InvalidEmail="invalid-email"}($||($={}));var J,V={Heading:function(t){return a().createElement("h1",{className:q("text-center mb-2 h4",t.className)},t.children)},Body:function(t){return a().createElement("div",{className:q("text-center text-sm px-2 px-lg-4",t.className)},t.children)},Message:function(t){return a().createElement("p",{className:q("",t.className)},t.children)}};function Q(t){return Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Q(t)}function X(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Q(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Q(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Q(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var tt=(X(J={},z.Available,h.W.SignUp.VERIFY_ACCOUNT),X(J,z.Active,h.W.SignUp.EXISTING_CUSTOMER),X(J,z.Expired,h.W.SignUp.EXPIRED_TRIAL),X(J,z.NotRequired,h.W.SignUp.EXISTING_CUSTOMER),X(J,z.Unavailable,h.W.SignUp.NOT_AVAILABLE),X(J,z.Unsupported,h.W.SignUp.NOT_AVAILABLE),J);function et(t){return a().createElement("div",{className:"d-flex justify-content-center my-4 px-2 px-lg-4"},a().createElement("img",{src:tt[t.trialStatus],className:"w-100 h-auto"}))}var rt="signUp.completedStepItem.addedToBraze",nt="young-student",ot="signUp.youngStudent",at="signUp.completedStepItem.unsupported",it="signUp.completedStepItem.expiredTrial",ct=r(99940),lt=r(11937);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:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new k(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(j([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==ut(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=S(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function S(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,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function j(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=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 i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var ft=function(t,e,r,n){return new(r||(r=Promise))((function(o,a){function i(t){try{l(n.next(t))}catch(t){a(t)}}function c(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,c)}l((n=n.apply(t,e||[])).next())}))},pt={checkTrialStatus:function(t){return ft(this,void 0,void 0,st().mark((function e(){var r;return st().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={email:t.email},e.abrupt("return",lt.b.asyncFetch({url:"/api/user/trials/status",data:r}));case 2:case"end":return e.stop()}}),e)})))},checkProspectTrialStatus:function(t,e,r,n){var o="/api/user/trials/prospect/".concat(t.prospectId,"/status");lt.b.fetch({url:o,success:e,error:r,always:n})},createTrial:function(t){return ft(this,void 0,void 0,st().mark((function e(){var r;return st().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",lt.b.asyncFetch({url:"/api/user/trials",method:ct.k.POST,data:r}));case 2:case"end":return e.stop()}}),e)})))},resendTrialEmail:function(t,e){return ft(this,void 0,void 0,st().mark((function r(){var n;return st().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",lt.b.asyncFetch({url:"/api/user/trials/users/".concat(t,"/send-activation-email"),method:ct.k.POST,data:n}));case 2:case"end":return r.stop()}}),r)})))}};function ht(t){return ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ht(t)}function dt(){dt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new k(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(j([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==ht(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=S(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function S(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,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function j(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=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 i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function mt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return yt(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)?yt(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 yt(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 vt="signUp.completedStepItem.verifyAccount",gt="signUp.completedStepItem.existingCustomer";function bt(t){var e=(null==t?void 0:t.previousStepIds)&&"find-school"===t.previousStepIds[t.previousStepIds.length-1],r=(null==t?void 0:t.schoolName)||"Your school";return console.log(t.customerId),a().createElement(V.Body,{className:"mb-3"},e?a().createElement(a().Fragment,null,a().createElement(V.Heading,null,a().createElement(O.x,{phrase:"schoolMessageTitle",namespace:gt,options:{school:r}})),a().createElement(V.Message,{className:"mt-3"},a().createElement(O.x,{phrase:"schoolMessageSso",namespace:gt})," ",a().createElement("a",{href:S.getLoginLink({email:t.email,customerId:t.customerId}),className:"info-link"},a().createElement(O.x,{phrase:"schoolMessageSsoSignIn",namespace:gt}))),a().createElement(V.Message,null,a().createElement(O.x,{phrase:"schoolMessageParagraph",namespace:gt}))):a().createElement(a().Fragment,null,a().createElement(V.Heading,null,a().createElement(O.x,{phrase:"heading",namespace:gt})),a().createElement(V.Message,null,a().createElement(O.x,{phrase:"userMessageTitle",namespace:gt,options:{email:t.email}})),a().createElement(V.Message,null,a().createElement("a",{href:S.getLoginLink({email:t.email}),className:"btn btn-dark btn-lg w-100"},a().createElement(O.x,{phrase:"signIn",namespace:gt})))),a().createElement(V.Message,null,a().createElement(O.x,{phrase:"helpText",namespace:gt})," ",a().createElement(N.d,{href:S.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link",newTab:!0},a().createElement(O.x,{phrase:"helpLink",namespace:gt}))))}var wt,Et="signUp.completedStepItem.trialNotAvailable";function St(t){return St="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},St(t)}function xt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==St(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==St(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===St(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Lt=(xt(wt={},z.Available,(function(t){var e=mt(a().useState(0),2),r=e[0],n=e[1],o=mt(a().useState(!1),2),i=o[0],c=o[1];if(null==t?void 0:t.email)return a().createElement(V.Body,null,a().createElement(V.Heading,null,a().createElement(O.x,{namespace:vt,phrase:"heading"})),a().createElement(V.Message,null,a().createElement(O.x,{namespace:vt,phrase:"message",options:{email:t.email}})),r<1?a().createElement(V.Message,null,a().createElement(O.x,{namespace:vt,phrase:"helpText"})," ",a().createElement("button",{onClick:function(e){return o=this,a=void 0,i=void 0,u=dt().mark((function o(){return dt().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return null==e||e.preventDefault(),o.prev=1,o.next=4,pt.resendTrialEmail(t.userId,{email:t.email,appLink:t.pageAppLinkString});case 4:n(r+1),o.next=10;break;case 7:o.prev=7,o.t0=o.catch(1),c(!0);case 10:t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.ResendEmail});case 11:case"end":return o.stop()}}),o,null,[[1,7]])})),new(i||(i=Promise))((function(t,e){function r(t){try{c(u.next(t))}catch(t){e(t)}}function n(t){try{c(u.throw(t))}catch(t){e(t)}}function c(e){var o;e.done?t(e.value):(o=e.value,o instanceof i?o:new i((function(t){t(o)}))).then(r,n)}c((u=u.apply(o,a||[])).next())}));var o,a,i,u},className:"btn info-link p-0"},a().createElement(O.x,{namespace:vt,phrase:"helpLink"}))):a().createElement(O.x,{namespace:vt,phrase:"resent"}),i&&a().createElement(V.Message,{className:"mb-0 text-danger"},a().createElement(O.x,{namespace:vt,phrase:"resendErrorText"})," ",a().createElement("a",{href:S.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link"},a().createElement(O.x,{namespace:vt,phrase:"resendErrorLink"}))))})),xt(wt,z.Active,bt),xt(wt,z.Expired,(function(t){var e=S.getMarketingSalesContactForGeoLocation(t.geoLocation),r=(null==t?void 0:t.previousStepIds)&&"find-school"===t.previousStepIds[t.previousStepIds.length-1],n=(null==t?void 0:t.schoolName)||"Your school";return a().createElement(V.Body,null,a().createElement(V.Heading,null,r?a().createElement(O.x,{namespace:it,phrase:"schoolMessageTitle",options:{schoolName:n}}):a().createElement(O.x,{namespace:it,phrase:"userMessageTitle"})),a().createElement(V.Message,null,a().createElement(O.x,{namespace:it,phrase:"context"})," ",a().createElement(N.d,{href:e,className:"info-link",newTab:!0},a().createElement(O.x,{namespace:it,phrase:"contextLink"}))))})),xt(wt,z.NotRequired,bt),xt(wt,z.Unavailable,(function(t){var e=S.getMarketingSalesContactForGeoLocation(t.geoLocation);return a().createElement(V.Body,null,a().createElement(V.Heading,null,a().createElement(O.x,{namespace:Et,phrase:"heading"})),a().createElement(V.Message,null,a().createElement(O.x,{namespace:Et,phrase:"helpText",options:{link:e}})))})),xt(wt,z.Unsupported,(function(){return a().createElement(V.Body,null,a().createElement(V.Heading,{className:"px-2 px-lg-4"},a().createElement(O.x,{namespace:at,phrase:"schoolMessageTitle"})),a().createElement(V.Message,null,a().createElement(O.x,{namespace:at,phrase:"schoolMessageDescription"})))})),wt);function kt(t){var e=Lt[t.trialStatus];return a().createElement(e,Object.assign({},t))}var jt,Ot={"trial-status":function(t){return a().useEffect((function(){var e={actionType:l.UserAction.Create,descriptor:l.SignUpDescriptors.DeadEnd,workflowPhase:l.WorkflowPhase.Discard};t.trialCreated&&(e.descriptor=l.SignUpDescriptors.TrialCreated,e.workflowPhase=l.WorkflowPhase.Complete),t.logUserAction({},e)}),[]),a().createElement(a().Fragment,null,a().createElement(et,{trialStatus:t.trialStatus}),a().createElement(kt,Object.assign({},t)))},"added-to-braze":function(t){return a().useEffect((function(){t.logUserAction({},{actionType:l.UserAction.Create,descriptor:l.SignUpDescriptors.TrialRequested,workflowPhase:l.WorkflowPhase.Complete})}),[]),a().createElement(a().Fragment,null,a().createElement(et,{trialStatus:z.Available}),a().createElement(V.Body,{className:"mb-3"},a().createElement(V.Heading,null,a().createElement(O.x,{namespace:rt,phrase:"heading"})),a().createElement(V.Message,null,a().createElement(O.x,{namespace:rt,phrase:"message"}))))},"young-student":function(t){var e=S.getFreeResourcesForGeoLocation(t.geoLocation);return a().useEffect((function(){i.SG.set(nt,!0)}),[]),a().createElement(a().Fragment,null,a().createElement(et,{trialStatus:z.Active}),a().createElement(V.Body,{className:"mb-3"},a().createElement(V.Heading,null,a().createElement(O.x,{namespace:ot,phrase:"heading"})),a().createElement(V.Message,null,a().createElement(O.x,{namespace:ot,phrase:"message"})),a().createElement(N.d,{href:e,className:"btn btn-lg btn-dark w-100"},a().createElement(O.x,{namespace:ot,phrase:"cta"}))))}},Nt=r(2102),Ct=r(7989);function At(t){return At="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},At(t)}function Tt(){Tt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new k(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(j([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==At(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=S(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function S(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,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function j(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=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 i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Pt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return It(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?It(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function It(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _t(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==At(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==At(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===At(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ut=new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/),Ft="signUp.enterEmailStepItem",Gt=m.T.encloseNamespace(Ft),Dt=(_t(jt={},n.AU,"valerie.frizzle@school.edu.au"),_t(jt,n.UK,"valerie.frizzle@school.gov.uk"),_t(jt,n.US,"valerie.frizzle@school.gov"),_t(jt,n.NZ,"valerie.frizzle@school.nz"),jt);function Mt(t){return Dt[b.getCountryCode(t.countryCode)]||Dt.us}var Kt,Bt=[z.Expired,z.NotRequired,z.Unavailable,z.Unsupported,z.Active];!function(t){t.Staff="staff",t.Learner="learner"}(Kt||(Kt={}));var Rt=r(33003),zt=r.n(Rt),$t=r(63093);function Yt(t){return Yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yt(t)}function Ht(){Ht=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new k(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(j([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Yt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=S(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function S(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,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function j(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=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 i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var Wt=function(t,e,r,n){return new(r||(r=Promise))((function(o,a){function i(t){try{l(n.next(t))}catch(t){a(t)}}function c(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,c)}l((n=n.apply(t,e||[])).next())}))},Zt={config:function(){return Wt(this,void 0,void 0,Ht().mark((function t(){return Ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",lt.b.asyncFetch({url:"/api/config"}));case 1:case"end":return t.stop()}}),t)})))},version:function(){return Wt(this,void 0,void 0,Ht().mark((function t(){return Ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",lt.b.asyncFetchPlain({url:"/api/version"}));case 1:case"end":return t.stop()}}),t)})))}};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 Jt(){Jt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new k(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(j([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==qt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=S(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function S(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,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function j(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=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 i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var Vt=function(t,e,r,n){return new(r||(r=Promise))((function(o,a){function i(t){try{l(n.next(t))}catch(t){a(t)}}function c(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,c)}l((n=n.apply(t,e||[])).next())}))},Qt={au:"cv-ap-southeast-1",uk:"cv-eu-west-1",us:"cv-ap-southeast-1",nz:"cv-ap-southeast-1"},Xt={k12:"Primary & Secondary"},te={getConfig:function(){return Vt(this,void 0,void 0,Jt().mark((function t(){return Jt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Zt.config();case 2:return t.t0=t.sent,t.next=5,Zt.version();case 5:return t.t1=t.sent,t.abrupt("return",{config:t.t0,version:t.t1});case 7:case"end":return t.stop()}}),t)})))},getClient:function(t){return Vt(this,void 0,void 0,Jt().mark((function e(){var r,n,o,a,i;return Jt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,te.getConfig();case 2:return r=e.sent,n=r.config,o=r.version,a=b.getCountryCode(null==t?void 0:t.countryCode),i=n.braze[Qt[a]],e.abrupt("return",(0,$t.getInstance)({baseUrl:i.url,apiKey:i.apiKey,productVersion:o,productName:"lite.web",enableLogging:!1,automaticallyShowInAppMessages:!1}));case 8:case"end":return e.stop()}}),e)})))},hashedEmail:function(t){var e=t.trim().toLowerCase();return zt().hash(e)},removeEmptyKeys:function(t){var e=Object.assign({},t);return Object.keys(e).forEach((function(t){null!==e[t]&&void 0!==e[t]&&("string"!=typeof e[t]||e[t].length)||delete e[t]})),e},getEventTopic:function(){return"Free Trial Request"},getCustomEventType:function(){return"product_trial_requested"},getSchoolType:function(t){if(t)return Xt[t.toLowerCase()]||t}},ee=["Teacher","Librarian","Curriculum Coordinator","Digital Technology Coordinator","IT","Head of Department","Deputy Principal","Principal"],re=["Teacher","Librarian","Head of department","Curriculum coordinator","School leadership","District leadership","Academic coach","Instructional technology specialist","Consortium leadership","IT"],ne={au:ee,nz:ee,uk:["Teacher","Librarian","IT/LRC","e-Learning/ICT Coordinator","Head of Key Stage","Head of Department","Subject Lead","Assistant Head Teacher","Deputy Tead Teacher","Head Teacher"],us:re};function oe(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ae(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ae(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ae(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var ie=m.T.encloseNamespace("signUp.addToBrazeStepItem"),ce="OTHER";function le(t){var e=t.error,r=t.onChange,n=t.countryCode,o=oe(a().useState(""),2),i=o[0],c=o[1],l=oe(a().useState(""),2),u=l[0],s=l[1],f=function(t){return ne[t]||re}(n),p=i===ce;return a().createElement(a().Fragment,null,a().createElement("div",{className:"mb-2"},a().createElement("select",{id:t.id,name:t.id,className:"form-control form-control-lg ".concat(i.length?"text-dark":"text-secondary"," ").concat(!!e&&"is-invalid"),value:i,placeholder:"Role",onChange:function(t){c(t.target.value),s(""),r(t.target.value===ce?"":t.target.value)}},a().createElement("option",{value:"",disabled:!0,className:"text-muted"},ie("placeholderJobTitle")),f.map((function(t,e){return a().createElement("option",{value:t,className:"text-dark",key:e},t)})),a().createElement("option",{value:ce,className:"text-dark"},"Other")),!!e&&!p&&a().createElement("div",{className:"invalid-feedback"},e)),p&&a().createElement("div",{className:"mb-3"},a().createElement("input",{className:"form-control form-control-lg ".concat(!!e&&"is-invalid"),type:"text",value:u,placeholder:ie("placeholderJobTitle"),autoFocus:!0,onChange:function(t){s(t.target.value),r(t.target.value)}}),!!e&&a().createElement("div",{className:"invalid-feedback"},e)))}function ue(t){return ue="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},ue(t)}function se(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 fe="signUp.addToBrazeStepItem",pe=m.T.encloseNamespace(fe);function he(t){var e,r,n,o,i,c,l,u,s,f=(u=a().useState({fullname:"",jobTitle:"",phone:""}),s=2,function(t){if(Array.isArray(t))return t}(u)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(u,s)||function(t,e){if(t){if("string"==typeof t)return se(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)?se(t,e):void 0}}(u,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=f[0],h=f[1];function d(t,e){h((function(r){return Object.assign(Object.assign({},r),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==ue(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==ue(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===ue(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},t,e))}))}return a().createElement("div",{className:"text-center"},a().createElement("h1",{className:"text-center h4"},a().createElement(O.x,{namespace:fe,phrase:"formHeading"})),a().createElement("p",null,a().createElement(O.x,{namespace:fe,phrase:"formSubHeading"})),a().createElement("form",{onSubmit:function(e){e.preventDefault(),t.handleSubmitForm(p)}},a().createElement("div",{className:"form-group text-left"},a().createElement("label",{className:"d-block font-weight-bold mb-1",htmlFor:"fullname-input"},a().createElement(O.x,{namespace:fe,phrase:"labelFullName"})),a().createElement(Ct.w,{value:p.fullname,onChange:function(e){e.preventDefault(),d("fullname",e.target.value),t.removeErrorForKey("fullname"),t.removeErrorForKey("submission")},name:"fullname-input",id:"fullname-input",type:"text",className:"form-control form-control-lg ".concat((null===(e=t.errors.fullname)||void 0===e?void 0:e.length)?"is-invalid":""),placeholder:pe("placeholderFullName"),onClickClear:function(){d("fullname",""),t.removeErrorForKey("fullname"),t.removeErrorForKey("submission")},autoFocus:!0}),t.errors.fullname&&a().createElement("div",{className:"invalid-feedback d-block"},t.errors.fullname)),a().createElement("div",{className:"form-group text-left"},a().createElement("label",{className:"d-block font-weight-bold mb-1",htmlFor:"phone-input"},a().createElement(O.x,{namespace:fe,phrase:"labelPhone"})),a().createElement(Ct.w,{value:p.phone,onChange:function(e){e.preventDefault(),d("phone",e.target.value.trim()),t.removeErrorForKey("phone"),t.removeErrorForKey("submission")},name:"phone-input",id:"phone-input",type:"tel",className:"form-control form-control-lg ".concat((null===(r=t.errors.phone)||void 0===r?void 0:r.length)?"is-invalid":""),placeholder:pe("placeholderPhone"),onClickClear:function(){d("phone",""),t.removeErrorForKey("phone"),t.removeErrorForKey("submission")}}),t.errors.phone&&a().createElement("div",{className:"invalid-feedback d-block"},t.errors.phone)),a().createElement("div",{className:"form-group text-left"},a().createElement("label",{className:"d-block font-weight-bold mb-1",htmlFor:"jobTitle-select"},a().createElement(O.x,{namespace:fe,phrase:"labelJobTitle"})),a().createElement(le,{id:"jobTitle-select",countryCode:b.getCountryCode(t.country),onChange:function(e){d("jobTitle",e),t.removeErrorForKey("jobTitle"),t.removeErrorForKey("submission")},error:null===(n=t.errors)||void 0===n?void 0:n.jobTitle})),!!(null===(o=t.errors)||void 0===o?void 0:o.submission)&&a().createElement("div",{className:"form-group invalid-feedback d-block"},t.errors.submission),a().createElement("div",{className:"form-group mb-1"},a().createElement(Nt.m,{className:"btn btn-dark btn-lg w-100",onClick:function(){return t.handleSubmitForm(p)},showSpinner:t.loading,disabled:t.loading||(i=p.fullname,c=p.jobTitle,l=p.phone,!(i.length&&c.length&&l.length&&!Object.keys(t.errors).length))},a().createElement(O.x,{namespace:fe,phrase:"formSubmitButton"})))))}function de(t){return de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},de(t)}function me(){me=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new k(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(j([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==de(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=S(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function S(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,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function j(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=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 i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function ye(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ve(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ve(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ve(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var ge,be=255,we=/\$+[\w\s]?/,Ee=/^\+?\d{4,255}$/,Se=m.T.encloseNamespace("signUp.addToBrazeStepItem");function xe(t){if(!t)return{firstName:"",surname:""};var e=t.split(" ").filter((function(t){return t.length}));return{firstName:e.shift(),surname:e.join(" ")}}!function(t){t.FourteenDays="trial_14_v1",t.Freemium="freemium_v1"}(ge||(ge={}));var Le=function(t){return b.isCountryCodeUS(t)||b.isCountryCodeUK(t)?ge.Freemium:ge.FourteenDays},ke=r(99910),je=r(28329);function Oe(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ne(t){var e,r,n=(e=a().useState(0),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return Oe(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Oe(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=n[0],i=n[1],c=a().useRef();function l(){var t;c.current&&(null===(t=c.current.children[o-1])||void 0===t||t.scrollIntoView({block:"center"}))}return{selectedIndex:o,onKeyDown:function(e){if("ArrowDown"===e.code){e.stopPropagation(),e.preventDefault();var r=o+1;return r>t.itemCount&&(r=1),i(r),void l()}if("ArrowUp"===e.code){e.stopPropagation(),e.preventDefault();var n=o-1;return n<=0&&(n=t.itemCount),i(n),void l()}if("Enter"===e.code&&o>0)return e.stopPropagation(),e.preventDefault(),void t.onSelected(o-1);i(0)},containerRef:c}}function Ce(t){return Ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ce(t)}function Ae(){Ae=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new k(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(j([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Ce(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=S(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function S(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,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function j(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=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 i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var Te={search:function(t,e,r,n){var o={Longitude:t.longitude,Latitude:t.latitude};t.query&&(o.Query=t.query),lt.b.fetch({url:"/api/prospects/search",data:o,success:e,error:r,always:n})},create:function(t){return e=this,r=void 0,n=void 0,o=Ae().mark((function e(){return Ae().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",lt.b.asyncFetch({url:"/api/prospects",method:ct.k.POST,data:t}));case 1:case"end":return e.stop()}}),e)})),new(n||(n=Promise))((function(t,a){function i(t){try{l(o.next(t))}catch(t){a(t)}}function c(t){try{l(o.throw(t))}catch(t){a(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(t){t(r)}))).then(i,c)}l((o=o.apply(e,r||[])).next())}));var e,r,n,o},getLookups:function(t){return lt.b.asyncFetch({url:"/api/prospects/".concat(t,"/lookups")})}};const Pe={baseText:"zCAkp",inputFocused:"hQufn",input:"j8tBX",suggestionContainer:"CnoBz",noBottomBorder:"E3f3x",localitySuggestion:"TGAhk",suggestionItem:"GQ_aO",suggestionLoading:"Eo2UF",noSuggestion:"xaEZw",selected:"mxCSz"};function Ie(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return _e(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_e(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _e(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Ue="signUp.searchSchoolStepItem",Fe=m.T.encloseNamespace(Ue);function Ge(t){var e=t.filteredSchoolsList,r=t.getSchoolName,n=t.onSchoolSuggestionClick,o=t.selectedIndex;return a().createElement(a().Fragment,null,e.map((function(t,e){return a().createElement(s.L,{className:"".concat(Pe.suggestionItem," ").concat(o-1===e?Pe.selected:""),key:t.id,onClick:function(){return n(t)}},r(t)," ",a().createElement("br",null),a().createElement("small",{className:"text-muted"},function(t){var e=[];return t.city&&e.push(t.city.toLowerCase().split(" ").map((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})).join(" ")),t.province&&e.push(t.province),t.postCode&&e.push(t.postCode),e.join(" ")}(t)))})))}function De(t){return a().createElement("div",{className:"info-link ".concat(Pe.suggestionItem," ").concat(Pe.noSuggestion," ").concat(t.selected?Pe.selected:""),onClick:t.handleNoSuggestion},a().createElement(O.x,{namespace:Ue,phrase:"cantFindSchool"}))}function Me(t){var e,r,n=a().useRef(),o=Ie(a().useState(!0),2),i=o[0],c=o[1],u=Ie(a().useState(t.data.schoolName&&t.data.schoolPostCode?t.data.schoolName+", "+t.data.schoolPostCode:t.data.schoolName?t.data.schoolName:""),2),s=u[0],f=u[1],p=Ie(a().useState(),2),h=p[0],d=p[1],m=(0,je.N)(s,250),y=Ne({onSelected:function(t){if(h||t)if(t!==h.length){var e=h[t];e&&j(e)}else N()},itemCount:null!==(e=(null==h?void 0:h.length)+1)&&void 0!==e?e:0}),v=y.selectedIndex,g=y.onKeyDown,b=y.containerRef,w=!!(null===(r=t.data)||void 0===r?void 0:r.prospectId),E=i&&!w,S=!i&&!w&&!(null==h?void 0:h.length),x=(null==h?void 0:h.length)&&!w;function L(e){(t.data.schoolName||t.data.prospectId)&&t.clearStepItemData(),e!==s&&f(e)}function k(e){c(!0);var r={latitude:t.data.latitude,longitude:t.data.longitude};e&&e.length&&(r.query=e),Te.search(r,(function(t){return d(t)}),null,(function(){return c(!1)}))}function j(e){f(O(e)),t.setDataProperty("prospectId",e.id),t.setDataProperty("schoolName",e.name),t.setDataProperty("schoolPostCode",e.postCode),t.setDataProperty("schoolType",e.prospectType),t.setDataProperty("province",e.province),t.setDataProperty("city",e.city),t.setDataProperty("country",e.countryCode)}function O(t){return t.name}function N(){t.nextStep({step:"cant-find-school",prospectId:t.data.prospectId,schoolName:s,schoolLocality:t.data.schoolLocality,longitude:t.data.longitude,latitude:t.data.latitude,country:t.data.country,city:t.data.city,province:t.data.province}),t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.CantFindSchool,workflowPhase:l.WorkflowPhase.Next})}a().useEffect((function(){w||(m.length?!w&&m.length>1&&m===s&&k(m):k())}),[m,w]);var C=x||E||S;return a().createElement("div",{className:"form-group position-relative"},a().createElement(Ct.w,{value:s,onChange:function(t){return L(t.currentTarget.value)},ref:n,className:"form-control form-control-lg ".concat(C?Pe.inputFocused:Pe.input),type:"text",autoComplete:"off",placeholder:Fe("schoolInputPlaceholder"),disabled:t.disabled,autoFocus:!0,onClickClear:function(){L(""),n.current.focus()},onKeyDown:g}),a().createElement("div",{className:"position-absolute w-100"},a().createElement("div",{className:"".concat(Pe.suggestionContainer," ").concat(C?"":"d-none"),ref:b},x?a().createElement(Ge,{filteredSchoolsList:h,onSchoolSuggestionClick:j,getSchoolName:O,selectedIndex:v}):E&&a().createElement("div",{className:"".concat(Pe.suggestionLoading," py-4 d-flex justify-content-center")},a().createElement(ke.Spinner,{animation:"border"})),!E&&(null==h?void 0:h.length)<5&&a().createElement(De,{selected:v===h.length+1,handleNoSuggestion:N}))))}var Ke=r(10874),Be=function t(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){if(e.constructor!==r.constructor)return!1;var n,o,a;if(Array.isArray(e)){if((n=e.length)!=r.length)return!1;for(o=n;0!=o--;)if(!t(e[o],r[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if((n=(a=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,a[o]))return!1;for(o=n;0!=o--;){var i=a[o];if(!t(e[i],r[i]))return!1}return!0}return e!=e&&r!=r};const Re="__googleMapsScriptId";var ze;!function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"}(ze||(ze={}));class $e{constructor({apiKey:t,authReferrerPolicy:e,channel:r,client:n,id:o=Re,language:a,libraries:i=[],mapIds:c,nonce:l,region:u,retries:s=3,url:f="https://maps.googleapis.com/maps/api/js",version:p}){if(this.CALLBACK="__googleMapsCallback",this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=e,this.channel=r,this.client=n,this.id=o||Re,this.language=a,this.libraries=i,this.mapIds=c,this.nonce=l,this.region=u,this.retries=s,this.url=f,this.version=p,$e.instance){if(!Be(this.options,$e.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify($e.instance.options)}`);return $e.instance}$e.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?ze.FAILURE:this.done?ze.SUCCESS:this.loading?ze.LOADING:ze.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let t=this.url;return t+=`?callback=${this.CALLBACK}`,this.apiKey&&(t+=`&key=${this.apiKey}`),this.channel&&(t+=`&channel=${this.channel}`),this.client&&(t+=`&client=${this.client}`),this.libraries.length>0&&(t+=`&libraries=${this.libraries.join(",")}`),this.language&&(t+=`&language=${this.language}`),this.region&&(t+=`&region=${this.region}`),this.version&&(t+=`&v=${this.version}`),this.mapIds&&(t+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(t+=`&auth_referrer_policy=${this.authReferrerPolicy}`),t}deleteScript(){const t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise(((t,e)=>{this.loadCallback((r=>{r?e(r.error):t(window.google)}))}))}loadCallback(t){this.callbacks.push(t),this.execute()}setScript(){if(document.getElementById(this.id))return void this.callback();const t=this.createUrl(),e=document.createElement("script");e.id=this.id,e.type="text/javascript",e.src=t,e.onerror=this.loadErrorCallback.bind(this),e.defer=!0,e.async=!0,this.nonce&&(e.nonce=this.nonce),document.head.appendChild(e)}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(t){if(this.errors.push(t),this.errors.length<=this.retries){const t=this.errors.length*Math.pow(2,this.errors.length);console.log(`Failed to load Google Maps script, retrying in ${t} ms.`),setTimeout((()=>{this.deleteScript(),this.setScript()}),t)}else this.onerrorEvent=t,this.callback()}setCallback(){window.__googleMapsCallback=this.callback.bind(this)}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach((t=>{t(this.onerrorEvent)})),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),void this.callback();this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}}function Ye(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return He(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)?He(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 He(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function We(t){return new $e({apiKey:t.apiKey,version:"weekly",libraries:t.libraries,retries:3})}function Ze(t){var e={apiKey:t.apiKey,libraries:t.libraries||["places"]},r=Ye(a().useState(!1),2),n=r[0],o=r[1],i=Ye(a().useState(We(e)),2),c=i[0],l=i[1];function u(t,r){c?c.loadCallback((function(e){if(e)return o(!1),void(r&&r(e));o(!0),t&&t()})):l(We(e))}return a().useEffect((function(){u()}),[]),{loader:c,scriptLoaded:n,onGoogleApiReady:u}}function qe(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return Je(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Je(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function Je(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Ve={getPlaceDetails:function(t){var e,r,n,o,a,i=t.formatted_address,c=qe(t.address_components);try{for(c.s();!(a=c.n()).done;){var l,u=a.value,s=qe(u.types);try{for(s.s();!(l=s.n()).done;){var f=l.value;"locality"===f&&(e=u.short_name),"administrative_area_level_1"===f&&(r=u.short_name),"postal_code"===f&&(o=u.short_name),"country"===f&&(n=u.short_name)}}catch(t){s.e(t)}finally{s.f()}}}catch(t){c.e(t)}finally{c.f()}return{locality:i,country:n,postalCode:o,city:e,province:r}}};function Qe(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Xe=m.T.encloseNamespace("signUp.hooks"),tr={1:"geocoderPermissionDenied",2:"geocoderUnavailable",3:"geocoderTimeout"};function er(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function rr(t){var e,r,n=Ze({apiKey:t.googleApiKey}).scriptLoaded,o=(e=a().useState(),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return er(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?er(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],c=o[1];return a().useEffect((function(){n&&c(new google.maps.places.AutocompleteService)}),[n]),i}function nr(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 or=r(45157);function ar(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="us",cr="country:placeholder:text";function lr(t){var e,r,n=t.apiKey,o=t.geoLocation,c=t.makeRequest,l=void 0===c||c,u=t.template,s=void 0===u?"E.g. [placeholder]":u,f=t.templateKey,p=void 0===f?"[placeholder]":f,h=rr({googleApiKey:n}),d=a().useState((function(){return function(t){var e=b.getLocalizedLocalityPlaceholderText(null==t?void 0:t.countryCode);return e||(i.SG.cacheGet("".concat(cr,":").concat(null==t?void 0:t.countryCode))||void 0)}(o)})),m=(r=2,function(t){if(Array.isArray(t))return t}(e=d)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return ar(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)?ar(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),y=m[0],v=m[1];function g(t,e){i.SG.cacheSet("".concat(cr,":").concat(e),t,86400),v(t)}return a().useEffect((function(){if(!y&&h&&l){var t=(null==o?void 0:o.countryCode)||ir,e={input:String.fromCharCode(96+or.Y.getRandomInt(26)),types:["(cities)"],region:t,componentRestrictions:{country:t}};h.getPlacePredictions(e,(function(e,r){return function(t,e,r){if(e===google.maps.places.PlacesServiceStatus.OK&&t){var n=t[or.Y.getRandomInt(t.length)].description;g(s.replace(p,n),r)}else g(b.getLocalizedLocalityPlaceholderText(ir),r)}(e,r,t)}))}}),[y,h,o,l]),y}function ur(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return sr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?sr(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var fr="signUp.searchSchoolStepItem",pr=m.T.encloseNamespace(fr);function hr(t){var e=t.predictions,r=t.getPlaceInfo,n=t.selectedIndex;return a().createElement(a().Fragment,null,e.map((function(t,e){return a().createElement(s.L,{className:"".concat(Pe.suggestionItem," ").concat(n-1===e?Pe.selected:""),key:t.place_id,onClick:function(){return r(t)}},t.description)})))}function dr(t){var e,r,n,o,i,c,f=a().useRef(),h=ur(a().useState((null===(e=t.data)||void 0===e?void 0:e.schoolLocality)||""),2),d=h[0],m=h[1],y=ur(a().useState(!1),2),v=y[0],g=y[1],b=lr({apiKey:t.googleMapsApiKey,geoLocation:t.geoLocation}),w=function(t){var e,r,n=t.search,o=t.makePredicition,i=t.geoLocation,c=rr({googleApiKey:t.apiKey}),l=(0,je.N)(n,300),u=(e=a().useState(),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return nr(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)?nr(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=u[0],f=u[1];function p(t,e){e===google.maps.places.PlacesServiceStatus.OK&&t?f(t):f(void 0)}return a().useEffect((function(){if(c)if(0!==(null==l?void 0:l.length)&&o){var t=(null==i?void 0:i.countryCode)||"us";c.getPlacePredictions({input:l,componentRestrictions:{country:t},region:t,types:["locality","sublocality","postal_code"]},p)}else f(void 0)}),[l,o,c]),{localityPredicitions:s,getPlaceInfo:function(t,e,r){new google.maps.places.PlacesService(e.current).getDetails({placeId:t.place_id,fields:["geometry","address_components","formatted_address"],region:i.countryCode},(function(t,e){if(e===google.maps.places.PlacesServiceStatus.OK){var n=t.geometry.location.lng(),o=t.geometry.location.lat(),a=Ve.getPlaceDetails(t),i=a.locality,c=a.country,l=a.postalCode,u=a.city,s=a.province;r({longitude:n,latitude:o,locality:i,country:c,city:u,postalCode:l,province:s})}}))}}}({search:d,makePredicition:v,geoLocation:t.geoLocation,apiKey:t.googleMapsApiKey}),E=w.localityPredicitions,S=w.getPlaceInfo,x=function(t){var e,r,n=(e=a().useState({}),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return Qe(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Qe(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=n[0],i=n[1],c=Ze(t).onGoogleApiReady;function l(t){var e=t.coords,r=e.latitude,n=e.longitude,o=new google.maps.LatLng(r,n);(new google.maps.Geocoder).geocode({location:o},(function(t,e){if(e===google.maps.GeocoderStatus.OK){var o=t.find((function(t){return t.types.includes("locality")||t.types.includes("administrative_area_level_2")})),a=Ve.getPlaceDetails(o);i(Object.assign(Object.assign({},a),{longitude:n,latitude:r}))}}))}function u(e){var r=tr[e.code];r||(r="geocoderUnknown"),t.onPositionError(Xe(r))}return{placeDetails:o,onClickGetCurrentLocation:function(){c((function(){window.navigator.geolocation.getCurrentPosition(l,u)}))}}}({apiKey:t.googleMapsApiKey,onPositionError:function(t){g(!0),_(t)}}),L=x.placeDetails,k=x.onClickGetCurrentLocation,j=window.navigator.geolocation?1:0,N=Ne({onSelected:function(t){if(E)if(t!==E.length){var e=E[t];e&&G(e)}else D()},itemCount:null!==(r=(null==E?void 0:E.length)+j)&&void 0!==r?r:0}),C=N.selectedIndex,A=N.onKeyDown,T=N.containerRef,P=ur(a().useState(),2),I=P[0],_=P[1];function U(e){var r,n,o;I&&_(void 0),v||g(!0),((null===(r=t.data)||void 0===r?void 0:r.longitude)||(null===(n=t.data)||void 0===n?void 0:n.latitude)||(null===(o=t.data)||void 0===o?void 0:o.schoolLocality))&&t.clearStepGroupData(),m(e)}function F(e){var r=e.longitude,n=e.latitude,o=e.locality,a=e.country,i=e.city,c=e.province;r&&t.setDataProperty("longitude",r),n&&t.setDataProperty("latitude",n),a&&t.setDataProperty("country",a),i&&t.setDataProperty("city",i),c&&t.setDataProperty("province",c),o&&function(e){t.setDataProperty("schoolLocality",e),m(e)}(o)}function G(t){v&&g(!1),S(t,f,F)}function D(e){null==e||e.preventDefault(),g(!1),k(),t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.UseMyLocation})}a().useEffect((function(){F(L)}),[L]);var M,K=(null==E?void 0:E.length)&&!(null===(o=null===(n=t.data)||void 0===n?void 0:n.schoolLocality)||void 0===o?void 0:o.length),B=window.navigator.geolocation&&!(null===(c=null===(i=t.data)||void 0===i?void 0:i.schoolLocality)||void 0===c?void 0:c.length),R=t.labelClassName||"d-block text-center mb-3 font-weight-normal ".concat(Pe.baseText);return a().createElement("div",{className:"form-group position-relative"},a().createElement("label",{className:R,htmlFor:"locality-input"},a().createElement(O.x,{namespace:fr,phrase:"localityInputLabel"})),a().createElement(Ct.w,{type:"text",value:d,onChange:function(t){return U(t.currentTarget.value)},id:"locality-input",className:(M="form-control form-control-lg",K?"".concat(M," ").concat(Pe.inputFocused):"".concat(M," ").concat(Pe.input)),ref:f,autoComplete:"off",placeholder:b||pr("loadingText"),disabled:t.disabled||!b,autoFocus:null==t?void 0:t.autoFocus,onClickClear:function(){U(""),f.current.focus()},onKeyDown:A}),a().createElement("div",{className:"position-absolute w-100"},!!K&&a().createElement("div",{className:"".concat(Pe.suggestionContainer," ").concat(Pe.localitySuggestion),ref:T},a().createElement(hr,{predictions:E,getPlaceInfo:G,selectedIndex:C}),window.navigator.geolocation&&a().createElement(s.L,{className:"".concat(Pe.suggestionItem," px-1 ").concat(C-1===E.length?Pe.selected:""),onClick:D},a().createElement(Ke.h,{svgName:u.vn.LocationCrosshair,className:"btn btn-link info-link bg-transparent py-0 pr-1",svgSize:p.S.Small},a().createElement(O.x,{namespace:fr,phrase:"locationButtonText"})))),B&&!K&&a().createElement("div",{className:"d-flex"},a().createElement(Ke.h,{onClick:D,svgName:u.vn.LocationCrosshair,className:"btn btn-link info-link bg-white",svgSize:p.S.Small},a().createElement(O.x,{namespace:fr,phrase:"locationButtonText"}))),!!I&&a().createElement("div",{className:"text-danger p-2"},I)))}var mr=r(9036);function yr(t){return yr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yr(t)}function vr(){vr=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new k(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(j([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==yr(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=S(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function S(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,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function j(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=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 i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function gr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return br(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?br(t,e):void 0}}(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 br(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var wr="signUp.searchSchoolStepItem",Er=m.T.encloseNamespace(wr);const Sr={userTypeOption:"tbNZB",selected:"Ehs7R"};function xr(t){return a().createElement(s.L,{className:"\n d-flex\n flex-column\n justify-content-between\n h-100\n p-3\n border\n rounded\n rounded-lg\n mx-auto\n ".concat(Sr.userTypeOption," ").concat(t.selected?Sr.selected:""),onClick:function(){return t.onClick(t.type)}},a().createElement("img",{src:t.imageSrc,className:"rounded-top mx-auto pb-2"}),a().createElement("div",{className:"py-2"},a().createElement("span",{className:"h4"},t.buttonText)))}var Lr,kr="signUp.selectUserTypeStepItem",jr=m.T.encloseNamespace(kr);!function(t){t.Published="Published",t.Draft="Draft"}(Lr||(Lr={}));var Or=["Primary","Secondary","K12","Special","TAFE","University"],Nr=["Elementary","Middle School","High School","College","Other"],Cr={au:Or,nz:Or,uk:["Primary","Secondary","Primary & Secondary","Special","Sixth Form College","FE College","University","Other"],us:Nr};function Ar(t){return Ar="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},Ar(t)}function Tr(){Tr=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new k(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(j([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Ar(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=S(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function S(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,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function j(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=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 i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Pr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Ir(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ir(t,e):void 0}}(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 Ir(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var _r="signUp.cantFindSchoolStepItem",Ur=m.T.encloseNamespace(_r),Fr=r(110);const Gr="QBvzz",Dr="Xnu80",Mr="fQ9t5";function Kr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Br(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Br(t,e):void 0}}(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 Br(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Rr="signUp.enterAgeStepItem",zr=m.T.encloseNamespace(Rr);function $r(t,e,r){return"".concat(t.padStart(4,"0"),"-").concat(e.padStart(2,"0"),"-").concat(r.padStart(2,"0"))}var Yr={"select-type":function(t){function e(e){t.logUserAction({userType:e},{actionType:l.UserAction.Click,workflowPhase:l.WorkflowPhase.Next,descriptor:e===Kt.Staff?l.SignUpDescriptors.Educator:l.SignUpDescriptors.Student}),e!==Kt.Staff?t.nextStep({step:"enter-age",userType:e}):t.nextStep({step:"enter-email",userType:e})}return a().createElement("div",{className:"text-center"},a().createElement("h1",{className:"h4"},a().createElement(O.x,{namespace:kr,phrase:"heading"})),a().createElement("p",null,a().createElement(O.x,{namespace:kr,phrase:"subHeading"})),a().createElement("div",{className:"row"},a().createElement("div",{className:"col-lg-6 mb-3"},a().createElement(xr,{type:Kt.Staff,buttonText:jr("educatorButtonText"),imageSrc:h.W.SignUp.EDUCATOR,onClick:e,selected:t.userType===Kt.Staff})),a().createElement("div",{className:"col-lg-6 mb-3"},a().createElement(xr,{type:Kt.Learner,buttonText:jr("studentButtonText"),imageSrc:h.W.SignUp.STUDENT,onClick:e,selected:t.userType===Kt.Learner}))))},"enter-email":function(t){var e,r,n=Pt(a().useState(!1),2),o=n[0],i=n[1],c=Pt(a().useState((null==t?void 0:t.email)||""),2),u=c[0],s=c[1],f=Pt(a().useState(),2),p=f[0],h=f[1],d=(e=t.geoLocation,r=S.getMarketingUrlForGeoLocation(e),"nz"===(null==e?void 0:e.countryCode)?r+"/contact-us/":r+"/contact-us/technical/");function m(e){null==e||e.preventDefault(),function(){var e,r,n,o;e=this,r=void 0,n=void 0,o=Tt().mark((function e(){var r;return Tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u.length?Ut.test(u)||(h(Gt("invalidEmailErrorText")),0):(h(Gt("enterEmailErrorText")),0)){e.next=2;break}return e.abrupt("return");case 2:return i(!0),h(""),e.prev=4,e.next=7,pt.checkTrialStatus({email:u});case 7:r=e.sent,e.next=14;break;case 10:return e.prev=10,e.t0=e.catch(4),h(Gt("trialStatusErrorText")),e.abrupt("return");case 14:if(i(!1),r.status!==$.InvalidEmail){e.next=18;break}return h(Gt("invalidEmailErrorText")),e.abrupt("return");case 18:if(t.logUserAction({},{actionType:l.UserAction.Click,workflowPhase:l.WorkflowPhase.Next,descriptor:l.SignUpDescriptors.EnterEmail}),!Bt.includes(r.status)){e.next=22;break}return t.complete({completionStep:"trial-status",email:u,trialStatus:r.status,trialCreated:!1}),e.abrupt("return");case 22:t.nextStep({step:"find-school",email:u});case 23:case"end":return e.stop()}}),e,null,[[4,10]])})),new(n||(n=Promise))((function(t,a){function i(t){try{l(o.next(t))}catch(t){a(t)}}function c(t){try{l(o.throw(t))}catch(t){a(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(t){t(r)}))).then(i,c)}l((o=o.apply(e,r||[])).next())}))}()}return a().createElement(a().Fragment,null,a().createElement("div",{className:"text-center"},a().createElement("h1",{className:"h4"},a().createElement(O.x,{namespace:Ft,phrase:"heading"})),a().createElement("p",null,a().createElement(O.x,{namespace:Ft,phrase:"subHeading"}))),a().createElement("form",{onSubmit:m,noValidate:!0},a().createElement("div",{className:"form-group mb-3"},a().createElement(Ct.w,{value:u,onChange:function(t){t.preventDefault(),s(t.target.value),h("")},name:"email-input",id:"email-input",type:"email",className:"form-control form-control-lg ".concat(p?"is-invalid":""),placeholder:Mt(t.geoLocation),autoComplete:"false",autoCorrect:"false",autoFocus:!0,onClickClear:function(){return s("")}}),p&&a().createElement(a().Fragment,null,a().createElement("div",{className:"invalid-feedback d-block"},p),a().createElement("small",null,a().createElement(O.x,{phrase:"emailInputHelpText",namespace:Ft}),a().createElement(N.d,{href:d,onClick:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.ContactUs})},className:"info-link pl-1",newTab:!0},a().createElement(O.x,{phrase:"emailInputHelpLinkText",namespace:Ft}))))),a().createElement(Nt.m,{showSpinner:o,className:"btn btn-dark btn-lg mb-3 w-100",disabled:o,onClick:m},a().createElement(O.x,{namespace:Ft,phrase:"nextButtonText"}))),a().createElement("div",{className:"text-center"},a().createElement(P,{link:S.getLoginLink(),onClick:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.SignIn})}})))},"find-school":function(t){var e=t.email,r=t.userType,n=gr(a().useState({schoolLocality:t.schoolLocality,country:t.country,longitude:t.longitude,latitude:t.latitude,city:t.city,province:t.province}),2),o=n[0],i=n[1],c=gr(a().useState(),2),u=c[0],s=c[1],f=gr(a().useState(),2),p=f[0],h=f[1],d=gr(a().useState(!1),2),m=d[0],y=d[1],v=gr(a().useState(!1),2),g=v[0],b=v[1],w=gr(a().useState(!1),2),E=w[0],S=w[1];function x(){if(!o||!e||!r)return!1;var t=o.prospectId;return!!(e&&r&&t)}function L(){var e={actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.FindSchool,workflowPhase:l.WorkflowPhase.Next};t.logUserAction(o||{},e)}function k(t){b(t),S(t),y(t)}function j(t,e){"prospectId"===t&&e&&(y(!0),pt.checkProspectTrialStatus({prospectId:e.toString()},(function(t){s(t.status)}),(function(){console.log("error")}),(function(){y(!1)}))),i((function(r){return Object.assign(Object.assign({},r),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==yr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==yr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===yr(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},t,e))}))}function N(){j("prospectId",void 0),j("schoolName",""),j("schoolPostCode",void 0),h(void 0)}return a().createElement(a().Fragment,null,a().createElement("div",{className:"text-center"},a().createElement("h1",{className:"h4"},a().createElement(O.x,{namespace:wr,phrase:"heading"})),a().createElement("p",null,a().createElement(O.x,{namespace:wr,phrase:"subHeading"}))),a().createElement(dr,{data:o,setDataProperty:j,clearStepGroupData:function(){j("schoolLocality",void 0),i((function(t){return Object.assign(Object.assign({},t),{longitude:undefined,latitude:undefined})})),j("city",void 0),j("province",void 0),j("country",void 0),N(),h(void 0)},disabled:g,geoLocation:t.geoLocation,labelClassName:"d-none",logUserAction:t.logUserAction,googleMapsApiKey:t.googleMapsApiKey,autoFocus:!0}),!!(o&&o.schoolLocality&&o.longitude&&o.latitude)&&a().createElement(Me,{data:o,setDataProperty:j,clearStepItemData:N,nextStep:t.nextStep,currentStepId:t.currentStepId,disabled:E,logUserAction:t.logUserAction}),p&&a().createElement("p",{className:"text-danger mb-2"},p),x()&&a().createElement(Nt.m,{className:"btn btn-dark btn-lg w-100",onClick:function(){var n,a,i,c,l;return a=this,i=void 0,c=void 0,l=vr().mark((function a(){var i,c,l;return vr().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(!m){a.next=2;break}return a.abrupt("return");case 2:if(x()){a.next=5;break}return h(Er("cannotSubmitFormError")),a.abrupt("return");case 5:if(u!==z.Unsupported||r!==Kt.Staff){a.next=9;break}return t.nextStep(Object.assign({step:"add-to-braze",trialStatus:u},o)),L(),a.abrupt("return");case 9:if(u===z.Active||u===z.Available){a.next=19;break}if(i=void 0,!(null==o?void 0:o.prospectId)||u!==z.NotRequired){a.next=16;break}return a.next=14,Te.getLookups(o.prospectId);case 14:c=a.sent,i=null===(n=c.find((function(t){return t.type===mr.C.MasterId})))||void 0===n?void 0:n.externalId;case 16:return t.complete(Object.assign({completionStep:"trial-status",trialStatus:u,trialCreated:!1,customerId:i},o)),L(),a.abrupt("return");case 19:return k(!0),a.prev=20,a.next=23,pt.createTrial({userType:r,email:e,prospectId:null==o?void 0:o.prospectId,appLink:t.pageAppLinkString,accessPolicy:Le(o.country)});case 23:l=a.sent,a.next=31;break;case 26:return a.prev=26,a.t0=a.catch(20),h(Er("requestTrialError")),k(!1),a.abrupt("return");case 31:if(l.id&&l.dateCreated){a.next=35;break}return h(Er("requestTrialError")),k(!1),a.abrupt("return");case 35:j("userId",l.id),t.complete(Object.assign({completionStep:"trial-status",userId:l.id,trialCreated:!0,trialStatus:z.Available},o)),L();case 38:case"end":return a.stop()}}),a,null,[[20,26]])})),new(c||(c=Promise))((function(t,e){function r(t){try{o(l.next(t))}catch(t){e(t)}}function n(t){try{o(l.throw(t))}catch(t){e(t)}}function o(e){var o;e.done?t(e.value):(o=e.value,o instanceof c?o:new c((function(t){t(o)}))).then(r,n)}o((l=l.apply(a,i||[])).next())}))},showSpinner:g||E||m,disabled:g||E||m},a().createElement(O.x,{namespace:wr,phrase:"submitButtonText"})))},"cant-find-school":function(t){var e,r,n,o=Pr(a().useState({prospectId:t.prospectId,schoolName:t.schoolName,schoolType:t.schoolType,schoolLocality:t.schoolLocality,country:t.country,province:t.province,city:t.city,longitude:t.longitude,latitude:t.latitude}),2),i=o[0],c=o[1],u=Pr(a().useState(),2),s=u[0],f=u[1],p=Pr(a().useState(!1),2),h=p[0],d=p[1],m=(r=i.country||(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode),n=b.getCountryCode(r),Cr[n]||Nr);function y(){var t=i.schoolName,e=i.schoolType,r=i.country;return!!(t&&e&&r)}function v(t,e){c((function(r){return Object.assign(Object.assign({},r),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Ar(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Ar(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Ar(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},t,e))}))}return a().createElement(a().Fragment,null,a().createElement("div",{className:"text-center"},a().createElement("h1",{className:"h4"},a().createElement(O.x,{namespace:_r,phrase:"heading"})),a().createElement("p",null,a().createElement(O.x,{namespace:_r,phrase:"subHeading"}))),a().createElement("div",{className:"form-group"},a().createElement("label",{className:"d-block",htmlFor:"school-name-input"},a().createElement(O.x,{namespace:_r,phrase:"schoolNameInputLabel"})),a().createElement("input",{type:"text",value:(null==i?void 0:i.schoolName)||"",onChange:function(t){v("schoolName",t.target.value)},id:"school-name-input",className:"form-control form-control-lg",autoComplete:"off",placeholder:Ur("schoolNameInputPlaceholder"),autoFocus:!0})),a().createElement("div",{className:"form-group"},a().createElement("label",{className:"d-block",htmlFor:"school-type-select"},a().createElement(O.x,{namespace:_r,phrase:"schoolTypeInputLabel"})),a().createElement("select",{id:"school-type-select",className:"form-control form-control-lg ".concat(i.schoolType?"":"text-muted"),autoComplete:"off",value:i.schoolType||"none",onChange:function(t){v("schoolType",t.target.value)}},a().createElement("option",{value:"none",className:"text-muted",disabled:!0},Ur("schoolTypeInputDefault")),m.map((function(t){return a().createElement("option",{value:t,key:t,className:"text-dark"},t)})))),a().createElement(dr,{data:i,setDataProperty:v,clearStepGroupData:function(){v("schoolLocality",void 0),c((function(t){return Object.assign(Object.assign({},t),{longitude:undefined,latitude:undefined})})),v("city",void 0),v("province",void 0),v("country",void 0),f("")},disabled:!1,labelClassName:"d-block",geoLocation:t.geoLocation,logUserAction:t.logUserAction,googleMapsApiKey:t.googleMapsApiKey,autoFocus:!1}),s&&a().createElement("div",{className:"text-danger mb-3"},s),y()&&a().createElement(Nt.m,{className:"btn btn-dark btn-lg w-100",onClick:function(e){return r=this,n=void 0,o=void 0,a=Tr().mark((function r(){var n,o,a;return Tr().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.preventDefault(),y()){r.next=3;break}return r.abrupt("return");case 3:return t.logUserAction(i,{actionType:l.UserAction.Click,workflowPhase:l.WorkflowPhase.Next,descriptor:l.SignUpDescriptors.CantFindSchool}),d(!0),r.prev=5,r.next=8,Te.create({name:i.schoolName,status:Lr.Draft,countryCode:i.country,prospectType:i.schoolType,city:i.city,postCode:i.schoolPostCode,province:i.province});case 8:if((n=r.sent).id){r.next=13;break}return d(!1),f(Ur("submissionErrorText")),r.abrupt("return");case 13:r.next=20;break;case 15:return r.prev=15,r.t0=r.catch(5),d(!1),f(Ur("submissionErrorText")),r.abrupt("return");case 20:return r.prev=20,r.next=23,pt.createTrial({userType:t.userType,email:t.email,prospectId:n.id,appLink:t.pageAppLinkString,accessPolicy:Le(i.country)});case 23:if((o=r.sent).id){r.next=28;break}return d(!1),f(Ur("submissionErrorText")),r.abrupt("return");case 28:t.complete({completionStep:"trial-status",email:t.email,userId:o.id,prospectId:n.id,schoolName:i.schoolName,schoolLocality:i.schoolLocality,country:i.country,schoolType:i.schoolType,city:i.city,schoolPostCode:i.schoolPostCode,latitude:i.latitude,longitude:i.longitude,province:i.province,trialStatus:z.Available,trialCreated:!0}),r.next=41;break;case 31:if(r.prev=31,r.t1=r.catch(20),r.t1.body){r.next=37;break}return d(!1),f(Ur("submissionErrorText")),r.abrupt("return");case 37:if(400!==(a=r.t1).body.status||"trial-not-available"!==a.body.type){r.next=41;break}return t.nextStep(Object.assign(Object.assign({step:"add-to-braze"},i),{prospectId:n.id,trialStatus:z.Unavailable})),r.abrupt("return");case 41:case"end":return r.stop()}}),r,null,[[5,15],[20,31]])})),new(o||(o=Promise))((function(t,e){function i(t){try{l(a.next(t))}catch(t){e(t)}}function c(t){try{l(a.throw(t))}catch(t){e(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof o?r:new o((function(t){t(r)}))).then(i,c)}l((a=a.apply(r,n||[])).next())}));var r,n,o,a},showSpinner:h,disabled:h},a().createElement(O.x,{namespace:_r,phrase:"submitButtonText"})))},completed:function(t){var e=Ot[t.completionStep];return a().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto px-2"},a().createElement(e,Object.assign({},t)))},"add-to-braze":function(t){var e,r=ye(a().useState(!1),2),n=r[0],o=r[1],i=ye(a().useState({}),2),c=i[0],u=i[1];function s(e){var r=xe(e.fullname),n=r.firstName,o=r.surname,a={prospect_id:null==t?void 0:t.prospectId,email:null==t?void 0:t.email,organisation_sub_type:te.getSchoolType(null==t?void 0:t.schoolType),account_name:null==t?void 0:t.schoolName,account_post_code:null==t?void 0:t.schoolPostCode,account_country:null==t?void 0:t.country,first_name:n,last_name:o,job_title:e.jobTitle,sync_to_crm:!0,event_topic:te.getEventTopic()};return te.removeEmptyKeys(a)}return a().useEffect((function(){t.userType===Kt.Learner&&t.complete({completionStep:"trial-status",trialCreated:!1,trialStatus:z.Unsupported})}),[]),a().createElement(he,{errors:c,loading:n,geoLocation:t.geoLocation,country:t.country||(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode),logUserAction:t.logUserAction,handleSubmitForm:function(e){(function(t){var e=t.fullname,r=t.jobTitle,n=t.phone,o=xe(e),a=o.firstName,i=o.surname,c={};return a&&i||(c.fullname=Se("emptyFullName")),(we.test(a)||we.test(i))&&(c.fullname=Se("invalidFullName")),e.length>be&&(c.fullname=Se("maxFullName",{maxLength:be})),(null==r?void 0:r.length)||(c.jobTitle=Se("emptyJobTitle")),we.test(r)&&(c.jobTitle=Se("invalidJobTitle")),r.length>be&&(c.jobTitle=Se("maxJobTitle",{maxLength:be})),(null==n?void 0:n.length)||(c.phone=Se("emptyPhone")),!we.test(n)&&Ee.test(n)||(c.phone=Se("invalidPhone")),u(c),!Object.keys(c).length})(e)&&function(e){var r,a,i,f;r=this,a=void 0,i=void 0,f=me().mark((function r(){var a,i,f,p,h,d;return me().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!n){r.next=2;break}return r.abrupt("return");case 2:if(t.userType!==Kt.Learner){r.next=5;break}return u(Object.assign(Object.assign({},c),{submission:Se("submissionError")})),r.abrupt("return");case 5:return t.logUserAction({},{actionType:l.UserAction.Click,workflowPhase:l.WorkflowPhase.Next,descriptor:l.SignUpDescriptors.AddToBraze}),o(!0),a=s(e),r.next=10,te.getClient(t.geoLocation);case 10:i=r.sent,f=xe(e.fullname),p=f.firstName,h=f.surname,d={prospect_id:null==t?void 0:t.prospectId,organisation_sub_type:te.getSchoolType(null==t?void 0:t.schoolType),account_name:null==t?void 0:t.schoolName,account_post_code:null==t?void 0:t.schoolPostCode,account_country:null==t?void 0:t.country,job_title:e.jobTitle,sync_to_crm:!0},d=te.removeEmptyKeys(d);try{i.setUser(te.hashedEmail(null==t?void 0:t.email)),i.setUserFirstName(p),i.setUserLastName(h),i.setUserPhone(e.phone),i.setUserEmail(null==t?void 0:t.email),i.openSession(),i.bulkSetCustomUserAttributes(d),i.logEvent({type:te.getCustomEventType(),data:a}),i.sendData((function(t){u(t?{}:Object.assign(Object.assign({},c),{submission:Se("submissionError")})),o(!1)}))}catch(t){u(Object.assign(Object.assign({},c),{submission:Se("submissionError")}))}Object.keys(c).length||t.complete({completionStep:"added-to-braze",trialCreated:!1,trialStatus:null});case 16:case"end":return r.stop()}}),r)})),new(i||(i=Promise))((function(t,e){function n(t){try{c(f.next(t))}catch(t){e(t)}}function o(t){try{c(f.throw(t))}catch(t){e(t)}}function c(e){var r;e.done?t(e.value):(r=e.value,r instanceof i?r:new i((function(t){t(r)}))).then(n,o)}c((f=f.apply(r,a||[])).next())}))}(e)},removeErrorForKey:function(t){if(Object.keys(c).length&&c[t]){var e=Object.assign({},c);delete e[t],u(e)}}})},"enter-age":function(t){var e=Kr(a().useState(""),2),r=e[0],n=e[1],o=Kr(a().useState(""),2),i=o[0],c=o[1],l=Kr(a().useState(""),2),u=l[0],s=l[1],f=Kr(a().useState(null),2),p=f[0],h=f[1],d=(new Date).getFullYear(),m="mx-2 d-inline-block text-left",y="form-control form-control-lg ".concat(p?"is-invalid":""),v="order-0",g="order-3",w=b.isCountryCodeUS(t.geoLocation.countryCode);return w&&(v="order-3",g="order-0"),a().createElement("form",{className:"text-center",onSubmit:function(e){if(e.preventDefault(),r&&i&&u?Fr.O.isValid($r(u,i,r))?+u>d?(h(zr("future")),0):!(+u<d-120&&(h(zr("past",{age:d-+u})),1)):(h(zr("invalid")),0):(h(zr("missing")),0)){var n=new Date($r(u,i,r)),o=Fr.O.subtract(new Date,13,"years");Fr.O.isAfter(n,o)?t.complete({completionStep:"young-student",trialCreated:!1,trialStatus:null}):t.nextStep({step:"enter-email",userType:t.userType})}},noValidate:!0},a().createElement("h1",{className:"h4"},a().createElement(O.x,{namespace:Rr,phrase:"heading"})),a().createElement("p",null,a().createElement(O.x,{namespace:Rr,phrase:"subHeading"})),a().createElement("div",{className:"my-4"},a().createElement("div",{className:"d-flex justify-content-center"},a().createElement("div",{className:"".concat(m," ").concat(v)},a().createElement("label",{className:"mb-0",htmlFor:"day"},a().createElement(O.x,{namespace:Rr,phrase:"day"})),a().createElement("input",{id:"day",type:"number",className:"".concat(y," ").concat(Gr),min:"1",max:"31",placeholder:"DD",value:r,onChange:function(t){n(t.target.value),h(null)},autoFocus:!w,tabIndex:w?2:1})),a().createElement("span",{className:"h1 font-weight-normal mt-3 mb-0 order-1 ".concat(p?"text-danger":"")},"/"),a().createElement("div",{className:"".concat(m," ").concat(g)},a().createElement("label",{className:"mb-0",htmlFor:"month"},a().createElement(O.x,{namespace:Rr,phrase:"month"})),a().createElement("input",{id:"month",type:"number",className:"".concat(y," ").concat(Dr),min:"1",max:"12",placeholder:"MM",value:i,onChange:function(t){c(t.target.value),h(null)},autoFocus:w,tabIndex:w?1:2})),a().createElement("span",{className:"h1 font-weight-normal mt-3 mb-0 order-4 ".concat(p?"text-danger":"")},"/"),a().createElement("div",{className:"".concat(m," order-5")},a().createElement("label",{className:"mb-0",htmlFor:"year"},a().createElement(O.x,{namespace:Rr,phrase:"year"})),a().createElement("input",{id:"year",type:"number",className:"".concat(y," ").concat(Mr),min:d-120,max:d,placeholder:"YYYY",value:u,onChange:function(t){s(t.target.value),h(null)},tabIndex:3}))),!!p&&a().createElement("div",{className:"invalid-feedback d-block"},p)),a().createElement("button",{type:"submit",className:"btn btn-lg btn-dark w-100"},a().createElement(O.x,{namespace:Rr,phrase:"submit"})))}};function Hr(t){var e=t.state,r=t.geoLocation,n=t.layoutMapping,o=t.hasPreviousStep,i=t.googleMapsApiKey,c=t.pageAppLinkString,l=t.back,u=t.nextStep,s=t.complete,f=t.logUserAction,p=Yr[e.currentStepId],h=Object.assign(Object.assign({},e),{geoLocation:r,googleMapsApiKey:i,pageAppLinkString:c,back:l,nextStep:u,complete:s,logUserAction:f}),d=n[e.currentStepId];return d?a().createElement(d,{geoLocation:t.geoLocation,currentStep:e.currentStepId,previousStep:l,closeApp:t.close,logUserAction:f,hasPreviousStep:o},a().createElement(p,Object.assign({},h))):a().createElement(p,Object.assign({},h))}var Wr=r(49985),Zr=r(3775);function qr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Jr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Vr(t,e){switch(e.type){case"nextStep":return function(t,e){var r,n=Object.assign(Object.assign({},t),{previousStepIds:[].concat((r=t.previousStepIds,function(t){if(Array.isArray(t))return Jr(t)}(r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||function(t,e){if(t){if("string"==typeof t)return Jr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Jr(t,e):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[t.currentStepId]),currentStepId:e.step});if("select-type"===e.step)return Object.assign({},n);if("enter-email"===e.step)return Object.assign(Object.assign({},n),{userType:e.userType});if("enter-age"===e.step)return Object.assign(Object.assign({},n),{userType:e.userType});if("find-school"===e.step)return Object.assign(Object.assign({},n),{email:e.email});if("cant-find-school"===e.step)return Object.assign(Object.assign({},n),{prospectId:e.prospectId,schoolName:e.schoolName,schoolLocality:e.schoolLocality,country:e.country,longitude:e.longitude,latitude:e.latitude,city:e.city,province:e.province});if("add-to-braze"===e.step){var o=d.t.omit(e,["type","step"]);return o=d.t.removeEmptyKeys(o),Object.assign(Object.assign({},n),o)}if("completed"===e.step){var a=d.t.omit(e,["type","step"]);return a=d.t.removeEmptyKeys(a),Object.assign(Object.assign({},n),a)}}(t,e);case"back":return function(t){var e,r=function(t){if(Array.isArray(t))return qr(t)}(e=t.previousStepIds)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return qr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qr(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=r.pop();return Object.assign(Object.assign({},t),{previousStepIds:r,currentStepId:n})}(t)}}function Qr(t){return Qr="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},Qr(t)}function Xr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return tn(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)?tn(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 tn(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 en=function(t){var e=t.location,r=t.initialValues,n=t.onStepUpdate,o=te.removeEmptyKeys(r),i=Object.assign({currentStepId:"select-type",previousStepIds:[]},o),c=Xr(a().useReducer(Vr,i),2),u=c[0],s=c[1];return a().useEffect((function(){null==n||n(u)}),[u.currentStepId]),{state:u,back:function(){s({type:"back"})},nextStep:function(t){s(Object.assign({type:"nextStep"},t))},complete:function(t){s(Object.assign({type:"nextStep",step:"completed"},t))},hasPreviousStep:!!u.previousStepIds.length,logUserAction:function(t,r){var n=Object.assign(Object.assign({},u),t),o=Zr.i.filterBlacklistedKeys(n),a=Object.assign({currentStepId:u.currentStepId},o),i=Object.entries(a).filter((function(t){return void 0!==Xr(t,2)[1]})).reduce((function(t,e){var r=Xr(e,2),n=r[0],o=r[1];return Object.assign(Object.assign({},t),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Qr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Qr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Qr(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},n,o))}),{});Wr.k.logUserAction(i,Object.assign({entity:l.EntityType.SignUp,location:e},r))}}};const rn={buttonContainer:"muxxq",dataContainer:"pbBua"};function nn(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 on(t){var e={};return Object.keys(t).forEach((function(r){var n=t[r];d.t.isObject(n)&&null!==n&&!Array.isArray(n)?Object.assign(e,on(n)):e[r]=n})),e}function an(t){var e=t.label,r=t.item,n=r;return Array.isArray(r)&&(n=n.join(" -> ")),"boolean"==typeof n&&(n=n?"true":"false"),a().createElement("div",{className:"pb-1"},e,": ",a().createElement("b",{className:"text-white"},n))}function cn(t){var e,r,n=t.developmentEnv,o=t.objects,i=(e=a().useState(!0),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return nn(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)?nn(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=i[0],l=i[1],u=a().useMemo((function(){return on(o)}),[o]);return n&&a().createElement(a().Fragment,null,a().createElement("div",{className:"position-fixed p-4 ".concat(rn.buttonContainer)},a().createElement("button",{onClick:function(){l(!c)},className:"btn btn-dark px-2 py-1"},c?"Hide":"Show"," debugger")),c&&a().createElement("div",{className:"fixed-bottom mb-4 ml-4 bg-dark rounded ".concat(rn.dataContainer)},a().createElement("code",{className:"d-block p-4"},a().createElement("div",{className:"font-weight-bold pb-2"},"{ Debug: Form Data }"),Object.keys(u).map((function(t){return a().createElement(an,{key:t,label:t,item:u[t]})})))))}function ln(t){var e=Z.getLayouts(t.type),r=t.location,n=t.initialValues,o=t.geoLocation,c=t.googleMapsApiKey,l=t.pageAppLinkString,u=t.onStepUpdate,s=t.close,f=en({location:r,initialValues:n,onStepUpdate:u}),p=f.back,h=f.nextStep,d=f.complete,m=f.hasPreviousStep,y=f.state,v=f.logUserAction,g={state:y,geoLocation:o,layoutMapping:e,hasPreviousStep:m,googleMapsApiKey:c,pageAppLinkString:l,back:p,close:s,nextStep:h,complete:d,logUserAction:v};return a().useEffect((function(){i.SG.get(nt)&&d({completionStep:"young-student",trialCreated:!1,trialStatus:null})}),[]),a().createElement(a().Fragment,null,a().createElement(Hr,Object.assign({},g)),a().createElement(cn,{developmentEnv:!1,objects:Object.assign(Object.assign(Object.assign({},y),{pageAppLinkString:l}),o)}))}},2903:(t,e,r)=>{var n;r.d(e,{c:()=>n}),function(t){t.Popup="popup-form",t.FullPage="full-page-form"}(n||(n={}))},9036:(t,e,r)=>{var n;r.d(e,{C:()=>n}),function(t){t.MasterId="master_id",t.CrmId="crm_id",t.SalesforceId="salesforce_id"}(n||(n={}))},3775:(t,e,r)=>{r.d(e,{i:()=>a});var n=r(1048),o=["email","longitude","latitude","trialCreated"],a={filterBlacklistedKeys:function(t){return n.t.omit(t,o)}}},11937:(t,e,r)=>{r.d(e,{b:()=>y});var n=r(99940);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t){var e="function"==typeof Map?new Map:void 0;return a=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return i(t,arguments,u(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,t)},a(t)}function i(t,e,r){return i=c()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&l(o,r.prototype),o},i.apply(null,arguments)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(i,t);var e,r,n,a=(r=i,n=c(),function(){var t,e=u(r);if(n){var a=u(this).constructor;t=Reflect.construct(e,arguments,a)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function i(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Error";return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=a.call(this,r)).body=t,e}return e=i,Object.defineProperty(e,"prototype",{writable:!1}),e}(a(Error)),f={prepareQuery:function(t,e){var r=t;return Object.keys(e).forEach((function(t,n){e[t]&&(r+=0===n?"?":"&",r+="".concat(t,"=").concat(encodeURIComponent(e[t])))})),r}};function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function h(){h=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof d?e:d,i=Object.create(a.prototype),c=new O(o||[]);return n(i,"_invoke",{value:x(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function d(){}function m(){}function y(){}var v={};l(v,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(N([])));b&&b!==e&&r.call(b,a)&&(v=b);var w=y.prototype=d.prototype=Object.create(v);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==p(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=L(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function L(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,L(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function 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 j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function N(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return m.prototype=y,n(w,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:m,configurable:!0}),m.displayName=l(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},E(S.prototype),l(S.prototype,i,(function(){return this})),t.AsyncIterator=S,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new S(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(w),l(w,c,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=N,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(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;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:N(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var d=function(t,e,r,n){return new(r||(r=Promise))((function(o,a){function i(t){try{l(n.next(t))}catch(t){a(t)}}function c(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,c)}l((n=n.apply(t,e||[])).next())}))};function m(t){var e={method:n.k.GET,headers:{"Content-type":"application/json"}};t.method&&(e=Object.assign(Object.assign({},e),{method:t.method})),t.init&&(e=Object.assign(Object.assign({},e),t.init));var r=t.url;return e.method===n.k.GET&&t.data?r=f.prepareQuery(r,t.data):t.data&&(e=Object.assign(Object.assign({},e),{body:JSON.stringify(t.data)})),{init:e,url:r}}var y={asyncFetch:function(t){return d(this,void 0,void 0,h().mark((function e(){var r,n,o;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=m(t),e.next=3,fetch(r.url,r.init);case 3:if((n=e.sent).ok){e.next=9;break}return e.next=7,n.json();case 7:throw o=e.sent,new s(o);case 9:if(204!==n.status){e.next=11;break}return e.abrupt("return");case 11:return e.next=13,n.json();case 13:return e.abrupt("return",e.sent);case 14:case"end":return e.stop()}}),e)})))},asyncFetchPlain:function(t){return d(this,void 0,void 0,h().mark((function e(){var r,n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=m(t),e.next=3,fetch(r.url,r.init);case 3:if((n=e.sent).ok){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,n.text();case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e)})))},fetch:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){var e=m(t);return fetch(e.url,e.init).then((function(t){if(204!==t.status)return t.json()})).then((function(e){return t.success&&t.success(e),e})).catch((function(e){return t.error&&t.error(),e})).finally((function(){t.always&&t.always()}))}))}},82301:(t,e,r)=>{r.d(e,{M:()=>p});var n=r(1024),o=r.n(n),a=r(11937),i={geoLocation:function(){return a.b.asyncFetch({url:"/api/geolocation"})}};function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function l(){l=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,o){var a=e&&e.prototype instanceof d?e:d,i=Object.create(a.prototype),c=new O(o||[]);return n(i,"_invoke",{value:x(t,r,c)}),i}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var h={};function d(){}function m(){}function y(){}var v={};s(v,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(N([])));b&&b!==e&&r.call(b,a)&&(v=b);var w=y.prototype=d.prototype=Object.create(v);function E(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function o(n,a,i,l){var u=p(t[n],t,a);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==c(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,l)}),(function(t){o("throw",t,i,l)})):e.resolve(f).then((function(t){s.value=t,i(s)}),(function(t){return o("throw",t,i,l)}))}l(u.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=L(i,r);if(c){if(c===h)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=p(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function L(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,L(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=p(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function 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 j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function N(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return m.prototype=y,n(w,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:m,configurable:!0}),m.displayName=s(y,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,s(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},E(S.prototype),s(S.prototype,i,(function(){return this})),t.AsyncIterator=S,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new S(f(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(w),s(w,u,"Generator"),s(w,a,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=N,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:N(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var s=function(t,e,r,n){return new(r||(r=Promise))((function(o,a){function i(t){try{l(n.next(t))}catch(t){a(t)}}function c(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,c)}l((n=n.apply(t,e||[])).next())}))},f="us";function p(){var t,e,r=(t=o().useState(null),e=2,function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),n=r[0],a=r[1];function c(t){(null==t?void 0:t.countryCode)?a(t):a({countryCode:f})}return o().useEffect((function(){!function(){s(this,void 0,void 0,l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,t.next=5,i.geoLocation();case 5:c(t.sent),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(2),c({countryCode:f});case 12:case"end":return t.stop()}}),t,null,[[2,9]])})))}()}),[]),n}},26392:(t,e,r)=>{r.d(e,{Z:()=>n});const n={logo:"JkF9k",modalBody:"CmPcN",popupButton:"FkCPC",leftHalfLayout:"KsojV",withBg:"TJ9fO"}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[6285],{16715:(e,t,n)=>{n.d(t,{U:()=>s});var r=n(5173),a=n(23481).T.encloseNamespace("userManager.validation"),s=function(e){return(0,r.Ry)().shape({newPassword:(0,r.Z_)().required((function(){return a("newPasswordRequired")})).min(e,(function(){return a("newPasswordMinLength",{minLen:e})})).trim().default(""),confirmPassword:(0,r.Z_)().required((function(){return a("confirmPasswordRequired")})).oneOf([(0,r.iH)("newPassword"),null],(function(){return a("passwordsDontMatch")})).trim().default("")})}},64767:(e,t,n)=>{n.r(t),n.d(t,{BulkUserActionsResetPasswordActionDetailsView:()=>L});var r=n(1024),a=n.n(r),s=n(20354),i=n(31949),o=n(58703),u=n(92802),l=n(2948),c=n(83345),d=n(38143),m=n(82644),f=n(68670),p=n(16715),h=n(96728);function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var v="userManager.bulkUserActionsResetPasswordActionDetails",g={newPassword:"",confirmPassword:"",changeOnNextLogin:!0};function y(e){var t=(0,u.u6)();return a().useEffect((function(){var n,r;e.onUpdate(null===(n=t.values)||void 0===n?void 0:n.newPassword,null===(r=t.values)||void 0===r?void 0:r.changeOnNextLogin,t.isValid&&t.dirty)}),[t.isValid,t.values]),a().createElement(f.p,{inputWidthClass:"w-50",hideButtons:!0,hideCurrentPassword:!0,showChangeOnNextLogin:!0})}function b(e){var t,n,r=(t=(0,l.D)(d.g.BULK_USER_ACTIONS),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,s,i,o=[],u=!0,l=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=s.call(n)).done)&&(o.push(r.value),o.length!==t);u=!0);}catch(e){l=!0,a=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw a}}return o}}(t,n)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1],s=a().useContext(h.e),i=s.disableNext,o=s.setDisableNext;return a().useEffect((function(){o(!0)}),[]),a().useEffect((function(){r("subAction","resetPassword")}),[]),a().createElement(a().Fragment,null,a().createElement("h2",{className:"h4 mb-3"},a().createElement(c.x,{namespace:v,phrase:"heading"})),a().createElement("p",null,a().createElement(c.x,{namespace:v,phrase:"info",options:{smartCount:e.totalUsers}})),a().createElement("div",{className:"px-2 pt-2 border rounded mb-2 pb-0"},a().createElement("ul",{className:"mt-2 pl-3 ml-1"},a().createElement("li",null,a().createElement(c.x,{namespace:v,phrase:"ssoWarning"}))),a().createElement(m.n,{initialValues:g,onSubmit:function(){},validationSchema:(0,p.U)(e.minPasswordLength)},a().createElement(y,{onUpdate:function(e,t,n){n&&i&&o(!1),n||i||o(!0),r("password",e),r("changeOnNextLogin",t)}}))))}var E=n(88323),P=n(18087),U=n(706),x=n(39739),A=n(86613);function L(e){var t=(0,E.h)(e.userType),n=t.users,r=t.count,u=(0,P.Y)(e.userType),l=s.a.useBasicFetch(i.N.currentUser()),c=s.a.useBasicFetch(l.data&&U.F.getCustomerSecuritySettings(l.data.customerId)),d=x.P.getMinimumPasswordLength(c.data,e.userType,A.i.User);return a().createElement(o.d,{appLinks:u,userType:e.userType,users:n,currentStep:"action-details",userCount:r,loaded:!0},a().createElement(b,{minPasswordLength:d,totalUsers:r,appLinks:u}))}}}]);
@@ -1,2 +1,2 @@
1
- /*! For license information please see 6736-cffe5aabea-lite.chunk.js.LICENSE.txt */
1
+ /*! For license information please see 6736-326f546fb8-lite.chunk.js.LICENSE.txt */
2
2
  "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[6736],{6736:(t,e,r)=>{r.d(e,{b:()=>m});var n=r(81886),o=r(97395),i=r(23481),c=r(47663);function a(t){return a="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},a(t)}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==a(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===a(o)?o:String(o)),n)}var o}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var f="embed.protectiveBrowserSettingsError",h=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&&s(t,e)}(h,t);var e,r,n,o,c=(n=h,o=function(){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(){var t,e=l(n);if(o){var r=l(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function h(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),(e=c.call(this,i.T.getPhrase(f,"title"))).url=t,e}return e=h,(r=[{key:"name",get:function(){return"ProtectiveBrowserSettingsError"}},{key:"dialogOptions",get:function(){return{title:i.T.getPhrase(f,"heading"),text:i.T.getPhrase(f,"description",{url:this.url}),buttons:[{text:i.T.getPhrase(f,"okay"),className:"btn btn-dark",success:!0}]}}}])&&u(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),h}(c.S),p=r(55460);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 d(){d=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",c=o.asyncIterator||"@@asyncIterator",a=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 s(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,c=Object.create(i.prototype),a=new j(o||[]);return n(c,"_invoke",{value:k(t,r,a)}),c}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function v(){}var m={};u(m,i,(function(){return this}));var g=Object.getPrototypeOf,w=g&&g(g(P([])));w&&w!==e&&r.call(w,i)&&(m=w);var b=v.prototype=h.prototype=Object.create(m);function x(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function o(n,i,c,a){var u=l(t[n],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==y(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,c,a)}),(function(t){o("throw",t,c,a)})):e.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return o("throw",t,c,a)}))}a(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 k(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 c=r.delegate;if(c){var a=E(c,r);if(a){if(a===f)continue;return a}}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=l(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.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=l(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 L(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function P(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:S}}function S(){return{value:void 0,done:!0}}return p.prototype=v,n(b,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:p,configurable:!0}),p.displayName=u(v,a,"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,v):(t.__proto__=v,u(t,a,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},x(_.prototype),u(_.prototype,c,(function(){return this})),t.AsyncIterator=_,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var c=new _(s(e,r,n,o),i);return t.isGeneratorFunction(r)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},x(b),u(b,a,"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=P,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(O),!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 c.type="throw",c.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],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var a=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(a&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(a){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 c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(c)},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),O(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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function v(t,e,r,o){var i=window.open(t,"_blank",function(t){var e="sm"===t?500:screen.availWidth,r="sm"===t?500:screen.availWidth,n=parseInt(screen.availWidth/2-e/2+""),o=parseInt(screen.availHeight/2-r/2+"");return["width=".concat(e),"height=".concat(r),"status","resizable","left=".concat(n),"top=".concat(o),"screenX=".concat(n),"screenY=".concat(o),"scrollbars=yes"].join(",")}(o));if(i)return g(i,r),i;n.Q.ErrorHelper.throw(new h(e))}var m={renderSignInPopup:function(t){var e=t.primaryUrl,n=t.shareId,i=t.isMicrosoftTeams,c=t.customerId,a=t.onClose,u=t.redirectUrl,s=void 0===u?"/embed-login-success":u,l=t.size,f=void 0===l?"sm":l,h=o._.safeUrlConcat(e,"/login"),y={redirectUrl:s};n&&(y.shareId=n),c&&(y.customerId=c);var d=o._.urlBuilder(h,y);if(!i)return v(d,e,a,f);!function(t){r.e(4777).then(r.t.bind(r,94777,23)).then((function(e){e.initialize(),window.setTimeout((function(){e.authentication.authenticate({url:t,successCallback:function(){p.LocationUtils.Reload()},failureCallback:function(){p.LocationUtils.Reload()},height:1e3,width:1e3})}),0)}))}(d)},canUseCookies:function(){return docCookies.setItem("_cookieTest","1",10,null,null,!0,"none"),!!docCookies.getItem("_cookieTest")||(docCookies.setItem("_cookieTest","1",10),!!docCookies.getItem("_cookieTest"))},closePopup:function(t){return e=this,n=void 0,o=void 0,i=d().mark((function e(){var n,o;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=function(){try{n.initialize((function(){n.authentication.notifySuccess()}))}catch(t){}},e.next=3,r.e(4777).then(r.t.bind(r,94777,23));case 3:n=e.sent,t?(o(),window.close()):window.setTimeout((function(){o(),window.close()}),1e3),window.opener.postMessage({type:"authenticated"},"*");case 6:case"end":return e.stop()}}),e)})),new(o||(o=Promise))((function(t,r){function c(t){try{u(i.next(t))}catch(t){r(t)}}function a(t){try{u(i.throw(t))}catch(t){r(t)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof o?r:new o((function(t){t(r)}))).then(c,a)}u((i=i.apply(e,n||[])).next())}));var e,n,o,i}};function g(t,e){setTimeout((function(){t&&(!1===t.closed?g(t,e):e())}),500)}}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[6801],{86801:(t,e,n)=>{"use strict";n.r(e),n.d(e,{NotificationsView:()=>T});var i=n(81886),o=n(23481),r=n(71365),a=n(83905),s=n(50723),c=n(60735),l=n(18314),u=n(65220),f=n(39479),p=n(65858),y=n(49985),h=n(35454),v=n.n(h);function b(t){return b="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},b(t)}function g(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,d(i.key),i)}}function d(t){var e=function(t,e){if("object"!==b(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==b(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===b(e)?e:String(e)}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}function k(t){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},k(t)}var w=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&&m(t,e)}(a,t);var e,n,i,o,r=(i=a,o=function(){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(){var t,e=k(i);if(o){var n=k(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===b(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),r.call(this,t)}return e=a,(n=[{key:"defaults",get:function(){return{cursors:{},cursorParamName:"cursor"}}},{key:"name",get:function(){return"PaginationComponent"}},{key:"template",get:function(){return v()}},{key:"lang",get:function(){return"shared._pagination"}},{key:"appLinks",get:function(){var t={};if(!this.options.cursors)return{};if(this.options.cursors.previous){var e=this.options.cursors.previous,n=this.buildCursor(this.options.cursors.previous);+e<=1&&!0!==this.options.allowFirstPageCursor&&delete n.params.cursor,t[".previous-applink"]=n}return this.options.cursors.next&&(t[".next-applink"]=this.buildCursor(this.options.cursors.next)),t}},{key:"events",value:function(){return{"click .previous-applink":"onClickPrevious","click .next-applink":"onClickNext"}}},{key:"buildCursor",value:function(t){return{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:f.extend({},this.options.appLink.params,(e={},n=this.options.cursorParamName,i=t,(n=d(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e))};var e,n,i}},{key:"onClickPrevious",value:function(){this.logAction("previous")}},{key:"onClickNext",value:function(){this.logAction("next")}},{key:"logAction",value:function(t){var e=y.k.mergeOptions(this.options.analyticsOptions,{location:p.LocationContext.Pagination,entity:p.EntityType.Pagination,actionType:p.UserAction.Navigate}),n={id:this.options.collectionId,page:t};y.k.logUserAction(n,e)}},{key:"viewOptions",value:function(){return{cursors:this.options.cursors}}},{key:"onBeforeRender",value:function(){return!!this.options.cursors}}])&&g(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(i.Q.Component),O=n(41546),P=n(43454),C=n.n(P),j=n(89224),x=n.n(j),S=n(58081),_=n(72264);function E(t){return E="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},E(t)}function I(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==E(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==E(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(i.key),"symbol"===E(o)?o:String(o)),i)}var o}function N(t,e){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},N(t,e)}function R(t){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},R(t)}var T=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&N(t,e)}(h,t);var e,n,f,p,y=(f=h,p=function(){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(){var t,e=R(f);if(p){var n=R(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===E(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function h(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),y.call(this,t)}return e=h,(n=[{key:"name",get:function(){return"NotificationsView"}},{key:"title",get:function(){return o.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"notifications.notifications"}},{key:"template",get:function(){return C()}},{key:"regions",value:function(){return{notifications:{replaceElement:!0,el:".list-region",partialLoading:{component:a.k.ComponentCollection,options:{collectionLength:5,childOptions:{template:x(),className:"px-1 py-2",viewOptions:{styles:S.Z}}}}},pagination:{replaceElement:!0,el:".pagination-region"}}}},{key:"initialize",value:function(){this.notificationService=r.u.getInstance(c.D.Notification,this),this.appVariables=r.u.getInstance(l.C.NOTIFICATIONS,this)}},{key:"onData",value:function(t){this.collection=t,this.render()}},{key:"getCollectionIdentifier",value:function(){return this.collectionIdentifier?this.collectionIdentifier:this.collectionIdentifier=new u.J(Object.assign({collectionPrefix:s.j.NOTIFICATIONS},this.options.params))}},{key:"renderNotificationList",value:function(){var t=new O.Z({collection:this.collection,childType:O.z.Default,liteUrl:this.config instanceof i.Q.Model?this.config.get("liteUrl"):this.config.liteUrl,libraryEditorUrl:this.config instanceof i.Q.Model?this.config.get("libraryEditorUrl"):this.config.libraryEditorUrl,hasLite:this.options.hasLite});this.showChildView("notifications",t)}},{key:"renderPagination",value:function(){if(this.collection.length){var t=this.notificationService.getNotificationsCursors(this.getCollectionIdentifier()),e=new w({cursors:t,appLink:Object.assign(Object.assign({},this.appVariables.appLinks.notifications),{args:[],params:this.getCollectionIdentifier().toParams()})});this.showChildView("pagination",e)}}},{key:"requiredResources",get:function(){return{config:_.p.config}}},{key:"viewOptions",value:function(){var t,e;return{containerClass:null!==(e=null===(t=this.appVariables)||void 0===t?void 0:t.notificationsViewClassNames)&&void 0!==e?e:""}}},{key:"onBeforeRender",value:function(){var t=this;return this.collection||this.notificationService.getNotifications(this.options.params,this.getCollectionIdentifier(),(function(e){return t.onData(e)})),!!this.collection}},{key:"onRender",value:function(){this.renderNotificationList(),this.renderPagination()}}])&&I(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),h}(i.Q.View)},43454:(t,e,n)=>{var i=n(32227);t.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o){t.propertyIsEnumerable;var r,a=t.escapeExpression;return'<div class="'+a(t.lambda(null!=(r=null!=e?e.options:e)?r.containerClass:r,e))+'">\n <h1 class="header border-bottom pb-2 m-0">'+a((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"notifications",{name:"lang",hash:{},data:o}))+'</h1>\n <div class="list-region"></div>\n <div class="pagination-region"></div>\n</div>'},useData:!0})},35454:(t,e,n)=>{var i=n(32227);t.exports=(i.default||i).template({1:function(t,e,n,i,o){return"disabled"},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o){t.propertyIsEnumerable;var r,a=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing,c=t.escapeExpression;return'<div class="p-3">\n <a class="btn previous-applink btn-outline-dark '+(null!=(r=n.unless.call(a,null!=(r=null!=(r=null!=e?e.options:e)?r.cursors:r)?r.previous:r,{name:"unless",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?r:"")+'">'+c((n.lang||e&&e.lang||s).call(a,"previous",{name:"lang",hash:{},data:o}))+'</a>\n <a class="btn next-applink btn-outline-dark '+(null!=(r=n.unless.call(a,null!=(r=null!=(r=null!=e?e.options:e)?r.cursors:r)?r.next:r,{name:"unless",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?r:"")+'">'+c((n.lang||e&&e.lang||s).call(a,"next",{name:"lang",hash:{},data:o}))+"</a>\n</div>"},useData:!0})}}]);
1
+ (self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[6801],{86801:(t,e,n)=>{"use strict";n.r(e),n.d(e,{NotificationsView:()=>T});var i=n(81886),o=n(23481),r=n(71365),a=n(83905),s=n(50723),c=n(60735),l=n(18314),u=n(65220),f=n(39479),p=n(65858),y=n(49985),h=n(35454),v=n.n(h);function b(t){return b="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},b(t)}function g(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,d(i.key),i)}}function d(t){var e=function(t,e){if("object"!==b(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==b(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===b(e)?e:String(e)}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}function k(t){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},k(t)}var w=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&&m(t,e)}(a,t);var e,n,i,o,r=(i=a,o=function(){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(){var t,e=k(i);if(o){var n=k(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===b(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),r.call(this,t)}return e=a,(n=[{key:"defaults",get:function(){return{cursors:{},cursorParamName:"cursor"}}},{key:"name",get:function(){return"PaginationComponent"}},{key:"template",get:function(){return v()}},{key:"lang",get:function(){return"shared._pagination"}},{key:"appLinks",get:function(){var t={};if(!this.options.cursors)return{};if(this.options.cursors.previous){var e=this.options.cursors.previous,n=this.buildCursor(this.options.cursors.previous);+e<=1&&!0!==this.options.allowFirstPageCursor&&delete n.params.cursor,t[".previous-applink"]=n}return this.options.cursors.next&&(t[".next-applink"]=this.buildCursor(this.options.cursors.next)),t}},{key:"events",value:function(){return{"click .previous-applink":"onClickPrevious","click .next-applink":"onClickNext"}}},{key:"buildCursor",value:function(t){return{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:f.extend({},this.options.appLink.params,(e={},n=this.options.cursorParamName,i=t,(n=d(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e))};var e,n,i}},{key:"onClickPrevious",value:function(){this.logAction("previous")}},{key:"onClickNext",value:function(){this.logAction("next")}},{key:"logAction",value:function(t){var e=y.k.mergeOptions(this.options.analyticsOptions,{location:p.LocationContext.Pagination,entity:p.EntityType.Pagination,actionType:p.UserAction.Navigate}),n={id:this.options.collectionId,page:t};y.k.logUserAction(n,e)}},{key:"viewOptions",value:function(){return{cursors:this.options.cursors}}},{key:"onBeforeRender",value:function(){return!!this.options.cursors}}])&&g(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(i.Q.Component),O=n(41546),P=n(43454),C=n.n(P),j=n(89224),x=n.n(j),S=n(58081),_=n(72264);function E(t){return E="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},E(t)}function I(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==E(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==E(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(i.key),"symbol"===E(o)?o:String(o)),i)}var o}function N(t,e){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},N(t,e)}function R(t){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},R(t)}var T=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&N(t,e)}(h,t);var e,n,f,p,y=(f=h,p=function(){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(){var t,e=R(f);if(p){var n=R(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===E(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function h(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),y.call(this,t)}return e=h,(n=[{key:"name",get:function(){return"NotificationsView"}},{key:"title",get:function(){return o.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"notifications.notifications"}},{key:"template",get:function(){return C()}},{key:"regions",value:function(){return{notifications:{replaceElement:!0,el:".list-region",partialLoading:{component:a.k.ComponentCollection,options:{collectionLength:5,childOptions:{template:x(),className:"px-1 py-2",viewOptions:{styles:S.Z}}}}},pagination:{replaceElement:!0,el:".pagination-region"}}}},{key:"initialize",value:function(){this.notificationService=r.u.getInstance(c.D.Notification,this),this.appVariables=r.u.getInstance(l.C.NOTIFICATIONS,this)}},{key:"onData",value:function(t){this.collection=t,this.render()}},{key:"getCollectionIdentifier",value:function(){return this.collectionIdentifier?this.collectionIdentifier:this.collectionIdentifier=new u.J(Object.assign({collectionPrefix:s.j.NOTIFICATIONS},this.options.params))}},{key:"renderNotificationList",value:function(){var t=new O.Z({collection:this.collection,childType:O.z.Default,liteUrl:this.config instanceof i.Q.Model?this.config.get("liteUrl"):this.config.liteUrl,libraryEditorUrl:this.config instanceof i.Q.Model?this.config.get("libraryEditorUrl"):this.config.libraryEditorUrl,hasLite:this.options.hasLite});this.showChildView("notifications",t)}},{key:"renderPagination",value:function(){if(this.collection.length){var t=this.notificationService.getNotificationsCursors(this.getCollectionIdentifier()),e=new w({cursors:t,appLink:Object.assign(Object.assign({},this.appVariables.appLinks.notifications),{args:[],params:this.getCollectionIdentifier().toParams()})});this.showChildView("pagination",e)}}},{key:"requiredResources",get:function(){return{config:_.p.config}}},{key:"viewOptions",value:function(){var t,e;return{containerClass:null!==(e=null===(t=this.appVariables)||void 0===t?void 0:t.notificationsViewClassNames)&&void 0!==e?e:""}}},{key:"onBeforeRender",value:function(){var t=this;return this.collection||this.notificationService.getNotifications(this.options.params,this.getCollectionIdentifier(),(function(e){return t.onData(e)})),!!this.collection}},{key:"onRender",value:function(){this.renderNotificationList(),this.renderPagination()}}])&&I(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),h}(i.Q.View)},43454:(t,e,n)=>{var i=n(32227);t.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o){t.propertyIsEnumerable;var r,a=t.escapeExpression;return'<div class="'+a(t.lambda(null!=(r=null!=e?e.options:e)?r.containerClass:r,e))+'">\r\n <h1 class="header border-bottom pb-2 m-0">'+a((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"notifications",{name:"lang",hash:{},data:o}))+'</h1>\r\n <div class="list-region"></div>\r\n <div class="pagination-region"></div>\r\n</div>'},useData:!0})},35454:(t,e,n)=>{var i=n(32227);t.exports=(i.default||i).template({1:function(t,e,n,i,o){return"disabled"},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o){t.propertyIsEnumerable;var r,a=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing,c=t.escapeExpression;return'<div class="p-3">\r\n <a class="btn previous-applink btn-outline-dark '+(null!=(r=n.unless.call(a,null!=(r=null!=(r=null!=e?e.options:e)?r.cursors:r)?r.previous:r,{name:"unless",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?r:"")+'">'+c((n.lang||e&&e.lang||s).call(a,"previous",{name:"lang",hash:{},data:o}))+'</a>\r\n <a class="btn next-applink btn-outline-dark '+(null!=(r=n.unless.call(a,null!=(r=null!=(r=null!=e?e.options:e)?r.cursors:r)?r.next:r,{name:"unless",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?r:"")+'">'+c((n.lang||e&&e.lang||s).call(a,"next",{name:"lang",hash:{},data:o}))+"</a>\r\n</div>"},useData:!0})}}]);