@clickview/lite 0.18.0-rc.4 → 0.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +2 -2
- package/dist/bundles.json +1 -1
- package/dist/scripts/{1200-0b2df6e770-lite.chunk.js → 1200-44a0a9f0e0-lite.chunk.js} +1 -1
- package/dist/scripts/{1592-14e9f658fd-lite.chunk.js → 1592-6f78f2b9a3-lite.chunk.js} +1 -1
- package/dist/scripts/1684-eb56af9845-lite.chunk.js +2 -0
- package/dist/scripts/{2097-1fec9b4c86-lite.chunk.js → 2097-9b51da3b04-lite.chunk.js} +1 -1
- package/dist/scripts/{3667-b8ef9efadf-lite.chunk.js → 3667-60e5161e97-lite.chunk.js} +1 -1
- package/dist/scripts/{4617-3530a84536-lite.chunk.js → 4617-c9f9751bee-lite.chunk.js} +1 -1
- package/dist/scripts/{5081-dab1f6cc6c-lite.chunk.js → 5081-526e2e79e3-lite.chunk.js} +1 -1
- package/dist/scripts/{5875-679a563954-lite.chunk.js → 5875-a911a9db8c-lite.chunk.js} +1 -1
- package/dist/scripts/{6736-cffe5aabea-lite.chunk.js → 6736-326f546fb8-lite.chunk.js} +1 -1
- package/dist/scripts/{6801-a381d427d2-lite.chunk.js → 6801-bf08e9129d-lite.chunk.js} +1 -1
- package/dist/scripts/7318-2624f3e7a8-lite.chunk.js +1 -1
- package/dist/scripts/{7416-1d038cbc54-lite.chunk.js → 7416-1aa6580a1b-lite.chunk.js} +1 -1
- package/dist/scripts/{8323-abba3829a3-lite.chunk.js → 8323-199575a310-lite.chunk.js} +1 -1
- package/dist/scripts/{9478-98989f923c-lite.chunk.js → 9478-1cddab324e-lite.chunk.js} +1 -1
- package/dist/scripts/bundle-2af583dba9.min.js +2 -0
- package/jest.config.js +11 -11
- package/package.json +62 -62
- package/typings/libs/CVEvents.d.ts +12 -12
- package/typings/libs/CVLanguages.d.ts +24 -24
- package/typings/libs/backbone.validation.d.ts +99 -99
- package/typings/libs/cloneDeep.d.ts +4 -4
- package/typings/libs/cookiesjs.d.ts +25 -25
- package/typings/libs/draft-convert.d.ts +3 -3
- package/typings/libs/google-api.d.ts +93 -93
- package/typings/libs/intersection-observer.d.ts +82 -82
- package/typings/libs/microsoft-teams.d.ts +2 -2
- package/typings/libs/react-table-config.d.ts +138 -138
- package/typings/libs/trackjs.d.ts +2 -2
- package/typings/libs/videojs-contrib-quality-levels.d.ts +28 -28
- package/typings/utils/imports.d.ts +13 -13
- package/dist/scripts/1684-98ed45307f-lite.chunk.js +0 -2
- package/dist/scripts/bundle-d30819b54c.min.js +0 -2
- /package/dist/scripts/{1200-0b2df6e770-lite.chunk.js.LICENSE.txt → 1200-44a0a9f0e0-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{1219-9157179bdd-lite.chunk.js → 1219-08053793d3-lite.chunk.js} +0 -0
- /package/dist/scripts/{1285-4501141c29-lite.chunk.js → 1285-f6ac7e5387-lite.chunk.js} +0 -0
- /package/dist/scripts/{1291-70427d0f12-lite.chunk.js → 1291-24b5a1566e-lite.chunk.js} +0 -0
- /package/dist/scripts/{1518-eed509b672-lite.chunk.js → 1518-0cfafd2c14-lite.chunk.js} +0 -0
- /package/dist/scripts/{1592-14e9f658fd-lite.chunk.js.LICENSE.txt → 1592-6f78f2b9a3-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{1684-98ed45307f-lite.chunk.js.LICENSE.txt → 1684-eb56af9845-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{1725-2b1d9c5266-lite.chunk.js → 1725-223bf6f5b3-lite.chunk.js} +0 -0
- /package/dist/scripts/{1792-d40f895c3a-lite.chunk.js → 1792-2db7496827-lite.chunk.js} +0 -0
- /package/dist/scripts/{1863-2b2ba6802e-lite.chunk.js → 1863-299c4ea36a-lite.chunk.js} +0 -0
- /package/dist/scripts/{1891-6be69177b3-lite.chunk.js → 1891-d59f732615-lite.chunk.js} +0 -0
- /package/dist/scripts/{1924-91d2ce3025-lite.chunk.js → 1924-edb024e516-lite.chunk.js} +0 -0
- /package/dist/scripts/{209-539b6299c6-lite.chunk.js → 209-954826da04-lite.chunk.js} +0 -0
- /package/dist/scripts/{2097-1fec9b4c86-lite.chunk.js.LICENSE.txt → 2097-9b51da3b04-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2135-e846e647f6-lite.chunk.js → 2135-249d97ca15-lite.chunk.js} +0 -0
- /package/dist/scripts/{2215-2d2ba45a81-lite.chunk.js → 2215-67b5894e65-lite.chunk.js} +0 -0
- /package/dist/scripts/{2229-a17489a3b1-lite.chunk.js → 2229-0285f90484-lite.chunk.js} +0 -0
- /package/dist/scripts/{227-47d9d69b18-lite.chunk.js → 227-e1e6911d36-lite.chunk.js} +0 -0
- /package/dist/scripts/{2279-673600a92b-lite.chunk.js → 2279-335f43ea35-lite.chunk.js} +0 -0
- /package/dist/scripts/{2303-c8806a714e-lite.chunk.js → 2303-d121a21e47-lite.chunk.js} +0 -0
- /package/dist/scripts/{2452-4a1c9e0123-lite.chunk.js → 2452-f1ccaff72b-lite.chunk.js} +0 -0
- /package/dist/scripts/{249-45f1f74613-lite.chunk.js → 249-ceb82b9d05-lite.chunk.js} +0 -0
- /package/dist/scripts/{2838-b4ee79c6d1-lite.chunk.js → 2838-d332fc8119-lite.chunk.js} +0 -0
- /package/dist/scripts/{2841-2551475208-lite.chunk.js → 2841-6ae6bfa58c-lite.chunk.js} +0 -0
- /package/dist/scripts/{291-dc43ed44d2-lite.chunk.js → 291-c189f97df1-lite.chunk.js} +0 -0
- /package/dist/scripts/{2937-dc0a9cef5b-lite.chunk.js → 2937-a3edd0333c-lite.chunk.js} +0 -0
- /package/dist/scripts/{2966-a4d65b2891-lite.chunk.js → 2966-510ab402e6-lite.chunk.js} +0 -0
- /package/dist/scripts/{3007-ff224c6b4a-lite.chunk.js → 3007-67c669974c-lite.chunk.js} +0 -0
- /package/dist/scripts/{3012-385bc14160-lite.chunk.js → 3012-7e5e8f11aa-lite.chunk.js} +0 -0
- /package/dist/scripts/{3019-121abfc7d3-lite.chunk.js → 3019-1c6e41272b-lite.chunk.js} +0 -0
- /package/dist/scripts/{3020-9aa88e14ad-lite.chunk.js → 3020-83da4073df-lite.chunk.js} +0 -0
- /package/dist/scripts/{3108-4e2349fae5-lite.chunk.js → 3108-eab647eb42-lite.chunk.js} +0 -0
- /package/dist/scripts/{3171-48a107d621-lite.chunk.js → 3171-20d8a113c7-lite.chunk.js} +0 -0
- /package/dist/scripts/{3216-029fc03dc3-lite.chunk.js → 3216-b1d4c2ded5-lite.chunk.js} +0 -0
- /package/dist/scripts/{3231-8036c953ca-lite.chunk.js → 3231-18bd8ed756-lite.chunk.js} +0 -0
- /package/dist/scripts/{3237-f976897749-lite.chunk.js → 3237-0dd3509b7d-lite.chunk.js} +0 -0
- /package/dist/scripts/{3240-7bc528811a-lite.chunk.js → 3240-4aa039123b-lite.chunk.js} +0 -0
- /package/dist/scripts/{3285-f85056c04f-lite.chunk.js → 3285-2d771421df-lite.chunk.js} +0 -0
- /package/dist/scripts/{3468-2f385ce0dd-lite.chunk.js → 3468-00730325f5-lite.chunk.js} +0 -0
- /package/dist/scripts/{3533-1bfb5747d2-lite.chunk.js → 3533-b438695633-lite.chunk.js} +0 -0
- /package/dist/scripts/{3626-f5fa249209-lite.chunk.js → 3626-34c536c31f-lite.chunk.js} +0 -0
- /package/dist/scripts/{3667-b8ef9efadf-lite.chunk.js.LICENSE.txt → 3667-60e5161e97-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3754-fa7f42936a-lite.chunk.js → 3754-e5c26ec175-lite.chunk.js} +0 -0
- /package/dist/scripts/{3787-6a23e0bbc6-lite.chunk.js → 3787-8696fb6568-lite.chunk.js} +0 -0
- /package/dist/scripts/{389-9943206114-lite.chunk.js → 389-6e87daacd6-lite.chunk.js} +0 -0
- /package/dist/scripts/{3948-908c532b57-lite.chunk.js → 3948-82e6ae26b5-lite.chunk.js} +0 -0
- /package/dist/scripts/{4113-220d0e945f-lite.chunk.js → 4113-65189106ef-lite.chunk.js} +0 -0
- /package/dist/scripts/{4182-554dab5f52-lite.chunk.js → 4182-964678b7e2-lite.chunk.js} +0 -0
- /package/dist/scripts/{4343-62c6b29bfc-lite.chunk.js → 4343-9f273ff584-lite.chunk.js} +0 -0
- /package/dist/scripts/{4380-250987f344-lite.chunk.js → 4380-1859fe8b27-lite.chunk.js} +0 -0
- /package/dist/scripts/{4453-c859261c08-lite.chunk.js → 4453-b079bb8254-lite.chunk.js} +0 -0
- /package/dist/scripts/{4484-934cafe764-lite.chunk.js → 4484-906d80186e-lite.chunk.js} +0 -0
- /package/dist/scripts/{4519-ef4a945c19-lite.chunk.js → 4519-bd2f8a73e6-lite.chunk.js} +0 -0
- /package/dist/scripts/{4541-8a5f2fb33e-lite.chunk.js → 4541-537b1dfac2-lite.chunk.js} +0 -0
- /package/dist/scripts/{4559-10942d0d49-lite.chunk.js → 4559-851dd0c8de-lite.chunk.js} +0 -0
- /package/dist/scripts/{4722-02ba508014-lite.chunk.js → 4722-f57c243f7d-lite.chunk.js} +0 -0
- /package/dist/scripts/{482-b797830da6-lite.chunk.js → 482-7d8dd7275c-lite.chunk.js} +0 -0
- /package/dist/scripts/{4893-81662a0c1c-lite.chunk.js → 4893-553e8ae85e-lite.chunk.js} +0 -0
- /package/dist/scripts/{5081-dab1f6cc6c-lite.chunk.js.LICENSE.txt → 5081-526e2e79e3-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{5606-a95d7bec15-lite.chunk.js → 5606-0d0883a7f9-lite.chunk.js} +0 -0
- /package/dist/scripts/{5875-679a563954-lite.chunk.js.LICENSE.txt → 5875-a911a9db8c-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{5877-ffdafeda59-lite.chunk.js → 5877-113f809304-lite.chunk.js} +0 -0
- /package/dist/scripts/{5914-e3beb91ffc-lite.chunk.js → 5914-ee40d342b9-lite.chunk.js} +0 -0
- /package/dist/scripts/{5956-eb98106bf1-lite.chunk.js → 5956-83b2378ed6-lite.chunk.js} +0 -0
- /package/dist/scripts/{5974-c26980f894-lite.chunk.js → 5974-14c51a4a25-lite.chunk.js} +0 -0
- /package/dist/scripts/{6061-86607dadc7-lite.chunk.js → 6061-9a158302e7-lite.chunk.js} +0 -0
- /package/dist/scripts/{6080-f3c955754f-lite.chunk.js → 6080-599549e042-lite.chunk.js} +0 -0
- /package/dist/scripts/{614-9798c3a425-lite.chunk.js → 614-06b5688fbd-lite.chunk.js} +0 -0
- /package/dist/scripts/{6158-48f018bbdb-lite.chunk.js → 6158-9387aa7bcb-lite.chunk.js} +0 -0
- /package/dist/scripts/{6263-131d7f5c14-lite.chunk.js → 6263-de2ee52917-lite.chunk.js} +0 -0
- /package/dist/scripts/{6274-87d8a27451-lite.chunk.js → 6274-62cfc1e395-lite.chunk.js} +0 -0
- /package/dist/scripts/{6290-f35b8451f4-lite.chunk.js → 6290-cb324b904a-lite.chunk.js} +0 -0
- /package/dist/scripts/{6368-3400596edf-lite.chunk.js → 6368-e86d8d042d-lite.chunk.js} +0 -0
- /package/dist/scripts/{6369-c0bddb6f53-lite.chunk.js → 6369-67cf2bc0c0-lite.chunk.js} +0 -0
- /package/dist/scripts/{6370-62127696d9-lite.chunk.js → 6370-8bbe6fa78d-lite.chunk.js} +0 -0
- /package/dist/scripts/{6381-df33ada1f6-lite.chunk.js → 6381-eb5890d771-lite.chunk.js} +0 -0
- /package/dist/scripts/{6450-6016b12fa6-lite.chunk.js → 6450-3258db594e-lite.chunk.js} +0 -0
- /package/dist/scripts/{6465-5781dde945-lite.chunk.js → 6465-1608ceeb17-lite.chunk.js} +0 -0
- /package/dist/scripts/{6480-2a4e357bf8-lite.chunk.js → 6480-5d694f31a9-lite.chunk.js} +0 -0
- /package/dist/scripts/{6493-331029d2a9-lite.chunk.js → 6493-ae21e8927f-lite.chunk.js} +0 -0
- /package/dist/scripts/{6507-a22e294394-lite.chunk.js → 6507-1e66ea6ad9-lite.chunk.js} +0 -0
- /package/dist/scripts/{6604-3d09473f89-lite.chunk.js → 6604-0872ee892d-lite.chunk.js} +0 -0
- /package/dist/scripts/{6689-9959def9cb-lite.chunk.js → 6689-40f803dcb5-lite.chunk.js} +0 -0
- /package/dist/scripts/{6725-4681caad1e-lite.chunk.js → 6725-6a02a8aa52-lite.chunk.js} +0 -0
- /package/dist/scripts/{6736-cffe5aabea-lite.chunk.js.LICENSE.txt → 6736-326f546fb8-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{6821-c2c09e0258-lite.chunk.js → 6821-aa942da9f9-lite.chunk.js} +0 -0
- /package/dist/scripts/{6873-dd7240df43-lite.chunk.js → 6873-cbc488c212-lite.chunk.js} +0 -0
- /package/dist/scripts/{7007-c677dd3033-lite.chunk.js → 7007-48677c4bf8-lite.chunk.js} +0 -0
- /package/dist/scripts/{7045-aa30ff4722-lite.chunk.js → 7045-219ee73151-lite.chunk.js} +0 -0
- /package/dist/scripts/{7056-3d009caae3-lite.chunk.js → 7056-b3534ce4f4-lite.chunk.js} +0 -0
- /package/dist/scripts/{7115-04ab64ed64-lite.chunk.js → 7115-5d40008425-lite.chunk.js} +0 -0
- /package/dist/scripts/{7128-79f02bfd39-lite.chunk.js → 7128-a24bcfb120-lite.chunk.js} +0 -0
- /package/dist/scripts/{7172-8ad03692bd-lite.chunk.js → 7172-e8dce1ea68-lite.chunk.js} +0 -0
- /package/dist/scripts/{7178-87d1bdf5de-lite.chunk.js → 7178-3bac7129ae-lite.chunk.js} +0 -0
- /package/dist/scripts/{7307-ddf40c08db-lite.chunk.js → 7307-3b5ad30eae-lite.chunk.js} +0 -0
- /package/dist/scripts/{7332-8f3a5b8ef5-lite.chunk.js → 7332-0da13c2b90-lite.chunk.js} +0 -0
- /package/dist/scripts/{7407-a65ab04887-lite.chunk.js → 7407-8df799eb28-lite.chunk.js} +0 -0
- /package/dist/scripts/{7416-1d038cbc54-lite.chunk.js.LICENSE.txt → 7416-1aa6580a1b-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7490-64bfa05bc7-lite.chunk.js → 7490-efaf808928-lite.chunk.js} +0 -0
- /package/dist/scripts/{7506-09a70fbf9f-lite.chunk.js → 7506-68ed3f4e65-lite.chunk.js} +0 -0
- /package/dist/scripts/{7708-cd0bc87fee-lite.chunk.js → 7708-63a3fa0f58-lite.chunk.js} +0 -0
- /package/dist/scripts/{7737-38869c947f-lite.chunk.js → 7737-1cda4795f6-lite.chunk.js} +0 -0
- /package/dist/scripts/{7756-2528a5880e-lite.chunk.js → 7756-f7531db813-lite.chunk.js} +0 -0
- /package/dist/scripts/{7767-7daefc5fac-lite.chunk.js → 7767-afdf49df83-lite.chunk.js} +0 -0
- /package/dist/scripts/{7855-18edc1946f-lite.chunk.js → 7855-74bda8e11e-lite.chunk.js} +0 -0
- /package/dist/scripts/{7888-77a06a9360-lite.chunk.js → 7888-aa0c52f105-lite.chunk.js} +0 -0
- /package/dist/scripts/{7925-088d8201ec-lite.chunk.js → 7925-1ed74c737d-lite.chunk.js} +0 -0
- /package/dist/scripts/{7939-640b0a3ed9-lite.chunk.js → 7939-3ede3264b8-lite.chunk.js} +0 -0
- /package/dist/scripts/{7967-744904c147-lite.chunk.js → 7967-1cf0440118-lite.chunk.js} +0 -0
- /package/dist/scripts/{8025-ccb49cd4aa-lite.chunk.js → 8025-ab2b2ecd89-lite.chunk.js} +0 -0
- /package/dist/scripts/{8038-f21a61b1ff-lite.chunk.js → 8038-656c52aed1-lite.chunk.js} +0 -0
- /package/dist/scripts/{8046-787309872c-lite.chunk.js → 8046-799f379c70-lite.chunk.js} +0 -0
- /package/dist/scripts/{8056-2ab549ad96-lite.chunk.js → 8056-80e7db3176-lite.chunk.js} +0 -0
- /package/dist/scripts/{8114-690a8c5eb7-lite.chunk.js → 8114-e8304a361b-lite.chunk.js} +0 -0
- /package/dist/scripts/{8187-c8ec1f5842-lite.chunk.js → 8187-1d5b309755-lite.chunk.js} +0 -0
- /package/dist/scripts/{823-15eec091e8-lite.chunk.js → 823-4dcac83167-lite.chunk.js} +0 -0
- /package/dist/scripts/{8252-25f5dcecbf-lite.chunk.js → 8252-ced0fbf148-lite.chunk.js} +0 -0
- /package/dist/scripts/{8323-abba3829a3-lite.chunk.js.LICENSE.txt → 8323-199575a310-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8377-02852ec841-lite.chunk.js → 8377-bb0ba0fe7b-lite.chunk.js} +0 -0
- /package/dist/scripts/{8466-6fc579e8a5-lite.chunk.js → 8466-cde97fcd2d-lite.chunk.js} +0 -0
- /package/dist/scripts/{849-018a6e85e8-lite.chunk.js → 849-71daf83b40-lite.chunk.js} +0 -0
- /package/dist/scripts/{8801-457b1ca8e1-lite.chunk.js → 8801-572461a6a4-lite.chunk.js} +0 -0
- /package/dist/scripts/{8868-f58dea6bba-lite.chunk.js → 8868-8545161f5d-lite.chunk.js} +0 -0
- /package/dist/scripts/{8944-d290828f67-lite.chunk.js → 8944-c246dd84f8-lite.chunk.js} +0 -0
- /package/dist/scripts/{8955-92a584db62-lite.chunk.js → 8955-cb8d4a5b4c-lite.chunk.js} +0 -0
- /package/dist/scripts/{9035-0eb175113c-lite.chunk.js → 9035-4a3b814c3b-lite.chunk.js} +0 -0
- /package/dist/scripts/{9060-2846accc15-lite.chunk.js → 9060-d956071902-lite.chunk.js} +0 -0
- /package/dist/scripts/{9107-2920fc271c-lite.chunk.js → 9107-ad8c75ac90-lite.chunk.js} +0 -0
- /package/dist/scripts/{9154-6acfcb21e5-lite.chunk.js → 9154-1b9717548e-lite.chunk.js} +0 -0
- /package/dist/scripts/{9242-5a2d447f21-lite.chunk.js → 9242-1cddf1b075-lite.chunk.js} +0 -0
- /package/dist/scripts/{9455-15f92cc7cf-lite.chunk.js → 9455-6f2d578ea3-lite.chunk.js} +0 -0
- /package/dist/scripts/{9478-98989f923c-lite.chunk.js.LICENSE.txt → 9478-1cddab324e-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9552-4f26e4c573-lite.chunk.js → 9552-91c4807c56-lite.chunk.js} +0 -0
- /package/dist/scripts/{9686-f9ddd9a8ee-lite.chunk.js → 9686-43c30eec32-lite.chunk.js} +0 -0
- /package/dist/scripts/{969-d5feffbce0-lite.chunk.js → 969-1a437472be-lite.chunk.js} +0 -0
- /package/dist/scripts/{9767-56c1eec3d8-lite.chunk.js → 9767-ff31001052-lite.chunk.js} +0 -0
- /package/dist/scripts/{9863-339e76d9af-lite.chunk.js → 9863-1642cff0c1-lite.chunk.js} +0 -0
- /package/dist/scripts/{bundle-d30819b54c.min.js.LICENSE.txt → bundle-2af583dba9.min.js.LICENSE.txt} +0 -0
package/.eslintrc.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": ["@clickview/eslint-config"]
|
|
1
|
+
{
|
|
2
|
+
"extends": ["@clickview/eslint-config"]
|
|
3
3
|
}
|
package/dist/bundles.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 1200-
|
|
1
|
+
/*! For license information please see 1200-44a0a9f0e0-lite.chunk.js.LICENSE.txt */
|
|
2
2
|
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[1200],{67370:(t,e,r)=>{r.d(e,{Ix:()=>a,RF:()=>c,UJ:()=>s,zV:()=>u});var n=r(19717),o=r(49985),i=r(65858);function a(t){var e=t.hasValidatedUsers,r=t.setInvalidUsers,a=t.userType,u=t.setHideValidListings;return function(t,s){var c=n.b.getInvalidUsers(t,s),l=t.reduce((function(t,e){return e.errorCodes.forEach((function(e){t[e]||(t[e]=0),t[e]++})),t}),{});e||o.k.logUserAction({totalUploaded:s.length,totalInvalid:Object.keys(c).length,errorCodeCount:l},Object.assign(Object.assign({},n.b.getAnalyticsOptions(a)),{workflowPhase:i.WorkflowPhase.Start,descriptor:i.OperationDescriptor.Bulk})),window.setTimeout((function(){Object.keys(c).length||u(!1),r(c)}),1e3)}}function u(t){var e=t.setHideValidListings,r=t.hideValidListings,a=t.userType;e(!r),o.k.logUserAction({hideValidListings:!r},Object.assign(Object.assign({},n.b.getAnalyticsOptions(a)),{actionType:i.UserAction.Click,descriptor:i.ClickDescriptor.ToggleHideValidListings,workflowPhase:i.WorkflowPhase.Complete}))}function s(t,e){t(null),e()}function c(t,e){t([]),e()}},63598:(t,e,r)=>{r.d(e,{Q:()=>h});var n=r(1024),o=r.n(n),i=r(23481),a=r(83345),u=r(9111),s=r(13876),c=r(76881),l=r(45541),f=r(49985),p=r(65858);function h(t){var e=(0,l.V)().deleteUsers,r=t.userType===c.Y.Learner?"userManager.deleteUploadedStudentPopup":"userManager.deleteUploadedStaffPopup",n=i.T.encloseNamespace(r);return o().createElement(a.D.Provider,{value:r},o().createElement(u.G,{title:n("title",{smartCount:t.users.length}),closePopup:t.closePopup},o().createElement("p",{className:"m-0 pb-3"},o().createElement(a.x,{phrase:"confirmation",options:{smartCount:t.users.length}})),o().createElement(s.u,null,o().createElement(s.u.Cancel,{onClick:t.closePopup}),o().createElement(s.u.Submit,{variant:"danger",onClick:function(){e(t.users),f.k.logUserAction({},f.k.mergeOptions(t.analyticsOptions,{workflowPhase:p.WorkflowPhase.Discard,descriptor:t.users.length>1?p.OperationDescriptor.Bulk:p.OperationDescriptor.Single})),t.closePopup()},text:n("delete",{smartCount:t.users.length})}))))}},93898:(t,e,r)=>{r.d(e,{n:()=>b});var n=r(1024),o=r.n(n),i=r(23481),a=r(57900),u=r(49985),s=r(65858),c=r(9111),l=r(35045),f=r(39739),p=r(45541);function h(t){return h="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},h(t)}function d(){d=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",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 c(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),u=new S(o||[]);return n(a,"_invoke",{value:E(t,r,u)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f={};function p(){}function v(){}function y(){}var g={};s(g,i,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(j([])));w&&w!==e&&r.call(w,i)&&(g=w);var b=y.prototype=p.prototype=Object.create(g);function k(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function o(n,i,a,u){var s=l(t[n],t,i);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==h(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,u)}),(function(t){o("throw",t,a,u)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return o("throw",t,a,u)}))}u(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===f)continue;return u}}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 s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function O(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,O(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function P(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 S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,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:U}}function U(){return{value:void 0,done:!0}}return v.prototype=y,n(b,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:v,configurable:!0}),v.displayName=s(y,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,s(t,u,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},k(x.prototype),s(x.prototype,a,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(b),s(b,u,"Generator"),s(b,i,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=j,S.prototype={constructor:S,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 u=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)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 v(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,u=[],s=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return y(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var g=function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{s(n.next(t))}catch(t){i(t)}}function u(t){try{s(n.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},m=i.T.encloseNamespace("userManager.editUploadedUserPopup"),w="_cv:edit:next:user";function b(t){var e,r,n=(0,p.V)(),i=n.invalidUsers,h=n.updateUser,y=v(o().useState(!!i[t.user.lookupId]),2),b=y[0],k=y[1],x=v(o().useState(!1),2),E=x[0],O=x[1],P=v(o().useState(!!a.SG.get(w)),2),L=P[0],S=P[1],j=o().useMemo((function(){return Object.keys(i)}),[i]);o().useEffect((function(){k(!!i[t.user.lookupId]),u.k.logUserAction({isInvalid:!!i[t.user.lookupId],data:t.user},u.k.mergeOptions(t.analyticsOptions,{workflowPhase:s.WorkflowPhase.Start}))}),[t.user]),o().useEffect((function(){E&&window.setTimeout((function(){return O(!1)}),300)}),[E,O]);var U=i[t.user.lookupId],T=b&&j.length>1,I=m(T&&L?"saveAndNext":"save"),C=f.P.getMinimumPasswordLength(t.passwordPolicy,t.userType,b?null===(e=null==U?void 0:U.user)||void 0===e?void 0:e.masterRole:null===(r=null==t?void 0:t.user)||void 0===r?void 0:r.masterRole);return b&&!U?o().createElement(o().Fragment,null):o().createElement(c.G,{closePopup:t.closePopup,title:t.title,showLoadingSpinner:E},o().createElement(l.H,{key:t.user.lookupId,initialValues:b?U.user:t.user,initialErrors:b?f.P.getErrorMessages(U.errorCodes,C):[],userType:t.userType,onSubmit:function(e,r){var n,o,a;return g(this,void 0,void 0,d().mark((function c(){var l,p,v,y;return d().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:if(!b){c.next=11;break}return c.next=3,t.validateUser(e);case 3:if(l=c.sent,f.P.handleAsyncErrors(l,e,null,r)){c.next=7;break}return c.abrupt("return");case 7:p=j.indexOf(t.user.lookupId),v=L?j[p+1]||j[0]:"",O(!0),t.setUser(null===(n=i[v])||void 0===n?void 0:n.user);case 11:if(y=b?null===(o=null==U?void 0:U.user)||void 0===o?void 0:o.lookupId:null===(a=null==t?void 0:t.user)||void 0===a?void 0:a.lookupId){c.next=14;break}return c.abrupt("return");case 14:e&&(h(Object.assign(Object.assign({},e),{lookupId:y})),u.k.logUserAction({isInvalid:!1,data:e},u.k.mergeOptions(t.analyticsOptions,{workflowPhase:s.WorkflowPhase.Complete}))),b&&j.length&&L?r&&r({reset:!0}):window.setTimeout(t.closePopup,300);case 16:case"end":return c.stop()}}),c)})))},yearGroups:t.yearGroups,onClickCancel:t.closePopup,submitText:I,onToggleNextCheckbox:function(){S((function(t){return a.SG.set(w,!t),!t}))},shouldGoToNext:L,formSize:t.formSize,currentUser:t.currentUser,emailRequired:t.emailRequired,showPasswordField:t.showPasswordField,passwordPolicy:t.passwordPolicy}))}}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 1592-
|
|
1
|
+
/*! For license information please see 1592-6f78f2b9a3-lite.chunk.js.LICENSE.txt */
|
|
2
2
|
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[1592],{9826:(e,t,n)=>{n.d(t,{e:()=>p});var r=n(1024),o=n(79014),a=n(10038),i=n(81514),c=n(86764);const l={stickyFooter:"rIUL4",nonStickyFooter:"PuC_F"};function u(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 s=50;function d(e){var t="justify-content-".concat(e.justify);return r.createElement("div",{className:"py-3 bg-white ".concat(l.stickyFooter)},r.createElement("div",{className:"w-75 mx-auto d-flex ".concat(t)},e.children))}function f(e){var t=(0,i.V)(),n=t===c.r.SM||t===c.r.XS?"w-100":"w-75",o="justify-content-".concat(e.justify);return r.createElement("div",{className:"".concat(n," ").concat(o," ").concat(l.nonStickyFooter," d-flex px-3")},e.children)}function p(e){var t,n,i=function(){return window.innerHeight+window.scrollY>=document.body.offsetHeight-s},c=(t=r.useState(!1),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,o,a,i,c=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return u(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)?u(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.")}()),l=c[0],p=c[1];r.useEffect((function(){return p(!i())}),[]);var m=o.q.throttle((function(){var e=!i();!l||e?!l&&e&&p(!0):p(!1)}),100);return r.useEffect((function(){return window.addEventListener("scroll",m),function(){return window.removeEventListener("scroll",m)}}),[l,p]),(0,a.H)(m,m,[l,p]),l?r.createElement(d,Object.assign({},e),e.children):r.createElement(f,Object.assign({},e),e.children)}p.defaultProps={justify:"between"}},94035:(e,t,n)=>{n.d(t,{ed:()=>r.e,cQ:()=>h.c,i:()=>f,RP:()=>y});var r=n(9826),o=(n(95436),n(1024)),a=n(75896),i=n(86764),c=n(81514),l=n(70154),u=n(92875),s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function d(e){var t=o.useContext(l.x),n=t.expandedSubject,r=t.selectedSubjects;return o.createElement(o.Fragment,null,e.subjects.map((function(t){var a=function(e,t){return!(!t||e.id===t.id||t.children.find((function(t){return t.id===e.id})))}(t,n),i=e.onSelect;return t.isExpandableOption&&(i=e.onExpand),a&&(i=e.onCollapse),e.hasSelectedBulk&&(i=function(){}),o.createElement(y,{key:t.id,subject:t,selected:!e.hasSelectedBulk&&r.includes(t.id),disabled:e.hasSelectedBulk||a,onClick:function(){return i(t)},hasSelectedBulk:e.hasSelectedBulk})})))}function f(e){var t=e.subjects,n=e.hasSelectedBulk,r=s(e,["subjects","hasSelectedBulk"]),p=o.useContext(l.x).expandedSubject,m=function(){switch((0,c.V)()){case i.r.LG:default:return 5;case i.r.MD:return 4;case i.r.SM:return 3;case i.r.XS:return 2}}(),h=t.reduce((function(e,t,n){return n%m==0?e.push([t]):a.m.last(e).push(t),e}),[]);return o.createElement("ul",{className:u.Z.grid},h.map((function(e,t){var a=p&&!!e.find((function(e){return p.id===e.id&&e.isExpandableOption}));return o.createElement(o.Fragment,{key:t},o.createElement(d,Object.assign({subjects:e,hasSelectedBulk:n},r)),a&&o.createElement("li",{className:"".concat(u.Z.subgrid," m-0")},o.createElement(f,Object.assign({subjects:p.children,hasSelectedBulk:n},r))))})))}var p=n(67453),m=n(54610),h=n(386),v=n(36532);function y(e){var t,n,r=o.useContext(l.x),a=e.subject.cover?p.j.createUrl(e.subject.cover.url,{size:m.h2.Small}):"",i=e.subject.isExpandableOption?e.subject.children.map((function(e){return e.id})):[],c=e.hasSelectedBulk?0:null===(t=null==r?void 0:r.selectedSubjects)||void 0===t?void 0:t.filter((function(e){return i.includes(e)})).length,u=o.createElement(h.c,{name:e.subject.name,imageUrl:a,onClick:e.onClick,isSelected:e.selected,isDisabled:e.disabled,isExpandable:e.subject.isExpandableOption,expand:(null===(n=null==r?void 0:r.expandedSubject)||void 0===n?void 0:n.id)===e.subject.id,selectedChildCount:c,extraClasses:e.extraClasses,hideStatus:e.hideStatus});return e.disabled?o.createElement("span",null,u):o.createElement(v.u,{title:e.subject.name},o.createElement("span",null,u))}},95436:(e,t,n)=>{n.d(t,{a:()=>i});var r=n(1024),o=n(8493);const a={progress:"cwMAI",progressItem:"G0_JK"};function i(e){return r.createElement("nav",{className:"d-flex justify-content-center pt-3 position-relative ".concat(a.progress)},e.steps.map((function(e,t){return r.createElement(o.F,{key:t,appLink:e.disabled||e.active?null:e.appLink,className:(n=e.active,i=e.disabled,c="rounded-circle mx-2 "+a.progressItem,l=n?"bg-info":"bg-light",u=i||n?"":"cursor-pointer","".concat(c," ").concat(l," ").concat(u))});var n,i,c,l,u})))}},386:(e,t,n)=>{n.d(t,{c:()=>s});var r=n(1024),o=n.n(r),a=n(83914),i=n(58130);const c={preferenceItem:"PSWHa",expandCaret:"CCsqs",up:"w7N1R",down:"mO0Kn",disabled:"Oyw2x",selected:"Czk2N",noBorder:"_e7oe",textBox:"pfksF",itemStatus:"H4u81",unchecked:"iYkPv",green:"w5g0e"};var l=function(e){return e.selectedChildrenCount?r.createElement("div",{className:"".concat(c.itemStatus," ").concat(c.green)},e.selectedChildrenCount):r.createElement(r.Fragment,null)},u=function(e){var t;return t=e.selected?r.createElement(a.x,{svgName:i.vn.Check}):e.radioButton?r.createElement(r.Fragment,null," "):r.createElement(a.x,{svgName:i.vn.Plus}),r.createElement("div",{className:"".concat(c.itemStatus," ").concat(e.selected?c.green:c.unchecked)},t)};function s(e){var t,n="".concat(c.expandCaret," ").concat(e.expand?c.up:c.down);return o().createElement("li",{className:(t="rounded-lg ".concat(c.preferenceItem),e.extraClasses&&(t+=" "+e.extraClasses),e.isDisabled&&(t+=" "+c.disabled),e.isSelected&&!e.isExpandable&&(t+=" "+c.selected),e.hideStatus&&(t+=" "+c.noBorder),t),onClick:e.onClick,"aria-checked":e.isSelected,"aria-haspopup":e.isExpandable,role:e.isExpandable?"button":"checkbox",style:{backgroundImage:"url(".concat(e.imageUrl,")")},tabIndex:0,title:e.name},o().createElement("div",{className:"".concat(c.textBox," p-2")},o().createElement("p",{className:"text-truncate mb-0"},e.name,o().createElement("span",{className:e.isExpandable?n:""})),!e.hideStatus&&o().createElement(o().Fragment,null,e.isExpandable?o().createElement(l,{selectedChildrenCount:e.selectedChildCount}):o().createElement(u,{selected:e.isSelected,radioButton:e.radioButton}))))}},70154:(e,t,n)=>{n.d(t,{x:()=>r});var r=(0,n(1024).createContext)(void 0)},1592:(e,t,n)=>{n.r(t),n.d(t,{SchoolLevelSelectorPopupView:()=>U});var r=n(1024),o=n.n(r),a=n(99910),i=n(81886),c=n(23481),l=n(2948),u=n(57900),s=n(83345),d=n(38143),f=function(){return o().createElement("span",{className:"d-inline-block animated-ellipsis"},o().createElement("span",null,"."),o().createElement("span",null,"."),o().createElement("span",null,"."))},p=n(25925),m=n(9111),h=n(94035),v=n(67453),y=n(54610),g=n(69883),b=n(83914),E=n(58130),w=n(52641),x=n(13876),S=n(49985),k=n(65858),j=n(14070),L=n(97291),O=n(86698);const C={preferenceList:"tLO8p",preferenceItem:"TOmGl",largePopup:"_9d72P",selectPresentation:"rVRaW",switchPresentation:"Q15YD"};function N(e){return N="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},N(e)}function P(){P=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var a=t&&t.prototype instanceof f?t:f,i=Object.create(a.prototype),c=new j(o||[]);return r(i,"_invoke",{value:w(e,n,c)}),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function f(){}function p(){}function m(){}var h={};l(h,a,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(L([])));y&&y!==t&&n.call(y,a)&&(h=y);var g=m.prototype=f.prototype=Object.create(h);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(r,a,i,c){var l=s(e[r],e,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==N(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,i,c)}),(function(e){o("throw",e,i,c)})):t.resolve(d).then((function(e){u.value=e,i(u)}),(function(e){return o("throw",e,i,c)}))}c(l.arg)}var a;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return a=a?a.then(r,r):r()}})}function w(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return{value:void 0,done:!0}}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function L(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=m,r(g,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:p,configurable:!0}),p.displayName=l(m,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,l(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(E.prototype),l(E.prototype,i,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new E(u(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=L,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,c=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return I(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)?I(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(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 A=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{l(r.next(e))}catch(e){a(e)}}function c(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,c)}l((r=r.apply(e,t||[])).next())}))},T="settings.schoolLevelSelectorPopup",B=c.T.encloseNamespace(T),F=1750;function U(e){var t=(0,g.Z)(),n=_((0,l.D)(d.g.AUDIENCE_FILTER,void 0,{storage:u.Z1.SessionStorage}),2)[1],r=_(o().useState(!1),2),N=r[0],I=r[1],U=_(o().useState(null),2),G=U[0],H=U[1],M=(0,O.y)(p.R.Subject),R=M.presentation,D=M.availablePresentations,z=M.selectedPresentation,V=M.setSelectedPresentation,Y=M.persistPresentation,Q=M.hasLoaded;function X(){S.k.logUserAction({id:null==R?void 0:R.id,targetId:z.id},{actionType:k.UserAction.EditAssoc,entity:k.EntityType.Presentation,location:k.LocationContext.Popup,workflowPhase:k.WorkflowPhase.Complete,eventVersion:k.EventVersion.V3}),i.Q.AppLinkHelper.trigger({application:L.O.DASHBOARD,action:j.e.Dashboard.HOME}),t.success(B("success")),e.closePopup()}function Z(){t.error(c.T.getPhrase(T,"error"))}function W(){I(!0),n(null),function(){var e=this,t=window.setTimeout((function(){return A(e,void 0,void 0,P().mark((function e(){return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Y(X,Z);case 2:q();case 3:case"end":return e.stop()}}),e)})))}),F);H(t)}()}function q(){G&&window.clearTimeout(G),e.closePopup()}o().useEffect((function(){(null==R?void 0:R.id)&&V(R)}),[null==R?void 0:R.id]);var K=(null==D?void 0:D.length)>w._.MULTI_PRESENTATION_THRESHOLD?"lg":void 0,$=(null==D?void 0:D.length)>w._.MULTI_PRESENTATION_THRESHOLD?"largePopup":"";return o().createElement(m.G,{title:N?"":B("title"),closePopup:q,showLoadingSpinner:!Q,size:K},N?o().createElement((function(){var e,t;return(null==R?void 0:R.id)===(null==z?void 0:z.id)?o().createElement(o().Fragment,null):o().createElement("div",{className:"text-center pt-4 ".concat($," ").concat(C.switchPresentation)},o().createElement("div",{className:"position-relative d-inline-flex align-items-center py-3"},o().createElement(h.cQ,{key:null==R?void 0:R.id,name:null==R?void 0:R.name,imageUrl:v.j.createUrl(null===(e=null==R?void 0:R.cover)||void 0===e?void 0:e.url,{size:y.h2.Medium})||"",extraClasses:"".concat(C.preferenceItem," mx-2"),isSelected:!1,hideStatus:!0}),o().createElement(b.x,{svgName:E.vn.ArrowRight,className:"svg-container",size:b.S.XXL}),o().createElement(h.cQ,{key:null==z?void 0:z.id,name:null==z?void 0:z.name,imageUrl:v.j.createUrl(null===(t=null==z?void 0:z.cover)||void 0===t?void 0:t.url,{size:y.h2.Medium})||"",extraClasses:"".concat(C.preferenceItem," mx-2"),isSelected:!1,hideStatus:!0})),o().createElement("div",{className:"mt-3"},o().createElement("p",{className:"h4"},B("switching",{schoolLevel:null==z?void 0:z.name}),o().createElement(f,null)),o().createElement("p",null,B("redirect")),o().createElement(a.Button,{variant:"link",className:"info-link mr-2 py-3",onClick:q},o().createElement(s.x,{namespace:T,phrase:"cancel"}))))}),null):o().createElement((function(){return o().createElement("div",{className:"".concat(C.selectPresentation," ").concat($)},o().createElement("p",null,o().createElement(s.x,{namespace:T,phrase:"info"})),o().createElement("div",{className:"mt-3"},o().createElement("div",{className:"position-relative"},o().createElement("ul",{className:"list-unstyled d-flex ".concat(C.preferenceList)},null==D?void 0:D.map((function(e){var t;return e.type!==p.R.Subject?o().createElement(o().Fragment,{key:e.id}):o().createElement(h.cQ,{key:e.id,name:e.name,imageUrl:v.j.createUrl(null===(t=e.cover)||void 0===t?void 0:t.url,{size:y.h2.Medium})||"",onClick:function(){return function(e){V(e)}(e)},isSelected:(null==z?void 0:z.id)===e.id,extraClasses:"".concat(C.preferenceItem," m-2"),radioButton:!0})})))),o().createElement(x.u,null,o().createElement(x.u.Cancel,{onClick:q}),o().createElement(x.u.Submit,{variant:"dark",disabled:(null==R?void 0:R.id)===(null==z?void 0:z.id),onClick:W,text:B("save")}))))}),null))}},92875:(e,t,n)=>{n.d(t,{Z:()=>r});const r={grid:"X9r1Y",subgrid:"TgYhp"}}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 1684-eb56af9845-lite.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[1684],{69542:(t,e,r)=>{r.d(e,{h:()=>Vr});var n,o=r(1024),a=r.n(o),i=r(57900),c=r(2903),l=r(65858),u=r(58130),s=r(11607),f=r(2786),p=r(83914),h=r(99742),d=r(42976);!function(t){t.AU="au",t.NZ="nz",t.UK="uk",t.US="us"}(n||(n={}));var m=["uk","gb","gg","im","je","ie"],y={au:n.AU,nz:n.NZ,us:n.US,uk:n.UK,gb:n.UK,gg:n.UK,im:n.UK,je:n.UK,ie:n.UK},v={getCountryCode:function(t){return y[null==t?void 0:t.toLowerCase()]||n.US},isCountryCodeUK:function(t){return m.includes(t.toLowerCase())},isCountryCodeAU:function(t){return(null==t?void 0:t.toLowerCase())===n.AU},isCountryCodeUS:function(t){return(null==t?void 0:t.toLowerCase())===n.US},isCountryCodeNZ:function(t){return(null==t?void 0:t.toLowerCase())===n.NZ}},g={Marketing:{au:"https://www.clickview.com.au",uk:"https://www.clickview.co.uk",nz:"https://www.clickview.co.nz",us:"https://www.clickvieweducation.com"},Support:{au:"https://www.clickviewsupport.com/hc/en-au",uk:"https://www.clickviewsupport.com/hc/en-au#gb",nz:"https://www.clickviewsupport.com/hc/en-au#nz",us:"https://www.clickviewsupport.com/hc/en-au#us"}},b={getMarketingUrlForGeoLocation:function(t){var e=v.getCountryCode(null==t?void 0:t.countryCode);return g.Marketing[e]||g.Marketing.us},getMarketingSalesContactForGeoLocation:function(t){var e=v.getCountryCode(null==t?void 0:t.countryCode),r=this.getMarketingUrlForGeoLocation(t);return t&&e===n.NZ?r+"/contact-us/":r+"/contact-us/trial/"},getFreeResourcesForGeoLocation:function(t){var e=v.getCountryCode(null==t?void 0:t.countryCode);return e===n.NZ&&(e=n.AU),this.getMarketingUrlForGeoLocation({countryCode:e})+"/free-student-resources//"},getTermsAndConditionsLink:function(){return this.getMarketingUrlForGeoLocation(n.US)+"/terms-and-conditions/"},getPrivacyPolicyLink:function(){return this.getMarketingUrlForGeoLocation(n.US)+"/privacy-policy/"},getSupportUrlForGeoLocation:function(t){var e=v.getCountryCode(null==t?void 0:t.countryCode);return g.Support[e]||g.Support.us},getLoginLink:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.length?"".concat("/login","?redirectUrl=").concat(t):"/login"}};const w={crumb:"HuHpb"};function E(t,e){var r="rounded-circle mx-2 d-inline-block "+w.crumb,n=t===e?"bg-info":"bg-light";return"".concat(r," ").concat(n)}function x(t){return a().createElement("div",{className:"text-center"},t.crumbs.map((function(e){return a().createElement("div",{className:E(t.currentStep,e),key:e})})))}function S(t){return a().createElement("button",{onClick:t.onClick,className:"btn p-0 cursor-pointer d-inline-flex align-items-center"},a().createElement(p.x,{svgName:u.vn.ChevronLeft,size:p.S.Medium}),t.children)}var L=r(83345),j=r(49985),k=r(55460);function O(t){var e=t.href,r=t.className,n=t.newTab,a=t.children,i={onClick:function(r){var o;r.preventDefault(),null===(o=t.onClick)||void 0===o||o.call(t,r),t.analyticsData&&t.analyticsOptions&&j.k.logUserAction(Object.assign({href:e},t.analyticsData),t.analyticsOptions),k.LocationUtils.PageLoad(e,n)},href:e,className:r};return o.createElement("a",Object.assign({},i),a)}var N="signUp.general.termsAndConditions";function C(t){var e=b.getTermsAndConditionsLink(),r=b.getPrivacyPolicyLink();return a().createElement("span",{className:"text-center text-md mt-2 text-normal"},a().createElement(L.x,{phrase:"textSignup",namespace:N}),a().createElement("br",null),a().createElement(O,{href:e,onClick:t.onClickTermsAndConditions,className:"info-link",newTab:!0},a().createElement(L.x,{phrase:"termsAndConditions",namespace:N}))," ",a().createElement(L.x,{phrase:"and",namespace:N})," ",a().createElement(O,{href:r,onClick:t.onClickPrivacyPolicy,className:"info-link",newTab:!0},a().createElement(L.x,{phrase:"privacyPolicy",namespace:N})))}var A="signUp.general.existingAccountSignIn";function T(t){return a().createElement(a().Fragment,null,a().createElement(L.x,{phrase:"text",namespace:A}),a().createElement(O,{href:t.link,onClick:t.onClick,className:"info-link ml-1"},a().createElement(L.x,{phrase:"link",namespace:A})))}var P=r(26392);U.defaultProps={showBackButton:!0};var I=["enter-email","find-school"],_=["enter-email","find-school","cant-find-school","add-to-braze","enter-age"];function U(t){var e=t.currentStep,r=t.previousStep,n=t.hasPreviousStep,o=t.showBackButton,i=t.closeApp,c=t.children;function m(){return["enter-email","find-school","cant-find-school","add-to-braze","enter-age"].includes(e)}function y(){r(),t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.Back,workflowPhase:l.WorkflowPhase.Back})}var v=_.includes(t.currentStep),g=v?"".concat(P.Z.leftHalfLayout," ").concat(P.Z.withBg):P.Z.leftHalfLayout;return a().createElement("div",{className:g},a().createElement("div",{className:"row mx-0 p-3"},a().createElement("div",{className:"col px-0 d-lg-none ".concat(P.Z.popupButton)},n&&m()&&o&&a().createElement(S,{onClick:y})),a().createElement("div",{className:"col col-lg-6 px-0"},a().createElement("div",{className:P.Z.logo},a().createElement("div",{className:"d-none d-lg-block"},v?a().createElement(f.Yo,null):a().createElement(f.$S,null)),a().createElement("div",{className:"d-block d-lg-none"},a().createElement(f.$S,null)))),a().createElement("div",{className:"col col-lg-6 d-flex flex-row justify-content-between px-0"},a().createElement("div",{className:"px-3"},a().createElement("div",{className:"d-none d-lg-block ".concat(P.Z.popupButton)},n&&m()&&o&&a().createElement(S,{onClick:y}))),a().createElement(s.L,{onClick:i,className:P.Z.popupButton},a().createElement(p.x,{svgName:u.vn.Close,size:p.S.Medium})))),a().createElement("div",{className:"row mx-0 flex-grow-1"},v&&a().createElement("div",{className:"col-6 px-0 d-none d-lg-block"},a().createElement("div",{className:"h-100 d-flex align-items-center justify-content-center"},a().createElement("img",{src:h.W.SignUp.POPUP_DASHBOARD,className:"w-100 p-4 pb-5"}))),a().createElement("div",{className:"px-4 pt-0 pb-4 ".concat(v?"col-12 col-lg-6":"col-12")},a().createElement("div",{className:"d-flex flex-column h-100"},I.includes(t.currentStep)&&a().createElement("div",{className:"mb-2"},a().createElement(x,{crumbs:I,currentStep:e})),a().createElement("div",{className:"flex-grow-1"},c),a().createElement("div",{className:"text-center"},"select-type"===e&&a().createElement(T,{link:b.getLoginLink(d._.getRelativeUrl()),onClick:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.SignIn})}}),["enter-email","add-to-braze"].includes(e)&&a().createElement(C,{onClickTermsAndConditions:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.TermsAndConditions})},onClickPrivacyPolicy:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.PrivacyPolicy})}}))))))}const F={fullPageLayout:"Ct4Ij",logo:"RcL6k",maxWidth42rem:"ifgIL",maxWidth23rem:"VkYGJ",maxWidth30rem:"LFZms"};M.defaultProps={showBackButton:!0};var G,D=["select-type","enter-email","find-school"];function M(t){var e=t.currentStep,r=t.previousStep,n=t.hasPreviousStep,o=t.showBackButton,i=t.children;return a().createElement("div",{className:"d-flex flex-column justify-content-between px-4 py-0 ".concat(F.fullPageLayout)},a().createElement("div",{className:"mt-3 mb-2"},D.includes(e)&&a().createElement(x,{crumbs:D,currentStep:e})),a().createElement("div",{className:"position-relative mx-auto w-100 ".concat("select-type"===e?F.maxWidth42rem:["enter-email","find-school","cant-find-school","add-to-braze","enter-age"].includes(e)?F.maxWidth23rem:F.maxWidth30rem)},a().createElement("div",{className:"d-flex flex-row justify-content-center align-items-center mt-2 mb-3"},n&&o&&["enter-email","find-school","cant-find-school","add-to-braze","enter-age"].includes(e)&&a().createElement(S,{onClick:function(){r(),t.logUserAction({step:e},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.Back,workflowPhase:l.WorkflowPhase.Back})}}),a().createElement("div",{className:"d-flex justify-content-center align-items-center px-2 ".concat(F.logo)},a().createElement(f.$S,null))),i),a().createElement("div",{className:"position-relative mb-4 text-center"},"select-type"===e&&a().createElement(T,{link:b.getLoginLink(),onClick:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.SignIn})}}),["enter-email","find-school","add-to-braze"].includes(e)&&a().createElement(C,{onClickTermsAndConditions:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.TermsAndConditions})},onClickPrivacyPolicy:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.PrivacyPolicy})}})))}function K(t){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},K(t)}function R(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==K(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==K(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===K(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var B,z,$={"cant-find-school":U,"enter-email":U,"find-school":U,"select-type":U,completed:U,"add-to-braze":U,"enter-age":U},H={"cant-find-school":M,"enter-email":M,"find-school":M,"select-type":M,completed:M,"add-to-braze":M,"enter-age":M},Y=(R(G={},c.c.FullPage,H),R(G,c.c.Popup,$),G),W={getLayouts:function(t){return Y[t]}};function Z(t,e){return e?"".concat(t," ").concat(e):t}!function(t){t.Unavailable="unavailable",t.Expired="expired",t.Active="active",t.NotRequired="not-required",t.Available="available",t.Unsupported="unsupported"}(B||(B={})),function(t){t.InvalidEmail="invalid-email"}(z||(z={}));var q,J={Heading:function(t){return a().createElement("h1",{className:Z("text-center mb-2 h4",t.className)},t.children)},Body:function(t){return a().createElement("div",{className:Z("text-center text-sm px-2 px-lg-4",t.className)},t.children)},Message:function(t){return a().createElement("p",{className:Z("",t.className)},t.children)}};function V(t){return V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},V(t)}function Q(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==V(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==V(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===V(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var X=(Q(q={},B.Available,h.W.SignUp.VERIFY_ACCOUNT),Q(q,B.Active,h.W.SignUp.EXISTING_CUSTOMER),Q(q,B.Expired,h.W.SignUp.EXPIRED_TRIAL),Q(q,B.NotRequired,h.W.SignUp.EXISTING_CUSTOMER),Q(q,B.Unavailable,h.W.SignUp.NOT_AVAILABLE),Q(q,B.Unsupported,h.W.SignUp.NOT_AVAILABLE),q);function tt(t){return a().createElement("div",{className:"d-flex justify-content-center my-4 px-2 px-lg-4"},a().createElement("img",{src:X[t.trialStatus],className:"w-100 h-auto"}))}var et="signUp.completedStepItem.addedToBraze",rt="young-student",nt="signUp.youngStudent",ot="signUp.completedStepItem.unsupported",at="signUp.completedStepItem.expiredTrial",it=r(99940),ct=r(15661);function lt(t){return lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lt(t)}function ut(){ut=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new j(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==lt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var st=function(t,e,r,n){return new(r||(r=Promise))((function(o,a){function i(t){try{l(n.next(t))}catch(t){a(t)}}function c(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,c)}l((n=n.apply(t,e||[])).next())}))},ft={checkTrialStatus:function(t){return st(this,void 0,void 0,ut().mark((function e(){var r;return ut().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={email:t.email},e.abrupt("return",ct.b.asyncFetch({url:"/api/user/trials/status",data:r}));case 2:case"end":return e.stop()}}),e)})))},checkProspectTrialStatus:function(t,e,r,n){var o="/api/user/trials/prospect/".concat(t.prospectId,"/status");ct.b.fetch({url:o,success:e,error:r,always:n})},createTrial:function(t){return st(this,void 0,void 0,ut().mark((function e(){var r;return ut().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={prospectId:t.prospectId,firstName:"Trial",surname:"User",email:t.email,userType:t.userType,accessPolicy:t.accessPolicy,appLink:null==t?void 0:t.appLink},e.abrupt("return",ct.b.asyncFetch({url:"/api/user/trials",method:it.k.POST,data:r}));case 2:case"end":return e.stop()}}),e)})))},resendTrialEmail:function(t,e){return st(this,void 0,void 0,ut().mark((function r(){var n;return ut().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={email:e.email,appLink:null==e?void 0:e.appLink},r.abrupt("return",ct.b.asyncFetch({url:"/api/user/trials/users/".concat(t,"/send-activation-email"),method:it.k.POST,data:n}));case 2:case"end":return r.stop()}}),r)})))}};function pt(t){return pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pt(t)}function ht(){ht=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new j(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==pt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function dt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return mt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var yt="signUp.completedStepItem.verifyAccount",vt="signUp.completedStepItem.existingCustomer";function gt(t){var e=(null==t?void 0:t.previousStepIds)&&"find-school"===t.previousStepIds[t.previousStepIds.length-1],r=(null==t?void 0:t.schoolName)||"Your school";return a().createElement(J.Body,{className:"mb-3"},a().createElement(J.Heading,null,a().createElement(L.x,{namespace:vt,phrase:"heading"})),a().createElement(J.Message,null,e?a().createElement(L.x,{phrase:"schoolMessageTitle",namespace:vt,options:{school:r}}):a().createElement(L.x,{phrase:"userMessageTitle",namespace:vt})),a().createElement(J.Message,null,e?a().createElement(L.x,{phrase:"schoolMessageParagraph",namespace:vt}):a().createElement("a",{href:b.getLoginLink(d._.getRelativeUrl()),className:"btn btn-dark btn-lg w-100"},a().createElement(L.x,{phrase:"signIn",namespace:vt}))),a().createElement(J.Message,null,a().createElement(L.x,{phrase:"helpText",namespace:vt})," ",a().createElement(O,{href:b.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link",newTab:!0},a().createElement(L.x,{phrase:"helpLink",namespace:vt}))))}var bt,wt="signUp.completedStepItem.trialNotAvailable";function Et(t){return Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Et(t)}function xt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Et(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Et(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Et(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var St=(xt(bt={},B.Available,(function(t){var e=dt(a().useState(0),2),r=e[0],n=e[1],o=dt(a().useState(!1),2),i=o[0],c=o[1];if(null==t?void 0:t.email)return a().createElement(J.Body,null,a().createElement(J.Heading,null,a().createElement(L.x,{namespace:yt,phrase:"heading"})),a().createElement(J.Message,null,a().createElement(L.x,{namespace:yt,phrase:"message",options:{email:t.email}})),r<1?a().createElement(J.Message,null,a().createElement(L.x,{namespace:yt,phrase:"helpText"})," ",a().createElement("button",{onClick:function(e){return o=this,a=void 0,i=void 0,u=ht().mark((function o(){return ht().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return null==e||e.preventDefault(),o.prev=1,o.next=4,ft.resendTrialEmail(t.userId,{email:t.email,appLink:t.pageAppLinkString});case 4:n(r+1),o.next=10;break;case 7:o.prev=7,o.t0=o.catch(1),c(!0);case 10:t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.ResendEmail});case 11:case"end":return o.stop()}}),o,null,[[1,7]])})),new(i||(i=Promise))((function(t,e){function r(t){try{c(u.next(t))}catch(t){e(t)}}function n(t){try{c(u.throw(t))}catch(t){e(t)}}function c(e){var o;e.done?t(e.value):(o=e.value,o instanceof i?o:new i((function(t){t(o)}))).then(r,n)}c((u=u.apply(o,a||[])).next())}));var o,a,i,u},className:"btn info-link p-0"},a().createElement(L.x,{namespace:yt,phrase:"helpLink"}))):a().createElement(L.x,{namespace:yt,phrase:"resent"}),i&&a().createElement(J.Message,{className:"mb-0 text-danger"},a().createElement(L.x,{namespace:yt,phrase:"resendErrorText"})," ",a().createElement("a",{href:b.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link"},a().createElement(L.x,{namespace:yt,phrase:"resendErrorLink"}))))})),xt(bt,B.Active,gt),xt(bt,B.Expired,(function(t){var e=b.getMarketingSalesContactForGeoLocation(t.geoLocation),r=(null==t?void 0:t.previousStepIds)&&"find-school"===t.previousStepIds[t.previousStepIds.length-1],n=(null==t?void 0:t.schoolName)||"Your school";return a().createElement(J.Body,null,a().createElement(J.Heading,null,r?a().createElement(L.x,{namespace:at,phrase:"schoolMessageTitle",options:{schoolName:n}}):a().createElement(L.x,{namespace:at,phrase:"userMessageTitle"})),a().createElement(J.Message,null,a().createElement(L.x,{namespace:at,phrase:"context"})," ",a().createElement(O,{href:e,className:"info-link",newTab:!0},a().createElement(L.x,{namespace:at,phrase:"contextLink"}))))})),xt(bt,B.NotRequired,gt),xt(bt,B.Unavailable,(function(t){var e=b.getMarketingSalesContactForGeoLocation(t.geoLocation);return a().createElement(J.Body,null,a().createElement(J.Heading,null,a().createElement(L.x,{namespace:wt,phrase:"heading"})),a().createElement(J.Message,null,a().createElement(L.x,{namespace:wt,phrase:"helpText",options:{link:e}})))})),xt(bt,B.Unsupported,(function(){return a().createElement(J.Body,null,a().createElement(J.Heading,{className:"px-2 px-lg-4"},a().createElement(L.x,{namespace:ot,phrase:"schoolMessageTitle"})),a().createElement(J.Message,null,a().createElement(L.x,{namespace:ot,phrase:"schoolMessageDescription"})))})),bt);function Lt(t){var e=St[t.trialStatus];return a().createElement(e,Object.assign({},t))}var jt={"trial-status":function(t){return a().useEffect((function(){var e={actionType:l.UserAction.Create,descriptor:l.SignUpDescriptors.DeadEnd,workflowPhase:l.WorkflowPhase.Discard};t.trialCreated&&(e.descriptor=l.SignUpDescriptors.TrialCreated,e.workflowPhase=l.WorkflowPhase.Complete),t.logUserAction({},e)}),[]),a().createElement(a().Fragment,null,a().createElement(tt,{trialStatus:t.trialStatus}),a().createElement(Lt,Object.assign({},t)))},"added-to-braze":function(){return a().createElement(a().Fragment,null,a().createElement(tt,{trialStatus:B.Available}),a().createElement(J.Body,{className:"mb-3"},a().createElement(J.Heading,null,a().createElement(L.x,{namespace:et,phrase:"heading"})),a().createElement(J.Message,null,a().createElement(L.x,{namespace:et,phrase:"message"}))))},"young-student":function(t){var e=b.getFreeResourcesForGeoLocation(t.geoLocation);return a().useEffect((function(){i.SG.set(rt,!0)}),[]),a().createElement(a().Fragment,null,a().createElement(tt,{trialStatus:B.Active}),a().createElement(J.Body,{className:"mb-3"},a().createElement(J.Heading,null,a().createElement(L.x,{namespace:nt,phrase:"heading"})),a().createElement(J.Message,null,a().createElement(L.x,{namespace:nt,phrase:"message"})),a().createElement(O,{href:e,className:"btn btn-lg btn-dark w-100"},a().createElement(L.x,{namespace:nt,phrase:"cta"}))))}},kt=r(23481),Ot=r(2102);var Nt,Ct=a().forwardRef((function(t,e){var r=t.onClickClear,n=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}(t,["onClickClear"]);return a().createElement("div",{className:"position-relative"},a().createElement("input",Object.assign({},n,{ref:e,className:"".concat(t.className," ").concat("LprCJ")})),!!t.value&&a().createElement("span",{className:"".concat("Xv1sR"," position-absolute cursor-pointer text-muted"),role:"button",onClick:r},a().createElement(p.x,{svgName:u.vn.Close,size:p.S.Medium})))}));function At(t){return At="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},At(t)}function Tt(){Tt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new j(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==At(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Pt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return It(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?It(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function It(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _t(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==At(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==At(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===At(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ut=new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/),Ft="signUp.enterEmailStepItem",Gt=kt.T.encloseNamespace(Ft),Dt=(_t(Nt={},n.AU,"valerie.frizzle@school.edu.au"),_t(Nt,n.UK,"valerie.frizzle@school.gov.uk"),_t(Nt,n.US,"valerie.frizzle@school.gov"),_t(Nt,n.NZ,"valerie.frizzle@school.nz"),Nt);function Mt(t){return Dt[v.getCountryCode(t.countryCode)]||Dt.us}var Kt,Rt=[B.Expired,B.NotRequired,B.Unavailable,B.Unsupported,B.Active];!function(t){t.Staff="staff",t.Learner="learner"}(Kt||(Kt={}));var Bt=r(33003),zt=r.n(Bt),$t=r(63093);function Ht(t){return Ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ht(t)}function Yt(){Yt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new j(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Ht(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var Wt=function(t,e,r,n){return new(r||(r=Promise))((function(o,a){function i(t){try{l(n.next(t))}catch(t){a(t)}}function c(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,c)}l((n=n.apply(t,e||[])).next())}))},Zt={config:function(){return Wt(this,void 0,void 0,Yt().mark((function t(){return Yt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",ct.b.asyncFetch({url:"/api/config"}));case 1:case"end":return t.stop()}}),t)})))},version:function(){return Wt(this,void 0,void 0,Yt().mark((function t(){return Yt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",ct.b.asyncFetchPlain({url:"/api/version"}));case 1:case"end":return t.stop()}}),t)})))}};function qt(t){return qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qt(t)}function Jt(){Jt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new j(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==qt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var Vt=function(t,e,r,n){return new(r||(r=Promise))((function(o,a){function i(t){try{l(n.next(t))}catch(t){a(t)}}function c(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,c)}l((n=n.apply(t,e||[])).next())}))},Qt={au:"cv-ap-southeast-1",uk:"cv-eu-west-1",us:"cv-ap-southeast-1",nz:"cv-ap-southeast-1"},Xt={k12:"Primary & Secondary"},te={getConfig:function(){return Vt(this,void 0,void 0,Jt().mark((function t(){return Jt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Zt.config();case 2:return t.t0=t.sent,t.next=5,Zt.version();case 5:return t.t1=t.sent,t.abrupt("return",{config:t.t0,version:t.t1});case 7:case"end":return t.stop()}}),t)})))},getClient:function(t){return Vt(this,void 0,void 0,Jt().mark((function e(){var r,n,o,a,i;return Jt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,te.getConfig();case 2:return r=e.sent,n=r.config,o=r.version,a=v.getCountryCode(null==t?void 0:t.countryCode),i=n.braze[Qt[a]],e.abrupt("return",(0,$t.getInstance)({baseUrl:i.url,apiKey:i.apiKey,productVersion:o,productName:"lite.web",enableLogging:!1,automaticallyShowInAppMessages:!1}));case 8:case"end":return e.stop()}}),e)})))},hashedEmail:function(t){var e=t.trim().toLowerCase();return zt().hash(e)},removeEmptyKeys:function(t){var e=Object.assign({},t);return Object.keys(e).forEach((function(t){null!==e[t]&&void 0!==e[t]&&("string"!=typeof e[t]||e[t].length)||delete e[t]})),e},getEventTopic:function(){return"Free Trial Request"},getCustomEventType:function(){return"product_trial_requested"},getSchoolType:function(t){if(t)return Xt[t.toLowerCase()]||t}},ee=["Teacher","Librarian","Curriculum Coordinator","Digital Technology Coordinator","IT","Head of Department","Deputy Principal","Principal"],re=["Teacher","Librarian","Head of department","Curriculum coordinator","School leadership","District leadership","Academic coach","Instructional technology specialist","Consortium leadership","IT"],ne={au:ee,nz:ee,uk:["Teacher","Librarian","IT/LRC","e-Learning/ICT Coordinator","Head of Key Stage","Head of Department","Subject Lead","Assistant Head Teacher","Deputy Tead Teacher","Head Teacher"],us:re};function oe(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ae(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ae(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ae(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var ie=kt.T.encloseNamespace("signUp.addToBrazeStepItem"),ce="OTHER";function le(t){var e=t.error,r=t.onChange,n=t.countryCode,o=oe(a().useState(""),2),i=o[0],c=o[1],l=oe(a().useState(""),2),u=l[0],s=l[1],f=function(t){return ne[t]||re}(n),p=i===ce;return a().createElement(a().Fragment,null,a().createElement("div",{className:"mb-2"},a().createElement("select",{id:t.id,name:t.id,className:"form-control form-control-lg ".concat(i.length?"text-dark":"text-secondary"," ").concat(!!e&&"is-invalid"),value:i,placeholder:"Role",onChange:function(t){c(t.target.value),s(""),r(t.target.value===ce?"":t.target.value)}},a().createElement("option",{value:"",disabled:!0,className:"text-muted"},ie("placeholderJobTitle")),f.map((function(t,e){return a().createElement("option",{value:t,className:"text-dark",key:e},t)})),a().createElement("option",{value:ce,className:"text-dark"},"Other")),!!e&&!p&&a().createElement("div",{className:"invalid-feedback"},e)),p&&a().createElement("div",{className:"mb-3"},a().createElement("input",{className:"form-control form-control-lg ".concat(!!e&&"is-invalid"),type:"text",value:u,placeholder:ie("placeholderJobTitle"),autoFocus:!0,onChange:function(t){s(t.target.value),r(t.target.value)}}),!!e&&a().createElement("div",{className:"invalid-feedback"},e)))}function ue(t){return ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ue(t)}function se(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var fe="signUp.addToBrazeStepItem",pe=kt.T.encloseNamespace(fe);function he(t){var e,r,n,o,i,c,l,u,s,f=(u=a().useState({fullname:"",jobTitle:"",phone:""}),s=2,function(t){if(Array.isArray(t))return t}(u)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(u,s)||function(t,e){if(t){if("string"==typeof t)return se(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?se(t,e):void 0}}(u,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=f[0],h=f[1];function d(t,e){h((function(r){return Object.assign(Object.assign({},r),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==ue(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==ue(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===ue(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},t,e))}))}return a().createElement("div",{className:"text-center"},a().createElement("h1",{className:"text-center h4"},a().createElement(L.x,{namespace:fe,phrase:"formHeading"})),a().createElement("p",null,a().createElement(L.x,{namespace:fe,phrase:"formSubHeading"})),a().createElement("form",{onSubmit:function(e){e.preventDefault(),t.handleSubmitForm(p)}},a().createElement("div",{className:"form-group text-left"},a().createElement("label",{className:"d-block font-weight-bold mb-1",htmlFor:"fullname-input"},a().createElement(L.x,{namespace:fe,phrase:"labelFullName"})),a().createElement(Ct,{value:p.fullname,onChange:function(e){e.preventDefault(),d("fullname",e.target.value),t.removeErrorForKey("fullname"),t.removeErrorForKey("submission")},name:"fullname-input",id:"fullname-input",type:"text",className:"form-control form-control-lg ".concat((null===(e=t.errors.fullname)||void 0===e?void 0:e.length)?"is-invalid":""),placeholder:pe("placeholderFullName"),onClickClear:function(){d("fullname",""),t.removeErrorForKey("fullname"),t.removeErrorForKey("submission")},autoFocus:!0}),t.errors.fullname&&a().createElement("div",{className:"invalid-feedback d-block"},t.errors.fullname)),a().createElement("div",{className:"form-group text-left"},a().createElement("label",{className:"d-block font-weight-bold mb-1",htmlFor:"phone-input"},a().createElement(L.x,{namespace:fe,phrase:"labelPhone"})),a().createElement(Ct,{value:p.phone,onChange:function(e){e.preventDefault(),d("phone",e.target.value.trim()),t.removeErrorForKey("phone"),t.removeErrorForKey("submission")},name:"phone-input",id:"phone-input",type:"tel",className:"form-control form-control-lg ".concat((null===(r=t.errors.phone)||void 0===r?void 0:r.length)?"is-invalid":""),placeholder:pe("placeholderPhone"),onClickClear:function(){d("phone",""),t.removeErrorForKey("phone"),t.removeErrorForKey("submission")}}),t.errors.phone&&a().createElement("div",{className:"invalid-feedback d-block"},t.errors.phone)),a().createElement("div",{className:"form-group text-left"},a().createElement("label",{className:"d-block font-weight-bold mb-1",htmlFor:"jobTitle-select"},a().createElement(L.x,{namespace:fe,phrase:"labelJobTitle"})),a().createElement(le,{id:"jobTitle-select",countryCode:v.getCountryCode(t.country),onChange:function(e){d("jobTitle",e),t.removeErrorForKey("jobTitle"),t.removeErrorForKey("submission")},error:null===(n=t.errors)||void 0===n?void 0:n.jobTitle})),!!(null===(o=t.errors)||void 0===o?void 0:o.submission)&&a().createElement("div",{className:"form-group invalid-feedback d-block"},t.errors.submission),a().createElement("div",{className:"form-group mb-1"},a().createElement(Ot.m,{className:"btn btn-dark btn-lg w-100",onClick:function(){return t.handleSubmitForm(p)},showSpinner:t.loading,disabled:t.loading||(i=p.fullname,c=p.jobTitle,l=p.phone,!(i.length&&c.length&&l.length&&!Object.keys(t.errors).length))},a().createElement(L.x,{namespace:fe,phrase:"formSubmitButton"})))))}function de(t){return de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},de(t)}function me(){me=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new j(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==de(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function ye(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ve(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ve(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ve(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var ge,be=255,we=/\$+[\w\s]?/,Ee=/^\+?\d{4,255}$/,xe=kt.T.encloseNamespace("signUp.addToBrazeStepItem");function Se(t){if(!t)return{firstName:"",surname:""};var e=t.split(" ").filter((function(t){return t.length}));return{firstName:e.shift(),surname:e.join(" ")}}!function(t){t.FourteenDays="trial_14_v1",t.Freemium="freemium_v1"}(ge||(ge={}));var Le=function(t){return v.isCountryCodeUS(t)||v.isCountryCodeUK(t)?ge.Freemium:ge.FourteenDays},je=r(99910),ke=r(28329);function Oe(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ne(t){var e,r,n=(e=a().useState(0),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return Oe(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Oe(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=n[0],i=n[1],c=a().useRef();function l(){var t;c.current&&(null===(t=c.current.children[o-1])||void 0===t||t.scrollIntoView({block:"center"}))}return{selectedIndex:o,onKeyDown:function(e){if("ArrowDown"===e.code){e.stopPropagation(),e.preventDefault();var r=o+1;return r>t.itemCount&&(r=1),i(r),void l()}if("ArrowUp"===e.code){e.stopPropagation(),e.preventDefault();var n=o-1;return n<=0&&(n=t.itemCount),i(n),void l()}if("Enter"===e.code&&o>0)return e.stopPropagation(),e.preventDefault(),void t.onSelected(o-1);i(0)},containerRef:c}}function Ce(t){return Ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ce(t)}function Ae(){Ae=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new j(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Ce(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var Te={search:function(t,e,r,n){var o={Longitude:t.longitude,Latitude:t.latitude};t.query&&(o.Query=t.query),ct.b.fetch({url:"/api/prospects/search",data:o,success:e,error:r,always:n})},create:function(t){return e=this,r=void 0,n=void 0,o=Ae().mark((function e(){return Ae().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",ct.b.asyncFetch({url:"/api/prospects",method:it.k.POST,data:t}));case 1:case"end":return e.stop()}}),e)})),new(n||(n=Promise))((function(t,a){function i(t){try{l(o.next(t))}catch(t){a(t)}}function c(t){try{l(o.throw(t))}catch(t){a(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(t){t(r)}))).then(i,c)}l((o=o.apply(e,r||[])).next())}));var e,r,n,o}};const Pe={baseText:"zCAkp",inputFocused:"hQufn",input:"j8tBX",suggestionContainer:"CnoBz",noBottomBorder:"E3f3x",localitySuggestion:"TGAhk",suggestionItem:"GQ_aO",suggestionLoading:"Eo2UF",noSuggestion:"xaEZw",selected:"mxCSz"};function Ie(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return _e(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_e(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _e(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Ue="signUp.searchSchoolStepItem",Fe=kt.T.encloseNamespace(Ue);function Ge(t){var e=t.filteredSchoolsList,r=t.getSchoolName,n=t.onSchoolSuggestionClick,o=t.selectedIndex;return a().createElement(a().Fragment,null,e.map((function(t,e){return a().createElement(s.L,{className:"".concat(Pe.suggestionItem," ").concat(o-1===e?Pe.selected:""),key:t.id,onClick:function(){return n(t)}},r(t))})))}function De(t){return a().createElement("div",{className:"info-link ".concat(Pe.suggestionItem," ").concat(Pe.noSuggestion," ").concat(t.selected?Pe.selected:""),onClick:t.handleNoSuggestion},a().createElement(L.x,{namespace:Ue,phrase:"cantFindSchool"}))}function Me(t){var e,r,n=a().useRef(),o=Ie(a().useState(!0),2),i=o[0],c=o[1],u=Ie(a().useState(t.data.schoolName&&t.data.schoolPostCode?t.data.schoolName+", "+t.data.schoolPostCode:t.data.schoolName?t.data.schoolName:""),2),s=u[0],f=u[1],p=Ie(a().useState(),2),h=p[0],d=p[1],m=(0,ke.N)(s,250),y=Ne({onSelected:function(t){if(h||t)if(t!==h.length){var e=h[t];e&&k(e)}else N()},itemCount:null!==(e=(null==h?void 0:h.length)+1)&&void 0!==e?e:0}),v=y.selectedIndex,g=y.onKeyDown,b=y.containerRef,w=!!(null===(r=t.data)||void 0===r?void 0:r.prospectId),E=i&&!w,x=!i&&!w&&!(null==h?void 0:h.length),S=(null==h?void 0:h.length)&&!w;function L(e){(t.data.schoolName||t.data.prospectId)&&t.clearStepItemData(),e!==s&&f(e)}function j(e){c(!0);var r={latitude:t.data.latitude,longitude:t.data.longitude};e&&e.length&&(r.query=e),Te.search(r,(function(t){return d(t)}),null,(function(){return c(!1)}))}function k(e){f(O(e)),t.setDataProperty("prospectId",e.id),t.setDataProperty("schoolName",e.name),t.setDataProperty("schoolPostCode",e.postCode),t.setDataProperty("schoolType",e.prospectType),t.setDataProperty("province",e.province),t.setDataProperty("city",e.city),t.setDataProperty("country",e.countryCode)}function O(t){return t.name}function N(){t.nextStep({step:"cant-find-school",prospectId:t.data.prospectId,schoolName:s,schoolLocality:t.data.schoolLocality,longitude:t.data.longitude,latitude:t.data.latitude,country:t.data.country,city:t.data.city,province:t.data.province}),t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.CantFindSchool,workflowPhase:l.WorkflowPhase.Next})}a().useEffect((function(){w||(m.length?!w&&m.length>1&&m===s&&j(m):j())}),[m,w]);var C=S||E||x;return a().createElement("div",{className:"form-group position-relative"},a().createElement(Ct,{value:s,onChange:function(t){return L(t.currentTarget.value)},ref:n,className:"form-control form-control-lg ".concat(C?Pe.inputFocused:Pe.input),type:"text",autoComplete:"off",placeholder:Fe("schoolInputPlaceholder"),disabled:t.disabled,autoFocus:!0,onClickClear:function(){L(""),n.current.focus()},onKeyDown:g}),a().createElement("div",{className:"position-absolute w-100"},a().createElement("div",{className:"".concat(Pe.suggestionContainer," ").concat(C?"":"d-none"),ref:b},S?a().createElement(Ge,{filteredSchoolsList:h,onSchoolSuggestionClick:k,getSchoolName:O,selectedIndex:v}):E&&a().createElement("div",{className:"".concat(Pe.suggestionLoading," py-4 d-flex justify-content-center")},a().createElement(je.Spinner,{animation:"border"})),!E&&a().createElement(De,{selected:v===h.length+1,handleNoSuggestion:N}))))}var Ke=r(10874),Re=function t(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){if(e.constructor!==r.constructor)return!1;var n,o,a;if(Array.isArray(e)){if((n=e.length)!=r.length)return!1;for(o=n;0!=o--;)if(!t(e[o],r[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if((n=(a=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,a[o]))return!1;for(o=n;0!=o--;){var i=a[o];if(!t(e[i],r[i]))return!1}return!0}return e!=e&&r!=r};const Be="__googleMapsScriptId";var ze;!function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"}(ze||(ze={}));class $e{constructor({apiKey:t,authReferrerPolicy:e,channel:r,client:n,id:o=Be,language:a,libraries:i=[],mapIds:c,nonce:l,region:u,retries:s=3,url:f="https://maps.googleapis.com/maps/api/js",version:p}){if(this.CALLBACK="__googleMapsCallback",this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=e,this.channel=r,this.client=n,this.id=o||Be,this.language=a,this.libraries=i,this.mapIds=c,this.nonce=l,this.region=u,this.retries=s,this.url=f,this.version=p,$e.instance){if(!Re(this.options,$e.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify($e.instance.options)}`);return $e.instance}$e.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?ze.FAILURE:this.done?ze.SUCCESS:this.loading?ze.LOADING:ze.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let t=this.url;return t+=`?callback=${this.CALLBACK}`,this.apiKey&&(t+=`&key=${this.apiKey}`),this.channel&&(t+=`&channel=${this.channel}`),this.client&&(t+=`&client=${this.client}`),this.libraries.length>0&&(t+=`&libraries=${this.libraries.join(",")}`),this.language&&(t+=`&language=${this.language}`),this.region&&(t+=`®ion=${this.region}`),this.version&&(t+=`&v=${this.version}`),this.mapIds&&(t+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(t+=`&auth_referrer_policy=${this.authReferrerPolicy}`),t}deleteScript(){const t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise(((t,e)=>{this.loadCallback((r=>{r?e(r.error):t(window.google)}))}))}loadCallback(t){this.callbacks.push(t),this.execute()}setScript(){if(document.getElementById(this.id))return void this.callback();const t=this.createUrl(),e=document.createElement("script");e.id=this.id,e.type="text/javascript",e.src=t,e.onerror=this.loadErrorCallback.bind(this),e.defer=!0,e.async=!0,this.nonce&&(e.nonce=this.nonce),document.head.appendChild(e)}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(t){if(this.errors.push(t),this.errors.length<=this.retries){const t=this.errors.length*Math.pow(2,this.errors.length);console.log(`Failed to load Google Maps script, retrying in ${t} ms.`),setTimeout((()=>{this.deleteScript(),this.setScript()}),t)}else this.onerrorEvent=t,this.callback()}setCallback(){window.__googleMapsCallback=this.callback.bind(this)}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach((t=>{t(this.onerrorEvent)})),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),void this.callback();this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}}function He(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Ye(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ye(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ye(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function We(t){return new $e({apiKey:t.apiKey,version:"weekly",libraries:t.libraries,retries:3})}function Ze(t){var e={apiKey:t.apiKey,libraries:t.libraries||["places"]},r=He(a().useState(!1),2),n=r[0],o=r[1],i=He(a().useState(We(e)),2),c=i[0],l=i[1];function u(t,r){c?c.loadCallback((function(e){if(e)return o(!1),void(r&&r(e));o(!0),t&&t()})):l(We(e))}return a().useEffect((function(){u()}),[]),{loader:c,scriptLoaded:n,onGoogleApiReady:u}}function qe(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return Je(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Je(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function Je(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Ve={getPlaceDetails:function(t){var e,r,n,o,a,i=t.formatted_address,c=qe(t.address_components);try{for(c.s();!(a=c.n()).done;){var l,u=a.value,s=qe(u.types);try{for(s.s();!(l=s.n()).done;){var f=l.value;"locality"===f&&(e=u.short_name),"administrative_area_level_1"===f&&(r=u.short_name),"postal_code"===f&&(o=u.short_name),"country"===f&&(n=u.short_name)}}catch(t){s.e(t)}finally{s.f()}}}catch(t){c.e(t)}finally{c.f()}return{locality:i,country:n,postalCode:o,city:e,province:r}}};function Qe(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Xe(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return tr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tr(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function er(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return rr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?rr(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var nr="signUp.searchSchoolStepItem",or=kt.T.encloseNamespace(nr);function ar(t){var e=t.predictions,r=t.getPlaceInfo,n=t.selectedIndex;return a().createElement(a().Fragment,null,e.map((function(t,e){return a().createElement(s.L,{className:"".concat(Pe.suggestionItem," ").concat(n-1===e?Pe.selected:""),key:t.place_id,onClick:function(){return r(t)}},t.description)})))}function ir(t){var e,r,n,o,i,c,f=a().useRef(),h=er(a().useState((null===(e=t.data)||void 0===e?void 0:e.schoolLocality)||""),2),d=h[0],m=h[1],y=er(a().useState(!1),2),g=y[0],b=y[1],w=function(t){var e=t.search,r=t.makePredicition,n=t.geoLocation,o=Ze({apiKey:t.apiKey}).scriptLoaded,i=Xe(a().useState(),2),c=i[0],l=i[1];a().useEffect((function(){o&&l(new google.maps.places.AutocompleteService)}),[o]);var u=(0,ke.N)(e,300),s=Xe(a().useState(),2),f=s[0],p=s[1];function h(t,e){e===google.maps.places.PlacesServiceStatus.OK&&t?p(t):p(void 0)}return a().useEffect((function(){if(c)if(0!==(null==u?void 0:u.length)&&r){var t=(null==n?void 0:n.countryCode)||"us";c.getPlacePredictions({input:u,componentRestrictions:{country:t},region:t,types:["locality","sublocality","postal_code"]},h)}else p(void 0)}),[u,r,c]),{localityPredicitions:f,getPlaceInfo:function(t,e,r){new google.maps.places.PlacesService(e.current).getDetails({placeId:t.place_id,fields:["geometry","address_components","formatted_address"],region:n.countryCode},(function(t,e){if(e===google.maps.places.PlacesServiceStatus.OK){var n=t.geometry.location.lng(),o=t.geometry.location.lat(),a=Ve.getPlaceDetails(t),i=a.locality,c=a.country,l=a.postalCode,u=a.city,s=a.province;r({longitude:n,latitude:o,locality:i,country:c,city:u,postalCode:l,province:s})}}))}}}({search:d,makePredicition:g,geoLocation:t.geoLocation,apiKey:t.googleMapsApiKey}),E=w.localityPredicitions,x=w.getPlaceInfo,S=function(t){var e,r,n=(e=a().useState({}),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return Qe(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Qe(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=n[0],i=n[1],c=Ze(t).onGoogleApiReady;function l(t){var e=t.coords,r=e.latitude,n=e.longitude,o=new google.maps.LatLng(r,n);(new google.maps.Geocoder).geocode({location:o},(function(t,e){if(e===google.maps.GeocoderStatus.OK){var o=t.find((function(t){return t.types.includes("locality")||t.types.includes("administrative_area_level_2")})),a=Ve.getPlaceDetails(o);i(Object.assign(Object.assign({},a),{longitude:n,latitude:r}))}}))}function u(e){t.onPositionError(e)}return{placeDetails:o,onClickGetCurrentLocation:function(){c((function(){window.navigator.geolocation.getCurrentPosition(l,u)}))}}}({apiKey:t.googleMapsApiKey,onPositionError:function(){b(!0)}}),j=S.placeDetails,k=S.onClickGetCurrentLocation,O=window.navigator.geolocation?1:0,N=Ne({onSelected:function(t){if(E)if(t!==E.length){var e=E[t];e&&_(e)}else U()},itemCount:null!==(r=(null==E?void 0:E.length)+O)&&void 0!==r?r:0}),C=N.selectedIndex,A=N.onKeyDown,T=N.containerRef;function P(e){var r,n,o;g||b(!0),((null===(r=t.data)||void 0===r?void 0:r.longitude)||(null===(n=t.data)||void 0===n?void 0:n.latitude)||(null===(o=t.data)||void 0===o?void 0:o.schoolLocality))&&t.clearStepGroupData(),m(e)}function I(e){var r=e.longitude,n=e.latitude,o=e.locality,a=e.country,i=e.city,c=e.province;r&&t.setDataProperty("longitude",r),n&&t.setDataProperty("latitude",n),a&&t.setDataProperty("country",a),i&&t.setDataProperty("city",i),c&&t.setDataProperty("province",c),o&&function(e){t.setDataProperty("schoolLocality",e),m(e)}(o)}function _(t){g&&b(!1),x(t,f,I)}function U(e){null==e||e.preventDefault(),b(!1),k(),t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.UseMyLocation})}a().useEffect((function(){I(j)}),[j]);var F,G=(null==E?void 0:E.length)&&!(null===(o=null===(n=t.data)||void 0===n?void 0:n.schoolLocality)||void 0===o?void 0:o.length),D=window.navigator.geolocation&&!(null===(c=null===(i=t.data)||void 0===i?void 0:i.schoolLocality)||void 0===c?void 0:c.length),M=t.labelClassName||"d-block text-center mb-3 font-weight-normal ".concat(Pe.baseText);return a().createElement("div",{className:"form-group position-relative"},a().createElement("label",{className:M,htmlFor:"locality-input"},a().createElement(L.x,{namespace:nr,phrase:"localityInputLabel"})),a().createElement(Ct,{type:"text",value:d,onChange:function(t){return P(t.currentTarget.value)},id:"locality-input",className:(F="form-control form-control-lg",G?"".concat(F," ").concat(Pe.inputFocused):"".concat(F," ").concat(Pe.input)),ref:f,autoComplete:"off",placeholder:or(function(){var e,r,n,o="LocalityInputPlaceholder";return v.isCountryCodeUK(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode)?"uk".concat(o):v.isCountryCodeAU(null===(r=t.geoLocation)||void 0===r?void 0:r.countryCode)||v.isCountryCodeNZ(null===(n=t.geoLocation)||void 0===n?void 0:n.countryCode)?"au".concat(o):"us".concat(o)}()),disabled:t.disabled,autoFocus:!0,onClickClear:function(){P(""),f.current.focus()},onKeyDown:A}),a().createElement("div",{className:"position-absolute w-100"},!!G&&a().createElement("div",{className:"".concat(Pe.suggestionContainer," ").concat(Pe.localitySuggestion),ref:T},a().createElement(ar,{predictions:E,getPlaceInfo:_,selectedIndex:C}),window.navigator.geolocation&&a().createElement(s.L,{className:"".concat(Pe.suggestionItem," px-1 ").concat(C-1===E.length?Pe.selected:""),onClick:U},a().createElement(Ke.h,{svgName:u.vn.LocationCrosshair,className:"btn btn-link info-link bg-transparent py-0 pr-1",svgSize:p.S.Small},a().createElement(L.x,{namespace:nr,phrase:"locationButtonText"})))),D&&!G&&a().createElement("div",{className:"d-flex"},a().createElement(Ke.h,{onClick:U,svgName:u.vn.LocationCrosshair,className:"btn btn-link info-link bg-white",svgSize:p.S.Small},a().createElement(L.x,{namespace:nr,phrase:"locationButtonText"})))))}function cr(t){return cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cr(t)}function lr(){lr=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new j(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==cr(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function ur(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return sr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?sr(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var fr="signUp.searchSchoolStepItem",pr=kt.T.encloseNamespace(fr);const hr={userTypeOption:"tbNZB",selected:"Ehs7R"};function dr(t){return a().createElement(s.L,{className:"\n d-flex\n flex-column\n justify-content-between\n h-100\n p-3\n border\n rounded\n rounded-lg\n mx-auto\n ".concat(hr.userTypeOption," ").concat(t.selected?hr.selected:""),onClick:function(){return t.onClick(t.type)}},a().createElement("img",{src:t.imageSrc,className:"rounded-top mx-auto pb-2"}),a().createElement("div",{className:"py-2"},a().createElement("span",{className:"h4"},t.buttonText)))}var mr,yr="signUp.selectUserTypeStepItem",vr=kt.T.encloseNamespace(yr);!function(t){t.Published="Published",t.Draft="Draft"}(mr||(mr={}));var gr=["Primary","Secondary","K12","Special","TAFE","University"],br=["Elementary","Middle School","High School","College","Other"],wr={au:gr,nz:gr,uk:["Primary","Secondary","Primary & Secondary","Special","Sixth Form College","FE College","University","Other"],us:br};function Er(t){return Er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Er(t)}function xr(){xr=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new j(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==e&&r.call(v,a)&&(m=v);var g=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Er(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new w(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),l(g,c,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Sr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Lr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Lr(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var jr="signUp.cantFindSchoolStepItem",kr=kt.T.encloseNamespace(jr),Or=r(110);const Nr="QBvzz",Cr="Xnu80",Ar="fQ9t5";function Tr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Pr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Pr(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Ir="signUp.enterAgeStepItem",_r=kt.T.encloseNamespace(Ir);function Ur(t,e,r){return"".concat(t.padStart(4,"0"),"-").concat(e.padStart(2,"0"),"-").concat(r.padStart(2,"0"))}var Fr={"select-type":function(t){function e(e){t.logUserAction({userType:e},{actionType:l.UserAction.Click,workflowPhase:l.WorkflowPhase.Next,descriptor:e===Kt.Staff?l.SignUpDescriptors.Educator:l.SignUpDescriptors.Student}),e!==Kt.Staff?t.nextStep({step:"enter-age",userType:e}):t.nextStep({step:"enter-email",userType:e})}return a().createElement("div",{className:"text-center"},a().createElement("h1",{className:"h4"},a().createElement(L.x,{namespace:yr,phrase:"heading"})),a().createElement("p",null,a().createElement(L.x,{namespace:yr,phrase:"subHeading"})),a().createElement("div",{className:"row"},a().createElement("div",{className:"col-lg-6 mb-3"},a().createElement(dr,{type:Kt.Staff,buttonText:vr("educatorButtonText"),imageSrc:h.W.SignUp.EDUCATOR,onClick:e,selected:t.userType===Kt.Staff})),a().createElement("div",{className:"col-lg-6 mb-3"},a().createElement(dr,{type:Kt.Learner,buttonText:vr("studentButtonText"),imageSrc:h.W.SignUp.STUDENT,onClick:e,selected:t.userType===Kt.Learner}))))},"enter-email":function(t){var e,r,n=Pt(a().useState(!1),2),o=n[0],i=n[1],c=Pt(a().useState((null==t?void 0:t.email)||""),2),u=c[0],s=c[1],f=Pt(a().useState(),2),p=f[0],h=f[1],m=(e=t.geoLocation,r=b.getMarketingUrlForGeoLocation(e),"nz"===(null==e?void 0:e.countryCode)?r+"/contact-us/":r+"/contact-us/technical/");function y(e){null==e||e.preventDefault(),function(){var e,r,n,o;e=this,r=void 0,n=void 0,o=Tt().mark((function e(){var r;return Tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u.length?Ut.test(u)||(h(Gt("invalidEmailErrorText")),0):(h(Gt("enterEmailErrorText")),0)){e.next=2;break}return e.abrupt("return");case 2:return i(!0),h(""),e.prev=4,e.next=7,ft.checkTrialStatus({email:u});case 7:r=e.sent,e.next=14;break;case 10:return e.prev=10,e.t0=e.catch(4),h(Gt("trialStatusErrorText")),e.abrupt("return");case 14:if(i(!1),r.status!==z.InvalidEmail){e.next=18;break}return h(Gt("invalidEmailErrorText")),e.abrupt("return");case 18:if(t.logUserAction({},{actionType:l.UserAction.Click,workflowPhase:l.WorkflowPhase.Next,descriptor:l.SignUpDescriptors.EnterEmail}),!Rt.includes(r.status)){e.next=22;break}return t.complete({completionStep:"trial-status",email:u,trialStatus:r.status,trialCreated:!1}),e.abrupt("return");case 22:t.nextStep({step:"find-school",email:u});case 23:case"end":return e.stop()}}),e,null,[[4,10]])})),new(n||(n=Promise))((function(t,a){function i(t){try{l(o.next(t))}catch(t){a(t)}}function c(t){try{l(o.throw(t))}catch(t){a(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(t){t(r)}))).then(i,c)}l((o=o.apply(e,r||[])).next())}))}()}return a().createElement(a().Fragment,null,a().createElement("div",{className:"text-center"},a().createElement("h1",{className:"h4"},a().createElement(L.x,{namespace:Ft,phrase:"heading"})),a().createElement("p",null,a().createElement(L.x,{namespace:Ft,phrase:"subHeading"}))),a().createElement("form",{onSubmit:y,noValidate:!0},a().createElement("div",{className:"form-group mb-3"},a().createElement(Ct,{value:u,onChange:function(t){t.preventDefault(),s(t.target.value),h("")},name:"email-input",id:"email-input",type:"email",className:"form-control form-control-lg ".concat(p?"is-invalid":""),placeholder:Mt(t.geoLocation),autoComplete:"false",autoCorrect:"false",autoFocus:!0,onClickClear:function(){return s("")}}),p&&a().createElement(a().Fragment,null,a().createElement("div",{className:"invalid-feedback d-block"},p),a().createElement("small",null,a().createElement(L.x,{phrase:"emailInputHelpText",namespace:Ft}),a().createElement(O,{href:m,onClick:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.ContactUs})},className:"info-link pl-1",newTab:!0},a().createElement(L.x,{phrase:"emailInputHelpLinkText",namespace:Ft}))))),a().createElement(Ot.m,{showSpinner:o,className:"btn btn-dark btn-lg mb-3 w-100",disabled:o,onClick:y},a().createElement(L.x,{namespace:Ft,phrase:"nextButtonText"}))),a().createElement("div",{className:"text-center"},a().createElement(T,{link:b.getLoginLink(d._.getRelativeUrl()),onClick:function(){t.logUserAction({},{actionType:l.UserAction.Click,descriptor:l.SignUpDescriptors.SignIn})}})))},"find-school":function(t){var e=t.email,r=t.userType,n=ur(a().useState({schoolLocality:t.schoolLocality,country:t.country,longitude:t.longitude,latitude:t.latitude}),2),o=n[0],i=n[1],c=ur(a().useState(),2),l=c[0],u=c[1],s=ur(a().useState(),2),f=s[0],p=s[1],h=ur(a().useState(!1),2),d=h[0],m=h[1],y=ur(a().useState(!1),2),v=y[0],g=y[1],b=ur(a().useState(!1),2),w=b[0],E=b[1];function x(){if(!o||!e||!r)return!1;var t=o.prospectId;return!!(e&&r&&t)}function S(t){g(t),E(t),m(t)}function j(t,e){"prospectId"===t&&e&&(m(!0),ft.checkProspectTrialStatus({prospectId:e.toString()},(function(t){u(t.status)}),(function(){console.log("error")}),(function(){m(!1)}))),i((function(r){return Object.assign(Object.assign({},r),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==cr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==cr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===cr(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},t,e))}))}function k(){j("prospectId",void 0),j("schoolName",""),j("schoolPostCode",void 0),p(void 0)}return a().createElement(a().Fragment,null,a().createElement("div",{className:"text-center"},a().createElement("h1",{className:"h4"},a().createElement(L.x,{namespace:fr,phrase:"heading"})),a().createElement("p",null,a().createElement(L.x,{namespace:fr,phrase:"subHeading"}))),a().createElement(ir,{data:o,setDataProperty:j,clearStepGroupData:function(){j("schoolLocality",void 0),i((function(t){return Object.assign(Object.assign({},t),{longitude:undefined,latitude:undefined})})),j("city",void 0),j("province",void 0),j("country",void 0),k(),p(void 0)},disabled:v,geoLocation:t.geoLocation,labelClassName:"d-none",logUserAction:t.logUserAction,googleMapsApiKey:t.googleMapsApiKey}),!!(o&&o.schoolLocality&&o.longitude&&o.latitude)&&a().createElement(Me,{data:o,setDataProperty:j,clearStepItemData:k,nextStep:t.nextStep,currentStepId:t.currentStepId,disabled:w,logUserAction:t.logUserAction}),f&&a().createElement("p",{className:"text-danger mb-2"},f),x()&&a().createElement(Ot.m,{className:"btn btn-dark btn-lg w-100",onClick:function(){return n=this,a=void 0,i=void 0,c=lr().mark((function n(){var a;return lr().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!d){n.next=2;break}return n.abrupt("return");case 2:if(x()){n.next=5;break}return p(pr("cannotSubmitFormError")),n.abrupt("return");case 5:if(l!==B.Unsupported||r!==Kt.Staff){n.next=8;break}return t.nextStep(Object.assign({step:"add-to-braze",trialStatus:l},o)),n.abrupt("return");case 8:if(l===B.Active||l===B.Available){n.next=11;break}return t.complete(Object.assign({completionStep:"trial-status",trialStatus:l,trialCreated:!1},o)),n.abrupt("return");case 11:return S(!0),n.prev=12,n.next=15,ft.createTrial({userType:r,email:e,prospectId:null==o?void 0:o.prospectId,appLink:t.pageAppLinkString,accessPolicy:Le(o.country)});case 15:a=n.sent,n.next=23;break;case 18:return n.prev=18,n.t0=n.catch(12),p(pr("requestTrialError")),S(!1),n.abrupt("return");case 23:if(a.id&&a.dateCreated){n.next=27;break}return p(pr("requestTrialError")),S(!1),n.abrupt("return");case 27:j("userId",a.id),t.complete(Object.assign({completionStep:"trial-status",userId:a.id,trialCreated:!0,trialStatus:B.Available},o));case 29:case"end":return n.stop()}}),n,null,[[12,18]])})),new(i||(i=Promise))((function(t,e){function r(t){try{l(c.next(t))}catch(t){e(t)}}function o(t){try{l(c.throw(t))}catch(t){e(t)}}function l(e){var n;e.done?t(e.value):(n=e.value,n instanceof i?n:new i((function(t){t(n)}))).then(r,o)}l((c=c.apply(n,a||[])).next())}));var n,a,i,c},showSpinner:v||w||d,disabled:v||w||d},a().createElement(L.x,{namespace:fr,phrase:"submitButtonText"})))},"cant-find-school":function(t){var e,r,n,o=Sr(a().useState({prospectId:t.prospectId,schoolName:t.schoolName,schoolType:t.schoolType,schoolLocality:t.schoolLocality,country:t.country}),2),i=o[0],c=o[1],l=Sr(a().useState(),2),u=l[0],s=l[1],f=Sr(a().useState(!1),2),p=f[0],h=f[1],d=(r=i.country||(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode),n=v.getCountryCode(r),wr[n]||br);function m(){var t=i.schoolName,e=i.schoolType,r=i.country;return!!(t&&e&&r)}function y(t,e){c((function(r){return Object.assign(Object.assign({},r),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Er(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Er(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Er(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},t,e))}))}return a().createElement(a().Fragment,null,a().createElement("div",{className:"text-center"},a().createElement("h1",{className:"h4"},a().createElement(L.x,{namespace:jr,phrase:"heading"})),a().createElement("p",null,a().createElement(L.x,{namespace:jr,phrase:"subHeading"}))),a().createElement("div",{className:"form-group"},a().createElement("label",{className:"d-block",htmlFor:"school-name-input"},a().createElement(L.x,{namespace:jr,phrase:"schoolNameInputLabel"})),a().createElement("input",{type:"text",value:(null==i?void 0:i.schoolName)||"",onChange:function(t){y("schoolName",t.target.value)},id:"school-name-input",className:"form-control form-control-lg",autoComplete:"off",placeholder:kr("schoolNameInputPlaceholder")})),a().createElement("div",{className:"form-group"},a().createElement("label",{className:"d-block",htmlFor:"school-type-select"},a().createElement(L.x,{namespace:jr,phrase:"schoolTypeInputLabel"})),a().createElement("select",{id:"school-type-select",className:"form-control form-control-lg ".concat(i.schoolType?"":"text-muted"),autoComplete:"off",value:i.schoolType||"none",onChange:function(t){y("schoolType",t.target.value)}},a().createElement("option",{value:"none",className:"text-muted",disabled:!0},kr("schoolTypeInputDefault")),d.map((function(t){return a().createElement("option",{value:t,key:t,className:"text-dark"},t)})))),a().createElement(ir,{data:i,setDataProperty:y,clearStepGroupData:function(){y("schoolLocality",void 0),c((function(t){return Object.assign(Object.assign({},t),{longitude:undefined,latitude:undefined})})),y("city",void 0),y("province",void 0),y("country",void 0),s("")},disabled:!1,labelClassName:"d-block",geoLocation:t.geoLocation,logUserAction:t.logUserAction,googleMapsApiKey:t.googleMapsApiKey}),u&&a().createElement("div",{className:"text-danger mb-3"},u),m()&&a().createElement(Ot.m,{className:"btn btn-dark btn-lg w-100",onClick:function(e){return r=this,n=void 0,o=void 0,a=xr().mark((function r(){var n,o,a;return xr().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.preventDefault(),m()){r.next=3;break}return r.abrupt("return");case 3:return h(!0),r.prev=4,r.next=7,Te.create({name:i.schoolName,status:mr.Draft,countryCode:i.country,prospectType:i.schoolType,city:i.city,postCode:i.schoolPostCode,province:i.province});case 7:if((n=r.sent).id){r.next=12;break}return h(!1),s(kr("submissionErrorText")),r.abrupt("return");case 12:r.next=19;break;case 14:return r.prev=14,r.t0=r.catch(4),h(!1),s(kr("submissionErrorText")),r.abrupt("return");case 19:return r.prev=19,r.next=22,ft.createTrial({userType:t.userType,email:t.email,prospectId:n.id,appLink:t.pageAppLinkString,accessPolicy:Le(i.country)});case 22:if((o=r.sent).id){r.next=27;break}return h(!1),s(kr("submissionErrorText")),r.abrupt("return");case 27:t.complete({completionStep:"trial-status",email:t.email,userId:o.id,prospectId:n.id,schoolName:i.schoolName,schoolLocality:i.schoolLocality,country:i.country,schoolType:i.schoolType,city:i.city,schoolPostCode:i.schoolPostCode,latitude:i.latitude,longitude:i.longitude,province:i.province,trialStatus:B.Available,trialCreated:!0}),r.next=40;break;case 30:if(r.prev=30,r.t1=r.catch(19),r.t1.body){r.next=36;break}return h(!1),s(kr("submissionErrorText")),r.abrupt("return");case 36:if(400!==(a=r.t1).body.status||"trial-not-available"!==a.body.type){r.next=40;break}return t.nextStep(Object.assign(Object.assign({step:"add-to-braze"},i),{prospectId:n.id,trialStatus:B.Unavailable})),r.abrupt("return");case 40:case"end":return r.stop()}}),r,null,[[4,14],[19,30]])})),new(o||(o=Promise))((function(t,e){function i(t){try{l(a.next(t))}catch(t){e(t)}}function c(t){try{l(a.throw(t))}catch(t){e(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof o?r:new o((function(t){t(r)}))).then(i,c)}l((a=a.apply(r,n||[])).next())}));var r,n,o,a},showSpinner:p,disabled:p},a().createElement(L.x,{namespace:jr,phrase:"submitButtonText"})))},completed:function(t){var e=jt[t.completionStep];return a().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto px-2"},a().createElement(e,Object.assign({},t)))},"add-to-braze":function(t){var e,r=ye(a().useState(!1),2),n=r[0],o=r[1],i=ye(a().useState({}),2),c=i[0],l=i[1];function u(e){var r=Se(e.fullname),n=r.firstName,o=r.surname,a={prospect_id:null==t?void 0:t.prospectId,email:null==t?void 0:t.email,organisation_sub_type:te.getSchoolType(null==t?void 0:t.schoolType),account_name:null==t?void 0:t.schoolName,account_post_code:null==t?void 0:t.schoolPostCode,account_country:null==t?void 0:t.country,first_name:n,last_name:o,job_title:e.jobTitle,sync_to_crm:!0,event_topic:te.getEventTopic()};return te.removeEmptyKeys(a)}return a().useEffect((function(){t.userType===Kt.Learner&&t.complete({completionStep:"trial-status",trialCreated:!1,trialStatus:B.Unsupported})}),[]),a().createElement(he,{errors:c,loading:n,geoLocation:t.geoLocation,country:t.country||(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode),logUserAction:t.logUserAction,handleSubmitForm:function(e){(function(t){var e=t.fullname,r=t.jobTitle,n=t.phone,o=Se(e),a=o.firstName,i=o.surname,c={};return a&&i||(c.fullname=xe("emptyFullName")),(we.test(a)||we.test(i))&&(c.fullname=xe("invalidFullName")),e.length>be&&(c.fullname=xe("maxFullName",{maxLength:be})),(null==r?void 0:r.length)||(c.jobTitle=xe("emptyJobTitle")),we.test(r)&&(c.jobTitle=xe("invalidJobTitle")),r.length>be&&(c.jobTitle=xe("maxJobTitle",{maxLength:be})),(null==n?void 0:n.length)||(c.phone=xe("emptyPhone")),!we.test(n)&&Ee.test(n)||(c.phone=xe("invalidPhone")),l(c),!Object.keys(c).length})(e)&&function(e){var r,a,i,s;r=this,a=void 0,i=void 0,s=me().mark((function r(){var a,i,s,f,p,h;return me().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!n){r.next=2;break}return r.abrupt("return");case 2:if(t.userType!==Kt.Learner){r.next=5;break}return l(Object.assign(Object.assign({},c),{submission:xe("submissionError")})),r.abrupt("return");case 5:return o(!0),a=u(e),r.next=9,te.getClient(t.geoLocation);case 9:i=r.sent,s=Se(e.fullname),f=s.firstName,p=s.surname,h={prospect_id:null==t?void 0:t.prospectId,organisation_sub_type:te.getSchoolType(null==t?void 0:t.schoolType),account_name:null==t?void 0:t.schoolName,account_post_code:null==t?void 0:t.schoolPostCode,account_country:null==t?void 0:t.country,job_title:e.jobTitle,sync_to_crm:!0},h=te.removeEmptyKeys(h);try{i.setUser(te.hashedEmail(null==t?void 0:t.email)),i.setUserFirstName(f),i.setUserLastName(p),i.setUserPhone(e.phone),i.setUserEmail(null==t?void 0:t.email),i.openSession(),i.bulkSetCustomUserAttributes(h),i.logEvent({type:te.getCustomEventType(),data:a}),i.sendData((function(t){l(t?{}:Object.assign(Object.assign({},c),{submission:xe("submissionError")})),o(!1)}))}catch(t){l(Object.assign(Object.assign({},c),{submission:xe("submissionError")}))}Object.keys(c).length||t.complete({completionStep:"added-to-braze",trialCreated:!1,trialStatus:null});case 15:case"end":return r.stop()}}),r)})),new(i||(i=Promise))((function(t,e){function n(t){try{c(s.next(t))}catch(t){e(t)}}function o(t){try{c(s.throw(t))}catch(t){e(t)}}function c(e){var r;e.done?t(e.value):(r=e.value,r instanceof i?r:new i((function(t){t(r)}))).then(n,o)}c((s=s.apply(r,a||[])).next())}))}(e)},removeErrorForKey:function(t){if(Object.keys(c).length&&c[t]){var e=Object.assign({},c);delete e[t],l(e)}}})},"enter-age":function(t){var e=Tr(a().useState(""),2),r=e[0],n=e[1],o=Tr(a().useState(""),2),i=o[0],c=o[1],l=Tr(a().useState(""),2),u=l[0],s=l[1],f=Tr(a().useState(null),2),p=f[0],h=f[1],d=(new Date).getFullYear(),m="mx-2 d-inline-block text-left",y="form-control form-control-lg ".concat(p?"is-invalid":""),g="order-0",b="order-3",w=v.isCountryCodeUS(t.geoLocation.countryCode);return w&&(g="order-3",b="order-0"),a().createElement("form",{className:"text-center",onSubmit:function(e){if(e.preventDefault(),r&&i&&u?Or.O.isValid(Ur(u,i,r))?+u>d?(h(_r("future")),0):!(+u<d-120&&(h(_r("past",{age:d-+u})),1)):(h(_r("invalid")),0):(h(_r("missing")),0)){var n=new Date(Ur(u,i,r)),o=Or.O.subtract(new Date,13,"years");Or.O.isAfter(n,o)?t.complete({completionStep:"young-student",trialCreated:!1,trialStatus:null}):t.nextStep({step:"enter-email",userType:t.userType})}},noValidate:!0},a().createElement("h1",{className:"h4"},a().createElement(L.x,{namespace:Ir,phrase:"heading"})),a().createElement("p",null,a().createElement(L.x,{namespace:Ir,phrase:"subHeading"})),a().createElement("div",{className:"my-4"},a().createElement("div",{className:"d-flex justify-content-center"},a().createElement("div",{className:"".concat(m," ").concat(g)},a().createElement("label",{className:"mb-0",htmlFor:"day"},a().createElement(L.x,{namespace:Ir,phrase:"day"})),a().createElement("input",{id:"day",type:"number",className:"".concat(y," ").concat(Nr),min:"1",max:"31",placeholder:"DD",value:r,onChange:function(t){n(t.target.value),h(null)},autoFocus:!w,tabIndex:w?2:1})),a().createElement("span",{className:"h1 font-weight-normal mt-3 mb-0 order-1 ".concat(p?"text-danger":"")},"/"),a().createElement("div",{className:"".concat(m," ").concat(b)},a().createElement("label",{className:"mb-0",htmlFor:"month"},a().createElement(L.x,{namespace:Ir,phrase:"month"})),a().createElement("input",{id:"month",type:"number",className:"".concat(y," ").concat(Cr),min:"1",max:"12",placeholder:"MM",value:i,onChange:function(t){c(t.target.value),h(null)},autoFocus:w,tabIndex:w?1:2})),a().createElement("span",{className:"h1 font-weight-normal mt-3 mb-0 order-4 ".concat(p?"text-danger":"")},"/"),a().createElement("div",{className:"".concat(m," order-5")},a().createElement("label",{className:"mb-0",htmlFor:"year"},a().createElement(L.x,{namespace:Ir,phrase:"year"})),a().createElement("input",{id:"year",type:"number",className:"".concat(y," ").concat(Ar),min:d-120,max:d,placeholder:"YYYY",value:u,onChange:function(t){s(t.target.value),h(null)},tabIndex:3}))),!!p&&a().createElement("div",{className:"invalid-feedback d-block"},p)),a().createElement("button",{type:"submit",className:"btn btn-lg btn-dark w-100"},a().createElement(L.x,{namespace:Ir,phrase:"submit"})))}};function Gr(t){var e=t.state,r=t.geoLocation,n=t.layoutMapping,o=t.hasPreviousStep,i=t.googleMapsApiKey,c=t.pageAppLinkString,l=t.back,u=t.nextStep,s=t.complete,f=t.logUserAction,p=Fr[e.currentStepId],h=Object.assign(Object.assign({},e),{geoLocation:r,googleMapsApiKey:i,pageAppLinkString:c,back:l,nextStep:u,complete:s,logUserAction:f}),d=n[e.currentStepId];return d?a().createElement(d,{geoLocation:t.geoLocation,currentStep:e.currentStepId,previousStep:l,closeApp:t.close,logUserAction:f,hasPreviousStep:o},a().createElement(p,Object.assign({},h))):a().createElement(p,Object.assign({},h))}var Dr=r(1048);function Mr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Kr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Rr(t,e){switch(e.type){case"nextStep":return function(t,e){var r,n=Object.assign(Object.assign({},t),{previousStepIds:[].concat((r=t.previousStepIds,function(t){if(Array.isArray(t))return Kr(t)}(r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||function(t,e){if(t){if("string"==typeof t)return Kr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Kr(t,e):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[t.currentStepId]),currentStepId:e.step});if("select-type"===e.step)return Object.assign({},n);if("enter-email"===e.step)return Object.assign(Object.assign({},n),{userType:e.userType});if("enter-age"===e.step)return Object.assign(Object.assign({},n),{userType:e.userType});if("find-school"===e.step)return Object.assign(Object.assign({},n),{email:e.email});if("cant-find-school"===e.step)return Object.assign(Object.assign({},n),{prospectId:e.prospectId,schoolName:e.schoolName,schoolLocality:e.schoolLocality,country:e.country,longitude:e.longitude,latitude:e.latitude,city:e.city,province:e.province});if("add-to-braze"===e.step){var o=Dr.t.omit(e,["type","step"]);return o=Dr.t.removeEmptyKeys(o),Object.assign(Object.assign({},n),o)}if("completed"===e.step){var a=Dr.t.omit(e,["type","step"]);return a=Dr.t.removeEmptyKeys(a),Object.assign(Object.assign({},n),a)}}(t,e);case"back":return function(t){var e,r=function(t){if(Array.isArray(t))return Mr(t)}(e=t.previousStepIds)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return Mr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Mr(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=r.pop();return Object.assign(Object.assign({},t),{previousStepIds:r,currentStepId:n})}(t)}}function Br(t){return Br="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Br(t)}function zr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return $r(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$r(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Hr=function(t){var e=t.location,r=t.initialValues,n=t.onStepUpdate,o=te.removeEmptyKeys(r),i=Object.assign({currentStepId:"select-type",previousStepIds:[]},o),c=zr(a().useReducer(Rr,i),2),u=c[0],s=c[1];return a().useEffect((function(){null==n||n(u.currentStepId)}),[u.currentStepId]),{state:u,back:function(){s({type:"back"})},nextStep:function(t){s(Object.assign({type:"nextStep"},t))},complete:function(t){s(Object.assign({type:"nextStep",step:"completed"},t))},hasPreviousStep:!!u.previousStepIds.length,logUserAction:function(t,r){var n=Object.assign(Object.assign({currentStepId:u.currentStepId},Dr.t.omit(u,["email","longitude","latitude","trialCreated"])),t),o=Object.entries(n).filter((function(t){return void 0!==zr(t,2)[1]})).reduce((function(t,e){var r=zr(e,2),n=r[0],o=r[1];return Object.assign(Object.assign({},t),function(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Br(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Br(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Br(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},n,o))}),{});j.k.logUserAction(o,Object.assign({entity:l.EntityType.SignUp,location:e},r))}}};const Yr={buttonContainer:"muxxq",dataContainer:"pbBua"};function Wr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Zr(t){var e={};return Object.keys(t).forEach((function(r){var n=t[r];Dr.t.isObject(n)&&null!==n&&!Array.isArray(n)?Object.assign(e,Zr(n)):e[r]=n})),e}function qr(t){var e=t.label,r=t.item,n=r;return Array.isArray(r)&&(n=n.join(" -> ")),"boolean"==typeof n&&(n=n?"true":"false"),a().createElement("div",{className:"pb-1"},e,": ",a().createElement("b",{className:"text-white"},n))}function Jr(t){var e,r,n=t.developmentEnv,o=t.objects,i=(e=a().useState(!0),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return Wr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wr(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=i[0],l=i[1],u=a().useMemo((function(){return Zr(o)}),[o]);return n&&a().createElement(a().Fragment,null,a().createElement("div",{className:"position-fixed p-4 ".concat(Yr.buttonContainer)},a().createElement("button",{onClick:function(){l(!c)},className:"btn btn-dark px-2 py-1"},c?"Hide":"Show"," debugger")),c&&a().createElement("div",{className:"fixed-bottom mb-4 ml-4 bg-dark rounded ".concat(Yr.dataContainer)},a().createElement("code",{className:"d-block p-4"},a().createElement("div",{className:"font-weight-bold pb-2"},"{ Debug: Form Data }"),Object.keys(u).map((function(t){return a().createElement(qr,{key:t,label:t,item:u[t]})})))))}function Vr(t){var e=W.getLayouts(t.type),r=t.location,n=t.initialValues,o=t.geoLocation,c=t.googleMapsApiKey,l=t.pageAppLinkString,u=t.onStepUpdate,s=t.close,f=Hr({location:r,initialValues:n,onStepUpdate:u}),p=f.back,h=f.nextStep,d=f.complete,m=f.hasPreviousStep,y=f.state,v=f.logUserAction,g={state:y,geoLocation:o,layoutMapping:e,hasPreviousStep:m,googleMapsApiKey:c,pageAppLinkString:l,back:p,close:s,nextStep:h,complete:d,logUserAction:v};return a().useEffect((function(){i.SG.get(rt)&&d({completionStep:"young-student",trialCreated:!1,trialStatus:null})}),[]),a().createElement(a().Fragment,null,a().createElement(Gr,Object.assign({},g)),a().createElement(Jr,{developmentEnv:!1,objects:Object.assign(Object.assign(Object.assign({},y),{pageAppLinkString:l}),o)}))}},2903:(t,e,r)=>{var n;r.d(e,{c:()=>n}),function(t){t.Popup="popup-form",t.FullPage="full-page-form"}(n||(n={}))},15661:(t,e,r)=>{r.d(e,{b:()=>y});var n=r(99940);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t){var e="function"==typeof Map?new Map:void 0;return a=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return i(t,arguments,u(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,t)},a(t)}function i(t,e,r){return i=c()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&l(o,r.prototype),o},i.apply(null,arguments)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(i,t);var e,r,n,a=(r=i,n=c(),function(){var t,e=u(r);if(n){var a=u(this).constructor;t=Reflect.construct(e,arguments,a)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function i(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Error";return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=a.call(this,r)).body=t,e}return e=i,Object.defineProperty(e,"prototype",{writable:!1}),e}(a(Error)),f=r(42976);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function h(){h=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof d?e:d,i=Object.create(a.prototype),c=new O(o||[]);return n(i,"_invoke",{value:S(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function d(){}function m(){}function y(){}var v={};l(v,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(N([])));b&&b!==e&&r.call(b,a)&&(v=b);var w=y.prototype=d.prototype=Object.create(v);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function o(n,a,i,c){var l=s(t[n],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==p(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(l.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=L(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function L(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,L(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function N(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return m.prototype=y,n(w,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:m,configurable:!0}),m.displayName=l(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},E(x.prototype),l(x.prototype,i,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new x(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(w),l(w,c,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=N,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:N(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var d=function(t,e,r,n){return new(r||(r=Promise))((function(o,a){function i(t){try{l(n.next(t))}catch(t){a(t)}}function c(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,c)}l((n=n.apply(t,e||[])).next())}))};function m(t){var e={method:n.k.GET,headers:{"Content-type":"application/json"}};t.method&&(e=Object.assign(Object.assign({},e),{method:t.method})),t.init&&(e=Object.assign(Object.assign({},e),t.init));var r=t.url;return e.method===n.k.GET&&t.data?r=f._.prepareQuery(r,t.data):t.data&&(e=Object.assign(Object.assign({},e),{body:JSON.stringify(t.data)})),{init:e,url:r}}var y={asyncFetch:function(t){return d(this,void 0,void 0,h().mark((function e(){var r,n,o;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=m(t),e.next=3,fetch(r.url,r.init);case 3:if((n=e.sent).ok){e.next=9;break}return e.next=7,n.json();case 7:throw o=e.sent,new s(o);case 9:if(204!==n.status){e.next=11;break}return e.abrupt("return");case 11:return e.next=13,n.json();case 13:return e.abrupt("return",e.sent);case 14:case"end":return e.stop()}}),e)})))},asyncFetchPlain:function(t){return d(this,void 0,void 0,h().mark((function e(){var r,n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=m(t),e.next=3,fetch(r.url,r.init);case 3:if((n=e.sent).ok){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,n.text();case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e)})))},fetch:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){var e=m(t);return fetch(e.url,e.init).then((function(t){if(204!==t.status)return t.json()})).then((function(e){return t.success&&t.success(e),e})).catch((function(e){return t.error&&t.error(),e})).finally((function(){t.always&&t.always()}))}))}},42976:(t,e,r)=>{r.d(e,{_:()=>n});var n={prepareQuery:function(t,e){var r=t;return Object.keys(e).forEach((function(t,n){e[t]&&(r+=0===n?"?":"&",r+="".concat(t,"=").concat(encodeURIComponent(e[t])))})),r},getRelativeUrl:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=window.location.pathname;return t&&(r+=window.location.search),e?encodeURIComponent(r):r}}},82301:(t,e,r)=>{r.d(e,{M:()=>h});var n=r(1024),o=r.n(n),a=r(15661),i={geoLocation:function(){return a.b.fetch({url:"/api/geolocation"})}};function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function l(){l=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,o){var a=e&&e.prototype instanceof d?e:d,i=Object.create(a.prototype),c=new O(o||[]);return n(i,"_invoke",{value:S(t,r,c)}),i}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var h={};function d(){}function m(){}function y(){}var v={};s(v,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(N([])));b&&b!==e&&r.call(b,a)&&(v=b);var w=y.prototype=d.prototype=Object.create(v);function E(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function o(n,a,i,l){var u=p(t[n],t,a);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==c(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,l)}),(function(t){o("throw",t,i,l)})):e.resolve(f).then((function(t){s.value=t,i(s)}),(function(t){return o("throw",t,i,l)}))}l(u.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=L(i,r);if(c){if(c===h)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=p(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function L(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,L(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=p(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function N(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return m.prototype=y,n(w,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:m,configurable:!0}),m.displayName=s(y,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,s(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},E(x.prototype),s(x.prototype,i,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new x(f(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(w),s(w,u,"Generator"),s(w,a,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=N,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:N(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var s=function(t,e,r,n){return new(r||(r=Promise))((function(o,a){function i(t){try{l(n.next(t))}catch(t){a(t)}}function c(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,c)}l((n=n.apply(t,e||[])).next())}))},f=["us","au","nz","gb","gg","im","je","ie"],p="us";function h(){var t,e,r=(t=o().useState(null),e=2,function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),n=r[0],a=r[1];function c(t){var e;f.includes(null===(e=null==t?void 0:t.countryCode)||void 0===e?void 0:e.toLowerCase())?a(t):a({countryCode:p})}return o().useEffect((function(){!function(){s(this,void 0,void 0,l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,t.next=5,i.geoLocation();case 5:c(t.sent),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(2),c(null);case 12:case"end":return t.stop()}}),t,null,[[2,9]])})))}()}),[]),n}},26392:(t,e,r)=>{r.d(e,{Z:()=>n});const n={logo:"JkF9k",modalBody:"CmPcN",popupButton:"FkCPC",leftHalfLayout:"KsojV",withBg:"TJ9fO"}}}]);
|