@clickview/lite 0.20.1 → 0.21.0-dev.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.
- package/dist/bundles.json +2 -2
- package/dist/css/1219-lite-e5009a049c.chunk.css +11 -0
- package/dist/css/{9096-lite-e7a054c1e9.chunk.css → 1233-lite-a624c6f550.chunk.css} +0 -1
- package/dist/css/{3574-lite-291510b7d1.chunk.css → 126-lite-cc5c61529d.chunk.css} +3 -2
- package/dist/css/1291-lite-ed4bc7fd04.chunk.css +6 -0
- package/dist/css/{1712-lite-4ce93c9201.chunk.css → 1556-lite-e5c8ab832e.chunk.css} +0 -1
- package/dist/css/{2757-lite-b9c6a216de.chunk.css → 1648-lite-ae8cc0aab7.chunk.css} +0 -1
- package/dist/css/1672-lite-5e8082b0fb.chunk.css +2 -0
- package/dist/css/{490-lite-248d9e90ee.chunk.css → 172-lite-392620186c.chunk.css} +0 -1
- package/dist/css/1725-lite-784f55ea22.chunk.css +3 -0
- package/dist/css/{5894-lite-5a5d92ced5.chunk.css → 1758-lite-f4321553d3.chunk.css} +1 -2
- package/dist/css/{219-lite-09cf5cd96f.chunk.css → 1970-lite-83fbec7be7.chunk.css} +1 -2
- package/dist/css/209-lite-d17508f362.chunk.css +3 -0
- package/dist/css/2135-lite-defe9f955c.chunk.css +27 -0
- package/dist/css/2191-lite-52189306f3.chunk.css +27 -0
- package/dist/css/{2199-lite-ce0ef1e413.chunk.css → 2199-lite-f34aca8c2c.chunk.css} +2 -1
- package/dist/css/2319-lite-5c28ed5ccd.chunk.css +25 -0
- package/dist/css/249-lite-68eb3d78fd.chunk.css +17 -0
- package/dist/css/{8882-lite-ea97e3de38.chunk.css → 2524-lite-2a5fdde589.chunk.css} +0 -1
- package/dist/css/2841-lite-37c211f2ef.chunk.css +29 -0
- package/dist/css/291-lite-9cf5c0a23e.chunk.css +4 -0
- package/dist/css/2937-lite-2b1610093d.chunk.css +35 -0
- package/dist/css/3053-lite-46a5eda1f5.chunk.css +2 -0
- package/dist/css/3240-lite-949de64172.chunk.css +56 -0
- package/dist/css/{8333-lite-1a65914776.chunk.css → 3302-lite-4792c5c816.chunk.css} +1 -1
- package/dist/css/3468-lite-74522bc90f.chunk.css +1 -0
- package/dist/css/3533-lite-74522bc90f.chunk.css +1 -0
- package/dist/css/3565-lite-bf8ca9a160.chunk.css +31 -0
- package/dist/css/3626-lite-281b5d8cf1.chunk.css +25 -0
- package/dist/css/3667-lite-940fe57626.chunk.css +3 -0
- package/dist/css/4113-lite-0e3af84be8.chunk.css +13 -0
- package/dist/css/{530-lite-985bc7a317.chunk.css → 4381-lite-045f3e30e2.chunk.css} +3 -2
- package/dist/css/{5249-lite-e4f0f13119.chunk.css → 4407-lite-59c2c274c0.chunk.css} +0 -1
- package/dist/css/4453-lite-dc48a3bc1d.chunk.css +28 -0
- package/dist/css/4484-lite-79cae540c6.chunk.css +17 -0
- package/dist/css/4519-lite-6edbee8c07.chunk.css +24 -0
- package/dist/css/4541-lite-74522bc90f.chunk.css +1 -0
- package/dist/css/4617-lite-b7212ef825.chunk.css +12 -0
- package/dist/css/482-lite-74522bc90f.chunk.css +1 -0
- package/dist/css/{508-lite-378bb7792a.chunk.css → 50-lite-cc2de0fcc1.chunk.css} +0 -1
- package/dist/css/{7058-lite-edb3f81dc0.chunk.css → 5035-lite-d104a6d911.chunk.css} +1 -2
- package/dist/css/510-lite-6661240a96.chunk.css +3 -0
- package/dist/css/5104-lite-bd8ea8e227.chunk.css +27 -0
- package/dist/css/{1365-lite-8f44de6657.chunk.css → 5325-lite-9e0ed67a5d.chunk.css} +1 -2
- package/dist/css/5687-lite-7959662677.chunk.css +16 -0
- package/dist/css/5875-lite-8510befbfc.chunk.css +31 -0
- package/dist/css/{2140-lite-d9725327b4.chunk.css → 592-lite-4521725c4d.chunk.css} +0 -1
- package/dist/css/6061-lite-2b1610093d.chunk.css +35 -0
- package/dist/css/6117-lite-495be6242c.chunk.css +6 -0
- package/dist/css/{6117-lite-7ede9b51d2.chunk.css → 6117-lite-833359b1a2.chunk.css} +1 -1
- package/dist/css/6255-lite-08ea742390.chunk.css +22 -0
- package/dist/css/6285-lite-0365972b55.chunk.css +2 -0
- package/dist/css/6290-lite-e9ed5e1440.chunk.css +3 -0
- package/dist/css/6369-lite-b43857e49a.chunk.css +26 -0
- package/dist/css/6465-lite-74522bc90f.chunk.css +1 -0
- package/dist/css/{2462-lite-1a65914776.chunk.css → 6475-lite-4792c5c816.chunk.css} +1 -1
- package/dist/css/{3790-lite-29ad49b5cc.chunk.css → 660-lite-b4ee3775e7.chunk.css} +0 -1
- package/dist/css/6689-lite-234cdad948.chunk.css +4 -0
- package/dist/css/{1620-lite-6bebaa26ae.chunk.css → 6724-lite-306ecc58d1.chunk.css} +1 -3
- package/dist/css/{3745-lite-8f44de6657.chunk.css → 6770-lite-9e0ed67a5d.chunk.css} +1 -2
- package/dist/css/{4834-lite-2822d95ee9.chunk.css → 6771-lite-e2b6538674.chunk.css} +0 -1
- package/dist/css/6810-lite-88e93bd216.chunk.css +16 -0
- package/dist/css/6817-lite-6661240a96.chunk.css +3 -0
- package/dist/css/{6374-lite-4213fbd72a.chunk.css → 6982-lite-4e04e5089a.chunk.css} +0 -1
- package/dist/css/7007-lite-0ca1b89c2b.chunk.css +26 -0
- package/dist/css/703-lite-cc73e26bd7.chunk.css +25 -0
- package/dist/css/7112-lite-8c2035c10b.chunk.css +3 -0
- package/dist/css/7128-lite-74522bc90f.chunk.css +1 -0
- package/dist/css/7172-lite-74522bc90f.chunk.css +1 -0
- package/dist/css/7307-lite-fe48bf7468.chunk.css +5 -0
- package/dist/css/7409-lite-d610f16523.chunk.css +4 -0
- package/dist/css/7468-lite-3cbb152e65.chunk.css +24 -0
- package/dist/css/7515-lite-8c2035c10b.chunk.css +3 -0
- package/dist/css/{4021-lite-5d2d59484c.chunk.css → 768-lite-9a2a5c3b3f.chunk.css} +0 -1
- package/dist/css/7737-lite-bf8ca9a160.chunk.css +31 -0
- package/dist/css/7756-lite-d9505ae9c9.chunk.css +25 -0
- package/dist/css/7818-lite-e7bdc675ac.chunk.css +2 -0
- package/dist/css/7967-lite-dc1c2e8b0f.chunk.css +50 -0
- package/dist/css/8025-lite-74522bc90f.chunk.css +1 -0
- package/dist/css/{2119-lite-b39f09e4a3.chunk.css → 8311-lite-2792c81eb5.chunk.css} +0 -1
- package/dist/css/8383-lite-74522bc90f.chunk.css +1 -0
- package/dist/css/849-lite-cc73e26bd7.chunk.css +25 -0
- package/dist/css/{1467-lite-4213fbd72a.chunk.css → 8491-lite-4e04e5089a.chunk.css} +0 -1
- package/dist/css/8681-lite-24a96d4e6a.chunk.css +1 -0
- package/dist/css/8801-lite-a0648ee1fa.chunk.css +2 -0
- package/dist/css/8820-lite-e2b842f2b1.chunk.css +4 -0
- package/dist/css/8898-lite-5c28ed5ccd.chunk.css +25 -0
- package/dist/css/9060-lite-74522bc90f.chunk.css +1 -0
- package/dist/css/9324-lite-342c9406c7.chunk.css +23 -0
- package/dist/css/{1776-lite-378bb7792a.chunk.css → 9418-lite-cc2de0fcc1.chunk.css} +0 -1
- package/dist/css/9455-lite-272d79c9a4.chunk.css +4 -0
- package/dist/css/{7067-lite-29ad49b5cc.chunk.css → 9456-lite-b4ee3775e7.chunk.css} +0 -1
- package/dist/css/9482-lite-52189306f3.chunk.css +27 -0
- package/dist/css/969-lite-7140acaf0b.chunk.css +6 -0
- package/dist/css/9700-lite-c150d777c3.chunk.css +9 -0
- package/dist/css/9767-lite-8e9338877d.chunk.css +25 -0
- package/dist/css/9863-lite-9f8cedefda.chunk.css +38 -0
- package/dist/css/lite-app-32a48367f5.css +101 -0
- package/dist/css/{lite-app-5c55b56f21.css → lite-app-fc529bc51a.css} +6 -5
- package/dist/languages/en.json +1 -1
- package/dist/scripts/1160-37e97a3e1a-lite.chunk.js +1 -0
- package/dist/scripts/1160-86d411f9e8-lite.chunk.js +1 -0
- package/dist/scripts/1219-08053793d3-lite.chunk.js +1 -0
- package/dist/scripts/{9096-c59ee6f88e-lite.chunk.js → 1233-7b638b5640-lite.chunk.js} +1 -1
- package/dist/scripts/126-6a5edaf2e4-lite.chunk.js +1 -0
- package/dist/scripts/1291-6ad92cbb19-lite.chunk.js +1 -0
- package/dist/scripts/1518-0cfafd2c14-lite.chunk.js +1 -0
- package/dist/scripts/1556-9c7be058d7-lite.chunk.js +1 -0
- package/dist/scripts/1564-5513e7c8e3-lite.chunk.js +1 -0
- package/dist/scripts/1648-631120b2fe-lite.chunk.js +1 -0
- package/dist/scripts/1672-fe6f67b018-lite.chunk.js +2 -0
- package/dist/scripts/1684-cce5dd653a-lite.chunk.js +1 -0
- package/dist/scripts/1684-eb56af9845-lite.chunk.js +2 -0
- package/dist/scripts/172-a812a0928d-lite.chunk.js +1 -0
- package/dist/scripts/1725-223bf6f5b3-lite.chunk.js +1 -0
- package/dist/scripts/1725-de822e6ca9-lite.chunk.js +1 -0
- package/dist/scripts/1758-c0abe8bc0d-lite.chunk.js +1 -0
- package/dist/scripts/1913-fc8a75a85a-lite.chunk.js +1 -0
- package/dist/scripts/1924-edb024e516-lite.chunk.js +1 -0
- package/dist/scripts/1970-923502f4ce-lite.chunk.js +1 -0
- package/dist/scripts/209-294d215e69-lite.chunk.js +1 -0
- package/dist/scripts/209-954826da04-lite.chunk.js +1 -0
- package/dist/scripts/2135-249d97ca15-lite.chunk.js +1 -0
- package/dist/scripts/2199-df02746e20-lite.chunk.js +1 -0
- package/dist/scripts/{2215-3016159f9a-lite.chunk.js → 2215-55d847d340-lite.chunk.js} +1 -1
- package/dist/scripts/2215-67b5894e65-lite.chunk.js +1 -0
- package/dist/scripts/{7067-e95c0356dd-lite.chunk.js → 2319-b1ef9434b3-lite.chunk.js} +1 -1
- package/dist/scripts/249-ceb82b9d05-lite.chunk.js +1 -0
- package/dist/scripts/2524-5dfb74c0aa-lite.chunk.js +1 -0
- package/dist/scripts/2838-d332fc8119-lite.chunk.js +1 -0
- package/dist/scripts/2841-6ae6bfa58c-lite.chunk.js +1 -0
- package/dist/scripts/2883-e14ed00a29-lite.chunk.js +1 -0
- package/dist/scripts/291-42436a3003-lite.chunk.js +1 -0
- package/dist/scripts/2937-a3edd0333c-lite.chunk.js +1 -0
- package/dist/scripts/2994-aaaf959c06-lite.chunk.js +2 -0
- package/dist/scripts/3019-1c6e41272b-lite.chunk.js +1 -0
- package/dist/scripts/3020-83da4073df-lite.chunk.js +1 -0
- package/dist/scripts/{1684-d2a19c1dbd-lite.chunk.js → 3053-a80bc38385-lite.chunk.js} +1 -1
- package/dist/scripts/3171-6119cb933c-lite.chunk.js +1 -0
- package/dist/scripts/3231-18bd8ed756-lite.chunk.js +1 -0
- package/dist/scripts/3240-4aa039123b-lite.chunk.js +1 -0
- package/dist/scripts/3285-dbfcb1c5e3-lite.chunk.js +1 -0
- package/dist/scripts/3302-1cdafd12f4-lite.chunk.js +1 -0
- package/dist/scripts/3468-edda7e173e-lite.chunk.js +1 -0
- package/dist/scripts/3533-4b14e63562-lite.chunk.js +1 -0
- package/dist/scripts/3565-111534490d-lite.chunk.js +1 -0
- package/dist/scripts/3602-10ff0daab0-lite.chunk.js +2 -0
- package/dist/scripts/3626-34c536c31f-lite.chunk.js +1 -0
- package/dist/scripts/3667-b4bf177ef8-lite.chunk.js +2 -0
- package/dist/scripts/3667-b4bf177ef8-lite.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/3948-82e6ae26b5-lite.chunk.js +1 -0
- package/dist/scripts/4113-e60ecf81fa-lite.chunk.js +1 -0
- package/dist/scripts/4182-b8d15f3e68-lite.chunk.js +1 -0
- package/dist/scripts/4381-8f5e8ca795-lite.chunk.js +1 -0
- package/dist/scripts/{5249-217235658c-lite.chunk.js → 4407-055be74a55-lite.chunk.js} +1 -1
- package/dist/scripts/4453-b079bb8254-lite.chunk.js +1 -0
- package/dist/scripts/4484-906d80186e-lite.chunk.js +1 -0
- package/dist/scripts/4519-bd2f8a73e6-lite.chunk.js +1 -0
- package/dist/scripts/4541-18f406c3e6-lite.chunk.js +1 -0
- package/dist/scripts/4559-851dd0c8de-lite.chunk.js +1 -0
- package/dist/scripts/4617-0770a3ae12-lite.chunk.js +1 -0
- package/dist/scripts/4632-d6bc99f7ca-lite.chunk.js +1 -0
- package/dist/scripts/4722-5d9acf00e4-lite.chunk.js +1 -0
- package/dist/scripts/{4722-24868f68d4-lite.chunk.js → 4722-f57c243f7d-lite.chunk.js} +1 -1
- package/dist/scripts/482-55ecda1638-lite.chunk.js +1 -0
- package/dist/scripts/5035-891fa9bac8-lite.chunk.js +1 -0
- package/dist/scripts/5081-526e2e79e3-lite.chunk.js +2 -0
- package/dist/scripts/5081-526e2e79e3-lite.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/510-6af5633192-lite.chunk.js +1 -0
- package/dist/scripts/5104-ac953a963b-lite.chunk.js +1 -0
- package/dist/scripts/5325-059af2c1f1-lite.chunk.js +1 -0
- package/dist/scripts/5606-0d0883a7f9-lite.chunk.js +1 -0
- package/dist/scripts/5606-90099feff9-lite.chunk.js +1 -0
- package/dist/scripts/5622-548a92a2e4-lite.chunk.js +2 -0
- package/dist/scripts/5622-548a92a2e4-lite.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/5687-1a1feacde0-lite.chunk.js +1 -0
- package/dist/scripts/5875-a911a9db8c-lite.chunk.js +2 -0
- package/dist/scripts/5875-a911a9db8c-lite.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/5877-113f809304-lite.chunk.js +1 -0
- package/dist/scripts/5877-3892a2e8fa-lite.chunk.js +1 -0
- package/dist/scripts/592-1c7b9572e0-lite.chunk.js +1 -0
- package/dist/scripts/5986-56a3dbb985-lite.chunk.js +1 -0
- package/dist/scripts/{5986-48e10eff09-lite.chunk.js → 5986-c8b15d56d4-lite.chunk.js} +1 -1
- package/dist/scripts/6061-9a158302e7-lite.chunk.js +1 -0
- package/dist/scripts/6117-3840f19794-lite.chunk.js +1 -0
- package/dist/scripts/614-06b5688fbd-lite.chunk.js +1 -0
- package/dist/scripts/{614-6f178b3e14-lite.chunk.js → 614-2fcc9c2691-lite.chunk.js} +1 -1
- package/dist/scripts/{4021-1b60ea9d72-lite.chunk.js → 6255-b0a6aa4a23-lite.chunk.js} +1 -1
- package/dist/scripts/{6263-a8da7e1fd6-lite.chunk.js → 6263-cac6b1571e-lite.chunk.js} +1 -1
- package/dist/scripts/6263-de2ee52917-lite.chunk.js +1 -0
- package/dist/scripts/6274-b4101bacdc-lite.chunk.js +1 -0
- package/dist/scripts/6285-5bd408b61b-lite.chunk.js +1 -0
- package/dist/scripts/6290-a5bc915392-lite.chunk.js +1 -0
- package/dist/scripts/6290-cb324b904a-lite.chunk.js +1 -0
- package/dist/scripts/6368-cdd4191c82-lite.chunk.js +1 -0
- package/dist/scripts/{2119-7fb61add58-lite.chunk.js → 6369-67cf2bc0c0-lite.chunk.js} +1 -1
- package/dist/scripts/6381-eb5890d771-lite.chunk.js +1 -0
- package/dist/scripts/6450-3258db594e-lite.chunk.js +1 -0
- package/dist/scripts/6465-2a8d39c404-lite.chunk.js +1 -0
- package/dist/scripts/6475-bd535d45f8-lite.chunk.js +1 -0
- package/dist/scripts/6480-5d694f31a9-lite.chunk.js +1 -0
- package/dist/scripts/6507-a2b8fb1ef1-lite.chunk.js +1 -0
- package/dist/scripts/655-26c79c3810-lite.chunk.js +1 -0
- package/dist/scripts/6689-d4f13b61dc-lite.chunk.js +1 -0
- package/dist/scripts/6724-dbac006c89-lite.chunk.js +1 -0
- package/dist/scripts/6770-2a6272d844-lite.chunk.js +1 -0
- package/dist/scripts/6771-7892323527-lite.chunk.js +1 -0
- package/dist/scripts/6810-3391e356f3-lite.chunk.js +1 -0
- package/dist/scripts/6817-b2d4b4d3a0-lite.chunk.js +1 -0
- package/dist/scripts/7007-48677c4bf8-lite.chunk.js +1 -0
- package/dist/scripts/7112-dbae6b0d8e-lite.chunk.js +2 -0
- package/dist/scripts/7112-dbae6b0d8e-lite.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/7128-a38ffbd703-lite.chunk.js +1 -0
- package/dist/scripts/7172-cbbdb8f18c-lite.chunk.js +1 -0
- package/dist/scripts/7178-3bac7129ae-lite.chunk.js +1 -0
- package/dist/scripts/7178-3d398a8ce2-lite.chunk.js +1 -0
- package/dist/scripts/7307-3b5ad30eae-lite.chunk.js +1 -0
- package/dist/scripts/7332-0da13c2b90-lite.chunk.js +1 -0
- package/dist/scripts/7332-1eb610da0b-lite.chunk.js +1 -0
- package/dist/scripts/7338-1a927a706e-lite.chunk.js +1 -0
- package/dist/scripts/7407-8df799eb28-lite.chunk.js +1 -0
- package/dist/scripts/7409-1014fbbd4e-lite.chunk.js +1 -0
- package/dist/scripts/7468-38058f361e-lite.chunk.js +1 -0
- package/dist/scripts/7478-9a21328b88-lite.chunk.js +1 -0
- package/dist/scripts/7490-efaf808928-lite.chunk.js +1 -0
- package/dist/scripts/7515-6bddd5f908-lite.chunk.js +2 -0
- package/dist/scripts/7515-6bddd5f908-lite.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/7524-49c6768bca-lite.chunk.js +1 -0
- package/dist/scripts/768-5b76506a1b-lite.chunk.js +1 -0
- package/dist/scripts/7737-1cda4795f6-lite.chunk.js +1 -0
- package/dist/scripts/7756-f7531db813-lite.chunk.js +1 -0
- package/dist/scripts/7818-f48a03fb27-lite.chunk.js +1 -0
- package/dist/scripts/7831-3b7c6f532d-lite.chunk.js +1 -0
- package/dist/scripts/7888-1288f4b094-lite.chunk.js +1 -0
- package/dist/scripts/7967-1cf0440118-lite.chunk.js +1 -0
- package/dist/scripts/8025-b839a8254d-lite.chunk.js +1 -0
- package/dist/scripts/8038-2d3f7277ee-lite.chunk.js +1 -0
- package/dist/scripts/8114-e8304a361b-lite.chunk.js +1 -0
- package/dist/scripts/8187-1d5b309755-lite.chunk.js +1 -0
- package/dist/scripts/8311-52fdde9c06-lite.chunk.js +1 -0
- package/dist/scripts/8377-bb0ba0fe7b-lite.chunk.js +1 -0
- package/dist/scripts/8383-35d5ae1c38-lite.chunk.js +1 -0
- package/dist/scripts/849-71daf83b40-lite.chunk.js +1 -0
- package/dist/scripts/{6374-ee6c97a7d4-lite.chunk.js → 8491-de36717803-lite.chunk.js} +1 -1
- package/dist/scripts/8564-f235ff19fc-lite.chunk.js +1 -0
- package/dist/scripts/865-b8f0d44c41-lite.chunk.js +1 -0
- package/dist/scripts/8681-0b0eae6c0b-lite.chunk.js +2 -0
- package/dist/scripts/8681-0b0eae6c0b-lite.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/8726-00275ef200-lite.chunk.js +1 -0
- package/dist/scripts/8801-2d80d4508d-lite.chunk.js +1 -0
- package/dist/scripts/{8801-70e800a30d-lite.chunk.js → 8801-572461a6a4-lite.chunk.js} +1 -1
- package/dist/scripts/8820-98cba12357-lite.chunk.js +1 -0
- package/dist/scripts/8944-9f55b32981-lite.chunk.js +1 -0
- package/dist/scripts/8944-c246dd84f8-lite.chunk.js +1 -0
- package/dist/scripts/9035-4a3b814c3b-lite.chunk.js +1 -0
- package/dist/scripts/9060-5a79549f6d-lite.chunk.js +1 -0
- package/dist/scripts/{9107-c432fb331e-lite.chunk.js → 9107-954648f52d-lite.chunk.js} +1 -1
- package/dist/scripts/9107-ad8c75ac90-lite.chunk.js +1 -0
- package/dist/scripts/9154-1b9717548e-lite.chunk.js +1 -0
- package/dist/scripts/9324-4e976aad34-lite.chunk.js +1 -0
- package/dist/scripts/9418-a76a408f21-lite.chunk.js +1 -0
- package/dist/scripts/9428-63f031caf2-lite.chunk.js +2 -0
- package/dist/scripts/9428-63f031caf2-lite.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/9455-8b33346761-lite.chunk.js +1 -0
- package/dist/scripts/9456-31290e6ced-lite.chunk.js +1 -0
- package/dist/scripts/{9478-a2d2af4feb-lite.chunk.js → 9478-1cddab324e-lite.chunk.js} +2 -2
- package/dist/scripts/9478-1cddab324e-lite.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/9478-b2804c7df7-lite.chunk.js +2 -0
- package/dist/scripts/9478-b2804c7df7-lite.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/9482-272127a50b-lite.chunk.js +1 -0
- package/dist/scripts/9627-f6bc9fb42f-lite.chunk.js +1 -0
- package/dist/scripts/9674-3d429f1f50-lite.chunk.js +1 -0
- package/dist/scripts/969-1a437472be-lite.chunk.js +1 -0
- package/dist/scripts/9700-81cbdf3ca0-lite.chunk.js +1 -0
- package/dist/scripts/9767-ff31001052-lite.chunk.js +1 -0
- package/dist/scripts/9863-1642cff0c1-lite.chunk.js +1 -0
- package/dist/scripts/{8377-00ef43ca5f-lite.chunk.js → 9969-43b8caf56d-lite.chunk.js} +1 -1
- package/dist/scripts/bundle-2af583dba9.min.js +2 -0
- package/dist/scripts/bundle-3ced6267ed.min.js +2 -0
- package/dist/scripts/bundle-3ced6267ed.min.js.LICENSE.txt +42 -0
- package/package.json +1 -1
- package/dist/css/1330-lite-ffdd9ac83f.chunk.css +0 -7
- package/dist/scripts/1160-becfd8e89d-lite.chunk.js +0 -1
- package/dist/scripts/1330-df9bcc7430-lite.chunk.js +0 -2
- package/dist/scripts/1365-4dcf9a4bde-lite.chunk.js +0 -1
- package/dist/scripts/1620-56950a2cd2-lite.chunk.js +0 -1
- package/dist/scripts/1712-75aefedc51-lite.chunk.js +0 -1
- package/dist/scripts/1725-98acf0fb57-lite.chunk.js +0 -1
- package/dist/scripts/209-36ac1c517f-lite.chunk.js +0 -1
- package/dist/scripts/2140-8bb7d840c6-lite.chunk.js +0 -1
- package/dist/scripts/219-4c70f18e52-lite.chunk.js +0 -1
- package/dist/scripts/2199-0906e314a2-lite.chunk.js +0 -2
- package/dist/scripts/2462-0d9aec4b6c-lite.chunk.js +0 -1
- package/dist/scripts/2757-16649d32ab-lite.chunk.js +0 -1
- package/dist/scripts/2994-1944be446f-lite.chunk.js +0 -2
- package/dist/scripts/3574-6a573d9d74-lite.chunk.js +0 -1
- package/dist/scripts/3745-63a4d71f99-lite.chunk.js +0 -1
- package/dist/scripts/3948-5375b23b74-lite.chunk.js +0 -1
- package/dist/scripts/402-5d3acd69f4-lite.chunk.js +0 -1
- package/dist/scripts/4279-c0eec92c89-lite.chunk.js +0 -1
- package/dist/scripts/4632-a90a7f85d3-lite.chunk.js +0 -1
- package/dist/scripts/4834-badfa6600e-lite.chunk.js +0 -1
- package/dist/scripts/490-e4016b43d3-lite.chunk.js +0 -1
- package/dist/scripts/508-6a12fd0303-lite.chunk.js +0 -1
- package/dist/scripts/530-35afdff226-lite.chunk.js +0 -1
- package/dist/scripts/5606-50e4a681b9-lite.chunk.js +0 -1
- package/dist/scripts/5877-0409fd8611-lite.chunk.js +0 -1
- package/dist/scripts/5894-65b8fcb9b1-lite.chunk.js +0 -1
- package/dist/scripts/6226-93ab7859f6-lite.chunk.js +0 -1
- package/dist/scripts/6290-2837f7f171-lite.chunk.js +0 -1
- package/dist/scripts/6381-ab790321cf-lite.chunk.js +0 -1
- package/dist/scripts/7058-070171efa7-lite.chunk.js +0 -1
- package/dist/scripts/7178-85103e884f-lite.chunk.js +0 -1
- package/dist/scripts/7332-7c591de12f-lite.chunk.js +0 -1
- package/dist/scripts/8333-821f67cd7d-lite.chunk.js +0 -1
- package/dist/scripts/8564-36c07d2f19-lite.chunk.js +0 -1
- package/dist/scripts/865-417f8fbab9-lite.chunk.js +0 -1
- package/dist/scripts/8882-b9907bfe21-lite.chunk.js +0 -1
- package/dist/scripts/8944-a077047351-lite.chunk.js +0 -1
- package/dist/scripts/bundle-4771b64322.min.js +0 -2
- /package/dist/scripts/{1330-df9bcc7430-lite.chunk.js.LICENSE.txt → 1672-fe6f67b018-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2199-0906e314a2-lite.chunk.js.LICENSE.txt → 1684-eb56af9845-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2994-1944be446f-lite.chunk.js.LICENSE.txt → 2994-aaaf959c06-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9478-a2d2af4feb-lite.chunk.js.LICENSE.txt → 3602-10ff0daab0-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{6117-a0d627d70e-lite.chunk.js → 6117-202667041b-lite.chunk.js} +0 -0
- /package/dist/scripts/{bundle-4771b64322.min.js.LICENSE.txt → bundle-2af583dba9.min.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[1684],{50885:(e,r,t)=>{t.r(r),t.d(r,{BulkUserActionsChangeYearGroupActionDetailsView:()=>x});var a=t(1024),n=t.n(a),l=t(20354),o=t(58703),u=t(31949),c=t(1666),s=t(2948),i=t(23481),p=t(83345),d=t(38143),m=t(96728),f=t(75143);function y(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}var v="userManager.bulkUserActionsChangeYearGroupActionDetails";function h(e){var r,t,a,l,o,u=(l=(0,s.D)(d.g.BULK_USER_ACTIONS),o=2,function(e){if(Array.isArray(e))return e}(l)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,n,l,o,u=[],c=!0,s=!1;try{if(l=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;c=!1}else for(;!(c=(a=l.call(t)).done)&&(u.push(a.value),u.length!==r);c=!0);}catch(e){s=!0,n=e}finally{try{if(!c&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(s)throw n}}return u}}(l,o)||function(e,r){if(e){if("string"==typeof e)return y(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?y(e,r):void 0}}(l,o)||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=u[0],h=u[1];n().useEffect((function(){h("subAction","changeYearGroup")}),[]);var g=n().useContext(m.e).setDisableNext;return n().useEffect((function(){g(!(null==c?void 0:c.yearGroup))}),[null==c?void 0:c.yearGroup]),n().createElement(p.D.Provider,{value:v},n().createElement("h2",{className:"h4 mb-3"},n().createElement(p.x,{phrase:"heading"})),n().createElement("div",{className:"px-2 pt-2 border rounded mb-2 pb-0"},n().createElement("ul",{className:"mt-2 pl-3 ml-1"},n().createElement("li",null,n().createElement(p.x,{phrase:"ssoWarning"})," ",!!e.editSsoHelpArticleUrl&&n().createElement("a",{href:e.editSsoHelpArticleUrl,target:"_blank",className:"info-link"},n().createElement(p.x,{phrase:"ssoWarningArticle"})))),n().createElement("div",{className:"form-group"},n().createElement("label",null,n().createElement(p.x,{phrase:"label"})),n().createElement("select",{className:"form-control form-control-lg w-33 ".concat((null===(r=c.yearGroup)||void 0===r?void 0:r.id)?"":"text-secondary"),onChange:function(r){var t=r.target.value;h("yearGroup",t?e.yearGroups.find((function(e){return e.value.toString()===t.toString()})):null)},defaultValue:null!==(a=null===(t=null==c?void 0:c.yearGroup)||void 0===t?void 0:t.value)&&void 0!==a?a:""},n().createElement("option",{className:"text-secondary",value:""},i.T.getPhrase(v,"placeholder")),e.yearGroups.map((function(e){return n().createElement("option",{key:e.id,value:e.value,className:"text-dark"},e.name)})))),n().createElement(f.A,{countsByYearGroup:e.countsByYearGroup,yearGroups:e.yearGroups,selectedYearGroup:c.yearGroup})))}var g=t(84566),b=t(70197),E=t(88323),A=t(18087),G=t(39872),S=t(12778),k=t(39151),N=t(99705);function x(e){var r=(0,E.h)(e.userType),t=r.users,a=r.count,s=(0,A.Y)(e.userType),i=l.a.useBasicFetch(u.N.currentUser()),p=l.a.useBasicFetch(k.L.config()),d=l.a.useBasicFetch(i.hasCompleted&&c.h.yearGroups(i.data.customerId)),m=(0,g.S)({userType:e.userType,field:b.q.YearGroupValues,getSearchAggregation:G.N.getSearchAggregation}),f=!!(m&&d.data&&p.data&&i.data);return n().createElement(o.d,{appLinks:s,userType:e.userType,users:t,currentStep:"action-details",userCount:a,loaded:f},f&&n().createElement(h,{appLinks:s,yearGroups:d.data,countsByYearGroup:m,editSsoHelpArticleUrl:S.o.getLiteArticle(N.b.EditSsoAccounts)}))}}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 1684-eb56af9845-lite.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[1684],{69542:(t,e,r)=>{r.d(e,{h:()=>Vr});var n,o=r(1024),a=r.n(o),i=r(57900),c=r(2903),l=r(65858),u=r(58130),s=r(11607),f=r(2786),p=r(83914),h=r(99742),d=r(42976);!function(t){t.AU="au",t.NZ="nz",t.UK="uk",t.US="us"}(n||(n={}));var m=["uk","gb","gg","im","je","ie"],y={au:n.AU,nz:n.NZ,us:n.US,uk:n.UK,gb:n.UK,gg:n.UK,im:n.UK,je:n.UK,ie:n.UK},v={getCountryCode:function(t){return y[null==t?void 0:t.toLowerCase()]||n.US},isCountryCodeUK:function(t){return m.includes(t.toLowerCase())},isCountryCodeAU:function(t){return(null==t?void 0:t.toLowerCase())===n.AU},isCountryCodeUS:function(t){return(null==t?void 0:t.toLowerCase())===n.US},isCountryCodeNZ:function(t){return(null==t?void 0:t.toLowerCase())===n.NZ}},g={Marketing:{au:"https://www.clickview.com.au",uk:"https://www.clickview.co.uk",nz:"https://www.clickview.co.nz",us:"https://www.clickvieweducation.com"},Support:{au:"https://www.clickviewsupport.com/hc/en-au",uk:"https://www.clickviewsupport.com/hc/en-au#gb",nz:"https://www.clickviewsupport.com/hc/en-au#nz",us:"https://www.clickviewsupport.com/hc/en-au#us"}},b={getMarketingUrlForGeoLocation:function(t){var e=v.getCountryCode(null==t?void 0:t.countryCode);return g.Marketing[e]||g.Marketing.us},getMarketingSalesContactForGeoLocation:function(t){var e=v.getCountryCode(null==t?void 0:t.countryCode),r=this.getMarketingUrlForGeoLocation(t);return t&&e===n.NZ?r+"/contact-us/":r+"/contact-us/trial/"},getFreeResourcesForGeoLocation:function(t){var e=v.getCountryCode(null==t?void 0:t.countryCode);return e===n.NZ&&(e=n.AU),this.getMarketingUrlForGeoLocation({countryCode:e})+"/free-student-resources//"},getTermsAndConditionsLink:function(){return this.getMarketingUrlForGeoLocation(n.US)+"/terms-and-conditions/"},getPrivacyPolicyLink:function(){return this.getMarketingUrlForGeoLocation(n.US)+"/privacy-policy/"},getSupportUrlForGeoLocation:function(t){var e=v.getCountryCode(null==t?void 0:t.countryCode);return g.Support[e]||g.Support.us},getLoginLink:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.length?"".concat("/login","?redirectUrl=").concat(t):"/login"}};const w={crumb:"HuHpb"};function E(t,e){var r="rounded-circle mx-2 d-inline-block "+w.crumb,n=t===e?"bg-info":"bg-light";return"".concat(r," ").concat(n)}function x(t){return a().createElement("div",{className:"text-center"},t.crumbs.map((function(e){return a().createElement("div",{className:E(t.currentStep,e),key:e})})))}function S(t){return a().createElement("button",{onClick:t.onClick,className:"btn p-0 cursor-pointer d-inline-flex align-items-center"},a().createElement(p.x,{svgName:u.vn.ChevronLeft,size:p.S.Medium}),t.children)}var L=r(83345),j=r(49985),k=r(55460);function O(t){var e=t.href,r=t.className,n=t.newTab,a=t.children,i={onClick:function(r){var o;r.preventDefault(),null===(o=t.onClick)||void 0===o||o.call(t,r),t.analyticsData&&t.analyticsOptions&&j.k.logUserAction(Object.assign({href:e},t.analyticsData),t.analyticsOptions),k.LocationUtils.PageLoad(e,n)},href:e,className:r};return o.createElement("a",Object.assign({},i),a)}var N="signUp.general.termsAndConditions";function C(t){var e=b.getTermsAndConditionsLink(),r=b.getPrivacyPolicyLink();return a().createElement("span",{className:"text-center text-md mt-2 text-normal"},a().createElement(L.x,{phrase:"textSignup",namespace:N}),a().createElement("br",null),a().createElement(O,{href:e,onClick:t.onClickTermsAndConditions,className:"info-link",newTab:!0},a().createElement(L.x,{phrase:"termsAndConditions",namespace:N}))," ",a().createElement(L.x,{phrase:"and",namespace:N})," ",a().createElement(O,{href:r,onClick:t.onClickPrivacyPolicy,className:"info-link",newTab:!0},a().createElement(L.x,{phrase:"privacyPolicy",namespace:N})))}var A="signUp.general.existingAccountSignIn";function T(t){return a().createElement(a().Fragment,null,a().createElement(L.x,{phrase:"text",namespace:A}),a().createElement(O,{href:t.link,onClick:t.onClick,className:"info-link ml-1"},a().createElement(L.x,{phrase:"link",namespace:A})))}var P=r(26392);U.defaultProps={showBackButton:!0};var I=["enter-email","find-school"],_=["enter-email","find-school","cant-find-school","add-to-braze","enter-age"];function U(t){var e=t.currentStep,r=t.previousStep,n=t.hasPreviousStep,o=t.showBackButton,i=t.closeApp,c=t.children;function m(){return["enter-email","find-school","cant-find-school","add-to-braze","enter-age"].includes(e)}function y(){r(),t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.Back,workflowPhase:l.WorkflowPhase.Back})}var v=_.includes(t.currentStep),g=v?"".concat(P.Z.leftHalfLayout," ").concat(P.Z.withBg):P.Z.leftHalfLayout;return a().createElement("div",{className:g},a().createElement("div",{className:"row mx-0 p-3"},a().createElement("div",{className:"col px-0 d-lg-none ".concat(P.Z.popupButton)},n&&m()&&o&&a().createElement(S,{onClick:y})),a().createElement("div",{className:"col col-lg-6 px-0"},a().createElement("div",{className:P.Z.logo},a().createElement("div",{className:"d-none d-lg-block"},v?a().createElement(f.Yo,null):a().createElement(f.$S,null)),a().createElement("div",{className:"d-block d-lg-none"},a().createElement(f.$S,null)))),a().createElement("div",{className:"col col-lg-6 d-flex flex-row justify-content-between px-0"},a().createElement("div",{className:"px-3"},a().createElement("div",{className:"d-none d-lg-block ".concat(P.Z.popupButton)},n&&m()&&o&&a().createElement(S,{onClick:y}))),a().createElement(s.L,{onClick:i,className:P.Z.popupButton},a().createElement(p.x,{svgName:u.vn.Close,size:p.S.Medium})))),a().createElement("div",{className:"row mx-0 flex-grow-1"},v&&a().createElement("div",{className:"col-6 px-0 d-none d-lg-block"},a().createElement("div",{className:"h-100 d-flex align-items-center justify-content-center"},a().createElement("img",{src:h.W.SignUp.POPUP_DASHBOARD,className:"w-100 p-4 pb-5"}))),a().createElement("div",{className:"px-4 pt-0 pb-4 ".concat(v?"col-12 col-lg-6":"col-12")},a().createElement("div",{className:"d-flex flex-column h-100"},I.includes(t.currentStep)&&a().createElement("div",{className:"mb-2"},a().createElement(x,{crumbs:I,currentStep:e})),a().createElement("div",{className:"flex-grow-1"},c),a().createElement("div",{className:"text-center"},"select-type"===e&&a().createElement(T,{link:b.getLoginLink(d._.getRelativeUrl()),onClick:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.SignIn})}}),["enter-email","add-to-braze"].includes(e)&&a().createElement(C,{onClickTermsAndConditions:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.TermsAndConditions})},onClickPrivacyPolicy:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.PrivacyPolicy})}}))))))}const F={fullPageLayout:"Ct4Ij",logo:"RcL6k",maxWidth42rem:"ifgIL",maxWidth23rem:"VkYGJ",maxWidth30rem:"LFZms"};M.defaultProps={showBackButton:!0};var G,D=["select-type","enter-email","find-school"];function M(t){var e=t.currentStep,r=t.previousStep,n=t.hasPreviousStep,o=t.showBackButton,i=t.children;return a().createElement("div",{className:"d-flex flex-column justify-content-between px-4 py-0 ".concat(F.fullPageLayout)},a().createElement("div",{className:"mt-3 mb-2"},D.includes(e)&&a().createElement(x,{crumbs:D,currentStep:e})),a().createElement("div",{className:"position-relative mx-auto w-100 ".concat("select-type"===e?F.maxWidth42rem:["enter-email","find-school","cant-find-school","add-to-braze","enter-age"].includes(e)?F.maxWidth23rem:F.maxWidth30rem)},a().createElement("div",{className:"d-flex flex-row justify-content-center align-items-center mt-2 mb-3"},n&&o&&["enter-email","find-school","cant-find-school","add-to-braze","enter-age"].includes(e)&&a().createElement(S,{onClick:function(){r(),t.logUserAction({step:e},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.Back,workflowPhase:l.WorkflowPhase.Back})}}),a().createElement("div",{className:"d-flex justify-content-center align-items-center px-2 ".concat(F.logo)},a().createElement(f.$S,null))),i),a().createElement("div",{className:"position-relative mb-4 text-center"},"select-type"===e&&a().createElement(T,{link:b.getLoginLink(),onClick:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.SignIn})}}),["enter-email","find-school","add-to-braze"].includes(e)&&a().createElement(C,{onClickTermsAndConditions:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.TermsAndConditions})},onClickPrivacyPolicy:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.PrivacyPolicy})}})))}function K(t){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},K(t)}function R(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==K(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==K(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===K(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var B,z,$={"cant-find-school":U,"enter-email":U,"find-school":U,"select-type":U,completed:U,"add-to-braze":U,"enter-age":U},H={"cant-find-school":M,"enter-email":M,"find-school":M,"select-type":M,completed:M,"add-to-braze":M,"enter-age":M},Y=(R(G={},c.c.FullPage,H),R(G,c.c.Popup,$),G),W={getLayouts:function(t){return Y[t]}};function Z(t,e){return e?"".concat(t," ").concat(e):t}!function(t){t.Unavailable="unavailable",t.Expired="expired",t.Active="active",t.NotRequired="not-required",t.Available="available",t.Unsupported="unsupported"}(B||(B={})),function(t){t.InvalidEmail="invalid-email"}(z||(z={}));var q,J={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 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 Q(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==V(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==V(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===V(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var X=(Q(q={},B.Available,h.W.SignUp.VERIFY_ACCOUNT),Q(q,B.Active,h.W.SignUp.EXISTING_CUSTOMER),Q(q,B.Expired,h.W.SignUp.EXPIRED_TRIAL),Q(q,B.NotRequired,h.W.SignUp.EXISTING_CUSTOMER),Q(q,B.Unavailable,h.W.SignUp.NOT_AVAILABLE),Q(q,B.Unsupported,h.W.SignUp.NOT_AVAILABLE),q);function tt(t){return a().createElement("div",{className:"d-flex justify-content-center my-4 px-2 px-lg-4"},a().createElement("img",{src:X[t.trialStatus],className:"w-100 h-auto"}))}var et="signUp.completedStepItem.addedToBraze",rt="young-student",nt="signUp.youngStudent",ot="signUp.completedStepItem.unsupported",at="signUp.completedStepItem.expiredTrial",it=r(99940),ct=r(15661);function lt(t){return lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lt(t)}function ut(){ut=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new j(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==lt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var st=function(t,e,r,n){return new(r||(r=Promise))((function(o,a){function i(t){try{l(n.next(t))}catch(t){a(t)}}function c(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,c)}l((n=n.apply(t,e||[])).next())}))},ft={checkTrialStatus:function(t){return st(this,void 0,void 0,ut().mark((function e(){var r;return ut().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={email:t.email},e.abrupt("return",ct.b.asyncFetch({url:"/api/user/trials/status",data:r}));case 2:case"end":return e.stop()}}),e)})))},checkProspectTrialStatus:function(t,e,r,n){var o="/api/user/trials/prospect/".concat(t.prospectId,"/status");ct.b.fetch({url:o,success:e,error:r,always:n})},createTrial:function(t){return st(this,void 0,void 0,ut().mark((function e(){var r;return ut().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={prospectId:t.prospectId,firstName:"Trial",surname:"User",email:t.email,userType:t.userType,accessPolicy:t.accessPolicy,appLink:null==t?void 0:t.appLink},e.abrupt("return",ct.b.asyncFetch({url:"/api/user/trials",method:it.k.POST,data:r}));case 2:case"end":return e.stop()}}),e)})))},resendTrialEmail:function(t,e){return st(this,void 0,void 0,ut().mark((function r(){var n;return ut().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={email:e.email,appLink:null==e?void 0:e.appLink},r.abrupt("return",ct.b.asyncFetch({url:"/api/user/trials/users/".concat(t,"/send-activation-email"),method:it.k.POST,data:n}));case 2:case"end":return r.stop()}}),r)})))}};function pt(t){return pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pt(t)}function ht(){ht=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new j(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==pt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function dt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return mt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var yt="signUp.completedStepItem.verifyAccount",vt="signUp.completedStepItem.existingCustomer";function gt(t){var e=(null==t?void 0:t.previousStepIds)&&"find-school"===t.previousStepIds[t.previousStepIds.length-1],r=(null==t?void 0:t.schoolName)||"Your school";return a().createElement(J.Body,{className:"mb-3"},a().createElement(J.Heading,null,a().createElement(L.x,{namespace:vt,phrase:"heading"})),a().createElement(J.Message,null,e?a().createElement(L.x,{phrase:"schoolMessageTitle",namespace:vt,options:{school:r}}):a().createElement(L.x,{phrase:"userMessageTitle",namespace:vt})),a().createElement(J.Message,null,e?a().createElement(L.x,{phrase:"schoolMessageParagraph",namespace:vt}):a().createElement("a",{href:b.getLoginLink(d._.getRelativeUrl()),className:"btn btn-dark btn-lg w-100"},a().createElement(L.x,{phrase:"signIn",namespace:vt}))),a().createElement(J.Message,null,a().createElement(L.x,{phrase:"helpText",namespace:vt})," ",a().createElement(O,{href:b.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link",newTab:!0},a().createElement(L.x,{phrase:"helpLink",namespace:vt}))))}var bt,wt="signUp.completedStepItem.trialNotAvailable";function Et(t){return Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Et(t)}function xt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Et(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Et(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Et(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var St=(xt(bt={},B.Available,(function(t){var e=dt(a().useState(0),2),r=e[0],n=e[1],o=dt(a().useState(!1),2),i=o[0],c=o[1];if(null==t?void 0:t.email)return a().createElement(J.Body,null,a().createElement(J.Heading,null,a().createElement(L.x,{namespace:yt,phrase:"heading"})),a().createElement(J.Message,null,a().createElement(L.x,{namespace:yt,phrase:"message",options:{email:t.email}})),r<1?a().createElement(J.Message,null,a().createElement(L.x,{namespace:yt,phrase:"helpText"})," ",a().createElement("button",{onClick:function(e){return o=this,a=void 0,i=void 0,u=ht().mark((function o(){return ht().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return null==e||e.preventDefault(),o.prev=1,o.next=4,ft.resendTrialEmail(t.userId,{email:t.email,appLink:t.pageAppLinkString});case 4:n(r+1),o.next=10;break;case 7:o.prev=7,o.t0=o.catch(1),c(!0);case 10:t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.ResendEmail});case 11:case"end":return o.stop()}}),o,null,[[1,7]])})),new(i||(i=Promise))((function(t,e){function r(t){try{c(u.next(t))}catch(t){e(t)}}function n(t){try{c(u.throw(t))}catch(t){e(t)}}function c(e){var o;e.done?t(e.value):(o=e.value,o instanceof i?o:new i((function(t){t(o)}))).then(r,n)}c((u=u.apply(o,a||[])).next())}));var o,a,i,u},className:"btn info-link p-0"},a().createElement(L.x,{namespace:yt,phrase:"helpLink"}))):a().createElement(L.x,{namespace:yt,phrase:"resent"}),i&&a().createElement(J.Message,{className:"mb-0 text-danger"},a().createElement(L.x,{namespace:yt,phrase:"resendErrorText"})," ",a().createElement("a",{href:b.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link"},a().createElement(L.x,{namespace:yt,phrase:"resendErrorLink"}))))})),xt(bt,B.Active,gt),xt(bt,B.Expired,(function(t){var e=b.getMarketingSalesContactForGeoLocation(t.geoLocation),r=(null==t?void 0:t.previousStepIds)&&"find-school"===t.previousStepIds[t.previousStepIds.length-1],n=(null==t?void 0:t.schoolName)||"Your school";return a().createElement(J.Body,null,a().createElement(J.Heading,null,r?a().createElement(L.x,{namespace:at,phrase:"schoolMessageTitle",options:{schoolName:n}}):a().createElement(L.x,{namespace:at,phrase:"userMessageTitle"})),a().createElement(J.Message,null,a().createElement(L.x,{namespace:at,phrase:"context"})," ",a().createElement(O,{href:e,className:"info-link",newTab:!0},a().createElement(L.x,{namespace:at,phrase:"contextLink"}))))})),xt(bt,B.NotRequired,gt),xt(bt,B.Unavailable,(function(t){var e=b.getMarketingSalesContactForGeoLocation(t.geoLocation);return a().createElement(J.Body,null,a().createElement(J.Heading,null,a().createElement(L.x,{namespace:wt,phrase:"heading"})),a().createElement(J.Message,null,a().createElement(L.x,{namespace:wt,phrase:"helpText",options:{link:e}})))})),xt(bt,B.Unsupported,(function(){return a().createElement(J.Body,null,a().createElement(J.Heading,{className:"px-2 px-lg-4"},a().createElement(L.x,{namespace:ot,phrase:"schoolMessageTitle"})),a().createElement(J.Message,null,a().createElement(L.x,{namespace:ot,phrase:"schoolMessageDescription"})))})),bt);function Lt(t){var e=St[t.trialStatus];return a().createElement(e,Object.assign({},t))}var jt={"trial-status":function(t){return a().useEffect((function(){var e={actionType:l.UserAction.Create,descriptor:l.SignUpDescriptors.DeadEnd,workflowPhase:l.WorkflowPhase.Discard};t.trialCreated&&(e.descriptor=l.SignUpDescriptors.TrialCreated,e.workflowPhase=l.WorkflowPhase.Complete),t.logUserAction({},e)}),[]),a().createElement(a().Fragment,null,a().createElement(tt,{trialStatus:t.trialStatus}),a().createElement(Lt,Object.assign({},t)))},"added-to-braze":function(){return a().createElement(a().Fragment,null,a().createElement(tt,{trialStatus:B.Available}),a().createElement(J.Body,{className:"mb-3"},a().createElement(J.Heading,null,a().createElement(L.x,{namespace:et,phrase:"heading"})),a().createElement(J.Message,null,a().createElement(L.x,{namespace:et,phrase:"message"}))))},"young-student":function(t){var e=b.getFreeResourcesForGeoLocation(t.geoLocation);return a().useEffect((function(){i.SG.set(rt,!0)}),[]),a().createElement(a().Fragment,null,a().createElement(tt,{trialStatus:B.Active}),a().createElement(J.Body,{className:"mb-3"},a().createElement(J.Heading,null,a().createElement(L.x,{namespace:nt,phrase:"heading"})),a().createElement(J.Message,null,a().createElement(L.x,{namespace:nt,phrase:"message"})),a().createElement(O,{href:e,className:"btn btn-lg btn-dark w-100"},a().createElement(L.x,{namespace:nt,phrase:"cta"}))))}},kt=r(23481),Ot=r(2102);var Nt,Ct=a().forwardRef((function(t,e){var r=t.onClickClear,n=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}(t,["onClickClear"]);return a().createElement("div",{className:"position-relative"},a().createElement("input",Object.assign({},n,{ref:e,className:"".concat(t.className," ").concat("LprCJ")})),!!t.value&&a().createElement("span",{className:"".concat("Xv1sR"," position-absolute cursor-pointer text-muted"),role:"button",onClick:r},a().createElement(p.x,{svgName:u.vn.Close,size:p.S.Medium})))}));function At(t){return At="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},At(t)}function Tt(){Tt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new j(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==At(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Pt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return It(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?It(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function It(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _t(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==At(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==At(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===At(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ut=new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/),Ft="signUp.enterEmailStepItem",Gt=kt.T.encloseNamespace(Ft),Dt=(_t(Nt={},n.AU,"valerie.frizzle@school.edu.au"),_t(Nt,n.UK,"valerie.frizzle@school.gov.uk"),_t(Nt,n.US,"valerie.frizzle@school.gov"),_t(Nt,n.NZ,"valerie.frizzle@school.nz"),Nt);function Mt(t){return Dt[v.getCountryCode(t.countryCode)]||Dt.us}var Kt,Rt=[B.Expired,B.NotRequired,B.Unavailable,B.Unsupported,B.Active];!function(t){t.Staff="staff",t.Learner="learner"}(Kt||(Kt={}));var Bt=r(33003),zt=r.n(Bt),$t=r(63093);function Ht(t){return Ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ht(t)}function Yt(){Yt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new j(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Ht(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var Wt=function(t,e,r,n){return new(r||(r=Promise))((function(o,a){function i(t){try{l(n.next(t))}catch(t){a(t)}}function c(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,c)}l((n=n.apply(t,e||[])).next())}))},Zt={config:function(){return Wt(this,void 0,void 0,Yt().mark((function t(){return Yt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",ct.b.asyncFetch({url:"/api/config"}));case 1:case"end":return t.stop()}}),t)})))},version:function(){return Wt(this,void 0,void 0,Yt().mark((function t(){return Yt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",ct.b.asyncFetchPlain({url:"/api/version"}));case 1:case"end":return t.stop()}}),t)})))}};function qt(t){return qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qt(t)}function Jt(){Jt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new j(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==qt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var Vt=function(t,e,r,n){return new(r||(r=Promise))((function(o,a){function i(t){try{l(n.next(t))}catch(t){a(t)}}function c(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,c)}l((n=n.apply(t,e||[])).next())}))},Qt={au:"cv-ap-southeast-1",uk:"cv-eu-west-1",us:"cv-ap-southeast-1",nz:"cv-ap-southeast-1"},Xt={k12:"Primary & Secondary"},te={getConfig:function(){return Vt(this,void 0,void 0,Jt().mark((function t(){return Jt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Zt.config();case 2:return t.t0=t.sent,t.next=5,Zt.version();case 5:return t.t1=t.sent,t.abrupt("return",{config:t.t0,version:t.t1});case 7:case"end":return t.stop()}}),t)})))},getClient:function(t){return Vt(this,void 0,void 0,Jt().mark((function e(){var r,n,o,a,i;return Jt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,te.getConfig();case 2:return r=e.sent,n=r.config,o=r.version,a=v.getCountryCode(null==t?void 0:t.countryCode),i=n.braze[Qt[a]],e.abrupt("return",(0,$t.getInstance)({baseUrl:i.url,apiKey:i.apiKey,productVersion:o,productName:"lite.web",enableLogging:!1,automaticallyShowInAppMessages:!1}));case 8:case"end":return e.stop()}}),e)})))},hashedEmail:function(t){var e=t.trim().toLowerCase();return zt().hash(e)},removeEmptyKeys:function(t){var e=Object.assign({},t);return Object.keys(e).forEach((function(t){null!==e[t]&&void 0!==e[t]&&("string"!=typeof e[t]||e[t].length)||delete e[t]})),e},getEventTopic:function(){return"Free Trial Request"},getCustomEventType:function(){return"product_trial_requested"},getSchoolType:function(t){if(t)return Xt[t.toLowerCase()]||t}},ee=["Teacher","Librarian","Curriculum Coordinator","Digital Technology Coordinator","IT","Head of Department","Deputy Principal","Principal"],re=["Teacher","Librarian","Head of department","Curriculum coordinator","School leadership","District leadership","Academic coach","Instructional technology specialist","Consortium leadership","IT"],ne={au:ee,nz:ee,uk:["Teacher","Librarian","IT/LRC","e-Learning/ICT Coordinator","Head of Key Stage","Head of Department","Subject Lead","Assistant Head Teacher","Deputy Tead Teacher","Head Teacher"],us:re};function oe(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ae(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ae(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ae(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var ie=kt.T.encloseNamespace("signUp.addToBrazeStepItem"),ce="OTHER";function le(t){var e=t.error,r=t.onChange,n=t.countryCode,o=oe(a().useState(""),2),i=o[0],c=o[1],l=oe(a().useState(""),2),u=l[0],s=l[1],f=function(t){return ne[t]||re}(n),p=i===ce;return a().createElement(a().Fragment,null,a().createElement("div",{className:"mb-2"},a().createElement("select",{id:t.id,name:t.id,className:"form-control form-control-lg ".concat(i.length?"text-dark":"text-secondary"," ").concat(!!e&&"is-invalid"),value:i,placeholder:"Role",onChange:function(t){c(t.target.value),s(""),r(t.target.value===ce?"":t.target.value)}},a().createElement("option",{value:"",disabled:!0,className:"text-muted"},ie("placeholderJobTitle")),f.map((function(t,e){return a().createElement("option",{value:t,className:"text-dark",key:e},t)})),a().createElement("option",{value:ce,className:"text-dark"},"Other")),!!e&&!p&&a().createElement("div",{className:"invalid-feedback"},e)),p&&a().createElement("div",{className:"mb-3"},a().createElement("input",{className:"form-control form-control-lg ".concat(!!e&&"is-invalid"),type:"text",value:u,placeholder:ie("placeholderJobTitle"),autoFocus:!0,onChange:function(t){s(t.target.value),r(t.target.value)}}),!!e&&a().createElement("div",{className:"invalid-feedback"},e)))}function ue(t){return ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ue(t)}function se(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var fe="signUp.addToBrazeStepItem",pe=kt.T.encloseNamespace(fe);function he(t){var e,r,n,o,i,c,l,u,s,f=(u=a().useState({fullname:"",jobTitle:"",phone:""}),s=2,function(t){if(Array.isArray(t))return t}(u)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(u,s)||function(t,e){if(t){if("string"==typeof t)return se(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?se(t,e):void 0}}(u,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=f[0],h=f[1];function d(t,e){h((function(r){return Object.assign(Object.assign({},r),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==ue(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==ue(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===ue(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},t,e))}))}return a().createElement("div",{className:"text-center"},a().createElement("h1",{className:"text-center h4"},a().createElement(L.x,{namespace:fe,phrase:"formHeading"})),a().createElement("p",null,a().createElement(L.x,{namespace:fe,phrase:"formSubHeading"})),a().createElement("form",{onSubmit:function(e){e.preventDefault(),t.handleSubmitForm(p)}},a().createElement("div",{className:"form-group text-left"},a().createElement("label",{className:"d-block font-weight-bold mb-1",htmlFor:"fullname-input"},a().createElement(L.x,{namespace:fe,phrase:"labelFullName"})),a().createElement(Ct,{value:p.fullname,onChange:function(e){e.preventDefault(),d("fullname",e.target.value),t.removeErrorForKey("fullname"),t.removeErrorForKey("submission")},name:"fullname-input",id:"fullname-input",type:"text",className:"form-control form-control-lg ".concat((null===(e=t.errors.fullname)||void 0===e?void 0:e.length)?"is-invalid":""),placeholder:pe("placeholderFullName"),onClickClear:function(){d("fullname",""),t.removeErrorForKey("fullname"),t.removeErrorForKey("submission")},autoFocus:!0}),t.errors.fullname&&a().createElement("div",{className:"invalid-feedback d-block"},t.errors.fullname)),a().createElement("div",{className:"form-group text-left"},a().createElement("label",{className:"d-block font-weight-bold mb-1",htmlFor:"phone-input"},a().createElement(L.x,{namespace:fe,phrase:"labelPhone"})),a().createElement(Ct,{value:p.phone,onChange:function(e){e.preventDefault(),d("phone",e.target.value.trim()),t.removeErrorForKey("phone"),t.removeErrorForKey("submission")},name:"phone-input",id:"phone-input",type:"tel",className:"form-control form-control-lg ".concat((null===(r=t.errors.phone)||void 0===r?void 0:r.length)?"is-invalid":""),placeholder:pe("placeholderPhone"),onClickClear:function(){d("phone",""),t.removeErrorForKey("phone"),t.removeErrorForKey("submission")}}),t.errors.phone&&a().createElement("div",{className:"invalid-feedback d-block"},t.errors.phone)),a().createElement("div",{className:"form-group text-left"},a().createElement("label",{className:"d-block font-weight-bold mb-1",htmlFor:"jobTitle-select"},a().createElement(L.x,{namespace:fe,phrase:"labelJobTitle"})),a().createElement(le,{id:"jobTitle-select",countryCode:v.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(Ot.m,{className:"btn btn-dark btn-lg w-100",onClick:function(){return t.handleSubmitForm(p)},showSpinner:t.loading,disabled:t.loading||(i=p.fullname,c=p.jobTitle,l=p.phone,!(i.length&&c.length&&l.length&&!Object.keys(t.errors).length))},a().createElement(L.x,{namespace:fe,phrase:"formSubmitButton"})))))}function de(t){return de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},de(t)}function me(){me=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new j(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==de(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function ye(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ve(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ve(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ve(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var ge,be=255,we=/\$+[\w\s]?/,Ee=/^\+?\d{4,255}$/,xe=kt.T.encloseNamespace("signUp.addToBrazeStepItem");function Se(t){if(!t)return{firstName:"",surname:""};var e=t.split(" ").filter((function(t){return t.length}));return{firstName:e.shift(),surname:e.join(" ")}}!function(t){t.FourteenDays="trial_14_v1",t.Freemium="freemium_v1"}(ge||(ge={}));var Le=function(t){return v.isCountryCodeUS(t)||v.isCountryCodeUK(t)?ge.Freemium:ge.FourteenDays},je=r(99910),ke=r(28329);function Oe(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ne(t){var e,r,n=(e=a().useState(0),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return Oe(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Oe(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=n[0],i=n[1],c=a().useRef();function l(){var t;c.current&&(null===(t=c.current.children[o-1])||void 0===t||t.scrollIntoView({block:"center"}))}return{selectedIndex:o,onKeyDown:function(e){if("ArrowDown"===e.code){e.stopPropagation(),e.preventDefault();var r=o+1;return r>t.itemCount&&(r=1),i(r),void l()}if("ArrowUp"===e.code){e.stopPropagation(),e.preventDefault();var n=o-1;return n<=0&&(n=t.itemCount),i(n),void l()}if("Enter"===e.code&&o>0)return e.stopPropagation(),e.preventDefault(),void t.onSelected(o-1);i(0)},containerRef:c}}function Ce(t){return Ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ce(t)}function Ae(){Ae=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new j(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Ce(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var Te={search:function(t,e,r,n){var o={Longitude:t.longitude,Latitude:t.latitude};t.query&&(o.Query=t.query),ct.b.fetch({url:"/api/prospects/search",data:o,success:e,error:r,always:n})},create:function(t){return e=this,r=void 0,n=void 0,o=Ae().mark((function e(){return Ae().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",ct.b.asyncFetch({url:"/api/prospects",method:it.k.POST,data:t}));case 1:case"end":return e.stop()}}),e)})),new(n||(n=Promise))((function(t,a){function i(t){try{l(o.next(t))}catch(t){a(t)}}function c(t){try{l(o.throw(t))}catch(t){a(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(t){t(r)}))).then(i,c)}l((o=o.apply(e,r||[])).next())}));var e,r,n,o}};const Pe={baseText:"zCAkp",inputFocused:"hQufn",input:"j8tBX",suggestionContainer:"CnoBz",noBottomBorder:"E3f3x",localitySuggestion:"TGAhk",suggestionItem:"GQ_aO",suggestionLoading:"Eo2UF",noSuggestion:"xaEZw",selected:"mxCSz"};function Ie(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return _e(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_e(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _e(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Ue="signUp.searchSchoolStepItem",Fe=kt.T.encloseNamespace(Ue);function Ge(t){var e=t.filteredSchoolsList,r=t.getSchoolName,n=t.onSchoolSuggestionClick,o=t.selectedIndex;return a().createElement(a().Fragment,null,e.map((function(t,e){return a().createElement(s.L,{className:"".concat(Pe.suggestionItem," ").concat(o-1===e?Pe.selected:""),key:t.id,onClick:function(){return n(t)}},r(t))})))}function De(t){return a().createElement("div",{className:"info-link ".concat(Pe.suggestionItem," ").concat(Pe.noSuggestion," ").concat(t.selected?Pe.selected:""),onClick:t.handleNoSuggestion},a().createElement(L.x,{namespace:Ue,phrase:"cantFindSchool"}))}function Me(t){var e,r,n=a().useRef(),o=Ie(a().useState(!0),2),i=o[0],c=o[1],u=Ie(a().useState(t.data.schoolName&&t.data.schoolPostCode?t.data.schoolName+", "+t.data.schoolPostCode:t.data.schoolName?t.data.schoolName:""),2),s=u[0],f=u[1],p=Ie(a().useState(),2),h=p[0],d=p[1],m=(0,ke.N)(s,250),y=Ne({onSelected:function(t){if(h||t)if(t!==h.length){var e=h[t];e&&k(e)}else N()},itemCount:null!==(e=(null==h?void 0:h.length)+1)&&void 0!==e?e:0}),v=y.selectedIndex,g=y.onKeyDown,b=y.containerRef,w=!!(null===(r=t.data)||void 0===r?void 0:r.prospectId),E=i&&!w,x=!i&&!w&&!(null==h?void 0:h.length),S=(null==h?void 0:h.length)&&!w;function L(e){(t.data.schoolName||t.data.prospectId)&&t.clearStepItemData(),e!==s&&f(e)}function j(e){c(!0);var r={latitude:t.data.latitude,longitude:t.data.longitude};e&&e.length&&(r.query=e),Te.search(r,(function(t){return d(t)}),null,(function(){return c(!1)}))}function k(e){f(O(e)),t.setDataProperty("prospectId",e.id),t.setDataProperty("schoolName",e.name),t.setDataProperty("schoolPostCode",e.postCode),t.setDataProperty("schoolType",e.prospectType),t.setDataProperty("province",e.province),t.setDataProperty("city",e.city),t.setDataProperty("country",e.countryCode)}function O(t){return t.name}function N(){t.nextStep({step:"cant-find-school",prospectId:t.data.prospectId,schoolName:s,schoolLocality:t.data.schoolLocality,longitude:t.data.longitude,latitude:t.data.latitude,country:t.data.country,city:t.data.city,province:t.data.province}),t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.CantFindSchool,workflowPhase:l.WorkflowPhase.Next})}a().useEffect((function(){w||(m.length?!w&&m.length>1&&m===s&&j(m):j())}),[m,w]);var C=S||E||x;return a().createElement("div",{className:"form-group position-relative"},a().createElement(Ct,{value:s,onChange:function(t){return L(t.currentTarget.value)},ref:n,className:"form-control form-control-lg ".concat(C?Pe.inputFocused:Pe.input),type:"text",autoComplete:"off",placeholder:Fe("schoolInputPlaceholder"),disabled:t.disabled,autoFocus:!0,onClickClear:function(){L(""),n.current.focus()},onKeyDown:g}),a().createElement("div",{className:"position-absolute w-100"},a().createElement("div",{className:"".concat(Pe.suggestionContainer," ").concat(C?"":"d-none"),ref:b},S?a().createElement(Ge,{filteredSchoolsList:h,onSchoolSuggestionClick:k,getSchoolName:O,selectedIndex:v}):E&&a().createElement("div",{className:"".concat(Pe.suggestionLoading," py-4 d-flex justify-content-center")},a().createElement(je.Spinner,{animation:"border"})),!E&&a().createElement(De,{selected:v===h.length+1,handleNoSuggestion:N}))))}var Ke=r(10874),Re=function t(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){if(e.constructor!==r.constructor)return!1;var n,o,a;if(Array.isArray(e)){if((n=e.length)!=r.length)return!1;for(o=n;0!=o--;)if(!t(e[o],r[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if((n=(a=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,a[o]))return!1;for(o=n;0!=o--;){var i=a[o];if(!t(e[i],r[i]))return!1}return!0}return e!=e&&r!=r};const Be="__googleMapsScriptId";var ze;!function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"}(ze||(ze={}));class $e{constructor({apiKey:t,authReferrerPolicy:e,channel:r,client:n,id:o=Be,language:a,libraries:i=[],mapIds:c,nonce:l,region:u,retries:s=3,url:f="https://maps.googleapis.com/maps/api/js",version:p}){if(this.CALLBACK="__googleMapsCallback",this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=e,this.channel=r,this.client=n,this.id=o||Be,this.language=a,this.libraries=i,this.mapIds=c,this.nonce=l,this.region=u,this.retries=s,this.url=f,this.version=p,$e.instance){if(!Re(this.options,$e.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify($e.instance.options)}`);return $e.instance}$e.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?ze.FAILURE:this.done?ze.SUCCESS:this.loading?ze.LOADING:ze.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let t=this.url;return t+=`?callback=${this.CALLBACK}`,this.apiKey&&(t+=`&key=${this.apiKey}`),this.channel&&(t+=`&channel=${this.channel}`),this.client&&(t+=`&client=${this.client}`),this.libraries.length>0&&(t+=`&libraries=${this.libraries.join(",")}`),this.language&&(t+=`&language=${this.language}`),this.region&&(t+=`®ion=${this.region}`),this.version&&(t+=`&v=${this.version}`),this.mapIds&&(t+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(t+=`&auth_referrer_policy=${this.authReferrerPolicy}`),t}deleteScript(){const t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise(((t,e)=>{this.loadCallback((r=>{r?e(r.error):t(window.google)}))}))}loadCallback(t){this.callbacks.push(t),this.execute()}setScript(){if(document.getElementById(this.id))return void this.callback();const t=this.createUrl(),e=document.createElement("script");e.id=this.id,e.type="text/javascript",e.src=t,e.onerror=this.loadErrorCallback.bind(this),e.defer=!0,e.async=!0,this.nonce&&(e.nonce=this.nonce),document.head.appendChild(e)}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(t){if(this.errors.push(t),this.errors.length<=this.retries){const t=this.errors.length*Math.pow(2,this.errors.length);console.log(`Failed to load Google Maps script, retrying in ${t} ms.`),setTimeout((()=>{this.deleteScript(),this.setScript()}),t)}else this.onerrorEvent=t,this.callback()}setCallback(){window.__googleMapsCallback=this.callback.bind(this)}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach((t=>{t(this.onerrorEvent)})),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),void this.callback();this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}}function He(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Ye(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ye(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ye(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function We(t){return new $e({apiKey:t.apiKey,version:"weekly",libraries:t.libraries,retries:3})}function Ze(t){var e={apiKey:t.apiKey,libraries:t.libraries||["places"]},r=He(a().useState(!1),2),n=r[0],o=r[1],i=He(a().useState(We(e)),2),c=i[0],l=i[1];function u(t,r){c?c.loadCallback((function(e){if(e)return o(!1),void(r&&r(e));o(!0),t&&t()})):l(We(e))}return a().useEffect((function(){u()}),[]),{loader:c,scriptLoaded:n,onGoogleApiReady:u}}function qe(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return Je(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Je(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function Je(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Ve={getPlaceDetails:function(t){var e,r,n,o,a,i=t.formatted_address,c=qe(t.address_components);try{for(c.s();!(a=c.n()).done;){var l,u=a.value,s=qe(u.types);try{for(s.s();!(l=s.n()).done;){var f=l.value;"locality"===f&&(e=u.short_name),"administrative_area_level_1"===f&&(r=u.short_name),"postal_code"===f&&(o=u.short_name),"country"===f&&(n=u.short_name)}}catch(t){s.e(t)}finally{s.f()}}}catch(t){c.e(t)}finally{c.f()}return{locality:i,country:n,postalCode:o,city:e,province:r}}};function Qe(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Xe(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return tr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tr(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function er(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return rr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?rr(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var nr="signUp.searchSchoolStepItem",or=kt.T.encloseNamespace(nr);function ar(t){var e=t.predictions,r=t.getPlaceInfo,n=t.selectedIndex;return a().createElement(a().Fragment,null,e.map((function(t,e){return a().createElement(s.L,{className:"".concat(Pe.suggestionItem," ").concat(n-1===e?Pe.selected:""),key:t.place_id,onClick:function(){return r(t)}},t.description)})))}function ir(t){var e,r,n,o,i,c,f=a().useRef(),h=er(a().useState((null===(e=t.data)||void 0===e?void 0:e.schoolLocality)||""),2),d=h[0],m=h[1],y=er(a().useState(!1),2),g=y[0],b=y[1],w=function(t){var e=t.search,r=t.makePredicition,n=t.geoLocation,o=Ze({apiKey:t.apiKey}).scriptLoaded,i=Xe(a().useState(),2),c=i[0],l=i[1];a().useEffect((function(){o&&l(new google.maps.places.AutocompleteService)}),[o]);var u=(0,ke.N)(e,300),s=Xe(a().useState(),2),f=s[0],p=s[1];function h(t,e){e===google.maps.places.PlacesServiceStatus.OK&&t?p(t):p(void 0)}return a().useEffect((function(){if(c)if(0!==(null==u?void 0:u.length)&&r){var t=(null==n?void 0:n.countryCode)||"us";c.getPlacePredictions({input:u,componentRestrictions:{country:t},region:t,types:["locality","sublocality","postal_code"]},h)}else p(void 0)}),[u,r,c]),{localityPredicitions:f,getPlaceInfo:function(t,e,r){new google.maps.places.PlacesService(e.current).getDetails({placeId:t.place_id,fields:["geometry","address_components","formatted_address"],region:n.countryCode},(function(t,e){if(e===google.maps.places.PlacesServiceStatus.OK){var n=t.geometry.location.lng(),o=t.geometry.location.lat(),a=Ve.getPlaceDetails(t),i=a.locality,c=a.country,l=a.postalCode,u=a.city,s=a.province;r({longitude:n,latitude:o,locality:i,country:c,city:u,postalCode:l,province:s})}}))}}}({search:d,makePredicition:g,geoLocation:t.geoLocation,apiKey:t.googleMapsApiKey}),E=w.localityPredicitions,x=w.getPlaceInfo,S=function(t){var e,r,n=(e=a().useState({}),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return Qe(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Qe(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=n[0],i=n[1],c=Ze(t).onGoogleApiReady;function l(t){var e=t.coords,r=e.latitude,n=e.longitude,o=new google.maps.LatLng(r,n);(new google.maps.Geocoder).geocode({location:o},(function(t,e){if(e===google.maps.GeocoderStatus.OK){var o=t.find((function(t){return t.types.includes("locality")||t.types.includes("administrative_area_level_2")})),a=Ve.getPlaceDetails(o);i(Object.assign(Object.assign({},a),{longitude:n,latitude:r}))}}))}function u(e){t.onPositionError(e)}return{placeDetails:o,onClickGetCurrentLocation:function(){c((function(){window.navigator.geolocation.getCurrentPosition(l,u)}))}}}({apiKey:t.googleMapsApiKey,onPositionError:function(){b(!0)}}),j=S.placeDetails,k=S.onClickGetCurrentLocation,O=window.navigator.geolocation?1:0,N=Ne({onSelected:function(t){if(E)if(t!==E.length){var e=E[t];e&&_(e)}else U()},itemCount:null!==(r=(null==E?void 0:E.length)+O)&&void 0!==r?r:0}),C=N.selectedIndex,A=N.onKeyDown,T=N.containerRef;function P(e){var r,n,o;g||b(!0),((null===(r=t.data)||void 0===r?void 0:r.longitude)||(null===(n=t.data)||void 0===n?void 0:n.latitude)||(null===(o=t.data)||void 0===o?void 0:o.schoolLocality))&&t.clearStepGroupData(),m(e)}function I(e){var r=e.longitude,n=e.latitude,o=e.locality,a=e.country,i=e.city,c=e.province;r&&t.setDataProperty("longitude",r),n&&t.setDataProperty("latitude",n),a&&t.setDataProperty("country",a),i&&t.setDataProperty("city",i),c&&t.setDataProperty("province",c),o&&function(e){t.setDataProperty("schoolLocality",e),m(e)}(o)}function _(t){g&&b(!1),x(t,f,I)}function U(e){null==e||e.preventDefault(),b(!1),k(),t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.UseMyLocation})}a().useEffect((function(){I(j)}),[j]);var F,G=(null==E?void 0:E.length)&&!(null===(o=null===(n=t.data)||void 0===n?void 0:n.schoolLocality)||void 0===o?void 0:o.length),D=window.navigator.geolocation&&!(null===(c=null===(i=t.data)||void 0===i?void 0:i.schoolLocality)||void 0===c?void 0:c.length),M=t.labelClassName||"d-block text-center mb-3 font-weight-normal ".concat(Pe.baseText);return a().createElement("div",{className:"form-group position-relative"},a().createElement("label",{className:M,htmlFor:"locality-input"},a().createElement(L.x,{namespace:nr,phrase:"localityInputLabel"})),a().createElement(Ct,{type:"text",value:d,onChange:function(t){return P(t.currentTarget.value)},id:"locality-input",className:(F="form-control form-control-lg",G?"".concat(F," ").concat(Pe.inputFocused):"".concat(F," ").concat(Pe.input)),ref:f,autoComplete:"off",placeholder:or(function(){var e,r,n,o="LocalityInputPlaceholder";return v.isCountryCodeUK(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode)?"uk".concat(o):v.isCountryCodeAU(null===(r=t.geoLocation)||void 0===r?void 0:r.countryCode)||v.isCountryCodeNZ(null===(n=t.geoLocation)||void 0===n?void 0:n.countryCode)?"au".concat(o):"us".concat(o)}()),disabled:t.disabled,autoFocus:!0,onClickClear:function(){P(""),f.current.focus()},onKeyDown:A}),a().createElement("div",{className:"position-absolute w-100"},!!G&&a().createElement("div",{className:"".concat(Pe.suggestionContainer," ").concat(Pe.localitySuggestion),ref:T},a().createElement(ar,{predictions:E,getPlaceInfo:_,selectedIndex:C}),window.navigator.geolocation&&a().createElement(s.L,{className:"".concat(Pe.suggestionItem," px-1 ").concat(C-1===E.length?Pe.selected:""),onClick:U},a().createElement(Ke.h,{svgName:u.vn.LocationCrosshair,className:"btn btn-link info-link bg-transparent py-0 pr-1",svgSize:p.S.Small},a().createElement(L.x,{namespace:nr,phrase:"locationButtonText"})))),D&&!G&&a().createElement("div",{className:"d-flex"},a().createElement(Ke.h,{onClick:U,svgName:u.vn.LocationCrosshair,className:"btn btn-link info-link bg-white",svgSize:p.S.Small},a().createElement(L.x,{namespace:nr,phrase:"locationButtonText"})))))}function cr(t){return cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cr(t)}function lr(){lr=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new j(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==cr(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function ur(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return sr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?sr(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var fr="signUp.searchSchoolStepItem",pr=kt.T.encloseNamespace(fr);const hr={userTypeOption:"tbNZB",selected:"Ehs7R"};function dr(t){return a().createElement(s.L,{className:"\n d-flex\n flex-column\n justify-content-between\n h-100\n p-3\n border\n rounded\n rounded-lg\n mx-auto\n ".concat(hr.userTypeOption," ").concat(t.selected?hr.selected:""),onClick:function(){return t.onClick(t.type)}},a().createElement("img",{src:t.imageSrc,className:"rounded-top mx-auto pb-2"}),a().createElement("div",{className:"py-2"},a().createElement("span",{className:"h4"},t.buttonText)))}var mr,yr="signUp.selectUserTypeStepItem",vr=kt.T.encloseNamespace(yr);!function(t){t.Published="Published",t.Draft="Draft"}(mr||(mr={}));var gr=["Primary","Secondary","K12","Special","TAFE","University"],br=["Elementary","Middle School","High School","College","Other"],wr={au:gr,nz:gr,uk:["Primary","Secondary","Primary & Secondary","Special","Sixth Form College","FE College","University","Other"],us:br};function Er(t){return Er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Er(t)}function xr(){xr=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new j(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Er(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Sr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Lr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Lr(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var jr="signUp.cantFindSchoolStepItem",kr=kt.T.encloseNamespace(jr),Or=r(110);const Nr="QBvzz",Cr="Xnu80",Ar="fQ9t5";function Tr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Pr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Pr(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Ir="signUp.enterAgeStepItem",_r=kt.T.encloseNamespace(Ir);function Ur(t,e,r){return"".concat(t.padStart(4,"0"),"-").concat(e.padStart(2,"0"),"-").concat(r.padStart(2,"0"))}var Fr={"select-type":function(t){function e(e){t.logUserAction({userType:e},{actionType:l.UserAction.Click,workflowPhase:l.WorkflowPhase.Next,descriptor:e===Kt.Staff?l.SignUpDescriptors.Educator:l.SignUpDescriptors.Student}),e!==Kt.Staff?t.nextStep({step:"enter-age",userType:e}):t.nextStep({step:"enter-email",userType:e})}return a().createElement("div",{className:"text-center"},a().createElement("h1",{className:"h4"},a().createElement(L.x,{namespace:yr,phrase:"heading"})),a().createElement("p",null,a().createElement(L.x,{namespace:yr,phrase:"subHeading"})),a().createElement("div",{className:"row"},a().createElement("div",{className:"col-lg-6 mb-3"},a().createElement(dr,{type:Kt.Staff,buttonText:vr("educatorButtonText"),imageSrc:h.W.SignUp.EDUCATOR,onClick:e,selected:t.userType===Kt.Staff})),a().createElement("div",{className:"col-lg-6 mb-3"},a().createElement(dr,{type:Kt.Learner,buttonText:vr("studentButtonText"),imageSrc:h.W.SignUp.STUDENT,onClick:e,selected:t.userType===Kt.Learner}))))},"enter-email":function(t){var e,r,n=Pt(a().useState(!1),2),o=n[0],i=n[1],c=Pt(a().useState((null==t?void 0:t.email)||""),2),u=c[0],s=c[1],f=Pt(a().useState(),2),p=f[0],h=f[1],m=(e=t.geoLocation,r=b.getMarketingUrlForGeoLocation(e),"nz"===(null==e?void 0:e.countryCode)?r+"/contact-us/":r+"/contact-us/technical/");function y(e){null==e||e.preventDefault(),function(){var e,r,n,o;e=this,r=void 0,n=void 0,o=Tt().mark((function e(){var r;return Tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u.length?Ut.test(u)||(h(Gt("invalidEmailErrorText")),0):(h(Gt("enterEmailErrorText")),0)){e.next=2;break}return e.abrupt("return");case 2:return i(!0),h(""),e.prev=4,e.next=7,ft.checkTrialStatus({email:u});case 7:r=e.sent,e.next=14;break;case 10:return e.prev=10,e.t0=e.catch(4),h(Gt("trialStatusErrorText")),e.abrupt("return");case 14:if(i(!1),r.status!==z.InvalidEmail){e.next=18;break}return h(Gt("invalidEmailErrorText")),e.abrupt("return");case 18:if(t.logUserAction({},{actionType:l.UserAction.Click,workflowPhase:l.WorkflowPhase.Next,descriptor:l.SignUpDescriptors.EnterEmail}),!Rt.includes(r.status)){e.next=22;break}return t.complete({completionStep:"trial-status",email:u,trialStatus:r.status,trialCreated:!1}),e.abrupt("return");case 22:t.nextStep({step:"find-school",email:u});case 23:case"end":return e.stop()}}),e,null,[[4,10]])})),new(n||(n=Promise))((function(t,a){function i(t){try{l(o.next(t))}catch(t){a(t)}}function c(t){try{l(o.throw(t))}catch(t){a(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(t){t(r)}))).then(i,c)}l((o=o.apply(e,r||[])).next())}))}()}return a().createElement(a().Fragment,null,a().createElement("div",{className:"text-center"},a().createElement("h1",{className:"h4"},a().createElement(L.x,{namespace:Ft,phrase:"heading"})),a().createElement("p",null,a().createElement(L.x,{namespace:Ft,phrase:"subHeading"}))),a().createElement("form",{onSubmit:y,noValidate:!0},a().createElement("div",{className:"form-group mb-3"},a().createElement(Ct,{value:u,onChange:function(t){t.preventDefault(),s(t.target.value),h("")},name:"email-input",id:"email-input",type:"email",className:"form-control form-control-lg ".concat(p?"is-invalid":""),placeholder:Mt(t.geoLocation),autoComplete:"false",autoCorrect:"false",autoFocus:!0,onClickClear:function(){return s("")}}),p&&a().createElement(a().Fragment,null,a().createElement("div",{className:"invalid-feedback d-block"},p),a().createElement("small",null,a().createElement(L.x,{phrase:"emailInputHelpText",namespace:Ft}),a().createElement(O,{href:m,onClick:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.ContactUs})},className:"info-link pl-1",newTab:!0},a().createElement(L.x,{phrase:"emailInputHelpLinkText",namespace:Ft}))))),a().createElement(Ot.m,{showSpinner:o,className:"btn btn-dark btn-lg mb-3 w-100",disabled:o,onClick:y},a().createElement(L.x,{namespace:Ft,phrase:"nextButtonText"}))),a().createElement("div",{className:"text-center"},a().createElement(T,{link:b.getLoginLink(d._.getRelativeUrl()),onClick:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.SignIn})}})))},"find-school":function(t){var e=t.email,r=t.userType,n=ur(a().useState({schoolLocality:t.schoolLocality,country:t.country,longitude:t.longitude,latitude:t.latitude}),2),o=n[0],i=n[1],c=ur(a().useState(),2),l=c[0],u=c[1],s=ur(a().useState(),2),f=s[0],p=s[1],h=ur(a().useState(!1),2),d=h[0],m=h[1],y=ur(a().useState(!1),2),v=y[0],g=y[1],b=ur(a().useState(!1),2),w=b[0],E=b[1];function x(){if(!o||!e||!r)return!1;var t=o.prospectId;return!!(e&&r&&t)}function S(t){g(t),E(t),m(t)}function j(t,e){"prospectId"===t&&e&&(m(!0),ft.checkProspectTrialStatus({prospectId:e.toString()},(function(t){u(t.status)}),(function(){console.log("error")}),(function(){m(!1)}))),i((function(r){return Object.assign(Object.assign({},r),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==cr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==cr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===cr(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},t,e))}))}function k(){j("prospectId",void 0),j("schoolName",""),j("schoolPostCode",void 0),p(void 0)}return a().createElement(a().Fragment,null,a().createElement("div",{className:"text-center"},a().createElement("h1",{className:"h4"},a().createElement(L.x,{namespace:fr,phrase:"heading"})),a().createElement("p",null,a().createElement(L.x,{namespace:fr,phrase:"subHeading"}))),a().createElement(ir,{data:o,setDataProperty:j,clearStepGroupData:function(){j("schoolLocality",void 0),i((function(t){return Object.assign(Object.assign({},t),{longitude:undefined,latitude:undefined})})),j("city",void 0),j("province",void 0),j("country",void 0),k(),p(void 0)},disabled:v,geoLocation:t.geoLocation,labelClassName:"d-none",logUserAction:t.logUserAction,googleMapsApiKey:t.googleMapsApiKey}),!!(o&&o.schoolLocality&&o.longitude&&o.latitude)&&a().createElement(Me,{data:o,setDataProperty:j,clearStepItemData:k,nextStep:t.nextStep,currentStepId:t.currentStepId,disabled:w,logUserAction:t.logUserAction}),f&&a().createElement("p",{className:"text-danger mb-2"},f),x()&&a().createElement(Ot.m,{className:"btn btn-dark btn-lg w-100",onClick:function(){return n=this,a=void 0,i=void 0,c=lr().mark((function n(){var a;return lr().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!d){n.next=2;break}return n.abrupt("return");case 2:if(x()){n.next=5;break}return p(pr("cannotSubmitFormError")),n.abrupt("return");case 5:if(l!==B.Unsupported||r!==Kt.Staff){n.next=8;break}return t.nextStep(Object.assign({step:"add-to-braze",trialStatus:l},o)),n.abrupt("return");case 8:if(l===B.Active||l===B.Available){n.next=11;break}return t.complete(Object.assign({completionStep:"trial-status",trialStatus:l,trialCreated:!1},o)),n.abrupt("return");case 11:return S(!0),n.prev=12,n.next=15,ft.createTrial({userType:r,email:e,prospectId:null==o?void 0:o.prospectId,appLink:t.pageAppLinkString,accessPolicy:Le(o.country)});case 15:a=n.sent,n.next=23;break;case 18:return n.prev=18,n.t0=n.catch(12),p(pr("requestTrialError")),S(!1),n.abrupt("return");case 23:if(a.id&&a.dateCreated){n.next=27;break}return p(pr("requestTrialError")),S(!1),n.abrupt("return");case 27:j("userId",a.id),t.complete(Object.assign({completionStep:"trial-status",userId:a.id,trialCreated:!0,trialStatus:B.Available},o));case 29:case"end":return n.stop()}}),n,null,[[12,18]])})),new(i||(i=Promise))((function(t,e){function r(t){try{l(c.next(t))}catch(t){e(t)}}function o(t){try{l(c.throw(t))}catch(t){e(t)}}function l(e){var n;e.done?t(e.value):(n=e.value,n instanceof i?n:new i((function(t){t(n)}))).then(r,o)}l((c=c.apply(n,a||[])).next())}));var n,a,i,c},showSpinner:v||w||d,disabled:v||w||d},a().createElement(L.x,{namespace:fr,phrase:"submitButtonText"})))},"cant-find-school":function(t){var e,r,n,o=Sr(a().useState({prospectId:t.prospectId,schoolName:t.schoolName,schoolType:t.schoolType,schoolLocality:t.schoolLocality,country:t.country}),2),i=o[0],c=o[1],l=Sr(a().useState(),2),u=l[0],s=l[1],f=Sr(a().useState(!1),2),p=f[0],h=f[1],d=(r=i.country||(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode),n=v.getCountryCode(r),wr[n]||br);function m(){var t=i.schoolName,e=i.schoolType,r=i.country;return!!(t&&e&&r)}function y(t,e){c((function(r){return Object.assign(Object.assign({},r),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Er(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Er(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Er(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},t,e))}))}return a().createElement(a().Fragment,null,a().createElement("div",{className:"text-center"},a().createElement("h1",{className:"h4"},a().createElement(L.x,{namespace:jr,phrase:"heading"})),a().createElement("p",null,a().createElement(L.x,{namespace:jr,phrase:"subHeading"}))),a().createElement("div",{className:"form-group"},a().createElement("label",{className:"d-block",htmlFor:"school-name-input"},a().createElement(L.x,{namespace:jr,phrase:"schoolNameInputLabel"})),a().createElement("input",{type:"text",value:(null==i?void 0:i.schoolName)||"",onChange:function(t){y("schoolName",t.target.value)},id:"school-name-input",className:"form-control form-control-lg",autoComplete:"off",placeholder:kr("schoolNameInputPlaceholder")})),a().createElement("div",{className:"form-group"},a().createElement("label",{className:"d-block",htmlFor:"school-type-select"},a().createElement(L.x,{namespace:jr,phrase:"schoolTypeInputLabel"})),a().createElement("select",{id:"school-type-select",className:"form-control form-control-lg ".concat(i.schoolType?"":"text-muted"),autoComplete:"off",value:i.schoolType||"none",onChange:function(t){y("schoolType",t.target.value)}},a().createElement("option",{value:"none",className:"text-muted",disabled:!0},kr("schoolTypeInputDefault")),d.map((function(t){return a().createElement("option",{value:t,key:t,className:"text-dark"},t)})))),a().createElement(ir,{data:i,setDataProperty:y,clearStepGroupData:function(){y("schoolLocality",void 0),c((function(t){return Object.assign(Object.assign({},t),{longitude:undefined,latitude:undefined})})),y("city",void 0),y("province",void 0),y("country",void 0),s("")},disabled:!1,labelClassName:"d-block",geoLocation:t.geoLocation,logUserAction:t.logUserAction,googleMapsApiKey:t.googleMapsApiKey}),u&&a().createElement("div",{className:"text-danger mb-3"},u),m()&&a().createElement(Ot.m,{className:"btn btn-dark btn-lg w-100",onClick:function(e){return r=this,n=void 0,o=void 0,a=xr().mark((function r(){var n,o,a;return xr().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.preventDefault(),m()){r.next=3;break}return r.abrupt("return");case 3:return h(!0),r.prev=4,r.next=7,Te.create({name:i.schoolName,status:mr.Draft,countryCode:i.country,prospectType:i.schoolType,city:i.city,postCode:i.schoolPostCode,province:i.province});case 7:if((n=r.sent).id){r.next=12;break}return h(!1),s(kr("submissionErrorText")),r.abrupt("return");case 12:r.next=19;break;case 14:return r.prev=14,r.t0=r.catch(4),h(!1),s(kr("submissionErrorText")),r.abrupt("return");case 19:return r.prev=19,r.next=22,ft.createTrial({userType:t.userType,email:t.email,prospectId:n.id,appLink:t.pageAppLinkString,accessPolicy:Le(i.country)});case 22:if((o=r.sent).id){r.next=27;break}return h(!1),s(kr("submissionErrorText")),r.abrupt("return");case 27:t.complete({completionStep:"trial-status",email:t.email,userId:o.id,prospectId:n.id,schoolName:i.schoolName,schoolLocality:i.schoolLocality,country:i.country,schoolType:i.schoolType,city:i.city,schoolPostCode:i.schoolPostCode,latitude:i.latitude,longitude:i.longitude,province:i.province,trialStatus:B.Available,trialCreated:!0}),r.next=40;break;case 30:if(r.prev=30,r.t1=r.catch(19),r.t1.body){r.next=36;break}return h(!1),s(kr("submissionErrorText")),r.abrupt("return");case 36:if(400!==(a=r.t1).body.status||"trial-not-available"!==a.body.type){r.next=40;break}return t.nextStep(Object.assign(Object.assign({step:"add-to-braze"},i),{prospectId:n.id,trialStatus:B.Unavailable})),r.abrupt("return");case 40:case"end":return r.stop()}}),r,null,[[4,14],[19,30]])})),new(o||(o=Promise))((function(t,e){function i(t){try{l(a.next(t))}catch(t){e(t)}}function c(t){try{l(a.throw(t))}catch(t){e(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof o?r:new o((function(t){t(r)}))).then(i,c)}l((a=a.apply(r,n||[])).next())}));var r,n,o,a},showSpinner:p,disabled:p},a().createElement(L.x,{namespace:jr,phrase:"submitButtonText"})))},completed:function(t){var e=jt[t.completionStep];return a().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto px-2"},a().createElement(e,Object.assign({},t)))},"add-to-braze":function(t){var e,r=ye(a().useState(!1),2),n=r[0],o=r[1],i=ye(a().useState({}),2),c=i[0],l=i[1];function u(e){var r=Se(e.fullname),n=r.firstName,o=r.surname,a={prospect_id:null==t?void 0:t.prospectId,email:null==t?void 0:t.email,organisation_sub_type:te.getSchoolType(null==t?void 0:t.schoolType),account_name:null==t?void 0:t.schoolName,account_post_code:null==t?void 0:t.schoolPostCode,account_country:null==t?void 0:t.country,first_name:n,last_name:o,job_title:e.jobTitle,sync_to_crm:!0,event_topic:te.getEventTopic()};return te.removeEmptyKeys(a)}return a().useEffect((function(){t.userType===Kt.Learner&&t.complete({completionStep:"trial-status",trialCreated:!1,trialStatus:B.Unsupported})}),[]),a().createElement(he,{errors:c,loading:n,geoLocation:t.geoLocation,country:t.country||(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode),logUserAction:t.logUserAction,handleSubmitForm:function(e){(function(t){var e=t.fullname,r=t.jobTitle,n=t.phone,o=Se(e),a=o.firstName,i=o.surname,c={};return a&&i||(c.fullname=xe("emptyFullName")),(we.test(a)||we.test(i))&&(c.fullname=xe("invalidFullName")),e.length>be&&(c.fullname=xe("maxFullName",{maxLength:be})),(null==r?void 0:r.length)||(c.jobTitle=xe("emptyJobTitle")),we.test(r)&&(c.jobTitle=xe("invalidJobTitle")),r.length>be&&(c.jobTitle=xe("maxJobTitle",{maxLength:be})),(null==n?void 0:n.length)||(c.phone=xe("emptyPhone")),!we.test(n)&&Ee.test(n)||(c.phone=xe("invalidPhone")),l(c),!Object.keys(c).length})(e)&&function(e){var r,a,i,s;r=this,a=void 0,i=void 0,s=me().mark((function r(){var a,i,s,f,p,h;return me().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!n){r.next=2;break}return r.abrupt("return");case 2:if(t.userType!==Kt.Learner){r.next=5;break}return l(Object.assign(Object.assign({},c),{submission:xe("submissionError")})),r.abrupt("return");case 5:return o(!0),a=u(e),r.next=9,te.getClient(t.geoLocation);case 9:i=r.sent,s=Se(e.fullname),f=s.firstName,p=s.surname,h={prospect_id:null==t?void 0:t.prospectId,organisation_sub_type:te.getSchoolType(null==t?void 0:t.schoolType),account_name:null==t?void 0:t.schoolName,account_post_code:null==t?void 0:t.schoolPostCode,account_country:null==t?void 0:t.country,job_title:e.jobTitle,sync_to_crm:!0},h=te.removeEmptyKeys(h);try{i.setUser(te.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:te.getCustomEventType(),data:a}),i.sendData((function(t){l(t?{}:Object.assign(Object.assign({},c),{submission:xe("submissionError")})),o(!1)}))}catch(t){l(Object.assign(Object.assign({},c),{submission:xe("submissionError")}))}Object.keys(c).length||t.complete({completionStep:"added-to-braze",trialCreated:!1,trialStatus:null});case 15:case"end":return r.stop()}}),r)})),new(i||(i=Promise))((function(t,e){function n(t){try{c(s.next(t))}catch(t){e(t)}}function o(t){try{c(s.throw(t))}catch(t){e(t)}}function c(e){var r;e.done?t(e.value):(r=e.value,r instanceof i?r:new i((function(t){t(r)}))).then(n,o)}c((s=s.apply(r,a||[])).next())}))}(e)},removeErrorForKey:function(t){if(Object.keys(c).length&&c[t]){var e=Object.assign({},c);delete e[t],l(e)}}})},"enter-age":function(t){var e=Tr(a().useState(""),2),r=e[0],n=e[1],o=Tr(a().useState(""),2),i=o[0],c=o[1],l=Tr(a().useState(""),2),u=l[0],s=l[1],f=Tr(a().useState(null),2),p=f[0],h=f[1],d=(new Date).getFullYear(),m="mx-2 d-inline-block text-left",y="form-control form-control-lg ".concat(p?"is-invalid":""),g="order-0",b="order-3",w=v.isCountryCodeUS(t.geoLocation.countryCode);return w&&(g="order-3",b="order-0"),a().createElement("form",{className:"text-center",onSubmit:function(e){if(e.preventDefault(),r&&i&&u?Or.O.isValid(Ur(u,i,r))?+u>d?(h(_r("future")),0):!(+u<d-120&&(h(_r("past",{age:d-+u})),1)):(h(_r("invalid")),0):(h(_r("missing")),0)){var n=new Date(Ur(u,i,r)),o=Or.O.subtract(new Date,13,"years");Or.O.isAfter(n,o)?t.complete({completionStep:"young-student",trialCreated:!1,trialStatus:null}):t.nextStep({step:"enter-email",userType:t.userType})}},noValidate:!0},a().createElement("h1",{className:"h4"},a().createElement(L.x,{namespace:Ir,phrase:"heading"})),a().createElement("p",null,a().createElement(L.x,{namespace:Ir,phrase:"subHeading"})),a().createElement("div",{className:"my-4"},a().createElement("div",{className:"d-flex justify-content-center"},a().createElement("div",{className:"".concat(m," ").concat(g)},a().createElement("label",{className:"mb-0",htmlFor:"day"},a().createElement(L.x,{namespace:Ir,phrase:"day"})),a().createElement("input",{id:"day",type:"number",className:"".concat(y," ").concat(Nr),min:"1",max:"31",placeholder:"DD",value:r,onChange:function(t){n(t.target.value),h(null)},autoFocus:!w,tabIndex:w?2:1})),a().createElement("span",{className:"h1 font-weight-normal mt-3 mb-0 order-1 ".concat(p?"text-danger":"")},"/"),a().createElement("div",{className:"".concat(m," ").concat(b)},a().createElement("label",{className:"mb-0",htmlFor:"month"},a().createElement(L.x,{namespace:Ir,phrase:"month"})),a().createElement("input",{id:"month",type:"number",className:"".concat(y," ").concat(Cr),min:"1",max:"12",placeholder:"MM",value:i,onChange:function(t){c(t.target.value),h(null)},autoFocus:w,tabIndex:w?1:2})),a().createElement("span",{className:"h1 font-weight-normal mt-3 mb-0 order-4 ".concat(p?"text-danger":"")},"/"),a().createElement("div",{className:"".concat(m," order-5")},a().createElement("label",{className:"mb-0",htmlFor:"year"},a().createElement(L.x,{namespace:Ir,phrase:"year"})),a().createElement("input",{id:"year",type:"number",className:"".concat(y," ").concat(Ar),min:d-120,max:d,placeholder:"YYYY",value:u,onChange:function(t){s(t.target.value),h(null)},tabIndex:3}))),!!p&&a().createElement("div",{className:"invalid-feedback d-block"},p)),a().createElement("button",{type:"submit",className:"btn btn-lg btn-dark w-100"},a().createElement(L.x,{namespace:Ir,phrase:"submit"})))}};function Gr(t){var e=t.state,r=t.geoLocation,n=t.layoutMapping,o=t.hasPreviousStep,i=t.googleMapsApiKey,c=t.pageAppLinkString,l=t.back,u=t.nextStep,s=t.complete,f=t.logUserAction,p=Fr[e.currentStepId],h=Object.assign(Object.assign({},e),{geoLocation:r,googleMapsApiKey:i,pageAppLinkString:c,back:l,nextStep:u,complete:s,logUserAction:f}),d=n[e.currentStepId];return d?a().createElement(d,{geoLocation:t.geoLocation,currentStep:e.currentStepId,previousStep:l,closeApp:t.close,logUserAction:f,hasPreviousStep:o},a().createElement(p,Object.assign({},h))):a().createElement(p,Object.assign({},h))}var Dr=r(1048);function Mr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Kr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Rr(t,e){switch(e.type){case"nextStep":return function(t,e){var r,n=Object.assign(Object.assign({},t),{previousStepIds:[].concat((r=t.previousStepIds,function(t){if(Array.isArray(t))return Kr(t)}(r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||function(t,e){if(t){if("string"==typeof t)return Kr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Kr(t,e):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[t.currentStepId]),currentStepId:e.step});if("select-type"===e.step)return Object.assign({},n);if("enter-email"===e.step)return Object.assign(Object.assign({},n),{userType:e.userType});if("enter-age"===e.step)return Object.assign(Object.assign({},n),{userType:e.userType});if("find-school"===e.step)return Object.assign(Object.assign({},n),{email:e.email});if("cant-find-school"===e.step)return Object.assign(Object.assign({},n),{prospectId:e.prospectId,schoolName:e.schoolName,schoolLocality:e.schoolLocality,country:e.country,longitude:e.longitude,latitude:e.latitude,city:e.city,province:e.province});if("add-to-braze"===e.step){var o=Dr.t.omit(e,["type","step"]);return o=Dr.t.removeEmptyKeys(o),Object.assign(Object.assign({},n),o)}if("completed"===e.step){var a=Dr.t.omit(e,["type","step"]);return a=Dr.t.removeEmptyKeys(a),Object.assign(Object.assign({},n),a)}}(t,e);case"back":return function(t){var e,r=function(t){if(Array.isArray(t))return Mr(t)}(e=t.previousStepIds)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return Mr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Mr(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=r.pop();return Object.assign(Object.assign({},t),{previousStepIds:r,currentStepId:n})}(t)}}function Br(t){return Br="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Br(t)}function zr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return $r(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$r(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Hr=function(t){var e=t.location,r=t.initialValues,n=t.onStepUpdate,o=te.removeEmptyKeys(r),i=Object.assign({currentStepId:"select-type",previousStepIds:[]},o),c=zr(a().useReducer(Rr,i),2),u=c[0],s=c[1];return a().useEffect((function(){null==n||n(u.currentStepId)}),[u.currentStepId]),{state:u,back:function(){s({type:"back"})},nextStep:function(t){s(Object.assign({type:"nextStep"},t))},complete:function(t){s(Object.assign({type:"nextStep",step:"completed"},t))},hasPreviousStep:!!u.previousStepIds.length,logUserAction:function(t,r){var n=Object.assign(Object.assign({currentStepId:u.currentStepId},Dr.t.omit(u,["email","longitude","latitude","trialCreated"])),t),o=Object.entries(n).filter((function(t){return void 0!==zr(t,2)[1]})).reduce((function(t,e){var r=zr(e,2),n=r[0],o=r[1];return Object.assign(Object.assign({},t),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Br(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Br(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Br(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},n,o))}),{});j.k.logUserAction(o,Object.assign({entity:l.EntityType.SignUp,location:e},r))}}};const Yr={buttonContainer:"muxxq",dataContainer:"pbBua"};function Wr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Zr(t){var e={};return Object.keys(t).forEach((function(r){var n=t[r];Dr.t.isObject(n)&&null!==n&&!Array.isArray(n)?Object.assign(e,Zr(n)):e[r]=n})),e}function qr(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 Jr(t){var e,r,n=t.developmentEnv,o=t.objects,i=(e=a().useState(!0),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return Wr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wr(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=i[0],l=i[1],u=a().useMemo((function(){return Zr(o)}),[o]);return n&&a().createElement(a().Fragment,null,a().createElement("div",{className:"position-fixed p-4 ".concat(Yr.buttonContainer)},a().createElement("button",{onClick:function(){l(!c)},className:"btn btn-dark px-2 py-1"},c?"Hide":"Show"," debugger")),c&&a().createElement("div",{className:"fixed-bottom mb-4 ml-4 bg-dark rounded ".concat(Yr.dataContainer)},a().createElement("code",{className:"d-block p-4"},a().createElement("div",{className:"font-weight-bold pb-2"},"{ Debug: Form Data }"),Object.keys(u).map((function(t){return a().createElement(qr,{key:t,label:t,item:u[t]})})))))}function Vr(t){var e=W.getLayouts(t.type),r=t.location,n=t.initialValues,o=t.geoLocation,c=t.googleMapsApiKey,l=t.pageAppLinkString,u=t.onStepUpdate,s=t.close,f=Hr({location:r,initialValues:n,onStepUpdate:u}),p=f.back,h=f.nextStep,d=f.complete,m=f.hasPreviousStep,y=f.state,v=f.logUserAction,g={state:y,geoLocation:o,layoutMapping:e,hasPreviousStep:m,googleMapsApiKey:c,pageAppLinkString:l,back:p,close:s,nextStep:h,complete:d,logUserAction:v};return a().useEffect((function(){i.SG.get(rt)&&d({completionStep:"young-student",trialCreated:!1,trialStatus:null})}),[]),a().createElement(a().Fragment,null,a().createElement(Gr,Object.assign({},g)),a().createElement(Jr,{developmentEnv:!1,objects:Object.assign(Object.assign(Object.assign({},y),{pageAppLinkString:l}),o)}))}},2903:(t,e,r)=>{var n;r.d(e,{c:()=>n}),function(t){t.Popup="popup-form",t.FullPage="full-page-form"}(n||(n={}))},15661:(t,e,r)=>{r.d(e,{b:()=>y});var n=r(99940);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t){var e="function"==typeof Map?new Map:void 0;return a=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return i(t,arguments,u(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,t)},a(t)}function i(t,e,r){return i=c()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&l(o,r.prototype),o},i.apply(null,arguments)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(i,t);var e,r,n,a=(r=i,n=c(),function(){var t,e=u(r);if(n){var a=u(this).constructor;t=Reflect.construct(e,arguments,a)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function i(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Error";return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=a.call(this,r)).body=t,e}return e=i,Object.defineProperty(e,"prototype",{writable:!1}),e}(a(Error)),f=r(42976);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function h(){h=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof d?e:d,i=Object.create(a.prototype),c=new O(o||[]);return n(i,"_invoke",{value:S(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function d(){}function m(){}function y(){}var v={};l(v,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(N([])));b&&b!==e&&r.call(b,a)&&(v=b);var w=y.prototype=d.prototype=Object.create(v);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==p(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=L(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function L(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,L(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function N(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return m.prototype=y,n(w,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:m,configurable:!0}),m.displayName=l(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},E(x.prototype),l(x.prototype,i,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new x(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(w),l(w,c,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=N,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:N(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var d=function(t,e,r,n){return new(r||(r=Promise))((function(o,a){function i(t){try{l(n.next(t))}catch(t){a(t)}}function c(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,c)}l((n=n.apply(t,e||[])).next())}))};function m(t){var e={method:n.k.GET,headers:{"Content-type":"application/json"}};t.method&&(e=Object.assign(Object.assign({},e),{method:t.method})),t.init&&(e=Object.assign(Object.assign({},e),t.init));var r=t.url;return e.method===n.k.GET&&t.data?r=f._.prepareQuery(r,t.data):t.data&&(e=Object.assign(Object.assign({},e),{body:JSON.stringify(t.data)})),{init:e,url:r}}var y={asyncFetch:function(t){return d(this,void 0,void 0,h().mark((function e(){var r,n,o;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=m(t),e.next=3,fetch(r.url,r.init);case 3:if((n=e.sent).ok){e.next=9;break}return e.next=7,n.json();case 7:throw o=e.sent,new s(o);case 9:if(204!==n.status){e.next=11;break}return e.abrupt("return");case 11:return e.next=13,n.json();case 13:return e.abrupt("return",e.sent);case 14:case"end":return e.stop()}}),e)})))},asyncFetchPlain:function(t){return d(this,void 0,void 0,h().mark((function e(){var r,n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=m(t),e.next=3,fetch(r.url,r.init);case 3:if((n=e.sent).ok){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,n.text();case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e)})))},fetch:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){var e=m(t);return fetch(e.url,e.init).then((function(t){if(204!==t.status)return t.json()})).then((function(e){return t.success&&t.success(e),e})).catch((function(e){return t.error&&t.error(),e})).finally((function(){t.always&&t.always()}))}))}},42976:(t,e,r)=>{r.d(e,{_:()=>n});var n={prepareQuery:function(t,e){var r=t;return Object.keys(e).forEach((function(t,n){e[t]&&(r+=0===n?"?":"&",r+="".concat(t,"=").concat(encodeURIComponent(e[t])))})),r},getRelativeUrl:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=window.location.pathname;return t&&(r+=window.location.search),e?encodeURIComponent(r):r}}},82301:(t,e,r)=>{r.d(e,{M:()=>h});var n=r(1024),o=r.n(n),a=r(15661),i={geoLocation:function(){return a.b.fetch({url:"/api/geolocation"})}};function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function l(){l=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,o){var a=e&&e.prototype instanceof d?e:d,i=Object.create(a.prototype),c=new O(o||[]);return n(i,"_invoke",{value:S(t,r,c)}),i}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var h={};function d(){}function m(){}function y(){}var v={};s(v,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(N([])));b&&b!==e&&r.call(b,a)&&(v=b);var w=y.prototype=d.prototype=Object.create(v);function E(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function o(n,a,i,l){var u=p(t[n],t,a);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==c(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,l)}),(function(t){o("throw",t,i,l)})):e.resolve(f).then((function(t){s.value=t,i(s)}),(function(t){return o("throw",t,i,l)}))}l(u.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=L(i,r);if(c){if(c===h)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=p(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function L(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,L(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=p(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function N(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return m.prototype=y,n(w,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:m,configurable:!0}),m.displayName=s(y,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,s(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},E(x.prototype),s(x.prototype,i,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new x(f(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(w),s(w,u,"Generator"),s(w,a,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=N,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:N(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var s=function(t,e,r,n){return new(r||(r=Promise))((function(o,a){function i(t){try{l(n.next(t))}catch(t){a(t)}}function c(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,c)}l((n=n.apply(t,e||[])).next())}))},f=["us","au","nz","gb","gg","im","je","ie"],p="us";function h(){var t,e,r=(t=o().useState(null),e=2,function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),n=r[0],a=r[1];function c(t){var e;f.includes(null===(e=null==t?void 0:t.countryCode)||void 0===e?void 0:e.toLowerCase())?a(t):a({countryCode:p})}return o().useEffect((function(){!function(){s(this,void 0,void 0,l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,t.next=5,i.geoLocation();case 5:c(t.sent),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(2),c(null);case 12:case"end":return t.stop()}}),t,null,[[2,9]])})))}()}),[]),n}},26392:(t,e,r)=>{r.d(e,{Z:()=>n});const n={logo:"JkF9k",modalBody:"CmPcN",popupButton:"FkCPC",leftHalfLayout:"KsojV",withBg:"TJ9fO"}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[172],{71020:(e,t,a)=>{a.d(t,{_:()=>u});var n=a(1024),i=a(99910),r=a(64038),s=a(83914),c=a(58130);const o={container:"VwD1b",spinner:"eJ85e"};function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function u(e){var t,a,u=(t=r.useInView(),a=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,i,r,s,c=[],o=!0,l=!1;try{if(r=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;o=!1}else for(;!(o=(n=r.call(a)).done)&&(c.push(n.value),c.length!==t);o=!0);}catch(e){l=!0,i=e}finally{try{if(!o&&null!=a.return&&(s=a.return(),Object(s)!==s))return}finally{if(l)throw i}}return c}}(t,a)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?l(e,t):void 0}}(t,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.")}()),d=u[0],m=u[1];return n.useEffect((function(){var t;e.fetchOnScroll&&m&&!e.isFetching&&(null===(t=e.fetchNext)||void 0===t||t.call(e,e.nextCursor))}),[m,e.isFetching]),n.createElement("div",{className:"p-3 text-center ".concat(o.container),ref:d},e.isFetching?n.createElement(i.Spinner,{as:"span",animation:"border",role:"status",className:o.spinner}):n.createElement(s.x,{svgName:c.vn.ChevronDown,className:"svg-container cursor-pointer",size:s.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}},16930:(e,t,a)=>{a.d(t,{W:()=>c,f:()=>s});var n=a(1024),i=a(83914),r=a(58130);var s;!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(s||(s={}));var c=n.memo((function(e){var t,a=e.direction===s.Left,c=a?r.vn.ChevronLeft:r.vn.ChevronRight;return e.hide?n.createElement(n.Fragment,null):n.createElement(n.Fragment,null,n.createElement("div",{role:"button",className:"".concat((t="BVcIS",t+=a?" ".concat("VSAPU"," ").concat(e.leftButtonClassName):" ".concat("kgeXh"," ").concat(e.rightButtonClassName))," ").concat("gAsE9"," ").concat(e.className||""),onClick:e.onClick},e.hoverText&&n.createElement("span",{className:"pl-3 pr-2 ".concat("APA36")},e.hoverText),n.createElement(i.x,{svgName:c,size:i.S.Medium,className:"svg-container d-inline-block ".concat("Ev4hr")})),e.useGradientBackdrop&&n.createElement("div",{className:a?"".concat("Pt3nx"," ").concat(e.leftGradientClassName):"".concat("ZuAif"," ").concat(e.rightGradientClassName)}),!e.hideExtendedClickableArea&&n.createElement("div",{role:"button",onClick:e.onClick,className:a?"wi8c2":"aLa_J"}))}))},8843:(e,t,a)=>{a.d(t,{M:()=>s});var n=a(1024),i=a(79014),r=400;function s(e){var t=function(){if(!e.isFetching){if(e.scrollContainer){var t=e.scrollContainer;if(t.getBoundingClientRect().height+t.scrollTop<t.scrollHeight-r)return}else if(window.innerHeight+document.documentElement.scrollTop<document.documentElement.scrollHeight-r)return;e.fetchNextPage()}};(0,n.useEffect)((function(){var a=i.q.throttle(t,200),n=e.scrollContainer||window;return e.hasMore&&n.addEventListener("scroll",a),function(){return n.removeEventListener("scroll",a)}}),[e.hasMore,e.fetchNextPage,e.scrollContainer])}},99961:(e,t,a)=>{a.r(t),a.d(t,{SearchResultsView:()=>Ue});var n=a(1024),i=a.n(n),r=a(58566),s=a(20354),c=a(2948),o=a(23049),l=a(31949),u=a(71020),d=a(8843),m=a(21750),p=a(39151),v=a(61717),y=a(63660),f=a(94644),g=a(1666),h=a(25925),b=a(81514),E=a(44110),S=a(65858),C=a(97037),k=a(22902),x=a(16714),O=a(97291),A=a(14070),L=a(65986),j=a(86702),N=a(24965),F=a(86698),P=a(82817),T=a(44909),I=a(83345),w=a(8493),_="search.searchSuggestions";function D(e){return e.suggestions.length?i().createElement("div",{className:"d-flex align-items-center mb-3"},i().createElement(I.x,{namespace:_,phrase:"didYouMean"})," ",e.suggestions.map((function(t,a){return i().createElement(i().Fragment,{key:"".concat(t,":").concat(a)},0!==a&&i().createElement("span",{className:"mx-1"},"•"),i().createElement(w.F,{className:"info-link",appLink:(n=t,r=e.queryParams,{application:O.O.SEARCH,action:A.e.Search.HOME,params:Object.assign(Object.assign({},r),{query:n})}),appLinkOptions:{replace:!0}},t));var n,r}))):i().createElement(i().Fragment,null)}D.defaultProps={suggestions:[],queryParams:{}};var R=a(99910),V=a(28400),M=a(75896),U=a(51365),B=a(91028),q=a(3626),G=a(11025),H=a(50333),W=a(17585),$=a(55577),J=a(24900),X=a(5465),Q=a(22490),z=a(82386),Y=a(34004),Z=a(86764),K="search.seriesWithVideos";function ee(e){var t=(0,b.V)(),a=function(e){return e===Z.r.XL||e===Z.r.XXL?5:e===Z.r.LG||e===Z.r.MD?4:3}(t),n=t===Z.r.XS||t===Z.r.SM||t===Z.r.MD,r=e.series.videos.data.slice(0,a),s={actionType:S.UserAction.Click,entity:S.EntityType.Series,location:S.LocationContext.SeriesWithVideos},c=Object.assign(Object.assign({},e.analyticsData),{id:e.series.id,name:e.series.name});return i().createElement("div",{className:"pl-2 py-2"},i().createElement(R.Row,{className:"no-gutters border border-light rounded-lg"},i().createElement(R.Col,{xs:n?4:3,className:"pr-3"},i().createElement(w.F,{appLink:e.seriesAppLink,className:"position-relative",analyticsData:c,analyticsOptions:Object.assign(Object.assign({},s),{descriptor:S.ClickDescriptor.TallPoster})},i().createElement(Y.r,{series:e.series,presentationAudiences:e.presentationAudiences,preloadImage:e.preloadImage,imageClass:"rounded-left-lg"}))),i().createElement(R.Col,{xs:n?8:9},i().createElement(R.Row,{className:"no-gutters"},i().createElement(R.Col,{xs:9,className:"pt-3"},null==r?void 0:r.map((function(t){var a=Object.assign(Object.assign({},c),{videoId:t.id,videoName:t.name});return t=Object.assign(Object.assign({},t),{series:e.series}),i().createElement($.m,{key:t.id,video:t,getSeriesAppLink:function(){return e.seriesAppLink},canFavourite:function(){return!1},setFavourite:null,getVideoAppLink:function(e){return T.y.getVideoAppLink(e)},analyticsData:a,analyticsOptions:{entity:S.EntityType.Video,location:S.LocationContext.SeriesWithVideos},size:"sm",yearGroups:e.yearGroups})}))),i().createElement(R.Col,{xs:3,className:"text-right pt-3 pr-3"},i().createElement(w.F,{className:"info-link font-weight-500",appLink:e.seriesAppLink,analyticsData:c,analyticsOptions:Object.assign(Object.assign({},s),{descriptor:S.ClickDescriptor.Link})},i().createElement(I.x,{namespace:K,phrase:"seeAllVideos"})))))))}var te=a(98981),ae=a(7733),ne="search.playlistWithVideos";function ie(e){var t=(0,b.V)(),a=function(e){return e===Z.r.XL||e===Z.r.XXL?3:2}(t),n=t===Z.r.XS||t===Z.r.SM||t===Z.r.MD,r=e.playlist.videos.data.slice(0,a),s={actionType:S.UserAction.Click,entity:S.EntityType.Playlist,location:S.LocationContext.PlaylistWithVideos},c=Object.assign(Object.assign({},e.analyticsData),{id:e.playlist.id,name:e.playlist.name});return i().createElement("div",{className:"pl-2 py-2"},i().createElement(R.Row,{className:"no-gutters border border-light rounded-lg"},i().createElement(R.Col,{xs:n?4:3,className:"pr-3"},i().createElement(te.tN,{appLink:e.playlistAppLink,analyticsData:e.analyticsData,analyticsOptions:Object.assign(Object.assign({},s),{descriptor:S.ClickDescriptor.Cover}),data:e.playlist,presentationAudiences:e.presentationAudiences,bgColourClassNames:ae.o,itemStyle:"round-left",imageCdnUrl:e.imageCdnUrl,currentUser:e.currentUser,showCount:!1,showOwner:!0})),i().createElement(R.Col,{xs:n?8:9},i().createElement(R.Row,{className:"no-gutters"},i().createElement(R.Col,{xs:9,className:"pt-3"},null==r?void 0:r.map((function(t){var a=Object.assign(Object.assign({},c),{videoId:t.id,videoName:t.name});return i().createElement($.m,{key:t.id,video:t,getSeriesAppLink:function(e){return z.y.getSeriesAppLink(e)},canFavourite:function(){return!1},setFavourite:null,getVideoAppLink:function(e){return z.y.getVideoAppLink(e)},analyticsData:a,analyticsOptions:{entity:S.EntityType.Video,location:S.LocationContext.PlaylistWithVideos},size:"sm",yearGroups:e.yearGroups})}))),i().createElement(R.Col,{xs:3,className:"text-right pt-3 pr-3"},i().createElement(w.F,{className:"info-link font-weight-500",appLink:e.playlistAppLink,analyticsData:c,analyticsOptions:Object.assign(Object.assign({},s),{descriptor:S.ClickDescriptor.Link})},i().createElement(I.x,{namespace:ne,phrase:"seeAllVideos"})))))))}var re=a(17464),se=a(76246),ce=a(78276),oe=a(54610),le=a(83657),ue=a(58130),de=a(79967),me=a(9977),pe=a(62756),ve=a(96022),ye="search.collectionVideoList";function fe(e){var t,a=(t=(0,b.V)())===Z.r.XS?2:t===Z.r.SM?1:3,n={analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions};return i().createElement(i().Fragment,null,i().createElement("ul",{className:"list-unstyled my-1"},e.videos.slice(0,a).map((function(t){var a,r=!!t.episodeNumber&&!!(null===(a=t.season)||void 0===a?void 0:a.id);return i().createElement("li",{key:"".concat(e.collectionId,":").concat(t.id),className:"d-flex align-items-center"},i().createElement(w.F,Object.assign({},n,{className:"clamp-1",appLink:z.y.getVideoAppLink(t)}),r&&i().createElement(i().Fragment,null,i().createElement(ve.Q,{video:t})," "),t.name))}))),i().createElement(w.F,Object.assign({},n,{className:"info-link",appLink:e.appLink}),i().createElement(I.x,{namespace:ye,phrase:"seeAll"})))}const ge={overlayContainer:"y8nUE",overlay:"Fy5O5"};var he="search.collectionThumbnail",be=function(e,t,a,n){return t?[{svgName:ue.vn.Share2,appLink:{application:O.O.DEFAULT,action:A.e.Default.SHARE,args:[e.id],params:{entityType:a}},analyticsData:{id:e.id},analyticsOptions:Object.assign(Object.assign({},n),{actionType:S.UserAction.Share,workflowPhase:S.WorkflowPhase.Start,eventVersion:S.EventVersion.V3}),button:!0}]:[]};function Ee(e){var t,a,n,r,s=(0,pe.G)().isPlugin,c=(0,de.k)(),o="sm"===me.O.getSize(c,"md"),l=!!(null===(a=null===(t=e.collection.videos)||void 0===t?void 0:t.data)||void 0===a?void 0:a.length),u=l&&e.collection.videos.data.find((function(e){var t;return!!(null===(t=e.thumbnail)||void 0===t?void 0:t.url)})),d=(r=Object.assign(Object.assign({},e.analyticsData),{id:e.collection.id,name:e.collection.name}),u&&(r.videoId=u.id,r.videoName=u.name),r),m="series"===e.collectionType;return i().createElement("div",{className:"row no-gutters ".concat(o?"":"py-2")},i().createElement(R.Col,Object.assign({},me.O.getThumbnailColumns(),{className:"flex-column align-items-flex-start ".concat(o?"pb-2 pr-2":"mb-1 px-2")}),i().createElement("div",{className:"position-relative overflow-hidden ".concat(o?"rounded":"rounded-lg")},i().createElement(ce.Z,{data:null==u?void 0:u.thumbnail,appLink:e.appLink,imageType:oe.__.Thumbnails,analyticsData:d,analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{descriptor:S.ClickDescriptor.Thumbnail})},i().createElement(J.z,{type:e.maskType}),i().createElement(X.oy,{type:e.imageFallbackType}),i().createElement("div",{className:"d-flex flex-column align-items-center justify-content-center text-white h-100 ".concat(ge.overlay)},i().createElement(I.x,{namespace:he,phrase:"seeAll"}))))),i().createElement(R.Col,Object.assign({},me.O.getDetailsColumns(),{className:o?"pb-2":"px-2"}),!s&&i().createElement(le.e,{actions:be(e.collection,e.showActions,e.collectionType,e.analyticsOptions),className:"float-right mt-n1",actionsDropdownClassName:"btn btn-link ml-1"}),i().createElement(w.F,{appLink:e.appLink,analyticsData:d,analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{descriptor:S.ClickDescriptor.Title})},i().createElement("h5",{className:"m-0 mb-1"},i().createElement("span",{className:"clamp-1"},e.collection.name))),m&&!e.hideBadges&&i().createElement(re.c,null,i().createElement(se.C,{type:se.g.Rating,data:e.collection.rating}),i().createElement(se.C,{type:se.g.ProductionYear,data:null===(n=e.collection.metadata)||void 0===n?void 0:n.year})),l&&i().createElement(fe,{collectionId:e.collection.id,videos:e.collection.videos.data,appLink:e.appLink,analyticsData:d,analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{descriptor:S.ClickDescriptor.Link})})))}const Se="d2Y5q";var Ce=i().memo((function(e){var t,a;if(!(null===(t=e.results)||void 0===t?void 0:t.totalResults)&&!(null===(a=e.topics)||void 0===a?void 0:a.totalResults))return i().createElement(i().Fragment,null);var n=e.featuredResult,r=void 0===n?{}:n,s=z.y.groupResults(e.results.results,e.topics,r,e.mediaQuery),c=e.availablePresentations;return i().createElement(U.M.Provider,{value:e.getVideoItemActions},i().createElement("div",{className:"position-relative"},s.map((function(t,a){switch(t.type){case"featured-result":if(!r||"video"!==r._index)return i().createElement(i().Fragment,{key:"featured-result"});var n=r;return i().createElement("div",{key:"featured-result",className:"pb-3"},i().createElement(q.J,{key:"featured-result",video:n,presentationAudiences:e.audiences,videoAppLink:Q.W.getAppLink(n),seriesAppLink:z.y.getSeriesAppLink(n.series),setFavourite:e.setFavourite,canFavourite:e.canFavourite,analyticsData:{search:{score:n._score,maxScore:n._maxScore,featured:n._featured},pagePositionIndex:a},hideInteractiveBadge:!0,yearGroups:e.yearGroups}));case"topic-list":var s=t.items.length<4;return i().createElement(i().Fragment,{key:"".concat(t.type,":").concat(a)},!!t.heading&&i().createElement("h2",{className:"h4 mb-2"},t.heading),i().createElement(R.Row,{className:"no-gutters pb-3 mx-n1"},t.items.map((function(e,t){return i().createElement(R.Col,{key:e.id,sm:6,md:s?6:4,lg:s?4:3},i().createElement("div",{className:"position-relative px-1 mb-2"},i().createElement(B.V,{data:e,getChildAppLink:function(e){return{application:O.O.SUBJECT,action:A.e.Subjects.CLASSIFICATION,args:[e.id,V.m.slugify(e.name)]}},availablePresentations:c,analyticsData:{itemIndex:t,search:{score:e._score,maxScore:e._maxScore,featured:e._featured},pagePositionIndex:a},isLarge:s})))}))));case"video-item":var o=M.m.first(t.items),l=function(e){return G.M.isClip(e)?H.I:G.M.isInteractive(e)?W.H:$.m}(o);return i().createElement("div",{key:"".concat(t.type,":").concat(a),className:"position-relative ".concat(Se)},i().createElement(l,{video:o,yearGroups:e.yearGroups,getVideoAppLink:Q.W.getAppLink,getSeriesAppLink:z.y.getSeriesAppLink,presentationAudiences:e.audiences,setFavourite:e.setFavourite,canFavourite:e.canFavourite,analyticsData:{search:{score:o._score,maxScore:o._maxScore,featured:o._featured},pagePositionIndex:a}}));case"playlist-with-videos":var u=z.y.getFirstPlaylist(t);return i().createElement("div",{key:"".concat(t.type,":").concat(a),className:"mx-n2"},i().createElement(ie,{playlist:u,yearGroups:e.yearGroups,playlistAppLink:z.y.getPlaylistAppLink(u),presentationAudiences:e.audiences,analyticsData:{search:{score:u._score,maxScore:u._maxScore,featured:u._featured},pagePositionIndex:a},imageCdnUrl:e.imageCdnUrl,currentUser:e.currentUser,preloadImage:!0}));case"playlist-thumbnail":var d=z.y.getFirstPlaylist(t);return i().createElement("div",{className:"position-relative ".concat(Se),key:"".concat(t.type,":").concat(a)},i().createElement(Ee,{analyticsData:{search:{score:d._score,maxScore:d._maxScore,featured:d._featured},pagePositionIndex:a},analyticsOptions:{entity:S.EntityType.Playlist,actionType:S.UserAction.Click,location:S.LocationContext.PlaylistListItem},appLink:{application:O.O.PLAYLISTS,action:A.e.Playlists.PLAYLIST,args:[d.id,V.m.slugify(d.name)]},showActions:e.showActions,collection:d,collectionType:"playlist",maskType:J.O.Playlist,imageFallbackType:X.mS.PlaylistThumbnail}));case"series-with-videos":var m=z.y.getFirstSeries(t);return i().createElement("div",{key:"".concat(t.type,":").concat(a),className:"mx-n2"},i().createElement(ee,{yearGroups:e.yearGroups,presentationAudiences:e.audiences,series:m,seriesAppLink:{application:O.O.SERIES,action:A.e.Series.SERIES,args:[m.id,V.m.slugify(m.name)]},analyticsData:{search:{score:m._score,maxScore:m._maxScore,featured:m._featured},pagePositionIndex:a},preloadImage:!0}));case"series-thumbnail":var p=z.y.getFirstSeries(t);return i().createElement("div",{className:"position-relative ".concat(Se),key:"".concat(t.type,":").concat(a)},i().createElement(Ee,{analyticsData:{search:{score:p._score,maxScore:p._maxScore,featured:p._featured},pagePositionIndex:a},analyticsOptions:{entity:S.EntityType.Series,actionType:S.UserAction.Click,location:S.LocationContext.SeriesListItem},appLink:{application:O.O.SERIES,action:A.e.Series.SERIES,args:[p.id,V.m.slugify(p.name)]},collectionType:"series",collection:p,showActions:e.showActions,maskType:J.O.Series,imageFallbackType:X.mS.SeriesThumbnail,hideBadges:!0}))}}))))})),ke=a(1211),xe="search.searchSubstitute";function Oe(e){return e.substitute?i().createElement("p",{className:"mb-3"},i().createElement(I.x,{namespace:xe,phrase:"showingFor"})," ",i().createElement(w.F,{className:"info-link",appLink:(t=e.substitute,a=e.queryParams,{application:O.O.SEARCH,action:A.e.Search.HOME,params:Object.assign(Object.assign({},a),{query:t})}),appLinkOptions:{replace:!0}},e.substitute)):i().createElement(i().Fragment,null);var t,a}var Ae,Le=a(1575),je=a(1048);!function(e){e.Subject="Subject",e.CurriculumAudience="CurriculumAudience",e.CurriculumSubject="CurriculumSubject",e.CurriculumArea="CurriculumArea",e.CurriculumLeaf="CurriculumLeaf",e.CurriculumMetadata="CurriculumMetadata"}(Ae||(Ae={}));var Ne=a(2284);function Fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var Pe="filters.classification",Te=a(61699),Ie=a(99742),we=a(23232),_e="search.searchResultsEmptyState";function De(e){var t,a,n=e.scotland&&"nessie"===(null===(a=null===(t=e.query)||void 0===t?void 0:t.trim())||void 0===a?void 0:a.toLowerCase())?Ie.W.EmptyStates.Search.RESULTS_SCOTLAND:Ie.W.EmptyStates.Search.RESULTS;return i().createElement(I.D.Provider,{value:_e},i().createElement(we.u,null,i().createElement(we.u.Image,{src:n}),i().createElement(we.u.Heading,null,e.query?i().createElement(I.x,{phrase:"headingWithQuery",options:{query:e.query}}):i().createElement(I.x,{phrase:"headingWithoutQuery"})),i().createElement(we.u.Info,null,i().createElement(I.x,{phrase:"info"}),i().createElement(w.F,{className:"info-link",appLink:{application:O.O.SUBJECT,action:A.e.Subjects.CLASSIFICATION_ALL}},i().createElement(I.x,{phrase:"topicsAppLink"})))))}function Re(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,i,r,s,c=[],o=!0,l=!1;try{if(r=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;o=!1}else for(;!(o=(n=r.call(a)).done)&&(c.push(n.value),c.length!==t);o=!0);}catch(e){l=!0,i=e}finally{try{if(!o&&null!=a.return&&(s=a.return(),Object(s)!==s))return}finally{if(l)throw i}}return c}}(e,t)||Ve(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 Ve(e,t){if(e){if("string"==typeof e)return Me(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Me(e,t):void 0}}function Me(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function Ue(e){var t,a,i,I,w,_,R,V,M,U,B,q,G,H,W,$,J=e.queryParams,X=J.query,Q=Re((0,c.D)(j.y.SHOW_SEARCH_MASK,!0),2),Y=Q[0],Z=Q[1],K=Re(n.useState(null),2),ee=K[0],te=K[1],ae=Re(n.useState(!1),2),ne=ae[0],ie=ae[1],re=Re(n.useState(),2),se=re[0],ce=re[1],oe=Re(n.useState(null),2),le=oe[0],ue=oe[1],de=Re(n.useState(!1),2),me=de[0],pe=de[1],ve=!!(null===(a=null===(t=null==ee?void 0:ee.pagination)||void 0===t?void 0:t.cursors)||void 0===a?void 0:a.next),ye=s.a.useBasicFetch(l.N.currentUser()),fe=s.a.useBasicFetch(p.L.config()),ge=s.a.useBasicFetch((null===(i=ye.data)||void 0===i?void 0:i.isAuthenticated)&&g.h.yearGroups(ye.data.customerId)),he=(0,F.y)(h.R.Subject),be=he.presentation,Ee=he.availablePresentations,Se=he.hasLoaded,xe=(0,P.M)().availableCurriculums,Ie=(0,E.i)(),we=function(e){var t,a=s.a.useBasicFetch(Te.o.availablePresentations(h.R.Subject)),n=(0,(0,k.T)().hasPermissions)(x.C.StudentExperience)?e?[null==e?void 0:e.id]:null:null===(t=a.data)||void 0===t?void 0:t.map((function(e){return e.id}));return s.a.useBasicFetch(a.hasCompleted&&n&&ke.J.schoolLevels(n))}(be),_e=null===(w=null===(I=we.data)||void 0===I?void 0:I.schoolLevels)||void 0===w?void 0:w.map((function(e){return e.id})),Ue=s.a.useBasicFetch((null==we?void 0:we.data)&&m.x.topicsFromAllAvailablePresentations(_e)),Be=s.a.useBasicFetch(N.Z.ratings(null===(_=ye.data)||void 0===_?void 0:_.countryCode)),qe=(0,k.T)(),Ge=qe.hasPermissions,He=qe.hasLocalPermissions,We=Ge(x.C.StudentExperience),$e=Ge(x.C.ViewCurriculums),Je=He(x.E.UseSeriesActions),Xe=function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,c=(null==a?void 0:a.length)&&y.qr.buildBackendFilterParams(e,a,n,r);(c=je.t.pick(c,[Pe]))["filters.classificationType"]=Ae.Subject,c["filters.status"]=Ne.W.Published;var o=null!==(t=null==i?void 0:i.reduce((function(e,t){return e[t.id]=t,e}),{}))&&void 0!==t?t:{},l=!y.qr.getAppliedIndices(e).includes("classification"),u=c&&ke.J.search(e.query,["classification"],c,null,(function(e){var t,a=e.results;if(!a.length)return e;var n=null===(t=a[0])||void 0===t?void 0:t._score;return Object.assign(Object.assign({},e),{results:T.y.mapMaxScoreToSearchResults(a,n)})})),d=s.a.useBasicFetch(!!c&&!l&&u);if(!d.data)return d;if(!i||(null==i?void 0:i.length)<2)return d;var m,p=(m=d.data.results,function(e){if(Array.isArray(e))return Fe(e)}(m)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(m)||function(e,t){if(e){if("string"==typeof e)return Fe(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Fe(e,t):void 0}}(m)||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.")}()).sort((function(e,t){if(e._score!==t._score)return 0;var a=o[e.presentationId],n=o[t.presentationId];return a?n?a.value-n.value:-1:1}));return Object.assign(Object.assign({},d),{data:Object.assign(Object.assign({},d.data),{results:p})})}(J,Be.data,null==be?void 0:be.id,Ee,We),Qe=function(e,t){var a,n=z.y.flattenResults(e),i=null===(a=null==n?void 0:n.results)||void 0===a?void 0:a.find((function(e){return!!e._featured&&"video"===e._index})),r=s.a.useBasicFetch(i&&"video"===i._index?Le.R.video(i.id):null);if(r.data){var c=i._index,o=i._score,l=i._featured;return Object.assign(Object.assign({},r.data),{_index:c,_score:o,_featured:l,_maxScore:t})}}(ee,se);(0,o.o)(null!=X?X:""),(0,d.M)({fetchNextPage:function(){var e,t;return it(null===(t=null===(e=ee.pagination)||void 0===e?void 0:e.cursors)||void 0===t?void 0:t.next)},hasMore:ve,isFetching:ne}),T.y.useOnFilterChange(it,J);var ze=(0,L._)(L.i.VideoItem),Ye=(0,r.useDispatch)(),Ze=(0,C.c)(S.LocationContext.VideoThumbnail),Ke=Ze.setFavourite,et=Ze.canFavourite,tt=Ie.hasCompleted&&Se&&ye.hasCompleted&&Be.hasCompleted&&fe.hasCompleted;n.useEffect((function(){it()}),[X,tt]),n.useEffect((function(){Y&&Z(!1)}),[]),T.y.useMixinCurriculumLinks(ee,te,Ye,xe,$e);var at=(0,b.V)();function nt(){return Ge(x.C.StudentExperience)?["clip","interactive"]:[]}function it(e){if(tt){ie(!0),e||pe(!0);var t=y.qr.buildBackendFilterParams(J,Be.data,null==be?void 0:be.id,We),a=y.qr.getAppliedIndices(J).filter((function(e){return"classification"!==e})),n=nt();if(!(a=a.filter((function(e){return!n.find((function(t){return t===e}))}))).length)return te({results:[],totalResults:0,pagination:null}),ie(!1),void pe(!1);s.a.fetch(Ye,ke.J.search(X,a,t,e,(function(t){var a,n;if(e)te(Object.assign(Object.assign({},ee),{results:[].concat((n=ee.results,function(e){if(Array.isArray(e))return Me(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||Ve(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[T.y.mapMaxScoreToSearchResults(t.results,se)]),pagination:t.pagination}));else{var i=null===(a=null==t?void 0:t.results[0])||void 0===a?void 0:a._score;ce(i),te(Object.assign(Object.assign({},t),{results:[T.y.mapMaxScoreToSearchResults(t.results,i)]}))}ie(!1)}),(function(e){(0,f.r)(e.status),ie(!1)}))),e||s.a.fetch(Ye,ke.J.tagsAndClassifications(X,a,t,e,(function(e){ue(e),pe(!1)}),(function(){pe(!1)})))}}var rt=[y.x$.ObjectTypes(nt()),y.x$.Rating(Be.data),y.x$.HasResources(),y.x$.HasSubtitles(),y.x$.TagOrClassification(le)],st=y.x$.Presentation(null===(R=we.data)||void 0===R?void 0:R.schoolLevels);y.qr.showPresentationFilter(st)&&rt.unshift(st);var ct=y.x$.Topics(null===(V=Ue.data)||void 0===V?void 0:V.topics.map((function(e){return{name:e.name,id:e.topicIds.join(":")}})));ct.options&&ct.options.length>1&&rt.unshift(ct);var ot=y.qr.getMoreFilters([y.x$.ProductionYear(),y.x$.IsHD(),y.x$.IsClickViewContent(),y.x$.Duration()]);return ee&&tt?n.createElement("div",{className:"px-4"},n.createElement(Oe,{substitute:ee.substituteQuery,queryParams:J}),!ee.substituteQuery&&n.createElement(D,{suggestions:null==ee?void 0:ee.suggestions,queryParams:J}),!!Ie.data&&!!Be.data&&!!Ue.data&&n.createElement(v.J,{queryParams:J,mainFilters:rt,moreFilters:ot,analyticsOptions:{entity:S.EntityType.SearchResults,location:S.LocationContext.SearchFilters},appLink:{application:O.O.SEARCH,action:A.e.Search.HOME},isFetchingOptions:me}),n.createElement("section",null,(ee.totalResults||(null===(M=Xe.data)||void 0===M?void 0:M.totalResults))&&Ee?n.createElement(Ce,{results:ee,topics:Xe.data,featuredResult:Qe,getVideoItemActions:ze,setFavourite:function(e,t,a,n,i){Ke(e,t,(function(){var a=ee.results.map((function(a){return a.map((function(a){if(a.id!==e.id)return a;var n=ye.data;return Object.assign(Object.assign({},a),{favouritedBy:{data:t?[n]:[],pagination:{limit:25,cursors:{next:"",previous:""}}}})}))}));te(Object.assign(Object.assign({},ee),{results:a}))}),n,i)},canFavourite:et,audiences:Ie.data,currentUser:ye.data,imageCdnUrl:fe.data.imageCdnUrl,availablePresentations:Ee,showActions:!We&&Je,mediaQuery:at,yearGroups:ge.data}):n.createElement(De,{query:X,scotland:null!==(H=!!(null===(G=null===(B=null===(U=null==be?void 0:be.description)||void 0===U?void 0:U.toLowerCase)||void 0===B?void 0:(q=B.call(U)).includes)||void 0===G?void 0:G.call(q,"scotland")))&&void 0!==H&&H}),ve&&n.createElement(u._,{isFetching:ne,fetchNext:it,nextCursor:null===($=null===(W=ee.pagination)||void 0===W?void 0:W.cursors)||void 0===$?void 0:$.next}))):n.createElement(n.Fragment,null)}Ue.defaultProps={queryParams:{}}},24965:(e,t,a)=>{a.d(t,{Z:()=>i});var n=a(97395),i={ratings:function(e){return{url:"/api/domain/v2/me/ratings",publicUrl:n._.urlBuilder("/api/domain/v2/me/ratings",{countryCode:e}),key:"ratings",formatData:function(e){return e.sort((function(e,t){return e.value-t.value}))}}}}},82817:(e,t,a)=>{a.d(t,{M:()=>u});var n=a(20354),i=a(75896),r=a(21750),s=a(22902),c=a(16714),o=a(25925),l=a(86698),u=function(e){var t,a=(0,(0,s.T)().hasPermissions)(c.C.ViewCurriculums),u=(0,l.y)(o.R.Curriculum),d=u.hasLoaded,m=u.availablePresentations,p=u.presentation,v=u.persistPresentation,y=n.a.useBasicFetch((null==p?void 0:p.id)&&e&&r.x.curriculumLinks(e,null==p?void 0:p.id)),f=null==m?void 0:m.map((function(e){return e.id})),g=n.a.useBasicFetch(e&&(null==f?void 0:f.length)&&r.x.hasCurriculumLinks([e],f)),h=null===(t=i.m.first(g.data))||void 0===t?void 0:t._hasCurriculumLinks;return{hasLoaded:!a||!!(d&&y.hasCompleted&&g.hasCompleted),currentCurriculum:p,curriculumLinks:y.data,availableCurriculums:m,updateCurriculum:function(e,t,a){return v(t,a,e)},customerHasCurriculumLinks:h}}},44110:(e,t,a)=>{a.d(t,{i:()=>c});var n=a(20354),i=a(25925),r=a(89454),s=a(86698),c=function(){var e=(0,s.y)(i.R.Subject).presentation;return n.a.useBasicFetch(!!e&&r.O.presentationAudiences(e.id))}}}]);
|