"use strict";(()=>{(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[7606],{64982:(rt,k,d)=>{d.d(k,{A:()=>T});var s=d(76771);const T=function(W,q){var Z=q.map(function(B){var tt=B.fieldId,H=B.values;if(H&&H.length>0)return s.Op.in.apply(s.Op,[tt+".sys.id"].concat(H))}).filter(function(B){return!!B});Z.length>0&&W.where.add(s.Op.or.apply(s.Op,Z))}},40968:(rt,k,d)=>{d.r(k),d.d(k,{default:()=>ut});var s=d(13952),T=d(73226),W=d(64826),q=function(i){var m=i.theme,l=i.inverse,y=i.heading,g=i.description,h=i.moreEventsEntryUrl,c=i.moreEventsEntryText,f=i.events,v=f.length>0;return s.createElement(s.Fragment,null,s.createElement(T.d4,{link:c&&h?{url:h,title:c,theme:m,inverse:l}:void 0,theme:m,description:g,inverse:l,cards:f||[],title:y||void 0,type:"promo",cardTitleTag:(0,W.A)(y),cardCopyIsRichText:!0,imageOrientation:"left"}),!v&&s.createElement(T.lq,{inverse:l,theme:m},s.createElement("h4",null,"There are no upcoming events")))},Z=function(i){var m=i.theme,l=i.inverse,y=i.heading,g=i.description,h=i.moreEventsEntryUrl,c=i.moreEventsEntryText,f=i.events,v=f.length>0;return s.createElement(s.Fragment,null,s.createElement(T.Zh,{headingInfo:{theme:m,inverse:!0,htmlTag:"h3",title:y||void 0,description:g||void 0,fullWidth:!0,linkProps:h&&c?{title:c,url:h}:void 0},theme:m,showCategory:!1,cards:f}),!v&&s.createElement(T.lq,{inverse:l,theme:m},s.createElement("h4",null,"There are no upcoming events")))},B=d(20471),tt=d(38470),H=d(97175),x=d(76771),nt=d(32832),at=d(64982),it=d(71980);function et(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */et=function(){return i};var p,i={},m=Object.prototype,l=m.hasOwnProperty,y=Object.defineProperty||function(r,t,e){r[t]=e.value},g=typeof Symbol=="function"?Symbol:{},h=g.iterator||"@@iterator",c=g.asyncIterator||"@@asyncIterator",f=g.toStringTag||"@@toStringTag";function v(r,t,e){return Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}),r[t]}try{v({},"")}catch{v=function(e,n,a){return e[n]=a}}function I(r,t,e,n){var a=t&&t.prototype instanceof z?t:z,o=Object.create(a.prototype),u=new _(n||[]);return y(o,"_invoke",{value:L(r,e,u)}),o}function $(r,t,e){try{return{type:"normal",arg:r.call(t,e)}}catch(n){return{type:"throw",arg:n}}}i.wrap=I;var Y="suspendedStart",J="suspendedYield",X="executing",A="completed",O={};function z(){}function j(){}function D(){}var K={};v(K,h,function(){return this});var P=Object.getPrototypeOf,G=P&&P(P(U([])));G&&G!==m&&l.call(G,h)&&(K=G);var b=D.prototype=z.prototype=Object.create(K);function Q(r){["next","throw","return"].forEach(function(t){v(r,t,function(e){return this._invoke(t,e)})})}function C(r,t){function e(a,o,u,E){var w=$(r[a],r,o);if(w.type!=="throw"){var F=w.arg,S=F.value;return S&&typeof S=="object"&&l.call(S,"__await")?t.resolve(S.__await).then(function(N){e("next",N,u,E)},function(N){e("throw",N,u,E)}):t.resolve(S).then(function(N){F.value=N,u(F)},function(N){return e("throw",N,u,E)})}E(w.arg)}var n;y(this,"_invoke",{value:function(o,u){function E(){return new t(function(w,F){e(o,u,w,F)})}return n=n?n.then(E,E):E()}})}function L(r,t,e){var n=Y;return function(a,o){if(n===X)throw Error("Generator is already running");if(n===A){if(a==="throw")throw o;return{value:p,done:!0}}for(e.method=a,e.arg=o;;){var u=e.delegate;if(u){var E=M(u,e);if(E){if(E===O)continue;return E}}if(e.method==="next")e.sent=e._sent=e.arg;else if(e.method==="throw"){if(n===Y)throw n=A,e.arg;e.dispatchException(e.arg)}else e.method==="return"&&e.abrupt("return",e.arg);n=X;var w=$(r,t,e);if(w.type==="normal"){if(n=e.done?A:J,w.arg===O)continue;return{value:w.arg,done:e.done}}w.type==="throw"&&(n=A,e.method="throw",e.arg=w.arg)}}}function M(r,t){var e=t.method,n=r.iterator[e];if(n===p)return t.delegate=null,e==="throw"&&r.iterator.return&&(t.method="return",t.arg=p,M(r,t),t.method==="throw")||e!=="return"&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+e+"' method")),O;var a=$(n,r.iterator,t.arg);if(a.type==="throw")return t.method="throw",t.arg=a.arg,t.delegate=null,O;var o=a.arg;return o?o.done?(t[r.resultName]=o.value,t.next=r.nextLoc,t.method!=="return"&&(t.method="next",t.arg=p),t.delegate=null,O):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,O)}function V(r){var t={tryLoc:r[0]};1 in r&&(t.catchLoc=r[1]),2 in r&&(t.finallyLoc=r[2],t.afterLoc=r[3]),this.tryEntries.push(t)}function R(r){var t=r.completion||{};t.type="normal",delete t.arg,r.completion=t}function _(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(V,this),this.reset(!0)}function U(r){if(r||r===""){var t=r[h];if(t)return t.call(r);if(typeof r.next=="function")return r;if(!isNaN(r.length)){var e=-1,n=function a(){for(;++e=0;--a){var o=this.tryEntries[a],u=o.completion;if(o.tryLoc==="root")return n("end");if(o.tryLoc<=this.prev){var E=l.call(o,"catchLoc"),w=l.call(o,"finallyLoc");if(E&&w){if(this.prev=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&l.call(a,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),R(n),O}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var a=n.completion;if(a.type==="throw"){var o=a.arg;R(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:U(t),resultName:e,nextLoc:n},this.method==="next"&&(this.arg=p),O}},i}function ot(p,i,m,l,y,g,h){try{var c=p[g](h),f=c.value}catch(v){return void m(v)}c.done?i(f):Promise.resolve(f).then(l,y)}function st(p){return function(){var i=this,m=arguments;return new Promise(function(l,y){var g=p.apply(i,m);function h(f){ot(g,l,y,h,c,"next",f)}function c(f){ot(g,l,y,h,c,"throw",f)}h(void 0)})}}var ct=function(i){var m=(0,nt.d4)(H.ph),l=(0,nt.d4)(H.j7),y=(0,s.useState)([]),g=y[0],h=y[1],c=i||{},f=c.theme,v=c.inverse,I=c.heading,$=c.headingHtmlElement,Y=c.description,J=c.moreEventsEntryUrl,X=c.moreEventsEntryText,A=c.isCoursePage,O=c.prefilters,z=function(){var D=st(et().mark(function K(P,G,b,Q,C){var L,M,V,R;return et().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return L=new x.XK(x.Op.equalTo("sys.contentTypeId","events"),x.Op.equalTo("sys.versionStatus",G)),P&&P.length>0&&L.where.add(x.Op.contains("searchDataKeywords",P)),C&&C.length>0&&(0,at.A)(L,C),L.where.add(x.Op.or(x.Op.and(x.Op.exists("searchDataUrl",!1),x.Op.exists("prefilters",!1),x.Op.greaterThanOrEqualTo("toDateAndTime","now()")),x.Op.and(x.Op.exists("searchDataUrl",!0),x.Op.greaterThanOrEqualTo("datetime.to","now()")))),L.orderBy=x.mF.asc("toDateAndTime").asc("datetime.from"),L.pageSize=b,L.pageIndex=0,U.next=9,tt.deliveryApi.search(L,1,Q);case 9:M=U.sent,A?(V=(0,B.Ay)(M.items),h(V.map(function(r){return Object.assign({},r,{titleTag:I&&I.length>0?"h4":"h3"})}))):(R=(0,it.A)(M.items),h(R));case 11:case"end":return U.stop()}},K)}));return function(P,G,b,Q,C){return D.apply(this,arguments)}}();(0,s.useEffect)(function(){z(i.searchTermProvided,l,i.maximumEventCount||3,m,O||[]).catch(console.error)},[]);var j=g.length>0;return s.createElement(s.Fragment,null,j&&!A&&s.createElement(q,{theme:f,description:Y,inverse:v,events:g,heading:I,moreEventsEntryText:X,moreEventsEntryUrl:J}),j&&A&&s.createElement(Z,{theme:f,inverse:!0,heading:I,description:Y,events:g,moreEventsEntryText:X,moreEventsEntryUrl:J}),!j&&A&&s.createElement("div",null,"There are currently no upcoming events"))};const ut=ct},64826:(rt,k,d)=>{d.d(k,{A:()=>s});function s(T,W){if(T===void 0||T.length<1)return"h2";switch(W){case"h1":return"h2";case"h2":return"h3";case"h3":return"h4"}return"h3"}}}]);})();