@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.
- package/dist/bundles.json +2 -2
- package/dist/css/{1261-lite-149e3f989f.chunk.css → 1261-lite-154063f9c1.chunk.css} +1 -1
- package/dist/css/{4262-lite-4d6568b754.chunk.css → 128-lite-13c42eb135.chunk.css} +3 -2
- package/dist/css/{5923-lite-5920e712c0.chunk.css → 1618-lite-61d874ee53.chunk.css} +3 -2
- package/dist/css/{1749-lite-b5c85ba0ec.chunk.css → 1749-lite-12c467219f.chunk.css} +1 -1
- package/dist/css/{7279-lite-63cba19382.chunk.css → 1929-lite-b747648611.chunk.css} +3 -2
- package/dist/css/{2115-lite-4e2150a7c6.chunk.css → 2115-lite-c5eeed0420.chunk.css} +1 -1
- package/dist/css/{2132-lite-2ec84f49e8.chunk.css → 2132-lite-35c71c37c2.chunk.css} +1 -1
- package/dist/css/{749-lite-58cb1d0181.chunk.css → 2877-lite-b825e6165f.chunk.css} +3 -2
- package/dist/css/{6883-lite-2c07aa2163.chunk.css → 300-lite-77d806addb.chunk.css} +1 -1
- package/dist/css/{3254-lite-b1cfcfdd2f.chunk.css → 3238-lite-fed65a158a.chunk.css} +3 -2
- package/dist/css/{6680-lite-e4832fd807.chunk.css → 3436-lite-c4ada3b32c.chunk.css} +14 -15
- package/dist/css/{380-lite-8423289aa5.chunk.css → 380-lite-ee64365f77.chunk.css} +1 -1
- package/dist/css/{4309-lite-0d3209c03b.chunk.css → 4309-lite-8fe16f36e7.chunk.css} +3 -2
- package/dist/css/{3789-lite-61992b3cc7.chunk.css → 4870-lite-f9a464da2d.chunk.css} +3 -2
- package/dist/css/{8424-lite-263037580a.chunk.css → 5092-lite-1180754dc4.chunk.css} +14 -15
- package/dist/css/{724-lite-f1493ddb06.chunk.css → 5652-lite-d863878802.chunk.css} +7 -6
- package/dist/css/{57-lite-8fe9cfc4fd.chunk.css → 57-lite-ee06d16e27.chunk.css} +1 -1
- package/dist/css/{6134-lite-9014acf935.chunk.css → 6134-lite-ee794c3a5d.chunk.css} +1 -1
- package/dist/css/{6686-lite-db903cbf4c.chunk.css → 6686-lite-b8db612885.chunk.css} +1 -1
- package/dist/css/{6786-lite-d58b95be7d.chunk.css → 6786-lite-f20dbaff86.chunk.css} +1 -1
- package/dist/css/{8000-lite-4781348c43.chunk.css → 7199-lite-beac9a729e.chunk.css} +1 -1
- package/dist/css/{6153-lite-e300e19a71.chunk.css → 7631-lite-4a02fecf01.chunk.css} +3 -2
- package/dist/css/{7199-lite-4781348c43.chunk.css → 8000-lite-beac9a729e.chunk.css} +1 -1
- package/dist/css/{8009-lite-48f081daa1.chunk.css → 8009-lite-259680669b.chunk.css} +1 -1
- package/dist/css/{9194-lite-61992b3cc7.chunk.css → 8028-lite-f9a464da2d.chunk.css} +3 -2
- package/dist/css/{9468-lite-46bb2504a1.chunk.css → 8200-lite-5a6b23612b.chunk.css} +1 -1
- package/dist/css/{3240-lite-63cba19382.chunk.css → 8472-lite-b747648611.chunk.css} +3 -2
- package/dist/css/{8200-lite-46bb2504a1.chunk.css → 9468-lite-5a6b23612b.chunk.css} +1 -1
- package/dist/css/{7532-lite-bc0b033c29.chunk.css → 9592-lite-a3205bb6ab.chunk.css} +2 -1
- package/dist/css/{9655-lite-e565075b6d.chunk.css → 9655-lite-95612b3c83.chunk.css} +1 -1
- package/dist/css/{78-lite-7acf8cf89e.chunk.css → 9990-lite-1b90d8f61a.chunk.css} +1 -1
- package/dist/css/{lite-app-bf3edf6b59.css → lite-app-0371226ac9.css} +1 -1
- package/dist/languages/en.json +1 -1
- package/dist/scripts/128-9d92b3ce34-lite.chunk.js +1 -0
- package/dist/scripts/1518-d1d91a487e-lite.chunk.js +1 -0
- package/dist/scripts/{4262-333422e343-lite.chunk.js → 1618-eecb176a9c-lite.chunk.js} +1 -1
- package/dist/scripts/{3240-7f6fc30700-lite.chunk.js → 1929-860c423a79-lite.chunk.js} +1 -1
- package/dist/scripts/2132-d1778f5f7d-lite.chunk.js +1 -0
- package/dist/scripts/2791-797e2f7e2a-lite.chunk.js +1 -0
- package/dist/scripts/2877-4ef221c88d-lite.chunk.js +1 -0
- package/dist/scripts/300-7ebfdab7e3-lite.chunk.js +1 -0
- package/dist/scripts/3238-ed1db6a2c1-lite.chunk.js +1 -0
- package/dist/scripts/3436-b6aa7a7afb-lite.chunk.js +1 -0
- package/dist/scripts/{380-285cf91d8c-lite.chunk.js → 380-cf9a7fc6d2-lite.chunk.js} +1 -1
- package/dist/scripts/4309-0ef925ad83-lite.chunk.js +1 -0
- package/dist/scripts/{9194-754d408be9-lite.chunk.js → 4870-6fa1f70140-lite.chunk.js} +1 -1
- package/dist/scripts/5092-cd26ac8c1e-lite.chunk.js +1 -0
- package/dist/scripts/5652-9b24e734ac-lite.chunk.js +1 -0
- package/dist/scripts/6118-1960648ee9-lite.chunk.js +2 -0
- package/dist/scripts/6450-7e8f6a7a4f-lite.chunk.js +1 -0
- package/dist/scripts/{6480-f8f772fd30-lite.chunk.js → 6480-c5a48da666-lite.chunk.js} +1 -1
- package/dist/scripts/7307-0d4940037a-lite.chunk.js +1 -0
- package/dist/scripts/{6153-a6b5ff90ac-lite.chunk.js → 7631-7f7a549459-lite.chunk.js} +1 -1
- package/dist/scripts/7831-e03ee2d74b-lite.chunk.js +1 -0
- package/dist/scripts/{3789-93cc639872-lite.chunk.js → 8028-406abba452-lite.chunk.js} +1 -1
- package/dist/scripts/{8377-7df50d0cae-lite.chunk.js → 8377-0e8bb198fd-lite.chunk.js} +1 -1
- package/dist/scripts/{7279-191d0874fe-lite.chunk.js → 8472-b5f240a421-lite.chunk.js} +1 -1
- package/dist/scripts/8976-80b3e5e87f-lite.chunk.js +2 -0
- package/dist/scripts/{9304-8e1507b512-lite.chunk.js → 9001-76cecefa6f-lite.chunk.js} +1 -1
- package/dist/scripts/{9154-1499a9c27b-lite.chunk.js → 9154-e03891eb48-lite.chunk.js} +1 -1
- package/dist/scripts/{9478-8ecc004bb4-lite.chunk.js → 9478-232d262bd0-lite.chunk.js} +2 -2
- package/dist/scripts/{7532-012132825e-lite.chunk.js → 9592-693b7e5c16-lite.chunk.js} +1 -1
- package/dist/scripts/9655-c0a8b4495d-lite.chunk.js +1 -0
- package/dist/scripts/9990-340fffced5-lite.chunk.js +1 -0
- package/dist/scripts/bundle-ddf43ca055.min.js +2 -0
- package/package.json +2 -2
- package/dist/scripts/1518-5c482e7d97-lite.chunk.js +0 -1
- package/dist/scripts/2132-f931c128b0-lite.chunk.js +0 -1
- package/dist/scripts/2791-aaf6fc6c3f-lite.chunk.js +0 -1
- package/dist/scripts/3254-9aedc73523-lite.chunk.js +0 -1
- package/dist/scripts/4309-22eacfc527-lite.chunk.js +0 -1
- package/dist/scripts/5166-2f143e3493-lite.chunk.js +0 -2
- package/dist/scripts/5923-987f2c93aa-lite.chunk.js +0 -1
- package/dist/scripts/6450-c1916882b3-lite.chunk.js +0 -1
- package/dist/scripts/6542-ec89cb7c39-lite.chunk.js +0 -2
- package/dist/scripts/6680-d7d5fb7389-lite.chunk.js +0 -1
- package/dist/scripts/6883-1077f658c3-lite.chunk.js +0 -1
- package/dist/scripts/724-cee478c44d-lite.chunk.js +0 -1
- package/dist/scripts/7307-81f89e0595-lite.chunk.js +0 -1
- package/dist/scripts/749-17fe8ec3e1-lite.chunk.js +0 -1
- package/dist/scripts/78-380e57e6a5-lite.chunk.js +0 -1
- package/dist/scripts/7831-20e0052175-lite.chunk.js +0 -1
- package/dist/scripts/8424-ae4aa748e7-lite.chunk.js +0 -1
- package/dist/scripts/9655-90ea3a292b-lite.chunk.js +0 -1
- package/dist/scripts/bundle-7936b74d14.min.js +0 -2
- /package/dist/scripts/{1261-a1eb08ff96-lite.chunk.js → 1261-5c8ea9b4ba-lite.chunk.js} +0 -0
- /package/dist/scripts/{1749-5e8719338e-lite.chunk.js → 1749-ca8a9205bb-lite.chunk.js} +0 -0
- /package/dist/scripts/{2115-b2055a3720-lite.chunk.js → 2115-fe14dd814a-lite.chunk.js} +0 -0
- /package/dist/scripts/{57-374f744a8a-lite.chunk.js → 57-bccab8beb3-lite.chunk.js} +0 -0
- /package/dist/scripts/{5166-2f143e3493-lite.chunk.js.LICENSE.txt → 6118-1960648ee9-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{6134-9577f554c1-lite.chunk.js → 6134-1da94c12ee-lite.chunk.js} +0 -0
- /package/dist/scripts/{6686-850fdeaa88-lite.chunk.js → 6686-0c396dbadc-lite.chunk.js} +0 -0
- /package/dist/scripts/{6786-2f9b97d8f4-lite.chunk.js → 6786-112072164b-lite.chunk.js} +0 -0
- /package/dist/scripts/{8000-72a196c14c-lite.chunk.js → 8000-36a930d3dd-lite.chunk.js} +0 -0
- /package/dist/scripts/{8009-7a15e85961-lite.chunk.js → 8009-f96b6c19cf-lite.chunk.js} +0 -0
- /package/dist/scripts/{8200-e2ca05c358-lite.chunk.js → 8200-e6a68567ea-lite.chunk.js} +0 -0
- /package/dist/scripts/{6542-ec89cb7c39-lite.chunk.js.LICENSE.txt → 8976-80b3e5e87f-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9478-8ecc004bb4-lite.chunk.js.LICENSE.txt → 9478-232d262bd0-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{bundle-7936b74d14.min.js.LICENSE.txt → bundle-ddf43ca055.min.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 8976-80b3e5e87f-lite.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[8976],{38976:(t,e,r)=>{r.d(e,{h:()=>gr,e:()=>mr});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 h(t,e){var r=t===e?"bg-info":"bg-light";return"".concat("rounded-circle mx-2 HuHpb"," ").concat(r)}function p(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:h(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),j=r(55460);function N(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),j.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(N,{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 _(t){return o().createElement(o().Fragment,null,o().createElement(L.x,{phrase:"text",namespace:A}),o().createElement(N,{href:t.link,onClick:t.onClick,className:"info-link pl-1"},o().createElement(L.x,{phrase:"link",namespace:A})))}const C="Hpi0T",P="KsojV";function T(t){var e=t.geoLocation,r=t.currentStep,n=t.previousStep,a=t.hasPreviousStep,h=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(P," ").concat("TJ9fO"):P;return o().createElement("div",{className:L},o().createElement("div",{className:"row mx-0 p-3 ".concat(C)},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:"JkF9k"},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(C)},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)&&h&&o().createElement("div",{className:"d-flex mb-2"},o().createElement(p,{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(_,{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})}}))))))}T.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(p,{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(_,{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":T,"cant-find-school":T,"enter-email":T,"existing-customer":T,"expired-trial":T,"find-school":T,"select-type":T,"trial-not-available":T,"verify-account":T,unsupported:T},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,unsupported:F},K=(M(G={},U.c.FullPage,B),M(G,U.c.Popup,R),G),$=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 h?e:h,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 h(){}function p(){}function d(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(j([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=d.prototype=h.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 j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:N}}function N(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var et=function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{l(n.next(t))}catch(t){i(t)}}function c(t){try{l(n.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}l((n=n.apply(t,e||[])).next())}))};function rt(t){var e={method:$.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.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 nt={asyncFetch:function(t){return et(this,void 0,void 0,tt().mark((function e(){var r,n,o;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=rt(t),e.next=3,fetch(r.url,r.init);case 3:if((n=e.sent).ok){e.next=9;break}return e.next=7,n.json();case 7:throw o=e.sent,new 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)})))},asyncFetchPlain:function(t){return et(this,void 0,void 0,tt().mark((function e(){var r,n;return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=rt(t),e.next=3,fetch(r.url,r.init);case 3:if((n=e.sent).ok){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,n.text();case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e)})))},fetch:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){var e=rt(t);return fetch(e.url,e.init).then((function(t){if(204!==t.status)return t.json()})).then((function(e){return t.success&&t.success(e),e})).catch((function(e){return t.error&&t.error(),e})).finally((function(){t.always&&t.always()}))}))};function ot(t){return ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ot(t)}function it(){it=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,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 h(){}function p(){}function d(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(j([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=d.prototype=h.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"==ot(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:N}}function N(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var at=function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{l(n.next(t))}catch(t){i(t)}}function c(t){try{l(n.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}l((n=n.apply(t,e||[])).next())}))},ct={checkTrialStatus:function(t,e,r,n){var o={email:t.email};nt.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");nt.fetch({url:o,success:e,error:r,always:n})},createTrial:function(t){return at(this,void 0,void 0,it().mark((function e(){var r;return it().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",nt.asyncFetch({url:"/api/user/trials",method:$.k.POST,data:r}));case 2:case"end":return e.stop()}}),e)})))},resendTrialEmail:function(t,e){return at(this,void 0,void 0,it().mark((function r(){var n;return it().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",nt.asyncFetch({url:"/api/user/trials/users/".concat(t,"/send-activation-email"),method:$.k.POST,data:n}));case 2:case"end":return r.stop()}}),r)})))}},lt=r(1048);function ut(t){return ut="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},ut(t)}function st(){st=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 h?e:h,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 h(){}function p(){}function d(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(j([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=d.prototype=h.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"==ut(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:N}}function N(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function ft(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 ht=["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 ft(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)?ft(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;ht.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=st().mark((function t(){return st().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,nt.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 dt(t){return dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dt(t)}function mt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==dt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==dt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===dt(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yt(t){return function(t){if(Array.isArray(t))return bt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||gt(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 vt(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)||gt(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 gt(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}}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 wt={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 xt,Et,St=r(2102);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 kt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Lt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==Lt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===Lt(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",t.Unsupported="unsupported"}(xt||(xt={}));var jt=(kt(Et={},xt.InvalidEmail,"enter-email"),kt(Et,xt.Active,"active-trial"),kt(Et,xt.Available,"find-school"),kt(Et,xt.Expired,"expired-trial"),kt(Et,xt.NotRequired,"existing-customer"),kt(Et,xt.Unavailable,"trial-not-available"),kt(Et,xt.Unsupported,"unsupported"),Et);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 Ot(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)?Ot(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 Ot(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 It=new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/),At="signUp.enterEmailStepItem",_t=a.T.encloseNamespace(At),Ct=r(33003),Pt=r.n(Ct),Tt=r(63093);function Ut(t){return Ut="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},Ut(t)}function Ft(){Ft=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 h?e:h,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 h(){}function p(){}function d(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(j([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=d.prototype=h.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"==Ut(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:N}}function N(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var Gt=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())}))},Dt={config:function(){return Gt(this,void 0,void 0,Ft().mark((function t(){return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",nt.asyncFetch({url:"/api/config"}));case 1:case"end":return t.stop()}}),t)})))},version:function(){return Gt(this,void 0,void 0,Ft().mark((function t(){return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",nt.asyncFetchPlain({url:"/api/version"}));case 1:case"end":return t.stop()}}),t)})))}};function Mt(t){return Mt="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},Mt(t)}function Rt(){Rt=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 h?e:h,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 h(){}function p(){}function d(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(j([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=d.prototype=h.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"==Mt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:N}}function N(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var Bt=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())}))},Kt={au:"cv-ap-southeast-1",uk:"cv-eu-west-1",us:"cv-ap-southeast-1",gb:"cv-eu-west-1",gg:"cv-eu-west-1",im:"cv-eu-west-1",je:"cv-eu-west-1",ie:"cv-eu-west-1",nz:"cv-ap-southeast-1"},$t={getConfig:function(){return Bt(this,void 0,void 0,Rt().mark((function t(){return Rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Dt.config();case 2:return t.t0=t.sent,t.next=5,Dt.version();case 5:return t.t1=t.sent,t.abrupt("return",{config:t.t0,version:t.t1});case 7:case"end":return t.stop()}}),t)})))},getClient:function(t){return Bt(this,void 0,void 0,Rt().mark((function e(){var r,n,o,i;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$t.getConfig();case 2:return r=e.sent,n=r.config,o=r.version,i=n.braze[Kt[null==t?void 0:t.countryCode]],e.abrupt("return",(0,Tt.getInstance)({baseUrl:i.url,apiKey:i.apiKey,productVersion:o,productName:"lite.web",enableLogging:!1,automaticallyShowInAppMessages:!1}));case 7:case"end":return e.stop()}}),e)})))},hashedEmail:function(t){var e=t.trim().toLowerCase();return Pt().hash(e)}};function Yt(t){return Yt="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},Yt(t)}function Wt(){Wt=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 h?e:h,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 h(){}function p(){}function d(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(j([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=d.prototype=h.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"==Yt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:N}}function N(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function zt(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 Ht(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)?Ht(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 Ht(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 qt="signUp.unsupportedStepItem",Jt=a.T.encloseNamespace(qt);function Vt(){return o().createElement(o().Fragment,null,o().createElement("h3",{className:"text-center font-weight-500 px-2 px-lg-4"},o().createElement(L.x,{namespace:qt,phrase:"schoolMessageTitle"})),o().createElement("p",{className:"text-center px-2 px-lg-4"},o().createElement(L.x,{namespace:qt,phrase:"schoolMessageDescription"})))}var Xt="signUp.expiredTrialStepItem";function Zt(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:Xt,phrase:"schoolMessageTitle",options:{schoolName:e}}))}return o().createElement("h3",{className:"text-center font-weight-500"},o().createElement(L.x,{namespace:Xt,phrase:"userMessageTitle"}))}function Qt(t){return Qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qt(t)}function te(){te=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 h?e:h,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 h(){}function p(){}function d(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(j([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=d.prototype=h.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"==Qt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:N}}function N(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var ee={search:function(t,e,r,n){var o={Longitude:t.longitude,Latitude:t.latitude};nt.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=te().mark((function e(){return te().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",nt.asyncFetch({url:"/api/prospects",method:$.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 re="LIq3Y",ne="aFSaR",oe="hM9s4",ie="Sp6A5";function ae(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ce(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ce(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ce(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var le="signUp.searchSchoolStepGroup",ue=a.T.encloseNamespace(le);function se(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:ie,key:t.id,onClick:function(){return n(t)}},r(t))})))}function fe(t){return o().createElement("div",{className:"info-link ".concat("xSdn2"),onClick:t.handleNoSuggestion},o().createElement(L.x,{namespace:le,phrase:"cantFindSchool"}))}function he(t){var e=ae(o().useState(!0),2),r=e[0],n=e[1],a=ae(o().useState(t.schoolName&&t.schoolPostCode?t.schoolName+", "+t.schoolPostCode:t.schoolName?t.schoolName:""),2),c=a[0],l=a[1],u=ae(o().useState(!!t.prospectId),2),s=u[0],f=u[1],h=ae(o().useState(),2),p=h[0],d=h[1],m=ae(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==p?void 0:p.filter((function(t){return g(t).toLocaleLowerCase().includes(c.toLocaleLowerCase())}));v(t)}else v(p)}),[c,p,s]),o().useEffect((function(){s||(n(!0),ee.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()?ne:re),type:"text",autoComplete:"off",placeholder:ue("schoolInputPlaceholder"),disabled:t.disabled}),o().createElement("div",{className:"position-absolute w-100"},(null==y?void 0:y.length)?o().createElement("div",{className:oe},o().createElement(se,{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:oe},o().createElement("div",{className:"o1CUJ"},o().createElement(L.x,{namespace:le,phrase:"schoolLoadingText"}))),w()&&o().createElement("div",{className:oe},o().createElement(fe,{handleNoSuggestion:function(){t.nextStep(),t.logUserAction({},{actionType:i.UserAction.Click,descriptor:i.SignUpDescriptors.CantFindSchool,workflowPhase:i.WorkflowPhase.Next})}}))))}var pe=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 de="__googleMapsScriptId";var me;!function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"}(me||(me={}));class ye{constructor({apiKey:t,authReferrerPolicy:e,channel:r,client:n,id:o=de,language:i,libraries:a=[],mapIds:c,nonce:l,region:u,retries:s=3,url:f="https://maps.googleapis.com/maps/api/js",version:h}){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||de,this.language=i,this.libraries=a,this.mapIds=c,this.nonce=l,this.region=u,this.retries=s,this.url=f,this.version=h,ye.instance){if(!pe(this.options,ye.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(ye.instance.options)}`);return ye.instance}ye.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?me.FAILURE:this.done?me.SUCCESS:this.loading?me.LOADING:me.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let t=this.url;return t+=`?callback=${this.CALLBACK}`,this.apiKey&&(t+=`&key=${this.apiKey}`),this.channel&&(t+=`&channel=${this.channel}`),this.client&&(t+=`&client=${this.client}`),this.libraries.length>0&&(t+=`&libraries=${this.libraries.join(",")}`),this.language&&(t+=`&language=${this.language}`),this.region&&(t+=`®ion=${this.region}`),this.version&&(t+=`&v=${this.version}`),this.mapIds&&(t+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(t+=`&auth_referrer_policy=${this.authReferrerPolicy}`),t}deleteScript(){const t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise(((t,e)=>{this.loadCallback((r=>{r?e(r.error):t(window.google)}))}))}loadCallback(t){this.callbacks.push(t),this.execute()}setScript(){if(document.getElementById(this.id))return void this.callback();const t=this.createUrl(),e=document.createElement("script");e.id=this.id,e.type="text/javascript",e.src=t,e.onerror=this.loadErrorCallback.bind(this),e.defer=!0,e.async=!0,this.nonce&&(e.nonce=this.nonce),document.head.appendChild(e)}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(t){if(this.errors.push(t),this.errors.length<=this.retries){const t=this.errors.length*Math.pow(2,this.errors.length);console.log(`Failed to load Google Maps script, retrying in ${t} ms.`),setTimeout((()=>{this.deleteScript(),this.setScript()}),t)}else this.onerrorEvent=t,this.callback()}setCallback(){window.__googleMapsCallback=this.callback.bind(this)}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach((t=>{t(this.onerrorEvent)})),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),void this.callback();this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}}function ve(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 ge(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)?ge(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 ge(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 be(t){return new ye({apiKey:t.apiKey,version:"weekly",libraries:t.libraries,retries:3})}function we(t){var e={apiKey:t.apiKey,libraries:t.libraries||["places"]},r=ve(o().useState(!1),2),n=r[0],i=r[1],a=ve(o().useState(be(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(be(e))}return o().useEffect((function(){u()}),[]),{loader:c,scriptLoaded:n,onGoogleApiReady:u}}function xe(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 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&&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 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=function(t){var e,r,n,o,i,a=t.formatted_address,c=xe(t.address_components);try{for(c.s();!(i=c.n()).done;){var l,u=i.value,s=xe(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 Le(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 ke(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)?ke(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 ke(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 je=r(28329);function Ne(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Oe(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Oe(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oe(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Ie=r(10874);function Ae(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return _e(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_e(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _e(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Ce="signUp.searchSchoolStepGroup",Pe=a.T.encloseNamespace(Ce);function Te(t){var e=t.predictions,r=t.getPlaceInfo;return o().createElement(o().Fragment,null,e.map((function(t){return o().createElement("div",{className:ie,key:t.place_id,onClick:function(){return r(t)}},t.description)})))}function Ue(t){var e,r,n,a=o().useRef(),l=Ae(o().useState(!1),2),s=l[0],f=l[1],h=Ae(o().useState(null!==(e=t.locality)&&void 0!==e?e:""),2),p=h[0],d=h[1],m=function(t){var e=t.search,r=t.makePredicition,n=t.geoLocation,i=we({apiKey:t.apiKey}).scriptLoaded,a=Ne(o().useState(),2),c=a[0],l=a[1];o().useEffect((function(){i&&l(new google.maps.places.AutocompleteService)}),[i]);var u=(0,je.N)(e,300),s=Ne(o().useState(),2),f=s[0],h=s[1];function p(t,e){e===google.maps.places.PlacesServiceStatus.OK&&t?h(t):h(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"]},p):h(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=Se(t),a=i.locality,c=i.country,l=i.postalCode,u=i.city,s=i.province;r({longitude:n,latitude:o,locality:a,country:c,city:u,postalCode:l,province:s})}}))}}}({search:p,makePredicition:s,geoLocation:t.geoLocation,apiKey:t.googleMapsApiKey}),y=m.localityPredicitions,v=m.getPlaceInfo,g=function(t){var e=Le(o().useState(!1),2),r=e[0],n=e[1],i=Le(o().useState({}),2),a=i[0],c=i[1],l=we(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=Se(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),j=window.navigator.geolocation&&!(null===(n=t.locality)||void 0===n?void 0:n.length),N=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:N,htmlFor:"locality-input"},o().createElement(L.x,{namespace:Ce,phrase:"localityInputLabel"})),o().createElement("input",{type:"text",value:p,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(ne):"".concat(S," ").concat(re)),ref:a,autoComplete:"off",placeholder:Pe(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=oe;return k&&j?"".concat(t," ").concat("OcrX8"):"".concat(t)}()},o().createElement(Te,{predictions:y,getPlaceInfo:function(t){s&&f(!1),v(t,a,E)}})),j&&o().createElement("div",{className:k?oe:"d-flex"},o().createElement(Ie.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:Ce,phrase:"locationButtonText"})))))}function Fe(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 Ge(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)?Ge(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 Ge(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 De="signUp.searchSchoolStepGroup";function Me(t){return Me="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},Me(t)}function Re(){Re=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 h?e:h,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 h(){}function p(){}function d(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(j([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=d.prototype=h.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"==Me(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:N}}function N(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Be(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,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 Ke(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)?Ke(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 Ke(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 $e,Ye="signUp.verifyAccountStepItem";function We(t){var e=Be(o().useState(0),2),r=e[0],n=e[1],a=Be(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:Ye,phrase:"heading"})),o().createElement("div",{className:"text-center text-sm"},o().createElement("p",{className:"mb-1"},o().createElement(L.x,{namespace:Ye,phrase:"message",options:{email:t.data.email}})),r<1?o().createElement("p",{className:"mb-1"},o().createElement(L.x,{namespace:Ye,phrase:"helpText"})," ",o().createElement("a",{onClick:function(e){return o=this,a=void 0,c=void 0,u=Re().mark((function o(){return Re().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return null==e||e.preventDefault(),o.prev=1,o.next=4,ct.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:Ye,phrase:"helpLink"}))):o().createElement(L.x,{namespace:Ye,phrase:"resent"}),c&&o().createElement("p",{className:"text-danger"},o().createElement(L.x,{namespace:Ye,phrase:"resendErrorText"})," ",o().createElement("a",{href:E.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link"},o().createElement(L.x,{namespace:Ye,phrase:"resendErrorLink"})))))))}!function(t){t.Staff="staff",t.Learner="learner"}($e||($e={}));function ze(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 He,qe="signUp.selectUserTypeStepItem",Je=a.T.encloseNamespace(qe);!function(t){t.Published="Published",t.Draft="Draft"}(He||(He={}));var Ve=["Primary","Secondary","K12","Special","TAFE","University"],Xe=["Primary","Secondary","Primary & Secondary","Special","Sixth Form College","FE College","University","Other"],Ze=["Elementary","Middle School","High School","College","Other"],Qe={au:Ve,nz:Ve,uk:Xe,gb:Xe,gg:Xe,im:Xe,je:Xe,ie:Xe,us:Ze};function tr(t){return tr="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},tr(t)}function er(){er=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 h?e:h,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 h(){}function p(){}function d(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(j([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=d.prototype=h.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"==tr(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:N}}function N(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function rr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var nr="signUp.cantFindSchoolStepItem",or=a.T.encloseNamespace(nr),ir="signUp.existingCustomerStepItem";function ar(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:ir,options:{school:e}})),o().createElement("p",{className:"text-center text-sm"},o().createElement(L.x,{phrase:"schoolMessageParagraph",namespace:ir})))}return o().createElement(o().Fragment,null,o().createElement("h4",{className:"text-center font-weight-500 mb-1"},o().createElement(L.x,{phrase:"userMessageTitle",namespace:ir})),o().createElement("div",{className:"text-center my-2"},o().createElement("a",{href:E.getLoginLink(f()),className:"btn btn-dark"},"Sign in")))}var cr,lr="signUp.trialNotAvailableStepItem";function ur(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:lr,phrase:"schoolMessage",options:{schoolName:e}})))}return o().createElement("h3",{className:"text-center font-weight-500"},o().createElement(L.x,{namespace:lr,phrase:"userMessage"}))}!function(t){t.FourteenDays="trial_14_v1",t.Freemium="freemium_v1"}(cr||(cr={}));function sr(t){return sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sr(t)}function fr(){fr=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,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 h(){}function p(){}function d(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(j([])));v&&v!==e&&r.call(v,i)&&(m=v);var g=d.prototype=h.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==sr(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(l.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=s(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:N}}function N(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=l(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=j,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function hr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return pr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?pr(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var dr=a.T.encloseNamespace("signUp.multiStepForm"),mr=["active-trial","existing-customer","expired-trial","trial-not-available","verify-account","unsupported"];function yr(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 vr={"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===$e.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:qe,phrase:"heading"})),o().createElement("p",{className:"text-sm text-center"},o().createElement(L.x,{namespace:qe,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(ze,{type:$e.Staff,buttonText:Je("educatorButtonText"),imageSrc:s.W.SignUp.EDUCATOR,onClick:e,selected:t.data.type===$e.Staff})),o().createElement("div",{className:"col-lg-6 flex-grow-1"},o().createElement(ze,{type:$e.Learner,buttonText:Je("studentButtonText"),imageSrc:s.W.SignUp.STUDENT,onClick:e,selected:t.data.type===$e.Learner}))))},"enter-email":function(t){var e,r,n,a,c,l=Nt(o().useState(!1),2),u=l[0],s=l[1],h=Nt(o().useState(!1),2),p=h[0],d=h[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)?It.test(t.data.email)?(s(!0),b(""),void ct.checkTrialStatus({email:t.data.email},x,S,(function(){s(!1)}))):(d(!1),void b(_t("invalidEmailErrorText"))):(d(!1),void b(_t("enterEmailErrorText")))}function x(e){if(d(!0),e.status===xt.InvalidEmail)return d(!1),void b(_t("invalidEmailErrorText"));e.status===xt.Active?t.setNextStepId(jt[xt.NotRequired]):t.setNextStepId(jt[e.status]),v(!0)}function S(){d(!1),v(!1),b(_t("trialStatusErrorText"))}return o().useEffect((function(){y&&v(!1),p&&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:At,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:At,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:_t("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:At}),o().createElement(N,{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:At})))),o().createElement(St.m,{showSpinner:u,className:"btn btn-dark mt-2",disabled:u,onClick:w},o().createElement(L.x,{namespace:At,phrase:"nextButtonText"}))),o().createElement("div",{className:"text-md mt-2"},o().createElement(_,{link:E.getLoginLink(f()),onClick:function(){t.logUserAction({},{actionType:i.UserAction.Click,descriptor:i.SignUpDescriptors.SignIn})}}))))},"find-school":function(t){var e=Fe(o().useState(t.canSubmitForm()),2),r=e[0],n=e[1],i=Fe(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 h(e){e!==t.data.city&&t.setData("city",e)}function p(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),ct.checkProspectTrialStatus({prospectId:t.data.prospectId},(function(e){e.status!==xt.Available?t.setNextStepId(jt[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:De,phrase:"groupHeading"})),o().createElement("p",{className:"text-center"},o().createElement(L.x,{namespace:De,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(Ue,{locality:t.data.schoolLocality,longitude:t.data.longitude,latitude:t.data.latitude,setLocality:l,setCoordinates:u,setCountry:d,setPostalCode:m,setCity:h,setProvince:p,clearStepGroupData:function(){l(void 0),u(void 0,void 0),h(void 0),p(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(he,{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(St.m,{className:"btn btn-dark font-weight-bold",onClick:t.requestTrial,showSpinner:t.disabled||a,disabled:t.disabled||a},o().createElement(L.x,{namespace:De,phrase:"submitButtonText"})))))},"verify-account":We,"active-trial":We,"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:ir,phrase:"heading"})),o().createElement(ar,{previousStepIds:t.previousStepIds,schoolName:t.data.schoolName}),o().createElement("p",{className:"text-center"},o().createElement(L.x,{phrase:"helpText",namespace:ir})," ",o().createElement(N,{href:E.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link",newTab:!0},o().createElement(L.x,{phrase:"helpLink",namespace:ir}))))},"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(Zt,{previousStepIds:t.previousStepIds,schoolName:t.data.schoolName}),o().createElement("p",{className:"text-center text-sm"},o().createElement(L.x,{namespace:Xt,phrase:"context"})," ",o().createElement(N,{href:e,className:"info-link",newTab:!0},o().createElement(L.x,{namespace:Xt,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:lr,phrase:"heading"})),o().createElement(ur,{previousStepIds:t.previousStepIds,schoolName:t.data.schoolName}),o().createElement("p",{className:"text-center text-sm"},o().createElement(L.x,{namespace:lr,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 rr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?rr(t,e):void 0}}(r,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,Qe[null==e?void 0:e.countryCode]||Ze);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 h(e){t.setData("country",e)}function p(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:nr,phrase:"heading"})),o().createElement("p",{className:"text-center"},o().createElement(L.x,{namespace:nr,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:nr,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:or("schoolNameInputPlaceholder")})),o().createElement("div",{className:"form-group"},o().createElement("label",{className:"d-block",htmlFor:"school-type-select"},o().createElement(L.x,{namespace:nr,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},or("schoolTypeInputDefault")),l.map((function(t){return o().createElement("option",{value:t,key:t,className:"text-dark"},t)})))),o().createElement(Ue,{locality:t.data.schoolLocality,longitude:t.data.longitude,latitude:t.data.latitude,setLocality:s,setCoordinates:u,setCountry:h,setPostalCode:f,setCity:p,setProvince:d,clearStepGroupData:function(){s(void 0),u(void 0,void 0),f(void 0),p(void 0),d(void 0),h(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(St.m,{className:"btn btn-dark font-weight-bold",onClick:function(){return e=this,r=void 0,n=void 0,o=er().mark((function e(){var r;return er().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c(!0),e.prev=1,e.next=4,ee.create({name:t.data.schoolName,status:He.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(or("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:nr,phrase:"submitButtonText"}))))},unsupported:function(t){var e=zt(o().useState(!1),2),r=e[0],n=e[1],i=zt(o().useState(),2),a=i[0],c=i[1],l=zt(o().useState(!1),2),u=l[0],f=l[1];function h(){var e={prospect_id:t.data.prospectId,email:t.data.email,user_type:t.data.type,organisation_sub_type:t.data.schoolType,account_name:t.data.schoolName,account_post_code:t.data.schoolPostCode,account_country:t.data.country};return Object.keys(e).forEach((function(t){var r;e[t]&&(null===(r=e[t])||void 0===r?void 0:r.length)||delete e[t]})),e}return 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.NOT_AVAILABLE,className:"w-100 h-auto"})),o().createElement(Vt,null),o().createElement("p",{className:"text-center text-sm"},o().createElement(St.m,{onClick:function(){return e=this,r=void 0,o=void 0,i=Wt().mark((function e(){var r,o;return Wt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!u){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,$t.getClient(t.geoLocation);case 4:r=e.sent,n(!0),o=h(),r.setUser($t.hashedEmail(t.data.email)),r.setUserEmail(t.data.email),r.openSession(),Object.entries(o).forEach((function(t){var e=zt(t,2),n=e[0],o=e[1];return r.setCustomUserAttribute(n,o)})),r.logEvent({type:"product_unsupported",data:o}),r.sendData((function(t){t?(c(void 0),f(!0)):(c(Jt("error")),f(!1)),n(!1)}));case 13:case"end":return e.stop()}}),e)})),new(o||(o=Promise))((function(t,n){function a(t){try{l(i.next(t))}catch(t){n(t)}}function c(t){try{l(i.throw(t))}catch(t){n(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof o?r:new o((function(t){t(r)}))).then(a,c)}l((i=i.apply(e,r||[])).next())}));var e,r,o,i},className:"btn ".concat(u?"btn-success":"btn-dark"),showSpinner:r},u?o().createElement(L.x,{namespace:qt,phrase:"contextLinkAdded"}):o().createElement(L.x,{namespace:qt,phrase:"contextLink"})),a&&o().createElement("span",{className:"text-danger"},a)))}};function gr(t){var e,r=(e=t.type,K[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}(wt,t.defaultValues),c=function(t){var e=t.initialFormState,r=t.initialStepId,o=t.completedStepIds,a=t.getNextStepId,c=t.location,l=vt((0,n.useState)(r),2),u=l[0],s=l[1],f=vt((0,n.useState)(a(r)),2),h=f[0],p=f[1],d=vt((0,n.useState)([]),2),m=d[0],y=d[1],v=vt((0,n.useState)(e||wt),2),g=v[0],b=v[1],w=vt((0,n.useState)({}),2),x=w[0],E=w[1],S=vt((0,n.useState)(!1),2),L=S[0],j=S[1],N=vt((0,n.useState)(),2),O=N[0],I=N[1];return(0,n.useEffect)((function(){var t=a(u);t!==u&&p(t)}),[u]),{currentStepId:u,data:g,errors:x,submitted:L,submissionError:O,setSubmissionError:I,previousStep:function(){if(m&&m.length){var t=yt(m);s(t.pop()),y(t)}},hasPreviousStep:function(){return!!m.length},nextStep:function(){u!==h&&(o.includes(h)?j(!0):j(!1),s((function(t){return y([].concat(yt(m),[t])),h})))},setData:function(t,e){b((function(r){return Object.assign(Object.assign({},r),mt({},t,e))}))},setError:function(t,e){if(e.length)E((function(r){return Object.assign(Object.assign({},r),mt({},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(h);return!!(t&&e&&r&&n)},canCreateSchool:function(){var t=g.schoolName,e=g.schoolType,r=g.country,n=o.includes(h);return!!(t&&e&&r&&n)},setNextStepId:p,nextStepId:h,previousStepIds:m,geoLocation:pt(),logUserAction:function(t,e){var r=Object.assign(Object.assign({currentStepId:u,nextStepId:h},lt.t.omit(g,["email","longitude","latitude"])),t),n=Object.entries(r).filter((function(t){return void 0!==vt(t,2)[1]})).reduce((function(t,e){var r=vt(e,2),n=r[0],o=r[1];return Object.assign(Object.assign({},t),mt({},n,o))}),{});k.k.logUserAction(n,Object.assign({entity:i.EntityType.SignUp,location:c},e))}}}({initialFormState:a,initialStepId:"select-type",completedStepIds:mr,getNextStepId:yr,location:t.location}),l=hr(o().useState(!1),2),u=l[0],s=l[1],f=hr(o().useState(!1),2);function h(){return e=this,r=void 0,n=void 0,o=fr().mark((function e(){var r;return fr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,u||s(!0),c.canSubmitForm()||c.setSubmissionError(dr("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,ct.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())?cr.Freemium:cr.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(dr("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=vr[c.currentStepId],n=Object.assign(Object.assign({},c),{requestTrial:h,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)}gr.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 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9304],{92869:(e,t,n)=>{n.d(t,{t:()=>i});var r=n(48088),a=n(95846),i={preventScrollTop:function(){r.Radio.channel(a.G.SHELL).trigger("prevent:scroll:top")}}},30727:(e,t,n)=>{n.d(t,{U:()=>a});var r=n(1024);function a(e){var t=e.count,n=void 0===t?6:t;return r.createElement("div",{className:"d-flex"},r.createElement("div",{className:"d-flex pl-1"},Array(n).fill(null).map((function(e,t){return r.createElement("div",{key:t,className:"".concat("ThKam"," partial-loading-background mx-1")})}))))}},49935:(e,t,n)=>{n.d(t,{Oo:()=>c,b2:()=>l});var r=n(1024),a=n(8493),i=n(5859),o=function(e){var t=e.breadcrumb,n=t.name,i=t.appLink,o=t.active;return r.createElement("li",{className:"breadcrumb-item".concat(o?" active":"")},o?r.createElement("strong",null,n):r.createElement(a.F,{appLink:i},n))},c=function(e){var t=e.breadcrumbs;return(null==t?void 0:t.length)?r.createElement("ol",{className:"breadcrumb m-0 p-0"},t.map((function(e,t){return r.createElement(o,{key:t,breadcrumb:e})}))):r.createElement(r.Fragment,null)},l=r.memo((function(e){var t=e.numItems,n=void 0===t?3:t;return r.createElement("nav",{"aria-label":"breadcrumb"},r.createElement("ol",{className:"breadcrumb m-0 p-0"},i.u.getPartialLoadingItems({numItems:n}).map((function(e,t){var n=e.width;return r.createElement("li",{key:t,className:"breadcrumb-item"},r.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:n},dangerouslySetInnerHTML:{__html:" "}}))}))))}))},37395:(e,t,n)=>{n.d(t,{t:()=>d});var r=n(1024),a=n(99910),i=n(92869),o=n(8493),c=n(83345),l=n(49985),u=n(65858);function s(e,t){var n;if(!t)return null;var r=null!==(n=e.params)&&void 0!==n?n:{};return{application:e.application,action:e.action,args:e.args,params:Object.assign(Object.assign({},r),{cursor:t})}}function d(e){var t=e.appLink,n=e.cursors,d=e.className,f=e.buttonVariant,v=e.onClick;function m(e){t&&i.t.preventScrollTop(),l.k.logUserAction({page:e},{location:u.LocationContext.Pagination,entity:u.EntityType.Pagination,actionType:u.UserAction.Navigate}),v&&v(n[e])}return t?r.createElement(c.D.Provider,{value:"shared.pagination"},r.createElement("div",{className:d},r.createElement(o.F,{appLink:s(t,n.previous),className:"btn btn-".concat(f," mr-1 ").concat(n.previous?"":"disabled"),onClick:function(){return m("previous")}},r.createElement(c.x,{phrase:"previous"})),r.createElement(o.F,{appLink:s(t,n.next),className:"btn btn-".concat(f," ").concat(n.next?"":"disabled"),onClick:function(){return m("next")}},r.createElement(c.x,{phrase:"next"})))):r.createElement(c.D.Provider,{value:"shared.pagination"},r.createElement("div",{className:d},r.createElement(a.Button,{variant:f,className:"mr-1 ".concat(n.previous?"":"disabled"),onClick:function(){return m("previous")}},r.createElement(c.x,{phrase:"previous"})),r.createElement(a.Button,{variant:f,className:"btn ".concat(n.next?"":"disabled"),onClick:function(){return m("next")}},r.createElement(c.x,{phrase:"next"}))))}d.defaultProps={className:"py-2",buttonVariant:"secondary"}},16035:(e,t,n)=>{n.d(t,{z:()=>s});var r=n(1024),a=n.n(r),i=n(8493),o=n(44829),c=n(58130),l=n(83914),u=n(91807);function s(e){var t,n,r=e.tag,s=e.appLink,d=e.onClick,f=e.disabled,v=e.tagClass,m=void 0===v?"tag":v,p=r.name.toLowerCase(),g=null===(t=r.tagType)||void 0===t?void 0:t.toLowerCase(),b="badge-pill py-1 px-2 my-1 mr-1 ".concat(m," ").concat(function(e){switch(e){case o.Q.Pedagogy:case o.Q.Skill:return"pedagogy-tag text-white";case o.Q.Hidden:return"hidden-tag";case o.Q.Normal:default:return""}}(g)),y=g===o.Q.Normal&&!!(null===(n=e.themeColours)||void 0===n?void 0:n.secondary);y&&(b+=" text-white"),!s&&!d||f||(b+=" cursor-pointer"),f&&(b+=" "+u.Z.disabled),e.onRemove&&(b+=" "+u.Z.badge);var h=y?{backgroundColor:e.themeColours.secondary}:{};return s?a().createElement(i.F,{onClick:d,appLink:s,className:b,title:p,style:h},a().createElement("span",{className:"text-truncate text-nowrap"},p)):a().createElement("span",{onClick:d,className:b,title:p,style:h},a().createElement("span",{className:"text-truncate text-nowrap"},p,e.onRemove&&a().createElement("button",{onClick:e.onRemove,className:"".concat(u.Z.close," close font-size-normal")},a().createElement(l.x,{size:l.S.Small,svgName:c.vn.Close,className:"d-inline-block svg-container"}))))}},43872:(e,t,n)=>{n.d(t,{V:()=>s});var r=n(1024),a=n(82182),i=n(31069),o=n(79014),c=new Image;c.src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=";var l=function(e){e.dataTransfer.setDragImage&&o.q.isFunction(e.dataTransfer.setDragImage)&&e.dataTransfer.setDragImage(c,0,0)},u=a.V.isTouchScreen(),s=r.forwardRef((function(e,t){var n,a,o,c,s=e.children,d=e.positionType,f=e.onDrag,v=e.onDragEnd,m=e.onTouchMove,p=e.onTouchEnd,g=e.percentageDragged,b=e.position,y=void 0===b?0:b;return r.createElement("div",Object.assign({className:"d-flex flex-nowrap position-relative w-100",style:(a=y,o=d,c=g,o===i.C.Percentage&&c&&(a-=c),{transform:"translate3d(".concat(a).concat(o,", 0px, 0px)"),transition:"transform .4s ease-in-out"}),ref:t},(n={},f&&v&&(n.draggable=!0,n.onDragEnd=v,n.onDragStart=l,n.onDragOver=f),m&&p&&u&&(n.onTouchMoveCapture=m,n.onTouchEndCapture=p),n)),s)}))},31069:(e,t,n)=>{var r;n.d(t,{C:()=>r}),function(e){e.Percentage="%",e.Pixels="px"}(r||(r={}))},10841:(e,t,n)=>{var r;n.d(t,{n:()=>r}),function(e){e.Init="init",e.Next="next",e.Previous="previous",e.Resize="resize",e.Drag="drag",e.Update="update",e.JumpToIndex="jump-to-index"}(r||(r={}))},91286:(e,t,n)=>{n.d(t,{v:()=>o});var r=n(1024),a=n(94644);function i(e){return e.map((function(e){return e.statusCode})).join(":")}function o(e,t,n){var o=Array.isArray(e)?e:[e];(0,r.useEffect)((function(){o.forEach((function(e){(0,a.r)(e.statusCode,t,n)}))}),[i(o),t,n])}},299:(e,t,n)=>{n.d(t,{X:()=>c});var r=n(1024),a=n.n(r),i=n(94631),o=n(69217),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.idField,r=void 0===n?"id":n,c=t.persistNamespace,l=t.initialState?t.initialState:new Map,u=a().useRef(l),s=(0,o.N)(),d=(0,i.D)(e),f=(0,i.D)(c);function v(){u.current.clear(),s()}function m(){var t=!A();e.forEach((function(e){t?u.current.set(e[r].toString(),!0):u.current.delete(e[r].toString())})),s()}function p(e){var t=!u.current.get(e.toString());t?u.current.set(e.toString(),t):u.current.delete(e.toString()),s()}function g(e){return"number"==typeof e?e=e.toString():"string"!=typeof e&&(e=e[r].toString()),u.current.get(e)}function b(){return Array.from(u.current.keys())}function y(){(null==e?void 0:e.length)&&(e.forEach((function(e){u.current.delete(e[r].toString())})),s())}function h(){return!!(null==e?void 0:e.length)&&!!e.find((function(e){return g(e)}))}function A(){return!!(null==e?void 0:e.length)&&e.every(g)}function E(e){e.forEach((function(e){u.current.set(e,!0)})),s()}function k(){return u.current.size}function S(){return u.current}return a().useEffect((function(){t.initialState||c&&f===c||(null==d?void 0:d.map((function(e){return e[r]})).join())!==(null==e?void 0:e.map((function(e){return e[r]})).join())&&v()}),[d,f,e,t.initialState]),a().useEffect((function(){var e;(null===(e=t.preselectedIds)||void 0===e?void 0:e.length)&&E(t.preselectedIds)}),[]),{onToggleBulk:m,onToggleItem:p,getSelected:b,isChecked:g,bulkChecked:A(),deselectAll:y,hasSomeSelections:h,setSelected:E,getSelectedCount:k,reset:v,getMap:S}}},69217:(e,t,n)=>{n.d(t,{N:()=>o});var r=n(1024),a=n.n(r);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var o=function(){var e,t,n=(e=a().useState(Date.now()),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,c=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1];return function(){n(Date.now())}}},94631:(e,t,n)=>{n.d(t,{D:()=>i});var r=n(1024),a=n.n(r);function i(e){var t=a().useRef();return a().useEffect((function(){t.current=e})),t.current}},49542:(e,t,n)=>{n.d(t,{d:()=>d});var r,a,i=n(1024),o=n.n(i),c=n(65858),l=n(53957);function u(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archived=2]="Archived"}(r||(r={})),function(e){e.Draft="Draft",e.Published="Published",e.Archived="Archived"}(a||(a={}));var d={getSliderAnalyticsOptions:function(){return{actionType:c.UserAction.Click,location:c.LocationContext.SlidingList,entity:c.EntityType.Widget,descriptor:c.ClickDescriptor.Slide}},getSliderItemAnalyticsOptions:function(){return{location:c.LocationContext.SlidingListItem}},getSliderHeadingAnalyticsOptions:function(){return{actionType:c.UserAction.Click,location:c.LocationContext.SlidingList,entity:c.EntityType.Widget,descriptor:c.ClickDescriptor.Title}},useGetContent:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return o().useMemo((function(){var r;if(!e)return null;var a="data"in e?e.data:e;if(!Array.isArray(a))return a;var i=null!==(r=null==t?void 0:t.reduce((function(e,t){return e[t.id]=t,e}),{}))&&void 0!==r?r:{};return a=u(a).sort((function(e,t){var n,r,o,c,l=null!==(r=null===(n=i[e.id])||void 0===n?void 0:n.index)&&void 0!==r?r:a.findIndex((function(t){return t.id===e.id})),u=null!==(c=null===(o=i[t.id])||void 0===o?void 0:o.index)&&void 0!==c?c:a.findIndex((function(e){return e.id===t.id}));return l<u?-1:l>u?1:0})),n?a:a.filter((function(e){var t;return!(null===(t=i[e.id])||void 0===t?void 0:t.hidden)}))}),[e,t,n])},getCustomAppLink:function(e){var t,n,r,a,i,o;return(null===(t=e.metadata)||void 0===t?void 0:t.appLink)===l.CuratedDashboardAppLink.LatestReleases?null===(r=null===(n=e.appLinks)||void 0===n?void 0:n.latestReleases)||void 0===r?void 0:r.call(n):(null===(a=e.metadata)||void 0===a?void 0:a.appLink)===l.CuratedDashboardAppLink.ExploreAllTopics?null===(o=null===(i=e.appLinks)||void 0===i?void 0:i.allTopics)||void 0===o?void 0:o.call(i):null},getWidgetStatus:function(e){var t=e.status;if("string"==typeof t)switch(t){case a.Archived:t=r.Archived;break;case a.Published:t=r.Published;break;case a.Draft:t=r.Draft}return t}}},91807:(e,t,n)=>{n.d(t,{Z:()=>r});const r={tagList:"Zw6d9",disabled:"jlL1c",partialTag:"too_N",badge:"OjtN8",close:"X9joI"}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9001],{92869:(e,t,n)=>{n.d(t,{t:()=>i});var r=n(48088),a=n(95846),i={preventScrollTop:function(){r.Radio.channel(a.G.SHELL).trigger("prevent:scroll:top")}}},30727:(e,t,n)=>{n.d(t,{U:()=>a});var r=n(1024);function a(e){var t=e.count,n=void 0===t?6:t;return r.createElement("div",{className:"d-flex"},r.createElement("div",{className:"d-flex pl-1"},Array(n).fill(null).map((function(e,t){return r.createElement("div",{key:t,className:"".concat("ThKam"," partial-loading-background mx-1")})}))))}},49935:(e,t,n)=>{n.d(t,{Oo:()=>c,b2:()=>l});var r=n(1024),a=n(8493),i=n(5859),o=function(e){var t=e.breadcrumb,n=t.name,i=t.appLink,o=t.active;return r.createElement("li",{className:"breadcrumb-item".concat(o?" active":"")},o?r.createElement("strong",null,n):r.createElement(a.F,{appLink:i},n))},c=function(e){var t=e.breadcrumbs;return(null==t?void 0:t.length)?r.createElement("ol",{className:"breadcrumb m-0 p-0"},t.map((function(e,t){return r.createElement(o,{key:t,breadcrumb:e})}))):r.createElement(r.Fragment,null)},l=r.memo((function(e){var t=e.numItems,n=void 0===t?3:t;return r.createElement("nav",{"aria-label":"breadcrumb"},r.createElement("ol",{className:"breadcrumb m-0 p-0"},i.u.getPartialLoadingItems({numItems:n}).map((function(e,t){var n=e.width;return r.createElement("li",{key:t,className:"breadcrumb-item"},r.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:n},dangerouslySetInnerHTML:{__html:" "}}))}))))}))},37395:(e,t,n)=>{n.d(t,{t:()=>d});var r=n(1024),a=n(99910),i=n(92869),o=n(8493),c=n(83345),l=n(49985),u=n(65858);function s(e,t){var n;if(!t)return null;var r=null!==(n=e.params)&&void 0!==n?n:{};return{application:e.application,action:e.action,args:e.args,params:Object.assign(Object.assign({},r),{cursor:t})}}function d(e){var t=e.appLink,n=e.cursors,d=e.className,p=e.buttonVariant,m=e.onClick;function f(e){t&&i.t.preventScrollTop(),l.k.logUserAction({page:e},{location:u.LocationContext.Pagination,entity:u.EntityType.Pagination,actionType:u.UserAction.Navigate}),m&&m(n[e])}return t?r.createElement(c.D.Provider,{value:"shared.pagination"},r.createElement("div",{className:d},r.createElement(o.F,{appLink:s(t,n.previous),className:"btn btn-".concat(p," mr-1 ").concat(n.previous?"":"disabled"),onClick:function(){return f("previous")}},r.createElement(c.x,{phrase:"previous"})),r.createElement(o.F,{appLink:s(t,n.next),className:"btn btn-".concat(p," ").concat(n.next?"":"disabled"),onClick:function(){return f("next")}},r.createElement(c.x,{phrase:"next"})))):r.createElement(c.D.Provider,{value:"shared.pagination"},r.createElement("div",{className:d},r.createElement(a.Button,{variant:p,className:"mr-1 ".concat(n.previous?"":"disabled"),onClick:function(){return f("previous")}},r.createElement(c.x,{phrase:"previous"})),r.createElement(a.Button,{variant:p,className:"btn ".concat(n.next?"":"disabled"),onClick:function(){return f("next")}},r.createElement(c.x,{phrase:"next"}))))}d.defaultProps={className:"py-2",buttonVariant:"secondary"}},16035:(e,t,n)=>{n.d(t,{z:()=>s});var r=n(1024),a=n.n(r),i=n(8493),o=n(44829),c=n(58130),l=n(83914),u=n(91807);function s(e){var t,n,r=e.tag,s=e.appLink,d=e.onClick,p=e.disabled,m=e.tagClass,f=void 0===m?"tag":m,v=r.name.toLowerCase(),g=null===(t=r.tagType)||void 0===t?void 0:t.toLowerCase(),b="badge-pill py-1 px-2 my-1 mr-1 ".concat(f," ").concat(function(e){switch(e){case o.Q.Pedagogy:case o.Q.Skill:return"pedagogy-tag text-white";case o.Q.Hidden:return"hidden-tag";case o.Q.Normal:default:return""}}(g)),y=g===o.Q.Normal&&!!(null===(n=e.themeColours)||void 0===n?void 0:n.secondary);y&&(b+=" text-white"),!s&&!d||p||(b+=" cursor-pointer"),p&&(b+=" "+u.Z.disabled),e.onRemove&&(b+=" "+u.Z.badge);var h=y?{backgroundColor:e.themeColours.secondary}:{};return s?a().createElement(i.F,{onClick:d,appLink:s,className:b,title:v,style:h},a().createElement("span",{className:"text-truncate text-nowrap"},v)):a().createElement("span",{onClick:d,className:b,title:v,style:h},a().createElement("span",{className:"text-truncate text-nowrap"},v,e.onRemove&&a().createElement("button",{onClick:e.onRemove,className:"".concat(u.Z.close," close font-size-normal")},a().createElement(l.x,{size:l.S.Small,svgName:c.vn.Close,className:"d-inline-block svg-container"}))))}},88513:(e,t,n)=>{n.d(t,{B:()=>l});var r=n(1024),a=n.n(r),i=n(58130),o=n(8493),c=n(83914);function l(e){return a().createElement(a().Fragment,null,!!e.name&&a().createElement(o.F,{appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,className:"text-decoration-none ".concat(e.appLink?"_OwY5":"")},a().createElement("h2",{className:"h4 curated-widget-heading"},e.name,!!e.appLink&&a().createElement(c.x,{svgName:i.vn.ChevronRight,size:c.S.Small}))),!!e.description&&a().createElement("p",{className:"description curated-widget-description"},a().createElement("span",{className:"clamp-2"},e.description)))}},43872:(e,t,n)=>{n.d(t,{V:()=>s});var r=n(1024),a=n(82182),i=n(31069),o=n(79014),c=new Image;c.src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=";var l=function(e){e.dataTransfer.setDragImage&&o.q.isFunction(e.dataTransfer.setDragImage)&&e.dataTransfer.setDragImage(c,0,0)},u=a.V.isTouchScreen(),s=r.forwardRef((function(e,t){var n,a,o,c,s=e.children,d=e.positionType,p=e.onDrag,m=e.onDragEnd,f=e.onTouchMove,v=e.onTouchEnd,g=e.percentageDragged,b=e.position,y=void 0===b?0:b;return r.createElement("div",Object.assign({className:"d-flex flex-nowrap position-relative w-100 pb-1",style:(a=y,o=d,c=g,o===i.C.Percentage&&c&&(a-=c),{transform:"translate3d(".concat(a).concat(o,", 0px, 0px)"),transition:"transform .4s ease-in-out"}),ref:t},(n={},p&&m&&(n.draggable=!0,n.onDragEnd=m,n.onDragStart=l,n.onDragOver=p),f&&v&&u&&(n.onTouchMoveCapture=f,n.onTouchEndCapture=v),n)),s)}))},31069:(e,t,n)=>{var r;n.d(t,{C:()=>r}),function(e){e.Percentage="%",e.Pixels="px"}(r||(r={}))},10841:(e,t,n)=>{var r;n.d(t,{n:()=>r}),function(e){e.Init="init",e.Next="next",e.Previous="previous",e.Resize="resize",e.Drag="drag",e.Update="update",e.JumpToIndex="jump-to-index"}(r||(r={}))},91286:(e,t,n)=>{n.d(t,{v:()=>o});var r=n(1024),a=n(94644);function i(e){return e.map((function(e){return e.statusCode})).join(":")}function o(e,t,n){var o=Array.isArray(e)?e:[e];(0,r.useEffect)((function(){o.forEach((function(e){(0,a.r)(e.statusCode,t,n)}))}),[i(o),t,n])}},299:(e,t,n)=>{n.d(t,{X:()=>c});var r=n(1024),a=n.n(r),i=n(94631),o=n(69217),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.idField,r=void 0===n?"id":n,c=t.persistNamespace,l=t.initialState?t.initialState:new Map,u=a().useRef(l),s=(0,o.N)(),d=(0,i.D)(e),p=(0,i.D)(c);function m(){u.current.clear(),s()}function f(){var t=!A();e.forEach((function(e){t?u.current.set(e[r].toString(),!0):u.current.delete(e[r].toString())})),s()}function v(e){var t=!u.current.get(e.toString());t?u.current.set(e.toString(),t):u.current.delete(e.toString()),s()}function g(e){return"number"==typeof e?e=e.toString():"string"!=typeof e&&(e=e[r].toString()),u.current.get(e)}function b(){return Array.from(u.current.keys())}function y(){(null==e?void 0:e.length)&&(e.forEach((function(e){u.current.delete(e[r].toString())})),s())}function h(){return!!(null==e?void 0:e.length)&&!!e.find((function(e){return g(e)}))}function A(){return!!(null==e?void 0:e.length)&&e.every(g)}function E(e){e.forEach((function(e){u.current.set(e,!0)})),s()}function k(){return u.current.size}function S(){return u.current}return a().useEffect((function(){t.initialState||c&&p===c||(null==d?void 0:d.map((function(e){return e[r]})).join())!==(null==e?void 0:e.map((function(e){return e[r]})).join())&&m()}),[d,p,e,t.initialState]),a().useEffect((function(){var e;(null===(e=t.preselectedIds)||void 0===e?void 0:e.length)&&E(t.preselectedIds)}),[]),{onToggleBulk:f,onToggleItem:v,getSelected:b,isChecked:g,bulkChecked:A(),deselectAll:y,hasSomeSelections:h,setSelected:E,getSelectedCount:k,reset:m,getMap:S}}},69217:(e,t,n)=>{n.d(t,{N:()=>o});var r=n(1024),a=n.n(r);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var o=function(){var e,t,n=(e=a().useState(Date.now()),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,c=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1];return function(){n(Date.now())}}},94631:(e,t,n)=>{n.d(t,{D:()=>i});var r=n(1024),a=n.n(r);function i(e){var t=a().useRef();return a().useEffect((function(){t.current=e})),t.current}},49542:(e,t,n)=>{n.d(t,{d:()=>d});var r,a,i=n(1024),o=n.n(i),c=n(65858),l=n(53957);function u(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archived=2]="Archived"}(r||(r={})),function(e){e.Draft="Draft",e.Published="Published",e.Archived="Archived"}(a||(a={}));var d={getSliderAnalyticsOptions:function(){return{actionType:c.UserAction.Click,location:c.LocationContext.SlidingList,entity:c.EntityType.Widget,descriptor:c.ClickDescriptor.Slide}},getSliderItemAnalyticsOptions:function(){return{location:c.LocationContext.SlidingListItem}},getSliderHeadingAnalyticsOptions:function(){return{actionType:c.UserAction.Click,location:c.LocationContext.SlidingList,entity:c.EntityType.Widget,descriptor:c.ClickDescriptor.Title}},useGetContent:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return o().useMemo((function(){var r;if(!e)return null;var a="data"in e?e.data:e;if(!Array.isArray(a))return a;var i=null!==(r=null==t?void 0:t.reduce((function(e,t){return e[t.id]=t,e}),{}))&&void 0!==r?r:{};return a=u(a).sort((function(e,t){var n,r,o,c,l=null!==(r=null===(n=i[e.id])||void 0===n?void 0:n.index)&&void 0!==r?r:a.findIndex((function(t){return t.id===e.id})),u=null!==(c=null===(o=i[t.id])||void 0===o?void 0:o.index)&&void 0!==c?c:a.findIndex((function(e){return e.id===t.id}));return l<u?-1:l>u?1:0})),n?a:a.filter((function(e){var t;return!(null===(t=i[e.id])||void 0===t?void 0:t.hidden)}))}),[e,t,n])},getCustomAppLink:function(e){var t,n,r,a,i,o;return(null===(t=e.metadata)||void 0===t?void 0:t.appLink)===l.CuratedDashboardAppLink.LatestReleases?null===(r=null===(n=e.appLinks)||void 0===n?void 0:n.latestReleases)||void 0===r?void 0:r.call(n):(null===(a=e.metadata)||void 0===a?void 0:a.appLink)===l.CuratedDashboardAppLink.ExploreAllTopics?null===(o=null===(i=e.appLinks)||void 0===i?void 0:i.allTopics)||void 0===o?void 0:o.call(i):null},getWidgetStatus:function(e){var t=e.status;if("string"==typeof t)switch(t){case a.Archived:t=r.Archived;break;case a.Published:t=r.Published;break;case a.Draft:t=r.Draft}return t}}},91807:(e,t,n)=>{n.d(t,{Z:()=>r});const r={tagList:"Zw6d9",disabled:"jlL1c",partialTag:"too_N",badge:"OjtN8",close:"X9joI"}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9154],{94644:(e,t,r)=>{r.d(t,{r:()=>u});var n=r(81886),a=r(50242),i=r(67058),c=r(49075),o=r(14553),l=r(49267),s={notFound:i.d,forbidden:{rating:o.q,yearLevel:o.q,region:l.a,privacy:o.q},badRequest:c._};function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e){var i;i="number"==typeof e?e:e.status;var c=Object.assign(Object.assign({},s),t);i&&n.Q.ErrorHelper.isStatusCodeError(i)&&(i!==a.o.NotFound?i!==a.o.Forbidden?r.badRequest||n.Q.ErrorHelper.throw(new c.badRequest):r.forbidden||n.Q.ErrorHelper.throw(new c.forbidden.privacy):r.notFound||n.Q.ErrorHelper.throw(new c.notFound))}}},91286:(e,t,r)=>{r.d(t,{v:()=>c});var n=r(1024),a=r(94644);function i(e){return e.map((function(e){return e.statusCode})).join(":")}function c(e,t,r){var c=Array.isArray(e)?e:[e];(0,n.useEffect)((function(){c.forEach((function(e){(0,a.r)(e.statusCode,t,r)}))}),[i(c),t,r])}},63649:(e,t,r)=>{r.d(t,{X:()=>o});var n=r(1024),a=r.n(n);const i="Gt6uV",c="caHP7";function o(e){var t=e.isEdit;return a().createElement("div",{className:"px-3 w-100 ".concat(t?"de4DP":"")},t?a().createElement("div",{className:"d-flex justify-content-between align-items-center mb-3"},a().createElement("div",{className:"partial-loading-background ".concat(i)}),a().createElement("div",null,a().createElement("div",{className:"partial-loading-background d-inline-block ".concat(c)}),a().createElement("div",{className:"partial-loading-background d-inline-block ml-2 ".concat(c)}))):a().createElement("div",{className:"partial-loading-background ".concat("lQs4F")}),a().createElement("div",{className:"partial-loading-background mb-3 ".concat("ekpg6")},a().createElement("div",{className:"partial-loading-background ".concat("XelbS")})),a().createElement("div",{className:"partial-loading-background mb-3 ".concat(i)}),a().createElement("div",null,Array(5).fill(null).map((function(e,t){return a().createElement("div",{key:t,className:"partial-loading-background my-2 ".concat("LEfYX")})}))))}},84062:(e,t,r)=>{r.d(t,{M:()=>N});var n=r(1024),a=r.n(n),i=r(17082),c=r(23049),o=r(1643),l=r(11576),s=r(65858),u=r(57052),d=r(44960),m=r(26285),v=r(97037),f=r(13103),p=r(35418),y=r(78166),g=r(36873),h=r(43853),b=r(22490),E=r(97816);function I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,c,o=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=r.return&&(c=r.return(),Object(c)!==c))return}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function N(e){var t,r,n,w,N=e.shareId?s.LocationContext.PlaySharedInteractive:s.LocationContext.PlayInteractive,x=null!==(n=null===(r=null===(t=e.interactive)||void 0===t?void 0:t._videoProgress)||void 0===r?void 0:r.progress)&&void 0!==n?n:0,P=I(a().useState(),2),S=P[0],k=P[1],C=I(a().useState(!0),2),A=C[0],U=C[1],O=a().useRef(),L=(0,g.k)(e.interactive,e.currentUser,e.queryParams.context,e.queryParams.contextId),T=a().useMemo((function(){return(0,i.oD)()}),[]),j=o.h.isFavouritedByCurrentUser(e.interactive),R=(0,v.c)(N),V=R.setFavourite,q=R.canFavourite,F=(0,f.O)(N);return(0,m.md)(S,q(e.interactive),j,(function(){V(e.interactive,!j,null)})),(0,m.KN)(S,e.activityStatus,e.currentUser,(function(){var t=e.activityStatus===l.T.Complete?l.T.Incomplete:l.T.Complete;F(e.shareId,e.interactive,t)})),(0,c.o)(e.interactive.name),(0,p.P)(e.interactive,e.queryParams),(0,h.T)(),(0,E.V)(null!==(w=L.videos)&&void 0!==w?w:[],{hasCurriculumLinks:!0}),a().createElement("div",{className:"px-3"},a().createElement("div",{className:"mb-3"},a().createElement(u.S,{viewKey:e.viewKey,imageApi:new URL(e.config.imageCdnUrl),playerApi:new URL(e.config.playerApiUrl),hotkeyElQuerySelector:"body",autoplay:!0,onReady:function(t){k(t),O.current=new d.M({player:t,video:e.interactive,shareId:e.shareId,analyticsLocation:N})},currentUser:e.currentUser,collectResults:e.currentUser.isAuthenticated&&!!e.shareId,shareId:e.shareId,summaryPortalNode:T,onShowSummary:function(e){U(!e)},sharerInstanceRegion:e.sharerInstanceRegion,enableImmersiveReader:!0,furthestVisitedTime:e.furthestVisitedTime,startTime:x})),a().createElement("div",null,A&&a().createElement("h1",{className:"h3"},e.interactive.name)),a().createElement(i.t0,{node:T}),a().createElement(y.Z,{currentVideo:e.interactive,currentUser:e.currentUser,setFavourite:V,canFavourite:q,relatedVideos:L,getVideoAppLink:function(t){return b.W.getAppLink(t,{context:e.queryParams.context,contextId:e.queryParams.contextId,playNext:e.queryParams.playNext,shareId:e.shareId})}}))}},7957:(e,t,r)=>{r.d(t,{x:()=>D});var n=r(1024),a=r.n(n),i=r(17082),c=r(23481),o=r(23049),l=r(28400),s=r(65858),u=r(8493),d=r(47862),m=r(11518),v=r(83345),f=r(58704),p=r(83657),y=r(5960),g=r(1643),h=r(11025),b=r(57052),E=r(97037),I=r(83523),w=r(36532),N=r(63649),x=r(14070),P=r(97291),S=r(44960),k=r(65986),C=r(26285),A=r(35418),U=r(78166),O=r(36873),L=r(43853),T=r(22490),j=r(97816);function R(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,c,o=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=r.return&&(c=r.return(),Object(c)!==c))return}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return V(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?V(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var q="interactives.previewInteractive",F=c.T.encloseNamespace(q);function D(e){var t,r,c,V,D,M,_,Y=e.shareId?s.LocationContext.PreviewSharedInteractive:s.LocationContext.PreviewInteractive,Q=R(n.useState(!1),2),H=Q[0],B=Q[1],K=R(n.useState(!1),2),X=K[0],W=K[1],Z=n.useRef(),z=n.useMemo((function(){return(0,i.oD)()}),[]),$=n.useRef(),G=(0,k._)(k.i.PlayPage),J=(0,O.k)(e.interactive,e.currentUser,e.queryParams.context,e.queryParams.contextId),ee=g.h.isFavouritedByCurrentUser(e.interactive),te=(0,E.c)(Y),re=te.setFavourite,ne=te.canFavourite;M=X,_=function(){Z.current&&Z.current.togglePreviewPreventScrubbing()},a().useEffect((function(){_()}),[M]),(0,o.o)(e.interactive.name),(0,A.P)(e.interactive,e.queryParams),(0,C.md)(Z.current,ne(e.interactive),ee,(function(){re(e.interactive,!ee,null)})),(0,L.T)(),(0,j.V)(null!==(t=J.videos)&&void 0!==t?t:[],{hasCurriculumLinks:!0});var ae,ie,ce,oe,le=(ae=e.interactive).clip||ae.video;h.M.isClip(le)?(ie=null===(c=null===(r=le.interactives)||void 0===r?void 0:r.data)||void 0===c?void 0:c.filter((function(t){return t.id.toString()!==e.interactive.id.toString()})),ce=le.name,oe={application:P.O.CLIPS,action:x.e.Clips.PLAY_CLIP,args:[le.id,l.m.slugify(le.name)]}):(ie=null===(D=null===(V=le.interactives)||void 0===V?void 0:V.data)||void 0===D?void 0:D.filter((function(t){return t.id.toString()!==e.interactive.id.toString()})),ce=le.name,oe={application:P.O.VIDEOS,action:x.e.Videos.PLAY_VIDEO,args:[le.id,l.m.slugify(le.name)]});var se=e.interactive.status===y.X.Draft;return n.createElement(v.D.Provider,{value:q},!H&&n.createElement(N.X,{isEdit:!0}),n.createElement("div",{className:"px-3 ".concat(H?"":"d-none")},n.createElement("div",{className:"alert alert-info d-flex flex-column flex-lg-row justify-content-between",role:"alert"},n.createElement(v.x,{phrase:"alert"}),e.isPreviewPreventScrubbingEnabled&&e.interactive&&n.createElement(w.u,{title:F("previewPreventScrubbingExplain"),trigger:"hover",spanHack:!0,spanHackClassName:""},n.createElement("div",{className:"d-flex mt-1 mt-lg-0"},n.createElement("div",{className:"mr-2"},n.createElement(v.x,{phrase:"previewPreventScrubbing"})),n.createElement(I.Z,{on:X,onClick:function(){W(!X)}})))),n.createElement("div",{className:"mb-3"},n.createElement(b.S,{viewKey:e.viewKey,imageApi:new URL(e.config.imageCdnUrl),playerApi:new URL(e.config.playerApiUrl),hotkeyElQuerySelector:"body",autoplay:!0,onReady:function(t){Z.current=t,B(!0),$.current=new S.M({player:t,video:e.interactive,analyticsLocation:Y,shareId:e.shareId})},currentUser:e.currentUser,questionListPortalNode:z,enableImmersiveReader:!0,furthestVisitedTime:e.furthestVisitedTime})),n.createElement("div",{className:"d-flex justify-content-between align-items-center"},n.createElement("div",null,n.createElement("h1",{className:"h3 d-inline-block m-0 mb-2"},se&&n.createElement("span",{className:"badge draft-badge mr-2 align-bottom"},"Draft"),e.interactive.name),n.createElement("div",{className:"mb-1 mr-3 clamp-1"},n.createElement(v.x,{phrase:"backTo"}),": ",n.createElement(u.F,{appLink:oe,className:"text-info"},ce))),n.createElement(p.e,{actions:G(e.interactive),actionsDropdownClassName:"btn btn-outline-dark"})),e.interactive.description&&n.createElement("p",null,e.interactive.description),n.createElement("div",{className:"mb-3"},n.createElement(i.t0,{node:z})),!!(null==ie?void 0:ie.length)&&n.createElement("div",{className:"mx-n1"},n.createElement(m.kM,{name:F("otherInteractives",{count:ie.length}),contents:f.z.Interactives,collection:ie,prefetched:!0,getChildAppLink:function(e){return{application:P.O.INTERACTIVES,action:x.e.Interactives.VIEW_INTERACTIVE,args:[e.id,l.m.slugify(e.name)]}},childComponent:d.K,extraChildComponentProps:{video:le,questionsAppLink:{application:P.O.INTERACTIVES,action:x.e.Interactives.PREVIEW_QUESTIONS},imageCdnUrl:e.config.imageCdnUrl},analyticsData:{widgetId:"interactives"}})),n.createElement(U.Z,{currentVideo:e.interactive,setFavourite:re,canFavourite:ne,currentUser:e.currentUser,relatedVideos:J,getVideoAppLink:function(t){return T.W.getAppLink(t,{context:e.queryParams.context,contextId:e.queryParams.contextId,playNext:e.queryParams.playNext,shareId:e.shareId})}})))}},17983:(e,t,r)=>{r.d(t,{h:()=>s});var n=r(20354),a=r(110),i=r(97395);function c(e,t,r){var n="".concat(e,":").concat(t.start,":").concat(t.end),a=Array.isArray(t.userId)?t.userId.sort().join(":"):t.userId,i=Array.isArray(t.groupId)?t.groupId.sort().join(":"):t.groupId;return a&&(n+=":".concat(a)),i&&(n+=":".concat(i)),r&&(n+=":".concat(r)),n}var o=r(31949);function l(e){return a.O.format(a.O.endOf(a.O.convertDateToUTC(e),"day"),"YYYY-MM-DD")}function s(e,t,r){var s,u,d=n.a.useBasicFetch(o.N.currentUser());return n.a.useBasicFetch(!r&&t.data&&d.data&&function(e,t,r,n,a,o){var l=Object.assign({objectId:e},t);return r&&(l.sharerId=r),{url:i._.urlBuilder("{gateway}/v1/analytics/heat-map/aggregations",l),key:c("aggregate:engagement:".concat(e),t,r),formatData:function(e){var t;return Object.assign(Object.assign({},e),{heatMap:null!==(t=e.heatMap)&&void 0!==t?t:[]})},normalize:!1,success:n,error:a,always:o}}(e,{start:(u=new Date(null===(s=t.data)||void 0===s?void 0:s.dateCreated),a.O.format(a.O.startOf(a.O.convertDateToUTC(u),"day"),"YYYY-MM-DD")),end:l(new Date),userId:d.data.id}))}},53073:(e,t,r)=>{r.d(t,{f:()=>s});var n=r(20354),a=r(31949),i=r(22902),c=r(16714),o=r(15311),l=r(12754);function s(){var e=(0,i.T)().hasPermissions,t=(0,o.r)().hasProduct,r=n.a.useBasicFetch(a.N.currentUser());return!e(c.C.StudentExperience)&&t(l.x.Primary)&&r.data.isAuthenticated}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9154],{94644:(e,t,r)=>{r.d(t,{r:()=>u});var n=r(81886),a=r(50242),i=r(67058),c=r(49075),o=r(14553),l=r(49267),s={notFound:i.d,forbidden:{rating:o.q,yearLevel:o.q,region:l.a,privacy:o.q},badRequest:c._};function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e){var i;i="number"==typeof e?e:e.status;var c=Object.assign(Object.assign({},s),t);i&&n.Q.ErrorHelper.isStatusCodeError(i)&&(i!==a.o.NotFound?i!==a.o.Forbidden?r.badRequest||n.Q.ErrorHelper.throw(new c.badRequest):r.forbidden||n.Q.ErrorHelper.throw(new c.forbidden.privacy):r.notFound||n.Q.ErrorHelper.throw(new c.notFound))}}},91286:(e,t,r)=>{r.d(t,{v:()=>c});var n=r(1024),a=r(94644);function i(e){return e.map((function(e){return e.statusCode})).join(":")}function c(e,t,r){var c=Array.isArray(e)?e:[e];(0,n.useEffect)((function(){c.forEach((function(e){(0,a.r)(e.statusCode,t,r)}))}),[i(c),t,r])}},63649:(e,t,r)=>{r.d(t,{X:()=>o});var n=r(1024),a=r.n(n);const i="Gt6uV",c="caHP7";function o(e){var t=e.isEdit;return a().createElement("div",{className:"px-3 w-100 ".concat(t?"de4DP":"")},t?a().createElement("div",{className:"d-flex justify-content-between align-items-center mb-3"},a().createElement("div",{className:"partial-loading-background ".concat(i)}),a().createElement("div",null,a().createElement("div",{className:"partial-loading-background d-inline-block ".concat(c)}),a().createElement("div",{className:"partial-loading-background d-inline-block ml-2 ".concat(c)}))):a().createElement("div",{className:"partial-loading-background ".concat("lQs4F")}),a().createElement("div",{className:"partial-loading-background mb-3 ".concat("ekpg6")},a().createElement("div",{className:"partial-loading-background ".concat("XelbS")})),a().createElement("div",{className:"partial-loading-background mb-3 ".concat(i)}),a().createElement("div",null,Array(5).fill(null).map((function(e,t){return a().createElement("div",{key:t,className:"partial-loading-background my-2 ".concat("LEfYX")})}))))}},84062:(e,t,r)=>{r.d(t,{M:()=>N});var n=r(1024),a=r.n(n),i=r(17082),c=r(23049),o=r(1643),l=r(11576),s=r(65858),u=r(57052),d=r(44960),m=r(26285),v=r(97037),f=r(13103),p=r(35418),y=r(78166),g=r(36873),h=r(43853),b=r(22490),E=r(97816);function I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,c,o=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=r.return&&(c=r.return(),Object(c)!==c))return}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function N(e){var t,r,n,w,N=e.shareId?s.LocationContext.PlaySharedInteractive:s.LocationContext.PlayInteractive,P=null!==(n=null===(r=null===(t=e.interactive)||void 0===t?void 0:t._videoProgress)||void 0===r?void 0:r.progress)&&void 0!==n?n:0,S=I(a().useState(),2),x=S[0],k=S[1],C=I(a().useState(!0),2),A=C[0],U=C[1],O=a().useRef(),L=(0,g.k)(e.interactive,e.currentUser,e.queryParams.context,e.queryParams.contextId),T=a().useMemo((function(){return(0,i.oD)()}),[]),j=o.h.isFavouritedByCurrentUser(e.interactive),R=(0,v.c)(N),V=R.setFavourite,q=R.canFavourite,F=(0,f.O)(N);return(0,m.md)(x,q(e.interactive),j,(function(){V(e.interactive,!j,null)})),(0,m.KN)(x,e.activityStatus,e.currentUser,(function(){var t=e.activityStatus===l.T.Complete?l.T.Incomplete:l.T.Complete;F(e.shareId,e.interactive,t)})),(0,c.o)(e.interactive.name),(0,p.P)(e.interactive,e.queryParams),(0,h.T)(),(0,E.V)(null!==(w=L.videos)&&void 0!==w?w:[],{hasCurriculumLinks:!0}),a().createElement("div",{className:"px-3"},a().createElement("div",{className:"mb-3"},a().createElement(u.S,{viewKey:e.viewKey,imageApi:new URL(e.config.imageCdnUrl),playerApi:new URL(e.config.playerApiUrl),hotkeyElQuerySelector:"body",autoplay:!0,onReady:function(t){k(t),O.current=new d.M({player:t,video:e.interactive,shareId:e.shareId,analyticsLocation:N})},currentUser:e.currentUser,collectResults:e.currentUser.isAuthenticated&&!!e.shareId,shareId:e.shareId,summaryPortalNode:T,onShowSummary:function(e){U(!e)},sharerInstanceRegion:e.sharerInstanceRegion,enableImmersiveReader:!0,furthestVisitedTime:e.furthestVisitedTime,startTime:P})),a().createElement("div",null,A&&a().createElement("h1",{className:"h3"},e.interactive.name)),a().createElement(i.t0,{node:T}),a().createElement(y.Z,{currentVideo:e.interactive,currentUser:e.currentUser,setFavourite:V,canFavourite:q,relatedVideos:L,getVideoAppLink:function(t){return b.W.getAppLink(t,{context:e.queryParams.context,contextId:e.queryParams.contextId,playNext:e.queryParams.playNext,shareId:e.shareId})}}))}},7957:(e,t,r)=>{r.d(t,{x:()=>D});var n=r(1024),a=r.n(n),i=r(17082),c=r(23481),o=r(23049),l=r(28400),s=r(65858),u=r(8493),d=r(47862),m=r(11518),v=r(83345),f=r(58704),p=r(83657),y=r(5960),g=r(1643),h=r(11025),b=r(57052),E=r(97037),I=r(83523),w=r(36532),N=r(63649),P=r(14070),S=r(97291),x=r(44960),k=r(65986),C=r(26285),A=r(35418),U=r(78166),O=r(36873),L=r(43853),T=r(22490),j=r(97816);function R(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,c,o=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=r.return&&(c=r.return(),Object(c)!==c))return}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return V(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?V(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var q="interactives.previewInteractive",F=c.T.encloseNamespace(q);function D(e){var t,r,c,V,D,M,_,Y=e.shareId?s.LocationContext.PreviewSharedInteractive:s.LocationContext.PreviewInteractive,Q=R(n.useState(!1),2),H=Q[0],B=Q[1],K=R(n.useState(!1),2),X=K[0],W=K[1],Z=n.useRef(),z=n.useMemo((function(){return(0,i.oD)()}),[]),$=n.useRef(),G=(0,k._)(k.i.PlayPage),J=(0,O.k)(e.interactive,e.currentUser,e.queryParams.context,e.queryParams.contextId),ee=g.h.isFavouritedByCurrentUser(e.interactive),te=(0,E.c)(Y),re=te.setFavourite,ne=te.canFavourite;M=X,_=function(){Z.current&&Z.current.togglePreviewPreventScrubbing()},a().useEffect((function(){_()}),[M]),(0,o.o)(e.interactive.name),(0,A.P)(e.interactive,e.queryParams),(0,C.md)(Z.current,ne(e.interactive),ee,(function(){re(e.interactive,!ee,null)})),(0,L.T)(),(0,j.V)(null!==(t=J.videos)&&void 0!==t?t:[],{hasCurriculumLinks:!0});var ae,ie,ce,oe,le=(ae=e.interactive).clip||ae.video;h.M.isClip(le)?(ie=null===(c=null===(r=le.interactives)||void 0===r?void 0:r.data)||void 0===c?void 0:c.filter((function(t){return t.id.toString()!==e.interactive.id.toString()})),ce=le.name,oe={application:S.O.CLIPS,action:P.e.Clips.PLAY_CLIP,args:[le.id,l.m.slugify(le.name)]}):(ie=null===(D=null===(V=le.interactives)||void 0===V?void 0:V.data)||void 0===D?void 0:D.filter((function(t){return t.id.toString()!==e.interactive.id.toString()})),ce=le.name,oe={application:S.O.VIDEOS,action:P.e.Videos.PLAY_VIDEO,args:[le.id,l.m.slugify(le.name)]});var se=e.interactive.status===y.X.Draft;return n.createElement(v.D.Provider,{value:q},!H&&n.createElement(N.X,{isEdit:!0}),n.createElement("div",{className:"px-4 ".concat(H?"":"d-none")},n.createElement("div",{className:"alert alert-info d-flex flex-column flex-lg-row justify-content-between",role:"alert"},n.createElement(v.x,{phrase:"alert"}),e.isPreviewPreventScrubbingEnabled&&e.interactive&&n.createElement(w.u,{title:F("previewPreventScrubbingExplain"),trigger:"hover",spanHack:!0,spanHackClassName:""},n.createElement("div",{className:"d-flex mt-1 mt-lg-0"},n.createElement("div",{className:"mr-2"},n.createElement(v.x,{phrase:"previewPreventScrubbing"})),n.createElement(I.Z,{on:X,onClick:function(){W(!X)}})))),n.createElement("div",{className:"mb-3"},n.createElement(b.S,{viewKey:e.viewKey,imageApi:new URL(e.config.imageCdnUrl),playerApi:new URL(e.config.playerApiUrl),hotkeyElQuerySelector:"body",autoplay:!0,onReady:function(t){Z.current=t,B(!0),$.current=new x.M({player:t,video:e.interactive,analyticsLocation:Y,shareId:e.shareId})},currentUser:e.currentUser,questionListPortalNode:z,enableImmersiveReader:!0,furthestVisitedTime:e.furthestVisitedTime})),n.createElement("div",{className:"d-flex justify-content-between align-items-center"},n.createElement("div",null,n.createElement("h1",{className:"h3 d-inline-block m-0 mb-2"},se&&n.createElement("span",{className:"badge draft-badge mr-2 align-bottom"},"Draft"),e.interactive.name),n.createElement("div",{className:"mb-1 mr-3 clamp-1"},n.createElement(v.x,{phrase:"backTo"}),": ",n.createElement(u.F,{appLink:oe,className:"text-info"},ce))),n.createElement(p.e,{actions:G(e.interactive),actionsDropdownClassName:"btn btn-outline-dark"})),e.interactive.description&&n.createElement("p",null,e.interactive.description),n.createElement("div",{className:"mb-3"},n.createElement(i.t0,{node:z})),!!(null==ie?void 0:ie.length)&&n.createElement("div",{className:"pb-3"},n.createElement(m.kM,{name:F("otherInteractives",{count:ie.length}),contents:f.z.Interactives,collection:ie,prefetched:!0,getChildAppLink:function(e){return{application:S.O.INTERACTIVES,action:P.e.Interactives.VIEW_INTERACTIVE,args:[e.id,l.m.slugify(e.name)]}},childComponent:d.K,extraChildComponentProps:{video:le,questionsAppLink:{application:S.O.INTERACTIVES,action:P.e.Interactives.PREVIEW_QUESTIONS},imageCdnUrl:e.config.imageCdnUrl},analyticsData:{widgetId:"interactives"}})),n.createElement(U.Z,{currentVideo:e.interactive,setFavourite:re,canFavourite:ne,currentUser:e.currentUser,relatedVideos:J,getVideoAppLink:function(t){return T.W.getAppLink(t,{context:e.queryParams.context,contextId:e.queryParams.contextId,playNext:e.queryParams.playNext,shareId:e.shareId})}})))}},17983:(e,t,r)=>{r.d(t,{h:()=>s});var n=r(20354),a=r(110),i=r(97395);function c(e,t,r){var n="".concat(e,":").concat(t.start,":").concat(t.end),a=Array.isArray(t.userId)?t.userId.sort().join(":"):t.userId,i=Array.isArray(t.groupId)?t.groupId.sort().join(":"):t.groupId;return a&&(n+=":".concat(a)),i&&(n+=":".concat(i)),r&&(n+=":".concat(r)),n}var o=r(31949);function l(e){return a.O.format(a.O.endOf(a.O.convertDateToUTC(e),"day"),"YYYY-MM-DD")}function s(e,t,r){var s,u,d=n.a.useBasicFetch(o.N.currentUser());return n.a.useBasicFetch(!r&&t.data&&d.data&&function(e,t,r,n,a,o){var l=Object.assign({objectId:e},t);return r&&(l.sharerId=r),{url:i._.urlBuilder("{gateway}/v1/analytics/heat-map/aggregations",l),key:c("aggregate:engagement:".concat(e),t,r),formatData:function(e){var t;return Object.assign(Object.assign({},e),{heatMap:null!==(t=e.heatMap)&&void 0!==t?t:[]})},normalize:!1,success:n,error:a,always:o}}(e,{start:(u=new Date(null===(s=t.data)||void 0===s?void 0:s.dateCreated),a.O.format(a.O.startOf(a.O.convertDateToUTC(u),"day"),"YYYY-MM-DD")),end:l(new Date),userId:d.data.id}))}},53073:(e,t,r)=>{r.d(t,{f:()=>s});var n=r(20354),a=r(31949),i=r(22902),c=r(16714),o=r(15311),l=r(12754);function s(){var e=(0,i.T)().hasPermissions,t=(0,o.r)().hasProduct,r=n.a.useBasicFetch(a.N.currentUser());return!e(c.C.StudentExperience)&&t(l.x.Primary)&&r.data.isAuthenticated}}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 9478-
|
|
2
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9478],{39478:(t,e,r)=>{r.r(e),r.d(e,{BaseShareLinkView:()=>p});var n=r(1024),o=r.n(n),i=r(20354),a=r(31949),c=r(30439),u=r(4594);function l(t){return l="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},l(t)}function s(){s=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function f(t,e,r,o){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new j(o||[]);return n(a,"_invoke",{value:S(t,r,c)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var d={};function v(){}function p(){}function y(){}var m={};u(m,i,(function(){return this}));var g=Object.getPrototypeOf,w=g&&g(g(O([])));w&&w!==e&&r.call(w,i)&&(m=w);var b=y.prototype=v.prototype=Object.create(m);function x(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function o(n,i,a,c){var u=h(t[n],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==l(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,c)}))}c(u.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=L(a,r);if(c){if(c===d)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=h(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function L(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,L(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=h(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;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,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function O(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:P}}function P(){return{value:void 0,done:!0}}return p.prototype=y,n(b,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:p,configurable:!0}),p.displayName=u(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},x(E.prototype),u(E.prototype,a,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(b),u(b,c,"Generator"),u(b,i,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=O,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(I),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):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),d},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),I(r),d}},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;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},t}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var h=function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function c(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}u((n=n.apply(t,e||[])).next())}))},d=r(22902),v=r(16714);function p(t){var e=t.shareId,n=t.queryParams,l=(0,d.T)().hasPermissions,p=i.a.useBasicFetch(a.N.currentUser()),y=i.a.useBasicFetch(e&&c.o.getShareObject(e)),m=function(t,e){var n,i,a=(n=o().useState(),i=2,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(n,i)||function(t,e){if(t){if("string"==typeof t)return f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,e):void 0}}(n,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=a[0],l=a[1];return o().useEffect((function(){c&&l(null)}),[e.videoId]),o().useEffect((function(){if(t&&!c){var n=t.objectTypeId;switch(e.videoId?n=u.E.Video:e.clipId?n=u.E.Clip:e.interactiveId&&(n=u.E.Interactive),n){case u.E.Video:var i=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(7556),r.e(6014),r.e(5986),r.e(3231),r.e(1518),r.e(3948),r.e(8377),r.e(9194)]).then(r.bind(r,93978));case 2:return e=t.sent,n=e.PlaySharedVideoView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(i);break;case u.E.Interactive:var a=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(7919),r.e(7556),r.e(6014),r.e(5986),r.e(3231),r.e(1518),r.e(3948),r.e(5875),r.e(9154),r.e(749)]).then(r.bind(r,38280));case 2:return e=t.sent,n=e.SharedInteractiveView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(a);break;case u.E.Clip:var f=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(7556),r.e(6014),r.e(5986),r.e(3231),r.e(1518),r.e(3948),r.e(7831),r.e(7279)]).then(r.bind(r,41021));case 2:return e=t.sent,n=e.PlaySharedClipView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(f);break;case u.E.Playlist:var d=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(7556),r.e(6014),r.e(5986),r.e(3231),r.e(6263),r.e(8e3)]).then(r.bind(r,67537));case 2:return e=t.sent,n=e.SharedPlaylistView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(d);break;case u.E.Series:var v=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(7556),r.e(6014),r.e(5986),r.e(3231),r.e(2215),r.e(8200)]).then(r.bind(r,96922));case 2:return e=t.sent,n=e.SharedSeriesView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(v)}}}),[t,c]),c}(y.data,n);if(!m)return o().createElement(o().Fragment,null);var g={shareId:e,queryParams:n,objectId:n.videoId?n.videoId:n.clipId?n.clipId:n.interactiveId?n.interactiveId:y.data.objectId,currentUser:p.data,playNext:n.playNext};return l(v.C.StudentExperience)&&"activityStatus"in y.data&&(g.activityStatus=y.data.activityStatus),o().createElement(o().Suspense,{fallback:o().createElement(o().Fragment,null)},o().createElement(m,Object.assign({},g)))}}}]);
|
|
1
|
+
/*! For license information please see 9478-232d262bd0-lite.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9478],{39478:(t,e,r)=>{r.r(e),r.d(e,{BaseShareLinkView:()=>p});var n=r(1024),o=r.n(n),i=r(20354),a=r(31949),c=r(30439),u=r(4594);function l(t){return l="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},l(t)}function s(){s=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function f(t,e,r,o){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new j(o||[]);return n(a,"_invoke",{value:S(t,r,c)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var d={};function v(){}function p(){}function y(){}var m={};u(m,i,(function(){return this}));var g=Object.getPrototypeOf,w=g&&g(g(O([])));w&&w!==e&&r.call(w,i)&&(m=w);var b=y.prototype=v.prototype=Object.create(m);function x(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function o(n,i,a,c){var u=h(t[n],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==l(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,c)}))}c(u.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=L(a,r);if(c){if(c===d)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=h(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function L(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,L(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=h(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;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,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function O(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:P}}function P(){return{value:void 0,done:!0}}return p.prototype=y,n(b,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:p,configurable:!0}),p.displayName=u(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},x(E.prototype),u(E.prototype,a,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(b),u(b,c,"Generator"),u(b,i,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=O,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(I),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):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),d},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),I(r),d}},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;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},t}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var h=function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function c(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}u((n=n.apply(t,e||[])).next())}))},d=r(22902),v=r(16714);function p(t){var e=t.shareId,n=t.queryParams,l=(0,d.T)().hasPermissions,p=i.a.useBasicFetch(a.N.currentUser()),y=i.a.useBasicFetch(e&&c.o.getShareObject(e)),m=function(t,e){var n,i,a=(n=o().useState(),i=2,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(n,i)||function(t,e){if(t){if("string"==typeof t)return f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,e):void 0}}(n,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=a[0],l=a[1];return o().useEffect((function(){c&&l(null)}),[e.videoId]),o().useEffect((function(){if(t&&!c){var n=t.objectTypeId;switch(e.videoId?n=u.E.Video:e.clipId?n=u.E.Clip:e.interactiveId&&(n=u.E.Interactive),n){case u.E.Video:var i=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(7556),r.e(6014),r.e(5986),r.e(3231),r.e(1518),r.e(3948),r.e(8377),r.e(4870)]).then(r.bind(r,93978));case 2:return e=t.sent,n=e.PlaySharedVideoView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(i);break;case u.E.Interactive:var a=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(7919),r.e(7556),r.e(6014),r.e(5986),r.e(3231),r.e(1518),r.e(3948),r.e(5875),r.e(9154),r.e(2877)]).then(r.bind(r,38280));case 2:return e=t.sent,n=e.SharedInteractiveView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(a);break;case u.E.Clip:var f=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(7556),r.e(6014),r.e(5986),r.e(3231),r.e(1518),r.e(3948),r.e(7831),r.e(8472)]).then(r.bind(r,41021));case 2:return e=t.sent,n=e.PlaySharedClipView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(f);break;case u.E.Playlist:var d=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(7556),r.e(6014),r.e(5986),r.e(3231),r.e(6263),r.e(8e3)]).then(r.bind(r,67537));case 2:return e=t.sent,n=e.SharedPlaylistView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(d);break;case u.E.Series:var v=o().lazy((function(){return h(void 0,void 0,void 0,s().mark((function t(){var e,n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(754),r.e(7556),r.e(6014),r.e(5986),r.e(3231),r.e(2215),r.e(8200)]).then(r.bind(r,96922));case 2:return e=t.sent,n=e.SharedSeriesView,t.abrupt("return",{default:n});case 5:case"end":return t.stop()}}),t)})))}));l(v)}}}),[t,c]),c}(y.data,n);if(!m)return o().createElement(o().Fragment,null);var g={shareId:e,queryParams:n,objectId:n.videoId?n.videoId:n.clipId?n.clipId:n.interactiveId?n.interactiveId:y.data.objectId,currentUser:p.data,playNext:n.playNext};return l(v.C.StudentExperience)&&"activityStatus"in y.data&&(g.activityStatus=y.data.activityStatus),o().createElement(o().Suspense,{fallback:o().createElement(o().Fragment,null)},o().createElement(m,Object.assign({},g)))}}}]);
|