@clickview/lite 0.30.0 → 0.30.2
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/.eslintrc.json +2 -2
- package/dist/bundles.json +2 -2
- package/dist/scripts/1200-549e8b8abc-lite.chunk.js +2 -0
- package/dist/scripts/1592-7573d29b17-lite.chunk.js +2 -0
- package/dist/scripts/{1672-d468487810-lite.chunk.js → 1672-6bed3f0c16-lite.chunk.js} +2 -2
- package/dist/scripts/2835-a21c8103a7-lite.chunk.js +2 -0
- package/dist/scripts/3533-141e2a9d8c-lite.chunk.js +1 -0
- package/dist/scripts/3602-86e3ad2e1c-lite.chunk.js +2 -0
- package/dist/scripts/{3645-0fa2bf62c7-lite.chunk.js → 3645-0023a3c2ef-lite.chunk.js} +2 -2
- package/dist/scripts/3667-b8cfdfbb44-lite.chunk.js +2 -0
- package/dist/scripts/3879-1f6a71b0e1-lite.chunk.js +2 -0
- package/dist/scripts/414-451bbb3e9d-lite.chunk.js +1 -0
- package/dist/scripts/{4617-bd5ca36c6a-lite.chunk.js → 4617-9aabc8fdde-lite.chunk.js} +1 -1
- package/dist/scripts/4676-020a60c057-lite.chunk.js +2 -0
- package/dist/scripts/4812-60103d16b0-lite.chunk.js +2 -0
- package/dist/scripts/5622-f59cb146d5-lite.chunk.js +2 -0
- package/dist/scripts/6285-a26519084a-lite.chunk.js +1 -0
- package/dist/scripts/6381-8a4d61a6f1-lite.chunk.js +1 -0
- package/dist/scripts/{6801-952b7de501-lite.chunk.js → 6801-e186fa1fde-lite.chunk.js} +1 -1
- package/dist/scripts/{6823-c8560d14cd-lite.chunk.js → 6823-272c18d11d-lite.chunk.js} +1 -1
- package/dist/scripts/6896-bcd89e6cf3-lite.chunk.js +2 -0
- package/dist/scripts/7017-b9352b104b-lite.chunk.js +2 -0
- package/dist/scripts/7030-d27b42e6b3-lite.chunk.js +2 -0
- package/dist/scripts/7221-1081606a10-lite.chunk.js +2 -0
- package/dist/scripts/7318-67ea8ef011-lite.chunk.js +2 -0
- package/dist/scripts/7939-9be850a448-lite.chunk.js +1 -0
- package/dist/scripts/{8323-d9c16b0e2a-lite.chunk.js → 8323-caedca162b-lite.chunk.js} +2 -2
- package/dist/scripts/8681-f9a8c79ee5-lite.chunk.js +2 -0
- package/dist/scripts/8763-9e7a972786-lite.chunk.js +1 -0
- package/dist/scripts/9428-b732575791-lite.chunk.js +2 -0
- package/dist/scripts/9478-37c6b7c1a2-lite.chunk.js +2 -0
- package/dist/scripts/9522-1f5efe271e-lite.chunk.js +2 -0
- package/dist/scripts/9931-8290a97315-lite.chunk.js +2 -0
- package/dist/scripts/9931-8290a97315-lite.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/bundle-42da83f804.min.js +2 -0
- package/dist/scripts/{polyfills-29240197f0.min.js → polyfills-1177fd46db.min.js} +2 -2
- package/dist/scripts/polyfills-1177fd46db.min.js.LICENSE.txt +1 -0
- package/jest.config.js +11 -11
- package/package.json +62 -62
- 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/1200-a46f90abf7-lite.chunk.js +0 -2
- package/dist/scripts/1592-aa2a8c797e-lite.chunk.js +0 -2
- package/dist/scripts/2835-2eb93d783f-lite.chunk.js +0 -2
- package/dist/scripts/3533-f077e680bc-lite.chunk.js +0 -1
- package/dist/scripts/3602-1832929de6-lite.chunk.js +0 -2
- package/dist/scripts/3667-7b18342083-lite.chunk.js +0 -2
- package/dist/scripts/3879-876552ae4d-lite.chunk.js +0 -2
- package/dist/scripts/4812-33d42bb3d2-lite.chunk.js +0 -2
- package/dist/scripts/5622-bffd5eb9ed-lite.chunk.js +0 -2
- package/dist/scripts/6285-238931e4ca-lite.chunk.js +0 -1
- package/dist/scripts/6725-84c3eb4af8-lite.chunk.js +0 -1
- package/dist/scripts/6736-29998bc029-lite.chunk.js +0 -2
- package/dist/scripts/6896-85492ba51f-lite.chunk.js +0 -1
- package/dist/scripts/7017-399860ca3c-lite.chunk.js +0 -1
- package/dist/scripts/7030-bec7e92477-lite.chunk.js +0 -2
- package/dist/scripts/7221-9631160338-lite.chunk.js +0 -2
- package/dist/scripts/7318-9ffc3cbe54-lite.chunk.js +0 -2
- package/dist/scripts/7338-1b546b5423-lite.chunk.js +0 -1
- package/dist/scripts/7818-0effa74a0a-lite.chunk.js +0 -1
- package/dist/scripts/8681-667e704ffc-lite.chunk.js +0 -2
- package/dist/scripts/8772-50df39e35a-lite.chunk.js +0 -1
- package/dist/scripts/9428-10ffcc2ee6-lite.chunk.js +0 -2
- package/dist/scripts/9478-5967aed527-lite.chunk.js +0 -2
- package/dist/scripts/9522-291ddb762c-lite.chunk.js +0 -2
- package/dist/scripts/9931-26ec77b0ad-lite.chunk.js +0 -2
- package/dist/scripts/bundle-4c8a888398.min.js +0 -2
- /package/dist/css/{6725-lite-db1dbcbd39.chunk.css → 414-lite-db1dbcbd39.chunk.css} +0 -0
- /package/dist/css/{7818-lite-e7bdc675ac.chunk.css → 6381-lite-e7bdc675ac.chunk.css} +0 -0
- /package/dist/css/{8772-lite-db1dbcbd39.chunk.css → 8763-lite-db1dbcbd39.chunk.css} +0 -0
- /package/dist/scripts/{1106-88605ba389-lite.chunk.js → 1106-0f86da7d7a-lite.chunk.js} +0 -0
- /package/dist/scripts/{1200-a46f90abf7-lite.chunk.js.LICENSE.txt → 1200-549e8b8abc-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{1291-943d366b8f-lite.chunk.js → 1291-ed90014a0d-lite.chunk.js} +0 -0
- /package/dist/scripts/{1324-742f24b123-lite.chunk.js → 1324-b353cefaa0-lite.chunk.js} +0 -0
- /package/dist/scripts/{1341-c0a3e34920-lite.chunk.js → 1341-522b48ab88-lite.chunk.js} +0 -0
- /package/dist/scripts/{1410-6ce2c06746-lite.chunk.js → 1410-2c7a02d51b-lite.chunk.js} +0 -0
- /package/dist/scripts/{1419-d3843c52c0-lite.chunk.js → 1419-813a43acd2-lite.chunk.js} +0 -0
- /package/dist/scripts/{1475-d6aae55376-lite.chunk.js → 1475-e8e933f8ec-lite.chunk.js} +0 -0
- /package/dist/scripts/{1518-335f52175d-lite.chunk.js → 1518-015dad7e32-lite.chunk.js} +0 -0
- /package/dist/scripts/{157-b7fd13e55a-lite.chunk.js → 157-0f37b0d04d-lite.chunk.js} +0 -0
- /package/dist/scripts/{1592-aa2a8c797e-lite.chunk.js.LICENSE.txt → 1592-7573d29b17-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{1628-b55f501b55-lite.chunk.js → 1628-14ff83c3ab-lite.chunk.js} +0 -0
- /package/dist/scripts/{1672-d468487810-lite.chunk.js.LICENSE.txt → 1672-6bed3f0c16-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{1725-fc401ed491-lite.chunk.js → 1725-f91870bf3e-lite.chunk.js} +0 -0
- /package/dist/scripts/{1726-9cbb62b9ac-lite.chunk.js → 1726-e2300b7de6-lite.chunk.js} +0 -0
- /package/dist/scripts/{1766-363cdf3a32-lite.chunk.js → 1766-de9cabbd90-lite.chunk.js} +0 -0
- /package/dist/scripts/{1805-01357d3c48-lite.chunk.js → 1805-fb2c59deb6-lite.chunk.js} +0 -0
- /package/dist/scripts/{1818-6aa198a96e-lite.chunk.js → 1818-7bce6fbbc5-lite.chunk.js} +0 -0
- /package/dist/scripts/{1820-29161bcc3d-lite.chunk.js → 1820-020925054d-lite.chunk.js} +0 -0
- /package/dist/scripts/{1830-c2e1eb2444-lite.chunk.js → 1830-1f2cd59b2a-lite.chunk.js} +0 -0
- /package/dist/scripts/{1837-a028cab86a-lite.chunk.js → 1837-d61969e2e5-lite.chunk.js} +0 -0
- /package/dist/scripts/{1891-58dfcd9aaf-lite.chunk.js → 1891-fc22c8c80e-lite.chunk.js} +0 -0
- /package/dist/scripts/{1913-4ef05a9354-lite.chunk.js → 1913-1f5336f128-lite.chunk.js} +0 -0
- /package/dist/scripts/{1924-c4e0894ab1-lite.chunk.js → 1924-cba94abb2d-lite.chunk.js} +0 -0
- /package/dist/scripts/{1943-447ca8fa7b-lite.chunk.js → 1943-9885fdda1a-lite.chunk.js} +0 -0
- /package/dist/scripts/{1958-296574ed9b-lite.chunk.js → 1958-cf002b0d1c-lite.chunk.js} +0 -0
- /package/dist/scripts/{2175-e0186becaa-lite.chunk.js → 2175-0f84f00e1b-lite.chunk.js} +0 -0
- /package/dist/scripts/{2229-ec97b69784-lite.chunk.js → 2229-3e6a038b93-lite.chunk.js} +0 -0
- /package/dist/scripts/{227-c10a8eeb86-lite.chunk.js → 227-b2189f910f-lite.chunk.js} +0 -0
- /package/dist/scripts/{2272-a059d0d67b-lite.chunk.js → 2272-9f8e109564-lite.chunk.js} +0 -0
- /package/dist/scripts/{2279-7e46f702cb-lite.chunk.js → 2279-f604704516-lite.chunk.js} +0 -0
- /package/dist/scripts/{2318-d8579dc55f-lite.chunk.js → 2318-0ff14c0bd3-lite.chunk.js} +0 -0
- /package/dist/scripts/{2452-bbbcc9cfc4-lite.chunk.js → 2452-c3bbdacb87-lite.chunk.js} +0 -0
- /package/dist/scripts/{2469-70fc53a9f9-lite.chunk.js → 2469-a665c8bcd7-lite.chunk.js} +0 -0
- /package/dist/scripts/{2561-d089ad0f59-lite.chunk.js → 2561-6e9be00863-lite.chunk.js} +0 -0
- /package/dist/scripts/{2566-99a5a0d5d4-lite.chunk.js → 2566-4d4210b567-lite.chunk.js} +0 -0
- /package/dist/scripts/{2608-509bf41fd2-lite.chunk.js → 2608-3fd5d617da-lite.chunk.js} +0 -0
- /package/dist/scripts/{2665-6c9652c22b-lite.chunk.js → 2665-1b4bfb587b-lite.chunk.js} +0 -0
- /package/dist/scripts/{2675-77be2ef8cf-lite.chunk.js → 2675-a7ad35ae0d-lite.chunk.js} +0 -0
- /package/dist/scripts/{2755-524454ea3b-lite.chunk.js → 2755-5b8e88a5ea-lite.chunk.js} +0 -0
- /package/dist/scripts/{2835-2eb93d783f-lite.chunk.js.LICENSE.txt → 2835-a21c8103a7-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2856-a736cd584a-lite.chunk.js → 2856-6174c28732-lite.chunk.js} +0 -0
- /package/dist/scripts/{2966-f382974c34-lite.chunk.js → 2966-6cea808843-lite.chunk.js} +0 -0
- /package/dist/scripts/{3007-4a6a008485-lite.chunk.js → 3007-9507eed4ed-lite.chunk.js} +0 -0
- /package/dist/scripts/{3020-3880453eb7-lite.chunk.js → 3020-90d53525c7-lite.chunk.js} +0 -0
- /package/dist/scripts/{3108-f3974602a6-lite.chunk.js → 3108-742edbe1cb-lite.chunk.js} +0 -0
- /package/dist/scripts/{3129-1206f4c65c-lite.chunk.js → 3129-f71b5ac677-lite.chunk.js} +0 -0
- /package/dist/scripts/{3171-a6ca536cba-lite.chunk.js → 3171-8b56e5dc82-lite.chunk.js} +0 -0
- /package/dist/scripts/{3200-df8a77d453-lite.chunk.js → 3200-34b13082a8-lite.chunk.js} +0 -0
- /package/dist/scripts/{3216-163a05dec8-lite.chunk.js → 3216-f4a39ad76e-lite.chunk.js} +0 -0
- /package/dist/scripts/{3245-c637208d56-lite.chunk.js → 3245-d069659e8b-lite.chunk.js} +0 -0
- /package/dist/scripts/{3285-6cf7ca4886-lite.chunk.js → 3285-b6ef740841-lite.chunk.js} +0 -0
- /package/dist/scripts/{3378-9f306d4d53-lite.chunk.js → 3378-98b9150947-lite.chunk.js} +0 -0
- /package/dist/scripts/{3468-d533903844-lite.chunk.js → 3468-1402df4f32-lite.chunk.js} +0 -0
- /package/dist/scripts/{3602-1832929de6-lite.chunk.js.LICENSE.txt → 3602-86e3ad2e1c-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3645-0fa2bf62c7-lite.chunk.js.LICENSE.txt → 3645-0023a3c2ef-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3667-7b18342083-lite.chunk.js.LICENSE.txt → 3667-b8cfdfbb44-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3728-ca48de2198-lite.chunk.js → 3728-200482d1b0-lite.chunk.js} +0 -0
- /package/dist/scripts/{375-2adcc74c39-lite.chunk.js → 375-37936e0321-lite.chunk.js} +0 -0
- /package/dist/scripts/{3754-6a0460b355-lite.chunk.js → 3754-dd8d9ebd14-lite.chunk.js} +0 -0
- /package/dist/scripts/{3787-d80feba390-lite.chunk.js → 3787-f53a50bb54-lite.chunk.js} +0 -0
- /package/dist/scripts/{3879-876552ae4d-lite.chunk.js.LICENSE.txt → 3879-1f6a71b0e1-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{389-d875f227d5-lite.chunk.js → 389-5b4ef87c08-lite.chunk.js} +0 -0
- /package/dist/scripts/{4182-858166073e-lite.chunk.js → 4182-2c2c5571a6-lite.chunk.js} +0 -0
- /package/dist/scripts/{4210-4d11c64422-lite.chunk.js → 4210-5102f81ead-lite.chunk.js} +0 -0
- /package/dist/scripts/{4326-bac59ef13d-lite.chunk.js → 4326-ecdc420ecb-lite.chunk.js} +0 -0
- /package/dist/scripts/{4343-6fadd09f69-lite.chunk.js → 4343-c52a4e0042-lite.chunk.js} +0 -0
- /package/dist/scripts/{4541-0fb4051bbe-lite.chunk.js → 4541-a119433212-lite.chunk.js} +0 -0
- /package/dist/scripts/{4632-b463e004a5-lite.chunk.js → 4632-816d5010d4-lite.chunk.js} +0 -0
- /package/dist/scripts/{4812-33d42bb3d2-lite.chunk.js.LICENSE.txt → 4676-020a60c057-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{4690-b5fd507455-lite.chunk.js → 4690-3572f41eab-lite.chunk.js} +0 -0
- /package/dist/scripts/{4770-9cb37f67d0-lite.chunk.js → 4770-3c09f8eaa4-lite.chunk.js} +0 -0
- /package/dist/scripts/{5622-bffd5eb9ed-lite.chunk.js.LICENSE.txt → 4812-60103d16b0-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{482-6e276fe327-lite.chunk.js → 482-97936e39ed-lite.chunk.js} +0 -0
- /package/dist/scripts/{4893-54d04373d8-lite.chunk.js → 4893-378ff6874a-lite.chunk.js} +0 -0
- /package/dist/scripts/{4895-9e0accef3a-lite.chunk.js → 4895-9f5bae5afe-lite.chunk.js} +0 -0
- /package/dist/scripts/{5048-676082487d-lite.chunk.js → 5048-7431f34b22-lite.chunk.js} +0 -0
- /package/dist/scripts/{5143-7ea3cff9dc-lite.chunk.js → 5143-9942f1a64c-lite.chunk.js} +0 -0
- /package/dist/scripts/{528-04964764ac-lite.chunk.js → 528-c7f9d5fd8b-lite.chunk.js} +0 -0
- /package/dist/scripts/{5330-48b3912d09-lite.chunk.js → 5330-af833082db-lite.chunk.js} +0 -0
- /package/dist/scripts/{5347-cca1f9814d-lite.chunk.js → 5347-734b9ab0fe-lite.chunk.js} +0 -0
- /package/dist/scripts/{5512-34019455ae-lite.chunk.js → 5512-fdcbe4ecee-lite.chunk.js} +0 -0
- /package/dist/scripts/{5533-5c2b64778f-lite.chunk.js → 5533-6f7c8aeca4-lite.chunk.js} +0 -0
- /package/dist/scripts/{5595-77ebe47afc-lite.chunk.js → 5595-1d79fddb5c-lite.chunk.js} +0 -0
- /package/dist/scripts/{5606-9c520d7045-lite.chunk.js → 5606-217c73cdd7-lite.chunk.js} +0 -0
- /package/dist/scripts/{6736-29998bc029-lite.chunk.js.LICENSE.txt → 5622-f59cb146d5-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{5769-460e722db9-lite.chunk.js → 5769-5d1b10e2e2-lite.chunk.js} +0 -0
- /package/dist/scripts/{5776-a20907909c-lite.chunk.js → 5776-f888ee7ad1-lite.chunk.js} +0 -0
- /package/dist/scripts/{5869-fead05abfe-lite.chunk.js → 5869-a7bf7331bb-lite.chunk.js} +0 -0
- /package/dist/scripts/{5877-f86225eba6-lite.chunk.js → 5877-375dae76a2-lite.chunk.js} +0 -0
- /package/dist/scripts/{5914-61466bd5b2-lite.chunk.js → 5914-bb8088b0e8-lite.chunk.js} +0 -0
- /package/dist/scripts/{5940-97971890fa-lite.chunk.js → 5940-a73965088a-lite.chunk.js} +0 -0
- /package/dist/scripts/{5974-a7bf16bb61-lite.chunk.js → 5974-6756b06bff-lite.chunk.js} +0 -0
- /package/dist/scripts/{5986-9cc425f875-lite.chunk.js → 5986-2b20ba1dbb-lite.chunk.js} +0 -0
- /package/dist/scripts/{6001-9e0e4fd75c-lite.chunk.js → 6001-6be03df74d-lite.chunk.js} +0 -0
- /package/dist/scripts/{6057-c16a4adb79-lite.chunk.js → 6057-ee0fc12212-lite.chunk.js} +0 -0
- /package/dist/scripts/{6113-db51f2ac32-lite.chunk.js → 6113-16a83d9b44-lite.chunk.js} +0 -0
- /package/dist/scripts/{615-0df20ec486-lite.chunk.js → 615-adb7956bd2-lite.chunk.js} +0 -0
- /package/dist/scripts/{6152-97c7f28dc5-lite.chunk.js → 6152-972f7302b9-lite.chunk.js} +0 -0
- /package/dist/scripts/{6158-00443b2c6b-lite.chunk.js → 6158-b653e86374-lite.chunk.js} +0 -0
- /package/dist/scripts/{6159-a198bd3426-lite.chunk.js → 6159-6c381cdb40-lite.chunk.js} +0 -0
- /package/dist/scripts/{6186-e1a7c188f0-lite.chunk.js → 6186-816b26cc1d-lite.chunk.js} +0 -0
- /package/dist/scripts/{6274-0181f518e2-lite.chunk.js → 6274-80146584e7-lite.chunk.js} +0 -0
- /package/dist/scripts/{6290-426a04c003-lite.chunk.js → 6290-6f61dee7ac-lite.chunk.js} +0 -0
- /package/dist/scripts/{6302-cf28099f40-lite.chunk.js → 6302-0403b6cfba-lite.chunk.js} +0 -0
- /package/dist/scripts/{6325-bbc15757bc-lite.chunk.js → 6325-178d2f471e-lite.chunk.js} +0 -0
- /package/dist/scripts/{6368-2ca0f9a5ef-lite.chunk.js → 6368-07b7907e8c-lite.chunk.js} +0 -0
- /package/dist/scripts/{6370-f4bc4aff8a-lite.chunk.js → 6370-96faff5748-lite.chunk.js} +0 -0
- /package/dist/scripts/{6427-4d9edd0b85-lite.chunk.js → 6427-4b4726de0e-lite.chunk.js} +0 -0
- /package/dist/scripts/{6450-3abc8b4c2b-lite.chunk.js → 6450-7fd1a35808-lite.chunk.js} +0 -0
- /package/dist/scripts/{6465-814e39b3b7-lite.chunk.js → 6465-f2556508fa-lite.chunk.js} +0 -0
- /package/dist/scripts/{6480-b42ccd2e06-lite.chunk.js → 6480-3664de76df-lite.chunk.js} +0 -0
- /package/dist/scripts/{6493-623c62340e-lite.chunk.js → 6493-241d2f1bce-lite.chunk.js} +0 -0
- /package/dist/scripts/{65-221bad72f1-lite.chunk.js → 65-551e1329a5-lite.chunk.js} +0 -0
- /package/dist/scripts/{6604-70f0ab15da-lite.chunk.js → 6604-9fdc49ea46-lite.chunk.js} +0 -0
- /package/dist/scripts/{6770-ba75737565-lite.chunk.js → 6770-35fb1f60dc-lite.chunk.js} +0 -0
- /package/dist/scripts/{6821-0dcfd046eb-lite.chunk.js → 6821-fb59d25618-lite.chunk.js} +0 -0
- /package/dist/scripts/{6823-c8560d14cd-lite.chunk.js.LICENSE.txt → 6823-272c18d11d-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{6866-15ada6777e-lite.chunk.js → 6866-de4752df6e-lite.chunk.js} +0 -0
- /package/dist/scripts/{6873-f7e3c3402b-lite.chunk.js → 6873-d9d9bbf8de-lite.chunk.js} +0 -0
- /package/dist/scripts/{6884-dfadfe260f-lite.chunk.js → 6884-dbfd65e1c9-lite.chunk.js} +0 -0
- /package/dist/scripts/{7030-bec7e92477-lite.chunk.js.LICENSE.txt → 6896-bcd89e6cf3-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{6913-0e46739244-lite.chunk.js → 6913-1d7c241651-lite.chunk.js} +0 -0
- /package/dist/scripts/{7221-9631160338-lite.chunk.js.LICENSE.txt → 7017-b9352b104b-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8323-d9c16b0e2a-lite.chunk.js.LICENSE.txt → 7030-d27b42e6b3-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7045-b554437fe9-lite.chunk.js → 7045-0b0dc611ab-lite.chunk.js} +0 -0
- /package/dist/scripts/{7056-b9f743375e-lite.chunk.js → 7056-fd8d859ef1-lite.chunk.js} +0 -0
- /package/dist/scripts/{7069-0abaee06e7-lite.chunk.js → 7069-7958f074c7-lite.chunk.js} +0 -0
- /package/dist/scripts/{7108-c5c36f3cbc-lite.chunk.js → 7108-411445c569-lite.chunk.js} +0 -0
- /package/dist/scripts/{711-545ed34067-lite.chunk.js → 711-ad6a94c63e-lite.chunk.js} +0 -0
- /package/dist/scripts/{7115-be81796d12-lite.chunk.js → 7115-df1e77b86a-lite.chunk.js} +0 -0
- /package/dist/scripts/{7128-c592fc94be-lite.chunk.js → 7128-394a5b25cc-lite.chunk.js} +0 -0
- /package/dist/scripts/{714-a83295718b-lite.chunk.js → 714-eea8a3447f-lite.chunk.js} +0 -0
- /package/dist/scripts/{7172-47c84ddb9d-lite.chunk.js → 7172-8a34e997ea-lite.chunk.js} +0 -0
- /package/dist/scripts/{7178-6b3a9deadd-lite.chunk.js → 7178-85acf5024c-lite.chunk.js} +0 -0
- /package/dist/scripts/{7205-67a393f11b-lite.chunk.js → 7205-b2bb570975-lite.chunk.js} +0 -0
- /package/dist/scripts/{8681-667e704ffc-lite.chunk.js.LICENSE.txt → 7221-1081606a10-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7293-8d7136a79d-lite.chunk.js → 7293-ecc66c0bc5-lite.chunk.js} +0 -0
- /package/dist/scripts/{7318-9ffc3cbe54-lite.chunk.js.LICENSE.txt → 7318-67ea8ef011-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7385-fde5b2b629-lite.chunk.js → 7385-3d4bc59e02-lite.chunk.js} +0 -0
- /package/dist/scripts/{7432-1277d6c4db-lite.chunk.js → 7432-a38d4189e4-lite.chunk.js} +0 -0
- /package/dist/scripts/{7506-f170cf5f7a-lite.chunk.js → 7506-c14efc267c-lite.chunk.js} +0 -0
- /package/dist/scripts/{7510-20e598e961-lite.chunk.js → 7510-0cfac2b1d7-lite.chunk.js} +0 -0
- /package/dist/scripts/{7532-6cac7b0b4b-lite.chunk.js → 7532-38c921f0c8-lite.chunk.js} +0 -0
- /package/dist/scripts/{7708-49a3d1b8cc-lite.chunk.js → 7708-18f97e6312-lite.chunk.js} +0 -0
- /package/dist/scripts/{7767-0f59f8ca5d-lite.chunk.js → 7767-d2c100f095-lite.chunk.js} +0 -0
- /package/dist/scripts/{7808-96c7793598-lite.chunk.js → 7808-666eed4323-lite.chunk.js} +0 -0
- /package/dist/scripts/{7855-18892e9a03-lite.chunk.js → 7855-fa28a68dc2-lite.chunk.js} +0 -0
- /package/dist/scripts/{7925-271289a49d-lite.chunk.js → 7925-d30e261c55-lite.chunk.js} +0 -0
- /package/dist/scripts/{8025-0d74ff5d25-lite.chunk.js → 8025-a09100f5f8-lite.chunk.js} +0 -0
- /package/dist/scripts/{8038-7fd8eededa-lite.chunk.js → 8038-d984b789be-lite.chunk.js} +0 -0
- /package/dist/scripts/{8046-2c6f090035-lite.chunk.js → 8046-3042885a1c-lite.chunk.js} +0 -0
- /package/dist/scripts/{8056-9accfb3eee-lite.chunk.js → 8056-1a59f5f88e-lite.chunk.js} +0 -0
- /package/dist/scripts/{8072-677aed8662-lite.chunk.js → 8072-5a950137bc-lite.chunk.js} +0 -0
- /package/dist/scripts/{811-924c55d762-lite.chunk.js → 811-4c21882e66-lite.chunk.js} +0 -0
- /package/dist/scripts/{823-c66c4e38b8-lite.chunk.js → 823-96721061ac-lite.chunk.js} +0 -0
- /package/dist/scripts/{8252-a1b3ebfbbd-lite.chunk.js → 8252-dd337034c3-lite.chunk.js} +0 -0
- /package/dist/scripts/{8300-0093fb3508-lite.chunk.js → 8300-e6f255e4cb-lite.chunk.js} +0 -0
- /package/dist/scripts/{9428-10ffcc2ee6-lite.chunk.js.LICENSE.txt → 8323-caedca162b-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8419-84dd3bc04f-lite.chunk.js → 8419-ad3d004cb9-lite.chunk.js} +0 -0
- /package/dist/scripts/{8466-086b5c7204-lite.chunk.js → 8466-5ed6352c4b-lite.chunk.js} +0 -0
- /package/dist/scripts/{8531-9dc83ff6c9-lite.chunk.js → 8531-f899f4714c-lite.chunk.js} +0 -0
- /package/dist/scripts/{8564-07a4fad46f-lite.chunk.js → 8564-f46b198c55-lite.chunk.js} +0 -0
- /package/dist/scripts/{9478-5967aed527-lite.chunk.js.LICENSE.txt → 8681-f9a8c79ee5-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{872-081852c9ef-lite.chunk.js → 872-44713ba930-lite.chunk.js} +0 -0
- /package/dist/scripts/{8729-6e74b056ae-lite.chunk.js → 8729-7a2c044441-lite.chunk.js} +0 -0
- /package/dist/scripts/{8779-f60563a8fa-lite.chunk.js → 8779-40b67fde89-lite.chunk.js} +0 -0
- /package/dist/scripts/{8816-4168669818-lite.chunk.js → 8816-b7575df853-lite.chunk.js} +0 -0
- /package/dist/scripts/{8830-d037a68756-lite.chunk.js → 8830-9d69a3012c-lite.chunk.js} +0 -0
- /package/dist/scripts/{8905-6e9ad61907-lite.chunk.js → 8905-c4ef2e6fd9-lite.chunk.js} +0 -0
- /package/dist/scripts/{8944-1de1271c47-lite.chunk.js → 8944-aba9581f23-lite.chunk.js} +0 -0
- /package/dist/scripts/{8955-759b7b65e6-lite.chunk.js → 8955-9fa8a98fdb-lite.chunk.js} +0 -0
- /package/dist/scripts/{9005-52e7b3e80e-lite.chunk.js → 9005-7095f76099-lite.chunk.js} +0 -0
- /package/dist/scripts/{9016-18a53d42ed-lite.chunk.js → 9016-5d3b7ebca7-lite.chunk.js} +0 -0
- /package/dist/scripts/{9038-24ab725645-lite.chunk.js → 9038-c51fe905f2-lite.chunk.js} +0 -0
- /package/dist/scripts/{9060-db05efe15f-lite.chunk.js → 9060-b13c55ce5c-lite.chunk.js} +0 -0
- /package/dist/scripts/{9133-fabfafff24-lite.chunk.js → 9133-b186d465f7-lite.chunk.js} +0 -0
- /package/dist/scripts/{9151-1bd66407b7-lite.chunk.js → 9151-6caecead76-lite.chunk.js} +0 -0
- /package/dist/scripts/{9226-49fbc1c0a6-lite.chunk.js → 9226-6cc9ae98fc-lite.chunk.js} +0 -0
- /package/dist/scripts/{924-35ca96837c-lite.chunk.js → 924-865b1d0fcf-lite.chunk.js} +0 -0
- /package/dist/scripts/{9242-4e75cd3956-lite.chunk.js → 9242-389e8e59c6-lite.chunk.js} +0 -0
- /package/dist/scripts/{9264-e96ca3ac6b-lite.chunk.js → 9264-a3576fe1b7-lite.chunk.js} +0 -0
- /package/dist/scripts/{9273-7bdf68a545-lite.chunk.js → 9273-a6fbfe7f10-lite.chunk.js} +0 -0
- /package/dist/scripts/{9522-291ddb762c-lite.chunk.js.LICENSE.txt → 9428-b732575791-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9455-cab45e681c-lite.chunk.js → 9455-5c0f5b350c-lite.chunk.js} +0 -0
- /package/dist/scripts/{9931-26ec77b0ad-lite.chunk.js.LICENSE.txt → 9478-37c6b7c1a2-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{949-ec28a26a38-lite.chunk.js → 949-68ebef3de9-lite.chunk.js} +0 -0
- /package/dist/scripts/{polyfills-29240197f0.min.js.LICENSE.txt → 9522-1f5efe271e-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9556-66bf82cc95-lite.chunk.js → 9556-d6901ce835-lite.chunk.js} +0 -0
- /package/dist/scripts/{9798-a81f40c977-lite.chunk.js → 9798-d54774ef4e-lite.chunk.js} +0 -0
- /package/dist/scripts/{9814-09e5cef832-lite.chunk.js → 9814-b29f502ae6-lite.chunk.js} +0 -0
- /package/dist/scripts/{9897-f818c4b16f-lite.chunk.js → 9897-e26852fc10-lite.chunk.js} +0 -0
- /package/dist/scripts/{9902-bcbc89646b-lite.chunk.js → 9902-ca0f065d90-lite.chunk.js} +0 -0
- /package/dist/scripts/{996-ef83e69bc0-lite.chunk.js → 996-cc98267e1e-lite.chunk.js} +0 -0
- /package/dist/scripts/{9961-c58cc2ecaa-lite.chunk.js → 9961-acaa4c44fc-lite.chunk.js} +0 -0
- /package/dist/scripts/{bundle-4c8a888398.min.js.LICENSE.txt → bundle-42da83f804.min.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 9522-291ddb762c-lite.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9522],{42328:(t,e,r)=>{r.d(e,{w:()=>a});var n=r(1024),o=r.n(n);function i(){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 a=o().forwardRef((function(t,e){var r=t.onClickClear,n=t.showClearButton,a=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({},a,{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(i,null))))}))},40688:(t,e,r)=>{r.d(e,{h:()=>en});var n,o=r(1024),i=r.n(o),a=r(57900),c=r(83529),l=r(65858),u=r(58130),s=r(11607),f=r(2786),p=r(83914);!function(t){t.AU="au",t.NZ="nz",t.UK="uk",t.US="us"}(n||(n={}));var d=r(83765),h=["uk","gb","gg","im","je","ie"],m={au:n.AU,nz:n.NZ,us:n.US,uk:n.UK,gb:n.UK,gg:n.UK,im:n.UK,je:n.UK,ie:n.UK},y={au:d.M.CvApSoutheast1,uk:d.M.CvEuWest1,us:d.M.CvNaWest1,nz:d.M.CvApSoutheast2},v={getInstanceRegion:function(t){var e=v.getCountryCode(t);return y[e]},getCountryCode:function(t){return m[null==t?void 0:t.toLowerCase()]||n.US},isCountryCodeUK:function(t){return h.includes(t.toLowerCase())},isCountryCodeAU:function(t){return(null==t?void 0:t.toLowerCase())===n.AU},isCountryCodeUS:function(t){return(null==t?void 0:t.toLowerCase())===n.US},isCountryCodeNZ:function(t){return(null==t?void 0:t.toLowerCase())===n.NZ},isSupportedCountryCode:function(t){return Object.keys(m).includes(null==t?void 0:t.toLowerCase())},getLocalizedLocalityPlaceholderPhrase:function(t){if(t)return v.isCountryCodeUK(t)?"E.g. CR0 3RL or 36 Factory Lane":v.isCountryCodeAU(t)||v.isCountryCodeNZ(t)?"E.g. 2212 or Revesby":v.isCountryCodeUS(t)?"E.g. 95826 or Sacramento":void 0},getLocalizedLocalityPlaceholderText:function(t){if(t){var e=v.getLocalizedLocalityPlaceholderPhrase(t);if(e)return e}}},g=r(97395),b={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"}},w={getMarketingUrlForGeoLocation:function(t){var e=v.getCountryCode(null==t?void 0:t.countryCode);return b.Marketing[e]||b.Marketing.us},getMarketingSalesContactForGeoLocation:function(t){var e=v.getCountryCode(null==t?void 0:t.countryCode),r=this.getMarketingUrlForGeoLocation(t);return t&&e===n.NZ?r+"/contact-us/":r+"/contact-us/trial/"},getFreeResourcesForGeoLocation:function(t){var e=v.getCountryCode(null==t?void 0:t.countryCode);return e===n.NZ&&(e=n.AU),this.getMarketingUrlForGeoLocation({countryCode:e})+"/free-student-resources//"},getTermsAndConditionsLink:function(){return this.getMarketingUrlForGeoLocation(n.US)+"/terms-and-conditions/"},getPrivacyPolicyLink:function(){return this.getMarketingUrlForGeoLocation(n.US)+"/privacy-policy/"},getSupportUrlForGeoLocation:function(t){var e=v.getCountryCode(null==t?void 0:t.countryCode);return b.Support[e]||b.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),g._.urlBuilder("/login",n)}};const S={crumb:"Btmx2"};function E(t,e){var r="rounded-circle mx-2 d-inline-block "+S.crumb,n=t===e?"bg-info":"bg-light";return"".concat(r," ").concat(n)}function x(t){return i().createElement("div",{className:"text-center"},t.crumbs.map((function(e){return i().createElement("div",{className:E(t.currentStep,e),key:e})})))}function L(t){return i().createElement("button",{onClick:t.onClick,className:"btn p-0 cursor-pointer d-inline-flex align-items-center"},i().createElement(p.x,{svgName:u.vn.ChevronLeft,size:p.S.Medium}),t.children)}var j=r(98461);function k(t){var e=w.getTermsAndConditionsLink(),r=w.getPrivacyPolicyLink();return i().createElement("span",{className:"text-center text-md mt-2 text-normal small"},"By signing up you agree to the",i().createElement("br",null),i().createElement(j.d,{href:e,onClick:t.onClickTermsAndConditions,className:"info-link",newTab:!0},"Terms and Conditions")," and ",i().createElement(j.d,{href:r,onClick:t.onClickPrivacyPolicy,className:"info-link",newTab:!0},"Privacy Policy"))}function O(t){return i().createElement(i().Fragment,null,"Have a ClickView account already?",i().createElement("a",{href:t.link,className:"info-link ml-1",target:"_blank",onClick:t.onClick},"Sign in"))}var C=r(28366);P.defaultProps={showBackButton:!0};var A=["enter-email","find-school"],N=["enter-email","find-school","cant-find-school","add-to-braze","enter-age","request-access"];function P(t){var e=t.currentStep,r=t.previousStep,n=t.hasPreviousStep,o=t.showBackButton,a=t.closeApp,c=t.children;function d(){return["enter-email","find-school","cant-find-school","add-to-braze","enter-age"].includes(e)}function h(){r(),t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.Back,workflowPhase:l.WorkflowPhase.Back})}var m=N.includes(t.currentStep),y=m?"".concat(C.Z.leftHalfLayout," ").concat(C.Z.withBg):C.Z.leftHalfLayout;return i().createElement("div",{className:y},i().createElement("div",{className:"row mx-0 p-3"},i().createElement("div",{className:"col px-0 d-lg-none ".concat(C.Z.popupButton)},n&&d()&&o&&i().createElement(L,{onClick:h})),i().createElement("div",{className:"col col-lg-6 px-0"},i().createElement("div",{className:C.Z.logo},i().createElement("div",{className:"d-none d-lg-block"},m?i().createElement(f.Yo,null):i().createElement(f.$S,null)),i().createElement("div",{className:"d-block d-lg-none mt-1"},i().createElement(f.$S,null),A.includes(t.currentStep)&&i().createElement("div",{className:"mt-3"},i().createElement(x,{crumbs:A,currentStep:e}))))),i().createElement("div",{className:"col col-lg-6 d-flex flex-row justify-content-between px-0"},i().createElement("div",{className:"px-3"},i().createElement("div",{className:"d-none d-lg-block ".concat(C.Z.popupButton)},n&&d()&&o&&i().createElement(L,{onClick:h}))),A.includes(t.currentStep)&&i().createElement("div",{className:"d-none d-lg-block align-self-center"},i().createElement(x,{crumbs:A,currentStep:e})),i().createElement(s.L,{onClick:a,className:C.Z.popupButton},i().createElement(p.x,{svgName:u.vn.Close,size:p.S.Medium})))),i().createElement("div",{className:"row mx-0 flex-grow-1"},m&&i().createElement("div",{className:"col-6 px-0 d-none d-lg-block"},i().createElement("div",{className:"h-100 d-flex align-items-center justify-content-center"},i().createElement("img",{src:t.imageUrls.popupDashboard,className:"w-100 p-4 pb-5"}))),i().createElement("div",{className:"px-4 pt-0 pb-4 ".concat(m?"col-12 col-lg-6":"col-12")},i().createElement("div",{className:"d-flex flex-column h-100"},i().createElement("div",{className:"flex-grow-1"},c),i().createElement("div",{className:"text-center mt-3"},"select-type"===e&&i().createElement(O,{link:w.getLoginLink(),onClick:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.SignIn})}}),["enter-email","add-to-braze"].includes(e)&&i().createElement(k,{onClickTermsAndConditions:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.TermsAndConditions})},onClickPrivacyPolicy:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.PrivacyPolicy})}}))))))}T.defaultProps={showBackButton:!0};var U,I=["select-type","enter-email","find-school"];function T(t){var e=t.currentStep,r=t.previousStep,n=t.hasPreviousStep,o=t.showBackButton,a=t.children;return i().createElement("div",{className:"d-flex flex-column justify-content-between px-4 py-0 ".concat("jZ_Wp")},i().createElement("div",{className:"mt-3 mb-2"},I.includes(e)&&i().createElement(x,{crumbs:I,currentStep:e})),i().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")},i().createElement("div",{className:"d-flex flex-row justify-content-center align-items-center mt-2 mb-3"},n&&o&&["enter-email","find-school","cant-find-school","add-to-braze","enter-age","request-access"].includes(e)&&i().createElement(L,{onClick:function(){r(),t.logUserAction({step:e},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.Back,workflowPhase:l.WorkflowPhase.Back})}}),i().createElement("div",{className:"d-flex justify-content-center align-items-center px-2 ".concat("J97w_")},i().createElement(f.$S,null))),a),i().createElement("div",{className:"position-relative mb-4 mt-3 text-center"},"select-type"===e&&i().createElement(O,{link:w.getLoginLink(),onClick:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.SignIn})}}),["enter-email","find-school","add-to-braze"].includes(e)&&i().createElement(k,{onClickTermsAndConditions:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.TermsAndConditions})},onClickPrivacyPolicy:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.PrivacyPolicy})}})))}function _(t){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(t)}function F(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==_(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===_(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var G,D,R={"cant-find-school":P,"enter-email":P,"find-school":P,"select-type":P,completed:P,"add-to-braze":P,"enter-age":P,"request-access":P},M={"cant-find-school":T,"enter-email":T,"find-school":T,"select-type":T,completed:T,"add-to-braze":T,"enter-age":T,"request-access":T},K=(F(U={},c.c.FullPage,M),F(U,c.c.Popup,R),U),z={getLayouts:function(t){return K[t]}};function q(t,e){return e?"".concat(t," ").concat(e):t}!function(t){t.Unavailable="unavailable",t.Expired="expired",t.Active="active",t.NotRequired="not-required",t.Available="available",t.Unsupported="unsupported",t.UserAutoJoinAllowed="user-auto-join-allowed",t.UserJoinApprovalRequired="user-join-approval-required"}(G||(G={})),function(t){t.InvalidEmail="invalid-email"}(D||(D={}));var B=function(t){return i().createElement("h1",{className:q("text-center mb-2 h4",t.className)},t.children)},Y=function(t){return i().createElement("div",{className:q("text-center text-sm px-2 px-lg-4",t.className)},t.children)},$=function(t){return i().createElement("p",{className:q("",t.className)},t.children)};function W(t){return W="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},W(t)}function V(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==W(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==W(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===W(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function H(t){var e,r=(V(e={},G.Available,t.imageUrls.statusImages.available),V(e,G.Active,t.imageUrls.statusImages.active),V(e,G.Expired,t.imageUrls.statusImages.expired),V(e,G.NotRequired,t.imageUrls.statusImages.notRequired),V(e,G.Unavailable,t.imageUrls.statusImages.unavailable),V(e,G.Unsupported,t.imageUrls.statusImages.unsupported),V(e,G.UserAutoJoinAllowed,t.imageUrls.statusImages.notRequired),V(e,G.UserJoinApprovalRequired,t.imageUrls.statusImages.notRequired),e);return i().createElement("div",{className:"d-flex justify-content-center my-4 px-2 px-lg-4"},i().createElement("img",{src:r[t.trialStatus],className:"w-100 h-auto"}))}var J="young-student",Z=r(99940);function X(t){return X="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},X(t)}function Q(t){var e="function"==typeof Map?new Map:void 0;return Q=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return tt(t,arguments,nt(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),rt(n,t)},Q(t)}function tt(t,e,r){return tt=et()?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&&rt(o,r.prototype),o},tt.apply(null,arguments)}function et(){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 rt(t,e){return rt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},rt(t,e)}function nt(t){return nt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},nt(t)}var ot=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&&rt(t,e)}(i,t);var e,r,n,o=(r=i,n=et(),function(){var t,e=nt(r);if(n){var o=nt(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===X(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function i(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Error";return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=o.call(this,r)).body=t,e}return e=i,Object.defineProperty(e,"prototype",{writable:!1}),e}(Q(Error));function it(t){return it="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},it(t)}function at(){at=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new j(o||[]);return n(a,"_invoke",{value:S(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function d(){}function h(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=h.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==it(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function k(t){if(t||""===t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}throw new TypeError(it(t)+" is not iterable")}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=l(h,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var ct=function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{l(n.next(t))}catch(t){i(t)}}function c(t){try{l(n.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}l((n=n.apply(t,e||[])).next())}))};function lt(t){var e={method:Z.k.GET,headers:{"Content-type":"application/json"}};t.method&&(e=Object.assign(Object.assign({},e),{method:t.method})),t.init&&(e=Object.assign(Object.assign({},e),t.init));var r,n,o,i=t.url;return e.method===Z.k.GET&&t.data?(r=i,n=t.data,o=r,Object.keys(n).forEach((function(t,e){n[t]&&(o+=0===e?"?":"&",o+="".concat(t,"=").concat(encodeURIComponent(n[t])))})),i=o):t.data&&(e=Object.assign(Object.assign({},e),{body:JSON.stringify(t.data)})),{init:e,url:i}}var ut={asyncFetch:function(t){return ct(this,void 0,void 0,at().mark((function e(){var r,n,o;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=lt(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 ot(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 ct(this,void 0,void 0,at().mark((function e(){var r,n;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=lt(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=lt(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()}))}))},st=r(84789),ft=function(t,e){if(t.productName!==st.X.Lite)return Promise.reject();var r={email:e.email};return ut.asyncFetch({url:t.userStatus,data:r})},pt=function(t,e,r,n,o){var i=t.prospectStatus(e.prospectId);i=g._.urlBuilder(i,{email:e.email}),ut.fetch({url:i,success:r,error:n,always:o})},dt=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 ut.asyncFetch({url:t.createTrial,method:Z.k.POST,data:r})},ht=function(t,e,r){if(t.productName!==st.X.Lite)return Promise.reject();var n={email:r.email,appLink:null==r?void 0:r.appLink};return ut.asyncFetch({url:t.resendTrialEmail(e),method:Z.k.POST,data:n})},mt=function(t,e){var r=t.productName===st.X.Auth?t.joinRequest:t.joinRequest(e.customerId),n=t.productName===st.X.Auth?e:{email:e.email};return ut.asyncFetch({url:r,method:Z.k.POST,data:n})},yt=function(t,e){return t.productName!==st.X.Lite?Promise.reject():ut.asyncFetch({url:t.autoJoin,method:Z.k.POST,data:e})};function vt(t){return vt="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},vt(t)}function gt(){gt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new j(o||[]);return n(a,"_invoke",{value:S(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function d(){}function h(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=h.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==vt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function k(t){if(t||""===t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}throw new TypeError(vt(t)+" is not iterable")}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=l(h,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function bt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return 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}}(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 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;function Et(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 i().createElement(Y,{className:"mb-3"},e?i().createElement(i().Fragment,null,i().createElement(B,null,r,i().createElement("br",null),"already has ClickView 🎉"),i().createElement($,{className:"mt-3"},"If your school has SSO ",i().createElement("a",{href:w.getLoginLink({email:t.email,customerId:t.customerId}),className:"info-link"},"click here to sign in.")),i().createElement($,null,"Otherwise please contact your school admin for access.")):i().createElement(i().Fragment,null,i().createElement(B,null,"Good News!"),i().createElement($,null,"An account already exists for:",i().createElement("br",null)," ",i().createElement("strong",null,t.email)),i().createElement($,null,i().createElement("a",{href:w.getLoginLink({email:t.email}),className:"btn btn-dark btn-lg w-100"},"Sign into ClickView"))),i().createElement($,null,"Need Help? ",i().createElement("a",{href:w.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link",target:"_blank"},"Contact our Help Centre.")))}function xt(t){return xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xt(t)}function Lt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==xt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==xt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===xt(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var jt=(Lt(St={},G.Available,(function(t){var e=bt(i().useState(0),2),r=e[0],n=e[1],o=bt(i().useState(!1),2),a=o[0],c=o[1];if(null==t?void 0:t.email)return i().createElement(Y,null,i().createElement(B,null,"Success!"),i().createElement($,null,"An email has been sent to ",i().createElement("strong",null,t.email),". Please check your email for further instructions to complete the sign up process."),!!t.userId&&i().createElement(i().Fragment,null,r<1?i().createElement($,null,"Didn't receive an email? ",i().createElement("button",{onClick:function(e){return o=this,i=void 0,a=void 0,u=gt().mark((function o(){return gt().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:l.UserAction.Click,descriptor:l.SignUpDescriptors.ResendEmail});case 11:case"end":return o.stop()}}),o,null,[[1,7]])})),new(a||(a=Promise))((function(t,e){function r(t){try{c(u.next(t))}catch(t){e(t)}}function n(t){try{c(u.throw(t))}catch(t){e(t)}}function c(e){var o;e.done?t(e.value):(o=e.value,o instanceof a?o:new a((function(t){t(o)}))).then(r,n)}c((u=u.apply(o,i||[])).next())}));var o,i,a,u},className:"btn info-link p-0"},"Resend verification email")):"✅ Email has been resent!",a&&i().createElement($,{className:"mb-0 text-danger"},"❌ There was a problem resending the email. Please try again later or contact our ",i().createElement("a",{href:w.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link"},"support"))))})),Lt(St,G.Active,Et),Lt(St,G.Expired,(function(t){var e=w.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 i().createElement(Y,null,i().createElement(B,null,r?"".concat(n," trial has expired"):"Your trial has expired"),i().createElement($,null,"Please contact our ",i().createElement("a",{href:e,className:"info-link",target:"_blank"},"ClickView Sales Team")))})),Lt(St,G.NotRequired,Et),Lt(St,G.Unavailable,(function(t){var e=w.getMarketingSalesContactForGeoLocation(t.geoLocation);return i().createElement(Y,null,i().createElement(B,null,"Your school no longer",i().createElement("br",null)," has access to ClickView"),i().createElement($,null,"Please contact our ",i().createElement("a",{href:e,className:"info-link"},"ClickView Sales Team")," for more information."))})),Lt(St,G.Unsupported,(function(){return i().createElement(Y,null,i().createElement(B,{className:"px-2 px-lg-4"},"ClickView isn't currently ",i().createElement("br",null)," available for your school"),i().createElement($,null,"We're working hard to get ClickView ready for more people."))})),Lt(St,G.UserAutoJoinAllowed,Et),Lt(St,G.UserJoinApprovalRequired,Et),St);function kt(t){var e=jt[t.trialStatus];return i().createElement(e,Object.assign({},t))}var Ot={"trial-status":function(t){return i().useEffect((function(){var e={actionType:l.UserAction.Create,descriptor:l.SignUpDescriptors.DeadEnd,workflowPhase:l.WorkflowPhase.Discard};t.trialCreated&&(e.descriptor=l.SignUpDescriptors.TrialCreated,e.workflowPhase=l.WorkflowPhase.Complete),t.logUserAction({},e)}),[]),i().createElement(i().Fragment,null,i().createElement(H,{trialStatus:t.trialStatus,imageUrls:t.imageUrls}),i().createElement(kt,Object.assign({},t)))},"added-to-braze":function(t){return i().useEffect((function(){t.logUserAction({},{actionType:l.UserAction.Create,descriptor:l.SignUpDescriptors.TrialRequested,workflowPhase:l.WorkflowPhase.Complete})}),[]),i().createElement(i().Fragment,null,i().createElement(H,{trialStatus:G.Available,imageUrls:t.imageUrls}),i().createElement(Y,{className:"mb-3"},i().createElement(B,null,"Submitted!"),i().createElement($,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=w.getFreeResourcesForGeoLocation(t.geoLocation);return i().useEffect((function(){a.SG.set(J,!0)}),[]),i().createElement(i().Fragment,null,i().createElement(H,{trialStatus:G.Active,imageUrls:t.imageUrls}),i().createElement(Y,{className:"mb-3"},i().createElement(B,null,"Discover our free content"),i().createElement($,null,"Click the button below to explore our videos"),i().createElement("a",{href:e,className:"btn btn-lg btn-dark w-100",target:"_blank"},"Start watching now")))},"requested-access":function(t){return i().createElement(i().Fragment,null,i().createElement(H,{trialStatus:G.Available,imageUrls:t.imageUrls}),i().createElement(Y,{className:"mb-3"},i().createElement(B,null,"You've requested access!"),i().createElement($,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.")))}},Ct=r(2102),At=r(42328),Nt=[{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"}];const Pt="gVdYS",Ut="Mlp3x";function It(t){var e=t.idp,r=t.onClick;return o.createElement("button",{className:"btn btn-lg btn-outline-dark w-100 mb-3 ".concat(Pt),onClick:function(){return r(e)}},e.logoUrl&&o.createElement("img",{src:e.logoUrl,className:Ut}),"Continue with ",e.name)}var Tt;!function(t){t.Staff="staff",t.Learner="learner"}(Tt||(Tt={}));var _t;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 t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new j(o||[]);return n(a,"_invoke",{value:S(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function d(){}function h(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=h.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Ft(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function k(t){if(t||""===t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}throw new TypeError(Ft(t)+" is not iterable")}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=l(h,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Dt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Rt(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)?Rt(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 Rt(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 Mt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Ft(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Ft(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Ft(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Kt=new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/),zt=(Mt(_t={},n.AU,"valerie.frizzle@school.edu.au"),Mt(_t,n.UK,"valerie.frizzle@school.gov.uk"),Mt(_t,n.US,"valerie.frizzle@school.gov"),Mt(_t,n.NZ,"valerie.frizzle@school.nz"),_t);function qt(t){return zt[v.getCountryCode(t.countryCode)]||zt.us}var Bt,Yt=[G.Expired,G.NotRequired,G.Unavailable,G.Unsupported,G.Active],$t=r(33003),Wt=r.n($t),Vt=r(63093);function Ht(t){return Ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ht(t)}function Jt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Zt(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)?Zt(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 Zt(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 Xt(){Xt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new j(o||[]);return n(a,"_invoke",{value:S(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function d(){}function h(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=h.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Ht(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function k(t){if(t||""===t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}throw new TypeError(Ht(t)+" is not iterable")}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=l(h,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Qt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Ht(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Ht(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Ht(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var te={k12:"Primary & Secondary"},ee=(Qt(Bt={},st.X.Auth,"auth.web"),Qt(Bt,st.X.Lite,"lite.web"),Bt),re={getClient:function(t){var e,r,n,o,i,a;return n=this,o=void 0,i=void 0,a=Xt().mark((function n(){var o,i,a,c,l,u;return Xt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=t.brazeConfig,i=t.geoLocation,a=t.version,c=o[v.getInstanceRegion(null==i?void 0:i.countryCode)],l=ee[t.productName],u=(0,Vt.getInstance)({baseUrl:c.url,apiKey:c.apiKey,productVersion:a,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(i||(i=Promise))((function(t,e){function r(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 n;e.done?t(e.value):(n=e.value,n instanceof i?n:new i((function(t){t(n)}))).then(r,c)}l((a=a.apply(n,o||[])).next())}))},hashedEmail:function(t){var e=t.trim().toLowerCase();return Wt().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=Jt(t,2)[1];return null!==e&&!("string"==typeof e&&!e.length)})).reduce((function(t,e){var r=Jt(e,2),n=r[0],o=r[1];return Object.assign(Object.assign({},t),Qt({},n,o===Object(o)?re.removeEmptyKeys(o):o))}),{})},getEventTopic:function(){return"Free Trial Request"},getCustomEventType:function(){return Vt.ProductFormEvent.ProductTrailRequested},getSchoolType:function(t){if(t){var e=t.toLowerCase();if(!["unknown","other"].includes(e))return te[e]||t}}},ne=["Teacher","Librarian","Curriculum Coordinator","Digital Technology Coordinator","IT","Head of Department","Head of Subject","Deputy Principal","Principal"],oe=["Teacher","Librarian","Head of department","Subject lead","Curriculum coordinator","School leadership","District leadership","Academic coach","Instructional technology specialist","Consortium leadership","IT"],ie={au:ne,nz:ne,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:oe};function ae(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ce(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ce(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ce(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var le="OTHER";function ue(t){var e=t.error,r=t.onChange,n=t.countryCode,o=ae(i().useState(""),2),a=o[0],c=o[1],l=ae(i().useState(""),2),u=l[0],s=l[1],f=function(t){return ie[t]||oe}(n),p=a===le;return i().createElement(i().Fragment,null,i().createElement("div",{className:"mb-2"},i().createElement("select",{id:t.id,name:t.id,className:"form-control form-control-lg ".concat(a.length?"text-dark":"text-secondary"," ").concat(!!e&&"is-invalid"),value:a,placeholder:"Role",onChange:function(t){c(t.target.value),s(""),r(t.target.value===le?"":t.target.value)}},i().createElement("option",{value:"",disabled:!0,className:"text-muted"},"What do you do?"),f.map((function(t,e){return i().createElement("option",{value:t,className:"text-dark",key:e},t)})),i().createElement("option",{value:le,className:"text-dark"},"Other")),!!e&&!p&&i().createElement("div",{className:"invalid-feedback"},e)),p&&i().createElement("div",{className:"mb-3"},i().createElement("input",{className:"form-control form-control-lg ".concat(!!e&&"is-invalid"),type:"text",value:u,placeholder:"What do you do?",autoFocus:!0,onChange:function(t){s(t.target.value),r(t.target.value)}}),!!e&&i().createElement("div",{className:"invalid-feedback"},e)))}function se(t){return se="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},se(t)}function fe(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function pe(t){var e,r,n,o,a,c,l,u,s,f=(u=i().useState({fullname:"",jobTitle:"",phone:""}),s=2,function(t){if(Array.isArray(t))return t}(u)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(u,s)||function(t,e){if(t){if("string"==typeof t)return fe(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?fe(t,e):void 0}}(u,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=f[0],d=f[1];function h(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"!==se(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==se(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===se(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 i().createElement("div",{className:"text-center"},i().createElement("h1",{className:"text-center h4"},"A little more about you"),i().createElement("p",null,"Please enter your details."),i().createElement("form",{onSubmit:function(e){e.preventDefault(),t.handleSubmitForm(p)}},i().createElement("div",{className:"form-group text-left"},i().createElement("label",{className:"d-block font-weight-bold mb-1",htmlFor:"fullname-input"},"Full name"),i().createElement(At.w,{value:p.fullname,onChange:function(e){e.preventDefault(),h("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(){h("fullname",""),t.removeErrorForKey("fullname"),t.removeErrorForKey("submission")},autoFocus:!0}),t.errors.fullname&&i().createElement("div",{className:"invalid-feedback d-block"},t.errors.fullname)),i().createElement("div",{className:"form-group text-left"},i().createElement("label",{className:"d-block font-weight-bold mb-1",htmlFor:"phone-input"},"Contact number"),i().createElement(At.w,{value:p.phone,onChange:function(e){e.preventDefault(),h("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(){h("phone",""),t.removeErrorForKey("phone"),t.removeErrorForKey("submission")}}),t.errors.phone&&i().createElement("div",{className:"invalid-feedback d-block"},t.errors.phone)),i().createElement("div",{className:"form-group text-left"},i().createElement("label",{className:"d-block font-weight-bold mb-1",htmlFor:"jobTitle-select"},"Job title"),i().createElement(ue,{id:"jobTitle-select",countryCode:v.getCountryCode(t.country),onChange:function(e){h("jobTitle",e),t.removeErrorForKey("jobTitle"),t.removeErrorForKey("submission")},error:null===(n=t.errors)||void 0===n?void 0:n.jobTitle})),!!(null===(o=t.errors)||void 0===o?void 0:o.submission)&&i().createElement("div",{className:"form-group invalid-feedback d-block"},t.errors.submission),i().createElement("div",{className:"form-group mb-1"},i().createElement(Ct.m,{className:"btn btn-dark btn-lg w-100",onClick:function(){return t.handleSubmitForm(p)},showSpinner:t.loading,disabled:t.loading||(a=p.fullname,c=p.jobTitle,l=p.phone,!(a.length&&c.length&&l.length&&!Object.keys(t.errors).length))},"Submit"))))}var de=r(74254);function he(t){return he="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},he(t)}function me(){me=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new j(o||[]);return n(a,"_invoke",{value:S(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function d(){}function h(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=h.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==he(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function k(t){if(t||""===t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}throw new TypeError(he(t)+" is not iterable")}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=l(h,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function ye(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ve(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ve(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ve(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var ge=255,be=/\$+[\w\s]?/,we=/^\+?\d{4,255}$/;function Se(t){if(!t)return{firstName:"",surname:""};var e=t.split(" ").filter((function(t){return t.length}));return{firstName:e.shift(),surname:e.join(" ")}}var Ee=r(99910),xe=r(28329);function Le(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 je(t){var e,r,n=(e=i().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,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return Le(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)?Le(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=n[0],a=n[1],c=i().useRef();function l(){var t;c.current&&(null===(t=c.current.children[o-1])||void 0===t||t.scrollIntoView({block:"center"}))}return{selectedIndex:o,onKeyDown:function(e){if("ArrowDown"===e.code){e.stopPropagation(),e.preventDefault();var r=o+1;return r>t.itemCount&&(r=1),a(r),void l()}if("ArrowUp"===e.code){e.stopPropagation(),e.preventDefault();var n=o-1;return n<=0&&(n=t.itemCount),a(n),void l()}if("Enter"===e.code&&o>0)return e.stopPropagation(),e.preventDefault(),void t.onSelected(o-1);a(0)},containerRef:c}}function ke(t){return ke="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},ke(t)}function Oe(){Oe=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new j(o||[]);return n(a,"_invoke",{value:S(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function d(){}function h(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=h.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==ke(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function k(t){if(t||""===t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}throw new TypeError(ke(t)+" is not iterable")}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=l(h,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var Ce={search:function(t,e,r,n,o){var i={longitude:e.longitude,latitude:e.latitude};e.query&&(i.query=e.query),ut.fetch({url:t.searchProspect,data:i,success:r,error:n,always:o})},create:function(t,e){return r=this,n=void 0,o=void 0,i=Oe().mark((function r(){return Oe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",ut.asyncFetch({url:t.createProspect,method:Z.k.POST,data:e}));case 1:case"end":return r.stop()}}),r)})),new(o||(o=Promise))((function(t,e){function a(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 r;e.done?t(e.value):(r=e.value,r instanceof o?r:new o((function(t){t(r)}))).then(a,c)}l((i=i.apply(r,n||[])).next())}));var r,n,o,i},getLookups:function(t,e){return ut.asyncFetch({url:t.prospectLookups(e)})}};const Ae={baseText:"KL3Q_",inputFocused:"I6wQy",input:"ChY5L",suggestionContainer:"Y78ea",noBottomBorder:"IeYUw",localitySuggestion:"P3aHR",suggestionItem:"magL7",suggestionLoading:"W7rH_",noSuggestion:"XXSnS",selected:"snnHR"};function Ne(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Pe(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)?Pe(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 Pe(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 Ue(t){var e=t.filteredSchoolsList,r=t.getSchoolName,n=t.onSchoolSuggestionClick,o=t.selectedIndex;return i().createElement(i().Fragment,null,e.map((function(t,e){return i().createElement(s.L,{className:"".concat(Ae.suggestionItem," ").concat(o-1===e?Ae.selected:""),key:t.id,onClick:function(){return n(t)}},r(t)," ",i().createElement("br",null),i().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 Ie(t){return i().createElement("div",{className:"info-link ".concat(Ae.suggestionItem," ").concat(Ae.noSuggestion," ").concat(t.selected?Ae.selected:""),onClick:t.handleNoSuggestion},"Can't find your school?")}function Te(t){var e,r,n=i().useRef(),o=Ne(i().useState(!0),2),a=o[0],c=o[1],u=Ne(i().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=Ne(i().useState(),2),d=p[0],h=p[1],m=(0,xe.N)(s,250),y=je({onSelected:function(t){if(d||t)if(t!==d.length){var e=d[t];e&&k(e)}else C()},itemCount:null!==(e=(null==d?void 0:d.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=a&&!w,E=!a&&!w&&!(null==d?void 0:d.length),x=(null==d?void 0:d.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),Ce.search(t.ajaxUrls,r,(function(t){return h(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:l.UserAction.Click,descriptor:l.SignUpDescriptors.CantFindSchool,workflowPhase:l.WorkflowPhase.Next})}i().useEffect((function(){w||(m.length?!w&&m.length>1&&m===s&&j(m):j())}),[m,w]);var A=x||S||E;return i().createElement("div",{className:"form-group position-relative"},i().createElement(At.w,{value:s,onChange:function(t){return L(t.currentTarget.value)},ref:n,className:"form-control form-control-lg ".concat(A?Ae.inputFocused:Ae.input),type:"text",autoComplete:"off",placeholder:"Select your school below",disabled:t.disabled,autoFocus:!0,onClickClear:function(){L(""),n.current.focus()},onKeyDown:g}),i().createElement("div",{className:"position-absolute w-100"},i().createElement("div",{className:"".concat(Ae.suggestionContainer," ").concat(A?"":"d-none"),ref:b},x?i().createElement(Ue,{filteredSchoolsList:d,onSchoolSuggestionClick:k,getSchoolName:O,selectedIndex:v}):S&&i().createElement("div",{className:"".concat(Ae.suggestionLoading," py-4 d-flex justify-content-center")},i().createElement(Ee.Spinner,{animation:"border"})),!S&&(null==d?void 0:d.length)<5&&i().createElement(Ie,{selected:v===d.length+1,handleNoSuggestion:C}))))}var _e=function t(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){if(e.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(e)){if((n=e.length)!=r.length)return!1;for(o=n;0!=o--;)if(!t(e[o],r[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if((n=(i=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;0!=o--;){var a=i[o];if(!t(e[a],r[a]))return!1}return!0}return e!=e&&r!=r};const Fe="__googleMapsScriptId";var Ge;!function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"}(Ge||(Ge={}));class De{constructor({apiKey:t,authReferrerPolicy:e,channel:r,client:n,id:o=Fe,language:i,libraries:a=[],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||Fe,this.language=i,this.libraries=a,this.mapIds=c,this.nonce=l,this.region=u,this.retries=s,this.url=f,this.version=p,De.instance){if(!_e(this.options,De.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(De.instance.options)}`);return De.instance}De.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?Ge.FAILURE:this.done?Ge.SUCCESS:this.loading?Ge.LOADING:Ge.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 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,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return 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){return new De({apiKey:t.apiKey,version:"weekly",libraries:t.libraries,retries:3})}function ze(t){var e={apiKey:t.apiKey,libraries:t.libraries||["places"]},r=Re(i().useState(!1),2),n=r[0],o=r[1],a=Re(i().useState(Ke(e)),2),c=a[0],l=a[1];function u(t,r){c?c.loadCallback((function(e){if(e)return o(!1),void(r&&r(e));o(!0),t&&t()})):l(Ke(e))}return i().useEffect((function(){u()}),[]),{loader:c,scriptLoaded:n,onGoogleApiReady:u}}function qe(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return Be(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)?Be(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function Be(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 Ye=function(t){var e,r,n,o,i,a=t.formatted_address,c=qe(t.address_components);try{for(c.s();!(i=c.n()).done;){var l,u=i.value,s=qe(u.types);try{for(s.s();!(l=s.n()).done;){var f=l.value;"locality"===f&&(e=u.short_name),"administrative_area_level_1"===f&&(r=u.short_name),"postal_code"===f&&(o=u.short_name),"country"===f&&(n=u.short_name)}}catch(t){s.e(t)}finally{s.f()}}}catch(t){c.e(t)}finally{c.f()}return{locality:a,country:n,postalCode:o,city:e,province:r}};function $e(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var We={1:"geocoderPermissionDenied",2:"geocoderUnavailable",3:"geocoderTimeout"};function Ve(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function He(t){var e,r,n=ze({apiKey:t.googleApiKey}).scriptLoaded,o=(e=i().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,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return Ve(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ve(t,e):void 0}}(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=o[0],c=o[1];return i().useEffect((function(){n&&c(new google.maps.places.AutocompleteService)}),[n]),a}function Je(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Ze=r(45157);function Xe(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 Qe="us",tr="country:placeholder:text";function er(t){var e,r,n=t.apiKey,o=t.geoLocation,c=t.makeRequest,l=void 0===c||c,u=t.template,s=void 0===u?"E.g. [placeholder]":u,f=t.templateKey,p=void 0===f?"[placeholder]":f,d=He({googleApiKey:n}),h=i().useState((function(){return function(t){var e=v.getLocalizedLocalityPlaceholderText(null==t?void 0:t.countryCode);return e||(a.SG.cacheGet("".concat(tr,":").concat(null==t?void 0:t.countryCode))||void 0)}(o)})),m=(r=2,function(t){if(Array.isArray(t))return t}(e=h)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return Xe(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)?Xe(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],g=m[1];function b(t,e){a.SG.cacheSet("".concat(tr,":").concat(e),t,86400),g(t)}return i().useEffect((function(){if(!y&&d&&l){var t=(null==o?void 0:o.countryCode)||Qe,e={input:String.fromCharCode(96+Ze.Y.getRandomInt(26)),types:["(cities)"],region:t,componentRestrictions:{country:t}};d.getPlacePredictions(e,(function(e,r){return function(t,e,r){if(e===google.maps.places.PlacesServiceStatus.OK&&t){var n=t[Ze.Y.getRandomInt(t.length)].description;b(s.replace(p,n),r)}else b(v.getLocalizedLocalityPlaceholderText(Qe),r)}(e,r,t)}))}}),[y,d,o,l]),y}function rr(){return i().createElement("svg",{viewBox:"0 0 24 24"},i().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"}))}function nr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return or(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?or(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function or(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ir(t){var e=t.predictions,r=t.getPlaceInfo,n=t.selectedIndex;return i().createElement(i().Fragment,null,e.map((function(t,e){return i().createElement(s.L,{className:"".concat(Ae.suggestionItem," ").concat(n-1===e?Ae.selected:""),key:t.place_id,onClick:function(){return r(t)}},t.description)})))}function ar(t){var e,r,n,o,a,c,u=i().useRef(),f=nr(i().useState((null===(e=t.data)||void 0===e?void 0:e.schoolLocality)||""),2),p=f[0],d=f[1],h=nr(i().useState(!1),2),m=h[0],y=h[1],v=er({apiKey:t.googleMapsApiKey,geoLocation:t.geoLocation}),g=function(t){var e,r,n=t.search,o=t.makePredicition,a=t.geoLocation,c=He({googleApiKey:t.apiKey}),l=(0,xe.N)(n,300),u=(e=i().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,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(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.")}()),s=u[0],f=u[1];function p(t,e){e===google.maps.places.PlacesServiceStatus.OK&&t?f(t):f(void 0)}return i().useEffect((function(){if(c)if(0!==(null==l?void 0:l.length)&&o){var t=(null==a?void 0:a.countryCode)||"us";c.getPlacePredictions({input:l,componentRestrictions:{country:t},region:t,types:["locality","sublocality","postal_code"]},p)}else f(void 0)}),[l,o,c]),{localityPredicitions:s,getPlaceInfo:function(t,e,r){new google.maps.places.PlacesService(e.current).getDetails({placeId:t.place_id,fields:["geometry","address_components","formatted_address"],region:a.countryCode},(function(t,e){if(e===google.maps.places.PlacesServiceStatus.OK){var n=t.geometry.location.lng(),o=t.geometry.location.lat(),i=Ye(t),a=i.locality,c=i.country,l=i.postalCode,u=i.city,s=i.province;r({longitude:n,latitude:o,locality:a,country:c,city:u,postalCode:l,province:s})}}))}}}({search:p,makePredicition:m,geoLocation:t.geoLocation,apiKey:t.googleMapsApiKey}),b=g.localityPredicitions,w=g.getPlaceInfo,S=function(t){var e,r,n=(e=i().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,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return $e(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$e(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=n[0],a=n[1],c=ze(t).onGoogleApiReady;function l(t){var e=t.coords,r=e.latitude,n=e.longitude,o=new google.maps.LatLng(r,n);(new google.maps.Geocoder).geocode({location:o},(function(t,e){if(e===google.maps.GeocoderStatus.OK){var o=t.find((function(t){return t.types.includes("locality")||t.types.includes("administrative_area_level_2")})),i=Ye(o);a(Object.assign(Object.assign({},i),{longitude:n,latitude:r}))}}))}function u(e){var r=We[e.code];r||(r="geocoderUnknown"),t.onPositionError("We are unable to access your location. Please try again later.")}return{placeDetails:o,onClickGetCurrentLocation:function(){c((function(){window.navigator.geolocation.getCurrentPosition(l,u)}))}}}({apiKey:t.googleMapsApiKey,onPositionError:function(t){y(!0),P(t)}}),E=S.placeDetails,x=S.onClickGetCurrentLocation,L=window.navigator.geolocation?1:0,j=je({onSelected:function(t){if(b)if(t!==b.length){var e=b[t];e&&T(e)}else _()},itemCount:null!==(r=(null==b?void 0:b.length)+L)&&void 0!==r?r:0}),k=j.selectedIndex,O=j.onKeyDown,C=j.containerRef,A=nr(i().useState(),2),N=A[0],P=A[1];function U(e){var r,n,o;N&&P(void 0),m||y(!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(),d(e)}function I(e){var r=e.longitude,n=e.latitude,o=e.locality,i=e.country,a=e.city,c=e.province;r&&t.setDataProperty("longitude",r),n&&t.setDataProperty("latitude",n),i&&t.setDataProperty("country",i),a&&t.setDataProperty("city",a),c&&t.setDataProperty("province",c),o&&function(e){t.setDataProperty("schoolLocality",e),d(e)}(o)}function T(t){m&&y(!1),w(t,u,I)}function _(e){null==e||e.preventDefault(),y(!1),x(),t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.UseMyLocation})}i().useEffect((function(){I(E)}),[E]);var F,G=(null==b?void 0:b.length)&&!(null===(o=null===(n=t.data)||void 0===n?void 0:n.schoolLocality)||void 0===o?void 0:o.length),D=window.navigator.geolocation&&!(null===(c=null===(a=t.data)||void 0===a?void 0:a.schoolLocality)||void 0===c?void 0:c.length),R=t.labelClassName||"d-block text-center mb-3 font-weight-normal ".concat(Ae.baseText);return i().createElement("div",{className:"form-group position-relative"},i().createElement("label",{className:R,htmlFor:"locality-input"},"Postcode or suburb:"),i().createElement(At.w,{type:"text",value:p,onChange:function(t){return U(t.currentTarget.value)},id:"locality-input",className:(F="form-control form-control-lg",G?"".concat(F," ").concat(Ae.inputFocused):"".concat(F," ").concat(Ae.input)),ref:u,autoComplete:"off",placeholder:v||"Loading...",disabled:t.disabled||!v,autoFocus:null==t?void 0:t.autoFocus,onClickClear:function(){U(""),u.current.focus()},onKeyDown:O}),i().createElement("div",{className:"position-absolute w-100"},!!G&&i().createElement("div",{className:"".concat(Ae.suggestionContainer," ").concat(Ae.localitySuggestion),ref:C},i().createElement(ir,{predictions:b,getPlaceInfo:T,selectedIndex:k}),window.navigator.geolocation&&i().createElement(s.L,{className:"".concat(Ae.suggestionItem," px-1 ").concat(k-1===b.length?Ae.selected:""),onClick:_},i().createElement("div",{className:"btn btn-link info-link btn-with-icon bg-transparent py-0 pr-1"},i().createElement(rr,null),"Use my current location"))),D&&!G&&i().createElement("div",{className:"d-flex"},i().createElement("button",{onClick:_,className:"btn btn-link info-link bg-white btn-with-icon"},i().createElement(rr,null),"Use my current location")),!!N&&i().createElement("div",{className:"text-danger p-2"},N)))}var cr,lr=r(12238);!function(t){t.FourteenDays="trial_14_v1",t.Freemium="freemium_v1"}(cr||(cr={}));var ur=function(t){return v.isCountryCodeUS(t)||v.isCountryCodeUK(t)?cr.Freemium:cr.FourteenDays};function sr(t){return sr="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},sr(t)}function fr(){fr=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new j(o||[]);return n(a,"_invoke",{value:S(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function d(){}function h(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=h.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==sr(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function k(t){if(t||""===t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}throw new TypeError(sr(t)+" is not iterable")}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=l(h,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var pr=function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{l(n.next(t))}catch(t){i(t)}}function c(t){try{l(n.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}l((n=n.apply(t,e||[])).next())}))};function dr(t){return dr="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},dr(t)}function hr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return mr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mr(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}const yr="R8ZPi",vr="SNEmW";function gr(t){return i().createElement(s.L,{className:"\n d-flex\n flex-column\n justify-content-between\n h-100\n p-3\n border\n rounded\n rounded-lg\n mx-auto\n ".concat(yr," ").concat(t.selected?vr:""),onClick:function(){return t.onClick(t.type)}},i().createElement("img",{src:t.imageSrc,className:"rounded-top mx-auto pb-2"}),i().createElement("div",{className:"py-2"},i().createElement("span",{className:"h4"},t.buttonText)))}var br;!function(t){t.Published="Published",t.Draft="Draft"}(br||(br={}));var wr=["Primary","Secondary","K12","Special","TAFE","University"],Sr=["Elementary","Middle School","High School","College","Other"],Er={au:wr,nz:wr,uk:["Primary","Secondary","Primary & Secondary","Special","Sixth Form College","FE College","University","Other"],us:Sr};function xr(t){return xr="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},xr(t)}function Lr(){Lr=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new j(o||[]);return n(a,"_invoke",{value:S(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function d(){}function h(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=h.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==xr(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function k(t){if(t||""===t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}throw new TypeError(xr(t)+" is not iterable")}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=l(h,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function jr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return kr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?kr(t,e):void 0}}(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 kr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Or(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Cr(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)?Cr(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 Cr(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 Ar(t,e,r){return"".concat(t.padStart(4,"0"),"-").concat(e.padStart(2,"0"),"-").concat(r.padStart(2,"0"))}function Nr(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."}}function Pr(t){return Pr="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},Pr(t)}function Ur(){Ur=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new j(o||[]);return n(a,"_invoke",{value:S(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function d(){}function h(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=h.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Pr(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function k(t){if(t||""===t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}throw new TypeError(Pr(t)+" is not iterable")}return d.prototype=h,n(g,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:d,configurable:!0}),d.displayName=l(h,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Ir(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Tr={"select-type":function(t){function e(e){t.logUserAction({userType:e},{actionType:l.UserAction.Click,workflowPhase:l.WorkflowPhase.Next,descriptor:e===Tt.Staff?l.SignUpDescriptors.Educator:l.SignUpDescriptors.Student}),e!==Tt.Staff?t.nextStep({step:"enter-age",userType:e}):t.nextStep({step:"enter-email",userType:e})}return i().createElement("div",{className:"text-center"},i().createElement("h1",{className:"h4"},"Access educational videos at your fingertips"),i().createElement("p",null,"Let's get you set up so you can access ClickView."),i().createElement("div",{className:"row"},i().createElement("div",{className:"col-lg-6 mb-3"},i().createElement(gr,{type:Tt.Staff,buttonText:"I'm an educator",imageSrc:t.imageUrls.educator,onClick:e,selected:t.userType===Tt.Staff})),i().createElement("div",{className:"col-lg-6 mb-3"},i().createElement(gr,{type:Tt.Learner,buttonText:"I'm a student",imageSrc:t.imageUrls.student,onClick:e,selected:t.userType===Tt.Learner}))))},"enter-email":function(t){var e,r,n=Dt(i().useState(!1),2),o=n[0],a=n[1],c=Dt(i().useState((null==t?void 0:t.email)||""),2),u=c[0],s=c[1],f=Dt(i().useState(),2),p=f[0],d=f[1],h=(e=t.geoLocation,r=w.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=Gt().mark((function e(){var r;return Gt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u.length?Kt.test(u)||(d("Please use your school email address."),0):(d("Please enter your school email address."),0)){e.next=2;break}return e.abrupt("return");case 2:return a(!0),d(""),e.prev=4,e.next=7,ft(t.ajaxUrls,{email:u});case 7:r=e.sent,e.next=14;break;case 10:return e.prev=10,e.t0=e.catch(4),d("Something went wrong! Please try again later."),e.abrupt("return");case 14:if(a(!1),r.status!==D.InvalidEmail){e.next=18;break}return d("Please use your school email address."),e.abrupt("return");case 18:if(t.logUserAction({},{actionType:l.UserAction.Click,workflowPhase:l.WorkflowPhase.Next,descriptor:l.SignUpDescriptors.EnterEmail}),!Yt.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,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function c(t){try{l(o.throw(t))}catch(t){i(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(t){t(r)}))).then(a,c)}l((o=o.apply(e,r||[])).next())}))}()}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===Tt.Staff;return i().createElement(i().Fragment,null,i().createElement("div",{className:"text-center"},i().createElement("h1",{className:"h4"},"Let's set up your account"),i().createElement("p",null,"Enter your school email address")),i().createElement("form",{onSubmit:m,noValidate:!0},i().createElement("div",{className:"form-group mb-3"},i().createElement(At.w,{value:u,onChange:function(t){t.preventDefault(),s(t.target.value),d("")},name:"email-input",id:"email-input",type:"email",className:"form-control form-control-lg ".concat(p?"is-invalid":""),placeholder:qt(t.geoLocation),autoComplete:"false",autoCorrect:"false",autoFocus:!0,onClickClear:function(){return s("")}}),p&&i().createElement(i().Fragment,null,i().createElement("div",{className:"invalid-feedback d-block"},p),i().createElement("small",null,"Having an issue with your email?",i().createElement("a",{href:h,className:"info-link pl-1",target:"_blank",onClick:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.ContactUs})}},"Contact our team")))),i().createElement(Ct.m,{showSpinner:o,className:"btn btn-dark btn-lg mb-3 w-100",disabled:o,onClick:m},"Continue")),v&&i().createElement("div",{className:"mt-n3"},i().createElement("div",{className:"my-3 border-bottom position-relative ".concat("bGwO5")}),Nt.map((function(t,e){return i().createElement(It,{onClick:y,idp:t,key:e})}))),i().createElement("div",{className:"text-center"},i().createElement(O,{link:w.getLoginLink(),onClick:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.SignIn})}})))},"find-school":function(t){var e,r,n=t.email,o=t.userType,a=hr(i().useState({schoolLocality:t.schoolLocality,country:t.country,longitude:t.longitude,latitude:t.latitude,city:t.city,province:t.province}),2),c=a[0],u=a[1],s=hr(i().useState(),2),f=s[0],p=s[1],d=hr(i().useState(),2),h=d[0],m=d[1],y=hr(i().useState(!1),2),v=y[0],g=y[1],b=hr(i().useState(!1),2),w=b[0],S=b[1],E=hr(i().useState(!1),2),x=E[0],L=E[1],j=function(t){var e=t.loading,r=t.canSubmitForm,n=t.setSubmissionError,o=t.prospectStatus,i=t.userType,a=t.logStepEvent,c=t.logUserAction,u=t.nextStep,s=t.data,f=t.productName,p=t.ajaxUrls,d=t.complete,h=t.setLoadingState,m=t.email,y=t.pageAppLinkString,v=t.setProperty;function g(){return pr(this,void 0,void 0,fr().mark((function t(){return fr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,yt(p,{prospectId:s.prospectId,email:m});case 3:c({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.AutoJoin}),d(Object.assign({completionStep:"trial-status",trialCreated:!0,trialStatus:G.Available},s)),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 pr(this,void 0,void 0,fr().mark((function e(){var r,n;return fr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=void 0,!(null==s?void 0:s.prospectId)||o!==G.NotRequired){e.next=6;break}return e.next=4,Ce.getLookups(p,s.prospectId);case 4:n=e.sent,r=null===(t=n.find((function(t){return t.type===lr.C.MasterId})))||void 0===t?void 0:t.externalId;case 6:d(Object.assign({completionStep:"trial-status",trialStatus:o,trialCreated:!1,customerId:r},s)),a();case 8:case"end":return e.stop()}}),e)})))}function w(){var t;return pr(this,void 0,void 0,fr().mark((function e(){var r;return fr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h(!0),e.prev=1,e.next=4,dt(p,{userType:i,email:m,prospectId:null==s?void 0:s.prospectId,appLink:y,accessPolicy:ur(s.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:l.UserAction.Click,descriptor:l.SignUpDescriptors.AutoJoin}),v("userId",r.id),d(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},s)),a();case 16:case"end":return e.stop()}}),e,null,[[1,7]])})))}return function(){return pr(this,void 0,void 0,fr().mark((function t(){return fr().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(i!==Tt.Staff){t.next=14;break}if(o!==G.Unsupported){t.next=8;break}return t.abrupt("return",(u(Object.assign({step:"add-to-braze",trialStatus:o},s)),void a()));case 8:if(o!==G.UserJoinApprovalRequired){t.next=10;break}return t.abrupt("return",(u(Object.assign({step:"request-access"},s)),void a()));case 10:if(o!==G.UserAutoJoinAllowed||f!==st.X.Lite){t.next=14;break}return t.next=13,g();case 13:case 17:case 20:return t.abrupt("return",t.sent);case 14:if(o===G.Active||o===G.Available||o===G.UserAutoJoinAllowed&&f===st.X.Auth){t.next=18;break}return t.next=17,b();case 18:return t.next=20,w();case 21:case"end":return t.stop()}}),t)})))}}(Object.assign(Object.assign({},t),{prospectStatus:f,loading:v,data:c,canSubmitForm:k,setSubmissionError:m,logStepEvent:function(){var e={actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.FindSchool,workflowPhase:l.WorkflowPhase.Next};t.logUserAction(c||{},e)},setLoadingState:function(t){S(t),L(t),g(t)},setProperty:O}));function k(){if(!c||!n||!o)return!1;var t=c.prospectId;return!!(n&&o&&t)}function O(e,r){"prospectId"===e&&r&&(g(!0),pt(t.ajaxUrls,{prospectId:r.toString(),email:t.email},(function(t){p(t.status)}),(function(){console.log("error")}),(function(){g(!1)}))),u((function(t){return Object.assign(Object.assign({},t),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==dr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==dr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===dr(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 C(){O("prospectId",void 0),O("schoolName",""),O("schoolPostCode",void 0),m(void 0)}return i().createElement(i().Fragment,null,i().createElement("div",{className:"text-center"},i().createElement("h1",{className:"h4"},"Next, let's find your school"),i().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")),i().createElement(ar,{data:c,setDataProperty:O,clearStepGroupData:function(){O("schoolLocality",void 0),u((function(t){return Object.assign(Object.assign({},t),{longitude:undefined,latitude:undefined})})),O("city",void 0),O("province",void 0),O("country",void 0),C(),m(void 0)},disabled:w,geoLocation:t.geoLocation,labelClassName:"d-none",logUserAction:t.logUserAction,googleMapsApiKey:t.googleMapsApiKey,autoFocus:!0}),!!(c&&c.schoolLocality&&c.longitude&&c.latitude)&&i().createElement(Te,{data:c,setDataProperty:O,clearStepItemData:C,nextStep:t.nextStep,currentStepId:t.currentStepId,disabled:x,logUserAction:t.logUserAction,ajaxUrls:t.ajaxUrls}),h&&i().createElement("p",{className:"text-danger mb-2"},h),k()&&i().createElement(Ct.m,{className:"btn btn-dark btn-lg w-100",onClick:j,showSpinner:w||x||v,disabled:w||x||v},"Get started"))},"cant-find-school":function(t){var e,r,n,o=jr(i().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),a=o[0],c=o[1],u=jr(i().useState(),2),s=u[0],f=u[1],p=jr(i().useState(!1),2),d=p[0],h=p[1],m=(r=a.country||(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode),n=v.getCountryCode(r),Er[n]||Sr);function y(){var t=a.schoolName,e=a.schoolType,r=a.country;return!!(t&&e&&r)}function g(t,e){c((function(r){return Object.assign(Object.assign({},r),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==xr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==xr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===xr(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 i().createElement(i().Fragment,null,i().createElement("div",{className:"text-center"},i().createElement("h1",{className:"h4"},"Tell us more about yourself"),i().createElement("p",null,"Please enter your school details.")),i().createElement("div",{className:"form-group"},i().createElement("label",{className:"d-block",htmlFor:"school-name-input"},"Name of school"),i().createElement("input",{type:"text",value:(null==a?void 0:a.schoolName)||"",onChange:function(t){g("schoolName",t.target.value)},id:"school-name-input",className:"form-control form-control-lg",autoComplete:"off",placeholder:"Enter name of school",autoFocus:!0})),i().createElement("div",{className:"form-group"},i().createElement("label",{className:"d-block",htmlFor:"school-type-select"},"Type of school"),i().createElement("select",{id:"school-type-select",className:"form-control form-control-lg ".concat(a.schoolType?"":"text-muted"),autoComplete:"off",value:a.schoolType||"none",onChange:function(t){g("schoolType",t.target.value)}},i().createElement("option",{value:"none",className:"text-muted",disabled:!0},"Select type of school"),m.map((function(t){return i().createElement("option",{value:t,key:t,className:"text-dark"},t)})))),i().createElement(ar,{data:a,setDataProperty:g,clearStepGroupData:function(){g("schoolLocality",void 0),c((function(t){return Object.assign(Object.assign({},t),{longitude:undefined,latitude:undefined})})),g("city",void 0),g("province",void 0),g("country",void 0),f("")},disabled:!1,labelClassName:"d-block",geoLocation:t.geoLocation,logUserAction:t.logUserAction,googleMapsApiKey:t.googleMapsApiKey,autoFocus:!1}),s&&i().createElement("div",{className:"text-danger mb-3"},s),y()&&i().createElement(Ct.m,{className:"btn btn-dark btn-lg w-100",onClick:function(e){var r,n,o,i,c;return n=this,o=void 0,i=void 0,c=Lr().mark((function n(){var o,i,c;return Lr().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.preventDefault(),y()){n.next=3;break}return n.abrupt("return");case 3:return t.logUserAction(a,{actionType:l.UserAction.Click,workflowPhase:l.WorkflowPhase.Next,descriptor:l.SignUpDescriptors.CantFindSchool}),h(!0),n.prev=5,n.next=8,Ce.create(t.ajaxUrls,{name:a.schoolName,status:br.Draft,countryCode:a.country,prospectType:a.schoolType,city:a.city,postCode:a.schoolPostCode,province:a.province});case 8:if((o=n.sent).id){n.next=13;break}return h(!1),f("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),f("Error. Something went wrong."),n.abrupt("return");case 20:return n.prev=20,n.next=23,dt(t.ajaxUrls,{userType:t.userType,email:t.email,prospectId:o.id,appLink:t.pageAppLinkString,accessPolicy:ur(a.country)});case 23:i=n.sent,t.complete({completionStep:"trial-status",email:t.email,userId:i.id,prospectId:o.id,schoolName:a.schoolName,schoolLocality:a.schoolLocality,country:a.country,schoolType:a.schoolType,city:a.city,schoolPostCode:a.schoolPostCode,latitude:a.latitude,longitude:a.longitude,province:a.province,trialStatus:G.Available,trialCreated:!0,customerId:null===(r=i.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),f("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"},a),{prospectId:o.id,trialStatus:G.Unavailable})),n.abrupt("return");case 37:case"end":return n.stop()}}),n,null,[[5,15],[20,27]])})),new(i||(i=Promise))((function(t,e){function r(t){try{l(c.next(t))}catch(t){e(t)}}function a(t){try{l(c.throw(t))}catch(t){e(t)}}function l(e){var n;e.done?t(e.value):(n=e.value,n instanceof i?n:new i((function(t){t(n)}))).then(r,a)}l((c=c.apply(n,o||[])).next())}))},showSpinner:d,disabled:d},"Get started"))},completed:function(t){var e=Ot[t.completionStep];return i().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto px-2"},i().createElement(e,Object.assign({},t)))},"add-to-braze":function(t){var e,r=ye(i().useState(!1),2),n=r[0],o=r[1],a=ye(i().useState({}),2),c=a[0],l=a[1];function u(e){var r=Se(e.fullname),n=r.firstName,o=r.surname,i={prospect_id:null==t?void 0:t.prospectId,email:null==t?void 0:t.email,organisation_sub_type:re.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:re.getEventTopic()};return re.removeEmptyKeys(i)}function s(){t.complete({completionStep:"added-to-braze",trialCreated:!1,trialStatus:null})}return i().useEffect((function(){t.userType===Tt.Learner&&t.complete({completionStep:"trial-status",trialCreated:!1,trialStatus:G.Unsupported})}),[]),i().createElement(pe,{errors:c,loading:n,geoLocation:t.geoLocation,country:t.country||(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode),logUserAction:t.logUserAction,handleSubmitForm:function(e){var r,i;(function(t){var e=t.fullname,r=t.jobTitle,n=t.phone,o=Se(e),i=o.firstName,a=o.surname,c={};return i&&a||(c.fullname="Please enter your full name."),(be.test(i)||be.test(a))&&(c.fullname="Please enter your full name."),e.length>ge&&(c.fullname="Full name cannot exceed max length of ".concat(ge," characters.")),(null==r?void 0:r.length)||(c.jobTitle="Please enter your job title."),be.test(r)&&(c.jobTitle="Please enter a valid job title."),r.length>ge&&(c.jobTitle="Job Title cannot exceed max length of ".concat(ge," characters.")),(null==n?void 0:n.length)||(c.phone="Please enter your phone number."),!be.test(n)&&we.test(n)||(c.phone="Please enter a valid phone number."),l(c),!Object.keys(c).length})(e)&&((null===(r=e.jobTitle)||void 0===r?void 0:r.toLowerCase().includes("student"))||(null===(i=e.jobTitle)||void 0===i?void 0:i.toLowerCase().includes("parent"))?s():function(e){var r,i,a,f;r=this,i=void 0,a=void 0,f=me().mark((function r(){var i,a,f,p,d,h;return me().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!n){r.next=2;break}return r.abrupt("return");case 2:if(t.userType!==Tt.Learner){r.next=5;break}return l(Object.assign(Object.assign({},c),{submission:"Something went wrong! Please try again later."})),r.abrupt("return");case 5:return t.logUserAction({},{actionType:de.Vw.Click,workflowPhase:de.eu.Next,descriptor:de.Yu.AddToBraze}),o(!0),i=u(e),r.next=10,re.getClient({brazeConfig:t.brazeConfig,geoLocation:t.geoLocation,productName:t.productName,version:t.version});case 10:a=r.sent,f=Se(e.fullname),p=f.firstName,d=f.surname,h={prospect_id:null==t?void 0:t.prospectId,organisation_sub_type:re.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},h=re.removeEmptyKeys(h);try{a.setUser(re.hashedEmail(null==t?void 0:t.email)),a.setUserFirstName(p),a.setUserLastName(d),a.setUserPhone(e.phone),a.setUserEmail(null==t?void 0:t.email),a.openSession(),a.bulkSetCustomUserAttributes(h),a.logEvent({type:re.getCustomEventType(),data:i}),a.sendData((function(t){l(t?{}:Object.assign(Object.assign({},c),{submission:"Something went wrong! Please try again later."})),o(!1)}))}catch(t){l(Object.assign(Object.assign({},c),{submission:"Something went wrong! Please try again later."}))}Object.keys(c).length||s();case 16:case"end":return r.stop()}}),r)})),new(a||(a=Promise))((function(t,e){function n(t){try{c(f.next(t))}catch(t){e(t)}}function o(t){try{c(f.throw(t))}catch(t){e(t)}}function c(e){var r;e.done?t(e.value):(r=e.value,r instanceof a?r:new a((function(t){t(r)}))).then(n,o)}c((f=f.apply(r,i||[])).next())}))}(e))},removeErrorForKey:function(t){if(Object.keys(c).length&&c[t]){var e=Object.assign({},c);delete e[t],l(e)}}})},"enter-age":function(t){var e=Or(i().useState(""),2),r=e[0],n=e[1],o=Or(i().useState(""),2),a=o[0],c=o[1],l=Or(i().useState(""),2),u=l[0],s=l[1],f=Or(i().useState(null),2),p=f[0],d=f[1];var h=(new Date).getFullYear(),m="mx-2 d-inline-block text-left",y="form-control form-control-lg ".concat(p?"is-invalid":""),g="order-0",b="order-3",w=v.isCountryCodeUS(t.geoLocation.countryCode);return w&&(g="order-3",b="order-0"),i().createElement("form",{className:"text-center",onSubmit:function(e){if(e.preventDefault(),r&&a&&u?function(t,e,r){var n=new Date(Ar(t,e,r));return!isNaN(+n)}(u,a,r)?+u>h?(d("Please enter a date in the past"),0):!(+u<h-120&&(d("Please enter a realistic date of birth"),1)):(d("Please enter a valid date"),0):(d("Please enter your date of birth"),0)){var n=new Date(Ar(u,a,r)),o=h-13,i=new Date;i.setFullYear(o),n>i?t.complete({completionStep:"young-student",trialCreated:!1,trialStatus:null}):t.nextStep({step:"enter-email",userType:t.userType})}},noValidate:!0},i().createElement("h1",{className:"h4"},"Tell us a little about yourself"),i().createElement("p",null,"Please enter your date of birth"),i().createElement("div",{className:"my-4"},i().createElement("div",{className:"d-flex justify-content-center"},i().createElement("div",{className:"".concat(m," ").concat(g)},i().createElement("label",{className:"mb-0",htmlFor:"day"},"Day"),i().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),d(null)},autoFocus:!w,tabIndex:w?2:1})),i().createElement("span",{className:"h1 font-weight-normal mt-3 mb-0 order-1 ".concat(p?"text-danger":"")},"/"),i().createElement("div",{className:"".concat(m," ").concat(b)},i().createElement("label",{className:"mb-0",htmlFor:"month"},"Month"),i().createElement("input",{id:"month",type:"number",className:"".concat(y," ").concat("zLcQr"),min:"1",max:"12",placeholder:"MM",value:a,onChange:function(t){c(t.target.value),d(null)},autoFocus:w,tabIndex:w?1:2})),i().createElement("span",{className:"h1 font-weight-normal mt-3 mb-0 order-4 ".concat(p?"text-danger":"")},"/"),i().createElement("div",{className:"".concat(m," order-5")},i().createElement("label",{className:"mb-0",htmlFor:"year"},"Year"),i().createElement("input",{id:"year",type:"number",className:"".concat(y," ").concat("XiXPP"),min:h-120,max:h,placeholder:"YYYY",value:u,onChange:function(t){s(t.target.value),d(null)},tabIndex:3}))),!!p&&i().createElement("div",{className:"invalid-feedback d-block"},p)),i().createElement("button",{type:"submit",className:"btn btn-lg btn-dark w-100"},"Continue"))},"request-access":function(t){var e,r,n=(e=i().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,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return Ir(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ir(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=n[0],a=n[1];return i().createElement(i().Fragment,null,i().createElement(H,{trialStatus:G.UserJoinApprovalRequired,imageUrls:t.imageUrls}),i().createElement(Y,{className:"mb-3"},i().createElement(B,null,t.schoolName,i().createElement("br",null),"already has ClickView 🎉")),i().createElement("button",{className:"btn btn-lg btn-dark w-100 mb-3",onClick:function(){var e,r,n,o,i;return r=this,n=void 0,o=void 0,i=Ur().mark((function r(){var n,o;return Ur().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,Ce.getLookups(t.ajaxUrls,t.prospectId);case 3:if(n=r.sent,o=null===(e=n.find((function(t){return t.type===lr.C.MasterId})))||void 0===e?void 0:e.externalId){r.next=8;break}return a("Something went wrong."),r.abrupt("return");case 8:return r.next=10,mt(t.ajaxUrls,{customerId:o,email:t.email});case 10:t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.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),a(Nr(r.t0));case 17:case"end":return r.stop()}}),r,null,[[0,14]])})),new(o||(o=Promise))((function(t,e){function a(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 r;e.done?t(e.value):(r=e.value,r instanceof o?r:new o((function(t){t(r)}))).then(a,c)}l((i=i.apply(r,n||[])).next())}))}},"Request access"),o&&i().createElement("p",{className:"text-danger text-center mb-2"},o),i().createElement($,{className:"text-center"},"Need Help? ",i().createElement("a",{href:w.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link",target:"_blank"},"Contact our Help Centre.")))}};function _r(t){var e=t.state,r=t.geoLocation,n=t.layoutMapping,o=t.hasPreviousStep,a=t.googleMapsApiKey,c=t.pageAppLinkString,l=t.back,u=t.nextStep,s=t.complete,f=t.logUserAction,p=t.imageUrls,d=t.ajaxUrls,h=t.brazeConfig,m=t.version,y=t.productName,v=Tr[e.currentStepId],g=Object.assign(Object.assign({},e),{geoLocation:r,googleMapsApiKey:a,pageAppLinkString:c,back:l,nextStep:u,complete:s,logUserAction:f,imageUrls:p,ajaxUrls:d,brazeConfig:h,version:m,productName:y}),b=null==n?void 0:n[e.currentStepId];return b?i().createElement(b,{geoLocation:t.geoLocation,currentStep:e.currentStepId,previousStep:l,closeApp:t.close,logUserAction:f,hasPreviousStep:o,imageUrls:t.imageUrls},i().createElement(v,Object.assign({},g))):i().createElement(v,Object.assign({},g))}var Fr=r(17331);function Gr(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 Dr(t){return Dr="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},Dr(t)}function Rr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||Mr(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mr(t,e){if(t){if("string"==typeof t)return Kr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Kr(t,e):void 0}}function Kr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function zr(t,e){var r,n,o=Object.assign(Object.assign({},t),{previousStepIds:[].concat((n=t.previousStepIds,function(t){if(Array.isArray(t))return Kr(t)}(n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||Mr(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 i=Object.assign({},e);return delete i.type,delete i.step,r=i,i=Object.entries(r).filter((function(t){return null!==Rr(t,2)[1]})).reduce((function(t,e){var r=Rr(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"!==Dr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Dr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Dr(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),i)}}function qr(t,e){switch(e.type){case"nextStep":return zr(t,e);case"back":return function(t){var e,r=function(t){if(Array.isArray(t))return Gr(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 Gr(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)?Gr(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=r.pop();return Object.assign(Object.assign({},t),{previousStepIds:r,currentStepId:n})}(t)}}function Br(t){return Br="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Br(t)}function Yr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return $r(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$r(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Wr=function(t){var e=t.location,r=t.initialValues,n=t.onStepUpdate,o=t.externalLogUserAction,a=re.removeEmptyKeys(r),c=Object.assign({currentStepId:"select-type",previousStepIds:[]},a),l=Yr(i().useReducer(qr,c),2),u=l[0],s=l[1];return i().useEffect((function(){null==n||n(u)}),[u.currentStepId]),{state:u,back:function(){s({type:"back"})},nextStep:function(t){s(Object.assign({type:"nextStep"},t))},complete:function(t){s(Object.assign({type:"nextStep",step:"completed"},t))},hasPreviousStep:!!u.previousStepIds.length,logUserAction:function(t,r){var n=Object.assign(Object.assign({},u),t),i=Fr.i.filterBlacklistedKeys(n),a=Object.assign({currentStepId:u.currentStepId},i),c=Object.entries(a).filter((function(t){return void 0!==Yr(t,2)[1]})).reduce((function(t,e){var r=Yr(e,2),n=r[0],o=r[1];return Object.assign(Object.assign({},t),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Br(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Br(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Br(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},n,o))}),{});o(c,Object.assign({entity:de.py.SignUp,location:e},r))}}},Vr=r(1048);const Hr={buttonContainer:"izZtA",dataContainer:"OgBv5"};function Jr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Zr(t){var e={};return Object.keys(t).forEach((function(r){var n=t[r];Vr.t.isObject(n)&&null!==n&&!Array.isArray(n)?Object.assign(e,Zr(n)):e[r]=n})),e}function Xr(t){var e=t.label,r=t.item,n=r;return Array.isArray(r)&&(n=n.join(" -> ")),"boolean"==typeof n&&(n=n?"true":"false"),i().createElement("div",{className:"pb-1"},e,": ",i().createElement("b",{className:"text-white"},n))}function Qr(t){var e,r,n=t.developmentEnv,o=t.objects,a=(e=i().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,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return Jr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Jr(t,e):void 0}}(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=a[0],l=a[1],u=i().useMemo((function(){return Zr(o)}),[o]);return n&&i().createElement(i().Fragment,null,i().createElement("div",{className:"position-fixed p-4 ".concat(Hr.buttonContainer)},i().createElement("button",{onClick:function(){l(!c)},className:"btn btn-dark px-2 py-1"},c?"Hide":"Show"," debugger")),c&&i().createElement("div",{className:"fixed-bottom mb-4 ml-4 bg-dark rounded ".concat(Hr.dataContainer)},i().createElement("code",{className:"d-block p-4"},i().createElement("div",{className:"font-weight-bold pb-2"},"{ Debug: Form Data }"),Object.keys(u).map((function(t){return i().createElement(Xr,{key:t,label:t,item:u[t]})})))))}var tn=r(49985);function en(t){var e=z.getLayouts(t.type),r=t.location,n=t.initialValues,o=t.geoLocation,c=t.googleMapsApiKey,l=t.pageAppLinkString,u=t.onStepUpdate,s=t.imageUrls,f=t.ajaxUrls,p=t.brazeConfig,d=t.version,h=t.productName,m=t.close,y=Wr({location:r,initialValues:n,onStepUpdate:u,externalLogUserAction:tn.k.logUserAction}),v=y.back,g=y.nextStep,b=y.complete,w=y.hasPreviousStep,S=y.state,E=y.logUserAction,x={state:S,geoLocation:o,layoutMapping:e,hasPreviousStep:w,googleMapsApiKey:c,pageAppLinkString:l,back:v,close:m,nextStep:g,complete:b,logUserAction:E,imageUrls:s,ajaxUrls:f,brazeConfig:p,version:d,productName:h};return i().useEffect((function(){a.SG.get(J)&&b({completionStep:"young-student",trialCreated:!1,trialStatus:null})}),[]),i().createElement(i().Fragment,null,i().createElement(_r,Object.assign({},x)),i().createElement(Qr,{developmentEnv:!1,objects:Object.assign(Object.assign(Object.assign({},S),{pageAppLinkString:l}),o)}))}},83529:(t,e,r)=>{var n;r.d(e,{c:()=>n}),function(t){t.Popup="popup-form",t.FullPage="full-page-form"}(n||(n={}))},12238:(t,e,r)=>{var n;r.d(e,{C:()=>n}),function(t){t.MasterId="master_id",t.CrmId="crm_id",t.SalesforceId="salesforce_id"}(n||(n={}))},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:()=>a});var n=r(20354),o=r(39151),i={countryCode:"us"};function a(){var t=n.a.useBasicFetch(o.L.geoLocation());return t.hasCompleted&&!t.data?i:t.data}},63643:(t,e,r)=>{r.d(e,{c:()=>c});var n=r(20354),o=r(39151),i=r(97395),a=r(84789);function c(){var t=n.a.useBasicFetch(o.L.config());if(!t.hasCompleted)return null;var e=t.data.gatewayApiUrl;return{productName:a.X.Lite,userStatus:i._.safeUrlConcat(e,"/v1/users/trial-status"),prospectStatus:function(t){return i._.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:i._.safeUrlConcat(e,"/v1/search/prospects"),createProspect:"/api/prospects",prospectLookups:function(t){return i._.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"}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 9931-26ec77b0ad-lite.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9931],{33685:(t,e,r)=>{r.r(e),r.d(e,{RequestingAccessView:()=>k});var n=r(1024),o=r.n(n),i=r(23481),a=r(20354),c=r(31949),u=r(69883),s=r(66537),l=r(61807),f=r(93802),h=r(24833),p=r(23371),y=r(81803),v=r(71966),d=r(96268),m=r(68598),g=r(36848),w=r(97291),b=r(14070),E=r(83345);function x(t){return x="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},x(t)}function L(){L=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new j(o||[]);return n(a,"_invoke",{value:E(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function y(){}var v={};u(v,i,(function(){return this}));var d=Object.getPrototypeOf,m=d&&d(d(k([])));m&&m!==e&&r.call(m,i)&&(v=m);var g=y.prototype=h.prototype=Object.create(v);function w(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function o(n,i,a,c){var u=l(t[n],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==x(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,c)}))}c(u.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=S(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=l(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function S(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function k(t){if(t||""===t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}throw new TypeError(x(t)+" is not iterable")}return p.prototype=y,n(g,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:p,configurable:!0}),p.displayName=u(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},w(b.prototype),u(b.prototype,a,(function(){return this})),t.AsyncIterator=b,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new b(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(g),u(g,c,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function S(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 O=function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function c(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}u((n=n.apply(t,e||[])).next())}))},_="settings.requestingAccess",j=i.T.encloseNamespace(_);function k(){(0,d.W)();var t,e,r=a.a.useBasicFetch(c.N.currentUser()),n=r.data.customerId,i=a.a.useBasicFetch(r.data.customerId&&v.B.domains(n)),x=a.a.useGetFetchAsync(),k=(0,u.Z)(),A=(t=o().useState([]),e=2,function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return S(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)?S(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),N=A[0],F=A[1];return i.hasCompleted?o().createElement(y.d,{heading:j("heading"),breadcrumbs:[j("breadcrumb")]},o().createElement(l.L,{active:"requesting-access",appLinks:m.W}),o().createElement("p",null,o().createElement(E.x,{namespace:_,phrase:"description"})," ",o().createElement(g.F,{appLink:{application:w.O.USER_MANAGER,action:b.e.UserManager.ACCESS_REQUESTS},className:"text-info"},o().createElement(E.x,{namespace:_,phrase:"manageRequests"}))),o().createElement(s.j,{initialValues:f.y.getInitialJoinRequests(i.data),onSaveChanges:function(t,e){var r;return O(this,void 0,void 0,L().mark((function o(){var a;return L().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return a=f.y.formatRequestData(i.data,t,p.W.Request),o.prev=1,o.next=4,x(v.B.updateDomains(n,a));case 4:k.success(j("success")),o.next=11;break;case 7:o.prev=7,o.t0=o.catch(1),(null===(r=o.t0.responseJSON)||void 0===r?void 0:r.problems)&&F(o.t0.responseJSON.problems),k.error(j("error"));case 11:return o.prev=11,e(),o.finish(11);case 14:case"end":return o.stop()}}),o,null,[[1,7,11,14]])})))},view:h.C.RequestingAccess,options:["none","allowed","any"],errors:N,appLinks:m.W})):o().createElement(o().Fragment,null)}}}]);
|