@clickview/lite 0.63.3-dev.0 → 0.64.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +1 -1
- package/dist/scripts/{2056-84f388df20-lite.chunk.js → 2056-a9e8d17a46-lite.chunk.js} +3 -3
- package/dist/scripts/2056-a9e8d17a46-lite.chunk.js.map +1 -0
- package/dist/scripts/{2564-65e3fc9619-lite.chunk.js → 2564-f5628d4e56-lite.chunk.js} +3 -3
- package/dist/scripts/{2564-65e3fc9619-lite.chunk.js.map → 2564-f5628d4e56-lite.chunk.js.map} +1 -1
- package/dist/scripts/5157-e38b666fce-lite.chunk.js +2 -0
- package/dist/scripts/5157-e38b666fce-lite.chunk.js.map +1 -0
- package/dist/scripts/8722-a9eac1941c-lite.chunk.js +2 -0
- package/dist/scripts/8722-a9eac1941c-lite.chunk.js.map +1 -0
- package/dist/scripts/{bundle-b41404b68d.min.js → bundle-e02b7c5d7f.min.js} +3 -3
- package/dist/scripts/{bundle-b41404b68d.min.js.map → bundle-e02b7c5d7f.min.js.map} +1 -1
- package/package.json +1 -1
- package/dist/scripts/2056-84f388df20-lite.chunk.js.map +0 -1
- package/dist/scripts/5157-ad13101a6e-lite.chunk.js +0 -2
- package/dist/scripts/5157-ad13101a6e-lite.chunk.js.map +0 -1
- package/dist/scripts/8722-69c1c7a24f-lite.chunk.js +0 -2
- package/dist/scripts/8722-69c1c7a24f-lite.chunk.js.map +0 -1
- /package/dist/scripts/{2056-84f388df20-lite.chunk.js.LICENSE.txt → 2056-a9e8d17a46-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2564-65e3fc9619-lite.chunk.js.LICENSE.txt → 2564-f5628d4e56-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{bundle-b41404b68d.min.js.LICENSE.txt → bundle-e02b7c5d7f.min.js.LICENSE.txt} +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! For license information please see 2056-
|
|
2
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[2056],{42328:(t,e,r)=>{r.d(e,{w:()=>a});var n=r(32735);function o(){return n.createElement("svg",{viewBox:"0 0 24 24"},n.createElement("path",{d:"M11.959 10.641l4.402-4.296a.964.964 0 0 1 1.358 0 .951.951 0 0 1 0 1.35l-4.403 4.297 4.403 4.378a.951.951 0 0 1 0 1.35.964.964 0 0 1-1.358 0l-4.402-4.378-4.32 4.378a.964.964 0 0 1-1.358 0 .951.951 0 0 1 0-1.35l4.32-4.378-4.32-4.362a.951.951 0 0 1 0-1.35.964.964 0 0 1 1.358 0l4.32 4.361z"}))}var a=n.forwardRef((function(t,e){var r=t.onClickClear,a=t.showClearButton,i=t.clearClassName,c=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}(t,["onClickClear","showClearButton","clearClassName"]);return n.createElement("div",{className:"position-relative"},n.createElement("input",Object.assign({},c,{ref:e,className:"".concat(t.className," ").concat("aYpO7")})),(!!t.value||a)&&n.createElement("span",{className:"".concat("ygMgF"," position-absolute cursor-pointer text-secondary ").concat(i||""),role:"button",onClick:r,onKeyDown:function(t){return"Enter"===t.key&&r()},tabIndex:0},n.createElement("div",{className:"d-inline-block svg-container md"},n.createElement(o,null))))}))},49036:(t,e,r)=>{r.d(e,{f:()=>o});var n=r(32735);function o(t){return n.createElement(n.Fragment,null,"Have a ClickView account already?",n.createElement("a",{href:t.link,className:"info-link ms-1",onClick:t.onClick},"Sign in"))}},53364:(t,e,r)=>{r.d(e,{b:()=>i});var n=r(32735);const o={idpButton:"FDoJA",idpImage:"bjN_j",divider:"FfyN0"};function a(t){var e=t.idp,r=t.last;return n.createElement("button",{className:"btn btn-lg btn-outline-dark w-100 ".concat(r?"":"mb-3"," ").concat(o.idpButton),onClick:function(){if(t.onClick)t.onClick(e);else{var r=window.location.pathname+window.location.search;window.location.href="/challenge?idp=".concat(e.id)+"&redirectUrl="+encodeURIComponent(r)+"&attribution="+encodeURIComponent(t.attribution)}}},e.logoUrl&&n.createElement("img",{src:e.logoUrl,className:o.idpImage}),"Continue with ",e.name)}function i(t){return t.idps.length?n.createElement("div",{className:"".concat(t.className?t.className:"")},n.createElement("div",{className:"my-3 border-bottom position-relative ".concat(o.divider)}),t.idps.map((function(e,r){return n.createElement(a,{key:r,idp:e,onClick:"onClick"in t?t.onClick:null,attribution:"attribution"in t?t.attribution:null})}))):n.createElement(n.Fragment,null)}},97947:(t,e,r)=>{r.d(e,{h:()=>Ir});var n,o,a,i=r(32735),c=r(57900),l=r(49985),u=r(63093),s=r(74254),f=r(42328),p=r(68293),d=r(86664),h=r(66122),m=r(2102);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 v(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function g(t){var e,r,n,o,a,c,l,u,s,g=(u=i.useState({fullname:"",jobTitle:"",phone:""}),s=2,function(t){if(Array.isArray(t))return t}(u)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(u,s)||function(t,e){if(t){if("string"==typeof t)return v(t,e);var r={}.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)?v(t,e):void 0}}(u,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),b=g[0],w=g[1];function S(t,e){w((function(r){return Object.assign(Object.assign({},r),function(t,e,r){return(e=function(t){var e=function(t){if("object"!=y(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==y(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},t,e))}))}return i.createElement("div",{className:"text-center"},i.createElement("h1",{className:"text-center h4"},"A little more about you"),i.createElement("p",null,"Please enter your details."),i.createElement("form",{onSubmit:function(e){e.preventDefault(),t.handleSubmitForm(b)},"aria-errormessage":"brazeFormError"},i.createElement("div",{className:"form-group text-start"},i.createElement("label",{className:"d-block fw-bold mb-1",htmlFor:"fullname-input"},"Full name"),i.createElement(f.w,{value:b.fullname,onChange:function(e){e.preventDefault(),S("fullname",e.target.value),t.removeErrorForKey("fullname"),t.removeErrorForKey("submission")},name:"fullname-input",id:"fullname-input",type:"text",className:"form-control form-control-lg ".concat((null===(e=t.errors.fullname)||void 0===e?void 0:e.length)?"is-invalid":""),placeholder:"Enter your name",onClickClear:function(){S("fullname",""),t.removeErrorForKey("fullname"),t.removeErrorForKey("submission")},autoFocus:!0,"aria-errormessage":"fullname-inputError"}),t.errors.fullname&&i.createElement(h.A,{name:"fullname-input"},t.errors.fullname)),i.createElement("div",{className:"form-group text-start"},i.createElement("label",{className:"d-block fw-bold mb-1",htmlFor:"phone-input"},"Contact number"),i.createElement(f.w,{value:b.phone,onChange:function(e){e.preventDefault(),S("phone",e.target.value.trim()),t.removeErrorForKey("phone"),t.removeErrorForKey("submission")},name:"phone-input",id:"phone-input",type:"tel",className:"form-control form-control-lg ".concat((null===(r=t.errors.phone)||void 0===r?void 0:r.length)?"is-invalid":""),placeholder:"Enter your phone number",onClickClear:function(){S("phone",""),t.removeErrorForKey("phone"),t.removeErrorForKey("submission")},"aria-errormessage":"phone-inputError"}),t.errors.phone&&i.createElement(h.A,{name:"phone-input"},t.errors.phone)),i.createElement("div",{className:"form-group text-start"},i.createElement("label",{className:"d-block fw-bold mb-1",htmlFor:"jobTitle-select"},"Job title"),i.createElement(p.B,{id:"jobTitle-select",countryCode:d.I.getCountryCode(t.country),onChange:function(e){S("jobTitle",e),t.removeErrorForKey("jobTitle"),t.removeErrorForKey("submission")},error:null===(n=t.errors)||void 0===n?void 0:n.jobTitle,size:"lg",labelClassName:"d-none",isTertiary:t.isTertiary})),!!(null===(o=t.errors)||void 0===o?void 0:o.submission)&&i.createElement(h.A,{name:"brazeForm",className:"form-group"},t.errors.submission),i.createElement("div",{className:"form-group mb-1"},i.createElement(m.m,{className:"btn-lg w-100",variant:"dark",onClick:function(){return t.handleSubmitForm(b)},showSpinner:t.loading,disabled:t.loading||(a=b.fullname,c=b.jobTitle,l=b.phone,!(a.length&&c.length&&l.length&&!Object.keys(t.errors).length))},"Submit"))))}!function(t){t.Unavailable="unavailable",t.Expired="expired",t.Active="active",t.NotRequired="not-required",t.Available="available",t.Unsupported="unsupported",t.UserAutoJoinAllowed="user-auto-join-allowed",t.UserJoinApprovalRequired="user-join-approval-required"}(n||(n={})),function(t){t.InvalidEmail="invalid-email"}(o||(o={})),function(t){t.Staff="staff",t.Learner="learner"}(a||(a={}));var b=r(76153);function w(t){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w(t)}function S(){S=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new I(n||[]);return o(i,"_invoke",{value:N(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",d="suspendedYield",h="executing",m="completed",y={};function v(){}function g(){}function b(){}var E={};u(E,i,(function(){return this}));var x=Object.getPrototypeOf,L=x&&x(x(P([])));L&&L!==r&&n.call(L,i)&&(E=L);var k=b.prototype=v.prototype=Object.create(E);function j(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==w(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function N(e,r,n){var o=p;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=O(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(w(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},j(C.prototype),u(C.prototype,c,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},j(k),u(k,l,"Generator"),u(k,i,(function(){return this})),u(k,"toString",(function(){return"[object Generator]"})),e.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}},e.values=P,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},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),T(r),y}},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;T(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function E(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return x(t,e);var r={}.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)?x(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 x(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var L=255,k=/\$+[\w\s]?/,j=/^\+?\d{4,255}$/;function C(t){if(!t)return{firstName:"",surname:""};var e=t.split(" ").filter((function(t){return t.length}));return{firstName:e.shift(),surname:e.join(" ")}}var N=r(65858),O=r(72688),A=r(99504),T=r(45157),I=function t(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){if(e.constructor!==r.constructor)return!1;var n,o,a;if(Array.isArray(e)){if((n=e.length)!=r.length)return!1;for(o=n;0!=o--;)if(!t(e[o],r[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if((n=(a=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,a[o]))return!1;for(o=n;0!=o--;){var i=a[o];if(!t(e[i],r[i]))return!1}return!0}return e!=e&&r!=r};const P="__googleMapsScriptId";var U;!function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"}(U||(U={}));class F{constructor({apiKey:t,authReferrerPolicy:e,channel:r,client:n,id:o=P,language:a,libraries:i=[],mapIds:c,nonce:l,region:u,retries:s=3,url:f="https://maps.googleapis.com/maps/api/js",version:p}){if(this.CALLBACK="__googleMapsCallback",this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=e,this.channel=r,this.client=n,this.id=o||P,this.language=a,this.libraries=i,this.mapIds=c,this.nonce=l,this.region=u,this.retries=s,this.url=f,this.version=p,F.instance){if(!I(this.options,F.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(F.instance.options)}`);return F.instance}F.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?U.FAILURE:this.done?U.SUCCESS:this.loading?U.LOADING:U.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 _(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return G(t,e);var r={}.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)?G(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 G(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function D(t){return new F({apiKey:t.apiKey,version:"weekly",libraries:t.libraries,retries:3})}function M(t){var e={apiKey:t.apiKey,libraries:t.libraries||["places"]},r=_(i.useState(!1),2),n=r[0],o=r[1],a=_(i.useState(D(e)),2),c=a[0],l=a[1];function u(t,r){c?c.loadCallback((function(e){if(e)return o(!1),void(r&&r(e));o(!0),t&&t()})):l(D(e))}return i.useEffect((function(){u()}),[]),{loader:c,scriptLoaded:n,onGoogleApiReady:u}}function R(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function K(t){var e,r,n=M({apiKey:t.googleApiKey}).scriptLoaded,o=(e=i.useState(),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return R(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=o[0],c=o[1];return i.useEffect((function(){n&&c(new google.maps.places.AutocompleteService)}),[n]),a}function z(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var Y="country:placeholder:text";function B(t){var e,r,n=t.apiKey,o=t.geoLocation,a=t.makeRequest,l=void 0===a||a,u=t.template,s=void 0===u?"E.g. [placeholder]":u,f=t.templateKey,p=void 0===f?"[placeholder]":f,h=K({googleApiKey:n}),m=i.useState((function(){return function(t){var e=d.I.getLocalizedLocalityPlaceholderText(null==t?void 0:t.countryCode);return e||(c.SG.cacheGet("".concat(Y,":").concat(null==t?void 0:t.countryCode))||void 0)}(o)})),y=(r=2,function(t){if(Array.isArray(t))return t}(e=m)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return z(t,e);var r={}.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)?z(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),v=y[0],g=y[1];function b(t,e){c.SG.cacheSet("".concat(Y,":").concat(e),t,86400),g(t)}return i.useEffect((function(){if(!v&&h&&l){var t=(null==o?void 0:o.countryCode)||"us",e={input:String.fromCharCode(96+T.Y.getRandomInt(26)),types:["(cities)"],region:t,componentRestrictions:{country:t}};h.getPlacePredictions(e,(function(e,r){return function(t,e,r){if(e===google.maps.places.PlacesServiceStatus.OK&&t){var n=t[T.Y.getRandomInt(t.length)].description;b(s.replace(p,n),r)}else b(d.I.getLocalizedLocalityPlaceholderText("us"),r)}(e,r,t)}))}}),[v,h,o,l]),v}function q(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return V(t,e);var r={}.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)?V(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 V(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function $(t){var e=q(i.useState(0),2),r=e[0],n=e[1],o=i.useRef(),a=q(i.useState(!!t.hideInitially),2),c=a[0],l=a[1];function u(){var t;o.current&&(null===(t=o.current.children[r-1])||void 0===t||t.scrollIntoView({block:"center"}))}return{selectedIndex:r,onKeyDown:function(e){if(t.hideOnEnter&&l(!1),"ArrowDown"===e.code){e.stopPropagation(),e.preventDefault();var o=r+1;return o>t.itemCount&&(o=1),n(o),void u()}if("ArrowUp"===e.code){e.stopPropagation(),e.preventDefault();var a=r-1;return a<=0&&(a=t.itemCount),n(a),void u()}if("Enter"===e.code&&r>0)return e.stopPropagation(),e.preventDefault(),t.onSelected(r-1),void(t.hideOnEnter&&l(!0));n(0)},containerRef:o,hide:c,onFocus:function(){t.hideOnBlur&&l(!1)},onBlur:function(){t.hideOnBlur&&l(!0)}}}function J(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 Z(t,e);var r={}.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)?Z(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function Z(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var H=function(t){var e,r,n,o,a,i=t.formatted_address,c=J(t.address_components);try{for(c.s();!(a=c.n()).done;){var l,u=a.value,s=J(u.types);try{for(s.s();!(l=s.n()).done;){var f=l.value;"locality"===f&&(e=u.short_name),"administrative_area_level_1"===f&&(r=u.short_name),"postal_code"===f&&(o=u.short_name),"country"===f&&(n=u.short_name)}}catch(t){s.e(t)}finally{s.f()}}}catch(t){c.e(t)}finally{c.f()}return{locality:i,country:n,postalCode:o,city:e,province:r}};function W(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var X={1:"geocoderPermissionDenied",2:"geocoderUnavailable",3:"geocoderTimeout"},Q=r(28329);function tt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var et=r(11607);function rt(){return i.createElement("svg",{viewBox:"0 0 24 24"},i.createElement("path",{d:"m12.00559,20.40189c4.60881,0 8.37242,-3.78424 8.37242,-8.40189c0,-4.61764 -3.76361,-8.40187 -8.37242,-8.40187c-4.62002,0 -8.38365,3.78422 -8.38365,8.40187c0,4.61765 3.76364,8.40189 8.38365,8.40189zm0,-1.65557c-3.75235,0 -6.67085,-2.96208 -6.67085,-6.74632c0,-3.7842 2.91851,-6.74625 6.67085,-6.74625c3.74105,0 6.67084,2.96206 6.67084,6.74625c0,3.78424 -2.92978,6.74632 -6.67084,6.74632zm-10.14151,-6.02552l6.01731,0c0.40566,0 0.72118,-0.31536 0.72118,-0.7208c0,-0.40544 -0.31552,-0.7208 -0.72118,-0.7208l-6.01731,0c-0.40566,0 -0.72117,0.31536 -0.72117,0.7208c0,0.40544 0.31551,0.7208 0.72118,0.7208l-0.00001,0zm14.25442,0l6.0174,0c0.40565,0 0.72118,-0.31536 0.72118,-0.7208c0,-0.40544 -0.31553,-0.7208 -0.72118,-0.7208l-6.0174,0c-0.40565,0 -0.72118,0.31536 -0.72118,0.7208c0,0.40544 0.31553,0.7208 0.72118,0.7208zm-4.12417,-4.1221c0.40566,0 0.72118,-0.31534 0.72118,-0.70952l0,-6.02547c0,-0.40544 -0.31552,-0.7208 -0.72118,-0.7208c-0.3944,0 -0.7099,0.31536 -0.7099,0.7208l0,6.02547c0,0.39418 0.31551,0.70952 0.7099,0.70952zm0,14.25838c0.40566,0 0.72118,-0.3154 0.72118,-0.72077l0,-6.02541c0,-0.39425 -0.31552,-0.70965 -0.72118,-0.70965c-0.3944,0 -0.7099,0.3154 -0.7099,0.70965l0,6.02541c0,0.40538 0.31551,0.72077 0.7099,0.72077z"}))}const nt="I6wQy",ot="oI3z7",at="Y78ea",it="magL7",ct="b0Mz9",lt="ChY5L",ut="snnHR";function st(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ft(t,e);var r={}.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.")}()}function ft(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function pt(t){var e=t.predictions,r=t.getPlaceInfo,n=t.selectedIndex;return i.createElement(i.Fragment,null,e.map((function(t,e){return i.createElement(et.L,{className:"".concat(it," ").concat(n-1===e?ut:""),key:t.place_id,onKeyDown:function(e){return"Enter"===e.key&&r(t)},onMouseDown:function(){return r(t)},onClick:function(){return r(t)}},t.description)})))}function dt(t){var e,r,n,o,a,c,l=i.useRef(),u=st(i.useState((null===(e=t.data)||void 0===e?void 0:e.schoolLocality)||""),2),s=u[0],p=u[1],d=st(i.useState(!1),2),h=d[0],m=d[1],y=B({apiKey:t.googleMapsApiKey,geoLocation:t.geoLocation}),v=function(t){var e,r,n=t.search,o=t.makePredicition,a=t.geoLocation,c=K({googleApiKey:t.apiKey}),l=(0,Q.N)(n,300),u=(e=i.useState(),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return tt(t,e);var r={}.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)?tt(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=u[0],f=u[1];function p(t,e){e===google.maps.places.PlacesServiceStatus.OK&&t?f(t):f(void 0)}return i.useEffect((function(){if(c)if(0!==(null==l?void 0:l.length)&&o){var t=(null==a?void 0:a.countryCode)||"us";c.getPlacePredictions({input:l,componentRestrictions:(null==a?void 0:a.isFallback)?void 0:{country:t},region:t,types:["locality","sublocality","postal_code"]},p)}else f(void 0)}),[l,o,c]),{localityPredicitions:s,getPlaceInfo:function(t,e,r){new google.maps.places.PlacesService(e.current).getDetails({placeId:t.place_id,fields:["geometry","address_components","formatted_address"],region:a.countryCode},(function(t,e){if(e===google.maps.places.PlacesServiceStatus.OK){var n=t.geometry.location.lng(),o=t.geometry.location.lat(),a=H(t),i=a.locality,c=a.country,l=a.postalCode,u=a.city,s=a.province;r({longitude:n,latitude:o,locality:i,country:c,city:u,postalCode:l,province:s})}}))}}}({search:s,makePredicition:h,geoLocation:t.geoLocation,apiKey:t.googleMapsApiKey}),g=v.localityPredicitions,b=v.getPlaceInfo,w=function(t){var e,r,n=(e=i.useState({}),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return W(t,e);var r={}.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)?W(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=n[0],a=n[1],c=M(t).onGoogleApiReady;function l(t){var e=t.coords,r=e.latitude,n=e.longitude,o=new google.maps.LatLng(r,n);(new google.maps.Geocoder).geocode({location:o},(function(t,e){if(e===google.maps.GeocoderStatus.OK){var o=t.find((function(t){return t.types.includes("locality")||t.types.includes("administrative_area_level_2")})),i=H(o);a(Object.assign(Object.assign({},i),{longitude:n,latitude:r}))}}))}function u(e){var r=X[e.code];r||(r="geocoderUnknown"),t.onPositionError("We are unable to access your location. Please try again later.")}return{placeDetails:o,onClickGetCurrentLocation:function(){c((function(){window.navigator.geolocation.getCurrentPosition(l,u)}))}}}({apiKey:t.googleMapsApiKey,onPositionError:function(t){m(!0),U(t)}}),S=w.placeDetails,E=w.onClickGetCurrentLocation,x=window.navigator.geolocation?1:0,L=$({onSelected:function(t){if(g)if(t!==g.length){var e=g[t];e&&G(e)}else D()},itemCount:null!==(r=(null==g?void 0:g.length)+x)&&void 0!==r?r:0,hideOnBlur:t.hideOnBlur}),k=L.selectedIndex,j=L.onKeyDown,C=L.containerRef,O=L.hide,A=L.onBlur,T=L.onFocus,I=st(i.useState(),2),P=I[0],U=I[1];function F(e){var r,n,o;P&&U(void 0),h||m(!0),((null===(r=t.data)||void 0===r?void 0:r.longitude)||(null===(n=t.data)||void 0===n?void 0:n.latitude)||(null===(o=t.data)||void 0===o?void 0:o.schoolLocality))&&t.clearData(),p(e)}function _(e){t.setData({schoolLocality:e.locality,country:e.country,province:e.province,schoolPostCode:e.postalCode,longitude:e.longitude,latitude:e.latitude}),e.locality&&p(e.locality)}function G(t){h&&m(!1),b(t,l,_)}function D(e){var r;null==e||e.preventDefault(),m(!1),E(),null===(r=t.logUserAction)||void 0===r||r.call(t,{},{actionType:N.Vw.Click,descriptor:N.Yu.UseMyLocation})}i.useEffect((function(){_(S)}),[S]);var R,z=(null==g?void 0:g.length)&&!(null===(o=null===(n=t.data)||void 0===n?void 0:n.schoolLocality)||void 0===o?void 0:o.length),Y=window.navigator.geolocation&&!(null===(c=null===(a=t.data)||void 0===a?void 0:a.schoolLocality)||void 0===c?void 0:c.length),q=t.labelClassName||"d-block text-center mb-3 fw-normal ".concat("KL3Q_"),V="form-group position-relative";return"lg"===t.size&&(V+=" ".concat(ct)),i.createElement("div",{className:V},i.createElement("label",{className:q,htmlFor:"locality-input"},"ZIP code or city",t.required&&i.createElement("span",{className:"text-danger"},"*")),i.createElement(f.w,{type:"text",value:s,onChange:function(t){return F(t.currentTarget.value)},id:"locality-input",className:(R="form-control","lg"===t.size&&(R+=" form-control-lg"),!z||O?"".concat(R," ").concat(lt):"".concat(R," ").concat(nt)),ref:l,autoComplete:"off",placeholder:y||"Loading...",disabled:t.disabled||!y,autoFocus:null==t?void 0:t.autoFocus,onClickClear:function(){F(""),l.current.focus()},onKeyDown:j,onFocus:T,onBlur:A}),i.createElement("div",{className:"position-absolute z-1 w-100 ".concat(ot," ").concat(O?"d-none":"")},!!z&&i.createElement("div",{className:at,ref:C},i.createElement(pt,{predictions:g,getPlaceInfo:G,selectedIndex:k}),window.navigator.geolocation&&t.useGeoLocationApi&&i.createElement(et.L,{className:"".concat(it," px-1 ").concat(k-1===g.length?ut:""),onClick:D},i.createElement("div",{className:"btn btn-link info-link btn-with-icon bg-transparent py-0 pe-1"},i.createElement(rt,null),"Use my current location"))),Y&&!z&&t.useGeoLocationApi&&i.createElement("div",{className:"d-flex ".concat("dwmvC")},i.createElement("button",{onClick:D,className:"btn btn-link info-link bg-white btn-with-icon"},i.createElement(rt,null),"Use my current location")),!!P&&i.createElement("div",{className:"text-danger p-2"},P)))}var ht=r(99940);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 yt(t){var e="function"==typeof Map?new Map:void 0;return yt=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;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,r)}function r(){return function(t,e,r){if(vt())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var o=new(t.bind.apply(t,n));return r&>(o,r.prototype),o}(t,arguments,bt(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),gt(r,t)},yt(t)}function vt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(vt=function(){return!!t})()}function gt(t,e){return gt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},gt(t,e)}function bt(t){return bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},bt(t)}var wt=function(t){function e(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Error";return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=function(t,e,r){return e=bt(e),function(t,e){if(e&&("object"==mt(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)}(t,vt()?Reflect.construct(e,r||[],bt(t).constructor):e.apply(t,r))}(this,e,[n])).body=t,r}return 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&>(t,e)}(e,t),r=e,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(yt(Error));function St(t){return St="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},St(t)}function Et(){Et=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new A(n||[]);return o(i,"_invoke",{value:j(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",d="suspendedYield",h="executing",m="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(T([])));E&&E!==r&&n.call(E,i)&&(w=E);var x=b.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==St(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,r,n){var o=p;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=C(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function C(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,C(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(St(e)+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(k.prototype),u(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new k(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.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}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},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),O(r),y}},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;O(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}var xt=function(t,e,r,n){return new(r||(r=Promise))((function(o,a){function i(t){try{l(n.next(t))}catch(t){a(t)}}function c(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,c)}l((n=n.apply(t,e||[])).next())}))};function Lt(t){var e={method:ht.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,a=t.url;return e.method===ht.k.GET&&t.data?(r=a,n=t.data,o=r,Object.keys(n).forEach((function(t,e){n[t]&&(o+=0===e?"?":"&",o+="".concat(t,"=").concat(encodeURIComponent(n[t])))})),a=o):t.data&&(e=Object.assign(Object.assign({},e),{body:JSON.stringify(t.data)})),{init:e,url:a}}var kt={asyncFetch:function(t){return xt(this,void 0,void 0,Et().mark((function e(){var r,n,o;return Et().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Lt(t),e.next=3,fetch(r.url,r.init);case 3:if((n=e.sent).ok){e.next=9;break}return e.next=7,n.json();case 7:throw o=e.sent,new wt(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 xt(this,void 0,void 0,Et().mark((function e(){var r,n;return Et().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Lt(t),e.next=3,fetch(r.url,r.init);case 3:if((n=e.sent).ok){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,n.text();case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e)})))},fetch:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){var e=Lt(t);return fetch(e.url,e.init).then((function(t){if(204!==t.status)return t.json()})).then((function(e){return t.success&&t.success(e),e})).catch((function(e){return t.error&&t.error(),e})).finally((function(){t.always&&t.always()}))}))};function jt(t){return jt="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},jt(t)}function Ct(){Ct=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new A(n||[]);return o(i,"_invoke",{value:j(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",d="suspendedYield",h="executing",m="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(T([])));E&&E!==r&&n.call(E,i)&&(w=E);var x=b.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==jt(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,r,n){var o=p;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=C(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function C(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,C(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(jt(e)+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(k.prototype),u(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new k(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.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}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},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),O(r),y}},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;O(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}var Nt,Ot={search:function(t,e,r,n,o){var a={longitude:e.longitude,latitude:e.latitude};e.query&&(a.query=e.query),kt.fetch({url:t,data:a,success:r,error:n,always:o})},create:function(t,e){return r=this,n=void 0,o=void 0,a=Ct().mark((function r(){return Ct().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",kt.asyncFetch({url:t.createProspect,method:ht.k.POST,data:e}));case 1:case"end":return r.stop()}}),r)})),new(o||(o=Promise))((function(t,e){function i(t){try{l(a.next(t))}catch(t){e(t)}}function c(t){try{l(a.throw(t))}catch(t){e(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof o?r:new o((function(t){t(r)}))).then(i,c)}l((a=a.apply(r,n||[])).next())}));var r,n,o,a},getLookups:function(t,e){return kt.asyncFetch({url:t.prospectLookups(e)})}},At=r(97395),Tt=r(84789),It=function(t,e){if(t.productName!==Tt.X.Lite)return Promise.reject();var r={email:e.email};return kt.asyncFetch({url:t.userStatus,data:r})},Pt=function(t,e){var r={prospectId:e.prospectId,firstName:"Trial",surname:"User",email:e.email,userType:e.userType,accessPolicy:e.accessPolicy,appLink:null==e?void 0:e.appLink,attribution:null==e?void 0:e.attribution};return kt.asyncFetch({url:t.createTrial,method:ht.k.POST,data:r})},Ut=function(t,e,r){if(t.productName!==Tt.X.Lite)return Promise.reject();var n={email:r.email,appLink:null==r?void 0:r.appLink};return kt.asyncFetch({url:t.resendTrialEmail(e),method:ht.k.POST,data:n})};!function(t){t.TwentyOneDays="global_trial_21_v1",t.Freemium="global_freemium_v1"}(Nt||(Nt={}));var Ft,_t=function(t){return d.I.isCountryCodeUS(t)||d.I.isCountryCodeUK(t)?Nt.Freemium:Nt.TwentyOneDays},Gt=["Primary","Secondary","K12","Special","TAFE","University"],Dt=["Elementary","Middle School","High School","College","Other"],Mt={au:Gt,nz:Gt,uk:["Primary","Secondary","Primary & Secondary","Special","Sixth Form College","FE College","University","Other"],us:Dt};function Rt(t){return Rt="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},Rt(t)}function Kt(){Kt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new A(n||[]);return o(i,"_invoke",{value:j(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",d="suspendedYield",h="executing",m="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(T([])));E&&E!==r&&n.call(E,i)&&(w=E);var x=b.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==Rt(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,r,n){var o=p;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=C(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function C(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,C(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(Rt(e)+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(k.prototype),u(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new k(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.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}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},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),O(r),y}},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;O(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}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,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Yt(t,e);var r={}.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)?Yt(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 Yt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}!function(t){t.Published="Published",t.Draft="Draft"}(Ft||(Ft={}));var Bt=function(t,e,r,n){return new(r||(r=Promise))((function(o,a){function i(t){try{l(n.next(t))}catch(t){a(t)}}function c(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,c)}l((n=n.apply(t,e||[])).next())}))};function qt(t,e){return e?"".concat(t," ").concat(e):t}var Vt=function(t){return i.createElement("h1",{className:qt("text-center mb-2 h4",t.className)},t.children)},$t=function(t){return i.createElement("div",{className:qt("text-center text-sm px-2 px-lg-4",t.className)},t.children)},Jt=function(t){return i.createElement("p",{className:qt("",t.className)},t.children)};function Zt(t){return Zt="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},Zt(t)}function Ht(t,e,r){return(e=function(t){var e=function(t){if("object"!=Zt(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Zt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Zt(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Wt(t){var e=Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht({},n.Available,t.imageUrls.statusImages.available),n.Active,t.imageUrls.statusImages.active),n.Expired,t.imageUrls.statusImages.expired),n.NotRequired,t.imageUrls.statusImages.notRequired),n.Unavailable,t.imageUrls.statusImages.unavailable),n.Unsupported,t.imageUrls.statusImages.unsupported),n.UserAutoJoinAllowed,t.imageUrls.statusImages.notRequired),n.UserJoinApprovalRequired,t.imageUrls.statusImages.notRequired);return i.createElement("div",{className:"d-flex justify-content-center my-4 px-2 px-lg-4"},i.createElement("img",{src:e[t.trialStatus],className:"w-100 h-auto"}))}var Xt=r(69624);function Qt(t){var e=(null==t?void 0:t.previousStepIds)&&"find-school"===t.previousStepIds[t.previousStepIds.length-1],r=(null==t?void 0:t.schoolName)||"Your school";return i.createElement($t,{className:"mb-3"},e?i.createElement(i.Fragment,null,i.createElement(Vt,null,r,i.createElement("br",null),"already has ClickView 🎉"),i.createElement(Jt,{className:"mt-3"},"If your school has SSO ",i.createElement("a",{href:t.getSignInUrl({email:t.email,customerId:t.customerId}),className:"info-link"},"click here to sign in.")),i.createElement(Jt,null,"Otherwise please contact your school admin for access.")):i.createElement(i.Fragment,null,i.createElement(Vt,null,"Good News!"),i.createElement(Jt,null,"An account already exists for:",i.createElement("br",null)," ",i.createElement("strong",null,t.email)),i.createElement(Jt,null,i.createElement("a",{href:t.getSignInUrl({email:t.email}),className:"btn btn-dark btn-lg w-100"},"Sign into ClickView"))),i.createElement(Jt,null,"Need Help? ",i.createElement("a",{href:Xt.F.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link",target:"_blank"},"Contact our Help Centre.")))}function te(t){return te="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},te(t)}function ee(){ee=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new A(n||[]);return o(i,"_invoke",{value:j(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",d="suspendedYield",h="executing",m="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(T([])));E&&E!==r&&n.call(E,i)&&(w=E);var x=b.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==te(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,r,n){var o=p;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=C(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function C(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,C(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(te(e)+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(k.prototype),u(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new k(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.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}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},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),O(r),y}},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;O(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function re(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ne(t,e);var r={}.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)?ne(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 ne(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function oe(t){return oe="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},oe(t)}function ae(t,e,r){return(e=function(t){var e=function(t){if("object"!=oe(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=oe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==oe(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ie=ae(ae(ae(ae(ae(ae(ae(ae({},n.Available,(function(t){var e=re(i.useState(0),2),r=e[0],n=e[1],o=re(i.useState(!1),2),c=o[0],l=o[1];if(null==t?void 0:t.email)return i.createElement($t,null,i.createElement(Vt,null,"Check your inbox!"),i.createElement(Jt,null,"An email has been sent to ",i.createElement("strong",null,t.email),"."),!!t.userId&&i.createElement(i.Fragment,null,r<1?i.createElement("button",{onClick:function(e){return o=this,a=void 0,i=void 0,c=ee().mark((function o(){return ee().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return null==e||e.preventDefault(),o.prev=1,o.next=4,Ut(t.ajaxUrls,t.userId,{email:t.email,appLink:t.pageAppLinkString});case 4:n(r+1),o.next=10;break;case 7:o.prev=7,o.t0=o.catch(1),l(!0);case 10:t.logUserAction({},{actionType:N.Vw.Click,descriptor:N.Yu.ResendEmail});case 11:case"end":return o.stop()}}),o,null,[[1,7]])})),new(i||(i=Promise))((function(t,e){function r(t){try{l(c.next(t))}catch(t){e(t)}}function n(t){try{l(c.throw(t))}catch(t){e(t)}}function l(e){var o;e.done?t(e.value):(o=e.value,o instanceof i?o:new i((function(t){t(o)}))).then(r,n)}l((c=c.apply(o,a||[])).next())}));var o,a,i,c},className:"btn btn-outline-dark btn-lg mb-3"},"Resend verification email"):i.createElement(Jt,null,"✅ Email has been resent!"),i.createElement(Jt,null,"Wrong email? ",i.createElement("button",{onClick:function(e){null==e||e.preventDefault(),t.logUserAction({},{actionType:N.Vw.Click,descriptor:N.Yu.WrongEmail}),t.nextStep({step:"enter-email",userType:a.Staff})},className:"btn info-link p-0"},"Update email address")),c&&i.createElement(Jt,{className:"mb-0 text-danger"},"❌ There was a problem resending the email. Please try again later or contact our ",i.createElement("a",{href:Xt.F.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link"},"support"))))})),n.Active,Qt),n.Expired,(function(t){var e=Xt.F.getMarketingSalesContactForGeoLocation(t.geoLocation),r=(null==t?void 0:t.previousStepIds)&&"find-school"===t.previousStepIds[t.previousStepIds.length-1],n=(null==t?void 0:t.schoolName)||"Your school";return i.createElement($t,null,i.createElement(Vt,null,r?"".concat(n," trial has expired"):"Your trial has expired"),i.createElement(Jt,null,"Please contact our ",i.createElement("a",{href:e,className:"info-link",target:"_blank"},"ClickView Sales Team")))})),n.NotRequired,Qt),n.Unavailable,(function(t){var e=Xt.F.getMarketingSalesContactForGeoLocation(t.geoLocation);return i.createElement($t,null,i.createElement(Vt,null,"Your school no longer",i.createElement("br",null)," has access to ClickView"),i.createElement(Jt,null,"Please contact our ",i.createElement("a",{href:e,className:"info-link"},"ClickView Sales Team")," for more information."))})),n.Unsupported,(function(){return i.createElement($t,null,i.createElement(Vt,{className:"px-2 px-lg-4"},"ClickView isn't currently ",i.createElement("br",null)," available for your school"),i.createElement(Jt,null,"We're working hard to get ClickView ready for more people."))})),n.UserAutoJoinAllowed,Qt),n.UserJoinApprovalRequired,Qt);function ce(t){var e=ie[t.trialStatus];return i.createElement(e,Object.assign({},t))}var le="young-student",ue={"trial-status":function(t){return i.useEffect((function(){var e={actionType:N.Vw.Create,descriptor:N.Yu.DeadEnd,workflowPhase:N.eu.Discard};t.trialCreated&&(e.descriptor=N.Yu.TrialCreated,e.workflowPhase=N.eu.Complete),t.logUserAction({},e)}),[]),i.createElement(i.Fragment,null,i.createElement(Wt,{trialStatus:t.trialStatus,imageUrls:t.imageUrls}),i.createElement(ce,Object.assign({},t)))},"added-to-braze":function(t){return i.useEffect((function(){t.logUserAction({},{actionType:N.Vw.Create,descriptor:N.Yu.TrialRequested,workflowPhase:N.eu.Complete})}),[]),i.createElement(i.Fragment,null,i.createElement(Wt,{trialStatus:n.Available,imageUrls:t.imageUrls}),i.createElement($t,{className:"mb-3"},i.createElement(Vt,null,"Submitted!"),i.createElement(Jt,null,"Thank you for your interest in trialing ClickView. We will be in touch with you as soon as possible.")))},"young-student":function(t){var e=Xt.F.getFreeResourcesForGeoLocation(t.geoLocation);return i.useEffect((function(){c.SG.set(le,!0)}),[]),i.createElement(i.Fragment,null,i.createElement(Wt,{trialStatus:n.Active,imageUrls:t.imageUrls}),i.createElement($t,{className:"mb-3"},i.createElement(Vt,null,"Discover our free content"),i.createElement(Jt,null,"Click the button below to explore our videos"),i.createElement("a",{href:e,className:"btn btn-lg btn-dark w-100",target:"_blank"},"Start watching now")))},"requested-access":function(t){return i.createElement(i.Fragment,null,i.createElement(Wt,{trialStatus:n.Available,imageUrls:t.imageUrls}),i.createElement($t,{className:"mb-3"},i.createElement(Vt,null,"You've requested access!"),i.createElement(Jt,null,"We've sent a request to your ClickView admin. Once your account is ready, you'll receive an email notification with instructions on how to get started with ClickView.")))}};function se(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return fe(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?fe(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fe(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function pe(t,e,r){return"".concat(t.padStart(4,"0"),"-").concat(e.padStart(2,"0"),"-").concat(r.padStart(2,"0"))}var de=r(49036),he=r(53364),me=r(98027),ye=r(93824);function ve(t){return ve="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},ve(t)}function ge(){ge=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new A(n||[]);return o(i,"_invoke",{value:j(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",d="suspendedYield",h="executing",m="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(T([])));E&&E!==r&&n.call(E,i)&&(w=E);var x=b.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==ve(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,r,n){var o=p;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=C(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function C(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,C(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(ve(e)+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(k.prototype),u(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new k(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.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}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},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),O(r),y}},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;O(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}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,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return we(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?we(t,e):void 0}}(t,e)||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 we(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function Se(t,e,r){return(e=function(t){var e=function(t){if("object"!=ve(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=ve(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ve(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ee=new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/),xe=Se(Se(Se(Se({},ye.C.AU,"valerie.frizzle@school.edu.au"),ye.C.UK,"valerie.frizzle@school.gov.uk"),ye.C.US,"valerie.frizzle@school.gov"),ye.C.NZ,"valerie.frizzle@school.nz"),Le=Se(Se(Se(Se({},ye.C.AU,"/contact-us/support"),ye.C.US,"/contact-us/support"),ye.C.NZ,"/contact-us/"),ye.C.UK,"/contact-us/technical/");function ke(t){return xe[d.I.getCountryCode(t.countryCode)]||xe.us}var je=[n.Expired,n.NotRequired,n.Unavailable,n.Unsupported,n.Active];function Ce(t){var e;switch(null===(e=null==t?void 0:t.body)||void 0===e?void 0:e.type){case"user-type-not-supported":return"Students may not request to join schools.";case"join-request-already-pending":return"Your request is awaiting administrator approval.";case"join-request-already-denied":return"Your request has been denied by an administrator.";default:return"Something went wrong."}}var Ne=r(12238);function Oe(t){return Oe="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},Oe(t)}function Ae(){Ae=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new A(n||[]);return o(i,"_invoke",{value:j(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",d="suspendedYield",h="executing",m="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(T([])));E&&E!==r&&n.call(E,i)&&(w=E);var x=b.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==Oe(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,r,n){var o=p;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=C(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function C(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,C(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(Oe(e)+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(k.prototype),u(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new k(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.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}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},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),O(r),y}},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;O(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Te(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function Ie(t){return Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ie(t)}function Pe(){Pe=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new A(n||[]);return o(i,"_invoke",{value:j(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",d="suspendedYield",h="executing",m="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(T([])));E&&E!==r&&n.call(E,i)&&(w=E);var x=b.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==Ie(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,r,n){var o=p;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=C(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function C(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,C(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(Ie(e)+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(k.prototype),u(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new k(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.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}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},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),O(r),y}},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;O(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}var Ue=function(t,e,r,n){return new(r||(r=Promise))((function(o,a){function i(t){try{l(n.next(t))}catch(t){a(t)}}function c(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,c)}l((n=n.apply(t,e||[])).next())}))},Fe=r(80247);function _e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Ge(t,e);var r={}.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=Array(e);r<e;r++)n[r]=t[r];return n}function De(t){var e=t.filteredSchoolsList,r=t.getSchoolName,n=t.onSchoolSuggestionClick,o=t.selectedIndex;return i.createElement(i.Fragment,null,e.map((function(t,e){return i.createElement(et.L,{className:"".concat(it," ").concat(o-1===e?ut:""),key:t.id,onKeyDown:function(e){return"Enter"===e.key&&n(t)},onMouseDown:function(){return n(t)},onClick:function(){return n(t)}},r(t)," ",i.createElement("br",null),i.createElement("small",{className:"text-secondary"},function(t){var e=[];return t.city&&e.push(t.city.toLowerCase().split(" ").map((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})).join(" ")),t.province&&e.push(t.province),t.postCode&&e.push(t.postCode),e.join(" ")}(t)))})))}function Me(t){return i.createElement("div",{className:"info-link ".concat(it," ").concat("XXSnS"," ").concat(t.selected?ut:""),onKeyDown:function(e){return"Enter"===e.key&&t.handleNoSuggestion()},onMouseDown:t.handleNoSuggestion,onClick:t.handleNoSuggestion},"Can't find your school?")}function Re(t){var e,r,n=i.useRef(),o=_e(i.useState(!0),2),a=o[0],c=o[1],l=_e(i.useState(t.data.schoolName&&t.data.schoolPostCode?t.data.schoolName+", "+t.data.schoolPostCode:t.data.schoolName?t.data.schoolName:""),2),u=l[0],s=l[1],p=_e(i.useState(),2),d=p[0],h=p[1],m=(0,Q.N)(u,250),y=$({onSelected:function(e){if(d||e)if(e!==d.length){var r=d[e];r&&O(r)}else t.onClickNoSuggestions(u)},itemCount:null!==(e=(null==d?void 0:d.length)+1)&&void 0!==e?e:0,hideOnBlur:t.hideOnBlur}),v=y.selectedIndex,g=y.onKeyDown,b=y.containerRef,w=y.hide,S=y.onBlur,E=y.onFocus,x=!!(null===(r=t.data)||void 0===r?void 0:r.prospectId),L=a&&!x,k=!a&&!x&&(null==d?void 0:d.length)<5,j=(null==d?void 0:d.length)&&!x;function C(e){(t.data.schoolName||t.data.prospectId)&&t.clearData(),e!==u&&s(e)}function N(e){if(t.data.latitude||t.data.longitude){c(!0);var r={latitude:t.data.latitude,longitude:t.data.longitude};e&&e.length&&(r.query=e),Ot.search(t.searchUrl,r,(function(t){return h(t)}),null,(function(){return c(!1)}))}else c(!1)}function O(e){s(A(e)),t.setData({prospectId:e.id,schoolName:e.name,schoolPostCode:e.postCode,schoolType:e.prospectType,province:e.province,city:e.city,country:e.countryCode})}function A(t){return t.name}i.useEffect((function(){x||(m.length?!x&&m.length>1&&m===u&&N(m):N())}),[m,x]);var T=(j||L||k)&&!t.disabled&&!w,I="form-control ".concat(T?nt:lt),P="form-group position-relative";return"lg"===t.size&&(I+=" form-control-lg",P+=" ".concat(ct)),i.createElement("div",{className:P},i.createElement("label",{className:t.labelClassName,htmlFor:"school-input"},"School:",t.required&&i.createElement("span",{className:"text-danger"},"*")),i.createElement(f.w,{id:"school-input",value:u,onChange:function(t){return C(t.currentTarget.value)},ref:n,className:I,type:"text",autoComplete:"off",placeholder:t.placeholder||"Select your school below",disabled:t.disabled,autoFocus:!0,onClickClear:function(){C(""),n.current.focus()},onKeyDown:g,onFocus:E,onBlur:S}),i.createElement("div",{className:"position-absolute z-1 w-100 ".concat(ot," ").concat(w?"d-none":"")},i.createElement("div",{className:"".concat(at," ").concat(T?"":"d-none"),ref:b},j?i.createElement(De,{filteredSchoolsList:d,onSchoolSuggestionClick:O,getSchoolName:A,selectedIndex:v}):L&&i.createElement("div",{className:"".concat("W7rH_"," py-4 d-flex justify-content-center")},i.createElement(Fe.Z,{animation:"border"})),!L&&k&&i.createElement(Me,{selected:v===d.length+1,handleNoSuggestion:function(){t.onClickNoSuggestions(u)}}))))}function Ke(t){return Ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ke(t)}function ze(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Ye(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ye(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ye(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function Be(t){return i.createElement(i.Fragment,null,i.createElement(et.L,{className:"\n d-flex\n flex-column\n justify-content-between\n h-100\n p-3\n border\n rounded\n rounded-3\n mx-auto\n d-sm-block\n d-none\n ".concat("R8ZPi"," ").concat(t.selected?"SNEmW":""),onClick:function(){return t.onClick(t.type)}},i.createElement("img",{src:t.imageSrc,className:"rounded-top mx-auto pb-2"}),i.createElement("div",{className:"py-2"},i.createElement("span",{className:"h4"},t.buttonText))),i.createElement(et.L,{className:"btn btn-lg btn-outline-dark w-100 d-sm-none d-block mx-auto ".concat("BSfO7"),onClick:function(){return t.onClick(t.type)}},t.buttonText))}var qe={"select-type":function(t){function e(e){t.logUserAction({userType:e},{actionType:N.Vw.Click,workflowPhase:N.eu.Next,descriptor:e===a.Staff?N.Yu.Educator:N.Yu.Student}),e!==a.Staff?t.nextStep({step:"enter-age",userType:e}):t.nextStep({step:"enter-email",userType:e})}return i.createElement("div",{className:"text-center"},i.createElement("h1",{className:"h4"},"Access educational videos at your fingertips"),i.createElement("p",{className:"mb-3"},"Let's get you set up so you can access ClickView."),i.createElement("div",{className:"row"},i.createElement("div",{className:"col-lg-6 mb-3"},i.createElement(Be,{type:a.Staff,buttonText:"I'm an educator",imageSrc:t.imageUrls.educator,onClick:e,selected:t.userType===a.Staff})),i.createElement("div",{className:"col-lg-6 mb-3"},i.createElement(Be,{type:a.Learner,buttonText:"I'm a student",imageSrc:t.imageUrls.student,onClick:e,selected:t.userType===a.Learner}))))},"enter-email":function(t){var e,r,n,c,l=be(i.useState(!1),2),u=l[0],s=l[1],p=be(i.useState((null==t?void 0:t.email)||""),2),y=p[0],v=p[1],g=be(i.useState(),2),b=g[0],w=g[1],S=(e=t.geoLocation,r=Xt.F.getMarketingUrlForGeoLocation(e),n=d.I.getCountryCode(null==e?void 0:e.countryCode),c=Le[n],"".concat(r).concat(c));function E(e){null==e||e.preventDefault(),function(){var e,r,n,a;e=this,r=void 0,n=void 0,a=ge().mark((function e(){var r;return ge().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(y.length?Ee.test(y)||(w("Please use your school email address."),0):(w("Please enter your school email address."),0)){e.next=2;break}return e.abrupt("return");case 2:return s(!0),w(""),e.prev=4,e.next=7,It(t.ajaxUrls,{email:y});case 7:r=e.sent,e.next=14;break;case 10:return e.prev=10,e.t0=e.catch(4),w("Something went wrong! Please try again later."),e.abrupt("return");case 14:if(s(!1),r.status!==o.InvalidEmail){e.next=18;break}return w("Please use your school email address."),e.abrupt("return");case 18:if(t.logUserAction({},{actionType:N.Vw.Click,workflowPhase:N.eu.Next,descriptor:N.Yu.EnterEmail}),!je.includes(r.status)){e.next=22;break}return t.complete({completionStep:"trial-status",email:y,trialStatus:r.status,trialCreated:!1}),e.abrupt("return");case 22:t.nextStep({step:"find-school",email:y});case 23:case"end":return e.stop()}}),e,null,[[4,10]])})),new(n||(n=Promise))((function(t,o){function i(t){try{l(a.next(t))}catch(t){o(t)}}function c(t){try{l(a.throw(t))}catch(t){o(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(t){t(r)}))).then(i,c)}l((a=a.apply(e,r||[])).next())}))}()}return i.createElement(i.Fragment,null,i.createElement("div",{className:"text-center"},i.createElement("h1",{className:"h4"},"Let's set up your account"),i.createElement("p",null,"Enter your school email address")),i.createElement("form",{onSubmit:E,noValidate:!0},i.createElement("div",{className:"form-group mb-3"},i.createElement(f.w,{value:y,onChange:function(t){t.preventDefault(),v(t.target.value),w("")},name:"email-input",id:"email-input",type:"email",className:"form-control form-control-lg ".concat(b?"is-invalid":""),placeholder:ke(t.geoLocation),autoComplete:"false",autoCorrect:"false",autoFocus:!0,onClickClear:function(){return v("")},"aria-errormessage":"email-inputError"}),b&&i.createElement(i.Fragment,null,i.createElement(h.A,{name:"error-input"},b),i.createElement("small",null,"Having an issue with your email?",i.createElement("a",{href:S,className:"info-link ps-1",target:"_blank",onClick:function(){t.logUserAction({},{actionType:N.Vw.Click,descriptor:N.Yu.ContactUs})}},"Contact our team")))),i.createElement(m.m,{showSpinner:u,variant:"dark",className:"btn-lg mb-3 w-100",disabled:u,onClick:E},"Continue")),t.userType===a.Staff&&i.createElement(he.b,{idps:t.globalIdps,className:"mt-n3",attribution:(0,me.w)()}),i.createElement("div",{className:"text-center"},i.createElement(de.f,{link:t.getSignInUrl({email:y}),onClick:function(){t.logUserAction({},{actionType:N.Vw.Click,descriptor:N.Yu.SignIn})}})))},"find-school":function(t){var e,r,o=t.email,c=t.userType,l=ze(i.useState({schoolLocality:t.schoolLocality,country:t.country,longitude:t.longitude,latitude:t.latitude,city:t.city,province:t.province,prospectId:t.prospectId,schoolName:t.schoolName,schoolType:t.schoolType,schoolPostCode:t.schoolPostCode}),2),u=l[0],s=l[1],f=ze(i.useState(t.trialStatus),2),p=f[0],d=f[1],h=ze(i.useState(),2),y=h[0],v=h[1],g=ze(i.useState(!1),2),w=g[0],S=g[1],E=ze(i.useState(!1),2),x=E[0],L=E[1],k=ze(i.useState(!1),2),j=k[0],C=k[1],T=function(t){var e=t.loading,r=t.canSubmitForm,o=t.setSubmissionError,i=t.prospectStatus,c=t.userType,l=t.logStepEvent,u=t.logUserAction,s=t.nextStep,f=t.data,p=t.productName,d=t.ajaxUrls,h=t.complete,m=t.setLoadingState,y=t.email,v=t.pageAppLinkString,g=t.setProperty,w=t.brazeClient;function S(){return Ue(this,void 0,void 0,Pe().mark((function t(){return Pe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e=d,r={prospectId:f.prospectId,email:y},e.productName!==Tt.X.Lite?Promise.reject():kt.asyncFetch({url:e.autoJoin,method:ht.k.POST,data:r});case 3:u({},{actionType:N.Vw.Click,descriptor:N.Yu.AutoJoin}),h(Object.assign({completionStep:"trial-status",trialCreated:!0,trialStatus:n.Available},f)),t.next=12;break;case 7:return t.prev=7,t.t0=t.catch(0),o("Something went wrong! Please try again later."),m(!1),t.abrupt("return");case 12:case"end":return t.stop()}var e,r}),t,null,[[0,7]])})))}function E(){var t;return Ue(this,void 0,void 0,Pe().mark((function e(){var r,o;return Pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=void 0,!(null==f?void 0:f.prospectId)||i!==n.NotRequired){e.next=6;break}return e.next=4,Ot.getLookups(d,f.prospectId);case 4:o=e.sent,r=null===(t=o.find((function(t){return t.type===Ne.C.MasterId})))||void 0===t?void 0:t.externalId;case 6:h(Object.assign({completionStep:"trial-status",trialStatus:i,trialCreated:!1,customerId:r},f)),l();case 8:case"end":return e.stop()}}),e)})))}function x(){return Ue(this,void 0,void 0,Pe().mark((function t(){var e,r;return Pe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(c===a.Staff){t.next=2;break}return t.abrupt("return");case 2:e={email:y,custom:{accountName:null==f?void 0:f.schoolName,accountAddress:{countryCode:null==f?void 0:f.country,province:b.F.parseProvince(f.province)},orgSubType:b.F.getSchoolType(null==f?void 0:f.schoolType),syncToCrm:!0},event:{accountCountry:null==f?void 0:f.country,accountPostCode:null==f?void 0:f.schoolPostCode,accountState:b.F.parseProvince(f.province)}},r={form_type:"trial-sign-up",prospect_id:null==f?void 0:f.prospectId},w.setUserInit(e),w.event.logForm({eventType:b.F.getProductFormEventType(),additionalData:r});case 6:case"end":return t.stop()}}),t)})))}function L(){var t;return Ue(this,void 0,void 0,Pe().mark((function e(){var r;return Pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(!0),e.prev=1,e.next=4,Pt(d,{userType:c,email:y,prospectId:null==f?void 0:f.prospectId,appLink:v,accessPolicy:_t(f.country),attribution:Object.assign(Object.assign({},O.N.getDecodedAttributionData()),{utms:A.F.getUtmParameters()})});case 4:r=e.sent,e.next=12;break;case 7:return e.prev=7,e.t0=e.catch(1),o("Something went wrong! Please try again later."),m(!1),e.abrupt("return");case 12:i===n.UserAutoJoinAllowed&&u({},{actionType:N.Vw.Click,descriptor:N.Yu.AutoJoin}),g("userId",r.id),h(Object.assign({completionStep:"trial-status",userId:r.id,trialCreated:!0,trialStatus:n.Available,customerId:null===(t=r.data)||void 0===t?void 0:t.customerId},f)),x(),l();case 17:case"end":return e.stop()}}),e,null,[[1,7]])})))}return function(){return Ue(this,void 0,void 0,Pe().mark((function t(){return Pe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=2;break}return t.abrupt("return");case 2:if(r()){t.next=5;break}return o("Something went wrong! Please try again later."),t.abrupt("return");case 5:if(c!==a.Staff){t.next=14;break}if(i!==n.Unsupported){t.next=8;break}return t.abrupt("return",(s(Object.assign({step:"add-to-braze",trialStatus:i},f)),void l()));case 8:if(i!==n.UserJoinApprovalRequired){t.next=10;break}return t.abrupt("return",(s(Object.assign({step:"request-access"},f)),void l()));case 10:if(i!==n.UserAutoJoinAllowed||p!==Tt.X.Lite){t.next=14;break}return t.next=13,S();case 13:case 17:case 20:return t.abrupt("return",t.sent);case 14:if(i===n.Active||i===n.Available||i===n.UserAutoJoinAllowed&&p===Tt.X.Auth){t.next=18;break}return t.next=17,E();case 18:return t.next=20,L();case 21:case"end":return t.stop()}}),t)})))}}(Object.assign(Object.assign({},t),{prospectStatus:p,loading:w,data:u,canSubmitForm:I,setSubmissionError:v,logStepEvent:function(){var e={actionType:N.Vw.Click,descriptor:N.Yu.FindSchool,workflowPhase:N.eu.Next};t.logUserAction(u||{},e)},setLoadingState:function(t){L(t),C(t),S(t)},setProperty:P}));function I(){if(!u||!o||!c)return!1;var t=u.prospectId;return!!(o&&c&&t)}function P(e,r){"prospectId"===e&&r&&(S(!0),function(t,e,r,n,o){var a=t.prospectStatus(e.prospectId);a=At._.urlBuilder(a,{email:e.email}),kt.fetch({url:a,success:r,error:n,always:o})}(t.ajaxUrls,{prospectId:r.toString(),email:t.email},(function(t){d(t.status)}),(function(){console.log("error")}),(function(){S(!1)}))),s((function(t){return Object.assign(Object.assign({},t),(n={},a=r,(o=function(t){var e=function(t){if("object"!=Ke(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Ke(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ke(e)?e:e+""}(o=e))in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a,n));var n,o,a}))}function U(){P("prospectId",void 0),P("schoolName",""),P("schoolPostCode",void 0),v(void 0)}return i.createElement(i.Fragment,null,i.createElement("div",{className:"text-center"},i.createElement("h1",{className:"h4"},"Next, let's find your school"),i.createElement("p",null,"au"===(null==(r=null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode)?void 0:r.toLowerCase())?"Enter your school postcode or suburb":"us"===(null==r?void 0:r.toLowerCase())?"Enter your school ZIP code or city":"Enter your school postcode or city")),i.createElement(dt,{data:u,setData:function(t){var e=t.longitude,r=t.latitude,n=t.schoolLocality,o=t.country,a=t.city,i=t.province;e&&P("longitude",e),r&&P("latitude",r),o&&P("country",o),a&&P("city",a),i&&P("province",i),n&&P("schoolLocality",n)},clearData:function(){P("schoolLocality",void 0),P("longitude",void 0),P("latitude",void 0),P("city",void 0),P("province",void 0),P("country",void 0),U()},disabled:x,geoLocation:t.geoLocation,labelClassName:"d-none",logUserAction:t.logUserAction,googleMapsApiKey:t.googleMapsApiKey,autoFocus:!0,size:"lg",useGeoLocationApi:!0}),!!(u&&u.schoolLocality&&u.longitude&&u.latitude)&&i.createElement(Re,{data:u,setData:function(t){P("prospectId",t.prospectId),P("schoolName",t.schoolName),P("schoolPostCode",t.schoolPostCode),P("schoolType",t.schoolType),P("province",t.province),P("city",t.city),P("country",t.country)},clearData:U,disabled:j,searchUrl:t.ajaxUrls.searchProspect,onClickNoSuggestions:function(e){t.nextStep({step:"cant-find-school",prospectId:u.prospectId,schoolName:e,schoolLocality:u.schoolLocality,longitude:u.longitude,latitude:u.latitude,country:u.country,city:u.city,province:u.province}),t.logUserAction({},{actionType:N.Vw.Click,descriptor:N.Yu.CantFindSchool,workflowPhase:N.eu.Next})},size:"lg",labelClassName:"d-none"}),y&&i.createElement("p",{className:"text-danger mb-2"},y),I()&&i.createElement(m.m,{className:"btn-lg w-100",variant:"dark",onClick:T,showSpinner:x||j||w,disabled:x||j||w},"Get started"))},"cant-find-school":function(t){var e,r,o,c=zt(i.useState({prospectId:t.prospectId,schoolName:t.schoolName,schoolType:t.schoolType,schoolLocality:t.schoolLocality,country:t.country,province:t.province,city:t.city,longitude:t.longitude,latitude:t.latitude}),2),l=c[0],u=c[1],s=zt(i.useState(),2),f=s[0],p=s[1],h=zt(i.useState(!1),2),y=h[0],v=h[1],g=(r=l.country||(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode),o=d.I.getCountryCode(r),Mt[o]||Dt);function w(){var t=l.schoolName,e=l.schoolType,r=l.country;return!!(t&&e&&r)}function S(t,e){u((function(r){return Object.assign(Object.assign({},r),(n={},a=e,(o=function(t){var e=function(t){if("object"!=Rt(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Rt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Rt(e)?e:e+""}(o=t))in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a,n));var n,o,a}))}function E(e){return Bt(this,void 0,void 0,Kt().mark((function r(){var n,o;return Kt().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n={email:t.email,custom:{accountName:null==l?void 0:l.schoolName,accountAddress:{countryCode:null==l?void 0:l.country,province:b.F.parseProvince(l.province)},orgSubType:b.F.getSchoolType(null==l?void 0:l.schoolType),syncToCrm:!0},event:{accountCountry:null==l?void 0:l.country,accountPostCode:null==l?void 0:l.schoolPostCode,accountState:b.F.parseProvince(l.province)}},o={form_type:"trial-sign-up",prospect_id:null==l?void 0:l.prospectId},t.brazeClient.setUserInit(n),t.brazeClient.event.logForm({eventType:b.F.getProductFormEventType(),additionalData:o,callback:e});case 4:case"end":return r.stop()}}),r)})))}return i.createElement(i.Fragment,null,i.createElement("div",{className:"text-center"},i.createElement("h1",{className:"h4"},"Tell us more about your school"),i.createElement("p",null,"Please enter your school details.")),i.createElement("div",{className:"form-group"},i.createElement("label",{className:"d-block",htmlFor:"school-name-input"},"Name of school"),i.createElement("input",{type:"text",value:(null==l?void 0:l.schoolName)||"",onChange:function(t){S("schoolName",t.target.value)},id:"school-name-input",className:"form-control form-control-lg",autoComplete:"off",placeholder:"Enter name of school",autoFocus:!0})),i.createElement("div",{className:"form-group"},i.createElement("label",{className:"d-block",htmlFor:"school-type-select"},"Type of school"),i.createElement("select",{id:"school-type-select",className:"form-select form-select-lg ".concat(l.schoolType?"":"text-secondary"),autoComplete:"off",value:l.schoolType||"none",onChange:function(t){S("schoolType",t.target.value)}},i.createElement("option",{value:"none",className:"text-secondary",disabled:!0},"Select type of school"),g.map((function(t){return i.createElement("option",{value:t,key:t,className:"text-dark"},t)})))),i.createElement(dt,{data:l,setData:function(t){var e=t.longitude,r=t.latitude,n=t.schoolLocality,o=t.country,a=t.city,i=t.province;e&&S("longitude",e),r&&S("latitude",r),o&&S("country",o),a&&S("city",a),i&&S("province",i),n&&S("schoolLocality",n)},clearData:function(){S("schoolLocality",void 0),S("longitude",void 0),S("latitude",void 0),S("city",void 0),S("province",void 0),S("country",void 0),p("")},disabled:!1,labelClassName:"d-block",geoLocation:t.geoLocation,logUserAction:t.logUserAction,googleMapsApiKey:t.googleMapsApiKey,autoFocus:!1,size:"lg",useGeoLocationApi:!0}),f&&i.createElement("div",{className:"text-danger mb-3"},f),w()&&i.createElement(m.m,{className:"btn-lg w-100",variant:"dark",onClick:function(e){var r;return Bt(this,void 0,void 0,Kt().mark((function o(){var i,c,u,s,f;return Kt().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(e.preventDefault(),w()){o.next=3;break}return o.abrupt("return");case 3:return t.logUserAction(l,{actionType:N.Vw.Click,workflowPhase:N.eu.Next,descriptor:N.Yu.CantFindSchool}),v(!0),o.prev=5,o.next=8,Ot.create(t.ajaxUrls,{name:l.schoolName,status:Ft.Draft,countryCode:l.country,prospectType:l.schoolType,city:l.city,postCode:l.schoolPostCode,province:b.F.parseProvince(l.province)});case 8:if((i=o.sent).id){o.next=13;break}return v(!1),p("Error. Something went wrong."),o.abrupt("return");case 13:o.next=20;break;case 15:return o.prev=15,o.t0=o.catch(5),v(!1),p("Error. Something went wrong."),o.abrupt("return");case 20:return o.prev=20,c={prospectId:i.id,email:t.email,userType:t.userType,accessPolicy:_t(l.country),appLink:t.pageAppLinkString,attribution:Object.assign(Object.assign({},O.N.getDecodedAttributionData()),{utms:A.F.getUtmParameters()})},o.next=24,Pt(t.ajaxUrls,c);case 24:if(u=o.sent,s={completionStep:"trial-status",email:t.email,userId:u.id,prospectId:i.id,schoolName:l.schoolName,schoolLocality:l.schoolLocality,country:l.country,schoolType:l.schoolType,city:l.city,schoolPostCode:l.schoolPostCode,latitude:l.latitude,longitude:l.longitude,province:l.province,trialStatus:n.Available,trialCreated:!0,customerId:null===(r=u.data)||void 0===r?void 0:r.customerId},(null==t?void 0:t.userType)!==a.Staff){o.next=30;break}return o.next=29,E((function(e){e||console.error("Failed to submit create trial data to braze."),t.complete(s)}));case 29:return o.abrupt("return");case 30:t.complete(s),o.next=44;break;case 33:if(o.prev=33,o.t1=o.catch(20),o.t1.body){o.next=39;break}return v(!1),p("Error. Something went wrong."),o.abrupt("return");case 39:if(400!==(f=o.t1).body.status||"trial-not-available"!==f.body.type){o.next=43;break}return t.nextStep(Object.assign(Object.assign({step:"add-to-braze"},l),{prospectId:i.id,trialStatus:n.Unavailable})),o.abrupt("return");case 43:console.error(o.t1);case 44:case"end":return o.stop()}}),o,null,[[5,15],[20,33]])})))},showSpinner:y,disabled:y},"Get started"))},completed:function(t){var e=ue[t.completionStep];return i.createElement("div",{className:"d-flex justify-content-center flex-column mx-auto px-2"},i.createElement(e,Object.assign({},t)))},"add-to-braze":function(t){var e,r=E(i.useState(!1),2),o=r[0],c=r[1],l=E(i.useState({}),2),f=l[0],p=l[1];function d(t){p(t?{}:Object.assign(Object.assign({},f),{submission:"Something went wrong! Please try again later."})),c(!1)}function h(){t.complete({completionStep:"added-to-braze",trialCreated:!1,trialStatus:null})}return i.useEffect((function(){t.userType===a.Learner&&t.complete({completionStep:"trial-status",trialCreated:!1,trialStatus:n.Unsupported})}),[]),i.createElement(g,{errors:f,loading:o,geoLocation:t.geoLocation,country:t.country||(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode),logUserAction:t.logUserAction,handleSubmitForm:function(e){var r,n;(function(t){var e=t.fullname,r=t.jobTitle,n=t.phone,o=C(e),a=o.firstName,i=o.surname,c={};return a&&i||(c.fullname="Please enter your full name."),(k.test(a)||k.test(i))&&(c.fullname="Please enter your full name."),e.length>L&&(c.fullname="Full name cannot exceed max length of ".concat(L," characters.")),(null==r?void 0:r.length)||(c.jobTitle="Please enter your job title."),k.test(r)&&(c.jobTitle="Please enter a valid job title."),r.length>L&&(c.jobTitle="Job Title cannot exceed max length of ".concat(L," characters.")),(null==n?void 0:n.length)||(c.phone="Please enter your phone number."),!k.test(n)&&j.test(n)||(c.phone="Please enter a valid phone number."),p(c),!Object.keys(c).length})(e)&&((null===(r=e.jobTitle)||void 0===r?void 0:r.toLowerCase().includes("student"))||(null===(n=e.jobTitle)||void 0===n?void 0:n.toLowerCase().includes("parent"))?h():function(e){var r,n,i,l;r=this,n=void 0,i=void 0,l=S().mark((function r(){var n,i,l,m,y;return S().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o){r.next=2;break}return r.abrupt("return");case 2:if(t.userType!==a.Learner){r.next=5;break}return p(Object.assign(Object.assign({},f),{submission:"Something went wrong! Please try again later."})),r.abrupt("return");case 5:t.logUserAction({},{actionType:s.Vw.Click,workflowPhase:s.eu.Next,descriptor:s.Yu.AddToBraze}),c(!0),n=C(e.fullname),i=n.firstName,l=n.surname;try{m={email:t.email,firstName:i,lastName:l,phone:e.phone,custom:{orgSubType:b.F.getSchoolType(null==t?void 0:t.schoolType),accountName:null==t?void 0:t.schoolName,jobTitle:e.jobTitle,accountAddress:{countryCode:null==t?void 0:t.country,province:b.F.parseProvince((null==t?void 0:t.province)||"")},syncToCrm:!0,source:b.F.getSource()},event:{accountCountry:null==t?void 0:t.country,accountPostCode:null==t?void 0:t.schoolPostCode,eventTopic:b.F.getEventTopic()}},y={prospect_id:null==t?void 0:t.prospectId},t.brazeClient.setUserInit(m),t.brazeClient.event.logForm({eventType:u.ProductFormEvent.ProductTrailRequested,additionalData:y,callback:d})}catch(t){p(Object.assign(Object.assign({},f),{submission:"Something went wrong! Please try again later."}))}Object.keys(f).length||h();case 10:case"end":return r.stop()}}),r)})),new(i||(i=Promise))((function(t,e){function o(t){try{c(l.next(t))}catch(t){e(t)}}function a(t){try{c(l.throw(t))}catch(t){e(t)}}function c(e){var r;e.done?t(e.value):(r=e.value,r instanceof i?r:new i((function(t){t(r)}))).then(o,a)}c((l=l.apply(r,n||[])).next())}))}(e))},removeErrorForKey:function(t){if(Object.keys(f).length&&f[t]){var e=Object.assign({},f);delete e[t],p(e)}},isTertiary:b.F.isTertiarySchool(t.schoolType)})},"enter-age":function(t){var e=se(i.useState(""),2),r=e[0],n=e[1],o=se(i.useState(""),2),a=o[0],c=o[1],l=se(i.useState(""),2),u=l[0],s=l[1],f=se(i.useState(null),2),p=f[0],m=f[1];var y=(new Date).getFullYear(),v="mx-2 d-inline-block text-start",g="form-control form-control-lg ".concat(p?"is-invalid":""),b="order-0",w="order-3",S=d.I.isCountryCodeUS(t.geoLocation.countryCode);return S&&(b="order-3",w="order-0"),i.createElement("form",{className:"text-center",onSubmit:function(e){if(e.preventDefault(),r&&a&&u?function(t,e,r){var n=new Date(pe(t,e,r));return!isNaN(+n)}(u,a,r)?+u>y?(m("Please enter a date in the past"),0):!(+u<y-120&&(m("Please enter a realistic date of birth"),1)):(m("Please enter a valid date"),0):(m("Please enter your date of birth"),0)){var n=new Date(pe(u,a,r)),o=y-13,i=new Date;i.setFullYear(o),n>i?t.complete({completionStep:"young-student",trialCreated:!1,trialStatus:null}):t.nextStep({step:"enter-email",userType:t.userType})}},noValidate:!0},i.createElement("h1",{className:"h4"},"Tell us a little about yourself"),i.createElement("p",null,"Please enter your date of birth"),i.createElement("div",{className:"my-4"},i.createElement("fieldset",{className:"d-flex justify-content-center","aria-describedby":"dateOfBirthError"},i.createElement("div",{className:"".concat(v," ").concat(b)},i.createElement("label",{className:"mb-0",htmlFor:"day"},"Day"),i.createElement("input",{id:"day",type:"number",className:"".concat(g," ").concat("e0Dbj"),min:"1",max:"31",placeholder:"DD",value:r,onChange:function(t){n(t.target.value),m(null)},autoFocus:!S,tabIndex:S?2:1})),i.createElement("span",{className:"h1 fw-normal mt-3 mb-0 order-1 ".concat(p?"text-danger":"")},"/"),i.createElement("div",{className:"".concat(v," ").concat(w)},i.createElement("label",{className:"mb-0",htmlFor:"month"},"Month"),i.createElement("input",{id:"month",type:"number",className:"".concat(g," ").concat("zLcQr"),min:"1",max:"12",placeholder:"MM",value:a,onChange:function(t){c(t.target.value),m(null)},autoFocus:S,tabIndex:S?1:2})),i.createElement("span",{className:"h1 fw-normal mt-3 mb-0 order-4 ".concat(p?"text-danger":"")},"/"),i.createElement("div",{className:"".concat(v," order-5")},i.createElement("label",{className:"mb-0",htmlFor:"year"},"Year"),i.createElement("input",{id:"year",name:"year",type:"number",className:"".concat(g," ").concat("XiXPP"),min:y-120,max:y,placeholder:"YYYY",value:u,onChange:function(t){s(t.target.value),m(null)},tabIndex:3}))),!!p&&i.createElement(h.A,{name:"dateofBirth"},p)),i.createElement("button",{type:"submit",className:"btn btn-lg btn-dark w-100"},"Continue"))},"request-access":function(t){var e,r,o=(e=i.useState(null),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return Te(t,e);var r={}.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)?Te(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=o[0],c=o[1];return i.createElement(i.Fragment,null,i.createElement(Wt,{trialStatus:n.UserJoinApprovalRequired,imageUrls:t.imageUrls}),i.createElement($t,{className:"mb-3"},i.createElement(Vt,null,t.schoolName,i.createElement("br",null),"already has ClickView 🎉")),i.createElement("button",{className:"btn btn-lg btn-dark w-100 mb-3",onClick:function(){var e,r,o,a,i;return r=this,o=void 0,a=void 0,i=Ae().mark((function r(){var o,a;return Ae().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,Ot.getLookups(t.ajaxUrls,t.prospectId);case 3:if(o=r.sent,a=null===(e=o.find((function(t){return t.type===Ne.C.MasterId})))||void 0===e?void 0:e.externalId){r.next=8;break}return c("Something went wrong."),r.abrupt("return");case 8:return r.next=10,i=t.ajaxUrls,l={customerId:a,email:t.email},u=void 0,s=void 0,u=i.productName===Tt.X.Auth?i.joinRequest:i.joinRequest(l.customerId),s=i.productName===Tt.X.Auth?l:{email:l.email},kt.asyncFetch({url:u,method:ht.k.POST,data:s});case 10:t.logUserAction({},{actionType:N.Vw.Click,descriptor:N.Yu.RequestAccess}),t.complete({completionStep:"requested-access",trialCreated:!1,trialStatus:n.UserJoinApprovalRequired}),r.next=17;break;case 14:r.prev=14,r.t0=r.catch(0),c(Ce(r.t0));case 17:case"end":return r.stop()}var i,l,u,s}),r,null,[[0,14]])})),new(a||(a=Promise))((function(t,e){function n(t){try{l(i.next(t))}catch(t){e(t)}}function c(t){try{l(i.throw(t))}catch(t){e(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof a?r:new a((function(t){t(r)}))).then(n,c)}l((i=i.apply(r,o||[])).next())}))}},"Request access"),a&&i.createElement("p",{className:"text-danger text-center mb-2"},a),i.createElement(Jt,{className:"text-center"},"Need Help? ",i.createElement("a",{href:Xt.F.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link",target:"_blank"},"Contact our Help Centre.")))}};function Ve(t){var e=t.state,r=t.geoLocation,n=t.layoutMapping,o=t.hasPreviousStep,a=t.googleMapsApiKey,c=t.pageAppLinkString,l=t.back,u=t.nextStep,s=t.complete,f=t.logUserAction,p=t.imageUrls,d=t.ajaxUrls,h=t.productName,m=t.brazeClient,y=t.getSignInUrl,v=t.globalIdps,g=qe[e.currentStepId],b=Object.assign(Object.assign({},e),{geoLocation:r,googleMapsApiKey:a,pageAppLinkString:c,back:l,nextStep:u,complete:s,logUserAction:f,imageUrls:p,ajaxUrls:d,productName:h,brazeClient:m,getSignInUrl:y,globalIdps:v}),w=null==n?void 0:n[e.currentStepId];return w?i.createElement(w,{geoLocation:t.geoLocation,currentStep:e.currentStepId,previousStep:l,closeApp:t.close,logUserAction:f,hasPreviousStep:o,imageUrls:t.imageUrls,getSignInUrl:y},i.createElement(g,Object.assign({},b))):i.createElement(g,Object.assign({},b))}var $e=r(1048);const Je={buttonContainer:"izZtA",dataContainer:"OgBv5"};function Ze(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function He(t){var e={};return Object.keys(t).forEach((function(r){var n=t[r];$e.t.isObject(n)&&null!==n&&!Array.isArray(n)?Object.assign(e,He(n)):e[r]=n})),e}function We(t){var e=t.label,r=t.item,n=r;return Array.isArray(r)&&(n=n.join(" -> ")),"boolean"==typeof n&&(n=n?"true":"false"),i.createElement("div",{className:"pb-1"},e,": ",i.createElement("b",{className:"text-white"},n))}function Xe(t){var e,r,n=t.developmentEnv,o=t.objects,a=(e=i.useState(!0),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return Ze(t,e);var r={}.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)?Ze(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=a[0],l=a[1],u=i.useMemo((function(){return He(o)}),[o]);return n&&i.createElement(i.Fragment,null,i.createElement("div",{className:"position-fixed p-4 ".concat(Je.buttonContainer)},i.createElement("button",{onClick:function(){l(!c)},className:"btn btn-dark px-2 py-1"},c?"Hide":"Show"," debugger")),c&&i.createElement("div",{className:"fixed-bottom mb-4 ms-4 bg-dark rounded ".concat(Je.dataContainer)},i.createElement("code",{className:"d-block p-4"},i.createElement("div",{className:"fw-bold pb-2"},"{ Debug: Form Data }"),Object.keys(u).map((function(t){return i.createElement(We,{key:t,label:t,item:u[t]})})))))}var Qe=r(83529);function tr(t,e){var r=t===e?"bg-blue":"bg-light";return"".concat("rounded-circle mx-2 d-inline-block Btmx2"," ").concat(r)}function er(t){return i.createElement("div",{className:"text-center"},t.crumbs.map((function(e){return i.createElement("div",{className:tr(t.currentStep,e),key:e})})))}var rr=r(98461);function nr(t){var e=Xt.F.getTermsAndConditionsLink(),r=Xt.F.getPrivacyPolicyLink();return i.createElement("span",{className:"text-center text-md mt-2 text-normal small"},"By signing up you agree to the",i.createElement("br",null),i.createElement(rr.d,{href:e,onClick:t.onClickTermsAndConditions,className:"info-link",newTab:!0},"Terms and Conditions")," and ",i.createElement(rr.d,{href:r,onClick:t.onClickPrivacyPolicy,className:"info-link",newTab:!0},"Privacy Policy"))}var or=r(83914),ar=r(35223);function ir(t){return i.createElement("button",{onClick:t.onClick,className:"btn p-0 cursor-pointer d-inline-flex align-items-center"},i.createElement(or.x,{svgName:ar.vn.ChevronLeft,size:or.S.Medium}),t.children)}var cr=r(2786);ur.defaultProps={showBackButton:!0};var lr=["select-type","enter-email","find-school"];function ur(t){var e=t.currentStep,r=t.previousStep,n=t.hasPreviousStep,o=t.showBackButton,a=t.children;return i.createElement("div",{className:"d-flex flex-column justify-content-between px-4 py-0 ".concat("jZ_Wp")},i.createElement("div",{className:"mt-3 mb-2"},lr.includes(e)&&i.createElement(er,{crumbs:lr,currentStep:e})),i.createElement("div",{className:"position-relative mx-auto w-100 ".concat("select-type"===e?"Ye154":["enter-email","find-school","cant-find-school","add-to-braze","enter-age"].includes(e)?"m2kAT":"ollkc")},i.createElement("div",{className:"d-flex flex-row justify-content-center align-items-center mt-2 mb-3"},n&&o&&["enter-email","find-school","cant-find-school","add-to-braze","enter-age","request-access"].includes(e)&&i.createElement(ir,{onClick:function(){r(),t.logUserAction({step:e},{actionType:N.Vw.Click,descriptor:N.Yu.Back,workflowPhase:N.eu.Back})}}),i.createElement("div",{className:"d-flex justify-content-center align-items-center px-2 ".concat("J97w_")},i.createElement(cr.$S,null))),a),i.createElement("div",{className:"position-relative mb-4 mt-3 text-center"},"select-type"===e&&i.createElement(de.f,{link:t.getSignInUrl(),onClick:function(){t.logUserAction({},{actionType:N.Vw.Click,descriptor:N.Yu.SignIn})}}),["enter-email","find-school","add-to-braze"].includes(e)&&i.createElement(nr,{onClickTermsAndConditions:function(){t.logUserAction({},{actionType:N.Vw.Click,descriptor:N.Yu.TermsAndConditions})},onClickPrivacyPolicy:function(){t.logUserAction({},{actionType:N.Vw.Click,descriptor:N.Yu.PrivacyPolicy})}})))}var sr=r(28366);dr.defaultProps={showBackButton:!0};var fr=["enter-email","find-school"],pr=["enter-email","find-school","cant-find-school","add-to-braze","enter-age","request-access"];function dr(t){var e=t.currentStep,r=t.previousStep,n=t.hasPreviousStep,o=t.showBackButton,a=t.closeApp,c=t.children;function l(){return["enter-email","find-school","cant-find-school","add-to-braze","enter-age"].includes(e)}function u(){r(),t.logUserAction({},{actionType:N.Vw.Click,descriptor:N.Yu.Back,workflowPhase:N.eu.Back})}var s=pr.includes(t.currentStep),f=s?"".concat(sr.Z.leftHalfLayout," ").concat(sr.Z.withBg):sr.Z.leftHalfLayout;return i.createElement("div",{className:f},i.createElement("div",{className:"row mx-0 p-3"},i.createElement("div",{className:"col px-0 d-lg-none ".concat(sr.Z.popupButton)},n&&l()&&o&&i.createElement(ir,{onClick:u})),i.createElement("div",{className:"col col-lg-6 px-0"},i.createElement("div",{className:sr.Z.logo},i.createElement("div",{className:"d-none d-lg-block"},s?i.createElement(cr.Yo,null):i.createElement(cr.$S,null)),i.createElement("div",{className:"d-block d-lg-none mt-1"},i.createElement(cr.$S,null),fr.includes(t.currentStep)&&i.createElement("div",{className:"mt-3"},i.createElement(er,{crumbs:fr,currentStep:e}))))),i.createElement("div",{className:"col col-lg-6 d-flex flex-row justify-content-between px-0"},i.createElement("div",{className:"px-3"},i.createElement("div",{className:"d-none d-lg-block ".concat(sr.Z.popupButton)},n&&l()&&o&&i.createElement(ir,{onClick:u}))),fr.includes(t.currentStep)&&i.createElement("div",{className:"d-none d-lg-block align-self-center"},i.createElement(er,{crumbs:fr,currentStep:e})),i.createElement(et.L,{onClick:a,className:sr.Z.popupButton},i.createElement(or.x,{svgName:ar.vn.Close,size:or.S.Medium})))),i.createElement("div",{className:"row mx-0 flex-grow-1"},s&&i.createElement("div",{className:"col-6 px-0 d-none d-lg-block"},i.createElement("div",{className:"h-100 d-flex align-items-center justify-content-center"},i.createElement("img",{src:t.imageUrls.popupDashboard,className:"w-100 p-4 pb-5 ".concat(sr.Z.leftImage)}))),i.createElement("div",{className:"px-4 pt-0 pb-4 ".concat(s?"col-12 col-lg-6":"col-12")},i.createElement("div",{className:"d-flex flex-column h-100"},i.createElement("div",{className:"flex-grow-1"},c),i.createElement("div",{className:"text-center mt-3"},"select-type"===e&&i.createElement(de.f,{link:t.getSignInUrl(),onClick:function(){t.logUserAction({},{actionType:N.Vw.Click,descriptor:N.Yu.SignIn})}}),["enter-email","add-to-braze"].includes(e)&&i.createElement(nr,{onClickTermsAndConditions:function(){t.logUserAction({},{actionType:N.Vw.Click,descriptor:N.Yu.TermsAndConditions})},onClickPrivacyPolicy:function(){t.logUserAction({},{actionType:N.Vw.Click,descriptor:N.Yu.PrivacyPolicy})}}))))))}function hr(t){return hr="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},hr(t)}function mr(t,e,r){return(e=function(t){var e=function(t){if("object"!=hr(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=hr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==hr(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var yr={"cant-find-school":dr,"enter-email":dr,"find-school":dr,"select-type":dr,completed:dr,"add-to-braze":dr,"enter-age":dr,"request-access":dr},vr={"cant-find-school":ur,"enter-email":ur,"find-school":ur,"select-type":ur,completed:ur,"add-to-braze":ur,"enter-age":ur,"request-access":ur},gr=mr(mr({},Qe.c.FullPage,vr),Qe.c.Popup,yr),br={getLayouts:function(t){return gr[t]}},wr=r(17331);function Sr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function Er(t){return Er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Er(t)}function xr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||Lr(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lr(t,e){if(t){if("string"==typeof t)return kr(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?kr(t,e):void 0}}function kr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function jr(t,e){var r,n,o=Object.assign(Object.assign({},t),{previousStepIds:[].concat((n=t.previousStepIds,function(t){if(Array.isArray(t))return kr(t)}(n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||Lr(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[t.currentStepId]),currentStepId:e.step});if("select-type"===e.step)return Object.assign({},o);if("enter-email"===e.step||"enter-age"===e.step)return Object.assign(Object.assign({},o),{userType:e.userType});if("find-school"===e.step)return Object.assign(Object.assign({},o),{email:e.email});if("cant-find-school"===e.step)return Object.assign(Object.assign({},o),{prospectId:e.prospectId,schoolName:e.schoolName,schoolLocality:e.schoolLocality,country:e.country,longitude:e.longitude,latitude:e.latitude,city:e.city,province:e.province});if("add-to-braze"===e.step||"completed"===e.step||"request-access"===e.step){var a=Object.assign({},e);return delete a.type,delete a.step,r=a,a=Object.entries(r).filter((function(t){return null!==xr(t,2)[1]})).reduce((function(t,e){var r=xr(e,2),n=r[0],o=r[1];return Object.assign(Object.assign({},t),function(t,e,r){return(e=function(t){var e=function(t){if("object"!=Er(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Er(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Er(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},n,o))}),{}),Object.assign(Object.assign({},o),a)}}function Cr(t,e){switch(e.type){case"nextStep":return jr(t,e);case"back":return function(t){var e,r=function(t){if(Array.isArray(t))return Sr(t)}(e=t.previousStepIds)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return Sr(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Sr(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=r.pop();return Object.assign(Object.assign({},t),{previousStepIds:r,currentStepId:n})}(t)}}function Nr(t){return Nr="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},Nr(t)}function Or(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Ar(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ar(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ar(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var Tr=function(t){var e=t.location,r=t.initialValues,n=t.onStepUpdate,o=t.externalLogUserAction,a=b.F.removeEmptyKeys(r),c=Object.assign({currentStepId:"select-type",previousStepIds:[]},a),l=Or(i.useReducer(Cr,c),2),u=l[0],f=l[1];return i.useEffect((function(){null==n||n(u)}),[u.currentStepId]),{state:u,back:function(){f({type:"back"})},nextStep:function(t){f(Object.assign({type:"nextStep"},t))},complete:function(t){f(Object.assign({type:"nextStep",step:"completed"},t))},hasPreviousStep:!!u.previousStepIds.length,logUserAction:function(t,r){var n=Object.assign(Object.assign({},u),t),a=wr.i.filterBlacklistedKeys(n),i=Object.assign({currentStepId:u.currentStepId},a),c=Object.entries(i).filter((function(t){return void 0!==Or(t,2)[1]})).reduce((function(t,e){var r,n,o,a=Or(e,2),i=a[0],c=a[1];return Object.assign(Object.assign({},t),(r={},o=c,(n=function(t){var e=function(t){if("object"!=Nr(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Nr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Nr(e)?e:e+""}(n=i))in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,r))}),{});o(c,Object.assign({entity:s.py.SignUp,location:e},r))}}};function Ir(t){var e=br.getLayouts(t.type),r=t.location,n=t.initialValues,o=t.geoLocation,a=t.googleMapsApiKey,u=t.pageAppLinkString,s=t.onStepUpdate,f=t.imageUrls,p=t.ajaxUrls,d=t.productName,h=t.brazeClient,m=t.close,y=t.getSignInUrl,v=t.globalIdps,g=Tr({location:r,initialValues:n,onStepUpdate:s,externalLogUserAction:l.k.logUserAction}),b=g.back,w=g.nextStep,S=g.complete,E=g.hasPreviousStep,x=g.state,L=g.logUserAction,k={state:x,geoLocation:o,layoutMapping:e,hasPreviousStep:E,googleMapsApiKey:a,pageAppLinkString:u,back:b,close:m,nextStep:w,complete:S,logUserAction:L,imageUrls:f,ajaxUrls:p,productName:d,brazeClient:h,getSignInUrl:y,globalIdps:v};return i.useEffect((function(){c.SG.get(le)&&S({completionStep:"young-student",trialCreated:!1,trialStatus:null})}),[]),i.createElement(i.Fragment,null,i.createElement(Ve,Object.assign({},k)),i.createElement(Xe,{developmentEnv:!1,objects:Object.assign(Object.assign(Object.assign({},x),{pageAppLinkString:u}),o)}))}},68293:(t,e,r)=>{r.d(e,{B:()=>w});var n=r(32735),o=r(93824),a=r(19808);function i(t){return i="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},i(t)}function c(t,e,r){return(e=function(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var l=["Teacher","Librarian / Teacher Librarian","Curriculum Coordinator","Digital Technology Coordinator","SSO / SLSO","IT","Head of Department","Head of Subject","Assistant Principal","Deputy Principal","Principal"],u=["Teacher","Librarian / Teacher Librarian","IT/LRC","e-Learning/ICT Coordinator","Head of Key Stage","Head of Department","Subject Lead","Assistant Head Teacher","Deputy Head Teacher","Head Teacher"],s=["Teacher","Librarian / Teacher Librarian","Head of Department","Instructional Technology Specialist","Curriculum Coordinator","School Leadership","District Leadership","Academic Coach","Principal","IT / IT Specialist"],f=["Professor","Lecturer","Course Coordinator / Administrator","Digital Learning Manager","Tutor","Teaching Fellow","Librarian","Learning Technologist","Teaching Assistant","Researcher","IT"],p=["Professor","Lecturer","Course Coordinator / Administrator","Digital Learning Manager","Tutor","Teaching Fellow","Librarian","Learning Technologist","Teacher","Teaching Assistant","Researcher","IT"],d=c(c(c(c(c(c(c(c({},a.b.AU,l),a.b.NZ,l),a.b.UK,u),a.b.US,s),o.C.AU,l),o.C.NZ,l),o.C.UK,u),o.C.US,s),h=c(c(c(c({},a.b.AU,f),a.b.UK,p),o.C.AU,f),o.C.UK,p),m=r(66122);function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return v(t,e);var r={}.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)?v(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 v(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var g="OTHER";function b(t,e){return e.includes(t)?t:t?g:""}function w(t){var e,r,o=t.error,a=t.onChange,i=(e={countryCode:t.countryCode,isTertiary:t.isTertiary},r="instanceRegion"in e?e.instanceRegion:e.countryCode,e.isTertiary?h[null==r?void 0:r.toLowerCase()]||f:d[null==r?void 0:r.toLowerCase()]||s),c=b(t.initialValue,i),l=y(n.useState(c),2),u=l[0],p=l[1],v=y(n.useState(c===g?t.initialValue:""),2),w=v[0],S=v[1];n.useEffect((function(){p(b(t.initialValue,i))}),[t.initialValue]);var E=u===g;return n.createElement("div",{className:"form-group"},n.createElement("label",{htmlFor:t.id,className:t.labelClassName},"Job title:",t.required&&n.createElement("span",{className:"text-danger"},"*")),n.createElement("div",{className:"mb-2"},n.createElement("select",{id:t.id,name:t.id,className:"form-select ".concat("lg"===t.size?"form-select-lg":""," ").concat(u.length?"text-dark":"text-secondary"," ").concat(!!o&&"is-invalid"),value:u,placeholder:"Role",onChange:function(t){p(t.target.value),S(""),a(t.target.value===g?"":t.target.value)}},n.createElement("option",{value:"",disabled:!0,className:"text-secondary"},t.placeholder?t.placeholder:n.createElement(n.Fragment,null,"What do you do?")),i.map((function(t,e){return n.createElement("option",{value:t,className:"text-dark",key:e},t)})),n.createElement("option",{value:g,className:"text-dark"},"Other")),!!o&&!E&&n.createElement(m.A,{name:t.id},o)),E&&n.createElement("div",{className:"mb-3"},n.createElement("input",{className:"form-control ".concat("lg"===t.size?"form-select-lg":""," ").concat(!!o&&"is-invalid"),type:"text",value:w,placeholder:"What do you do?",autoFocus:!0,onChange:function(t){S(t.target.value),a(t.target.value)}}),!!o&&n.createElement(m.A,{name:t.id},o)))}},83529:(t,e,r)=>{var n;r.d(e,{c:()=>n}),function(t){t.Popup="popup-form",t.FullPage="full-page-form"}(n||(n={}))},12238:(t,e,r)=>{var n;r.d(e,{C:()=>n}),function(t){t.MasterId="master_id",t.CrmId="crm_id",t.SalesforceId="salesforce_id"}(n||(n={}))},84789:(t,e,r)=>{var n;r.d(e,{X:()=>n}),function(t){t.Lite="lite",t.Auth="auth"}(n||(n={}))},76153:(t,e,r)=>{r.d(e,{F:()=>f});var n=r(63093),o=r(33003),a=r.n(o);function i(t){return i="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},i(t)}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var u={secondary:{label:"Secondary",isTertiary:!1},"primary & secondary":{label:"Primary & Secondary",isTertiary:!1},k12:{label:"Primary & Secondary",isTertiary:!1},primary:{label:"Primary",isTertiary:!1},special:{label:"Special",isTertiary:!1},university:{label:"University",isTertiary:!0},middle:{label:"Middle",isTertiary:!1},"fe college":{label:"FE College",isTertiary:!0},"high school":{label:"Secondary",isTertiary:!1},elementary:{label:"Primary",isTertiary:!1},"middle school":{label:"Middle",isTertiary:!1},tafe:{label:"TAFE",isTertiary:!0},college:{label:"FE College",isTertiary:!0},"sixth form college":{label:"Sixth Form College",isTertiary:!0}},s={england:"ENG",scotland:"SCT",wales:"WLS","northern ireland":"NIR"},f={hashedEmail:function(t){var e=t.trim().toLowerCase();return a().hash(e)},removeEmptyKeys:function(t){if(Array.isArray(t))return t;var e=Object.assign({},t);return Object.entries(e).filter((function(t){var e=c(t,2)[1];return null!=e&&!("string"==typeof e&&!e.length)})).reduce((function(t,e){var r,n,o,a=c(e,2),l=a[0],u=a[1];return Object.assign(Object.assign({},t),(r={},n=l,o=u===Object(u)?f.removeEmptyKeys(u):u,(n=function(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}(n))in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,r))}),{})},getEventTopic:function(){return"Free Trial Request"},getSource:function(){return"cv_product_trial_requested"},getProductFormEventType:function(){return n.ProductFormEvent.FormSubmission},getSchoolType:function(t){var e;if(t){var r=t.toLowerCase();if(!["unknown","other"].includes(r))return(null===(e=u[r])||void 0===e?void 0:e.label)||t}},isTertiarySchool:function(t){var e;return(null===(e=u[null==t?void 0:t.toLowerCase()])||void 0===e?void 0:e.isTertiary)||!1},parseProvince:function(t){return t.length?s[t.toLowerCase()]||t:""}}},17331:(t,e,r)=>{r.d(e,{i:()=>o});var n=["email","longitude","latitude","trialCreated"],o={filterBlacklistedKeys:function(t){var e=Object.assign({},t);return n.forEach((function(t){return delete e[t]})),e}}},69624:(t,e,r)=>{r.d(e,{F:()=>s});var n=r(86664),o=r(93824);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function i(t,e,r){return(e=function(t){var e=function(t){if("object"!=a(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==a(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var c={Marketing:{au:"https://www.clickvieweducation.com/en-au",us:"https://www.clickvieweducation.com",nz:"https://www.clickview.co.nz",uk:"https://www.clickview.co.uk"},Support:{au:"https://www.clickviewsupport.com/hc/en-au",uk:"https://www.clickviewsupport.com/hc/en-au#gb",nz:"https://www.clickviewsupport.com/hc/en-au#nz",us:"https://www.clickviewsupport.com/hc/en-au#us"}},l=i(i(i(i({},o.C.AU,"/contact-us/sales"),o.C.US,"/contact-us/sales"),o.C.NZ,"/contact-us/"),o.C.UK,"/contact-us/trial"),u=i(i(i(i({},o.C.AU,"/resources/free-student-resources"),o.C.US,"/resources/free-student-resources"),o.C.NZ,"/free-student-resources/"),o.C.UK,"/free-student-resources/"),s={getMarketingUrlForGeoLocation:function(t){var e=n.I.getCountryCode(null==t?void 0:t.countryCode);return c.Marketing[e]||c.Marketing.us},getMarketingSalesContactForGeoLocation:function(t){var e=n.I.getCountryCode(null==t?void 0:t.countryCode),r=s.getMarketingUrlForGeoLocation(t),o=l[e];return"".concat(r).concat(o)},getFreeResourcesForGeoLocation:function(t){var e=n.I.getCountryCode(null==t?void 0:t.countryCode),r=this.getMarketingUrlForGeoLocation({countryCode:e}),o=u[e];return"".concat(r).concat(o)},getTermsAndConditionsLink:function(){return this.getMarketingUrlForGeoLocation(o.C.US)+"/terms-and-conditions/"},getPrivacyPolicyLink:function(){return this.getMarketingUrlForGeoLocation(o.C.US)+"/privacy-policy/"},getSupportUrlForGeoLocation:function(t){var e=n.I.getCountryCode(null==t?void 0:t.countryCode);return c.Support[e]||c.Support.us}}},66122:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(32735);function o(t){return n.createElement("span",{id:"".concat(t.name,"Error"),className:"".concat(t.className," invalid-feedback d-block"),role:"status"},t.children)}},53475:(t,e,r)=>{r.d(e,{N:()=>n});var n={globalIdps:function(t,e){return{url:"{gateway}/v1/auth/identity-providers?countryCode=".concat(t,"&product=").concat(e),key:"global:idps"}}}},48015:(t,e,r)=>{r.d(e,{M:()=>c});var n=r(39202),o=r(20354),a=r(39151),i={countryCode:"us",isFallback:!0};function c(){var t,e,r=o.a.useBasicFetch(a.L.geoLocation()),c=null===(e=null===(t=n.Ab.GetQuery())||void 0===t?void 0:t.countryCode)||void 0===e?void 0:e.toLowerCase();return c?{countryCode:c}:r.hasCompleted&&!r.data?i:r.data}},48456:(t,e,r)=>{r.d(e,{v:()=>o});var n=r(99742),o={popupDashboard:n.W.SignUp.POPUP_DASHBOARD,educator:n.W.SignUp.EDUCATOR,student:n.W.SignUp.STUDENT,statusImages:{available:n.W.SignUp.VERIFY_ACCOUNT,active:n.W.SignUp.EXISTING_CUSTOMER,expired:n.W.SignUp.EXPIRED_TRIAL,notRequired:n.W.SignUp.EXISTING_CUSTOMER,unavailable:n.W.SignUp.NOT_AVAILABLE,unsupported:n.W.SignUp.NOT_AVAILABLE,autoJoin:n.W.SignUp.EXISTING_CUSTOMER,requestAccess:n.W.SignUp.EXISTING_CUSTOMER}}},63643:(t,e,r)=>{r.d(e,{c:()=>c});var n=r(97395),o=r(20354),a=r(84789),i=r(39151);function c(){var t=o.a.useBasicFetch(i.L.config());if(!t.hasCompleted)return null;var e=t.data.gatewayApiUrl;return{productName:a.X.Lite,userStatus:n._.safeUrlConcat(e,"/v1/users/trial-status"),prospectStatus:function(t){return n._.safeUrlConcat(e,"/v1/prospects/".concat(t,"/trial-status"))},createTrial:"/api/user/trials",resendTrialEmail:function(t){return"/api/user/trials/users/".concat(t,"/send-activation-email")},searchProspect:n._.safeUrlConcat(e,"/v1/search/prospects"),createProspect:"/api/prospects",prospectLookups:function(t){return n._.safeUrlConcat(e,"/v1/prospects/".concat(t,"/lookups"))},autoJoin:"/api/user/trials/auto-join",joinRequest:function(t){return"/api/user/customers/".concat(t,"/join-requests")}}}},28366:(t,e,r)=>{r.d(e,{Z:()=>n});const n={logo:"Kh4Dd",modalBody:"V9nIN",popupButton:"hS60U",leftImage:"kDU8y",leftHalfLayout:"aQ1K8",withBg:"zALxE"}}}]);
|
|
3
|
-
//# sourceMappingURL=2056-
|
|
1
|
+
/*! For license information please see 2056-a9e8d17a46-lite.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[2056],{42328:(t,e,r)=>{r.d(e,{w:()=>a});var n=r(32735);function o(){return n.createElement("svg",{viewBox:"0 0 24 24"},n.createElement("path",{d:"M11.959 10.641l4.402-4.296a.964.964 0 0 1 1.358 0 .951.951 0 0 1 0 1.35l-4.403 4.297 4.403 4.378a.951.951 0 0 1 0 1.35.964.964 0 0 1-1.358 0l-4.402-4.378-4.32 4.378a.964.964 0 0 1-1.358 0 .951.951 0 0 1 0-1.35l4.32-4.378-4.32-4.362a.951.951 0 0 1 0-1.35.964.964 0 0 1 1.358 0l4.32 4.361z"}))}var a=n.forwardRef((function(t,e){var r=t.onClickClear,a=t.showClearButton,i=t.clearClassName,c=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}(t,["onClickClear","showClearButton","clearClassName"]);return n.createElement("div",{className:"position-relative"},n.createElement("input",Object.assign({},c,{ref:e,className:"".concat(t.className," ").concat("aYpO7")})),(!!t.value||a)&&n.createElement("span",{className:"".concat("ygMgF"," position-absolute cursor-pointer text-secondary ").concat(i||""),role:"button",onClick:r,onKeyDown:function(t){return"Enter"===t.key&&r()},tabIndex:0},n.createElement("div",{className:"d-inline-block svg-container md"},n.createElement(o,null))))}))},49036:(t,e,r)=>{r.d(e,{f:()=>o});var n=r(32735);function o(t){return n.createElement(n.Fragment,null,"Have a ClickView account already?",n.createElement("a",{href:t.link,className:"info-link ms-1",onClick:t.onClick},"Sign in"))}},53364:(t,e,r)=>{r.d(e,{b:()=>i});var n=r(32735);const o={idpButton:"FDoJA",idpImage:"bjN_j",divider:"FfyN0"};function a(t){var e=t.idp,r=t.last;return n.createElement("button",{className:"btn btn-lg btn-outline-dark w-100 ".concat(r?"":"mb-3"," ").concat(o.idpButton),onClick:function(){if(t.onClick)t.onClick(e);else{var r=window.location.pathname+window.location.search;window.location.href="/challenge?idp=".concat(e.id)+"&redirectUrl="+encodeURIComponent(r)+"&attribution="+encodeURIComponent(t.attribution)}}},e.logoUrl&&n.createElement("img",{src:e.logoUrl,className:o.idpImage}),"Continue with ",e.name)}function i(t){return t.idps.length?n.createElement("div",{className:"".concat(t.className?t.className:"")},n.createElement("div",{className:"my-3 border-bottom position-relative ".concat(o.divider)}),t.idps.map((function(e,r){return n.createElement(a,{key:r,idp:e,onClick:"onClick"in t?t.onClick:null,attribution:"attribution"in t?t.attribution:null})}))):n.createElement(n.Fragment,null)}},97947:(t,e,r)=>{r.d(e,{h:()=>Ir});var n,o,a,i=r(32735),c=r(57900),l=r(49985),u=r(63093),s=r(74254),f=r(42328),p=r(68293),d=r(86664),h=r(66122),m=r(2102);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 v(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function g(t){var e,r,n,o,a,c,l,u,s,g=(u=i.useState({fullname:"",jobTitle:"",phone:""}),s=2,function(t){if(Array.isArray(t))return t}(u)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(u,s)||function(t,e){if(t){if("string"==typeof t)return v(t,e);var r={}.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)?v(t,e):void 0}}(u,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),b=g[0],w=g[1];function S(t,e){w((function(r){return Object.assign(Object.assign({},r),function(t,e,r){return(e=function(t){var e=function(t){if("object"!=y(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==y(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},t,e))}))}return i.createElement("div",{className:"text-center"},i.createElement("h1",{className:"text-center h4"},"A little more about you"),i.createElement("p",null,"Please enter your details."),i.createElement("form",{onSubmit:function(e){e.preventDefault(),t.handleSubmitForm(b)},"aria-errormessage":"brazeFormError"},i.createElement("div",{className:"form-group text-start"},i.createElement("label",{className:"d-block fw-bold mb-1",htmlFor:"fullname-input"},"Full name"),i.createElement(f.w,{value:b.fullname,onChange:function(e){e.preventDefault(),S("fullname",e.target.value),t.removeErrorForKey("fullname"),t.removeErrorForKey("submission")},name:"fullname-input",id:"fullname-input",type:"text",className:"form-control form-control-lg ".concat((null===(e=t.errors.fullname)||void 0===e?void 0:e.length)?"is-invalid":""),placeholder:"Enter your name",onClickClear:function(){S("fullname",""),t.removeErrorForKey("fullname"),t.removeErrorForKey("submission")},autoFocus:!0,"aria-errormessage":"fullname-inputError"}),t.errors.fullname&&i.createElement(h.A,{name:"fullname-input"},t.errors.fullname)),i.createElement("div",{className:"form-group text-start"},i.createElement("label",{className:"d-block fw-bold mb-1",htmlFor:"phone-input"},"Contact number"),i.createElement(f.w,{value:b.phone,onChange:function(e){e.preventDefault(),S("phone",e.target.value.trim()),t.removeErrorForKey("phone"),t.removeErrorForKey("submission")},name:"phone-input",id:"phone-input",type:"tel",className:"form-control form-control-lg ".concat((null===(r=t.errors.phone)||void 0===r?void 0:r.length)?"is-invalid":""),placeholder:"Enter your phone number",onClickClear:function(){S("phone",""),t.removeErrorForKey("phone"),t.removeErrorForKey("submission")},"aria-errormessage":"phone-inputError"}),t.errors.phone&&i.createElement(h.A,{name:"phone-input"},t.errors.phone)),i.createElement("div",{className:"form-group text-start"},i.createElement("label",{className:"d-block fw-bold mb-1",htmlFor:"jobTitle-select"},"Job title"),i.createElement(p.B,{id:"jobTitle-select",countryCode:d.I.getCountryCode(t.country),onChange:function(e){S("jobTitle",e),t.removeErrorForKey("jobTitle"),t.removeErrorForKey("submission")},error:null===(n=t.errors)||void 0===n?void 0:n.jobTitle,size:"lg",labelClassName:"d-none",isTertiary:t.isTertiary})),!!(null===(o=t.errors)||void 0===o?void 0:o.submission)&&i.createElement(h.A,{name:"brazeForm",className:"form-group"},t.errors.submission),i.createElement("div",{className:"form-group mb-1"},i.createElement(m.m,{className:"btn-lg w-100",variant:"dark",onClick:function(){return t.handleSubmitForm(b)},showSpinner:t.loading,disabled:t.loading||(a=b.fullname,c=b.jobTitle,l=b.phone,!(a.length&&c.length&&l.length&&!Object.keys(t.errors).length))},"Submit"))))}!function(t){t.Unavailable="unavailable",t.Expired="expired",t.Active="active",t.NotRequired="not-required",t.Available="available",t.Unsupported="unsupported",t.UserAutoJoinAllowed="user-auto-join-allowed",t.UserJoinApprovalRequired="user-join-approval-required"}(n||(n={})),function(t){t.InvalidEmail="invalid-email"}(o||(o={})),function(t){t.Staff="staff",t.Learner="learner"}(a||(a={}));var b=r(76153);function w(t){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w(t)}function S(){S=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new I(n||[]);return o(i,"_invoke",{value:N(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",d="suspendedYield",h="executing",m="completed",y={};function v(){}function g(){}function b(){}var E={};u(E,i,(function(){return this}));var x=Object.getPrototypeOf,L=x&&x(x(P([])));L&&L!==r&&n.call(L,i)&&(E=L);var k=b.prototype=v.prototype=Object.create(E);function j(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==w(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function N(e,r,n){var o=p;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=O(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(w(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},j(C.prototype),u(C.prototype,c,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},j(k),u(k,l,"Generator"),u(k,i,(function(){return this})),u(k,"toString",(function(){return"[object Generator]"})),e.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}},e.values=P,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},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),T(r),y}},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;T(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function E(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return x(t,e);var r={}.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)?x(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 x(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var L=255,k=/\$+[\w\s]?/,j=/^\+?\d{4,255}$/;function C(t){if(!t)return{firstName:"",surname:""};var e=t.split(" ").filter((function(t){return t.length}));return{firstName:e.shift(),surname:e.join(" ")}}var N=r(65858),O=r(72688),A=r(99504),T=r(45157),I=function t(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){if(e.constructor!==r.constructor)return!1;var n,o,a;if(Array.isArray(e)){if((n=e.length)!=r.length)return!1;for(o=n;0!=o--;)if(!t(e[o],r[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if((n=(a=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,a[o]))return!1;for(o=n;0!=o--;){var i=a[o];if(!t(e[i],r[i]))return!1}return!0}return e!=e&&r!=r};const P="__googleMapsScriptId";var U;!function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"}(U||(U={}));class F{constructor({apiKey:t,authReferrerPolicy:e,channel:r,client:n,id:o=P,language:a,libraries:i=[],mapIds:c,nonce:l,region:u,retries:s=3,url:f="https://maps.googleapis.com/maps/api/js",version:p}){if(this.CALLBACK="__googleMapsCallback",this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=e,this.channel=r,this.client=n,this.id=o||P,this.language=a,this.libraries=i,this.mapIds=c,this.nonce=l,this.region=u,this.retries=s,this.url=f,this.version=p,F.instance){if(!I(this.options,F.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(F.instance.options)}`);return F.instance}F.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?U.FAILURE:this.done?U.SUCCESS:this.loading?U.LOADING:U.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 _(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return G(t,e);var r={}.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)?G(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 G(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function D(t){return new F({apiKey:t.apiKey,version:"weekly",libraries:t.libraries,retries:3})}function M(t){var e={apiKey:t.apiKey,libraries:t.libraries||["places"]},r=_(i.useState(!1),2),n=r[0],o=r[1],a=_(i.useState(D(e)),2),c=a[0],l=a[1];function u(t,r){c?c.loadCallback((function(e){if(e)return o(!1),void(r&&r(e));o(!0),t&&t()})):l(D(e))}return i.useEffect((function(){u()}),[]),{loader:c,scriptLoaded:n,onGoogleApiReady:u}}function R(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function K(t){var e,r,n=M({apiKey:t.googleApiKey}).scriptLoaded,o=(e=i.useState(),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return R(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=o[0],c=o[1];return i.useEffect((function(){n&&c(new google.maps.places.AutocompleteService)}),[n]),a}function z(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var B="country:placeholder:text";function Y(t){var e,r,n=t.apiKey,o=t.geoLocation,a=t.makeRequest,l=void 0===a||a,u=t.template,s=void 0===u?"E.g. [placeholder]":u,f=t.templateKey,p=void 0===f?"[placeholder]":f,h=K({googleApiKey:n}),m=i.useState((function(){return function(t){var e=d.I.getLocalizedLocalityPlaceholderText(null==t?void 0:t.countryCode);return e||(c.SG.cacheGet("".concat(B,":").concat(null==t?void 0:t.countryCode))||void 0)}(o)})),y=(r=2,function(t){if(Array.isArray(t))return t}(e=m)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return z(t,e);var r={}.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)?z(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),v=y[0],g=y[1];function b(t,e){c.SG.cacheSet("".concat(B,":").concat(e),t,86400),g(t)}return i.useEffect((function(){if(!v&&h&&l){var t=(null==o?void 0:o.countryCode)||"us",e={input:String.fromCharCode(96+T.Y.getRandomInt(26)),types:["(cities)"],region:t,componentRestrictions:{country:t}};h.getPlacePredictions(e,(function(e,r){return function(t,e,r){if(e===google.maps.places.PlacesServiceStatus.OK&&t){var n=t[T.Y.getRandomInt(t.length)].description;b(s.replace(p,n),r)}else b(d.I.getLocalizedLocalityPlaceholderText("us"),r)}(e,r,t)}))}}),[v,h,o,l]),v}function q(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return V(t,e);var r={}.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)?V(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 V(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function $(t){var e=q(i.useState(0),2),r=e[0],n=e[1],o=i.useRef(),a=q(i.useState(!!t.hideInitially),2),c=a[0],l=a[1];function u(){var t;o.current&&(null===(t=o.current.children[r-1])||void 0===t||t.scrollIntoView({block:"center"}))}return{selectedIndex:r,onKeyDown:function(e){if(t.hideOnEnter&&l(!1),"ArrowDown"===e.code){e.stopPropagation(),e.preventDefault();var o=r+1;return o>t.itemCount&&(o=1),n(o),void u()}if("ArrowUp"===e.code){e.stopPropagation(),e.preventDefault();var a=r-1;return a<=0&&(a=t.itemCount),n(a),void u()}if("Enter"===e.code&&r>0)return e.stopPropagation(),e.preventDefault(),t.onSelected(r-1),void(t.hideOnEnter&&l(!0));n(0)},containerRef:o,hide:c,onFocus:function(){t.hideOnBlur&&l(!1)},onBlur:function(){t.hideOnBlur&&l(!0)}}}function J(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 Z(t,e);var r={}.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)?Z(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function Z(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var H=function(t){var e,r,n,o,a,i=t.formatted_address,c=J(t.address_components);try{for(c.s();!(a=c.n()).done;){var l,u=a.value,s=J(u.types);try{for(s.s();!(l=s.n()).done;){var f=l.value;"locality"===f&&(e=u.short_name),"administrative_area_level_1"===f&&(r=u.short_name),"postal_code"===f&&(o=u.short_name),"country"===f&&(n=u.short_name)}}catch(t){s.e(t)}finally{s.f()}}}catch(t){c.e(t)}finally{c.f()}return{locality:i,country:n,postalCode:o,city:e,province:r}};function W(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var X={1:"geocoderPermissionDenied",2:"geocoderUnavailable",3:"geocoderTimeout"},Q=r(28329);function tt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var et=r(11607);function rt(){return i.createElement("svg",{viewBox:"0 0 24 24"},i.createElement("path",{d:"m12.00559,20.40189c4.60881,0 8.37242,-3.78424 8.37242,-8.40189c0,-4.61764 -3.76361,-8.40187 -8.37242,-8.40187c-4.62002,0 -8.38365,3.78422 -8.38365,8.40187c0,4.61765 3.76364,8.40189 8.38365,8.40189zm0,-1.65557c-3.75235,0 -6.67085,-2.96208 -6.67085,-6.74632c0,-3.7842 2.91851,-6.74625 6.67085,-6.74625c3.74105,0 6.67084,2.96206 6.67084,6.74625c0,3.78424 -2.92978,6.74632 -6.67084,6.74632zm-10.14151,-6.02552l6.01731,0c0.40566,0 0.72118,-0.31536 0.72118,-0.7208c0,-0.40544 -0.31552,-0.7208 -0.72118,-0.7208l-6.01731,0c-0.40566,0 -0.72117,0.31536 -0.72117,0.7208c0,0.40544 0.31551,0.7208 0.72118,0.7208l-0.00001,0zm14.25442,0l6.0174,0c0.40565,0 0.72118,-0.31536 0.72118,-0.7208c0,-0.40544 -0.31553,-0.7208 -0.72118,-0.7208l-6.0174,0c-0.40565,0 -0.72118,0.31536 -0.72118,0.7208c0,0.40544 0.31553,0.7208 0.72118,0.7208zm-4.12417,-4.1221c0.40566,0 0.72118,-0.31534 0.72118,-0.70952l0,-6.02547c0,-0.40544 -0.31552,-0.7208 -0.72118,-0.7208c-0.3944,0 -0.7099,0.31536 -0.7099,0.7208l0,6.02547c0,0.39418 0.31551,0.70952 0.7099,0.70952zm0,14.25838c0.40566,0 0.72118,-0.3154 0.72118,-0.72077l0,-6.02541c0,-0.39425 -0.31552,-0.70965 -0.72118,-0.70965c-0.3944,0 -0.7099,0.3154 -0.7099,0.70965l0,6.02541c0,0.40538 0.31551,0.72077 0.7099,0.72077z"}))}const nt="I6wQy",ot="oI3z7",at="Y78ea",it="magL7",ct="b0Mz9",lt="ChY5L",ut="snnHR";function st(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ft(t,e);var r={}.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.")}()}function ft(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function pt(t){var e=t.predictions,r=t.getPlaceInfo,n=t.selectedIndex;return i.createElement(i.Fragment,null,e.map((function(t,e){return i.createElement(et.L,{className:"".concat(it," ").concat(n-1===e?ut:""),key:t.place_id,onKeyDown:function(e){return"Enter"===e.key&&r(t)},onMouseDown:function(){return r(t)},onClick:function(){return r(t)}},t.description)})))}function dt(t){var e,r,n,o,a,c,l=i.useRef(),u=st(i.useState((null===(e=t.data)||void 0===e?void 0:e.schoolLocality)||""),2),s=u[0],p=u[1],d=st(i.useState(!1),2),h=d[0],m=d[1],y=Y({apiKey:t.googleMapsApiKey,geoLocation:t.geoLocation}),v=function(t){var e,r,n=t.search,o=t.makePredicition,a=t.geoLocation,c=K({googleApiKey:t.apiKey}),l=(0,Q.N)(n,300),u=(e=i.useState(),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return tt(t,e);var r={}.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)?tt(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=u[0],f=u[1];function p(t,e){e===google.maps.places.PlacesServiceStatus.OK&&t?f(t):f(void 0)}return i.useEffect((function(){if(c)if(0!==(null==l?void 0:l.length)&&o){var t=(null==a?void 0:a.countryCode)||"us";c.getPlacePredictions({input:l,componentRestrictions:(null==a?void 0:a.isFallback)?void 0:{country:t},region:t,types:["locality","sublocality","postal_code"]},p)}else f(void 0)}),[l,o,c]),{localityPredicitions:s,getPlaceInfo:function(t,e,r){new google.maps.places.PlacesService(e.current).getDetails({placeId:t.place_id,fields:["geometry","address_components","formatted_address"],region:a.countryCode},(function(t,e){if(e===google.maps.places.PlacesServiceStatus.OK){var n=t.geometry.location.lng(),o=t.geometry.location.lat(),a=H(t),i=a.locality,c=a.country,l=a.postalCode,u=a.city,s=a.province;r({longitude:n,latitude:o,locality:i,country:c,city:u,postalCode:l,province:s})}}))}}}({search:s,makePredicition:h,geoLocation:t.geoLocation,apiKey:t.googleMapsApiKey}),g=v.localityPredicitions,b=v.getPlaceInfo,w=function(t){var e,r,n=(e=i.useState({}),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return W(t,e);var r={}.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)?W(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=n[0],a=n[1],c=M(t).onGoogleApiReady;function l(t){var e=t.coords,r=e.latitude,n=e.longitude,o=new google.maps.LatLng(r,n);(new google.maps.Geocoder).geocode({location:o},(function(t,e){if(e===google.maps.GeocoderStatus.OK){var o=t.find((function(t){return t.types.includes("locality")||t.types.includes("administrative_area_level_2")})),i=H(o);a(Object.assign(Object.assign({},i),{longitude:n,latitude:r}))}}))}function u(e){var r=X[e.code];r||(r="geocoderUnknown"),t.onPositionError("We are unable to access your location. Please try again later.")}return{placeDetails:o,onClickGetCurrentLocation:function(){c((function(){window.navigator.geolocation.getCurrentPosition(l,u)}))}}}({apiKey:t.googleMapsApiKey,onPositionError:function(t){m(!0),U(t)}}),S=w.placeDetails,E=w.onClickGetCurrentLocation,x=window.navigator.geolocation?1:0,L=$({onSelected:function(t){if(g)if(t!==g.length){var e=g[t];e&&G(e)}else D()},itemCount:null!==(r=(null==g?void 0:g.length)+x)&&void 0!==r?r:0,hideOnBlur:t.hideOnBlur}),k=L.selectedIndex,j=L.onKeyDown,C=L.containerRef,O=L.hide,A=L.onBlur,T=L.onFocus,I=st(i.useState(),2),P=I[0],U=I[1];function F(e){var r,n,o;P&&U(void 0),h||m(!0),((null===(r=t.data)||void 0===r?void 0:r.longitude)||(null===(n=t.data)||void 0===n?void 0:n.latitude)||(null===(o=t.data)||void 0===o?void 0:o.schoolLocality))&&t.clearData(),p(e)}function _(e){t.setData({schoolLocality:e.locality,country:e.country,province:e.province,schoolPostCode:e.postalCode,longitude:e.longitude,latitude:e.latitude}),e.locality&&p(e.locality)}function G(t){h&&m(!1),b(t,l,_)}function D(e){var r;null==e||e.preventDefault(),m(!1),E(),null===(r=t.logUserAction)||void 0===r||r.call(t,{},{actionType:N.Vw.Click,descriptor:N.Yu.UseMyLocation})}i.useEffect((function(){_(S)}),[S]);var R,z=(null==g?void 0:g.length)&&!(null===(o=null===(n=t.data)||void 0===n?void 0:n.schoolLocality)||void 0===o?void 0:o.length),B=window.navigator.geolocation&&!(null===(c=null===(a=t.data)||void 0===a?void 0:a.schoolLocality)||void 0===c?void 0:c.length),q=t.labelClassName||"d-block text-center mb-3 fw-normal ".concat("KL3Q_"),V="form-group position-relative";return"lg"===t.size&&(V+=" ".concat(ct)),i.createElement("div",{className:V},i.createElement("label",{className:q,htmlFor:"locality-input"},"ZIP code or city",t.required&&i.createElement("span",{className:"text-danger"},"*")),i.createElement(f.w,{type:"text",value:s,onChange:function(t){return F(t.currentTarget.value)},id:"locality-input",className:(R="form-control","lg"===t.size&&(R+=" form-control-lg"),!z||O?"".concat(R," ").concat(lt):"".concat(R," ").concat(nt)),ref:l,autoComplete:"off",placeholder:y||"Loading...",disabled:t.disabled||!y,autoFocus:null==t?void 0:t.autoFocus,onClickClear:function(){F(""),l.current.focus()},onKeyDown:j,onFocus:T,onBlur:A}),i.createElement("div",{className:"position-absolute z-1 w-100 ".concat(ot," ").concat(O?"d-none":"")},!!z&&i.createElement("div",{className:at,ref:C},i.createElement(pt,{predictions:g,getPlaceInfo:G,selectedIndex:k}),window.navigator.geolocation&&t.useGeoLocationApi&&i.createElement(et.L,{className:"".concat(it," px-1 ").concat(k-1===g.length?ut:""),onClick:D},i.createElement("div",{className:"btn btn-link info-link btn-with-icon bg-transparent py-0 pe-1"},i.createElement(rt,null),"Use my current location"))),B&&!z&&t.useGeoLocationApi&&i.createElement("div",{className:"d-flex ".concat("dwmvC")},i.createElement("button",{onClick:D,className:"btn btn-link info-link bg-white btn-with-icon"},i.createElement(rt,null),"Use my current location")),!!P&&i.createElement("div",{className:"text-danger p-2"},P)))}var ht=r(99940);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 yt(t){var e="function"==typeof Map?new Map:void 0;return yt=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;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,r)}function r(){return function(t,e,r){if(vt())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var o=new(t.bind.apply(t,n));return r&>(o,r.prototype),o}(t,arguments,bt(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),gt(r,t)},yt(t)}function vt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(vt=function(){return!!t})()}function gt(t,e){return gt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},gt(t,e)}function bt(t){return bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},bt(t)}var wt=function(t){function e(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Error";return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=function(t,e,r){return e=bt(e),function(t,e){if(e&&("object"==mt(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)}(t,vt()?Reflect.construct(e,r||[],bt(t).constructor):e.apply(t,r))}(this,e,[n])).body=t,r}return 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&>(t,e)}(e,t),r=e,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(yt(Error));function St(t){return St="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},St(t)}function Et(){Et=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new A(n||[]);return o(i,"_invoke",{value:j(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",d="suspendedYield",h="executing",m="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(T([])));E&&E!==r&&n.call(E,i)&&(w=E);var x=b.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==St(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,r,n){var o=p;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=C(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function C(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,C(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(St(e)+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(k.prototype),u(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new k(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.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}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},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),O(r),y}},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;O(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}var xt=function(t,e,r,n){return new(r||(r=Promise))((function(o,a){function i(t){try{l(n.next(t))}catch(t){a(t)}}function c(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,c)}l((n=n.apply(t,e||[])).next())}))};function Lt(t){var e={method:ht.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,a=t.url;return e.method===ht.k.GET&&t.data?(r=a,n=t.data,o=r,Object.keys(n).forEach((function(t,e){n[t]&&(o+=0===e?"?":"&",o+="".concat(t,"=").concat(encodeURIComponent(n[t])))})),a=o):t.data&&(e=Object.assign(Object.assign({},e),{body:JSON.stringify(t.data)})),{init:e,url:a}}var kt={asyncFetch:function(t){return xt(this,void 0,void 0,Et().mark((function e(){var r,n,o;return Et().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Lt(t),e.next=3,fetch(r.url,r.init);case 3:if((n=e.sent).ok){e.next=9;break}return e.next=7,n.json();case 7:throw o=e.sent,new wt(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 xt(this,void 0,void 0,Et().mark((function e(){var r,n;return Et().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Lt(t),e.next=3,fetch(r.url,r.init);case 3:if((n=e.sent).ok){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,n.text();case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e)})))},fetch:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){var e=Lt(t);return fetch(e.url,e.init).then((function(t){if(204!==t.status)return t.json()})).then((function(e){return t.success&&t.success(e),e})).catch((function(e){return t.error&&t.error(),e})).finally((function(){t.always&&t.always()}))}))};function jt(t){return jt="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},jt(t)}function Ct(){Ct=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new A(n||[]);return o(i,"_invoke",{value:j(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",d="suspendedYield",h="executing",m="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(T([])));E&&E!==r&&n.call(E,i)&&(w=E);var x=b.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==jt(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,r,n){var o=p;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=C(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function C(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,C(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(jt(e)+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(k.prototype),u(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new k(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.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}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},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),O(r),y}},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;O(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}var Nt,Ot={search:function(t,e,r,n,o){var a={longitude:e.longitude,latitude:e.latitude};e.query&&(a.query=e.query),kt.fetch({url:t,data:a,success:r,error:n,always:o})},create:function(t,e){return r=this,n=void 0,o=void 0,a=Ct().mark((function r(){return Ct().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",kt.asyncFetch({url:t.createProspect,method:ht.k.POST,data:e}));case 1:case"end":return r.stop()}}),r)})),new(o||(o=Promise))((function(t,e){function i(t){try{l(a.next(t))}catch(t){e(t)}}function c(t){try{l(a.throw(t))}catch(t){e(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof o?r:new o((function(t){t(r)}))).then(i,c)}l((a=a.apply(r,n||[])).next())}));var r,n,o,a},getLookups:function(t,e){return kt.asyncFetch({url:t.prospectLookups(e)})}},At=r(97395),Tt=r(84789),It=function(t,e){if(t.productName!==Tt.X.Lite)return Promise.reject();var r={email:e.email};return kt.asyncFetch({url:t.userStatus,data:r})},Pt=function(t,e){var r={prospectId:e.prospectId,firstName:"Trial",surname:"User",email:e.email,userType:e.userType,accessPolicy:e.accessPolicy,appLink:null==e?void 0:e.appLink,attribution:null==e?void 0:e.attribution};return kt.asyncFetch({url:t.createTrial,method:ht.k.POST,data:r})},Ut=function(t,e,r){if(t.productName!==Tt.X.Lite)return Promise.reject();var n={email:r.email,appLink:null==r?void 0:r.appLink};return kt.asyncFetch({url:t.resendTrialEmail(e),method:ht.k.POST,data:n})};!function(t){t.TwentyOneDays="global_trial_21_v1",t.Freemium="global_freemium_v1"}(Nt||(Nt={}));var Ft,_t=function(t){return d.I.isCountryCodeUS(t)||d.I.isCountryCodeUK(t)?Nt.Freemium:Nt.TwentyOneDays},Gt=["Primary","Secondary","K12","Special","TAFE","University"],Dt=["Elementary","Middle School","High School","College","Other"],Mt={au:Gt,nz:Gt,uk:["Primary","Secondary","Primary & Secondary","Special","Sixth Form College","FE College","University","Other"],us:Dt};function Rt(t){return Rt="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},Rt(t)}function Kt(){Kt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new A(n||[]);return o(i,"_invoke",{value:j(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",d="suspendedYield",h="executing",m="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(T([])));E&&E!==r&&n.call(E,i)&&(w=E);var x=b.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==Rt(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,r,n){var o=p;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=C(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function C(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,C(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(Rt(e)+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(k.prototype),u(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new k(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.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}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},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),O(r),y}},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;O(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}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,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Bt(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Bt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}!function(t){t.Published="Published",t.Draft="Draft"}(Ft||(Ft={}));var Yt=function(t,e,r,n){return new(r||(r=Promise))((function(o,a){function i(t){try{l(n.next(t))}catch(t){a(t)}}function c(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,c)}l((n=n.apply(t,e||[])).next())}))};function qt(t,e){return e?"".concat(t," ").concat(e):t}var Vt=function(t){return i.createElement("h1",{className:qt("text-center mb-2 h4",t.className)},t.children)},$t=function(t){return i.createElement("div",{className:qt("text-center text-sm px-2 px-lg-4",t.className)},t.children)},Jt=function(t){return i.createElement("p",{className:qt("",t.className)},t.children)};function Zt(t){return Zt="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},Zt(t)}function Ht(t,e,r){return(e=function(t){var e=function(t){if("object"!=Zt(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Zt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Zt(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Wt(t){var e=Ht(Ht(Ht(Ht(Ht(Ht(Ht(Ht({},n.Available,t.imageUrls.statusImages.available),n.Active,t.imageUrls.statusImages.active),n.Expired,t.imageUrls.statusImages.expired),n.NotRequired,t.imageUrls.statusImages.notRequired),n.Unavailable,t.imageUrls.statusImages.unavailable),n.Unsupported,t.imageUrls.statusImages.unsupported),n.UserAutoJoinAllowed,t.imageUrls.statusImages.notRequired),n.UserJoinApprovalRequired,t.imageUrls.statusImages.notRequired);return i.createElement("div",{className:"d-flex justify-content-center my-4 px-2 px-lg-4"},i.createElement("img",{src:e[t.trialStatus],className:"w-100 h-auto"}))}var Xt=r(69624);function Qt(t){var e=(null==t?void 0:t.previousStepIds)&&"find-school"===t.previousStepIds[t.previousStepIds.length-1],r=(null==t?void 0:t.schoolName)||"Your school";return i.createElement($t,{className:"mb-3"},e?i.createElement(i.Fragment,null,i.createElement(Vt,null,r,i.createElement("br",null),"already has ClickView 🎉"),i.createElement(Jt,{className:"mt-3"},"If your school has SSO ",i.createElement("a",{href:t.getSignInUrl({email:t.email,customerId:t.customerId}),className:"info-link"},"click here to sign in.")),i.createElement(Jt,null,"Otherwise please contact your school admin for access.")):i.createElement(i.Fragment,null,i.createElement(Vt,null,"Good News!"),i.createElement(Jt,null,"An account already exists for:",i.createElement("br",null)," ",i.createElement("strong",null,t.email)),i.createElement(Jt,null,i.createElement("a",{href:t.getSignInUrl({email:t.email}),className:"btn btn-dark btn-lg w-100"},"Sign into ClickView"))),i.createElement(Jt,null,"Need Help? ",i.createElement("a",{href:Xt.F.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link",target:"_blank"},"Contact our Help Centre.")))}function te(t){return te="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},te(t)}function ee(){ee=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new A(n||[]);return o(i,"_invoke",{value:j(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",d="suspendedYield",h="executing",m="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(T([])));E&&E!==r&&n.call(E,i)&&(w=E);var x=b.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==te(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,r,n){var o=p;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=C(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function C(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,C(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(te(e)+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(k.prototype),u(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new k(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.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}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},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),O(r),y}},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;O(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function re(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ne(t,e);var r={}.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)?ne(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 ne(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function oe(t){return oe="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},oe(t)}function ae(t,e,r){return(e=function(t){var e=function(t){if("object"!=oe(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=oe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==oe(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ie=ae(ae(ae(ae(ae(ae(ae(ae({},n.Available,(function(t){var e=re(i.useState(0),2),r=e[0],n=e[1],o=re(i.useState(!1),2),c=o[0],l=o[1];if(null==t?void 0:t.email)return i.createElement($t,null,i.createElement(Vt,null,"Check your inbox!"),i.createElement(Jt,null,"An email has been sent to ",i.createElement("strong",null,t.email),"."),!!t.userId&&i.createElement(i.Fragment,null,r<1?i.createElement("button",{onClick:function(e){return o=this,a=void 0,i=void 0,c=ee().mark((function o(){return ee().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return null==e||e.preventDefault(),o.prev=1,o.next=4,Ut(t.ajaxUrls,t.userId,{email:t.email,appLink:t.pageAppLinkString});case 4:n(r+1),o.next=10;break;case 7:o.prev=7,o.t0=o.catch(1),l(!0);case 10:t.logUserAction({},{actionType:N.Vw.Click,descriptor:N.Yu.ResendEmail});case 11:case"end":return o.stop()}}),o,null,[[1,7]])})),new(i||(i=Promise))((function(t,e){function r(t){try{l(c.next(t))}catch(t){e(t)}}function n(t){try{l(c.throw(t))}catch(t){e(t)}}function l(e){var o;e.done?t(e.value):(o=e.value,o instanceof i?o:new i((function(t){t(o)}))).then(r,n)}l((c=c.apply(o,a||[])).next())}));var o,a,i,c},className:"btn btn-outline-dark btn-lg mb-3"},"Resend verification email"):i.createElement(Jt,null,"✅ Email has been resent!"),i.createElement(Jt,null,"Wrong email? ",i.createElement("button",{onClick:function(e){null==e||e.preventDefault(),t.logUserAction({},{actionType:N.Vw.Click,descriptor:N.Yu.WrongEmail}),t.nextStep({step:"enter-email",userType:a.Staff})},className:"btn info-link p-0"},"Update email address")),c&&i.createElement(Jt,{className:"mb-0 text-danger"},"❌ There was a problem resending the email. Please try again later or contact our ",i.createElement("a",{href:Xt.F.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link"},"support"))))})),n.Active,Qt),n.Expired,(function(t){var e=Xt.F.getMarketingSalesContactForGeoLocation(t.geoLocation),r=(null==t?void 0:t.previousStepIds)&&"find-school"===t.previousStepIds[t.previousStepIds.length-1],n=(null==t?void 0:t.schoolName)||"Your school";return i.createElement($t,null,i.createElement(Vt,null,r?"".concat(n," trial has expired"):"Your trial has expired"),i.createElement(Jt,null,"Please contact our ",i.createElement("a",{href:e,className:"info-link",target:"_blank"},"ClickView Sales Team")))})),n.NotRequired,Qt),n.Unavailable,(function(t){var e=Xt.F.getMarketingSalesContactForGeoLocation(t.geoLocation);return i.createElement($t,null,i.createElement(Vt,null,"Your school no longer",i.createElement("br",null)," has access to ClickView"),i.createElement(Jt,null,"Please contact our ",i.createElement("a",{href:e,className:"info-link"},"ClickView Sales Team")," for more information."))})),n.Unsupported,(function(){return i.createElement($t,null,i.createElement(Vt,{className:"px-2 px-lg-4"},"ClickView isn't currently ",i.createElement("br",null)," available for your school"),i.createElement(Jt,null,"We're working hard to get ClickView ready for more people."))})),n.UserAutoJoinAllowed,Qt),n.UserJoinApprovalRequired,Qt);function ce(t){var e=ie[t.trialStatus];return i.createElement(e,Object.assign({},t))}var le="young-student",ue={"trial-status":function(t){return i.useEffect((function(){var e={actionType:N.Vw.Create,descriptor:N.Yu.DeadEnd,workflowPhase:N.eu.Discard};t.trialCreated&&(e.descriptor=N.Yu.TrialCreated,e.workflowPhase=N.eu.Complete),t.logUserAction({},e)}),[]),i.createElement(i.Fragment,null,i.createElement(Wt,{trialStatus:t.trialStatus,imageUrls:t.imageUrls}),i.createElement(ce,Object.assign({},t)))},"added-to-braze":function(t){return i.useEffect((function(){t.logUserAction({},{actionType:N.Vw.Create,descriptor:N.Yu.TrialRequested,workflowPhase:N.eu.Complete})}),[]),i.createElement(i.Fragment,null,i.createElement(Wt,{trialStatus:n.Available,imageUrls:t.imageUrls}),i.createElement($t,{className:"mb-3"},i.createElement(Vt,null,"Submitted!"),i.createElement(Jt,null,"Thank you for your interest in trialing ClickView. We will be in touch with you as soon as possible.")))},"young-student":function(t){var e=Xt.F.getFreeResourcesForGeoLocation(t.geoLocation);return i.useEffect((function(){c.SG.set(le,!0)}),[]),i.createElement(i.Fragment,null,i.createElement(Wt,{trialStatus:n.Active,imageUrls:t.imageUrls}),i.createElement($t,{className:"mb-3"},i.createElement(Vt,null,"Discover our free content"),i.createElement(Jt,null,"Click the button below to explore our videos"),i.createElement("a",{href:e,className:"btn btn-lg btn-dark w-100",target:"_blank"},"Start watching now")))},"requested-access":function(t){return i.createElement(i.Fragment,null,i.createElement(Wt,{trialStatus:n.Available,imageUrls:t.imageUrls}),i.createElement($t,{className:"mb-3"},i.createElement(Vt,null,"You've requested access!"),i.createElement(Jt,null,"We've sent a request to your ClickView admin. Once your account is ready, you'll receive an email notification with instructions on how to get started with ClickView.")))}};function se(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return fe(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?fe(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fe(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function pe(t,e,r){return"".concat(t.padStart(4,"0"),"-").concat(e.padStart(2,"0"),"-").concat(r.padStart(2,"0"))}var de=r(49036),he=r(53364),me=r(98027),ye=r(93824);function ve(t){return ve="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},ve(t)}function ge(){ge=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new A(n||[]);return o(i,"_invoke",{value:j(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",d="suspendedYield",h="executing",m="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(T([])));E&&E!==r&&n.call(E,i)&&(w=E);var x=b.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==ve(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,r,n){var o=p;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=C(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function C(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,C(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(ve(e)+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(k.prototype),u(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new k(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.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}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},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),O(r),y}},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;O(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}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,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return we(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?we(t,e):void 0}}(t,e)||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 we(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function Se(t,e,r){return(e=function(t){var e=function(t){if("object"!=ve(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=ve(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ve(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ee=new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/),xe=Se(Se(Se(Se({},ye.C.AU,"valerie.frizzle@school.edu.au"),ye.C.UK,"valerie.frizzle@school.gov.uk"),ye.C.US,"valerie.frizzle@school.gov"),ye.C.NZ,"valerie.frizzle@school.nz"),Le=Se(Se(Se(Se({},ye.C.AU,"/contact-us/support"),ye.C.US,"/contact-us/support"),ye.C.NZ,"/contact-us/"),ye.C.UK,"/contact-us/technical/");function ke(t){return xe[d.I.getCountryCode(t.countryCode)]||xe.us}var je=[n.Expired,n.NotRequired,n.Unavailable,n.Unsupported,n.Active];function Ce(t){var e;switch(null===(e=null==t?void 0:t.body)||void 0===e?void 0:e.type){case"user-type-not-supported":return"Students may not request to join schools.";case"join-request-already-pending":return"Your request is awaiting administrator approval.";case"join-request-already-denied":return"Your request has been denied by an administrator.";default:return"Something went wrong."}}var Ne=r(12238);function Oe(t){return Oe="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},Oe(t)}function Ae(){Ae=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new A(n||[]);return o(i,"_invoke",{value:j(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",d="suspendedYield",h="executing",m="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(T([])));E&&E!==r&&n.call(E,i)&&(w=E);var x=b.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==Oe(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,r,n){var o=p;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=C(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function C(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,C(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(Oe(e)+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(k.prototype),u(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new k(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.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}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},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),O(r),y}},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;O(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Te(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function Ie(t){return Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ie(t)}function Pe(){Pe=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new A(n||[]);return o(i,"_invoke",{value:j(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",d="suspendedYield",h="executing",m="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(T([])));E&&E!==r&&n.call(E,i)&&(w=E);var x=b.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==Ie(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,r,n){var o=p;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=C(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function C(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,C(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(Ie(e)+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(k.prototype),u(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new k(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.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}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},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),O(r),y}},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;O(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}var Ue=function(t,e,r,n){return new(r||(r=Promise))((function(o,a){function i(t){try{l(n.next(t))}catch(t){a(t)}}function c(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,c)}l((n=n.apply(t,e||[])).next())}))},Fe=r(80247);function _e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Ge(t,e);var r={}.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=Array(e);r<e;r++)n[r]=t[r];return n}function De(t){var e=t.filteredSchoolsList,r=t.getSchoolName,n=t.onSchoolSuggestionClick,o=t.selectedIndex;return i.createElement(i.Fragment,null,e.map((function(t,e){return i.createElement(et.L,{className:"".concat(it," ").concat(o-1===e?ut:""),key:t.id,onKeyDown:function(e){return"Enter"===e.key&&n(t)},onMouseDown:function(){return n(t)},onClick:function(){return n(t)}},r(t)," ",i.createElement("br",null),i.createElement("small",{className:"text-secondary"},function(t){var e=[];return t.city&&e.push(t.city.toLowerCase().split(" ").map((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})).join(" ")),t.province&&e.push(t.province),t.postCode&&e.push(t.postCode),e.join(" ")}(t)))})))}function Me(t){return i.createElement("div",{className:"info-link ".concat(it," ").concat("XXSnS"," ").concat(t.selected?ut:""),onKeyDown:function(e){return"Enter"===e.key&&t.handleNoSuggestion()},onMouseDown:t.handleNoSuggestion,onClick:t.handleNoSuggestion},"Can't find your school?")}function Re(t){var e,r,n=i.useRef(),o=_e(i.useState(!0),2),a=o[0],c=o[1],l=_e(i.useState(t.data.schoolName&&t.data.schoolPostCode?t.data.schoolName+", "+t.data.schoolPostCode:t.data.schoolName?t.data.schoolName:""),2),u=l[0],s=l[1],p=_e(i.useState(),2),d=p[0],h=p[1],m=(0,Q.N)(u,250),y=$({onSelected:function(e){if(d||e)if(e!==d.length){var r=d[e];r&&O(r)}else t.onClickNoSuggestions(u)},itemCount:null!==(e=(null==d?void 0:d.length)+1)&&void 0!==e?e:0,hideOnBlur:t.hideOnBlur}),v=y.selectedIndex,g=y.onKeyDown,b=y.containerRef,w=y.hide,S=y.onBlur,E=y.onFocus,x=!!(null===(r=t.data)||void 0===r?void 0:r.prospectId),L=a&&!x,k=!a&&!x&&(null==d?void 0:d.length)<5,j=(null==d?void 0:d.length)&&!x;function C(e){(t.data.schoolName||t.data.prospectId)&&t.clearData(),e!==u&&s(e)}function N(e){if(t.data.latitude||t.data.longitude){c(!0);var r={latitude:t.data.latitude,longitude:t.data.longitude};e&&e.length&&(r.query=e),Ot.search(t.searchUrl,r,(function(t){return h(t)}),null,(function(){return c(!1)}))}else c(!1)}function O(e){s(A(e)),t.setData({prospectId:e.id,schoolName:e.name,schoolPostCode:e.postCode,schoolType:e.prospectType,province:e.province,city:e.city,country:e.countryCode})}function A(t){return t.name}i.useEffect((function(){x||(m.length?!x&&m.length>1&&m===u&&N(m):N())}),[m,x]);var T=(j||L||k)&&!t.disabled&&!w,I="form-control ".concat(T?nt:lt),P="form-group position-relative";return"lg"===t.size&&(I+=" form-control-lg",P+=" ".concat(ct)),i.createElement("div",{className:P},i.createElement("label",{className:t.labelClassName,htmlFor:"school-input"},"School:",t.required&&i.createElement("span",{className:"text-danger"},"*")),i.createElement(f.w,{id:"school-input",value:u,onChange:function(t){return C(t.currentTarget.value)},ref:n,className:I,type:"text",autoComplete:"off",placeholder:t.placeholder||"Select your school below",disabled:t.disabled,autoFocus:!0,onClickClear:function(){C(""),n.current.focus()},onKeyDown:g,onFocus:E,onBlur:S}),i.createElement("div",{className:"position-absolute z-1 w-100 ".concat(ot," ").concat(w?"d-none":"")},i.createElement("div",{className:"".concat(at," ").concat(T?"":"d-none"),ref:b},j?i.createElement(De,{filteredSchoolsList:d,onSchoolSuggestionClick:O,getSchoolName:A,selectedIndex:v}):L&&i.createElement("div",{className:"".concat("W7rH_"," py-4 d-flex justify-content-center")},i.createElement(Fe.Z,{animation:"border"})),!L&&k&&i.createElement(Me,{selected:v===d.length+1,handleNoSuggestion:function(){t.onClickNoSuggestions(u)}}))))}function Ke(t){return Ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ke(t)}function ze(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Be(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Be(t,e):void 0}}(t,e)||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 Be(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function Ye(t){return i.createElement(i.Fragment,null,i.createElement(et.L,{className:"\n d-flex\n flex-column\n justify-content-between\n h-100\n p-3\n border\n rounded\n rounded-3\n mx-auto\n d-sm-block\n d-none\n ".concat("R8ZPi"," ").concat(t.selected?"SNEmW":""),onClick:function(){return t.onClick(t.type)}},i.createElement("img",{src:t.imageSrc,className:"rounded-top mx-auto pb-2"}),i.createElement("div",{className:"py-2"},i.createElement("span",{className:"h4"},t.buttonText))),i.createElement(et.L,{className:"btn btn-lg btn-outline-dark w-100 d-sm-none d-block mx-auto ".concat("BSfO7"),onClick:function(){return t.onClick(t.type)}},t.buttonText))}var qe={"select-type":function(t){function e(e){t.logUserAction({userType:e},{actionType:N.Vw.Click,workflowPhase:N.eu.Next,descriptor:e===a.Staff?N.Yu.Educator:N.Yu.Student}),e!==a.Staff?t.nextStep({step:"enter-age",userType:e}):t.nextStep({step:"enter-email",userType:e})}return i.createElement("div",{className:"text-center"},i.createElement("h1",{className:"h4"},"Access educational videos at your fingertips"),i.createElement("p",{className:"mb-3"},"Let's get you set up so you can access ClickView."),i.createElement("div",{className:"row"},i.createElement("div",{className:"col-lg-6 mb-3"},i.createElement(Ye,{type:a.Staff,buttonText:"I'm an educator",imageSrc:t.imageUrls.educator,onClick:e,selected:t.userType===a.Staff})),i.createElement("div",{className:"col-lg-6 mb-3"},i.createElement(Ye,{type:a.Learner,buttonText:"I'm a student",imageSrc:t.imageUrls.student,onClick:e,selected:t.userType===a.Learner}))))},"enter-email":function(t){var e,r,n,c,l=be(i.useState(!1),2),u=l[0],s=l[1],p=be(i.useState((null==t?void 0:t.email)||""),2),y=p[0],v=p[1],g=be(i.useState(),2),b=g[0],w=g[1],S=(e=t.geoLocation,r=Xt.F.getMarketingUrlForGeoLocation(e),n=d.I.getCountryCode(null==e?void 0:e.countryCode),c=Le[n],"".concat(r).concat(c));function E(e){null==e||e.preventDefault(),function(){var e,r,n,a;e=this,r=void 0,n=void 0,a=ge().mark((function e(){var r;return ge().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(y.length?Ee.test(y)||(w("Please use your school email address."),0):(w("Please enter your school email address."),0)){e.next=2;break}return e.abrupt("return");case 2:return s(!0),w(""),e.prev=4,e.next=7,It(t.ajaxUrls,{email:y});case 7:r=e.sent,e.next=14;break;case 10:return e.prev=10,e.t0=e.catch(4),w("Something went wrong! Please try again later."),e.abrupt("return");case 14:if(s(!1),r.status!==o.InvalidEmail){e.next=18;break}return w("Please use your school email address."),e.abrupt("return");case 18:if(t.logUserAction({},{actionType:N.Vw.Click,workflowPhase:N.eu.Next,descriptor:N.Yu.EnterEmail}),!je.includes(r.status)){e.next=22;break}return t.complete({completionStep:"trial-status",email:y,trialStatus:r.status,trialCreated:!1}),e.abrupt("return");case 22:t.nextStep({step:"find-school",email:y});case 23:case"end":return e.stop()}}),e,null,[[4,10]])})),new(n||(n=Promise))((function(t,o){function i(t){try{l(a.next(t))}catch(t){o(t)}}function c(t){try{l(a.throw(t))}catch(t){o(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(t){t(r)}))).then(i,c)}l((a=a.apply(e,r||[])).next())}))}()}return i.createElement(i.Fragment,null,i.createElement("div",{className:"text-center"},i.createElement("h1",{className:"h4"},"Let's set up your account"),i.createElement("p",null,"Enter your school email address")),i.createElement("form",{onSubmit:E,noValidate:!0},i.createElement("div",{className:"form-group mb-3"},i.createElement(f.w,{value:y,onChange:function(t){t.preventDefault(),v(t.target.value),w("")},name:"email-input",id:"email-input",type:"email",className:"form-control form-control-lg ".concat(b?"is-invalid":""),placeholder:ke(t.geoLocation),autoComplete:"false",autoCorrect:"false",autoFocus:!0,onClickClear:function(){return v("")},"aria-errormessage":"email-inputError"}),b&&i.createElement(i.Fragment,null,i.createElement(h.A,{name:"error-input"},b),i.createElement("small",null,"Having an issue with your email?",i.createElement("a",{href:S,className:"info-link ps-1",target:"_blank",onClick:function(){t.logUserAction({},{actionType:N.Vw.Click,descriptor:N.Yu.ContactUs})}},"Contact our team")))),i.createElement(m.m,{showSpinner:u,variant:"dark",className:"btn-lg mb-3 w-100",disabled:u,onClick:E},"Continue")),t.userType===a.Staff&&i.createElement(he.b,{idps:t.globalIdps,className:"mt-n3",attribution:(0,me.w)()}),i.createElement("div",{className:"text-center"},i.createElement(de.f,{link:t.getSignInUrl({email:y}),onClick:function(){t.logUserAction({},{actionType:N.Vw.Click,descriptor:N.Yu.SignIn})}})))},"find-school":function(t){var e,r,o=t.email,c=t.userType,l=ze(i.useState({schoolLocality:t.schoolLocality,country:t.country,longitude:t.longitude,latitude:t.latitude,city:t.city,province:t.province,prospectId:t.prospectId,schoolName:t.schoolName,schoolType:t.schoolType,schoolPostCode:t.schoolPostCode}),2),u=l[0],s=l[1],f=ze(i.useState(t.trialStatus),2),p=f[0],d=f[1],h=ze(i.useState(),2),y=h[0],v=h[1],g=ze(i.useState(!1),2),w=g[0],S=g[1],E=ze(i.useState(!1),2),x=E[0],L=E[1],k=ze(i.useState(!1),2),j=k[0],C=k[1],T=function(t){var e=t.loading,r=t.canSubmitForm,o=t.setSubmissionError,i=t.prospectStatus,c=t.userType,l=t.logStepEvent,u=t.logUserAction,s=t.nextStep,f=t.data,p=t.productName,d=t.ajaxUrls,h=t.complete,m=t.setLoadingState,y=t.email,v=t.pageAppLinkString,g=t.setProperty,w=t.logBrazeEvent;function S(){return Ue(this,void 0,void 0,Pe().mark((function t(){return Pe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e=d,r={prospectId:f.prospectId,email:y},e.productName!==Tt.X.Lite?Promise.reject():kt.asyncFetch({url:e.autoJoin,method:ht.k.POST,data:r});case 3:u({},{actionType:N.Vw.Click,descriptor:N.Yu.AutoJoin}),h(Object.assign({completionStep:"trial-status",trialCreated:!0,trialStatus:n.Available},f)),t.next=12;break;case 7:return t.prev=7,t.t0=t.catch(0),o("Something went wrong! Please try again later."),m(!1),t.abrupt("return");case 12:case"end":return t.stop()}var e,r}),t,null,[[0,7]])})))}function E(){var t;return Ue(this,void 0,void 0,Pe().mark((function e(){var r,o;return Pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=void 0,!(null==f?void 0:f.prospectId)||i!==n.NotRequired){e.next=6;break}return e.next=4,Ot.getLookups(d,f.prospectId);case 4:o=e.sent,r=null===(t=o.find((function(t){return t.type===Ne.C.MasterId})))||void 0===t?void 0:t.externalId;case 6:h(Object.assign({completionStep:"trial-status",trialStatus:i,trialCreated:!1,customerId:r},f)),l();case 8:case"end":return e.stop()}}),e)})))}function x(){return Ue(this,void 0,void 0,Pe().mark((function t(){var e,r;return Pe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(c===a.Staff){t.next=2;break}return t.abrupt("return");case 2:e={email:y,custom:{accountName:null==f?void 0:f.schoolName,accountAddress:{countryCode:null==f?void 0:f.country,province:b.F.parseProvince(f.province)},orgSubType:b.F.getSchoolType(null==f?void 0:f.schoolType),syncToCrm:!0},event:{accountCountry:null==f?void 0:f.country,accountPostCode:null==f?void 0:f.schoolPostCode,accountState:b.F.parseProvince(f.province)}},r={form_type:"trial-sign-up",prospect_id:null==f?void 0:f.prospectId},w({user:e,event:{eventType:b.F.getProductFormEventType(),additionalData:r}});case 5:case"end":return t.stop()}}),t)})))}function L(){var t;return Ue(this,void 0,void 0,Pe().mark((function e(){var r;return Pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(!0),e.prev=1,e.next=4,Pt(d,{userType:c,email:y,prospectId:null==f?void 0:f.prospectId,appLink:v,accessPolicy:_t(f.country),attribution:Object.assign(Object.assign({},O.N.getDecodedAttributionData()),{utms:A.F.getUtmParameters()})});case 4:r=e.sent,e.next=12;break;case 7:return e.prev=7,e.t0=e.catch(1),o("Something went wrong! Please try again later."),m(!1),e.abrupt("return");case 12:i===n.UserAutoJoinAllowed&&u({},{actionType:N.Vw.Click,descriptor:N.Yu.AutoJoin}),g("userId",r.id),h(Object.assign({completionStep:"trial-status",userId:r.id,trialCreated:!0,trialStatus:n.Available,customerId:null===(t=r.data)||void 0===t?void 0:t.customerId},f)),x(),l();case 17:case"end":return e.stop()}}),e,null,[[1,7]])})))}return function(){return Ue(this,void 0,void 0,Pe().mark((function t(){return Pe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=2;break}return t.abrupt("return");case 2:if(r()){t.next=5;break}return o("Something went wrong! Please try again later."),t.abrupt("return");case 5:if(c!==a.Staff){t.next=14;break}if(i!==n.Unsupported){t.next=8;break}return t.abrupt("return",(s(Object.assign({step:"add-to-braze",trialStatus:i},f)),void l()));case 8:if(i!==n.UserJoinApprovalRequired){t.next=10;break}return t.abrupt("return",(s(Object.assign({step:"request-access"},f)),void l()));case 10:if(i!==n.UserAutoJoinAllowed||p!==Tt.X.Lite){t.next=14;break}return t.next=13,S();case 13:case 17:case 20:return t.abrupt("return",t.sent);case 14:if(i===n.Active||i===n.Available||i===n.UserAutoJoinAllowed&&p===Tt.X.Auth){t.next=18;break}return t.next=17,E();case 18:return t.next=20,L();case 21:case"end":return t.stop()}}),t)})))}}(Object.assign(Object.assign({},t),{prospectStatus:p,loading:w,data:u,canSubmitForm:I,setSubmissionError:v,logStepEvent:function(){var e={actionType:N.Vw.Click,descriptor:N.Yu.FindSchool,workflowPhase:N.eu.Next};t.logUserAction(u||{},e)},setLoadingState:function(t){L(t),C(t),S(t)},setProperty:P}));function I(){if(!u||!o||!c)return!1;var t=u.prospectId;return!!(o&&c&&t)}function P(e,r){"prospectId"===e&&r&&(S(!0),function(t,e,r,n,o){var a=t.prospectStatus(e.prospectId);a=At._.urlBuilder(a,{email:e.email}),kt.fetch({url:a,success:r,error:n,always:o})}(t.ajaxUrls,{prospectId:r.toString(),email:t.email},(function(t){d(t.status)}),(function(){console.log("error")}),(function(){S(!1)}))),s((function(t){return Object.assign(Object.assign({},t),(n={},a=r,(o=function(t){var e=function(t){if("object"!=Ke(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Ke(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ke(e)?e:e+""}(o=e))in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a,n));var n,o,a}))}function U(){P("prospectId",void 0),P("schoolName",""),P("schoolPostCode",void 0),v(void 0)}return i.createElement(i.Fragment,null,i.createElement("div",{className:"text-center"},i.createElement("h1",{className:"h4"},"Next, let's find your school"),i.createElement("p",null,"au"===(null==(r=null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode)?void 0:r.toLowerCase())?"Enter your school postcode or suburb":"us"===(null==r?void 0:r.toLowerCase())?"Enter your school ZIP code or city":"Enter your school postcode or city")),i.createElement(dt,{data:u,setData:function(t){var e=t.longitude,r=t.latitude,n=t.schoolLocality,o=t.country,a=t.city,i=t.province;e&&P("longitude",e),r&&P("latitude",r),o&&P("country",o),a&&P("city",a),i&&P("province",i),n&&P("schoolLocality",n)},clearData:function(){P("schoolLocality",void 0),P("longitude",void 0),P("latitude",void 0),P("city",void 0),P("province",void 0),P("country",void 0),U()},disabled:x,geoLocation:t.geoLocation,labelClassName:"d-none",logUserAction:t.logUserAction,googleMapsApiKey:t.googleMapsApiKey,autoFocus:!0,size:"lg",useGeoLocationApi:!0}),!!(u&&u.schoolLocality&&u.longitude&&u.latitude)&&i.createElement(Re,{data:u,setData:function(t){P("prospectId",t.prospectId),P("schoolName",t.schoolName),P("schoolPostCode",t.schoolPostCode),P("schoolType",t.schoolType),P("province",t.province),P("city",t.city),P("country",t.country)},clearData:U,disabled:j,searchUrl:t.ajaxUrls.searchProspect,onClickNoSuggestions:function(e){t.nextStep({step:"cant-find-school",prospectId:u.prospectId,schoolName:e,schoolLocality:u.schoolLocality,longitude:u.longitude,latitude:u.latitude,country:u.country,city:u.city,province:u.province}),t.logUserAction({},{actionType:N.Vw.Click,descriptor:N.Yu.CantFindSchool,workflowPhase:N.eu.Next})},size:"lg",labelClassName:"d-none"}),y&&i.createElement("p",{className:"text-danger mb-2"},y),I()&&i.createElement(m.m,{className:"btn-lg w-100",variant:"dark",onClick:T,showSpinner:x||j||w,disabled:x||j||w},"Get started"))},"cant-find-school":function(t){var e,r,o,c=zt(i.useState({prospectId:t.prospectId,schoolName:t.schoolName,schoolType:t.schoolType,schoolLocality:t.schoolLocality,country:t.country,province:t.province,city:t.city,longitude:t.longitude,latitude:t.latitude}),2),l=c[0],u=c[1],s=zt(i.useState(),2),f=s[0],p=s[1],h=zt(i.useState(!1),2),y=h[0],v=h[1],g=(r=l.country||(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode),o=d.I.getCountryCode(r),Mt[o]||Dt);function w(){var t=l.schoolName,e=l.schoolType,r=l.country;return!!(t&&e&&r)}function S(t,e){u((function(r){return Object.assign(Object.assign({},r),(n={},a=e,(o=function(t){var e=function(t){if("object"!=Rt(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Rt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Rt(e)?e:e+""}(o=t))in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a,n));var n,o,a}))}function E(e){return Yt(this,void 0,void 0,Kt().mark((function r(){var n,o;return Kt().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n={email:t.email,custom:{accountName:null==l?void 0:l.schoolName,accountAddress:{countryCode:null==l?void 0:l.country,province:b.F.parseProvince(l.province)},orgSubType:b.F.getSchoolType(null==l?void 0:l.schoolType),syncToCrm:!0},event:{accountCountry:null==l?void 0:l.country,accountPostCode:null==l?void 0:l.schoolPostCode,accountState:b.F.parseProvince(l.province)}},o={form_type:"trial-sign-up",prospect_id:null==l?void 0:l.prospectId},t.logBrazeEvent({user:n,event:{eventType:b.F.getProductFormEventType(),additionalData:o,callback:e}});case 3:case"end":return r.stop()}}),r)})))}return i.createElement(i.Fragment,null,i.createElement("div",{className:"text-center"},i.createElement("h1",{className:"h4"},"Tell us more about your school"),i.createElement("p",null,"Please enter your school details.")),i.createElement("div",{className:"form-group"},i.createElement("label",{className:"d-block",htmlFor:"school-name-input"},"Name of school"),i.createElement("input",{type:"text",value:(null==l?void 0:l.schoolName)||"",onChange:function(t){S("schoolName",t.target.value)},id:"school-name-input",className:"form-control form-control-lg",autoComplete:"off",placeholder:"Enter name of school",autoFocus:!0})),i.createElement("div",{className:"form-group"},i.createElement("label",{className:"d-block",htmlFor:"school-type-select"},"Type of school"),i.createElement("select",{id:"school-type-select",className:"form-select form-select-lg ".concat(l.schoolType?"":"text-secondary"),autoComplete:"off",value:l.schoolType||"none",onChange:function(t){S("schoolType",t.target.value)}},i.createElement("option",{value:"none",className:"text-secondary",disabled:!0},"Select type of school"),g.map((function(t){return i.createElement("option",{value:t,key:t,className:"text-dark"},t)})))),i.createElement(dt,{data:l,setData:function(t){var e=t.longitude,r=t.latitude,n=t.schoolLocality,o=t.country,a=t.city,i=t.province;e&&S("longitude",e),r&&S("latitude",r),o&&S("country",o),a&&S("city",a),i&&S("province",i),n&&S("schoolLocality",n)},clearData:function(){S("schoolLocality",void 0),S("longitude",void 0),S("latitude",void 0),S("city",void 0),S("province",void 0),S("country",void 0),p("")},disabled:!1,labelClassName:"d-block",geoLocation:t.geoLocation,logUserAction:t.logUserAction,googleMapsApiKey:t.googleMapsApiKey,autoFocus:!1,size:"lg",useGeoLocationApi:!0}),f&&i.createElement("div",{className:"text-danger mb-3"},f),w()&&i.createElement(m.m,{className:"btn-lg w-100",variant:"dark",onClick:function(e){var r;return Yt(this,void 0,void 0,Kt().mark((function o(){var i,c,u,s,f;return Kt().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(e.preventDefault(),w()){o.next=3;break}return o.abrupt("return");case 3:return t.logUserAction(l,{actionType:N.Vw.Click,workflowPhase:N.eu.Next,descriptor:N.Yu.CantFindSchool}),v(!0),o.prev=5,o.next=8,Ot.create(t.ajaxUrls,{name:l.schoolName,status:Ft.Draft,countryCode:l.country,prospectType:l.schoolType,city:l.city,postCode:l.schoolPostCode,province:b.F.parseProvince(l.province)});case 8:if((i=o.sent).id){o.next=13;break}return v(!1),p("Error. Something went wrong."),o.abrupt("return");case 13:o.next=20;break;case 15:return o.prev=15,o.t0=o.catch(5),v(!1),p("Error. Something went wrong."),o.abrupt("return");case 20:return o.prev=20,c={prospectId:i.id,email:t.email,userType:t.userType,accessPolicy:_t(l.country),appLink:t.pageAppLinkString,attribution:Object.assign(Object.assign({},O.N.getDecodedAttributionData()),{utms:A.F.getUtmParameters()})},o.next=24,Pt(t.ajaxUrls,c);case 24:if(u=o.sent,s={completionStep:"trial-status",email:t.email,userId:u.id,prospectId:i.id,schoolName:l.schoolName,schoolLocality:l.schoolLocality,country:l.country,schoolType:l.schoolType,city:l.city,schoolPostCode:l.schoolPostCode,latitude:l.latitude,longitude:l.longitude,province:l.province,trialStatus:n.Available,trialCreated:!0,customerId:null===(r=u.data)||void 0===r?void 0:r.customerId},(null==t?void 0:t.userType)!==a.Staff){o.next=30;break}return o.next=29,E((function(e){e||console.error("Failed to submit create trial data to braze."),t.complete(s)}));case 29:return o.abrupt("return");case 30:t.complete(s),o.next=44;break;case 33:if(o.prev=33,o.t1=o.catch(20),o.t1.body){o.next=39;break}return v(!1),p("Error. Something went wrong."),o.abrupt("return");case 39:if(400!==(f=o.t1).body.status||"trial-not-available"!==f.body.type){o.next=43;break}return t.nextStep(Object.assign(Object.assign({step:"add-to-braze"},l),{prospectId:i.id,trialStatus:n.Unavailable})),o.abrupt("return");case 43:console.error(o.t1);case 44:case"end":return o.stop()}}),o,null,[[5,15],[20,33]])})))},showSpinner:y,disabled:y},"Get started"))},completed:function(t){var e=ue[t.completionStep];return i.createElement("div",{className:"d-flex justify-content-center flex-column mx-auto px-2"},i.createElement(e,Object.assign({},t)))},"add-to-braze":function(t){var e,r=E(i.useState(!1),2),o=r[0],c=r[1],l=E(i.useState({}),2),f=l[0],p=l[1];function d(t){p(t?{}:Object.assign(Object.assign({},f),{submission:"Something went wrong! Please try again later."})),c(!1)}function h(){t.complete({completionStep:"added-to-braze",trialCreated:!1,trialStatus:null})}return i.useEffect((function(){t.userType===a.Learner&&t.complete({completionStep:"trial-status",trialCreated:!1,trialStatus:n.Unsupported})}),[]),i.createElement(g,{errors:f,loading:o,geoLocation:t.geoLocation,country:t.country||(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode),logUserAction:t.logUserAction,handleSubmitForm:function(e){var r,n;(function(t){var e=t.fullname,r=t.jobTitle,n=t.phone,o=C(e),a=o.firstName,i=o.surname,c={};return a&&i||(c.fullname="Please enter your full name."),(k.test(a)||k.test(i))&&(c.fullname="Please enter your full name."),e.length>L&&(c.fullname="Full name cannot exceed max length of ".concat(L," characters.")),(null==r?void 0:r.length)||(c.jobTitle="Please enter your job title."),k.test(r)&&(c.jobTitle="Please enter a valid job title."),r.length>L&&(c.jobTitle="Job Title cannot exceed max length of ".concat(L," characters.")),(null==n?void 0:n.length)||(c.phone="Please enter your phone number."),!k.test(n)&&j.test(n)||(c.phone="Please enter a valid phone number."),p(c),!Object.keys(c).length})(e)&&((null===(r=e.jobTitle)||void 0===r?void 0:r.toLowerCase().includes("student"))||(null===(n=e.jobTitle)||void 0===n?void 0:n.toLowerCase().includes("parent"))?h():function(e){var r,n,i,l;r=this,n=void 0,i=void 0,l=S().mark((function r(){var n,i,l,m,y;return S().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!o){r.next=2;break}return r.abrupt("return");case 2:if(t.userType!==a.Learner){r.next=5;break}return p(Object.assign(Object.assign({},f),{submission:"Something went wrong! Please try again later."})),r.abrupt("return");case 5:t.logUserAction({},{actionType:s.Vw.Click,workflowPhase:s.eu.Next,descriptor:s.Yu.AddToBraze}),c(!0),n=C(e.fullname),i=n.firstName,l=n.surname;try{m={email:t.email,firstName:i,lastName:l,phone:e.phone,custom:{orgSubType:b.F.getSchoolType(null==t?void 0:t.schoolType),accountName:null==t?void 0:t.schoolName,jobTitle:e.jobTitle,accountAddress:{countryCode:null==t?void 0:t.country,province:b.F.parseProvince((null==t?void 0:t.province)||"")},syncToCrm:!0,source:b.F.getSource()},event:{accountCountry:null==t?void 0:t.country,accountPostCode:null==t?void 0:t.schoolPostCode,eventTopic:b.F.getEventTopic()}},y={prospect_id:null==t?void 0:t.prospectId},t.logBrazeEvent({user:m,event:{eventType:u.ProductFormEvent.ProductTrailRequested,additionalData:y,callback:d}})}catch(t){p(Object.assign(Object.assign({},f),{submission:"Something went wrong! Please try again later."}))}Object.keys(f).length||h();case 10:case"end":return r.stop()}}),r)})),new(i||(i=Promise))((function(t,e){function o(t){try{c(l.next(t))}catch(t){e(t)}}function a(t){try{c(l.throw(t))}catch(t){e(t)}}function c(e){var r;e.done?t(e.value):(r=e.value,r instanceof i?r:new i((function(t){t(r)}))).then(o,a)}c((l=l.apply(r,n||[])).next())}))}(e))},removeErrorForKey:function(t){if(Object.keys(f).length&&f[t]){var e=Object.assign({},f);delete e[t],p(e)}},isTertiary:b.F.isTertiarySchool(t.schoolType)})},"enter-age":function(t){var e=se(i.useState(""),2),r=e[0],n=e[1],o=se(i.useState(""),2),a=o[0],c=o[1],l=se(i.useState(""),2),u=l[0],s=l[1],f=se(i.useState(null),2),p=f[0],m=f[1];var y=(new Date).getFullYear(),v="mx-2 d-inline-block text-start",g="form-control form-control-lg ".concat(p?"is-invalid":""),b="order-0",w="order-3",S=d.I.isCountryCodeUS(t.geoLocation.countryCode);return S&&(b="order-3",w="order-0"),i.createElement("form",{className:"text-center",onSubmit:function(e){if(e.preventDefault(),r&&a&&u?function(t,e,r){var n=new Date(pe(t,e,r));return!isNaN(+n)}(u,a,r)?+u>y?(m("Please enter a date in the past"),0):!(+u<y-120&&(m("Please enter a realistic date of birth"),1)):(m("Please enter a valid date"),0):(m("Please enter your date of birth"),0)){var n=new Date(pe(u,a,r)),o=y-13,i=new Date;i.setFullYear(o),n>i?t.complete({completionStep:"young-student",trialCreated:!1,trialStatus:null}):t.nextStep({step:"enter-email",userType:t.userType})}},noValidate:!0},i.createElement("h1",{className:"h4"},"Tell us a little about yourself"),i.createElement("p",null,"Please enter your date of birth"),i.createElement("div",{className:"my-4"},i.createElement("fieldset",{className:"d-flex justify-content-center","aria-describedby":"dateOfBirthError"},i.createElement("div",{className:"".concat(v," ").concat(b)},i.createElement("label",{className:"mb-0",htmlFor:"day"},"Day"),i.createElement("input",{id:"day",type:"number",className:"".concat(g," ").concat("e0Dbj"),min:"1",max:"31",placeholder:"DD",value:r,onChange:function(t){n(t.target.value),m(null)},autoFocus:!S,tabIndex:S?2:1})),i.createElement("span",{className:"h1 fw-normal mt-3 mb-0 order-1 ".concat(p?"text-danger":"")},"/"),i.createElement("div",{className:"".concat(v," ").concat(w)},i.createElement("label",{className:"mb-0",htmlFor:"month"},"Month"),i.createElement("input",{id:"month",type:"number",className:"".concat(g," ").concat("zLcQr"),min:"1",max:"12",placeholder:"MM",value:a,onChange:function(t){c(t.target.value),m(null)},autoFocus:S,tabIndex:S?1:2})),i.createElement("span",{className:"h1 fw-normal mt-3 mb-0 order-4 ".concat(p?"text-danger":"")},"/"),i.createElement("div",{className:"".concat(v," order-5")},i.createElement("label",{className:"mb-0",htmlFor:"year"},"Year"),i.createElement("input",{id:"year",name:"year",type:"number",className:"".concat(g," ").concat("XiXPP"),min:y-120,max:y,placeholder:"YYYY",value:u,onChange:function(t){s(t.target.value),m(null)},tabIndex:3}))),!!p&&i.createElement(h.A,{name:"dateofBirth"},p)),i.createElement("button",{type:"submit",className:"btn btn-lg btn-dark w-100"},"Continue"))},"request-access":function(t){var e,r,o=(e=i.useState(null),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return Te(t,e);var r={}.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)?Te(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=o[0],c=o[1];return i.createElement(i.Fragment,null,i.createElement(Wt,{trialStatus:n.UserJoinApprovalRequired,imageUrls:t.imageUrls}),i.createElement($t,{className:"mb-3"},i.createElement(Vt,null,t.schoolName,i.createElement("br",null),"already has ClickView 🎉")),i.createElement("button",{className:"btn btn-lg btn-dark w-100 mb-3",onClick:function(){var e,r,o,a,i;return r=this,o=void 0,a=void 0,i=Ae().mark((function r(){var o,a;return Ae().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,Ot.getLookups(t.ajaxUrls,t.prospectId);case 3:if(o=r.sent,a=null===(e=o.find((function(t){return t.type===Ne.C.MasterId})))||void 0===e?void 0:e.externalId){r.next=8;break}return c("Something went wrong."),r.abrupt("return");case 8:return r.next=10,i=t.ajaxUrls,l={customerId:a,email:t.email},u=void 0,s=void 0,u=i.productName===Tt.X.Auth?i.joinRequest:i.joinRequest(l.customerId),s=i.productName===Tt.X.Auth?l:{email:l.email},kt.asyncFetch({url:u,method:ht.k.POST,data:s});case 10:t.logUserAction({},{actionType:N.Vw.Click,descriptor:N.Yu.RequestAccess}),t.complete({completionStep:"requested-access",trialCreated:!1,trialStatus:n.UserJoinApprovalRequired}),r.next=17;break;case 14:r.prev=14,r.t0=r.catch(0),c(Ce(r.t0));case 17:case"end":return r.stop()}var i,l,u,s}),r,null,[[0,14]])})),new(a||(a=Promise))((function(t,e){function n(t){try{l(i.next(t))}catch(t){e(t)}}function c(t){try{l(i.throw(t))}catch(t){e(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof a?r:new a((function(t){t(r)}))).then(n,c)}l((i=i.apply(r,o||[])).next())}))}},"Request access"),a&&i.createElement("p",{className:"text-danger text-center mb-2"},a),i.createElement(Jt,{className:"text-center"},"Need Help? ",i.createElement("a",{href:Xt.F.getSupportUrlForGeoLocation(t.geoLocation),className:"info-link",target:"_blank"},"Contact our Help Centre.")))}};function Ve(t){var e=t.state,r=t.geoLocation,n=t.layoutMapping,o=t.hasPreviousStep,a=t.googleMapsApiKey,c=t.pageAppLinkString,l=t.back,u=t.nextStep,s=t.complete,f=t.logUserAction,p=t.logBrazeEvent,d=t.imageUrls,h=t.ajaxUrls,m=t.productName,y=t.getSignInUrl,v=t.globalIdps,g=qe[e.currentStepId],b=Object.assign(Object.assign({},e),{geoLocation:r,googleMapsApiKey:a,pageAppLinkString:c,back:l,nextStep:u,complete:s,logUserAction:f,imageUrls:d,ajaxUrls:h,productName:m,getSignInUrl:y,logBrazeEvent:p,globalIdps:v}),w=null==n?void 0:n[e.currentStepId];return w?i.createElement(w,{geoLocation:t.geoLocation,currentStep:e.currentStepId,previousStep:l,closeApp:t.close,logUserAction:f,hasPreviousStep:o,imageUrls:t.imageUrls,getSignInUrl:y},i.createElement(g,Object.assign({},b))):i.createElement(g,Object.assign({},b))}var $e=r(1048);const Je={buttonContainer:"izZtA",dataContainer:"OgBv5"};function Ze(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function He(t){var e={};return Object.keys(t).forEach((function(r){var n=t[r];$e.t.isObject(n)&&null!==n&&!Array.isArray(n)?Object.assign(e,He(n)):e[r]=n})),e}function We(t){var e=t.label,r=t.item,n=r;return Array.isArray(r)&&(n=n.join(" -> ")),"boolean"==typeof n&&(n=n?"true":"false"),i.createElement("div",{className:"pb-1"},e,": ",i.createElement("b",{className:"text-white"},n))}function Xe(t){var e,r,n=t.developmentEnv,o=t.objects,a=(e=i.useState(!0),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return Ze(t,e);var r={}.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)?Ze(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=a[0],l=a[1],u=i.useMemo((function(){return He(o)}),[o]);return n&&i.createElement(i.Fragment,null,i.createElement("div",{className:"position-fixed p-4 ".concat(Je.buttonContainer)},i.createElement("button",{onClick:function(){l(!c)},className:"btn btn-dark px-2 py-1"},c?"Hide":"Show"," debugger")),c&&i.createElement("div",{className:"fixed-bottom mb-4 ms-4 bg-dark rounded ".concat(Je.dataContainer)},i.createElement("code",{className:"d-block p-4"},i.createElement("div",{className:"fw-bold pb-2"},"{ Debug: Form Data }"),Object.keys(u).map((function(t){return i.createElement(We,{key:t,label:t,item:u[t]})})))))}var Qe=r(83529);function tr(t,e){var r=t===e?"bg-blue":"bg-light";return"".concat("rounded-circle mx-2 d-inline-block Btmx2"," ").concat(r)}function er(t){return i.createElement("div",{className:"text-center"},t.crumbs.map((function(e){return i.createElement("div",{className:tr(t.currentStep,e),key:e})})))}var rr=r(98461);function nr(t){var e=Xt.F.getTermsAndConditionsLink(),r=Xt.F.getPrivacyPolicyLink();return i.createElement("span",{className:"text-center text-md mt-2 text-normal small"},"By signing up you agree to the",i.createElement("br",null),i.createElement(rr.d,{href:e,onClick:t.onClickTermsAndConditions,className:"info-link",newTab:!0},"Terms and Conditions")," and ",i.createElement(rr.d,{href:r,onClick:t.onClickPrivacyPolicy,className:"info-link",newTab:!0},"Privacy Policy"))}var or=r(83914),ar=r(35223);function ir(t){return i.createElement("button",{onClick:t.onClick,className:"btn p-0 cursor-pointer d-inline-flex align-items-center"},i.createElement(or.x,{svgName:ar.vn.ChevronLeft,size:or.S.Medium}),t.children)}var cr=r(2786);ur.defaultProps={showBackButton:!0};var lr=["select-type","enter-email","find-school"];function ur(t){var e=t.currentStep,r=t.previousStep,n=t.hasPreviousStep,o=t.showBackButton,a=t.children;return i.createElement("div",{className:"d-flex flex-column justify-content-between px-4 py-0 ".concat("jZ_Wp")},i.createElement("div",{className:"mt-3 mb-2"},lr.includes(e)&&i.createElement(er,{crumbs:lr,currentStep:e})),i.createElement("div",{className:"position-relative mx-auto w-100 ".concat("select-type"===e?"Ye154":["enter-email","find-school","cant-find-school","add-to-braze","enter-age"].includes(e)?"m2kAT":"ollkc")},i.createElement("div",{className:"d-flex flex-row justify-content-center align-items-center mt-2 mb-3"},n&&o&&["enter-email","find-school","cant-find-school","add-to-braze","enter-age","request-access"].includes(e)&&i.createElement(ir,{onClick:function(){r(),t.logUserAction({step:e},{actionType:N.Vw.Click,descriptor:N.Yu.Back,workflowPhase:N.eu.Back})}}),i.createElement("div",{className:"d-flex justify-content-center align-items-center px-2 ".concat("J97w_")},i.createElement(cr.$S,null))),a),i.createElement("div",{className:"position-relative mb-4 mt-3 text-center"},"select-type"===e&&i.createElement(de.f,{link:t.getSignInUrl(),onClick:function(){t.logUserAction({},{actionType:N.Vw.Click,descriptor:N.Yu.SignIn})}}),["enter-email","find-school","add-to-braze"].includes(e)&&i.createElement(nr,{onClickTermsAndConditions:function(){t.logUserAction({},{actionType:N.Vw.Click,descriptor:N.Yu.TermsAndConditions})},onClickPrivacyPolicy:function(){t.logUserAction({},{actionType:N.Vw.Click,descriptor:N.Yu.PrivacyPolicy})}})))}var sr=r(28366);dr.defaultProps={showBackButton:!0};var fr=["enter-email","find-school"],pr=["enter-email","find-school","cant-find-school","add-to-braze","enter-age","request-access"];function dr(t){var e=t.currentStep,r=t.previousStep,n=t.hasPreviousStep,o=t.showBackButton,a=t.closeApp,c=t.children;function l(){return["enter-email","find-school","cant-find-school","add-to-braze","enter-age"].includes(e)}function u(){r(),t.logUserAction({},{actionType:N.Vw.Click,descriptor:N.Yu.Back,workflowPhase:N.eu.Back})}var s=pr.includes(t.currentStep),f=s?"".concat(sr.Z.leftHalfLayout," ").concat(sr.Z.withBg):sr.Z.leftHalfLayout;return i.createElement("div",{className:f},i.createElement("div",{className:"row mx-0 p-3"},i.createElement("div",{className:"col px-0 d-lg-none ".concat(sr.Z.popupButton)},n&&l()&&o&&i.createElement(ir,{onClick:u})),i.createElement("div",{className:"col col-lg-6 px-0"},i.createElement("div",{className:sr.Z.logo},i.createElement("div",{className:"d-none d-lg-block"},s?i.createElement(cr.Yo,null):i.createElement(cr.$S,null)),i.createElement("div",{className:"d-block d-lg-none mt-1"},i.createElement(cr.$S,null),fr.includes(t.currentStep)&&i.createElement("div",{className:"mt-3"},i.createElement(er,{crumbs:fr,currentStep:e}))))),i.createElement("div",{className:"col col-lg-6 d-flex flex-row justify-content-between px-0"},i.createElement("div",{className:"px-3"},i.createElement("div",{className:"d-none d-lg-block ".concat(sr.Z.popupButton)},n&&l()&&o&&i.createElement(ir,{onClick:u}))),fr.includes(t.currentStep)&&i.createElement("div",{className:"d-none d-lg-block align-self-center"},i.createElement(er,{crumbs:fr,currentStep:e})),i.createElement(et.L,{onClick:a,className:sr.Z.popupButton},i.createElement(or.x,{svgName:ar.vn.Close,size:or.S.Medium})))),i.createElement("div",{className:"row mx-0 flex-grow-1"},s&&i.createElement("div",{className:"col-6 px-0 d-none d-lg-block"},i.createElement("div",{className:"h-100 d-flex align-items-center justify-content-center"},i.createElement("img",{src:t.imageUrls.popupDashboard,className:"w-100 p-4 pb-5 ".concat(sr.Z.leftImage)}))),i.createElement("div",{className:"px-4 pt-0 pb-4 ".concat(s?"col-12 col-lg-6":"col-12")},i.createElement("div",{className:"d-flex flex-column h-100"},i.createElement("div",{className:"flex-grow-1"},c),i.createElement("div",{className:"text-center mt-3"},"select-type"===e&&i.createElement(de.f,{link:t.getSignInUrl(),onClick:function(){t.logUserAction({},{actionType:N.Vw.Click,descriptor:N.Yu.SignIn})}}),["enter-email","add-to-braze"].includes(e)&&i.createElement(nr,{onClickTermsAndConditions:function(){t.logUserAction({},{actionType:N.Vw.Click,descriptor:N.Yu.TermsAndConditions})},onClickPrivacyPolicy:function(){t.logUserAction({},{actionType:N.Vw.Click,descriptor:N.Yu.PrivacyPolicy})}}))))))}function hr(t){return hr="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},hr(t)}function mr(t,e,r){return(e=function(t){var e=function(t){if("object"!=hr(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=hr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==hr(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var yr={"cant-find-school":dr,"enter-email":dr,"find-school":dr,"select-type":dr,completed:dr,"add-to-braze":dr,"enter-age":dr,"request-access":dr},vr={"cant-find-school":ur,"enter-email":ur,"find-school":ur,"select-type":ur,completed:ur,"add-to-braze":ur,"enter-age":ur,"request-access":ur},gr=mr(mr({},Qe.c.FullPage,vr),Qe.c.Popup,yr),br={getLayouts:function(t){return gr[t]}},wr=r(17331);function Sr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function Er(t){return Er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Er(t)}function xr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||Lr(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lr(t,e){if(t){if("string"==typeof t)return kr(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?kr(t,e):void 0}}function kr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function jr(t,e){var r,n,o=Object.assign(Object.assign({},t),{previousStepIds:[].concat((n=t.previousStepIds,function(t){if(Array.isArray(t))return kr(t)}(n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||Lr(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[t.currentStepId]),currentStepId:e.step});if("select-type"===e.step)return Object.assign({},o);if("enter-email"===e.step||"enter-age"===e.step)return Object.assign(Object.assign({},o),{userType:e.userType});if("find-school"===e.step)return Object.assign(Object.assign({},o),{email:e.email});if("cant-find-school"===e.step)return Object.assign(Object.assign({},o),{prospectId:e.prospectId,schoolName:e.schoolName,schoolLocality:e.schoolLocality,country:e.country,longitude:e.longitude,latitude:e.latitude,city:e.city,province:e.province});if("add-to-braze"===e.step||"completed"===e.step||"request-access"===e.step){var a=Object.assign({},e);return delete a.type,delete a.step,r=a,a=Object.entries(r).filter((function(t){return null!==xr(t,2)[1]})).reduce((function(t,e){var r=xr(e,2),n=r[0],o=r[1];return Object.assign(Object.assign({},t),function(t,e,r){return(e=function(t){var e=function(t){if("object"!=Er(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Er(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Er(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},n,o))}),{}),Object.assign(Object.assign({},o),a)}}function Cr(t,e){switch(e.type){case"nextStep":return jr(t,e);case"back":return function(t){var e,r=function(t){if(Array.isArray(t))return Sr(t)}(e=t.previousStepIds)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return Sr(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Sr(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=r.pop();return Object.assign(Object.assign({},t),{previousStepIds:r,currentStepId:n})}(t)}}function Nr(t){return Nr="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},Nr(t)}function Or(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Ar(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ar(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ar(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var Tr=function(t){var e=t.location,r=t.initialValues,n=t.onStepUpdate,o=t.externalLogUserAction,a=b.F.removeEmptyKeys(r),c=Object.assign({currentStepId:"select-type",previousStepIds:[]},a),l=Or(i.useReducer(Cr,c),2),u=l[0],f=l[1];return i.useEffect((function(){null==n||n(u)}),[u.currentStepId]),{state:u,back:function(){f({type:"back"})},nextStep:function(t){f(Object.assign({type:"nextStep"},t))},complete:function(t){f(Object.assign({type:"nextStep",step:"completed"},t))},hasPreviousStep:!!u.previousStepIds.length,logUserAction:function(t,r){var n=Object.assign(Object.assign({},u),t),a=wr.i.filterBlacklistedKeys(n),i=Object.assign({currentStepId:u.currentStepId},a),c=Object.entries(i).filter((function(t){return void 0!==Or(t,2)[1]})).reduce((function(t,e){var r,n,o,a=Or(e,2),i=a[0],c=a[1];return Object.assign(Object.assign({},t),(r={},o=c,(n=function(t){var e=function(t){if("object"!=Nr(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Nr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Nr(e)?e:e+""}(n=i))in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,r))}),{});o(c,Object.assign({entity:s.py.SignUp,location:e},r))}}};function Ir(t){var e=br.getLayouts(t.type),r=t.location,n=t.initialValues,o=t.geoLocation,a=t.googleMapsApiKey,u=t.pageAppLinkString,s=t.onStepUpdate,f=t.imageUrls,p=t.ajaxUrls,d=t.productName,h=t.close,m=t.getSignInUrl,y=t.globalIdps,v=t.logBrazeEvent,g=Tr({location:r,initialValues:n,onStepUpdate:s,externalLogUserAction:l.k.logUserAction}),b=g.back,w=g.nextStep,S=g.complete,E=g.hasPreviousStep,x=g.state,L=g.logUserAction,k={state:x,geoLocation:o,layoutMapping:e,hasPreviousStep:E,googleMapsApiKey:a,pageAppLinkString:u,back:b,close:h,nextStep:w,complete:S,logUserAction:L,imageUrls:f,ajaxUrls:p,productName:d,getSignInUrl:m,globalIdps:y,logBrazeEvent:v};return i.useEffect((function(){c.SG.get(le)&&S({completionStep:"young-student",trialCreated:!1,trialStatus:null})}),[]),i.createElement(i.Fragment,null,i.createElement(Ve,Object.assign({},k)),i.createElement(Xe,{developmentEnv:!1,objects:Object.assign(Object.assign(Object.assign({},x),{pageAppLinkString:u}),o)}))}},68293:(t,e,r)=>{r.d(e,{B:()=>w});var n=r(32735),o=r(93824),a=r(19808);function i(t){return i="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},i(t)}function c(t,e,r){return(e=function(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var l=["Teacher","Librarian / Teacher Librarian","Curriculum Coordinator","Digital Technology Coordinator","SSO / SLSO","IT","Head of Department","Head of Subject","Assistant Principal","Deputy Principal","Principal"],u=["Teacher","Librarian / Teacher Librarian","IT/LRC","e-Learning/ICT Coordinator","Head of Key Stage","Head of Department","Subject Lead","Assistant Head Teacher","Deputy Head Teacher","Head Teacher"],s=["Teacher","Librarian / Teacher Librarian","Head of Department","Instructional Technology Specialist","Curriculum Coordinator","School Leadership","District Leadership","Academic Coach","Principal","IT / IT Specialist"],f=["Professor","Lecturer","Course Coordinator / Administrator","Digital Learning Manager","Tutor","Teaching Fellow","Librarian","Learning Technologist","Teaching Assistant","Researcher","IT"],p=["Professor","Lecturer","Course Coordinator / Administrator","Digital Learning Manager","Tutor","Teaching Fellow","Librarian","Learning Technologist","Teacher","Teaching Assistant","Researcher","IT"],d=c(c(c(c(c(c(c(c({},a.b.AU,l),a.b.NZ,l),a.b.UK,u),a.b.US,s),o.C.AU,l),o.C.NZ,l),o.C.UK,u),o.C.US,s),h=c(c(c(c({},a.b.AU,f),a.b.UK,p),o.C.AU,f),o.C.UK,p),m=r(66122);function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return v(t,e);var r={}.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)?v(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 v(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var g="OTHER";function b(t,e){return e.includes(t)?t:t?g:""}function w(t){var e,r,o=t.error,a=t.onChange,i=(e={countryCode:t.countryCode,isTertiary:t.isTertiary},r="instanceRegion"in e?e.instanceRegion:e.countryCode,e.isTertiary?h[null==r?void 0:r.toLowerCase()]||f:d[null==r?void 0:r.toLowerCase()]||s),c=b(t.initialValue,i),l=y(n.useState(c),2),u=l[0],p=l[1],v=y(n.useState(c===g?t.initialValue:""),2),w=v[0],S=v[1];n.useEffect((function(){p(b(t.initialValue,i))}),[t.initialValue]);var E=u===g;return n.createElement("div",{className:"form-group"},n.createElement("label",{htmlFor:t.id,className:t.labelClassName},"Job title:",t.required&&n.createElement("span",{className:"text-danger"},"*")),n.createElement("div",{className:"mb-2"},n.createElement("select",{id:t.id,name:t.id,className:"form-select ".concat("lg"===t.size?"form-select-lg":""," ").concat(u.length?"text-dark":"text-secondary"," ").concat(!!o&&"is-invalid"),value:u,placeholder:"Role",onChange:function(t){p(t.target.value),S(""),a(t.target.value===g?"":t.target.value)}},n.createElement("option",{value:"",disabled:!0,className:"text-secondary"},t.placeholder?t.placeholder:n.createElement(n.Fragment,null,"What do you do?")),i.map((function(t,e){return n.createElement("option",{value:t,className:"text-dark",key:e},t)})),n.createElement("option",{value:g,className:"text-dark"},"Other")),!!o&&!E&&n.createElement(m.A,{name:t.id},o)),E&&n.createElement("div",{className:"mb-3"},n.createElement("input",{className:"form-control ".concat("lg"===t.size?"form-select-lg":""," ").concat(!!o&&"is-invalid"),type:"text",value:w,placeholder:"What do you do?",autoFocus:!0,onChange:function(t){S(t.target.value),a(t.target.value)}}),!!o&&n.createElement(m.A,{name:t.id},o)))}},83529:(t,e,r)=>{var n;r.d(e,{c:()=>n}),function(t){t.Popup="popup-form",t.FullPage="full-page-form"}(n||(n={}))},12238:(t,e,r)=>{var n;r.d(e,{C:()=>n}),function(t){t.MasterId="master_id",t.CrmId="crm_id",t.SalesforceId="salesforce_id"}(n||(n={}))},84789:(t,e,r)=>{var n;r.d(e,{X:()=>n}),function(t){t.Lite="lite",t.Auth="auth"}(n||(n={}))},76153:(t,e,r)=>{r.d(e,{F:()=>f});var n=r(63093),o=r(33003),a=r.n(o);function i(t){return i="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},i(t)}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var u={secondary:{label:"Secondary",isTertiary:!1},"primary & secondary":{label:"Primary & Secondary",isTertiary:!1},k12:{label:"Primary & Secondary",isTertiary:!1},primary:{label:"Primary",isTertiary:!1},special:{label:"Special",isTertiary:!1},university:{label:"University",isTertiary:!0},middle:{label:"Middle",isTertiary:!1},"fe college":{label:"FE College",isTertiary:!0},"high school":{label:"Secondary",isTertiary:!1},elementary:{label:"Primary",isTertiary:!1},"middle school":{label:"Middle",isTertiary:!1},tafe:{label:"TAFE",isTertiary:!0},college:{label:"FE College",isTertiary:!0},"sixth form college":{label:"Sixth Form College",isTertiary:!0}},s={england:"ENG",scotland:"SCT",wales:"WLS","northern ireland":"NIR"},f={hashedEmail:function(t){var e=t.trim().toLowerCase();return a().hash(e)},removeEmptyKeys:function(t){if(Array.isArray(t))return t;var e=Object.assign({},t);return Object.entries(e).filter((function(t){var e=c(t,2)[1];return null!=e&&!("string"==typeof e&&!e.length)})).reduce((function(t,e){var r,n,o,a=c(e,2),l=a[0],u=a[1];return Object.assign(Object.assign({},t),(r={},n=l,o=u===Object(u)?f.removeEmptyKeys(u):u,(n=function(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}(n))in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,r))}),{})},getEventTopic:function(){return"Free Trial Request"},getSource:function(){return"cv_product_trial_requested"},getProductFormEventType:function(){return n.ProductFormEvent.FormSubmission},getSchoolType:function(t){var e;if(t){var r=t.toLowerCase();if(!["unknown","other"].includes(r))return(null===(e=u[r])||void 0===e?void 0:e.label)||t}},isTertiarySchool:function(t){var e;return(null===(e=u[null==t?void 0:t.toLowerCase()])||void 0===e?void 0:e.isTertiary)||!1},parseProvince:function(t){return t.length?s[t.toLowerCase()]||t:""}}},17331:(t,e,r)=>{r.d(e,{i:()=>o});var n=["email","longitude","latitude","trialCreated"],o={filterBlacklistedKeys:function(t){var e=Object.assign({},t);return n.forEach((function(t){return delete e[t]})),e}}},69624:(t,e,r)=>{r.d(e,{F:()=>s});var n=r(86664),o=r(93824);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function i(t,e,r){return(e=function(t){var e=function(t){if("object"!=a(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==a(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var c={Marketing:{au:"https://www.clickvieweducation.com/en-au",us:"https://www.clickvieweducation.com",nz:"https://www.clickview.co.nz",uk:"https://www.clickview.co.uk"},Support:{au:"https://www.clickviewsupport.com/hc/en-au",uk:"https://www.clickviewsupport.com/hc/en-au#gb",nz:"https://www.clickviewsupport.com/hc/en-au#nz",us:"https://www.clickviewsupport.com/hc/en-au#us"}},l=i(i(i(i({},o.C.AU,"/contact-us/sales"),o.C.US,"/contact-us/sales"),o.C.NZ,"/contact-us/"),o.C.UK,"/contact-us/trial"),u=i(i(i(i({},o.C.AU,"/resources/free-student-resources"),o.C.US,"/resources/free-student-resources"),o.C.NZ,"/free-student-resources/"),o.C.UK,"/free-student-resources/"),s={getMarketingUrlForGeoLocation:function(t){var e=n.I.getCountryCode(null==t?void 0:t.countryCode);return c.Marketing[e]||c.Marketing.us},getMarketingSalesContactForGeoLocation:function(t){var e=n.I.getCountryCode(null==t?void 0:t.countryCode),r=s.getMarketingUrlForGeoLocation(t),o=l[e];return"".concat(r).concat(o)},getFreeResourcesForGeoLocation:function(t){var e=n.I.getCountryCode(null==t?void 0:t.countryCode),r=this.getMarketingUrlForGeoLocation({countryCode:e}),o=u[e];return"".concat(r).concat(o)},getTermsAndConditionsLink:function(){return this.getMarketingUrlForGeoLocation(o.C.US)+"/terms-and-conditions/"},getPrivacyPolicyLink:function(){return this.getMarketingUrlForGeoLocation(o.C.US)+"/privacy-policy/"},getSupportUrlForGeoLocation:function(t){var e=n.I.getCountryCode(null==t?void 0:t.countryCode);return c.Support[e]||c.Support.us}}},66122:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(32735);function o(t){return n.createElement("span",{id:"".concat(t.name,"Error"),className:"".concat(t.className," invalid-feedback d-block"),role:"status"},t.children)}},53475:(t,e,r)=>{r.d(e,{N:()=>n});var n={globalIdps:function(t,e){return{url:"{gateway}/v1/auth/identity-providers?countryCode=".concat(t,"&product=").concat(e),key:"global:idps"}}}},48015:(t,e,r)=>{r.d(e,{M:()=>c});var n=r(39202),o=r(20354),a=r(39151),i={countryCode:"us",isFallback:!0};function c(){var t,e,r=o.a.useBasicFetch(a.L.geoLocation()),c=null===(e=null===(t=n.Ab.GetQuery())||void 0===t?void 0:t.countryCode)||void 0===e?void 0:e.toLowerCase();return c?{countryCode:c}:r.hasCompleted&&!r.data?i:r.data}},48456:(t,e,r)=>{r.d(e,{v:()=>o});var n=r(99742),o={popupDashboard:n.W.SignUp.POPUP_DASHBOARD,educator:n.W.SignUp.EDUCATOR,student:n.W.SignUp.STUDENT,statusImages:{available:n.W.SignUp.VERIFY_ACCOUNT,active:n.W.SignUp.EXISTING_CUSTOMER,expired:n.W.SignUp.EXPIRED_TRIAL,notRequired:n.W.SignUp.EXISTING_CUSTOMER,unavailable:n.W.SignUp.NOT_AVAILABLE,unsupported:n.W.SignUp.NOT_AVAILABLE,autoJoin:n.W.SignUp.EXISTING_CUSTOMER,requestAccess:n.W.SignUp.EXISTING_CUSTOMER}}},63643:(t,e,r)=>{r.d(e,{c:()=>c});var n=r(97395),o=r(20354),a=r(84789),i=r(39151);function c(){var t=o.a.useBasicFetch(i.L.config());if(!t.hasCompleted)return null;var e=t.data.gatewayApiUrl;return{productName:a.X.Lite,userStatus:n._.safeUrlConcat(e,"/v1/users/trial-status"),prospectStatus:function(t){return n._.safeUrlConcat(e,"/v1/prospects/".concat(t,"/trial-status"))},createTrial:"/api/user/trials",resendTrialEmail:function(t){return"/api/user/trials/users/".concat(t,"/send-activation-email")},searchProspect:n._.safeUrlConcat(e,"/v1/search/prospects"),createProspect:"/api/prospects",prospectLookups:function(t){return n._.safeUrlConcat(e,"/v1/prospects/".concat(t,"/lookups"))},autoJoin:"/api/user/trials/auto-join",joinRequest:function(t){return"/api/user/customers/".concat(t,"/join-requests")}}}},28366:(t,e,r)=>{r.d(e,{Z:()=>n});const n={logo:"Kh4Dd",modalBody:"V9nIN",popupButton:"hS60U",leftImage:"kDU8y",leftHalfLayout:"aQ1K8",withBg:"zALxE"}}}]);
|
|
3
|
+
//# sourceMappingURL=2056-a9e8d17a46-lite.chunk.js.map
|