@clickview/lite 0.16.0-rc.2 → 0.16.0-rc.4

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.
Files changed (100) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/css/{1261-lite-149e3f989f.chunk.css → 1261-lite-154063f9c1.chunk.css} +1 -1
  3. package/dist/css/{4262-lite-4d6568b754.chunk.css → 128-lite-13c42eb135.chunk.css} +3 -2
  4. package/dist/css/{5923-lite-5920e712c0.chunk.css → 1618-lite-61d874ee53.chunk.css} +3 -2
  5. package/dist/css/{1749-lite-b5c85ba0ec.chunk.css → 1749-lite-12c467219f.chunk.css} +1 -1
  6. package/dist/css/{7279-lite-63cba19382.chunk.css → 1929-lite-b747648611.chunk.css} +3 -2
  7. package/dist/css/{2115-lite-4e2150a7c6.chunk.css → 2115-lite-c5eeed0420.chunk.css} +1 -1
  8. package/dist/css/{2132-lite-2ec84f49e8.chunk.css → 2132-lite-35c71c37c2.chunk.css} +1 -1
  9. package/dist/css/{749-lite-58cb1d0181.chunk.css → 2877-lite-b825e6165f.chunk.css} +3 -2
  10. package/dist/css/{6883-lite-2c07aa2163.chunk.css → 300-lite-77d806addb.chunk.css} +1 -1
  11. package/dist/css/{3254-lite-b1cfcfdd2f.chunk.css → 3238-lite-fed65a158a.chunk.css} +3 -2
  12. package/dist/css/{6680-lite-e4832fd807.chunk.css → 3436-lite-c4ada3b32c.chunk.css} +14 -15
  13. package/dist/css/{380-lite-8423289aa5.chunk.css → 380-lite-ee64365f77.chunk.css} +1 -1
  14. package/dist/css/{4309-lite-0d3209c03b.chunk.css → 4309-lite-8fe16f36e7.chunk.css} +3 -2
  15. package/dist/css/{3789-lite-61992b3cc7.chunk.css → 4870-lite-f9a464da2d.chunk.css} +3 -2
  16. package/dist/css/{8424-lite-263037580a.chunk.css → 5092-lite-1180754dc4.chunk.css} +14 -15
  17. package/dist/css/{724-lite-f1493ddb06.chunk.css → 5652-lite-d863878802.chunk.css} +7 -6
  18. package/dist/css/{57-lite-8fe9cfc4fd.chunk.css → 57-lite-ee06d16e27.chunk.css} +1 -1
  19. package/dist/css/{6134-lite-9014acf935.chunk.css → 6134-lite-ee794c3a5d.chunk.css} +1 -1
  20. package/dist/css/{6686-lite-db903cbf4c.chunk.css → 6686-lite-b8db612885.chunk.css} +1 -1
  21. package/dist/css/{6786-lite-d58b95be7d.chunk.css → 6786-lite-f20dbaff86.chunk.css} +1 -1
  22. package/dist/css/{8000-lite-4781348c43.chunk.css → 7199-lite-beac9a729e.chunk.css} +1 -1
  23. package/dist/css/{6153-lite-e300e19a71.chunk.css → 7631-lite-4a02fecf01.chunk.css} +3 -2
  24. package/dist/css/{7199-lite-4781348c43.chunk.css → 8000-lite-beac9a729e.chunk.css} +1 -1
  25. package/dist/css/{8009-lite-48f081daa1.chunk.css → 8009-lite-259680669b.chunk.css} +1 -1
  26. package/dist/css/{9194-lite-61992b3cc7.chunk.css → 8028-lite-f9a464da2d.chunk.css} +3 -2
  27. package/dist/css/{9468-lite-46bb2504a1.chunk.css → 8200-lite-5a6b23612b.chunk.css} +1 -1
  28. package/dist/css/{3240-lite-63cba19382.chunk.css → 8472-lite-b747648611.chunk.css} +3 -2
  29. package/dist/css/{8200-lite-46bb2504a1.chunk.css → 9468-lite-5a6b23612b.chunk.css} +1 -1
  30. package/dist/css/{7532-lite-bc0b033c29.chunk.css → 9592-lite-a3205bb6ab.chunk.css} +2 -1
  31. package/dist/css/{9655-lite-e565075b6d.chunk.css → 9655-lite-95612b3c83.chunk.css} +1 -1
  32. package/dist/css/{78-lite-7acf8cf89e.chunk.css → 9990-lite-1b90d8f61a.chunk.css} +1 -1
  33. package/dist/css/{lite-app-bf3edf6b59.css → lite-app-0371226ac9.css} +1 -1
  34. package/dist/languages/en.json +1 -1
  35. package/dist/scripts/128-9d92b3ce34-lite.chunk.js +1 -0
  36. package/dist/scripts/1518-d1d91a487e-lite.chunk.js +1 -0
  37. package/dist/scripts/{4262-333422e343-lite.chunk.js → 1618-eecb176a9c-lite.chunk.js} +1 -1
  38. package/dist/scripts/{3240-7f6fc30700-lite.chunk.js → 1929-860c423a79-lite.chunk.js} +1 -1
  39. package/dist/scripts/2132-d1778f5f7d-lite.chunk.js +1 -0
  40. package/dist/scripts/2791-797e2f7e2a-lite.chunk.js +1 -0
  41. package/dist/scripts/2877-4ef221c88d-lite.chunk.js +1 -0
  42. package/dist/scripts/300-7ebfdab7e3-lite.chunk.js +1 -0
  43. package/dist/scripts/3238-ed1db6a2c1-lite.chunk.js +1 -0
  44. package/dist/scripts/3436-b6aa7a7afb-lite.chunk.js +1 -0
  45. package/dist/scripts/{380-285cf91d8c-lite.chunk.js → 380-cf9a7fc6d2-lite.chunk.js} +1 -1
  46. package/dist/scripts/4309-0ef925ad83-lite.chunk.js +1 -0
  47. package/dist/scripts/{9194-754d408be9-lite.chunk.js → 4870-6fa1f70140-lite.chunk.js} +1 -1
  48. package/dist/scripts/5092-cd26ac8c1e-lite.chunk.js +1 -0
  49. package/dist/scripts/5652-9b24e734ac-lite.chunk.js +1 -0
  50. package/dist/scripts/6118-1960648ee9-lite.chunk.js +2 -0
  51. package/dist/scripts/6450-7e8f6a7a4f-lite.chunk.js +1 -0
  52. package/dist/scripts/{6480-f8f772fd30-lite.chunk.js → 6480-c5a48da666-lite.chunk.js} +1 -1
  53. package/dist/scripts/7307-0d4940037a-lite.chunk.js +1 -0
  54. package/dist/scripts/{6153-a6b5ff90ac-lite.chunk.js → 7631-7f7a549459-lite.chunk.js} +1 -1
  55. package/dist/scripts/7831-e03ee2d74b-lite.chunk.js +1 -0
  56. package/dist/scripts/{3789-93cc639872-lite.chunk.js → 8028-406abba452-lite.chunk.js} +1 -1
  57. package/dist/scripts/{8377-7df50d0cae-lite.chunk.js → 8377-0e8bb198fd-lite.chunk.js} +1 -1
  58. package/dist/scripts/{7279-191d0874fe-lite.chunk.js → 8472-b5f240a421-lite.chunk.js} +1 -1
  59. package/dist/scripts/8976-80b3e5e87f-lite.chunk.js +2 -0
  60. package/dist/scripts/{9304-8e1507b512-lite.chunk.js → 9001-76cecefa6f-lite.chunk.js} +1 -1
  61. package/dist/scripts/{9154-1499a9c27b-lite.chunk.js → 9154-e03891eb48-lite.chunk.js} +1 -1
  62. package/dist/scripts/{9478-8ecc004bb4-lite.chunk.js → 9478-232d262bd0-lite.chunk.js} +2 -2
  63. package/dist/scripts/{7532-012132825e-lite.chunk.js → 9592-693b7e5c16-lite.chunk.js} +1 -1
  64. package/dist/scripts/9655-c0a8b4495d-lite.chunk.js +1 -0
  65. package/dist/scripts/9990-340fffced5-lite.chunk.js +1 -0
  66. package/dist/scripts/bundle-ddf43ca055.min.js +2 -0
  67. package/package.json +2 -2
  68. package/dist/scripts/1518-5c482e7d97-lite.chunk.js +0 -1
  69. package/dist/scripts/2132-f931c128b0-lite.chunk.js +0 -1
  70. package/dist/scripts/2791-aaf6fc6c3f-lite.chunk.js +0 -1
  71. package/dist/scripts/3254-9aedc73523-lite.chunk.js +0 -1
  72. package/dist/scripts/4309-22eacfc527-lite.chunk.js +0 -1
  73. package/dist/scripts/5166-2f143e3493-lite.chunk.js +0 -2
  74. package/dist/scripts/5923-987f2c93aa-lite.chunk.js +0 -1
  75. package/dist/scripts/6450-c1916882b3-lite.chunk.js +0 -1
  76. package/dist/scripts/6542-ec89cb7c39-lite.chunk.js +0 -2
  77. package/dist/scripts/6680-d7d5fb7389-lite.chunk.js +0 -1
  78. package/dist/scripts/6883-1077f658c3-lite.chunk.js +0 -1
  79. package/dist/scripts/724-cee478c44d-lite.chunk.js +0 -1
  80. package/dist/scripts/7307-81f89e0595-lite.chunk.js +0 -1
  81. package/dist/scripts/749-17fe8ec3e1-lite.chunk.js +0 -1
  82. package/dist/scripts/78-380e57e6a5-lite.chunk.js +0 -1
  83. package/dist/scripts/7831-20e0052175-lite.chunk.js +0 -1
  84. package/dist/scripts/8424-ae4aa748e7-lite.chunk.js +0 -1
  85. package/dist/scripts/9655-90ea3a292b-lite.chunk.js +0 -1
  86. package/dist/scripts/bundle-7936b74d14.min.js +0 -2
  87. /package/dist/scripts/{1261-a1eb08ff96-lite.chunk.js → 1261-5c8ea9b4ba-lite.chunk.js} +0 -0
  88. /package/dist/scripts/{1749-5e8719338e-lite.chunk.js → 1749-ca8a9205bb-lite.chunk.js} +0 -0
  89. /package/dist/scripts/{2115-b2055a3720-lite.chunk.js → 2115-fe14dd814a-lite.chunk.js} +0 -0
  90. /package/dist/scripts/{57-374f744a8a-lite.chunk.js → 57-bccab8beb3-lite.chunk.js} +0 -0
  91. /package/dist/scripts/{5166-2f143e3493-lite.chunk.js.LICENSE.txt → 6118-1960648ee9-lite.chunk.js.LICENSE.txt} +0 -0
  92. /package/dist/scripts/{6134-9577f554c1-lite.chunk.js → 6134-1da94c12ee-lite.chunk.js} +0 -0
  93. /package/dist/scripts/{6686-850fdeaa88-lite.chunk.js → 6686-0c396dbadc-lite.chunk.js} +0 -0
  94. /package/dist/scripts/{6786-2f9b97d8f4-lite.chunk.js → 6786-112072164b-lite.chunk.js} +0 -0
  95. /package/dist/scripts/{8000-72a196c14c-lite.chunk.js → 8000-36a930d3dd-lite.chunk.js} +0 -0
  96. /package/dist/scripts/{8009-7a15e85961-lite.chunk.js → 8009-f96b6c19cf-lite.chunk.js} +0 -0
  97. /package/dist/scripts/{8200-e2ca05c358-lite.chunk.js → 8200-e6a68567ea-lite.chunk.js} +0 -0
  98. /package/dist/scripts/{6542-ec89cb7c39-lite.chunk.js.LICENSE.txt → 8976-80b3e5e87f-lite.chunk.js.LICENSE.txt} +0 -0
  99. /package/dist/scripts/{9478-8ecc004bb4-lite.chunk.js.LICENSE.txt → 9478-232d262bd0-lite.chunk.js.LICENSE.txt} +0 -0
  100. /package/dist/scripts/{bundle-7936b74d14.min.js.LICENSE.txt → bundle-ddf43ca055.min.js.LICENSE.txt} +0 -0
@@ -1,2 +0,0 @@
1
- /*! For license information please see 5166-2f143e3493-lite.chunk.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[5166],{65166:(t,e,r)=>{r.d(e,{h:()=>Ze,e:()=>Je});var n=r(1024),o=r.n(n),i=r(65858),a=r(23481),c=r(58130),l=r(2786),u=r(83914),s=r(99742),f=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=window.location.pathname,n=r;return t&&(n+=window.location.search),e?encodeURIComponent(n):n};function p(t,e){var r=t===e?"bg-info":"bg-light";return"".concat("rounded-circle mx-2 HuHpb"," ").concat(r)}function h(t){return o().createElement("div",{className:"w-100 d-flex align-items-center justify-content-center"},t.crumbs.map((function(e){return o().createElement("div",{className:p(t.currentStep,e),key:e})})))}var d="https://www.clickview.com.au",m="https://www.clickview.co.uk",y="https://www.clickview.co.nz",v="https://www.clickvieweducation.com",g="https://www.clickviewsupport.com/hc/en-au",b="https://www.clickviewsupport.com/hc/en-au#gb",w="https://www.clickviewsupport.com/hc/en-au#nz",x="https://www.clickviewsupport.com/hc/en-au#us",E={getMarketingUrlForGeoLocation:function(t){return{au:d,uk:m,us:v,gb:m,gg:m,im:m,je:m,ie:m,nz:y}[null==t?void 0:t.countryCode]||v},getMarketingSalesContactForGeoLocation:function(t){var e=this.getMarketingUrlForGeoLocation(t);return t&&"nz"===t.countryCode?e+"/contact-us/":e+"/contact-us/trial/"},getTermsAndConditionsLink:function(t){return this.getMarketingUrlForGeoLocation(t)+"/terms-and-conditions/"},getSupportUrlForGeoLocation:function(t){return{au:g,uk:b,us:x,gb:b,gg:b,im:b,je:b,ie:b,nz:w}[null==t?void 0:t.countryCode]||x},getLoginLink:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e="/login";return t.length?"".concat(e,"?redirectUrl=").concat(t):"/login"}};function S(t){return o().createElement("a",{onClick:t.onClick,className:"cursor-pointer d-inline-flex align-items-center"},o().createElement(u.x,{svgName:c.vn.ChevronLeft,size:u.S.Medium}),t.children)}var L=r(83345),k=r(49985),N=r(55460);function j(t){var e=t.href,r=t.className,o=t.newTab,i=t.children,a={onClick:function(r){var n;r.preventDefault(),null===(n=t.onClick)||void 0===n||n.call(t,r),t.analyticsData&&t.analyticsOptions&&k.k.logUserAction(Object.assign({href:e},t.analyticsData),t.analyticsOptions),N.LocationUtils.PageLoad(e,o)},href:e,className:r};return n.createElement("a",Object.assign({},a),i)}var O="signUp.general.termsAndConditions";function I(t){return o().createElement("span",{className:"text-center text-md mt-2 text-normal"},o().createElement(L.x,{phrase:"text",namespace:O})," ",o().createElement(j,{href:t.link,onClick:t.onClick,className:"info-link",newTab:!0},o().createElement(L.x,{phrase:"link",namespace:O})))}var A="signUp.general.existingAccountSignIn";function C(t){return o().createElement(o().Fragment,null,o().createElement(L.x,{phrase:"text",namespace:A}),o().createElement(j,{href:t.link,onClick:t.onClick,className:"info-link pl-1"},o().createElement(L.x,{phrase:"link",namespace:A})))}const P="xOflD",T="QrYAM";function _(t){var e=t.geoLocation,r=t.currentStep,n=t.previousStep,a=t.hasPreviousStep,p=t.showBreadCrumbs,d=t.showBackButton,m=t.closeApp,y=t.children,v=E.getTermsAndConditionsLink(e),g=["enter-email","find-school"];function b(){return["enter-email","find-school","cant-find-school"].includes(r)}function w(){n(),t.logUserAction({},{actionType:i.UserAction.Click,descriptor:i.SignUpDescriptors.Back,workflowPhase:i.WorkflowPhase.Back})}var x=["enter-email","find-school","cant-find-school"].includes(t.currentStep),L=x?"".concat(T," ").concat("OAoWt"):T;return o().createElement("div",{className:L},o().createElement("div",{className:"row mx-0 p-3 ".concat(P)},o().createElement("div",{className:"col d-lg-none"},a()&&b()&&d&&o().createElement(S,{onClick:w})),o().createElement("div",{className:"col col-lg-6 px-0"},o().createElement("div",{className:"c4lu1"},o().createElement("div",{className:"d-none d-lg-block"},x?o().createElement(l.Yo,null):o().createElement(l.$S,null)),o().createElement("div",{className:"d-block d-lg-none"},o().createElement(l.$S,null)))),o().createElement("div",{className:"col col-lg-6 d-flex flex-row justify-content-between px-0"},o().createElement("div",{className:"px-3"},o().createElement("div",{className:"d-none d-lg-block"},a()&&b()&&d&&o().createElement(S,{onClick:w}))),o().createElement("a",{onClick:m,className:"cursor-pointer d-inline-flex align-items-center"},o().createElement(u.x,{svgName:c.vn.Close,size:u.S.Medium})))),o().createElement("div",{className:"row mx-0 flex-grow-1 ".concat(P)},x&&o().createElement("div",{className:"col-6 px-0 d-none d-lg-block"},o().createElement("div",{className:"h-100 d-flex align-items-center justify-content-center"},o().createElement("img",{src:s.W.SignUp.POPUP_DASHBOARD,className:"w-100 p-4 pb-5"}))),o().createElement("div",{className:"px-4 pt-0 pb-4 ".concat(x?"col-12 col-lg-6":"col-12")},o().createElement("div",{className:"d-flex flex-column h-100"},g.includes(t.currentStep)&&p&&o().createElement("div",{className:"d-flex mb-2"},o().createElement(h,{crumbs:g,currentStep:r})),o().createElement("div",{className:"position-relative flex-grow-1"},y),o().createElement("div",{className:"position-relative text-center"},"select-type"===r&&o().createElement(C,{link:E.getLoginLink(f()),onClick:function(){t.logUserAction({},{actionType:i.UserAction.Click,descriptor:i.SignUpDescriptors.SignIn})}}),"enter-email"===r&&o().createElement(I,{link:v,onClick:function(){t.logUserAction({},{actionType:i.UserAction.Click,descriptor:i.SignUpDescriptors.TermsAndConditions})}}))))))}_.defaultProps={showBreadCrumbs:!0,showBackButton:!0};var U=r(2903);function F(t){var e=t.geoLocation,r=t.currentStep,n=t.previousStep,a=t.hasPreviousStep,c=t.showBreadCrumbs,u=t.showBackButton,s=t.children,f=E.getTermsAndConditionsLink(e);return o().createElement("div",{className:"d-flex flex-column justify-content-between px-4 py-0 ".concat("Ct4Ij")},o().createElement("div",{className:"d-flex mt-3 mb-2"},c&&o().createElement(h,{crumbs:["select-type","enter-email","find-school"],currentStep:r})),o().createElement("div",{className:"position-relative mx-auto w-100",style:{maxWidth:"select-type"===r?"42rem":["enter-email","find-school","cant-find-school"].includes(r)?"23.125rem":"30rem"}},o().createElement("div",{className:"d-flex flex-row justify-content-center align-items-center mt-2 mb-3"},a()&&u&&["enter-email","find-school","cant-find-school"].includes(r)&&o().createElement(S,{onClick:function(){n(),t.logUserAction({step:r},{actionType:i.UserAction.Click,descriptor:i.SignUpDescriptors.Back,workflowPhase:i.WorkflowPhase.Back})}}),o().createElement("div",{className:"d-flex justify-content-center align-items-center px-2 ".concat("RcL6k")},o().createElement(l.$S,null))),s),o().createElement("div",{className:"position-relative mb-4 text-center"},"select-type"===r&&o().createElement(C,{link:E.getLoginLink(),onClick:function(){t.logUserAction({},{actionType:i.UserAction.Click,descriptor:i.SignUpDescriptors.SignIn})}}),["enter-email","find-school"].includes(r)&&o().createElement(I,{link:f,onClick:function(){t.logUserAction({},{actionType:i.UserAction.Click,descriptor:i.SignUpDescriptors.TermsAndConditions})}})))}var G;function D(t){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},D(t)}function M(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==D(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==D(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===D(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}F.defaultProps={showBreadCrumbs:!0,showBackButton:!0};var R={"active-trial":_,"cant-find-school":_,"enter-email":_,"existing-customer":_,"expired-trial":_,"find-school":_,"select-type":_,"trial-not-available":_,"verify-account":_},B={"active-trial":F,"cant-find-school":F,"enter-email":F,"existing-customer":F,"expired-trial":F,"find-school":F,"select-type":F,"trial-not-available":F,"verify-account":F},$=(M(G={},U.c.FullPage,B),M(G,U.c.Popup,R),G),K=r(99940);function Y(t){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Y(t)}function W(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function z(t,e){if(e&&("object"===Y(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function H(t){var e="function"==typeof Map?new Map:void 0;return H=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 q(t,arguments,X(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),V(n,t)},H(t)}function q(t,e,r){return q=J()?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&&V(o,r.prototype),o},q.apply(null,arguments)}function J(){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 V(t,e){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},V(t,e)}function X(t){return X=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},X(t)}var Z=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&&V(t,e)}(i,t);var e,r,n,o=(e=i,r=J(),function(){var t,n=X(e);if(r){var o=X(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return z(this,t)});function i(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Error";return W(this,i),(e=o.call(this,r)).body=t,e}return n=i,Object.defineProperty(n,"prototype",{writable:!1}),n}(H(Error));function Q(t){return Q="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},Q(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:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new k(o||[]);return n(a,"_invoke",{value:x(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(N([])));v&&v!==e&&r.call(v,i)&&(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,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Q(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function N(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=N,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:N(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function et(t){var e={method:K.k.GET,headers:{"Content-type":"application/json"}};t.method&&(e=Object.assign(Object.assign({},e),{method:t.method})),t.init&&(e=Object.assign(Object.assign({},e),t.init));var r,n,o,i=t.url;return e.method===K.k.GET&&t.data?(r=i,n=t.data,o=r,Object.keys(n).forEach((function(t,e){n[t]&&(o+=0===e?"?":"&",o+="".concat(t,"=").concat(encodeURIComponent(n[t])))})),i=o):t.data&&(e=Object.assign(Object.assign({},e),{body:JSON.stringify(t.data)})),{init:e,url:i}}var rt={asyncFetch:function(t){return e=this,r=void 0,n=void 0,o=tt().mark((function e(){var r,n,o;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=et(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 Z(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)})),new(n||(n=Promise))((function(t,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function c(t){try{l(o.throw(t))}catch(t){i(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(t){t(r)}))).then(a,c)}l((o=o.apply(e,r||[])).next())}));var e,r,n,o},fetch:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){var e=et(t);return fetch(e.url,e.init).then((function(t){if(204!==t.status)return t.json()})).then((function(e){return t.success&&t.success(e),e})).catch((function(e){return t.error&&t.error(),e})).finally((function(){t.always&&t.always()}))}))};function nt(t){return nt="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},nt(t)}function ot(){ot=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new k(o||[]);return n(a,"_invoke",{value:x(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(N([])));v&&v!==e&&r.call(v,i)&&(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,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==nt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function N(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=N,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:N(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var it=function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{l(n.next(t))}catch(t){i(t)}}function c(t){try{l(n.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}l((n=n.apply(t,e||[])).next())}))},at={checkTrialStatus:function(t,e,r,n){var o={email:t.email};rt.fetch({url:"/api/user/trials/status",data:o,success:e,error:r,always:n})},checkProspectTrialStatus:function(t,e,r,n){var o="/api/user/trials/prospect/".concat(t.prospectId,"/status");rt.fetch({url:o,success:e,error:r,always:n})},createTrial:function(t){return it(this,void 0,void 0,ot().mark((function e(){var r;return ot().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",rt.asyncFetch({url:"/api/user/trials",method:K.k.POST,data:r}));case 2:case"end":return e.stop()}}),e)})))},resendTrialEmail:function(t,e){return it(this,void 0,void 0,ot().mark((function r(){var n;return ot().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",rt.asyncFetch({url:"/api/user/trials/users/".concat(t,"/send-activation-email"),method:K.k.POST,data:n}));case 2:case"end":return r.stop()}}),r)})))}},ct=r(1048);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:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new k(o||[]);return n(a,"_invoke",{value:x(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(N([])));v&&v!==e&&r.call(v,i)&&(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,i,a,c){var l=s(t[n],t,i);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,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function N(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=N,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:N(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function st(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 ft=["us","au","nz","gb","gg","im","je","ie"];function pt(){var t,e,r=(t=o().useState(null),e=2,function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return st(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)?st(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],i=r[1];function a(t){var e;ft.includes(null===(e=null==t?void 0:t.countryCode)||void 0===e?void 0:e.toLowerCase())?i(t):i({countryCode:"us"})}return o().useEffect((function(){!function(){var t,e,r,o;t=this,e=void 0,r=void 0,o=ut().mark((function t(){return ut().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,rt.fetch({url:"/api/geolocation"});case 5:a(t.sent),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(2),a(null);case 12:case"end":return t.stop()}}),t,null,[[2,9]])})),new(r||(r=Promise))((function(n,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function c(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}l((o=o.apply(t,e||[])).next())}))}()}),[]),n}function ht(t){return ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ht(t)}function dt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==ht(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==ht(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===ht(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mt(t){return function(t){if(Array.isArray(t))return gt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||vt(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||vt(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 vt(t,e){if(t){if("string"==typeof t)return gt(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)?gt(t,e):void 0}}function gt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var bt={userId:void 0,email:"",type:void 0,schoolLocality:void 0,schoolName:void 0,schoolPostCode:void 0,longitude:void 0,latitude:void 0,prospectId:void 0,city:void 0,schoolType:void 0,country:void 0,province:void 0,appLink:void 0};var wt,xt,Et=r(2102);function St(t){return St="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},St(t)}function Lt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==St(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==St(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===St(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}!function(t){t.InvalidEmail="invalid-email",t.Unavailable="unavailable",t.Expired="expired",t.Active="active",t.NotRequired="not-required",t.Available="available"}(wt||(wt={}));var kt=(Lt(xt={},wt.InvalidEmail,"enter-email"),Lt(xt,wt.Active,"active-trial"),Lt(xt,wt.Available,"find-school"),Lt(xt,wt.Expired,"expired-trial"),Lt(xt,wt.NotRequired,"existing-customer"),Lt(xt,wt.Unavailable,"trial-not-available"),xt);function Nt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return jt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?jt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Ot=new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/),It="signUp.enterEmailStepItem",At=a.T.encloseNamespace(It),Ct="signUp.expiredTrialStepItem";function Pt(t){if((null==t?void 0:t.previousStepIds)&&"find-school"===t.previousStepIds[t.previousStepIds.length-1]){var e=t.schoolName||"Your school";return o().createElement("h3",{className:"text-center font-weight-500"},o().createElement(L.x,{namespace:Ct,phrase:"schoolMessageTitle",options:{schoolName:e}}))}return o().createElement("h3",{className:"text-center font-weight-500"},o().createElement(L.x,{namespace:Ct,phrase:"userMessageTitle"}))}function Tt(t){return Tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tt(t)}function _t(){_t=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new k(o||[]);return n(a,"_invoke",{value:x(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(N([])));v&&v!==e&&r.call(v,i)&&(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,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Tt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function N(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=N,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:N(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var Ut={search:function(t,e,r,n){var o={Longitude:t.longitude,Latitude:t.latitude};rt.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=_t().mark((function e(){return _t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",rt.asyncFetch({url:"/api/prospects",method:K.k.POST,data:t}));case 1:case"end":return e.stop()}}),e)})),new(n||(n=Promise))((function(t,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function c(t){try{l(o.throw(t))}catch(t){i(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(t){t(r)}))).then(a,c)}l((o=o.apply(e,r||[])).next())}));var e,r,n,o}};const Ft="LIq3Y",Gt="aFSaR",Dt="hM9s4",Mt="Sp6A5";function Rt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Bt(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)?Bt(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 Bt(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 $t="signUp.searchSchoolStepGroup",Kt=a.T.encloseNamespace($t);function Yt(t){var e=t.filteredSchoolsList,r=t.getSchoolName,n=t.onSchoolSuggestionClick;return o().createElement(o().Fragment,null,e.map((function(t){return o().createElement("div",{className:Mt,key:t.id,onClick:function(){return n(t)}},r(t))})))}function Wt(t){return o().createElement("div",{className:"info-link ".concat("xSdn2"),onClick:t.handleNoSuggestion},o().createElement(L.x,{namespace:$t,phrase:"cantFindSchool"}))}function zt(t){var e=Rt(o().useState(!0),2),r=e[0],n=e[1],a=Rt(o().useState(t.schoolName&&t.schoolPostCode?t.schoolName+", "+t.schoolPostCode:t.schoolName?t.schoolName:""),2),c=a[0],l=a[1],u=Rt(o().useState(!!t.prospectId),2),s=u[0],f=u[1],p=Rt(o().useState(),2),h=p[0],d=p[1],m=Rt(o().useState(),2),y=m[0],v=m[1];function g(t){return t.name}function b(){return r&&!s}function w(){return!r&&!s&&!(null==y?void 0:y.length)}return o().useEffect((function(){if(c.length||s)if(s)v(void 0);else{var t=null==h?void 0:h.filter((function(t){return g(t).toLocaleLowerCase().includes(c.toLocaleLowerCase())}));v(t)}else v(h)}),[c,h,s]),o().useEffect((function(){s||(n(!0),Ut.search({latitude:t.latitude,longitude:t.longitude},(function(t){return d(t)}),null,(function(){return n(!1)})))}),[s]),o().useEffect((function(){t.prospectId?f(!0):f(!1)}),[t.prospectId]),o().useEffect((function(){(null==y?void 0:y.length)||"cant-find-school"===t.currentStepId?"verify-account"===t.currentStepId||t.setNextStepId("verify-account"):t.setNextStepId("cant-find-school")}),[y]),o().createElement("div",{className:"mb-2 position-relative"},o().createElement("input",{value:c,onChange:function(e){(t.schoolName||t.setProspectId)&&t.clearStepItemData(),e.target.value!==c&&l(e.target.value)},className:"form-control ".concat((null==y?void 0:y.length)||b()||w()?Gt:Ft),type:"text",autoComplete:"off",placeholder:Kt("schoolInputPlaceholder"),disabled:t.disabled}),o().createElement("div",{className:"position-absolute w-100"},(null==y?void 0:y.length)?o().createElement("div",{className:Dt},o().createElement(Yt,{filteredSchoolsList:y,onSchoolSuggestionClick:function(e){l(g(e)),t.setProspectId(e.id),t.setSchoolName(e.name),t.setSchoolType(e.prospectType),e.postCode.length&&t.setSchoolPostCode(e.postCode),e.countryCode.length&&t.setCountry(e.countryCode)},getSchoolName:g})):b()&&o().createElement("div",{className:Dt},o().createElement("div",{className:"o1CUJ"},o().createElement(L.x,{namespace:$t,phrase:"schoolLoadingText"}))),w()&&o().createElement("div",{className:Dt},o().createElement(Wt,{handleNoSuggestion:function(){t.nextStep(),t.logUserAction({},{actionType:i.UserAction.Click,descriptor:i.SignUpDescriptors.CantFindSchool,workflowPhase:i.WorkflowPhase.Next})}}))))}var Ht=function t(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){if(e.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(e)){if((n=e.length)!=r.length)return!1;for(o=n;0!=o--;)if(!t(e[o],r[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if((n=(i=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;0!=o--;){var a=i[o];if(!t(e[a],r[a]))return!1}return!0}return e!=e&&r!=r};const qt="__googleMapsScriptId";var Jt;!function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"}(Jt||(Jt={}));class Vt{constructor({apiKey:t,authReferrerPolicy:e,channel:r,client:n,id:o=qt,language:i,libraries:a=[],mapIds:c,nonce:l,region:u,retries:s=3,url:f="https://maps.googleapis.com/maps/api/js",version:p}){if(this.CALLBACK="__googleMapsCallback",this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=e,this.channel=r,this.client=n,this.id=o||qt,this.language=i,this.libraries=a,this.mapIds=c,this.nonce=l,this.region=u,this.retries=s,this.url=f,this.version=p,Vt.instance){if(!Ht(this.options,Vt.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(Vt.instance.options)}`);return Vt.instance}Vt.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?Jt.FAILURE:this.done?Jt.SUCCESS:this.loading?Jt.LOADING:Jt.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+=`&region=${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 Xt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Zt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Zt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Qt(t){return new Vt({apiKey:t.apiKey,version:"weekly",libraries:t.libraries,retries:3})}function te(t){var e={apiKey:t.apiKey,libraries:t.libraries||["places"]},r=Xt(o().useState(!1),2),n=r[0],i=r[1],a=Xt(o().useState(Qt(e)),2),c=a[0],l=a[1];function u(t,r){c?c.loadCallback((function(e){if(e)return i(!1),void(r&&r(e));i(!0),t&&t()})):l(Qt(e))}return o().useEffect((function(){u()}),[]),{loader:c,scriptLoaded:n,onGoogleApiReady:u}}function ee(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 re(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)?re(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function re(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 ne=function(t){var e,r,n,o,i,a=t.formatted_address,c=ee(t.address_components);try{for(c.s();!(i=c.n()).done;){var l,u=i.value,s=ee(u.types);try{for(s.s();!(l=s.n()).done;){var f=l.value;"locality"===f&&(e=u.short_name),"administrative_area_level_1"===f&&(r=u.short_name),"postal_code"===f&&(o=u.short_name),"country"===f&&(n=u.short_name)}}catch(t){s.e(t)}finally{s.f()}}}catch(t){c.e(t)}finally{c.f()}return{locality:a,country:n,postalCode:o,city:e,province:r}};function 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,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ie(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ie(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ie(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var ae=r(28329);function ce(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return le(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?le(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function le(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var ue=r(10874);function se(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return fe(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?fe(t,e):void 0}}(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 fe(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var pe="signUp.searchSchoolStepGroup",he=a.T.encloseNamespace(pe);function de(t){var e=t.predictions,r=t.getPlaceInfo;return o().createElement(o().Fragment,null,e.map((function(t){return o().createElement("div",{className:Mt,key:t.place_id,onClick:function(){return r(t)}},t.description)})))}function me(t){var e,r,n,a=o().useRef(),l=se(o().useState(!1),2),s=l[0],f=l[1],p=se(o().useState(null!==(e=t.locality)&&void 0!==e?e:""),2),h=p[0],d=p[1],m=function(t){var e=t.search,r=t.makePredicition,n=t.geoLocation,i=te({apiKey:t.apiKey}).scriptLoaded,a=ce(o().useState(),2),c=a[0],l=a[1];o().useEffect((function(){i&&l(new google.maps.places.AutocompleteService)}),[i]);var u=(0,ae.N)(e,300),s=ce(o().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 o().useEffect((function(){c&&(0!==(null==u?void 0:u.length)&&r?c.getPlacePredictions({input:u,componentRestrictions:{country:n.countryCode},region:n.countryCode,types:["locality","sublocality","postal_code"]},h):p(void 0))}),[u,r,c]),{localityPredicitions:f,getPlaceInfo:function(t,e,r){new google.maps.places.PlacesService(e.current).getDetails({placeId:t.place_id,fields:["geometry","address_components","formatted_address"],region:n.countryCode},(function(t,e){if(e===google.maps.places.PlacesServiceStatus.OK){var n=t.geometry.location.lng(),o=t.geometry.location.lat(),i=ne(t),a=i.locality,c=i.country,l=i.postalCode,u=i.city,s=i.province;r({longitude:n,latitude:o,locality:a,country:c,city:u,postalCode:l,province:s})}}))}}}({search:h,makePredicition:s,geoLocation:t.geoLocation,apiKey:t.googleMapsApiKey}),y=m.localityPredicitions,v=m.getPlaceInfo,g=function(t){var e=oe(o().useState(!1),2),r=e[0],n=e[1],i=oe(o().useState({}),2),a=i[0],c=i[1],l=te(t).onGoogleApiReady;function u(t){var e=t.coords,r=e.latitude,o=e.longitude,i=new google.maps.LatLng(r,o);(new google.maps.Geocoder).geocode({location:i},(function(t,e){if(e===google.maps.GeocoderStatus.OK){var i=t.find((function(t){return t.types.includes("locality")||t.types.includes("administrative_area_level_2")})),a=ne(i);c(Object.assign(Object.assign({},a),{longitude:o,latitude:r})),n(!1)}}))}function s(){n(!0)}return{placeDetails:a,positionError:r,onClickGetCurrentLocation:function(){l((function(){window.navigator.geolocation.getCurrentPosition(u,s)}))}}}({apiKey:t.googleMapsApiKey}),b=g.placeDetails,w=g.positionError,x=g.onClickGetCurrentLocation;function E(e){var r,n=e.longitude,o=e.latitude,i=e.locality,a=e.country,c=e.city,l=e.postalCode,u=e.province;n&&o&&t.setCoordinates(n,o),a&&t.setCountry(a),c&&t.setCity(c),l&&t.setPostalCode(l),u&&t.setProvince(u),i&&(d(r=i),t.setLocality(r))}o().useEffect((function(){E(b)}),[b]),o().useEffect((function(){f(!0)}),[w]);var S,k=(null==y?void 0:y.length)&&!(null===(r=t.locality)||void 0===r?void 0:r.length),N=window.navigator.geolocation&&!(null===(n=t.locality)||void 0===n?void 0:n.length),j=t.labelClassName||"d-block text-center mb-3 font-weight-normal ".concat("k0IW3");return o().createElement("div",{className:"form-group position-relative"},o().createElement("label",{className:j,htmlFor:"locality-input"},o().createElement(L.x,{namespace:pe,phrase:"localityInputLabel"})),o().createElement("input",{type:"text",value:h,onChange:function(e){s||f(!0),(t.longitude||t.latitude||t.locality)&&t.clearStepGroupData(),d(e.target.value)},id:"locality-input",className:(S="form-control",k?"".concat(S," ").concat(Gt):"".concat(S," ").concat(Ft)),ref:a,autoComplete:"off",placeholder:he(function(){var e,r,n="LocalityInputPlaceholder";return["gb","gg","im","je","ie"].includes(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode)?"uk".concat(n):["nz","au"].includes(null===(r=t.geoLocation)||void 0===r?void 0:r.countryCode)?"au".concat(n):"us".concat(n)}()),disabled:t.disabled}),o().createElement("div",{className:"position-absolute w-100"},!!k&&o().createElement("div",{className:function(){var t=Dt;return k&&N?"".concat(t," ").concat("OcrX8"):"".concat(t)}()},o().createElement(de,{predictions:y,getPlaceInfo:function(t){s&&f(!1),v(t,a,E)}})),N&&o().createElement("div",{className:k?Dt:"d-flex"},o().createElement(ue.h,{onClick:function(e){e.preventDefault(),f(!1),x(),t.logUserAction({},{actionType:i.UserAction.Click,descriptor:i.SignUpDescriptors.UseMyLocation})},svgName:c.vn.LocationCrosshair,className:"btn btn-link info-link bg-white",svgSize:u.S.Small},o().createElement(L.x,{namespace:pe,phrase:"locationButtonText"})))))}function ye(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ve(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ve(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ve(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var ge="signUp.searchSchoolStepGroup";function be(t){return be="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},be(t)}function we(){we=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new k(o||[]);return n(a,"_invoke",{value:x(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(N([])));v&&v!==e&&r.call(v,i)&&(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,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==be(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function N(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=N,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:N(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}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,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Ee(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ee(t,e):void 0}}(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 Ee(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Se,Le="signUp.verifyAccountStepItem";function ke(t){var e=xe(o().useState(0),2),r=e[0],n=e[1],a=xe(o().useState(!1),2),c=a[0],l=a[1];return o().createElement(o().Fragment,null,o().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto px-2"},o().createElement("div",{className:"d-flex justify-content-center my-5 px-0 px-lg-3"},o().createElement("img",{src:s.W.SignUp.VERIFY_ACCOUNT,className:"w-100 h-auto"})),t.data.email&&o().createElement(o().Fragment,null,o().createElement("h4",{className:"text-center font-weight-bold mb-2"},o().createElement(L.x,{namespace:Le,phrase:"heading"})),o().createElement("div",{className:"text-center text-sm"},o().createElement("p",{className:"mb-1"},o().createElement(L.x,{namespace:Le,phrase:"message",options:{email:t.data.email}})),r<1?o().createElement("p",{className:"mb-1"},o().createElement(L.x,{namespace:Le,phrase:"helpText"})," ",o().createElement("a",{onClick:function(e){return o=this,a=void 0,c=void 0,u=we().mark((function o(){return we().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return null==e||e.preventDefault(),o.prev=1,o.next=4,at.resendTrialEmail(t.data.userId,{email:t.data.email,appLink:t.data.appLink});case 4:n(r+1),o.next=10;break;case 7:o.prev=7,o.t0=o.catch(1),l(!0);case 10:t.logUserAction({},{actionType:i.UserAction.Click,descriptor:i.SignUpDescriptors.ResendEmail});case 11:case"end":return o.stop()}}),o,null,[[1,7]])})),new(c||(c=Promise))((function(t,e){function r(t){try{i(u.next(t))}catch(t){e(t)}}function n(t){try{i(u.throw(t))}catch(t){e(t)}}function i(e){var o;e.done?t(e.value):(o=e.value,o instanceof c?o:new c((function(t){t(o)}))).then(r,n)}i((u=u.apply(o,a||[])).next())}));var o,a,c,u},className:"info-link"},o().createElement(L.x,{namespace:Le,phrase:"helpLink"}))):o().createElement(L.x,{namespace:Le,phrase:"resent"}),c&&o().createElement("p",{className:"text-danger"},o().createElement(L.x,{namespace:Le,phrase:"resendErrorText"})," ",o().createElement("a",{href:E.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link"},o().createElement(L.x,{namespace:Le,phrase:"resendErrorLink"})))))))}!function(t){t.Staff="staff",t.Learner="learner"}(Se||(Se={}));function Ne(t){return o().createElement("div",{className:"d-flex flex-column justify-content-between h-100 cursor-pointer overflow-hidden p-3 ".concat("lanH2"," ").concat(t.selected?"selected":""),onClick:function(){return t.onClick(t.type)}},o().createElement("img",{src:t.imageSrc,className:"rounded-top mx-auto pb-2",width:"100%",height:"auto",style:{maxWidth:"225px"}}),o().createElement("div",{className:"d-flex justify-content-center align-items-center text-dark py-2 font-weight-bold"},o().createElement("h3",{className:"".concat("P1owQ"," mb-0"),dangerouslySetInnerHTML:{__html:t.buttonText}})))}var je,Oe="signUp.selectUserTypeStepItem",Ie=a.T.encloseNamespace(Oe);!function(t){t.Published="Published",t.Draft="Draft"}(je||(je={}));var Ae=["Primary","Secondary","K12","Special","TAFE","University"],Ce=["Primary","Secondary","Primary & Secondary","Special","Sixth Form College","FE College","University","Other"],Pe=["Elementary","Middle School","High School","College","Other"],Te={au:Ae,nz:Ae,uk:Ce,gb:Ce,gg:Ce,im:Ce,je:Ce,ie:Ce,us:Pe};function _e(t){return _e="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},_e(t)}function Ue(){Ue=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new k(o||[]);return n(a,"_invoke",{value:x(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(N([])));v&&v!==e&&r.call(v,i)&&(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,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==_e(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function N(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=N,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:N(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Fe(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Ge="signUp.cantFindSchoolStepItem",De=a.T.encloseNamespace(Ge),Me="signUp.existingCustomerStepItem";function Re(t){if((null==t?void 0:t.previousStepIds)&&"find-school"===t.previousStepIds[t.previousStepIds.length-1]){var e=t.schoolName||"Your school";return o().createElement(o().Fragment,null,o().createElement("h4",{className:"text-center font-weight-500 mb-1"},o().createElement(L.x,{phrase:"schoolMessageTitle",namespace:Me,options:{school:e}})),o().createElement("p",{className:"text-center text-sm"},o().createElement(L.x,{phrase:"schoolMessageParagraph",namespace:Me})))}return o().createElement(o().Fragment,null,o().createElement("h4",{className:"text-center font-weight-500 mb-1"},o().createElement(L.x,{phrase:"userMessageTitle",namespace:Me})),o().createElement("div",{className:"text-center my-2"},o().createElement("a",{href:E.getLoginLink(f()),className:"btn btn-dark"},"Sign in")))}var Be,$e="signUp.trialNotAvailableStepItem";function Ke(t){if((null==t?void 0:t.previousStepIds)&&"find-school"===t.previousStepIds[t.previousStepIds.length-1]){var e=t.schoolName||"Your school";return o().createElement(o().Fragment,null,o().createElement("h3",{className:"text-center font-weight-500"},o().createElement(L.x,{namespace:$e,phrase:"schoolMessage",options:{schoolName:e}})))}return o().createElement("h3",{className:"text-center font-weight-500"},o().createElement(L.x,{namespace:$e,phrase:"userMessage"}))}!function(t){t.FourteenDays="trial_14_v1",t.Freemium="freemium_v1"}(Be||(Be={}));function Ye(t){return Ye="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},Ye(t)}function We(){We=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new k(o||[]);return n(a,"_invoke",{value:x(t,r,c)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(N([])));v&&v!==e&&r.call(v,i)&&(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,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Ye(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function N(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=N,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:N(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function ze(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return He(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)?He(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 He(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var qe=a.T.encloseNamespace("signUp.multiStepForm"),Je=["active-trial","existing-customer","expired-trial","trial-not-available","verify-account"];function Ve(t){switch(t){case"select-type":return"enter-email";case"enter-email":return"find-school";case"find-school":case"active-trial":case"cant-find-school":return"verify-account";default:return t}}var Xe={"select-type":function(t){function e(e){!function(e){t.setData("type",e)}(e),t.nextStep(),t.logUserAction({type:e},{actionType:i.UserAction.Click,workflowPhase:i.WorkflowPhase.Next,descriptor:e===Se.Staff?i.SignUpDescriptors.Educator:i.SignUpDescriptors.Student})}return o().createElement(o().Fragment,null,o().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto"},o().createElement("h4",{className:"text-center font-weight-500 mb-3"},o().createElement(L.x,{namespace:Oe,phrase:"heading"})),o().createElement("p",{className:"text-sm text-center"},o().createElement(L.x,{namespace:Oe,phrase:"subHeading"}))),o().createElement("div",{className:"row mx-auto"},o().createElement("div",{className:"col-lg-6 flex-grow-1 mb-3 mb-lg-0"},o().createElement(Ne,{type:Se.Staff,buttonText:Ie("educatorButtonText"),imageSrc:s.W.SignUp.EDUCATOR,onClick:e,selected:t.data.type===Se.Staff})),o().createElement("div",{className:"col-lg-6 flex-grow-1"},o().createElement(Ne,{type:Se.Learner,buttonText:Ie("studentButtonText"),imageSrc:s.W.SignUp.STUDENT,onClick:e,selected:t.data.type===Se.Learner}))))},"enter-email":function(t){var e,r,n,a,c,l=Nt(o().useState(!1),2),u=l[0],s=l[1],p=Nt(o().useState(!1),2),h=p[0],d=p[1],m=Nt(o().useState(!1),2),y=m[0],v=m[1],g=(a=t.geoLocation,c=E.getMarketingUrlForGeoLocation(a),"nz"===(null==a?void 0:a.countryCode)?c+"/contact-us/":c+"/contact-us/technical/");function b(e){t.setError("email",e)}function w(){var e;return(null===(e=t.data.email)||void 0===e?void 0:e.length)?Ot.test(t.data.email)?(s(!0),b(""),void at.checkTrialStatus({email:t.data.email},x,S,(function(){s(!1)}))):(d(!1),void b(At("invalidEmailErrorText"))):(d(!1),void b(At("enterEmailErrorText")))}function x(e){if(d(!0),e.status===wt.InvalidEmail)return d(!1),void b(At("invalidEmailErrorText"));e.status===wt.Active?t.setNextStepId(kt[wt.NotRequired]):t.setNextStepId(kt[e.status]),v(!0)}function S(){d(!1),v(!1),b(At("trialStatusErrorText"))}return o().useEffect((function(){y&&v(!1),h&&d(!1)}),[t.data.email]),o().useEffect((function(){y&&(t.nextStep(),t.logUserAction({},{actionType:i.UserAction.Click,workflowPhase:i.WorkflowPhase.Next,descriptor:i.SignUpDescriptors.EnterEmail}))}),[y]),o().createElement("div",{className:"d-flex justify-content-between flex-column mx-auto h-100"},o().createElement("div",null,o().createElement("h4",{className:"text-center font-weight-500 mb-3"},o().createElement(L.x,{namespace:It,phrase:"heading"})),o().createElement("form",{className:"d-flex justify-content-center flex-column",onSubmit:function(t){t.preventDefault(),w()}},o().createElement("label",{className:"text-left mb-1",htmlFor:"email-input"},o().createElement(L.x,{namespace:It,phrase:"emailInputLabel"})),o().createElement("input",{value:t.data.email,onChange:function(e){return r=e.target.value,void t.setData("email",r);var r},name:"email-input",id:"email-input",type:"email",className:"form-control form-control-lg rounded ".concat((null===(e=null==t?void 0:t.errors)||void 0===e?void 0:e.email)&&"is-invalid"),placeholder:At("emailInputPlaceholder"),autoComplete:"false",autoCorrect:"false"}),(null===(r=null==t?void 0:t.errors)||void 0===r?void 0:r.email)&&o().createElement(o().Fragment,null,o().createElement("small",{className:"text-danger mt-2"},null===(n=null==t?void 0:t.errors)||void 0===n?void 0:n.email),o().createElement("small",{className:"text-dark mt-1"},o().createElement(L.x,{phrase:"emailInputHelpText",namespace:It}),o().createElement(j,{href:g,onClick:function(){t.logUserAction({},{actionType:i.UserAction.Click,descriptor:i.SignUpDescriptors.ContactUs})},className:"info-link pl-1",newTab:!0},o().createElement(L.x,{phrase:"emailInputHelpLinkText",namespace:It})))),o().createElement(Et.m,{showSpinner:u,className:"btn btn-dark mt-2",disabled:u,onClick:w},o().createElement(L.x,{namespace:It,phrase:"nextButtonText"}))),o().createElement("div",{className:"text-md mt-2"},o().createElement(C,{link:E.getLoginLink(f()),onClick:function(){t.logUserAction({},{actionType:i.UserAction.Click,descriptor:i.SignUpDescriptors.SignIn})}}))))},"find-school":function(t){var e=ye(o().useState(t.canSubmitForm()),2),r=e[0],n=e[1],i=ye(o().useState(!1),2),a=i[0],c=i[1];function l(e){t.setData("schoolLocality",e)}function u(e,r){t.setData("longitude",e),t.setData("latitude",r)}function s(e){e!==t.data.prospectId&&t.setData("prospectId",e)}function f(e){e!==t.data.schoolName&&t.setData("schoolName",e)}function p(e){e!==t.data.city&&t.setData("city",e)}function h(e){e!==t.data.province&&t.setData("province",e)}function d(e){e!==t.data.country&&t.setData("country",e)}function m(e){e!==t.data.schoolPostCode&&t.setData("schoolPostCode",e)}function y(){s(void 0),f(""),m(void 0),t.setSubmissionError(void 0)}return o().useEffect((function(){var e=t.canSubmitForm();r!==e&&n(e)}),[t.canSubmitForm]),o().useEffect((function(){r&&(c(!0),at.checkProspectTrialStatus({prospectId:t.data.prospectId},(function(e){e.status!==wt.Available?t.setNextStepId(kt[e.status]):t.setNextStepId("verify-account")}),(function(){console.log("error")}),(function(){c(!1)})))}),[r]),o().createElement(o().Fragment,null,o().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto mb-2"},o().createElement("h4",{className:"text-center font-weight-500 mb-2"},o().createElement(L.x,{namespace:ge,phrase:"groupHeading"})),o().createElement("p",{className:"text-center"},o().createElement(L.x,{namespace:ge,phrase:"groupSubHeading"}))),o().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto"},o().createElement("form",{className:"d-flex justify-content-center flex-column"},o().createElement(me,{locality:t.data.schoolLocality,longitude:t.data.longitude,latitude:t.data.latitude,setLocality:l,setCoordinates:u,setCountry:d,setPostalCode:m,setCity:p,setProvince:h,clearStepGroupData:function(){l(void 0),u(void 0,void 0),p(void 0),h(void 0),d(void 0),y(),t.setSubmissionError(void 0)},disabled:t.disabled,geoLocation:t.geoLocation,labelClassName:"d-none",logUserAction:t.logUserAction,googleMapsApiKey:t.googleMapsApiKey}),!!(t.data.schoolLocality&&t.data.longitude&&t.data.latitude)&&o().createElement(zt,{prospectId:t.data.prospectId,locality:t.data.schoolLocality,longitude:t.data.longitude,latitude:t.data.latitude,schoolName:t.data.schoolName,schoolPostCode:t.data.schoolPostCode,setProspectId:s,setSchoolName:f,setSchoolType:function(e){e!==t.data.schoolType&&t.setData("schoolType",e)},setSchoolPostCode:m,setCountry:d,clearStepItemData:y,setNextStepId:t.setNextStepId,nextStep:t.nextStep,currentStepId:t.currentStepId,disabled:t.disabled,logUserAction:t.logUserAction}),(null==t?void 0:t.submissionError)&&o().createElement("p",{className:"text-danger mb-2"},t.submissionError),t.canSubmitForm()&&o().createElement(Et.m,{className:"btn btn-dark font-weight-bold",onClick:t.requestTrial,showSpinner:t.disabled||a,disabled:t.disabled||a},o().createElement(L.x,{namespace:ge,phrase:"submitButtonText"})))))},"verify-account":ke,"active-trial":ke,"existing-customer":function(t){return o().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto px-2"},o().createElement("div",{className:"d-flex justify-content-center mt-5 mb-3 px-0 px-lg-3"},o().createElement("img",{src:s.W.SignUp.EXISTING_CUSTOMER,className:"w-100 h-auto"})),o().createElement("h4",{className:"text-center font-weight-500 mb-2"},o().createElement(L.x,{namespace:Me,phrase:"heading"})),o().createElement(Re,{previousStepIds:t.previousStepIds,schoolName:t.data.schoolName}),o().createElement("p",{className:"text-center"},o().createElement(L.x,{phrase:"helpText",namespace:Me})," ",o().createElement(j,{href:E.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link",newTab:!0},o().createElement(L.x,{phrase:"helpLink",namespace:Me}))))},"expired-trial":function(t){var e=E.getMarketingSalesContactForGeoLocation(t.geoLocation);return o().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto px-2"},o().createElement("div",{className:"d-flex justify-content-center my-5 px-0 px-lg-5"},o().createElement("img",{src:s.W.SignUp.EXPIRED_TRIAL,className:"w-100 h-auto"})),o().createElement(Pt,{previousStepIds:t.previousStepIds,schoolName:t.data.schoolName}),o().createElement("p",{className:"text-center text-sm"},o().createElement(L.x,{namespace:Ct,phrase:"context"})," ",o().createElement(j,{href:e,className:"info-link",newTab:!0},o().createElement(L.x,{namespace:Ct,phrase:"contextLink"}))))},"trial-not-available":function(t){var e=E.getMarketingSalesContactForGeoLocation(t.geoLocation);return o().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto px-2"},o().createElement("div",{className:"d-flex justify-content-center mt-5 mb-3 px-0 px-lg-3"},o().createElement("img",{src:s.W.SignUp.NOT_AVAILABLE,className:"w-100 h-auto"})),o().createElement("h3",{className:"text-center font-weight-500 mb-1"},o().createElement(L.x,{namespace:$e,phrase:"heading"})),o().createElement(Ke,{previousStepIds:t.previousStepIds,schoolName:t.data.schoolName}),o().createElement("p",{className:"text-center text-sm"},o().createElement(L.x,{namespace:$e,phrase:"helpText",options:{link:e}})))},"cant-find-school":function(t){var e,r,n,i=(r=o().useState(!1),n=2,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(r,n)||function(t,e){if(t){if("string"==typeof t)return Fe(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Fe(t,e):void 0}}(r,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.")}()),a=i[0],c=i[1],l=(e=t.geoLocation,Te[null==e?void 0:e.countryCode]||Pe);function u(e,r){t.setData("longitude",e),t.setData("latitude",r)}function s(e){t.setData("schoolLocality",e)}function f(e){t.setData("schoolPostCode",e)}function p(e){t.setData("country",e)}function h(e){t.setData("city",e)}function d(e){t.setData("province",e)}return o().useEffect((function(){return function(){t.setData("schoolType",void 0)}}),[]),o().useEffect((function(){t.data.prospectId&&t.requestTrial()}),[t.data.prospectId]),o().createElement(o().Fragment,null,o().createElement("div",{className:"d-flex flex-column justify-content-center mx-auto mb-2"},o().createElement("h4",{className:"text-center font-weight-500 mb-2"},o().createElement(L.x,{namespace:Ge,phrase:"heading"})),o().createElement("p",{className:"text-center"},o().createElement(L.x,{namespace:Ge,phrase:"subHeading"}))),o().createElement("div",{className:"d-flex justify-content-center flex-column mx-auto"},o().createElement("div",{className:"form-group"},o().createElement("label",{className:"d-block",htmlFor:"school-name-input"},o().createElement(L.x,{namespace:Ge,phrase:"schoolNameInputLabel"})),o().createElement("input",{type:"text",value:t.data.schoolName||"",onChange:function(e){t.setData("schoolName",e.target.value)},id:"school-name-input",className:"form-control",autoComplete:"off",placeholder:De("schoolNameInputPlaceholder")})),o().createElement("div",{className:"form-group"},o().createElement("label",{className:"d-block",htmlFor:"school-type-select"},o().createElement(L.x,{namespace:Ge,phrase:"schoolTypeInputLabel"})),o().createElement("select",{id:"school-type-select",className:"form-control ".concat(t.data.schoolType?"":"text-muted"),autoComplete:"off",value:t.data.schoolType||"none",onChange:function(e){var r=e.target.value;t.setData("schoolType",r)}},o().createElement("option",{value:"none",className:"text-muted",disabled:!0},De("schoolTypeInputDefault")),l.map((function(t){return o().createElement("option",{value:t,key:t,className:"text-dark"},t)})))),o().createElement(me,{locality:t.data.schoolLocality,longitude:t.data.longitude,latitude:t.data.latitude,setLocality:s,setCoordinates:u,setCountry:p,setPostalCode:f,setCity:h,setProvince:d,clearStepGroupData:function(){s(void 0),u(void 0,void 0),f(void 0),h(void 0),d(void 0),p(void 0),t.setData("schoolName",""),t.setSubmissionError("")},disabled:!1,labelClassName:"d-block",geoLocation:t.geoLocation,logUserAction:t.logUserAction,googleMapsApiKey:t.googleMapsApiKey}),o().createElement("div",{className:"text-danger"},t.submissionError||""),t.canCreateSchool()&&o().createElement(Et.m,{className:"btn btn-dark font-weight-bold",onClick:function(){return e=this,r=void 0,n=void 0,o=Ue().mark((function e(){var r;return Ue().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c(!0),e.prev=1,e.next=4,Ut.create({name:t.data.schoolName,status:je.Draft,countryCode:t.data.country,prospectType:t.data.schoolType,city:t.data.city,postCode:t.data.schoolPostCode,province:t.data.province});case 4:r=e.sent,t.setData("prospectId",r.id),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),t.setSubmissionError(De("submissionErrorText"));case 11:return e.prev=11,c(!1),e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[1,8,11,14]])})),new(n||(n=Promise))((function(t,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function c(t){try{l(o.throw(t))}catch(t){i(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(t){t(r)}))).then(a,c)}l((o=o.apply(e,r||[])).next())}));var e,r,n,o},showSpinner:t.disabled||a,disabled:t.disabled||a},o().createElement(L.x,{namespace:Ge,phrase:"submitButtonText"}))))}};function Ze(t){var e,r=(e=t.type,$[e]),a=function(t,e){var r=Object.assign({},e);return Object.keys(r).forEach((function(t){void 0===r[t]&&delete r[t]})),Object.keys(r).length?Object.assign(Object.assign({},t),r):t}(bt,t.defaultValues),c=function(t){var e=t.initialFormState,r=t.initialStepId,o=t.completedStepIds,a=t.getNextStepId,c=t.location,l=yt((0,n.useState)(r),2),u=l[0],s=l[1],f=yt((0,n.useState)(a(r)),2),p=f[0],h=f[1],d=yt((0,n.useState)([]),2),m=d[0],y=d[1],v=yt((0,n.useState)(e||bt),2),g=v[0],b=v[1],w=yt((0,n.useState)({}),2),x=w[0],E=w[1],S=yt((0,n.useState)(!1),2),L=S[0],N=S[1],j=yt((0,n.useState)(),2),O=j[0],I=j[1];return(0,n.useEffect)((function(){var t=a(u);t!==u&&h(t)}),[u]),{currentStepId:u,data:g,errors:x,submitted:L,submissionError:O,setSubmissionError:I,previousStep:function(){if(m&&m.length){var t=mt(m);s(t.pop()),y(t)}},hasPreviousStep:function(){return!!m.length},nextStep:function(){u!==p&&(o.includes(p)?N(!0):N(!1),s((function(t){return y([].concat(mt(m),[t])),p})))},setData:function(t,e){b((function(r){return Object.assign(Object.assign({},r),dt({},t,e))}))},setError:function(t,e){if(e.length)E((function(r){return Object.assign(Object.assign({},r),dt({},t,e))}));else{var r=Object.assign({},x);delete r[t],E(r)}},canSubmitForm:function(){var t=g.email,e=g.type,r=g.prospectId,n=o.includes(p);return!!(t&&e&&r&&n)},canCreateSchool:function(){var t=g.schoolName,e=g.schoolType,r=g.country,n=o.includes(p);return!!(t&&e&&r&&n)},setNextStepId:h,nextStepId:p,previousStepIds:m,geoLocation:pt(),logUserAction:function(t,e){var r=Object.assign(Object.assign({currentStepId:u,nextStepId:p},ct.t.omit(g,["email","longitude","latitude"])),t),n=Object.entries(r).filter((function(t){return void 0!==yt(t,2)[1]})).reduce((function(t,e){var r=yt(e,2),n=r[0],o=r[1];return Object.assign(Object.assign({},t),dt({},n,o))}),{});k.k.logUserAction(n,Object.assign({entity:i.EntityType.SignUp,location:c},e))}}}({initialFormState:a,initialStepId:"select-type",completedStepIds:Je,getNextStepId:Ve,location:t.location}),l=ze(o().useState(!1),2),u=l[0],s=l[1],f=ze(o().useState(!1),2);function p(){return e=this,r=void 0,n=void 0,o=We().mark((function e(){var r;return We().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,u||s(!0),c.canSubmitForm()||c.setSubmissionError(qe("cannotSubmitFormError")),"verify-account"===c.nextStepId||"active-trial"===c.nextStepId){e.next=7;break}return c.nextStep(),c.logUserAction({},{actionType:i.UserAction.Create,descriptor:i.SignUpDescriptors.DeadEnd,workflowPhase:i.WorkflowPhase.Discard}),e.abrupt("return");case 7:return e.next=9,at.createTrial({email:c.data.email,prospectId:c.data.prospectId,userType:c.data.type,appLink:t.pageAppLinkString,accessPolicy:(n=c.data.country,"us"===(null==n?void 0:n.toLowerCase())?Be.Freemium:Be.FourteenDays)});case 9:if((r=e.sent).id&&r.dateCreated){e.next=12;break}throw new Error;case 12:c.setData("userId",r.id),c.setData("appLink",t.pageAppLinkString),c.nextStep(),c.logUserAction({},{actionType:i.UserAction.Create,descriptor:i.SignUpDescriptors.TrialCreated,workflowPhase:i.WorkflowPhase.Complete}),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(0),c.setSubmissionError(qe("requestTrialError"));case 21:return e.prev=21,s(!1),e.finish(21);case 24:case"end":return e.stop()}var n}),e,null,[[0,18,21,24]])})),new(n||(n=Promise))((function(t,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function c(t){try{l(o.throw(t))}catch(t){i(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(t){t(r)}))).then(a,c)}l((o=o.apply(e,r||[])).next())}));var e,r,n,o}return f[0],f[1],o().useEffect((function(){t.onStepUpdate&&t.onStepUpdate(c.currentStepId)}),[c.currentStepId]),o().createElement(o().Fragment,null,function(){var e=Xe[c.currentStepId],n=Object.assign(Object.assign({},c),{requestTrial:p,disabled:u,googleMapsApiKey:t.googleMapsApiKey});if(!t.withLayout)return o().createElement(e,Object.assign({},n));if(!Object.keys(r).includes(c.currentStepId))return o().createElement(e,Object.assign({},n));var i=r[c.currentStepId];return o().createElement(i,{geoLocation:c.geoLocation,currentStep:c.currentStepId,hasPreviousStep:c.hasPreviousStep,previousStep:c.previousStep,showBreadCrumbs:t.showBreadCrumbs,logUserAction:c.logUserAction,closeApp:t.close},o().createElement(e,Object.assign({},n)))}(),!1)}Ze.defaultProps={type:U.c.FullPage,withLayout:!0}},2903:(t,e,r)=>{var n;r.d(e,{c:()=>n}),function(t){t.Popup="popup-form",t.FullPage="full-page-form"}(n||(n={}))}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[5923],{90314:(e,a,t)=>{t.r(a),t.d(a,{StaffManagerView:()=>V});var r=t(1024),s=t.n(r),n=t(58566),i=t(20354),c=t(23481),l=t(23049),u=t(31949),o=t(76881),m=t(39151),d=t(54811),p=t(37395),E=t(39739),f=t(46456),v=t(26055),g=t(43820),h=t(69883),y=t(91286),S=t(56138),P=t(99742),N=t(18087),T=t(51180),A=t(39872),U=t(83345),x=t(58130),k=t(14070),R=t(97291),C=t(23232),M="userManager.staffManagerEmptyState",w=o.Y.Staff;function q(){return s().createElement(U.D.Provider,{value:M},s().createElement(C.u,null,s().createElement(C.u.Image,{src:P.W.EmptyStates.UserManager.STAFF}),s().createElement(C.u.Heading,null,s().createElement(U.x,{phrase:"heading"})),s().createElement(C.u.Info,null,s().createElement(U.x,{phrase:"info"})),s().createElement("div",{className:"d-flex justify-content-center align-items-center"},s().createElement("div",{className:"px-1"},s().createElement(C.u.Cta,{text:c.T.getPhrase(M,"addNew"),icon:x.vn.Plus,appLink:{application:R.O.USER_MANAGER,action:k.e.UserManager.CREATE_USER,params:{userType:w}}})),s().createElement("div",{className:"px-1"},s().createElement(C.u.Cta,{text:c.T.getPhrase(M,"uploadAList"),icon:x.vn.Upload,appLink:{application:R.O.USER_MANAGER,action:k.e.UserManager.USER_UPLOAD_POPUP,params:{userType:w}}})))))}var I=t(12778),L=t(99705),_=c.T.encloseNamespace("userManager.staffManager"),F=o.Y.Staff;function V(e){var a,t,s,c,o,U;(0,l.o)(_("pageTitle"));var x=(0,n.useDispatch)(),k=(0,h.Z)(),R=(0,N.Y)(F,e.queryParams),C=i.a.useBasicFetch(u.N.currentUser()),M=i.a.useBasicFetch(m.L.config()),w=i.a.useBasicFetch(!!C.data&&A.N.getIdentityProviders(C.data.customerId)),V=(0,T.T)(C.data,e.queryParams,F),b=V.data?"results"in V.data?V.data.results:V.data.data:null;i.a.useBasicFetch(A.N.authenticationMethods(null!==(t=null===(a=null==b?void 0:b.map((function(e){return e.id})))||void 0===a?void 0:a.sort())&&void 0!==t?t:[]));var B=(0,S.x)({userType:F,queryParams:e.queryParams,getUserCountRequest:A.N.userCount});(0,y.v)(V);var O=E.P.showEmptyState(V,e.queryParams);return r.createElement(v.A.Provider,{value:g.a.Primary},r.createElement("div",{className:"px-3"},r.createElement(f.g,{userType:F,appLinks:R,users:b,userCount:B.data}),O?r.createElement(q,null):r.createElement("main",{className:"py-3 clearfix"},r.createElement(d.G,{users:b,userType:F,config:M.data,currentUser:C.data,appLinks:R,searchEmptyState:P.W.EmptyStates.UserManager.SEARCH,onClickSendResetEmail:function(e){i.a.fetch(x,A.N.sendPasswordResetEmail(e.id,C.data.customerId,(function(){k.success(_("passwordResetEmailSuccess",{email:e.email,escapeText:!0}))}),(function(){k.error(_("passwordResetEmailError",{email:e.email,escapeText:!0}))})))},onClickResendActivationEmail:function(e){i.a.fetch(x,A.N.resendActivationEmail(e.id,(function(){k.success(_("resendActivationEmailSuccess",{email:e.email,escapeText:!0}))}),(function(){k.error(_("resendActivationEmailError",{email:e.email,escapeText:!0}))})))},onClickSendVerificationEmail:function(e){i.a.fetch(x,A.N.resendVerificationEmail(e.id,C.data.customerId,(function(){k.success(_("resendVerificationEmailSuccess",{email:e.email,escapeText:!0}))}),(function(){k.error(_("resendVerificationEmailError",{email:e.email,escapeText:!0}))})))},totalUsers:null===(s=B.data)||void 0===s?void 0:s.count,queryParams:e.queryParams,fetchUserIds:function(a){i.a.fetch(x,A.N.getSearchUserIds(C.data.customerId,F,e.queryParams,a))},ssoHelpArticle:I.o.getLiteArticle(L.b.EditSsoAccounts),hasSso:!!(null===(c=w.data)||void 0===c?void 0:c.length)}),!!(null===(U=null===(o=V.data)||void 0===o?void 0:o.pagination)||void 0===U?void 0:U.cursors)&&r.createElement(p.t,{appLink:R.search,cursors:V.data.pagination.cursors,buttonVariant:"outline-dark",className:"py-2 float-right"}))))}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[6450],{16450:(t,e,n)=>{n.d(e,{e:()=>R,Q:()=>B});var i=n(1024),r=n(1048),o=n(79014),a=n(75896),l=n(10038),c=n(65294),s=n(31069),u=n(16930),f=n(43872),m=n(10841),d=n(5859),g=n(49542),p=n(8493),h=n(83914),y=n(58130),v=n(49985),b=function(t,e,n,i,r){return function(o){O(o.clientX,t,e,n,i,r)}},E=function(t,e,n,i,r){return function(o){O(o.touches.item(0).clientX,t,e,n,i,r)}};function O(t,e,n,i,r,o){var a=r;a||(o(a=Object.assign(Object.assign({},n),{initialMouseX:t})),e.current.style.transition=""),i({type:m.n.Drag,payload:{widgetSnapshot:a,currentMouseX:t}})}var P=function(t,e){return function(){t.current.style.transition="transform .4s ease-in-out",e(null)}},L=P,S=n(14244);const j={itemSpacing:"fDc_6",heading:"mBASc"};function A(t){return function(t){if(Array.isArray(t))return w(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||x(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,l=[],c=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=o.call(n)).done)&&(l.push(i.value),l.length!==e);c=!0);}catch(t){s=!0,r=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(t,e)||x(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 x(t,e){if(t){if("string"==typeof t)return w(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(t,e):void 0}}function w(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function R(t){var e,n=t.childComponent,d=t.staticChildren,O=t.getWidgetItemAnalyticsData,x=void 0===O?function(){}:O,w=k(i.useReducer(S.E,S.C),2),R=w[0],C=w[1],I=k(i.useState(null),2),N=I[0],M=I[1],D={container:i.useRef(null),firstElement:i.useRef(null),lastElement:i.useRef(null)};(0,l.H)(function(t,e){return function(){t.container.current&&(t.container.current.style.transition=""),e({type:m.n.Resize,payload:t})}}(D,C),(e=D.container,function(){e.current&&(e.current.style.transition="transform .4s ease-in-out")}));var W=(0,c.Y)({prevent:!t.lazyLoad}),T=W.ref,X=W.inView,_=t.collection;if(!t.collection&&o.q.isFunction(t.fetch)){var z=t.fetch(X);_=z.data}i.useEffect((function(){_&&!r.t.isEmpty(_)&&C({type:m.n.Init,payload:D})}),[_]);var F=i.useMemo((function(){var e,r;if(_){var o=null!==(e=null==d?void 0:d.filter((function(t){return"start"===t.position})))&&void 0!==e?e:[],l=null!==(r=null==d?void 0:d.filter((function(t){return"end"===t.position})))&&void 0!==r?r:[],c=_.map((function(e,r){var c;return e===a.m.first(_)&&(null==o?void 0:o.length)&&(c=D.firstElement),e!==a.m.last(_)||(null==l?void 0:l.length)||(c=D.lastElement),i.createElement("div",{key:e.id,ref:c,className:j.itemSpacing},i.createElement(n,{getChildAppLink:t.getChildAppLink,data:e,getSubtitle:t.getSubtitle,analyticsData:Object.assign(Object.assign({itemIndex:r},t.analyticsData),x(e)),analyticsOptions:Object.assign(Object.assign({},null==t?void 0:t.analyticsOptions),g.d.getSliderItemAnalyticsOptions())}))}));return o.length&&(c=[].concat(A(o.map((function(t,e){var n=t.component;return i.createElement("div",{key:"first-widget-component:".concat(e),ref:0===e?D.firstElement:null,className:j.itemSpacing},i.createElement(n,null))}))),A(c))),l.length&&(c=[].concat(A(c),A(l.map((function(t,e){var n=t.component;return i.createElement("div",{key:"end-widget-component:".concat(e),ref:e===l.length-1?D.lastElement:null,className:j.itemSpacing},i.createElement(n,null))}))))),i.createElement(i.Fragment,null,c)}}),[_]);if(_&&!_.length&&!(null==d?void 0:d.length))return i.createElement(i.Fragment,null);if(!_||r.t.isEmpty(_))return i.createElement("div",{ref:T},i.createElement(B,{partialLoadingComponent:t.partialLoadingComponent,partialLoadingOptions:t.partialLoadingOptions}));var U=function(e){return Object.assign(Object.assign({},t.analyticsData),{name:t.heading,direction:e===m.n.Next?"right":"left"})};return i.createElement("div",{className:"mx-n3"},!!t.heading&&i.createElement(p.F,{appLink:t.headingAppLink,className:"px-3"},i.createElement("h2",{className:"".concat(j.heading," ").concat(t.headingAppLink?j.link:""," h4 d-inline-block mr-2 ").concat(t.description?"mb-0":"mb-2")},t.heading,!!t.headingAppLink&&i.createElement(h.x,{svgName:y.vn.ChevronRight,size:h.S.Small}))),!!t.description&&i.createElement("p",{className:"text-truncate px-3 description mb-1"},t.description),i.createElement("div",{className:"px-3 py-3 my-n3 overflow-hidden-x"},i.createElement("div",{className:"position-relative ".concat(t.hideButtons?"overflow-hidden-x":"")},!t.hideButtons&&i.createElement(u.W,{direction:u.f.Left,onClick:function(){C({type:m.n.Previous}),v.k.logUserAction(U(m.n.Previous),g.d.getSliderAnalyticsOptions())},hide:R.hideLeftButton,useGradientBackdrop:!0}),i.createElement(f.V,{position:R.offset,positionType:s.C.Pixels,onDrag:b(D.container,R,C,N,M),onDragEnd:P(D.container,M),onTouchMove:E(D.container,R,C,N,M),onTouchEnd:L(D.container,M),ref:D.container},F),!t.hideButtons&&i.createElement(u.W,{direction:u.f.Right,onClick:function(){C({type:m.n.Next}),v.k.logUserAction(U(m.n.Next),g.d.getSliderAnalyticsOptions())},hide:R.hideRightButton,useGradientBackdrop:!0}))))}R.defaultProps={heading:"",description:""};var B=function(t){var e=t.partialLoadingComponent,n=t.partialLoadingOptions;return i.createElement("div",{className:"d-flex flex-nowrap"},d.u.getPartialLoadingItems(n).map((function(t,n){return i.createElement(e,{key:n})})))}},14244:(t,e,n)=>{n.d(e,{C:()=>r,E:()=>o});var i=n(10841),r={offset:0,containerLeftPosition:null,containerRightPosition:null,firstElementPosition:null,lastElementPosition:null,hideLeftButton:!0,hideRightButton:!0,maxSlideDistance:500,leftOffsetLimit:null};function o(t,e){switch(e.type){case i.n.Init:case i.n.Resize:return Object.assign(Object.assign({},t),function(t){var e=t.container,n=void 0===e?{}:e,i=t.lastElement,o=void 0===i?{}:i;if(!n.current||!o.current)return r;var a=t.container.current.getBoundingClientRect().left,l=t.container.current.getBoundingClientRect().right,c=a,s=t.lastElement.current.getBoundingClientRect().right,u=l-s;return Object.assign(Object.assign({},r),{containerLeftPosition:a,containerRightPosition:l,firstElementPosition:c,lastElementPosition:s,hideRightButton:s<l,leftOffsetLimit:u})}(e.payload));case i.n.Next:return Object.assign(Object.assign({},t),function(t){var e=t.firstElementPosition,n=t.lastElementPosition,i=t.maxSlideDistance,r=t.offset,o=t.containerRightPosition,a=n-o>=i?i:n-o;return{firstElementPosition:e-a,lastElementPosition:n-a,offset:r-a,hideRightButton:n-a===o,hideLeftButton:!1}}(t));case i.n.Previous:return Object.assign(Object.assign({},t),function(t){var e=t.containerLeftPosition,n=t.firstElementPosition,i=t.lastElementPosition,r=t.maxSlideDistance,o=t.offset,a=n+r<=e,l=a?r:Math.abs(o);return{firstElementPosition:n+l,lastElementPosition:i+l,offset:o+l,hideLeftButton:!a||n+l===e,hideRightButton:!1}}(t));case i.n.Drag:return Object.assign(Object.assign({},t),function(t,e){var n=e.widgetSnapshot,i=e.currentMouseX;if(n.hideLeftButton&&n.hideRightButton)return{};var r=n.initialMouseX-i,o=n.offset-r,a=n.firstElementPosition-r,l=n.lastElementPosition-r,c=!1,s=!1;return a>t.containerLeftPosition&&(o=0,a=t.containerLeftPosition,l=t.lastElementPosition,c=!0),l<=t.containerRightPosition&&(o=t.leftOffsetLimit,a=t.containerLeftPosition-Math.abs(t.leftOffsetLimit),l=n.containerRightPosition,s=!0),{offset:o,firstElementPosition:a,lastElementPosition:l,hideLeftButton:c,hideRightButton:s}}(t,e.payload));default:return t}}},5859:(t,e,n)=>{function i(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}n.d(e,{u:()=>a});var o={numItems:5,minWidth:50,maxWidth:100},a={getPartialLoadingItems:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Object.assign(Object.assign({},o),t),n=function(){return Math.max(Math.floor(Math.random()*e.maxWidth),e.minWidth)};return i(Array(e.numItems)).map((function(){return{width:"".concat(n(),"px")}}))}}}}]);