@clickview/lite 0.21.1 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. package/.eslintrc.json +2 -2
  2. package/dist/bundles.json +1 -1
  3. package/dist/css/{8685-lite-f68ab70988.chunk.css → 3645-lite-85a5f1ffe8.chunk.css} +3 -3
  4. package/dist/css/{7478-lite-4674cd4cfe.chunk.css → 4246-lite-48fa20a78e.chunk.css} +8 -8
  5. package/dist/css/4669-lite-dd7deadd90.chunk.css +8 -0
  6. package/dist/css/{7638-lite-e5bc177766.chunk.css → 7638-lite-ba0bbea163.chunk.css} +1 -1
  7. package/dist/css/{8359-lite-5546b33edd.chunk.css → 8359-lite-14409c840c.chunk.css} +1 -1
  8. package/dist/languages/en.json +1 -1
  9. package/dist/scripts/{1200-24f7d81a3e-lite.chunk.js → 1200-a6f398c740-lite.chunk.js} +1 -1
  10. package/dist/scripts/{1592-d465772de5-lite.chunk.js → 1592-aeac7741f9-lite.chunk.js} +1 -1
  11. package/dist/scripts/1655-41cb9e238b-lite.chunk.js +1 -0
  12. package/dist/scripts/{2097-d9696e2dbc-lite.chunk.js → 2097-66aad0b2ec-lite.chunk.js} +1 -1
  13. package/dist/scripts/2608-c3012904f1-lite.chunk.js +1 -0
  14. package/dist/scripts/3533-2b73ee343c-lite.chunk.js +1 -0
  15. package/dist/scripts/3645-9872e99166-lite.chunk.js +2 -0
  16. package/dist/scripts/{3667-b4bf177ef8-lite.chunk.js → 3667-00995d20ff-lite.chunk.js} +1 -1
  17. package/dist/scripts/3787-1b0ff92798-lite.chunk.js +1 -0
  18. package/dist/scripts/4246-8d463241e2-lite.chunk.js +1 -0
  19. package/dist/scripts/4396-b51c232e2e-lite.chunk.js +2 -0
  20. package/dist/scripts/{4617-12bbd109c1-lite.chunk.js → 4617-3a5f0d34bc-lite.chunk.js} +1 -1
  21. package/dist/scripts/4669-e57378ed7e-lite.chunk.js +1 -0
  22. package/dist/scripts/5285-f5a285b235-lite.chunk.js +2 -0
  23. package/dist/scripts/{5622-548a92a2e4-lite.chunk.js → 5622-df70c2e4d8-lite.chunk.js} +1 -1
  24. package/dist/scripts/6263-aa35de311d-lite.chunk.js +1 -0
  25. package/dist/scripts/6285-5d8cec58d1-lite.chunk.js +1 -0
  26. package/dist/scripts/{4588-d0a8f4b2f7-lite.chunk.js → 6438-40f62cee87-lite.chunk.js} +1 -1
  27. package/dist/scripts/{6736-326f546fb8-lite.chunk.js → 6736-cffe5aabea-lite.chunk.js} +1 -1
  28. package/dist/scripts/{6801-371a9b4d34-lite.chunk.js → 6801-c9fd0487cf-lite.chunk.js} +1 -1
  29. package/dist/scripts/7318-b73e12f5a8-lite.chunk.js +1 -1
  30. package/dist/scripts/7939-25697fe490-lite.chunk.js +1 -0
  31. package/dist/scripts/{7950-2985ea7f90-lite.chunk.js → 7950-44f07724fd-lite.chunk.js} +1 -1
  32. package/dist/scripts/{8323-1c054e5eea-lite.chunk.js → 8323-431a465fd5-lite.chunk.js} +1 -1
  33. package/dist/scripts/{8681-0ce42b0460-lite.chunk.js → 8681-0629128300-lite.chunk.js} +1 -1
  34. package/dist/scripts/{9428-63f031caf2-lite.chunk.js → 9428-37d616a4ba-lite.chunk.js} +1 -1
  35. package/dist/scripts/{9478-f8ac26691a-lite.chunk.js → 9478-a636d803b5-lite.chunk.js} +1 -1
  36. package/dist/scripts/bundle-53b199b3f4.min.js +2 -0
  37. package/jest.config.js +11 -11
  38. package/package.json +62 -62
  39. package/typings/libs/CVEvents.d.ts +12 -12
  40. package/typings/libs/CVLanguages.d.ts +24 -24
  41. package/typings/libs/backbone.validation.d.ts +99 -99
  42. package/typings/libs/cloneDeep.d.ts +4 -4
  43. package/typings/libs/cookiesjs.d.ts +25 -25
  44. package/typings/libs/draft-convert.d.ts +3 -3
  45. package/typings/libs/google-api.d.ts +93 -93
  46. package/typings/libs/intersection-observer.d.ts +82 -82
  47. package/typings/libs/microsoft-teams.d.ts +2 -2
  48. package/typings/libs/react-table-config.d.ts +138 -138
  49. package/typings/libs/trackjs.d.ts +2 -2
  50. package/typings/libs/videojs-contrib-quality-levels.d.ts +28 -28
  51. package/typings/utils/imports.d.ts +13 -13
  52. package/dist/css/655-lite-0314629b01.chunk.css +0 -8
  53. package/dist/scripts/1297-2446383ab4-lite.chunk.js +0 -1
  54. package/dist/scripts/2608-95e7db781d-lite.chunk.js +0 -1
  55. package/dist/scripts/3533-4b14e63562-lite.chunk.js +0 -1
  56. package/dist/scripts/3787-53ab4ffaaf-lite.chunk.js +0 -1
  57. package/dist/scripts/4396-7e18d58a30-lite.chunk.js +0 -2
  58. package/dist/scripts/6257-a2a2ca1d87-lite.chunk.js +0 -2
  59. package/dist/scripts/6263-dfa6b64dfc-lite.chunk.js +0 -1
  60. package/dist/scripts/6285-5bd408b61b-lite.chunk.js +0 -1
  61. package/dist/scripts/655-0490c30f9e-lite.chunk.js +0 -1
  62. package/dist/scripts/7338-1a927a706e-lite.chunk.js +0 -1
  63. package/dist/scripts/7478-b31aa05cb4-lite.chunk.js +0 -1
  64. package/dist/scripts/8685-16c6ca7c1d-lite.chunk.js +0 -2
  65. package/dist/scripts/bundle-8135115b02.min.js +0 -2
  66. /package/dist/css/{1297-lite-e7bdc675ac.chunk.css → 1655-lite-e7bdc675ac.chunk.css} +0 -0
  67. /package/dist/css/{4588-lite-d8a2d6415c.chunk.css → 6438-lite-d8a2d6415c.chunk.css} +0 -0
  68. /package/dist/scripts/{1090-5e1af08009-lite.chunk.js → 1090-0a7a3a2c5a-lite.chunk.js} +0 -0
  69. /package/dist/scripts/{1186-6df15b6967-lite.chunk.js → 1186-416d953065-lite.chunk.js} +0 -0
  70. /package/dist/scripts/{1200-24f7d81a3e-lite.chunk.js.LICENSE.txt → 1200-a6f398c740-lite.chunk.js.LICENSE.txt} +0 -0
  71. /package/dist/scripts/{1301-a8a0ef7e46-lite.chunk.js → 1301-2785e09044-lite.chunk.js} +0 -0
  72. /package/dist/scripts/{1340-ae2cb3206e-lite.chunk.js → 1340-95c8a62ecc-lite.chunk.js} +0 -0
  73. /package/dist/scripts/{1351-ae480b62f4-lite.chunk.js → 1351-da33070f1b-lite.chunk.js} +0 -0
  74. /package/dist/scripts/{1453-9387c997d8-lite.chunk.js → 1453-ffe46c959a-lite.chunk.js} +0 -0
  75. /package/dist/scripts/{147-7dfb549bc2-lite.chunk.js → 147-4fd2693b57-lite.chunk.js} +0 -0
  76. /package/dist/scripts/{1518-09426d9002-lite.chunk.js → 1518-0c21dc8d97-lite.chunk.js} +0 -0
  77. /package/dist/scripts/{1592-d465772de5-lite.chunk.js.LICENSE.txt → 1592-aeac7741f9-lite.chunk.js.LICENSE.txt} +0 -0
  78. /package/dist/scripts/{1794-e26231e944-lite.chunk.js → 1794-f6b31da313-lite.chunk.js} +0 -0
  79. /package/dist/scripts/{1891-b279e10dfa-lite.chunk.js → 1891-83d4ee5cae-lite.chunk.js} +0 -0
  80. /package/dist/scripts/{1924-7fb3294bbe-lite.chunk.js → 1924-6b2a7d2e30-lite.chunk.js} +0 -0
  81. /package/dist/scripts/{2097-d9696e2dbc-lite.chunk.js.LICENSE.txt → 2097-66aad0b2ec-lite.chunk.js.LICENSE.txt} +0 -0
  82. /package/dist/scripts/{2215-404894d17b-lite.chunk.js → 2215-d720e674af-lite.chunk.js} +0 -0
  83. /package/dist/scripts/{2229-7227ffd514-lite.chunk.js → 2229-4452e6e7f0-lite.chunk.js} +0 -0
  84. /package/dist/scripts/{227-58e2472479-lite.chunk.js → 227-cc5a924852-lite.chunk.js} +0 -0
  85. /package/dist/scripts/{2279-335f43ea35-lite.chunk.js → 2279-673600a92b-lite.chunk.js} +0 -0
  86. /package/dist/scripts/{2303-fdaacdd62d-lite.chunk.js → 2303-af295f2b65-lite.chunk.js} +0 -0
  87. /package/dist/scripts/{2452-f1ccaff72b-lite.chunk.js → 2452-4a1c9e0123-lite.chunk.js} +0 -0
  88. /package/dist/scripts/{2512-b79f680e2b-lite.chunk.js → 2512-8aebcc22ad-lite.chunk.js} +0 -0
  89. /package/dist/scripts/{2883-2fdbc7041f-lite.chunk.js → 2883-6a10e0042f-lite.chunk.js} +0 -0
  90. /package/dist/scripts/{2966-388683bcd6-lite.chunk.js → 2966-0c0bfe06c3-lite.chunk.js} +0 -0
  91. /package/dist/scripts/{3007-67c669974c-lite.chunk.js → 3007-ff224c6b4a-lite.chunk.js} +0 -0
  92. /package/dist/scripts/{3020-32e560bee9-lite.chunk.js → 3020-2ba9f82a47-lite.chunk.js} +0 -0
  93. /package/dist/scripts/{3108-eab647eb42-lite.chunk.js → 3108-4e2349fae5-lite.chunk.js} +0 -0
  94. /package/dist/scripts/{3171-6119cb933c-lite.chunk.js → 3171-6da0210542-lite.chunk.js} +0 -0
  95. /package/dist/scripts/{3216-05a8119d7a-lite.chunk.js → 3216-b268d43ec0-lite.chunk.js} +0 -0
  96. /package/dist/scripts/{3285-213eacd3fd-lite.chunk.js → 3285-bd7a7a95d7-lite.chunk.js} +0 -0
  97. /package/dist/scripts/{3468-2322c61a84-lite.chunk.js → 3468-7a9a0ce9a7-lite.chunk.js} +0 -0
  98. /package/dist/scripts/{3667-b4bf177ef8-lite.chunk.js.LICENSE.txt → 3645-9872e99166-lite.chunk.js.LICENSE.txt} +0 -0
  99. /package/dist/scripts/{4396-7e18d58a30-lite.chunk.js.LICENSE.txt → 3667-00995d20ff-lite.chunk.js.LICENSE.txt} +0 -0
  100. /package/dist/scripts/{3754-fe8190d2ad-lite.chunk.js → 3754-1b1ac87300-lite.chunk.js} +0 -0
  101. /package/dist/scripts/{389-7d32d43138-lite.chunk.js → 389-f594d7dc39-lite.chunk.js} +0 -0
  102. /package/dist/scripts/{3952-a4f58ad799-lite.chunk.js → 3952-8aa84954fa-lite.chunk.js} +0 -0
  103. /package/dist/scripts/{4029-0b05c56293-lite.chunk.js → 4029-e79e8572a0-lite.chunk.js} +0 -0
  104. /package/dist/scripts/{4113-209f45f6d7-lite.chunk.js → 4113-a5d0b16a3a-lite.chunk.js} +0 -0
  105. /package/dist/scripts/{4182-44f52b675e-lite.chunk.js → 4182-894f7f6fba-lite.chunk.js} +0 -0
  106. /package/dist/scripts/{4290-3e770989fe-lite.chunk.js → 4290-236cb842a9-lite.chunk.js} +0 -0
  107. /package/dist/scripts/{4343-9f273ff584-lite.chunk.js → 4343-62c6b29bfc-lite.chunk.js} +0 -0
  108. /package/dist/scripts/{4380-5fa3db4048-lite.chunk.js → 4380-7578e72c04-lite.chunk.js} +0 -0
  109. /package/dist/scripts/{5622-548a92a2e4-lite.chunk.js.LICENSE.txt → 4396-b51c232e2e-lite.chunk.js.LICENSE.txt} +0 -0
  110. /package/dist/scripts/{4484-0b3c7acb4a-lite.chunk.js → 4484-aeba3c09c7-lite.chunk.js} +0 -0
  111. /package/dist/scripts/{4541-18f406c3e6-lite.chunk.js → 4541-d3265c7adb-lite.chunk.js} +0 -0
  112. /package/dist/scripts/{4597-59aa22732e-lite.chunk.js → 4597-1d71f31a50-lite.chunk.js} +0 -0
  113. /package/dist/scripts/{4690-336ab1884e-lite.chunk.js → 4690-9e14a0919a-lite.chunk.js} +0 -0
  114. /package/dist/scripts/{482-55ecda1638-lite.chunk.js → 482-62b57fd498-lite.chunk.js} +0 -0
  115. /package/dist/scripts/{4893-dad65eb405-lite.chunk.js → 4893-3c755c9e9e-lite.chunk.js} +0 -0
  116. /package/dist/scripts/{4898-70a9c3c890-lite.chunk.js → 4898-819c12ce24-lite.chunk.js} +0 -0
  117. /package/dist/scripts/{5165-65592b4f14-lite.chunk.js → 5165-5ac91feecb-lite.chunk.js} +0 -0
  118. /package/dist/scripts/{6257-a2a2ca1d87-lite.chunk.js.LICENSE.txt → 5285-f5a285b235-lite.chunk.js.LICENSE.txt} +0 -0
  119. /package/dist/scripts/{5347-975049c51f-lite.chunk.js → 5347-f0b4ab4640-lite.chunk.js} +0 -0
  120. /package/dist/scripts/{6736-326f546fb8-lite.chunk.js.LICENSE.txt → 5622-df70c2e4d8-lite.chunk.js.LICENSE.txt} +0 -0
  121. /package/dist/scripts/{5746-eaceae9b42-lite.chunk.js → 5746-565c8d88c0-lite.chunk.js} +0 -0
  122. /package/dist/scripts/{5914-7c936ecffb-lite.chunk.js → 5914-83f14d2f25-lite.chunk.js} +0 -0
  123. /package/dist/scripts/{5974-d7f6ad6ad5-lite.chunk.js → 5974-067b3050ce-lite.chunk.js} +0 -0
  124. /package/dist/scripts/{6158-ebe3c80016-lite.chunk.js → 6158-9aeb7839e1-lite.chunk.js} +0 -0
  125. /package/dist/scripts/{6274-b4101bacdc-lite.chunk.js → 6274-d2123cdc66-lite.chunk.js} +0 -0
  126. /package/dist/scripts/{6325-c3bedf36b7-lite.chunk.js → 6325-428b11c811-lite.chunk.js} +0 -0
  127. /package/dist/scripts/{6368-3adc622000-lite.chunk.js → 6368-591a215562-lite.chunk.js} +0 -0
  128. /package/dist/scripts/{6370-d5be30336e-lite.chunk.js → 6370-35a8d5e932-lite.chunk.js} +0 -0
  129. /package/dist/scripts/{6427-1055f31cea-lite.chunk.js → 6427-5280ef4fa4-lite.chunk.js} +0 -0
  130. /package/dist/scripts/{6450-78e74f7202-lite.chunk.js → 6450-11cdf0c405-lite.chunk.js} +0 -0
  131. /package/dist/scripts/{6465-da6609773f-lite.chunk.js → 6465-2817c163a3-lite.chunk.js} +0 -0
  132. /package/dist/scripts/{6477-f42f00fe20-lite.chunk.js → 6477-ea205b40df-lite.chunk.js} +0 -0
  133. /package/dist/scripts/{6480-56fa1675ac-lite.chunk.js → 6480-c6b6dd78c5-lite.chunk.js} +0 -0
  134. /package/dist/scripts/{6493-ae21e8927f-lite.chunk.js → 6493-331029d2a9-lite.chunk.js} +0 -0
  135. /package/dist/scripts/{6604-9d51729e51-lite.chunk.js → 6604-6efe5b290b-lite.chunk.js} +0 -0
  136. /package/dist/scripts/{6708-666964fa42-lite.chunk.js → 6708-7d9af42415-lite.chunk.js} +0 -0
  137. /package/dist/scripts/{6725-6a02a8aa52-lite.chunk.js → 6725-4681caad1e-lite.chunk.js} +0 -0
  138. /package/dist/scripts/{7950-2985ea7f90-lite.chunk.js.LICENSE.txt → 6736-cffe5aabea-lite.chunk.js.LICENSE.txt} +0 -0
  139. /package/dist/scripts/{6795-cda692f8f8-lite.chunk.js → 6795-8f86567ccb-lite.chunk.js} +0 -0
  140. /package/dist/scripts/{6821-aa942da9f9-lite.chunk.js → 6821-c2c09e0258-lite.chunk.js} +0 -0
  141. /package/dist/scripts/{6873-336d25fe83-lite.chunk.js → 6873-4b14b86a51-lite.chunk.js} +0 -0
  142. /package/dist/scripts/{6884-da51fcccec-lite.chunk.js → 6884-4c12ac9035-lite.chunk.js} +0 -0
  143. /package/dist/scripts/{6966-5e5d3d6522-lite.chunk.js → 6966-295b85fbcd-lite.chunk.js} +0 -0
  144. /package/dist/scripts/{7045-655270d34b-lite.chunk.js → 7045-882c8445fc-lite.chunk.js} +0 -0
  145. /package/dist/scripts/{7056-e6aea680e3-lite.chunk.js → 7056-9052eecc41-lite.chunk.js} +0 -0
  146. /package/dist/scripts/{7059-ad64494434-lite.chunk.js → 7059-7267b303d2-lite.chunk.js} +0 -0
  147. /package/dist/scripts/{7115-1f9288a3c8-lite.chunk.js → 7115-748ec79aa9-lite.chunk.js} +0 -0
  148. /package/dist/scripts/{7128-a38ffbd703-lite.chunk.js → 7128-fa0cce35e8-lite.chunk.js} +0 -0
  149. /package/dist/scripts/{7172-494eb53179-lite.chunk.js → 7172-cbe01f026d-lite.chunk.js} +0 -0
  150. /package/dist/scripts/{7351-e394235f6c-lite.chunk.js → 7351-818e8b65f7-lite.chunk.js} +0 -0
  151. /package/dist/scripts/{7506-68ed3f4e65-lite.chunk.js → 7506-09a70fbf9f-lite.chunk.js} +0 -0
  152. /package/dist/scripts/{7510-dadbf124b5-lite.chunk.js → 7510-ee4b2f14de-lite.chunk.js} +0 -0
  153. /package/dist/scripts/{7638-a8440c0e5c-lite.chunk.js → 7638-17ca27780b-lite.chunk.js} +0 -0
  154. /package/dist/scripts/{7708-bbbced57b1-lite.chunk.js → 7708-2f1feb5979-lite.chunk.js} +0 -0
  155. /package/dist/scripts/{7767-9268c4a683-lite.chunk.js → 7767-344dd935b6-lite.chunk.js} +0 -0
  156. /package/dist/scripts/{7820-ed4679419d-lite.chunk.js → 7820-e5d6ad2fb8-lite.chunk.js} +0 -0
  157. /package/dist/scripts/{7855-74bda8e11e-lite.chunk.js → 7855-18edc1946f-lite.chunk.js} +0 -0
  158. /package/dist/scripts/{7925-1ed74c737d-lite.chunk.js → 7925-088d8201ec-lite.chunk.js} +0 -0
  159. /package/dist/scripts/{8323-1c054e5eea-lite.chunk.js.LICENSE.txt → 7950-44f07724fd-lite.chunk.js.LICENSE.txt} +0 -0
  160. /package/dist/scripts/{7966-9e7a490d8d-lite.chunk.js → 7966-6cff9a795b-lite.chunk.js} +0 -0
  161. /package/dist/scripts/{7969-b16e8bae70-lite.chunk.js → 7969-35ee7801b4-lite.chunk.js} +0 -0
  162. /package/dist/scripts/{8025-955738d60f-lite.chunk.js → 8025-ca1d4ae5db-lite.chunk.js} +0 -0
  163. /package/dist/scripts/{8038-2d3f7277ee-lite.chunk.js → 8038-6c2a256fca-lite.chunk.js} +0 -0
  164. /package/dist/scripts/{8046-799f379c70-lite.chunk.js → 8046-787309872c-lite.chunk.js} +0 -0
  165. /package/dist/scripts/{8056-4476ad4eb5-lite.chunk.js → 8056-d967c4ec71-lite.chunk.js} +0 -0
  166. /package/dist/scripts/{8114-fab7b94633-lite.chunk.js → 8114-12abea85e8-lite.chunk.js} +0 -0
  167. /package/dist/scripts/{823-9684f2e786-lite.chunk.js → 823-440317098b-lite.chunk.js} +0 -0
  168. /package/dist/scripts/{8239-53ad337f40-lite.chunk.js → 8239-5dca46369c-lite.chunk.js} +0 -0
  169. /package/dist/scripts/{8252-badc58b2a5-lite.chunk.js → 8252-aa97c540e4-lite.chunk.js} +0 -0
  170. /package/dist/scripts/{8292-9ce884743c-lite.chunk.js → 8292-ff7df28770-lite.chunk.js} +0 -0
  171. /package/dist/scripts/{8300-8839d9b4af-lite.chunk.js → 8300-c2509f2d64-lite.chunk.js} +0 -0
  172. /package/dist/scripts/{8681-0ce42b0460-lite.chunk.js.LICENSE.txt → 8323-431a465fd5-lite.chunk.js.LICENSE.txt} +0 -0
  173. /package/dist/scripts/{834-e6e5957a6c-lite.chunk.js → 834-65a3767bdc-lite.chunk.js} +0 -0
  174. /package/dist/scripts/{8359-83769cfe51-lite.chunk.js → 8359-9bf16d5977-lite.chunk.js} +0 -0
  175. /package/dist/scripts/{8466-cde97fcd2d-lite.chunk.js → 8466-6fc579e8a5-lite.chunk.js} +0 -0
  176. /package/dist/scripts/{8564-5b7a8d0bdb-lite.chunk.js → 8564-d8c80b7237-lite.chunk.js} +0 -0
  177. /package/dist/scripts/{8573-53f8afdaa7-lite.chunk.js → 8573-f86a15cb76-lite.chunk.js} +0 -0
  178. /package/dist/scripts/{8592-65a1b429da-lite.chunk.js → 8592-118573d431-lite.chunk.js} +0 -0
  179. /package/dist/scripts/{8685-16c6ca7c1d-lite.chunk.js.LICENSE.txt → 8681-0629128300-lite.chunk.js.LICENSE.txt} +0 -0
  180. /package/dist/scripts/{8779-d33f6c6dd9-lite.chunk.js → 8779-c00be310e6-lite.chunk.js} +0 -0
  181. /package/dist/scripts/{8789-815ee0417d-lite.chunk.js → 8789-cbe2ae6d04-lite.chunk.js} +0 -0
  182. /package/dist/scripts/{8816-f0cf5479be-lite.chunk.js → 8816-649cd67b39-lite.chunk.js} +0 -0
  183. /package/dist/scripts/{8868-8545161f5d-lite.chunk.js → 8868-f58dea6bba-lite.chunk.js} +0 -0
  184. /package/dist/scripts/{8884-590d2228a3-lite.chunk.js → 8884-14aa072877-lite.chunk.js} +0 -0
  185. /package/dist/scripts/{8955-60682c0ba8-lite.chunk.js → 8955-c9c450fbd9-lite.chunk.js} +0 -0
  186. /package/dist/scripts/{9060-5a79549f6d-lite.chunk.js → 9060-47b8dc83c6-lite.chunk.js} +0 -0
  187. /package/dist/scripts/{9107-790d22dc86-lite.chunk.js → 9107-232b01e278-lite.chunk.js} +0 -0
  188. /package/dist/scripts/{9231-3fe5b5a394-lite.chunk.js → 9231-2a3a1a88e1-lite.chunk.js} +0 -0
  189. /package/dist/scripts/{9242-1cddf1b075-lite.chunk.js → 9242-5a2d447f21-lite.chunk.js} +0 -0
  190. /package/dist/scripts/{9428-63f031caf2-lite.chunk.js.LICENSE.txt → 9428-37d616a4ba-lite.chunk.js.LICENSE.txt} +0 -0
  191. /package/dist/scripts/{9455-3217810808-lite.chunk.js → 9455-1be4596b49-lite.chunk.js} +0 -0
  192. /package/dist/scripts/{9478-f8ac26691a-lite.chunk.js.LICENSE.txt → 9478-a636d803b5-lite.chunk.js.LICENSE.txt} +0 -0
  193. /package/dist/scripts/{9556-f361722af4-lite.chunk.js → 9556-eca382932a-lite.chunk.js} +0 -0
  194. /package/dist/scripts/{9590-d812a37a73-lite.chunk.js → 9590-8f41a6e462-lite.chunk.js} +0 -0
  195. /package/dist/scripts/{9686-e96ed5b44e-lite.chunk.js → 9686-c0e4a20a7a-lite.chunk.js} +0 -0
  196. /package/dist/scripts/{9863-22313ca53e-lite.chunk.js → 9863-d77407e40c-lite.chunk.js} +0 -0
  197. /package/dist/scripts/{9897-d8eb76fffe-lite.chunk.js → 9897-61fba7bce8-lite.chunk.js} +0 -0
  198. /package/dist/scripts/{9905-3adaead6f5-lite.chunk.js → 9905-f9a8958b48-lite.chunk.js} +0 -0
  199. /package/dist/scripts/{bundle-8135115b02.min.js.LICENSE.txt → bundle-53b199b3f4.min.js.LICENSE.txt} +0 -0
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 5285-f5a285b235-lite.chunk.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[5285],{58380:(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("aYpO7")})),(!!t.value||n)&&o().createElement("span",{className:"".concat("ygMgF"," position-absolute cursor-pointer text-muted"),role:"button",onClick:r},o().createElement(i.x,{svgName:a.vn.Close,size:i.S.Medium})))}))},50081:(t,e,r)=>{r.d(e,{h:()=>_r});var n,o=r(1024),a=r.n(o),i=r(57900),c=r(83529),l=r(65858),u=r(58130),s=r(11607),f=r(2786),p=r(83914);!function(t){t.AU="au",t.NZ="nz",t.UK="uk",t.US="us"}(n||(n={}));var h=["uk","gb","gg","im","je","ie"],d={au:n.AU,nz:n.NZ,us:n.US,uk:n.UK,gb:n.UK,gg:n.UK,im:n.UK,je:n.UK,ie:n.UK},y={getCountryCode:function(t){return d[null==t?void 0:t.toLowerCase()]||n.US},isCountryCodeUK:function(t){return h.includes(t.toLowerCase())},isCountryCodeAU:function(t){return(null==t?void 0:t.toLowerCase())===n.AU},isCountryCodeUS:function(t){return(null==t?void 0:t.toLowerCase())===n.US},isCountryCodeNZ:function(t){return(null==t?void 0:t.toLowerCase())===n.NZ},isSupportedCountryCode:function(t){return Object.keys(d).includes(null==t?void 0:t.toLowerCase())},getLocalizedLocalityPlaceholderPhrase:function(t){if(t)return y.isCountryCodeUK(t)?"E.g. CR0 3RL or 36 Factory Lane":y.isCountryCodeAU(t)||y.isCountryCodeNZ(t)?"E.g. 2212 or Revesby":y.isCountryCodeUS(t)?"E.g. 95826 or Sacramento":void 0},getLocalizedLocalityPlaceholderText:function(t){if(t){var e=y.getLocalizedLocalityPlaceholderPhrase(t);if(e)return e}}},m=r(97395),v={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"}},g={getMarketingUrlForGeoLocation:function(t){var e=y.getCountryCode(null==t?void 0:t.countryCode);return v.Marketing[e]||v.Marketing.us},getMarketingSalesContactForGeoLocation:function(t){var e=y.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=y.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=y.getCountryCode(null==t?void 0:t.countryCode);return v.Support[e]||v.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),m._.urlBuilder("/login",n)}};const b={crumb:"Btmx2"};function w(t,e){var r="rounded-circle mx-2 d-inline-block "+b.crumb,n=t===e?"bg-info":"bg-light";return"".concat(r," ").concat(n)}function S(t){return a().createElement("div",{className:"text-center"},t.crumbs.map((function(e){return a().createElement("div",{className:w(t.currentStep,e),key:e})})))}function E(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 x=r(98461);function L(t){var e=g.getTermsAndConditionsLink(),r=g.getPrivacyPolicyLink();return a().createElement("span",{className:"text-center text-md mt-2 text-normal"},"By signing up you agree to the",a().createElement("br",null),a().createElement(x.d,{href:e,onClick:t.onClickTermsAndConditions,className:"info-link",newTab:!0},"Terms and Conditions"),"  and  ",a().createElement(x.d,{href:r,onClick:t.onClickPrivacyPolicy,className:"info-link",newTab:!0},"Privacy Policy"))}function k(t){return a().createElement(a().Fragment,null,"Have a ClickView account already?",a().createElement(x.d,{href:t.link,onClick:t.onClick,className:"info-link ml-1"},"Sign in"))}var j=r(28366);N.defaultProps={showBackButton:!0};var O=["enter-email","find-school"],C=["enter-email","find-school","cant-find-school","add-to-braze","enter-age"];function N(t){var e=t.currentStep,r=t.previousStep,n=t.hasPreviousStep,o=t.showBackButton,i=t.closeApp,c=t.children;function h(){return["enter-email","find-school","cant-find-school","add-to-braze","enter-age"].includes(e)}function d(){r(),t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.Back,workflowPhase:l.WorkflowPhase.Back})}var y=C.includes(t.currentStep),m=y?"".concat(j.Z.leftHalfLayout," ").concat(j.Z.withBg):j.Z.leftHalfLayout;return a().createElement("div",{className:m},a().createElement("div",{className:"row mx-0 p-3"},a().createElement("div",{className:"col px-0 d-lg-none ".concat(j.Z.popupButton)},n&&h()&&o&&a().createElement(E,{onClick:d})),a().createElement("div",{className:"col col-lg-6 px-0"},a().createElement("div",{className:j.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(j.Z.popupButton)},n&&h()&&o&&a().createElement(E,{onClick:d}))),a().createElement(s.L,{onClick:i,className:j.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:t.imageUrls.popupDashboard,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"},O.includes(t.currentStep)&&a().createElement("div",{className:"mb-2"},a().createElement(S,{crumbs:O,currentStep:e})),a().createElement("div",{className:"flex-grow-1"},c),a().createElement("div",{className:"text-center"},"select-type"===e&&a().createElement(k,{link:g.getLoginLink(),onClick:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.SignIn})}}),["enter-email","add-to-braze"].includes(e)&&a().createElement(L,{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 A={fullPageLayout:"jZ_Wp",logo:"J97w_",maxWidth42rem:"Ye154",maxWidth23rem:"m2kAT",maxWidth30rem:"ollkc"};T.defaultProps={showBackButton:!0};var P,I=["select-type","enter-email","find-school"];function T(t){var e=t.currentStep,r=t.previousStep,n=t.hasPreviousStep,o=t.showBackButton,i=t.children;return a().createElement("div",{className:"d-flex flex-column justify-content-between px-4 py-0 ".concat(A.fullPageLayout)},a().createElement("div",{className:"mt-3 mb-2"},I.includes(e)&&a().createElement(S,{crumbs:I,currentStep:e})),a().createElement("div",{className:"position-relative mx-auto w-100 ".concat("select-type"===e?A.maxWidth42rem:["enter-email","find-school","cant-find-school","add-to-braze","enter-age"].includes(e)?A.maxWidth23rem:A.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(E,{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(A.logo)},a().createElement(f.$S,null))),i),a().createElement("div",{className:"position-relative mb-4 text-center"},"select-type"===e&&a().createElement(k,{link:g.getLoginLink(),onClick:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.SignIn})}}),["enter-email","find-school","add-to-braze"].includes(e)&&a().createElement(L,{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 U(t){return U="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},U(t)}function _(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==U(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==U(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===U(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var F,G,D={"cant-find-school":N,"enter-email":N,"find-school":N,"select-type":N,completed:N,"add-to-braze":N,"enter-age":N},M={"cant-find-school":T,"enter-email":T,"find-school":T,"select-type":T,completed:T,"add-to-braze":T,"enter-age":T},K=(_(P={},c.c.FullPage,M),_(P,c.c.Popup,D),P),R={getLayouts:function(t){return K[t]}};function z(t,e){return e?"".concat(t," ").concat(e):t}!function(t){t.Unavailable="unavailable",t.Expired="expired",t.Active="active",t.NotRequired="not-required",t.Available="available",t.Unsupported="unsupported"}(F||(F={})),function(t){t.InvalidEmail="invalid-email"}(G||(G={}));var B={Heading:function(t){return a().createElement("h1",{className:z("text-center mb-2 h4",t.className)},t.children)},Body:function(t){return a().createElement("div",{className:z("text-center text-sm px-2 px-lg-4",t.className)},t.children)},Message:function(t){return a().createElement("p",{className:z("",t.className)},t.children)}};function $(t){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$(t)}function Y(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==$(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==$(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===$(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function W(t){var e,r=(Y(e={},F.Available,t.imageUrls.statusImages.available),Y(e,F.Active,t.imageUrls.statusImages.active),Y(e,F.Expired,t.imageUrls.statusImages.expired),Y(e,F.NotRequired,t.imageUrls.statusImages.notRequired),Y(e,F.Unavailable,t.imageUrls.statusImages.unavailable),Y(e,F.Unsupported,t.imageUrls.statusImages.unsupported),e);return a().createElement("div",{className:"d-flex justify-content-center my-4 px-2 px-lg-4"},a().createElement("img",{src:r[t.trialStatus],className:"w-100 h-auto"}))}var H="young-student",V=r(99940);function Z(t){return Z="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},Z(t)}function q(t){var e="function"==typeof Map?new Map:void 0;return q=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return X(t,arguments,tt(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Q(n,t)},q(t)}function X(t,e,r){return X=J()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&Q(o,r.prototype),o},X.apply(null,arguments)}function J(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function Q(t,e){return Q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Q(t,e)}function tt(t){return tt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},tt(t)}var et=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&&Q(t,e)}(a,t);var e,r,n,o=(r=a,n=J(),function(){var t,e=tt(r);if(n){var o=tt(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Z(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Error";return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=o.call(this,r)).body=t,e}return e=a,Object.defineProperty(e,"prototype",{writable:!1}),e}(q(Error)),rt={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 nt(t){return nt="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},nt(t)}function ot(){ot=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:S(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var y={};l(y,a,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(j([])));v&&v!==e&&r.call(v,a)&&(y=v);var g=d.prototype=p.prototype=Object.create(y);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"==nt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=E(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 E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var 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 at=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 it(t){var e={method:V.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===V.k.GET&&t.data?r=rt.prepareQuery(r,t.data):t.data&&(e=Object.assign(Object.assign({},e),{body:JSON.stringify(t.data)})),{init:e,url:r}}var ct={asyncFetch:function(t){return at(this,void 0,void 0,ot().mark((function e(){var r,n,o;return ot().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=it(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 et(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 at(this,void 0,void 0,ot().mark((function e(){var r,n;return ot().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=it(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=it(t);return fetch(e.url,e.init).then((function(t){if(204!==t.status)return t.json()})).then((function(e){return t.success&&t.success(e),e})).catch((function(e){return t.error&&t.error(),e})).finally((function(){t.always&&t.always()}))}))};function lt(t){return lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lt(t)}function ut(){ut=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new k(o||[]);return n(i,"_invoke",{value:S(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var y={};l(y,a,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(j([])));v&&v!==e&&r.call(v,a)&&(y=v);var g=d.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==lt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=E(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 E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var 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 st=function(t,e,r,n){return new(r||(r=Promise))((function(o,a){function i(t){try{l(n.next(t))}catch(t){a(t)}}function c(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,c)}l((n=n.apply(t,e||[])).next())}))},ft={checkTrialStatus:function(t,e){return st(this,void 0,void 0,ut().mark((function r(){var n;return ut().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={email:e.email},r.abrupt("return",ct.asyncFetch({url:t.userStatus,data:n}));case 2:case"end":return r.stop()}}),r)})))},checkProspectTrialStatus:function(t,e,r,n,o){var a=t.prospectStatus(e.prospectId);ct.fetch({url:a,success:r,error:n,always:o})},createTrial:function(t,e){return st(this,void 0,void 0,ut().mark((function r(){var n;return ut().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={prospectId:e.prospectId,firstName:"Trial",surname:"User",email:e.email,userType:e.userType,accessPolicy:e.accessPolicy,appLink:null==e?void 0:e.appLink},r.abrupt("return",ct.asyncFetch({url:t.createTrial,method:V.k.POST,data:n}));case 2:case"end":return r.stop()}}),r)})))},resendTrialEmail:function(t,e,r){return st(this,void 0,void 0,ut().mark((function n(){var o;return ut().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o={email:r.email,appLink:null==r?void 0:r.appLink},n.abrupt("return",ct.asyncFetch({url:t.resendTrialEmail(e),method:V.k.POST,data:o}));case 2:case"end":return n.stop()}}),n)})))}};function pt(t){return pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pt(t)}function ht(){ht=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new k(o||[]);return n(i,"_invoke",{value:S(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var y={};l(y,a,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(j([])));v&&v!==e&&r.call(v,a)&&(y=v);var g=d.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==pt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=E(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 E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var 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 dt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return 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 mt;function vt(t){var e=(null==t?void 0:t.previousStepIds)&&"find-school"===t.previousStepIds[t.previousStepIds.length-1],r=(null==t?void 0:t.schoolName)||"Your school";return a().createElement(B.Body,{className:"mb-3"},e?a().createElement(a().Fragment,null,a().createElement(B.Heading,null,r,a().createElement("br",null),"already has ClickView 🎉"),a().createElement(B.Message,{className:"mt-3"},"If your school has SSO  ",a().createElement("a",{href:g.getLoginLink({email:t.email,customerId:t.customerId}),className:"info-link"},"click here to sign in.")),a().createElement(B.Message,null,"Otherwise please contact your school admin for access.")):a().createElement(a().Fragment,null,a().createElement(B.Heading,null,"Good News!"),a().createElement(B.Message,null,"An account already exists for:",a().createElement("br",null)," ",a().createElement("strong",null,t.email)),a().createElement(B.Message,null,a().createElement("a",{href:g.getLoginLink({email:t.email}),className:"btn btn-dark btn-lg w-100"},"Sign into ClickView"))),a().createElement(B.Message,null,"Need Help?  ",a().createElement(x.d,{href:g.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link",newTab:!0},"Contact our Help Centre.")))}function gt(t){return gt="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},gt(t)}function bt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==gt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==gt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===gt(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var wt=(bt(mt={},F.Available,(function(t){var e=dt(a().useState(0),2),r=e[0],n=e[1],o=dt(a().useState(!1),2),i=o[0],c=o[1];if(null==t?void 0:t.email)return a().createElement(B.Body,null,a().createElement(B.Heading,null,"Check your inbox!"),a().createElement(B.Message,null,"An email has been sent to ",a().createElement("strong",null,t.email),"."),r<1?a().createElement(B.Message,null,"Didn't receive an email?  ",a().createElement("button",{onClick:function(e){return o=this,a=void 0,i=void 0,u=ht().mark((function o(){return ht().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return null==e||e.preventDefault(),o.prev=1,o.next=4,ft.resendTrialEmail(t.ajaxUrls,t.userId,{email:t.email,appLink:t.pageAppLinkString});case 4:n(r+1),o.next=10;break;case 7:o.prev=7,o.t0=o.catch(1),c(!0);case 10:t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.ResendEmail});case 11:case"end":return o.stop()}}),o,null,[[1,7]])})),new(i||(i=Promise))((function(t,e){function r(t){try{c(u.next(t))}catch(t){e(t)}}function n(t){try{c(u.throw(t))}catch(t){e(t)}}function c(e){var o;e.done?t(e.value):(o=e.value,o instanceof i?o:new i((function(t){t(o)}))).then(r,n)}c((u=u.apply(o,a||[])).next())}));var o,a,i,u},className:"btn info-link p-0"},"Resend verification email")):"✅ Email has been resent!",i&&a().createElement(B.Message,{className:"mb-0 text-danger"},"❌ There was a problem resending the email. Please try again later or contact our  ",a().createElement("a",{href:g.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link"},"support")))})),bt(mt,F.Active,vt),bt(mt,F.Expired,(function(t){var e=g.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(B.Body,null,a().createElement(B.Heading,null,r?"".concat(n," trial has expired"):"Your trial has expired"),a().createElement(B.Message,null,"Please contact our  ",a().createElement(x.d,{href:e,className:"info-link",newTab:!0},"ClickView Sales Team")))})),bt(mt,F.NotRequired,vt),bt(mt,F.Unavailable,(function(t){var e=g.getMarketingSalesContactForGeoLocation(t.geoLocation);return a().createElement(B.Body,null,a().createElement(B.Heading,null,"Your school no longer",a().createElement("br",null)," has access to ClickView"),a().createElement(B.Message,null,"Please contact our ",a().createElement("a",{href:e,className:"info-link"},"ClickView Sales Team")," for more information."))})),bt(mt,F.Unsupported,(function(){return a().createElement(B.Body,null,a().createElement(B.Heading,{className:"px-2 px-lg-4"},"ClickView isn't currently ",a().createElement("br",null)," available for your school"),a().createElement(B.Message,null,"We're working hard to get ClickView ready for more people."))})),mt);function St(t){var e=wt[t.trialStatus];return a().createElement(e,Object.assign({},t))}var Et,xt={"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(W,{trialStatus:t.trialStatus,imageUrls:t.imageUrls}),a().createElement(St,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(W,{trialStatus:F.Available,imageUrls:t.imageUrls}),a().createElement(B.Body,{className:"mb-3"},a().createElement(B.Heading,null,"Submitted!"),a().createElement(B.Message,null,"Thank you for your interest in trialing ClickView. We will be in touch with you as soon as possible.")))},"young-student":function(t){var e=g.getFreeResourcesForGeoLocation(t.geoLocation);return a().useEffect((function(){i.SG.set(H,!0)}),[]),a().createElement(a().Fragment,null,a().createElement(W,{trialStatus:F.Active,imageUrls:t.imageUrls}),a().createElement(B.Body,{className:"mb-3"},a().createElement(B.Heading,null,"Discover our free content"),a().createElement(B.Message,null,"Click the button below to explore our videos"),a().createElement(x.d,{href:e,className:"btn btn-lg btn-dark w-100"},"Start watching now")))}},Lt=r(2102),kt=r(58380);function jt(t){return jt="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},jt(t)}function Ot(){Ot=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:S(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var y={};l(y,a,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(j([])));v&&v!==e&&r.call(v,a)&&(y=v);var g=d.prototype=p.prototype=Object.create(y);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"==jt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=E(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 E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var 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 Ct(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 Nt(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)?Nt(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 Nt(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 At(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==jt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==jt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===jt(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Pt=new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/),It=(At(Et={},n.AU,"valerie.frizzle@school.edu.au"),At(Et,n.UK,"valerie.frizzle@school.gov.uk"),At(Et,n.US,"valerie.frizzle@school.gov"),At(Et,n.NZ,"valerie.frizzle@school.nz"),Et);function Tt(t){return It[y.getCountryCode(t.countryCode)]||It.us}var Ut,_t=[F.Expired,F.NotRequired,F.Unavailable,F.Unsupported,F.Active];!function(t){t.Staff="staff",t.Learner="learner"}(Ut||(Ut={}));var Ft=r(33003),Gt=r.n(Ft),Dt=r(63093);function Mt(t){return Mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mt(t)}function Kt(){Kt=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:S(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var y={};l(y,a,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(j([])));v&&v!==e&&r.call(v,a)&&(y=v);var g=d.prototype=p.prototype=Object.create(y);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"==Mt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=E(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 E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var 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 Rt={au:"cv-ap-southeast-1",uk:"cv-eu-west-1",us:"cv-ap-southeast-1",nz:"cv-ap-southeast-1"},zt={k12:"Primary & Secondary"},Bt={getClient:function(t){return e=this,r=void 0,n=void 0,o=Kt().mark((function e(){var r,n,o,a,i,c;return Kt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.brazeConfig,n=t.geoLocation,o=t.version,a=t.productName,i=y.getCountryCode(null==n?void 0:n.countryCode),c=r[Rt[i]],e.abrupt("return",(0,Dt.getInstance)({baseUrl:c.url,apiKey:c.apiKey,productVersion:o,productName:a,enableLogging:!1,automaticallyShowInAppMessages:!1}));case 4: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},hashedEmail:function(t){var e=t.trim().toLowerCase();return Gt().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 zt[t.toLowerCase()]||t}},$t=["Teacher","Librarian","Curriculum Coordinator","Digital Technology Coordinator","IT","Head of Department","Deputy Principal","Principal"],Yt=["Teacher","Librarian","Head of department","Curriculum coordinator","School leadership","District leadership","Academic coach","Instructional technology specialist","Consortium leadership","IT"],Wt={au:$t,nz:$t,uk:["Teacher","Librarian","IT/LRC","e-Learning/ICT Coordinator","Head of Key Stage","Head of Department","Subject Lead","Assistant Head Teacher","Deputy Head Teacher","Head Teacher"],us:Yt};function Ht(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 Vt(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)?Vt(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 Vt(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 Zt="OTHER";function qt(t){var e=t.error,r=t.onChange,n=t.countryCode,o=Ht(a().useState(""),2),i=o[0],c=o[1],l=Ht(a().useState(""),2),u=l[0],s=l[1],f=function(t){return Wt[t]||Yt}(n),p=i===Zt;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===Zt?"":t.target.value)}},a().createElement("option",{value:"",disabled:!0,className:"text-muted"},"What do you do?"),f.map((function(t,e){return a().createElement("option",{value:t,className:"text-dark",key:e},t)})),a().createElement("option",{value:Zt,className:"text-dark"},"Other")),!!e&&!p&&a().createElement("div",{className:"invalid-feedback"},e)),p&&a().createElement("div",{className:"mb-3"},a().createElement("input",{className:"form-control form-control-lg ".concat(!!e&&"is-invalid"),type:"text",value:u,placeholder:"What do you do?",autoFocus:!0,onChange:function(t){s(t.target.value),r(t.target.value)}}),!!e&&a().createElement("div",{className:"invalid-feedback"},e)))}function Xt(t){return Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xt(t)}function Jt(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 Qt(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 Jt(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)?Jt(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"!==Xt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Xt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Xt(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},t,e))}))}return a().createElement("div",{className:"text-center"},a().createElement("h1",{className:"text-center h4"},"A little more about you"),a().createElement("p",null,"Please enter your details."),a().createElement("form",{onSubmit:function(e){e.preventDefault(),t.handleSubmitForm(p)}},a().createElement("div",{className:"form-group text-left"},a().createElement("label",{className:"d-block font-weight-bold mb-1",htmlFor:"fullname-input"},"Full name"),a().createElement(kt.w,{value:p.fullname,onChange:function(e){e.preventDefault(),d("fullname",e.target.value),t.removeErrorForKey("fullname"),t.removeErrorForKey("submission")},name:"fullname-input",id:"fullname-input",type:"text",className:"form-control form-control-lg ".concat((null===(e=t.errors.fullname)||void 0===e?void 0:e.length)?"is-invalid":""),placeholder:"Enter your name",onClickClear:function(){d("fullname",""),t.removeErrorForKey("fullname"),t.removeErrorForKey("submission")},autoFocus:!0}),t.errors.fullname&&a().createElement("div",{className:"invalid-feedback d-block"},t.errors.fullname)),a().createElement("div",{className:"form-group text-left"},a().createElement("label",{className:"d-block font-weight-bold mb-1",htmlFor:"phone-input"},"Contact number"),a().createElement(kt.w,{value:p.phone,onChange:function(e){e.preventDefault(),d("phone",e.target.value.trim()),t.removeErrorForKey("phone"),t.removeErrorForKey("submission")},name:"phone-input",id:"phone-input",type:"tel",className:"form-control form-control-lg ".concat((null===(r=t.errors.phone)||void 0===r?void 0:r.length)?"is-invalid":""),placeholder:"Enter your phone number",onClickClear:function(){d("phone",""),t.removeErrorForKey("phone"),t.removeErrorForKey("submission")}}),t.errors.phone&&a().createElement("div",{className:"invalid-feedback d-block"},t.errors.phone)),a().createElement("div",{className:"form-group text-left"},a().createElement("label",{className:"d-block font-weight-bold mb-1",htmlFor:"jobTitle-select"},"Job title"),a().createElement(qt,{id:"jobTitle-select",countryCode:y.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(Lt.m,{className:"btn btn-dark btn-lg w-100",onClick:function(){return t.handleSubmitForm(p)},showSpinner:t.loading,disabled:t.loading||(i=p.fullname,c=p.jobTitle,l=p.phone,!(i.length&&c.length&&l.length&&!Object.keys(t.errors).length))},"Submit"))))}var te=r(74254);function ee(t){return ee="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},ee(t)}function re(){re=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},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:S(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var y={};l(y,a,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(j([])));v&&v!==e&&r.call(v,a)&&(y=v);var g=d.prototype=p.prototype=Object.create(y);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"==ee(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=E(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 E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var 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 ne(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return oe(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?oe(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oe(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var ae,ie=255,ce=/\$+[\w\s]?/,le=/^\+?\d{4,255}$/;function ue(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"}(ae||(ae={}));var se=function(t){return y.isCountryCodeUS(t)||y.isCountryCodeUK(t)?ae.Freemium:ae.FourteenDays},fe=r(99910),pe=r(28329);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 de(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 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}}(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 ye(t){return ye="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},ye(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:S(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var y={};l(y,a,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(j([])));v&&v!==e&&r.call(v,a)&&(y=v);var g=d.prototype=p.prototype=Object.create(y);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"==ye(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=E(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 E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var 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 ve={search:function(t,e,r,n,o){var a={longitude:e.longitude,latitude:e.latitude};e.query&&(a.query=e.query),ct.fetch({url:t.searchProspect,data:a,success:r,error:n,always:o})},create:function(t,e){return r=this,n=void 0,o=void 0,a=me().mark((function r(){return me().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",ct.asyncFetch({url:t.createProspect,method:V.k.POST,data:e}));case 1:case"end":return r.stop()}}),r)})),new(o||(o=Promise))((function(t,e){function i(t){try{l(a.next(t))}catch(t){e(t)}}function c(t){try{l(a.throw(t))}catch(t){e(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof o?r:new o((function(t){t(r)}))).then(i,c)}l((a=a.apply(r,n||[])).next())}));var r,n,o,a},getLookups:function(t,e){return ct.asyncFetch({url:t.prospectLookups(e)})}};const ge={baseText:"KL3Q_",inputFocused:"I6wQy",input:"ChY5L",suggestionContainer:"Y78ea",noBottomBorder:"IeYUw",localitySuggestion:"P3aHR",suggestionItem:"magL7",suggestionLoading:"W7rH_",noSuggestion:"XXSnS",selected:"snnHR"};function be(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,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 we(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)?we(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 we(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 Se(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(ge.suggestionItem," ").concat(o-1===e?ge.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 Ee(t){return a().createElement("div",{className:"info-link ".concat(ge.suggestionItem," ").concat(ge.noSuggestion," ").concat(t.selected?ge.selected:""),onClick:t.handleNoSuggestion},"Can't find your school?")}function xe(t){var e,r,n=a().useRef(),o=be(a().useState(!0),2),i=o[0],c=o[1],u=be(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=be(a().useState(),2),h=p[0],d=p[1],y=(0,pe.N)(s,250),m=de({onSelected:function(t){if(h||t)if(t!==h.length){var e=h[t];e&&j(e)}else C()},itemCount:null!==(e=(null==h?void 0:h.length)+1)&&void 0!==e?e:0}),v=m.selectedIndex,g=m.onKeyDown,b=m.containerRef,w=!!(null===(r=t.data)||void 0===r?void 0:r.prospectId),S=i&&!w,E=!i&&!w&&!(null==h?void 0:h.length),x=(null==h?void 0:h.length)&&!w;function L(e){(t.data.schoolName||t.data.prospectId)&&t.clearStepItemData(),e!==s&&f(e)}function k(e){c(!0);var r={latitude:t.data.latitude,longitude:t.data.longitude};e&&e.length&&(r.query=e),ve.search(t.ajaxUrls,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 C(){t.nextStep({step:"cant-find-school",prospectId:t.data.prospectId,schoolName:s,schoolLocality:t.data.schoolLocality,longitude:t.data.longitude,latitude:t.data.latitude,country:t.data.country,city:t.data.city,province:t.data.province}),t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.CantFindSchool,workflowPhase:l.WorkflowPhase.Next})}a().useEffect((function(){w||(y.length?!w&&y.length>1&&y===s&&k(y):k())}),[y,w]);var N=x||S||E;return a().createElement("div",{className:"form-group position-relative"},a().createElement(kt.w,{value:s,onChange:function(t){return L(t.currentTarget.value)},ref:n,className:"form-control form-control-lg ".concat(N?ge.inputFocused:ge.input),type:"text",autoComplete:"off",placeholder:"Select your school below",disabled:t.disabled,autoFocus:!0,onClickClear:function(){L(""),n.current.focus()},onKeyDown:g}),a().createElement("div",{className:"position-absolute w-100"},a().createElement("div",{className:"".concat(ge.suggestionContainer," ").concat(N?"":"d-none"),ref:b},x?a().createElement(Se,{filteredSchoolsList:h,onSchoolSuggestionClick:j,getSchoolName:O,selectedIndex:v}):S&&a().createElement("div",{className:"".concat(ge.suggestionLoading," py-4 d-flex justify-content-center")},a().createElement(fe.Spinner,{animation:"border"})),!S&&(null==h?void 0:h.length)<5&&a().createElement(Ee,{selected:v===h.length+1,handleNoSuggestion:C}))))}var Le=r(10874),ke=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 je="__googleMapsScriptId";var Oe;!function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"}(Oe||(Oe={}));class Ce{constructor({apiKey:t,authReferrerPolicy:e,channel:r,client:n,id:o=je,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||je,this.language=a,this.libraries=i,this.mapIds=c,this.nonce=l,this.region=u,this.retries=s,this.url=f,this.version=p,Ce.instance){if(!ke(this.options,Ce.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(Ce.instance.options)}`);return Ce.instance}Ce.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?Oe.FAILURE:this.done?Oe.SUCCESS:this.loading?Oe.LOADING:Oe.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 Ne(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return 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}function Pe(t){return new Ce({apiKey:t.apiKey,version:"weekly",libraries:t.libraries,retries:3})}function Ie(t){var e={apiKey:t.apiKey,libraries:t.libraries||["places"]},r=Ne(a().useState(!1),2),n=r[0],o=r[1],i=Ne(a().useState(Pe(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(Pe(e))}return a().useEffect((function(){u()}),[]),{loader:c,scriptLoaded:n,onGoogleApiReady:u}}function Te(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 Ue(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ue(t,e):void 0}}(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 Ue(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var _e={getPlaceDetails:function(t){var e,r,n,o,a,i=t.formatted_address,c=Te(t.address_components);try{for(c.s();!(a=c.n()).done;){var l,u=a.value,s=Te(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 Fe(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Ge={1:"geocoderPermissionDenied",2:"geocoderUnavailable",3:"geocoderTimeout"};function De(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Me(t){var e,r,n=Ie({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 De(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?De(t,e):void 0}}(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 Ke(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Re=r(45157);function ze(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Be="us",$e="country:placeholder:text";function Ye(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=Me({googleApiKey:n}),d=a().useState((function(){return function(t){var e=y.getLocalizedLocalityPlaceholderText(null==t?void 0:t.countryCode);return e||(i.SG.cacheGet("".concat($e,":").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 ze(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ze(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),v=m[0],g=m[1];function b(t,e){i.SG.cacheSet("".concat($e,":").concat(e),t,86400),g(t)}return a().useEffect((function(){if(!v&&h&&l){var t=(null==o?void 0:o.countryCode)||Be,e={input:String.fromCharCode(96+Re.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[Re.Y.getRandomInt(t.length)].description;b(s.replace(p,n),r)}else b(y.getLocalizedLocalityPlaceholderText(Be),r)}(e,r,t)}))}}),[v,h,o,l]),v}function We(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 Ve(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(ge.suggestionItem," ").concat(n-1===e?ge.selected:""),key:t.place_id,onClick:function(){return r(t)}},t.description)})))}function Ze(t){var e,r,n,o,i,c,f=a().useRef(),h=We(a().useState((null===(e=t.data)||void 0===e?void 0:e.schoolLocality)||""),2),d=h[0],y=h[1],m=We(a().useState(!1),2),v=m[0],g=m[1],b=Ye({apiKey:t.googleMapsApiKey,geoLocation:t.geoLocation}),w=function(t){var e,r,n=t.search,o=t.makePredicition,i=t.geoLocation,c=Me({googleApiKey:t.apiKey}),l=(0,pe.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 Ke(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ke(t,e):void 0}}(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=_e.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}),S=w.localityPredicitions,E=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 Fe(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Fe(t,e):void 0}}(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=Ie(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=_e.getPlaceDetails(o);i(Object.assign(Object.assign({},a),{longitude:n,latitude:r}))}}))}function u(e){var r=Ge[e.code];r||(r="geocoderUnknown"),t.onPositionError("We are unable to access your location. Please try again later.")}return{placeDetails:o,onClickGetCurrentLocation:function(){c((function(){window.navigator.geolocation.getCurrentPosition(l,u)}))}}}({apiKey:t.googleMapsApiKey,onPositionError:function(t){g(!0),T(t)}}),L=x.placeDetails,k=x.onClickGetCurrentLocation,j=window.navigator.geolocation?1:0,O=de({onSelected:function(t){if(S)if(t!==S.length){var e=S[t];e&&F(e)}else G()},itemCount:null!==(r=(null==S?void 0:S.length)+j)&&void 0!==r?r:0}),C=O.selectedIndex,N=O.onKeyDown,A=O.containerRef,P=We(a().useState(),2),I=P[0],T=P[1];function U(e){var r,n,o;I&&T(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(),y(e)}function _(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),y(e)}(o)}function F(t){v&&g(!1),E(t,f,_)}function G(e){null==e||e.preventDefault(),g(!1),k(),t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.UseMyLocation})}a().useEffect((function(){_(L)}),[L]);var D,M=(null==S?void 0:S.length)&&!(null===(o=null===(n=t.data)||void 0===n?void 0:n.schoolLocality)||void 0===o?void 0:o.length),K=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(ge.baseText);return a().createElement("div",{className:"form-group position-relative"},a().createElement("label",{className:R,htmlFor:"locality-input"},"Postcode or suburb:"),a().createElement(kt.w,{type:"text",value:d,onChange:function(t){return U(t.currentTarget.value)},id:"locality-input",className:(D="form-control form-control-lg",M?"".concat(D," ").concat(ge.inputFocused):"".concat(D," ").concat(ge.input)),ref:f,autoComplete:"off",placeholder:b||"Loading...",disabled:t.disabled||!b,autoFocus:null==t?void 0:t.autoFocus,onClickClear:function(){U(""),f.current.focus()},onKeyDown:N}),a().createElement("div",{className:"position-absolute w-100"},!!M&&a().createElement("div",{className:"".concat(ge.suggestionContainer," ").concat(ge.localitySuggestion),ref:A},a().createElement(Ve,{predictions:S,getPlaceInfo:F,selectedIndex:C}),window.navigator.geolocation&&a().createElement(s.L,{className:"".concat(ge.suggestionItem," px-1 ").concat(C-1===S.length?ge.selected:""),onClick:G},a().createElement(Le.h,{svgName:u.vn.LocationCrosshair,className:"btn btn-link info-link bg-transparent py-0 pr-1",svgSize:p.S.Small},"Use my current location"))),K&&!M&&a().createElement("div",{className:"d-flex"},a().createElement(Le.h,{onClick:G,svgName:u.vn.LocationCrosshair,className:"btn btn-link info-link bg-white",svgSize:p.S.Small},"Use my current location")),!!I&&a().createElement("div",{className:"text-danger p-2"},I)))}var qe=r(12238);function Xe(t){return Xe="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},Xe(t)}function Je(){Je=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:S(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var y={};l(y,a,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(j([])));v&&v!==e&&r.call(v,a)&&(y=v);var g=d.prototype=p.prototype=Object.create(y);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"==Xe(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=E(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 E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var 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 Qe(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return tr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tr(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}const er={userTypeOption:"R8ZPi",selected:"SNEmW"};function rr(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(er.userTypeOption," ").concat(t.selected?er.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 nr;!function(t){t.Published="Published",t.Draft="Draft"}(nr||(nr={}));var or=["Primary","Secondary","K12","Special","TAFE","University"],ar=["Elementary","Middle School","High School","College","Other"],ir={au:or,nz:or,uk:["Primary","Secondary","Primary & Secondary","Special","Sixth Form College","FE College","University","Other"],us:ar};function cr(t){return cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cr(t)}function lr(){lr=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new k(o||[]);return n(i,"_invoke",{value:S(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var y={};l(y,a,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(j([])));v&&v!==e&&r.call(v,a)&&(y=v);var g=d.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==cr(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=E(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 E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var 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 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=r(110);const pr="e0Dbj",hr="zLcQr",dr="XiXPP";function yr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return mr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mr(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function vr(t,e,r){return"".concat(t.padStart(4,"0"),"-").concat(e.padStart(2,"0"),"-").concat(r.padStart(2,"0"))}var gr={"select-type":function(t){function e(e){t.logUserAction({userType:e},{actionType:l.UserAction.Click,workflowPhase:l.WorkflowPhase.Next,descriptor:e===Ut.Staff?l.SignUpDescriptors.Educator:l.SignUpDescriptors.Student}),e!==Ut.Staff?t.nextStep({step:"enter-age",userType:e}):t.nextStep({step:"enter-email",userType:e})}return a().createElement("div",{className:"text-center"},a().createElement("h1",{className:"h4"},"Access educational videos at your fingertips"),a().createElement("p",null,"Let's get you set up so you can access ClickView."),a().createElement("div",{className:"row"},a().createElement("div",{className:"col-lg-6 mb-3"},a().createElement(rr,{type:Ut.Staff,buttonText:"I'm an educator",imageSrc:t.imageUrls.educator,onClick:e,selected:t.userType===Ut.Staff})),a().createElement("div",{className:"col-lg-6 mb-3"},a().createElement(rr,{type:Ut.Learner,buttonText:"I'm a student",imageSrc:t.imageUrls.student,onClick:e,selected:t.userType===Ut.Learner}))))},"enter-email":function(t){var e,r,n=Ct(a().useState(!1),2),o=n[0],i=n[1],c=Ct(a().useState((null==t?void 0:t.email)||""),2),u=c[0],s=c[1],f=Ct(a().useState(),2),p=f[0],h=f[1],d=(e=t.geoLocation,r=g.getMarketingUrlForGeoLocation(e),"nz"===(null==e?void 0:e.countryCode)?r+"/contact-us/":r+"/contact-us/technical/");function y(e){null==e||e.preventDefault(),function(){var e,r,n,o;e=this,r=void 0,n=void 0,o=Ot().mark((function e(){var r;return Ot().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u.length?Pt.test(u)||(h("Please use your school email address."),0):(h("Please enter your school email address."),0)){e.next=2;break}return e.abrupt("return");case 2:return i(!0),h(""),e.prev=4,e.next=7,ft.checkTrialStatus(t.ajaxUrls,{email:u});case 7:r=e.sent,e.next=14;break;case 10:return e.prev=10,e.t0=e.catch(4),h("Something went wrong! Please try again later."),e.abrupt("return");case 14:if(i(!1),r.status!==G.InvalidEmail){e.next=18;break}return h("Please use your school email address."),e.abrupt("return");case 18:if(t.logUserAction({},{actionType:l.UserAction.Click,workflowPhase:l.WorkflowPhase.Next,descriptor:l.SignUpDescriptors.EnterEmail}),!_t.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"},"Let's set up your account"),a().createElement("p",null,"Enter your school email address")),a().createElement("form",{onSubmit:y,noValidate:!0},a().createElement("div",{className:"form-group mb-3"},a().createElement(kt.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:Tt(t.geoLocation),autoComplete:"false",autoCorrect:"false",autoFocus:!0,onClickClear:function(){return s("")}}),p&&a().createElement(a().Fragment,null,a().createElement("div",{className:"invalid-feedback d-block"},p),a().createElement("small",null,"Having an issue with your email?",a().createElement(x.d,{href:d,onClick:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.ContactUs})},className:"info-link pl-1",newTab:!0},"Contact our team")))),a().createElement(Lt.m,{showSpinner:o,className:"btn btn-dark btn-lg mb-3 w-100",disabled:o,onClick:y},"Next")),a().createElement("div",{className:"text-center"},a().createElement(k,{link:g.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=Qe(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=Qe(a().useState(),2),u=c[0],s=c[1],f=Qe(a().useState(),2),p=f[0],h=f[1],d=Qe(a().useState(!1),2),y=d[0],m=d[1],v=Qe(a().useState(!1),2),g=v[0],b=v[1],w=Qe(a().useState(!1),2),S=w[0],E=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),E(t),m(t)}function j(e,r){"prospectId"===e&&r&&(m(!0),ft.checkProspectTrialStatus(t.ajaxUrls,{prospectId:r.toString()},(function(t){s(t.status)}),(function(){console.log("error")}),(function(){m(!1)}))),i((function(t){return Object.assign(Object.assign({},t),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Xe(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Xe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Xe(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},e,r))}))}function O(){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"},"Next, let's find your school"),a().createElement("p",null,"Enter your school postcode or suburb")),a().createElement(Ze,{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),O(),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(xe,{data:o,setDataProperty:j,clearStepItemData:O,nextStep:t.nextStep,currentStepId:t.currentStepId,disabled:S,logUserAction:t.logUserAction,ajaxUrls:t.ajaxUrls}),p&&a().createElement("p",{className:"text-danger mb-2"},p),x()&&a().createElement(Lt.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=Je().mark((function a(){var i,c,l;return Je().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(!y){a.next=2;break}return a.abrupt("return");case 2:if(x()){a.next=5;break}return h("Something went wrong! Please try again later."),a.abrupt("return");case 5:if(u!==F.Unsupported||r!==Ut.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===F.Active||u===F.Available){a.next=19;break}if(i=void 0,!(null==o?void 0:o.prospectId)||u!==F.NotRequired){a.next=16;break}return a.next=14,ve.getLookups(t.ajaxUrls,o.prospectId);case 14:c=a.sent,i=null===(n=c.find((function(t){return t.type===qe.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,ft.createTrial(t.ajaxUrls,{userType:r,email:e,prospectId:null==o?void 0:o.prospectId,appLink:t.pageAppLinkString,accessPolicy:se(o.country)});case 23:l=a.sent,a.next=31;break;case 26:return a.prev=26,a.t0=a.catch(20),h("Something went wrong! Please try again later."),k(!1),a.abrupt("return");case 31:if(l.id&&l.dateCreated){a.next=35;break}return h("Something went wrong! Please try again later."),k(!1),a.abrupt("return");case 35:j("userId",l.id),t.complete(Object.assign({completionStep:"trial-status",userId:l.id,trialCreated:!0,trialStatus:F.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||S||y,disabled:g||S||y},"Get started"))},"cant-find-school":function(t){var e,r,n,o=ur(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=ur(a().useState(),2),s=u[0],f=u[1],p=ur(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=y.getCountryCode(r),ir[n]||ar);function v(){var t=i.schoolName,e=i.schoolType,r=i.country;return!!(t&&e&&r)}function g(t,e){c((function(r){return Object.assign(Object.assign({},r),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==cr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==cr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===cr(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},t,e))}))}return a().createElement(a().Fragment,null,a().createElement("div",{className:"text-center"},a().createElement("h1",{className:"h4"},"Tell us more about yourself"),a().createElement("p",null,"Please enter your school details.")),a().createElement("div",{className:"form-group"},a().createElement("label",{className:"d-block",htmlFor:"school-name-input"},"Name of school"),a().createElement("input",{type:"text",value:(null==i?void 0:i.schoolName)||"",onChange:function(t){g("schoolName",t.target.value)},id:"school-name-input",className:"form-control form-control-lg",autoComplete:"off",placeholder:"Enter name of school",autoFocus:!0})),a().createElement("div",{className:"form-group"},a().createElement("label",{className:"d-block",htmlFor:"school-type-select"},"Type of school"),a().createElement("select",{id:"school-type-select",className:"form-control form-control-lg ".concat(i.schoolType?"":"text-muted"),autoComplete:"off",value:i.schoolType||"none",onChange:function(t){g("schoolType",t.target.value)}},a().createElement("option",{value:"none",className:"text-muted",disabled:!0},"Select type of school"),m.map((function(t){return a().createElement("option",{value:t,key:t,className:"text-dark"},t)})))),a().createElement(Ze,{data:i,setDataProperty:g,clearStepGroupData:function(){g("schoolLocality",void 0),c((function(t){return Object.assign(Object.assign({},t),{longitude:undefined,latitude:undefined})})),g("city",void 0),g("province",void 0),g("country",void 0),f("")},disabled:!1,labelClassName:"d-block",geoLocation:t.geoLocation,logUserAction:t.logUserAction,googleMapsApiKey:t.googleMapsApiKey,autoFocus:!1}),s&&a().createElement("div",{className:"text-danger mb-3"},s),v()&&a().createElement(Lt.m,{className:"btn btn-dark btn-lg w-100",onClick:function(e){return r=this,n=void 0,o=void 0,a=lr().mark((function r(){var n,o,a;return lr().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.preventDefault(),v()){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,ve.create(t.ajaxUrls,{name:i.schoolName,status:nr.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("Error. Something went wrong."),r.abrupt("return");case 13:r.next=20;break;case 15:return r.prev=15,r.t0=r.catch(5),d(!1),f("Error. Something went wrong."),r.abrupt("return");case 20:return r.prev=20,r.next=23,ft.createTrial(t.ajaxUrls,{userType:t.userType,email:t.email,prospectId:n.id,appLink:t.pageAppLinkString,accessPolicy:se(i.country)});case 23:if((o=r.sent).id){r.next=28;break}return d(!1),f("Error. Something went wrong."),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:F.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("Error. Something went wrong."),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:F.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},"Get started"))},completed:function(t){var e=xt[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=ne(a().useState(!1),2),n=r[0],o=r[1],i=ne(a().useState({}),2),c=i[0],l=i[1];function u(e){var r=ue(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:Bt.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:Bt.getEventTopic()};return Bt.removeEmptyKeys(a)}return a().useEffect((function(){t.userType===Ut.Learner&&t.complete({completionStep:"trial-status",trialCreated:!1,trialStatus:F.Unsupported})}),[]),a().createElement(Qt,{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=ue(e),a=o.firstName,i=o.surname,c={};return a&&i||(c.fullname="Please enter your full name."),(ce.test(a)||ce.test(i))&&(c.fullname="Please enter your full name."),e.length>ie&&(c.fullname="Full name cannot exceed max length of ".concat(ie," characters.")),(null==r?void 0:r.length)||(c.jobTitle="Please enter your job title."),ce.test(r)&&(c.jobTitle="Please enter a valid job title."),r.length>ie&&(c.jobTitle="Job Title cannot exceed max length of ".concat(ie," characters.")),(null==n?void 0:n.length)||(c.phone="Please enter your phone number."),!ce.test(n)&&le.test(n)||(c.phone="Please enter a valid phone number."),l(c),!Object.keys(c).length})(e)&&function(e){var r,a,i,s;r=this,a=void 0,i=void 0,s=re().mark((function r(){var a,i,s,f,p,h;return re().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!==Ut.Learner){r.next=5;break}return l(Object.assign(Object.assign({},c),{submission:"Something went wrong! Please try again later."})),r.abrupt("return");case 5:return t.logUserAction({},{actionType:te.Vw.Click,workflowPhase:te.eu.Next,descriptor:te.Yu.AddToBraze}),o(!0),a=u(e),r.next=10,Bt.getClient({brazeConfig:t.brazeConfig,geoLocation:t.geoLocation,productName:t.productName,version:t.version});case 10:i=r.sent,s=ue(e.fullname),f=s.firstName,p=s.surname,h={prospect_id:null==t?void 0:t.prospectId,organisation_sub_type:Bt.getSchoolType(null==t?void 0:t.schoolType),account_name:null==t?void 0:t.schoolName,account_post_code:null==t?void 0:t.schoolPostCode,account_country:null==t?void 0:t.country,job_title:e.jobTitle,sync_to_crm:!0},h=Bt.removeEmptyKeys(h);try{i.setUser(Bt.hashedEmail(null==t?void 0:t.email)),i.setUserFirstName(f),i.setUserLastName(p),i.setUserPhone(e.phone),i.setUserEmail(null==t?void 0:t.email),i.openSession(),i.bulkSetCustomUserAttributes(h),i.logEvent({type:Bt.getCustomEventType(),data:a}),i.sendData((function(t){l(t?{}:Object.assign(Object.assign({},c),{submission:"Something went wrong! Please try again later."})),o(!1)}))}catch(t){l(Object.assign(Object.assign({},c),{submission:"Something went wrong! Please try again later."}))}Object.keys(c).length||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(s.next(t))}catch(t){e(t)}}function o(t){try{c(s.throw(t))}catch(t){e(t)}}function c(e){var r;e.done?t(e.value):(r=e.value,r instanceof i?r:new i((function(t){t(r)}))).then(n,o)}c((s=s.apply(r,a||[])).next())}))}(e)},removeErrorForKey:function(t){if(Object.keys(c).length&&c[t]){var e=Object.assign({},c);delete e[t],l(e)}}})},"enter-age":function(t){var e=yr(a().useState(""),2),r=e[0],n=e[1],o=yr(a().useState(""),2),i=o[0],c=o[1],l=yr(a().useState(""),2),u=l[0],s=l[1],f=yr(a().useState(null),2),p=f[0],h=f[1],d=(new Date).getFullYear(),m="mx-2 d-inline-block text-left",v="form-control form-control-lg ".concat(p?"is-invalid":""),g="order-0",b="order-3",w=y.isCountryCodeUS(t.geoLocation.countryCode);return w&&(g="order-3",b="order-0"),a().createElement("form",{className:"text-center",onSubmit:function(e){if(e.preventDefault(),r&&i&&u?fr.O.isValid(vr(u,i,r))?+u>d?(h("Please enter a date in the past"),0):!(+u<d-120&&(h("Please enter a realistic date of birth"),1)):(h("Please enter a valid date"),0):(h("Please enter your date of birth"),0)){var n=new Date(vr(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"},"Tell us a little about yourself"),a().createElement("p",null,"Please enter your date of birth"),a().createElement("div",{className:"my-4"},a().createElement("div",{className:"d-flex justify-content-center"},a().createElement("div",{className:"".concat(m," ").concat(g)},a().createElement("label",{className:"mb-0",htmlFor:"day"},"Day"),a().createElement("input",{id:"day",type:"number",className:"".concat(v," ").concat(pr),min:"1",max:"31",placeholder:"DD",value:r,onChange:function(t){n(t.target.value),h(null)},autoFocus:!w,tabIndex:w?2:1})),a().createElement("span",{className:"h1 font-weight-normal mt-3 mb-0 order-1 ".concat(p?"text-danger":"")},"/"),a().createElement("div",{className:"".concat(m," ").concat(b)},a().createElement("label",{className:"mb-0",htmlFor:"month"},"Month"),a().createElement("input",{id:"month",type:"number",className:"".concat(v," ").concat(hr),min:"1",max:"12",placeholder:"MM",value:i,onChange:function(t){c(t.target.value),h(null)},autoFocus:w,tabIndex:w?1:2})),a().createElement("span",{className:"h1 font-weight-normal mt-3 mb-0 order-4 ".concat(p?"text-danger":"")},"/"),a().createElement("div",{className:"".concat(m," order-5")},a().createElement("label",{className:"mb-0",htmlFor:"year"},"Year"),a().createElement("input",{id:"year",type:"number",className:"".concat(v," ").concat(dr),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"},"Next"))}};function br(t){var e=t.state,r=t.geoLocation,n=t.layoutMapping,o=t.hasPreviousStep,i=t.googleMapsApiKey,c=t.pageAppLinkString,l=t.back,u=t.nextStep,s=t.complete,f=t.logUserAction,p=t.imageUrls,h=t.ajaxUrls,d=t.brazeConfig,y=t.version,m=t.productName,v=gr[e.currentStepId],g=Object.assign(Object.assign({},e),{geoLocation:r,googleMapsApiKey:i,pageAppLinkString:c,back:l,nextStep:u,complete:s,logUserAction:f,imageUrls:p,ajaxUrls:h,brazeConfig:d,version:y,productName:m}),b=n[e.currentStepId];return b?a().createElement(b,{geoLocation:t.geoLocation,currentStep:e.currentStepId,previousStep:l,closeApp:t.close,logUserAction:f,hasPreviousStep:o,imageUrls:t.imageUrls},a().createElement(v,Object.assign({},g))):a().createElement(v,Object.assign({},g))}var wr=r(17331);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 Er=r(1048);function xr(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 Lr(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 xr(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 xr(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)?xr(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=Er.t.omit(e,["type","step"]);return o=Er.t.removeEmptyKeys(o),Object.assign(Object.assign({},n),o)}if("completed"===e.step){var a=Er.t.omit(e,["type","step"]);return a=Er.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 Sr(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 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}}(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 kr(t){return kr="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},kr(t)}function jr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Or(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Or(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Or(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Cr=function(t){var e=t.location,r=t.initialValues,n=t.onStepUpdate,o=t.externalLogUserAction,i=Bt.removeEmptyKeys(r),c=Object.assign({currentStepId:"select-type",previousStepIds:[]},i),l=jr(a().useReducer(Lr,c),2),u=l[0],s=l[1];return a().useEffect((function(){null==n||n(u)}),[u.currentStepId]),{state:u,back:function(){s({type:"back"})},nextStep:function(t){s(Object.assign({type:"nextStep"},t))},complete:function(t){s(Object.assign({type:"nextStep",step:"completed"},t))},hasPreviousStep:!!u.previousStepIds.length,logUserAction:function(t,r){var n=Object.assign(Object.assign({},u),t),a=wr.i.filterBlacklistedKeys(n),i=Object.assign({currentStepId:u.currentStepId},a),c=Object.entries(i).filter((function(t){return void 0!==jr(t,2)[1]})).reduce((function(t,e){var r=jr(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"!==kr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==kr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===kr(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},n,o))}),{});o(c,Object.assign({entity:te.py.SignUp,location:e},r))}}};const Nr={buttonContainer:"izZtA",dataContainer:"OgBv5"};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}function Pr(t){var e={};return Object.keys(t).forEach((function(r){var n=t[r];Er.t.isObject(n)&&null!==n&&!Array.isArray(n)?Object.assign(e,Pr(n)):e[r]=n})),e}function Ir(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 Tr(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 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.")}()),c=i[0],l=i[1],u=a().useMemo((function(){return Pr(o)}),[o]);return n&&a().createElement(a().Fragment,null,a().createElement("div",{className:"position-fixed p-4 ".concat(Nr.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(Nr.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(Ir,{key:t,label:t,item:u[t]})})))))}var Ur=r(49985);function _r(t){var e=R.getLayouts(t.type),r=t.location,n=t.initialValues,o=t.geoLocation,c=t.googleMapsApiKey,l=t.pageAppLinkString,u=t.onStepUpdate,s=t.imageUrls,f=t.ajaxUrls,p=t.brazeConfig,h=t.version,d=t.productName,y=t.close,m=Cr({location:r,initialValues:n,onStepUpdate:u,externalLogUserAction:Ur.k.logUserAction}),v=m.back,g=m.nextStep,b=m.complete,w=m.hasPreviousStep,S=m.state,E=m.logUserAction,x={state:S,geoLocation:o,layoutMapping:e,hasPreviousStep:w,googleMapsApiKey:c,pageAppLinkString:l,back:v,close:y,nextStep:g,complete:b,logUserAction:E,imageUrls:s,ajaxUrls:f,brazeConfig:p,version:h,productName:d};return a().useEffect((function(){i.SG.get(H)&&b({completionStep:"young-student",trialCreated:!1,trialStatus:null})}),[]),a().createElement(a().Fragment,null,a().createElement(br,Object.assign({},x)),a().createElement(Tr,{developmentEnv:!1,objects:Object.assign(Object.assign(Object.assign({},S),{pageAppLinkString:l}),o)}))}},83529:(t,e,r)=>{var n;r.d(e,{c:()=>n}),function(t){t.Popup="popup-form",t.FullPage="full-page-form"}(n||(n={}))},12238:(t,e,r)=>{var n;r.d(e,{C:()=>n}),function(t){t.MasterId="master_id",t.CrmId="crm_id",t.SalesforceId="salesforce_id"}(n||(n={}))},17331:(t,e,r)=>{r.d(e,{i:()=>o});var n=["email","longitude","latitude","trialCreated"],o={filterBlacklistedKeys:function(t){var e=Object.assign({},t);return n.forEach((function(t){return delete e[t]})),e}}},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)}},48456:(t,e,r)=>{r.d(e,{v:()=>o});var n=r(99742),o={popupDashboard:n.W.SignUp.POPUP_DASHBOARD,educator:n.W.SignUp.EDUCATOR,student:n.W.SignUp.STUDENT,statusImages:{available:n.W.SignUp.VERIFY_ACCOUNT,active:n.W.SignUp.EXISTING_CUSTOMER,expired:n.W.SignUp.EXPIRED_TRIAL,notRequired:n.W.SignUp.EXISTING_CUSTOMER,unavailable:n.W.SignUp.NOT_AVAILABLE,unsupported:n.W.SignUp.NOT_AVAILABLE}}},17762:(t,e,r)=>{r.d(e,{M:()=>i});var n=r(20354),o=r(39151),a={countryCode:"us"};function i(){var t=n.a.useBasicFetch(o.L.geoLocation());return t.hasError?a:t.data}},63643:(t,e,r)=>{r.d(e,{c:()=>i});var n=r(20354),o=r(39151),a=r(97395);function i(){var t=n.a.useBasicFetch(o.L.config());if(!t.hasCompleted)return null;var e=t.data.gatewayApiUrl;return{userStatus:a._.safeUrlConcat(e,"/v1/users/trial-status"),prospectStatus:function(t){return a._.safeUrlConcat(e,"/v1/prospects/".concat(t,"/trial-status"))},createTrial:"/api/user/trials",resendTrialEmail:function(t){return"/api/user/trials/users/".concat(t,"/send-activation-email")},searchProspect:a._.safeUrlConcat(e,"/v1/search/prospects"),createProspect:"/api/prospects",prospectLookups:function(t){return"/api/prospects/".concat(t,"/lookups")}}}},28366:(t,e,r)=>{r.d(e,{Z:()=>n});const n={logo:"Kh4Dd",modalBody:"V9nIN",popupButton:"hS60U",leftHalfLayout:"aQ1K8",withBg:"zALxE"}}}]);
@@ -1,2 +1,2 @@
1
- /*! For license information please see 5622-548a92a2e4-lite.chunk.js.LICENSE.txt */
1
+ /*! For license information please see 5622-df70c2e4d8-lite.chunk.js.LICENSE.txt */
2
2
  "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[5622],{17749:(t,e,r)=>{r.d(e,{g:()=>o});var n=r(99940),o={getLibraryReviewPeriod:function(){return{url:"{gateway}/v1/library-reviews",key:"coming:soon:settings",normalize:!1}},setLibraryReviewPeriod:function(t){return{url:"{gateway}/v1/library-reviews",key:"update:coming:soon:settings",invalidationKeys:"coming:soon:settings",type:n.k.POST,data:{reviewPeriod:t},normalize:!1}},deleteLibraryReviewPeriod:function(){return{url:"{gateway}/v1/library-reviews",key:"delete:coming:soon:settings",invalidationKeys:"coming:soon:settings",type:n.k.DELETE,normalize:!1}}}},55622:(t,e,r)=>{r.r(e),r.d(e,{TurnOffContentReviewView:()=>b});var n=r(1024),o=r.n(n),i=r(20354),a=r(23481),c=r(55460),u=r(9111),l=r(83345),s=r(13876),f=r(69883),h=r(21491),y=r(17749);function v(t){return v="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},v(t)}function p(){p=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new _(o||[]);return n(a,"_invoke",{value:x(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var f={};function h(){}function y(){}function d(){}var g={};u(g,i,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(S([])));w&&w!==e&&r.call(w,i)&&(g=w);var b=d.prototype=h.prototype=Object.create(g);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function o(n,i,a,c){var u=s(t[n],t,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==v(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,c)}))}c(u.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=k(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=s(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 k(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,k(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(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 _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return y.prototype=d,n(b,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:y,configurable:!0}),y.displayName=u(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},E(L.prototype),u(L.prototype,a,(function(){return this})),t.AsyncIterator=L,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new L(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(b),u(b,c,"Generator"),u(b,i,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,_.prototype={constructor:_,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 a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),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:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function d(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 g=function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function c(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}u((n=n.apply(t,e||[])).next())}))},m="settings.turnOffContentReview",w=a.T.encloseNamespace(m);function b(t){var e,r,n=(e=o().useState(!1),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return d(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)?d(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=n[0],v=n[1],b=i.a.useGetFetchAsync(),E=(0,f.Z)();return o().createElement(u.G,{title:w("title"),closePopup:t.closePopup},o().createElement("p",null,o().createElement(l.x,{namespace:m,phrase:"message"})),o().createElement(s.u,null,o().createElement(s.u.Cancel,{onClick:t.closePopup}),o().createElement(s.u.Submit,{variant:"dark",text:w("submit"),onClick:function(){return g(this,void 0,void 0,p().mark((function t(){var e,r;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return v(!0),t.prev=1,e=b(y.g.deleteLibraryReviewPeriod()),r=b(h.I.approveAll()),t.next=6,Promise.all([e,r]);case 6:E.success(w("success")),c.LocationUtils.Reload(),t.next=14;break;case 10:t.prev=10,t.t0=t.catch(1),E.error(w("error")),v(!1);case 14:case"end":return t.stop()}}),t,null,[[1,10]])})))},showSpinner:a})))}},21491:(t,e,r)=>{r.d(e,{I:()=>a});var n=r(99940),o=r(97395),i=r(62803),a={getRestrictions:function(t){return{key:"restrictions:".concat(t),url:o._.urlBuilder("{gateway}/v1/objects/restrictions",{id:t})}},addRestriction:function(t){return{type:n.k.POST,key:"restrictions:".concat(t.objectTypeId,":").concat(t.objectId,":add"),url:"{gateway}/v1/restrictions",data:[t],invalidationKeys:["restrictions"]}},deleteRestrictions:function(t){return{url:o._.urlBuilder("{gateway}/v1/restrictions",{objectId:t}),key:"restrictions:delete",type:n.k.DELETE,invalidationKeys:["restrictions"]}},getRestrictedObjects:function(t,e){var r={type:t,"query.video":i.v.VIDEO_COLLECTION,"query.interactive":i.v.INTERACTIVE,"query.clip":i.v.CLIP_COLLECTION};return e&&(r.cursor=e),{url:o._.urlBuilder("{gateway}/v1/restrictions/objects",r),key:"restrictions:objects:".concat(t.sort().join(","),":").concat(e)}},approveAll:function(){return{url:"{gateway}/v1/library-reviews/restrictions",key:"restrictions:approve:all",type:n.k.DELETE}}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[6263],{89043:(e,t,n)=>{n.d(t,{p:()=>I,v:()=>O});var r=n(1024),a=n(30314),i={renderInPortalIfExists:function(e,t){return t?(0,a.createPortal)(e,t):e}},o=n(23481),l=n(83914),s=n(8493),c=n(58130),u="shared.backButton";function d(e){var t=Object.assign({textShadow:!0},e),n=t.backToName,a=t.appLink,i=t.color,d=t.extraClasses,m=t.textShadow,p=n?o.T.getPhrase(u,"backTo",{backToName:n}):o.T.getPhrase(u,"back"),f="black"===i?"":"text-white",v=m?"text-shadow":"";return r.createElement(s.F,{appLink:a,className:"d-inline-flex align-items-center h5 mb-0 ".concat(d," ").concat(f," ").concat(v)},r.createElement(l.x,{svgName:c.vn.ChevronLeft,size:l.S.Medium}),r.createElement("span",{className:"ml-1"},p))}d.defaultProps={color:"black",extraClasses:""};var m=n(67453),p=n(54610),f=n(10587),v=n(83657),y=n(94232),h=n(2948),g=n(38143),b=n(81514),w=n(86764);const E={bannerContent:"sSCTB",actionsContainer:"Z5WI2",logoContainer:"vkeJk",headingLarge:"_8pnV",heading:"JXVBH"};function S(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 C="".concat(f.y[p.__.Banners].width,":").concat(f.y[p.__.Banners].height);function A(e){return e.length<160?"h1":E.headingLarge}var I=r.memo((function(e){var t,n,a,o=e.heading,l=e.banner,s=e.imageCdnUrl,c=e.actions,u=e.sortComponent,f=e.blockColourClass,I=r.useContext(y.n),O=(n=(0,h.D)(g.g.LAYOUT_CONTAINER_FLUID),a=1,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return l}}(n,a)||function(e,t){if(e){if("string"==typeof e)return S(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)?S(e,t):void 0}}(n,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],k=(0,b.V)()===w.r.XXL?1920:1200,N=e.imageOptions||{width:k,ratio:C,resizeType:p.Nq.Cover},P=!!l&&!!s&&m.j.createBannerUrl(l,{fallbackBaseUrl:s,fallbackCategoryName:o,type:p.__.Banners},N),x={className:"banner banner-header",style:P?{backgroundImage:"url('".concat(P,"')")}:{}};!l&&f&&(delete x.style,x.className+=" ".concat(f));var j=e.detailsComponent;return i.renderInPortalIfExists(r.createElement("div",Object.assign({},x),r.createElement("div",{className:"".concat(O?"container-fluid":"container"," position-relative inner-banner")},e.backButtonAppLink&&r.createElement("div",{className:"pt-3"},r.createElement(d,{appLink:e.backButtonAppLink,backToName:e.backButtonText,extraClasses:e.backButtonClasses,color:"white"})),r.createElement("div",{className:E.bannerContent},r.createElement("h1",{className:"text-white text-shadow ".concat(E.heading," ").concat(A(o))},o,j&&r.createElement(j,null)),!!c&&r.createElement("div",{className:E.actionsContainer},r.createElement(v.e,{actions:c,sortComponent:u,actionsDropdownClassName:e.actionsDropdownClassName}))),!!(null===(t=e.logo)||void 0===t?void 0:t.url)&&r.createElement("div",{className:E.logoContainer},r.createElement("img",{src:m.j.createUrl(e.logo.url,{size:p.h2.Small}),className:"rounded-circle"})))),null==I?void 0:I.container)}),(function(e,t){var n,r;return e.actions===t.actions&&e.heading===t.heading&&(null===(n=e.logo)||void 0===n?void 0:n.url)===(null===(r=t.logo)||void 0===r?void 0:r.url)}));function O(){var e=r.useContext(y.n);return i.renderInPortalIfExists(r.createElement("div",{className:"partial-banner partial-loading-background ".concat(E.banner)}),null==e?void 0:e.container)}},49935:(e,t,n)=>{n.d(t,{Oo:()=>d,b2:()=>m});var r=n(1024),a=n(8493),i=n(5859),o=n(86764),l=n(3747),s=n(83914),c=n(58130),u=function(e){var t=e.breadcrumb,n=t.name,i=t.appLink,o=t.active,l=e.withBackIcon;return r.createElement("li",{className:"breadcrumb-item".concat(o?" active":"")},o?r.createElement("strong",null,n):r.createElement(a.F,{appLink:i},l&&r.createElement(s.x,{svgName:c.vn.ChevronLeft,size:s.S.Small}),r.createElement("span",{className:l?"ml-2":""},n)))},d=function(e){var t=e.breadcrumbs,n=(0,l.a)(o.r.XS),a=null==t?void 0:t.length;return!a||n&&a<2?r.createElement(r.Fragment,null):n?r.createElement("ol",{className:"breadcrumb m-0 p-0"},r.createElement(u,{breadcrumb:t[a-2],withBackIcon:!0})):r.createElement("ol",{className:"breadcrumb m-0 p-0"},t.map((function(e,t){return r.createElement(u,{key:t,breadcrumb:e})})))},m=r.memo((function(e){var t=e.numItems,n=void 0===t?3:t;return(0,l.a)(o.r.XS)?r.createElement("div",{className:"partial-loading-background",style:{height:"1.3125rem",width:"6rem"}}):r.createElement("nav",{"aria-label":"breadcrumb"},r.createElement("ol",{className:"breadcrumb m-0 p-0"},i.u.getPartialLoadingItems({numItems:n}).map((function(e,t){var n=e.width;return r.createElement("li",{key:t,className:"breadcrumb-item"},r.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:n},dangerouslySetInnerHTML:{__html:"&nbsp"}}))}))))}))},71020:(e,t,n)=>{n.d(t,{_:()=>u});var r=n(1024),a=n(99910),i=n(64038),o=n(83914),l=n(58130);const s={container:"VwD1b",spinner:"eJ85e"};function c(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}function u(e){var t,n,u=(t=i.useInView(),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,i,o,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return c(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)?c(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.")}()),d=u[0],m=u[1];return r.useEffect((function(){var t;e.fetchOnScroll&&m&&!e.isFetching&&(null===(t=e.fetchNext)||void 0===t||t.call(e,e.nextCursor))}),[m,e.isFetching]),r.createElement("div",{className:"p-3 text-center ".concat(s.container),ref:d},e.isFetching?r.createElement(a.Spinner,{as:"span",animation:"border",role:"status",className:s.spinner}):r.createElement(o.x,{svgName:l.vn.ChevronDown,className:"svg-container cursor-pointer",size:o.S.Large,onClick:function(){var t;return null===(t=e.fetchNext)||void 0===t?void 0:t.call(e,e.nextCursor)}}))}u.defaultProps={fetchOnScroll:!1}},74696:(e,t,n)=>{n.d(t,{S:()=>c});var r=n(1024),a=n.n(r),i=n(99910),o=n(79967),l=n(9977);const s={partialName:"SicQQ",partialDescription:"dPGMq",partialThumbnail:"vZrnb",partialDragHandle:"iq73R"};function c(e){return a().createElement(a().Fragment,null,Array(e.numVideos).fill(null).map((function(t,n){return a().createElement(u,Object.assign({key:n},e))})))}function u(e){var t=(0,o.k)(),n="sm"===l.O.getSize(t,"md"),r=e.withReordering&&!t.xs;return a().createElement(i.Row,{noGutters:!0,className:"".concat(n?"":"py-2")},a().createElement(i.Col,Object.assign({},l.O.getThumbnailColumns(),{className:"flex-column align-items-flex-start ".concat(n?"pb-2 pr-2":"mb-1 px-2")}),a().createElement(i.Row,null,!!r&&a().createElement("div",{className:"d-flex align-items-center justify-content-center col-2"},a().createElement("div",{className:"partial-loading-background ".concat(s.partialDragHandle)})),a().createElement(i.Col,{xs:l.O.getThumbnailColSize(r)},a().createElement("div",{className:"partial-loading-background ".concat(n?"rounded":"rounded-lg"," ").concat(s.partialThumbnail)})))),a().createElement(i.Col,Object.assign({},l.O.getDetailsColumns(),{className:n?"pb-2":"px-2"}),a().createElement("div",{className:"partial-loading-background mb-1 ".concat(s.partialName)}),a().createElement("div",{className:"partial-loading-background ".concat(s.partialDescription)})))}c.defaultProps={numVideos:15}},94644:(e,t,n)=>{n.d(t,{r:()=>u});var r=n(81886),a=n(50242),i=n(67058),o=n(49075),l=n(14553),s=n(49267),c={notFound:i.d,forbidden:{rating:l.q,yearLevel:l.q,region:s.a,privacy:l.q},badRequest:o._};function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e){var i;i="number"==typeof e?e:e.status;var o=Object.assign(Object.assign({},c),t);i&&r.Q.ErrorHelper.isStatusCodeError(i)&&(i!==a.o.NotFound?i!==a.o.Forbidden?n.badRequest||r.Q.ErrorHelper.throw(new o.badRequest):n.forbidden||r.Q.ErrorHelper.throw(new o.forbidden.privacy):n.notFound||r.Q.ErrorHelper.throw(new o.notFound))}}},91286:(e,t,n)=>{n.d(t,{v:()=>o});var r=n(1024),a=n(94644);function i(e){return e.map((function(e){return e.statusCode})).join(":")}function o(e,t,n){var o=Array.isArray(e)?e:[e];(0,r.useEffect)((function(){o.forEach((function(e){(0,a.r)(e.statusCode,t,n)}))}),[i(o),t,n])}},63936:(e,t,n)=>{n.d(t,{K:()=>c});var r=n(1024),a=n(50242),i=n(79014),o=n(45719),l=n(8843);function s(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}function c(e,t,n,c,u,d){var m,p,f=(m=(0,r.useState)(0),p=2,function(e){if(Array.isArray(e))return e}(m)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return l}}(m,p)||function(e,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}(m,p)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),v=f[0],y=f[1],h=t,g=(0,o.P)((function(t){if(!e)return null;var n=e(t);return n?n.key:null}),c,u);return(0,l.M)({fetchNextPage:function(){if(t&&e&&g)return y((function(e){return e+1})),h(g.nextCursor)},hasMore:!!(null==g?void 0:g.nextCursor),isFetching:null==g?void 0:g.isFetching,scrollContainer:d}),(0,r.useEffect)((function(){g&&g.shouldInitialFetch&&t&&(h(),y((function(e){return e+1})))}),[null==g?void 0:g.shouldInitialFetch,t]),(0,r.useEffect)((function(){var e,t;if((null==g?void 0:g.statusCode)&&i.q.isFunction(n)){var r=+(null===(t=null===(e=g.statusCode)||void 0===e?void 0:e.toString())||void 0===t?void 0:t.substr(0,1));r!==a.k.ClientError&&r!==a.k.ServerError||n(v,g.statusCode)}}),[null==g?void 0:g.statusCode]),{items:null==g?void 0:g.items,hasMore:!!(null==g?void 0:g.nextCursor),nextCursor:null==g?void 0:g.nextCursor,isFetching:null==g?void 0:g.isFetching,totalItems:null==g?void 0:g.totalItems}}},8843:(e,t,n)=>{n.d(t,{M:()=>o});var r=n(1024),a=n(79014),i=400;function o(e){var t=function(){if(!e.isFetching){if(e.scrollContainer){var t=e.scrollContainer;if(t.getBoundingClientRect().height+t.scrollTop<t.scrollHeight-i)return}else if(window.innerHeight+document.documentElement.scrollTop<document.documentElement.scrollHeight-i)return;e.fetchNextPage()}};(0,r.useEffect)((function(){var n=a.q.throttle(t,200),r=e.scrollContainer||window;return e.hasMore&&r.addEventListener("scroll",n),function(){return r.removeEventListener("scroll",n)}}),[e.hasMore,e.fetchNextPage,e.scrollContainer])}},5859:(e,t,n)=>{function r(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}n.d(t,{u:()=>i});var a={numItems:5,minWidth:50,maxWidth:100},i={getPartialLoadingItems:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Object.assign(Object.assign({},a),t);return(e=Array(n.numItems),function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(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)?r(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(){return{width:"".concat(Math.max(Math.floor(Math.random()*n.maxWidth),n.minWidth),"px")}}))}}},6263:(e,t,n)=>{n.r(t),n.d(t,{PlaylistView:()=>De});var r=n(1024),a=n.n(r),i=n(58566),o=n(20354),l=n(23481),s=n(65858),c=n(39151),u=n(31949),d=n(23049),m=n(63936),p=n(71020),f=n(54569);function v(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 y=n(51365),h=n(69883),g=n(91286),b=n(21750),w=n(22902),E=n(16714),S=n(11025),C=n(183),A=n(1048),I=n(4594),O={isPlaylist:function(e){return(null==e?void 0:e.typeId)===I.E.Playlist},isOwner:function(e,t){var n;return!(!t||!e||A.t.isEmpty(e._liteOwner))&&e._liteOwner.id.toString()===(null===(n=t.id)||void 0===n?void 0:n.toString())}},k=n(97037),N=n(59991),P=n(45739),x=n(89454),j=n(25925),L=n(97816),T=n(67753),F=n(97291),D=n(14070),U=n(28400),B=n(3747),V=n(86764),M=n(89043),_=n(49935),H=n(110),R=n(83345),W=n(89725),Y="playlists.playlistHeaderDetails",q=function(e){var t=e.className;return a().createElement("span",{className:t},"•")};function z(e){var t=e._liteOwner;if(t)return t.name&&t.surname?U.m.toTitleCase(t.name+" "+t.surname.substring(0,1)):t.name?t.name.split(" ")[0]:void 0}function $(e){var t,n,r,a=0;return(null===(t=e.videos)||void 0===t?void 0:t.count)&&(a+=e.videos.count),(null===(n=e.clips)||void 0===n?void 0:n.count)&&(a+=e.clips.count),(null===(r=e.interactives)||void 0===r?void 0:r.count)&&(a+=e.interactives.count),a}function X(e){var t,n,r=O.isOwner(e.playlist,e.currentUser),i=null===(t=e.playlist.followers)||void 0===t?void 0:t.count,o=function(e){if(!e.contentModifiedDate)return"";var t=new Date,n=H.O.convertUTCToLocal(e.contentModifiedDate);return H.O.isBefore(n,H.O.subtract(t,1,"month"))?"":H.O.fromNow(n)}(e.playlist);return a().createElement("div",{className:e.detailsClassName},!e.hideOwnerName&&!r&&a().createElement(a().Fragment,null,(null===(n=e.playlist._isClickViewPlaylist)||void 0===n?void 0:n.value)?a().createElement(a().Fragment,null,a().createElement("div",{className:e.clickViewAvatarClassName},a().createElement(W.F,null)),a().createElement("span",null,"ClickView")):a().createElement(R.x,{namespace:Y,phrase:"createdBy",options:{user:z(e.playlist)}}),a().createElement(q,{className:e.separatorClassName})),a().createElement(R.x,{namespace:Y,phrase:"videos",options:{smartCount:$(e.playlist)}}),i>0&&a().createElement(a().Fragment,null,a().createElement(q,{className:e.separatorClassName}),a().createElement(R.x,{namespace:Y,phrase:"followers",options:{smartCount:i}})),!!o&&a().createElement(a().Fragment,null,a().createElement(q,{className:e.separatorClassName}),a().createElement(R.x,{namespace:Y,phrase:"lastUpdated",options:{timeAgo:o}})))}var Q=n(9085),G=n(7733),J=n(62756);const Z={partialDescription:"vDX0m"};function K(){return a().createElement(a().Fragment,null,a().createElement(M.v,null),a().createElement("div",{className:"mb-2"},a().createElement("div",{className:"partial-loading-background my-2 border-bottom ".concat(Z.partialDescription)})))}var ee=n(58130),te=n(49985),ne=l.T.encloseNamespace("playlists.playlistHeader"),re={getPlaylistActions:function(e,t){var n,r,a,i,o,l,c=t.isAuthenticated,u=t.isPlugin,d=t.isMobile,m=t.setIsFollowing,p=t.isFollowing,f=t.setShowFollowSpinner,v=t.showFollowSpinner,y={id:e.playlist.id,name:e.playlist.name,followerCount:null===(n=e.playlist.followers)||void 0===n?void 0:n.count,videoCount:null===(r=e.playlist.videos)||void 0===r?void 0:r.count,interactiveCount:null===(a=e.playlist.interactives)||void 0===a?void 0:a.count,clipCount:null===(i=e.playlist.clips)||void 0===i?void 0:i.count,isClickViewPlaylist:null===(o=e.playlist._isClickViewPlaylist)||void 0===o?void 0:o.value},h={location:s.LocationContext.Banner,entity:s.EntityType.Playlist,workflowPhase:s.WorkflowPhase.Start},g=[];if(!c)return g;var b=O.isOwner(e.playlist,e.currentUser);return u||(e.playAllAppLink&&g.push({label:ne("playAll"),appLink:e.playAllAppLink,svgName:ee.vn.Play,className:d?"":"btn btn-outline-dark mr-2",button:!d,analyticsData:y,analyticsOptions:Object.assign(Object.assign({},h),{actionType:s.UserAction.Play})}),e.hasStudentExp||g.push({label:ne("share"),appLink:{application:F.O.DEFAULT,action:D.e.Default.SHARE,args:[e.playlist.id],params:{entityType:"playlist"}},svgName:ee.vn.Share2,className:d?"":"btn btn-outline-dark mr-2",button:!d,analyticsData:y,analyticsOptions:Object.assign(Object.assign({},h),{actionType:s.UserAction.Share,eventVersion:s.EventVersion.V3})})),e.hasStudentExp||b||g.push({label:ne(p?"unfollow":"follow"),onClick:function(){m(!p),f(!0),e.follow(!p,(function(){f(!1),te.k.logUserAction(y,Object.assign(Object.assign({},h),{actionType:s.UserAction.Follow,descriptor:p?s.ToggleDescriptor.Off:s.ToggleDescriptor.On,workflowPhase:s.WorkflowPhase.Complete}))}),(function(){f(!1),m(p)}))},svgName:p?ee.vn.Check:ee.vn.Bell,className:d?"":"btn follow-btn btn-".concat(p?"outline-dark":"dark"," mr-2"),button:!d,showSpinner:v}),b&&(g.push({label:ne("edit"),appLink:{application:F.O.PLAYLISTS,action:D.e.Playlists.EDIT_PLAYLIST,args:[e.playlist.id]},svgName:ee.vn.Edit,button:!1,analyticsData:y,analyticsOptions:Object.assign(Object.assign({},h),{actionType:s.UserAction.Edit})}),g.push({label:ne("delete"),appLink:{application:F.O.PLAYLISTS,action:D.e.Playlists.DELETE_PLAYLIST,args:[e.playlist.id]},svgName:ee.vn.Delete,className:"text-danger",button:!1,analyticsData:y,analyticsOptions:Object.assign(Object.assign({},h),{actionType:s.UserAction.Delete})})),(null===(l=e.playlist._isClickViewPlaylist)||void 0===l?void 0:l.value)&&g.push({label:ne("copy"),appLink:{application:F.O.PLAYLISTS,action:D.e.Playlists.COPY_PLAYLIST,args:[e.playlist.id]},button:!1,analyticsData:y,analyticsOptions:Object.assign(Object.assign({},h),{actionType:s.UserAction.Copy})}),g}};const ae={clickViewAvatar:"PHe9c"};function ie(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return oe(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)?oe(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oe(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 le=function(e){return{application:F.O.SUBJECT,action:D.e.Subjects.CLASSIFICATION,args:[e.id,U.m.slugify(e.name)]}};function se(e){var t,n=(0,J.G)().isPlugin,a=ie(r.useState(e.isFollowing),2),i=a[0],o=a[1],l=ie(r.useState(!1),2),s=l[0],c=l[1];r.useEffect((function(){return o(e.isFollowing)}),[e.isFollowing]);var u=(0,B.a)(V.r.XS);if(e.showPartialLoading)return r.createElement(K,null);var d=e.playlist.description,m=re.getPlaylistActions(e,{isAuthenticated:e.currentUser.isAuthenticated,isPlugin:n,isMobile:u,setIsFollowing:o,isFollowing:i,setShowFollowSpinner:c,showFollowSpinner:s});return r.createElement(r.Fragment,null,r.createElement(M.p,{heading:e.playlist.name,banner:e.playlist.banner,imageCdnUrl:e.imageCdnUrl,actions:m.length&&m,actionsDropdownClassName:"btn btn-outline-dark",blockColourClass:(0,Q.x)(e.playlist.name,G.o),detailsComponent:function(){return r.createElement(X,{playlist:e.playlist,currentUser:e.currentUser,detailsClassName:"mb-n1 font-size-normal font-weight-normal mt-1",clickViewAvatarClassName:ae.clickViewAvatar,separatorClassName:"mx-1"})}}),(!!d||!!(null===(t=e.topicPath)||void 0===t?void 0:t.length))&&r.createElement("div",{className:"border-bottom py-3"},function(){var t,n;if(!(null===(t=e.topicPath)||void 0===t?void 0:t.length))return r.createElement(r.Fragment,null);if(!e.playlist||!e.topicPath)return r.createElement(_.b2,null);var a=null!==(n=e.rootBreadcrumbs)&&void 0!==n?n:[];return e.topicPath.forEach((function(e){a.push({name:e.name,appLink:le(e)})})),a.push({name:e.playlist.name,active:!0}),r.createElement("div",{className:"pb-2"},r.createElement(_.Oo,{breadcrumbs:a}))}(),!!d&&r.createElement("p",{className:"mb-0"},d)))}var ce=n(81886),ue=n(79014),de=n(56050),me=n(4632),pe=n(74696),fe=n(83914);function ve(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 ye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function he(e){var t,n,a=e.onSortComplete,i=e.onSortStart,o=e.showPartialLoading,l=ye(e,["onSortComplete","onSortStart","showPartialLoading"]),s=(t=r.useState(),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,i,o,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return ve(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)?ve(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.")}()),c=s[0],u=s[1];return o?r.createElement(pe.S,{withReordering:e.canEdit||e.showIndexes}):e.canEdit?r.createElement(me.NB,Object.assign({},l,{currentSortingIndex:c,onSortStart:function(t){var n=e.videos.findIndex((function(e){return e.id.toString()===t.active.id.toString()}));u(n),ue.q.isFunction(i)&&i(n)},onSortEnd:function(t){u(null);var n=t.active,r=t.over,i=e.videos.findIndex((function(e){return e.id.toString()===n.id.toString()})),o=e.videos.findIndex((function(e){return e.id.toString()===r.id.toString()}));ue.q.isFunction(a)?a(i,o):ce.Q.ErrorHelper.throw(new de.H("An onSortComplete callback function must be passed to SortableVideoListComponent"))},dragHandleIcon:ee.vn.Hamburger,dragHandleIconSize:fe.S.XXL,presentationAudiences:e.presentationAudiences})):r.createElement(me.E4,Object.assign({},l))}var ge=n(23232),be=n(99742),we="playlists.playlistEmptyState";function Ee(){return a().createElement(R.D.Provider,{value:we},a().createElement(ge.u,null,a().createElement(ge.u.Image,{src:be.W.EmptyStates.Playlists.PLAYLIST_VIDEOS}),a().createElement(ge.u.Heading,null,a().createElement(R.x,{phrase:"heading"})),a().createElement(ge.u.Info,null,a().createElement(R.x,{phrase:"info"}))))}n(75896);var Se=n(9680),Ce=n(81493),Ae=n(65986);function Ie(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 Oe=l.T.encloseNamespace("playlists.playlist");function ke(e,t,n){te.k.logUserAction({id:t,playlistId:e},{location:s.LocationContext.VideoList,entity:s.EntityType.Video,actionType:s.UserAction.Move,workflowPhase:n})}var Ne={notFound:Ce.N,forbidden:{privacy:Se.J}},Pe=n(7179),xe=n(1666),je=n(86698);function Le(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 Te="playlists.playlist",Fe=l.T.encloseNamespace(Te);function De(e){var t,n,a,A,I,U,B,V,M,_,H=(0,i.useDispatch)(),R=(0,h.Z)(),W=o.a.useBasicFetch(c.L.config()),Y=o.a.useBasicFetch(u.N.currentUser()),q=o.a.useBasicFetch((null===(t=Y.data)||void 0===t?void 0:t.isAuthenticated)&&xe.h.yearGroups(Y.data.customerId)),z=o.a.useBasicFetch(e.classificationId&&b.x.path(e.classificationId)),$=o.a.useBasicFetch(e.classificationId&&b.x.classification(e.classificationId,null===(n=Y.data)||void 0===n?void 0:n.id)),X=(0,je.y)(j.R.Subject,null===(a=$.data)||void 0===a?void 0:a.presentationId),Q=X.presentation,G=X.availablePresentations,J=X.hasLoaded,Z=o.a.useBasicFetch(J&&x.O.presentationAudiences(null==Q?void 0:Q.id)),K=(0,k.c)(s.LocationContext.VideoThumbnail),te=K.setFavourite,ne=K.canFavourite,re=(0,w.T)().hasPermissions,ae=e.shareId?N.C.getSharedPlaylist(e.playlistId,e.shareId):N.C.getPlaylist(e.playlistId),ie=o.a.useBasicFetch(ae),oe=function(e,t){var n=(0,Ae._)(Ae.i.VideoItem);return O.isOwner(e,t)?function(t){var r,a=S.M.getCanBeConsumed(t).canConsume,i={label:Oe("removeFromPlaylist"),button:!1,svgName:ee.vn.Delete,appLink:{application:F.O.PLAYLISTS,action:D.e.Playlists.REMOVE_VIDEO_FROM_PLAYLIST,args:[t.id,e.id],params:{typeId:t.typeId}},className:"text-danger",analyticsOptions:{entity:s.EntityType.Video,actionType:s.UserAction.Dissociate,location:s.LocationContext.VideoListItem,workflowPhase:s.WorkflowPhase.Start,descriptor:s.AssocDescriptor.Playlist},analyticsData:{id:t.id,playlistId:e.id}};return a?[].concat(function(e){if(Array.isArray(e))return Ie(e)}(r=n(t))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return Ie(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)?Ie(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[i]):[i]}:n}(ie.data,Y.data);(0,g.v)(ie,Ne);var le=function(t){return e.shareId?N.C.getSharedPlaylistVideos(e.playlistId,e.shareId,t):N.C.getPlaylistVideos(e.playlistId,t)},ce=o.a.useBasicFetch((null===(A=Y.data)||void 0===A?void 0:A.id)&&N.C.getIsFollowingPlaylist(e.playlistId,null===(I=Y.data)||void 0===I?void 0:I.id)),ue=function(e){o.a.getFetch(H)(le(e))},de=(0,m.K)(le,ue),me=de.items,pe=de.hasMore,fe=de.isFetching;(0,L.V)(null!==(U=null==me?void 0:me.filter(S.M.isVideo))&&void 0!==U?U:[],{hasCurriculumLinks:!0});var ve,ye,ge,be,we,Se,Ce=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Le(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)?Le(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((ve=me,we=(0,r.useState)(),Se=2,ye=function(e){if(Array.isArray(e))return e}(we)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return l}}(we,Se)||function(e,t){if(e){if("string"==typeof e)return v(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)?v(e,t):void 0}}(we,Se)||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.")}(),ge=ye[0],be=ye[1],(0,r.useEffect)((function(){ge&&(ve.length!==ge.length||function(e,t){var n=!0;if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r].id!==t[r].id){n=!1;break}return n}(ve,ge))&&be(null)}),[ve]),[ge,be]),2),De=Ce[0],Ue=Ce[1];(0,Pe.P)({id:e.playlistId,app:"playlists",shareId:e.shareId}),(0,d.o)(!!ie.data&&ie.data.name,[ie.data]);var Be,Ve=!!me&&0===me.length,Me=function(t,n){return T.W.getAppLink(t,{contextId:e.playlistId,context:C.Q.Playlist,shareId:e.shareId,playNext:n})},_e=!(null===(B=Y.data)||void 0===B?void 0:B.isAuthenticated)||!!ce.hasCompleted,He=null==me?void 0:me.find((function(e){var t;return null===(t=S.M.getCanBeConsumed(e))||void 0===t?void 0:t.canConsume})),Re=O.isOwner(ie.data,Y.data),We=me&&Y.data&&W.data;return r.createElement(y.M.Provider,{value:(null===(V=Y.data)||void 0===V?void 0:V.isAuthenticated)&&oe},r.createElement("div",{className:"bg-white px-3"},r.createElement(se,{playlist:ie.data,currentUser:Y.data,isFollowing:null===(M=ce.data)||void 0===M?void 0:M.isFollowing,follow:function(t,n,r){var a,i=t?N.C.followPlaylist:N.C.unfollowPlaylist;o.a.fetch(H,i(e.playlistId,null===(a=Y.data)||void 0===a?void 0:a.id,n,(function(){r(),R.error(l.T.getPhrase(Te,t?"followError":"unfollowError"))})))},playAllAppLink:He&&Me(He,!0),showPartialLoading:!ie.data||!We||!_e,imageCdnUrl:!!W.data&&W.data.imageCdnUrl,rootBreadcrumbs:(Be=[{name:Fe("discover"),appLink:{application:F.O.DASHBOARD,action:D.e.Dashboard.HOME}}],z.data&&Be.push({name:P.i.getExploreAllTopicsTitle(null==Q?void 0:Q.name,null==G?void 0:G.length),appLink:{application:F.O.SUBJECT,action:D.e.Subjects.CLASSIFICATION_ALL,params:{presentationId:null==Q?void 0:Q.id}}}),Be),topicPath:z.data,hasStudentExp:re(E.C.StudentExperience)}),r.createElement("div",{className:"mt-2"},Ve?r.createElement(Ee,null):r.createElement(he,{videos:De||me,yearGroups:q.data,playlistId:!!ie.data&&ie.data.id,onSortStart:function(t){var n=me[t];n&&ke(e.playlistId,n.id,s.WorkflowPhase.Start)},onSortComplete:function(t,n){if(t!==n){var r=me[t];if(r){var a=f.l.reorder(me,t,n),i=a.reorderedItems,l=a.reorderRequest;Ue(i),ke(e.playlistId,r.id,s.WorkflowPhase.Complete),o.a.fetch(H,N.C.reorderVideos(e.playlistId,l,null,(function(){Ue(null)})))}}},canEdit:Re,showPartialLoading:!We,getVideoAppLink:function(e){return Me(e,!1)},getSeriesAppLink:e.getSeriesAppLink,setFavourite:te,canFavourite:ne,showSignIn:!(null===(_=Y.data)||void 0===_?void 0:_.isAuthenticated),canRemovePrivateVideos:Re,presentationAudiences:Z.data,showIndexes:!0})),(pe||fe)&&r.createElement(p._,{isFetching:fe,fetchNext:ue})))}},87821:(e,t,n)=>{n.d(t,{p:()=>a});var r=n(33192),a={userVideoHistory:function(e,t,n,a){var i="video:history",o="{gateway}/v1/users/me/watch-history";return e&&(i+=":".concat(e),o+="?cursor=".concat(e)),{key:i,url:o,formatData:function(e){return{data:e.data.map((function(e){var t=r.utc(e.lastTimeWatched).local().format(),n=r(t).format("YYYY-MM-DD");return Object.assign(Object.assign({},e),{lastTimeWatched:t,lastDateWatched:n})})),pagination:e.pagination}},success:t,error:n,always:a}},videoHistory:function(e,t,n,r,a){var i=e.sort().map((function(e){return"videoId=".concat(e)}));return{key:"video:history:videos:".concat(i.join("&")),url:"{gateway}/v1/videos/history?".concat(i.join("&")),normalizeOptions:{namespace:t},formatData:function(e){return(null==e?void 0:e.length)?e.map((function(e){return{id:e.videoId,lastProgressPoint:e.lastProgressPoint}})):e},success:n,error:r,always:a}}}},97816:(e,t,n)=>{n.d(t,{V:()=>f});var r=n(1024),a=n.n(r),i=n(20354),o=n(31949),l=n(1575),s=n(21750),c=n(87821),u=n(63419);function d(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return m(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)?m(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(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 p={ratings:!1,favourites:!1,watchHistory:!1,hasCurriculumLinks:!1};function f(e){var t,n,r,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=Object.assign(Object.assign({},p),m),v=f.ratings,y=f.favourites,h=f.watchHistory,g=f.hasCurriculumLinks,b=i.a.useBasicFetch(o.N.currentUser()),w=e&&(Array.isArray(e)?e.filter(Boolean).map((function(e){return e.id})):e.data.filter(Boolean).map((function(e){return e.id}))),E=b.data;t=a().useMemo((function(){if(!(null==E?void 0:E.isAuthenticated))return[];var e=[];return v&&(e=[].concat(d(e),[!!(null==w?void 0:w.length)&&l.R.videoRatings(w,m.flightNamespace)])),y&&(e=[].concat(d(e),[!!(null==w?void 0:w.length)&&E&&u.P.isFavourited(E.id,w,m.flightNamespace)])),h&&(e=[].concat(d(e),[!!(null==w?void 0:w.length)&&E&&c.p.videoHistory(w,m.flightNamespace)])),g&&(e=[].concat(d(e),[!!(null==w?void 0:w.length)&&s.x.hasCurriculumLinks(w,null,m.flightNamespace)])),e.filter(Boolean)}),[null==w?void 0:w.length]),n=!!e,r=i.a.useGetFetch(),a().useEffect((function(){n&&t.length&&t.forEach((function(e){r(e)}))}),[t.length])}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[6285],{64767:(e,t,n)=>{n.r(t),n.d(t,{BulkUserActionsResetPasswordActionDetailsView:()=>C});var r=n(1024),a=n.n(r),s=n(20354),i=n(31949),o=n(58703),l=n(92802),u=n(2948),c=n(83345),d=n(38143),m=n(82644),f=n(68670),p=n(16715),h=n(96728);function v(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 g="userManager.bulkUserActionsResetPasswordActionDetails",w={newPassword:"",confirmPassword:"",changeOnNextLogin:!0};function y(e){var t=(0,l.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,u.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=[],l=!0,u=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(e){u=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw a}}return o}}(t,n)||function(e,t){if(e){if("string"==typeof e)return v(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)?v(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:g,phrase:"heading"})),a().createElement("p",null,a().createElement(c.x,{namespace:g,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:g,phrase:"ssoWarning"}))),a().createElement(m.n,{initialValues:w,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),x=n(18087),A=n(706),S=n(39739),U=n(86613);function C(e){var t=(0,E.h)(e.userType),n=t.users,r=t.count,l=(0,x.Y)(e.userType),u=s.a.useBasicFetch(i.N.currentUser()),c=s.a.useBasicFetch(u.data&&A.F.getCustomerSecuritySettings(u.data.customerId)),d=S.P.getMinimumPasswordLength(c.data,e.userType,U.i.User);return a().createElement(o.d,{appLinks:l,userType:e.userType,users:n,currentStep:"action-details",userCount:r,loaded:!0},a().createElement(b,{minPasswordLength:d,totalUsers:r,appLinks:l}))}}}]);