@clickview/lite 0.16.5 → 0.17.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +2 -2
- package/dist/bundles.json +2 -2
- package/dist/css/{128-lite-13c42eb135.chunk.css → 1053-lite-254fccec9d.chunk.css} +0 -1
- package/dist/css/{7552-lite-6ccd3cd0f1.chunk.css → 1863-lite-e2401cd697.chunk.css} +0 -1
- package/dist/css/1913-lite-507c738e4a.chunk.css +1 -0
- package/dist/css/{8000-lite-a5f631d057.chunk.css → 2191-lite-9c98e19000.chunk.css} +4 -4
- package/dist/css/2208-lite-efffeb2bcd.chunk.css +4 -0
- package/dist/css/{9468-lite-61bc649fe8.chunk.css → 2319-lite-20d697dc80.chunk.css} +4 -4
- package/dist/css/{6134-lite-c219670abb.chunk.css → 249-lite-04c1bcf306.chunk.css} +3 -4
- package/dist/css/{3238-lite-4207e5204c.chunk.css → 2851-lite-39147b2607.chunk.css} +3 -4
- package/dist/css/{5652-lite-cb8176c5b6.chunk.css → 3177-lite-5f73117448.chunk.css} +11 -10
- package/dist/css/{2132-lite-53ae24534c.chunk.css → 3626-lite-e89a23b5f8.chunk.css} +4 -4
- package/dist/css/{1929-lite-d0a42ae5a6.chunk.css → 3994-lite-8e72471f8d.chunk.css} +4 -4
- package/dist/css/{3152-lite-f619f03fce.chunk.css → 4113-lite-154356e51d.chunk.css} +1 -1
- package/dist/css/{8028-lite-d207e9f6bf.chunk.css → 4233-lite-c46fec7779.chunk.css} +4 -4
- package/dist/css/{8009-lite-1767773ed6.chunk.css → 4453-lite-7386ae0deb.chunk.css} +4 -4
- package/dist/css/{2877-lite-a59a382d34.chunk.css → 4471-lite-f6e681eb00.chunk.css} +4 -4
- package/dist/css/{2115-lite-6a984934ff.chunk.css → 4484-lite-18f77e6767.chunk.css} +3 -4
- package/dist/css/{9655-lite-5d07ca8a87.chunk.css → 4519-lite-38288f9a4b.chunk.css} +4 -4
- package/dist/css/4609-lite-0b2abb94a2.chunk.css +4 -0
- package/dist/css/{1618-lite-61d874ee53.chunk.css → 5104-lite-1145a0fa5f.chunk.css} +0 -1
- package/dist/css/5293-lite-dd61f3fda9.chunk.css +4 -0
- package/dist/css/{7631-lite-c2bfaee3c3.chunk.css → 5985-lite-3ee0455feb.chunk.css} +4 -4
- package/dist/css/6086-lite-892591251a.chunk.css +5 -0
- package/dist/css/6158-lite-b4dcfb06a9.chunk.css +3 -0
- package/dist/css/{6686-lite-b9b4cc04bd.chunk.css → 6255-lite-497af69e9e.chunk.css} +3 -4
- package/dist/css/{6786-lite-ebbfbeeea3.chunk.css → 6369-lite-af3f2910ba.chunk.css} +3 -4
- package/dist/css/6387-lite-0b2abb94a2.chunk.css +4 -0
- package/dist/css/{5585-lite-06bbeafadb.chunk.css → 6689-lite-19c35b2126.chunk.css} +0 -1
- package/dist/css/{1749-lite-a3b62a8bdc.chunk.css → 7007-lite-302a76da55.chunk.css} +4 -4
- package/dist/css/7708-lite-6918135dfc.chunk.css +3 -0
- package/dist/css/{57-lite-f6f36626f1.chunk.css → 7756-lite-1e778dc624.chunk.css} +4 -4
- package/dist/css/{8472-lite-d0a42ae5a6.chunk.css → 777-lite-8e72471f8d.chunk.css} +4 -4
- package/dist/css/{3436-lite-564aabec97.chunk.css → 7958-lite-e43d3ea9cd.chunk.css} +6 -6
- package/dist/css/824-lite-dd61f3fda9.chunk.css +4 -0
- package/dist/css/{1261-lite-0b28ca04b5.chunk.css → 8300-lite-6599e352a8.chunk.css} +4 -4
- package/dist/css/{8621-lite-b1b9e2e576.chunk.css → 8621-lite-cf72af7110.chunk.css} +1 -1
- package/dist/css/8830-lite-8e8a0170e6.chunk.css +4 -0
- package/dist/css/{9990-lite-120fa13ef4.chunk.css → 885-lite-aded4bdc6a.chunk.css} +5 -4
- package/dist/css/{8200-lite-61bc649fe8.chunk.css → 8898-lite-20d697dc80.chunk.css} +4 -4
- package/dist/css/{5092-lite-4179a3543e.chunk.css → 8903-lite-efd4f7d850.chunk.css} +6 -6
- package/dist/css/8987-lite-41d75882c6.chunk.css +6 -0
- package/dist/css/{4870-lite-d207e9f6bf.chunk.css → 9424-lite-c46fec7779.chunk.css} +4 -4
- package/dist/css/{7199-lite-a5f631d057.chunk.css → 9482-lite-9c98e19000.chunk.css} +4 -4
- package/dist/css/{380-lite-ee613fc90c.chunk.css → 9767-lite-258436472d.chunk.css} +4 -4
- package/dist/css/{lite-app-0371226ac9.css → lite-app-24bd7c7d54.css} +6 -4
- package/dist/languages/en.json +1 -1
- package/dist/scripts/1053-6791248c33-lite.chunk.js +1 -0
- package/dist/scripts/1075-fea376305b-lite.chunk.js +1 -0
- package/dist/scripts/1160-63006dbf49-lite.chunk.js +1 -0
- package/dist/scripts/{1200-fdbb00760e-lite.chunk.js → 1200-1752bc87fb-lite.chunk.js} +1 -1
- package/dist/scripts/{1291-23b2cd82a4-lite.chunk.js → 1291-6cdcb2859e-lite.chunk.js} +1 -1
- package/dist/scripts/{1518-96b398e84a-lite.chunk.js → 1518-19f9820fa1-lite.chunk.js} +1 -1
- package/dist/scripts/{1592-edae0cfd35-lite.chunk.js → 1592-ccd23c32a3-lite.chunk.js} +1 -1
- package/dist/scripts/1863-0a2afe362b-lite.chunk.js +1 -0
- package/dist/scripts/1913-ec8f291a4e-lite.chunk.js +1 -0
- package/dist/scripts/{2097-5b8d15d472-lite.chunk.js → 2097-13e9de4525-lite.chunk.js} +1 -1
- package/dist/scripts/2153-806fd88015-lite.chunk.js +1 -0
- package/dist/scripts/2208-903428f5a0-lite.chunk.js +1 -0
- package/dist/scripts/{2215-b4a2c38dbb-lite.chunk.js → 2215-b2f7035ee9-lite.chunk.js} +1 -1
- package/dist/scripts/2303-ba60af7635-lite.chunk.js +1 -0
- package/dist/scripts/{8200-e1721a621f-lite.chunk.js → 2319-ce3de90465-lite.chunk.js} +1 -1
- package/dist/scripts/249-adcbe5b636-lite.chunk.js +1 -0
- package/dist/scripts/27-8c06f54465-lite.chunk.js +1 -0
- package/dist/scripts/{3238-b9d32818f5-lite.chunk.js → 2851-912b447875-lite.chunk.js} +1 -1
- package/dist/scripts/291-3cdf00b119-lite.chunk.js +1 -0
- package/dist/scripts/3019-e3c3fd8e8a-lite.chunk.js +1 -0
- package/dist/scripts/3143-83484a4fac-lite.chunk.js +2 -0
- package/dist/scripts/3177-a5aca852e3-lite.chunk.js +1 -0
- package/dist/scripts/{3231-8904d10cdd-lite.chunk.js → 3231-41316e70ab-lite.chunk.js} +1 -1
- package/dist/scripts/3285-604826a0d3-lite.chunk.js +1 -0
- package/dist/scripts/3588-78f3f86bdf-lite.chunk.js +2 -0
- package/dist/scripts/{2132-f4c755e897-lite.chunk.js → 3626-4214e5c78b-lite.chunk.js} +1 -1
- package/dist/scripts/{3754-7d99f79b5a-lite.chunk.js → 3754-c43acbfa38-lite.chunk.js} +1 -1
- package/dist/scripts/{1929-c535fcce1d-lite.chunk.js → 3994-c3c348bad9-lite.chunk.js} +1 -1
- package/dist/scripts/4113-8bed4f2a34-lite.chunk.js +1 -0
- package/dist/scripts/{8028-1da9f94ced-lite.chunk.js → 4233-0d236f1769-lite.chunk.js} +1 -1
- package/dist/scripts/{4343-9abe546d02-lite.chunk.js → 4343-88d4cc1616-lite.chunk.js} +1 -1
- package/dist/scripts/{8009-81136f8a63-lite.chunk.js → 4453-03b7c1bcb4-lite.chunk.js} +1 -1
- package/dist/scripts/{2877-6fee9aac4d-lite.chunk.js → 4471-52f4a77b22-lite.chunk.js} +1 -1
- package/dist/scripts/{2115-a31191ce7d-lite.chunk.js → 4484-53bdd0cd8e-lite.chunk.js} +1 -1
- package/dist/scripts/{9655-bacd4e7790-lite.chunk.js → 4519-a4cc1fe6ed-lite.chunk.js} +1 -1
- package/dist/scripts/4609-fcdaed74c2-lite.chunk.js +1 -0
- package/dist/scripts/{4617-ee30946c00-lite.chunk.js → 4617-ed843d6a7d-lite.chunk.js} +1 -1
- package/dist/scripts/{1618-eecb176a9c-lite.chunk.js → 5104-ef7dfb932d-lite.chunk.js} +1 -1
- package/dist/scripts/5145-930b605b9f-lite.chunk.js +1 -0
- package/dist/scripts/5229-a5a826a741-lite.chunk.js +1 -0
- package/dist/scripts/5293-9f76ad8f1e-lite.chunk.js +1 -0
- package/dist/scripts/{5875-380883e8d7-lite.chunk.js → 5875-32c6f150e0-lite.chunk.js} +1 -1
- package/dist/scripts/{7631-660fb05c79-lite.chunk.js → 5985-cec35a1b85-lite.chunk.js} +1 -1
- package/dist/scripts/6086-979266c2c6-lite.chunk.js +1 -0
- package/dist/scripts/{6117-fc3ad446d9-lite.chunk.js → 6117-74590f7985-lite.chunk.js} +1 -1
- package/dist/scripts/6158-a453b13d8b-lite.chunk.js +1 -0
- package/dist/scripts/{6686-08c29add85-lite.chunk.js → 6255-f50ef0919b-lite.chunk.js} +1 -1
- package/dist/scripts/6263-32823c41a5-lite.chunk.js +1 -0
- package/dist/scripts/{6786-656b43bc69-lite.chunk.js → 6369-962af9b653-lite.chunk.js} +1 -1
- package/dist/scripts/6387-286bfa4b20-lite.chunk.js +1 -0
- package/dist/scripts/{6450-1faec22b11-lite.chunk.js → 6450-019fedec23-lite.chunk.js} +1 -1
- package/dist/scripts/6507-83c71bfa60-lite.chunk.js +1 -0
- package/dist/scripts/6689-1ed114c50b-lite.chunk.js +1 -0
- package/dist/scripts/6727-dc91e53918-lite.chunk.js +1 -0
- package/dist/scripts/{6736-807f6b6c82-lite.chunk.js → 6736-ac71f42fe7-lite.chunk.js} +1 -1
- package/dist/scripts/{6801-958fd62c7b-lite.chunk.js → 6801-9e20065d3a-lite.chunk.js} +1 -1
- package/dist/scripts/{1749-1f9003adbe-lite.chunk.js → 7007-8ec808ba9e-lite.chunk.js} +1 -1
- package/dist/scripts/7307-810e1ec5e4-lite.chunk.js +1 -0
- package/dist/scripts/7318-6cc811f662-lite.chunk.js +1 -1
- package/dist/scripts/{7416-571043c67f-lite.chunk.js → 7416-f33a86fe74-lite.chunk.js} +1 -1
- package/dist/scripts/7490-520425a659-lite.chunk.js +1 -0
- package/dist/scripts/7708-3f0569ad13-lite.chunk.js +1 -0
- package/dist/scripts/7756-d2e9e6f07f-lite.chunk.js +1 -0
- package/dist/scripts/777-8d9756e6df-lite.chunk.js +1 -0
- package/dist/scripts/7825-e2048b2f05-lite.chunk.js +1 -0
- package/dist/scripts/7831-41d5fb1965-lite.chunk.js +1 -0
- package/dist/scripts/{3436-dc9cc2db93-lite.chunk.js → 7958-b8b4c74625-lite.chunk.js} +1 -1
- package/dist/scripts/{7989-9c4168b26f-lite.chunk.js → 7989-5756a29b8c-lite.chunk.js} +1 -1
- package/dist/scripts/824-2ee9558d57-lite.chunk.js +1 -0
- package/dist/scripts/{1261-86135e9600-lite.chunk.js → 8300-1948ea424d-lite.chunk.js} +1 -1
- package/dist/scripts/8323-2e63bc99d9-lite.chunk.js +2 -0
- package/dist/scripts/8377-63d09d1e31-lite.chunk.js +1 -0
- package/dist/scripts/{8466-76ffd5eea9-lite.chunk.js → 8466-3d41e7b6b0-lite.chunk.js} +1 -1
- package/dist/scripts/{8621-46fc176e7a-lite.chunk.js → 8621-e4b53cb359-lite.chunk.js} +1 -1
- package/dist/scripts/8830-72a7f2b5bc-lite.chunk.js +1 -0
- package/dist/scripts/885-451836664e-lite.chunk.js +1 -0
- package/dist/scripts/8903-e92285c5a3-lite.chunk.js +1 -0
- package/dist/scripts/8987-c4cd06fd43-lite.chunk.js +1 -0
- package/dist/scripts/{9035-31ab27fdbc-lite.chunk.js → 9035-d244166e44-lite.chunk.js} +1 -1
- package/dist/scripts/{4870-7aa1c50fa9-lite.chunk.js → 9424-c16d58584e-lite.chunk.js} +1 -1
- package/dist/scripts/{9455-ff4f3ca528-lite.chunk.js → 9455-174b7c311a-lite.chunk.js} +1 -1
- package/dist/scripts/{9478-223792d0e1-lite.chunk.js → 9478-8fc4331288-lite.chunk.js} +2 -2
- package/dist/scripts/9482-eaaa4bc060-lite.chunk.js +1 -0
- package/dist/scripts/969-e7b9dd5fce-lite.chunk.js +1 -0
- package/dist/scripts/9767-582fee0475-lite.chunk.js +1 -0
- package/dist/scripts/9798-0e389ed33d-lite.chunk.js +1 -0
- package/dist/scripts/bundle-6500d6c465.min.js +2 -0
- package/jest.config.js +11 -11
- package/package.json +63 -63
- 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/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/css/1659-lite-46c3b98b1a.chunk.css +0 -4
- package/dist/css/2044-lite-4e3b9722c4.chunk.css +0 -5
- package/dist/css/2935-lite-7ec7cb567e.chunk.css +0 -4
- package/dist/css/300-lite-abd977ae08.chunk.css +0 -6
- package/dist/css/4420-lite-7c2446c5d7.chunk.css +0 -2
- package/dist/css/5607-lite-7351604a33.chunk.css +0 -5
- package/dist/css/6258-lite-61084c3d43.chunk.css +0 -6
- package/dist/css/6776-lite-e9eb010064.chunk.css +0 -5
- package/dist/css/8322-lite-8e7d6f6608.chunk.css +0 -5
- package/dist/css/8814-lite-e9eb010064.chunk.css +0 -5
- package/dist/css/9568-lite-7351604a33.chunk.css +0 -5
- package/dist/scripts/1235-37587ff1af-lite.chunk.js +0 -1
- package/dist/scripts/128-9d92b3ce34-lite.chunk.js +0 -1
- package/dist/scripts/1659-9499c8d973-lite.chunk.js +0 -1
- package/dist/scripts/2044-c0b0c37d4d-lite.chunk.js +0 -1
- package/dist/scripts/2303-e72674b90c-lite.chunk.js +0 -1
- package/dist/scripts/2791-0102aa4d54-lite.chunk.js +0 -1
- package/dist/scripts/291-6c233ee692-lite.chunk.js +0 -1
- package/dist/scripts/2935-662f01ce12-lite.chunk.js +0 -1
- package/dist/scripts/300-82d235c8af-lite.chunk.js +0 -1
- package/dist/scripts/3019-7dfdb8c724-lite.chunk.js +0 -1
- package/dist/scripts/3152-d618a10e42-lite.chunk.js +0 -1
- package/dist/scripts/3174-63be25dbc7-lite.chunk.js +0 -1
- package/dist/scripts/3285-2f24c76dd7-lite.chunk.js +0 -1
- package/dist/scripts/3286-883b950e29-lite.chunk.js +0 -1
- package/dist/scripts/3533-03d43a5e19-lite.chunk.js +0 -1
- package/dist/scripts/380-df35cc0356-lite.chunk.js +0 -1
- package/dist/scripts/4309-51c41f8605-lite.chunk.js +0 -1
- package/dist/scripts/4420-207779ae98-lite.chunk.js +0 -1
- package/dist/scripts/5092-ddb8bda78a-lite.chunk.js +0 -1
- package/dist/scripts/5585-f0349af1a7-lite.chunk.js +0 -1
- package/dist/scripts/5607-44cb7e00a0-lite.chunk.js +0 -1
- package/dist/scripts/5652-24d17ceda1-lite.chunk.js +0 -1
- package/dist/scripts/57-9d4fb5378a-lite.chunk.js +0 -1
- package/dist/scripts/6118-c2e0ef9bf0-lite.chunk.js +0 -2
- package/dist/scripts/6134-f44bf3e9f8-lite.chunk.js +0 -1
- package/dist/scripts/6235-4a5f6dee97-lite.chunk.js +0 -1
- package/dist/scripts/6258-d6e0ffe779-lite.chunk.js +0 -1
- package/dist/scripts/6263-6d6e717d81-lite.chunk.js +0 -1
- package/dist/scripts/6285-01df6e582b-lite.chunk.js +0 -1
- package/dist/scripts/6378-b9a1784019-lite.chunk.js +0 -1
- package/dist/scripts/6507-2d804921e2-lite.chunk.js +0 -1
- package/dist/scripts/6776-d65221876f-lite.chunk.js +0 -1
- package/dist/scripts/7307-35d2e8ee96-lite.chunk.js +0 -1
- package/dist/scripts/7552-92ba8f6e32-lite.chunk.js +0 -1
- package/dist/scripts/7804-1e4edb922b-lite.chunk.js +0 -1
- package/dist/scripts/7831-be5274a978-lite.chunk.js +0 -1
- package/dist/scripts/7939-030086947f-lite.chunk.js +0 -1
- package/dist/scripts/8000-9f0d9d2d4a-lite.chunk.js +0 -1
- package/dist/scripts/8322-86e2c08ed6-lite.chunk.js +0 -1
- package/dist/scripts/8323-f335379d28-lite.chunk.js +0 -2
- package/dist/scripts/8377-63f0bb9bb3-lite.chunk.js +0 -1
- package/dist/scripts/8472-4abd2e4ce3-lite.chunk.js +0 -1
- package/dist/scripts/8814-be9838dcac-lite.chunk.js +0 -1
- package/dist/scripts/8976-055dfe3ebd-lite.chunk.js +0 -2
- package/dist/scripts/9001-785d4f1808-lite.chunk.js +0 -1
- package/dist/scripts/9568-ff0a3581d2-lite.chunk.js +0 -1
- package/dist/scripts/9592-693b7e5c16-lite.chunk.js +0 -1
- package/dist/scripts/9798-f01a812dbb-lite.chunk.js +0 -1
- package/dist/scripts/9990-18f58876a8-lite.chunk.js +0 -1
- package/dist/scripts/bundle-b9255474c7.min.js +0 -2
- /package/dist/css/{9592-lite-a3205bb6ab.chunk.css → 2153-lite-a3205bb6ab.chunk.css} +0 -0
- /package/dist/css/{3533-lite-5f795295f3.chunk.css → 27-lite-5f795295f3.chunk.css} +0 -0
- /package/dist/css/{6285-lite-9c829a9c8b.chunk.css → 291-lite-9c829a9c8b.chunk.css} +0 -0
- /package/dist/css/{291-lite-0c9634ca3d.chunk.css → 6727-lite-0c9634ca3d.chunk.css} +0 -0
- /package/dist/css/{4309-lite-8fe16f36e7.chunk.css → 969-lite-8fe16f36e7.chunk.css} +0 -0
- /package/dist/scripts/{1007-4151cfd368-lite.chunk.js → 1007-40c34e15b0-lite.chunk.js} +0 -0
- /package/dist/scripts/{1200-fdbb00760e-lite.chunk.js.LICENSE.txt → 1200-1752bc87fb-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{1285-6fb30fc0a1-lite.chunk.js → 1285-7a93b69113-lite.chunk.js} +0 -0
- /package/dist/scripts/{1592-edae0cfd35-lite.chunk.js.LICENSE.txt → 1592-ccd23c32a3-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{1725-8f755ea42c-lite.chunk.js → 1725-efe85aed19-lite.chunk.js} +0 -0
- /package/dist/scripts/{1792-f72f5918d7-lite.chunk.js → 1792-fe61497e92-lite.chunk.js} +0 -0
- /package/dist/scripts/{1891-cb9e793dcd-lite.chunk.js → 1891-fdddecd3f3-lite.chunk.js} +0 -0
- /package/dist/scripts/{1924-b3871f427a-lite.chunk.js → 1924-62052616d4-lite.chunk.js} +0 -0
- /package/dist/scripts/{209-55b483415b-lite.chunk.js → 209-1301f41ed5-lite.chunk.js} +0 -0
- /package/dist/scripts/{2097-5b8d15d472-lite.chunk.js.LICENSE.txt → 2097-13e9de4525-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2229-e6fef215c2-lite.chunk.js → 2229-558d6b535f-lite.chunk.js} +0 -0
- /package/dist/scripts/{227-0c4bb367a5-lite.chunk.js → 227-6e2c48d228-lite.chunk.js} +0 -0
- /package/dist/scripts/{2279-e524379a62-lite.chunk.js → 2279-00f6f2ee12-lite.chunk.js} +0 -0
- /package/dist/scripts/{2452-ed97feb8f4-lite.chunk.js → 2452-ddcf0aa499-lite.chunk.js} +0 -0
- /package/dist/scripts/{2966-541625267b-lite.chunk.js → 2966-afdc9d73fb-lite.chunk.js} +0 -0
- /package/dist/scripts/{3007-d1dcacab45-lite.chunk.js → 3007-61432f7725-lite.chunk.js} +0 -0
- /package/dist/scripts/{3012-9e2742a042-lite.chunk.js → 3012-782a31a259-lite.chunk.js} +0 -0
- /package/dist/scripts/{3020-848b1078ff-lite.chunk.js → 3020-48fe422c57-lite.chunk.js} +0 -0
- /package/dist/scripts/{3108-696c32179b-lite.chunk.js → 3108-6bc34f0fe9-lite.chunk.js} +0 -0
- /package/dist/scripts/{5875-380883e8d7-lite.chunk.js.LICENSE.txt → 3143-83484a4fac-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3171-ad49c56dfb-lite.chunk.js → 3171-c56c71431a-lite.chunk.js} +0 -0
- /package/dist/scripts/{3216-1802bdd0de-lite.chunk.js → 3216-227b8b9a54-lite.chunk.js} +0 -0
- /package/dist/scripts/{3237-7767ad4903-lite.chunk.js → 3237-38ee965093-lite.chunk.js} +0 -0
- /package/dist/scripts/{3468-a1ee14a085-lite.chunk.js → 3468-afd0a7660c-lite.chunk.js} +0 -0
- /package/dist/scripts/{6118-c2e0ef9bf0-lite.chunk.js.LICENSE.txt → 3588-78f3f86bdf-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3787-7b96f4d4a7-lite.chunk.js → 3787-4317682fc0-lite.chunk.js} +0 -0
- /package/dist/scripts/{3948-fdaf6f97ca-lite.chunk.js → 3948-2fda1767c1-lite.chunk.js} +0 -0
- /package/dist/scripts/{4182-f3ef9a1810-lite.chunk.js → 4182-015f11905d-lite.chunk.js} +0 -0
- /package/dist/scripts/{4380-11c6854916-lite.chunk.js → 4380-4e73d869f4-lite.chunk.js} +0 -0
- /package/dist/scripts/{4541-707fb37c69-lite.chunk.js → 4541-ca3cb5ca84-lite.chunk.js} +0 -0
- /package/dist/scripts/{4722-54fc5063c8-lite.chunk.js → 4722-dffbe59069-lite.chunk.js} +0 -0
- /package/dist/scripts/{482-848dc991e5-lite.chunk.js → 482-dd3e4495d9-lite.chunk.js} +0 -0
- /package/dist/scripts/{4893-f19c6f1593-lite.chunk.js → 4893-f30cd7ddcc-lite.chunk.js} +0 -0
- /package/dist/scripts/{5606-5f241a1a57-lite.chunk.js → 5606-f823519569-lite.chunk.js} +0 -0
- /package/dist/scripts/{6736-807f6b6c82-lite.chunk.js.LICENSE.txt → 5875-32c6f150e0-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{5877-d47251db33-lite.chunk.js → 5877-a6684333e7-lite.chunk.js} +0 -0
- /package/dist/scripts/{5914-5c809bdca8-lite.chunk.js → 5914-cf8eadac4d-lite.chunk.js} +0 -0
- /package/dist/scripts/{5956-51289b18c5-lite.chunk.js → 5956-af12da8fa0-lite.chunk.js} +0 -0
- /package/dist/scripts/{5974-1a23d799ca-lite.chunk.js → 5974-a82ebc9ec9-lite.chunk.js} +0 -0
- /package/dist/scripts/{6080-b70f0ee44e-lite.chunk.js → 6080-100066a582-lite.chunk.js} +0 -0
- /package/dist/scripts/{614-c14e73561a-lite.chunk.js → 614-6c4e1214fe-lite.chunk.js} +0 -0
- /package/dist/scripts/{6274-9f5c641ca9-lite.chunk.js → 6274-cb4b511ee7-lite.chunk.js} +0 -0
- /package/dist/scripts/{6290-38a35b6443-lite.chunk.js → 6290-47dfcd7e4c-lite.chunk.js} +0 -0
- /package/dist/scripts/{6368-6e6e962492-lite.chunk.js → 6368-583aa3a89d-lite.chunk.js} +0 -0
- /package/dist/scripts/{6370-407ad0543a-lite.chunk.js → 6370-d6afc1876b-lite.chunk.js} +0 -0
- /package/dist/scripts/{6381-4871c4a553-lite.chunk.js → 6381-16b5dcf5d6-lite.chunk.js} +0 -0
- /package/dist/scripts/{6465-6bbc03a3e5-lite.chunk.js → 6465-ced8580921-lite.chunk.js} +0 -0
- /package/dist/scripts/{6480-0a9ea5b4fb-lite.chunk.js → 6480-9d16f5b687-lite.chunk.js} +0 -0
- /package/dist/scripts/{6493-7497177528-lite.chunk.js → 6493-c0cb73766e-lite.chunk.js} +0 -0
- /package/dist/scripts/{6604-50d7e462ee-lite.chunk.js → 6604-2ff61304ce-lite.chunk.js} +0 -0
- /package/dist/scripts/{6725-47d9b15d14-lite.chunk.js → 6725-692a6bf6d9-lite.chunk.js} +0 -0
- /package/dist/scripts/{7416-571043c67f-lite.chunk.js.LICENSE.txt → 6736-ac71f42fe7-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{6821-a985554f7d-lite.chunk.js → 6821-6859424d65-lite.chunk.js} +0 -0
- /package/dist/scripts/{6873-e73c869b94-lite.chunk.js → 6873-ea0453514a-lite.chunk.js} +0 -0
- /package/dist/scripts/{7045-fcad8b1914-lite.chunk.js → 7045-2ff6b61236-lite.chunk.js} +0 -0
- /package/dist/scripts/{7056-91f8a7e829-lite.chunk.js → 7056-108f16b738-lite.chunk.js} +0 -0
- /package/dist/scripts/{7115-04d195d4c9-lite.chunk.js → 7115-34ee1a7f1b-lite.chunk.js} +0 -0
- /package/dist/scripts/{7128-49e5eafed1-lite.chunk.js → 7128-ea83e304a4-lite.chunk.js} +0 -0
- /package/dist/scripts/{7172-f7823cfc9e-lite.chunk.js → 7172-017ad7330a-lite.chunk.js} +0 -0
- /package/dist/scripts/{7178-d519632282-lite.chunk.js → 7178-39887eaa85-lite.chunk.js} +0 -0
- /package/dist/scripts/{7332-ce12bfa834-lite.chunk.js → 7332-f542edf322-lite.chunk.js} +0 -0
- /package/dist/scripts/{7407-db6e0f1149-lite.chunk.js → 7407-0168b2e238-lite.chunk.js} +0 -0
- /package/dist/scripts/{8323-f335379d28-lite.chunk.js.LICENSE.txt → 7416-f33a86fe74-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7506-df6e972a6c-lite.chunk.js → 7506-1637b67aea-lite.chunk.js} +0 -0
- /package/dist/scripts/{7767-8fcbc6668d-lite.chunk.js → 7767-55b704ca34-lite.chunk.js} +0 -0
- /package/dist/scripts/{7855-f282624e12-lite.chunk.js → 7855-b5df5613a6-lite.chunk.js} +0 -0
- /package/dist/scripts/{7888-2f6d672f99-lite.chunk.js → 7888-eec05aef3e-lite.chunk.js} +0 -0
- /package/dist/scripts/{7925-1236157fe7-lite.chunk.js → 7925-a0e0e07c8a-lite.chunk.js} +0 -0
- /package/dist/scripts/{7989-9c4168b26f-lite.chunk.js.LICENSE.txt → 7989-5756a29b8c-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8025-d290070830-lite.chunk.js → 8025-588cf2d344-lite.chunk.js} +0 -0
- /package/dist/scripts/{8038-1cecda6f42-lite.chunk.js → 8038-c697cf1f59-lite.chunk.js} +0 -0
- /package/dist/scripts/{8046-f5a9bca578-lite.chunk.js → 8046-d2ff018690-lite.chunk.js} +0 -0
- /package/dist/scripts/{8056-a90b8b08a9-lite.chunk.js → 8056-16c77138bb-lite.chunk.js} +0 -0
- /package/dist/scripts/{8114-a67382343b-lite.chunk.js → 8114-7054c146ac-lite.chunk.js} +0 -0
- /package/dist/scripts/{8187-5b85d31822-lite.chunk.js → 8187-b53463d2dd-lite.chunk.js} +0 -0
- /package/dist/scripts/{823-a7b464433f-lite.chunk.js → 823-4ce6c6b235-lite.chunk.js} +0 -0
- /package/dist/scripts/{8252-09f92bf0cb-lite.chunk.js → 8252-f58b73e4c3-lite.chunk.js} +0 -0
- /package/dist/scripts/{8976-055dfe3ebd-lite.chunk.js.LICENSE.txt → 8323-2e63bc99d9-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8339-360d7818bc-lite.chunk.js → 8339-783d504f1e-lite.chunk.js} +0 -0
- /package/dist/scripts/{8801-901f330694-lite.chunk.js → 8801-7bf5ae6655-lite.chunk.js} +0 -0
- /package/dist/scripts/{8868-013d237d7f-lite.chunk.js → 8868-5f79a4612e-lite.chunk.js} +0 -0
- /package/dist/scripts/{8955-28b5d3a3c4-lite.chunk.js → 8955-4e9d16032b-lite.chunk.js} +0 -0
- /package/dist/scripts/{9060-c1cfedd62b-lite.chunk.js → 9060-b1cc635585-lite.chunk.js} +0 -0
- /package/dist/scripts/{9154-e82bdb0e7c-lite.chunk.js → 9154-e03891eb48-lite.chunk.js} +0 -0
- /package/dist/scripts/{9242-89631c2740-lite.chunk.js → 9242-1cdfaa46d8-lite.chunk.js} +0 -0
- /package/dist/scripts/{9478-223792d0e1-lite.chunk.js.LICENSE.txt → 9478-8fc4331288-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9552-2b7f33d5ec-lite.chunk.js → 9552-85c8dd040b-lite.chunk.js} +0 -0
- /package/dist/scripts/{9686-de11f8902f-lite.chunk.js → 9686-2de5bea6a9-lite.chunk.js} +0 -0
- /package/dist/scripts/{bundle-b9255474c7.min.js.LICENSE.txt → bundle-6500d6c465.min.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 3588-78f3f86bdf-lite.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[3588],{63850:(t,e,r)=>{r.d(e,{h:()=>fr});var n,o=r(1024),i=r.n(o),a=r(2903),c=r(65858),l=r(58130),u=r(2786),s=r(83914),f=r(99742),p=r(42976);!function(t){t.AU="au",t.NZ="nz",t.UK="uk",t.US="us"}(n||(n={}));var h=["uk","gb","gg","im","je","ie"],d={au:n.AU,nz:n.NZ,us:n.US,uk:n.UK,gb:n.UK,gg:n.UK,im:n.UK,je:n.UK,ie:n.UK},y=function(t){return d[null==t?void 0:t.toLowerCase()]||n.US},m={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"}},v={getMarketingUrlForGeoLocation:function(t){var e=y(null==t?void 0:t.countryCode);return m.Marketing[e]||m.Marketing.us},getMarketingSalesContactForGeoLocation:function(t){var e=y(null==t?void 0:t.countryCode),r=this.getMarketingUrlForGeoLocation(t);return t&&e===n.NZ?r+"/contact-us/":r+"/contact-us/trial/"},getTermsAndConditionsLink:function(t){return this.getMarketingUrlForGeoLocation(t)+"/terms-and-conditions/"},getSupportUrlForGeoLocation:function(t){var e=y(null==t?void 0:t.countryCode);return m.Support[e]||m.Support.us},getLoginLink:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e="/login";return t.length?"".concat(e,"?redirectUrl=").concat(t):"/login"}};function g(t,e){var r=t===e?"bg-info":"bg-light";return"".concat("rounded-circle mx-2 HuHpb"," ").concat(r)}function b(t){return i().createElement("div",{className:"w-100 d-flex align-items-center justify-content-center"},t.crumbs.map((function(e){return i().createElement("div",{className:g(t.currentStep,e),key:e})})))}function w(t){return i().createElement("button",{onClick:t.onClick,className:"btn p-0 cursor-pointer d-inline-flex align-items-center"},i().createElement(s.x,{svgName:l.vn.ChevronLeft,size:s.S.Medium}),t.children)}var x=r(83345),E=r(49985),S=r(55460);function L(t){var e=t.href,r=t.className,n=t.newTab,i=t.children,a={onClick:function(r){var o;r.preventDefault(),null===(o=t.onClick)||void 0===o||o.call(t,r),t.analyticsData&&t.analyticsOptions&&E.k.logUserAction(Object.assign({href:e},t.analyticsData),t.analyticsOptions),S.LocationUtils.PageLoad(e,n)},href:e,className:r};return o.createElement("a",Object.assign({},a),i)}var k="signUp.general.termsAndConditions";function j(t){return i().createElement("span",{className:"text-center text-md mt-2 text-normal"},i().createElement(x.x,{phrase:"text",namespace:k})," ",i().createElement(L,{href:t.link,onClick:t.onClick,className:"info-link",newTab:!0},i().createElement(x.x,{phrase:"link",namespace:k})))}var O="signUp.general.existingAccountSignIn";function N(t){return i().createElement(i().Fragment,null,i().createElement(x.x,{phrase:"text",namespace:O}),i().createElement(L,{href:t.link,onClick:t.onClick,className:"info-link pl-1"},i().createElement(x.x,{phrase:"link",namespace:O})))}var A=r(26392);P.defaultProps={showBackButton:!0};var _=["enter-email","find-school"],I=["enter-email","find-school","cant-find-school"];function P(t){var e=t.geoLocation,r=t.currentStep,n=t.previousStep,o=t.hasPreviousStep,a=t.showBackButton,h=t.closeApp,d=t.children,y=v.getTermsAndConditionsLink(e);function m(){return["enter-email","find-school","cant-find-school"].includes(r)}function g(){n(),t.logUserAction({},{actionType:c.UserAction.Click,descriptor:c.SignUpDescriptors.Back,workflowPhase:c.WorkflowPhase.Back})}var x=I.includes(t.currentStep),E=x?"".concat(A.Z.leftHalfLayout," ").concat(A.Z.withBg):A.Z.leftHalfLayout;return i().createElement("div",{className:E},i().createElement("div",{className:"row mx-0 p-3 ".concat(A.Z.zIndex1)},i().createElement("div",{className:"col d-lg-none"},o&&m()&&a&&i().createElement(w,{onClick:g})),i().createElement("div",{className:"col col-lg-6 px-0"},i().createElement("div",{className:A.Z.logo},i().createElement("div",{className:"d-none d-lg-block"},x?i().createElement(u.Yo,null):i().createElement(u.$S,null)),i().createElement("div",{className:"d-block d-lg-none"},i().createElement(u.$S,null)))),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"},o&&m()&&a&&i().createElement(w,{onClick:g}))),i().createElement("a",{onClick:h,className:"cursor-pointer d-inline-flex align-items-center"},i().createElement(s.x,{svgName:l.vn.Close,size:s.S.Medium})))),i().createElement("div",{className:"row mx-0 flex-grow-1 ".concat(A.Z.zIndex1)},x&&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:f.W.SignUp.POPUP_DASHBOARD,className:"w-100 p-4 pb-5"}))),i().createElement("div",{className:"px-4 pt-0 pb-4 ".concat(x?"col-12 col-lg-6":"col-12")},i().createElement("div",{className:"d-flex flex-column h-100"},_.includes(t.currentStep)&&i().createElement("div",{className:"d-flex mb-2"},i().createElement(b,{crumbs:_,currentStep:r})),i().createElement("div",{className:"position-relative flex-grow-1"},d),i().createElement("div",{className:"position-relative text-center"},"select-type"===r&&i().createElement(N,{link:v.getLoginLink(p._.getRelativeUrl()),onClick:function(){t.logUserAction({},{actionType:c.UserAction.Click,descriptor:c.SignUpDescriptors.SignIn})}}),"enter-email"===r&&i().createElement(j,{link:y,onClick:function(){t.logUserAction({},{actionType:c.UserAction.Click,descriptor:c.SignUpDescriptors.TermsAndConditions})}}))))))}U.defaultProps={showBackButton:!0};var T,C=["select-type","enter-email","find-school"];function U(t){var e=t.geoLocation,r=t.currentStep,n=t.previousStep,o=t.hasPreviousStep,a=t.showBackButton,l=t.children,s=v.getTermsAndConditionsLink(e);return i().createElement("div",{className:"d-flex flex-column justify-content-between px-4 py-0 ".concat("Ct4Ij")},i().createElement("div",{className:"d-flex mt-3 mb-2"},C.includes(r)&&i().createElement(b,{crumbs:C,currentStep:r})),i().createElement("div",{className:"position-relative mx-auto w-100 ".concat("select-type"===r?"ifgIL":["enter-email","find-school","cant-find-school"].includes(r)?"VkYGJ":"LFZms")},i().createElement("div",{className:"d-flex flex-row justify-content-center align-items-center mt-2 mb-3"},o&&a&&["enter-email","find-school","cant-find-school"].includes(r)&&i().createElement(w,{onClick:function(){n(),t.logUserAction({step:r},{actionType:c.UserAction.Click,descriptor:c.SignUpDescriptors.Back,workflowPhase:c.WorkflowPhase.Back})}}),i().createElement("div",{className:"d-flex justify-content-center align-items-center px-2 ".concat("RcL6k")},i().createElement(u.$S,null))),l),i().createElement("div",{className:"position-relative mb-4 text-center"},"select-type"===r&&i().createElement(N,{link:v.getLoginLink(),onClick:function(){t.logUserAction({},{actionType:c.UserAction.Click,descriptor:c.SignUpDescriptors.SignIn})}}),["enter-email","find-school"].includes(r)&&i().createElement(j,{link:s,onClick:function(){t.logUserAction({},{actionType:c.UserAction.Click,descriptor:c.SignUpDescriptors.TermsAndConditions})}})))}function G(t){return G="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},G(t)}function F(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==G(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==G(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===G(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var D,M,R,K={"cant-find-school":P,"enter-email":P,"find-school":P,"select-type":P,completed:P},B={"cant-find-school":U,"enter-email":U,"find-school":U,"select-type":U,completed:U},$=(F(T={},a.c.FullPage,B),F(T,a.c.Popup,K),T);function Y(t){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Y(t)}function z(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Y(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==Y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===Y(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}!function(t){t.Unavailable="unavailable",t.Expired="expired",t.Active="active",t.NotRequired="not-required",t.Available="available",t.Unsupported="unsupported"}(D||(D={})),function(t){t.InvalidEmail="invalid-email"}(M||(M={}));var H=(z(R={},D.Available,f.W.SignUp.VERIFY_ACCOUNT),z(R,D.Active,f.W.SignUp.EXISTING_CUSTOMER),z(R,D.Expired,f.W.SignUp.EXPIRED_TRIAL),z(R,D.NotRequired,f.W.SignUp.EXISTING_CUSTOMER),z(R,D.Unavailable,f.W.SignUp.NOT_AVAILABLE),z(R,D.Unsupported,f.W.SignUp.NOT_AVAILABLE),R);function W(t){return i().createElement("div",{className:"d-flex justify-content-center my-5 px-2 px-lg-4"},i().createElement("img",{src:H[t.trialStatus],className:"w-100 h-auto"}))}var Z=r(23481),q=r(2102),V=r(33003),J=r.n(V),Q=r(63093),X=r(15661);function tt(t){return tt="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},tt(t)}function et(){et=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 k(o||[]);return n(a,"_invoke",{value:x(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(j([])));v&&v!==e&&r.call(v,i)&&(y=v);var g=d.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==tt(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 x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=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 S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,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=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return 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:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var rt=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())}))},nt={config:function(){return rt(this,void 0,void 0,et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",X.b.asyncFetch({url:"/api/config"}));case 1:case"end":return t.stop()}}),t)})))},version:function(){return rt(this,void 0,void 0,et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",X.b.asyncFetchPlain({url:"/api/version"}));case 1:case"end":return t.stop()}}),t)})))}};function ot(t){return ot="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},ot(t)}function it(){it=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 k(o||[]);return n(a,"_invoke",{value:x(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(j([])));v&&v!==e&&r.call(v,i)&&(y=v);var g=d.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==ot(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 x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=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 S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,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=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return 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:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var at=function(t,e,r,n){return new(r||(r=Promise))((function(o,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())}))},ct={au:"cv-ap-southeast-1",uk:"cv-eu-west-1",us:"cv-ap-southeast-1",nz:"cv-ap-southeast-1"},lt={getConfig:function(){return at(this,void 0,void 0,it().mark((function t(){return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,nt.config();case 2:return t.t0=t.sent,t.next=5,nt.version();case 5:return t.t1=t.sent,t.abrupt("return",{config:t.t0,version:t.t1});case 7:case"end":return t.stop()}}),t)})))},getClient:function(t){return at(this,void 0,void 0,it().mark((function e(){var r,n,o,i,a;return it().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,lt.getConfig();case 2:return r=e.sent,n=r.config,o=r.version,i=y(null==t?void 0:t.countryCode),a=n.braze[ct[i]],e.abrupt("return",(0,Q.getInstance)({baseUrl:a.url,apiKey:a.apiKey,productVersion:o,productName:"lite.web",enableLogging:!1,automaticallyShowInAppMessages:!1}));case 8:case"end":return e.stop()}}),e)})))},hashedEmail:function(t){var e=t.trim().toLowerCase();return J().hash(e)}};function ut(t,e){return e?"".concat(t," ").concat(e):t}var st=function(t){return i().createElement("h4",{className:ut("text-center font-weight-bold mb-2",t.className)},t.children)},ft=function(t){return i().createElement("div",{className:ut("text-center text-sm px-2 px-lg-4",t.className)},t.children)},pt=function(t){return i().createElement("p",{className:ut("mb-1",t.className)},t.children)};function ht(t){return ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ht(t)}function dt(){dt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},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 k(o||[]);return n(a,"_invoke",{value:x(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(j([])));v&&v!==e&&r.call(v,i)&&(y=v);var g=d.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,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 x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=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 S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,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=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return 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:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function yt(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 mt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var vt="signUp.completedStepItem.unsupported",gt=Z.T.encloseNamespace(vt),bt="signUp.completedStepItem.expiredTrial",wt=r(99940);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 Et(){Et=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 k(o||[]);return n(a,"_invoke",{value:x(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(j([])));v&&v!==e&&r.call(v,i)&&(y=v);var g=d.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==xt(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 x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=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 S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,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=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return 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:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var St=function(t,e,r,n){return new(r||(r=Promise))((function(o,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())}))},Lt={checkTrialStatus:function(t){return St(this,void 0,void 0,Et().mark((function e(){var r;return Et().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={email:t.email},e.abrupt("return",X.b.asyncFetch({url:"/api/user/trials/status",data:r}));case 2:case"end":return e.stop()}}),e)})))},checkProspectTrialStatus:function(t,e,r,n){var o="/api/user/trials/prospect/".concat(t.prospectId,"/status");X.b.fetch({url:o,success:e,error:r,always:n})},createTrial:function(t){return St(this,void 0,void 0,Et().mark((function e(){var r;return Et().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={prospectId:t.prospectId,firstName:"Trial",surname:"User",email:t.email,userType:t.userType,accessPolicy:t.accessPolicy,appLink:null==t?void 0:t.appLink},e.abrupt("return",X.b.asyncFetch({url:"/api/user/trials",method:wt.k.POST,data:r}));case 2:case"end":return e.stop()}}),e)})))},resendTrialEmail:function(t,e){return St(this,void 0,void 0,Et().mark((function r(){var n;return Et().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={email:e.email,appLink:null==e?void 0:e.appLink},r.abrupt("return",X.b.asyncFetch({url:"/api/user/trials/users/".concat(t,"/send-activation-email"),method:wt.k.POST,data:n}));case 2:case"end":return r.stop()}}),r)})))}};function kt(t){return kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kt(t)}function jt(){jt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},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 k(o||[]);return n(a,"_invoke",{value:x(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(j([])));v&&v!==e&&r.call(v,i)&&(y=v);var g=d.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==kt(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 x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=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 S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,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=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return 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:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Ot(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 Nt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Nt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var At="signUp.completedStepItem.verifyAccount",_t="signUp.completedStepItem.existingCustomer";function It(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(ft,{className:"mb-3"},i().createElement(st,null,i().createElement(x.x,{namespace:_t,phrase:"heading"})),i().createElement(st,null,e?i().createElement(x.x,{phrase:"schoolMessageTitle",namespace:_t,options:{school:r}}):i().createElement(x.x,{phrase:"userMessageTitle",namespace:_t})),i().createElement(pt,null,e?i().createElement(x.x,{phrase:"schoolMessageParagraph",namespace:_t}):i().createElement("a",{href:v.getLoginLink(p._.getRelativeUrl()),className:"btn btn-dark"},"Sign in")),i().createElement(pt,null,i().createElement(x.x,{phrase:"helpText",namespace:_t})," ",i().createElement(L,{href:v.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link",newTab:!0},i().createElement(x.x,{phrase:"helpLink",namespace:_t}))))}var Pt,Tt="signUp.completedStepItem.trialNotAvailable";function Ct(t){return Ct="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},Ct(t)}function Ut(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Ct(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==Ct(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===Ct(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Gt=(Ut(Pt={},D.Available,(function(t){var e=Ot(i().useState(0),2),r=e[0],n=e[1],o=Ot(i().useState(!1),2),a=o[0],l=o[1];if(null==t?void 0:t.email)return i().createElement(ft,null,i().createElement(st,null,i().createElement(x.x,{namespace:At,phrase:"heading"})),i().createElement(pt,null,i().createElement(x.x,{namespace:At,phrase:"message",options:{email:t.email}})),r<1?i().createElement(pt,null,i().createElement(x.x,{namespace:At,phrase:"helpText"})," ",i().createElement("button",{onClick:function(e){return o=this,i=void 0,a=void 0,u=jt().mark((function o(){return jt().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return null==e||e.preventDefault(),o.prev=1,o.next=4,Lt.resendTrialEmail(t.userId,{email:t.email,appLink:t.pageAppLinkString});case 4:n(r+1),o.next=10;break;case 7:o.prev=7,o.t0=o.catch(1),l(!0);case 10:t.logUserAction({},{actionType:c.UserAction.Click,descriptor:c.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"},i().createElement(x.x,{namespace:At,phrase:"helpLink"}))):i().createElement(x.x,{namespace:At,phrase:"resent"}),a&&i().createElement(pt,{className:"mb-0 text-danger"},i().createElement(x.x,{namespace:At,phrase:"resendErrorText"})," ",i().createElement("a",{href:v.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link"},i().createElement(x.x,{namespace:At,phrase:"resendErrorLink"}))))})),Ut(Pt,D.Active,It),Ut(Pt,D.Expired,(function(t){var e=v.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(ft,null,i().createElement(st,null,r?i().createElement(x.x,{namespace:bt,phrase:"schoolMessageTitle",options:{schoolName:n}}):i().createElement(x.x,{namespace:bt,phrase:"userMessageTitle"})),i().createElement(pt,null,i().createElement(x.x,{namespace:bt,phrase:"context"})," ",i().createElement(L,{href:e,className:"info-link",newTab:!0},i().createElement(x.x,{namespace:bt,phrase:"contextLink"}))))})),Ut(Pt,D.NotRequired,It),Ut(Pt,D.Unavailable,(function(t){var e=v.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(ft,null,i().createElement(st,null,i().createElement(x.x,{namespace:Tt,phrase:"heading"})),i().createElement(st,{className:"mb-3"},r?i().createElement(x.x,{namespace:Tt,phrase:"schoolMessage",options:{schoolName:n}}):i().createElement(x.x,{namespace:Tt,phrase:"userMessage"})),i().createElement(pt,null,i().createElement(x.x,{namespace:Tt,phrase:"helpText",options:{link:e}})))})),Ut(Pt,D.Unsupported,(function(t){var e=yt(i().useState(!1),2),r=e[0],n=e[1],o=yt(i().useState(),2),a=o[0],c=o[1],l=yt(i().useState(!1),2),u=l[0],s=l[1];function f(){var e={prospect_id:null==t?void 0:t.prospectId,email:null==t?void 0:t.email,user_type:null==t?void 0:t.userType,organisation_sub_type: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};return Object.keys(e).forEach((function(t){var r;e[t]&&(null===(r=e[t])||void 0===r?void 0:r.length)||delete e[t]})),e}return i().createElement(ft,null,i().createElement(st,{className:"px-2 px-lg-4"},i().createElement(x.x,{namespace:vt,phrase:"schoolMessageTitle"})),i().createElement(pt,null,i().createElement(x.x,{namespace:vt,phrase:"schoolMessageDescription"})),i().createElement(pt,null,u?i().createElement(x.x,{namespace:vt,phrase:"contextLinkAdded"}):i().createElement(q.m,{onClick:function(){return e=this,r=void 0,o=void 0,i=dt().mark((function e(){var r,o;return dt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!u){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,lt.getClient(t.geoLocation);case 4:r=e.sent,n(!0),o=f(),r.setUser(lt.hashedEmail(null==t?void 0:t.email)),r.setUserEmail(null==t?void 0:t.email),r.openSession(),Object.entries(o).forEach((function(t){var e=yt(t,2),n=e[0],o=e[1];return r.setCustomUserAttribute(n,o)})),r.logEvent({type:"product_unsupported",data:o}),r.sendData((function(t){t?(c(void 0),s(!0)):(c(gt("error")),s(!1)),n(!1)}));case 13:case"end":return e.stop()}}),e)})),new(o||(o=Promise))((function(t,n){function a(t){try{l(i.next(t))}catch(t){n(t)}}function c(t){try{l(i.throw(t))}catch(t){n(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(e,r||[])).next())}));var e,r,o,i},className:"btn ".concat(u?"btn-success":"btn-dark"),showSpinner:r},i().createElement(x.x,{namespace:vt,phrase:"contextLink"})),a&&i().createElement("span",{className:"text-danger"},a)))})),Pt);function Ft(t){var e=Gt[t.trialStatus];return i().createElement(e,Object.assign({},t))}function Dt(t){return Dt="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},Dt(t)}function Mt(){Mt=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 k(o||[]);return n(a,"_invoke",{value:x(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(j([])));v&&v!==e&&r.call(v,i)&&(y=v);var g=d.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Dt(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 x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=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 S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,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=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return 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:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Rt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,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 Kt(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)?Kt(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 Kt(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 Bt,$t=new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/),Yt="signUp.enterEmailStepItem",zt=Z.T.encloseNamespace(Yt),Ht=[D.Expired,D.NotRequired,D.Unavailable,D.Unsupported,D.Active];!function(t){t.FourteenDays="trial_14_v1",t.Freemium="freemium_v1"}(Bt||(Bt={}));var Wt=function(t){return function(t){return(null==t?void 0:t.toLowerCase())===n.US}(t)||function(t){return h.includes(t)}(t)?Bt.Freemium:Bt.FourteenDays},Zt=r(99910),qt=r(28329);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 Jt(){Jt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},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 k(o||[]);return n(a,"_invoke",{value:x(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(j([])));v&&v!==e&&r.call(v,i)&&(y=v);var g=d.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,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 x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=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 S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,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=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return 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:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var Qt={search:function(t,e,r,n){var o={Longitude:t.longitude,Latitude:t.latitude};t.query&&(o.Query=t.query),X.b.fetch({url:"/api/prospects/search",data:o,success:e,error:r,always:n})},create:function(t){return e=this,r=void 0,n=void 0,o=Jt().mark((function e(){return Jt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",X.b.asyncFetch({url:"/api/prospects",method:wt.k.POST,data:t}));case 1:case"end":return e.stop()}}),e)})),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())}));var e,r,n,o}};const Xt="j8tBX",te="hQufn",ee="CnoBz",re="GQ_aO";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 oe(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?oe(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oe(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var ie="signUp.searchSchoolStepItem",ae=Z.T.encloseNamespace(ie);function ce(t){var e=t.filteredSchoolsList,r=t.getSchoolName,n=t.onSchoolSuggestionClick;return i().createElement(i().Fragment,null,e.map((function(t){return i().createElement("div",{className:re,key:t.id,onClick:function(){return n(t)}},i().createElement("span",null,r(t)))})))}function le(t){return i().createElement("div",{className:"info-link ".concat("xaEZw"),onClick:t.handleNoSuggestion},i().createElement(x.x,{namespace:ie,phrase:"cantFindSchool"}))}function ue(t){var e,r=ne(i().useState(!0),2),n=r[0],o=r[1],a=ne(i().useState(t.data.schoolName&&t.data.schoolPostCode?t.data.schoolName+", "+t.data.schoolPostCode:t.data.schoolName?t.data.schoolName:""),2),l=a[0],u=a[1],s=ne(i().useState(),2),f=s[0],p=s[1],h=(0,qt.N)(l,250),d=!!(null===(e=t.data)||void 0===e?void 0:e.prospectId),y=n&&!d,m=!n&&!d&&!(null==f?void 0:f.length),v=(null==f?void 0:f.length)&&!d;function g(e){o(!0);var r={latitude:t.data.latitude,longitude:t.data.longitude};e&&e.length&&(r.query=e),Qt.search(r,(function(t){return p(t)}),null,(function(){return o(!1)}))}function b(t){return t.name}function w(){t.nextStep({step:"cant-find-school",prospectId:t.data.prospectId,schoolName:l,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:c.UserAction.Click,descriptor:c.SignUpDescriptors.CantFindSchool,workflowPhase:c.WorkflowPhase.Next})}return i().useEffect((function(){d||(h.length?!d&&h.length>1&&h===l&&g(h):g())}),[h,d]),i().createElement("div",{className:"mb-2 position-relative"},i().createElement("input",{value:l,onChange:function(e){(t.data.schoolName||t.data.prospectId)&&t.clearStepItemData(),e.target.value!==l&&u(e.target.value)},className:"form-control ".concat(v||y||m?te:Xt),type:"text",autoComplete:"off",placeholder:ae("schoolInputPlaceholder"),disabled:t.disabled}),i().createElement("div",{className:"position-absolute w-100"},v?i().createElement("div",{className:ee},i().createElement(ce,{filteredSchoolsList:f,onSchoolSuggestionClick:function(e){u(b(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)},getSchoolName:b}),!m&&i().createElement(le,{handleNoSuggestion:w})):y&&i().createElement("div",{className:ee},i().createElement("div",{className:"".concat("Eo2UF"," py-4 d-flex justify-content-center")},i().createElement(Zt.Spinner,{animation:"border"}))),m&&i().createElement("div",{className:ee},i().createElement(le,{handleNoSuggestion:w}))))}var se=r(10874),fe=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 pe="__googleMapsScriptId";var he;!function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"}(he||(he={}));class de{constructor({apiKey:t,authReferrerPolicy:e,channel:r,client:n,id:o=pe,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||pe,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(!fe(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?he.FAILURE:this.done?he.SUCCESS:this.loading?he.LOADING:he.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 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 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 ve(t){return new de({apiKey:t.apiKey,version:"weekly",libraries:t.libraries,retries:3})}function ge(t){var e={apiKey:t.apiKey,libraries:t.libraries||["places"]},r=ye(i().useState(!1),2),n=r[0],o=r[1],a=ye(i().useState(ve(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(ve(e))}return i().useEffect((function(){u()}),[]),{loader:c,scriptLoaded:n,onGoogleApiReady:u}}function be(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 we(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?we(t,e):void 0}}(t))||e&&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 we(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var xe=function(t){var e,r,n,o,i,a=t.formatted_address,c=be(t.address_components);try{for(c.s();!(i=c.n()).done;){var l,u=i.value,s=be(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 Ee(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Se(t,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 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}}(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 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 ke(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 je(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?je(t,e):void 0}}(t,e)||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 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 Oe="signUp.searchSchoolStepItem",Ne=Z.T.encloseNamespace(Oe);function Ae(t){var e=t.predictions,r=t.getPlaceInfo;return i().createElement(i().Fragment,null,e.map((function(t){return i().createElement("div",{className:re,key:t.place_id,onClick:function(){return r(t)}},t.description)})))}function _e(t){var e,r,n,o,a,u=i().useRef(),f=ke(i().useState((null===(e=t.data)||void 0===e?void 0:e.schoolLocality)||""),2),p=f[0],h=f[1],d=ke(i().useState(!1),2),y=d[0],m=d[1],v=function(t){var e=t.search,r=t.makePredicition,n=t.geoLocation,o=ge({apiKey:t.apiKey}).scriptLoaded,a=Se(i().useState(),2),c=a[0],l=a[1];i().useEffect((function(){o&&l(new google.maps.places.AutocompleteService)}),[o]);var u=(0,qt.N)(e,300),s=Se(i().useState(),2),f=s[0],p=s[1];function h(t,e){e===google.maps.places.PlacesServiceStatus.OK&&t?p(t):p(void 0)}return i().useEffect((function(){if(c)if(0!==(null==u?void 0:u.length)&&r){var t=(null==n?void 0:n.countryCode)||"us";c.getPlacePredictions({input:u,componentRestrictions:{country:t},region:t,types:["locality","sublocality","postal_code"]},h)}else p(void 0)}),[u,r,c]),{localityPredicitions:f,getPlaceInfo:function(t,e,r){new google.maps.places.PlacesService(e.current).getDetails({placeId:t.place_id,fields:["geometry","address_components","formatted_address"],region:n.countryCode},(function(t,e){if(e===google.maps.places.PlacesServiceStatus.OK){var n=t.geometry.location.lng(),o=t.geometry.location.lat(),i=xe(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:y,geoLocation:t.geoLocation,apiKey:t.googleMapsApiKey}),g=v.localityPredicitions,b=v.getPlaceInfo,w=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 Ee(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)?Ee(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=ge(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=xe(o);a(Object.assign(Object.assign({},i),{longitude:n,latitude:r}))}}))}function u(e){t.onPositionError(e)}return{placeDetails:o,onClickGetCurrentLocation:function(){c((function(){window.navigator.geolocation.getCurrentPosition(l,u)}))}}}({apiKey:t.googleMapsApiKey,onPositionError:function(){m(!0)}}),E=w.placeDetails,S=w.onClickGetCurrentLocation;function L(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),h(e)}(o)}i().useEffect((function(){L(E)}),[E]);var k,j=(null==g?void 0:g.length)&&!(null===(n=null===(r=t.data)||void 0===r?void 0:r.schoolLocality)||void 0===n?void 0:n.length),O=window.navigator.geolocation&&!(null===(a=null===(o=t.data)||void 0===o?void 0:o.schoolLocality)||void 0===a?void 0:a.length),N=t.labelClassName||"d-block text-center mb-3 font-weight-normal ".concat("zCAkp");return i().createElement("div",{className:"form-group position-relative"},i().createElement("label",{className:N,htmlFor:"locality-input"},i().createElement(x.x,{namespace:Oe,phrase:"localityInputLabel"})),i().createElement("input",{type:"text",value:p,onChange:function(e){var r,n,o;y||m(!0),((null===(r=t.data)||void 0===r?void 0:r.longitude)||(null===(n=t.data)||void 0===n?void 0:n.latitude)||(null===(o=t.data)||void 0===o?void 0:o.schoolLocality))&&t.clearStepGroupData(),h(e.target.value)},id:"locality-input",className:(k="form-control",j?"".concat(k," ").concat(te):"".concat(k," ").concat(Xt)),ref:u,autoComplete:"off",placeholder:Ne(function(){var e,r,n="LocalityInputPlaceholder";return["gb","gg","im","je","ie"].includes(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode.toLocaleLowerCase())?"uk".concat(n):["nz","au"].includes(null===(r=t.geoLocation)||void 0===r?void 0:r.countryCode.toLocaleLowerCase())?"au".concat(n):"us".concat(n)}()),disabled:t.disabled}),i().createElement("div",{className:"position-absolute w-100"},!!j&&i().createElement("div",{className:function(){var t=ee;return j&&O?"".concat(t," ").concat("E3f3x"):"".concat(t)}()},i().createElement(Ae,{predictions:g,getPlaceInfo:function(t){y&&m(!1),b(t,u,L)}})),O&&i().createElement("div",{className:j?ee:"d-flex"},i().createElement(se.h,{onClick:function(e){e.preventDefault(),m(!1),S(),t.logUserAction({},{actionType:c.UserAction.Click,descriptor:c.SignUpDescriptors.UseMyLocation})},svgName:l.vn.LocationCrosshair,className:"btn btn-link info-link bg-white",svgSize:s.S.Small},i().createElement(x.x,{namespace:Oe,phrase:"locationButtonText"})))))}function Ie(t){return Ie="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},Ie(t)}function Pe(){Pe=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 k(o||[]);return n(a,"_invoke",{value:x(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(j([])));v&&v!==e&&r.call(v,i)&&(y=v);var g=d.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Ie(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 x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=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 S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,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=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return 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:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Te(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 Ue,Ge="signUp.searchSchoolStepItem",Fe=Z.T.encloseNamespace(Ge);!function(t){t.Staff="staff",t.Learner="learner"}(Ue||(Ue={}));const De={userTypeOption:"tbNZB",selected:"Ehs7R"};function Me(t){return i().createElement("div",{className:"d-flex flex-column justify-content-between h-100 cursor-pointer overflow-hidden p-3 mx-auto ".concat(De.userTypeOption," ").concat(t.selected?De.selected:""),onClick:function(){return t.onClick(t.type)}},i().createElement("img",{src:t.imageSrc,className:"rounded-top mx-auto pb-2"}),i().createElement("div",{className:"d-flex justify-content-center align-items-center text-dark py-2 font-weight-bold"},i().createElement("h3",{className:"".concat(De.userTypeOptionText," mb-0"),dangerouslySetInnerHTML:{__html:t.buttonText}})))}var Re,Ke="signUp.selectUserTypeStepItem",Be=Z.T.encloseNamespace(Ke);!function(t){t.Published="Published",t.Draft="Draft"}(Re||(Re={}));var $e=["Primary","Secondary","K12","Special","TAFE","University"],Ye=["Elementary","Middle School","High School","College","Other"],ze={au:$e,nz:$e,uk:["Primary","Secondary","Primary & Secondary","Special","Sixth Form College","FE College","University","Other"],us:Ye};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 We(){We=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 k(o||[]);return n(a,"_invoke",{value:x(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(j([])));v&&v!==e&&r.call(v,i)&&(y=v);var g=d.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,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 x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=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 S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,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=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return 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:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Ze(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 qe(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qe(t,e):void 0}}(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 qe(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Ve="signUp.cantFindSchoolStepItem",Je=Z.T.encloseNamespace(Ve),Qe={"select-type":function(t){function e(e){t.logUserAction({userType:e},{actionType:c.UserAction.Click,workflowPhase:c.WorkflowPhase.Next,descriptor:e===Ue.Staff?c.SignUpDescriptors.Educator:c.SignUpDescriptors.Student}),t.nextStep({step:"enter-email",userType:e})}return i().createElement(i().Fragment,null,i().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto"},i().createElement("h4",{className:"text-center font-weight-500 mb-3"},i().createElement(x.x,{namespace:Ke,phrase:"heading"})),i().createElement("p",{className:"text-sm text-center"},i().createElement(x.x,{namespace:Ke,phrase:"subHeading"}))),i().createElement("div",{className:"row mx-auto"},i().createElement("div",{className:"col-lg-6 flex-grow-1 mb-3 mb-lg-0"},i().createElement(Me,{type:Ue.Staff,buttonText:Be("educatorButtonText"),imageSrc:f.W.SignUp.EDUCATOR,onClick:e,selected:t.userType===Ue.Staff})),i().createElement("div",{className:"col-lg-6 flex-grow-1"},i().createElement(Me,{type:Ue.Learner,buttonText:Be("studentButtonText"),imageSrc:f.W.SignUp.STUDENT,onClick:e,selected:t.userType===Ue.Learner}))))},"enter-email":function(t){var e,r,n=Rt(i().useState(!1),2),o=n[0],a=n[1],l=Rt(i().useState((null==t?void 0:t.email)||""),2),u=l[0],s=l[1],f=Rt(i().useState(),2),h=f[0],d=f[1],y=(e=t.geoLocation,r=v.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=Mt().mark((function e(){var r;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u.length?$t.test(u)||(d(zt("invalidEmailErrorText")),0):(d(zt("enterEmailErrorText")),0)){e.next=2;break}return e.abrupt("return");case 2:return a(!0),d(""),e.prev=4,e.next=7,Lt.checkTrialStatus({email:u});case 7:r=e.sent,e.next=14;break;case 10:return e.prev=10,e.t0=e.catch(4),d(zt("trialStatusErrorText")),e.abrupt("return");case 14:if(a(!1),r.status!==M.InvalidEmail){e.next=18;break}return d(zt("invalidEmailErrorText")),e.abrupt("return");case 18:if(t.logUserAction({},{actionType:c.UserAction.Click,workflowPhase:c.WorkflowPhase.Next,descriptor:c.SignUpDescriptors.EnterEmail}),!Ht.includes(r.status)){e.next=22;break}return t.complete({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())}))}()}return i().createElement("div",{className:"d-flex justify-content-between flex-column mx-auto h-100"},i().createElement("div",null,i().createElement("h4",{className:"text-center font-weight-500 mb-3"},i().createElement(x.x,{namespace:Yt,phrase:"heading"})),i().createElement("form",{className:"d-flex justify-content-center flex-column",onSubmit:m},i().createElement("label",{className:"text-left mb-1",htmlFor:"email-input"},i().createElement(x.x,{namespace:Yt,phrase:"emailInputLabel"})),i().createElement("input",{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 rounded ".concat(h&&"is-invalid"),placeholder:zt("emailInputPlaceholder"),autoComplete:"false",autoCorrect:"false"}),h&&i().createElement(i().Fragment,null,i().createElement("small",{className:"text-danger mt-2"},h),i().createElement("small",{className:"text-dark mt-1"},i().createElement(x.x,{phrase:"emailInputHelpText",namespace:Yt}),i().createElement(L,{href:y,onClick:function(){t.logUserAction({},{actionType:c.UserAction.Click,descriptor:c.SignUpDescriptors.ContactUs})},className:"info-link pl-1",newTab:!0},i().createElement(x.x,{phrase:"emailInputHelpLinkText",namespace:Yt})))),i().createElement(q.m,{showSpinner:o,className:"btn btn-dark mt-2",disabled:o,onClick:m},i().createElement(x.x,{namespace:Yt,phrase:"nextButtonText"}))),i().createElement("div",{className:"text-md mt-2"},i().createElement(N,{link:v.getLoginLink(p._.getRelativeUrl()),onClick:function(){t.logUserAction({},{actionType:c.UserAction.Click,descriptor:c.SignUpDescriptors.SignIn})}}))))},"find-school":function(t){var e=t.email,r=t.userType,n=Te(i().useState({schoolLocality:t.schoolLocality,country:t.country,longitude:t.longitude,latitude:t.latitude}),2),o=n[0],a=n[1],c=Te(i().useState(),2),l=c[0],u=c[1],s=Te(i().useState(),2),f=s[0],p=s[1],h=Te(i().useState(!1),2),d=h[0],y=h[1],m=Te(i().useState(!1),2),v=m[0],g=m[1],b=Te(i().useState(!1),2),w=b[0],E=b[1];function S(){if(!o||!e||!r)return!1;var t=o.prospectId;return!!(e&&r&&t)}function L(t){g(t),E(t),y(t)}function k(t,e){"prospectId"===t&&e&&(y(!0),Lt.checkProspectTrialStatus({prospectId:e.toString()},(function(t){u(t.status)}),(function(){console.log("error")}),(function(){y(!1)}))),a((function(r){return Object.assign(Object.assign({},r),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Ie(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==Ie(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===Ie(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},t,e))}))}function j(){k("prospectId",void 0),k("schoolName",""),k("schoolPostCode",void 0),p(void 0)}return i().createElement(i().Fragment,null,i().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto mb-2"},i().createElement("h4",{className:"text-center font-weight-500 mb-2"},i().createElement(x.x,{namespace:Ge,phrase:"groupHeading"})),i().createElement("p",{className:"text-center"},i().createElement(x.x,{namespace:Ge,phrase:"groupSubHeading"}))),i().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto"},i().createElement("form",{className:"d-flex justify-content-center flex-column"},i().createElement(_e,{data:o,setDataProperty:k,clearStepGroupData:function(){k("schoolLocality",void 0),a((function(t){return Object.assign(Object.assign({},t),{longitude:undefined,latitude:undefined})})),k("city",void 0),k("province",void 0),k("country",void 0),j(),p(void 0)},disabled:v,geoLocation:t.geoLocation,labelClassName:"d-none",logUserAction:t.logUserAction,googleMapsApiKey:t.googleMapsApiKey}),!!(o&&o.schoolLocality&&o.longitude&&o.latitude)&&i().createElement(ue,{data:o,setDataProperty:k,clearStepItemData:j,nextStep:t.nextStep,currentStepId:t.currentStepId,disabled:w,logUserAction:t.logUserAction}),f&&i().createElement("p",{className:"text-danger mb-2"},f),S()&&i().createElement(q.m,{className:"btn btn-dark font-weight-bold",onClick:function(){return n=this,i=void 0,a=void 0,c=Pe().mark((function n(){var i;return Pe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!d){n.next=2;break}return n.abrupt("return");case 2:if(S()){n.next=5;break}return p(Fe("cannotSubmitFormError")),n.abrupt("return");case 5:if(l===D.Active||l===D.Available){n.next=8;break}return t.complete(Object.assign({trialStatus:l,trialCreated:!1},o)),n.abrupt("return");case 8:return L(!0),n.prev=9,n.next=12,Lt.createTrial({userType:r,email:e,prospectId:null==o?void 0:o.prospectId,appLink:t.pageAppLinkString,accessPolicy:Wt(o.country)});case 12:i=n.sent,n.next=20;break;case 15:return n.prev=15,n.t0=n.catch(9),p(Fe("requestTrialError")),L(!1),n.abrupt("return");case 20:if(i.id&&i.dateCreated){n.next=24;break}return p(Fe("requestTrialError")),L(!1),n.abrupt("return");case 24:k("userId",i.id),t.complete(Object.assign({userId:i.id,trialCreated:!0,trialStatus:l},o));case 26:case"end":return n.stop()}}),n,null,[[9,15]])})),new(a||(a=Promise))((function(t,e){function r(t){try{l(c.next(t))}catch(t){e(t)}}function o(t){try{l(c.throw(t))}catch(t){e(t)}}function l(e){var n;e.done?t(e.value):(n=e.value,n instanceof a?n:new a((function(t){t(n)}))).then(r,o)}l((c=c.apply(n,i||[])).next())}));var n,i,a,c},showSpinner:v||w||d,disabled:v||w||d},i().createElement(x.x,{namespace:Ge,phrase:"submitButtonText"})))))},"cant-find-school":function(t){var e,r,n,o=Ze(i().useState({prospectId:t.prospectId,schoolName:t.schoolName,schoolType:t.schoolType,schoolLocality:t.schoolLocality,country:t.country}),2),a=o[0],c=o[1],l=Ze(i().useState(),2),u=l[0],s=l[1],f=Ze(i().useState(!1),2),p=f[0],h=f[1],d=(r=a.country||(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode),n=y(r),ze[n]||Ye);function m(){var t=a.schoolName,e=a.schoolType,r=a.country;return!!(t&&e&&r)}function v(t,e){c((function(r){return Object.assign(Object.assign({},r),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==He(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==He(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===He(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},t,e))}))}function g(e){return r=this,n=void 0,o=void 0,i=We().mark((function r(){var n,o,i;return We().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.preventDefault(),m()){r.next=3;break}return r.abrupt("return");case 3:return h(!0),r.prev=4,r.next=7,Qt.create({name:a.schoolName,status:Re.Draft,countryCode:a.country,prospectType:a.schoolType,city:a.city,postCode:a.schoolPostCode,province:a.province});case 7:if((n=r.sent).id){r.next=12;break}return h(!1),s(Je("submissionErrorText")),r.abrupt("return");case 12:r.next=19;break;case 14:return r.prev=14,r.t0=r.catch(4),h(!1),s(Je("submissionErrorText")),r.abrupt("return");case 19:return r.prev=19,r.next=22,Lt.createTrial({userType:t.userType,email:t.email,prospectId:n.id,appLink:t.pageAppLinkString,accessPolicy:Wt(a.country)});case 22:if((o=r.sent).id){r.next=27;break}return h(!1),s(Je("submissionErrorText")),r.abrupt("return");case 27:t.complete({email:t.email,userId:o.id,prospectId:n.id,schoolName:a.schoolName,trialStatus:D.Available,trialCreated:!0}),r.next=38;break;case 30:if(r.prev=30,r.t1=r.catch(19),r.t1.body){r.next=36;break}return h(!1),s(Je("submissionErrorText")),r.abrupt("return");case 36:400===(i=r.t1).body.status&&"trial-not-available"===i.body.type&&t.complete(Object.assign({trialStatus:D.Unsupported,trialCreated:!1},a));case 38:case"end":return r.stop()}}),r,null,[[4,14],[19,30]])})),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}return i().createElement("form",{onSubmit:g},i().createElement("div",{className:"d-flex flex-column justify-content-center mx-auto mb-2"},i().createElement("h4",{className:"text-center font-weight-500 mb-2"},i().createElement(x.x,{namespace:Ve,phrase:"heading"})),i().createElement("p",{className:"text-center"},i().createElement(x.x,{namespace:Ve,phrase:"subHeading"}))),i().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto"},i().createElement("div",{className:"form-group"},i().createElement("label",{className:"d-block",htmlFor:"school-name-input"},i().createElement(x.x,{namespace:Ve,phrase:"schoolNameInputLabel"})),i().createElement("input",{type:"text",value:(null==a?void 0:a.schoolName)||"",onChange:function(t){v("schoolName",t.target.value)},id:"school-name-input",className:"form-control",autoComplete:"off",placeholder:Je("schoolNameInputPlaceholder")})),i().createElement("div",{className:"form-group"},i().createElement("label",{className:"d-block",htmlFor:"school-type-select"},i().createElement(x.x,{namespace:Ve,phrase:"schoolTypeInputLabel"})),i().createElement("select",{id:"school-type-select",className:"form-control ".concat(a.schoolType?"":"text-muted"),autoComplete:"off",value:a.schoolType||"none",onChange:function(t){v("schoolType",t.target.value)}},i().createElement("option",{value:"none",className:"text-muted",disabled:!0},Je("schoolTypeInputDefault")),d.map((function(t){return i().createElement("option",{value:t,key:t,className:"text-dark"},t)})))),i().createElement(_e,{data:a,setDataProperty:v,clearStepGroupData:function(){v("schoolLocality",void 0),c((function(t){return Object.assign(Object.assign({},t),{longitude:undefined,latitude:undefined})})),v("city",void 0),v("province",void 0),v("country",void 0),v("schoolName",""),s("")},disabled:!1,labelClassName:"d-block",geoLocation:t.geoLocation,logUserAction:t.logUserAction,googleMapsApiKey:t.googleMapsApiKey}),i().createElement("div",{className:"text-danger mb-3"},u||""),m()&&i().createElement(q.m,{className:"btn btn-dark font-weight-bold",onClick:g,showSpinner:p,disabled:p},i().createElement(x.x,{namespace:Ve,phrase:"submitButtonText"}))))},completed:function(t){return i().useEffect((function(){var e={actionType:c.UserAction.Create,descriptor:c.SignUpDescriptors.DeadEnd,workflowPhase:c.WorkflowPhase.Discard};t.trialCreated&&(e.descriptor=c.SignUpDescriptors.TrialCreated,e.workflowPhase=c.WorkflowPhase.Complete),t.logUserAction({},e)}),[]),t.trialStatus&&t.email?i().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto px-2"},i().createElement(W,{trialStatus:t.trialStatus}),i().createElement(Ft,Object.assign({},t))):i().createElement(i().Fragment,null)}};function Xe(t){var e=t.state,r=t.layoutMapping,n=t.back,o=t.nextStep,a=t.complete,c=t.hasPreviousStep,l=t.logUserAction,u=Qe[e.currentStepId],s=Object.assign(Object.assign({},e),{geoLocation:t.geoLocation,googleMapsApiKey:t.googleMapsApiKey,pageAppLinkString:t.pageAppLinkString,back:n,nextStep:o,complete:a,logUserAction:l}),f=r[e.currentStepId];return f?i().createElement(f,{geoLocation:t.geoLocation,currentStep:e.currentStepId,previousStep:n,closeApp:t.close,logUserAction:l,hasPreviousStep:c},i().createElement(u,Object.assign({},s))):i().createElement(u,Object.assign({},s))}var tr=r(1048);function er(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function rr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function nr(t,e){switch(e.type){case"nextStep":return function(t,e){var r,n=Object.assign(Object.assign({},t),{previousStepIds:[].concat((r=t.previousStepIds,function(t){if(Array.isArray(t))return rr(t)}(r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||function(t,e){if(t){if("string"==typeof t)return rr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?rr(t,e):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[t.currentStepId]),currentStepId:e.step});if("select-type"===e.step)return Object.assign({},n);if("enter-email"===e.step)return Object.assign(Object.assign({},n),{userType:e.userType});if("find-school"===e.step)return Object.assign(Object.assign({},n),{email:e.email});if("cant-find-school"===e.step)return Object.assign(Object.assign({},n),{prospectId:e.prospectId,schoolName:e.schoolName,schoolLocality:e.schoolLocality,country:e.country,longitude:e.longitude,latitude:e.latitude,city:e.city,province:e.province});if("completed"===e.step){var o=tr.t.omit(e,["type","step"]);return o=tr.t.removeEmptyKeys(o),Object.assign(Object.assign({},n),o)}}(t,e);case"back":return function(t){var e,r=function(t){if(Array.isArray(t))return er(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 er(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?er(t,e):void 0}}(e)||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 or(t){return or="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},or(t)}function ir(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 ar(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ar(t,e):void 0}}(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 ar(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function 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 lr(t){var e={};return Object.keys(t).forEach((function(r){var n=t[r];tr.t.isObject(n)&&null!==n&&!Array.isArray(n)?Object.assign(e,lr(n)):e[r]=n})),e}function ur(t){var e=t.label,r=t.item,n=r;return Array.isArray(r)&&(n=n.join(" -> ")),i().createElement("div",{className:"pb-1"},e,": ",i().createElement("b",{className:"text-white"},n))}function sr(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 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}}(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 lr(o)}),[o]);return n&&i().createElement(i().Fragment,null,i().createElement("div",{className:"position-fixed p-4 ".concat("muxxq")},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("pbBua")},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(ur,{key:t,label:t,item:u[t]})})))))}function fr(t){var e,r=(e=t.type,$[e]),n=function(t){var e=t.location,r=t.initialValues,n=t.onStepUpdate,o=Object.assign({currentStepId:"select-type",previousStepIds:[]},r),a=ir(i().useReducer(nr,o),2),l=a[0],u=a[1];return i().useEffect((function(){null==n||n(l.currentStepId)}),[l.currentStepId]),{state:l,back:function(){u({type:"back"})},nextStep:function(t){u(Object.assign({type:"nextStep"},t))},complete:function(t){u(Object.assign({type:"nextStep",step:"completed"},t))},hasPreviousStep:!!l.previousStepIds.length,logUserAction:function(t,r){var n=Object.assign(Object.assign({currentStepId:l.currentStepId},tr.t.omit(l,["email","longitude","latitude","trialCreated"])),t),o=Object.entries(n).filter((function(t){return void 0!==ir(t,2)[1]})).reduce((function(t,e){var r=ir(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"!==or(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==or(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===or(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))}),{});E.k.logUserAction(o,Object.assign({entity:c.EntityType.SignUp,location:e},r))}}}({location:t.location,initialValues:t.initialValues,onStepUpdate:t.onStepUpdate}),o=n.back,a=n.nextStep,l=n.complete,u=n.hasPreviousStep,s=n.state,f=n.logUserAction,p={state:s,layoutMapping:r,googleMapsApiKey:t.googleMapsApiKey,geoLocation:t.geoLocation,back:o,nextStep:a,complete:l,hasPreviousStep:u,logUserAction:f,close:t.close,pageAppLinkString:t.pageAppLinkString};return i().createElement(i().Fragment,null,i().createElement(Xe,Object.assign({},p)),i().createElement(sr,{developmentEnv:!1,objects:Object.assign(Object.assign(Object.assign({},s),{pageAppLinkString:t.pageAppLinkString}),t.geoLocation)}))}},2903:(t,e,r)=>{var n;r.d(e,{c:()=>n}),function(t){t.Popup="popup-form",t.FullPage="full-page-form"}(n||(n={}))},15661:(t,e,r)=>{r.d(e,{b:()=>g});var n=r(99940);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function c(t){var e="function"==typeof Map?new Map:void 0;return c=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 l(t,arguments,f(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s(n,t)},c(t)}function l(t,e,r){return l=u()?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&&s(o,r.prototype),o},l.apply(null,arguments)}function u(){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 s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(c,t);var e,r,n,o=(e=c,r=u(),function(){var t,n=f(e);if(r){var o=f(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return a(this,t)});function c(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Error";return i(this,c),(e=o.call(this,r)).body=t,e}return n=c,Object.defineProperty(n,"prototype",{writable:!1}),n}(c(Error)),h=r(42976);function d(t){return d="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},d(t)}function y(){y=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 O(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 h(){}function m(){}var v={};l(v,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(N([])));b&&b!==e&&r.call(b,i)&&(v=b);var w=m.prototype=p.prototype=Object.create(v);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(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"==d(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=L(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 L(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,L(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var 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 k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function N(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=m,n(w,"constructor",{value:m,configurable:!0}),n(m,"constructor",{value:h,configurable:!0}),h.displayName=l(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},x(E.prototype),l(E.prototype,a,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(w),l(w,c,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=N,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return 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),j(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:N(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var m=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 v(t){var e={method:n.k.GET,headers:{"Content-type":"application/json"}};t.method&&(e=Object.assign(Object.assign({},e),{method:t.method})),t.init&&(e=Object.assign(Object.assign({},e),t.init));var r=t.url;return e.method===n.k.GET&&t.data?r=h._.prepareQuery(r,t.data):t.data&&(e=Object.assign(Object.assign({},e),{body:JSON.stringify(t.data)})),{init:e,url:r}}var g={asyncFetch:function(t){return m(this,void 0,void 0,y().mark((function e(){var r,n,o;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=v(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 p(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 m(this,void 0,void 0,y().mark((function e(){var r,n;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=v(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=v(t);return fetch(e.url,e.init).then((function(t){if(204!==t.status)return t.json()})).then((function(e){return t.success&&t.success(e),e})).catch((function(e){return t.error&&t.error(),e})).finally((function(){t.always&&t.always()}))}))}},42976:(t,e,r)=>{r.d(e,{_:()=>n});var n={prepareQuery:function(t,e){var r=t;return Object.keys(e).forEach((function(t,n){e[t]&&(r+=0===n?"?":"&",r+="".concat(t,"=").concat(encodeURIComponent(e[t])))})),r},getRelativeUrl:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=window.location.pathname,n=r;return t&&(n+=window.location.search),e?encodeURIComponent(n):n}}},82301:(t,e,r)=>{r.d(e,{M:()=>s});var n=r(1024),o=r.n(n),i=r(15661);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function c(){c=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",l=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),c=new O(o||[]);return n(a,"_invoke",{value:S(t,r,c)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var h={};function d(){}function y(){}function m(){}var v={};s(v,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(N([])));b&&b!==e&&r.call(b,i)&&(v=b);var w=m.prototype=d.prototype=Object.create(v);function x(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function o(n,i,c,l){var u=p(t[n],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==a(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,c,l)}),(function(t){o("throw",t,c,l)})):e.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return o("throw",t,c,l)}))}l(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 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=L(a,r);if(c){if(c===h)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=p(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function L(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,L(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=p(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var 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,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function N(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return y.prototype=m,n(w,"constructor",{value:m,configurable:!0}),n(m,"constructor",{value:y,configurable:!0}),y.displayName=s(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},x(E.prototype),s(E.prototype,l,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(w),s(w,u,"Generator"),s(w,i,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=N,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return 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,h):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),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:N(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function l(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 u=["us","au","nz","gb","gg","im","je","ie"];function s(){var t,e,r=(t=o().useState(null),e=2,function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,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 l(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)?l(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),n=r[0],a=r[1];function s(t){var e;u.includes(null===(e=null==t?void 0:t.countryCode)||void 0===e?void 0:e.toLowerCase())?a(t):a({countryCode:"us"})}return o().useEffect((function(){!function(){var t,e,r,o;t=this,e=void 0,r=void 0,o=c().mark((function t(){return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,t.next=5,i.b.fetch({url:"/api/geolocation"});case 5:s(t.sent),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(2),s(null);case 12:case"end":return t.stop()}}),t,null,[[2,9]])})),new(r||(r=Promise))((function(n,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(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}l((o=o.apply(t,e||[])).next())}))}()}),[]),n}},26392:(t,e,r)=>{r.d(e,{Z:()=>n});const n={zIndex1:"Hpi0T",logo:"JkF9k",modalBody:"CmPcN",leftHalfLayout:"KsojV",withBg:"TJ9fO"}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[2132],{71020:(e,t,n)=>{n.d(t,{_:()=>u});var r=n(1024),a=n(99910),i=n(64038),o=n(83914),l=n(58130);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e){var t,n,u=(t=i.useInView(),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,a=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=u[0],d=u[1];return r.useEffect((function(){var t;e.fetchOnScroll&&d&&!e.isFetching&&(null===(t=e.fetchNext)||void 0===t||t.call(e,e.nextCursor))}),[d,e.isFetching]),r.createElement("div",{className:"p-3 text-center ".concat("VwD1b"),ref:s},e.isFetching?r.createElement(a.Spinner,{as:"span",animation:"border",role:"status",className:"eJ85e"}):r.createElement(o.x,{svgName:l.vn.ChevronDown,className:"svg-container cursor-pointer",size:o.S.Large,onClick:function(){var t;return null===(t=e.fetchNext)||void 0===t?void 0:t.call(e,e.nextCursor)}}))}u.defaultProps={fetchOnScroll:!1}},74696:(e,t,n)=>{n.d(t,{S:()=>u});var r=n(1024),a=n.n(r),i=n(99910),o=n(86764),l=n(81514);const c={partialName:"SicQQ",partialDescription:"dPGMq",partialThumbnail:"vZrnb",partialDragHandle:"iq73R"};function u(e){return a().createElement(a().Fragment,null,Array(e.numVideos).fill(null).map((function(t,n){return a().createElement(s,Object.assign({key:n},e))})))}function s(e){var t=(0,l.V)(),n=t===o.r.XS,r=t===o.r.SM||t===o.r.MD,u=e.withReordering&&!n;return a().createElement(i.Row,{className:"py-2"},a().createElement(i.Col,{xs:n?12:r?4:3,className:"flex-column align-items-flex-start mb-1"},a().createElement(i.Row,null,!!u&&a().createElement("div",{className:"d-flex align-items-center justify-content-center col-2"},a().createElement("div",{className:"partial-loading-background ".concat(c.partialDragHandle)})),a().createElement(i.Col,{xs:u?10:12},a().createElement("div",{className:"partial-loading-background rounded-lg ".concat(c.partialThumbnail)})))),a().createElement(i.Col,{xs:n?12:r?8:9},a().createElement("div",{className:"partial-loading-background ".concat(c.partialSeriesLink)}),a().createElement("div",{className:"partial-loading-background mb-1 ".concat(c.partialName)}),a().createElement("div",{className:"partial-loading-background ".concat(c.partialDescription)}),a().createElement("div",{className:"partial-loading-background ".concat(c.partialBadges)}),a().createElement("div",{className:"partial-loading-background ".concat(c.partialActions)})))}u.defaultProps={numVideos:15}},94644:(e,t,n)=>{n.d(t,{r:()=>s});var r=n(81886),a=n(50242),i=n(67058),o=n(49075),l=n(14553),c=n(49267),u={notFound:i.d,forbidden:{rating:l.q,yearLevel:l.q,region:c.a,privacy:l.q},badRequest:o._};function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e){var i;i="number"==typeof e?e:e.status;var o=Object.assign(Object.assign({},u),t);i&&r.Q.ErrorHelper.isStatusCodeError(i)&&(i!==a.o.NotFound?i!==a.o.Forbidden?n.badRequest||r.Q.ErrorHelper.throw(new o.badRequest):n.forbidden||r.Q.ErrorHelper.throw(new o.forbidden.privacy):n.notFound||r.Q.ErrorHelper.throw(new o.notFound))}}},39902:(e,t,n)=>{n.d(t,{f:()=>u});var r=n(1024),a=n.n(r),i=n(58566),o=n(20354);function l(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){var n,r,u=(n=a().useState([]),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,a=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}(n,r)||l(n,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],d=u[1];a().useEffect((function(){if(null==e?void 0:e.length){var t=function(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(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.")}()}(s);t.push([]),e.forEach((function(e){t.find((function(t){return t.find((function(t){return t===e}))}))||t[t.length-1].push(e)})),d(t.filter((function(e){return e.length})))}}),[null==e?void 0:e.length]);var f=(0,i.useDispatch)(),m=(0,i.useSelector)((function(e){return e}));if(a().useEffect((function(){s.forEach((function(e){var n=t(e);o.a.getResponse(m,n.key).shouldFetch&&o.a.fetch(f,n)}))}),[null==s?void 0:s.length]),!(null==s?void 0:s.length))return{items:null,isFetching:!1};var v={},h={};return s.forEach((function(e,n){var r=t(e),a=o.a.getResponse(m,r.key);h[n]=a,a.data&&a.data.forEach((function(e){return v[e.id]=e}))})),{items:Object.keys(h).some((function(e){return!!h[e].data}))?v:null,isFetching:!!Object.keys(h).some((function(e){return h[e].isFetching}))}}},63936:(e,t,n)=>{n.d(t,{K:()=>u});var r=n(1024),a=n(50242),i=n(79014),o=n(45719),l=n(8843);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n,u,s,d){var f,m,v=(f=(0,r.useState)(0),m=2,function(e){if(Array.isArray(e))return e}(f)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,a=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}(f,m)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(f,m)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=v[0],p=v[1],g=t,y=(0,o.P)((function(t){if(!e)return null;var n=e(t);return n?n.key:null}),u,s);return(0,l.M)({fetchNextPage:function(){if(t&&e&&y)return p((function(e){return e+1})),g(y.nextCursor)},hasMore:!!(null==y?void 0:y.nextCursor),isFetching:null==y?void 0:y.isFetching,scrollContainer:d}),(0,r.useEffect)((function(){y&&y.shouldInitialFetch&&t&&(g(),p((function(e){return e+1})))}),[null==y?void 0:y.shouldInitialFetch,t]),(0,r.useEffect)((function(){var e,t;if((null==y?void 0:y.statusCode)&&i.q.isFunction(n)){var r=+(null===(t=null===(e=y.statusCode)||void 0===e?void 0:e.toString())||void 0===t?void 0:t.substr(0,1));r!==a.k.ClientError&&r!==a.k.ServerError||n(h,y.statusCode)}}),[null==y?void 0:y.statusCode]),{items:null==y?void 0:y.items,hasMore:!!(null==y?void 0:y.nextCursor),nextCursor:null==y?void 0:y.nextCursor,isFetching:null==y?void 0:y.isFetching,totalItems:null==y?void 0:y.totalItems}}},8843:(e,t,n)=>{n.d(t,{M:()=>i});var r=n(1024),a=n(79014);function i(e){var t=function(){if(!e.isFetching){if(e.scrollContainer){var t=e.scrollContainer;if(t.getBoundingClientRect().height+t.scrollTop<t.scrollHeight-400)return}else if(window.innerHeight+document.documentElement.scrollTop<document.documentElement.scrollHeight-400)return;e.fetchNextPage()}};(0,r.useEffect)((function(){var n=a.q.throttle(t,200),r=e.scrollContainer||window;return e.hasMore&&r.addEventListener("scroll",n),function(){return r.removeEventListener("scroll",n)}}),[e.hasMore,e.fetchNextPage,e.scrollContainer])}},45719:(e,t,n)=>{n.d(t,{F:()=>c,P:()=>u});var r=n(1024),a=n(58566),i=n(20354),o=n(79014);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var c={items:[],shouldInitialFetch:!1,nextCursor:null,isFetching:!1,statusCode:n(50242).o.Ok,hasCompleted:!0,totalItems:0};function u(e,t,n){function c(e){if(e)return o.q.isFunction(t)?t(e):e.data}function u(e){var t,r;if(e)return n?n(e):null===(r=null===(t=e.pagination)||void 0===t?void 0:t.cursors)||void 0===r?void 0:r.next}return(0,a.useSelector)((0,r.useMemo)((function(){return function(t){if(o.q.isFunction(e)){for(var n=e,r=o.q.isFunction(e)&&n(),a=r&&i.a.getResponse(t,r),s=a&&a.isFetching,d=a&&a.statusCode,f=a&&a.hasCompleted,m=a&&a.shouldFetch,v=c(a&&a.data),h=u(a&&a.data),p=function(e){var t;if(e)return null===(t=e)||void 0===t?void 0:t.count}(a&&a.data);h&&(s=(a=i.a.getResponse(t,n(h))).isFetching,d=a.statusCode,f=a.hasCompleted,!a.shouldFetch);){var g=c(a.data);g&&v.push.apply(v,function(e){if(Array.isArray(e))return l(e)}(E=g)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(E)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(E)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var y=u(a.data);h=y===h?null:y}var b={shouldInitialFetch:m,items:v,nextCursor:h,isFetching:s,statusCode:d,hasCompleted:f};return"number"==typeof p&&(b.totalItems=p),b}var E}}),[e]))}},87821:(e,t,n)=>{n.d(t,{p:()=>a});var r=n(33192),a={userVideoHistory:function(e,t,n,a){var i="video:history",o="{gateway}/v1/users/me/watch-history";return e&&(i+=":".concat(e),o+="?cursor=".concat(e)),{key:i,url:o,formatData:function(e){return{data:e.data.map((function(e){var t=r.utc(e.lastTimeWatched).local().format(),n=r(t).format("YYYY-MM-DD");return Object.assign(Object.assign({},e),{lastTimeWatched:t,lastDateWatched:n})})),pagination:e.pagination}},success:t,error:n,always:a}},videoHistory:function(e,t,n,r,a){var i=e.sort().map((function(e){return"videoId=".concat(e)}));return{key:"video:history:videos:".concat(i.join("&")),url:"{gateway}/v1/videos/history?".concat(i.join("&")),normalizeOptions:{namespace:t},formatData:function(e){return(null==e?void 0:e.length)?e.map((function(e){return{id:e.videoId,lastProgressPoint:e.lastProgressPoint}})):e},success:n,error:r,always:a}}}},89885:(e,t,n)=>{n.r(t),n.d(t,{WatchHistoryView:()=>Y});var r=n(1024),a=n.n(r),i=n(58566),o=n(20354),l=n(23049),c=n(23481),u=n(94644),s=n(69883),d=n(51365),f=n(31949),m=n(83345),v=n(71020),h=n(63936),p=n(39902),g=n(1575),y=n(11025),b=n(65858),E=n(65986),S=n(97037),w=n(22902),C=n(16714),F=n(97816),A=n(87821),k=n(33192),I=n(75896),O=n(28400),j=n(13231),N=n(97291),x=n(14070),H=n(22490);function P(e){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(e)}var T="watchHistory.watchHistoryVideoList",M=function(e){return{application:N.O.SERIES,action:x.e.Series.SERIES,args:[e.id,O.m.slugify(e.name)]}};function D(e){var t=I.m.groupBy(e.videoHistory,"lastDateWatched"),n={},a=Object.keys(t).sort().reverse();a.forEach((function(r){n[r]=t[r].map((function(t){var n=e.videos.find((function(e){return e.id.toString()===t.videoId.toString()}));return n?Object.assign(Object.assign({},n),{lastProgressPoint:t.lastProgressPoint}):null})).filter(Boolean)}));var i=a.reduce((function(e,t){var r,a,i,o,l=n[t].length,c=l+(null!==(r=e.runningTotal)&&void 0!==r?r:0);return Object.assign(Object.assign({},e),(a={runningTotal:c},o=c-l,(i=function(e){var t=function(e,t){if("object"!==P(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==P(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===P(t)?t:String(t)}(i=t))in a?Object.defineProperty(a,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):a[i]=o,a))}),{});return r.createElement(r.Fragment,null,a.map((function(t){return n[t].length?r.createElement("div",{key:t,className:"pb-3"},r.createElement("h2",{className:"h4"},function(e){var t=k().diff(e,"days");return 0===t?c.T.getPhrase(T,"today"):1===t?c.T.getPhrase(T,"yesterday"):k(e).format("Do MMMM")}(t)),r.createElement(j.E4,{videos:n[t],getVideoAppLink:H.W.getAppLink,getSeriesAppLink:M,setFavourite:e.setFavourite,canFavourite:e.canFavourite,startingPositionIndex:i[t]})):r.createElement(r.Fragment,{key:t})})))}var L=n(74696);const V="vq4eE";function R(){return a().createElement(a().Fragment,null,a().createElement("div",{className:"mb-3"},a().createElement("div",{className:"".concat(V," mb-2 partial-loading-background")}),a().createElement(L.S,{numVideos:2})),a().createElement("div",{className:"mb-3"},a().createElement("div",{className:"".concat(V," mb-2 partial-loading-background")}),a().createElement(L.S,{numVideos:3})),a().createElement("div",{className:"mb-3"},a().createElement("div",{className:"".concat(V," mb-2 partial-loading-background")}),a().createElement(L.S,{numVideos:2})),a().createElement("div",{className:"mb-3"},a().createElement("div",{className:"".concat(V," mb-2 partial-loading-background")}),a().createElement(L.S,{numVideos:5})))}var q=n(23232),U=n(99742),W="watchHistory.watchHistoryEmptyState";function _(){return a().createElement(m.D.Provider,{value:W},a().createElement(q.u,null,a().createElement(q.u.Image,{src:U.W.EmptyStates.WATCH_HISTORY}),a().createElement(q.u.Heading,null,a().createElement(m.x,{phrase:"heading"})),a().createElement(q.u.Info,null,a().createElement(m.x,{phrase:"info"})),a().createElement(q.u.Cta,{text:c.T.getPhrase(W,"cta"),appLink:{application:N.O.DASHBOARD,action:x.e.Dashboard.HOME}})))}function B(){return a().createElement(m.D.Provider,{value:W},a().createElement(q.u,null,a().createElement(q.u.Image,{src:U.W.EmptyStates.WATCH_HISTORY_PUBLIC}),a().createElement(q.u.Heading,null,a().createElement(m.x,{phrase:"publicHeading"})),a().createElement(q.u.Info,null,a().createElement(m.x,{phrase:"publicInfo"})),a().createElement(q.u.Cta,{text:c.T.getPhrase(W,"publicCta"),appLink:{application:N.O.SIGN_UP,action:x.e.SignUp.SIGN_UP},analyticsData:{},analyticsOptions:{actionType:b.UserAction.Click,location:b.LocationContext.WatchHistoryLanding,entity:b.EntityType.AppLink,workflowPhase:b.WorkflowPhase.Start,descriptor:b.SignUpDescriptors.SignUp}})))}var Q="watchHistory.watchHistory";function Y(){var e,t;(0,l.o)(c.T.getPhrase(Q,"pageTitle"));var n=(0,i.useDispatch)(),a=(0,s.Z)(),k=(0,w.T)().hasLocalPermissions,I=(0,S.c)(b.LocationContext.VideoThumbnail),O=I.setFavourite,j=I.canFavourite,N=o.a.useBasicFetch(f.N.currentUser()),x=(0,E._)(E.i.VideoItem),H=function(e){return A.p.userVideoHistory(e)},P=function(e){return o.a.getFetch(n)(H(e))},T=!k(C.E.ViewWatchHistoryLanding)&&N.hasCompleted,M=(0,h.K)(!!T&&H,P,(function(e,t){if(1===e)return(0,u.r)(t);a.error(c.T.getPhrase(Q,"error"))})),L=M.items,V=M.hasMore,q=M.isFetching,U=null!==(e=null==L?void 0:L.map((function(e){return e.videoId})))&&void 0!==e?e:[],W=null!==(t=(0,p.f)(U,(function(e){return g.R.watchHistoryVideos(e)})).items)&&void 0!==t?t:{},Y=Object.keys(W).map((function(e){return W[e]}));return(0,F.V)(Y.filter(y.M.isVideo),{hasCurriculumLinks:!0}),k(C.E.ViewWatchHistoryLanding)?r.createElement(B,null):r.createElement(m.D.Provider,{value:Q},r.createElement("div",{className:"px-3"},r.createElement("h1",{className:"h2"},r.createElement(m.x,{phrase:"heading"})),L?L.length?Y.length?r.createElement(d.M.Provider,{value:x},r.createElement(D,{videoHistory:L,videos:Y,setFavourite:O,canFavourite:j}),(V||q)&&r.createElement(v._,{isFetching:q,fetchNext:P})):r.createElement(R,null):r.createElement(_,null):r.createElement(R,null)))}},97816:(e,t,n)=>{n.d(t,{V:()=>h});var r=n(1024),a=n.n(r),i=n(20354),o=n(31949),l=n(1575),c=n(21750),u=n(87821),s=n(63419);function d(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var m={ratings:!1,favourites:!1,watchHistory:!1,hasCurriculumLinks:!1};function v(e,t){var n=i.a.useGetFetch();a().useEffect((function(){t&&e.length&&e.forEach((function(e){n(e)}))}),[e.length])}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},m),t),r=n.ratings,f=n.favourites,h=n.watchHistory,p=n.hasCurriculumLinks,g=i.a.useBasicFetch(o.N.currentUser()),y=e&&(Array.isArray(e)?e.filter(Boolean).map((function(e){return e.id})):e.data.filter(Boolean).map((function(e){return e.id}))),b=g.data;function E(){if(!(null==b?void 0:b.isAuthenticated))return[];var e=[];return r&&(e=[].concat(d(e),[!!(null==y?void 0:y.length)&&l.R.videoRatings(y,t.flightNamespace)])),f&&(e=[].concat(d(e),[!!(null==y?void 0:y.length)&&b&&s.P.isFavourited(b.id,y,t.flightNamespace)])),h&&(e=[].concat(d(e),[!!(null==y?void 0:y.length)&&b&&u.p.videoHistory(y,t.flightNamespace)])),p&&(e=[].concat(d(e),[!!(null==y?void 0:y.length)&&c.x.hasCurriculumLinks(y,t.flightNamespace)])),e.filter(Boolean)}var S=a().useMemo(E,[null==y?void 0:y.length]);v(S,!!e)}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[3626],{71020:(e,t,n)=>{n.d(t,{_:()=>u});var r=n(1024),a=n(99910),i=n(64038),o=n(83914),l=n(58130);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e){var t,n,u=(t=i.useInView(),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,a=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=u[0],d=u[1];return r.useEffect((function(){var t;e.fetchOnScroll&&d&&!e.isFetching&&(null===(t=e.fetchNext)||void 0===t||t.call(e,e.nextCursor))}),[d,e.isFetching]),r.createElement("div",{className:"p-3 text-center ".concat("VwD1b"),ref:s},e.isFetching?r.createElement(a.Spinner,{as:"span",animation:"border",role:"status",className:"eJ85e"}):r.createElement(o.x,{svgName:l.vn.ChevronDown,className:"svg-container cursor-pointer",size:o.S.Large,onClick:function(){var t;return null===(t=e.fetchNext)||void 0===t?void 0:t.call(e,e.nextCursor)}}))}u.defaultProps={fetchOnScroll:!1}},74696:(e,t,n)=>{n.d(t,{S:()=>u});var r=n(1024),a=n.n(r),i=n(99910),o=n(86764),l=n(81514);const c={partialName:"SicQQ",partialDescription:"dPGMq",partialThumbnail:"vZrnb",partialDragHandle:"iq73R"};function u(e){return a().createElement(a().Fragment,null,Array(e.numVideos).fill(null).map((function(t,n){return a().createElement(s,Object.assign({key:n},e))})))}function s(e){var t=(0,l.V)(),n=t===o.r.XS,r=t===o.r.SM||t===o.r.MD,u=e.withReordering&&!n;return a().createElement(i.Row,{className:"py-2"},a().createElement(i.Col,{xs:n?12:r?4:3,className:"flex-column align-items-flex-start mb-1"},a().createElement(i.Row,null,!!u&&a().createElement("div",{className:"d-flex align-items-center justify-content-center col-2"},a().createElement("div",{className:"partial-loading-background ".concat(c.partialDragHandle)})),a().createElement(i.Col,{xs:u?10:12},a().createElement("div",{className:"partial-loading-background rounded-lg ".concat(c.partialThumbnail)})))),a().createElement(i.Col,{xs:n?12:r?8:9},a().createElement("div",{className:"partial-loading-background ".concat(c.partialSeriesLink)}),a().createElement("div",{className:"partial-loading-background mb-1 ".concat(c.partialName)}),a().createElement("div",{className:"partial-loading-background ".concat(c.partialDescription)}),a().createElement("div",{className:"partial-loading-background ".concat(c.partialBadges)}),a().createElement("div",{className:"partial-loading-background ".concat(c.partialActions)})))}u.defaultProps={numVideos:15}},94644:(e,t,n)=>{n.d(t,{r:()=>s});var r=n(81886),a=n(50242),i=n(67058),o=n(49075),l=n(14553),c=n(49267),u={notFound:i.d,forbidden:{rating:l.q,yearLevel:l.q,region:c.a,privacy:l.q},badRequest:o._};function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e){var i;i="number"==typeof e?e:e.status;var o=Object.assign(Object.assign({},u),t);i&&r.Q.ErrorHelper.isStatusCodeError(i)&&(i!==a.o.NotFound?i!==a.o.Forbidden?n.badRequest||r.Q.ErrorHelper.throw(new o.badRequest):n.forbidden||r.Q.ErrorHelper.throw(new o.forbidden.privacy):n.notFound||r.Q.ErrorHelper.throw(new o.notFound))}}},39902:(e,t,n)=>{n.d(t,{f:()=>u});var r=n(1024),a=n.n(r),i=n(58566),o=n(20354);function l(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){var n,r,u=(n=a().useState([]),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,a=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}(n,r)||l(n,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],d=u[1];a().useEffect((function(){if(null==e?void 0:e.length){var t=function(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(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.")}()}(s);t.push([]),e.forEach((function(e){t.find((function(t){return t.find((function(t){return t===e}))}))||t[t.length-1].push(e)})),d(t.filter((function(e){return e.length})))}}),[null==e?void 0:e.length]);var f=(0,i.useDispatch)(),m=(0,i.useSelector)((function(e){return e}));if(a().useEffect((function(){s.forEach((function(e){var n=t(e);o.a.getResponse(m,n.key).shouldFetch&&o.a.fetch(f,n)}))}),[null==s?void 0:s.length]),!(null==s?void 0:s.length))return{items:null,isFetching:!1};var v={},h={};return s.forEach((function(e,n){var r=t(e),a=o.a.getResponse(m,r.key);h[n]=a,a.data&&a.data.forEach((function(e){return v[e.id]=e}))})),{items:Object.keys(h).some((function(e){return!!h[e].data}))?v:null,isFetching:!!Object.keys(h).some((function(e){return h[e].isFetching}))}}},63936:(e,t,n)=>{n.d(t,{K:()=>u});var r=n(1024),a=n(50242),i=n(79014),o=n(45719),l=n(8843);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n,u,s,d){var f,m,v=(f=(0,r.useState)(0),m=2,function(e){if(Array.isArray(e))return e}(f)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,a=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}(f,m)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(f,m)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=v[0],p=v[1],g=t,y=(0,o.P)((function(t){if(!e)return null;var n=e(t);return n?n.key:null}),u,s);return(0,l.M)({fetchNextPage:function(){if(t&&e&&y)return p((function(e){return e+1})),g(y.nextCursor)},hasMore:!!(null==y?void 0:y.nextCursor),isFetching:null==y?void 0:y.isFetching,scrollContainer:d}),(0,r.useEffect)((function(){y&&y.shouldInitialFetch&&t&&(g(),p((function(e){return e+1})))}),[null==y?void 0:y.shouldInitialFetch,t]),(0,r.useEffect)((function(){var e,t;if((null==y?void 0:y.statusCode)&&i.q.isFunction(n)){var r=+(null===(t=null===(e=y.statusCode)||void 0===e?void 0:e.toString())||void 0===t?void 0:t.substr(0,1));r!==a.k.ClientError&&r!==a.k.ServerError||n(h,y.statusCode)}}),[null==y?void 0:y.statusCode]),{items:null==y?void 0:y.items,hasMore:!!(null==y?void 0:y.nextCursor),nextCursor:null==y?void 0:y.nextCursor,isFetching:null==y?void 0:y.isFetching,totalItems:null==y?void 0:y.totalItems}}},8843:(e,t,n)=>{n.d(t,{M:()=>i});var r=n(1024),a=n(79014);function i(e){var t=function(){if(!e.isFetching){if(e.scrollContainer){var t=e.scrollContainer;if(t.getBoundingClientRect().height+t.scrollTop<t.scrollHeight-400)return}else if(window.innerHeight+document.documentElement.scrollTop<document.documentElement.scrollHeight-400)return;e.fetchNextPage()}};(0,r.useEffect)((function(){var n=a.q.throttle(t,200),r=e.scrollContainer||window;return e.hasMore&&r.addEventListener("scroll",n),function(){return r.removeEventListener("scroll",n)}}),[e.hasMore,e.fetchNextPage,e.scrollContainer])}},45719:(e,t,n)=>{n.d(t,{F:()=>c,P:()=>u});var r=n(1024),a=n(58566),i=n(20354),o=n(79014);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var c={items:[],shouldInitialFetch:!1,nextCursor:null,isFetching:!1,statusCode:n(50242).o.Ok,hasCompleted:!0,totalItems:0};function u(e,t,n){function c(e){if(e)return o.q.isFunction(t)?t(e):e.data}function u(e){var t,r;if(e)return n?n(e):null===(r=null===(t=e.pagination)||void 0===t?void 0:t.cursors)||void 0===r?void 0:r.next}return(0,a.useSelector)((0,r.useMemo)((function(){return function(t){if(o.q.isFunction(e)){for(var n=e,r=o.q.isFunction(e)&&n(),a=r&&i.a.getResponse(t,r),s=a&&a.isFetching,d=a&&a.statusCode,f=a&&a.hasCompleted,m=a&&a.shouldFetch,v=c(a&&a.data),h=u(a&&a.data),p=function(e){var t;if(e)return null===(t=e)||void 0===t?void 0:t.count}(a&&a.data);h&&(a=i.a.getResponse(t,n(h)),s=s||a.isFetching,d=a.statusCode,f=a.hasCompleted,!a.shouldFetch);){var g=c(a.data);g&&v.push.apply(v,function(e){if(Array.isArray(e))return l(e)}(E=g)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(E)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(E)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var y=u(a.data);h=y===h?null:y}var b={shouldInitialFetch:m,items:v,nextCursor:h,isFetching:s,statusCode:d,hasCompleted:f};return"number"==typeof p&&(b.totalItems=p),b}var E}}),[e]))}},87821:(e,t,n)=>{n.d(t,{p:()=>a});var r=n(33192),a={userVideoHistory:function(e,t,n,a){var i="video:history",o="{gateway}/v1/users/me/watch-history";return e&&(i+=":".concat(e),o+="?cursor=".concat(e)),{key:i,url:o,formatData:function(e){return{data:e.data.map((function(e){var t=r.utc(e.lastTimeWatched).local().format(),n=r(t).format("YYYY-MM-DD");return Object.assign(Object.assign({},e),{lastTimeWatched:t,lastDateWatched:n})})),pagination:e.pagination}},success:t,error:n,always:a}},videoHistory:function(e,t,n,r,a){var i=e.sort().map((function(e){return"videoId=".concat(e)}));return{key:"video:history:videos:".concat(i.join("&")),url:"{gateway}/v1/videos/history?".concat(i.join("&")),normalizeOptions:{namespace:t},formatData:function(e){return(null==e?void 0:e.length)?e.map((function(e){return{id:e.videoId,lastProgressPoint:e.lastProgressPoint}})):e},success:n,error:r,always:a}}}},89885:(e,t,n)=>{n.r(t),n.d(t,{WatchHistoryView:()=>Y});var r=n(1024),a=n.n(r),i=n(58566),o=n(20354),l=n(23049),c=n(23481),u=n(94644),s=n(69883),d=n(51365),f=n(31949),m=n(83345),v=n(71020),h=n(63936),p=n(39902),g=n(1575),y=n(11025),b=n(65858),E=n(65986),S=n(97037),w=n(22902),C=n(16714),F=n(97816),A=n(87821),k=n(33192),I=n(75896),O=n(28400),j=n(13231),N=n(97291),x=n(14070),H=n(22490);function P(e){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(e)}var T="watchHistory.watchHistoryVideoList",M=function(e){return{application:N.O.SERIES,action:x.e.Series.SERIES,args:[e.id,O.m.slugify(e.name)]}};function D(e){var t=I.m.groupBy(e.videoHistory,"lastDateWatched"),n={},a=Object.keys(t).sort().reverse();a.forEach((function(r){n[r]=t[r].map((function(t){var n=e.videos.find((function(e){return e.id.toString()===t.videoId.toString()}));return n?Object.assign(Object.assign({},n),{lastProgressPoint:t.lastProgressPoint}):null})).filter(Boolean)}));var i=a.reduce((function(e,t){var r,a,i,o,l=n[t].length,c=l+(null!==(r=e.runningTotal)&&void 0!==r?r:0);return Object.assign(Object.assign({},e),(a={runningTotal:c},o=c-l,(i=function(e){var t=function(e,t){if("object"!==P(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==P(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===P(t)?t:String(t)}(i=t))in a?Object.defineProperty(a,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):a[i]=o,a))}),{});return r.createElement(r.Fragment,null,a.map((function(t){return n[t].length?r.createElement("div",{key:t,className:"pb-3"},r.createElement("h2",{className:"h4"},function(e){var t=k().diff(e,"days");return 0===t?c.T.getPhrase(T,"today"):1===t?c.T.getPhrase(T,"yesterday"):k(e).format("Do MMMM")}(t)),r.createElement(j.E4,{videos:n[t],getVideoAppLink:H.W.getAppLink,getSeriesAppLink:M,setFavourite:e.setFavourite,canFavourite:e.canFavourite,startingPositionIndex:i[t]})):r.createElement(r.Fragment,{key:t})})))}var L=n(74696);const V="vq4eE";function R(){return a().createElement(a().Fragment,null,a().createElement("div",{className:"mb-3"},a().createElement("div",{className:"".concat(V," mb-2 partial-loading-background")}),a().createElement(L.S,{numVideos:2})),a().createElement("div",{className:"mb-3"},a().createElement("div",{className:"".concat(V," mb-2 partial-loading-background")}),a().createElement(L.S,{numVideos:3})),a().createElement("div",{className:"mb-3"},a().createElement("div",{className:"".concat(V," mb-2 partial-loading-background")}),a().createElement(L.S,{numVideos:2})),a().createElement("div",{className:"mb-3"},a().createElement("div",{className:"".concat(V," mb-2 partial-loading-background")}),a().createElement(L.S,{numVideos:5})))}var q=n(23232),U=n(99742),W="watchHistory.watchHistoryEmptyState";function _(){return a().createElement(m.D.Provider,{value:W},a().createElement(q.u,null,a().createElement(q.u.Image,{src:U.W.EmptyStates.WATCH_HISTORY}),a().createElement(q.u.Heading,null,a().createElement(m.x,{phrase:"heading"})),a().createElement(q.u.Info,null,a().createElement(m.x,{phrase:"info"})),a().createElement(q.u.Cta,{text:c.T.getPhrase(W,"cta"),appLink:{application:N.O.DASHBOARD,action:x.e.Dashboard.HOME}})))}function B(){return a().createElement(m.D.Provider,{value:W},a().createElement(q.u,null,a().createElement(q.u.Image,{src:U.W.EmptyStates.WATCH_HISTORY_PUBLIC}),a().createElement(q.u.Heading,null,a().createElement(m.x,{phrase:"publicHeading"})),a().createElement(q.u.Info,null,a().createElement(m.x,{phrase:"publicInfo"})),a().createElement(q.u.Cta,{text:c.T.getPhrase(W,"publicCta"),appLink:{application:N.O.SIGN_UP,action:x.e.SignUp.SIGN_UP},analyticsData:{},analyticsOptions:{actionType:b.UserAction.Click,location:b.LocationContext.WatchHistoryLanding,entity:b.EntityType.AppLink,workflowPhase:b.WorkflowPhase.Start,descriptor:b.SignUpDescriptors.SignUp}})))}var Q="watchHistory.watchHistory";function Y(){var e,t;(0,l.o)(c.T.getPhrase(Q,"pageTitle"));var n=(0,i.useDispatch)(),a=(0,s.Z)(),k=(0,w.T)().hasLocalPermissions,I=(0,S.c)(b.LocationContext.VideoThumbnail),O=I.setFavourite,j=I.canFavourite,N=o.a.useBasicFetch(f.N.currentUser()),x=(0,E._)(E.i.VideoItem),H=function(e){return A.p.userVideoHistory(e)},P=function(e){return o.a.getFetch(n)(H(e))},T=!k(C.E.ViewWatchHistoryLanding)&&N.hasCompleted,M=(0,h.K)(!!T&&H,P,(function(e,t){if(1===e)return(0,u.r)(t);a.error(c.T.getPhrase(Q,"error"))})),L=M.items,V=M.hasMore,q=M.isFetching,U=null!==(e=null==L?void 0:L.map((function(e){return e.videoId})))&&void 0!==e?e:[],W=null!==(t=(0,p.f)(U,(function(e){return g.R.watchHistoryVideos(e)})).items)&&void 0!==t?t:{},Y=Object.keys(W).map((function(e){return W[e]}));return(0,F.V)(Y.filter(y.M.isVideo),{hasCurriculumLinks:!0}),k(C.E.ViewWatchHistoryLanding)?r.createElement(B,null):r.createElement(m.D.Provider,{value:Q},r.createElement("div",{className:"px-3"},r.createElement("h1",{className:"h2"},r.createElement(m.x,{phrase:"heading"})),L?L.length?Y.length?r.createElement(d.M.Provider,{value:x},r.createElement(D,{videoHistory:L,videos:Y,setFavourite:O,canFavourite:j}),(V||q)&&r.createElement(v._,{isFetching:q,fetchNext:P})):r.createElement(R,null):r.createElement(_,null):r.createElement(R,null)))}},97816:(e,t,n)=>{n.d(t,{V:()=>h});var r=n(1024),a=n.n(r),i=n(20354),o=n(31949),l=n(1575),c=n(21750),u=n(87821),s=n(63419);function d(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var m={ratings:!1,favourites:!1,watchHistory:!1,hasCurriculumLinks:!1};function v(e,t){var n=i.a.useGetFetch();a().useEffect((function(){t&&e.length&&e.forEach((function(e){n(e)}))}),[e.length])}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},m),t),r=n.ratings,f=n.favourites,h=n.watchHistory,p=n.hasCurriculumLinks,g=i.a.useBasicFetch(o.N.currentUser()),y=e&&(Array.isArray(e)?e.filter(Boolean).map((function(e){return e.id})):e.data.filter(Boolean).map((function(e){return e.id}))),b=g.data;function E(){if(!(null==b?void 0:b.isAuthenticated))return[];var e=[];return r&&(e=[].concat(d(e),[!!(null==y?void 0:y.length)&&l.R.videoRatings(y,t.flightNamespace)])),f&&(e=[].concat(d(e),[!!(null==y?void 0:y.length)&&b&&s.P.isFavourited(b.id,y,t.flightNamespace)])),h&&(e=[].concat(d(e),[!!(null==y?void 0:y.length)&&b&&u.p.videoHistory(y,t.flightNamespace)])),p&&(e=[].concat(d(e),[!!(null==y?void 0:y.length)&&c.x.hasCurriculumLinks(y,t.flightNamespace)])),e.filter(Boolean)}var S=a().useMemo(E,[null==y?void 0:y.length]);v(S,!!e)}}}]);
|