@clickview/streamable-learning 0.11.1-rc.1 → 0.11.1-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/bundles.json +1 -1
  2. package/dist/languages/en.json +1 -1
  3. package/dist/scripts/1661-c201fdd00b-streamable-learning.chunk.js +1 -0
  4. package/dist/scripts/{1491-2bc65e8fcc-streamable-learning.chunk.js → 2206-876c57f924-streamable-learning.chunk.js} +2 -2
  5. package/dist/scripts/2568-f15a06f42e-streamable-learning.chunk.js +2 -0
  6. package/dist/scripts/2967-073ef8276e-streamable-learning.chunk.js +1 -0
  7. package/dist/scripts/4018-79febe5bcb-streamable-learning.chunk.js +2 -0
  8. package/dist/scripts/4254-355be6131d-streamable-learning.chunk.js +1 -0
  9. package/dist/scripts/4503-69345b0725-streamable-learning.chunk.js +1 -0
  10. package/dist/scripts/5594-ef43e6cbdf-streamable-learning.chunk.js +1 -0
  11. package/dist/scripts/7545-31217597c7-streamable-learning.chunk.js +1 -0
  12. package/dist/scripts/7694-4affa05b0f-streamable-learning.chunk.js +2 -0
  13. package/dist/scripts/8664-361731a4c2-streamable-learning.chunk.js +1 -0
  14. package/dist/scripts/9638-617862d0d0-streamable-learning.chunk.js +1 -0
  15. package/dist/scripts/{bundle-247d69204d.min.js → bundle-307ad2277c.min.js} +2 -2
  16. package/package.json +1 -1
  17. package/dist/scripts/121-e3359eaaed-streamable-learning.chunk.js +0 -1
  18. package/dist/scripts/2568-479e9e8b14-streamable-learning.chunk.js +0 -2
  19. package/dist/scripts/2967-02028cefcd-streamable-learning.chunk.js +0 -1
  20. package/dist/scripts/4018-17d1677297-streamable-learning.chunk.js +0 -2
  21. package/dist/scripts/4254-17dc8e2fbf-streamable-learning.chunk.js +0 -1
  22. package/dist/scripts/4343-8f8c898d2b-streamable-learning.chunk.js +0 -1
  23. package/dist/scripts/436-02709dd9d2-streamable-learning.chunk.js +0 -1
  24. package/dist/scripts/4942-28dd300cf0-streamable-learning.chunk.js +0 -1
  25. package/dist/scripts/6341-b5761ba5de-streamable-learning.chunk.js +0 -1
  26. package/dist/scripts/7545-12e30320a5-streamable-learning.chunk.js +0 -1
  27. package/dist/scripts/7694-bb48ac6c83-streamable-learning.chunk.js +0 -2
  28. package/dist/scripts/8664-4ce2d222af-streamable-learning.chunk.js +0 -1
  29. /package/dist/css/{6341-streamable-learning-82a602553e.chunk.css → 5594-streamable-learning-82a602553e.chunk.css} +0 -0
  30. /package/dist/css/{4942-streamable-learning-9e6986fa70.chunk.css → 9638-streamable-learning-9e6986fa70.chunk.css} +0 -0
  31. /package/dist/scripts/{1491-2bc65e8fcc-streamable-learning.chunk.js.LICENSE.txt → 2206-876c57f924-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  32. /package/dist/scripts/{2568-479e9e8b14-streamable-learning.chunk.js.LICENSE.txt → 2568-f15a06f42e-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  33. /package/dist/scripts/{4018-17d1677297-streamable-learning.chunk.js.LICENSE.txt → 4018-79febe5bcb-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  34. /package/dist/scripts/{7694-bb48ac6c83-streamable-learning.chunk.js.LICENSE.txt → 7694-4affa05b0f-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  35. /package/dist/scripts/{bundle-247d69204d.min.js.LICENSE.txt → bundle-307ad2277c.min.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[1661],{47673:(e,t,n)=>{n.d(t,{C:()=>f});var a=n(32735),r=n(86073),i=n(54610),o=n(1164),s=n(67453),c=n(45778),l=n(85473);const u={imageStyle:"FFgf3",imageTypeResource:"z4O5p",fallBackImage:"Xy4zX"};var d={width:200,resizeType:i.Nq.Cover};function m(e){var t;return c.G.isResource(e)?e.metadata.type===o.L.Pdf||(null===(t=e.pdf)||void 0===t?void 0:t.url)?i.__.Pdf:i.__.Thumbnails:i.__.Link}function f(e){var t,n,f,p=null,v=0;c.G.isResource(e.resource)&&(p=e.resource.metadata,v=null!==(f=null===(n=null===(t=e.resource.thumbnail)||void 0===t?void 0:t.metadata)||void 0===n?void 0:n.rotation)&&void 0!==f?f:0);var g=function(e,t){var n,a,l,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d,f=m(t);if("thumbnail"in t&&(null===(n=t.thumbnail)||void 0===n?void 0:n.url))return s.j.createUrl(null===(a=t.thumbnail)||void 0===a?void 0:a.url,Object.assign({},u));var p=r._.safeUrlConcat(e,"/v1/previews");return c.G.isResource(t)?f===i.__.Pdf?t.metadata.type===o.L.Pdf?s.j.createResourceImage(p,t.url,Object.assign({},u)):s.j.createResourceImage(p,null===(l=t.pdf)||void 0===l?void 0:l.url,Object.assign({},u)):t.metadata.type!==o.L.Zip?s.j.createUrl(t.url,{size:i.h2.Medium,resizeType:i.Nq.Cover}):"/images/zip-resource.png":s.j.createResourceImage(p,t.url,Object.assign({},u))}(e.imageCdnUrl,e.resource,e.dynamicRatioImageOptions);return a.createElement(l.Z,{data:g,imageType:m(e.resource),imageStyle:{transform:"rotate(".concat(v,"deg)")},alt:e.resource.name,errorFallbackImageSrc:e.imageErrorFallbackUrl,errorFallbackImageClassName:u.fallBackImage,imageClassName:(null==p?void 0:p.type)===o.L.Image?"".concat(u.imageTypeResource," ").concat(u.imageStyle):"",preload:e.preloadImage,preventLoad:!e.preloadImage})}},55827:(e,t,n)=>{n.d(t,{l:()=>r});var a=n(32735);function r(e){return e.hideDescription&&e.hideHeading?a.createElement(a.Fragment,null):a.createElement("div",{className:"curated-widget-header"},!e.hideHeading&&a.createElement("div",{className:"partial-loading-background curated-widget-heading",style:{height:"1.5rem",width:"12rem"}}),!e.hideDescription&&a.createElement("div",{className:"partial-loading-background curated-widget-description",style:{height:"1.434375rem",width:"16rem"}}))}},5281:(e,t,n)=>{n.d(t,{k:()=>x,x:()=>S});var a=n(32735),r=n(23481),i=n(91967),o=n(82182),s=n(81886),c=n(92582),l=n(66869),u=n(43872),d=n(53855),m=n(31069),f=n(54610),p=n(10841),v=n(79967),g=n(49439),y=n(65294),b=n(26154),h=n(49542),w=n(61871),E=n(92644),j=n(31309),k=n(52993);function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(s.push(a.value),s.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var O="shared.fixedWidget",S=12;function x(e){var t,n=e.analyticsData,I=void 0===n?{}:n,x=e.getWidgetItemAnalyticsData,N=void 0===x?function(){}:x,R=C(a.useState(null),2),P=R[0],A=R[1],L=C(a.useState(null),2),z=L[0],T=L[1],D=C(a.useState(0),2),U=D[0],B=D[1],F=C(a.useReducer(w.CU,w.eS,w.m0),2),_=F[0],M=F[1],V=a.useRef(null),G=C((0,g.X)(),2),H=G[0],W=G[1],Z=C(a.useState(!1),2),q=Z[0],$=Z[1],X=C(a.useState(!1),2),K=X[0],J=X[1];(0,E.iV)(e.controlsRef,M);var Y=(0,y.Y)({prevent:!e.lazyLoad}),Q=Y.ref,ee=Y.inView,te=(0,E.$5)(e,M,ee);function ne(t){var n,a=e.prefetched?e.collection:te.data;if(!a)return[];var r=i.q.isFunction(e.setData)?e.setData(a):a;return null!==(n=null==r?void 0:r.slice(0,t))&&void 0!==n?n:[]}var ae=ne(e.limitTotalItems?S:1/0),re=_.offset===ae.length,ie=(0,v.k)();function oe(){return"scroll"===e.touchBehavior&&o.V.isTabletOrMobile()}a.useEffect((function(){M({type:p.n.Resize,payload:{breakpoints:ie}})}),[ie]),a.useEffect((function(){if(e.prefetched){var t=e.type;t===b.l9.ResourcesTile&&(t=b.l9.Row),M({type:p.n.Init,payload:{breakpoints:ie,type:t,contents:e.contents,totalItems:ae.length}})}}),[null===(t=e.collection)||void 0===t?void 0:t.length,e.prefetched]);var se={type:_.type,collectionSize:ae.length,contents:e.contents},ce=(0,E.lv)(e,(null==te?void 0:te.data)||e.collection);if(null==te?void 0:te.hasError)return a.createElement(a.Fragment,null);if(!e.prefetched&&!(null==te?void 0:te.data)){var le=e.partialComponent||j.j;return a.createElement("div",{ref:Q},a.createElement(le,null))}if(!ae.length||ae.length<e.minimumItemCount)return a.createElement(a.Fragment,null);var ue=e.childComponent,de=function(t){return Object.assign({id:null==ce?void 0:ce.id,name:null==ce?void 0:ce.name,direction:t===p.n.Next?"right":"left"},e.analyticsData)},me=!(!e.appLink||!re)&&!!e.limitTotalItems&&ne(1/0).length>ae.length,fe=oe()||e.hideButtons,pe=_.offset===_.viewableItems,ve=ae.length<=_.offset,ge=_.viewableItems<ae.length;return a.createElement("div",{className:"mx-n4 mb-n3"},a.createElement("div",{className:oe()?"pb-3 overflow-hidden":"px-4 pb-3 overflow-hidden"},!e.hideName&&a.createElement("div",{className:oe()?"px-4":""},a.createElement(l.B,{name:ce.name,description:ce.description,appLink:(0,E.LU)(e.appLink,ce),onClick:e.onClick,analyticsData:Object.assign({id:null==ce?void 0:ce.id,name:null==ce?void 0:ce.name},e.analyticsData),analyticsOptions:h.d.getSliderHeadingAnalyticsOptions(),showSeeMoreLink:ge})),a.createElement("div",{ref:H,className:"position-relative mx-n1 ".concat(oe()?"".concat(k.Z.mobileScroll," px-4"):""," ").concat(e.hideBleedingContent?"overflow-hidden-x":"")},!fe&&a.createElement(a.Fragment,null,!e.hideBleedingContent&&!q&&!pe&&a.createElement("div",{className:k.Z.leftOverflowGradient}),a.createElement(d.W,{direction:d.f.Left,onClick:function(){M({type:p.n.Previous}),c.k.logUserAction(de(p.n.Previous),h.d.getSliderAnalyticsOptions()),i.q.isFunction(e.onPrevious)&&e.onPrevious()},hide:!!e.hideButtons||(0,E.yZ)(q,W,_.offset,_.viewableItems,ae.length),contents:e.contents,className:e.leftWidgetButtonClassName,hideExtendedClickableArea:e.hideExtendedClickableArea,state:_})),a.createElement(u.V,{position:_.position,positionType:m.C.Percentage,onTouchMove:"drag"===e.touchBehavior&&(0,E.p$)(_,V,z,T,P,A,B),onTouchEnd:"drag"===e.touchBehavior&&(0,E.mE)(V,A,U,B,M,e.onNext,e.onPrevious),ref:V,percentageDragged:U},ae.map((function(t,n){return a.createElement(ue,Object.assign({key:"".concat(t.id,":").concat(n),data:t,collectionAppLink:e.appLink,getAppLink:e.getChildAppLink?function(){return e.getChildAppLink(t)}:function(){return null},context:se,preloadImage:(0,E.eM)(_,ae)(t),thumbnailSize:e.thumbnailSize||f.h2.Medium,analyticsData:Object.assign(Object.assign({widgetId:ce.id,widgetName:ce.name,itemIndex:n},I),N(t)),analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),h.d.getSliderItemAnalyticsOptions()),onHover:function(e){oe()||window.setTimeout((function(){!function(e,t){if(ae.length===_.viewableItems)return $(e),void J(e);t+1!==ae.length?0!==t?(t+1-_.offset%_.viewableItems)%_.viewableItems!=0?(t-_.offset%_.viewableItems)%_.viewableItems!=0||$(e):J(e):$(e):J(e)}(e,n)}),e?0:200)}},e.extraChildComponentProps))})),oe()&&a.createElement("div",{className:"ps-4"})),!fe&&a.createElement(a.Fragment,null,a.createElement(d.W,{direction:d.f.Right,onClick:function(){me?s.Q.C$.trigger((0,E.LU)(e.appLink,ce)):(M({type:p.n.Next}),c.k.logUserAction(de(p.n.Next),h.d.getSliderAnalyticsOptions()),i.q.isFunction(e.onNext)&&e.onNext())},hide:!!e.hideButtons||(0,E.DK)(K,W,_.offset,_.viewableItems,ae.length,me),contents:e.contents,hoverText:me&&r.T.getPhrase(O,"seeMore"),className:e.rightWidgetButtonClassName,hideExtendedClickableArea:e.hideExtendedClickableArea,state:_}),!e.hideBleedingContent&&!K&&!ve&&a.createElement("div",{className:k.Z.rightOverflowGradient})))))}x.defaultProps={type:b.l9.Row,minimumItemCount:0,extraChildComponentProps:{},touchBehavior:"scroll"}},61871:(e,t,n)=>{n.d(t,{CU:()=>l,eS:()=>o,m0:()=>u});var a=n(10841),r=n(26154),i=n(92644),o={offset:0,viewableItems:4,position:0,totalItems:0,contents:null,type:r.l9.Row},s=function(e){var t=e.viewableItems,n=e.offset,a=e.position,r=e.totalItems-n;return r%t==0||r>t?{position:a-100,offset:n+t}:r<t?{position:a-r/t*100,offset:n+r}:{position:a,offset:n}},c=function(e){var t=e.viewableItems,n=e.offset,a=e.position,r=n-t;return r%t==0||r>t?{position:a+100,offset:n-t}:r<t?{position:a+r/t*100,offset:n-r}:{position:a,offset:n}};function l(e,t){var n=t.type,r=t.payload,o=void 0===r?{}:r;switch(n){case a.n.Next:return Object.assign(Object.assign({},e),s(e));case a.n.Previous:return Object.assign(Object.assign({},e),c(e));case a.n.JumpToIndex:return Object.assign(Object.assign({},e),{offset:o.offset,position:-100*(o.offset-1)});case a.n.Resize:var l=(0,i.Wl)(e.contents)(o.breakpoints,e.type,e.totalItems);return Object.assign(Object.assign({},e),{position:0,offset:l,viewableItems:l});case a.n.Init:var d=(0,i.Wl)(o.contents)(o.breakpoints,o.type,o.totalItems);return u(Object.assign(Object.assign({},e),{offset:d,viewableItems:d,type:o.type,contents:o.contents,totalItems:o.totalItems,position:0}));case a.n.Update:return Object.assign(Object.assign({},e),{totalItems:o.totalItems});default:return e}}function u(e){return Object.assign(Object.assign({},o),e)}},92644:(e,t,n)=>{n.d(t,{$5:()=>m,DK:()=>B,LU:()=>p,Wl:()=>g,eM:()=>f,iV:()=>F,lv:()=>v,mE:()=>D,p$:()=>z,yZ:()=>U});var a=n(32735),r=n(91967),i=n(1048),o=n(28400),s=n(58704),c=n(10841),l=n(79967),u=n(26154),d=n(5281);function m(e,t,n){var o,s=e.collection;s&&!i.t.isEmpty(s)||e.prefetched||(o=e.fetch(n),s=o.data);var m=r.q.isFunction(e.setData)&&s?e.setData(s):s,f=m,p=(0,l.k)();return a.useEffect((function(){if(s&&!i.t.isEmpty(s)){e.limitTotalItems&&(f=m.length>d.x?m.slice(0,d.x):m);var n=e.type;n===u.l9.ResourcesTile&&(n=u.l9.Row),t({type:c.n.Init,payload:{totalItems:f.length,breakpoints:p,type:n,contents:e.contents}})}}),[null==m?void 0:m.length]),o}function f(e,t){for(var n=e.offset,a=e.viewableItems,r=n,i=[],o=0;o<r+a;o++)i.push(o);return function(e){var n=t.indexOf(e);return i.includes(n)}}function p(e,t){if(e)return Object.assign(Object.assign({},e),{args:e.args||[t.id,o.m.slugify(t.name)]})}function v(e,t){var n=e.name,a=e.description,r={};return Array.isArray(t)?{name:n,description:a}:(e.name&&(r.name=n),e.description&&(r.description=a),Object.assign(Object.assign({},t),r))}function g(e){switch(e){case s.z.Playlists:return y;case s.z.Videos:return w;case s.z.RecentActivities:return E;case s.z.FeedVideos:return j;case s.z.Subjects:return k;case s.z.InteractivesV2:return O;case s.z.Interactives:return C;case s.z.ClipsV2:return S;case s.z.Clips:return I;case s.z.PlayPageResources:return x;case s.z.PlayPageResourcesV2:return N;case s.z.DashboardResources:return w;case s.z.Libraries:case s.z.Folders:return h;case s.z.Ratings:return A;case s.z.SpecialEvents:return L;case s.z.Companies:return b;case s.z.SmallSeries:return P;case s.z.Series:default:return R}}function y(e,t,n){var a=5;return e.xs?a=2:e.sm?a=3:e.md&&(a=4),n<a&&(a=n),a}function b(e,t,n){var a=8;return e.xs||e.sm?a=4:e.md&&(a=6),n<a&&(a=n),a}function h(e,t,n){var a=3;return e.xs||e.sm?a=1:e.md?a=2:e.lg&&(a=3),n<a&&(a=n),a}function w(e,t,n){var a=4;return e.xs&&(a=1),e.sm&&(a=2),(e.md||e.lg)&&(a=3),t===u.l9.LargeRow&&a>3&&(a=3),n<a&&(a=n),a}function E(e,t,n){var a=4;return e.xs&&(a=2),e.sm&&(a=3),n<a&&(a=n),a}function j(e,t,n){return 1}function k(e,t,n){if(t===u.l9.LargeRow){var a=5;return e.xs?a=2:e.sm?a=3:e.md&&(a=4),n<a&&(a=n),a}var r=6;return e.xs?r=2:e.sm?r=3:e.md?r=4:e.lg?r=5:(e.xl||e.xxl)&&(r=6),n<r&&(r=n),r}function C(e,t,n){var a=3;return(e.md||e.sm)&&(a=2),e.xs&&(a=1),n<Math.ceil(a)&&(a=n),a}function I(e,t,n){var a=3;return(e.md||e.sm)&&(a=2),e.xs&&(a=1),n<Math.ceil(a)&&(a=n),a}function O(e,t,n){var a=3;return e.xs&&(a=2),n<a&&(a=n),a}function S(e,t,n){var a=3;return e.xs&&(a=2),n<a&&(a=n),a}function x(e,t,n){var a=4;return e.sm&&(a=3),e.xs&&(a=2),n<a&&(a=n),a}function N(e,t,n){var a=3;return e.xs&&(a=2),n<a&&(a=n),a}function R(e,t,n){var a=4;return e.xs?a=2:e.sm&&(a=3),n<a&&(a=n),a}function P(e,t,n){var a=6;return e.xs?a=2:e.sm?a=3:e.md?a=4:e.lg&&(a=5),n<a&&(a=n),a}function A(e,t,n){if(n<4)return n;var a=5;return(e.xs||e.sm)&&(a=3),(e.md||e.lg)&&(a=4),4===n&&(e.xs||e.sm)&&(a=3),n<a&&(a=n),a}function L(e,t,n){var a=6;return e.xs&&(a=2),e.sm&&(a=3),e.md&&(a=4),e.lg&&(a=5),(e.xl||e.xxl)&&(a=6),n<a&&(a=n),a}function z(e,t,n,a,r,i,o){return function(s){var c=s.touches.item(0).clientX;r||(t.current.style.transition="",a(t.current.getBoundingClientRect().width),i(c));var l=(r-c)/n*100;(l<0&&e.offset===e.viewableItems||l>0&&e.offset===e.totalItems)&&(l=0),o(l)}}var T=7.5;function D(e,t,n,a,r,i,o){return function(){if(e.current.style.transition="transform .4s ease-in-out",t(null),Math.abs(n)>=T){var s=n>0?c.n.Next:c.n.Previous;r({type:s}),n>0&&i?i():n<0&&o&&o()}a(0)}}function U(e,t,n,a,r){return!!e||r<=a||!t||n===a}function B(e,t,n,a,r,i){return!!e||r<=a||n!==a&&(!t||!i&&r<=n)}function F(e,t){a.useEffect((function(){e&&!e.current&&(e.current={jumpToIndex:function(e){return t({type:c.n.JumpToIndex,payload:{offset:e+1}})}})}),[null==e?void 0:e.current])}},31309:(e,t,n)=>{n.d(t,{j:()=>s});var a=n(32735),r=n(55827),i=n(79967),o=n(52993);function s(e){for(var t,n,o=(t=e.size,(n=(0,i.k)()).xs?{itemCount:1,colSize:12}:n.sm?{itemCount:2,colSize:6}:n.md||n.lg?{itemCount:3,colSize:4}:{itemCount:"sm"===t?4:3,colSize:"sm"===t?3:4}),s=o.itemCount,c=o.colSize,l=e.childComponent,u=[],d=0;d<s;d++)u.push(a.createElement(l,{key:d,colSize:c}));return a.createElement("div",{className:"widget"},a.createElement(r.l,{hideHeading:e.hideHeading,hideDescription:e.hideDescription}),a.createElement("div",{className:"row g-0 mx-n1"},u))}s.defaultProps={size:"sm",childComponent:function(e){var t=e.colSize;return a.createElement("div",{className:"col-".concat(t," px-1")},a.createElement("div",{className:"".concat(o.Z.partialItem," partial-loading-background rounded-3")}))}}},11518:(e,t,n)=>{n.d(t,{j7:()=>r.j,kM:()=>a.k});var a=n(5281),r=(n(61871),n(31309))},84342:(e,t,n)=>{n.d(t,{s:()=>j,R:()=>k});var a=n(32735),r=n(39202),i=n(92582),o=n(65858),s=n(57408),c=n(11607),l=n(47673),u=n(83914),d=n(97663),m=n(64444),f=n(1948),p=n(71063),v=n(4594),g=n(1164),y=n(79967),b=n(45778),h=n(54297),w=n(35223);const E={imageStyle:"I9E5O",item:"tqUFn",dashboard:"o7j7p",playPage:"V2RwX",aspectRatio:"OnJDH",outerContainer:"CIFy7",innerContainer:"oUZPD",actions:"jzGAm",titleBelow:"Cpjs3",thumbnailContainer:"EDiGi",titleAbove:"e9ejn",teacherPack:"_tdVE",text:"g5NWS",hoverState:"xRYhX",atomGuide:"X39wU",studentActivity:"X9pMl",additionalMaterials:"qRVUo",userUploaded:"_18JaV",imageTypeResource:"KYtZL",download:"fbb_e"};function j(e){var t,n,r,i,o=null;"metadata"in e.data&&(o=e.data.metadata);var s=b.G.isType(e.data,v.E.Resource);return a.createElement(a.Fragment,null,a.createElement("div",{className:E.aspectRatio},a.createElement("div",{className:E.outerContainer},a.createElement("div",{className:function(t){var n,a="\n d-flex flex-column align-items-center justify-content-end rounded-3 h-100\n position-relative ".concat(function(e){switch(e){case"atom-guide":return E.atomGuide;case"student-activity":return E.studentActivity;case"teacher-pack":return E.teacherPack;case"additional-materials":return E.additionalMaterials;default:return E.userUploaded}}(t)," ").concat(E.innerContainer);return(null===(n=e.theme)||void 0===n?void 0:n.containerClass)?a+=" ".concat(e.theme.containerClass):a+=" pt-3 px-3",e.applyHoverState&&(a+=" ".concat(E.hoverState)),a}(null==o?void 0:o.resourceType)},"above"===e.titlePosition&&a.createElement(m.u,{title:e.data.name},a.createElement("h3",{className:"text-center text-break h5 mb-3 ".concat(E.text)},a.createElement("span",{className:"clamp-1"},e.data.name))),a.createElement("div",{className:"\n ".concat(null!==(n=null===(t=e.theme)||void 0===t?void 0:t.thumbnailContainerClass)&&void 0!==n?n:""," w-75 overflow-hidden \n ").concat(E.thumbnailContainer," ").concat("above"===e.titlePosition?E.titleAbove:""," \n ").concat(E.imageStyle,"\n ")},a.createElement(l.C,{resource:e.data,imageCdnUrl:e.imageCdnUrl,imageErrorFallbackUrl:e.imageErrorFallbackUrl,preloadImage:e.preloadImage})),s&&e.onClickDownload&&"normal"===e.actionBehaviour&&a.createElement("div",{className:E.actions},a.createElement(c.L,{onClick:function(t){return e.onClickDownload(t,e.data)},className:"".concat(E.download," d-flex align-items-center justify-content-center")},a.createElement(u.x,{svgName:w.vn.Download}))),!e.hideTypeBadge&&s&&a.createElement(f.y,{typeId:v.E.Resource})))),"below"===e.titlePosition&&a.createElement("div",{className:"mt-1 ".concat(E.titleBelow)},b.G.isType(e.data,v.E.Resource)&&!!(null===(i=null===(r=e.data)||void 0===r?void 0:r.metadata)||void 0===i?void 0:i.resourceType)&&a.createElement(d.m,null,h.C.getResourceTypeName(e.data.metadata.resourceType)),a.createElement("h3",{className:"h6 clamp-2"},e.data.name)))}j.defaultProps={preloadImage:!0,actionBehaviour:"normal"};var k=a.memo((function(e){var t,n,c,l,u=(t=e.data,n=e.actionBehaviour,l=(0,y.k)(),"public"===n||!l.xs&&!l.sm&&"resource"===t.type&&"metadata"in t&&(t.metadata.type===g.L.Image||(t.metadata.type===g.L.Pdf?!!t.url:!!(null===(c=t.pdf)||void 0===c?void 0:c.url)))),d=Object.assign(Object.assign({},e.analyticsData),e.data),m=Object.assign(Object.assign({},e.analyticsOptions),{actionType:o.Vw.Click,entity:e.data.typeId===v.E.Resource?o.py.Resource:o.py.Link});function f(){i.k.logUserAction(d,m)}var b,h=Object.assign(Object.assign({},e),{applyHoverState:u||!!e.data.url});return a.createElement("div",{className:"px-1 flex-shrink-0 ".concat(E.item," ").concat("play-page"===e.location?E.playPage:E.dashboard," ").concat(p.M.RESOURCE_ITEM_SELECTOR)},(b="d-block no-decoration","link"===e.data.type?a.createElement("a",{href:e.data.url,target:"_blank",className:b,onClick:f},a.createElement(j,Object.assign({},h))):u?"public"===e.actionBehaviour?a.createElement("div",{className:"".concat(b," cursor-pointer d-inline"),onClick:function(){f(),r.C$.trigger(e.getAppLink(e.data))}},a.createElement(j,Object.assign({},h))):a.createElement(s.F,{appLink:e.getAppLink(e.data),className:b,analyticsData:d,analyticsOptions:m},a.createElement(j,Object.assign({},h))):e.data.url?a.createElement("a",{href:e.data.url,className:b,onClick:f},a.createElement(j,Object.assign({},h))):a.createElement("div",{className:b},a.createElement(j,Object.assign({},h)))))}))},58704:(e,t,n)=>{var a;n.d(t,{z:()=>a}),function(e){e.Videos="videos",e.FeedVideos="feed videos",e.Series="series",e.Subjects="subjects",e.Playlists="playlists",e.Interactives="interactives",e.Clips="clips",e.PlayPageResources="play page resources",e.DashboardResources="dashboard resources",e.Libraries="Libraries",e.Folders="Folders",e.RecentActivities="recent activities",e.SmallSeries="small series",e.Companies="companies",e.Ratings="ratings",e.SpecialEvents="special events",e.InteractivesV2="interactives v2",e.ClipsV2="clips v2",e.PlayPageResourcesV2="playpage resources v2"}(a||(a={}))},61699:(e,t,n)=>{n.d(t,{o:()=>l});var a=n(99940),r=n(97395);function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var s=n(62803).v.CLASSIFICATION_COLLECTION,c=function(e){return"/api/domain/v1/subjects/presentations/available".concat(e?"?type=".concat(e):"")},l={availablePresentations:function(e){return{url:c(e),key:"available:presentations:".concat(e),normalizeOptions:{namespace:"presentation"}}},setPresentation:function(e,t,n,r){return{url:(i=e.id,"/api/domain/v1/subjects/presentations/".concat(i)),key:"set:".concat(t,":presentation"),type:a.k.POST,data:{},normalizeOptions:{namespace:"presentation"},invalidationKeys:["current:presentation:".concat(t.toLocaleLowerCase()),"subject:preference:options","my:subject:preferences","level:preference:options","my:level:preferences","classifications","presentation:audiences","widgets:v3","content:update:videos","content:updates"],success:n,error:r};var i},allSubjectPreferences:function(){return{url:"/api/domain/v1/subjects/preferences?query=".concat(s,"&type=subject"),key:"subject:preference:options"}},mySubjectPreferences:function(e){return{url:"/api/domain/v1/subjects/classifications/following?query=".concat(s),key:"my:subject:preferences",normalize:!1,success:e}},followSubjects:function(e,t,n,r){return{url:"/api/domain/v1/subjects/classifications/following",key:"follow:subjects",data:e,type:a.k.POST,success:t,error:n,always:r,invalidationKeys:[].concat(i(e.map((function(e){return"classification:".concat(e)}))),["my:subject:preferences","classifications","content:updates"])}},unfollowSubjects:function(e,t,n,o){return{url:(s=e,r._.urlBuilder("/api/domain/v1/subjects/classifications/following",{id:s})),key:"unfollow:subjects",type:a.k.DELETE,success:t,error:n,always:o,invalidationKeys:[].concat(i(e.map((function(e){return"classification:".concat(e)}))),["my:subject:preferences","classifications","content:updates"])};var s},allLevelPreferences:function(){return{url:"/api/domain/v1/subjects/audiences?type=subject",key:"level:preference:options",normalize:!1}},myLevelPreferences:function(e){return{url:"/api/domain/v1/subjects/audiences/following",key:"my:level:preferences",normalizeOptions:{idAttribute:"masterId"},success:e}},followLevels:function(e,t,n,r){return{url:"/api/domain/v1/subjects/audiences/following",key:"follow:levels",data:e.map((function(e){return e.masterId})),normalize:!1,updateState:{keys:"my:level:preferences",updateData:function(t){var n,a=null!==(n=t["my:level:preferences"])&&void 0!==n?n:[];return e.forEach((function(e){a.find((function(t){return t.masterId===e.masterId}))||a.push(e)})),{"my:level:preferences":a}}},type:a.k.POST,success:t,error:n,always:r}},unfollowLevels:function(e,t,n,o){return{url:(s=e.map((function(e){return e.masterId})),r._.urlBuilder("/api/domain/v1/subjects/audiences/following",{id:s})),key:"unfollow:levels",normalize:!1,updateState:{keys:"my:level:preferences",updateData:function(t){var n,a=null!==(n=t["my:level:preferences"])&&void 0!==n?n:[];return e.forEach((function(e){if(a.find((function(t){return t.masterId===e.masterId}))){var t=a.findIndex((function(t){return t.masterId===e.masterId}));a=[].concat(i(a.slice(0,t)),i(a.slice(t+1)))}})),{"my:level:preferences":a}}},type:a.k.DELETE,success:t,error:n,always:o};var s}}},45778:(e,t,n)=>{n.d(t,{G:()=>r});var a=n(4594),r={isType:function(e,t){return(null==e?void 0:e.typeId)===t},isResource:function(e){return r.isType(e,a.E.Resource)},isClassification:function(e){return"Subject"===e.type}}},54297:(e,t,n)=>{n.d(t,{C:()=>a});var a={getResourceTypeName:function(e){switch(e){case"additional-materials":return"Additional Materials";case"atom-guide":return"ATOM Guide";case"teacher-pack":return"Teacher Pack";case"student-activity":return"Student Activity";default:return"N/A"}}}},6117:(e,t,n)=>{n.d(t,{f:()=>s});var a=n(39202),r=n(14292),i=n(97395);function o(e){return o="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},o(e)}var s={isBot:function(){if(!window.URLSearchParams)return!1;var e=new URLSearchParams(window.location.search);return"true"===(null==e?void 0:e.get("isBot"))},getCanonicalLink:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.A.GetCurrentOrigin(),n=(null==e?void 0:e.customAppLink)||a.C$.getCurrentAppLink(),s=function(e,t){if(!(null==t?void 0:t.length)||"string"==typeof e||!e)return{};var n=t.reduce((function(e,t){return Object.assign(Object.assign({},e),(n={},r=!0,(a=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=o(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}(a=t))in n?Object.defineProperty(n,a,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[a]=r,n));var n,a,r}),{});return Object.keys(e).reduce((function(t,a){return a in n&&(t[a]=e[a]),t}),{})}(n.params,e.allowedParams),c=a.C$.getHref(Object.assign(Object.assign({},n),{params:s}));return"function"==typeof e.hrefTransformer&&(c=e.hrefTransformer(c)),i._.safeUrlConcat(t,c)}}},52993:(e,t,n)=>{n.d(t,{Z:()=>a});const a={rightOverflowGradient:"tAbzW",leftOverflowGradient:"JXtNs",partialItem:"iNH_I",mobileScroll:"bDcOS"}}}]);
@@ -1,2 +1,2 @@
1
- /*! For license information please see 1491-2bc65e8fcc-streamable-learning.chunk.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[1491],{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=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"]);return n.createElement("div",{className:"position-relative"},n.createElement("input",Object.assign({},i,{ref:e,className:"".concat(t.className," ").concat("aYpO7")})),(!!t.value||a)&&n.createElement("span",{className:"".concat("ygMgF"," position-absolute cursor-pointer text-secondary"),role:"button",onClick:r},n.createElement("div",{className:"d-inline-block svg-container md"},n.createElement(o,null))))}))},68293:(t,e,r)=>{r.d(e,{B:()=>f});var n=r(32735),o=["Teacher","Librarian / Teacher Librarian","Curriculum Coordinator","Digital Technology Coordinator","SSO / SLSO","IT","Head of Department","Head of Subject","Assistant Principal","Deputy Principal","Principal"],a=["Teacher","Librarian / Teacher Librarian","Head of Department","Instructional Technology Specialist","Curriculum Coordinator","School Leadership","District Leadership","Academic Coach","Principal","IT / IT Specialist"],i={au:o,nz:o,uk:["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"],us:a};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="OTHER";function s(t,e){return e.includes(t)?t:t?u:""}function f(t){var e,r,o=t.error,l=t.onChange,f=(e=t.countryCode,r=null==e?void 0:e.toLowerCase(),i[r]||a),d=s(t.initialValue,f),p=c(n.useState(d),2),y=p[0],h=p[1],m=c(n.useState(d===u?t.initialValue:""),2),v=m[0],g=m[1];n.useEffect((function(){h(s(t.initialValue,f))}),[t.initialValue]);var b=y===u;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(y.length?"text-dark":"text-secondary"," ").concat(!!o&&"is-invalid"),value:y,placeholder:"Role",onChange:function(t){h(t.target.value),g(""),l(t.target.value===u?"":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?")),f.map((function(t,e){return n.createElement("option",{value:t,className:"text-dark",key:e},t)})),n.createElement("option",{value:u,className:"text-dark"},"Other")),!!o&&!b&&n.createElement("div",{className:"invalid-feedback"},o)),b&&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:v,placeholder:"What do you do?",autoFocus:!0,onChange:function(t){g(t.target.value),l(t.target.value)}}),!!o&&n.createElement("div",{className:"invalid-feedback"},o)))}},47464:(t,e,r)=>{r.d(e,{l:()=>K});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 p(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 y(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 h(t){var e,r,o=p({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 y(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)?y(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 m(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,p=t.templateKey,y=void 0===p?"[placeholder]":p,b=h({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)})),C=(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 m(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)?m(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=C[0],E=C[1];function L(t,e){i.SG.cacheSet("".concat(g,":").concat(e),t,86400),E(t)}return n.useEffect((function(){if(!S&&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;L(d.replace(y,n),r)}else L(l.I.getLocalizedLocalityPlaceholderText(v),r)}(e,r,t)}))}}),[S,b,a,s]),S}var w=r(73525);function C(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 S(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)?S(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 S(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 E={getPlaceDetails:function(t){var e,r,n,o,a,i=t.formatted_address,c=C(t.address_components);try{for(c.s();!(a=c.n()).done;){var l,u=a.value,s=C(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 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 O={1:"geocoderPermissionDenied",2:"geocoderUnavailable",3:"geocoderTimeout"},x=r(28329);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 k=r(11607);function N(){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 A=r(52202);function P(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 U(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)?U(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(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(A.Z.suggestionItem," ").concat(o-1===e?A.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 K(t){var e,r,i,c,l,u,s=n.useRef(),f=P(n.useState((null===(e=t.data)||void 0===e?void 0:e.schoolLocality)||""),2),d=f[0],y=f[1],m=P(n.useState(!1),2),v=m[0],g=m[1],C=b({apiKey:t.googleMapsApiKey,geoLocation:t.geoLocation}),S=function(t){var e,r,o=t.search,a=t.makePredicition,i=t.geoLocation,c=h({googleApiKey:t.apiKey}),l=(0,x.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 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.")}()),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=E.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}),U=S.localityPredicitions,K=S.getPlaceInfo,T=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 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}}(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=p(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=E.getPlaceDetails(o);i(Object.assign(Object.assign({},a),{longitude:n,latitude:r}))}}))}function u(e){var r=O[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),$(t)}}),_=T.placeDetails,F=T.onClickGetCurrentLocation,G=window.navigator.geolocation?1:0,z=(0,w.M)({onSelected:function(t){if(U)if(t!==U.length){var e=U[t];e&&J(e)}else Q()},itemCount:null!==(r=(null==U?void 0:U.length)+G)&&void 0!==r?r:0,hideOnBlur:t.hideOnBlur}),D=z.selectedIndex,R=z.onKeyDown,M=z.containerRef,Z=z.hide,B=z.onBlur,V=z.onFocus,q=P(n.useState(),2),H=q[0],$=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(),y(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&&y(e.locality)}function J(t){v&&g(!1),K(t,s,W)}function Q(e){var r;null==e||e.preventDefault(),g(!1),F(),null===(r=t.logUserAction)||void 0===r||r.call(t,{},{actionType:o.Vw.Click,descriptor:o.Yu.UseMyLocation})}n.useEffect((function(){W(_)}),[_]);var X,tt=(null==U?void 0:U.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(A.Z.baseText),nt="form-group position-relative";return"lg"===t.size&&(nt+=" ".concat(A.Z.large)),n.createElement("div",{className:nt},n.createElement("label",{className:rt,htmlFor:"locality-input"},"Postcode or suburb:",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:(X="form-control","lg"===t.size&&(X+=" form-control-lg"),!tt||Z?"".concat(X," ").concat(A.Z.input):"".concat(X," ").concat(A.Z.inputFocused)),ref:s,autoComplete:"off",placeholder:C||"Loading...",disabled:t.disabled||!C,autoFocus:null==t?void 0:t.autoFocus,onClickClear:function(){Y(""),s.current.focus()},onKeyDown:R,onFocus:V,onBlur:B}),n.createElement("div",{className:"position-absolute z-1 w-100 ".concat(A.Z.dropdown," ").concat(Z?"d-none":"")},!!tt&&n.createElement("div",{className:A.Z.suggestionContainer,ref:M},n.createElement(I,{predictions:U,getPlaceInfo:J,selectedIndex:D}),window.navigator.geolocation&&t.useGeoLocationApi&&n.createElement(k.L,{className:"".concat(A.Z.suggestionItem," px-1 ").concat(D-1===U.length?A.Z.selected:""),onClick:Q},n.createElement("div",{className:"btn btn-link info-link btn-with-icon bg-transparent py-0 pe-1"},n.createElement(N,null),"Use my current location"))),et&&!tt&&t.useGeoLocationApi&&n.createElement("div",{className:"d-flex ".concat(A.Z.useMyLocation)},n.createElement("button",{onClick:Q,className:"btn btn-link info-link bg-white btn-with-icon"},n.createElement(N,null),"Use my current location")),!!H&&n.createElement("div",{className:"text-danger p-2"},H)))}},76530:(t,e,r)=>{r.d(e,{X:()=>N});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 p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function y(){y=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 U(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",h="suspendedYield",m="executing",v="completed",g={};function b(){}function w(){}function C(){}var S={};u(S,i,(function(){return this}));var E=Object.getPrototypeOf,L=E&&E(E(I([])));L&&L!==r&&n.call(L,i)&&(S=L);var O=C.prototype=b.prototype=Object.create(S);function x(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(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"==p(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===m)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=N(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=m;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?v:h,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=v,n.method="throw",n.arg=u.arg)}}}function N(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,N(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 A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function U(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,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(p(e)+" is not iterable")}return w.prototype=C,o(O,"constructor",{value:C,configurable:!0}),o(C,"constructor",{value:w,configurable:!0}),w.displayName=u(C,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,C):(t.__proto__=C,u(t,l,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},x(j.prototype),u(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new j(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},x(O),u(O,l,"Generator"),u(O,i,(function(){return this})),u(O,"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,U.prototype={constructor:U,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(P),!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),P(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;P(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 h=function(t,e,r,n){return new(r||(r=Promise))((function(o,a){function i(t){try{l(n.next(t))}catch(t){a(t)}}function c(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,c)}l((n=n.apply(t,e||[])).next())}))};function m(t){var e={method: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 h(this,void 0,void 0,y().mark((function e(){var r,n,o;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=m(t),e.next=3,fetch(r.url,r.init);case 3:if((n=e.sent).ok){e.next=9;break}return e.next=7,n.json();case 7:throw o=e.sent,new 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 h(this,void 0,void 0,y().mark((function e(){var r,n;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=m(t),e.next=3,fetch(r.url,r.init);case 3:if((n=e.sent).ok){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,n.text();case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e)})))},fetch:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){var e=m(t);return fetch(e.url,e.init).then((function(t){if(204!==t.status)return t.json()})).then((function(e){return t.success&&t.success(e),e})).catch((function(e){return t.error&&t.error(),e})).finally((function(){t.always&&t.always()}))}))};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 U(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",p="suspendedYield",y="executing",h="completed",m={};function v(){}function w(){}function C(){}var S={};u(S,i,(function(){return this}));var E=Object.getPrototypeOf,L=E&&E(E(I([])));L&&L!==r&&n.call(L,i)&&(S=L);var O=C.prototype=v.prototype=Object.create(S);function x(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(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===y)throw Error("Generator is already running");if(o===h){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=N(c,n);if(l){if(l===m)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?h:p,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=h,n.method="throw",n.arg=u.arg)}}}function N(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,N(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;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,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function U(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,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=C,o(O,"constructor",{value:C,configurable:!0}),o(C,"constructor",{value:w,configurable:!0}),w.displayName=u(C,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,C):(t.__proto__=C,u(t,l,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},x(j.prototype),u(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new j(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},x(O),u(O,l,"Generator"),u(O,i,(function(){return this})),u(O,"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,U.prototype={constructor:U,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(P),!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,m):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),m},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),P(r),m}},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;P(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),m}},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)})}},C=r(73525),S=r(11607),E=r(28329),L=r(52202);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 x(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?x(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function j(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(S.L,{className:"".concat(L.Z.suggestionItem," ").concat(a-1===e?L.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(L.Z.suggestionItem," ").concat(L.Z.noSuggestion," ").concat(t.selected?L.Z.selected:""),onClick:t.handleNoSuggestion},"Can't find your school?")}function N(t){var e,r,i=n.useRef(),c=O(n.useState(!0),2),l=c[0],u=c[1],s=O(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],p=O(n.useState(),2),y=p[0],h=p[1],m=(0,E.N)(f,250),v=(0,C.M)({onSelected:function(e){if(y||e)if(e!==y.length){var r=y[e];r&&F(r)}else t.onClickNoSuggestions(f)},itemCount:null!==(e=(null==y?void 0:y.length)+1)&&void 0!==e?e:0,hideOnBlur:t.hideOnBlur}),g=v.selectedIndex,b=v.onKeyDown,S=v.containerRef,x=v.hide,N=v.onBlur,A=v.onFocus,P=!!(null===(r=t.data)||void 0===r?void 0:r.prospectId),U=l&&!P,I=!l&&!P&&(null==y?void 0:y.length)<5,K=(null==y?void 0:y.length)&&!P;function T(e){(t.data.schoolName||t.data.prospectId)&&t.clearData(),e!==f&&d(e)}function _(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 h(t)}),null,(function(){return u(!1)}))}else u(!1)}function F(e){d(G(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 G(t){return t.name}n.useEffect((function(){P||(m.length?!P&&m.length>1&&m===f&&_(m):_())}),[m,P]);var z=(K||U||I)&&!t.disabled&&!x,D="form-control ".concat(z?L.Z.inputFocused:L.Z.input),R="form-group position-relative";return"lg"===t.size&&(D+=" form-control-lg",R+=" ".concat(L.Z.large)),n.createElement("div",{className:R},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 T(t.currentTarget.value)},ref:i,className:D,type:"text",autoComplete:"off",placeholder:t.placeholder||"Select your school below",disabled:t.disabled,autoFocus:!0,onClickClear:function(){T(""),i.current.focus()},onKeyDown:b,onFocus:A,onBlur:N}),n.createElement("div",{className:"position-absolute z-1 w-100 ".concat(L.Z.dropdown," ").concat(x?"d-none":"")},n.createElement("div",{className:"".concat(L.Z.suggestionContainer," ").concat(z?"":"d-none"),ref:S},K?n.createElement(j,{filteredSchoolsList:y,onSchoolSuggestionClick:F,getSchoolName:G,selectedIndex:g}):U&&n.createElement("div",{className:"".concat(L.Z.suggestionLoading," py-4 d-flex justify-content-center")},n.createElement(o.Z,{animation:"border"})),!U&&I&&n.createElement(k,{selected:g===y.length+1,handleNoSuggestion:function(){return t.onClickNoSuggestions(f)}}))))}},80412:(t,e,r)=>{r.d(e,{F:()=>m});var n,o=r(63093),a=r(33003),i=r.n(a);!function(t){t.Lite="lite",t.Auth="auth"}(n||(n={}));var c=r(86664);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function u(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 s(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)?s(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 s(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 f(){f=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",u=a.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function d(t,e,r,n){var a=e&&e.prototype instanceof b?e:b,i=Object.create(a.prototype),c=new U(n||[]);return o(i,"_invoke",{value:k(t,r,c)}),i}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var y="suspendedStart",h="suspendedYield",m="executing",v="completed",g={};function b(){}function w(){}function C(){}var S={};s(S,i,(function(){return this}));var E=Object.getPrototypeOf,L=E&&E(E(I([])));L&&L!==r&&n.call(L,i)&&(S=L);var O=C.prototype=b.prototype=Object.create(S);function x(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,a,i,c){var u=p(t[o],t,a);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==l(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(f).then((function(t){s.value=t,i(s)}),(function(t){return r("throw",t,i,c)}))}c(u.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=y;return function(a,i){if(o===m)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=N(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===y)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var u=p(e,r,n);if("normal"===u.type){if(o=n.done?v:h,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=v,n.method="throw",n.arg=u.arg)}}}function N(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,N(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=p(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 A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function U(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,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(l(e)+" is not iterable")}return w.prototype=C,o(O,"constructor",{value:C,configurable:!0}),o(C,"constructor",{value:w,configurable:!0}),w.displayName=s(C,u,"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,C):(t.__proto__=C,s(t,u,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},x(j.prototype),s(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new j(d(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},x(O),s(O,u,"Generator"),s(O,i,(function(){return this})),s(O,"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,U.prototype={constructor:U,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(P),!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),P(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;P(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}function d(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==l(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var p={secondary:"Secondary","primary & secondary":"Primary & Secondary",k12:"Primary & Secondary",primary:"Primary",special:"Special",university:"University",middle:"Middle","fe college":"FE College","high school":"Secondary",elementary:"Primary","middle school":"Middle",tafe:"TAFE",college:"FE College","sixth form college":"Sixth Form College"},y={england:"ENG",scotland:"SCT",wales:"WLS","northern ireland":"NIR"},h=d(d({},n.Auth,"auth.web"),n.Lite,"lite.web"),m={getClient:function(t){var e,r,n,a,i,l;return n=this,a=void 0,i=void 0,l=f().mark((function n(){var a,i,l,u,s,d;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=t.brazeConfig,i=t.geoLocation,l=t.version,u=a[c.I.getInstanceRegion(null==i?void 0:i.countryCode)],s=h[t.productName],d=(0,o.getInstance)({baseUrl:u.url,apiKey:u.apiKey,productVersion:l,productName:s,enableLogging:!1,automaticallyShowInAppMessages:!1}),(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode)&&d.setUserCountry(null===(r=t.geoLocation)||void 0===r?void 0:r.countryCode),n.abrupt("return",d);case 6:case"end":return n.stop()}}),n)})),new(i||(i=Promise))((function(t,e){function r(t){try{c(l.next(t))}catch(t){e(t)}}function o(t){try{c(l.throw(t))}catch(t){e(t)}}function c(e){var n;e.done?t(e.value):(n=e.value,n instanceof i?n:new i((function(t){t(n)}))).then(r,o)}c((l=l.apply(n,a||[])).next())}))},hashedEmail:function(t){var e=t.trim().toLowerCase();return i().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=u(t,2)[1];return null!=e&&!("string"==typeof e&&!e.length)})).reduce((function(t,e){var r=u(e,2),n=r[0],o=r[1];return Object.assign(Object.assign({},t),d({},n,o===Object(o)?m.removeEmptyKeys(o):o))}),{})},getEventTopic:function(){return"Free Trial Request"},getCustomEventType:function(){return o.ProductFormEvent.ProductTrailRequested},getProductFormEventType:function(){return"product_form_submission"},getSchoolType:function(t){if(t){var e=t.toLowerCase();if(!["unknown","other"].includes(e))return p[e]||t}},parseProvince:function(t){return t.length?y[t.toLowerCase()]||t:""}}},86664:(t,e,r)=>{r.d(e,{I:()=>l});var n=r(83765),o=r(93824),a=["uk","gb","gg","im","je","ie"],i={au:o.C.AU,nz:o.C.NZ,us:o.C.US,uk:o.C.UK,gb:o.C.UK,gg:o.C.UK,im:o.C.UK,je:o.C.UK,ie:o.C.UK,al:o.C.UK,ad:o.C.UK,am:o.C.UK,at:o.C.UK,az:o.C.UK,by:o.C.UK,be:o.C.UK,ba:o.C.UK,bg:o.C.UK,hr:o.C.UK,cy:o.C.UK,cz:o.C.UK,dk:o.C.UK,ee:o.C.UK,fi:o.C.UK,fr:o.C.UK,de:o.C.UK,ge:o.C.UK,gr:o.C.UK,hu:o.C.UK,is:o.C.UK,it:o.C.UK,lv:o.C.UK,li:o.C.UK,lt:o.C.UK,lu:o.C.UK,mt:o.C.UK,md:o.C.UK,mc:o.C.UK,me:o.C.UK,nl:o.C.UK,mk:o.C.UK,no:o.C.UK,pl:o.C.UK,pt:o.C.UK,ro:o.C.UK,ru:o.C.UK,sm:o.C.UK,rs:o.C.UK,sk:o.C.UK,si:o.C.UK,es:o.C.UK,se:o.C.UK,ch:o.C.UK,tr:o.C.UK,ua:o.C.UK,va:o.C.UK},c={au:n.M.CvApSoutheast1,uk:n.M.CvEuWest1,us:n.M.CvNaWest1,nz:n.M.CvApSoutheast2},l={getInstanceRegion:function(t){var e=l.getCountryCode(t);return c[e]},getCountryCode:function(t){return i[null==t?void 0:t.toLowerCase()]||o.C.US},isCountryCodeUK:function(t){return a.includes(t.toLowerCase())},isCountryCodeAU:function(t){return(null==t?void 0:t.toLowerCase())===o.C.AU},isCountryCodeUS:function(t){return(null==t?void 0:t.toLowerCase())===o.C.US},isCountryCodeNZ:function(t){return(null==t?void 0:t.toLowerCase())===o.C.NZ},isSupportedCountryCode:function(t){return Object.keys(i).includes(null==t?void 0:t.toLowerCase())},getLocalizedLocalityPlaceholderPhrase:function(t){if(t)return l.isCountryCodeUK(t)?"E.g. CR0 3RL or 36 Factory Lane":l.isCountryCodeAU(t)||l.isCountryCodeNZ(t)?"E.g. 2212 or Revesby":l.isCountryCodeUS(t)?"E.g. 95826 or Sacramento":void 0},getLocalizedLocalityPlaceholderText:function(t){if(t){var e=l.getLocalizedLocalityPlaceholderPhrase(t);if(e)return e}}}},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(!1),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("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(),void t.onSelected(r-1);a(0)},containerRef:i,hide:l,onFocus:function(){t.hideOnBlur&&u(!1)},onBlur:function(){t.hideOnBlur&&u(!0)}}}},1269:(t,e,r)=>{r.d(e,{n:()=>C,W:()=>S});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(C,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),p=r(83345),y={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}},h=r(35223);function m(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 C(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.")}()),p=f[0],y=f[1],m=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"])),m),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"])),m);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:p,className:"".concat(v.passwordInput," border-0 w-100 h-100 outline-none rounded")}),m),"password"===s.type&&n.createElement(d.x,{svgName:"password"===p?h.vn.VisibleOn:h.vn.VisibleOff,className:"svg-container cursor-pointer ".concat(v.revealPassword),onClick:function(){y("password"===p?"text":"password")}}))}function S(t){var e=t.label,r=t.className,o=t.showCharacterCounter,c=t.showRequiredStar,u=t.infoTooltip,s=t.infoTooltipPlacement,g=t.infoText,S=t.formSize,E=t.showOptionalLabel,L=b(t,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoTooltipPlacement","infoText","formSize","showOptionalLabel"]),O=(0,i.u6)(),x=O.errors,j=O.touched,k=function(){};if("checkbox"===L.type){var N=l.t.omit(t,["formSize","infoTooltipPlacement"]);return t.disabled&&(N.onChange=k),n.createElement(f,Object.assign({},N))}var A=Object.assign(Object.assign({},L),{className:y.getCustomFormControlClassName(x,j,L.name,S,r,"string"==typeof t.as?t.as:null)});return t.disabled&&(A.onChange=k),n.createElement(a.Z.Group,{className:"form-group"},!!e&&n.createElement(a.Z.Label,{htmlFor:L.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:h.vn.Info,title:u,tooltipPlacement:s,tooltipSpanHack:!0}),E&&n.createElement("span",{className:"text-secondary"}," ",n.createElement(p.x,{namespace:w,phrase:"optional"})),!!o&&!!L.maxLength&&n.createElement("div",{className:"ms-auto"},n.createElement(m,{fieldName:L.name,limit:L.maxLength}))),n.createElement(C,Object.assign({},A)),!!g&&n.createElement(a.Z.Text,{className:"text-secondary"},g),n.createElement(i.Bc,{name:L.name},(function(t){return n.createElement(a.Z.Control.Feedback,{type:"invalid"},t)})))}C.defaultProps={autoComplete:"off"},S.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,p={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:p}),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}},93824:(t,e,r)=>{var n;r.d(e,{C:()=>n}),function(t){t.AU="au",t.NZ="nz",t.UK="uk",t.US="us"}(n||(n={}))},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)}}}},22314:(t,e,r)=>{r.d(e,{T:()=>p,m:()=>h});var n=r(32735),o=r(63093),a=r(20354),i=r(80412),c=r(86664),l=r(39151),u=r(39202),s={countryCode:"us",isFallback:!0};function f(t){return f="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},f(t)}function d(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=f(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==f(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var p,y="streamable.web";function h(){var t=n.useRef(),e=a.a.useBasicFetch(l.L.config()),r=a.a.useBasicFetch(l.L.version()),f=function(){var t,e,r=a.a.useBasicFetch(l.L.geoLocation()),n=null===(e=null===(t=u.Ab.GetQuery())||void 0===t?void 0:t.countryCode)||void 0===e?void 0:e.toLowerCase();return n?{countryCode:n}:r.hasCompleted&&!r.data?s:r.data}();function p(e){var r;e&&(null===(r=t.current)||void 0===r||r.setUser(i.F.hashedEmail(e)))}function h(e){var r,n,o,a,i=e.email,c=e.first_name,l=e.last_name,u=e.phone;i&&(null===(r=t.current)||void 0===r||r.setUserEmail(i)),c&&(null===(n=t.current)||void 0===n||n.setUserFirstName(c)),l&&(null===(o=t.current)||void 0===o||o.setUserLastName(l)),u&&(null===(a=t.current)||void 0===a||a.setUserPhone(u))}function m(e){var r,n=i.F.removeEmptyKeys(d(d(d(d(d(d({},o.CustomUserAttributes.AccountName,e.account_name),o.CustomUserAttributes.JobTitle,e.job_title),o.CustomUserAttributes.AccountAddress,e.account_address),o.CustomUserAttributes.SyncToCrm,e.sync_to_crm),o.CustomUserAttributes.CrmId,e.cvc_id),o.CustomUserAttributes.Topic,e.topic));null===(r=t.current)||void 0===r||r.bulkSetCustomUserAttributes(n)}return{initialize:function(){var n=c.I.getInstanceRegion(null==f?void 0:f.countryCode),a=e.data.braze[n],i=(0,o.getInstance)({baseUrl:a.url,apiKey:a.apiKey,productVersion:r,productName:y,enableLogging:!1,automaticallyShowInAppMessages:!1});(null==f?void 0:f.countryCode)&&i.setUserCountry(f.countryCode),i.openSession(),t.current=i},setUserContext:p,setUserDetails:h,setCustomUserAttributes:m,setLeadData:function(t){p(t.email),h(t),m(t)},enqueueEvent:function(e){var r,n=i.F.removeEmptyKeys(e);null===(r=t.current)||void 0===r||r.logEvent(n)},flush:function(){return t.current?new Promise((function(e,r){t.current.sendData((function(t){t?e():r(new Error("Failed to flush data"))}))})):Promise.reject(new Error("Client not initialized"))},hasLoaded:r.hasCompleted&&e.hasCompleted}}!function(t){t.ContactUsFormSubmit="streamable_contact_us_submission",t.LivestreamBookingFormSubmit="streamable_livestream_booking_submission"}(p||(p={}))},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 2206-876c57f924-streamable-learning.chunk.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[2206],{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=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"]);return n.createElement("div",{className:"position-relative"},n.createElement("input",Object.assign({},i,{ref:e,className:"".concat(t.className," ").concat("aYpO7")})),(!!t.value||a)&&n.createElement("span",{className:"".concat("ygMgF"," position-absolute cursor-pointer text-secondary"),role:"button",onClick:r},n.createElement("div",{className:"d-inline-block svg-container md"},n.createElement(o,null))))}))},68293:(t,e,r)=>{r.d(e,{B:()=>f});var n=r(32735),o=["Teacher","Librarian / Teacher Librarian","Curriculum Coordinator","Digital Technology Coordinator","SSO / SLSO","IT","Head of Department","Head of Subject","Assistant Principal","Deputy Principal","Principal"],a=["Teacher","Librarian / Teacher Librarian","Head of Department","Instructional Technology Specialist","Curriculum Coordinator","School Leadership","District Leadership","Academic Coach","Principal","IT / IT Specialist"],i={au:o,nz:o,uk:["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"],us:a};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="OTHER";function s(t,e){return e.includes(t)?t:t?u:""}function f(t){var e,r,o=t.error,l=t.onChange,f=(e=t.countryCode,r=null==e?void 0:e.toLowerCase(),i[r]||a),d=s(t.initialValue,f),p=c(n.useState(d),2),y=p[0],h=p[1],m=c(n.useState(d===u?t.initialValue:""),2),v=m[0],g=m[1];n.useEffect((function(){h(s(t.initialValue,f))}),[t.initialValue]);var b=y===u;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(y.length?"text-dark":"text-secondary"," ").concat(!!o&&"is-invalid"),value:y,placeholder:"Role",onChange:function(t){h(t.target.value),g(""),l(t.target.value===u?"":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?")),f.map((function(t,e){return n.createElement("option",{value:t,className:"text-dark",key:e},t)})),n.createElement("option",{value:u,className:"text-dark"},"Other")),!!o&&!b&&n.createElement("div",{className:"invalid-feedback"},o)),b&&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:v,placeholder:"What do you do?",autoFocus:!0,onChange:function(t){g(t.target.value),l(t.target.value)}}),!!o&&n.createElement("div",{className:"invalid-feedback"},o)))}},47464:(t,e,r)=>{r.d(e,{l:()=>T});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 p(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 y(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 h(t){var e,r,o=p({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 y(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)?y(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 m(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,p=t.templateKey,y=void 0===p?"[placeholder]":p,b=h({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)})),C=(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 m(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)?m(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=C[0],E=C[1];function L(t,e){i.SG.cacheSet("".concat(g,":").concat(e),t,86400),E(t)}return n.useEffect((function(){if(!S&&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;L(d.replace(y,n),r)}else L(l.I.getLocalizedLocalityPlaceholderText(v),r)}(e,r,t)}))}}),[S,b,a,s]),S}var w=r(73525);function C(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 S(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)?S(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 S(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 E={getPlaceDetails:function(t){var e,r,n,o,a,i=t.formatted_address,c=C(t.address_components);try{for(c.s();!(a=c.n()).done;){var l,u=a.value,s=C(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 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 O={1:"geocoderPermissionDenied",2:"geocoderUnavailable",3:"geocoderTimeout"},x=r(28329);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 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 P(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 U(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)?U(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(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(t){var e,r,i,c,l,u,s=n.useRef(),f=P(n.useState((null===(e=t.data)||void 0===e?void 0:e.schoolLocality)||""),2),d=f[0],y=f[1],m=P(n.useState(!1),2),v=m[0],g=m[1],C=b({apiKey:t.googleMapsApiKey,geoLocation:t.geoLocation}),S=function(t){var e,r,o=t.search,a=t.makePredicition,i=t.geoLocation,c=h({googleApiKey:t.apiKey}),l=(0,x.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 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.")}()),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=E.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}),U=S.localityPredicitions,T=S.getPlaceInfo,_=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 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}}(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=p(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=E.getPlaceDetails(o);i(Object.assign(Object.assign({},a),{longitude:n,latitude:r}))}}))}function u(e){var r=O[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)}}),K=_.placeDetails,F=_.onClickGetCurrentLocation,G=window.navigator.geolocation?1:0,z=(0,w.M)({onSelected:function(t){if(U)if(t!==U.length){var e=U[t];e&&J(e)}else Q()},itemCount:null!==(r=(null==U?void 0:U.length)+G)&&void 0!==r?r:0,hideOnBlur:t.hideOnBlur}),R=z.selectedIndex,D=z.onKeyDown,M=z.containerRef,Z=z.hide,B=z.onBlur,V=z.onFocus,q=P(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(),y(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&&y(e.locality)}function J(t){v&&g(!1),T(t,s,W)}function Q(e){var r;null==e||e.preventDefault(),g(!1),F(),null===(r=t.logUserAction)||void 0===r||r.call(t,{},{actionType:o.Vw.Click,descriptor:o.Yu.UseMyLocation})}n.useEffect((function(){W(K)}),[K]);var X,tt=(null==U?void 0:U.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"},"Postcode or suburb:",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:(X="form-control","lg"===t.size&&(X+=" form-control-lg"),!tt||Z?"".concat(X," ").concat(N.Z.input):"".concat(X," ").concat(N.Z.inputFocused)),ref:s,autoComplete:"off",placeholder:C||"Loading...",disabled:t.disabled||!C,autoFocus:null==t?void 0:t.autoFocus,onClickClear:function(){Y(""),s.current.focus()},onKeyDown:D,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:M},n.createElement(I,{predictions:U,getPlaceInfo:J,selectedIndex:R}),window.navigator.geolocation&&t.useGeoLocationApi&&n.createElement(k.L,{className:"".concat(N.Z.suggestionItem," px-1 ").concat(R-1===U.length?N.Z.selected:""),onClick:Q},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:Q,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 p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function y(){y=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 U(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",h="suspendedYield",m="executing",v="completed",g={};function b(){}function w(){}function C(){}var S={};u(S,i,(function(){return this}));var E=Object.getPrototypeOf,L=E&&E(E(I([])));L&&L!==r&&n.call(L,i)&&(S=L);var O=C.prototype=b.prototype=Object.create(S);function x(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(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"==p(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===m)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=m;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?v:h,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 P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function U(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(p(e)+" is not iterable")}return w.prototype=C,o(O,"constructor",{value:C,configurable:!0}),o(C,"constructor",{value:w,configurable:!0}),w.displayName=u(C,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,C):(t.__proto__=C,u(t,l,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},x(j.prototype),u(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new j(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},x(O),u(O,l,"Generator"),u(O,i,(function(){return this})),u(O,"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,U.prototype={constructor:U,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(P),!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),P(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;P(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 h=function(t,e,r,n){return new(r||(r=Promise))((function(o,a){function i(t){try{l(n.next(t))}catch(t){a(t)}}function c(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,c)}l((n=n.apply(t,e||[])).next())}))};function m(t){var e={method: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 h(this,void 0,void 0,y().mark((function e(){var r,n,o;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=m(t),e.next=3,fetch(r.url,r.init);case 3:if((n=e.sent).ok){e.next=9;break}return e.next=7,n.json();case 7:throw o=e.sent,new 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 h(this,void 0,void 0,y().mark((function e(){var r,n;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=m(t),e.next=3,fetch(r.url,r.init);case 3:if((n=e.sent).ok){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,n.text();case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e)})))},fetch:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){var e=m(t);return fetch(e.url,e.init).then((function(t){if(204!==t.status)return t.json()})).then((function(e){return t.success&&t.success(e),e})).catch((function(e){return t.error&&t.error(),e})).finally((function(){t.always&&t.always()}))}))};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 U(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",p="suspendedYield",y="executing",h="completed",m={};function v(){}function w(){}function C(){}var S={};u(S,i,(function(){return this}));var E=Object.getPrototypeOf,L=E&&E(E(I([])));L&&L!==r&&n.call(L,i)&&(S=L);var O=C.prototype=v.prototype=Object.create(S);function x(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(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===y)throw Error("Generator is already running");if(o===h){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===m)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?h:p,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=h,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")),m;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;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,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}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 P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function U(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=C,o(O,"constructor",{value:C,configurable:!0}),o(C,"constructor",{value:w,configurable:!0}),w.displayName=u(C,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,C):(t.__proto__=C,u(t,l,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},x(j.prototype),u(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new j(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},x(O),u(O,l,"Generator"),u(O,i,(function(){return this})),u(O,"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,U.prototype={constructor:U,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(P),!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,m):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),m},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),P(r),m}},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;P(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),m}},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)})}},C=r(73525),S=r(11607),E=r(28329),L=r(52202);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 x(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?x(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function j(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(S.L,{className:"".concat(L.Z.suggestionItem," ").concat(a-1===e?L.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(L.Z.suggestionItem," ").concat(L.Z.noSuggestion," ").concat(t.selected?L.Z.selected:""),onClick:t.handleNoSuggestion},"Can't find your school?")}function A(t){var e,r,i=n.useRef(),c=O(n.useState(!0),2),l=c[0],u=c[1],s=O(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],p=O(n.useState(),2),y=p[0],h=p[1],m=(0,E.N)(f,250),v=(0,C.M)({onSelected:function(e){if(y||e)if(e!==y.length){var r=y[e];r&&F(r)}else t.onClickNoSuggestions(f)},itemCount:null!==(e=(null==y?void 0:y.length)+1)&&void 0!==e?e:0,hideOnBlur:t.hideOnBlur}),g=v.selectedIndex,b=v.onKeyDown,S=v.containerRef,x=v.hide,A=v.onBlur,N=v.onFocus,P=!!(null===(r=t.data)||void 0===r?void 0:r.prospectId),U=l&&!P,I=!l&&!P&&(null==y?void 0:y.length)<5,T=(null==y?void 0:y.length)&&!P;function _(e){(t.data.schoolName||t.data.prospectId)&&t.clearData(),e!==f&&d(e)}function K(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 h(t)}),null,(function(){return u(!1)}))}else u(!1)}function F(e){d(G(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 G(t){return t.name}n.useEffect((function(){P||(m.length?!P&&m.length>1&&m===f&&K(m):K())}),[m,P]);var z=(T||U||I)&&!t.disabled&&!x,R="form-control ".concat(z?L.Z.inputFocused:L.Z.input),D="form-group position-relative";return"lg"===t.size&&(R+=" form-control-lg",D+=" ".concat(L.Z.large)),n.createElement("div",{className:D},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 _(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(){_(""),i.current.focus()},onKeyDown:b,onFocus:N,onBlur:A}),n.createElement("div",{className:"position-absolute z-1 w-100 ".concat(L.Z.dropdown," ").concat(x?"d-none":"")},n.createElement("div",{className:"".concat(L.Z.suggestionContainer," ").concat(z?"":"d-none"),ref:S},T?n.createElement(j,{filteredSchoolsList:y,onSchoolSuggestionClick:F,getSchoolName:G,selectedIndex:g}):U&&n.createElement("div",{className:"".concat(L.Z.suggestionLoading," py-4 d-flex justify-content-center")},n.createElement(o.Z,{animation:"border"})),!U&&I&&n.createElement(k,{selected:g===y.length+1,handleNoSuggestion:function(){return t.onClickNoSuggestions(f)}}))))}},80412:(t,e,r)=>{r.d(e,{F:()=>m});var n,o=r(63093),a=r(33003),i=r.n(a);!function(t){t.Lite="lite",t.Auth="auth"}(n||(n={}));var c=r(86664);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function u(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 s(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)?s(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 s(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 f(){f=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",u=a.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function d(t,e,r,n){var a=e&&e.prototype instanceof b?e:b,i=Object.create(a.prototype),c=new U(n||[]);return o(i,"_invoke",{value:k(t,r,c)}),i}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var y="suspendedStart",h="suspendedYield",m="executing",v="completed",g={};function b(){}function w(){}function C(){}var S={};s(S,i,(function(){return this}));var E=Object.getPrototypeOf,L=E&&E(E(I([])));L&&L!==r&&n.call(L,i)&&(S=L);var O=C.prototype=b.prototype=Object.create(S);function x(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,a,i,c){var u=p(t[o],t,a);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==l(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(f).then((function(t){s.value=t,i(s)}),(function(t){return r("throw",t,i,c)}))}c(u.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=y;return function(a,i){if(o===m)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===y)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var u=p(e,r,n);if("normal"===u.type){if(o=n.done?v:h,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=p(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 P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function U(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(l(e)+" is not iterable")}return w.prototype=C,o(O,"constructor",{value:C,configurable:!0}),o(C,"constructor",{value:w,configurable:!0}),w.displayName=s(C,u,"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,C):(t.__proto__=C,s(t,u,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},x(j.prototype),s(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new j(d(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},x(O),s(O,u,"Generator"),s(O,i,(function(){return this})),s(O,"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,U.prototype={constructor:U,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(P),!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),P(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;P(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}function d(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==l(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var p={secondary:"Secondary","primary & secondary":"Primary & Secondary",k12:"Primary & Secondary",primary:"Primary",special:"Special",university:"University",middle:"Middle","fe college":"FE College","high school":"Secondary",elementary:"Primary","middle school":"Middle",tafe:"TAFE",college:"FE College","sixth form college":"Sixth Form College"},y={england:"ENG",scotland:"SCT",wales:"WLS","northern ireland":"NIR"},h=d(d({},n.Auth,"auth.web"),n.Lite,"lite.web"),m={getClient:function(t){var e,r,n,a,i,l;return n=this,a=void 0,i=void 0,l=f().mark((function n(){var a,i,l,u,s,d;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=t.brazeConfig,i=t.geoLocation,l=t.version,u=a[c.I.getInstanceRegion(null==i?void 0:i.countryCode)],s=h[t.productName],d=(0,o.getInstance)({baseUrl:u.url,apiKey:u.apiKey,productVersion:l,productName:s,enableLogging:!1,automaticallyShowInAppMessages:!1}),(null===(e=t.geoLocation)||void 0===e?void 0:e.countryCode)&&d.setUserCountry(null===(r=t.geoLocation)||void 0===r?void 0:r.countryCode),n.abrupt("return",d);case 6:case"end":return n.stop()}}),n)})),new(i||(i=Promise))((function(t,e){function r(t){try{c(l.next(t))}catch(t){e(t)}}function o(t){try{c(l.throw(t))}catch(t){e(t)}}function c(e){var n;e.done?t(e.value):(n=e.value,n instanceof i?n:new i((function(t){t(n)}))).then(r,o)}c((l=l.apply(n,a||[])).next())}))},hashedEmail:function(t){var e=t.trim().toLowerCase();return i().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=u(t,2)[1];return null!=e&&!("string"==typeof e&&!e.length)})).reduce((function(t,e){var r=u(e,2),n=r[0],o=r[1];return Object.assign(Object.assign({},t),d({},n,o===Object(o)?m.removeEmptyKeys(o):o))}),{})},getEventTopic:function(){return"Free Trial Request"},getCustomEventType:function(){return o.ProductFormEvent.ProductTrailRequested},getProductFormEventType:function(){return"product_form_submission"},getSchoolType:function(t){if(t){var e=t.toLowerCase();if(!["unknown","other"].includes(e))return p[e]||t}},parseProvince:function(t){return t.length?y[t.toLowerCase()]||t:""}}},86664:(t,e,r)=>{r.d(e,{I:()=>l});var n=r(83765),o=r(93824),a=["uk","gb","gg","im","je","ie"],i={au:o.C.AU,nz:o.C.NZ,us:o.C.US,uk:o.C.UK,gb:o.C.UK,gg:o.C.UK,im:o.C.UK,je:o.C.UK,ie:o.C.UK,al:o.C.UK,ad:o.C.UK,am:o.C.UK,at:o.C.UK,az:o.C.UK,by:o.C.UK,be:o.C.UK,ba:o.C.UK,bg:o.C.UK,hr:o.C.UK,cy:o.C.UK,cz:o.C.UK,dk:o.C.UK,ee:o.C.UK,fi:o.C.UK,fr:o.C.UK,de:o.C.UK,ge:o.C.UK,gr:o.C.UK,hu:o.C.UK,is:o.C.UK,it:o.C.UK,lv:o.C.UK,li:o.C.UK,lt:o.C.UK,lu:o.C.UK,mt:o.C.UK,md:o.C.UK,mc:o.C.UK,me:o.C.UK,nl:o.C.UK,mk:o.C.UK,no:o.C.UK,pl:o.C.UK,pt:o.C.UK,ro:o.C.UK,ru:o.C.UK,sm:o.C.UK,rs:o.C.UK,sk:o.C.UK,si:o.C.UK,es:o.C.UK,se:o.C.UK,ch:o.C.UK,tr:o.C.UK,ua:o.C.UK,va:o.C.UK},c={au:n.M.CvApSoutheast1,uk:n.M.CvEuWest1,us:n.M.CvNaWest1,nz:n.M.CvApSoutheast2},l={getInstanceRegion:function(t){var e=l.getCountryCode(t);return c[e]},getCountryCode:function(t){return i[null==t?void 0:t.toLowerCase()]||o.C.US},isCountryCodeUK:function(t){return a.includes(t.toLowerCase())},isCountryCodeAU:function(t){return(null==t?void 0:t.toLowerCase())===o.C.AU},isCountryCodeUS:function(t){return(null==t?void 0:t.toLowerCase())===o.C.US},isCountryCodeNZ:function(t){return(null==t?void 0:t.toLowerCase())===o.C.NZ},isSupportedCountryCode:function(t){return Object.keys(i).includes(null==t?void 0:t.toLowerCase())},getLocalizedLocalityPlaceholderPhrase:function(t){if(t)return l.isCountryCodeUK(t)?"E.g. CR0 3RL or 36 Factory Lane":l.isCountryCodeAU(t)||l.isCountryCodeNZ(t)?"E.g. 2212 or Revesby":l.isCountryCodeUS(t)?"E.g. 95826 or Sacramento":void 0},getLocalizedLocalityPlaceholderText:function(t){if(t){var e=l.getLocalizedLocalityPlaceholderPhrase(t);if(e)return e}}}},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(!1),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("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(),void t.onSelected(r-1);a(0)},containerRef:i,hide:l,onFocus:function(){t.hideOnBlur&&u(!1)},onBlur:function(){t.hideOnBlur&&u(!0)}}}},1269:(t,e,r)=>{r.d(e,{n:()=>C,W:()=>S});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(C,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),p=r(83345),y={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}},h=r(35223);function m(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 C(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.")}()),p=f[0],y=f[1],m=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"])),m),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"])),m);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:p,className:"".concat(v.passwordInput," border-0 w-100 h-100 outline-none rounded")}),m),"password"===s.type&&n.createElement(d.x,{svgName:"password"===p?h.vn.VisibleOn:h.vn.VisibleOff,className:"svg-container cursor-pointer ".concat(v.revealPassword),onClick:function(){y("password"===p?"text":"password")}}))}function S(t){var e=t.label,r=t.className,o=t.showCharacterCounter,c=t.showRequiredStar,u=t.infoTooltip,s=t.infoTooltipPlacement,g=t.infoText,S=t.formSize,E=t.showOptionalLabel,L=b(t,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoTooltipPlacement","infoText","formSize","showOptionalLabel"]),O=(0,i.u6)(),x=O.errors,j=O.touched,k=function(){};if("checkbox"===L.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({},L),{className:y.getCustomFormControlClassName(x,j,L.name,S,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:L.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:h.vn.Info,title:u,tooltipPlacement:s,tooltipSpanHack:!0}),E&&n.createElement("span",{className:"text-secondary"}," ",n.createElement(p.x,{namespace:w,phrase:"optional"})),!!o&&!!L.maxLength&&n.createElement("div",{className:"ms-auto"},n.createElement(m,{fieldName:L.name,limit:L.maxLength}))),n.createElement(C,Object.assign({},N)),!!g&&n.createElement(a.Z.Text,{className:"text-secondary"},g),n.createElement(i.Bc,{name:L.name},(function(t){return n.createElement(a.Z.Control.Feedback,{type:"invalid"},t)})))}C.defaultProps={autoComplete:"off"},S.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,p={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:p}),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}},93824:(t,e,r)=>{var n;r.d(e,{C:()=>n}),function(t){t.AU="au",t.NZ="nz",t.UK="uk",t.US="us"}(n||(n={}))},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)}}}},22314:(t,e,r)=>{r.d(e,{T:()=>p,m:()=>h});var n=r(32735),o=r(63093),a=r(20354),i=r(80412),c=r(86664),l=r(39151),u=r(39202),s={countryCode:"us",isFallback:!0};function f(t){return f="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},f(t)}function d(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=f(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==f(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var p,y="streamable.web";function h(){var t=n.useRef(),e=a.a.useBasicFetch(l.L.config()),r=a.a.useBasicFetch(l.L.version()),f=function(){var t,e,r=a.a.useBasicFetch(l.L.geoLocation()),n=null===(e=null===(t=u.Ab.GetQuery())||void 0===t?void 0:t.countryCode)||void 0===e?void 0:e.toLowerCase();return n?{countryCode:n}:r.hasCompleted&&!r.data?s:r.data}();function p(e){var r;e&&(null===(r=t.current)||void 0===r||r.setUser(i.F.hashedEmail(e)))}function h(e){var r,n,o,a,i=e.email,c=e.first_name,l=e.last_name,u=e.phone;i&&(null===(r=t.current)||void 0===r||r.setUserEmail(i)),c&&(null===(n=t.current)||void 0===n||n.setUserFirstName(c)),l&&(null===(o=t.current)||void 0===o||o.setUserLastName(l)),u&&(null===(a=t.current)||void 0===a||a.setUserPhone(u))}function m(e){var r,n=i.F.removeEmptyKeys(d(d(d(d(d(d({},o.CustomUserAttributes.AccountName,e.account_name),o.CustomUserAttributes.JobTitle,e.job_title),o.CustomUserAttributes.AccountAddress,e.account_address),o.CustomUserAttributes.SyncToCrm,e.sync_to_crm),o.CustomUserAttributes.CrmId,e.cvc_id),o.CustomUserAttributes.Topic,e.topic));null===(r=t.current)||void 0===r||r.bulkSetCustomUserAttributes(n)}return{initialize:function(){var n=c.I.getInstanceRegion(null==f?void 0:f.countryCode),a=e.data.braze[n],i=(0,o.getInstance)({baseUrl:a.url,apiKey:a.apiKey,productVersion:r,productName:y,enableLogging:!1,automaticallyShowInAppMessages:!1});(null==f?void 0:f.countryCode)&&i.setUserCountry(f.countryCode),i.openSession(),t.current=i},setUserContext:p,setUserDetails:h,setCustomUserAttributes:m,setLeadData:function(t){p(t.email),h(t),m(t)},enqueueEvent:function(e){var r,n=i.F.removeEmptyKeys(e);null===(r=t.current)||void 0===r||r.logEvent(n)},flush:function(){return t.current?new Promise((function(e,r){t.current.sendData((function(t){t?e():r(new Error("Failed to flush data"))}))})):Promise.reject(new Error("Client not initialized"))},hasLoaded:r.hasCompleted&&e.hasCompleted}}!function(t){t.ContactUsFormSubmit="streamable_contact_us_submission",t.LivestreamBookingFormSubmit="streamable_livestream_booking_submission"}(p||(p={}))},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,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=i(n))return n;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"}}}]);