@clickview/lite 0.31.0 → 0.31.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +1 -1
- package/dist/languages/en-gb.json +4218 -0
- package/dist/languages/en-us.json +4218 -0
- package/dist/languages/en.json +1 -1
- package/dist/scripts/{1200-9a411abf42-lite.chunk.js → 1200-bec7db5b08-lite.chunk.js} +1 -1
- package/dist/scripts/{1366-d52572015e-lite.chunk.js → 1366-97fd1ee802-lite.chunk.js} +1 -1
- package/dist/scripts/{1592-dcc4772f16-lite.chunk.js → 1592-68884d6d6c-lite.chunk.js} +1 -1
- package/dist/scripts/{162-16df777e96-lite.chunk.js → 162-e4b981a0ac-lite.chunk.js} +2 -2
- package/dist/scripts/{1977-7cc7e5343b-lite.chunk.js → 1977-5abe20f323-lite.chunk.js} +2 -2
- package/dist/scripts/{2066-db515814ad-lite.chunk.js → 2066-035a4e9ee9-lite.chunk.js} +1 -1
- package/dist/scripts/{2118-8b6fa7abde-lite.chunk.js → 2118-e4f8b7b15b-lite.chunk.js} +1 -1
- package/dist/scripts/{3645-dd57bf267e-lite.chunk.js → 3645-1cb04952b3-lite.chunk.js} +1 -1
- package/dist/scripts/{3667-9a2a4c64b5-lite.chunk.js → 3667-286f44bcc9-lite.chunk.js} +1 -1
- package/dist/scripts/{4617-67b3036cbe-lite.chunk.js → 4617-b2272ef83d-lite.chunk.js} +1 -1
- package/dist/scripts/{4676-bb8b7e034f-lite.chunk.js → 4676-63c3c6916c-lite.chunk.js} +1 -1
- package/dist/scripts/{4901-dbbd888771-lite.chunk.js → 4901-8082b8c806-lite.chunk.js} +1 -1
- package/dist/scripts/{4942-41d01acc50-lite.chunk.js → 4942-e1855d3e14-lite.chunk.js} +1 -1
- package/dist/scripts/{5268-c0ad8047b8-lite.chunk.js → 5268-7044ddf2c8-lite.chunk.js} +1 -1
- package/dist/scripts/{5622-df1c9f72f5-lite.chunk.js → 5622-2e03de5953-lite.chunk.js} +1 -1
- package/dist/scripts/{6801-afab3dd733-lite.chunk.js → 6801-aa9f8c265b-lite.chunk.js} +1 -1
- package/dist/scripts/{6896-467ac6697c-lite.chunk.js → 6896-2890da233e-lite.chunk.js} +1 -1
- package/dist/scripts/{7017-14feec9dd1-lite.chunk.js → 7017-cdf324e732-lite.chunk.js} +1 -1
- package/dist/scripts/{7052-baf4150fb1-lite.chunk.js → 7052-69903b989d-lite.chunk.js} +1 -1
- package/dist/scripts/{7072-c3785ca37e-lite.chunk.js → 7072-9f3b5575a2-lite.chunk.js} +1 -1
- package/dist/scripts/{7221-aed0b2fd5c-lite.chunk.js → 7221-c8f716fead-lite.chunk.js} +1 -1
- package/dist/scripts/7318-7aa5593557-lite.chunk.js +2 -0
- package/dist/scripts/{7950-5ea68fae3f-lite.chunk.js → 7950-6be639d990-lite.chunk.js} +1 -1
- package/dist/scripts/{8323-ebde7e14b0-lite.chunk.js → 8323-7392e64015-lite.chunk.js} +1 -1
- package/dist/scripts/{8367-9dfee373b1-lite.chunk.js → 8367-53976b1002-lite.chunk.js} +1 -1
- package/dist/scripts/{8681-57707d9f89-lite.chunk.js → 8681-9e4cc2dbc7-lite.chunk.js} +1 -1
- package/dist/scripts/{9428-c2ec53b44d-lite.chunk.js → 9428-1f28bc6429-lite.chunk.js} +1 -1
- package/dist/scripts/{9478-76af6fb48c-lite.chunk.js → 9478-9b51791ecb-lite.chunk.js} +1 -1
- package/dist/scripts/{9484-d9aef28b8a-lite.chunk.js → 9484-cf98c2c51d-lite.chunk.js} +1 -1
- package/dist/scripts/{9522-fdc269fa55-lite.chunk.js → 9522-3c117f4efe-lite.chunk.js} +1 -1
- package/dist/scripts/bundle-090e4ef8d6.min.js +2 -0
- package/jest.config.js +11 -11
- package/package.json +61 -61
- package/typings/libs/CVEvents.d.ts +12 -12
- package/typings/libs/CVLanguages.d.ts +24 -24
- package/typings/libs/backbone.validation.d.ts +99 -99
- package/typings/libs/cloneDeep.d.ts +4 -4
- package/typings/libs/cookiesjs.d.ts +25 -25
- package/typings/libs/draft-convert.d.ts +3 -3
- package/typings/libs/google-api.d.ts +93 -93
- package/typings/libs/intersection-observer.d.ts +82 -82
- package/typings/libs/microsoft-teams.d.ts +2 -2
- package/typings/libs/react-table-config.d.ts +138 -138
- package/typings/libs/trackjs.d.ts +2 -2
- package/typings/libs/videojs-contrib-quality-levels.d.ts +28 -28
- package/typings/utils/imports.d.ts +13 -13
- package/dist/scripts/7318-bee88ab659-lite.chunk.js +0 -2
- package/dist/scripts/bundle-307c4a7106.min.js +0 -2
- /package/dist/scripts/{1090-6357a8481e-lite.chunk.js → 1090-ab8f0bb780-lite.chunk.js} +0 -0
- /package/dist/scripts/{1200-9a411abf42-lite.chunk.js.LICENSE.txt → 1200-bec7db5b08-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{1285-7afa47b773-lite.chunk.js → 1285-808ddb5840-lite.chunk.js} +0 -0
- /package/dist/scripts/{1291-afca7b0cd0-lite.chunk.js → 1291-71d52440ec-lite.chunk.js} +0 -0
- /package/dist/scripts/{1341-1d121961bb-lite.chunk.js → 1341-4d2b44ea1d-lite.chunk.js} +0 -0
- /package/dist/scripts/{1366-d52572015e-lite.chunk.js.LICENSE.txt → 1366-97fd1ee802-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{147-f32522149a-lite.chunk.js → 147-82593463bf-lite.chunk.js} +0 -0
- /package/dist/scripts/{1475-820fef70f4-lite.chunk.js → 1475-b95463b549-lite.chunk.js} +0 -0
- /package/dist/scripts/{1517-5b862f657e-lite.chunk.js → 1517-c7b2628bf5-lite.chunk.js} +0 -0
- /package/dist/scripts/{1518-277693df55-lite.chunk.js → 1518-3c154650f6-lite.chunk.js} +0 -0
- /package/dist/scripts/{1536-85717afe85-lite.chunk.js → 1536-46e6a18e52-lite.chunk.js} +0 -0
- /package/dist/scripts/{156-dde8ca94d7-lite.chunk.js → 156-1752870661-lite.chunk.js} +0 -0
- /package/dist/scripts/{1592-dcc4772f16-lite.chunk.js.LICENSE.txt → 1592-68884d6d6c-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{162-16df777e96-lite.chunk.js.LICENSE.txt → 162-e4b981a0ac-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{1655-e5d6dfb27a-lite.chunk.js → 1655-80e664abd2-lite.chunk.js} +0 -0
- /package/dist/scripts/{1766-164756da7c-lite.chunk.js → 1766-984f175880-lite.chunk.js} +0 -0
- /package/dist/scripts/{1794-2ce2b767a9-lite.chunk.js → 1794-c90de6e8b5-lite.chunk.js} +0 -0
- /package/dist/scripts/{1820-521c94621b-lite.chunk.js → 1820-7e316e771c-lite.chunk.js} +0 -0
- /package/dist/scripts/{1863-4b2cc1922c-lite.chunk.js → 1863-193dd09637-lite.chunk.js} +0 -0
- /package/dist/scripts/{1891-f871c22b2f-lite.chunk.js → 1891-c6c9089212-lite.chunk.js} +0 -0
- /package/dist/scripts/{1924-2a21fe2738-lite.chunk.js → 1924-3da4250730-lite.chunk.js} +0 -0
- /package/dist/scripts/{1977-7cc7e5343b-lite.chunk.js.LICENSE.txt → 1977-5abe20f323-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2066-db515814ad-lite.chunk.js.LICENSE.txt → 2066-035a4e9ee9-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2095-fffbd264d1-lite.chunk.js → 2095-0f43115eb1-lite.chunk.js} +0 -0
- /package/dist/scripts/{2118-8b6fa7abde-lite.chunk.js.LICENSE.txt → 2118-e4f8b7b15b-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2229-bc14b074ed-lite.chunk.js → 2229-2f18b946ae-lite.chunk.js} +0 -0
- /package/dist/scripts/{2269-aafae0c3da-lite.chunk.js → 2269-28704b094a-lite.chunk.js} +0 -0
- /package/dist/scripts/{227-7c680a98a4-lite.chunk.js → 227-09e6fb95db-lite.chunk.js} +0 -0
- /package/dist/scripts/{2279-91adb10745-lite.chunk.js → 2279-634b7aa366-lite.chunk.js} +0 -0
- /package/dist/scripts/{2452-bbbcc9cfc4-lite.chunk.js → 2452-c3bbdacb87-lite.chunk.js} +0 -0
- /package/dist/scripts/{2477-f408e61006-lite.chunk.js → 2477-8af0dd9a48-lite.chunk.js} +0 -0
- /package/dist/scripts/{2608-bf3f792d3d-lite.chunk.js → 2608-e01d98709d-lite.chunk.js} +0 -0
- /package/dist/scripts/{2701-093bcc66ac-lite.chunk.js → 2701-e11c235912-lite.chunk.js} +0 -0
- /package/dist/scripts/{275-f95c8de900-lite.chunk.js → 275-02cb3cbc61-lite.chunk.js} +0 -0
- /package/dist/scripts/{2956-4b8e0a4c58-lite.chunk.js → 2956-11016d6da1-lite.chunk.js} +0 -0
- /package/dist/scripts/{2966-a88d11d626-lite.chunk.js → 2966-fbcd8659a7-lite.chunk.js} +0 -0
- /package/dist/scripts/{3007-4a6a008485-lite.chunk.js → 3007-9507eed4ed-lite.chunk.js} +0 -0
- /package/dist/scripts/{3012-5ffcff3af0-lite.chunk.js → 3012-4f960076c8-lite.chunk.js} +0 -0
- /package/dist/scripts/{3020-9f0d773484-lite.chunk.js → 3020-cf93b2862e-lite.chunk.js} +0 -0
- /package/dist/scripts/{3108-7f0dde546a-lite.chunk.js → 3108-59f96004c1-lite.chunk.js} +0 -0
- /package/dist/scripts/{3171-88406511bb-lite.chunk.js → 3171-2f782ced16-lite.chunk.js} +0 -0
- /package/dist/scripts/{3216-ecf04b612f-lite.chunk.js → 3216-43bdb234b7-lite.chunk.js} +0 -0
- /package/dist/scripts/{3285-72f1592710-lite.chunk.js → 3285-591f1481e2-lite.chunk.js} +0 -0
- /package/dist/scripts/{3468-5c42c3f485-lite.chunk.js → 3468-4d6fd53bf9-lite.chunk.js} +0 -0
- /package/dist/scripts/{3533-ad26b0a09c-lite.chunk.js → 3533-faab1d1e13-lite.chunk.js} +0 -0
- /package/dist/scripts/{355-f578d9beb2-lite.chunk.js → 355-9d84132a7e-lite.chunk.js} +0 -0
- /package/dist/scripts/{3645-dd57bf267e-lite.chunk.js.LICENSE.txt → 3645-1cb04952b3-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3667-9a2a4c64b5-lite.chunk.js.LICENSE.txt → 3667-286f44bcc9-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3754-6d17b49de7-lite.chunk.js → 3754-8f2e909218-lite.chunk.js} +0 -0
- /package/dist/scripts/{3787-f1b980ca08-lite.chunk.js → 3787-76a04b7060-lite.chunk.js} +0 -0
- /package/dist/scripts/{383-439553ff8f-lite.chunk.js → 383-be043be921-lite.chunk.js} +0 -0
- /package/dist/scripts/{3836-0924c271f0-lite.chunk.js → 3836-9829ebb938-lite.chunk.js} +0 -0
- /package/dist/scripts/{3848-64b1dab37f-lite.chunk.js → 3848-a8f23fe5d2-lite.chunk.js} +0 -0
- /package/dist/scripts/{3849-815facaf40-lite.chunk.js → 3849-7291db19ee-lite.chunk.js} +0 -0
- /package/dist/scripts/{389-5ff8e9b829-lite.chunk.js → 389-1c741de6f0-lite.chunk.js} +0 -0
- /package/dist/scripts/{3966-61770122fe-lite.chunk.js → 3966-5a706a9450-lite.chunk.js} +0 -0
- /package/dist/scripts/{4052-a88bdbbcf1-lite.chunk.js → 4052-92609e6d25-lite.chunk.js} +0 -0
- /package/dist/scripts/{414-baf33cb9d0-lite.chunk.js → 414-553dbd2774-lite.chunk.js} +0 -0
- /package/dist/scripts/{4145-52b65d2e94-lite.chunk.js → 4145-7d354920a2-lite.chunk.js} +0 -0
- /package/dist/scripts/{4182-f84b364819-lite.chunk.js → 4182-e168bebe60-lite.chunk.js} +0 -0
- /package/dist/scripts/{4229-c1df7ea14b-lite.chunk.js → 4229-43454055df-lite.chunk.js} +0 -0
- /package/dist/scripts/{4290-e921ae9e76-lite.chunk.js → 4290-6356cbba4b-lite.chunk.js} +0 -0
- /package/dist/scripts/{4326-ec9ca09585-lite.chunk.js → 4326-9a04c1675b-lite.chunk.js} +0 -0
- /package/dist/scripts/{4417-baddebbdf6-lite.chunk.js → 4417-8ae222cad6-lite.chunk.js} +0 -0
- /package/dist/scripts/{4436-575256cade-lite.chunk.js → 4436-813f2de728-lite.chunk.js} +0 -0
- /package/dist/scripts/{4484-bd2cf7b458-lite.chunk.js → 4484-65672447cd-lite.chunk.js} +0 -0
- /package/dist/scripts/{4541-169300086f-lite.chunk.js → 4541-59de215916-lite.chunk.js} +0 -0
- /package/dist/scripts/{4632-98c863e6c1-lite.chunk.js → 4632-6b1fc03e10-lite.chunk.js} +0 -0
- /package/dist/scripts/{4676-bb8b7e034f-lite.chunk.js.LICENSE.txt → 4676-63c3c6916c-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{4690-7add6db107-lite.chunk.js → 4690-ddb6f8e33d-lite.chunk.js} +0 -0
- /package/dist/scripts/{4763-42f4ee27a6-lite.chunk.js → 4763-7c2c7a86e0-lite.chunk.js} +0 -0
- /package/dist/scripts/{482-91567ba9a5-lite.chunk.js → 482-af25a29b0b-lite.chunk.js} +0 -0
- /package/dist/scripts/{4893-c8fbae6c8d-lite.chunk.js → 4893-8e3089e4e0-lite.chunk.js} +0 -0
- /package/dist/scripts/{4901-dbbd888771-lite.chunk.js.LICENSE.txt → 4901-8082b8c806-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{4942-41d01acc50-lite.chunk.js.LICENSE.txt → 4942-e1855d3e14-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{5041-858ca41ef8-lite.chunk.js → 5041-f44af0519b-lite.chunk.js} +0 -0
- /package/dist/scripts/{5268-c0ad8047b8-lite.chunk.js.LICENSE.txt → 5268-7044ddf2c8-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{5385-902a17aca1-lite.chunk.js → 5385-fe599acaba-lite.chunk.js} +0 -0
- /package/dist/scripts/{5395-cc691d41a1-lite.chunk.js → 5395-34cf703caa-lite.chunk.js} +0 -0
- /package/dist/scripts/{5595-ec7a1d94d6-lite.chunk.js → 5595-26ed2f284d-lite.chunk.js} +0 -0
- /package/dist/scripts/{5622-df1c9f72f5-lite.chunk.js.LICENSE.txt → 5622-2e03de5953-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{5756-7e5a76b657-lite.chunk.js → 5756-29a508f73a-lite.chunk.js} +0 -0
- /package/dist/scripts/{5914-8fbc9ac553-lite.chunk.js → 5914-cfa6c18819-lite.chunk.js} +0 -0
- /package/dist/scripts/{5974-5de4c745e3-lite.chunk.js → 5974-1581f6f7f6-lite.chunk.js} +0 -0
- /package/dist/scripts/{6057-7472925513-lite.chunk.js → 6057-04eb525941-lite.chunk.js} +0 -0
- /package/dist/scripts/{6154-531092aec6-lite.chunk.js → 6154-ffb893a889-lite.chunk.js} +0 -0
- /package/dist/scripts/{6158-e5522a2a15-lite.chunk.js → 6158-0d65ceba28-lite.chunk.js} +0 -0
- /package/dist/scripts/{6254-67c2d529b5-lite.chunk.js → 6254-1268090b9d-lite.chunk.js} +0 -0
- /package/dist/scripts/{6263-cbad229bfe-lite.chunk.js → 6263-9c75a88d29-lite.chunk.js} +0 -0
- /package/dist/scripts/{6274-e6a04ae100-lite.chunk.js → 6274-45d001b699-lite.chunk.js} +0 -0
- /package/dist/scripts/{6302-6506ee47b5-lite.chunk.js → 6302-4436120348-lite.chunk.js} +0 -0
- /package/dist/scripts/{6368-d27d7ddad7-lite.chunk.js → 6368-a2e4a426ab-lite.chunk.js} +0 -0
- /package/dist/scripts/{6370-9d45b8efc0-lite.chunk.js → 6370-656f9c3e95-lite.chunk.js} +0 -0
- /package/dist/scripts/{6450-3d380d7fb6-lite.chunk.js → 6450-2c3a1e7763-lite.chunk.js} +0 -0
- /package/dist/scripts/{6465-61c304878d-lite.chunk.js → 6465-a18bb45727-lite.chunk.js} +0 -0
- /package/dist/scripts/{6480-0f993f9e8d-lite.chunk.js → 6480-d55c2f6f97-lite.chunk.js} +0 -0
- /package/dist/scripts/{6493-e8829f4043-lite.chunk.js → 6493-9b29994c11-lite.chunk.js} +0 -0
- /package/dist/scripts/{6604-afa7ada95d-lite.chunk.js → 6604-f78bf0630f-lite.chunk.js} +0 -0
- /package/dist/scripts/{6689-f8f1fe1624-lite.chunk.js → 6689-19a76c14e6-lite.chunk.js} +0 -0
- /package/dist/scripts/{6821-f7d1d7ef07-lite.chunk.js → 6821-cc3095a218-lite.chunk.js} +0 -0
- /package/dist/scripts/{6822-3c052e82fe-lite.chunk.js → 6822-88521d238b-lite.chunk.js} +0 -0
- /package/dist/scripts/{6873-032b4915f9-lite.chunk.js → 6873-985ec69710-lite.chunk.js} +0 -0
- /package/dist/scripts/{689-872cae611f-lite.chunk.js → 689-3c6e57d812-lite.chunk.js} +0 -0
- /package/dist/scripts/{6896-467ac6697c-lite.chunk.js.LICENSE.txt → 6896-2890da233e-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{6932-c7817af4d6-lite.chunk.js → 6932-4fceb404ed-lite.chunk.js} +0 -0
- /package/dist/scripts/{7017-14feec9dd1-lite.chunk.js.LICENSE.txt → 7017-cdf324e732-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7045-70afbf80c3-lite.chunk.js → 7045-f578d0a23f-lite.chunk.js} +0 -0
- /package/dist/scripts/{7052-baf4150fb1-lite.chunk.js.LICENSE.txt → 7052-69903b989d-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7056-db7a72ae7a-lite.chunk.js → 7056-31c38a89dd-lite.chunk.js} +0 -0
- /package/dist/scripts/{7072-c3785ca37e-lite.chunk.js.LICENSE.txt → 7072-9f3b5575a2-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7108-2acfc76a8d-lite.chunk.js → 7108-5a736ac3bd-lite.chunk.js} +0 -0
- /package/dist/scripts/{7115-1dc32e54d7-lite.chunk.js → 7115-cb3e6b9f0e-lite.chunk.js} +0 -0
- /package/dist/scripts/{7117-f7821bddb5-lite.chunk.js → 7117-31061aa201-lite.chunk.js} +0 -0
- /package/dist/scripts/{7128-e83c5ba823-lite.chunk.js → 7128-bb325140b2-lite.chunk.js} +0 -0
- /package/dist/scripts/{714-2bf8567e2a-lite.chunk.js → 714-302bba8f82-lite.chunk.js} +0 -0
- /package/dist/scripts/{7172-6c0b0b571e-lite.chunk.js → 7172-e2add93436-lite.chunk.js} +0 -0
- /package/dist/scripts/{7203-89126e42d2-lite.chunk.js → 7203-4cd51b60a5-lite.chunk.js} +0 -0
- /package/dist/scripts/{7221-aed0b2fd5c-lite.chunk.js.LICENSE.txt → 7221-c8f716fead-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7286-2500bc1b4d-lite.chunk.js → 7286-1379008638-lite.chunk.js} +0 -0
- /package/dist/scripts/{7318-bee88ab659-lite.chunk.js.LICENSE.txt → 7318-7aa5593557-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7341-e37e1b4702-lite.chunk.js → 7341-eb1bad3d02-lite.chunk.js} +0 -0
- /package/dist/scripts/{7506-461f96e632-lite.chunk.js → 7506-3eaf344940-lite.chunk.js} +0 -0
- /package/dist/scripts/{7708-a3f51335bb-lite.chunk.js → 7708-168b28b4b9-lite.chunk.js} +0 -0
- /package/dist/scripts/{7767-dec6177ee8-lite.chunk.js → 7767-6dd2c2f5d5-lite.chunk.js} +0 -0
- /package/dist/scripts/{7855-cb798dcf71-lite.chunk.js → 7855-d0b3720477-lite.chunk.js} +0 -0
- /package/dist/scripts/{7925-271289a49d-lite.chunk.js → 7925-d30e261c55-lite.chunk.js} +0 -0
- /package/dist/scripts/{7939-2241334bbc-lite.chunk.js → 7939-069695c2b5-lite.chunk.js} +0 -0
- /package/dist/scripts/{7950-5ea68fae3f-lite.chunk.js.LICENSE.txt → 7950-6be639d990-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7952-f487a842d1-lite.chunk.js → 7952-e47c1e49a3-lite.chunk.js} +0 -0
- /package/dist/scripts/{8025-aa024b643c-lite.chunk.js → 8025-1a3d147ab1-lite.chunk.js} +0 -0
- /package/dist/scripts/{8035-ae1f82dc2b-lite.chunk.js → 8035-cfc9101b02-lite.chunk.js} +0 -0
- /package/dist/scripts/{8038-d08d354f1d-lite.chunk.js → 8038-64097776ae-lite.chunk.js} +0 -0
- /package/dist/scripts/{8046-2f286c23d8-lite.chunk.js → 8046-c100682365-lite.chunk.js} +0 -0
- /package/dist/scripts/{8056-02148dac14-lite.chunk.js → 8056-42c5b638a1-lite.chunk.js} +0 -0
- /package/dist/scripts/{823-95520826e7-lite.chunk.js → 823-394819b6e2-lite.chunk.js} +0 -0
- /package/dist/scripts/{8252-0b0bc1f57d-lite.chunk.js → 8252-0e7545a270-lite.chunk.js} +0 -0
- /package/dist/scripts/{8292-ab603bf688-lite.chunk.js → 8292-5474c9d05b-lite.chunk.js} +0 -0
- /package/dist/scripts/{8323-ebde7e14b0-lite.chunk.js.LICENSE.txt → 8323-7392e64015-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8419-f49f8ac6fb-lite.chunk.js → 8419-1d91b60d17-lite.chunk.js} +0 -0
- /package/dist/scripts/{8466-d5ef6547c1-lite.chunk.js → 8466-bfb6296286-lite.chunk.js} +0 -0
- /package/dist/scripts/{8500-2c7416d260-lite.chunk.js → 8500-5a8c54adfb-lite.chunk.js} +0 -0
- /package/dist/scripts/{8516-eba25d7732-lite.chunk.js → 8516-2dd2445007-lite.chunk.js} +0 -0
- /package/dist/scripts/{8564-7754f107a5-lite.chunk.js → 8564-fa63bdf9ff-lite.chunk.js} +0 -0
- /package/dist/scripts/{8681-57707d9f89-lite.chunk.js.LICENSE.txt → 8681-9e4cc2dbc7-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8759-bf94a35e60-lite.chunk.js → 8759-bebac8e7eb-lite.chunk.js} +0 -0
- /package/dist/scripts/{8884-dbdbc50014-lite.chunk.js → 8884-e1b68fb19e-lite.chunk.js} +0 -0
- /package/dist/scripts/{8955-25ba847cda-lite.chunk.js → 8955-d96a8d96dd-lite.chunk.js} +0 -0
- /package/dist/scripts/{9060-39ba0d65a3-lite.chunk.js → 9060-055dda4160-lite.chunk.js} +0 -0
- /package/dist/scripts/{9133-886ce0448d-lite.chunk.js → 9133-9e8afb36ee-lite.chunk.js} +0 -0
- /package/dist/scripts/{9242-d2e9f4c647-lite.chunk.js → 9242-e54f9cc9bc-lite.chunk.js} +0 -0
- /package/dist/scripts/{9428-c2ec53b44d-lite.chunk.js.LICENSE.txt → 9428-1f28bc6429-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9455-0ff9a13476-lite.chunk.js → 9455-fe8ba71803-lite.chunk.js} +0 -0
- /package/dist/scripts/{9478-76af6fb48c-lite.chunk.js.LICENSE.txt → 9478-9b51791ecb-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9484-d9aef28b8a-lite.chunk.js.LICENSE.txt → 9484-cf98c2c51d-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{949-c7c36f2fb1-lite.chunk.js → 949-4e8c0b0874-lite.chunk.js} +0 -0
- /package/dist/scripts/{9522-fdc269fa55-lite.chunk.js.LICENSE.txt → 9522-3c117f4efe-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9714-43eeb20c56-lite.chunk.js → 9714-8f65a1e3d4-lite.chunk.js} +0 -0
- /package/dist/scripts/{9961-d95b268b23-lite.chunk.js → 9961-ffb664f963-lite.chunk.js} +0 -0
- /package/dist/scripts/{bundle-307c4a7106.min.js.LICENSE.txt → bundle-090e4ef8d6.min.js.LICENSE.txt} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 9522-
|
|
1
|
+
/*! For license information please see 9522-3c117f4efe-lite.chunk.js.LICENSE.txt */
|
|
2
2
|
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9522],{42328:(t,e,r)=>{r.d(e,{w:()=>i});var n=r(1024),o=r.n(n);function a(){return o().createElement("svg",{viewBox:"0 0 24 24"},o().createElement("path",{d:"M11.959 10.641l4.402-4.296a.964.964 0 0 1 1.358 0 .951.951 0 0 1 0 1.35l-4.403 4.297 4.403 4.378a.951.951 0 0 1 0 1.35.964.964 0 0 1-1.358 0l-4.402-4.378-4.32 4.378a.964.964 0 0 1-1.358 0 .951.951 0 0 1 0-1.35l4.32-4.378-4.32-4.362a.951.951 0 0 1 0-1.35.964.964 0 0 1 1.358 0l4.32 4.361z"}))}var i=o().forwardRef((function(t,e){var r=t.onClickClear,n=t.showClearButton,i=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}(t,["onClickClear","showClearButton"]);return o().createElement("div",{className:"position-relative"},o().createElement("input",Object.assign({},i,{ref:e,className:"".concat(t.className," ").concat("aYpO7")})),(!!t.value||n)&&o().createElement("span",{className:"".concat("ygMgF"," position-absolute cursor-pointer text-muted"),role:"button",onClick:r},o().createElement("div",{className:"d-inline-block svg-container md"},o().createElement(a,null))))}))},40688:(t,e,r)=>{r.d(e,{h:()=>en});var n=r(1024),o=r.n(n),a=r(57900),i=r(49985),c=r(74254),l=r(42328),u=["Teacher","Librarian","Curriculum Coordinator","Digital Technology Coordinator","IT","Head of Department","Head of Subject","Deputy Principal","Principal"],s=["Teacher","Librarian","Head of department","Subject lead","Curriculum coordinator","School leadership","District leadership","Academic coach","Instructional technology specialist","Consortium leadership","IT"],f={au:u,nz:u,uk:["Teacher","Librarian","IT/LRC","e-Learning/ICT Coordinator","Head of Key Stage","Head of Department","Subject Lead","Assistant Head Teacher","Deputy Head Teacher","Head Teacher"],us:s};function p(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 h(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)?h(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 h(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 d="OTHER";function m(t){var e=t.error,r=t.onChange,n=t.countryCode,a=p(o().useState(""),2),i=a[0],c=a[1],l=p(o().useState(""),2),u=l[0],h=l[1],m=function(t){return f[t]||s}(n),y=i===d;return o().createElement(o().Fragment,null,o().createElement("div",{className:"mb-2"},o().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),h(""),r(t.target.value===d?"":t.target.value)}},o().createElement("option",{value:"",disabled:!0,className:"text-muted"},"What do you do?"),m.map((function(t,e){return o().createElement("option",{value:t,className:"text-dark",key:e},t)})),o().createElement("option",{value:d,className:"text-dark"},"Other")),!!e&&!y&&o().createElement("div",{className:"invalid-feedback"},e)),y&&o().createElement("div",{className:"mb-3"},o().createElement("input",{className:"form-control form-control-lg ".concat(!!e&&"is-invalid"),type:"text",value:u,placeholder:"What do you do?",autoFocus:!0,onChange:function(t){h(t.target.value),r(t.target.value)}}),!!e&&o().createElement("div",{className:"invalid-feedback"},e)))}var y,v=r(83765);!function(t){t.AU="au",t.NZ="nz",t.UK="uk",t.US="us"}(y||(y={}));var g,b,w,S=["uk","gb","gg","im","je","ie"],E={au:y.AU,nz:y.NZ,us:y.US,uk:y.UK,gb:y.UK,gg:y.UK,im:y.UK,je:y.UK,ie:y.UK},x={au:v.M.CvApSoutheast1,uk:v.M.CvEuWest1,us:v.M.CvNaWest1,nz:v.M.CvApSoutheast2},L={getInstanceRegion:function(t){var e=L.getCountryCode(t);return x[e]},getCountryCode:function(t){return E[null==t?void 0:t.toLowerCase()]||y.US},isCountryCodeUK:function(t){return S.includes(t.toLowerCase())},isCountryCodeAU:function(t){return(null==t?void 0:t.toLowerCase())===y.AU},isCountryCodeUS:function(t){return(null==t?void 0:t.toLowerCase())===y.US},isCountryCodeNZ:function(t){return(null==t?void 0:t.toLowerCase())===y.NZ},isSupportedCountryCode:function(t){return Object.keys(E).includes(null==t?void 0:t.toLowerCase())},getLocalizedLocalityPlaceholderPhrase:function(t){if(t)return L.isCountryCodeUK(t)?"E.g. CR0 3RL or 36 Factory Lane":L.isCountryCodeAU(t)||L.isCountryCodeNZ(t)?"E.g. 2212 or Revesby":L.isCountryCodeUS(t)?"E.g. 95826 or Sacramento":void 0},getLocalizedLocalityPlaceholderText:function(t){if(t){var e=L.getLocalizedLocalityPlaceholderPhrase(t);if(e)return e}}},j=r(2102);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 O(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 C(t){var e,r,n,a,i,c,u,s,f,p=(s=o().useState({fullname:"",jobTitle:"",phone:""}),f=2,function(t){if(Array.isArray(t))return t}(s)||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}}(s,f)||function(t,e){if(t){if("string"==typeof t)return O(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)?O(t,e):void 0}}(s,f)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=p[0],d=p[1];function y(t,e){d((function(r){return Object.assign(Object.assign({},r),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==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}({},t,e))}))}return o().createElement("div",{className:"text-center"},o().createElement("h1",{className:"text-center h4"},"A little more about you"),o().createElement("p",null,"Please enter your details."),o().createElement("form",{onSubmit:function(e){e.preventDefault(),t.handleSubmitForm(h)}},o().createElement("div",{className:"form-group text-left"},o().createElement("label",{className:"d-block font-weight-bold mb-1",htmlFor:"fullname-input"},"Full name"),o().createElement(l.w,{value:h.fullname,onChange:function(e){e.preventDefault(),y("fullname",e.target.value),t.removeErrorForKey("fullname"),t.removeErrorForKey("submission")},name:"fullname-input",id:"fullname-input",type:"text",className:"form-control form-control-lg ".concat((null===(e=t.errors.fullname)||void 0===e?void 0:e.length)?"is-invalid":""),placeholder:"Enter your name",onClickClear:function(){y("fullname",""),t.removeErrorForKey("fullname"),t.removeErrorForKey("submission")},autoFocus:!0}),t.errors.fullname&&o().createElement("div",{className:"invalid-feedback d-block"},t.errors.fullname)),o().createElement("div",{className:"form-group text-left"},o().createElement("label",{className:"d-block font-weight-bold mb-1",htmlFor:"phone-input"},"Contact number"),o().createElement(l.w,{value:h.phone,onChange:function(e){e.preventDefault(),y("phone",e.target.value.trim()),t.removeErrorForKey("phone"),t.removeErrorForKey("submission")},name:"phone-input",id:"phone-input",type:"tel",className:"form-control form-control-lg ".concat((null===(r=t.errors.phone)||void 0===r?void 0:r.length)?"is-invalid":""),placeholder:"Enter your phone number",onClickClear:function(){y("phone",""),t.removeErrorForKey("phone"),t.removeErrorForKey("submission")}}),t.errors.phone&&o().createElement("div",{className:"invalid-feedback d-block"},t.errors.phone)),o().createElement("div",{className:"form-group text-left"},o().createElement("label",{className:"d-block font-weight-bold mb-1",htmlFor:"jobTitle-select"},"Job title"),o().createElement(m,{id:"jobTitle-select",countryCode:L.getCountryCode(t.country),onChange:function(e){y("jobTitle",e),t.removeErrorForKey("jobTitle"),t.removeErrorForKey("submission")},error:null===(n=t.errors)||void 0===n?void 0:n.jobTitle})),!!(null===(a=t.errors)||void 0===a?void 0:a.submission)&&o().createElement("div",{className:"form-group invalid-feedback d-block"},t.errors.submission),o().createElement("div",{className:"form-group mb-1"},o().createElement(j.m,{className:"btn btn-dark btn-lg w-100",onClick:function(){return t.handleSubmitForm(h)},showSpinner:t.loading,disabled:t.loading||(i=h.fullname,c=h.jobTitle,u=h.phone,!(i.length&&c.length&&u.length&&!Object.keys(t.errors).length))},"Submit"))))}!function(t){t.Unavailable="unavailable",t.Expired="expired",t.Active="active",t.NotRequired="not-required",t.Available="available",t.Unsupported="unsupported",t.UserAutoJoinAllowed="user-auto-join-allowed",t.UserJoinApprovalRequired="user-join-approval-required"}(g||(g={})),function(t){t.InvalidEmail="invalid-email"}(b||(b={})),function(t){t.Staff="staff",t.Learner="learner"}(w||(w={}));var A,N=r(63093),P=r(33003),U=r.n(P),I=r(84789);function T(t){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T(t)}function _(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 F(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?F(t,e):void 0}}(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 F(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function G(){G=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:k(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",h="suspendedYield",d="executing",m="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(P([])));E&&E!==r&&n.call(E,i)&&(w=E);var x=b.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==T(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function k(e,r,n){var o=p;return function(a,i){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=O(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function C(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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(T(e)+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(j.prototype),u(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new j(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.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}},e.values=P,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.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,y):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),y},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),A(r),y}},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;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function D(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==T(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==T(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===T(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var R={k12:"Primary & Secondary"},M=(D(A={},I.X.Auth,"auth.web"),D(A,I.X.Lite,"lite.web"),A),K={getClient:function(t){var e,r,n,o,a,i;return n=this,o=void 0,a=void 0,i=G().mark((function n(){var o,a,i,c,l,u;return G().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=t.brazeConfig,a=t.geoLocation,i=t.version,c=o[L.getInstanceRegion(null==a?void 0:a.countryCode)],l=M[t.productName],u=(0,N.getInstance)({baseUrl:c.url,apiKey:c.apiKey,productVersion:i,productName:l,enableLogging:!1,automaticallyShowInAppMessages:!1}),(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode)&&u.setUserCountry(null===(r=t.geoLocation)||void 0===r?void 0:r.countryCode),n.abrupt("return",u);case 6:case"end":return n.stop()}}),n)})),new(a||(a=Promise))((function(t,e){function r(t){try{l(i.next(t))}catch(t){e(t)}}function c(t){try{l(i.throw(t))}catch(t){e(t)}}function l(e){var n;e.done?t(e.value):(n=e.value,n instanceof a?n:new a((function(t){t(n)}))).then(r,c)}l((i=i.apply(n,o||[])).next())}))},hashedEmail:function(t){var e=t.trim().toLowerCase();return U().hash(e)},removeEmptyKeys:function(t){if(Array.isArray(t))return t;var e=Object.assign({},t);return Object.entries(e).filter((function(t){var e=_(t,2)[1];return null!==e&&!("string"==typeof e&&!e.length)})).reduce((function(t,e){var r=_(e,2),n=r[0],o=r[1];return Object.assign(Object.assign({},t),D({},n,o===Object(o)?K.removeEmptyKeys(o):o))}),{})},getEventTopic:function(){return"Free Trial Request"},getCustomEventType:function(){return N.ProductFormEvent.ProductTrailRequested},getSchoolType:function(t){if(t){var e=t.toLowerCase();if(!["unknown","other"].includes(e))return R[e]||t}}};function z(t){return z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},z(t)}function q(){q=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:k(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",h="suspendedYield",d="executing",m="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(P([])));E&&E!==r&&n.call(E,i)&&(w=E);var x=b.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==z(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function k(e,r,n){var o=p;return function(a,i){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=O(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function C(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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(z(e)+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(j.prototype),u(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new j(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.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}},e.values=P,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.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,y):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),y},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),A(r),y}},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;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function B(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 Y(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)?Y(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 Y(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 $=255,W=/\$+[\w\s]?/,V=/^\+?\d{4,255}$/;function H(t){if(!t)return{firstName:"",surname:""};var e=t.split(" ").filter((function(t){return t.length}));return{firstName:e.shift(),surname:e.join(" ")}}var J=r(65858),Z=r(45157),X=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 Q="__googleMapsScriptId";var tt;!function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"}(tt||(tt={}));class et{constructor({apiKey:t,authReferrerPolicy:e,channel:r,client:n,id:o=Q,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||Q,this.language=a,this.libraries=i,this.mapIds=c,this.nonce=l,this.region=u,this.retries=s,this.url=f,this.version=p,et.instance){if(!X(this.options,et.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(et.instance.options)}`);return et.instance}et.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?tt.FAILURE:this.done?tt.SUCCESS:this.loading?tt.LOADING:tt.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 rt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return nt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?nt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ot(t){return new et({apiKey:t.apiKey,version:"weekly",libraries:t.libraries,retries:3})}function at(t){var e={apiKey:t.apiKey,libraries:t.libraries||["places"]},r=rt(o().useState(!1),2),n=r[0],a=r[1],i=rt(o().useState(ot(e)),2),c=i[0],l=i[1];function u(t,r){c?c.loadCallback((function(e){if(e)return a(!1),void(r&&r(e));a(!0),t&&t()})):l(ot(e))}return o().useEffect((function(){u()}),[]),{loader:c,scriptLoaded:n,onGoogleApiReady:u}}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 ct(t){var e,r,n=at({apiKey:t.googleApiKey}).scriptLoaded,a=(e=o().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 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}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=a[0],c=a[1];return o().useEffect((function(){n&&c(new google.maps.places.AutocompleteService)}),[n]),i}function lt(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 ut="us",st="country:placeholder:text";function ft(t){var e,r,n=t.apiKey,i=t.geoLocation,c=t.makeRequest,l=void 0===c||c,u=t.template,s=void 0===u?"E.g. [placeholder]":u,f=t.templateKey,p=void 0===f?"[placeholder]":f,h=ct({googleApiKey:n}),d=o().useState((function(){return function(t){var e=L.getLocalizedLocalityPlaceholderText(null==t?void 0:t.countryCode);return e||(a.SG.cacheGet("".concat(st,":").concat(null==t?void 0:t.countryCode))||void 0)}(i)})),m=(r=2,function(t){if(Array.isArray(t))return t}(e=d)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return lt(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)?lt(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),y=m[0],v=m[1];function g(t,e){a.SG.cacheSet("".concat(st,":").concat(e),t,86400),v(t)}return o().useEffect((function(){if(!y&&h&&l){var t=(null==i?void 0:i.countryCode)||ut,e={input:String.fromCharCode(96+Z.Y.getRandomInt(26)),types:["(cities)"],region:t,componentRestrictions:{country:t}};h.getPlacePredictions(e,(function(e,r){return function(t,e,r){if(e===google.maps.places.PlacesServiceStatus.OK&&t){var n=t[Z.Y.getRandomInt(t.length)].description;g(s.replace(p,n),r)}else g(L.getLocalizedLocalityPlaceholderText(ut),r)}(e,r,t)}))}}),[y,h,i,l]),y}function pt(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 ht(t){var e,r,n=(e=o().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 pt(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)?pt(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=n[0],i=n[1],c=o().useRef();function l(){var t;c.current&&(null===(t=c.current.children[a-1])||void 0===t||t.scrollIntoView({block:"center"}))}return{selectedIndex:a,onKeyDown:function(e){if("ArrowDown"===e.code){e.stopPropagation(),e.preventDefault();var r=a+1;return r>t.itemCount&&(r=1),i(r),void l()}if("ArrowUp"===e.code){e.stopPropagation(),e.preventDefault();var n=a-1;return n<=0&&(n=t.itemCount),i(n),void l()}if("Enter"===e.code&&a>0)return e.stopPropagation(),e.preventDefault(),void t.onSelected(a-1);i(0)},containerRef:c}}function dt(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 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&&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 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=function(t){var e,r,n,o,a,i=t.formatted_address,c=dt(t.address_components);try{for(c.s();!(a=c.n()).done;){var l,u=a.value,s=dt(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 vt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var gt={1:"geocoderPermissionDenied",2:"geocoderUnavailable",3:"geocoderTimeout"},bt=r(28329);function wt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var St=r(11607);function Et(){return o().createElement("svg",{viewBox:"0 0 24 24"},o().createElement("path",{d:"m12.00559,20.40189c4.60881,0 8.37242,-3.78424 8.37242,-8.40189c0,-4.61764 -3.76361,-8.40187 -8.37242,-8.40187c-4.62002,0 -8.38365,3.78422 -8.38365,8.40187c0,4.61765 3.76364,8.40189 8.38365,8.40189zm0,-1.65557c-3.75235,0 -6.67085,-2.96208 -6.67085,-6.74632c0,-3.7842 2.91851,-6.74625 6.67085,-6.74625c3.74105,0 6.67084,2.96206 6.67084,6.74625c0,3.78424 -2.92978,6.74632 -6.67084,6.74632zm-10.14151,-6.02552l6.01731,0c0.40566,0 0.72118,-0.31536 0.72118,-0.7208c0,-0.40544 -0.31552,-0.7208 -0.72118,-0.7208l-6.01731,0c-0.40566,0 -0.72117,0.31536 -0.72117,0.7208c0,0.40544 0.31551,0.7208 0.72118,0.7208l-0.00001,0zm14.25442,0l6.0174,0c0.40565,0 0.72118,-0.31536 0.72118,-0.7208c0,-0.40544 -0.31553,-0.7208 -0.72118,-0.7208l-6.0174,0c-0.40565,0 -0.72118,0.31536 -0.72118,0.7208c0,0.40544 0.31553,0.7208 0.72118,0.7208zm-4.12417,-4.1221c0.40566,0 0.72118,-0.31534 0.72118,-0.70952l0,-6.02547c0,-0.40544 -0.31552,-0.7208 -0.72118,-0.7208c-0.3944,0 -0.7099,0.31536 -0.7099,0.7208l0,6.02547c0,0.39418 0.31551,0.70952 0.7099,0.70952zm0,14.25838c0.40566,0 0.72118,-0.3154 0.72118,-0.72077l0,-6.02541c0,-0.39425 -0.31552,-0.70965 -0.72118,-0.70965c-0.3944,0 -0.7099,0.3154 -0.7099,0.70965l0,6.02541c0,0.40538 0.31551,0.72077 0.7099,0.72077z"}))}const xt={baseText:"KL3Q_",inputFocused:"I6wQy",input:"ChY5L",suggestionContainer:"Y78ea",noBottomBorder:"IeYUw",localitySuggestion:"P3aHR",suggestionItem:"magL7",suggestionLoading:"W7rH_",noSuggestion:"XXSnS",selected:"snnHR"};function Lt(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 jt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?jt(t,e):void 0}}(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 jt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function kt(t){var e=t.predictions,r=t.getPlaceInfo,n=t.selectedIndex;return o().createElement(o().Fragment,null,e.map((function(t,e){return o().createElement(St.L,{className:"".concat(xt.suggestionItem," ").concat(n-1===e?xt.selected:""),key:t.place_id,onClick:function(){return r(t)}},t.description)})))}function Ot(t){var e,r,n,a,i,c,u=o().useRef(),s=Lt(o().useState((null===(e=t.data)||void 0===e?void 0:e.schoolLocality)||""),2),f=s[0],p=s[1],h=Lt(o().useState(!1),2),d=h[0],m=h[1],y=ft({apiKey:t.googleMapsApiKey,geoLocation:t.geoLocation}),v=function(t){var e,r,n=t.search,a=t.makePredicition,i=t.geoLocation,c=ct({googleApiKey:t.apiKey}),l=(0,bt.N)(n,300),u=(e=o().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 wt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?wt(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=u[0],f=u[1];function p(t,e){e===google.maps.places.PlacesServiceStatus.OK&&t?f(t):f(void 0)}return o().useEffect((function(){if(c)if(0!==(null==l?void 0:l.length)&&a){var t=(null==i?void 0:i.countryCode)||"us";c.getPlacePredictions({input:l,componentRestrictions:(null==i?void 0:i.isFallback)?void 0:{country:t},region:t,types:["locality","sublocality","postal_code"]},p)}else f(void 0)}),[l,a,c]),{localityPredicitions:s,getPlaceInfo:function(t,e,r){new google.maps.places.PlacesService(e.current).getDetails({placeId:t.place_id,fields:["geometry","address_components","formatted_address"],region:i.countryCode},(function(t,e){if(e===google.maps.places.PlacesServiceStatus.OK){var n=t.geometry.location.lng(),o=t.geometry.location.lat(),a=yt(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:f,makePredicition:d,geoLocation:t.geoLocation,apiKey:t.googleMapsApiKey}),g=v.localityPredicitions,b=v.getPlaceInfo,w=function(t){var e,r,n=(e=o().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 vt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vt(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=n[0],i=n[1],c=at(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=yt(o);i(Object.assign(Object.assign({},a),{longitude:n,latitude:r}))}}))}function u(e){var r=gt[e.code];r||(r="geocoderUnknown"),t.onPositionError("We are unable to access your location. Please try again later.")}return{placeDetails:a,onClickGetCurrentLocation:function(){c((function(){window.navigator.geolocation.getCurrentPosition(l,u)}))}}}({apiKey:t.googleMapsApiKey,onPositionError:function(t){m(!0),N(t)}}),S=w.placeDetails,E=w.onClickGetCurrentLocation,x=window.navigator.geolocation?1:0,L=ht({onSelected:function(t){if(g)if(t!==g.length){var e=g[t];e&&I(e)}else T()},itemCount:null!==(r=(null==g?void 0:g.length)+x)&&void 0!==r?r:0}),j=L.selectedIndex,k=L.onKeyDown,O=L.containerRef,C=Lt(o().useState(),2),A=C[0],N=C[1];function P(e){var r,n,o;A&&N(void 0),d||m(!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(),p(e)}function U(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),p(e)}(o)}function I(t){d&&m(!1),b(t,u,U)}function T(e){null==e||e.preventDefault(),m(!1),E(),t.logUserAction({},{actionType:J.UserAction.Click,descriptor:J.SignUpDescriptors.UseMyLocation})}o().useEffect((function(){U(S)}),[S]);var _,F=(null==g?void 0:g.length)&&!(null===(a=null===(n=t.data)||void 0===n?void 0:n.schoolLocality)||void 0===a?void 0:a.length),G=window.navigator.geolocation&&!(null===(c=null===(i=t.data)||void 0===i?void 0:i.schoolLocality)||void 0===c?void 0:c.length),D=t.labelClassName||"d-block text-center mb-3 font-weight-normal ".concat(xt.baseText);return o().createElement("div",{className:"form-group position-relative"},o().createElement("label",{className:D,htmlFor:"locality-input"},"Postcode or suburb:"),o().createElement(l.w,{type:"text",value:f,onChange:function(t){return P(t.currentTarget.value)},id:"locality-input",className:(_="form-control form-control-lg",F?"".concat(_," ").concat(xt.inputFocused):"".concat(_," ").concat(xt.input)),ref:u,autoComplete:"off",placeholder:y||"Loading...",disabled:t.disabled||!y,autoFocus:null==t?void 0:t.autoFocus,onClickClear:function(){P(""),u.current.focus()},onKeyDown:k}),o().createElement("div",{className:"position-absolute w-100"},!!F&&o().createElement("div",{className:"".concat(xt.suggestionContainer," ").concat(xt.localitySuggestion),ref:O},o().createElement(kt,{predictions:g,getPlaceInfo:I,selectedIndex:j}),window.navigator.geolocation&&o().createElement(St.L,{className:"".concat(xt.suggestionItem," px-1 ").concat(j-1===g.length?xt.selected:""),onClick:T},o().createElement("div",{className:"btn btn-link info-link btn-with-icon bg-transparent py-0 pr-1"},o().createElement(Et,null),"Use my current location"))),G&&!F&&o().createElement("div",{className:"d-flex"},o().createElement("button",{onClick:T,className:"btn btn-link info-link bg-white btn-with-icon"},o().createElement(Et,null),"Use my current location")),!!A&&o().createElement("div",{className:"text-danger p-2"},A)))}var Ct=r(99940);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 Nt(t){var e="function"==typeof Map?new Map:void 0;return Nt=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 Pt(t,arguments,Tt(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),It(n,t)},Nt(t)}function Pt(t,e,r){return Pt=Ut()?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&&It(o,r.prototype),o},Pt.apply(null,arguments)}function Ut(){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 It(t,e){return It=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},It(t,e)}function Tt(t){return Tt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Tt(t)}var _t=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&It(t,e)}(a,t);var e,r,n,o=(r=a,n=Ut(),function(){var t,e=Tt(r);if(n){var o=Tt(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===At(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Error";return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=o.call(this,r)).body=t,e}return e=a,Object.defineProperty(e,"prototype",{writable:!1}),e}(Nt(Error));function Ft(t){return Ft="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},Ft(t)}function Gt(){Gt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:k(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",h="suspendedYield",d="executing",m="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(P([])));E&&E!==r&&n.call(E,i)&&(w=E);var x=b.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==Ft(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function k(e,r,n){var o=p;return function(a,i){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=O(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function C(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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(Ft(e)+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(j.prototype),u(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new j(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.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}},e.values=P,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.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,y):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),y},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),A(r),y}},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;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}var Dt=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 Rt(t){var e={method:Ct.k.GET,headers:{"Content-type":"application/json"}};t.method&&(e=Object.assign(Object.assign({},e),{method:t.method})),t.init&&(e=Object.assign(Object.assign({},e),t.init));var r,n,o,a=t.url;return e.method===Ct.k.GET&&t.data?(r=a,n=t.data,o=r,Object.keys(n).forEach((function(t,e){n[t]&&(o+=0===e?"?":"&",o+="".concat(t,"=").concat(encodeURIComponent(n[t])))})),a=o):t.data&&(e=Object.assign(Object.assign({},e),{body:JSON.stringify(t.data)})),{init:e,url:a}}var Mt={asyncFetch:function(t){return Dt(this,void 0,void 0,Gt().mark((function e(){var r,n,o;return Gt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Rt(t),e.next=3,fetch(r.url,r.init);case 3:if((n=e.sent).ok){e.next=9;break}return e.next=7,n.json();case 7:throw o=e.sent,new _t(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 Dt(this,void 0,void 0,Gt().mark((function e(){var r,n;return Gt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Rt(t),e.next=3,fetch(r.url,r.init);case 3:if((n=e.sent).ok){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,n.text();case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e)})))},fetch:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){var e=Rt(t);return fetch(e.url,e.init).then((function(t){if(204!==t.status)return t.json()})).then((function(e){return t.success&&t.success(e),e})).catch((function(e){return t.error&&t.error(),e})).finally((function(){t.always&&t.always()}))}))};function Kt(t){return Kt="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},Kt(t)}function zt(){zt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:k(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",h="suspendedYield",d="executing",m="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(P([])));E&&E!==r&&n.call(E,i)&&(w=E);var x=b.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==Kt(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function k(e,r,n){var o=p;return function(a,i){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=O(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function C(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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(Kt(e)+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(j.prototype),u(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new j(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.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}},e.values=P,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.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,y):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),y},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),A(r),y}},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;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}var qt,Bt={search:function(t,e,r,n,o){var a={longitude:e.longitude,latitude:e.latitude};e.query&&(a.query=e.query),Mt.fetch({url:t.searchProspect,data:a,success:r,error:n,always:o})},create:function(t,e){return r=this,n=void 0,o=void 0,a=zt().mark((function r(){return zt().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Mt.asyncFetch({url:t.createProspect,method:Ct.k.POST,data:e}));case 1:case"end":return r.stop()}}),r)})),new(o||(o=Promise))((function(t,e){function i(t){try{l(a.next(t))}catch(t){e(t)}}function c(t){try{l(a.throw(t))}catch(t){e(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof o?r:new o((function(t){t(r)}))).then(i,c)}l((a=a.apply(r,n||[])).next())}));var r,n,o,a},getLookups:function(t,e){return Mt.asyncFetch({url:t.prospectLookups(e)})}},Yt=r(97395),$t=function(t,e){if(t.productName!==I.X.Lite)return Promise.reject();var r={email:e.email};return Mt.asyncFetch({url:t.userStatus,data:r})},Wt=function(t,e,r,n,o){var a=t.prospectStatus(e.prospectId);a=Yt._.urlBuilder(a,{email:e.email}),Mt.fetch({url:a,success:r,error:n,always:o})},Vt=function(t,e){var r={prospectId:e.prospectId,firstName:"Trial",surname:"User",email:e.email,userType:e.userType,accessPolicy:e.accessPolicy,appLink:null==e?void 0:e.appLink};return Mt.asyncFetch({url:t.createTrial,method:Ct.k.POST,data:r})},Ht=function(t,e,r){if(t.productName!==I.X.Lite)return Promise.reject();var n={email:r.email,appLink:null==r?void 0:r.appLink};return Mt.asyncFetch({url:t.resendTrialEmail(e),method:Ct.k.POST,data:n})},Jt=function(t,e){var r=t.productName===I.X.Auth?t.joinRequest:t.joinRequest(e.customerId),n=t.productName===I.X.Auth?e:{email:e.email};return Mt.asyncFetch({url:r,method:Ct.k.POST,data:n})},Zt=function(t,e){return t.productName!==I.X.Lite?Promise.reject():Mt.asyncFetch({url:t.autoJoin,method:Ct.k.POST,data:e})};!function(t){t.FourteenDays="trial_14_v1",t.Freemium="freemium_v1"}(qt||(qt={}));var Xt,Qt=function(t){return L.isCountryCodeUS(t)||L.isCountryCodeUK(t)?qt.Freemium:qt.FourteenDays},te=["Primary","Secondary","K12","Special","TAFE","University"],ee=["Elementary","Middle School","High School","College","Other"],re={au:te,nz:te,uk:["Primary","Secondary","Primary & Secondary","Special","Sixth Form College","FE College","University","Other"],us:ee};function ne(t){return ne="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},ne(t)}function oe(){oe=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:k(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",h="suspendedYield",d="executing",m="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(P([])));E&&E!==r&&n.call(E,i)&&(w=E);var x=b.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==ne(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function k(e,r,n){var o=p;return function(a,i){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=O(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function C(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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(ne(e)+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(j.prototype),u(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new j(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.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}},e.values=P,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.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,y):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),y},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),A(r),y}},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;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function ae(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,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 ie(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ie(t,e):void 0}}(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 ie(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}!function(t){t.Published="Published",t.Draft="Draft"}(Xt||(Xt={}));function ce(t,e){return e?"".concat(t," ").concat(e):t}var le=function(t){return o().createElement("h1",{className:ce("text-center mb-2 h4",t.className)},t.children)},ue=function(t){return o().createElement("div",{className:ce("text-center text-sm px-2 px-lg-4",t.className)},t.children)},se=function(t){return o().createElement("p",{className:ce("",t.className)},t.children)};function fe(t){return fe="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},fe(t)}function pe(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==fe(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==fe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===fe(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function he(t){var e,r=(pe(e={},g.Available,t.imageUrls.statusImages.available),pe(e,g.Active,t.imageUrls.statusImages.active),pe(e,g.Expired,t.imageUrls.statusImages.expired),pe(e,g.NotRequired,t.imageUrls.statusImages.notRequired),pe(e,g.Unavailable,t.imageUrls.statusImages.unavailable),pe(e,g.Unsupported,t.imageUrls.statusImages.unsupported),pe(e,g.UserAutoJoinAllowed,t.imageUrls.statusImages.notRequired),pe(e,g.UserJoinApprovalRequired,t.imageUrls.statusImages.notRequired),e);return o().createElement("div",{className:"d-flex justify-content-center my-4 px-2 px-lg-4"},o().createElement("img",{src:r[t.trialStatus],className:"w-100 h-auto"}))}var de={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"}},me={getMarketingUrlForGeoLocation:function(t){var e=L.getCountryCode(null==t?void 0:t.countryCode);return de.Marketing[e]||de.Marketing.us},getMarketingSalesContactForGeoLocation:function(t){var e=L.getCountryCode(null==t?void 0:t.countryCode),r=this.getMarketingUrlForGeoLocation(t);return t&&e===y.NZ?r+"/contact-us/":r+"/contact-us/trial/"},getFreeResourcesForGeoLocation:function(t){var e=L.getCountryCode(null==t?void 0:t.countryCode);return e===y.NZ&&(e=y.AU),this.getMarketingUrlForGeoLocation({countryCode:e})+"/free-student-resources//"},getTermsAndConditionsLink:function(){return this.getMarketingUrlForGeoLocation(y.US)+"/terms-and-conditions/"},getPrivacyPolicyLink:function(){return this.getMarketingUrlForGeoLocation(y.US)+"/privacy-policy/"},getSupportUrlForGeoLocation:function(t){var e=L.getCountryCode(null==t?void 0:t.countryCode);return de.Support[e]||de.Support.us},getLoginLink:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.email,r=t.customerId,n={redirectUrl:window.location.pathname+window.location.search};return e&&(n.email=e),r&&(n.customerId=r),Yt._.urlBuilder("/login",n)}};function ye(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 o().createElement(ue,{className:"mb-3"},e?o().createElement(o().Fragment,null,o().createElement(le,null,r,o().createElement("br",null),"already has ClickView 🎉"),o().createElement(se,{className:"mt-3"},"If your school has SSO ",o().createElement("a",{href:me.getLoginLink({email:t.email,customerId:t.customerId}),className:"info-link"},"click here to sign in.")),o().createElement(se,null,"Otherwise please contact your school admin for access.")):o().createElement(o().Fragment,null,o().createElement(le,null,"Good News!"),o().createElement(se,null,"An account already exists for:",o().createElement("br",null)," ",o().createElement("strong",null,t.email)),o().createElement(se,null,o().createElement("a",{href:me.getLoginLink({email:t.email}),className:"btn btn-dark btn-lg w-100"},"Sign into ClickView"))),o().createElement(se,null,"Need Help? ",o().createElement("a",{href:me.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link",target:"_blank"},"Contact our Help Centre.")))}function ve(t){return ve="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},ve(t)}function ge(){ge=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:k(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",h="suspendedYield",d="executing",m="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(P([])));E&&E!==r&&n.call(E,i)&&(w=E);var x=b.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==ve(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function k(e,r,n){var o=p;return function(a,i){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=O(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function C(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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(ve(e)+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(j.prototype),u(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new j(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.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}},e.values=P,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.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,y):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),y},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),A(r),y}},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;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function be(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return we(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?we(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function we(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Se;function Ee(t){return Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ee(t)}function xe(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Ee(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Ee(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Ee(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Le=(xe(Se={},g.Available,(function(t){var e=be(o().useState(0),2),r=e[0],n=e[1],a=be(o().useState(!1),2),i=a[0],c=a[1];if(null==t?void 0:t.email)return o().createElement(ue,null,o().createElement(le,null,"Success!"),o().createElement(se,null,"An email has been sent to ",o().createElement("strong",null,t.email),". Please check your email for further instructions to complete the sign up process."),!!t.userId&&o().createElement(o().Fragment,null,r<1?o().createElement(se,null,"Didn't receive an email? ",o().createElement("button",{onClick:function(e){return o=this,a=void 0,i=void 0,l=ge().mark((function o(){return ge().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return null==e||e.preventDefault(),o.prev=1,o.next=4,Ht(t.ajaxUrls,t.userId,{email:t.email,appLink:t.pageAppLinkString});case 4:n(r+1),o.next=10;break;case 7:o.prev=7,o.t0=o.catch(1),c(!0);case 10:t.logUserAction({},{actionType:J.UserAction.Click,descriptor:J.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(l.next(t))}catch(t){e(t)}}function n(t){try{c(l.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((l=l.apply(o,a||[])).next())}));var o,a,i,l},className:"btn info-link p-0"},"Resend verification email")):"✅ Email has been resent!",i&&o().createElement(se,{className:"mb-0 text-danger"},"❌ There was a problem resending the email. Please try again later or contact our ",o().createElement("a",{href:me.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link"},"support"))))})),xe(Se,g.Active,ye),xe(Se,g.Expired,(function(t){var e=me.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 o().createElement(ue,null,o().createElement(le,null,r?"".concat(n," trial has expired"):"Your trial has expired"),o().createElement(se,null,"Please contact our ",o().createElement("a",{href:e,className:"info-link",target:"_blank"},"ClickView Sales Team")))})),xe(Se,g.NotRequired,ye),xe(Se,g.Unavailable,(function(t){var e=me.getMarketingSalesContactForGeoLocation(t.geoLocation);return o().createElement(ue,null,o().createElement(le,null,"Your school no longer",o().createElement("br",null)," has access to ClickView"),o().createElement(se,null,"Please contact our ",o().createElement("a",{href:e,className:"info-link"},"ClickView Sales Team")," for more information."))})),xe(Se,g.Unsupported,(function(){return o().createElement(ue,null,o().createElement(le,{className:"px-2 px-lg-4"},"ClickView isn't currently ",o().createElement("br",null)," available for your school"),o().createElement(se,null,"We're working hard to get ClickView ready for more people."))})),xe(Se,g.UserAutoJoinAllowed,ye),xe(Se,g.UserJoinApprovalRequired,ye),Se);function je(t){var e=Le[t.trialStatus];return o().createElement(e,Object.assign({},t))}var ke="young-student",Oe={"trial-status":function(t){return o().useEffect((function(){var e={actionType:J.UserAction.Create,descriptor:J.SignUpDescriptors.DeadEnd,workflowPhase:J.WorkflowPhase.Discard};t.trialCreated&&(e.descriptor=J.SignUpDescriptors.TrialCreated,e.workflowPhase=J.WorkflowPhase.Complete),t.logUserAction({},e)}),[]),o().createElement(o().Fragment,null,o().createElement(he,{trialStatus:t.trialStatus,imageUrls:t.imageUrls}),o().createElement(je,Object.assign({},t)))},"added-to-braze":function(t){return o().useEffect((function(){t.logUserAction({},{actionType:J.UserAction.Create,descriptor:J.SignUpDescriptors.TrialRequested,workflowPhase:J.WorkflowPhase.Complete})}),[]),o().createElement(o().Fragment,null,o().createElement(he,{trialStatus:g.Available,imageUrls:t.imageUrls}),o().createElement(ue,{className:"mb-3"},o().createElement(le,null,"Submitted!"),o().createElement(se,null,"Thank you for your interest in trialing ClickView. We will be in touch with you as soon as possible.")))},"young-student":function(t){var e=me.getFreeResourcesForGeoLocation(t.geoLocation);return o().useEffect((function(){a.SG.set(ke,!0)}),[]),o().createElement(o().Fragment,null,o().createElement(he,{trialStatus:g.Active,imageUrls:t.imageUrls}),o().createElement(ue,{className:"mb-3"},o().createElement(le,null,"Discover our free content"),o().createElement(se,null,"Click the button below to explore our videos"),o().createElement("a",{href:e,className:"btn btn-lg btn-dark w-100",target:"_blank"},"Start watching now")))},"requested-access":function(t){return o().createElement(o().Fragment,null,o().createElement(he,{trialStatus:g.Available,imageUrls:t.imageUrls}),o().createElement(ue,{className:"mb-3"},o().createElement(le,null,"You've requested access!"),o().createElement(se,null,"We've sent a request to your ClickView admin. Once your account is ready, you'll receive an email notification with instructions on how to get started with ClickView.")))}};function Ce(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Ae(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ae(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ae(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ne(t,e,r){return"".concat(t.padStart(4,"0"),"-").concat(e.padStart(2,"0"),"-").concat(r.padStart(2,"0"))}function Pe(t){return o().createElement(o().Fragment,null,"Have a ClickView account already?",o().createElement("a",{href:t.link,className:"info-link ml-1",target:"_blank",onClick:t.onClick},"Sign in"))}const Ue="gVdYS",Ie="Mlp3x";function Te(t){var e=t.idp,r=t.onClick;return n.createElement("button",{className:"btn btn-lg btn-outline-dark w-100 mb-3 ".concat(Ue),onClick:function(){return r(e)}},e.logoUrl&&n.createElement("img",{src:e.logoUrl,className:Ie}),"Continue with ",e.name)}var _e=[{name:"ClassLink",logoUrl:"https://img.clickviewapp.com/v2/logos/ZA2ew5",url:"/login?idp=classlink"},{name:"Clever",logoUrl:"https://img.clickviewapp.com/v2/logos/LqlKgd",url:"/login?idp=clever"},{name:"Google",logoUrl:"https://img.clickviewapp.com/v2/logos/l5x0jL",url:"/login?idp=google"},{name:"Microsoft",logoUrl:"https://img.clickviewapp.com/v2/logos/xAxGPP",url:"/login?idp=microsoft"}];var Fe;function Ge(t){return Ge="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},Ge(t)}function De(){De=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:k(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",h="suspendedYield",d="executing",m="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(P([])));E&&E!==r&&n.call(E,i)&&(w=E);var x=b.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==Ge(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function k(e,r,n){var o=p;return function(a,i){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=O(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function C(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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(Ge(e)+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(j.prototype),u(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new j(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.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}},e.values=P,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.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,y):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),y},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),A(r),y}},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;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Re(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 Me(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Me(t,e):void 0}}(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 Me(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ke(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Ge(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Ge(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Ge(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ze=new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/),qe=(Ke(Fe={},y.AU,"valerie.frizzle@school.edu.au"),Ke(Fe,y.UK,"valerie.frizzle@school.gov.uk"),Ke(Fe,y.US,"valerie.frizzle@school.gov"),Ke(Fe,y.NZ,"valerie.frizzle@school.nz"),Fe);function Be(t){return qe[L.getCountryCode(t.countryCode)]||qe.us}var Ye=[g.Expired,g.NotRequired,g.Unavailable,g.Unsupported,g.Active];function $e(t){var e;switch(null===(e=null==t?void 0:t.body)||void 0===e?void 0:e.type){case"user-type-not-supported":return"Students may not request to join schools.";case"join-request-already-pending":return"Your request is awaiting administrator approval.";case"join-request-already-denied":return"Your request has been denied by an administrator.";default:return"Something went wrong."}}var We=r(12238);function Ve(t){return Ve="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},Ve(t)}function He(){He=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:k(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",h="suspendedYield",d="executing",m="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(P([])));E&&E!==r&&n.call(E,i)&&(w=E);var x=b.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==Ve(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function k(e,r,n){var o=p;return function(a,i){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=O(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function C(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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(Ve(e)+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(j.prototype),u(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new j(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.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}},e.values=P,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.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,y):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),y},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),A(r),y}},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;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Je(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ze(t){return Ze="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},Ze(t)}function Xe(){Xe=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:k(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",h="suspendedYield",d="executing",m="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(P([])));E&&E!==r&&n.call(E,i)&&(w=E);var x=b.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==Ze(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function k(e,r,n){var o=p;return function(a,i){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=O(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function C(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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(Ze(e)+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(j.prototype),u(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new j(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.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}},e.values=P,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.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,y):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),y},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),A(r),y}},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;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}var Qe=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())}))},tr=r(99910);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}function nr(t){var e=t.filteredSchoolsList,r=t.getSchoolName,n=t.onSchoolSuggestionClick,a=t.selectedIndex;return o().createElement(o().Fragment,null,e.map((function(t,e){return o().createElement(St.L,{className:"".concat(xt.suggestionItem," ").concat(a-1===e?xt.selected:""),key:t.id,onClick:function(){return n(t)}},r(t)," ",o().createElement("br",null),o().createElement("small",{className:"text-muted"},function(t){var e=[];return t.city&&e.push(t.city.toLowerCase().split(" ").map((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})).join(" ")),t.province&&e.push(t.province),t.postCode&&e.push(t.postCode),e.join(" ")}(t)))})))}function or(t){return o().createElement("div",{className:"info-link ".concat(xt.suggestionItem," ").concat(xt.noSuggestion," ").concat(t.selected?xt.selected:""),onClick:t.handleNoSuggestion},"Can't find your school?")}function ar(t){var e,r,n=o().useRef(),a=er(o().useState(!0),2),i=a[0],c=a[1],u=er(o().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=er(o().useState(),2),h=p[0],d=p[1],m=(0,bt.N)(s,250),y=ht({onSelected:function(t){if(h||t)if(t!==h.length){var e=h[t];e&&k(e)}else C()},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),S=i&&!w,E=!i&&!w&&!(null==h?void 0:h.length),x=(null==h?void 0:h.length)&&!w;function L(e){(t.data.schoolName||t.data.prospectId)&&t.clearStepItemData(),e!==s&&f(e)}function j(e){c(!0);var r={latitude:t.data.latitude,longitude:t.data.longitude};e&&e.length&&(r.query=e),Bt.search(t.ajaxUrls,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 C(){t.nextStep({step:"cant-find-school",prospectId:t.data.prospectId,schoolName:s,schoolLocality:t.data.schoolLocality,longitude:t.data.longitude,latitude:t.data.latitude,country:t.data.country,city:t.data.city,province:t.data.province}),t.logUserAction({},{actionType:J.UserAction.Click,descriptor:J.SignUpDescriptors.CantFindSchool,workflowPhase:J.WorkflowPhase.Next})}o().useEffect((function(){w||(m.length?!w&&m.length>1&&m===s&&j(m):j())}),[m,w]);var A=x||S||E;return o().createElement("div",{className:"form-group position-relative"},o().createElement(l.w,{value:s,onChange:function(t){return L(t.currentTarget.value)},ref:n,className:"form-control form-control-lg ".concat(A?xt.inputFocused:xt.input),type:"text",autoComplete:"off",placeholder:"Select your school below",disabled:t.disabled,autoFocus:!0,onClickClear:function(){L(""),n.current.focus()},onKeyDown:g}),o().createElement("div",{className:"position-absolute w-100"},o().createElement("div",{className:"".concat(xt.suggestionContainer," ").concat(A?"":"d-none"),ref:b},x?o().createElement(nr,{filteredSchoolsList:h,onSchoolSuggestionClick:k,getSchoolName:O,selectedIndex:v}):S&&o().createElement("div",{className:"".concat(xt.suggestionLoading," py-4 d-flex justify-content-center")},o().createElement(tr.Spinner,{animation:"border"})),!S&&(null==h?void 0:h.length)<5&&o().createElement(or,{selected:v===h.length+1,handleNoSuggestion:C}))))}function ir(t){return ir="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ir(t)}function cr(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}const ur="R8ZPi",sr="SNEmW";function fr(t){return o().createElement(St.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(ur," ").concat(t.selected?sr:""),onClick:function(){return t.onClick(t.type)}},o().createElement("img",{src:t.imageSrc,className:"rounded-top mx-auto pb-2"}),o().createElement("div",{className:"py-2"},o().createElement("span",{className:"h4"},t.buttonText)))}var pr={"select-type":function(t){function e(e){t.logUserAction({userType:e},{actionType:J.UserAction.Click,workflowPhase:J.WorkflowPhase.Next,descriptor:e===w.Staff?J.SignUpDescriptors.Educator:J.SignUpDescriptors.Student}),e!==w.Staff?t.nextStep({step:"enter-age",userType:e}):t.nextStep({step:"enter-email",userType:e})}return o().createElement("div",{className:"text-center"},o().createElement("h1",{className:"h4"},"Access educational videos at your fingertips"),o().createElement("p",null,"Let's get you set up so you can access ClickView."),o().createElement("div",{className:"row"},o().createElement("div",{className:"col-lg-6 mb-3"},o().createElement(fr,{type:w.Staff,buttonText:"I'm an educator",imageSrc:t.imageUrls.educator,onClick:e,selected:t.userType===w.Staff})),o().createElement("div",{className:"col-lg-6 mb-3"},o().createElement(fr,{type:w.Learner,buttonText:"I'm a student",imageSrc:t.imageUrls.student,onClick:e,selected:t.userType===w.Learner}))))},"enter-email":function(t){var e,r,n=Re(o().useState(!1),2),a=n[0],i=n[1],c=Re(o().useState((null==t?void 0:t.email)||""),2),u=c[0],s=c[1],f=Re(o().useState(),2),p=f[0],h=f[1],d=(e=t.geoLocation,r=me.getMarketingUrlForGeoLocation(e),"nz"===(null==e?void 0:e.countryCode)?r+"/contact-us/":r+"/contact-us/technical/");function m(e){null==e||e.preventDefault(),function(){var e,r,n,o;e=this,r=void 0,n=void 0,o=De().mark((function e(){var r;return De().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u.length?ze.test(u)||(h("Please use your school email address."),0):(h("Please enter your school email address."),0)){e.next=2;break}return e.abrupt("return");case 2:return i(!0),h(""),e.prev=4,e.next=7,$t(t.ajaxUrls,{email:u});case 7:r=e.sent,e.next=14;break;case 10:return e.prev=10,e.t0=e.catch(4),h("Something went wrong! Please try again later."),e.abrupt("return");case 14:if(i(!1),r.status!==b.InvalidEmail){e.next=18;break}return h("Please use your school email address."),e.abrupt("return");case 18:if(t.logUserAction({},{actionType:J.UserAction.Click,workflowPhase:J.WorkflowPhase.Next,descriptor:J.SignUpDescriptors.EnterEmail}),!Ye.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())}))}()}function y(t){var e=window.location.pathname+window.location.search;window.location.href=t.url+"&redirectUrl="+encodeURIComponent(e)}var v="true"===docCookies.getItem("features.social-signup")&&t.userType===w.Staff;return o().createElement(o().Fragment,null,o().createElement("div",{className:"text-center"},o().createElement("h1",{className:"h4"},"Let's set up your account"),o().createElement("p",null,"Enter your school email address")),o().createElement("form",{onSubmit:m,noValidate:!0},o().createElement("div",{className:"form-group mb-3"},o().createElement(l.w,{value:u,onChange:function(t){t.preventDefault(),s(t.target.value),h("")},name:"email-input",id:"email-input",type:"email",className:"form-control form-control-lg ".concat(p?"is-invalid":""),placeholder:Be(t.geoLocation),autoComplete:"false",autoCorrect:"false",autoFocus:!0,onClickClear:function(){return s("")}}),p&&o().createElement(o().Fragment,null,o().createElement("div",{className:"invalid-feedback d-block"},p),o().createElement("small",null,"Having an issue with your email?",o().createElement("a",{href:d,className:"info-link pl-1",target:"_blank",onClick:function(){t.logUserAction({},{actionType:J.UserAction.Click,descriptor:J.SignUpDescriptors.ContactUs})}},"Contact our team")))),o().createElement(j.m,{showSpinner:a,className:"btn btn-dark btn-lg mb-3 w-100",disabled:a,onClick:m},"Continue")),v&&o().createElement("div",{className:"mt-n3"},o().createElement("div",{className:"my-3 border-bottom position-relative ".concat("bGwO5")}),_e.map((function(t,e){return o().createElement(Te,{onClick:y,idp:t,key:e})}))),o().createElement("div",{className:"text-center"},o().createElement(Pe,{link:me.getLoginLink(),onClick:function(){t.logUserAction({},{actionType:J.UserAction.Click,descriptor:J.SignUpDescriptors.SignIn})}})))},"find-school":function(t){var e,r,n=t.email,a=t.userType,i=cr(o().useState({schoolLocality:t.schoolLocality,country:t.country,longitude:t.longitude,latitude:t.latitude,city:t.city,province:t.province}),2),c=i[0],l=i[1],u=cr(o().useState(),2),s=u[0],f=u[1],p=cr(o().useState(),2),h=p[0],d=p[1],m=cr(o().useState(!1),2),y=m[0],v=m[1],b=cr(o().useState(!1),2),S=b[0],E=b[1],x=cr(o().useState(!1),2),L=x[0],k=x[1],O=function(t){var e=t.loading,r=t.canSubmitForm,n=t.setSubmissionError,o=t.prospectStatus,a=t.userType,i=t.logStepEvent,c=t.logUserAction,l=t.nextStep,u=t.data,s=t.productName,f=t.ajaxUrls,p=t.complete,h=t.setLoadingState,d=t.email,m=t.pageAppLinkString,y=t.setProperty;function v(){return Qe(this,void 0,void 0,Xe().mark((function t(){return Xe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Zt(f,{prospectId:u.prospectId,email:d});case 3:c({},{actionType:J.UserAction.Click,descriptor:J.SignUpDescriptors.AutoJoin}),p(Object.assign({completionStep:"trial-status",trialCreated:!0,trialStatus:g.Available},u)),t.next=12;break;case 7:return t.prev=7,t.t0=t.catch(0),n("Something went wrong! Please try again later."),h(!1),t.abrupt("return");case 12:case"end":return t.stop()}}),t,null,[[0,7]])})))}function b(){var t;return Qe(this,void 0,void 0,Xe().mark((function e(){var r,n;return Xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=void 0,!(null==u?void 0:u.prospectId)||o!==g.NotRequired){e.next=6;break}return e.next=4,Bt.getLookups(f,u.prospectId);case 4:n=e.sent,r=null===(t=n.find((function(t){return t.type===We.C.MasterId})))||void 0===t?void 0:t.externalId;case 6:p(Object.assign({completionStep:"trial-status",trialStatus:o,trialCreated:!1,customerId:r},u)),i();case 8:case"end":return e.stop()}}),e)})))}function S(){var t;return Qe(this,void 0,void 0,Xe().mark((function e(){var r;return Xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h(!0),e.prev=1,e.next=4,Vt(f,{userType:a,email:d,prospectId:null==u?void 0:u.prospectId,appLink:m,accessPolicy:Qt(u.country)});case 4:r=e.sent,e.next=12;break;case 7:return e.prev=7,e.t0=e.catch(1),n("Something went wrong! Please try again later."),h(!1),e.abrupt("return");case 12:o===g.UserAutoJoinAllowed&&c({},{actionType:J.UserAction.Click,descriptor:J.SignUpDescriptors.AutoJoin}),y("userId",r.id),p(Object.assign({completionStep:"trial-status",userId:r.id,trialCreated:!0,trialStatus:g.Available,customerId:null===(t=r.data)||void 0===t?void 0:t.customerId},u)),i();case 16:case"end":return e.stop()}}),e,null,[[1,7]])})))}return function(){return Qe(this,void 0,void 0,Xe().mark((function t(){return Xe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=2;break}return t.abrupt("return");case 2:if(r()){t.next=5;break}return n("Something went wrong! Please try again later."),t.abrupt("return");case 5:if(a!==w.Staff){t.next=14;break}if(o!==g.Unsupported){t.next=8;break}return t.abrupt("return",(l(Object.assign({step:"add-to-braze",trialStatus:o},u)),void i()));case 8:if(o!==g.UserJoinApprovalRequired){t.next=10;break}return t.abrupt("return",(l(Object.assign({step:"request-access"},u)),void i()));case 10:if(o!==g.UserAutoJoinAllowed||s!==I.X.Lite){t.next=14;break}return t.next=13,v();case 13:case 17:case 20:return t.abrupt("return",t.sent);case 14:if(o===g.Active||o===g.Available||o===g.UserAutoJoinAllowed&&s===I.X.Auth){t.next=18;break}return t.next=17,b();case 18:return t.next=20,S();case 21:case"end":return t.stop()}}),t)})))}}(Object.assign(Object.assign({},t),{prospectStatus:s,loading:y,data:c,canSubmitForm:C,setSubmissionError:d,logStepEvent:function(){var e={actionType:J.UserAction.Click,descriptor:J.SignUpDescriptors.FindSchool,workflowPhase:J.WorkflowPhase.Next};t.logUserAction(c||{},e)},setLoadingState:function(t){E(t),k(t),v(t)},setProperty:A}));function C(){if(!c||!n||!a)return!1;var t=c.prospectId;return!!(n&&a&&t)}function A(e,r){"prospectId"===e&&r&&(v(!0),Wt(t.ajaxUrls,{prospectId:r.toString(),email:t.email},(function(t){f(t.status)}),(function(){console.log("error")}),(function(){v(!1)}))),l((function(t){return Object.assign(Object.assign({},t),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==ir(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==ir(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===ir(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},e,r))}))}function N(){A("prospectId",void 0),A("schoolName",""),A("schoolPostCode",void 0),d(void 0)}return o().createElement(o().Fragment,null,o().createElement("div",{className:"text-center"},o().createElement("h1",{className:"h4"},"Next, let's find your school"),o().createElement("p",null,"au"===(null==(r=null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode)?void 0:r.toLowerCase())?"Enter your school postcode or suburb":"Enter your school postcode or city")),o().createElement(Ot,{data:c,setDataProperty:A,clearStepGroupData:function(){A("schoolLocality",void 0),l((function(t){return Object.assign(Object.assign({},t),{longitude:undefined,latitude:undefined})})),A("city",void 0),A("province",void 0),A("country",void 0),N(),d(void 0)},disabled:S,geoLocation:t.geoLocation,labelClassName:"d-none",logUserAction:t.logUserAction,googleMapsApiKey:t.googleMapsApiKey,autoFocus:!0}),!!(c&&c.schoolLocality&&c.longitude&&c.latitude)&&o().createElement(ar,{data:c,setDataProperty:A,clearStepItemData:N,nextStep:t.nextStep,currentStepId:t.currentStepId,disabled:L,logUserAction:t.logUserAction,ajaxUrls:t.ajaxUrls}),h&&o().createElement("p",{className:"text-danger mb-2"},h),C()&&o().createElement(j.m,{className:"btn btn-dark btn-lg w-100",onClick:O,showSpinner:S||L||y,disabled:S||L||y},"Get started"))},"cant-find-school":function(t){var e,r,n,a=ae(o().useState({prospectId:t.prospectId,schoolName:t.schoolName,schoolType:t.schoolType,schoolLocality:t.schoolLocality,country:t.country,province:t.province,city:t.city,longitude:t.longitude,latitude:t.latitude}),2),i=a[0],c=a[1],l=ae(o().useState(),2),u=l[0],s=l[1],f=ae(o().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=L.getCountryCode(r),re[n]||ee);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"!==ne(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==ne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===ne(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 o().createElement(o().Fragment,null,o().createElement("div",{className:"text-center"},o().createElement("h1",{className:"h4"},"Tell us more about yourself"),o().createElement("p",null,"Please enter your school details.")),o().createElement("div",{className:"form-group"},o().createElement("label",{className:"d-block",htmlFor:"school-name-input"},"Name of school"),o().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:"Enter name of school",autoFocus:!0})),o().createElement("div",{className:"form-group"},o().createElement("label",{className:"d-block",htmlFor:"school-type-select"},"Type of school"),o().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)}},o().createElement("option",{value:"none",className:"text-muted",disabled:!0},"Select type of school"),d.map((function(t){return o().createElement("option",{value:t,key:t,className:"text-dark"},t)})))),o().createElement(Ot,{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,autoFocus:!1}),u&&o().createElement("div",{className:"text-danger mb-3"},u),m()&&o().createElement(j.m,{className:"btn btn-dark btn-lg w-100",onClick:function(e){var r,n,o,a,c;return n=this,o=void 0,a=void 0,c=oe().mark((function n(){var o,a,c;return oe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.preventDefault(),m()){n.next=3;break}return n.abrupt("return");case 3:return t.logUserAction(i,{actionType:J.UserAction.Click,workflowPhase:J.WorkflowPhase.Next,descriptor:J.SignUpDescriptors.CantFindSchool}),h(!0),n.prev=5,n.next=8,Bt.create(t.ajaxUrls,{name:i.schoolName,status:Xt.Draft,countryCode:i.country,prospectType:i.schoolType,city:i.city,postCode:i.schoolPostCode,province:i.province});case 8:if((o=n.sent).id){n.next=13;break}return h(!1),s("Error. Something went wrong."),n.abrupt("return");case 13:n.next=20;break;case 15:return n.prev=15,n.t0=n.catch(5),h(!1),s("Error. Something went wrong."),n.abrupt("return");case 20:return n.prev=20,n.next=23,Vt(t.ajaxUrls,{userType:t.userType,email:t.email,prospectId:o.id,appLink:t.pageAppLinkString,accessPolicy:Qt(i.country)});case 23:a=n.sent,t.complete({completionStep:"trial-status",email:t.email,userId:a.id,prospectId:o.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:g.Available,trialCreated:!0,customerId:null===(r=a.data)||void 0===r?void 0:r.customerId}),n.next=37;break;case 27:if(n.prev=27,n.t1=n.catch(20),n.t1.body){n.next=33;break}return h(!1),s("Error. Something went wrong."),n.abrupt("return");case 33:if(400!==(c=n.t1).body.status||"trial-not-available"!==c.body.type){n.next=37;break}return t.nextStep(Object.assign(Object.assign({step:"add-to-braze"},i),{prospectId:o.id,trialStatus:g.Unavailable})),n.abrupt("return");case 37:case"end":return n.stop()}}),n,null,[[5,15],[20,27]])})),new(a||(a=Promise))((function(t,e){function r(t){try{l(c.next(t))}catch(t){e(t)}}function i(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 a?n:new a((function(t){t(n)}))).then(r,i)}l((c=c.apply(n,o||[])).next())}))},showSpinner:p,disabled:p},"Get started"))},completed:function(t){var e=Oe[t.completionStep];return o().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto px-2"},o().createElement(e,Object.assign({},t)))},"add-to-braze":function(t){var e,r=B(o().useState(!1),2),n=r[0],a=r[1],i=B(o().useState({}),2),l=i[0],u=i[1];function s(e){var r=H(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:K.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,province:null==t?void 0:t.province,first_name:n,last_name:o,job_title:e.jobTitle,sync_to_crm:!0,event_topic:K.getEventTopic()};return K.removeEmptyKeys(a)}function f(){t.complete({completionStep:"added-to-braze",trialCreated:!1,trialStatus:null})}return o().useEffect((function(){t.userType===w.Learner&&t.complete({completionStep:"trial-status",trialCreated:!1,trialStatus:g.Unsupported})}),[]),o().createElement(C,{errors:l,loading:n,geoLocation:t.geoLocation,country:t.country||(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode),logUserAction:t.logUserAction,handleSubmitForm:function(e){var r,o;(function(t){var e=t.fullname,r=t.jobTitle,n=t.phone,o=H(e),a=o.firstName,i=o.surname,c={};return a&&i||(c.fullname="Please enter your full name."),(W.test(a)||W.test(i))&&(c.fullname="Please enter your full name."),e.length>$&&(c.fullname="Full name cannot exceed max length of ".concat($," characters.")),(null==r?void 0:r.length)||(c.jobTitle="Please enter your job title."),W.test(r)&&(c.jobTitle="Please enter a valid job title."),r.length>$&&(c.jobTitle="Job Title cannot exceed max length of ".concat($," characters.")),(null==n?void 0:n.length)||(c.phone="Please enter your phone number."),!W.test(n)&&V.test(n)||(c.phone="Please enter a valid phone number."),u(c),!Object.keys(c).length})(e)&&((null===(r=e.jobTitle)||void 0===r?void 0:r.toLowerCase().includes("student"))||(null===(o=e.jobTitle)||void 0===o?void 0:o.toLowerCase().includes("parent"))?f():function(e){var r,o,i,p;r=this,o=void 0,i=void 0,p=q().mark((function r(){var o,i,p,h,d,m;return q().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!==w.Learner){r.next=5;break}return u(Object.assign(Object.assign({},l),{submission:"Something went wrong! Please try again later."})),r.abrupt("return");case 5:return t.logUserAction({},{actionType:c.Vw.Click,workflowPhase:c.eu.Next,descriptor:c.Yu.AddToBraze}),a(!0),o=s(e),r.next=10,K.getClient({brazeConfig:t.brazeConfig,geoLocation:t.geoLocation,productName:t.productName,version:t.version});case 10:i=r.sent,p=H(e.fullname),h=p.firstName,d=p.surname,m={prospect_id:null==t?void 0:t.prospectId,organisation_sub_type:K.getSchoolType(null==t?void 0:t.schoolType),account_name:null==t?void 0:t.schoolName,account_address:{country_code:null==t?void 0:t.country,province:null==t?void 0:t.province},job_title:e.jobTitle,sync_to_crm:!0},m=K.removeEmptyKeys(m);try{i.setUser(K.hashedEmail(null==t?void 0:t.email)),i.setUserFirstName(h),i.setUserLastName(d),i.setUserPhone(e.phone),i.setUserEmail(null==t?void 0:t.email),i.openSession(),i.bulkSetCustomUserAttributes(m),i.logEvent({type:K.getCustomEventType(),data:o}),i.sendData((function(t){u(t?{}:Object.assign(Object.assign({},l),{submission:"Something went wrong! Please try again later."})),a(!1)}))}catch(t){u(Object.assign(Object.assign({},l),{submission:"Something went wrong! Please try again later."}))}Object.keys(l).length||f();case 16:case"end":return r.stop()}}),r)})),new(i||(i=Promise))((function(t,e){function n(t){try{c(p.next(t))}catch(t){e(t)}}function a(t){try{c(p.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,a)}c((p=p.apply(r,o||[])).next())}))}(e))},removeErrorForKey:function(t){if(Object.keys(l).length&&l[t]){var e=Object.assign({},l);delete e[t],u(e)}}})},"enter-age":function(t){var e=Ce(o().useState(""),2),r=e[0],n=e[1],a=Ce(o().useState(""),2),i=a[0],c=a[1],l=Ce(o().useState(""),2),u=l[0],s=l[1],f=Ce(o().useState(null),2),p=f[0],h=f[1];var d=(new Date).getFullYear(),m="mx-2 d-inline-block text-left",y="form-control form-control-lg ".concat(p?"is-invalid":""),v="order-0",g="order-3",b=L.isCountryCodeUS(t.geoLocation.countryCode);return b&&(v="order-3",g="order-0"),o().createElement("form",{className:"text-center",onSubmit:function(e){if(e.preventDefault(),r&&i&&u?function(t,e,r){var n=new Date(Ne(t,e,r));return!isNaN(+n)}(u,i,r)?+u>d?(h("Please enter a date in the past"),0):!(+u<d-120&&(h("Please enter a realistic date of birth"),1)):(h("Please enter a valid date"),0):(h("Please enter your date of birth"),0)){var n=new Date(Ne(u,i,r)),o=d-13,a=new Date;a.setFullYear(o),n>a?t.complete({completionStep:"young-student",trialCreated:!1,trialStatus:null}):t.nextStep({step:"enter-email",userType:t.userType})}},noValidate:!0},o().createElement("h1",{className:"h4"},"Tell us a little about yourself"),o().createElement("p",null,"Please enter your date of birth"),o().createElement("div",{className:"my-4"},o().createElement("div",{className:"d-flex justify-content-center"},o().createElement("div",{className:"".concat(m," ").concat(v)},o().createElement("label",{className:"mb-0",htmlFor:"day"},"Day"),o().createElement("input",{id:"day",type:"number",className:"".concat(y," ").concat("e0Dbj"),min:"1",max:"31",placeholder:"DD",value:r,onChange:function(t){n(t.target.value),h(null)},autoFocus:!b,tabIndex:b?2:1})),o().createElement("span",{className:"h1 font-weight-normal mt-3 mb-0 order-1 ".concat(p?"text-danger":"")},"/"),o().createElement("div",{className:"".concat(m," ").concat(g)},o().createElement("label",{className:"mb-0",htmlFor:"month"},"Month"),o().createElement("input",{id:"month",type:"number",className:"".concat(y," ").concat("zLcQr"),min:"1",max:"12",placeholder:"MM",value:i,onChange:function(t){c(t.target.value),h(null)},autoFocus:b,tabIndex:b?1:2})),o().createElement("span",{className:"h1 font-weight-normal mt-3 mb-0 order-4 ".concat(p?"text-danger":"")},"/"),o().createElement("div",{className:"".concat(m," order-5")},o().createElement("label",{className:"mb-0",htmlFor:"year"},"Year"),o().createElement("input",{id:"year",type:"number",className:"".concat(y," ").concat("XiXPP"),min:d-120,max:d,placeholder:"YYYY",value:u,onChange:function(t){s(t.target.value),h(null)},tabIndex:3}))),!!p&&o().createElement("div",{className:"invalid-feedback d-block"},p)),o().createElement("button",{type:"submit",className:"btn btn-lg btn-dark w-100"},"Continue"))},"request-access":function(t){var e,r,n=(e=o().useState(null),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,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 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}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=n[0],i=n[1];return o().createElement(o().Fragment,null,o().createElement(he,{trialStatus:g.UserJoinApprovalRequired,imageUrls:t.imageUrls}),o().createElement(ue,{className:"mb-3"},o().createElement(le,null,t.schoolName,o().createElement("br",null),"already has ClickView 🎉")),o().createElement("button",{className:"btn btn-lg btn-dark w-100 mb-3",onClick:function(){var e,r,n,o,a;return r=this,n=void 0,o=void 0,a=He().mark((function r(){var n,o;return He().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,Bt.getLookups(t.ajaxUrls,t.prospectId);case 3:if(n=r.sent,o=null===(e=n.find((function(t){return t.type===We.C.MasterId})))||void 0===e?void 0:e.externalId){r.next=8;break}return i("Something went wrong."),r.abrupt("return");case 8:return r.next=10,Jt(t.ajaxUrls,{customerId:o,email:t.email});case 10:t.logUserAction({},{actionType:J.UserAction.Click,descriptor:J.SignUpDescriptors.RequestAccess}),t.complete({completionStep:"requested-access",trialCreated:!1,trialStatus:g.UserJoinApprovalRequired}),r.next=17;break;case 14:r.prev=14,r.t0=r.catch(0),i($e(r.t0));case 17:case"end":return r.stop()}}),r,null,[[0,14]])})),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())}))}},"Request access"),a&&o().createElement("p",{className:"text-danger text-center mb-2"},a),o().createElement(se,{className:"text-center"},"Need Help? ",o().createElement("a",{href:me.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link",target:"_blank"},"Contact our Help Centre.")))}};function hr(t){var e=t.state,r=t.geoLocation,n=t.layoutMapping,a=t.hasPreviousStep,i=t.googleMapsApiKey,c=t.pageAppLinkString,l=t.back,u=t.nextStep,s=t.complete,f=t.logUserAction,p=t.imageUrls,h=t.ajaxUrls,d=t.brazeConfig,m=t.version,y=t.productName,v=pr[e.currentStepId],g=Object.assign(Object.assign({},e),{geoLocation:r,googleMapsApiKey:i,pageAppLinkString:c,back:l,nextStep:u,complete:s,logUserAction:f,imageUrls:p,ajaxUrls:h,brazeConfig:d,version:m,productName:y}),b=null==n?void 0:n[e.currentStepId];return b?o().createElement(b,{geoLocation:t.geoLocation,currentStep:e.currentStepId,previousStep:l,closeApp:t.close,logUserAction:f,hasPreviousStep:a,imageUrls:t.imageUrls},o().createElement(v,Object.assign({},g))):o().createElement(v,Object.assign({},g))}var dr=r(1048);const mr={buttonContainer:"izZtA",dataContainer:"OgBv5"};function yr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function vr(t){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,vr(n)):e[r]=n})),e}function gr(t){var e=t.label,r=t.item,n=r;return Array.isArray(r)&&(n=n.join(" -> ")),"boolean"==typeof n&&(n=n?"true":"false"),o().createElement("div",{className:"pb-1"},e,": ",o().createElement("b",{className:"text-white"},n))}function br(t){var e,r,n=t.developmentEnv,a=t.objects,i=(e=o().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 yr(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)?yr(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=o().useMemo((function(){return vr(a)}),[a]);return n&&o().createElement(o().Fragment,null,o().createElement("div",{className:"position-fixed p-4 ".concat(mr.buttonContainer)},o().createElement("button",{onClick:function(){l(!c)},className:"btn btn-dark px-2 py-1"},c?"Hide":"Show"," debugger")),c&&o().createElement("div",{className:"fixed-bottom mb-4 ml-4 bg-dark rounded ".concat(mr.dataContainer)},o().createElement("code",{className:"d-block p-4"},o().createElement("div",{className:"font-weight-bold pb-2"},"{ Debug: Form Data }"),Object.keys(u).map((function(t){return o().createElement(gr,{key:t,label:t,item:u[t]})})))))}var wr=r(83529);const Sr={crumb:"Btmx2"};function Er(t,e){var r="rounded-circle mx-2 d-inline-block "+Sr.crumb,n=t===e?"bg-info":"bg-light";return"".concat(r," ").concat(n)}function xr(t){return o().createElement("div",{className:"text-center"},t.crumbs.map((function(e){return o().createElement("div",{className:Er(t.currentStep,e),key:e})})))}var Lr=r(98461);function jr(t){var e=me.getTermsAndConditionsLink(),r=me.getPrivacyPolicyLink();return o().createElement("span",{className:"text-center text-md mt-2 text-normal small"},"By signing up you agree to the",o().createElement("br",null),o().createElement(Lr.d,{href:e,onClick:t.onClickTermsAndConditions,className:"info-link",newTab:!0},"Terms and Conditions")," and ",o().createElement(Lr.d,{href:r,onClick:t.onClickPrivacyPolicy,className:"info-link",newTab:!0},"Privacy Policy"))}var kr=r(83914),Or=r(58130);function Cr(t){return o().createElement("button",{onClick:t.onClick,className:"btn p-0 cursor-pointer d-inline-flex align-items-center"},o().createElement(kr.x,{svgName:Or.vn.ChevronLeft,size:kr.S.Medium}),t.children)}var Ar=r(2786);Pr.defaultProps={showBackButton:!0};var Nr=["select-type","enter-email","find-school"];function Pr(t){var e=t.currentStep,r=t.previousStep,n=t.hasPreviousStep,a=t.showBackButton,i=t.children;return o().createElement("div",{className:"d-flex flex-column justify-content-between px-4 py-0 ".concat("jZ_Wp")},o().createElement("div",{className:"mt-3 mb-2"},Nr.includes(e)&&o().createElement(xr,{crumbs:Nr,currentStep:e})),o().createElement("div",{className:"position-relative mx-auto w-100 ".concat("select-type"===e?"Ye154":["enter-email","find-school","cant-find-school","add-to-braze","enter-age"].includes(e)?"m2kAT":"ollkc")},o().createElement("div",{className:"d-flex flex-row justify-content-center align-items-center mt-2 mb-3"},n&&a&&["enter-email","find-school","cant-find-school","add-to-braze","enter-age","request-access"].includes(e)&&o().createElement(Cr,{onClick:function(){r(),t.logUserAction({step:e},{actionType:J.UserAction.Click,descriptor:J.SignUpDescriptors.Back,workflowPhase:J.WorkflowPhase.Back})}}),o().createElement("div",{className:"d-flex justify-content-center align-items-center px-2 ".concat("J97w_")},o().createElement(Ar.$S,null))),i),o().createElement("div",{className:"position-relative mb-4 mt-3 text-center"},"select-type"===e&&o().createElement(Pe,{link:me.getLoginLink(),onClick:function(){t.logUserAction({},{actionType:J.UserAction.Click,descriptor:J.SignUpDescriptors.SignIn})}}),["enter-email","find-school","add-to-braze"].includes(e)&&o().createElement(jr,{onClickTermsAndConditions:function(){t.logUserAction({},{actionType:J.UserAction.Click,descriptor:J.SignUpDescriptors.TermsAndConditions})},onClickPrivacyPolicy:function(){t.logUserAction({},{actionType:J.UserAction.Click,descriptor:J.SignUpDescriptors.PrivacyPolicy})}})))}var Ur=r(28366);Fr.defaultProps={showBackButton:!0};var Ir,Tr=["enter-email","find-school"],_r=["enter-email","find-school","cant-find-school","add-to-braze","enter-age","request-access"];function Fr(t){var e=t.currentStep,r=t.previousStep,n=t.hasPreviousStep,a=t.showBackButton,i=t.closeApp,c=t.children;function l(){return["enter-email","find-school","cant-find-school","add-to-braze","enter-age"].includes(e)}function u(){r(),t.logUserAction({},{actionType:J.UserAction.Click,descriptor:J.SignUpDescriptors.Back,workflowPhase:J.WorkflowPhase.Back})}var s=_r.includes(t.currentStep),f=s?"".concat(Ur.Z.leftHalfLayout," ").concat(Ur.Z.withBg):Ur.Z.leftHalfLayout;return o().createElement("div",{className:f},o().createElement("div",{className:"row mx-0 p-3"},o().createElement("div",{className:"col px-0 d-lg-none ".concat(Ur.Z.popupButton)},n&&l()&&a&&o().createElement(Cr,{onClick:u})),o().createElement("div",{className:"col col-lg-6 px-0"},o().createElement("div",{className:Ur.Z.logo},o().createElement("div",{className:"d-none d-lg-block"},s?o().createElement(Ar.Yo,null):o().createElement(Ar.$S,null)),o().createElement("div",{className:"d-block d-lg-none mt-1"},o().createElement(Ar.$S,null),Tr.includes(t.currentStep)&&o().createElement("div",{className:"mt-3"},o().createElement(xr,{crumbs:Tr,currentStep:e}))))),o().createElement("div",{className:"col col-lg-6 d-flex flex-row justify-content-between px-0"},o().createElement("div",{className:"px-3"},o().createElement("div",{className:"d-none d-lg-block ".concat(Ur.Z.popupButton)},n&&l()&&a&&o().createElement(Cr,{onClick:u}))),Tr.includes(t.currentStep)&&o().createElement("div",{className:"d-none d-lg-block align-self-center"},o().createElement(xr,{crumbs:Tr,currentStep:e})),o().createElement(St.L,{onClick:i,className:Ur.Z.popupButton},o().createElement(kr.x,{svgName:Or.vn.Close,size:kr.S.Medium})))),o().createElement("div",{className:"row mx-0 flex-grow-1"},s&&o().createElement("div",{className:"col-6 px-0 d-none d-lg-block"},o().createElement("div",{className:"h-100 d-flex align-items-center justify-content-center"},o().createElement("img",{src:t.imageUrls.popupDashboard,className:"w-100 p-4 pb-5"}))),o().createElement("div",{className:"px-4 pt-0 pb-4 ".concat(s?"col-12 col-lg-6":"col-12")},o().createElement("div",{className:"d-flex flex-column h-100"},o().createElement("div",{className:"flex-grow-1"},c),o().createElement("div",{className:"text-center mt-3"},"select-type"===e&&o().createElement(Pe,{link:me.getLoginLink(),onClick:function(){t.logUserAction({},{actionType:J.UserAction.Click,descriptor:J.SignUpDescriptors.SignIn})}}),["enter-email","add-to-braze"].includes(e)&&o().createElement(jr,{onClickTermsAndConditions:function(){t.logUserAction({},{actionType:J.UserAction.Click,descriptor:J.SignUpDescriptors.TermsAndConditions})},onClickPrivacyPolicy:function(){t.logUserAction({},{actionType:J.UserAction.Click,descriptor:J.SignUpDescriptors.PrivacyPolicy})}}))))))}function Gr(t){return Gr="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},Gr(t)}function Dr(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Gr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Gr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Gr(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Rr={"cant-find-school":Fr,"enter-email":Fr,"find-school":Fr,"select-type":Fr,completed:Fr,"add-to-braze":Fr,"enter-age":Fr,"request-access":Fr},Mr={"cant-find-school":Pr,"enter-email":Pr,"find-school":Pr,"select-type":Pr,completed:Pr,"add-to-braze":Pr,"enter-age":Pr,"request-access":Pr},Kr=(Dr(Ir={},wr.c.FullPage,Mr),Dr(Ir,wr.c.Popup,Rr),Ir),zr={getLayouts:function(t){return Kr[t]}},qr=r(17331);function Br(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Yr(t){return Yr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yr(t)}function $r(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)||Wr(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wr(t,e){if(t){if("string"==typeof t)return Vr(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)?Vr(t,e):void 0}}function Vr(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 Hr(t,e){var r,n,o=Object.assign(Object.assign({},t),{previousStepIds:[].concat((n=t.previousStepIds,function(t){if(Array.isArray(t))return Vr(t)}(n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||Wr(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[t.currentStepId]),currentStepId:e.step});if("select-type"===e.step)return Object.assign({},o);if("enter-email"===e.step||"enter-age"===e.step)return Object.assign(Object.assign({},o),{userType:e.userType});if("find-school"===e.step)return Object.assign(Object.assign({},o),{email:e.email});if("cant-find-school"===e.step)return Object.assign(Object.assign({},o),{prospectId:e.prospectId,schoolName:e.schoolName,schoolLocality:e.schoolLocality,country:e.country,longitude:e.longitude,latitude:e.latitude,city:e.city,province:e.province});if("add-to-braze"===e.step||"completed"===e.step||"request-access"===e.step){var a=Object.assign({},e);return delete a.type,delete a.step,r=a,a=Object.entries(r).filter((function(t){return null!==$r(t,2)[1]})).reduce((function(t,e){var r=$r(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"!==Yr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Yr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Yr(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},n,o))}),{}),Object.assign(Object.assign({},o),a)}}function Jr(t,e){switch(e.type){case"nextStep":return Hr(t,e);case"back":return function(t){var e,r=function(t){if(Array.isArray(t))return Br(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 Br(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Br(t,e):void 0}}(e)||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 Zr(t){return Zr="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},Zr(t)}function Xr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Qr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Qr(t,e):void 0}}(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 Qr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var tn=function(t){var e=t.location,r=t.initialValues,n=t.onStepUpdate,a=t.externalLogUserAction,i=K.removeEmptyKeys(r),l=Object.assign({currentStepId:"select-type",previousStepIds:[]},i),u=Xr(o().useReducer(Jr,l),2),s=u[0],f=u[1];return o().useEffect((function(){null==n||n(s)}),[s.currentStepId]),{state:s,back:function(){f({type:"back"})},nextStep:function(t){f(Object.assign({type:"nextStep"},t))},complete:function(t){f(Object.assign({type:"nextStep",step:"completed"},t))},hasPreviousStep:!!s.previousStepIds.length,logUserAction:function(t,r){var n=Object.assign(Object.assign({},s),t),o=qr.i.filterBlacklistedKeys(n),i=Object.assign({currentStepId:s.currentStepId},o),l=Object.entries(i).filter((function(t){return void 0!==Xr(t,2)[1]})).reduce((function(t,e){var r=Xr(e,2),n=r[0],o=r[1];return Object.assign(Object.assign({},t),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Zr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Zr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Zr(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))}),{});a(l,Object.assign({entity:c.py.SignUp,location:e},r))}}};function en(t){var e=zr.getLayouts(t.type),r=t.location,n=t.initialValues,c=t.geoLocation,l=t.googleMapsApiKey,u=t.pageAppLinkString,s=t.onStepUpdate,f=t.imageUrls,p=t.ajaxUrls,h=t.brazeConfig,d=t.version,m=t.productName,y=t.close,v=tn({location:r,initialValues:n,onStepUpdate:s,externalLogUserAction:i.k.logUserAction}),g=v.back,b=v.nextStep,w=v.complete,S=v.hasPreviousStep,E=v.state,x=v.logUserAction,L={state:E,geoLocation:c,layoutMapping:e,hasPreviousStep:S,googleMapsApiKey:l,pageAppLinkString:u,back:g,close:y,nextStep:b,complete:w,logUserAction:x,imageUrls:f,ajaxUrls:p,brazeConfig:h,version:d,productName:m};return o().useEffect((function(){a.SG.get(ke)&&w({completionStep:"young-student",trialCreated:!1,trialStatus:null})}),[]),o().createElement(o().Fragment,null,o().createElement(hr,Object.assign({},L)),o().createElement(br,{developmentEnv:!1,objects:Object.assign(Object.assign(Object.assign({},E),{pageAppLinkString:u}),c)}))}},83529:(t,e,r)=>{var n;r.d(e,{c:()=>n}),function(t){t.Popup="popup-form",t.FullPage="full-page-form"}(n||(n={}))},12238:(t,e,r)=>{var n;r.d(e,{C:()=>n}),function(t){t.MasterId="master_id",t.CrmId="crm_id",t.SalesforceId="salesforce_id"}(n||(n={}))},84789:(t,e,r)=>{var n;r.d(e,{X:()=>n}),function(t){t.Lite="lite",t.Auth="auth"}(n||(n={}))},17331:(t,e,r)=>{r.d(e,{i:()=>o});var n=["email","longitude","latitude","trialCreated"],o={filterBlacklistedKeys:function(t){var e=Object.assign({},t);return n.forEach((function(t){return delete e[t]})),e}}},48456:(t,e,r)=>{r.d(e,{v:()=>o});var n=r(99742),o={popupDashboard:n.W.SignUp.POPUP_DASHBOARD,educator:n.W.SignUp.EDUCATOR,student:n.W.SignUp.STUDENT,statusImages:{available:n.W.SignUp.VERIFY_ACCOUNT,active:n.W.SignUp.EXISTING_CUSTOMER,expired:n.W.SignUp.EXPIRED_TRIAL,notRequired:n.W.SignUp.EXISTING_CUSTOMER,unavailable:n.W.SignUp.NOT_AVAILABLE,unsupported:n.W.SignUp.NOT_AVAILABLE,autoJoin:n.W.SignUp.EXISTING_CUSTOMER,requestAccess:n.W.SignUp.EXISTING_CUSTOMER}}},17762:(t,e,r)=>{r.d(e,{M:()=>i});var n=r(20354),o=r(39151),a={countryCode:"us",isFallback:!0};function i(){var t=n.a.useBasicFetch(o.L.geoLocation());return t.hasCompleted&&!t.data?a:t.data}},63643:(t,e,r)=>{r.d(e,{c:()=>c});var n=r(97395),o=r(20354),a=r(84789),i=r(39151);function c(){var t=o.a.useBasicFetch(i.L.config());if(!t.hasCompleted)return null;var e=t.data.gatewayApiUrl;return{productName:a.X.Lite,userStatus:n._.safeUrlConcat(e,"/v1/users/trial-status"),prospectStatus:function(t){return n._.safeUrlConcat(e,"/v1/prospects/".concat(t,"/trial-status"))},createTrial:"/api/user/trials",resendTrialEmail:function(t){return"/api/user/trials/users/".concat(t,"/send-activation-email")},searchProspect:n._.safeUrlConcat(e,"/v1/search/prospects"),createProspect:"/api/prospects",prospectLookups:function(t){return n._.safeUrlConcat(e,"/v1/prospects/".concat(t,"/lookups"))},autoJoin:"/api/user/trials/auto-join",joinRequest:function(t){return"/api/user/customers/".concat(t,"/join-requests")}}}},28366:(t,e,r)=>{r.d(e,{Z:()=>n});const n={logo:"Kh4Dd",modalBody:"V9nIN",popupButton:"hS60U",leftHalfLayout:"aQ1K8",withBg:"zALxE"}}}]);
|