@clickview/streamable-learning 0.20.1 → 0.21.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +1 -1
- package/dist/css/{1437-streamable-learning-3eff1fef16.chunk.css → 1437-streamable-learning-bc0173f7c0.chunk.css} +1 -1
- package/dist/css/{303-streamable-learning-514a3b2d20.chunk.css → 303-streamable-learning-653fc7fb47.chunk.css} +1 -1
- package/dist/css/{4942-streamable-learning-2806db78c9.chunk.css → 4942-streamable-learning-f525210660.chunk.css} +1 -1
- package/dist/css/{5770-streamable-learning-6f4396ba2f.chunk.css → 5770-streamable-learning-0a856df26a.chunk.css} +1 -1
- package/dist/css/{5924-streamable-learning-02f42af5bc.chunk.css → 5924-streamable-learning-6d9b4948a3.chunk.css} +1 -1
- package/dist/languages/en.json +1 -1
- package/dist/scripts/1067-9dee1dc962-streamable-learning.chunk.js +1 -0
- package/dist/scripts/{1977-873c87eccd-streamable-learning.chunk.js → 1977-8e831c60fe-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/2012-74e72b3326-streamable-learning.chunk.js +1 -0
- package/dist/scripts/{2215-e60327adbe-streamable-learning.chunk.js → 2215-7780e204d2-streamable-learning.chunk.js} +2 -2
- package/dist/scripts/2967-8b0fbfa290-streamable-learning.chunk.js +1 -0
- package/dist/scripts/{3093-c271cf3073-streamable-learning.chunk.js → 3093-fe79db511b-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/356-9bed2afc85-streamable-learning.chunk.js +2 -0
- package/dist/scripts/4254-d3e383d661-streamable-learning.chunk.js +1 -0
- package/dist/scripts/{4942-6d887de373-streamable-learning.chunk.js → 4942-acdbd7f1e6-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/5214-fa863608a3-streamable-learning.chunk.js +2 -0
- package/dist/scripts/{5770-cc77f41251-streamable-learning.chunk.js → 5770-8ef2c47b27-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/5862-ad2676c8a8-streamable-learning.chunk.js +1 -0
- package/dist/scripts/5910-a03689d491-streamable-learning.chunk.js +1 -0
- package/dist/scripts/5924-9ecdb272c4-streamable-learning.chunk.js +2 -0
- package/dist/scripts/7117-6b4b9cda72-streamable-learning.chunk.js +1 -0
- package/dist/scripts/7130-f6e519b553-streamable-learning.chunk.js +1 -0
- package/dist/scripts/8819-d2c2d0cee3-streamable-learning.chunk.js +1 -0
- package/dist/scripts/{9531-5e565ca5eb-streamable-learning.chunk.js → 9531-ff21556773-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/bundle-53a46dd68f.min.js +2 -0
- package/package.json +1 -1
- package/dist/scripts/1067-c3ec2adc7e-streamable-learning.chunk.js +0 -1
- package/dist/scripts/2012-cdfa303c4d-streamable-learning.chunk.js +0 -1
- package/dist/scripts/2967-265d13529f-streamable-learning.chunk.js +0 -1
- package/dist/scripts/2987-f1f0299c23-streamable-learning.chunk.js +0 -1
- package/dist/scripts/4254-ffe009e96f-streamable-learning.chunk.js +0 -1
- package/dist/scripts/487-84cc150f3e-streamable-learning.chunk.js +0 -1
- package/dist/scripts/5910-055777f325-streamable-learning.chunk.js +0 -1
- package/dist/scripts/5924-f138415b74-streamable-learning.chunk.js +0 -2
- package/dist/scripts/7130-0142b9b473-streamable-learning.chunk.js +0 -1
- package/dist/scripts/719-34784a6bf6-streamable-learning.chunk.js +0 -2
- package/dist/scripts/7545-208c4ac55a-streamable-learning.chunk.js +0 -1
- package/dist/scripts/7694-0cfe8fe45d-streamable-learning.chunk.js +0 -2
- package/dist/scripts/bundle-6d2372fc7a.min.js +0 -2
- /package/dist/css/{7694-streamable-learning-f83b838d71.chunk.css → 356-streamable-learning-f83b838d71.chunk.css} +0 -0
- /package/dist/css/{719-streamable-learning-5455aecc5f.chunk.css → 5214-streamable-learning-5455aecc5f.chunk.css} +0 -0
- /package/dist/css/{2987-streamable-learning-b5d226bbb6.chunk.css → 5862-streamable-learning-b5d226bbb6.chunk.css} +0 -0
- /package/dist/css/{7545-streamable-learning-fe46b5ff25.chunk.css → 7117-streamable-learning-fe46b5ff25.chunk.css} +0 -0
- /package/dist/scripts/{1437-af4933def4-streamable-learning.chunk.js → 1437-5e91d1fa17-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{1977-873c87eccd-streamable-learning.chunk.js.LICENSE.txt → 1977-8e831c60fe-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2215-e60327adbe-streamable-learning.chunk.js.LICENSE.txt → 2215-7780e204d2-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{303-fbdbbc38ac-streamable-learning.chunk.js → 303-d2246cbfc4-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{5924-f138415b74-streamable-learning.chunk.js.LICENSE.txt → 356-9bed2afc85-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{719-34784a6bf6-streamable-learning.chunk.js.LICENSE.txt → 5214-fa863608a3-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7694-0cfe8fe45d-streamable-learning.chunk.js.LICENSE.txt → 5924-9ecdb272c4-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{bundle-6d2372fc7a.min.js.LICENSE.txt → bundle-53a46dd68f.min.js.LICENSE.txt} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 2215-
|
|
2
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[2215],{92869:(t,e,r)=>{r.d(e,{t:()=>a});var n=r(43823),o=r(95846),a={preventScrollTop:function(){n.Radio.channel(o.G.SHELL).trigger("prevent:scroll:top")}}},53374:(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))))}))},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"],d=["Professor","Lecturer","Course Coordinator / Administrator","Digital Learning Manager","Tutor","Teaching Fellow","Librarian","Learning Technologist","Teacher","Teaching Assistant","Researcher","IT"],y=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),p=c(c(c(c({},a.b.AU,f),a.b.UK,d),o.C.AU,f),o.C.UK,d),m=r(66122);function h(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?p[null==r?void 0:r.toLowerCase()]||f:y[null==r?void 0:r.toLowerCase()]||s),c=b(t.initialValue,i),l=h(n.useState(c),2),u=l[0],d=l[1],v=h(n.useState(c===g?t.initialValue:""),2),w=v[0],S=v[1];n.useEffect((function(){d(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){d(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)))}},47464:(t,e,r)=>{r.d(e,{l:()=>_});var n=r(32735),o=r(65858),a=r(53374),i=r(57900),c=r(45157),l=r(86664),u=r(52214);function s(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 f(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)?f(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 f(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 u.aN({apiKey:t.apiKey,version:"weekly",libraries:t.libraries,retries:3})}function y(t){var e={apiKey:t.apiKey,libraries:t.libraries||["places"]},r=s(n.useState(!1),2),o=r[0],a=r[1],i=s(n.useState(d(e)),2),c=i[0],l=i[1];function u(t,r){c?c.loadCallback((function(e){if(e)return a(!1),void(r&&r(e));a(!0),t&&t()})):l(d(e))}return n.useEffect((function(){u()}),[]),{loader:c,scriptLoaded:o,onGoogleApiReady:u}}function p(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 m(t){var e,r,o=y({apiKey:t.googleApiKey}).scriptLoaded,a=(e=n.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 p(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)?p(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.")}()),i=a[0],c=a[1];return n.useEffect((function(){o&&c(new google.maps.places.AutocompleteService)}),[o]),i}function h(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 v="us",g="country:placeholder:text";function b(t){var e,r,o=t.apiKey,a=t.geoLocation,u=t.makeRequest,s=void 0===u||u,f=t.template,d=void 0===f?"E.g. [placeholder]":f,y=t.templateKey,p=void 0===y?"[placeholder]":y,b=m({googleApiKey:o}),w=n.useState((function(){return function(t){var e=l.I.getLocalizedLocalityPlaceholderText(null==t?void 0:t.countryCode);return e||(i.SG.cacheGet("".concat(g,":").concat(null==t?void 0:t.countryCode))||void 0)}(a)})),S=(r=2,function(t){if(Array.isArray(t))return t}(e=w)||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 h(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)?h(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.")}()),E=S[0],O=S[1];function j(t,e){i.SG.cacheSet("".concat(g,":").concat(e),t,86400),O(t)}return n.useEffect((function(){if(!E&&b&&s){var t=(null==a?void 0:a.countryCode)||v,e={input:String.fromCharCode(96+c.Y.getRandomInt(26)),types:["(cities)"],region:t,componentRestrictions:{country:t}};b.getPlacePredictions(e,(function(e,r){return function(t,e,r){if(e===google.maps.places.PlacesServiceStatus.OK&&t){var n=t[c.Y.getRandomInt(t.length)].description;j(d.replace(p,n),r)}else j(l.I.getLocalizedLocalityPlaceholderText(v),r)}(e,r,t)}))}}),[E,b,a,s]),E}var w=r(73525);function S(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 E(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)?E(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 E(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 O={getPlaceDetails:function(t){var e,r,n,o,a,i=t.formatted_address,c=S(t.address_components);try{for(c.s();!(a=c.n()).done;){var l,u=a.value,s=S(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 j(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 C={1:"geocoderPermissionDenied",2:"geocoderUnavailable",3:"geocoderTimeout"},L=r(28329);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 k=r(11607);function A(){return n.createElement("svg",{viewBox:"0 0 24 24"},n.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"}))}var N=r(52202);function T(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 P(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)?P(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 P(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 I(t){var e=t.predictions,r=t.getPlaceInfo,o=t.selectedIndex;return n.createElement(n.Fragment,null,e.map((function(t,e){return n.createElement(k.L,{className:"".concat(N.Z.suggestionItem," ").concat(o-1===e?N.Z.selected:""),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 _(t){var e,r,i,c,l,u,s=n.useRef(),f=T(n.useState((null===(e=t.data)||void 0===e?void 0:e.schoolLocality)||""),2),d=f[0],p=f[1],h=T(n.useState(!1),2),v=h[0],g=h[1],S=b({apiKey:t.googleMapsApiKey,geoLocation:t.geoLocation}),E=function(t){var e,r,o=t.search,a=t.makePredicition,i=t.geoLocation,c=m({googleApiKey:t.apiKey}),l=(0,L.N)(o,300),u=(e=n.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 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}}(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 d(t,e){e===google.maps.places.PlacesServiceStatus.OK&&t?f(t):f(void 0)}return n.useEffect((function(){if(c)if(0!==(null==l?void 0:l.length)&&a){var t=(null==i?void 0:i.countryCode)||"us";c.getPlacePredictions({input:l,componentRestrictions:(null==i?void 0:i.isFallback)?void 0:{country:t},region:t,types:["locality","sublocality","postal_code"]},d)}else f(void 0)}),[l,a,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:i.countryCode},(function(t,e){if(e===google.maps.places.PlacesServiceStatus.OK){var n=t.geometry.location.lng(),o=t.geometry.location.lat(),a=O.getPlaceDetails(t),i=a.locality,c=a.country,l=a.postalCode,u=a.city,s=a.province;r({longitude:n,latitude:o,locality:i,country:c,city:u,postalCode:l,province:s})}}))}}}({search:d,makePredicition:v,geoLocation:t.geoLocation,apiKey:t.googleMapsApiKey}),P=E.localityPredicitions,_=E.getPlaceInfo,F=function(t){var e,r,o=(e=n.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 j(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)?j(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],i=o[1],c=y(t).onGoogleApiReady;function l(t){var e=t.coords,r=e.latitude,n=e.longitude,o=new google.maps.LatLng(r,n);(new google.maps.Geocoder).geocode({location:o},(function(t,e){if(e===google.maps.GeocoderStatus.OK){var o=t.find((function(t){return t.types.includes("locality")||t.types.includes("administrative_area_level_2")})),a=O.getPlaceDetails(o);i(Object.assign(Object.assign({},a),{longitude:n,latitude:r}))}}))}function u(e){var r=C[e.code];r||(r="geocoderUnknown"),t.onPositionError("We are unable to access your location. Please try again later.")}return{placeDetails:a,onClickGetCurrentLocation:function(){c((function(){window.navigator.geolocation.getCurrentPosition(l,u)}))}}}({apiKey:t.googleMapsApiKey,onPositionError:function(t){g(!0),H(t)}}),D=F.placeDetails,U=F.onClickGetCurrentLocation,K=window.navigator.geolocation?1:0,G=(0,w.M)({onSelected:function(t){if(P)if(t!==P.length){var e=P[t];e&&J(e)}else X()},itemCount:null!==(r=(null==P?void 0:P.length)+K)&&void 0!==r?r:0,hideOnBlur:t.hideOnBlur}),R=G.selectedIndex,M=G.onKeyDown,Z=G.containerRef,z=G.hide,B=G.onBlur,V=G.onFocus,$=T(n.useState(),2),q=$[0],H=$[1];function Y(e){var r,n,o;q&&H(void 0),v||g(!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 W(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 J(t){v&&g(!1),_(t,s,W)}function X(e){var r;null==e||e.preventDefault(),g(!1),U(),null===(r=t.logUserAction)||void 0===r||r.call(t,{},{actionType:o.Vw.Click,descriptor:o.Yu.UseMyLocation})}n.useEffect((function(){W(D)}),[D]);var Q,tt=(null==P?void 0:P.length)&&!(null===(c=null===(i=t.data)||void 0===i?void 0:i.schoolLocality)||void 0===c?void 0:c.length),et=window.navigator.geolocation&&!(null===(u=null===(l=t.data)||void 0===l?void 0:l.schoolLocality)||void 0===u?void 0:u.length),rt=t.labelClassName||"d-block text-center mb-3 fw-normal ".concat(N.Z.baseText),nt="form-group position-relative";return"lg"===t.size&&(nt+=" ".concat(N.Z.large)),n.createElement("div",{className:nt},n.createElement("label",{className:rt,htmlFor:"locality-input"},"ZIP code or city",t.required&&n.createElement("span",{className:"text-danger"},"*")),n.createElement(a.w,{type:"text",value:d,onChange:function(t){return Y(t.currentTarget.value)},id:"locality-input",className:(Q="form-control","lg"===t.size&&(Q+=" form-control-lg"),!tt||z?"".concat(Q," ").concat(N.Z.input):"".concat(Q," ").concat(N.Z.inputFocused)),ref:s,autoComplete:"off",placeholder:S||"Loading...",disabled:t.disabled||!S,autoFocus:null==t?void 0:t.autoFocus,onClickClear:function(){Y(""),s.current.focus()},onKeyDown:M,onFocus:V,onBlur:B}),n.createElement("div",{className:"position-absolute z-1 w-100 ".concat(N.Z.dropdown," ").concat(z?"d-none":"")},!!tt&&n.createElement("div",{className:N.Z.suggestionContainer,ref:Z},n.createElement(I,{predictions:P,getPlaceInfo:J,selectedIndex:R}),window.navigator.geolocation&&t.useGeoLocationApi&&n.createElement(k.L,{className:"".concat(N.Z.suggestionItem," px-1 ").concat(R-1===P.length?N.Z.selected:""),onClick:X},n.createElement("div",{className:"btn btn-link info-link btn-with-icon bg-transparent py-0 pe-1"},n.createElement(A,null),"Use my current location"))),et&&!tt&&t.useGeoLocationApi&&n.createElement("div",{className:"d-flex ".concat(N.Z.useMyLocation)},n.createElement("button",{onClick:X,className:"btn btn-link info-link bg-white btn-with-icon"},n.createElement(A,null),"Use my current location")),!!q&&n.createElement("div",{className:"text-danger p-2"},q)))}},76530:(t,e,r)=>{r.d(e,{X:()=>A});var n=r(32735),o=r(80247),a=r(53374),i=r(99940);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function l(t){var e="function"==typeof Map?new Map:void 0;return l=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(u())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var o=new(t.bind.apply(t,n));return r&&s(o,r.prototype),o}(t,arguments,f(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,t)},l(t)}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}var d=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=f(e),function(t,e){if(e&&("object"==c(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,u()?Reflect.construct(e,r||[],f(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&&s(t,e)}(e,t),r=e,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(l(Error));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 p(){p=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 b?e:b,i=Object.create(a.prototype),c=new P(n||[]);return o(i,"_invoke",{value:k(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 d="suspendedStart",m="suspendedYield",h="executing",v="completed",g={};function b(){}function w(){}function S(){}var E={};u(E,i,(function(){return this}));var O=Object.getPrototypeOf,j=O&&O(O(I([])));j&&j!==r&&n.call(j,i)&&(E=j);var C=S.prototype=b.prototype=Object.create(E);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(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"==y(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 k(e,r,n){var o=d;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===v){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=A(c,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=v,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?v:m,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=v,n.method="throw",n.arg=u.arg)}}}function A(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,A(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;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,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}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 T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function I(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(y(e)+" is not iterable")}return w.prototype=S,o(C,"constructor",{value:S,configurable:!0}),o(S,"constructor",{value:w,configurable:!0}),w.displayName=u(S,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,S):(t.__proto__=S,u(t,l,"GeneratorFunction")),t.prototype=Object.create(C),t},e.awrap=function(t){return{__await:t}},L(x.prototype),u(x.prototype,c,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new x(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(C),u(C,l,"Generator"),u(C,i,(function(){return this})),u(C,"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=I,P.prototype={constructor:P,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,g):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),g},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),g}},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:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}var m=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 h(t){var e={method:i.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===i.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 v={asyncFetch:function(t){return m(this,void 0,void 0,p().mark((function e(){var r,n,o;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=h(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 d(o);case 9:if(204!==n.status){e.next=11;break}return e.abrupt("return");case 11:return e.next=13,n.json();case 13:return e.abrupt("return",e.sent);case 14:case"end":return e.stop()}}),e)})))},asyncFetchPlain:function(t){return m(this,void 0,void 0,p().mark((function e(){var r,n;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=h(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=h(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 g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function b(){b=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 P(n||[]);return o(i,"_invoke",{value:k(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 d="suspendedStart",y="suspendedYield",p="executing",m="completed",h={};function v(){}function w(){}function S(){}var E={};u(E,i,(function(){return this}));var O=Object.getPrototypeOf,j=O&&O(O(I([])));j&&j!==r&&n.call(j,i)&&(E=j);var C=S.prototype=v.prototype=Object.create(E);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(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"==g(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 k(e,r,n){var o=d;return function(a,i){if(o===p)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=A(c,n);if(l){if(l===h)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:y,u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function A(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,A(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,h;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,h):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}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 T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function I(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(g(e)+" is not iterable")}return w.prototype=S,o(C,"constructor",{value:S,configurable:!0}),o(S,"constructor",{value:w,configurable:!0}),w.displayName=u(S,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,S):(t.__proto__=S,u(t,l,"GeneratorFunction")),t.prototype=Object.create(C),t},e.awrap=function(t){return{__await:t}},L(x.prototype),u(x.prototype,c,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new x(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(C),u(C,l,"Generator"),u(C,i,(function(){return this})),u(C,"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=I,P.prototype={constructor:P,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,h):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),h}},e}var w={search:function(t,e,r,n,o){var a={longitude:e.longitude,latitude:e.latitude};e.query&&(a.query=e.query),v.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=b().mark((function r(){return b().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",v.asyncFetch({url:t.createProspect,method:i.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 v.asyncFetch({url:t.prospectLookups(e)})}},S=r(73525),E=r(11607),O=r(28329),j=r(52202);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}function x(t){var e=t.filteredSchoolsList,r=t.getSchoolName,o=t.onSchoolSuggestionClick,a=t.selectedIndex;return n.createElement(n.Fragment,null,e.map((function(t,e){return n.createElement(E.L,{className:"".concat(j.Z.suggestionItem," ").concat(a-1===e?j.Z.selected:""),key:t.id,onKeyDown:function(e){return"Enter"===e.key&&o(t)},onMouseDown:function(){return o(t)},onClick:function(){return o(t)}},r(t)," ",n.createElement("br",null),n.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 k(t){return n.createElement("div",{className:"info-link ".concat(j.Z.suggestionItem," ").concat(j.Z.noSuggestion," ").concat(t.selected?j.Z.selected:""),onKeyDown:function(e){return"Enter"===e.key&&t.handleNoSuggestion()},onMouseDown:t.handleNoSuggestion,onClick:t.handleNoSuggestion},"Can't find your school?")}function A(t){var e,r,i=n.useRef(),c=C(n.useState(!0),2),l=c[0],u=c[1],s=C(n.useState(t.data.schoolName&&t.data.schoolPostCode?t.data.schoolName+", "+t.data.schoolPostCode:t.data.schoolName?t.data.schoolName:""),2),f=s[0],d=s[1],y=C(n.useState(),2),p=y[0],m=y[1],h=(0,O.N)(f,250),v=(0,S.M)({onSelected:function(e){if(p||e)if(e!==p.length){var r=p[e];r&&U(r)}else t.onClickNoSuggestions(f)},itemCount:null!==(e=(null==p?void 0:p.length)+1)&&void 0!==e?e:0,hideOnBlur:t.hideOnBlur}),g=v.selectedIndex,b=v.onKeyDown,E=v.containerRef,L=v.hide,A=v.onBlur,N=v.onFocus,T=!!(null===(r=t.data)||void 0===r?void 0:r.prospectId),P=l&&!T,I=!l&&!T&&(null==p?void 0:p.length)<5,_=(null==p?void 0:p.length)&&!T;function F(e){(t.data.schoolName||t.data.prospectId)&&t.clearData(),e!==f&&d(e)}function D(e){if(t.data.latitude||t.data.longitude){u(!0);var r={latitude:t.data.latitude,longitude:t.data.longitude};e&&e.length&&(r.query=e),w.search(t.searchUrl,r,(function(t){return m(t)}),null,(function(){return u(!1)}))}else u(!1)}function U(e){d(K(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 K(t){return t.name}n.useEffect((function(){T||(h.length?!T&&h.length>1&&h===f&&D(h):D())}),[h,T]);var G=(_||P||I)&&!t.disabled&&!L,R="form-control ".concat(G?j.Z.inputFocused:j.Z.input),M="form-group position-relative";return"lg"===t.size&&(R+=" form-control-lg",M+=" ".concat(j.Z.large)),n.createElement("div",{className:M},n.createElement("label",{className:t.labelClassName,htmlFor:"school-input"},"School:",t.required&&n.createElement("span",{className:"text-danger"},"*")),n.createElement(a.w,{id:"school-input",value:f,onChange:function(t){return F(t.currentTarget.value)},ref:i,className:R,type:"text",autoComplete:"off",placeholder:t.placeholder||"Select your school below",disabled:t.disabled,autoFocus:!0,onClickClear:function(){F(""),i.current.focus()},onKeyDown:b,onFocus:N,onBlur:A}),n.createElement("div",{className:"position-absolute z-1 w-100 ".concat(j.Z.dropdown," ").concat(L?"d-none":"")},n.createElement("div",{className:"".concat(j.Z.suggestionContainer," ").concat(G?"":"d-none"),ref:E},_?n.createElement(x,{filteredSchoolsList:p,onSchoolSuggestionClick:U,getSchoolName:K,selectedIndex:g}):P&&n.createElement("div",{className:"".concat(j.Z.suggestionLoading," py-4 d-flex justify-content-center")},n.createElement(o.Z,{animation:"border"})),!P&&I&&n.createElement(k,{selected:g===p.length+1,handleNoSuggestion:function(){t.onClickNoSuggestions(f)}}))))}},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:""}}},73525:(t,e,r)=>{r.d(e,{M:()=>i});var n=r(32735);function o(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 a(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)?a(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 a(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 i(t){var e=o(n.useState(0),2),r=e[0],a=e[1],i=n.useRef(),c=o(n.useState(!!t.hideInitially),2),l=c[0],u=c[1];function s(){var t;i.current&&(null===(t=i.current.children[r-1])||void 0===t||t.scrollIntoView({block:"center"}))}return{selectedIndex:r,onKeyDown:function(e){if(t.hideOnEnter&&u(!1),"ArrowDown"===e.code){e.stopPropagation(),e.preventDefault();var n=r+1;return n>t.itemCount&&(n=1),a(n),void s()}if("ArrowUp"===e.code){e.stopPropagation(),e.preventDefault();var o=r-1;return o<=0&&(o=t.itemCount),a(o),void s()}if("Enter"===e.code&&r>0)return e.stopPropagation(),e.preventDefault(),t.onSelected(r-1),void(t.hideOnEnter&&u(!0));a(0)},containerRef:i,hide:l,onFocus:function(){t.hideOnBlur&&u(!1)},onBlur:function(){t.hideOnBlur&&u(!0)}}}},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)}},1269:(t,e,r)=>{r.d(e,{n:()=>S,W:()=>E});var n=r(32735),o=r(80247),a=r(50132),i=r(92802),c=r(91967),l=r(1048),u=r(57408),s=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};function f(t){var e=t.label,r=t.checkboxLabelClassName,o=t.checkboxLabelFontWeight,i=t.className,c=s(t,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return n.createElement(a.Z.Group,{className:"form-group"},n.createElement("div",{className:"form-check ".concat(i||"")},n.createElement(S,Object.assign({className:"form-check-input"},c)),n.createElement(a.Z.Label,{className:"form-check-label cursor-pointer ".concat("normal"===o?"fw-normal":""," \n ").concat(r),htmlFor:c.id},e),t.checkboxAppLink&&t.checkboxAppLinkText&&n.createElement(n.Fragment,null,n.createElement("span",null," "),n.createElement(u.F,{appLink:t.checkboxAppLink,className:"info-link"},t.checkboxAppLinkText))))}var d=r(83914),y=r(83345),p={getCustomFormControlClassName:function(t,e,r,n,o,a){var c="";return c=function(t,e){var r="";return r="select"===t?"form-select":"form-control","sm"===e&&(r+=" ".concat(r,"-sm")),"lg"===e&&(r+=" ".concat(r,"-lg")),r}(a,n),(0,i.u9)(e,r)&&(0,i.u9)(t,r)&&(c+=" is-invalid"),o&&(c+=" ".concat(o)),c}},m=r(35223);function h(t){var e=(0,i.u6)().values[t.fieldName];return"string"!=typeof e?n.createElement(n.Fragment,null):n.createElement("div",{className:"float-end text-secondary fw-normal"},e.length,"/",t.limit," characters")}const v={revealPassword:"jCfI0",passwordInput:"RBJnf",passwordContainer:"d78lK",passwordContainerDisabled:"asbVo",infoTooltip:"wzyOG",spinner:"CycFx"};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}var b=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},w="shared.formField";function S(t){var e,r,a=t.children,u=t.showLoadingSpinner,s=b(t,["children","showLoadingSpinner"]),f=(e=n.useState(t.type),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 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}}(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.")}()),y=f[0],p=f[1],h=c.q.isFunction(a)?function(t){return a(t)}:n.Children.count(a)?a:null;if("password"!==s.type)return u?n.createElement("div",{className:"position-relative"},n.createElement(i.gN,Object.assign({},l.t.omit(s,["formSize"])),h),n.createElement("div",{className:v.spinner},n.createElement(o.Z,{animation:"border",size:"sm"}))):n.createElement(i.gN,Object.assign({},l.t.omit(s,["formSize"])),h);var w="position-relative ".concat(v.passwordContainer);return s.className&&(w+=" ".concat(s.className)),s.disabled&&(w+=" ".concat(v.passwordContainerDisabled)),n.createElement("div",{className:w},n.createElement(i.gN,Object.assign({},l.t.omit(s,["formSize","type","className"]),{type:y,className:"".concat(v.passwordInput," border-0 w-100 h-100 outline-none rounded")}),h),"password"===s.type&&n.createElement(d.x,{svgName:"password"===y?m.vn.VisibleOn:m.vn.VisibleOff,className:"svg-container cursor-pointer ".concat(v.revealPassword),onClick:function(){p("password"===y?"text":"password")}}))}function E(t){var e=t.label,r=t.className,o=t.showCharacterCounter,c=t.showRequiredStar,u=t.infoTooltip,s=t.infoTooltipPlacement,g=t.infoText,E=t.formSize,O=t.showOptionalLabel,j=b(t,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoTooltipPlacement","infoText","formSize","showOptionalLabel"]),C=(0,i.u6)(),L=C.errors,x=C.touched,k=function(){};if("checkbox"===j.type){var A=l.t.omit(t,["formSize","infoTooltipPlacement"]);return t.disabled&&(A.onChange=k),n.createElement(f,Object.assign({},A))}var N=Object.assign(Object.assign({},j),{className:p.getCustomFormControlClassName(L,x,j.name,E,r,"string"==typeof t.as?t.as:null)});return t.disabled&&(N.onChange=k),n.createElement(a.Z.Group,{className:"form-group"},!!e&&n.createElement(a.Z.Label,{htmlFor:j.id,className:"d-flex align-items-center"},e,c&&n.createElement("span",{className:"text-danger"},"*"),u&&n.createElement(d.x,{className:"svg-container text-secondary ".concat(v.infoTooltip),svgName:m.vn.Info,title:u,tooltipPlacement:s,tooltipSpanHack:!0}),O&&n.createElement("span",{className:"text-secondary"}," ",n.createElement(y.x,{namespace:w,phrase:"optional"})),!!o&&!!j.maxLength&&n.createElement("div",{className:"ms-auto"},n.createElement(h,{fieldName:j.name,limit:j.maxLength}))),n.createElement(S,Object.assign({},N,{"aria-errormessage":"".concat(j.name,"Error")})),!!g&&n.createElement(a.Z.Text,{className:"text-secondary"},g),n.createElement(i.Bc,{name:j.name},(function(t){return n.createElement(a.Z.Control.Feedback,{id:"".concat(j.name,"Error"),type:"invalid",role:"status"},t)})))}S.defaultProps={autoComplete:"off"},E.defaultProps={autoComplete:"off",infoTooltipPlacement:"top"}},82644:(t,e,r)=>{r.d(e,{b:()=>s,n:()=>u});var n=r(32735),o=r(92802),a=r(91967),i=r(1048);function c(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=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};function u(t){var e=t.castInitialValues,r=t.castValuesOnSubmit,u=t.initialValues,s=t.onSubmit,f=l(t,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),d=e&&t.validationSchema?t.validationSchema.cast(function(t){if(!t)return{};var e=i.t.deepClone(t);return function t(r){Object.keys(e).forEach((function(n){e.hasOwnProperty(n)&&(i.t.isObject(r[n])?t(r[n]):null===e[n]&&delete e[n])}))}(e),e}(u)):u,y={allowInitialSubmit:t.allowInitialSubmit};return n.createElement(o.J9,Object.assign({enableReinitialize:!0},f,{initialValues:d,onSubmit:function(e,n){var o=n.setSubmitting,a=n.resetForm,i=n.setFieldError,l=r&&t.validationSchema?t.validationSchema.cast(e):e;s(l,(function(){var t,e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(r.reset&&a(),r.errors)for(var n=0,l=Object.entries(r.errors);n<l.length;n++){var u=(t=l[n],e=2,function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return c(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)?c(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.")}()),s=u[0],f=u[1];i(s,f)}o(!1)}))},initialStatus:y}),a.q.isFunction(t.children)?function(e){return t.children(e)}:n.Children.count(t.children)?t.children:null)}function s(){return(0,o.u6)()}u.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},7822:(t,e,r)=>{r.d(e,{D:()=>o});var n=r(99940),o={checkEmail:function(t){return{url:"/api/braze/check-email",key:"braze:check:email:".concat(t),type:n.k.POST,data:{email:t}}},prospectLookups:function(t){return{url:"{gateway}/v1/prospects/".concat(t,"/lookups"),key:"prospect:lookup:".concat(t)}}}},7614:(t,e,r)=>{var n;r.d(e,{_:()=>n}),function(t){t.LivestreamBooking="sl_product_livestream",t.ContactUs="sl_marketing_form_contact_us"}(n||(n={}))},91975:(t,e,r)=>{var n;r.d(e,{J:()=>n}),function(t){t.ContactUs="Contact us",t.LivestreamBooking="Livestream booking"}(n||(n={}))},93015:(t,e,r)=>{r.d(e,{k:()=>a});var n=r(70624),o=r(60735);function a(){return{client:t=(0,n.G)(o.D.BrazeClient),logFormSubmission:function(e){var r=e.user,n=e.additionalData,o=e.source,a=e.eventType,i=e.topic,c=e.callback,l=function(t,e){return Object.assign(Object.assign({},t),{custom:Object.assign(Object.assign({},null==t?void 0:t.custom),{topic:e.topic,source:e.source}),event:Object.assign(Object.assign({},null==t?void 0:t.event),{eventTopic:e.topic})})}(r,{source:o,topic:i});t.setUserInit(l),t.logFormEvent({eventType:a,additionalData:n,callback:c})}};var t}},6117:(t,e,r)=>{r.d(e,{f:()=>c});var n=r(39202),o=r(14292),a=r(97395);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)}var c={isBot:function(){if(!window.URLSearchParams)return!1;var t=new URLSearchParams(window.location.search);return"true"===(null==t?void 0:t.get("isBot"))},getCanonicalLink:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=o.A.GetCurrentOrigin(),r=(null==t?void 0:t.customAppLink)||n.C$.getCurrentAppLink(),c=function(t,e){if(!(null==e?void 0:e.length)||"string"==typeof t||!t)return{};var r=e.reduce((function(t,e){return Object.assign(Object.assign({},t),(r={},o=!0,(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=e))in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,r));var r,n,o}),{});return Object.keys(t).reduce((function(e,n){return n in r&&(e[n]=t[n]),e}),{})}(r.params,t.allowedParams),l=n.C$.getHref(Object.assign(Object.assign({},r),{params:c}));return"function"==typeof t.hrefTransformer&&(l=t.hrefTransformer(l)),a._.safeUrlConcat(e,l)}}},52202:(t,e,r)=>{r.d(e,{Z:()=>n});const n={baseText:"KL3Q_",inputFocused:"I6wQy",dropdown:"oI3z7",suggestionContainer:"Y78ea",suggestionItem:"magL7",suggestionLoading:"W7rH_",noSuggestion:"XXSnS",large:"b0Mz9",input:"ChY5L",selected:"snnHR",useMyLocation:"dwmvC"}}}]);
|
|
1
|
+
/*! For license information please see 2215-7780e204d2-streamable-learning.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[2215],{92869:(t,e,r)=>{r.d(e,{t:()=>a});var n=r(43823),o=r(95846),a={preventScrollTop:function(){n.Radio.channel(o.G.SHELL).trigger("prevent:scroll:top")}}},53374:(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))))}))},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"],d=["Professor","Lecturer","Course Coordinator / Administrator","Digital Learning Manager","Tutor","Teaching Fellow","Librarian","Learning Technologist","Teacher","Teaching Assistant","Researcher","IT"],y=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),p=c(c(c(c({},a.b.AU,f),a.b.UK,d),o.C.AU,f),o.C.UK,d),m=r(66122);function h(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?p[null==r?void 0:r.toLowerCase()]||f:y[null==r?void 0:r.toLowerCase()]||s),c=b(t.initialValue,i),l=h(n.useState(c),2),u=l[0],d=l[1],v=h(n.useState(c===g?t.initialValue:""),2),w=v[0],S=v[1];n.useEffect((function(){d(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){d(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)))}},47464:(t,e,r)=>{r.d(e,{l:()=>_});var n=r(32735),o=r(65858),a=r(53374),i=r(57900),c=r(45157),l=r(86664),u=r(52214);function s(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 f(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)?f(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 f(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 u.aN({apiKey:t.apiKey,version:"weekly",libraries:t.libraries,retries:3})}function y(t){var e={apiKey:t.apiKey,libraries:t.libraries||["places"]},r=s(n.useState(!1),2),o=r[0],a=r[1],i=s(n.useState(d(e)),2),c=i[0],l=i[1];function u(t,r){c?c.loadCallback((function(e){if(e)return a(!1),void(r&&r(e));a(!0),t&&t()})):l(d(e))}return n.useEffect((function(){u()}),[]),{loader:c,scriptLoaded:o,onGoogleApiReady:u}}function p(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 m(t){var e,r,o=y({apiKey:t.googleApiKey}).scriptLoaded,a=(e=n.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 p(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)?p(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.")}()),i=a[0],c=a[1];return n.useEffect((function(){o&&c(new google.maps.places.AutocompleteService)}),[o]),i}function h(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 v="us",g="country:placeholder:text";function b(t){var e,r,o=t.apiKey,a=t.geoLocation,u=t.makeRequest,s=void 0===u||u,f=t.template,d=void 0===f?"E.g. [placeholder]":f,y=t.templateKey,p=void 0===y?"[placeholder]":y,b=m({googleApiKey:o}),w=n.useState((function(){return function(t){var e=l.I.getLocalizedLocalityPlaceholderText(null==t?void 0:t.countryCode);return e||(i.SG.cacheGet("".concat(g,":").concat(null==t?void 0:t.countryCode))||void 0)}(a)})),S=(r=2,function(t){if(Array.isArray(t))return t}(e=w)||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 h(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)?h(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.")}()),E=S[0],O=S[1];function C(t,e){i.SG.cacheSet("".concat(g,":").concat(e),t,86400),O(t)}return n.useEffect((function(){if(!E&&b&&s){var t=(null==a?void 0:a.countryCode)||v,e={input:String.fromCharCode(96+c.Y.getRandomInt(26)),types:["(cities)"],region:t,componentRestrictions:{country:t}};b.getPlacePredictions(e,(function(e,r){return function(t,e,r){if(e===google.maps.places.PlacesServiceStatus.OK&&t){var n=t[c.Y.getRandomInt(t.length)].description;C(d.replace(p,n),r)}else C(l.I.getLocalizedLocalityPlaceholderText(v),r)}(e,r,t)}))}}),[E,b,a,s]),E}var w=r(73525);function S(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 E(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)?E(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 E(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 O={getPlaceDetails:function(t){var e,r,n,o,a,i=t.formatted_address,c=S(t.address_components);try{for(c.s();!(a=c.n()).done;){var l,u=a.value,s=S(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 C(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 j={1:"geocoderPermissionDenied",2:"geocoderUnavailable",3:"geocoderTimeout"},L=r(28329);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 k=r(11607);function A(){return n.createElement("svg",{viewBox:"0 0 24 24"},n.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"}))}var N=r(52202);function T(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 P(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)?P(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 P(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 I(t){var e=t.predictions,r=t.getPlaceInfo,o=t.selectedIndex;return n.createElement(n.Fragment,null,e.map((function(t,e){return n.createElement(k.L,{className:"".concat(N.Z.suggestionItem," ").concat(o-1===e?N.Z.selected:""),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 _(t){var e,r,i,c,l,u,s=n.useRef(),f=T(n.useState((null===(e=t.data)||void 0===e?void 0:e.schoolLocality)||""),2),d=f[0],p=f[1],h=T(n.useState(!1),2),v=h[0],g=h[1],S=b({apiKey:t.googleMapsApiKey,geoLocation:t.geoLocation}),E=function(t){var e,r,o=t.search,a=t.makePredicition,i=t.geoLocation,c=m({googleApiKey:t.apiKey}),l=(0,L.N)(o,300),u=(e=n.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 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}}(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 d(t,e){e===google.maps.places.PlacesServiceStatus.OK&&t?f(t):f(void 0)}return n.useEffect((function(){if(c)if(0!==(null==l?void 0:l.length)&&a){var t=(null==i?void 0:i.countryCode)||"us";c.getPlacePredictions({input:l,componentRestrictions:(null==i?void 0:i.isFallback)?void 0:{country:t},region:t,types:["locality","sublocality","postal_code"]},d)}else f(void 0)}),[l,a,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:i.countryCode},(function(t,e){if(e===google.maps.places.PlacesServiceStatus.OK){var n=t.geometry.location.lng(),o=t.geometry.location.lat(),a=O.getPlaceDetails(t),i=a.locality,c=a.country,l=a.postalCode,u=a.city,s=a.province;r({longitude:n,latitude:o,locality:i,country:c,city:u,postalCode:l,province:s})}}))}}}({search:d,makePredicition:v,geoLocation:t.geoLocation,apiKey:t.googleMapsApiKey}),P=E.localityPredicitions,_=E.getPlaceInfo,F=function(t){var e,r,o=(e=n.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 C(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)?C(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],i=o[1],c=y(t).onGoogleApiReady;function l(t){var e=t.coords,r=e.latitude,n=e.longitude,o=new google.maps.LatLng(r,n);(new google.maps.Geocoder).geocode({location:o},(function(t,e){if(e===google.maps.GeocoderStatus.OK){var o=t.find((function(t){return t.types.includes("locality")||t.types.includes("administrative_area_level_2")})),a=O.getPlaceDetails(o);i(Object.assign(Object.assign({},a),{longitude:n,latitude:r}))}}))}function u(e){var r=j[e.code];r||(r="geocoderUnknown"),t.onPositionError("We are unable to access your location. Please try again later.")}return{placeDetails:a,onClickGetCurrentLocation:function(){c((function(){window.navigator.geolocation.getCurrentPosition(l,u)}))}}}({apiKey:t.googleMapsApiKey,onPositionError:function(t){g(!0),H(t)}}),D=F.placeDetails,U=F.onClickGetCurrentLocation,K=window.navigator.geolocation?1:0,R=(0,w.M)({onSelected:function(t){if(P)if(t!==P.length){var e=P[t];e&&J(e)}else X()},itemCount:null!==(r=(null==P?void 0:P.length)+K)&&void 0!==r?r:0,hideOnBlur:t.hideOnBlur}),G=R.selectedIndex,M=R.onKeyDown,Z=R.containerRef,z=R.hide,B=R.onBlur,V=R.onFocus,q=T(n.useState(),2),$=q[0],H=q[1];function Y(e){var r,n,o;$&&H(void 0),v||g(!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 W(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 J(t){v&&g(!1),_(t,s,W)}function X(e){var r;null==e||e.preventDefault(),g(!1),U(),null===(r=t.logUserAction)||void 0===r||r.call(t,{},{actionType:o.Vw.Click,descriptor:o.Yu.UseMyLocation})}n.useEffect((function(){W(D)}),[D]);var Q,tt=(null==P?void 0:P.length)&&!(null===(c=null===(i=t.data)||void 0===i?void 0:i.schoolLocality)||void 0===c?void 0:c.length),et=window.navigator.geolocation&&!(null===(u=null===(l=t.data)||void 0===l?void 0:l.schoolLocality)||void 0===u?void 0:u.length),rt=t.labelClassName||"d-block text-center mb-3 fw-normal ".concat(N.Z.baseText),nt="form-group position-relative";return"lg"===t.size&&(nt+=" ".concat(N.Z.large)),n.createElement("div",{className:nt},n.createElement("label",{className:rt,htmlFor:"locality-input"},"ZIP code or city",t.required&&n.createElement("span",{className:"text-danger"},"*")),n.createElement(a.w,{type:"text",value:d,onChange:function(t){return Y(t.currentTarget.value)},id:"locality-input",className:(Q="form-control","lg"===t.size&&(Q+=" form-control-lg"),!tt||z?"".concat(Q," ").concat(N.Z.input):"".concat(Q," ").concat(N.Z.inputFocused)),ref:s,autoComplete:"off",placeholder:S||"Loading...",disabled:t.disabled||!S,autoFocus:null==t?void 0:t.autoFocus,onClickClear:function(){Y(""),s.current.focus()},onKeyDown:M,onFocus:V,onBlur:B}),n.createElement("div",{className:"position-absolute z-1 w-100 ".concat(N.Z.dropdown," ").concat(z?"d-none":"")},!!tt&&n.createElement("div",{className:N.Z.suggestionContainer,ref:Z},n.createElement(I,{predictions:P,getPlaceInfo:J,selectedIndex:G}),window.navigator.geolocation&&t.useGeoLocationApi&&n.createElement(k.L,{className:"".concat(N.Z.suggestionItem," px-1 ").concat(G-1===P.length?N.Z.selected:""),onClick:X},n.createElement("div",{className:"btn btn-link info-link btn-with-icon bg-transparent py-0 pe-1"},n.createElement(A,null),"Use my current location"))),et&&!tt&&t.useGeoLocationApi&&n.createElement("div",{className:"d-flex ".concat(N.Z.useMyLocation)},n.createElement("button",{onClick:X,className:"btn btn-link info-link bg-white btn-with-icon"},n.createElement(A,null),"Use my current location")),!!$&&n.createElement("div",{className:"text-danger p-2"},$)))}},76530:(t,e,r)=>{r.d(e,{X:()=>A});var n=r(32735),o=r(80247),a=r(53374),i=r(99940);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function l(t){var e="function"==typeof Map?new Map:void 0;return l=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(u())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var o=new(t.bind.apply(t,n));return r&&s(o,r.prototype),o}(t,arguments,f(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,t)},l(t)}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}var d=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=f(e),function(t,e){if(e&&("object"==c(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,u()?Reflect.construct(e,r||[],f(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&&s(t,e)}(e,t),r=e,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(l(Error));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 p(){p=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 b?e:b,i=Object.create(a.prototype),c=new P(n||[]);return o(i,"_invoke",{value:k(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 d="suspendedStart",m="suspendedYield",h="executing",v="completed",g={};function b(){}function w(){}function S(){}var E={};u(E,i,(function(){return this}));var O=Object.getPrototypeOf,C=O&&O(O(I([])));C&&C!==r&&n.call(C,i)&&(E=C);var j=S.prototype=b.prototype=Object.create(E);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(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"==y(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 k(e,r,n){var o=d;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===v){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=A(c,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=v,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?v:m,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=v,n.method="throw",n.arg=u.arg)}}}function A(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,A(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;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,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}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 T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function I(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(y(e)+" is not iterable")}return w.prototype=S,o(j,"constructor",{value:S,configurable:!0}),o(S,"constructor",{value:w,configurable:!0}),w.displayName=u(S,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,S):(t.__proto__=S,u(t,l,"GeneratorFunction")),t.prototype=Object.create(j),t},e.awrap=function(t){return{__await:t}},L(x.prototype),u(x.prototype,c,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new x(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(j),u(j,l,"Generator"),u(j,i,(function(){return this})),u(j,"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=I,P.prototype={constructor:P,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,g):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),g},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),g}},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:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}var m=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 h(t){var e={method:i.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===i.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 v={asyncFetch:function(t){return m(this,void 0,void 0,p().mark((function e(){var r,n,o;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=h(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 d(o);case 9:if(204!==n.status){e.next=11;break}return e.abrupt("return");case 11:return e.next=13,n.json();case 13:return e.abrupt("return",e.sent);case 14:case"end":return e.stop()}}),e)})))},asyncFetchPlain:function(t){return m(this,void 0,void 0,p().mark((function e(){var r,n;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=h(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=h(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 g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function b(){b=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 P(n||[]);return o(i,"_invoke",{value:k(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 d="suspendedStart",y="suspendedYield",p="executing",m="completed",h={};function v(){}function w(){}function S(){}var E={};u(E,i,(function(){return this}));var O=Object.getPrototypeOf,C=O&&O(O(I([])));C&&C!==r&&n.call(C,i)&&(E=C);var j=S.prototype=v.prototype=Object.create(E);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(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"==g(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 k(e,r,n){var o=d;return function(a,i){if(o===p)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=A(c,n);if(l){if(l===h)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:y,u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function A(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,A(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,h;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,h):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}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 T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function I(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(g(e)+" is not iterable")}return w.prototype=S,o(j,"constructor",{value:S,configurable:!0}),o(S,"constructor",{value:w,configurable:!0}),w.displayName=u(S,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,S):(t.__proto__=S,u(t,l,"GeneratorFunction")),t.prototype=Object.create(j),t},e.awrap=function(t){return{__await:t}},L(x.prototype),u(x.prototype,c,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new x(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(j),u(j,l,"Generator"),u(j,i,(function(){return this})),u(j,"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=I,P.prototype={constructor:P,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,h):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),h}},e}var w={search:function(t,e,r,n,o){var a={longitude:e.longitude,latitude:e.latitude};e.query&&(a.query=e.query),v.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=b().mark((function r(){return b().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",v.asyncFetch({url:t.createProspect,method:i.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 v.asyncFetch({url:t.prospectLookups(e)})}},S=r(73525),E=r(11607),O=r(28329),C=r(52202);function j(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}function x(t){var e=t.filteredSchoolsList,r=t.getSchoolName,o=t.onSchoolSuggestionClick,a=t.selectedIndex;return n.createElement(n.Fragment,null,e.map((function(t,e){return n.createElement(E.L,{className:"".concat(C.Z.suggestionItem," ").concat(a-1===e?C.Z.selected:""),key:t.id,onKeyDown:function(e){return"Enter"===e.key&&o(t)},onMouseDown:function(){return o(t)},onClick:function(){return o(t)}},r(t)," ",n.createElement("br",null),n.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 k(t){return n.createElement("div",{className:"info-link ".concat(C.Z.suggestionItem," ").concat(C.Z.noSuggestion," ").concat(t.selected?C.Z.selected:""),onKeyDown:function(e){return"Enter"===e.key&&t.handleNoSuggestion()},onMouseDown:t.handleNoSuggestion,onClick:t.handleNoSuggestion},"Can't find your school?")}function A(t){var e,r,i=n.useRef(),c=j(n.useState(!0),2),l=c[0],u=c[1],s=j(n.useState(t.data.schoolName&&t.data.schoolPostCode?t.data.schoolName+", "+t.data.schoolPostCode:t.data.schoolName?t.data.schoolName:""),2),f=s[0],d=s[1],y=j(n.useState(),2),p=y[0],m=y[1],h=(0,O.N)(f,250),v=(0,S.M)({onSelected:function(e){if(p||e)if(e!==p.length){var r=p[e];r&&U(r)}else t.onClickNoSuggestions(f)},itemCount:null!==(e=(null==p?void 0:p.length)+1)&&void 0!==e?e:0,hideOnBlur:t.hideOnBlur}),g=v.selectedIndex,b=v.onKeyDown,E=v.containerRef,L=v.hide,A=v.onBlur,N=v.onFocus,T=!!(null===(r=t.data)||void 0===r?void 0:r.prospectId),P=l&&!T,I=!l&&!T&&(null==p?void 0:p.length)<5,_=(null==p?void 0:p.length)&&!T;function F(e){(t.data.schoolName||t.data.prospectId)&&t.clearData(),e!==f&&d(e)}function D(e){if(t.data.latitude||t.data.longitude){u(!0);var r={latitude:t.data.latitude,longitude:t.data.longitude};e&&e.length&&(r.query=e),w.search(t.searchUrl,r,(function(t){return m(t)}),null,(function(){return u(!1)}))}else u(!1)}function U(e){d(K(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 K(t){return t.name}n.useEffect((function(){T||(h.length?!T&&h.length>1&&h===f&&D(h):D())}),[h,T]);var R=(_||P||I)&&!t.disabled&&!L,G="form-control ".concat(R?C.Z.inputFocused:C.Z.input),M="form-group position-relative";return"lg"===t.size&&(G+=" form-control-lg",M+=" ".concat(C.Z.large)),n.createElement("div",{className:M},n.createElement("label",{className:t.labelClassName,htmlFor:"school-input"},"School:",t.required&&n.createElement("span",{className:"text-danger"},"*")),n.createElement(a.w,{id:"school-input",value:f,onChange:function(t){return F(t.currentTarget.value)},ref:i,className:G,type:"text",autoComplete:"off",placeholder:t.placeholder||"Select your school below",disabled:t.disabled,autoFocus:!0,onClickClear:function(){F(""),i.current.focus()},onKeyDown:b,onFocus:N,onBlur:A}),n.createElement("div",{className:"position-absolute z-1 w-100 ".concat(C.Z.dropdown," ").concat(L?"d-none":"")},n.createElement("div",{className:"".concat(C.Z.suggestionContainer," ").concat(R?"":"d-none"),ref:E},_?n.createElement(x,{filteredSchoolsList:p,onSchoolSuggestionClick:U,getSchoolName:K,selectedIndex:g}):P&&n.createElement("div",{className:"".concat(C.Z.suggestionLoading," py-4 d-flex justify-content-center")},n.createElement(o.Z,{animation:"border"})),!P&&I&&n.createElement(k,{selected:g===p.length+1,handleNoSuggestion:function(){t.onClickNoSuggestions(f)}}))))}},76153:(t,e,r)=>{r.d(e,{F:()=>s});var n=r(33003),o=r.n(n);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){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 c(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)?c(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 c(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={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}},u={england:"ENG",scotland:"SCT",wales:"WLS","northern ireland":"NIR"},s={hashedEmail:function(t){var e=t.trim().toLowerCase();return o().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=i(t,2)[1];return null!=e&&!("string"==typeof e&&!e.length)})).reduce((function(t,e){var r,n,o,c=i(e,2),l=c[0],u=c[1];return Object.assign(Object.assign({},t),(r={},n=l,o=u===Object(u)?s.removeEmptyKeys(u):u,(n=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+""}(n))in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,r))}),{})},EVENT_TOPIC:"Free Trial Request",BDM_EVENT_TOPIC:"Requested free trial (Streamable Customer)",SOURCE:"cv_product_trial_requested",BDM_SOURCE:"cv_product_bdm_trial_requested",getSchoolType:function(t){var e;if(t){var r=t.toLowerCase();if(!["unknown","other"].includes(r))return(null===(e=l[r])||void 0===e?void 0:e.label)||t}},isTertiarySchool:function(t){var e;return(null===(e=l[null==t?void 0:t.toLowerCase()])||void 0===e?void 0:e.isTertiary)||!1},parseProvince:function(t){return t.length?u[t.toLowerCase()]||t:""}}},73525:(t,e,r)=>{r.d(e,{M:()=>i});var n=r(32735);function o(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 a(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)?a(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 a(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 i(t){var e=o(n.useState(0),2),r=e[0],a=e[1],i=n.useRef(),c=o(n.useState(!!t.hideInitially),2),l=c[0],u=c[1];function s(){var t;i.current&&(null===(t=i.current.children[r-1])||void 0===t||t.scrollIntoView({block:"center"}))}return{selectedIndex:r,onKeyDown:function(e){if(t.hideOnEnter&&u(!1),"ArrowDown"===e.code){e.stopPropagation(),e.preventDefault();var n=r+1;return n>t.itemCount&&(n=1),a(n),void s()}if("ArrowUp"===e.code){e.stopPropagation(),e.preventDefault();var o=r-1;return o<=0&&(o=t.itemCount),a(o),void s()}if("Enter"===e.code&&r>0)return e.stopPropagation(),e.preventDefault(),t.onSelected(r-1),void(t.hideOnEnter&&u(!0));a(0)},containerRef:i,hide:l,onFocus:function(){t.hideOnBlur&&u(!1)},onBlur:function(){t.hideOnBlur&&u(!0)}}}},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)}},1269:(t,e,r)=>{r.d(e,{n:()=>S,W:()=>E});var n=r(32735),o=r(80247),a=r(50132),i=r(92802),c=r(91967),l=r(1048),u=r(57408),s=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};function f(t){var e=t.label,r=t.checkboxLabelClassName,o=t.checkboxLabelFontWeight,i=t.className,c=s(t,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return n.createElement(a.Z.Group,{className:"form-group"},n.createElement("div",{className:"form-check ".concat(i||"")},n.createElement(S,Object.assign({className:"form-check-input"},c)),n.createElement(a.Z.Label,{className:"form-check-label cursor-pointer ".concat("normal"===o?"fw-normal":""," \n ").concat(r),htmlFor:c.id},e),t.checkboxAppLink&&t.checkboxAppLinkText&&n.createElement(n.Fragment,null,n.createElement("span",null," "),n.createElement(u.F,{appLink:t.checkboxAppLink,className:"info-link"},t.checkboxAppLinkText))))}var d=r(83914),y=r(83345),p={getCustomFormControlClassName:function(t,e,r,n,o,a){var c="";return c=function(t,e){var r="";return r="select"===t?"form-select":"form-control","sm"===e&&(r+=" ".concat(r,"-sm")),"lg"===e&&(r+=" ".concat(r,"-lg")),r}(a,n),(0,i.u9)(e,r)&&(0,i.u9)(t,r)&&(c+=" is-invalid"),o&&(c+=" ".concat(o)),c}},m=r(35223);function h(t){var e=(0,i.u6)().values[t.fieldName];return"string"!=typeof e?n.createElement(n.Fragment,null):n.createElement("div",{className:"float-end text-secondary fw-normal"},e.length,"/",t.limit," characters")}const v={revealPassword:"jCfI0",passwordInput:"RBJnf",passwordContainer:"d78lK",passwordContainerDisabled:"asbVo",infoTooltip:"wzyOG",spinner:"CycFx"};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}var b=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},w="shared.formField";function S(t){var e,r,a=t.children,u=t.showLoadingSpinner,s=b(t,["children","showLoadingSpinner"]),f=(e=n.useState(t.type),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 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}}(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.")}()),y=f[0],p=f[1],h=c.q.isFunction(a)?function(t){return a(t)}:n.Children.count(a)?a:null;if("password"!==s.type)return u?n.createElement("div",{className:"position-relative"},n.createElement(i.gN,Object.assign({},l.t.omit(s,["formSize"])),h),n.createElement("div",{className:v.spinner},n.createElement(o.Z,{animation:"border",size:"sm"}))):n.createElement(i.gN,Object.assign({},l.t.omit(s,["formSize"])),h);var w="position-relative ".concat(v.passwordContainer);return s.className&&(w+=" ".concat(s.className)),s.disabled&&(w+=" ".concat(v.passwordContainerDisabled)),n.createElement("div",{className:w},n.createElement(i.gN,Object.assign({},l.t.omit(s,["formSize","type","className"]),{type:y,className:"".concat(v.passwordInput," border-0 w-100 h-100 outline-none rounded")}),h),"password"===s.type&&n.createElement(d.x,{svgName:"password"===y?m.vn.VisibleOn:m.vn.VisibleOff,className:"svg-container cursor-pointer ".concat(v.revealPassword),onClick:function(){p("password"===y?"text":"password")}}))}function E(t){var e=t.label,r=t.className,o=t.showCharacterCounter,c=t.showRequiredStar,u=t.infoTooltip,s=t.infoTooltipPlacement,g=t.infoText,E=t.formSize,O=t.showOptionalLabel,C=b(t,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoTooltipPlacement","infoText","formSize","showOptionalLabel"]),j=(0,i.u6)(),L=j.errors,x=j.touched,k=function(){};if("checkbox"===C.type){var A=l.t.omit(t,["formSize","infoTooltipPlacement"]);return t.disabled&&(A.onChange=k),n.createElement(f,Object.assign({},A))}var N=Object.assign(Object.assign({},C),{className:p.getCustomFormControlClassName(L,x,C.name,E,r,"string"==typeof t.as?t.as:null)});return t.disabled&&(N.onChange=k),n.createElement(a.Z.Group,{className:"form-group"},!!e&&n.createElement(a.Z.Label,{htmlFor:C.id,className:"d-flex align-items-center"},e,c&&n.createElement("span",{className:"text-danger"},"*"),u&&n.createElement(d.x,{className:"svg-container text-secondary ".concat(v.infoTooltip),svgName:m.vn.Info,title:u,tooltipPlacement:s,tooltipSpanHack:!0}),O&&n.createElement("span",{className:"text-secondary"}," ",n.createElement(y.x,{namespace:w,phrase:"optional"})),!!o&&!!C.maxLength&&n.createElement("div",{className:"ms-auto"},n.createElement(h,{fieldName:C.name,limit:C.maxLength}))),n.createElement(S,Object.assign({},N,{"aria-errormessage":"".concat(C.name,"Error")})),!!g&&n.createElement(a.Z.Text,{className:"text-secondary"},g),n.createElement(i.Bc,{name:C.name},(function(t){return n.createElement(a.Z.Control.Feedback,{id:"".concat(C.name,"Error"),type:"invalid",role:"status"},t)})))}S.defaultProps={autoComplete:"off"},E.defaultProps={autoComplete:"off",infoTooltipPlacement:"top"}},82644:(t,e,r)=>{r.d(e,{b:()=>s,n:()=>u});var n=r(32735),o=r(92802),a=r(91967),i=r(1048);function c(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=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};function u(t){var e=t.castInitialValues,r=t.castValuesOnSubmit,u=t.initialValues,s=t.onSubmit,f=l(t,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),d=e&&t.validationSchema?t.validationSchema.cast(function(t){if(!t)return{};var e=i.t.deepClone(t);return function t(r){Object.keys(e).forEach((function(n){e.hasOwnProperty(n)&&(i.t.isObject(r[n])?t(r[n]):null===e[n]&&delete e[n])}))}(e),e}(u)):u,y={allowInitialSubmit:t.allowInitialSubmit};return n.createElement(o.J9,Object.assign({enableReinitialize:!0},f,{initialValues:d,onSubmit:function(e,n){var o=n.setSubmitting,a=n.resetForm,i=n.setFieldError,l=r&&t.validationSchema?t.validationSchema.cast(e):e;s(l,(function(){var t,e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(r.reset&&a(),r.errors)for(var n=0,l=Object.entries(r.errors);n<l.length;n++){var u=(t=l[n],e=2,function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return c(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)?c(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.")}()),s=u[0],f=u[1];i(s,f)}o(!1)}))},initialStatus:y}),a.q.isFunction(t.children)?function(e){return t.children(e)}:n.Children.count(t.children)?t.children:null)}function s(){return(0,o.u6)()}u.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},7822:(t,e,r)=>{r.d(e,{D:()=>o});var n=r(99940),o={checkEmail:function(t){return{url:"/api/braze/check-email",key:"braze:check:email:".concat(t),type:n.k.POST,data:{email:t}}},prospectLookups:function(t){return{url:"{gateway}/v1/prospects/".concat(t,"/lookups"),key:"prospect:lookup:".concat(t)}}}},7614:(t,e,r)=>{var n;r.d(e,{_:()=>n}),function(t){t.LivestreamBooking="sl_product_livestream",t.ContactUs="sl_marketing_form_contact_us"}(n||(n={}))},91975:(t,e,r)=>{var n;r.d(e,{J:()=>n}),function(t){t.ContactUs="Contact us",t.LivestreamBooking="Livestream booking"}(n||(n={}))},93015:(t,e,r)=>{r.d(e,{k:()=>a});var n=r(70624),o=r(60735);function a(){return{client:t=(0,n.G)(o.D.BrazeClient),logFormSubmission:function(e){var r=e.user,n=e.additionalData,o=e.source,a=e.eventType,i=e.topic,c=e.callback,l=function(t,e){return Object.assign(Object.assign({},t),{custom:Object.assign(Object.assign({},null==t?void 0:t.custom),{topic:e.topic,source:e.source}),event:Object.assign(Object.assign({},null==t?void 0:t.event),{eventTopic:e.topic})})}(r,{source:o,topic:i});t.setUserInit(l),t.logFormEvent({eventType:a,additionalData:n,callback:c})}};var t}},6117:(t,e,r)=>{r.d(e,{f:()=>c});var n=r(39202),o=r(14292),a=r(97395);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)}var c={isBot:function(){if(!window.URLSearchParams)return!1;var t=new URLSearchParams(window.location.search);return"true"===(null==t?void 0:t.get("isBot"))},getCanonicalLink:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=o.A.GetCurrentOrigin(),r=(null==t?void 0:t.customAppLink)||n.C$.getCurrentAppLink(),c=function(t,e){if(!(null==e?void 0:e.length)||"string"==typeof t||!t)return{};var r=e.reduce((function(t,e){return Object.assign(Object.assign({},t),(r={},o=!0,(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=e))in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,r));var r,n,o}),{});return Object.keys(t).reduce((function(e,n){return n in r&&(e[n]=t[n]),e}),{})}(r.params,t.allowedParams),l=n.C$.getHref(Object.assign(Object.assign({},r),{params:c}));return"function"==typeof t.hrefTransformer&&(l=t.hrefTransformer(l)),a._.safeUrlConcat(e,l)}}},52202:(t,e,r)=>{r.d(e,{Z:()=>n});const n={baseText:"KL3Q_",inputFocused:"I6wQy",dropdown:"oI3z7",suggestionContainer:"Y78ea",suggestionItem:"magL7",suggestionLoading:"W7rH_",noSuggestion:"XXSnS",large:"b0Mz9",input:"ChY5L",selected:"snnHR",useMyLocation:"dwmvC"}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[2967],{26226:(e,a,t)=>{t.r(a),t.d(a,{CompanyDashboardView:()=>K,sanitizeDashboardParams:()=>J});var n=t(32735),r=t(23481),i=t(81886),o=t(20354),l=t(1048),s=t(75896),c=t(78259),d=t(65858),u=t(15800),m=t(83345),p=t(64444),y=t(26154),g=t(35223),v="streamable.companyDashboardEmptyState",b=r.T.encloseNamespace(v);function f(e){var a,t,i=(null===(a=e.dashboard)||void 0===a?void 0:a.status)===y.GL.Archived;return n.createElement(m.D.Provider,{value:v},n.createElement(u.u,null,n.createElement(u.u.Image,{src:e.imageUrl,altText:b("headingForStreamable")}),e.isReadOnly?n.createElement(n.Fragment,null,n.createElement(u.u.Heading,null,n.createElement(m.x,{namespace:v,phrase:"headingForCurator"})),n.createElement(u.u.Info,null,n.createElement(m.x,{namespace:v,phrase:"info"})),n.createElement(p.u,{title:i?r.T.getPhrase(v,"archivedCtaTooltip"):"",spanHack:!0},n.createElement(u.u.Cta,{text:r.T.getPhrase(v,"add"),appLink:null===(t=e.addWidgetApplink)||void 0===t?void 0:t.call(e),className:"btn btn-dark",icon:g.vn.Plus,disabled:i}))):n.createElement(u.u.Heading,null,n.createElement(m.x,{phrase:"headingForStreamable"}))))}var h=t(99105),C=t(75553),k=t(49935),E=t(56097),T=t(87976),w=t(7733),L=t(21366),O=t(9085);function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function P(e,a){(null==a||a>e.length)&&(a=e.length);for(var t=0,n=Array(a);t<a;t++)n[t]=e[t];return n}var S=r.T.encloseNamespace("streamable.companyDashboard");function I(e){var a,t,r,i,o,l,u,m,p=s.m.sortBy(null===(a=e.dashboard)||void 0===a?void 0:a.widgets,"index"),g=n.useMemo((function(){return p.reduce((function(e,a){return e[a.id]=!1,e}),{})}),[null==p?void 0:p.length]),v=(u=n.useState(g),m=2,function(e){if(Array.isArray(e))return e}(u)||function(e,a){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,i,o,l=[],s=!0,c=!1;try{if(i=(t=t.call(e)).next,0===a){if(Object(t)!==t)return;s=!1}else for(;!(s=(n=i.call(t)).done)&&(l.push(n.value),l.length!==a);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(c)throw r}}return l}}(u,m)||function(e,a){if(e){if("string"==typeof e)return P(e,a);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?P(e,a):void 0}}(u,m)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),b=v[0],I=v[1];function D(a,t,n){var r,i=L.S.getWidgetParams(t,n,L.S.getDashboardTargetType(e.dashboard),null===(r=e.activeAudiences)||void 0===r?void 0:r.map((function(e){return e.masterId})));return e.getWidgetContentRequest(a,i,n)}var B=n.useCallback((function(e,a){if(b[e]!==a){var t=Object.assign(Object.assign({},b),function(e,a,t){return(a=function(e){var a=function(e){if("object"!=A(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var t=a.call(e,"string");if("object"!=A(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==A(a)?a:a+""}(a))in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}({},e,a));I(t)}}),[b,p]),x=!(null==p?void 0:p.length)||Object.values(b).every((function(e){return!!e}));return n.createElement(n.Fragment,null,!!p.length&&n.createElement(n.Fragment,null,e.company?n.createElement(C.p,{heading:e.company.name,logo:e.company.logo,logoBgColour:null===(t=e.company.metadata)||void 0===t?void 0:t.colour,alignLogoLeft:!!e.company.logo||!!e.company.cover,banner:e.company.banner,imageCdnUrl:e.imageCdnUrl,blockColourClass:(0,O.x)(e.company.name,w.o),actions:null===(r=e.getBannerActions)||void 0===r?void 0:r.call(e),actionsDropdownClassName:"btn btn-outline-dark"}):n.createElement(C.v,null),n.createElement("div",{className:"d-flex flex-column row-gap-3 py-3 mb-3 border-bottom"},n.createElement(k.Oo,{breadcrumbs:null===(i=e.getBreadcrumbs)||void 0===i?void 0:i.call(e)}),n.createElement(h.x,{audiences:e.audiences,activeAudiences:e.activeAudiences,disabled:e.isReadOnly,appLink:null===(o=e.widgetAppLinks)||void 0===o?void 0:o.audience()})),e.company.description&&n.createElement("div",{className:"mb-5"},n.createElement(E.$,{id:null===(l=e.company)||void 0===l?void 0:l.id,question:S("aboutUs"),answer:c.O.linkifyText(e.company.description),isBot:e.isBot,analyticsOptions:{entity:d.py.Company,location:d.LZ.Dashboard}})),n.createElement("div",null,p.map((function(a){return n.createElement(T.L,{widgetCollection:y.ku.Company,dashboardTarget:y.ku.Company,key:a.id,id:a.id,imageCdnUrl:e.imageCdnUrl,getContentRequest:D,audiences:e.audiences,name:a.name,description:a.description,templateId:a.templateId,metadata:a.metadata,setIsEmpty:B,setFavourite:e.setFavourite,canFavourite:e.canFavourite,appLinks:e.widgetAppLinks,isScrollToTargetWidget:(null==e?void 0:e.scrollToWidgetId)===a.id,widgetTypeId:a.widgetId,yearGroups:e.yearGroups,hasPermissions:e.hasPermissions,hasLocalPermissions:e.hasLocalPermissions,isPreviewing:e.isReadOnly,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,lazyLoad:e.lazyLoad,contentType:y.VH.Livestream,isPlugin:!1,classification:null,seeMoreLink:void 0,hasTableOfContents:!1,settings:{hasTopicDirectories:!1}})})))),x&&n.createElement(f,{dashboard:e.dashboard,isReadOnly:e.isReadOnly,imageUrl:e.emptyImageUrl,addWidgetApplink:e.widgetAppLinks.widgetWizard}))}var D=t(70275),B=t(25925),x=t(67058),F=t(89454),U=t(39151),R=t(80889),j=t(79612),W=t(69454),H=t(25301),_=t(99742),N=t(96359),q=t(41760),M=t(41135),z=t(68317),G=t(31700),V=t(73688),$=t(6117),Q=t(28400),Y=t(65751),Z=r.T.encloseNamespace("dashboard.companyDashboard");function J(e){return e?l.t.pick(e,["a","dashboardId"]):{}}function K(e){var a,t,r,l=o.a.useBasicFetch(U.L.config()),s=o.a.useBasicFetch(z.h.company(e.companyId,{query:"banner,logo"})),c=o.a.useBasicFetch(G.g.streamablePresentation()),d=o.a.useBasicFetch(c.data&&F.O.presentationAudiences(c.data.id,B.R.StreamableLearning)),u=W.T.getActiveAudiencesFromParams(d.data,e.queryParams),m=s.data&&function(e,a){return Object.assign(Object.assign({},Y.y),{audience:function(){return{application:M.O.DASHBOARD,action:N.e.Dashboard.COMPANY_DASHBOARD,args:[null==e?void 0:e.id,Q.m.slugify(null==e?void 0:e.name)],params:a}},interactiveGuidance:function(){return null},series:function(){return null},classificationLatestReleases:function(){return null},playlist:function(){return null},watchHistory:function(){return null},widgetWizard:function(){return null},searchSettings:function(){return null},searchHome:function(){return null}})}(s.data,e.queryParams),p=(0,V.B)({targetType:y.ku.Company,companyId:e.companyId,dashboardId:null===(a=e.queryParams)||void 0===a?void 0:a.dashboardId}),g=p.dashboard,v=p.isPreviewing;return(0,j.M)(H.CG.getDefaultMetadata({title:null===(t=s.data)||void 0===t?void 0:t.name,phraseContext:{phraseHandler:Z,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:$.f.getCanonicalLink({customAppLink:null==m?void 0:m.audience()}),allowIndexing:!0,product:q.L.PRODUCT_NAME})),n.useEffect((function(){g.hasCompleted&&!g.data&&i.Q.Ry.throw(new x.d)}),[g.data,g.hasCompleted]),l.hasCompleted&&g.hasCompleted&&c.hasCompleted&&d.hasCompleted&&s.hasCompleted?n.createElement("div",{className:"position-relative px-4"},!(!v||!g.data)&&n.createElement(D.a,{status:g.data.status,type:"company"}),n.createElement(I,{company:s.data,dashboard:g.data,getWidgetContentRequest:R._.dashboardWidgetContent,imageCdnUrl:null===(r=l.data)||void 0===r?void 0:r.imageCdnUrl,presentation:c.data,widgetAppLinks:m,getBreadcrumbs:function(){return s.hasCompleted?[{name:Z("discover"),appLink:{application:M.O.DASHBOARD,action:N.e.Dashboard.HOME}},{name:s.data.name,active:!0}]:[]},hasPermissions:function(){return!1},hasLocalPermissions:function(){return!1},companyLogoFallbackUrl:_.W.StreamableLearning.LOGO,subTextType:"productionCompany",audiences:d.data,activeAudiences:u,emptyImageUrl:_.W.EmptyStates.Topics.TOPIC,isBot:$.f.isBot(),lazyLoad:!$.f.isBot()})):n.createElement(n.Fragment,null)}},68317:(e,a,t)=>{t.d(a,{h:()=>i});var n=t(99940),r=t(97395),i={company:function(e,a){return{url:r._.urlBuilder("{gateway}/v1/objects/".concat(e),a),publicUrl:r._.urlBuilder("/api/objects/".concat(e),a),key:"company:".concat(e)}},companies:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,r="search:v4:streamable:company:".concat(a,":").concat(t),i={query:"",searchType:"content",indices:[{index:"company",filters:e}],allowSubstitute:!1,cursor:null!=a?a:void 0,limit:t,sorts:{name:"asc"}};return{url:"{gateway}/v4/search",publicUrl:"/api/search/v4",type:n.k.POST,data:i,key:r}}}}}]);
|