@uob-web-and-digital/component-library 2.16.2 → 2.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js
CHANGED
|
@@ -20,4 +20,4 @@ object-assign
|
|
|
20
20
|
* focus-trap 7.6.5
|
|
21
21
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
22
22
|
*/
|
|
23
|
-
function Cn(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}function yn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t);if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nn(Object(n),!0).forEach(function(t){yn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xn(e){return function(e){if(Array.isArray(e))return Cn(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 Cn(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)?Cn(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.")}()}var Ln,Tn,Mn=function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n._setPausedState(!0)}var a=e.indexOf(t);-1===a||e.splice(a,1),e.push(t)},Sn=function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)},Hn=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},Pn=function(e){return Hn(e)&&!e.shiftKey},Vn=function(e){return Hn(e)&&e.shiftKey},On=function(e){return setTimeout(e,0)},Zn=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return"function"==typeof e?e.apply(void 0,n):e},qn=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},Bn=[],Fn=wt(Object.freeze({__proto__:null,createFocusTrap:function(e,t){var n,a=(null==t?void 0:t.document)||document,r=(null==t?void 0:t.trapStack)||Bn,c=kn({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Pn,isKeyBackward:Vn},t),l={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},i=function(e,t,n){return e&&void 0!==e[t]?e[t]:c[n||t]},o=function(e,t){var n="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return l.containerGroups.findIndex(function(t){var a=t.container,r=t.tabbableNodes;return a.contains(e)||(null==n?void 0:n.includes(a))||r.find(function(t){return t===e})})},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.hasFallback,r=void 0!==n&&n,l=t.params,i=void 0===l?[]:l,o=c[e];if("function"==typeof o&&(o=o.apply(void 0,xn(i))),!0===o&&(o=void 0),!o){if(void 0===o||!1===o)return o;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var s=o;if("string"==typeof o){try{s=a.querySelector(o)}catch(t){throw new Error("`".concat(e,'` appears to be an invalid selector; error="').concat(t.message,'"'))}if(!s&&!r)throw new Error("`".concat(e,"` as selector refers to no known node"))}return s},m=function(){var e=s("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!bn(e,c.tabbableOptions))if(o(a.activeElement)>=0)e=a.activeElement;else{var t=l.tabbableGroups[0];e=t&&t.firstTabbableNode||s("fallbackFocus")}else null===e&&(e=s("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},d=function(){if(l.containerGroups=l.containers.map(function(e){var t=fn(e,c.tabbableOptions),n=gn(e,c.tabbableOptions),a=t.length>0?t[0]:void 0,r=t.length>0?t[t.length-1]:void 0,l=n.find(function(e){return En(e)}),i=n.slice().reverse().find(function(e){return En(e)}),o=!!t.find(function(e){return cn(e)>0});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:o,firstTabbableNode:a,lastTabbableNode:r,firstDomTabbableNode:l,lastDomTabbableNode:i,nextTabbableNode:function(e){var a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t.indexOf(e);return r<0?a?n.slice(n.indexOf(e)+1).find(function(e){return En(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return En(e)}):t[r+(a?1:-1)]}}}),l.tabbableGroups=l.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),l.tabbableGroups.length<=0&&!s("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(l.containerGroups.find(function(e){return e.posTabIndexesFound})&&l.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},u=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?u(t.shadowRoot):t},h=function(e){!1!==e&&e!==u(document)&&(e&&e.focus?(e.focus({preventScroll:!!c.preventScroll}),l.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):h(m()))},p=function(e){var t=s("setReturnFocus",{params:[e]});return t||!1!==t&&e},v=function(e){var t=e.target,n=e.event,a=e.isBackward,r=void 0!==a&&a;t=t||qn(n),d();var i=null;if(l.tabbableGroups.length>0){var m=o(t,n),u=m>=0?l.containerGroups[m]:void 0;if(m<0)i=r?l.tabbableGroups[l.tabbableGroups.length-1].lastTabbableNode:l.tabbableGroups[0].firstTabbableNode;else if(r){var h=l.tabbableGroups.findIndex(function(e){var n=e.firstTabbableNode;return t===n});if(h<0&&(u.container===t||bn(t,c.tabbableOptions)&&!En(t,c.tabbableOptions)&&!u.nextTabbableNode(t,!1))&&(h=m),h>=0){var p=0===h?l.tabbableGroups.length-1:h-1,v=l.tabbableGroups[p];i=cn(t)>=0?v.lastTabbableNode:v.lastDomTabbableNode}else Hn(n)||(i=u.nextTabbableNode(t,!1))}else{var f=l.tabbableGroups.findIndex(function(e){var n=e.lastTabbableNode;return t===n});if(f<0&&(u.container===t||bn(t,c.tabbableOptions)&&!En(t,c.tabbableOptions)&&!u.nextTabbableNode(t))&&(f=m),f>=0){var g=f===l.tabbableGroups.length-1?0:f+1,E=l.tabbableGroups[g];i=cn(t)>=0?E.firstTabbableNode:E.firstDomTabbableNode}else Hn(n)||(i=u.nextTabbableNode(t))}}else i=s("fallbackFocus");return i},f=function(e){var t=qn(e);o(t,e)>=0||(Zn(c.clickOutsideDeactivates,e)?n.deactivate({returnFocus:c.returnFocusOnDeactivate}):Zn(c.allowOutsideClick,e)||e.preventDefault())},g=function(e){var t=qn(e),n=o(t,e)>=0;if(n||t instanceof Document)n&&(l.mostRecentlyFocusedNode=t);else{var a;e.stopImmediatePropagation();var r=!0;if(l.mostRecentlyFocusedNode)if(cn(l.mostRecentlyFocusedNode)>0){var i=o(l.mostRecentlyFocusedNode),s=l.containerGroups[i].tabbableNodes;if(s.length>0){var d=s.findIndex(function(e){return e===l.mostRecentlyFocusedNode});d>=0&&(c.isKeyForward(l.recentNavEvent)?d+1<s.length&&(a=s[d+1],r=!1):d-1>=0&&(a=s[d-1],r=!1))}}else l.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return cn(e)>0})})||(r=!1);else r=!1;r&&(a=v({target:l.mostRecentlyFocusedNode,isBackward:c.isKeyBackward(l.recentNavEvent)})),h(a||(l.mostRecentlyFocusedNode||m()))}l.recentNavEvent=void 0},E=function(e){(c.isKeyForward(e)||c.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];l.recentNavEvent=e;var n=v({event:e,isBackward:t});n&&(Hn(e)&&e.preventDefault(),h(n))}(e,c.isKeyBackward(e))},_=function(e){var t;"Escape"!==(null==(t=e)?void 0:t.key)&&"Esc"!==(null==t?void 0:t.key)&&27!==(null==t?void 0:t.keyCode)||!1===Zn(c.escapeDeactivates,e)||(e.preventDefault(),n.deactivate())},b=function(e){var t=qn(e);o(t,e)>=0||Zn(c.clickOutsideDeactivates,e)||Zn(c.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},w=function(){if(l.active)return Mn(r,n),l.delayInitialFocusTimer=c.delayInitialFocus?On(function(){h(m())}):h(m()),a.addEventListener("focusin",g,!0),a.addEventListener("mousedown",f,{capture:!0,passive:!1}),a.addEventListener("touchstart",f,{capture:!0,passive:!1}),a.addEventListener("click",b,{capture:!0,passive:!1}),a.addEventListener("keydown",E,{capture:!0,passive:!1}),a.addEventListener("keydown",_),n},C=function(){if(l.active)return a.removeEventListener("focusin",g,!0),a.removeEventListener("mousedown",f,!0),a.removeEventListener("touchstart",f,!0),a.removeEventListener("click",b,!0),a.removeEventListener("keydown",E,!0),a.removeEventListener("keydown",_),n},y="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver(function(e){e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===l.mostRecentlyFocusedNode})})&&h(m())}):void 0,N=function(){y&&(y.disconnect(),l.active&&!l.paused&&l.containers.map(function(e){y.observe(e,{subtree:!0,childList:!0})}))};return n={get active(){return l.active},get paused(){return l.paused},activate:function(e){if(l.active)return this;var t=i(e,"onActivate"),n=i(e,"onPostActivate"),r=i(e,"checkCanFocusTrap");r||d(),l.active=!0,l.paused=!1,l.nodeFocusedBeforeActivation=u(a),null==t||t();var c=function(){r&&d(),w(),N(),null==n||n()};return r?(r(l.containers.concat()).then(c,c),this):(c(),this)},deactivate:function(e){if(!l.active)return this;var t=kn({onDeactivate:c.onDeactivate,onPostDeactivate:c.onPostDeactivate,checkCanReturnFocus:c.checkCanReturnFocus},e);clearTimeout(l.delayInitialFocusTimer),l.delayInitialFocusTimer=void 0,C(),l.active=!1,l.paused=!1,N(),Sn(r,n);var a=i(t,"onDeactivate"),o=i(t,"onPostDeactivate"),s=i(t,"checkCanReturnFocus"),m=i(t,"returnFocus","returnFocusOnDeactivate");null==a||a();var d=function(){On(function(){m&&h(p(l.nodeFocusedBeforeActivation)),null==o||o()})};return m&&s?(s(p(l.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(e){return l.active?(l.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return l.active?(l.manuallyPaused=!1,r[r.length-1]!==this?this:this._setPausedState(!1,e)):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return l.containers=t.map(function(e){return"string"==typeof e?a.querySelector(e):e}),l.active&&d(),N(),this}},Object.defineProperties(n,{_isManuallyPaused:{value:function(){return l.manuallyPaused}},_setPausedState:{value:function(e,t){if(l.paused===e)return this;if(l.paused=e,e){var n=i(t,"onPause"),a=i(t,"onPostPause");null==n||n(),C(),N(),null==a||a()}else{var r=i(t,"onUnpause"),c=i(t,"onPostUnpause");null==r||r(),d(),w(),N(),null==c||c()}return this}}}),n.updateContainerElements(e),n}})),Dn=wt(wn);var In=function(){if(Tn)return Ln;function t(e){return t="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},t(e)}function n(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,i(a.key),a)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e,n,a){return n=c(n),function(e,n){if(n&&("object"==t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,r()?Reflect.construct(n,a||[],c(e).constructor):n.apply(e,a))}function r(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(r=function(){return!!e})()}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function i(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var r=a.call(e,n);if("object"!=t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:n+""}Tn=1;var o=e,s=Kt(),m=Fn.createFocusTrap,d=Dn.isFocusable,u=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(n=a(this,t,[e]),"getNodeForOption",function(e){var t,n=null!==(t=this.internalOptions[e])&&void 0!==t?t:this.originalOptions[e];if("function"==typeof n){for(var a=arguments.length,r=new Array(a>1?a-1:0),c=1;c<a;c++)r[c-1]=arguments[c];n=n.apply(void 0,r)}if(!0===n&&(n=void 0),!n){if(void 0===n||!1===n)return n;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var l,i=n;if("string"==typeof n&&!(i=null===(l=this.getDocument())||void 0===l?void 0:l.querySelector(n)))throw new Error("`".concat(e,"` as selector refers to no known node"));return i}),n.handleDeactivate=n.handleDeactivate.bind(n),n.handlePostDeactivate=n.handlePostDeactivate.bind(n),n.handleClickOutsideDeactivates=n.handleClickOutsideDeactivates.bind(n),n.internalOptions={returnFocusOnDeactivate:!1,checkCanReturnFocus:null,onDeactivate:n.handleDeactivate,onPostDeactivate:n.handlePostDeactivate,clickOutsideDeactivates:n.handleClickOutsideDeactivates},n.originalOptions={returnFocusOnDeactivate:!0,onDeactivate:null,onPostDeactivate:null,checkCanReturnFocus:null,clickOutsideDeactivates:!1};var r=e.focusTrapOptions;for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&("returnFocusOnDeactivate"!==c&&"onDeactivate"!==c&&"onPostDeactivate"!==c&&"checkCanReturnFocus"!==c&&"clickOutsideDeactivates"!==c?n.internalOptions[c]=r[c]:n.originalOptions[c]=r[c]);return n.outsideClick=null,n.focusTrapElements=e.containerElements||[],n.updatePreviousElement(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),n(t,[{key:"getDocument",value:function(){return this.props.focusTrapOptions.document||("undefined"!=typeof document?document:void 0)}},{key:"getReturnFocusNode",value:function(){var e=this.getNodeForOption("setReturnFocus",this.previouslyFocusedElement);return e||!1!==e&&this.previouslyFocusedElement}},{key:"updatePreviousElement",value:function(){var e=this.getDocument();e&&(this.previouslyFocusedElement=e.activeElement)}},{key:"deactivateTrap",value:function(){this.focusTrap&&this.focusTrap.active&&this.focusTrap.deactivate({returnFocus:!1,checkCanReturnFocus:null,onDeactivate:this.originalOptions.onDeactivate})}},{key:"handleClickOutsideDeactivates",value:function(e){var t="function"==typeof this.originalOptions.clickOutsideDeactivates?this.originalOptions.clickOutsideDeactivates.call(null,e):this.originalOptions.clickOutsideDeactivates;return t&&(this.outsideClick={target:e.target,allowDeactivation:t}),t}},{key:"handleDeactivate",value:function(){this.originalOptions.onDeactivate&&this.originalOptions.onDeactivate.call(null),this.deactivateTrap()}},{key:"handlePostDeactivate",value:function(){var e=this,t=function(){var t=e.getReturnFocusNode(),n=!(!e.originalOptions.returnFocusOnDeactivate||null==t||!t.focus||e.outsideClick&&(!e.outsideClick.allowDeactivation||d(e.outsideClick.target,e.internalOptions.tabbableOptions))),a=e.internalOptions.preventScroll,r=void 0!==a&&a;n&&t.focus({preventScroll:r}),e.originalOptions.onPostDeactivate&&e.originalOptions.onPostDeactivate.call(null),e.outsideClick=null};this.originalOptions.checkCanReturnFocus?this.originalOptions.checkCanReturnFocus.call(null,this.getReturnFocusNode()).then(t,t):t()}},{key:"setupFocusTrap",value:function(){this.focusTrap?this.props.active&&!this.focusTrap.active&&(this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause()):this.focusTrapElements.some(Boolean)&&(this.focusTrap=this.props._createFocusTrap(this.focusTrapElements,this.internalOptions),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause())}},{key:"componentDidMount",value:function(){this.props.active&&this.setupFocusTrap()}},{key:"componentDidUpdate",value:function(e){if(this.focusTrap){e.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var t=!e.active&&this.props.active,n=e.active&&!this.props.active,a=!e.paused&&this.props.paused,r=e.paused&&!this.props.paused;if(t&&(this.updatePreviousElement(),this.focusTrap.activate()),n)return void this.deactivateTrap();a&&this.focusTrap.pause(),r&&this.focusTrap.unpause()}else e.containerElements!==this.props.containerElements&&(this.focusTrapElements=this.props.containerElements),this.props.active&&(this.updatePreviousElement(),this.setupFocusTrap())}},{key:"componentWillUnmount",value:function(){this.deactivateTrap()}},{key:"render",value:function(){var e=this,t=this.props.children?o.Children.only(this.props.children):void 0;if(t){if(t.type&&t.type===o.Fragment)throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");return o.cloneElement(t,{ref:function(n){var a=e.props.containerElements;t&&("function"==typeof t.ref?t.ref(n):t.ref&&(t.ref.current=n)),e.focusTrapElements=a||[n]}})}return null}}])}(o.Component),h="undefined"==typeof Element?Function:Element;return u.propTypes={active:s.bool,paused:s.bool,focusTrapOptions:s.shape({document:s.object,onActivate:s.func,onPostActivate:s.func,checkCanFocusTrap:s.func,onPause:s.func,onPostPause:s.func,onUnpause:s.func,onPostUnpause:s.func,onDeactivate:s.func,onPostDeactivate:s.func,checkCanReturnFocus:s.func,initialFocus:s.oneOfType([s.instanceOf(h),s.string,s.bool,s.func]),fallbackFocus:s.oneOfType([s.instanceOf(h),s.string,s.func]),escapeDeactivates:s.oneOfType([s.bool,s.func]),clickOutsideDeactivates:s.oneOfType([s.bool,s.func]),returnFocusOnDeactivate:s.bool,setReturnFocus:s.oneOfType([s.instanceOf(h),s.string,s.bool,s.func]),allowOutsideClick:s.oneOfType([s.bool,s.func]),preventScroll:s.bool,tabbableOptions:s.shape({displayCheck:s.oneOf(["full","legacy-full","non-zero-area","none"]),getShadowRoot:s.oneOfType([s.bool,s.func])}),trapStack:s.array,isKeyForward:s.func,isKeyBackward:s.func}),containerElements:s.arrayOf(s.instanceOf(h)),children:s.oneOfType([s.element,s.instanceOf(h)])},u.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:m},Ln=u}(),An=bt(In);n();var Rn=function(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.inverse,c=void 0!==r&&r,i=t.onClick,o=t.label,s=t.level,d=t.autoFocus,u=void 0!==d&&d;return e.createElement("button",{className:l("nav-link",a&&"theme-".concat(a),c&&"theme-".concat(a,"--inverse"),"nav-link--".concat(s)),onClick:i,autoFocus:u},e.createElement("span",{className:"nav-link__label"},o,e.createElement("span",{className:"nav-link__icon"},e.createElement(m,{icon:"chevron-right",theme:a,inverse:c,ariaHidden:!0}))))};n();var $n=function(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.inverse,c=void 0!==r&&r,i=t.url,o=t.label,s=t.level,m=t.autoFocus,d=void 0!==m&&m,u=t.externalLink,h=void 0!==u&&u,p=e.useRef(null);return e.useEffect(function(){d&&p.current&&p.current.focus()},[d]),e.createElement("a",{className:l("page-link",a&&"theme-".concat(a),c&&"theme-".concat(a,"--inverse"),"page-link--".concat(s)),href:i,ref:p,target:h?"_blank":"_self",rel:h?"noopener noreferrer":""},o)};function jn(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.inverse,i=void 0===c||c,o=t.image,s=t.tag,d=t.title,u=t.href,h=t.linkText,v=t.description,f=t.type;return e.createElement("div",{className:l("card-menu",f&&"card-menu--".concat(f),r&&"theme-".concat(r),i&&"theme-".concat(r,"--inverse"))},e.createElement("figure",{className:"card-menu__figure"},e.createElement("div",{className:"card-menu__image-wrapper"},o&&e.createElement(w,a({},o,{altText:"",loadingAttr:"lazy"}))),e.createElement("figcaption",{className:"card-menu__text-content"},"secondary"===f&&e.createElement(e.Fragment,null,e.createElement("p",{className:"card-menu__tag card-menu__tag"},s),e.createElement("a",{className:"card-menu__link",href:u},e.createElement("h2",{className:"card-menu__title"},d))),"primary"===f?e.createElement(e.Fragment,null,e.createElement("h2",{className:"card-menu__title"},d),e.createElement("p",{className:"card-menu__description"},v),e.createElement("div",{className:"card-menu__cta"},e.createElement(p,{theme:r,url:u,title:h||d}))):e.createElement("div",{className:"card-menu__arrow"},e.createElement(m,{icon:"arrow-right",theme:r,ariaHidden:!0})))))}n();var zn=function(t){var n=t.primaryLinks,a=t.secondaryLinks,r=t.onClickNavLink,c=t.menuCards,i=t.theme,o=t.inverse;return e.createElement("div",{className:l("header__main-menu",i&&"theme-".concat(i),o&&"theme-".concat(i,"--inverse"))},e.createElement("div",{className:"header__main-menu-menu-wrapper"},e.createElement("ul",{className:"header__main-menu-primary-list"},n.map(function(t,n){return t.children?e.createElement(Rn,{label:t.label,onClick:function(){return r(n)},key:t.label,theme:i,inverse:o,level:"level-one",autoFocus:0===n}):e.createElement($n,{label:t.label,url:t.url,key:t.label,theme:i,inverse:o,level:"level-one",autoFocus:0===n,externalLink:t.externalLink})})),e.createElement("ul",{className:"header__main-menu-secondary-list"},a.map(function(t,a){return t.children?e.createElement(Rn,{label:t.label,onClick:function(){return r(a+n.length)},key:t.label,theme:i,inverse:o,level:"level-two"}):e.createElement($n,{label:t.label,url:t.url,key:t.label,theme:i,inverse:o,level:"level-two",externalLink:t.externalLink})}))),e.createElement("ul",{className:"header__main-menu-promo-cards"},c&&c.map(function(t,n){return e.createElement("li",{key:n},e.createElement(jn,{theme:i,image:{src:{small:t.image.src.small,medium:t.image.src.medium,default:t.image.src.default}},description:t.description,tag:t.tag,title:t.title,linkText:t.linkText,href:t.href,type:t.type}))})))};n();var Wn=function(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.inverse,c=void 0!==r&&r,i=t.label,o=t.onClick;return e.createElement("button",{className:l("reverse-link-with-arrow",a&&"theme-".concat(a),c&&"theme-".concat(a,"--inverse")),onClick:o},e.createElement("span",{className:"reverse-link-with-arrow__title"},e.createElement("span",{className:"reverse-link-with-arrow__icon"},e.createElement(m,{icon:"arrow-left",theme:a,inverse:c,ariaHidden:!0})),i))},Un=function(t){var n=t.headingLink,a=t.onClickGoBack,r=t.onClickNavLink,c=t.theme,i=t.backLinkLabel,o=t.inverse,s=void 0===o||o;return e.createElement("div",{className:l("header__nested-menu",c&&"theme-".concat(c),s&&"theme-".concat(c,"--inverse"))},e.createElement(Wn,{label:i,onClick:a,theme:c,inverse:s}),e.createElement("div",{className:"header__heading-link"},e.createElement($n,{theme:c,inverse:s,url:n.url,label:n.label,level:"level-one",autoFocus:!0})),e.createElement("div",{className:"header__content-wrapper"},n.description&&e.createElement("p",{className:"header__description"},n.description),n.children&&e.createElement("ul",{className:l("header__link-list",n.description&&"header__link-list--with-desc")},n.children.map(function(t,n){return t.children?e.createElement(Rn,{label:t.label,onClick:function(){return r(n)},key:t.label,inverse:s,theme:c,level:"level-two"}):e.createElement($n,{label:t.label,url:t.url,key:t.label,theme:c,inverse:s,level:"level-two",externalLink:t.externalLink})}))))};n();var Gn=function(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.inverse,c=void 0!==r&&r,i=t.fieldName,o=t.hiddenLabel,s=void 0!==o&&o,m=t.defaultValue,d=t.placeholder,u=t.required,h=void 0!==u&&u,p=t.onChange;return e.createElement("div",{className:l("form-input",a&&"theme-".concat(a),c&&"theme-".concat(a,"--inverse"))},e.createElement("label",{htmlFor:i,className:l("form-input__label",s&&"sr-only")},"Select ",i),e.createElement("input",{className:"form-input__input",id:i,name:i,type:"text",required:h,defaultValue:m,placeholder:d,onChange:p}))},Kn=function(t){var n=t.title,a=void 0===n?"Search":n,r=t.placeholder,c=void 0===r?"Start typing":r,l=t.introText,i=t.handleSearchChange,o=t.handleSearchSubmit,s=t.theme,m=t.inverse,d=t.onClickGoBack,u=t.backLinkLabel,p=t.recommendedLinks,v=t.recommendedLinkTitle;return e.createElement("div",{className:"header-search"},d&&u&&e.createElement("div",{className:"header-search__back-link"},e.createElement(Wn,{label:u,onClick:d,theme:s})),e.createElement("div",{className:"header-search__container"},e.createElement("h2",{className:"header-search__title"},a),e.createElement("p",{className:"header-search__intro"},l),e.createElement("form",{className:"header-search__form",method:"post",onSubmit:o},e.createElement("div",{className:"header-search__search-wrapper"},e.createElement(Gn,{theme:s,inverse:!1,fieldName:"search",hiddenLabel:!0,placeholder:c,onChange:i}),e.createElement(ye,{theme:s,inverse:!m,title:"Search",icon:"search",isSubmit:!0})),e.createElement(h,{theme:s,inverse:!m,label:"Search",isSubmit:!0}))),p&&e.createElement("div",{className:"header-search__recommended-links-wrapper"},v&&e.createElement("h3",{className:"header-search__recommended-link-title"},v),e.createElement("ul",{className:"header-search__recommended-links"},p.map(function(t,n){return e.createElement("li",{className:"header-search__recommended-link",key:n},e.createElement(mt,{theme:s,url:t.url,title:t.label,externalLink:t.externalLink}))}))))};function Yn(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.label,c=t.url,i=t.externalLink,o=t.active,s=void 0!==o&&o;return e.createElement("a",{className:l("campus-selector-link",a&&"theme-".concat(a),s&&"campus-selector-link--active"),href:c,target:i?"_blank":"_self",rel:"noreferrer"},r)}function Jn(t){var n=t.active,a=t.theme,r=t.ukUrl,c=t.dubaiUrl,i=t.mobile;return e.createElement("div",{className:l("campus-selector",a&&"theme-".concat(a),i&&"campus-selector--mobile",!i&&"campus-selector--desktop")},e.createElement("div",{className:"campus-selector__container"},e.createElement("span",{className:"campus-selector__label"},"Select campus:"),i?e.createElement(e.Fragment,null,e.createElement(h,{label:"UK",theme:a,inverse:!0,url:r,hollow:"uk"!==n}),e.createElement(h,{label:"Dubai",theme:a,inverse:!0,url:c,hollow:"dubai"!==n})):e.createElement(e.Fragment,null,e.createElement(Yn,{label:"UK",theme:a,url:r,active:"uk"===n}),e.createElement(Yn,{label:"Dubai",theme:a,url:c,active:"dubai"===n}))))}n(),n();var Qn=function(t){var n,a,c=t.primaryLinks,l=t.secondaryLinks,i=t.searchProps,o=e.useRef(null),s=e.useRef(null),m=e.useRef(null),d=e.useState(!1),u=d[0],h=d[1],p=e.useState(0),v=p[0],f=p[1],g=e.useState(null),E=g[0],_=g[1],b=e.useState(null),w=b[0],C=b[1],y=e.useState(!1),N=y[0],k=y[1],x=e.useState(!1),L=x[0],T=x[1],M=e.useState(""),S=M[0],H=M[1],P=function(){h(!0),document.body.classList.add("lock-scroll")},V=function(){k(!0),P()},O=function(){k(!1),T(!1)},Z=function(){h(!1),O(),document.body.classList.remove("lock-scroll"),f(0),_(null),C(null),o.current&&o.current.focus()};e.useEffect(function(){var e=function(e){"Escape"===e.key&&u&&Z()};return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}});var q=null,B=null;null!==E&&(q=null!==(n=r(r([],c,!0),l,!0)[E])&&void 0!==n?n:null,null!==w&&(null==q?void 0:q.children)&&(B=null!==(a=q.children[w])&&void 0!==a?a:null));return{openMenuButtonRef:o,headerRef:s,desktopCampusSelectorRef:m,isOpen:u,menuLevel:v,mainMenuSelectedIdx:E,levelOneSelectedIdx:w,searchIsOpen:N,searchOpenedFromHeader:L,searchTerm:S,mainMenuSelectedLink:q,firstLevelSelectedLink:B,openMenu:P,closeMenu:Z,openSearch:V,openSearchFromHeader:function(){T(!0),V()},closeSearch:O,onClickMainMenuNavLink:function(e){f(1),_(e)},onClickLevelOneNavLink:function(e){f(2),C(e)},goBackToMainMenu:function(){f(0),_(null),O()},goBackToLevelOne:function(){f(1),C(null),O()},closeLowestLevelSearch:function(){f(2),O()},handleSearchChange:function(e){H(e.target.value)},handleSearchSubmit:function(e){if(e.preventDefault(),"undefined"!=typeof window){var t=null==i?void 0:i.resultsUrl;t&&(window.location.href=S?"".concat(t,"?term=").concat(S):t)}}}};n();var Xn={mobile:{image:"polygon(0 0, calc(100% - 1px) 0, calc(75% - 1px) calc(70% - 1px), 0 calc(90% - 1px))",background:"polygon(0 0, 100% 0, 75% 70%, 0 90%)"},tablet:{image:"polygon(0 0, 100% 0, 100% calc(70% - 1px), calc(30% + 1px) calc(60% - 1px))",background:"polygon(0 0, 100% 0, 100% 70%, 30% 60%)"},desktop:{image:"polygon(1px 0, 100% 0, 100% calc(95% - 1px), calc(10% + 1px) calc(65% - 1px))",background:"polygon(0 0, 100% 0, 100% 95%, 10% 65%)"}};function ea(n){var a,r,c=n.isMobile,l=n.isTablet,i=n.image,o=c?Xn.mobile:l?Xn.tablet:Xn.desktop,s=e.useRef(null),m=e.useId();return e.useEffect(function(){var e;s.current&&s.current.setAttribute("fetchpriority",null!==(e=i.fetchPriority)&&void 0!==e?e:"auto")}),e.createElement(e.Fragment,null,e.createElement(t.motion.div,{className:"hero__polygon-image-wrapper"},e.createElement(t.motion.img,{ref:s,className:"hero__image",src:i.src.default,srcSet:"".concat(null!==(a=i.src.small)&&void 0!==a?a:i.src.default," 576w, ").concat(null!==(r=i.src.medium)&&void 0!==r?r:i.src.default," 992w, ").concat(i.src.default," 1440w"),alt:i.alt,fetchPriority:i.fetchPriority,animate:{clipPath:o.image},transition:{type:"tween"}}),e.createElement(t.motion.div,{key:m,className:"hero__polygon-image-background",animate:{opacity:1,clipPath:o.background},transition:{type:"tween"},initial:{opacity:0}})))}n();var ta={initial:{pathLength:0},animate:{pathLength:1},transition:{delay:.5,duration:1}};function na(n){var r=n.isMobile,c=n.isTablet;return r?e.createElement(e.Fragment,null,e.createElement(t.motion.div,{className:"hero__line",animate:{left:"75%",bottom:"30%",transform:"rotate(10deg)"},initial:!1},e.createElement("svg",{width:"140",height:"2",viewBox:"0 0 140 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(t.motion.path,a({d:"M0 1H140"},ta)))),e.createElement(t.motion.div,{className:"hero__line",animate:{left:"75%",bottom:"30%",transform:"rotate(-15deg)"},initial:!1},e.createElement("svg",{width:"140",height:"2",viewBox:"0 0 140 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(t.motion.path,a({d:"M0 1H140"},ta))))):c?e.createElement(e.Fragment,null,e.createElement(t.motion.div,{className:"hero__line",animate:{left:"calc(30% + 1px)",top:"calc(60% - 3px)",transform:"rotate(161deg)"},initial:!1},e.createElement("svg",{width:"120",height:"2",viewBox:"0 0 120 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(t.motion.path,a({d:"M0 1H140"},ta)))),e.createElement(t.motion.div,{className:"hero__line",animate:{left:"30%",top:"calc(60% - 1px)",transform:"rotate(26deg)"},initial:!1},e.createElement("svg",{width:"120",height:"2",viewBox:"0 0 120 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(t.motion.path,a({d:"M0 1H140"},ta))))):e.createElement(e.Fragment,null,e.createElement(t.motion.div,{className:"hero__line",animate:{left:"10%",top:"calc(65% - 3px)",transform:"rotate(118deg)"},initial:!1},e.createElement("svg",{width:"140",height:"2",viewBox:"0 0 140 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(t.motion.path,a({d:"M0 1H140"},ta)))),e.createElement(t.motion.div,{className:"hero__line",animate:{left:"10%",top:"calc(65% - 3px)",transform:"rotate(41deg)"},initial:!1},e.createElement("svg",{width:"140",height:"2",viewBox:"0 0 140 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(t.motion.path,a({d:"M0 1H140"},ta)))))}n();var aa=function(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.inverse,c=void 0!==r&&r,i=t.fieldName,o=t.selectOptions,s=t.defaultValue,d=void 0===s?"all":s,u=t.hiddenLabel,h=void 0!==u&&u,p=t.customLabel,v=t.title,f=t.onChange,g=t.value;return e.createElement("div",{className:l("form-select",a&&"theme-".concat(a),c&&"theme-".concat(a,"--inverse"))},p?e.createElement("label",{htmlFor:i,className:l("form-select__label",h&&"sr-only")},p):e.createElement("label",{htmlFor:i,className:l("form-select__label",h&&"sr-only")},"Select ",i),e.createElement("div",{className:"form-select__select-wrapper"},e.createElement("select",{className:"form-select__select",defaultValue:d,value:g,id:i,name:i,onChange:f},e.createElement("option",{value:"all"},v),o&&o.map(function(t,n){return e.createElement("option",{value:t.value,key:n},t.label)})),e.createElement("div",{className:"form-select__icon"},e.createElement(m,{icon:"arrow-down",theme:a,inverse:c}))))};function ra(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.inverse,c=void 0!==r&&r,i=t.title,o=t.description,s=t.defaultSearchTerm,m=t.placeholder,d=t.filterTitle,u=t.filterFieldName,p=t.filterOptions,v=t.defaultFilter,f=void 0===v?"all":v,E=t.wrapped,_=void 0!==E&&E,b=t.fullWidth,w=void 0!==b&&b,C=t.onGrid,y=void 0!==C&&C,N=t.titleTag,k=void 0===N?"h2":N,x=t.formSubmitHandler,L=t.filterChangeHandler,T=t.searchTermChangeHandler,M=k;return e.createElement("div",{className:l("search-course",w&&"search-course--full-width",y&&"search-course--on-grid",_&&"search-course--wrapped",a&&"theme-".concat(a),c&&"theme-".concat(a,"--inverse"),!u&&"search-course--no-filter")},e.createElement("div",{className:"search-course__container"},i&&e.createElement(M,{className:"search-course__title"},i),o&&e.createElement("div",{className:"search-course__description"},e.createElement(g,{text:o,theme:a,inverse:c})),e.createElement("form",{className:"search-course__form",method:"post",onSubmit:x},e.createElement("div",{className:"search-course__search-wrapper"},e.createElement(Gn,{theme:a,inverse:c,fieldName:"search",hiddenLabel:!0,defaultValue:s,placeholder:m,onChange:T}),e.createElement(ye,{theme:a,inverse:!c,title:"Search",icon:"search",isSubmit:!0}),_&&e.createElement(h,{theme:a,inverse:!c,label:"Search",isSubmit:!0})),u&&d&&p&&e.createElement(aa,{theme:a,inverse:c,title:d,fieldName:u,selectOptions:p,defaultValue:f,hiddenLabel:!0,onChange:L}),!_&&e.createElement(h,{theme:a,inverse:!c,label:"Search",isSubmit:!0}))))}function ca(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.inverse,c=t.label,i=t.icons;return e.createElement("div",{className:l("share-buttons",a&&"theme-".concat(a),r&&"theme-".concat(a,"--inverse"))},c&&e.createElement("div",{className:"share-buttons__label"},c),i&&e.createElement("ul",{className:"share-buttons__icon-wrapper"},i.map(function(t,n){return e.createElement("li",{className:"share-buttons__icon",key:n},e.createElement(ye,{theme:a,title:t.title,icon:t.icon,url:t.url,inverse:r}))})))}function la(t){var n="items"in t?t.items:[t],a=(null!=n?n:[]).filter(function(e){return Boolean(e)});return e.createElement(e.Fragment,null,a.map(function(t,n){var r=t.theme,c=void 0===r?"uobmain":r,i=t.inverse,o=void 0!==i&&i,s=t.label,m=t.url,d=t.externalLink;return e.createElement(e.Fragment,{key:"".concat(m,"-").concat(s,"-").concat(n)},e.createElement("a",{className:l("paragraph-link",c&&"theme-".concat(c),o&&"theme-".concat(c,"--inverse")),href:m,target:d?"_blank":"_self",rel:"noreferrer"},s),n<a.length-1?" ":null)}))}function ia(t){var n=t.theme,a=t.inverse,r=t.buttonLabel,c=t.hollow,i=t.modalChildren,o=e.useState(!1),s=o[0],m=o[1],d=function(){m(!1),document.body.classList.remove("lock-scroll")};return e.createElement("div",{className:l("modal-cta-button",n&&"theme-".concat(n),a&&"theme-".concat(n,"--inverse"))},e.createElement(h,{inverse:a,label:r,onClick:function(){s?d():(m(!0),document.body.classList.add("lock-scroll"))},theme:n,hollow:c}),s&&e.createElement(ke,{centred:!0,theme:n,closeModal:d,isOpen:s},e.createElement(je,{className:"modal-cta-button__embed-wrapper"},i)))}function oa(t){var n=t.title,r=t.value,c=t.link;return e.createElement("article",{className:"course-tile"},e.createElement("div",{className:"course-tile__top"},e.createElement("div",{className:"course-tile__title"},n),e.createElement("div",{className:"course-tile__value"},r)),c&&e.createElement("div",{className:"course-tile__link-wrapper"},e.createElement(ht,a({},c,{inverse:!0,onClick:function(e){return pt(e,c.url||"#")}}))))}function sa(t){var n=t.title,r=t.selectProps;return e.createElement("article",{className:"course-tile-select"},e.createElement("div",{className:"course-tile-select__top"},e.createElement("div",{className:"course-tile-select__title"},n),e.createElement(aa,a({},r,{inverse:!0}))))}function ma(t){var n=t.title,r=t.rank,c=t.rankText,l=t.link;return e.createElement("article",{className:"course-tile-ranking"},e.createElement("div",{className:"course-tile-ranking__top"},e.createElement("div",{className:"course-tile-ranking__title"},n),e.createElement("div",{className:"course-tile-ranking__rank"},r),e.createElement("div",{className:"course-tile-ranking__rank-text"},c)),l&&e.createElement("div",{className:"course-tile-ranking__link-wrapper"},e.createElement(ht,a({},l,{inverse:!0,onClick:function(e){return pt(e,l.url||"#")}}))))}function da(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.inverse,i=void 0===c||c,o=t.topPadding,s=void 0!==o&&o,m=t.selectorProps;return e.createElement("div",{className:l("location-selector",r&&"theme-".concat(r),i&&"theme-".concat(r,"--inverse"))},e.createElement("div",{className:l("location-selector__container",s&&"location-selector__container--padding-top")},e.createElement(aa,a({},m,{inverse:i}))))}n(),n(),n(),n(),n(),n(),n();var ua={first:{clipPath:"polygon(0 0, 95% 0, 75% 100%, 0 80%)"},second:{clipPath:"polygon(0 0, 100% 0, 75% 70%, 0 90%)"},third:{clipPath:"polygon(0 0, 80% 0, 95% 90%, 0 80%)"},visible:{opacity:1}},ha={first:{clipPath:"polygon(0 0, calc(95% - 1px) 0, calc(75% - 1px) calc(100% - 1px), 0 calc(80% - 1px))"},second:{clipPath:"polygon(0 0, calc(100% - 1px) 0, calc(75% - 1px) calc(70% - 1px), 0 calc(90% - 1px))"},third:{clipPath:"polygon(0 0, calc(80% - 1px) 0, calc(95% - 1px) calc(90% - 1px), 0 calc(80% - 1px))"}},pa={first:{clipPath:"polygon(0 25%, 100% 5%, 100% 100%, 23% 100%)"},second:{clipPath:"polygon(33% 20%, 100% 5%, 100% 100%, 0 100%)"},third:{clipPath:"polygon(0 3%, 100% 20%, 100% 100%, 23% 100%)"},visible:{opacity:1}},va={first:{clipPath:"polygon(1px calc(25% + 1px), 100% calc(5% + 1px), 100% 100%, calc(23% + 1px) 100%)"},second:{clipPath:"polygon(calc(33% + 1px) calc(20% + 1px), 100% calc(5% + 1px), 100% 100%, 1px 100%)"},third:{clipPath:"polygon(1px calc(3% + 1px), 100% calc(20% + 1px), 100% 100%, calc(23% + 1px) 100%"}},fa={first:{clipPath:"polygon(0 33%, 100% 10%, 100% 100%, 23% 100%)"},second:{clipPath:"polygon(33% 30%, 100% 10%, 100% 100%, 0 100%)"},third:{clipPath:"polygon(0 10%, 100% 25%, 100% 100%, 15% 100%)"},visible:{opacity:1}},ga={first:{clipPath:"polygon(1px calc(33% + 1px), 100% calc(10% + 1px), 100% 100%, calc(23% + 1px) 100%)"},second:{clipPath:"polygon(calc(33% + 1px) calc(30% + 1px), 100% calc(10% + 1px), 100% 100%, 1px 100%)"},third:{clipPath:"polygon(1px calc(10% + 1px), 100% calc(25% + 1px), 100% 100%, calc(15% + 1px) 100%"}},Ea={first:{left:"calc(75% + 1px)",bottom:0,transform:"rotate(-40deg)"},second:{left:"75%",bottom:"30%",transform:"rotate(-15deg)"},third:{left:"95%",bottom:"10%",transform:"rotate(-70deg)"}},_a={first:{left:"calc(75% + 1px)",bottom:0,transform:"rotate(-15deg)"},second:{left:"75%",bottom:"30%",transform:"rotate(10deg)"},third:{left:"95%",bottom:"10%",transform:"rotate(-30deg)"}},ba={first:{left:"2px",top:"calc(25% - 1px)",transform:"rotate(-130deg)"},second:{left:"calc(33% + 2px)",top:"calc(20% - 1px)",transform:"rotate(-155deg)"},third:{left:"0",top:"calc(3% - 3px)",transform:"rotate(-170deg)"}},wa={first:{left:"2px",top:"calc(25% - 1px)",transform:"rotate(-50deg)"},second:{left:"calc(33% + 2px)",top:"calc(20% - 1px)",transform:"rotate(-110deg)"},third:{left:"1px",top:"calc(3% - 1px)",transform:"rotate(-10deg)"}},Ca={first:{left:"2px",top:"calc(33% - 1px)",transform:"rotate(-130deg)"},second:{left:"calc(33% + 1px)",top:"calc(30% - 2px)",transform:"rotate(-160deg)"},third:{left:"1px",top:"calc(10% - 2px)",transform:"rotate(-160deg)"}},ya={first:{left:"2px",top:"calc(33% - 1px)",transform:"rotate(-45deg)"},second:{left:"calc(33% + 1px)",top:"calc(30% - 2px)",transform:"rotate(-75deg)"},third:{left:"0",top:"calc(10%)",transform:"rotate(-15deg)"}},Na={initial:{pathLength:0},animate:{pathLength:1},transition:{delay:.5,duration:1}};function ka(n){var r=n.isMobile,c=n.isTablet,l=n.activeVariant;return r?e.createElement(e.Fragment,null,e.createElement(t.motion.div,{className:"hero-carousel__line",variants:Ea,animate:l,initial:!1},e.createElement("svg",{width:"140",height:"2",viewBox:"0 0 140 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(t.motion.path,a({d:"M0 1H140",stroke:"black"},Na)))),e.createElement(t.motion.div,{className:"hero-carousel__line",variants:_a,animate:l,initial:!1},e.createElement("svg",{width:"140",height:"2",viewBox:"0 0 140 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(t.motion.path,a({d:"M0 1H140",stroke:"black"},Na))))):c?e.createElement(e.Fragment,null,e.createElement(t.motion.div,{className:"hero-carousel__line",variants:ba,animate:l,initial:!1},e.createElement("svg",{width:"260",height:"2",viewBox:"0 0 260 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(t.motion.path,a({d:"M0 1H260",stroke:"black"},Na)))),e.createElement(t.motion.div,{className:"hero-carousel__line",variants:wa,animate:l,initial:!1},e.createElement("svg",{width:"260",height:"2",viewBox:"0 0 260 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(t.motion.path,a({d:"M0 1H260",stroke:"black"},Na))))):e.createElement(e.Fragment,null,e.createElement(t.motion.div,{className:"hero-carousel__line",variants:Ca,animate:l,initial:!1},e.createElement("svg",{width:"360",height:"2",viewBox:"0 0 360 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(t.motion.path,a({d:"M0 1H360",stroke:"black"},Na)))),e.createElement(t.motion.div,{className:"hero-carousel__line",variants:ya,animate:l,initial:!1},e.createElement("svg",{width:"360",height:"2",viewBox:"0 0 360 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(t.motion.path,a({d:"M0 1H360",stroke:"black"},Na)))))}function xa(n){var a,r,c=n.isMobile,l=n.isTablet,i=n.activeVariant,o=n.imageSrc,s=n.imageAlt,m=n.imageFetchPriority,d=e.useRef(null),u=e.useId();return e.useEffect(function(){d.current&&d.current.setAttribute("fetchpriority",null!=m?m:"high")}),e.createElement(e.Fragment,null,e.createElement(t.AnimatePresence,null,e.createElement(t.motion.div,{className:"hero-carousel__image-wrapper",transition:{delayChildren:1}},e.createElement(t.motion.img,{ref:d,className:"hero-carousel__image",src:null==o?void 0:o.default,srcSet:"".concat(null!==(a=null==o?void 0:o.small)&&void 0!==a?a:null==o?void 0:o.default," 576w, ").concat(null!==(r=null==o?void 0:o.medium)&&void 0!==r?r:null==o?void 0:o.default," 992w, ").concat(null==o?void 0:o.default," 1440w"),alt:s,variants:c?ha:l?va:ga,animate:i,initial:{clipPath:"polygon(0 0, 0 0, 0 0, 0 0)"},transition:{type:"tween"}}),e.createElement(t.motion.div,{key:u,className:"hero-carousel__image-background",variants:c?ua:l?pa:fa,animate:["visible",i],exit:{backgroundColor:"rgba(255, 255, 255, 0)"},transition:{type:"tween"},initial:{opacity:0,clipPath:"polygon(1% 1%, 1% 1%, 1% 1%, 1% 1%)"}}))))}var La=e.forwardRef(function(t,n){var a=t.theme,r=t.category,c=t.title,l=t.description,i=t.linkUrl,o=t.linkLabel,s=t.onKeyDown;return e.createElement(e.Fragment,null,e.createElement("p",{className:"hero-carousel__category"},r),e.createElement("h2",{className:"hero-carousel__title"},c),e.createElement("p",{className:"hero-carousel__description"},l),e.createElement("div",{className:"hero-carousel__cta"},e.createElement(p,{url:i,title:o,theme:a,inverse:!0,onKeyDown:s,ref:n})))});function Ta(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.heading,i=void 0===c?"Page contents":c,o=t.links,s=t.buttonLinks,m=t.locationDetails,d=function(e){var t=document.getElementById(e);if(t){var n=t.getBoundingClientRect().top+window.pageYOffset-20;window.scrollTo({top:n,behavior:"smooth"});var a=null,r=null,c=0,l=function(){a&&(a.disconnect(),a=null),r&&(r.disconnect(),r=null),c&&(clearTimeout(c),c=0)},i=function(e){return!!e&&(a=new IntersectionObserver(function(t){t.some(function(e){return e.isIntersecting})&&function(e){try{e.focus({preventScroll:!0})}catch(e){}finally{l()}}(e)},{root:null,threshold:.1,rootMargin:"0px 0px -20% 0px"}),a.observe(e),!0)},o=t.querySelector("h1,h2,h3,h4,h5,h6");i(o)||(r=new MutationObserver(function(){o=t.querySelector("h1,h2,h3,h4,h5,h6"),i(o)&&r&&(r.disconnect(),r=null)})).observe(t,{childList:!0,subtree:!0}),c=window.setTimeout(function(){l();var e=t.querySelector('a, button, input, select, textarea, [tabindex]:not([tabindex="-1"])');if(e){var n=!e.hasAttribute("tabindex");n&&e.setAttribute("tabindex","-1"),e.focus({preventScroll:!0}),n&&e.removeAttribute("tabindex")}},1e3)}},u=function(e,t){e.preventDefault(),d(t.replace("#",""))};return e.createElement("div",{className:l("in-page-navigation-links",r&&"theme-".concat(r))},e.createElement("h2",{className:"in-page-navigation-links__heading"},i),m&&e.createElement(da,a({},m,{inverse:!0})),e.createElement("nav",null,e.createElement("ul",{className:"in-page-navigation-links__link-container"},o.map(function(t){return e.createElement("li",{className:l("in-page-navigation-links__link-wrapper",t.active&&"in-page-navigation-links__link-wrapper--active"),key:t.url},e.createElement("a",{className:"in-page-navigation-links__link",href:t.url,onClick:function(e){return u(e,t.url)},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||u(e,t.url)}},t.title))}))),e.createElement("ul",null,s&&s.map(function(t,n){return t.externalLink?e.createElement("li",{className:"in-page-navigation-links__link-button",key:n},e.createElement(xe,{theme:r,label:t.label,icon:"external",hollow:n%2!=0,iconPosition:"right",url:t.url,onClick:t.onClick})):e.createElement("li",{className:"in-page-navigation-links__link-button",key:n},e.createElement(h,{theme:r,label:t.label,hollow:n%2!=0,url:t.url,onClick:t.onClick}))})))}function Ma(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.heading,c=t.cards,i=t.link;return e.createElement("div",{className:l("most-read-news",a&&"theme-".concat(a))},e.createElement("h2",{className:"most-read-news__title"},r),e.createElement("ul",{className:"most-read-news__card-container"},c.map(function(t,n){return e.createElement("li",{className:"most-read-news__card",key:n},e.createElement(qe,{theme:a,title:t.title,href:t.href,titleTag:"h3",publishDate:t.publishDate}))})),i&&e.createElement(p,{theme:a,inverse:!0,url:i.url,title:i.title}))}function Sa(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.type,l=t.image,i=t.title,o=t.url,s=t.description,m=t.details,d=t.showCategory,u=void 0!==d&&d;return e.createElement(e.Fragment,null,l&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(w,a({},l))),e.createElement("div",{className:"listing-result-card__text"},u&&e.createElement("p",{className:"listing-result-card__category"},c),e.createElement("h2",null,e.createElement("a",{className:"listing-result-card__title",href:o},i)),s&&e.createElement("p",{className:"listing-result-card__description"},s),(null==m?void 0:m.length)>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(Ie,{details:m,theme:r}))))}function Ha(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.type,l=t.image,i=t.title,o=t.titleTag,s=void 0===o?"h2":o,m=t.url,d=t.description,u=t.supervisors,h=t.department,p=t.details,v=t.showCategory,g=void 0!==v&&v;return e.createElement(e.Fragment,null,l&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(w,a({},l))),e.createElement("div",{className:"listing-result-card__text"},g&&e.createElement("p",{className:"listing-result-card__category"},c),e.createElement(f,{htmlTag:"h3"===s?"h3":"h2"},e.createElement("a",{className:"listing-result-card__title",href:m},i)),(u||h)&&e.createElement("div",{className:"listing-result-card__course-info"},u&&e.createElement("p",{className:"listing-result-card__supervisors"},"Supervisors: ",u),h&&e.createElement("p",{className:"listing-result-card__department"},h)),d&&e.createElement("p",{className:"listing-result-card__description"},d),(null==p?void 0:p.length)>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(Ie,{details:p,theme:r}))))}function Pa(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.inverse,l=void 0===c||c,i=t.type,o=t.image,s=t.title,m=t.url,d=t.description,u=t.details,h=t.showCategory,p=void 0!==h&&h,v=t.cardDescriptionIsRichText,E=void 0!==v&&v,_=t.titleTag,b=void 0===_?"h2":_,C=t.eventStatus,y=void 0===C?void 0:C;return e.createElement(e.Fragment,null,o&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(w,a({},o)),y&&e.createElement("div",{className:"listing-result-card__event-graphic"},e.createElement(Te,{theme:"uobmain",status:y,day:void 0,month:void 0}))),e.createElement("div",{className:"listing-result-card__text"},p&&e.createElement("p",{className:"listing-result-card__category"},i),e.createElement(f,{htmlTag:b},e.createElement("a",{className:"listing-result-card__title",href:m},s)),d&&!E&&e.createElement("p",{className:"listing-result-card__description"},d),d&&E&&e.createElement(g,{theme:r,inverse:l,text:d}),(null==u?void 0:u.length)>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(Ie,{details:u,theme:r}))))}function Va(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.type,l=t.image,i=t.title,o=t.url,s=t.description,m=t.author,d=t.details,u=t.showCategory,h=void 0!==u&&u,p=Array.isArray(m)?m:[m];return e.createElement(e.Fragment,null,l&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(w,a({},l))),e.createElement("div",{className:"listing-result-card__text"},h&&e.createElement("p",{className:"listing-result-card__category"},c),e.createElement("h2",null,e.createElement("a",{className:"listing-result-card__title",href:o},i)),m&&e.createElement("p",{className:"listing-result-card__author"},"by ",e.createElement(la,{items:p})),s&&e.createElement("p",{className:"listing-result-card__description"},s),(null==d?void 0:d.length)>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(Ie,{details:d,theme:r}))))}function Oa(t){var n=t.image,r=t.title,c=t.url,l=t.description;return e.createElement(e.Fragment,null,n&&e.createElement("div",{className:"listing-result-card__image"},n&&e.createElement(w,a({},n))),e.createElement("div",{className:"listing-result-card__text"},e.createElement("h2",null,e.createElement("a",{className:"listing-result-card__title",href:c},r)),l&&e.createElement("p",{className:"listing-result-card__description"},l)))}function Za(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.type,l=t.image,i=t.title,o=t.url,s=t.description,m=t.jobTitle,d=t.department,u=t.details,h=t.showCategory,p=void 0!==h&&h;return e.createElement(e.Fragment,null,l&&e.createElement("div",{className:"listing-result-card__image"},l&&e.createElement(w,a({},l))),e.createElement("div",{className:"listing-result-card__text"},p&&e.createElement("p",{className:"listing-result-card__category"},c),e.createElement("h2",null,e.createElement("a",{className:"listing-result-card__title",href:o},i)),(m||d)&&e.createElement("div",{className:"listing-result-card__staff-info"},m&&e.createElement("p",{className:"listing-result-card__job-title"},m),d&&e.createElement("p",{className:"listing-result-card__department"},d)),s&&e.createElement("p",{className:"listing-result-card__description"},s),(null==u?void 0:u.length)>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(Ie,{details:u,theme:r}))))}function qa(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.image,l=t.title,i=t.url,o=t.description,s=t.jobTitle,m=t.department,d=t.details;return e.createElement(e.Fragment,null,c&&e.createElement("div",{className:"listing-result-card__image"},c&&e.createElement(w,a({},c))),e.createElement("div",{className:"listing-result-card__text"},e.createElement("h2",null,e.createElement("a",{className:"listing-result-card__title",href:i},l)),(s||m)&&e.createElement("div",{className:"listing-result-card__staff-info"},s&&e.createElement("p",{className:"listing-result-card__job-title"},s),m&&e.createElement("p",{className:"listing-result-card__department"},m)),o&&e.createElement("p",{className:"listing-result-card__description"},o.length>120?"".concat(o.slice(0,120),"..."):o),(null==d?void 0:d.length)>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(Ie,{details:d,theme:r}))))}function Ba(t){return e.createElement("article",{className:l("listing-result-card",t.theme&&"theme-".concat(t.theme))},"page"===t.type&&e.createElement(Oa,a({},t)),"course"===t.type&&e.createElement(Ha,a({},t)),"accomodation"===t.type&&e.createElement(Sa,a({},t)),"event"===t.type&&e.createElement(Pa,a({},t)),"news"===t.type&&e.createElement(Va,a({},t)),"staff"===t.type&&e.createElement(Za,a({},t)),"profile"===t.type&&e.createElement(qa,a({},t)))}function Fa(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.numOfPages,c=t.onClick,i=t.currentPage,o=ve("768px"),s=e.createElement("li",null,e.createElement("span",{className:"pagination__ellipse"},"..."));return o&&r<=4?e.createElement(e.Fragment,null,Array(r).fill(0).map(function(t,n){return e.createElement("li",{className:l("pagination__number",i===n&&"pagination__number--selected"),key:n},e.createElement(h,{label:(n+1).toString(),onClick:function(){return c(n)},hollow:!(i===n),theme:a}))})):o&&r>4?e.createElement(e.Fragment,null,i>0&&e.createElement("li",{key:0,className:"pagination__number"},e.createElement(h,{label:"1",onClick:function(){return c(0)},theme:a,hollow:!0})),i+1>=3&&s,e.createElement("li",{key:i,className:"pagination__number pagination__number--selected"},e.createElement(h,{label:"".concat(i+1," "),onClick:function(){return c(i)},theme:a})),i+1<r-1&&s,i!==r-1&&e.createElement("li",{key:r-1,className:"pagination__number"},e.createElement(h,{label:r.toString(),onClick:function(){return c(r-1)},theme:a,hollow:!0}))):!o&&r<=6?e.createElement(e.Fragment,null,Array(r).fill(0).map(function(t,n){return e.createElement("li",{key:n,className:l("pagination__number",i===n&&"pagination__number--selected","test")},e.createElement(h,{label:(n+1).toString(),onClick:function(){return c(n)},hollow:!(i===n),theme:a}))})):!o&&r>6?e.createElement(e.Fragment,null,i>0&&e.createElement("li",{key:0,className:"pagination__number start"},e.createElement(h,{label:"1",onClick:function(){return c(0)},theme:a,hollow:!0})),i+1>=4&&s,i>1&&e.createElement("li",{key:i-1,className:"pagination__number before"},e.createElement(h,{label:(i>=1?i:i-1).toString(),onClick:function(){return c(i-1)},theme:a,hollow:!0})),e.createElement("li",{key:i,className:"pagination__number pagination__number--selected current"},e.createElement(h,{label:"".concat(i+1),onClick:function(){return c(i)},theme:a})),i+1<r-1&&e.createElement("li",{key:i+1,className:"pagination__number after"},e.createElement(h,{label:"".concat(i+2),onClick:function(){return c(i+1)},theme:a,hollow:!0})),i+1<r-2&&s,i+1!==r&&e.createElement("li",{key:r-1,className:"pagination__number end"},e.createElement(h,{label:"".concat(r),onClick:function(){return c(r-1)},theme:a,hollow:!0}))):e.createElement(e.Fragment,null)}function Da(e,t){return o("".concat(null!=e?e:""," ").concat(t))}function Ia(t){var n=t.children,a=t.theme,r=void 0===a?"uobmain":a,c=t.inverse,i=void 0!==c&&c;return e.createElement("div",{className:l("tabs__list__container",r&&"theme-".concat(r),i&&"theme-".concat(r,"--inverse"))},e.createElement("ul",{className:"tabs__list",role:"tablist"},n))}function Aa(t){var n=t.title,a=t.htmlTag,r=void 0===a?"h3":a,c=t.theme,i=void 0===c?"uobmain":c,o=t.inverse,s=void 0!==o&&o,m=t.isActive,d=t.children,u=t.tabsBlockName;if(!m)return null;var h=Da(null!=u?u:"",n);return e.createElement("div",{id:u,className:l("tabs__panel",i&&"theme-".concat(i),s&&"theme-".concat(i,"--inverse")),role:"tabpanel","aria-labelledby":"tab_"+h},e.createElement(f,{htmlTag:r,classNames:"tabs__panel-title"},n),d)}function Ra(t){var n=t.id,a=t.theme,r=void 0===a?"uobmain":a,c=t.inverse,i=void 0!==c&&c,o=t.tabItem,s=t.isActive,m=t.hasFocus,d=t.tabsBlockName,u=t.handleClick,h=t.handleKeyboardNavigation,p=e.useRef(null);e.useEffect(function(){s&&m&&p.current&&(p.current.focus(),window.matchMedia("min-width: 768px").matches&&p.current.scrollIntoView())});var v=Da(null!=d?d:"",o.title);return e.createElement("li",{className:"tabs__list-item",role:"presentation"},e.createElement("button",{className:l("tabs__tab",r&&"theme-".concat(r),i&&"theme-".concat(r,"--inverse"),s&&"active"),onClick:function(e){return u(e,n)},onKeyDown:h,ref:p,id:"tab_"+v,role:"tab","aria-controls":v,"aria-selected":s?"true":"false",tabIndex:s?0:-1,type:"button"},o.title))}function $a(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.label,c=t.url,i=t.externalLink;return e.createElement("a",{className:l("pill",a&&"theme-".concat(a)),href:c,target:i?"_blank":"_self",rel:i?"noopener noreferrer":""},r)}La.displayName="HeroCardContent",n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n();var ja,za={exports:{}};var Wa,Ua=(ja||(ja=1,Wa=za,function(e,t){Wa.exports=t()}(0,function(){var e=[],t=[],n={},a={},r={};function c(e){return"string"==typeof e?new RegExp("^"+e+"$","i"):e}function l(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function i(e,t){return e.replace(t[0],function(n,a){var r,c,i=(r=t[1],c=arguments,r.replace(/\$(\d{1,2})/g,function(e,t){return c[t]||""}));return l(""===n?e[a-1]:n,i)})}function o(e,t,a){if(!e.length||n.hasOwnProperty(e))return t;for(var r=a.length;r--;){var c=a[r];if(c[0].test(t))return i(t,c)}return t}function s(e,t,n){return function(a){var r=a.toLowerCase();return t.hasOwnProperty(r)?l(a,r):e.hasOwnProperty(r)?l(a,e[r]):o(r,a,n)}}function m(e,t,n,a){return function(a){var r=a.toLowerCase();return!!t.hasOwnProperty(r)||!e.hasOwnProperty(r)&&o(r,r,n)===r}}function d(e,t,n){return(n?t+" ":"")+(1===t?d.singular(e):d.plural(e))}return d.plural=s(r,a,e),d.isPlural=m(r,a,e),d.singular=s(a,r,t),d.isSingular=m(a,r,t),d.addPluralRule=function(t,n){e.push([c(t),n])},d.addSingularRule=function(e,n){t.push([c(e),n])},d.addUncountableRule=function(e){"string"!=typeof e?(d.addPluralRule(e,"$0"),d.addSingularRule(e,"$0")):n[e.toLowerCase()]=!0},d.addIrregularRule=function(e,t){t=t.toLowerCase(),e=e.toLowerCase(),r[e]=t,a[t]=e},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(e){return d.addIrregularRule(e[0],e[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(e){return d.addPluralRule(e[0],e[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(e){return d.addSingularRule(e[0],e[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(d.addUncountableRule),d})),za.exports),Ga=bt(Ua);function Ka(t){var n=t.theme,r=t.heading,c=t.selectContent,i=t.defaultIsOpen,o=void 0!==i&&i;c&&(o=!!c.defaultValue||o);var s=e.useState(o),d=s[0],u=s[1];return e.createElement("fieldset",{className:l("filter-accordion-select",d&&"filter-accordion-select--open",n&&"theme-".concat(n))},e.createElement("legend",{className:"filter-accordion-select__legend"},e.createElement("button",{className:"filter-accordion-select__button",onClick:function(){return u(function(e){return!e})},"aria-expanded":d,"aria-controls":r.replace(" ","")},r,e.createElement(m,{icon:"chevron-down",theme:n,inverse:!0,ariaHidden:!0}))),d&&e.createElement("div",{className:"filter-accordion-select__select-wrapper"},e.createElement(aa,a({theme:n,inverse:!0},c))))}function Ya(t){var n=t.theme,a=t.name,r=t.id,c=t.label,i=t.defaultValue,o=t.onChange;return e.createElement("div",{className:l("date-input",n&&"theme-".concat(n))},e.createElement("label",{htmlFor:r,className:"date-input__label"},c),e.createElement("input",{type:"date",className:"date-input__input",defaultValue:i,onChange:o,name:a,id:r}))}n(),n(),n();var Ja,Qa=function(e){var t=e.split(" "),n=t[t.length-1];return t[t.length-1]=Ga(n),t.join(" ")};function Xa(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.imageSrc,c=t.onClick;return e.createElement("div",{className:l("video-placeholder",a&&"theme-".concat(a))},r&&e.createElement(w,{src:r,altText:""}),e.createElement("button",{className:"video-placeholder__button",onClick:c},e.createElement("div",{className:"video-placeholder__svg-wrapper"},e.createElement("svg",{width:"11",height:"14",viewBox:"0 0 11 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},e.createElement("path",{d:"M0 0V14L11 7L0 0Z",fill:"currentColor"}))),e.createElement("span",{className:"sr-only"},"Watch the video")))}function er(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.imageSrc,c=t.videoUrl,i=t.videoId,o=e.useState(!1),s=o[0],m=o[1];return e.createElement("div",{className:l("video-with-placeholder",a&&"theme-".concat(a))},s?e.createElement(Ce,{url:c,id:i,autoPlay:!0,theme:a}):e.createElement(Xa,{imageSrc:r,onClick:function(){return m(!0)},theme:a}))}function tr(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.inverse,c=void 0!==r&&r,i=t.url,o=t.title,s=t.externalLink,m=void 0!==s&&s,d=t.mobileTitle;return e.createElement("a",{className:l("back-link",a&&"theme-".concat(a),c&&"theme-".concat(a,"--inverse")),href:i,target:m?"_blank":"_self",rel:m?"noopener noreferrer":""},d?e.createElement(e.Fragment,null,e.createElement("span",{className:"back-link__title back-link__title--mobile"},d),e.createElement("span",{className:"back-link__title back-link__title--desktop"},o)):e.createElement("span",{className:"back-link__title"},o))}n(),n(),n(),n(),n(),n(),function(e){e.NotSpecified="NotSpecified",e.ColumnAndRowHeadings="ColumnAndRowHeadings",e.ColumnHeadingsOnly="ColumnHeadingsOnly"}(Ja||(Ja={})),n(),n(),n(),n(),n(),n(),n(),n(),n();exports.Accordion=b,exports.AcreditationPromotion=function(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.heading,i=t.intro,o=t.accreditations,m=t.htmlTag,d=void 0===m?"h2":m,u=t.fullWidth,h=void 0!==u&&u;return e.createElement("section",{className:l("accreditation-promotion",r&&"theme-".concat(r),h&&"accreditation-promotion--full-width")},e.createElement("div",{className:"accreditation-promotion__container"},c&&e.createElement(f,{classNames:"accreditation-promotion__heading",htmlTag:d},c),i&&e.createElement("p",{className:"accreditation-promotion__intro"},i),e.createElement("ul",null,o.map(function(t,n){return e.createElement("li",{className:l("accreditation-promotion__accreditation",n%2==0?"accreditation-promotion__accreditation--right":"accreditation-promotion__accreditation--left"),key:n},t.image&&e.createElement("div",{className:"accreditation-promotion__image-wrapper"},e.createElement(w,a({},t.image))),e.createElement(s,{theme:r,text:t.text,inverse:!0,fullWidth:!0}))}))))},exports.AlertBanner=function(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.inverse,c=void 0!==r&&r,i=t.type,o=t.richText,d=e.useState(!0),u=d[0],h=d[1];return e.useEffect(function(){try{window.sessionStorage.getItem("alertBannerIsHidden")&&h(!window.sessionStorage.getItem("alertBannerIsHidden"))}catch(e){console.error(e)}},[]),e.createElement(e.Fragment,null,u&&e.createElement("div",{className:l("alert-banner",a&&"theme-".concat(a),c&&"theme-".concat(a,"--inverse"))},e.createElement("div",{className:"alert-banner__container"},e.createElement("div",{className:"alert-banner__left-wrapper"},e.createElement("div",{className:"alert-banner__status-icon"},"warning"===i&&e.createElement(m,{theme:a,icon:c?"warning-light":"warning-dark",inverse:c}),"success"===i&&e.createElement(m,{theme:a,icon:"success",inverse:c}),"information"===i&&e.createElement(m,{theme:a,icon:"information",inverse:c})),e.createElement(s,{theme:a,text:o.text,inverse:c})),e.createElement(C,{theme:a,icon:"cross",inverse:c,title:"Hide alert banner",onClick:function(){return function(){h(!1);var e=JSON.stringify(u);window.sessionStorage.setItem("alertBannerIsHidden",e)}()}}))))},exports.AnchorTarget=function(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.inverse,c=void 0===r||r,i=t.includeDivider,o=void 0===i||i,s=t.targetLabel,m=t.landmarkLabel,d=t.children,u=e.useRef(null);return e.useEffect(function(){var e=u.current;if(e){var t=!1,n=e.querySelector("h1,h2,h3,h4,h5,h6"),a=function(e){return!!e&&(e.hasAttribute("tabindex")||(e.setAttribute("tabindex","-1"),t=!0),n=e,!0)};if(!a(n)){var r=new MutationObserver(function(){var t=e.querySelector("h1,h2,h3,h4,h5,h6");a(t)&&r.disconnect()});return r.observe(e,{childList:!0,subtree:!0}),function(){return r.disconnect()}}return function(){t&&n&&n.removeAttribute("tabindex")}}},[s]),e.createElement("div",{id:s,ref:u,role:m?"region":void 0,"aria-label":m||void 0,className:l("anchor-target",a&&"theme-".concat(a),c&&"theme-".concat(a,"--inverse"))},o&&e.createElement("hr",{className:"anchor-target__divider",role:"none"}),d)},exports.Breadcrumbs=function(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.inverse,i=void 0!==c&&c,o=t.links;return e.createElement("nav",{className:l("breadcrumbs",r&&"theme-".concat(r),i&&"theme-".concat(r,"--inverse"))},e.createElement("ol",{className:"breadcrumbs__list"},o.slice(0,-1).map(function(t){return e.createElement("li",{className:"breadcrumbs__link",key:t.title},e.createElement(m,{icon:"chevron-right",theme:r,ariaHidden:!0}),e.createElement(y,a({theme:r,inverse:i},t)))})))},exports.CTAComponent=function(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.inverse,i=t.highlight,o=void 0!==i&&i,s=t.image,m=t.heading,d=t.copy,u=t.primaryCTA,v=t.secondaryCTA,g=t.link,E=t.fullWidth,_=void 0!==E&&E,b=t.htmlTag,C=void 0===b?"h2":b,y=!o&&!!c;return e.createElement("div",{className:l("cta-component",r&&"theme-".concat(r),c&&"theme-".concat(r,"--inverse"),o&&"theme-".concat(r,"--highlight"),_&&"cta-component--full-width",s&&"cta-component--with-image")},e.createElement("div",{className:"cta-component__container"},e.createElement("div",{className:"cta-component__inner-wrapper"},e.createElement("div",{className:"cta-component__main-content"},s&&e.createElement("div",{className:"cta-component__image-wrapper"},e.createElement(w,a({},s))),e.createElement("div",{className:"cta-component__text-wrapper"},e.createElement(f,{htmlTag:C,classNames:"cta-component__heading"},m),d&&e.createElement("p",{className:"cta-component__copy"},d))),e.createElement("div",{className:"cta-component__button-wrapper"},u&&e.createElement(h,a({},u,{inverse:y})),v&&e.createElement(h,a({},v,{hollow:!0,inverse:y}))),g&&e.createElement(p,a({},g,{inverse:!y})))))},exports.CardImageAndText=function(t){var n=t.theme,r=t.inverse,c=t.image,i=t.title,o=t.titleTag,s=void 0===o?"h2":o,m=t.text;return e.createElement("div",{className:l("card-image-and-text",n&&"theme-".concat(n),r&&"theme-".concat(n,"--inverse"),!i&&"card-image-and-text__no-title")},c&&e.createElement("div",{className:"card-image-and-text__image"},e.createElement(w,a({},c))),e.createElement("div",{className:"card-image-and-text__text"},i&&e.createElement(f,{classNames:l("card-image-and-text__heading-padding","card-image-and-text__".concat(s)),htmlTag:s},i),m&&e.createElement(g,{theme:n,inverse:r,text:m})))},exports.CardProfile=function(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.inverse,i=void 0===c||c,o=t.image,s=t.name,m=t.courseTitle,d=t.href,u=t.copy,h=t.titleTag,p=void 0===h?"h3":h;return e.createElement("article",{className:l("card-profile",r&&"theme-".concat(r),i&&"theme-".concat(r,"--inverse"))},e.createElement("div",{className:"card-profile__container"},e.createElement("figure",{className:"card-profile__figure"},o&&e.createElement("div",{className:"card-profile__image-wrapper"},e.createElement(w,a({},o,{altText:"",loadingAttr:"lazy"}))),e.createElement("figcaption",null,e.createElement("a",{className:"card-profile__link",href:d},"h2"===p&&e.createElement("h2",{className:"card-profile__title"},s),"h3"===p&&e.createElement("h3",{className:"card-profile__title"},s)),m&&e.createElement("p",{className:"card-profile__course-title"},m),u&&e.createElement("p",{className:"card-profile__copy"}," ",u.length>120?"".concat(u.slice(0,120),"..."):u)))))},exports.CardPromoProfile=Ae,exports.CardPromoSignpost=Se,exports.CardStaff=Ve,exports.Carousel=$e,exports.CentreWrapper=function(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.children;return e.createElement("div",{className:l("centre-wrapper",a&&"theme-".concat(a))},e.createElement("div",{className:"centre-wrapper__grid-container"},e.createElement("div",{className:"centre-wrapper__children"},r)))},exports.ClearingBanner=function(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.text,c=t.showIcon,i=void 0===c||c,o=t.smallLink,s=t.mainLink;return e.createElement("div",{className:l("clearing-banner",a&&"theme-".concat(a))},e.createElement("div",{className:"clearing-banner__container"},e.createElement("div",{className:"clearing-banner__top-wrapper"},i&&e.createElement("div",{className:"clearing-banner__icon"},e.createElement(Pe,{theme:a,icon:"clearing-tick"})),e.createElement("div",null,e.createElement("span",null,r),o&&e.createElement("a",{className:"clearing-banner__small-link",href:o.url},o.label))),s&&e.createElement("div",{className:"clearing-banner__main-link"},e.createElement(xe,{theme:a,inverse:!1,label:s.label,url:s.url,icon:s.icon,iconPosition:s.iconPosition}))))},exports.CourseDeliveryPills=function(t){var n=t.pills,r=t.theme,c=void 0===r?"uobmain":r;return e.createElement("div",{className:l("course-delivery-pills",c&&c&&"theme-".concat(c))},n.map(function(t,n){return e.createElement(d,a({key:n},t,{theme:c}))}))},exports.EmbedWrapper=je,exports.FactBoxes=function(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.inverse,i=void 0!==c&&c,o=t.title,s=t.description,m=t.linkProps,d=t.cards,u=t.fullWidth,h=void 0!==u&&u,p=t.htmlTag,v=t.showCardColumn,f=void 0===v||v;return e.createElement("section",{className:l("fact-boxes",r&&"theme-".concat(r),i&&"theme-".concat(r,"--inverse"),h&&"fact-boxes--full-width",f&&3===d.length&&"fact-boxes--three-facts",f&&2===d.length&&"fact-boxes--two-facts",f&&1===d.length&&"fact-boxes--one-fact")},(o||s)&&e.createElement(_,{theme:r,inverse:i,htmlTag:p,title:o,description:s,linkProps:m}),e.createElement("div",{className:"fact-boxes__container"},e.createElement("ul",{className:"fact-boxes__grid"},d.map(function(t,n){return e.createElement("li",{className:"fact-boxes__card",key:n},e.createElement(ze,a({},t,{inverse:!i})))}))))},exports.FeaturedContent=function(n){var a=n.theme,r=n.cards,c=r.length>1,i=e.useState(0),o=i[0],s=i[1],m=e.useState("first"),d=m[0],u=m[1],h=e.useState("0"),p=h[0],v=h[1],f=e.useState("0"),g=f[0],E=f[1],_=e.useState("0"),b=_[0],w=_[1],C=e.useState("0"),y=C[0],N=C[1],k=r[o],x=e.useRef(null),L=ve("768px"),T=ve("1248px");e.useEffect(function(){switch(o){case 0:u("first"),v(ge.first.top),E(Ee.first.bottom),w(_e.first.top),N(be.first.bottom);break;case 1:u("second"),v(ge.second.top),E(Ee.second.bottom),w(_e.second.top),N(be.second.bottom);break;case 2:u("third"),v(ge.third.top),E(Ee.third.bottom),w(_e.third.top),N(be.third.bottom)}},[o,d]);var M=c?e.createElement(Re,{theme:a,totalNumber:r.length,currentNumber:o+1,carouselId:"featured-content",onClickPrev:function(){s(function(e){return e-1})},onClickNext:function(){s(function(e){return e+1})},prevButtonDisabled:0===o,nextButtonDisabled:o===r.length-1}):e.createElement(e.Fragment,null);return e.createElement("div",{className:l("featured-content",a&&"theme-".concat(a)),id:"featured-content"},e.createElement("div",{className:"featured-content__top"},e.createElement("div",{className:"featured-content__content"},e.createElement("div",{className:"featured-content__cards"},L&&e.createElement($e,{theme:a,type:"featured",inverse:!0,cards:r}),!L&&e.createElement(e.Fragment,null,e.createElement(t.motion.section,{className:"featured-content__active-card",key:o,initial:{opacity:0},animate:{opacity:1}},e.createElement(we,{theme:a,imagePrimary:k.imagePrimary,imageSecondary:k.imageSecondary,imageTertiary:k.imageTertiary,categoryLabel:k.categoryLabel,slideTitle:k.slideTitle,subTitle:k.subTitle,introText:k.introText,link:k.link,linkText:k.linkText,cardOrder:k.cardOrder,activeVariant:d,leftInitialPositionTablet:p,rightInitialPositionTablet:g,leftInitialPositionDesktop:b,rightInitialPositionDesktop:y,isMobile:!1,isTablet:T,ref:x}))))),!L&&c&&r.map(function(t,n){return e.createElement("div",{className:"featured-content__invisible-card featured-content__invisible-card--desktop",key:n,"aria-hidden":!0},e.createElement("section",null,e.createElement(we,{theme:a,categoryLabel:t.categoryLabel,slideTitle:t.slideTitle,subTitle:t.subTitle,introText:t.introText,link:t.link,linkText:t.linkText,cardOrder:t.cardOrder,activeVariant:d,imagePrimary:{src:{default:""}},imageSecondary:{src:{default:""}},imageTertiary:{src:{default:""}}})))})),e.createElement("div",{className:"featured-content__nav featured-content__nav--desktop"},M))},exports.FeaturedSignpost=function(t){var n=t.theme,a=t.inverse,r=t.position,c=t.category,i=t.title,o=t.description,s=t.linkUrl,m=t.linkLabel,d=t.linkIsExternal,u=void 0!==d&&d,h=t.imageAlt,v=t.imageSrc,f=ve("1248px");return e.createElement("div",{className:l("featured-signpost","featured-signpost--".concat(r),n&&"theme-".concat(n),a&&"theme-".concat(n,"--inverse"))},"left"===r&&e.createElement("div",{className:"featured-signpost__image-container featured-signpost__image-container--mobile"},e.createElement(lt,{isMobile:!0,isTablet:!1,position:r,imageSrc:v,imageAlt:h}),e.createElement(ot,{isMobile:!0,isTablet:!1,position:r})),"left"===r&&e.createElement("div",{className:"featured-signpost__image-container featured-signpost__image-container--desktop"},e.createElement(lt,{isMobile:!1,isTablet:f,position:r,imageSrc:v,imageAlt:h}),e.createElement(ot,{isMobile:!1,isTablet:f,position:r})),e.createElement("div",{className:"featured-signpost__content-wrapper"},e.createElement("div",{className:"featured-signpost__content"},c&&e.createElement("p",{className:"featured-signpost__category"},c)," ",e.createElement("h2",{className:"featured-signpost__title"},i),o&&e.createElement("p",{className:"featured-signpost__description"},o),e.createElement("div",{className:"featured-signpost__cta"},e.createElement(p,{url:s,title:m,theme:n,inverse:a,externalLink:u})))),"right"===r&&e.createElement("div",{className:"featured-signpost__image-container featured-signpost__image-container--mobile"},e.createElement(lt,{isMobile:!0,isTablet:!1,position:r,imageSrc:v,imageAlt:h}),e.createElement(ot,{isMobile:!0,isTablet:!1,position:r})),"right"===r&&e.createElement("div",{className:"featured-signpost__image-container featured-signpost__image-container--desktop"},e.createElement(lt,{isMobile:!1,isTablet:f,position:r,imageSrc:v,imageAlt:h}),e.createElement(ot,{isMobile:!1,isTablet:f,position:r})))},exports.FeaturedVideo=function(t){var n,a,r=t.theme,c=t.title,i=t.image,o=t.youtubeId,s=t.youtubeButtonLabel,m=void 0===s?"Watch the video":s,d=t.audioYoutubeButtonLabel,u=void 0===d?"Watch the audio described video":d,h=t.audioYoutubeId,p=e.useState(!1),v=p[0],f=p[1],g=e.useRef(o),E=ve("768px"),_=function(){f(!1),document.body.classList.remove("lock-scroll")},b=function(e){g.current=e,v?_():(f(!0),document.body.classList.add("lock-scroll"))};return e.createElement(e.Fragment,null,e.createElement("section",{className:l("featured-video",r&&"theme-".concat(r))},E?e.createElement("div",{className:"featured-video__mobile-image"},e.createElement("div",{className:"featured-video__image-wrapper",style:{backgroundImage:"url(".concat(null===(n=null==i?void 0:i.src)||void 0===n?void 0:n.default,")"),backgroundPosition:"50% 50%",backgroundSize:"cover",backgroundRepeat:"no-repeat"}})):e.createElement(st,{offset:100},e.createElement("div",{className:"featured-video__image-wrapper",style:{backgroundImage:"url(".concat(null===(a=null==i?void 0:i.src)||void 0===a?void 0:a.default,")"),backgroundPosition:"50% 50%",backgroundSize:"cover",backgroundRepeat:"no-repeat"}})),e.createElement("div",{className:"featured-video__container"},e.createElement("h2",{className:"featured-video__title"},c),e.createElement("div",{className:"featured-video__button-wrapper"},e.createElement(xe,{theme:r,inverse:!0,label:m,icon:"play",onClick:function(){return b(o)}}),h&&e.createElement("button",{className:"featured-video__button-audio",type:"button",onClick:function(){return b(h)}},u)))),v&&e.createElement(ke,{theme:r,closeModal:_,isOpen:v},e.createElement(Ce,{theme:r,id:g.current,autoPlay:!0})))},exports.FiveArticlesGrid=function(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.heading,i=t.featuredArticle,o=t.otherLeadArticles;return e.createElement("section",{className:l("five-articles-grid",r&&"theme-".concat(r))},e.createElement("div",{className:"five-articles-grid__container"},c&&e.createElement("h2",{className:"five-articles-grid__heading"},c),e.createElement("div",{className:"five-articles-grid__main-container"},e.createElement("div",{className:"five-articles-grid__featured-card"},e.createElement(qe,a({},i,{isPrimary:!0}))),e.createElement("ul",{className:"five-articles-grid__secondary-card-container"},o.map(function(t,n){return e.createElement("li",{className:"five-articles-grid__secondary-card",key:n},e.createElement(qe,{theme:r,image:t.image,title:t.title,href:t.href,titleTag:t.titleTag,publishDate:t.publishDate}))})))))},exports.Footer=function(t){var n=t.theme,a=t.locations,r=t.summaryLinks,c=t.hygieneLinks,l=t.activeCampus,i=void 0===l?"uk":l,o=t.address,s=t.telephoneAsNumber,d=t.telephoneAsDisplay,u=t.telIntroText,h=void 0===u?"":u,v=t.socialIcons,f=t.minimalFooter,g=void 0!==f&&f;return e.createElement("footer",{id:"footer",className:"footer theme-".concat(n),"data-element":"footer"},!g&&e.createElement("div",{className:"footer__container"},e.createElement("div",{className:"footer__column-container"},e.createElement("div",{className:"footer__column-left"},e.createElement("div",{className:"footer__logo-wrapper"},e.createElement(ut,{activeCampus:i,imageMode:"dark",classNames:"footer__logo-link",imageWidth:240,imageHeight:79,imageAltText:"uk"===i?"University of Birmingham":"University of Birmingham Dubai"})),e.createElement("address",{className:"footer__address"},o&&(null==o?void 0:o.map(function(t,n){return e.createElement("p",{className:"footer__address-line",key:n},t)}))),s&&d&&e.createElement("div",{className:"footer__telephone"},h&&e.createElement("p",null,h),"Tel:",e.createElement(mt,{theme:n,url:"tel: ".concat(s),title:d,externalLink:!1})),v&&e.createElement("ul",{className:"footer__social-wrapper"},null==v?void 0:v.map(function(t,a){return e.createElement("li",{key:a},e.createElement(ye,{icon:t.icon,theme:n,url:t.url,title:t.title,externalLink:!1}))}))),e.createElement("div",{className:"footer__column-middle"},e.createElement("details",{className:"footer__details",open:!r},e.createElement("summary",{className:"footer__summary-links"},"Global Footprint",e.createElement("i",{className:"footer__summary-icon"},e.createElement(m,{icon:"chevron-down",theme:n}))),a&&e.createElement("ul",null,a.map(function(t,a){return e.createElement("li",{className:"footer__location",key:a},e.createElement("i",{className:"footer__location-icon"},e.createElement(m,{icon:"location",theme:n})),e.createElement(mt,{theme:n,url:t.href,title:t.label,externalLink:t.externalLink}))}))),r&&e.createElement("ul",null,null==r?void 0:r.map(function(t,a){return e.createElement("li",{className:"footer__arrow-link",key:a},e.createElement(p,{theme:n,title:t.label,url:t.href,externalLink:t.externalLink}))}))),e.createElement("div",{className:"footer__map"},e.createElement(w,{src:{default:"data:image/svg+xml,%3c%3fxml version='1.0' encoding='utf-8'%3f%3e%3c!-- Generator: Adobe Illustrator 27.8.0%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 466 304' style='enable-background:new 0 0 466 304%3b' xml:space='preserve'%3e%3cstyle type='text/css'%3e .st0%7bfill:white%3bfilter:url(%23Adobe_OpacityMaskFilter)%3b%7d .st1%7bmask:url(%23mask0_4124_14261_00000137847102346873784780000003499357769935946391_)%3b%7d .st2%7bfill:%233C3C3B%3b%7d .st3%7bfill:white%3bstroke:%233C3C3B%3bstroke-width:0.5%3bstroke-miterlimit:10%3b%7d .st4%7bfill:%23C59A00%3bstroke:%233C3C3B%3bstroke-width:0.5%3bstroke-miterlimit:10%3b%7d .st5%7bfill:%23F7F7F7%3b%7d%3c/style%3e%3cdefs%3e %3cfilter id='Adobe_OpacityMaskFilter' filterUnits='userSpaceOnUse' x='0' y='24' width='466' height='279.1'%3e %3cfeColorMatrix type='matrix' values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0'/%3e %3c/filter%3e%3c/defs%3e%3cmask maskUnits='userSpaceOnUse' x='0' y='24' width='466' height='279.1' id='mask0_4124_14261_00000137847102346873784780000003499357769935946391_'%3e %3cpath class='st0' d='M466%2c24H0v279.1h466V24z'/%3e%3c/mask%3e%3cg class='st1'%3e %3cpath class='st2' d='M109%2c74.6l-4.1%2c4.4l-1.1-2.7l-2.2%2c1.9l-5.8-1.2L94%2c74.6l-3.8%2c1.4l-0.6%2c3.1l-0.7-3.6l-7.1-2.1l2.9-1.1L84.1%2c70 h-2.6l-3.5-5.1L74.8%2c66l0.9-2.9l-2.8%2c2.5v-5.2l-2.7%2c2.2l-9.8%2c1.9l-5.3-7.4l-6.5-4.4l-2.2-0.5l0.6-1.6l-3.7-3.2l-7.4%2c1.4l-6.7%2c4.1 l-2.8-0.4l-2%2c2.1l0.2%2c5.1l2.8%2c3.6l-5.1-0.1l0.5-1.9l-7.2%2c1.9l0.5%2c4.6l6.4%2c0.9l-2.3%2c3.9l-9.3%2c3.8L9.5%2c84l2.6-0.7L10.1%2c88l7.5%2c0.5 l-5.2%2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7%2c4.7l3.6-11.1l2.8%2c5.5l2%2c8l4.5%2c7l3.5%2c6.1l-4.1%2c13l-5.9%2c9.3l-5.7%2c3.1l-1.8-2.4 l-1.7%2c1.5l-4.1-2.4l-1.8-9.9l-4.1%2c3.4l-0.8-5.3l-4.8-2l-9.5%2c2.4l-1.2%2c2.2l-5.8-0.8l-3.7%2c2.6l-3.4-2.8l2.6-4.6l-1.7-8.4l1.3-6.9 l7.4-4.2l3.9-0.9l2.9-5.2l6.7-3.5l3%2c1.4l2.2-4.3l5.9-0.5L414.7%2c228.3z'/%3e %3cpath class='st2' d='M287.2%2c226.5l-2.2%2c4.2l-5.1%2c2.7l-0.5%2c2.5l0.5%2c1.8l-1.8%2c4.6l0.6%2c3.4l2.2%2c1.3l2.3-0.5l4.6-11.8l0.1-1.8l0.9-0.9 l-0.4-4.2L287.2%2c226.5z'/%3e %3cpath class='st2' d='M416.7%2c280.4l1.8%2c1.4l2.6-0.6l-1.4%2c4.4l-3%2c1.9l-1.1-3.2L416.7%2c280.4z'/%3e %3cpath class='st2' d='M354.6%2c200.4c0.2%2c0.1%2c3.9%2c1.8%2c3.9%2c1.8l3.4%2c3l4.2%2c3l1%2c2.4l3%2c2.4l-0.4%2c4.5l-3.9-1.7l-5-7.2l-4.5-5.5l-2.2-2.1 L354.6%2c200.4z'/%3e %3cpath class='st2' d='M374.9%2c206.2l-0.7%2c2.8l1.7%2c2.1l0.3%2c2l6.2%2c1v0.8l2.2-0.8l2.4-6.6l1.9-0.2l-1.9-1.5l0.1-3l2.1-0.7l-1.2-2.2 l-2.4-1.6l-2.2%2c3.3l-1.6%2c0.2l-1.7%2c2.5l-2.4%2c0.8l-0.3%2c1.7L374.9%2c206.2z'/%3e %3cpath class='st2' d='M397.5%2c206.5l-1.5%2c1l-4.2-0.5l-3%2c6.2l0.6%2c4.4l1.8-0.3l-0.2-4.3l2%2c2.9l1.4-1.5l-1-2.7l4.5-4.6L397.5%2c206.5z'/%3e %3cpath class='st2' d='M369.9%2c218.1l1-0.5l5.4%2c1.5l0.8-0.7l4.9%2c2.2v1.1l-5.7-0.8l-3.1-0.4L369.9%2c218.1z'/%3e %3cpath class='st2' d='M406.2%2c210.6l3.4-1.1l1.2%2c3.1l2%2c1.2l3-2.7l5.1%2c1.6l5.8%2c2.4l2%2c2.5l1.7%2c0.4l0.4%2c0.9l-1.7%2c0.3l1.4%2c2.1l3.5%2c3.6 h-1.6l-6-4.6l-2.4%2c1.7l-0.7%2c1.2l-4.6-2.4l-3.2%2c1l1.6-2.1l-1.2-3.2l-5.5-2l-1.5%2c0.6l-1-2.2l2.1-0.6L406.2%2c210.6z'/%3e %3cpath class='st2' d='M409.7%2c127c0.2%2c0.1%2c5.9%2c3%2c5.9%2c3v2.4l-2.1%2c2l-3.2-1l0.3%2c3l2.1%2c2.5l0.7%2c5.9l-0.1%2c3.2l-4.1%2c2.9l-1.7-1.8v3.4 l-3.6%2c1.1l-2.3%2c4.1l-1.5-1.2l0.4-2.9l-1.1-0.4l2.6-3.3l4.7-1.3l0.7-2.2l2.5-1.8l1-4.9l-1-1.5l0.4-1.7l-1.8-2.9l1.4-2.1L409.7%2c127z' /%3e %3cpath class='st2' d='M212.9%2c111.7c0%2c0-1.7%2c2.1-1.6%2c2.1h2.7l-1.4%2c3l1.9%2c1.6l0.4%2c1.6l1.3%2c0.8l0.6%2c2.8h1.6l0.4%2c1.2l-1.1%2c1.6l0.1%2c0.6 l-3.7%2c1.1l-4.8%2c1.1l3.4-2.8l-2.9-0.6l1-3.1l1.6-0.7l-0.4-2.5l-2.1%2c0.5v-2.5l-1.2-1l0.3-2.3l-2.1-0.5l1.9-0.3l2.3-1.8L212.9%2c111.7z' /%3e %3cpath class='st2' d='M209.5%2c120.7l-1.2%2c0.7v3.4l-3.6%2c1.5l-2.1-1.3l2-2.3l-1.3-1.6l1.1-0.9l1%2c0.4l0.3-1l-0.3-0.4l2.2-1l1.3%2c1 L209.5%2c120.7z'/%3e %3cpath class='st2' d='M284.9%2c53.8l0.4%2c3l-7.3%2c6.6l-1.5%2c9.5l3.1%2c4.3l-7.1-2l1-10.7l6.3-7.7L284.9%2c53.8z'/%3e %3cpath class='st2' d='M190%2c92.5c0.1%2c0.2%2c1.9%2c2.2%2c1.9%2c2.2l2.2-1.1l3.6-1.1l3%2c3.1l-2.5%2c3.5l-4.6%2c1.7l-3.8-2.3l0.2-1.5l-1.7-1l-0.2-2 L190%2c92.5z'/%3e %3cpath class='st2' d='M113.3%2c58.6h-2.6l-0.9-1.1l-1.7%2c3.9l-1.8-0.7l0.3%2c4.3l0.7%2c2.2l2.8-1.2l1.7-3.2l-1.1-0.9L113.3%2c58.6z'/%3e %3cpath class='st2' d='M164.8%2c32.2l-14.7%2c10.2h-5.6v3.7l-5.3%2c4.3l-3.4-1.2l2.9%2c3.2l-2.9%2c2l-9.3-3.7l6.7-5.6l-3.2-2.8l-1.1-8l6.9-5.5 l3%2c7.6l7-0.1l-0.3-1.3l-5.8-0.1l-1.5-7.6l7.2-1.4l1.7%2c1.8l2.2-3.8l9.4%2c1.1l3.7%2c2.4L164.8%2c32.2z'/%3e %3cpath class='st2' d='M142.2%2c124.1l-1.2%2c1.4l-3.8%2c5.9l5.6%2c0.4l0.5%2c0.7l2.2-2.1l-0.9-2.1l-3.2%2c0.3l0.4-2l1.8-2.3L142.2%2c124.1z'/%3e %3cpath class='st2' d='M101.5%2c42.9l-5.5%2c3.9l5.5%2c2.3l-4.3%2c1.5l6.9%2c0.3l2.8%2c0.5l2.1-3.5l-1.3-4.3l-3.7%2c3.8L101.5%2c42.9z'/%3e %3cpath class='st2' d='M111.5%2c47.1l0.8%2c6.5l3%2c0.3l3.4-6.6l-4.7%2c1.8L111.5%2c47.1z'/%3e %3cpath class='st2' d='M120%2c49.1l2.6%2c1.9l-2.2%2c5.5l6%2c3.2l6.9%2c0.4l1.2-3.6l-4.4-1.6l-4.5%2c0.2l-1.3-3l1.1-1.1l-1.6-1.9l-3.2-2.3 L120%2c49.1z'/%3e %3cpath class='st2'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2c-0.1%2c0.7-0.5%2c1.3-1%2c1.7l-2.4%2c3.1L377.9%2c204.1z'/%3e%3cpath class='st2' d='M389.5%2c172'/%3e%3c/svg%3e"},altText:"",width:368,height:240})))),e.createElement("div",{className:"footer__bottom-container"},e.createElement("div",{className:"footer__bottom-wrapper"},e.createElement("ul",{className:"footer__hygiene-link-wrapper"},c&&(null==c?void 0:c.map(function(t,a){return e.createElement("li",{className:"footer__hygiene-link",key:"hygiene-".concat(a)},e.createElement(mt,{theme:n,url:t.href,title:t.label,externalLink:t.externalLink}))}))),e.createElement("p",{className:"footer__copyright"},"© University of Birmingham ",(new Date).getFullYear()))))},exports.GeneralSearchFilter=function(t){var n=t.theme,a=t.heading,r=t.typeName,c=t.typeGroups,i=t.onClearFilters,o=t.onViewResults,s=t.defaultCheckedType,m=c.find(function(e){return e.value===s});return e.createElement("div",{className:l("general-search-filter",n&&"theme-".concat(n))},e.createElement("p",{className:"general-search-filter__heading"},a),e.createElement("ul",{className:"general-search-filter__list"},e.createElement("li",{className:"general-search-filter__item",key:"type"},e.createElement(_t,{type:"radio",heading:"Type",theme:n,defaultIsOpen:!0,inputs:c.map(function(e){return{name:r,value:e.value,label:e.label,id:e.id,defaultChecked:!!s&&s===e.value,onChange:e.onChange}})})),(null==m?void 0:m.checkboxGroups)&&m.checkboxGroups.length>0&&m.checkboxGroups.map(function(t){return e.createElement("li",{className:"standard-listing-filter__item",key:t.name},e.createElement(_t,{type:"checkbox",heading:t.heading,theme:n,inputs:t.inputs.map(function(e){return{name:t.name,value:e.value,label:e.label,id:e.id,defaultChecked:!!t.defaultValues&&t.defaultValues.includes(e.value),onChange:t.onChange}})}))})),o&&e.createElement("div",{className:"general-search-filter__results-button"},e.createElement(h,{label:"View filtered results",onClick:o,theme:n})),e.createElement("div",{className:"general-search-filter__clear-button"},e.createElement(h,{label:"Clear filters",onClick:i,theme:n,hollow:!0})))},exports.GenericDetailSection=function(t){var n=t.theme,r=t.title,c=t.detailColumns,i=t.buttons;return e.createElement("section",{className:l("generic-detail-section",n&&"theme-".concat(n))},e.createElement("div",{className:"generic-detail-section__container"},r&&e.createElement("h2",{className:"generic-detail-section__title"},r),e.createElement("ul",{className:"generic-detail-section__details-container"},c.map(function(t,r){return e.createElement("ul",{key:r,className:"generic-detail-section__column"},t.map(function(t){return e.createElement("li",{className:"generic-detail-section__detail",key:t.title},e.createElement(vt,a({},t,{theme:n})))}),3===c.length&&2===r&&i&&i.map(function(t,c){return e.createElement("li",{key:c,className:"generic-detail-section__detail generic-detail-section__detail--button"},ft(t)?e.createElement(xe,a({},t,{theme:n,hollow:r%2!=0})):e.createElement(h,a({},t,{theme:n,hollow:r%2!=0})))}))}),c.length<3&&i&&e.createElement("ul",null,i.map(function(t,r){return e.createElement("li",{key:r,className:"generic-detail-section__detail generic-detail-section__detail--button"},ft(t)?e.createElement(xe,a({},t,{theme:n})):e.createElement(h,a({},t,{theme:n,hollow:r%2!=0})))})))))},exports.Header=function(n){var a=n.theme,r=void 0===a?"uobmain":a,c=n.inverse,i=void 0!==c&&c,o=n.primaryLinks,s=n.secondaryLinks,m=n.menuCards,d=n.dubaiUrl,u=n.ukUrl,p=n.logoTitleTagH1,v=void 0===p||p,f=n.activeCampus,g=void 0===f?"uk":f,E=n.searchProps,_=function(){var t=e.useState(null),n=t[0],a=t[1];return e.useEffect(function(){var e=window.scrollY,t=function(){var t=window.scrollY,r=t>e?"down":"up";r!==n&&(t-e>3||t-e<-3)&&a(r),e=t>0?t:0};return window.addEventListener("scroll",t),function(){window.removeEventListener("scroll",t)}},[n]),n}(),b=ve("768px"),w=Qn({primaryLinks:o,secondaryLinks:s,searchProps:E}),C=w.openMenuButtonRef,y=w.headerRef,N=w.desktopCampusSelectorRef,k=w.isOpen,x=w.menuLevel,L=w.searchIsOpen,T=w.searchOpenedFromHeader,M=w.mainMenuSelectedLink,S=w.firstLevelSelectedLink,H=w.openMenu,P=w.closeMenu,V=w.openSearch,O=w.openSearchFromHeader,Z=w.onClickMainMenuNavLink,q=w.onClickLevelOneNavLink,B=w.goBackToMainMenu,F=w.goBackToLevelOne,D=w.closeLowestLevelSearch,I=w.handleSearchChange,A=w.handleSearchSubmit;e.useEffect(function(){if(y.current&&"down"===_){var e=y.current.offsetHeight;y.current.style.top="-".concat(e,"px")}else if(y.current&&"up"===_){var t=0;N.current&&y.current&&(t=N.current.offsetHeight),y.current.style.top="-".concat(t,"px")}},[N,y,_]);var R=e.createElement("div",{className:"header__campus-selector header__campus-selector--mobile"},e.createElement(Jn,{theme:r,dubaiUrl:d,ukUrl:u,active:g,mobile:!0})),$=e.createElement("div",{className:"header__campus-selector header__campus-selector--desktop",ref:N},e.createElement(Jn,{theme:r,dubaiUrl:d,ukUrl:u,active:g,mobile:!1})),j=e.createElement("div",{className:"header__campus-selector header__campus-selector--desktop"},e.createElement(Jn,{theme:r,dubaiUrl:d,ukUrl:u,active:g,mobile:!1}));return e.createElement("header",{className:l("header",r&&"theme-".concat(r),i&&"theme-".concat(r,"--inverse"),!k&&"header--is-closed","header--".concat(g)),id:"header",ref:y},e.createElement("div",{className:"header__closed"},$,e.createElement("div",{className:"header__top-container"},e.createElement("div",{className:"header__logo-wrapper"},e.createElement("div",{className:"header__logo-wrapper"},v?e.createElement("h1",{className:"header__logo-heading"},e.createElement(ut,{activeCampus:g,imageMode:"light",classNames:"header__logo-link",imageAltText:"uk"===g?"University of Birmingham":"University of Birmingham Dubai",loadingAttr:"eager"})):e.createElement(ut,{activeCampus:g,imageMode:"light",classNames:"header__logo-link",loadingAttr:"eager"},e.createElement("span",{className:"sr-only"},"uk"===g?"University of Birmingham":"University of Birmingham Dubai")))),e.createElement("div",{className:"header__right-wrapper"},e.createElement("div",{className:"header__search-button"},e.createElement(h,{theme:r,label:"Search",onClick:O,hollow:!0})),e.createElement("div",{className:"header__menu-button"},e.createElement("span",null,"Menu"),e.createElement(ye,{theme:"uobmain",icon:"hamburger",onClick:H,title:"Open menu",ariaControls:"header",ref:C,ariaExpanded:k}))))),e.createElement(t.AnimatePresence,null,k&&e.createElement(An,null,e.createElement(t.motion.div,{className:"header__open",initial:{x:"100%"},animate:{x:"0"},exit:{x:"100%"},transition:{type:"tween"},key:"header__open"},j,e.createElement("div",{className:"header__top-container"},e.createElement("div",{className:"header__logo-wrapper"},e.createElement(ut,{activeCampus:g,imageMode:"dark",classNames:"header__logo-link"},e.createElement("h1",{className:"sr-only"},"uk"===g?"University of Birmingham":"University of Birmingham Dubai"))),e.createElement("div",{className:"header__right-wrapper"},!b&&!L&&e.createElement("div",{className:"header__search-button-menu"},e.createElement(h,{theme:r,inverse:!0,label:"Search",onClick:V,hollow:!0})),e.createElement("div",{className:"header__menu-button"},e.createElement("span",null,"Menu"),e.createElement(ye,{theme:"uobmain",inverse:!0,icon:"cross",onClick:P,title:"Close menu",ariaControls:"header"})))),b&&!L&&e.createElement("div",{className:"header__search-button-mobile"},e.createElement(h,{theme:r,inverse:!0,label:"Search",onClick:V,hollow:!0})),0===x&&!L&&e.createElement(zn,{primaryLinks:o,secondaryLinks:s,menuCards:m,onClickNavLink:Z,theme:r,inverse:i}),0===x&&L&&e.createElement(Kn,{theme:r,introText:E.introText,placeholder:E.placeholder,title:E.title,handleSearchChange:I,handleSearchSubmit:A,onClickGoBack:T?void 0:B,backLinkLabel:T?"":"Back to menu",recommendedLinks:E.recommendedLinks,recommendedLinkTitle:E.recommendedLinkTitle}),1===x&&M&&!L&&e.createElement(Un,{headingLink:M,onClickNavLink:q,theme:r,inverse:i,onClickGoBack:B,backLinkLabel:"Back to menu"}),1===x&&M&&L&&e.createElement(Kn,{theme:r,introText:E.introText,placeholder:E.placeholder,title:E.title,handleSearchChange:I,handleSearchSubmit:A,onClickGoBack:F,backLinkLabel:"Back to ".concat(M.label),recommendedLinks:E.recommendedLinks,recommendedLinkTitle:E.recommendedLinkTitle}),2===x&&M&&S&&!L&&e.createElement(Un,{headingLink:S,onClickNavLink:function(){},theme:r,inverse:i,onClickGoBack:F,backLinkLabel:"Back to ".concat(M.label)}),2===x&&M&&S&&L&&e.createElement(Kn,{theme:r,introText:E.introText,placeholder:E.placeholder,title:E.title,handleSearchChange:I,handleSearchSubmit:A,onClickGoBack:D,backLinkLabel:"Back to ".concat(S.label),recommendedLinks:E.recommendedLinks,recommendedLinkTitle:E.recommendedLinkTitle}),R))))},exports.HeaderLanding=function(n){var a=n.theme,r=void 0===a?"uobmain":a,c=n.inverse,i=void 0!==c&&c,o=n.primaryLinks,s=n.secondaryLinks,m=n.menuCards,d=n.logoTitleTagH1,u=void 0===d||d,h=n.backLinkUrl,p=n.backLinkLabelMobile,v=n.backLinkLabel,f=n.hideSubMenu,g=void 0===f||f,E=n.hideBackLink,_=void 0===E||E,b=Qn({primaryLinks:o,secondaryLinks:s}),w=b.openMenuButtonRef,C=b.headerRef,y=b.isOpen,N=b.menuLevel,k=b.searchIsOpen,x=b.mainMenuSelectedLink,L=b.firstLevelSelectedLink,T=b.openMenu,M=b.closeMenu,S=b.onClickMainMenuNavLink,H=b.onClickLevelOneNavLink,P=b.goBackToMainMenu,V=b.goBackToLevelOne;return e.createElement("header",{className:l("header",r&&"theme-".concat(r),!y&&"header--is-closed",i&&"theme-".concat(r,"--inverse")),id:"landing-header",ref:C},e.createElement("div",{className:"header__closed"},e.createElement("div",{className:"header__top-container"},e.createElement("div",{className:"header__logo-wrapper"},e.createElement("div",{className:"header__logo-wrapper"},u?e.createElement("h1",{className:"header__logo-heading"},e.createElement(ut,{activeCampus:"uk",imageMode:i?"dark":"light",classNames:"header__logo-link",imageAltText:"University of Birmingham",loadingAttr:"eager"})):e.createElement(ut,{activeCampus:"uk",imageMode:i?"dark":"light",classNames:"header__logo-link",loadingAttr:"eager"},e.createElement("span",{className:"sr-only"},"University of Birmingham")))),e.createElement("div",{className:"header__right-wrapper"},e.createElement("div",{className:"header__menu-button"},!_&&e.createElement(tr,{theme:"uobmain",url:h,title:v,mobileTitle:p,externalLink:!1}),!g&&e.createElement(ye,{theme:"uobmain",inverse:i,icon:"plus",onClick:T,title:"Open menu",ariaControls:"landing-header",ref:w,ariaExpanded:y}))))),e.createElement(t.AnimatePresence,null,y&&e.createElement(An,null,e.createElement(t.motion.div,{className:"header__open",initial:{x:"100%"},animate:{x:"0"},exit:{x:"100%"},transition:{type:"tween"},key:"header__open"},e.createElement("div",{className:"header__top-container"},e.createElement("div",{className:"header__logo-wrapper"},e.createElement(ut,{activeCampus:"uk",imageMode:i?"light":"dark",classNames:"header__logo-link"},e.createElement("h1",{className:"sr-only"},"University of Birmingham"))),e.createElement("div",{className:"header__right-wrapper"},e.createElement("div",{className:"header__menu-button"},e.createElement("span",null,"Menu"),e.createElement(ye,{theme:"uobmain",inverse:!i,icon:"cross",onClick:M,title:"Close menu",ariaControls:"landing-header"})))),0===N&&e.createElement(zn,{primaryLinks:o,secondaryLinks:s,menuCards:m,onClickNavLink:S,theme:r,inverse:i}),1===N&&x&&e.createElement(Un,{headingLink:x,onClickNavLink:H,theme:r,inverse:i,onClickGoBack:P,backLinkLabel:"Back to menu"}),2===N&&x&&L&&!k&&e.createElement(Un,{headingLink:L,onClickNavLink:function(){},theme:r,inverse:i,onClickGoBack:V,backLinkLabel:"Back to ".concat(x.label)})))))},exports.Heading=_,exports.Hero=function(t){var n=t.theme,r=t.inverse,c=t.title,i=t.titleTag,o=void 0===i?"h2":i,s=t.description,m=t.image,d=t.links,u=t.courseSearchProps,p=ve("768px"),v=ve("1248px");return e.createElement("div",{className:l("hero",n&&"theme-".concat(n),r&&"theme-".concat(n,"--inverse"),m&&"hero--with-image"),id:"hero"},m&&"rectangle"===m.style&&e.createElement("div",{className:"hero__image-wrapper hero__image-wrapper--mobile hero__image-wrapper--rectangle"},e.createElement(w,a({},m,{altText:m.alt,fetchPriority:m.fetchPriority}))),m&&"lines-of-intent"===m.style&&p&&e.createElement("div",{className:"hero__image-wrapper hero__image-wrapper--mobile"},e.createElement(ea,{isMobile:!0,isTablet:!1,image:m}),e.createElement(na,{isMobile:!0,isTablet:!1})),e.createElement("div",{className:"hero__container"},e.createElement("div",{className:"hero__content"},e.createElement(o,{className:"hero__title"},c),s&&e.createElement("div",{className:"hero__description"},e.createElement(g,{text:s,theme:n,inverse:r})),d&&d.length>0&&e.createElement("div",{className:"hero__buttons"},d.map(function(t,a){return e.createElement(h,{theme:n,key:a,url:t.url,label:t.title,externalLink:t.externalLink,inverse:!r,hollow:1===a})})),u&&e.createElement(ra,a({theme:n,inverse:r,wrapped:!0},u))),m&&"rectangle"===m.style&&e.createElement("div",{className:"hero__image-wrapper hero__image-wrapper--desktop hero__image-wrapper--rectangle"},e.createElement(w,a({},m,{altText:m.alt,fetchPriority:m.fetchPriority}))),m&&"lines-of-intent"===m.style&&v&&e.createElement("div",{className:"hero__image-wrapper hero__image-wrapper--desktop hero__image-wrapper--polygon"},e.createElement(ea,{isMobile:!1,isTablet:!0,image:m}),e.createElement(na,{isMobile:!1,isTablet:!0})),m&&"lines-of-intent"===m.style&&!p&&!v&&e.createElement("div",{className:"hero__image-wrapper hero__image-wrapper--desktop hero__image-wrapper--polygon"},e.createElement(ea,{isMobile:!1,isTablet:!1,image:m}),e.createElement(na,{isMobile:!1,isTablet:!1}))))},exports.HeroArticle=function(t){var n=t.theme,r=t.inverse,c=t.title,i=t.titleTag,o=void 0===i?"h2":i,s=t.description,m=t.cardImage,d=t.publishDate,u=t.readTime,h=t.shareButtons,p=t.author,v=Array.isArray(p)?p:[p];return e.createElement("section",{className:l("hero-article",n&&"theme-".concat(n),r&&"theme-".concat(n,"--inverse"))},e.createElement("div",{className:"hero-article__container"},e.createElement("div",{className:"hero-article__content"},e.createElement(o,{className:"hero-article__title"},c),e.createElement("p",{className:"hero-article__description"},s),e.createElement("div",{className:"hero-article__meta-data"},d&&e.createElement("span",{className:"hero-article__publish-date"},d),d&&u&&e.createElement("span",{className:"hero-article__separator"},"•"),u&&e.createElement("span",{className:"hero-article__read-time"},u),p&&e.createElement(e.Fragment,null,e.createElement("span",{className:"hero-article__separator"},"•"),e.createElement("span",{className:"hero-article__author"},"by ",e.createElement(la,{items:v})))),e.createElement("div",{className:"hero-article__sharing-buttons"},e.createElement(ca,{theme:n,label:h.label,icons:h.icons,inverse:r})))),m&&e.createElement("div",{className:"hero-article__image-wrapper"},e.createElement(Ze,a({},m,{inverse:r}))))},exports.HeroCarousel=function(n){var a=n.theme,r=n.cards,c=r.length>1,i=e.useState(0),o=i[0],s=i[1],m=r[o],d=e.useRef(null),u=ve("768px"),h=ve("1248px"),p="";switch(o){case 0:p="first";break;case 1:p="second";break;case 2:p="third"}var v=c?e.createElement(Re,{theme:a,totalNumber:r.length,currentNumber:o+1,carouselId:"hero-carousel",onClickPrev:function(){s(function(e){return e-1})},onClickNext:function(){s(function(e){return e+1})},prevButtonDisabled:0===o,nextButtonDisabled:o===r.length-1,showNumbers:!0}):e.createElement(e.Fragment,null);return e.createElement("div",{className:l("hero-carousel",a&&"theme-".concat(a)),id:"hero-carousel"},e.createElement("div",{className:"hero-carousel__top"},e.createElement("div",{className:"hero-carousel__content"},u&&e.createElement("div",{className:"hero-carousel__image-container hero-carousel__image-container--mobile"},e.createElement(xa,{isMobile:!0,isTablet:!1,activeVariant:p,imageSrc:m.imageSrc,imageAlt:m.imageAlt}),e.createElement(ka,{isMobile:!0,isTablet:!1,activeVariant:p})),e.createElement("div",{className:"hero-carousel__cards"},e.createElement(t.motion.section,{className:"hero-carousel__active-card",key:o,initial:{opacity:0},animate:{opacity:1}},e.createElement(La,{category:m.category,title:m.title,description:m.description,linkUrl:m.linkUrl,linkLabel:m.linkLabel,theme:a,ref:d})),u&&c&&r.map(function(t,n){return e.createElement("section",{className:"hero-carousel__invisible-card hero-carousel__invisible-card--mobile",key:n,"aria-hidden":!0},e.createElement(La,{category:t.category,title:t.title,description:t.description,linkUrl:t.linkUrl,linkLabel:t.linkLabel,theme:a}))}),e.createElement("div",{className:"hero-carousel__nav hero-carousel__nav--desktop"},v)),e.createElement("div",{className:"hero-carousel__image-container hero-carousel__image-container--desktop"},e.createElement(xa,{isMobile:!1,isTablet:h,activeVariant:p,imageSrc:null==m?void 0:m.imageSrc,imageAlt:m.imageAlt}),e.createElement(ka,{isMobile:!1,isTablet:h,activeVariant:p}))),!u&&c&&r.map(function(t,n){return e.createElement("div",{className:"hero-carousel__invisible-card hero-carousel__invisible-card--desktop",key:n,"aria-hidden":!0},e.createElement("section",null,e.createElement(La,{category:t.category,title:t.title,description:t.description,linkUrl:t.linkUrl,linkLabel:t.linkLabel,theme:a})))})),u&&e.createElement("div",{className:"hero-carousel__nav hero-carousel__nav--mobile"},v))},exports.HeroCourses=function(t){var n,r=t.theme,c=t.title,i=t.titleTag,o=void 0===i?"h2":i,s=t.awardShort,m=t.links,d=t.ranking,u=t.award,p=t.campus,v=t.ucas,g=t.duration,E=t.entryRequirements,_=t.startDate,b=t.yearOfEntry,w=t.fees,C=t.deliveryFormat,y=t.locationDetails,N=t.modalCTA;return e.createElement("section",{className:l("hero-courses",r&&"theme-".concat(r)),id:"hero-courses"},e.createElement("div",{className:"hero-courses__container"},e.createElement("div",{className:"hero-courses__content"},e.createElement("div",{className:"hero-courses__title-wrapper"},e.createElement(f,{htmlTag:o,classNames:"hero-courses__title"},c&&c.length>0&&s&&s.length>0?c+" ":c,e.createElement("span",{className:"hero-courses__title-award"},s))),y&&e.createElement("div",{className:"hero-courses__location-wrapper"},e.createElement(da,a({},y,{inverse:!1}))),e.createElement("ul",{className:(n="hero-courses__grid--four",d&&(p||C||v)?n="hero-courses__grid--six":(d&&!p&&!C&&!v||!d&&(p||C||v))&&(n="hero-courses__grid--five"),"hero-courses__grid "+n)},d&&e.createElement("li",{className:"hero-courses__column hero-courses__column--ranking"},e.createElement(ma,a({},d))),(v||p||C)&&e.createElement("li",{className:"hero-courses__column hero-courses__column--split hero-courses__column--award"},v&&e.createElement(oa,a({},v)),p&&e.createElement(oa,a({},p)),C&&e.createElement(oa,a({},C))),g&&b?e.createElement("li",{className:"hero-courses__column hero-courses__column--split hero-courses__column--duration"},e.createElement(sa,a({},b)),e.createElement(oa,a({},g))):g&&_?e.createElement("li",{className:"hero-courses__column hero-courses__column--split hero-courses__column--duration"},e.createElement(oa,a({},_)),e.createElement(oa,a({},g))):e.createElement("li",{className:"hero-courses__column hero-courses__column--duration"},e.createElement(oa,a({},g))),u&&e.createElement("li",{className:"hero-courses__column hero-courses__column--delivery-format"},e.createElement(oa,a({},u))),e.createElement("li",{className:"hero-courses__column hero-courses__column--entry-requirements"},e.createElement(oa,a({},E))),e.createElement("li",{className:"hero-courses__column hero-courses__column--fees"},e.createElement(oa,a({},w)))),e.createElement("div",{className:"hero-courses__button-wrapper"},e.createElement("ul",{className:"hero-courses__buttons"},m&&m.map(function(t,n){return t.externalLink?e.createElement("li",{className:"hero-courses__button",key:n},e.createElement(xe,{theme:r,label:t.label,icon:"external",hollow:n%2!=0,iconPosition:"right",url:t.url,inverse:!0,onClick:t.onClick})):e.createElement("li",{className:"hero-courses__button",key:n},e.createElement(h,{theme:r,label:t.label,hollow:n%2!=0,url:t.url,inverse:!0,onClick:t.onClick}))})),N&&e.createElement(ia,{theme:r,inverse:!N.inverse,hollow:!0,buttonLabel:N.buttonLabel,modalChildren:N.modalChildren})))))},exports.HeroProfile=function(t){var n=t.theme,r=t.studentName,c=t.studentStatus,i=t.courseName,o=t.courseDetails,s=t.studyLevel,m=t.titleTag,d=void 0===m?"h2":m,u=t.homeCountry,h=t.studentIntro,p=t.image,v=t.inverse;return e.createElement("div",{className:l("heroProfile",n&&"theme-".concat(n),v&&"theme-".concat(n,"--inverse")),id:"hero"},e.createElement("div",{className:"heroProfile__container"},e.createElement("div",{className:"heroProfile__details"},r&&e.createElement(d,{className:"heroProfile__title"},r),c&&e.createElement("p",{className:"heroProfile__status"},c),i&&e.createElement("p",{className:"heroProfile__courseName"},i),(s||u||o&&o.length>0)&&e.createElement("ul",{className:"heroProfile__studentDetails"},o&&o.length>0&&e.createElement("li",null,e.createElement("div",{className:"heroProfile__iconContainer"},e.createElement(Pe,{icon:"mortar-board",theme:n,backgroundColor:"pale"}),e.createElement("div",{className:"heroProfile__courseIconText"},e.createElement("span",null,1===o.length?"Course":"Courses",":"),e.createElement("div",{className:"heroProfile__courseDetails"},o.map(function(t,a){return e.createElement(g,{theme:n,key:a,text:t,inverse:v})}))))),s&&e.createElement("li",null,e.createElement("div",{className:"heroProfile__iconContainer"},e.createElement(Pe,{icon:"scroll",theme:n,backgroundColor:"pale"}),e.createElement("div",{className:"heroProfile__iconText"},e.createElement("span",null,"Study level:"),e.createElement("span",null,s)))),u&&e.createElement("li",null,e.createElement("div",{className:"heroProfile__iconContainer"},e.createElement(Pe,{icon:"flag",theme:n,backgroundColor:"pale"}),e.createElement("div",{className:"heroProfile__iconText"},e.createElement("span",null,"Home country:"),e.createElement("span",null,u))))),h&&e.createElement(g,{theme:n,text:h,inverse:v})),e.createElement("div",{className:"heroProfile__image-wrapper"},p&&e.createElement(w,a({},p,{altText:null==p?void 0:p.alt,fetchPriority:p.fetchPriority})))))},exports.HeroVideo=function(t){var n=t.theme,a=t.title,r=t.titleTag,c=void 0===r?"h1":r,i=t.description,o=t.bgVideoUrl,s=t.bgVideoMobileThumbnail,m=t.bgVideoAltText,d=t.fullVideoId,u=t.fullVideoButtonLabel,h=void 0===u?"Watch full video":u,p=t.describedVideoId,v=t.describedVideoButtonLabel,f=void 0===v?"Audio described video":v,g=t.includesAudio,E=e.useRef(null),_=e.useState(!1),b=_[0],w=_[1],C=e.useState(!0),y=C[0],N=C[1],k=e.useState(!1),x=k[0],L=k[1],T=e.useRef(d),M=e.useId(),S="video-".concat(M);e.useEffect(function(){var e,t=window.matchMedia("(prefers-reduced-motion: reduce)"),n=navigator.connection,a=!(!n||!n.saveData&&!["slow-2g","2g","3g"].includes(null!==(e=n.effectiveType)&&void 0!==e?e:""));!E.current||t.matches||a||E.current.play().catch(function(){});var r=function(){E.current&&(w(!E.current.paused),N(E.current.muted))},c=E.current;return null==c||c.addEventListener("play",r),null==c||c.addEventListener("pause",r),null==c||c.addEventListener("volumechange",r),function(){null==c||c.removeEventListener("play",r),null==c||c.removeEventListener("pause",r),null==c||c.removeEventListener("volumechange",r)}},[o]);var H=function(e){var t;T.current=e,L(!0),document.body.classList.add("lock-scroll"),null===(t=E.current)||void 0===t||t.pause()},P=c;return e.createElement(e.Fragment,null,e.createElement("section",{className:l("hero-video","theme-".concat(n))},e.createElement("div",{className:"hero-video__bg-wrapper",style:{backgroundImage:"url(".concat(s,")")}},e.createElement("video",{id:S,ref:E,role:"img",className:"hero-video__bg-element",src:"".concat(o,"#t=0.1"),poster:s,muted:!g||y,loop:!0,playsInline:!0,preload:"metadata","aria-label":m})),e.createElement("div",{className:"hero-video__container"},e.createElement("div",{className:"hero-video__card"},e.createElement(P,{className:"hero-video__title"},a),e.createElement("p",{className:"hero-video__description"},i),e.createElement("div",{className:"hero-video__controls"},e.createElement("div",{className:"hero-video__playback-btns"},e.createElement(ye,{theme:n,inverse:!0,title:b?"Pause":"Play",icon:b?"pause":"play",onClick:function(){var e=E.current;e&&(b?e.pause():e.play().catch(function(){}))},"aria-controls":S,"aria-pressed":b}),g&&e.createElement(ye,{theme:n,inverse:!0,title:y?"Unmute":"Mute",icon:y?"mute-off":"mute-on",onClick:function(){E.current&&g&&(E.current.muted=!E.current.muted,N(E.current.muted))},"aria-controls":S,"aria-pressed":!y})),e.createElement("div",{className:"hero-video__action-btns"},e.createElement(xe,{theme:n,inverse:!1,hollow:!0,label:h,icon:"play",onClick:function(){return H(d)}}),p&&e.createElement(xe,{theme:n,inverse:!1,hollow:!0,label:f,icon:"play",onClick:function(){return H(p)}})))))),x&&e.createElement(ke,{theme:n,closeModal:function(){L(!1),document.body.classList.remove("lock-scroll")},isOpen:x},e.createElement(Ce,{theme:n,id:T.current,autoPlay:!0})))},exports.ImageBlock=function(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.inverse,i=t.title,o=t.description,s=t.linkProps,m=t.fullWidth,d=t.makeHeadingFullWidth,u=t.images,h=t.htmlTag;if(!u||0===u.length)return null;var p=3===u.length&&!m;return e.createElement("div",{className:l("image-block","theme-".concat(r),c&&"theme-".concat(r,"--inverse"),m?"image-block--full-width":"image-block--standard-width","image-block--count-".concat(u.length))},(i||o||s)&&e.createElement(_,{theme:r,inverse:c,title:i,description:o,linkProps:s,fullWidth:!!d,htmlTag:h}),e.createElement("div",{className:"image-block__container"},p?e.createElement("div",{className:"image-block__inner-grid"},u.map(function(t,n){return e.createElement("div",{key:n,className:"image-block__item"},e.createElement(Ze,a({},t,{theme:r,inverse:c})))})):u.map(function(t,n){return e.createElement("div",{key:n,className:l("image-block__item","image-block__item--index-".concat(n+1))},e.createElement(Ze,a({},t,{theme:r,inverse:c})))})))},exports.ImageCarousel=function(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.inverse,c=void 0!==r&&r,i=t.title,o=t.description,s=t.linkProps,m=t.fullWidth,d=void 0!==m&&m,u=t.widerImage,h=t.images,p=t.htmlTag;return e.createElement("section",{className:l("image-carousel",a&&"theme-".concat(a),c&&"theme-".concat(a,"--inverse"),d&&"image-carousel--full-width",u&&"image-carousel--wider-image")},(i||o)&&e.createElement(_,{theme:a,htmlTag:p,inverse:c,title:i,description:o,linkProps:s}),e.createElement("div",{className:"image-carousel__grid"},e.createElement($e,{theme:a,inverse:c,type:"image",cards:h})))},exports.InPageNavigation=function(n){var r,c,i=n.theme,o=void 0===i?"uobmain":i,s=n.inverse,m=void 0!==s&&s,d=n.links,u=n.expandableHeader,h=void 0===u?"Page contents":u,p=e.useState(!1),v=p[0],f=p[1],g=e.useState("not-docked"),E=g[0],_=g[1],b=e.useState(null),w=b[0],C=b[1],y=e.useRef(null),N=e.useRef(null),k=e.useRef(null),x=e.useRef(null),L=e.useRef(null),T=function(){f(!1)};return r=L,c=function(){return T()},e.useEffect(function(){var e=function(e){!r.current||e.target instanceof HTMLElement&&r.current.contains(e.target)||c()};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),function(){document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[r,c]),e.useEffect(function(){var e;k.current=new IntersectionObserver(function(t){var n;e=null===(n=t.find(function(e){return e.isIntersecting}))||void 0===n?void 0:n.target,_(e?"docked":"not-docked")},{rootMargin:"0px 0px -100%"}),N.current=new IntersectionObserver(function(t){var n,a=null===(n=t.find(function(e){return e.isIntersecting}))||void 0===n?void 0:n.target;a?_("docked-at-bottom"):!a&&e&&_("docked")}),y.current=new IntersectionObserver(function(e){var t,n=null===(t=e.find(function(e){return e.isIntersecting}))||void 0===t?void 0:t.target;n&&C(n.id)},{rootMargin:"0px 0px -".concat(.7*window.innerHeight,"px 0px")});var t=document.querySelectorAll(".anchor-target");t.forEach(function(e){y&&y.current&&y.current.observe(e)});var n=document.querySelectorAll("#footer");n.forEach(function(e){N&&N.current&&N.current.observe(e)});var a=document.querySelectorAll("#sidebar");return a.forEach(function(e){k&&k.current&&k.current.observe(e)}),function(){t.forEach(function(e){y&&y.current&&y.current.unobserve(e)}),a.forEach(function(e){k&&k.current&&k.current.unobserve(e)}),n.forEach(function(e){N&&N.current&&N.current.unobserve(e)})}},[]),d.links.map(function(e){return e.url.substring(1)===w?e.active=!0:e.active=!1}),e.createElement("div",{className:l("in-page-navigation",o&&"theme-".concat(o),m&&"theme-".concat(o,"--inverse"))},e.createElement("div",{className:l("in-page-navigation--mobile",E)},e.createElement("div",{className:"in-page-navigation__closed"},e.createElement("div",{className:"in-page-navigation__top-container"},e.createElement("div",{className:"in-page-navigation__right-wrapper"},e.createElement("div",{className:"in-page-navigation__menu-button"},e.createElement("span",{className:"in-page-navigation__expandable-header"},h),e.createElement(ye,{theme:"uobmain",icon:"menu",onClick:function(){f(!0)},title:"Open menu",ariaControls:"in-page-navigation",ref:x,ariaExpanded:v})))))),v&&e.createElement("div",{className:"in-page-navigation__overlay"}),e.createElement(t.AnimatePresence,null,v&&e.createElement(t.motion.div,{className:"in-page-navigation__open",initial:{x:"100%"},animate:{x:"0"},exit:{x:"100%"},transition:{type:"tween"},key:"in-page-navigation__open",ref:L},e.createElement(Ne,null,e.createElement("div",{className:"in-page-navigation__nav"},e.createElement("div",{className:"in-page-navigation__top-container"},e.createElement("div",{className:"in-page-navigation__right-wrapper"},e.createElement("div",{className:"in-page-navigation__close-button"},e.createElement("span",null,"Close"),e.createElement(ye,{theme:"uobmain",inverse:!0,icon:"cross",onClick:T,title:"Close menu",ariaControls:"in-page-navigation"})))),e.createElement(Ta,a({},d,{theme:"uobmain"})))))),e.createElement("div",{className:l("in-page-navigation--desktop",E)},e.createElement(Ta,a({},d,{theme:o}))))},exports.IntroText=function(t){var n=t.text,a=t.theme,r=void 0===a?"uobmain":a,c=t.inverse,i=t.fullWidth,o=t.removeBottomPadding,s=void 0!==o&&o,m=t.removeTopPadding,d=void 0!==m&&m;return e.createElement("div",{className:l("intro-text",r&&"theme-".concat(r),c&&"theme-".concat(r,"--inverse"),i&&"intro-text--full-width",s&&"intro-text--no-bottom-padding",d&&"intro-text--no-top-padding")},e.createElement("div",{className:"intro-text__container"},e.createElement("p",{className:"intro-text__text"},n)))},exports.LeadNewsArticles=function(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.featuredArticle,i=t.otherLeadArticles,o=t.mostReadNews;return e.createElement("section",{className:l("lead-news-articles",r&&"theme-".concat(r))},e.createElement("div",{className:"lead-news-articles__container"},e.createElement("div",{className:"lead-news-articles__main-container"},e.createElement("div",{className:"lead-news-articles__featured-card"},e.createElement(qe,a({},c,{isPrimary:!0}))),e.createElement("ul",{className:"lead-news-articles__secondary-card-container"},i.map(function(t,n){return e.createElement("li",{className:"lead-news-articles__secondary-card",key:n},e.createElement(qe,{theme:r,image:t.image,title:t.title,href:t.href,titleTag:t.titleTag,publishDate:t.publishDate}))}))),e.createElement("div",{className:"lead-news-articles__side-container"},e.createElement(Ma,a({},o)))))},exports.ListTable=function(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.listItems;return e.createElement("div",{className:l("list-table",a&&"theme-".concat(a))},(null==r?void 0:r.length)?e.createElement("ul",{className:"list-table__list"},null==r?void 0:r.map(function(t,n){return e.createElement("li",{key:t+n,className:"list-table__list-item"},e.createElement(g,{inverse:!0,theme:"uobmain",text:t}))})):null)},exports.ListingFilterWrapper=function(n){var a=n.theme,r=n.showFilterButtonLabel,c=n.numSelected,i=n.filterElement,o=e.useState(!1),s=o[0],d=o[1],u=e.useRef(null),h=function(e){"Escape"===e.key&&s&&d(!1)};return e.useEffect(function(){return document.addEventListener("keydown",h),function(){document.removeEventListener("keydown",h)}}),e.useEffect(function(){var e,t;s?null===(e=u.current)||void 0===e||e.showModal():null===(t=u.current)||void 0===t||t.close()},[s]),e.createElement(e.Fragment,null,e.createElement("div",{className:l("listing-filter-wrapper","theme-".concat(a))},e.createElement("div",{className:"listing-filter-wrapper__mobile"},e.createElement("button",{className:"listing-filter-wrapper__show-filter-button",onClick:function(){d(!0),document.body.classList.add("lock-scroll")}},e.createElement(m,{theme:"uobmain",icon:"settings"}),r,c&&e.createElement("span",{className:"listing-filter-wrapper__num-selected"},c,e.createElement("span",{className:"sr-only"},c>1?"filters":"filter"," selected"))))),e.createElement(Ne,null,e.createElement(t.motion.dialog,{className:l("listing-filter-wrapper__dialog","theme-".concat(a)),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},ref:u},e.createElement("div",{className:"listing-filter-wrapper__popup-wrapper"},e.createElement("div",{className:"listing-filter-wrapper__popup"},e.createElement("button",{className:"listing-filter-wrapper__close-button",onClick:function(){d(!1),document.body.classList.remove("lock-scroll")}},e.createElement(m,{icon:"slim-cross",theme:a,ariaHidden:!0}),e.createElement("span",{className:"sr-only"},"Close")),i)))),e.createElement("div",{className:"listing-filter-wrapper__desktop"},i))},exports.ListingResults=function(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.showCategory,i=void 0!==c&&c,o=t.cards,s=t.headingInfo;return e.createElement(e.Fragment,null,s&&e.createElement(_,a({},s,{theme:r,fullWidth:!0})),e.createElement("ul",{className:l("listing-results",r&&"theme-".concat(r))},o.map(function(t,n){return e.createElement("li",{className:"listing-results__card",key:n},e.createElement(Ba,a({},t,{showCategory:i,theme:r})))})))},exports.ListingResultsCount=function(t){var n=t.count,a=t.theme,r=void 0===a?"uobmain":a;return e.createElement("p",{className:l("listing-results-count",r&&"theme-".concat(r))},e.createElement("span",{className:"listing-results-count__number"},n.toLocaleString())," results were found based on your search term")},exports.LocationSection=function(t){var n=t.theme,r=t.embedChildren,c=t.googleMapLink,i=t.address,o=t.services,s=t.link,m=t.titleTag,d=void 0===m?"h2":m;return e.createElement("section",{className:l("location-section",n&&"theme-".concat(n),(!o||o.length<1)&&"location-section--no-services")},e.createElement("div",{className:"location-section__container"},e.createElement(f,{htmlTag:d,classNames:l("location-section__title","h3"===d&&"location-section__title--h3")},"Location"),e.createElement("div",{className:"location-section__grid-wrapper"},e.createElement("div",{className:"location-section__embed"},e.createElement(je,null,r)),e.createElement("div",{className:"location-section__address-wrapper"},e.createElement("div",{className:"location-section__address"},e.createElement(vt,{theme:n,title:"Address",iconType:"slim-location",value:i.map(function(e){return"<span>".concat(e,"</span>")}).join("")})),s&&(null==s?void 0:s.title)&&(null==s?void 0:s.url)&&e.createElement("div",{className:"location-section__link-wrapper"},e.createElement(p,a({},s,{inverse:!0}))),c?e.createElement("div",{className:"location-section__button"},e.createElement(h,{label:"View on Google Maps",theme:n,url:c})):null),(null==o?void 0:o.length)?e.createElement("div",{className:"location-section__services"},null==o?void 0:o.map(function(t,r){return e.createElement(vt,a({},t,{theme:n,key:r}))})):null)))},exports.LocationSelector=da,exports.LogoWall=function(t){var n,r,c=t.theme,i=void 0===c?"uobmain":c,o=t.inverse,s=t.logos,m=null!==(r=null==s?void 0:s.length)&&void 0!==r?r:0,d=s&&s.length%2!=0;return e.createElement("div",{className:l("logo-wall",i&&"theme-".concat(i),o&&"theme-".concat(i,"--inverse"))},e.createElement("div",null,e.createElement("ul",{className:l("logo-wall__container",d&&"logo-wall__container--odd"),style:(n={},n["--logo-wall-cols"]=String(m),n)},s&&s.map(function(t,n){var r;return e.createElement("li",{key:"li-".concat(n)},e.createElement(Ze,a({key:"".concat((null===(r=t.image)||void 0===r?void 0:r.title)||"imageTitle","-").concat(n),theme:i,inverse:o},t)))}))))},exports.MainWrapper=function(t){var n=t.children;return e.createElement("main",{id:"main"},n)},exports.ModalCTA=function(t){var n=t.theme,a=t.heading,r=t.inverse,c=t.description,i=t.buttonLabel,o=t.buttonModifier,s=t.modalChildren,m=t.htmlTag,d=void 0===m?"h3":m,u=e.useState(!1),p=u[0],v=u[1],g=function(){v(!1),document.body.classList.remove("lock-scroll")};return e.createElement("div",{className:l("modal-cta",n&&"theme-".concat(n),r&&"theme-".concat(n,"--inverse"))},e.createElement(f,{htmlTag:d,classNames:"modal-cta__heading"},a),c&&e.createElement("p",{className:"modal-cta__description"},c),e.createElement("div",{className:l("modal-cta__button",o&&"theme-".concat(n,"--buttonModifier"))},e.createElement(h,{inverse:!r,label:i,onClick:function(){p?g():(v(!0),document.body.classList.add("lock-scroll"))},theme:n,buttonModifier:o})),p&&e.createElement(ke,{centred:!0,theme:n,closeModal:g,isOpen:p},e.createElement(je,{className:"modal-cta__embed-wrapper"},s)))},exports.ModuleCardGroup=function(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.inverse,i=void 0===c||c,o=t.cards,s=Array.isArray(o)?o:[o];return e.createElement("div",{className:l("module-card-group",r&&"theme-".concat(r),i&&"theme-".concat(r,"--inverse"))},e.createElement("div",{className:"module-card-group__container"},e.createElement("div",{className:"module-card-group__grid"},s.map(function(t,n){return e.createElement(u,a({key:n},t,{theme:r}))}))))},exports.NewsArticlesPromoBlock=function(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.heading,i=t.cards,o=t.cardType,s=void 0===o?"featured-news":o;return e.createElement("section",{className:l("news-articles-promo-block",r&&"theme-".concat(r),s&&"news-articles-promo-block--".concat(s))},e.createElement("div",{className:"news-articles-promo-block__heading-container"},c&&e.createElement("h2",{className:"news-articles-promo-block__heading"},c)),e.createElement("div",{className:"news-articles-promo-block__cards news-articles-promo-block__cards--mobile"},"featured-news"===s&&e.createElement($e,{theme:r,type:"featured-news",cards:i,inverse:!0,cardTitleTag:"h3"}),"promo-video"===s&&e.createElement($e,{theme:r,type:"promo-video",cards:i,inverse:!0,cardTitleTag:"h3",setCardInverse:"dark"})),e.createElement("ul",{className:"news-articles-promo-block__cards news-articles-promo-block__cards--desktop"},i.map(function(t,n){return e.createElement("li",{key:n},"featured-news"===s&&e.createElement(qe,a({},t,{inverse:!0,titleTag:"h3"})),"promo-video"===s&&e.createElement(He,a({},t,{inverse:!1,titleTag:"h3"})))})))},exports.Pagination=function(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.numOfPages,c=t.onClick,i=t.currentPage,o=!ve("1248px");return r<=1?e.createElement(e.Fragment,null):e.createElement("div",{className:l("pagination",a&&"theme-".concat(a))},e.createElement("ul",{className:"pagination__container"},e.createElement("li",{className:"pagination__prev",key:"prev"},o?e.createElement(h,{theme:a,label:"Previous",onClick:function(){return c(i-1)},hollow:!0,disabled:i<1}):e.createElement(ye,{theme:a,icon:"arrow-left",title:"Previous",onClick:function(){return c(i-1)},disabled:i<1,inverse:!0})),e.createElement(Fa,{currentPage:i,onClick:c,theme:a,numOfPages:r}),e.createElement("li",{className:"pagination__next",key:"next"},o?e.createElement(h,{theme:a,label:"Next",onClick:function(){return c(i+1)},hollow:!0,disabled:i+1===r}):e.createElement(ye,{theme:a,icon:"arrow-right",title:"Next",onClick:function(){return c(i+1)},disabled:i+1===r,inverse:!0}))))},exports.PromoBlock=function(t){var n,r=t.theme,c=t.inverse,i=t.type,o=t.title,m=t.description,d=t.link,u=t.cards,h=t.imageOrientation,v=void 0===h?"left":h,g=t.titleTag,E=void 0===g?"h2":g,_=t.cardTitleTag,b=void 0===_?"h3":_,w=t.cardCopyIsRichText,C=void 0!==w&&w,y=t.fullWidth,N=void 0!==y&&y,k=t.fullWidthTitle,x=void 0!==k&&k,L=t.showFilters,T=void 0!==L&&L,M=t.firstFilterSelect,S=t.secondFilterSelect,H=t.imageHeight,P=void 0===H?"default":H,V=!1;ve("768px")?u.length>1&&(V=!0):(N&&u.length>2||u.length>3)&&(V=!0);var O=l(((n={})["promo-block__grid"]=!0,n["promo-block__grid--single"]=1===u.length,n["promo-block__grid--two-cards"]=2===u.length,n["promo-block__grid--three-cards"]=3===u.length,n["promo-block__grid--four-plus-cards"]=u.length>3,n));return e.createElement("div",{className:l("promo-block","promo-block--".concat(i),r&&"theme-".concat(r),c&&"theme-".concat(r,"--inverse"),N&&"promo-block--full-width")},e.createElement("div",{className:"promo-block__container"},e.createElement("div",{className:l("promo-block__top",x&&"promo-block__top--full-width")},o&&e.createElement(f,{htmlTag:E,classNames:l("promo-block__title","h3"===E&&"promo-block__title--h3")},o),m&&e.createElement(s,{theme:"uobmain",inverse:c,text:m}),d&&e.createElement("div",{className:"promo-block__text-link"},e.createElement(p,{theme:r,inverse:c,url:d.url,title:d.title,externalLink:d.externalLink}))),T&&e.createElement("div",{className:"promo-block__filters"},e.createElement("div",{className:"promo-block__filter-wrapper"},M&&e.createElement(aa,a({},M))),e.createElement("div",{className:"promo-block__filter-wrapper"},S&&e.createElement(aa,a({},S)))),e.createElement("div",{className:"promo-block__content"},e.createElement("div",{className:"promo-block__cards"},!V&&e.createElement("ul",{className:O},u.map(function(t,n){return e.createElement("li",{className:"promo-block__card-item",key:n},function(t){var n=a(a({},t),{cardCopyIsRichText:C,imageHeight:P});switch(i){case"promo":return e.createElement(Me,a({},n));case"promo-signpost":return e.createElement(Se,a({},t));case"promo-video":return e.createElement(He,a({},t));case"promo-profile":return e.createElement(Ae,a({},t));default:return e.createElement(e.Fragment,null)}}(a(a({},t),{inverse:c,isSingle:1===u.length,imageOrientation:v,titleTag:b})))})),V&&e.createElement($e,{theme:r,inverse:c,type:i,cards:u,cardTitleTag:b,cardCopyIsRichText:C})))))},exports.PromoBlockGrid=function(t){var n=t.theme,r=t.inverse,c=t.type,i=t.title,o=t.description,m=t.link,d=t.cards,u=t.imageOrientation,h=void 0===u?"left":u,v=t.fullWidth;return e.createElement("div",{className:l("promo-block-grid","promo-block-grid--".concat(c),n&&"theme-".concat(n),r&&"theme-".concat(n,"--inverse"),v&&"promo-block-grid--full-width"),id:"promo-block-grid"},e.createElement("div",{className:"promo-block-grid__container"},e.createElement("div",{className:"promo-block-grid__top"},i&&e.createElement("h2",null,i),o&&e.createElement(s,{theme:"uobmain",inverse:r,text:o}),m&&e.createElement("div",{className:"promo-block-grid__text-link"},e.createElement(p,{theme:"uobmain",inverse:r,url:m.url,title:m.title,externalLink:m.externalLink}))),e.createElement("div",{className:"promo-block-grid__content"},e.createElement("div",{className:"promo-block-grid__cards"},d.length>0&&e.createElement("ul",{className:"promo-block-grid__grid"},d.map(function(t,n){return e.createElement("li",{className:"promo-block-grid__card-item",key:n},function(t){switch(c){case"promo":return e.createElement(Me,a({},t));case"promo-signpost":return e.createElement(Se,a({},t));case"promo-video":return e.createElement(He,a({},t));default:return e.createElement(e.Fragment,null)}}(a(a({},t),{inverse:r,isSingle:1===d.length,imageOrientation:h,titleTag:i?"h3":"h2"})))}))))))},exports.QuoteBlock=function(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.inverse,c=t.title,i=t.description,o=t.cite,s=t.role,d=t.quote,u=t.quoteeProfileImage,h=t.quoteeProfileImageAltText,v=t.cta,f=t.fullWidth,g=void 0!==f&&f,E=t.htmlTag;return e.createElement("div",{className:l("quote-block","theme-".concat(a),r&&"theme-".concat(a,"--inverse"),g&&"quote-block--full-width")},(c||i)&&e.createElement(_,{theme:a,inverse:r,htmlTag:E,title:c,description:i}),e.createElement("blockquote",{className:l("quote-block__container",!u&&"quote-block__container--no-image")},e.createElement("div",{className:"quote-block__doublequote quote-block__doublequote--open"},e.createElement(m,{icon:"quote-marks",theme:a})),e.createElement("p",{className:"quote-block__quote"},d),u&&e.createElement("div",{className:"quote-block__quotee-image"},e.createElement(w,{src:{default:u},altText:h})),(o||s)&&e.createElement("footer",{className:"quote-block__cite"},o&&e.createElement("cite",{className:"quote-block__cite-cite"},o),s&&e.createElement("div",{className:"quote-block__cite-role"},s)),e.createElement("div",{className:"quote-block__doublequote quote-block__doublequote--close"},e.createElement(m,{icon:"quote-marks",theme:a})),v&&e.createElement("div",{className:"quote-block__optional-link"},e.createElement(p,{inverse:r,onKeyDown:function(){},theme:a,title:v.title,url:v.url}))))},exports.RelatedCourses=function(t){var n,r=t.theme,c=void 0===r?"uobmain":r,i=t.inverse,o=void 0===i||i,s=t.heading,m=t.description,d=t.linkProps,u=t.headingStyle,h=t.fullWidth,v=t.cards,f=ve("768px"),g=f&&v.length>1||!f&&h&&v.length>2||!f&&!h&&v.length>3,E=l(((n={})["related-courses__grid"]=!0,n["related-courses__grid--single"]=1===v.length,n["related-courses__grid--two-cards"]=2===v.length,n["related-courses__grid--three-cards"]=3===v.length,n["related-courses__grid--four-plus-cards"]=v.length>3,n));return e.createElement("section",{className:l("related-courses",c&&"theme-".concat(c),o&&"theme-".concat(c,"--inverse"),h&&"related-courses--full-width")},e.createElement("div",{className:"related-courses__container"},e.createElement("h2",{className:l("related-courses__heading",u&&"related-courses__heading--".concat(u))},s),m&&e.createElement("div",{className:"related-courses__description"},m),d&&d.url&&d.title&&e.createElement("div",{className:"related-courses__arrow-link-container"},e.createElement(p,{theme:c,inverse:o,title:d.title,url:d.url})),e.createElement("div",{className:"related-courses__cards"},!g&&e.createElement("ul",{className:E},v.map(function(t,n){return e.createElement("li",{className:"related-courses__card-item",key:n},e.createElement(Oe,a({},t)))})),g&&e.createElement($e,{theme:c,inverse:o,type:"related",cards:v,cardTitleTag:"h3"}))))},exports.ResearchStoryCarousel=function(t){var n,r=t.theme,c=void 0===r?"uobmain":r,i=t.inverse,o=void 0===i||i,s=t.fullWidth,m=void 0!==s&&s,d=t.heading,u=t.description,h=t.cards,p=t.singleLink,v=t.titleTag,f=void 0===v?"h2":v,g=t.cardTitleTag,E=void 0===g?"h3":g,b=ve("768px"),w=b&&h.length>1||!b&&h.length>2,C=l(((n={})["research-story-carousel__grid"]=!0,n["research-story-carousel__grid--single"]=1===h.length,n["research-story-carousel__grid--two-cards"]=2===h.length,n["research-story-carousel__grid--three-plus-cards"]=h.length>3,n));return e.createElement("section",{className:l("research-story-carousel",c&&"theme-".concat(c),o&&"theme-".concat(c,"--inverse"),m&&"research-story-carousel--full-width")},e.createElement("div",{className:"research-story-carousel__container"},(d||u||p)&&e.createElement(_,{theme:c,inverse:!0,htmlTag:f,title:d,description:u,linkProps:p,fullWidth:!0}),e.createElement("div",{className:"research-story-carousel__cards"},!w&&e.createElement("ul",{className:C},h.map(function(t,n){return e.createElement("li",{key:n},e.createElement(Be,a({},t)))})),w&&e.createElement($e,{theme:c,inverse:o,type:"research-story",cards:h,cardTitleTag:E}))))},exports.RichText=s,exports.ScholarshipCarousel=function(t){var n,r=t.theme,c=void 0===r?"uobmain":r,i=t.inverse,o=void 0===i||i,s=t.fullWidth,m=void 0!==s&&s,d=t.headingProps,u=t.cards,h=ve("768px"),p=h&&u.length>1||!h&&u.length>2,v=l(((n={})["scholarship-carousel__grid"]=!0,n["scholarship-carousel__grid--single"]=1===u.length,n["scholarship-carousel__grid--two-cards"]=2===u.length,n["scholarship-carousel__grid--three-plus-cards"]=u.length>3,n));return e.createElement("section",{className:l("scholarship-carousel",c&&"theme-".concat(c),o&&"theme-".concat(c,"--inverse"),m&&"scholarship-carousel--full-width")},e.createElement("div",{className:"scholarship-carousel__container"},d&&e.createElement(_,a({},d,{theme:c,inverse:o,fullWidth:m})),e.createElement("div",{className:"scholarship-carousel__cards"},!p&&e.createElement("ul",{className:v},u.map(function(t,n){return e.createElement("li",{className:"related-courses__card-item",key:n},e.createElement(Fe,a({},t,{inverse:o})))})),p&&e.createElement($e,{theme:c,inverse:o,type:"scholarship",cards:u,cardTitleTag:"h3"}))))},exports.ScrollableTable=function(t){var n=t.text,a=t.theme,r=void 0===a?"uobmain":a,c=t.inverse,i=t.fullWidth,o=void 0!==i&&i,s=t.removeBottomPadding,m=void 0!==s&&s,d=t.tableCategory,u=void 0===d?Ja.NotSpecified:d,h=e.useRef(null),p=e.useState(!1),v=p[0],f=p[1],g=e.useState(!0),E=g[0],_=g[1],b=e.useState(!1),w=b[0],C=b[1],y=e.useId(),N=function(){var e=h.current;e&&(f(e.scrollLeft>0),_(e.scrollLeft<e.scrollWidth-e.clientWidth))},k=e.useCallback(function(){var e=h.current;if(e){var t=e.scrollWidth>e.clientWidth;C(t),N()}},[]),x=function(e){var t=h.current;if(t){var n="left"===e?t.scrollLeft-200:t.scrollLeft+200;t.scrollTo({left:n,behavior:"smooth"})}};return e.useEffect(function(){k();var e=h.current;e&&e.addEventListener("scroll",N);var t=function(){return k()};return window.addEventListener("resize",t),function(){e&&e.removeEventListener("scroll",N),window.removeEventListener("resize",t)}},[k]),e.createElement("div",{className:l("scrollable-table",o&&"scrollable-table--full-width",r&&"theme-".concat(r),c&&"theme-".concat(r,"--inverse"),m&&"scrollable-table--no-bottom-padding")},e.createElement("div",{className:"scrollable-table__container"},e.createElement("span",null,w&&e.createElement("div",{className:"scrollable-table__scroll-button-wrapper"},e.createElement("p",null,"Scroll buttons"),e.createElement(ye,{key:"iconButtonLeft",theme:r,icon:"arrow-left",onClick:function(){return x("left")},title:"Scroll left",ariaControls:y,disabled:!v,inverse:c}),e.createElement(ye,{key:"iconButtonRight",theme:r,icon:"arrow-right",onClick:function(){return x("right")},title:"Scroll right",ariaControls:y,disabled:!E,inverse:c})),e.createElement("div",{className:l("scrollable-table__table-wrapper","scrollable-table__".concat(u),c&&"scrollable-table__".concat(u,"--inverse")),ref:h,id:y,tabIndex:0},e.createElement("span",{dangerouslySetInnerHTML:{__html:n}})))))},exports.SearchCourses=ra,exports.SidebarWrapper=function(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.sidebarElement,c=t.children;return e.createElement("div",{id:"sidebar",className:l("sidebar-wrapper",a&&"theme-".concat(a),!r&&"sidebar-wrapper--no-side-element")},e.createElement("div",{className:"sidebar-wrapper__grid-container"},r&&e.createElement("div",{className:"sidebar-wrapper__sidebar"},r),e.createElement("div",{className:"sidebar-wrapper__children"},c)))},exports.SignPost=function(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.inverse,c=void 0!==r&&r,i=t.items,o=t.fullWidth,s=void 0!==o&&o,m=t.htmlTag,d=void 0===m?"h2":m;return e.createElement("div",{className:l("signpost",s&&"signpost--full-width",a&&"theme-".concat(a),c&&"theme-".concat(a,"--inverse"))},e.createElement("div",{className:"signpost__container"},e.createElement("div",{className:"signpost__grid"},i.map(function(t){return e.createElement("div",{className:"signpost__item",key:t.title},t.tag&&e.createElement("p",{className:"signpost__tag"},t.tag),e.createElement(f,{htmlTag:d,classNames:"signpost__title"},t.title),e.createElement(p,{url:t.linkUrl,title:t.linkLabel,theme:a,inverse:c,externalLink:t.external}))}))))},exports.SingleButton=function(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.inverse,i=void 0!==c&&c,o=t.includeIcon,s=t.link,m=t.fullWidth;return e.createElement("div",{className:l("single-button",r&&"theme-".concat(r),i&&"theme-".concat(r,"--inverse"),m&&"single-button--full-width")},e.createElement("div",{className:"single-button__container"},o?e.createElement(xe,a({},s,{inverse:!i})):e.createElement(h,a({},s,{inverse:!i}))))},exports.SkipToContent=function(t){var n=t.theme,a=void 0===n?"uobmain":n;return e.createElement("div",{className:l("skip-to-content",a&&"theme-".concat(a))},e.createElement("a",{className:"skip-to-content__link",href:"#main"},"Skip to main content"))},exports.SocialFeed=function(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.inverse,c=void 0!==r&&r,i=t.curatorFeedId,o=t.curatorScriptSrc,s=t.heading;e.useEffect(function(){var e=document.createElement("script");return e.src=o,e.async=!0,e.id="curator-script",document.body.appendChild(e),function(){var e=document.getElementById("curator-script");e&&e.remove();var t=window;t.Curator&&(t.Curator=void 0);var n=document.getElementById(i);n&&(n.innerHTML="")}},[o,i]);var m=l("social-feed",a&&"theme-".concat(a),c&&"theme-".concat(a,"--inverse"));return e.createElement("section",{className:m},s&&e.createElement(_,{title:s.title,description:s.description,inverse:c,theme:"uobmain",linkProps:s.linkProps}),e.createElement("div",{className:"social-feed__container"},e.createElement("div",{id:i,className:"social-feed__embed","data-testid":"curator-feed-container"})))},exports.StaffListingCarousel=function(t){var n,r=t.theme,c=void 0===r?"uobmain":r,i=t.inverse,o=void 0===i||i,s=t.fullWidth,m=void 0!==s&&s,d=t.heading,u=t.headingStyle,h=void 0===u?null:u,v=t.cards,g=t.singleLink,E=t.titleTag,_=void 0===E?"h2":E,b=t.useCarousel,w=void 0===b||b,C=t.cardType,y=void 0===C?"staff":C,N=ve("768px"),k=w&&N&&v.length>1||w&&!N&&v.length>2,x="staff"===y,L=l(((n={})["staff-listing-carousel__grid"]=!0,n["staff-listing-carousel__grid--single"]=1===v.length,n["staff-listing-carousel__grid--two-cards"]=2===v.length,n["staff-listing-carousel__grid--three-plus-cards"]=v.length>3,n));return e.createElement("section",{className:l("staff-listing-carousel",c&&"theme-".concat(c),o&&"theme-".concat(c,"--inverse"),m&&"staff-listing-carousel--full-width",!w&&"staff-listing-carousel--no-carousel")},e.createElement("div",{className:"staff-listing-carousel__container"},d&&e.createElement(f,{htmlTag:_,classNames:l("staff-listing-carousel__heading","staff-listing-carousel__heading--".concat(_),h&&"staff-listing-carousel__heading--".concat(h))},d),e.createElement("div",{className:"staff-listing-carousel__cards"},!k&&e.createElement("ul",{className:L},v.map(function(t,n){return e.createElement("li",{className:"related-courses__card-item",key:n},x?e.createElement(Ve,a({},t,{theme:c,inverse:o,isSingle:1===v.length})):e.createElement(Ae,a({},t,{theme:c,inverse:o})))})),k&&e.createElement($e,{theme:c,inverse:o,type:y,cards:v,cardTitleTag:"h3"})),1===v.length&&g&&e.createElement(p,{theme:c,url:g.url,title:g.title,inverse:!0})))},exports.StandardListingFilter=function(t){var n=t.theme,r=t.heading,c=t.listingGroups,i=t.onClearFilters,o=t.onViewResults;return e.createElement("div",{className:l("standard-listing-filter",n&&"theme-".concat(n))},e.createElement("p",{className:"standard-listing-filter__heading"},r),e.createElement("ul",{className:"standard-listing-filter__list"},c.map(function(t){var r;return"date"===t.type?e.createElement("li",{className:"standard-listing-filter__item",key:t.name},e.createElement(Ya,a({},t,{theme:n,defaultValue:null!==(r=t.defaultValue)&&void 0!==r?r:"",onChange:t.onChange}))):"radio"===t.type?e.createElement("li",{className:"standard-listing-filter__item",key:t.name},e.createElement(_t,{type:"radio",heading:t.heading,theme:n,showMoreText:Qa(t.heading)||"",inputs:t.inputs.map(function(e){return{name:t.name,value:e.value,label:e.label,id:e.id,defaultChecked:!!t.defaultValue&&t.defaultValue===e.value,onChange:t.onChange}})})):"checkbox"===t.type?e.createElement("li",{className:"standard-listing-filter__item",key:t.name},e.createElement(_t,{type:"checkbox",heading:t.heading,theme:n,showMoreText:Qa(t.heading)||"",inputs:t.inputs.map(function(e){return{name:t.name,value:e.value,label:e.label,id:e.id,defaultChecked:!!t.defaultValues&&t.defaultValues.includes(e.value),onChange:t.onChange}})})):"select"===t.type?e.createElement("li",{className:"standard-listing-filter__item",key:t.name},e.createElement(Ka,{heading:t.heading,selectContent:t.selectContent,theme:n})):void 0})),o&&e.createElement("div",{className:"standard-listing-filter__results-button"},e.createElement(h,{label:"View selected results",onClick:o,theme:n})),e.createElement("div",{className:"standard-listing-filter__clear-button"},e.createElement(h,{label:"Clear filters",onClick:i,theme:n,hollow:!0})))},exports.TabsBlock=function(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.inverse,i=void 0!==c&&c,o=t.title,m=t.description,d=t.tabItems,u=t.fullWidth,f=t.htmlTag,g=void 0===f?"h2":f,E=t.removeBottomPadding,w=void 0!==E&&E,C=t.name,y=t.enableHashNavigation,N=void 0!==y&&y,k=e.useRef(null),x=e.useCallback(function(){return d.findIndex(function(e){return Da(null!=C?C:"",e.title)===window.location.hash.substring(1)})},[d,C]),L=e.useState(0),T=L[0],M=L[1],S=e.useState(-1),H=S[0],P=S[1],V=ve("1248px");function O(e){if(N){var t=window.location.href.replace(window.location.hash,""),n=Da(null!=C?C:"",d[e].title);history.pushState(null,"null",t.concat("#",n))}}function Z(e,t){e.preventDefault(),M(t),O(t)}e.useEffect(function(){if(0!==window.location.hash.length){var e=x();e<0||(M(e),P(e))}},[x,M]);var q=function(e){switch(e.key){case"ArrowLeft":case"ArrowUp":case"Left":case"Up":if(0===T)return;M(T-1),P(T-1),O(T-1);break;case"ArrowRight":case"ArrowDown":case"Right":case"Down":if(T>=d.length-1)return;M(T+1),P(T+1),O(T+1);break;case"Home":M(0),P(0),O(0);break;case"End":M(d.length-1),P(d.length-1),O(d.length-1)}};function B(){var e="h3";return o&&"h2"===g?e="h3":o&&"h3"===g&&(e="h4"),e}return e.useEffect(function(){var e=function(e){if(e.preventDefault(),0!==window.location.hash.length){var t=x();t<0||(M(t),P(t))}};return window.addEventListener("hashchange",e),function(){window.removeEventListener("hashchange",e)}},[T,x]),e.createElement(e.Fragment,null,V&&e.createElement(b,{heading:{title:o,description:m,fullWidth:u,htmlTag:g},theme:r,inverse:i,fullWidth:u,accordionItems:d.map(function(e,t){return{key:e.title||t,title:e.title,text:e.content,titleTag:e.titleTag?e.titleTag:B(),primaryButton:e.primaryButton,secondaryButton:e.secondaryButton,link:e.link}})}),e.createElement("div",{className:l("tabs",r&&"theme-".concat(r),i&&"theme-".concat(r,"--inverse"),u&&"tabs--full-width",w&&"tabs--no-bottom-padding"),id:"tabs",ref:k},!V&&e.createElement(e.Fragment,null,e.createElement(_,{theme:r,inverse:i,htmlTag:g,title:o,description:m,fullWidth:u}),e.createElement("div",{className:"tabs__container"},e.createElement("span",null,e.createElement(Ia,{theme:r,inverse:i},d.map(function(t,n){return e.createElement(Ra,{key:n,id:n,theme:r,inverse:i,tabItem:t,tabListTopRef:k,isActive:n===T,hasFocus:n===H,enableHashNavigation:N,tabsBlockName:C,handleClick:Z,handleKeyboardNavigation:q})})),d.map(function(t,n){return e.createElement(Aa,{key:n,isActive:n===T,inverse:i,theme:r,title:t.title,tabsBlockName:C,htmlTag:t.titleTag?t.titleTag:B()},t.content&&e.createElement(s,{theme:r,inverse:i,text:t.content}),t.accordionItems&&t.accordionItems.map(function(t){return e.createElement(v,a({key:t.key},t,{inverse:i}))}),(t.primaryButton&&t.primaryButton.text||t.secondaryButton&&t.secondaryButton.text)&&e.createElement("div",{className:"tabs__optional-buttons"},t.primaryButton&&t.primaryButton.text&&e.createElement(h,{label:t.primaryButton.text,url:t.primaryButton.url,theme:r,inverse:!i}),t.secondaryButton&&t.secondaryButton.text&&e.createElement(h,{hollow:!0,label:t.secondaryButton.text,url:t.secondaryButton.url,theme:r,inverse:!i})),t.link&&t.link.text&&e.createElement("div",{className:"tabs__optional-link"},e.createElement(p,{theme:r,inverse:i,url:t.link.url,title:t.link.text})))}))))))},exports.TextOverMedia=function(t){var n=t.theme,r=t.inverse,c=t.image,i=t.imageCaption,o=t.imageCredit,s=t.contentPosition,m=void 0===s?"left":s,d=t.children,u=ve("768px"),h=i||o;return c&&c.src&&d?e.createElement("section",{className:l("text-over-media",n&&"theme-".concat(n),r&&"theme-".concat(n,"--inverse"))},e.createElement("div",{className:l("text-over-media__container","right"===m&&"text-over-media__mobile--right")},u&&e.createElement("div",{className:"text-over-media__mobile-block"},e.createElement("div",{className:"text-over-media__image-wrapper"},e.createElement(w,a({},c))),h&&e.createElement("figcaption",{className:"text-over-media__figcaption"},i&&e.createElement("p",{className:"text-over-media__caption"},i),o&&e.createElement("p",{className:"text-over-media__credit"},o))),!u&&e.createElement(e.Fragment,null,e.createElement("figure",{className:"text-over-media__image-container"},e.createElement("div",{className:"text-over-media__height-wrapper"},e.createElement("div",{className:"text-over-media__image-wrapper"},e.createElement(w,a({},c)))),e.createElement("div",{className:"text-over-media__parallax-container"},e.createElement(st,{offset:100},e.createElement("div",{className:"text-over-media__parallax-content"},e.createElement("div",{className:"text-over-media__image-wrapper"},e.createElement(w,a({},c))))))),h&&e.createElement("figcaption",{className:"text-over-media__figcaption"},i&&e.createElement("p",{className:"text-over-media__caption"},i),o&&e.createElement("p",{className:"text-over-media__credit"},o))),e.createElement("div",{className:l("text-over-media__media-container","left"===m&&"text-over-media__media-container--left","right"===m&&"text-over-media__media-container--right")},d))):null},exports.TextWithBackground=function(t){var n=t.text,a=t.theme,r=void 0===a?"uobmain":a,c=t.inverse,i=t.headingLevel,o=t.headingText,m=t.url,d=t.linkTitle,u=t.externalLink,p=t.linkStyle,v=t.fullWidth,f=t.removeBottomPadding,g=void 0!==f&&f,E=i;return e.createElement("div",{className:l("text-with-background",r&&"theme-".concat(r),c&&"theme-".concat(r,"--inverse"),v&&"text-with-background--full-width",g&&"text-with-background--no-bottom-padding")},o&&e.createElement("div",{className:"text-with-background__heading-wrapper"},e.createElement(E,null,o)),e.createElement(s,{text:n,inverse:c,theme:r}),m&&d&&e.createElement("div",{className:"text-with-background__link-wrapper"},e.createElement("div",{className:"text-with-background__link-inner-wrapper"},("primary"===p||"secondary"===p)&&e.createElement(h,{url:m,theme:r,label:d,externalLink:u,hollow:"secondary"===p,inverse:!c}),"paragraph-link"===p&&e.createElement(la,{url:m,label:d,externalLink:u,theme:r,inverse:c}))))},exports.TopicSelector=function(t){var n=t.topics,a=t.theme,r=void 0===a?"uobmain":a,c=t.titleTag,i=t.heading;return e.createElement("section",{className:l("topics-selector",r&&"theme-".concat(r))},e.createElement("div",{className:"topics-selector__container"},"h2"===c?e.createElement("h2",{className:"topics-selector__heading"},i):e.createElement("h3",{className:"topics-selector__heading"},i),e.createElement("ul",{className:"topics-selector__topics-container"},n.map(function(t,n){return e.createElement("li",{className:"topics-selector__topic",key:n},e.createElement($a,{theme:r,label:t.label,url:t.url,externalLink:t.externalLink}))}))))},exports.TwoColumnWrapper=function(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.firstColumn,c=t.secondColumn;return e.createElement("div",{className:l("two-column-wrapper",a&&"theme-".concat(a))},e.createElement("div",{className:"two-column-wrapper__grid-container"},e.createElement("div",{className:l("two-column-wrapper__first-column",!c&&"two-column-wrapper__first-column-centred")},r),c&&e.createElement("div",{className:"two-column-wrapper__second-column"},c)))},exports.VideoCardComponent=function(n){var a=n.theme,r=n.tag,c=n.title,i=n.linkUrl,o=n.linkText,s=n.externalLink,m=n.cards,d={initial:{opacity:0,y:150},animate:function(e){return{opacity:1,y:0,transition:{duration:.8,type:"spring",bounce:.2,delay:.2*e}}}};return e.createElement("div",{className:l("video-card-component",a&&"theme-".concat(a)),id:"video-card-component"},e.createElement("div",{className:"video-card-component__content"},r&&e.createElement("p",{className:"video-card-component__tag"},r),e.createElement("h2",{className:"video-card-component__title"},c),i&&o&&e.createElement("div",{className:"video-card-component__link"},e.createElement(p,{theme:a,url:i,title:o,inverse:!0,externalLink:s})),e.createElement("div",{className:"video-card-component__carousel"},e.createElement($e,{theme:a,type:"video",inverse:!0,cards:m,cardTitleTag:"h3"})),e.createElement("ul",{className:l("video-card-component__cards-desktop",(!i||!o)&&"video-card-component__cards-desktop--no-link")},m.map(function(n,r){return e.createElement(t.motion.li,{key:r,variants:d,initial:"initial",whileInView:"animate",viewport:{once:!0,amount:.2},custom:r},r<=1?e.createElement("div",{className:"video-card-component__lines video-card-component__lines--".concat(r)},1===r&&e.createElement("svg",{width:"406",height:"128",viewBox:"0 0 406 128",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M1 1L123 29L210 127.5",stroke:"black"}),e.createElement("path",{d:"M13 112L123 29L405 51",stroke:"black"}))):"",e.createElement(Le,{theme:a,image:{src:{default:n.image.src.default,medium:n.image.src.medium,small:n.image.src.small},altText:""},title:n.title,youtubeId:n.youtubeId,buttonLabel:n.buttonLabel,titleTag:"h3"}))}))))},exports.VideoEmbed=function(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.inverse,i=void 0!==c&&c,o=t.imageSrc,s=t.videoUrl,m=t.videoId,d=t.heading,u=t.audioDescribedVideoId,h=t.audioDescribedVideoUrl,p=t.transcript,f=t.fullWidth,g=void 0!==f&&f,E=t.videoCaption,b=t.videoCredit,w=e.useState(!1),C=w[0],y=w[1];return e.createElement("div",{className:l("video-embed",g&&"video-embed--full-width",r&&"theme-".concat(r),i&&"theme-".concat(r,"--inverse"))},d&&e.createElement(_,a({},d,{theme:r,inverse:i})),e.createElement("div",{className:"video-embed__grid"},e.createElement("div",{className:"video-embed__content-wrapper"},e.createElement(er,{theme:r,imageSrc:o,videoUrl:C?s:h,videoId:C?u:m}),(E||b)&&e.createElement("div",{className:"video-embed__caption-wrapper"},E&&e.createElement("p",{className:"video-embed__caption"},E),b&&e.createElement("p",{className:"video-embed__credit"},b)),(u||h)&&(C?e.createElement("button",{className:"video-embed__audio-described-button",onClick:function(){return y(!1)}},"Non-audio described version"):e.createElement("button",{className:"video-embed__audio-described-button",onClick:function(){return y(!0)}},"Audio described version")),p&&e.createElement("div",{className:"video-embed__transcript"},e.createElement(v,{titleTag:"h3",theme:r,title:"Transcript",text:p,inverse:i})))))};
|
|
23
|
+
function Cn(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}function yn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t);if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nn(Object(n),!0).forEach(function(t){yn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xn(e){return function(e){if(Array.isArray(e))return Cn(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 Cn(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)?Cn(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.")}()}var Ln,Tn,Mn=function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n._setPausedState(!0)}var a=e.indexOf(t);-1===a||e.splice(a,1),e.push(t)},Sn=function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)},Hn=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},Pn=function(e){return Hn(e)&&!e.shiftKey},Vn=function(e){return Hn(e)&&e.shiftKey},On=function(e){return setTimeout(e,0)},Zn=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return"function"==typeof e?e.apply(void 0,n):e},qn=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},Bn=[],Fn=wt(Object.freeze({__proto__:null,createFocusTrap:function(e,t){var n,a=(null==t?void 0:t.document)||document,r=(null==t?void 0:t.trapStack)||Bn,c=kn({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Pn,isKeyBackward:Vn},t),l={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},i=function(e,t,n){return e&&void 0!==e[t]?e[t]:c[n||t]},o=function(e,t){var n="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return l.containerGroups.findIndex(function(t){var a=t.container,r=t.tabbableNodes;return a.contains(e)||(null==n?void 0:n.includes(a))||r.find(function(t){return t===e})})},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.hasFallback,r=void 0!==n&&n,l=t.params,i=void 0===l?[]:l,o=c[e];if("function"==typeof o&&(o=o.apply(void 0,xn(i))),!0===o&&(o=void 0),!o){if(void 0===o||!1===o)return o;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var s=o;if("string"==typeof o){try{s=a.querySelector(o)}catch(t){throw new Error("`".concat(e,'` appears to be an invalid selector; error="').concat(t.message,'"'))}if(!s&&!r)throw new Error("`".concat(e,"` as selector refers to no known node"))}return s},m=function(){var e=s("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!bn(e,c.tabbableOptions))if(o(a.activeElement)>=0)e=a.activeElement;else{var t=l.tabbableGroups[0];e=t&&t.firstTabbableNode||s("fallbackFocus")}else null===e&&(e=s("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},d=function(){if(l.containerGroups=l.containers.map(function(e){var t=fn(e,c.tabbableOptions),n=gn(e,c.tabbableOptions),a=t.length>0?t[0]:void 0,r=t.length>0?t[t.length-1]:void 0,l=n.find(function(e){return En(e)}),i=n.slice().reverse().find(function(e){return En(e)}),o=!!t.find(function(e){return cn(e)>0});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:o,firstTabbableNode:a,lastTabbableNode:r,firstDomTabbableNode:l,lastDomTabbableNode:i,nextTabbableNode:function(e){var a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t.indexOf(e);return r<0?a?n.slice(n.indexOf(e)+1).find(function(e){return En(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return En(e)}):t[r+(a?1:-1)]}}}),l.tabbableGroups=l.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),l.tabbableGroups.length<=0&&!s("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(l.containerGroups.find(function(e){return e.posTabIndexesFound})&&l.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},u=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?u(t.shadowRoot):t},h=function(e){!1!==e&&e!==u(document)&&(e&&e.focus?(e.focus({preventScroll:!!c.preventScroll}),l.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):h(m()))},p=function(e){var t=s("setReturnFocus",{params:[e]});return t||!1!==t&&e},v=function(e){var t=e.target,n=e.event,a=e.isBackward,r=void 0!==a&&a;t=t||qn(n),d();var i=null;if(l.tabbableGroups.length>0){var m=o(t,n),u=m>=0?l.containerGroups[m]:void 0;if(m<0)i=r?l.tabbableGroups[l.tabbableGroups.length-1].lastTabbableNode:l.tabbableGroups[0].firstTabbableNode;else if(r){var h=l.tabbableGroups.findIndex(function(e){var n=e.firstTabbableNode;return t===n});if(h<0&&(u.container===t||bn(t,c.tabbableOptions)&&!En(t,c.tabbableOptions)&&!u.nextTabbableNode(t,!1))&&(h=m),h>=0){var p=0===h?l.tabbableGroups.length-1:h-1,v=l.tabbableGroups[p];i=cn(t)>=0?v.lastTabbableNode:v.lastDomTabbableNode}else Hn(n)||(i=u.nextTabbableNode(t,!1))}else{var f=l.tabbableGroups.findIndex(function(e){var n=e.lastTabbableNode;return t===n});if(f<0&&(u.container===t||bn(t,c.tabbableOptions)&&!En(t,c.tabbableOptions)&&!u.nextTabbableNode(t))&&(f=m),f>=0){var g=f===l.tabbableGroups.length-1?0:f+1,E=l.tabbableGroups[g];i=cn(t)>=0?E.firstTabbableNode:E.firstDomTabbableNode}else Hn(n)||(i=u.nextTabbableNode(t))}}else i=s("fallbackFocus");return i},f=function(e){var t=qn(e);o(t,e)>=0||(Zn(c.clickOutsideDeactivates,e)?n.deactivate({returnFocus:c.returnFocusOnDeactivate}):Zn(c.allowOutsideClick,e)||e.preventDefault())},g=function(e){var t=qn(e),n=o(t,e)>=0;if(n||t instanceof Document)n&&(l.mostRecentlyFocusedNode=t);else{var a;e.stopImmediatePropagation();var r=!0;if(l.mostRecentlyFocusedNode)if(cn(l.mostRecentlyFocusedNode)>0){var i=o(l.mostRecentlyFocusedNode),s=l.containerGroups[i].tabbableNodes;if(s.length>0){var d=s.findIndex(function(e){return e===l.mostRecentlyFocusedNode});d>=0&&(c.isKeyForward(l.recentNavEvent)?d+1<s.length&&(a=s[d+1],r=!1):d-1>=0&&(a=s[d-1],r=!1))}}else l.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return cn(e)>0})})||(r=!1);else r=!1;r&&(a=v({target:l.mostRecentlyFocusedNode,isBackward:c.isKeyBackward(l.recentNavEvent)})),h(a||(l.mostRecentlyFocusedNode||m()))}l.recentNavEvent=void 0},E=function(e){(c.isKeyForward(e)||c.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];l.recentNavEvent=e;var n=v({event:e,isBackward:t});n&&(Hn(e)&&e.preventDefault(),h(n))}(e,c.isKeyBackward(e))},_=function(e){var t;"Escape"!==(null==(t=e)?void 0:t.key)&&"Esc"!==(null==t?void 0:t.key)&&27!==(null==t?void 0:t.keyCode)||!1===Zn(c.escapeDeactivates,e)||(e.preventDefault(),n.deactivate())},b=function(e){var t=qn(e);o(t,e)>=0||Zn(c.clickOutsideDeactivates,e)||Zn(c.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},w=function(){if(l.active)return Mn(r,n),l.delayInitialFocusTimer=c.delayInitialFocus?On(function(){h(m())}):h(m()),a.addEventListener("focusin",g,!0),a.addEventListener("mousedown",f,{capture:!0,passive:!1}),a.addEventListener("touchstart",f,{capture:!0,passive:!1}),a.addEventListener("click",b,{capture:!0,passive:!1}),a.addEventListener("keydown",E,{capture:!0,passive:!1}),a.addEventListener("keydown",_),n},C=function(){if(l.active)return a.removeEventListener("focusin",g,!0),a.removeEventListener("mousedown",f,!0),a.removeEventListener("touchstart",f,!0),a.removeEventListener("click",b,!0),a.removeEventListener("keydown",E,!0),a.removeEventListener("keydown",_),n},y="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver(function(e){e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===l.mostRecentlyFocusedNode})})&&h(m())}):void 0,N=function(){y&&(y.disconnect(),l.active&&!l.paused&&l.containers.map(function(e){y.observe(e,{subtree:!0,childList:!0})}))};return n={get active(){return l.active},get paused(){return l.paused},activate:function(e){if(l.active)return this;var t=i(e,"onActivate"),n=i(e,"onPostActivate"),r=i(e,"checkCanFocusTrap");r||d(),l.active=!0,l.paused=!1,l.nodeFocusedBeforeActivation=u(a),null==t||t();var c=function(){r&&d(),w(),N(),null==n||n()};return r?(r(l.containers.concat()).then(c,c),this):(c(),this)},deactivate:function(e){if(!l.active)return this;var t=kn({onDeactivate:c.onDeactivate,onPostDeactivate:c.onPostDeactivate,checkCanReturnFocus:c.checkCanReturnFocus},e);clearTimeout(l.delayInitialFocusTimer),l.delayInitialFocusTimer=void 0,C(),l.active=!1,l.paused=!1,N(),Sn(r,n);var a=i(t,"onDeactivate"),o=i(t,"onPostDeactivate"),s=i(t,"checkCanReturnFocus"),m=i(t,"returnFocus","returnFocusOnDeactivate");null==a||a();var d=function(){On(function(){m&&h(p(l.nodeFocusedBeforeActivation)),null==o||o()})};return m&&s?(s(p(l.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(e){return l.active?(l.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return l.active?(l.manuallyPaused=!1,r[r.length-1]!==this?this:this._setPausedState(!1,e)):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return l.containers=t.map(function(e){return"string"==typeof e?a.querySelector(e):e}),l.active&&d(),N(),this}},Object.defineProperties(n,{_isManuallyPaused:{value:function(){return l.manuallyPaused}},_setPausedState:{value:function(e,t){if(l.paused===e)return this;if(l.paused=e,e){var n=i(t,"onPause"),a=i(t,"onPostPause");null==n||n(),C(),N(),null==a||a()}else{var r=i(t,"onUnpause"),c=i(t,"onPostUnpause");null==r||r(),d(),w(),N(),null==c||c()}return this}}}),n.updateContainerElements(e),n}})),Dn=wt(wn);var In=function(){if(Tn)return Ln;function t(e){return t="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},t(e)}function n(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,i(a.key),a)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e,n,a){return n=c(n),function(e,n){if(n&&("object"==t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,r()?Reflect.construct(n,a||[],c(e).constructor):n.apply(e,a))}function r(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(r=function(){return!!e})()}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function i(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var r=a.call(e,n);if("object"!=t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:n+""}Tn=1;var o=e,s=Kt(),m=Fn.createFocusTrap,d=Dn.isFocusable,u=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(n=a(this,t,[e]),"getNodeForOption",function(e){var t,n=null!==(t=this.internalOptions[e])&&void 0!==t?t:this.originalOptions[e];if("function"==typeof n){for(var a=arguments.length,r=new Array(a>1?a-1:0),c=1;c<a;c++)r[c-1]=arguments[c];n=n.apply(void 0,r)}if(!0===n&&(n=void 0),!n){if(void 0===n||!1===n)return n;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var l,i=n;if("string"==typeof n&&!(i=null===(l=this.getDocument())||void 0===l?void 0:l.querySelector(n)))throw new Error("`".concat(e,"` as selector refers to no known node"));return i}),n.handleDeactivate=n.handleDeactivate.bind(n),n.handlePostDeactivate=n.handlePostDeactivate.bind(n),n.handleClickOutsideDeactivates=n.handleClickOutsideDeactivates.bind(n),n.internalOptions={returnFocusOnDeactivate:!1,checkCanReturnFocus:null,onDeactivate:n.handleDeactivate,onPostDeactivate:n.handlePostDeactivate,clickOutsideDeactivates:n.handleClickOutsideDeactivates},n.originalOptions={returnFocusOnDeactivate:!0,onDeactivate:null,onPostDeactivate:null,checkCanReturnFocus:null,clickOutsideDeactivates:!1};var r=e.focusTrapOptions;for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&("returnFocusOnDeactivate"!==c&&"onDeactivate"!==c&&"onPostDeactivate"!==c&&"checkCanReturnFocus"!==c&&"clickOutsideDeactivates"!==c?n.internalOptions[c]=r[c]:n.originalOptions[c]=r[c]);return n.outsideClick=null,n.focusTrapElements=e.containerElements||[],n.updatePreviousElement(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),n(t,[{key:"getDocument",value:function(){return this.props.focusTrapOptions.document||("undefined"!=typeof document?document:void 0)}},{key:"getReturnFocusNode",value:function(){var e=this.getNodeForOption("setReturnFocus",this.previouslyFocusedElement);return e||!1!==e&&this.previouslyFocusedElement}},{key:"updatePreviousElement",value:function(){var e=this.getDocument();e&&(this.previouslyFocusedElement=e.activeElement)}},{key:"deactivateTrap",value:function(){this.focusTrap&&this.focusTrap.active&&this.focusTrap.deactivate({returnFocus:!1,checkCanReturnFocus:null,onDeactivate:this.originalOptions.onDeactivate})}},{key:"handleClickOutsideDeactivates",value:function(e){var t="function"==typeof this.originalOptions.clickOutsideDeactivates?this.originalOptions.clickOutsideDeactivates.call(null,e):this.originalOptions.clickOutsideDeactivates;return t&&(this.outsideClick={target:e.target,allowDeactivation:t}),t}},{key:"handleDeactivate",value:function(){this.originalOptions.onDeactivate&&this.originalOptions.onDeactivate.call(null),this.deactivateTrap()}},{key:"handlePostDeactivate",value:function(){var e=this,t=function(){var t=e.getReturnFocusNode(),n=!(!e.originalOptions.returnFocusOnDeactivate||null==t||!t.focus||e.outsideClick&&(!e.outsideClick.allowDeactivation||d(e.outsideClick.target,e.internalOptions.tabbableOptions))),a=e.internalOptions.preventScroll,r=void 0!==a&&a;n&&t.focus({preventScroll:r}),e.originalOptions.onPostDeactivate&&e.originalOptions.onPostDeactivate.call(null),e.outsideClick=null};this.originalOptions.checkCanReturnFocus?this.originalOptions.checkCanReturnFocus.call(null,this.getReturnFocusNode()).then(t,t):t()}},{key:"setupFocusTrap",value:function(){this.focusTrap?this.props.active&&!this.focusTrap.active&&(this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause()):this.focusTrapElements.some(Boolean)&&(this.focusTrap=this.props._createFocusTrap(this.focusTrapElements,this.internalOptions),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause())}},{key:"componentDidMount",value:function(){this.props.active&&this.setupFocusTrap()}},{key:"componentDidUpdate",value:function(e){if(this.focusTrap){e.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var t=!e.active&&this.props.active,n=e.active&&!this.props.active,a=!e.paused&&this.props.paused,r=e.paused&&!this.props.paused;if(t&&(this.updatePreviousElement(),this.focusTrap.activate()),n)return void this.deactivateTrap();a&&this.focusTrap.pause(),r&&this.focusTrap.unpause()}else e.containerElements!==this.props.containerElements&&(this.focusTrapElements=this.props.containerElements),this.props.active&&(this.updatePreviousElement(),this.setupFocusTrap())}},{key:"componentWillUnmount",value:function(){this.deactivateTrap()}},{key:"render",value:function(){var e=this,t=this.props.children?o.Children.only(this.props.children):void 0;if(t){if(t.type&&t.type===o.Fragment)throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");return o.cloneElement(t,{ref:function(n){var a=e.props.containerElements;t&&("function"==typeof t.ref?t.ref(n):t.ref&&(t.ref.current=n)),e.focusTrapElements=a||[n]}})}return null}}])}(o.Component),h="undefined"==typeof Element?Function:Element;return u.propTypes={active:s.bool,paused:s.bool,focusTrapOptions:s.shape({document:s.object,onActivate:s.func,onPostActivate:s.func,checkCanFocusTrap:s.func,onPause:s.func,onPostPause:s.func,onUnpause:s.func,onPostUnpause:s.func,onDeactivate:s.func,onPostDeactivate:s.func,checkCanReturnFocus:s.func,initialFocus:s.oneOfType([s.instanceOf(h),s.string,s.bool,s.func]),fallbackFocus:s.oneOfType([s.instanceOf(h),s.string,s.func]),escapeDeactivates:s.oneOfType([s.bool,s.func]),clickOutsideDeactivates:s.oneOfType([s.bool,s.func]),returnFocusOnDeactivate:s.bool,setReturnFocus:s.oneOfType([s.instanceOf(h),s.string,s.bool,s.func]),allowOutsideClick:s.oneOfType([s.bool,s.func]),preventScroll:s.bool,tabbableOptions:s.shape({displayCheck:s.oneOf(["full","legacy-full","non-zero-area","none"]),getShadowRoot:s.oneOfType([s.bool,s.func])}),trapStack:s.array,isKeyForward:s.func,isKeyBackward:s.func}),containerElements:s.arrayOf(s.instanceOf(h)),children:s.oneOfType([s.element,s.instanceOf(h)])},u.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:m},Ln=u}(),An=bt(In);n();var Rn=function(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.inverse,c=void 0!==r&&r,i=t.onClick,o=t.label,s=t.level,d=t.autoFocus,u=void 0!==d&&d;return e.createElement("button",{className:l("nav-link",a&&"theme-".concat(a),c&&"theme-".concat(a,"--inverse"),"nav-link--".concat(s)),onClick:i,autoFocus:u},e.createElement("span",{className:"nav-link__label"},o,e.createElement("span",{className:"nav-link__icon"},e.createElement(m,{icon:"chevron-right",theme:a,inverse:c,ariaHidden:!0}))))};n();var $n=function(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.inverse,c=void 0!==r&&r,i=t.url,o=t.label,s=t.level,m=t.autoFocus,d=void 0!==m&&m,u=t.externalLink,h=void 0!==u&&u,p=e.useRef(null);return e.useEffect(function(){d&&p.current&&p.current.focus()},[d]),e.createElement("a",{className:l("page-link",a&&"theme-".concat(a),c&&"theme-".concat(a,"--inverse"),"page-link--".concat(s)),href:i,ref:p,target:h?"_blank":"_self",rel:h?"noopener noreferrer":""},o)};function jn(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.inverse,i=void 0===c||c,o=t.image,s=t.tag,d=t.title,u=t.href,h=t.linkText,v=t.description,f=t.type;return e.createElement("div",{className:l("card-menu",f&&"card-menu--".concat(f),r&&"theme-".concat(r),i&&"theme-".concat(r,"--inverse"))},e.createElement("figure",{className:"card-menu__figure"},e.createElement("div",{className:"card-menu__image-wrapper"},o&&e.createElement(w,a({},o,{altText:"",loadingAttr:"lazy"}))),e.createElement("figcaption",{className:"card-menu__text-content"},"secondary"===f&&e.createElement(e.Fragment,null,e.createElement("p",{className:"card-menu__tag card-menu__tag"},s),e.createElement("a",{className:"card-menu__link",href:u},e.createElement("h2",{className:"card-menu__title"},d))),"primary"===f?e.createElement(e.Fragment,null,e.createElement("h2",{className:"card-menu__title"},d),e.createElement("p",{className:"card-menu__description"},v),e.createElement("div",{className:"card-menu__cta"},e.createElement(p,{theme:r,url:u,title:h||d}))):e.createElement("div",{className:"card-menu__arrow"},e.createElement(m,{icon:"arrow-right",theme:r,ariaHidden:!0})))))}n();var zn=function(t){var n=t.primaryLinks,a=t.secondaryLinks,r=t.onClickNavLink,c=t.menuCards,i=t.theme,o=t.inverse;return e.createElement("div",{className:l("header__main-menu",i&&"theme-".concat(i),o&&"theme-".concat(i,"--inverse"))},e.createElement("div",{className:"header__main-menu-menu-wrapper"},e.createElement("ul",{className:"header__main-menu-primary-list"},n.map(function(t,n){return t.children?e.createElement(Rn,{label:t.label,onClick:function(){return r(n)},key:t.label,theme:i,inverse:o,level:"level-one",autoFocus:0===n}):e.createElement($n,{label:t.label,url:t.url,key:t.label,theme:i,inverse:o,level:"level-one",autoFocus:0===n,externalLink:t.externalLink})})),e.createElement("ul",{className:"header__main-menu-secondary-list"},a.map(function(t,a){return t.children?e.createElement(Rn,{label:t.label,onClick:function(){return r(a+n.length)},key:t.label,theme:i,inverse:o,level:"level-two"}):e.createElement($n,{label:t.label,url:t.url,key:t.label,theme:i,inverse:o,level:"level-two",externalLink:t.externalLink})}))),e.createElement("ul",{className:"header__main-menu-promo-cards"},c&&c.map(function(t,n){return e.createElement("li",{key:n},e.createElement(jn,{theme:i,image:{src:{small:t.image.src.small,medium:t.image.src.medium,default:t.image.src.default}},description:t.description,tag:t.tag,title:t.title,linkText:t.linkText,href:t.href,type:t.type}))})))};n();var Wn=function(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.inverse,c=void 0!==r&&r,i=t.label,o=t.onClick;return e.createElement("button",{className:l("reverse-link-with-arrow",a&&"theme-".concat(a),c&&"theme-".concat(a,"--inverse")),onClick:o},e.createElement("span",{className:"reverse-link-with-arrow__title"},e.createElement("span",{className:"reverse-link-with-arrow__icon"},e.createElement(m,{icon:"arrow-left",theme:a,inverse:c,ariaHidden:!0})),i))},Un=function(t){var n=t.headingLink,a=t.onClickGoBack,r=t.onClickNavLink,c=t.theme,i=t.backLinkLabel,o=t.inverse,s=void 0===o||o;return e.createElement("div",{className:l("header__nested-menu",c&&"theme-".concat(c),s&&"theme-".concat(c,"--inverse"))},e.createElement(Wn,{label:i,onClick:a,theme:c,inverse:s}),e.createElement("div",{className:"header__heading-link"},e.createElement($n,{theme:c,inverse:s,url:n.url,label:n.label,level:"level-one",autoFocus:!0})),e.createElement("div",{className:"header__content-wrapper"},n.description&&e.createElement("p",{className:"header__description"},n.description),n.children&&e.createElement("ul",{className:l("header__link-list",n.description&&"header__link-list--with-desc")},n.children.map(function(t,n){return t.children?e.createElement(Rn,{label:t.label,onClick:function(){return r(n)},key:t.label,inverse:s,theme:c,level:"level-two"}):e.createElement($n,{label:t.label,url:t.url,key:t.label,theme:c,inverse:s,level:"level-two",externalLink:t.externalLink})}))))};n();var Gn=function(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.inverse,c=void 0!==r&&r,i=t.fieldName,o=t.hiddenLabel,s=void 0!==o&&o,m=t.defaultValue,d=t.placeholder,u=t.required,h=void 0!==u&&u,p=t.onChange;return e.createElement("div",{className:l("form-input",a&&"theme-".concat(a),c&&"theme-".concat(a,"--inverse"))},e.createElement("label",{htmlFor:i,className:l("form-input__label",s&&"sr-only")},"Select ",i),e.createElement("input",{className:"form-input__input",id:i,name:i,type:"text",required:h,defaultValue:m,placeholder:d,onChange:p}))},Kn=function(t){var n=t.title,a=void 0===n?"Search":n,r=t.placeholder,c=void 0===r?"Start typing":r,l=t.introText,i=t.handleSearchChange,o=t.handleSearchSubmit,s=t.theme,m=t.inverse,d=t.onClickGoBack,u=t.backLinkLabel,p=t.recommendedLinks,v=t.recommendedLinkTitle;return e.createElement("div",{className:"header-search"},d&&u&&e.createElement("div",{className:"header-search__back-link"},e.createElement(Wn,{label:u,onClick:d,theme:s})),e.createElement("div",{className:"header-search__container"},e.createElement("h2",{className:"header-search__title"},a),e.createElement("p",{className:"header-search__intro"},l),e.createElement("form",{className:"header-search__form",method:"post",onSubmit:o},e.createElement("div",{className:"header-search__search-wrapper"},e.createElement(Gn,{theme:s,inverse:!1,fieldName:"search",hiddenLabel:!0,placeholder:c,onChange:i}),e.createElement(ye,{theme:s,inverse:!m,title:"Search",icon:"search",isSubmit:!0})),e.createElement(h,{theme:s,inverse:!m,label:"Search",isSubmit:!0}))),p&&e.createElement("div",{className:"header-search__recommended-links-wrapper"},v&&e.createElement("h3",{className:"header-search__recommended-link-title"},v),e.createElement("ul",{className:"header-search__recommended-links"},p.map(function(t,n){return e.createElement("li",{className:"header-search__recommended-link",key:n},e.createElement(mt,{theme:s,url:t.url,title:t.label,externalLink:t.externalLink}))}))))};function Yn(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.label,c=t.url,i=t.externalLink,o=t.active,s=void 0!==o&&o;return e.createElement("a",{className:l("campus-selector-link",a&&"theme-".concat(a),s&&"campus-selector-link--active"),href:c,target:i?"_blank":"_self",rel:"noreferrer"},r)}function Jn(t){var n=t.active,a=t.theme,r=t.ukUrl,c=t.dubaiUrl,i=t.mobile;return e.createElement("div",{className:l("campus-selector",a&&"theme-".concat(a),i&&"campus-selector--mobile",!i&&"campus-selector--desktop")},e.createElement("div",{className:"campus-selector__container"},e.createElement("span",{className:"campus-selector__label"},"Select campus:"),i?e.createElement(e.Fragment,null,e.createElement(h,{label:"UK",theme:a,inverse:!0,url:r,hollow:"uk"!==n}),e.createElement(h,{label:"Dubai",theme:a,inverse:!0,url:c,hollow:"dubai"!==n})):e.createElement(e.Fragment,null,e.createElement(Yn,{label:"UK",theme:a,url:r,active:"uk"===n}),e.createElement(Yn,{label:"Dubai",theme:a,url:c,active:"dubai"===n}))))}n(),n();var Qn=function(t){var n,a,c=t.primaryLinks,l=t.secondaryLinks,i=t.searchProps,o=e.useRef(null),s=e.useRef(null),m=e.useRef(null),d=e.useState(!1),u=d[0],h=d[1],p=e.useState(0),v=p[0],f=p[1],g=e.useState(null),E=g[0],_=g[1],b=e.useState(null),w=b[0],C=b[1],y=e.useState(!1),N=y[0],k=y[1],x=e.useState(!1),L=x[0],T=x[1],M=e.useState(""),S=M[0],H=M[1],P=function(){h(!0),document.body.classList.add("lock-scroll")},V=function(){k(!0),P()},O=function(){k(!1),T(!1)},Z=function(){h(!1),O(),document.body.classList.remove("lock-scroll"),f(0),_(null),C(null),o.current&&o.current.focus()};e.useEffect(function(){var e=function(e){"Escape"===e.key&&u&&Z()};return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}});var q=null,B=null;null!==E&&(q=null!==(n=r(r([],c,!0),l,!0)[E])&&void 0!==n?n:null,null!==w&&(null==q?void 0:q.children)&&(B=null!==(a=q.children[w])&&void 0!==a?a:null));return{openMenuButtonRef:o,headerRef:s,desktopCampusSelectorRef:m,isOpen:u,menuLevel:v,mainMenuSelectedIdx:E,levelOneSelectedIdx:w,searchIsOpen:N,searchOpenedFromHeader:L,searchTerm:S,mainMenuSelectedLink:q,firstLevelSelectedLink:B,openMenu:P,closeMenu:Z,openSearch:V,openSearchFromHeader:function(){T(!0),V()},closeSearch:O,onClickMainMenuNavLink:function(e){f(1),_(e)},onClickLevelOneNavLink:function(e){f(2),C(e)},goBackToMainMenu:function(){f(0),_(null),O()},goBackToLevelOne:function(){f(1),C(null),O()},closeLowestLevelSearch:function(){f(2),O()},handleSearchChange:function(e){H(e.target.value)},handleSearchSubmit:function(e){if(e.preventDefault(),"undefined"!=typeof window){var t=null==i?void 0:i.resultsUrl;t&&(window.location.href=S?"".concat(t,"?term=").concat(S):t)}}}};n();var Xn={mobile:{image:"polygon(0 0, calc(100% - 1px) 0, calc(75% - 1px) calc(70% - 1px), 0 calc(90% - 1px))",background:"polygon(0 0, 100% 0, 75% 70%, 0 90%)"},tablet:{image:"polygon(0 0, 100% 0, 100% calc(70% - 1px), calc(30% + 1px) calc(60% - 1px))",background:"polygon(0 0, 100% 0, 100% 70%, 30% 60%)"},desktop:{image:"polygon(1px 0, 100% 0, 100% calc(95% - 1px), calc(10% + 1px) calc(65% - 1px))",background:"polygon(0 0, 100% 0, 100% 95%, 10% 65%)"}};function ea(n){var a,r,c=n.isMobile,l=n.isTablet,i=n.image,o=c?Xn.mobile:l?Xn.tablet:Xn.desktop,s=e.useRef(null),m=e.useId();return e.useEffect(function(){var e;s.current&&s.current.setAttribute("fetchpriority",null!==(e=i.fetchPriority)&&void 0!==e?e:"auto")}),e.createElement(e.Fragment,null,e.createElement(t.motion.div,{className:"hero__polygon-image-wrapper"},e.createElement(t.motion.img,{ref:s,className:"hero__image",src:i.src.default,srcSet:"".concat(null!==(a=i.src.small)&&void 0!==a?a:i.src.default," 576w, ").concat(null!==(r=i.src.medium)&&void 0!==r?r:i.src.default," 992w, ").concat(i.src.default," 1440w"),alt:i.alt,fetchPriority:i.fetchPriority,animate:{clipPath:o.image},transition:{type:"tween"}}),e.createElement(t.motion.div,{key:m,className:"hero__polygon-image-background",animate:{opacity:1,clipPath:o.background},transition:{type:"tween"},initial:{opacity:0}})))}n();var ta={initial:{pathLength:0},animate:{pathLength:1},transition:{delay:.5,duration:1}};function na(n){var r=n.isMobile,c=n.isTablet;return r?e.createElement(e.Fragment,null,e.createElement(t.motion.div,{className:"hero__line",animate:{left:"75%",bottom:"30%",transform:"rotate(10deg)"},initial:!1},e.createElement("svg",{width:"140",height:"2",viewBox:"0 0 140 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(t.motion.path,a({d:"M0 1H140"},ta)))),e.createElement(t.motion.div,{className:"hero__line",animate:{left:"75%",bottom:"30%",transform:"rotate(-15deg)"},initial:!1},e.createElement("svg",{width:"140",height:"2",viewBox:"0 0 140 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(t.motion.path,a({d:"M0 1H140"},ta))))):c?e.createElement(e.Fragment,null,e.createElement(t.motion.div,{className:"hero__line",animate:{left:"calc(30% + 1px)",top:"calc(60% - 3px)",transform:"rotate(161deg)"},initial:!1},e.createElement("svg",{width:"120",height:"2",viewBox:"0 0 120 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(t.motion.path,a({d:"M0 1H140"},ta)))),e.createElement(t.motion.div,{className:"hero__line",animate:{left:"30%",top:"calc(60% - 1px)",transform:"rotate(26deg)"},initial:!1},e.createElement("svg",{width:"120",height:"2",viewBox:"0 0 120 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(t.motion.path,a({d:"M0 1H140"},ta))))):e.createElement(e.Fragment,null,e.createElement(t.motion.div,{className:"hero__line",animate:{left:"10%",top:"calc(65% - 3px)",transform:"rotate(118deg)"},initial:!1},e.createElement("svg",{width:"140",height:"2",viewBox:"0 0 140 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(t.motion.path,a({d:"M0 1H140"},ta)))),e.createElement(t.motion.div,{className:"hero__line",animate:{left:"10%",top:"calc(65% - 3px)",transform:"rotate(41deg)"},initial:!1},e.createElement("svg",{width:"140",height:"2",viewBox:"0 0 140 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(t.motion.path,a({d:"M0 1H140"},ta)))))}n();var aa=function(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.inverse,c=void 0!==r&&r,i=t.fieldName,o=t.selectOptions,s=t.defaultValue,d=void 0===s?"all":s,u=t.hiddenLabel,h=void 0!==u&&u,p=t.customLabel,v=t.title,f=t.onChange,g=t.value;return e.createElement("div",{className:l("form-select",a&&"theme-".concat(a),c&&"theme-".concat(a,"--inverse"))},p?e.createElement("label",{htmlFor:i,className:l("form-select__label",h&&"sr-only")},p):e.createElement("label",{htmlFor:i,className:l("form-select__label",h&&"sr-only")},"Select ",i),e.createElement("div",{className:"form-select__select-wrapper"},e.createElement("select",{className:"form-select__select",defaultValue:d,value:g,id:i,name:i,onChange:f},e.createElement("option",{value:"all"},v),o&&o.map(function(t,n){return e.createElement("option",{value:t.value,key:n},t.label)})),e.createElement("div",{className:"form-select__icon"},e.createElement(m,{icon:"arrow-down",theme:a,inverse:c}))))};function ra(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.inverse,c=void 0!==r&&r,i=t.title,o=t.description,s=t.defaultSearchTerm,m=t.placeholder,d=t.filterTitle,u=t.filterFieldName,p=t.filterOptions,v=t.defaultFilter,f=void 0===v?"all":v,E=t.wrapped,_=void 0!==E&&E,b=t.fullWidth,w=void 0!==b&&b,C=t.onGrid,y=void 0!==C&&C,N=t.titleTag,k=void 0===N?"h2":N,x=t.formSubmitHandler,L=t.filterChangeHandler,T=t.searchTermChangeHandler,M=k;return e.createElement("div",{className:l("search-course",w&&"search-course--full-width",y&&"search-course--on-grid",_&&"search-course--wrapped",a&&"theme-".concat(a),c&&"theme-".concat(a,"--inverse"),!u&&"search-course--no-filter")},e.createElement("div",{className:"search-course__container"},i&&e.createElement(M,{className:"search-course__title"},i),o&&e.createElement("div",{className:"search-course__description"},e.createElement(g,{text:o,theme:a,inverse:c})),e.createElement("form",{className:"search-course__form",method:"post",onSubmit:x},e.createElement("div",{className:"search-course__search-wrapper"},e.createElement(Gn,{theme:a,inverse:c,fieldName:"search",hiddenLabel:!0,defaultValue:s,placeholder:m,onChange:T}),e.createElement(ye,{theme:a,inverse:!c,title:"Search",icon:"search",isSubmit:!0}),_&&e.createElement(h,{theme:a,inverse:!c,label:"Search",isSubmit:!0})),u&&d&&p&&e.createElement(aa,{theme:a,inverse:c,title:d,fieldName:u,selectOptions:p,defaultValue:f,hiddenLabel:!0,onChange:L}),!_&&e.createElement(h,{theme:a,inverse:!c,label:"Search",isSubmit:!0}))))}function ca(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.inverse,c=t.label,i=t.icons;return e.createElement("div",{className:l("share-buttons",a&&"theme-".concat(a),r&&"theme-".concat(a,"--inverse"))},c&&e.createElement("div",{className:"share-buttons__label"},c),i&&e.createElement("ul",{className:"share-buttons__icon-wrapper"},i.map(function(t,n){return e.createElement("li",{className:"share-buttons__icon",key:n},e.createElement(ye,{theme:a,title:t.title,icon:t.icon,url:t.url,inverse:r}))})))}function la(t){var n="items"in t?t.items:[t],a=(null!=n?n:[]).filter(function(e){return Boolean(e)});return e.createElement(e.Fragment,null,a.map(function(t,n){var r=t.theme,c=void 0===r?"uobmain":r,i=t.inverse,o=void 0!==i&&i,s=t.label,m=t.url,d=t.externalLink;return e.createElement(e.Fragment,{key:"".concat(m,"-").concat(s,"-").concat(n)},e.createElement("a",{className:l("paragraph-link",c&&"theme-".concat(c),o&&"theme-".concat(c,"--inverse")),href:m,target:d?"_blank":"_self",rel:"noreferrer"},s),n<a.length-1?" ":null)}))}function ia(t){var n=t.theme,a=t.inverse,r=t.buttonLabel,c=t.hollow,i=t.modalChildren,o=e.useState(!1),s=o[0],m=o[1],d=function(){m(!1),document.body.classList.remove("lock-scroll")};return e.createElement("div",{className:l("modal-cta-button",n&&"theme-".concat(n),a&&"theme-".concat(n,"--inverse"))},e.createElement(h,{inverse:a,label:r,onClick:function(){s?d():(m(!0),document.body.classList.add("lock-scroll"))},theme:n,hollow:c}),s&&e.createElement(ke,{centred:!0,theme:n,closeModal:d,isOpen:s},e.createElement(je,{className:"modal-cta-button__embed-wrapper"},i)))}function oa(t){var n=t.title,r=t.value,c=t.link;return e.createElement("article",{className:"course-tile"},e.createElement("div",{className:"course-tile__top"},e.createElement("div",{className:"course-tile__title"},n),e.createElement("div",{className:"course-tile__value"},r)),c&&e.createElement("div",{className:"course-tile__link-wrapper"},e.createElement(ht,a({},c,{inverse:!0,onClick:function(e){return pt(e,c.url||"#")}}))))}function sa(t){var n=t.title,r=t.selectProps;return e.createElement("article",{className:"course-tile-select"},e.createElement("div",{className:"course-tile-select__top"},e.createElement("div",{className:"course-tile-select__title"},n),e.createElement(aa,a({},r,{inverse:!0}))))}function ma(t){var n=t.title,r=t.rank,c=t.rankText,l=t.link;return e.createElement("article",{className:"course-tile-ranking"},e.createElement("div",{className:"course-tile-ranking__top"},e.createElement("div",{className:"course-tile-ranking__title"},n),e.createElement("div",{className:"course-tile-ranking__rank"},r),e.createElement("div",{className:"course-tile-ranking__rank-text"},c)),l&&e.createElement("div",{className:"course-tile-ranking__link-wrapper"},e.createElement(ht,a({},l,{inverse:!0,onClick:function(e){return pt(e,l.url||"#")}}))))}function da(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.inverse,i=void 0===c||c,o=t.topPadding,s=void 0!==o&&o,m=t.selectorProps;return e.createElement("div",{className:l("location-selector",r&&"theme-".concat(r),i&&"theme-".concat(r,"--inverse"))},e.createElement("div",{className:l("location-selector__container",s&&"location-selector__container--padding-top")},e.createElement(aa,a({},m,{inverse:i}))))}n(),n(),n(),n(),n(),n(),n();var ua={first:{clipPath:"polygon(0 0, 95% 0, 75% 100%, 0 80%)"},second:{clipPath:"polygon(0 0, 100% 0, 75% 70%, 0 90%)"},third:{clipPath:"polygon(0 0, 80% 0, 95% 90%, 0 80%)"},visible:{opacity:1}},ha={first:{clipPath:"polygon(0 0, calc(95% - 1px) 0, calc(75% - 1px) calc(100% - 1px), 0 calc(80% - 1px))"},second:{clipPath:"polygon(0 0, calc(100% - 1px) 0, calc(75% - 1px) calc(70% - 1px), 0 calc(90% - 1px))"},third:{clipPath:"polygon(0 0, calc(80% - 1px) 0, calc(95% - 1px) calc(90% - 1px), 0 calc(80% - 1px))"}},pa={first:{clipPath:"polygon(0 25%, 100% 5%, 100% 100%, 23% 100%)"},second:{clipPath:"polygon(33% 20%, 100% 5%, 100% 100%, 0 100%)"},third:{clipPath:"polygon(0 3%, 100% 20%, 100% 100%, 23% 100%)"},visible:{opacity:1}},va={first:{clipPath:"polygon(1px calc(25% + 1px), 100% calc(5% + 1px), 100% 100%, calc(23% + 1px) 100%)"},second:{clipPath:"polygon(calc(33% + 1px) calc(20% + 1px), 100% calc(5% + 1px), 100% 100%, 1px 100%)"},third:{clipPath:"polygon(1px calc(3% + 1px), 100% calc(20% + 1px), 100% 100%, calc(23% + 1px) 100%"}},fa={first:{clipPath:"polygon(0 33%, 100% 10%, 100% 100%, 23% 100%)"},second:{clipPath:"polygon(33% 30%, 100% 10%, 100% 100%, 0 100%)"},third:{clipPath:"polygon(0 10%, 100% 25%, 100% 100%, 15% 100%)"},visible:{opacity:1}},ga={first:{clipPath:"polygon(1px calc(33% + 1px), 100% calc(10% + 1px), 100% 100%, calc(23% + 1px) 100%)"},second:{clipPath:"polygon(calc(33% + 1px) calc(30% + 1px), 100% calc(10% + 1px), 100% 100%, 1px 100%)"},third:{clipPath:"polygon(1px calc(10% + 1px), 100% calc(25% + 1px), 100% 100%, calc(15% + 1px) 100%"}},Ea={first:{left:"calc(75% + 1px)",bottom:0,transform:"rotate(-40deg)"},second:{left:"75%",bottom:"30%",transform:"rotate(-15deg)"},third:{left:"95%",bottom:"10%",transform:"rotate(-70deg)"}},_a={first:{left:"calc(75% + 1px)",bottom:0,transform:"rotate(-15deg)"},second:{left:"75%",bottom:"30%",transform:"rotate(10deg)"},third:{left:"95%",bottom:"10%",transform:"rotate(-30deg)"}},ba={first:{left:"2px",top:"calc(25% - 1px)",transform:"rotate(-130deg)"},second:{left:"calc(33% + 2px)",top:"calc(20% - 1px)",transform:"rotate(-155deg)"},third:{left:"0",top:"calc(3% - 3px)",transform:"rotate(-170deg)"}},wa={first:{left:"2px",top:"calc(25% - 1px)",transform:"rotate(-50deg)"},second:{left:"calc(33% + 2px)",top:"calc(20% - 1px)",transform:"rotate(-110deg)"},third:{left:"1px",top:"calc(3% - 1px)",transform:"rotate(-10deg)"}},Ca={first:{left:"2px",top:"calc(33% - 1px)",transform:"rotate(-130deg)"},second:{left:"calc(33% + 1px)",top:"calc(30% - 2px)",transform:"rotate(-160deg)"},third:{left:"1px",top:"calc(10% - 2px)",transform:"rotate(-160deg)"}},ya={first:{left:"2px",top:"calc(33% - 1px)",transform:"rotate(-45deg)"},second:{left:"calc(33% + 1px)",top:"calc(30% - 2px)",transform:"rotate(-75deg)"},third:{left:"0",top:"calc(10%)",transform:"rotate(-15deg)"}},Na={initial:{pathLength:0},animate:{pathLength:1},transition:{delay:.5,duration:1}};function ka(n){var r=n.isMobile,c=n.isTablet,l=n.activeVariant;return r?e.createElement(e.Fragment,null,e.createElement(t.motion.div,{className:"hero-carousel__line",variants:Ea,animate:l,initial:!1},e.createElement("svg",{width:"140",height:"2",viewBox:"0 0 140 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(t.motion.path,a({d:"M0 1H140",stroke:"black"},Na)))),e.createElement(t.motion.div,{className:"hero-carousel__line",variants:_a,animate:l,initial:!1},e.createElement("svg",{width:"140",height:"2",viewBox:"0 0 140 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(t.motion.path,a({d:"M0 1H140",stroke:"black"},Na))))):c?e.createElement(e.Fragment,null,e.createElement(t.motion.div,{className:"hero-carousel__line",variants:ba,animate:l,initial:!1},e.createElement("svg",{width:"260",height:"2",viewBox:"0 0 260 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(t.motion.path,a({d:"M0 1H260",stroke:"black"},Na)))),e.createElement(t.motion.div,{className:"hero-carousel__line",variants:wa,animate:l,initial:!1},e.createElement("svg",{width:"260",height:"2",viewBox:"0 0 260 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(t.motion.path,a({d:"M0 1H260",stroke:"black"},Na))))):e.createElement(e.Fragment,null,e.createElement(t.motion.div,{className:"hero-carousel__line",variants:Ca,animate:l,initial:!1},e.createElement("svg",{width:"360",height:"2",viewBox:"0 0 360 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(t.motion.path,a({d:"M0 1H360",stroke:"black"},Na)))),e.createElement(t.motion.div,{className:"hero-carousel__line",variants:ya,animate:l,initial:!1},e.createElement("svg",{width:"360",height:"2",viewBox:"0 0 360 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(t.motion.path,a({d:"M0 1H360",stroke:"black"},Na)))))}function xa(n){var a,r,c=n.isMobile,l=n.isTablet,i=n.activeVariant,o=n.imageSrc,s=n.imageAlt,m=n.imageFetchPriority,d=e.useRef(null),u=e.useId();return e.useEffect(function(){d.current&&d.current.setAttribute("fetchpriority",null!=m?m:"high")}),e.createElement(e.Fragment,null,e.createElement(t.AnimatePresence,null,e.createElement(t.motion.div,{className:"hero-carousel__image-wrapper",transition:{delayChildren:1}},e.createElement(t.motion.img,{ref:d,className:"hero-carousel__image",src:null==o?void 0:o.default,srcSet:"".concat(null!==(a=null==o?void 0:o.small)&&void 0!==a?a:null==o?void 0:o.default," 576w, ").concat(null!==(r=null==o?void 0:o.medium)&&void 0!==r?r:null==o?void 0:o.default," 992w, ").concat(null==o?void 0:o.default," 1440w"),alt:s,variants:c?ha:l?va:ga,animate:i,initial:{clipPath:"polygon(0 0, 0 0, 0 0, 0 0)"},transition:{type:"tween"}}),e.createElement(t.motion.div,{key:u,className:"hero-carousel__image-background",variants:c?ua:l?pa:fa,animate:["visible",i],exit:{backgroundColor:"rgba(255, 255, 255, 0)"},transition:{type:"tween"},initial:{opacity:0,clipPath:"polygon(1% 1%, 1% 1%, 1% 1%, 1% 1%)"}}))))}var La=e.forwardRef(function(t,n){var a=t.theme,r=t.category,c=t.title,l=t.description,i=t.linkUrl,o=t.linkLabel,s=t.onKeyDown;return e.createElement(e.Fragment,null,e.createElement("p",{className:"hero-carousel__category"},r),e.createElement("h2",{className:"hero-carousel__title"},c),e.createElement("p",{className:"hero-carousel__description"},l),e.createElement("div",{className:"hero-carousel__cta"},e.createElement(p,{url:i,title:o,theme:a,inverse:!0,onKeyDown:s,ref:n})))});function Ta(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.heading,i=void 0===c?"Page contents":c,o=t.links,s=t.buttonLinks,m=t.locationDetails,d=function(e){var t=document.getElementById(e);if(t){var n=t.getBoundingClientRect().top+window.pageYOffset-20;window.scrollTo({top:n,behavior:"smooth"});var a=null,r=null,c=0,l=function(){a&&(a.disconnect(),a=null),r&&(r.disconnect(),r=null),c&&(clearTimeout(c),c=0)},i=function(e){return!!e&&(a=new IntersectionObserver(function(t){t.some(function(e){return e.isIntersecting})&&function(e){try{e.focus({preventScroll:!0})}catch(e){}finally{l()}}(e)},{root:null,threshold:.1,rootMargin:"0px 0px -20% 0px"}),a.observe(e),!0)},o=t.querySelector("h1,h2,h3,h4,h5,h6");i(o)||(r=new MutationObserver(function(){o=t.querySelector("h1,h2,h3,h4,h5,h6"),i(o)&&r&&(r.disconnect(),r=null)})).observe(t,{childList:!0,subtree:!0}),c=window.setTimeout(function(){l();var e=t.querySelector('a, button, input, select, textarea, [tabindex]:not([tabindex="-1"])');if(e){var n=!e.hasAttribute("tabindex");n&&e.setAttribute("tabindex","-1"),e.focus({preventScroll:!0}),n&&e.removeAttribute("tabindex")}},1e3)}},u=function(e,t){e.preventDefault(),d(t.replace("#",""))};return e.createElement("div",{className:l("in-page-navigation-links",r&&"theme-".concat(r))},e.createElement("h2",{className:"in-page-navigation-links__heading"},i),m&&e.createElement(da,a({},m,{inverse:!0})),e.createElement("nav",null,e.createElement("ul",{className:"in-page-navigation-links__link-container"},o.map(function(t){return e.createElement("li",{className:l("in-page-navigation-links__link-wrapper",t.active&&"in-page-navigation-links__link-wrapper--active"),key:t.url},e.createElement("a",{className:"in-page-navigation-links__link",href:t.url,onClick:function(e){return u(e,t.url)},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||u(e,t.url)}},t.title))}))),e.createElement("ul",null,s&&s.map(function(t,n){return t.externalLink?e.createElement("li",{className:"in-page-navigation-links__link-button",key:n},e.createElement(xe,{theme:r,label:t.label,icon:"external",hollow:n%2!=0,iconPosition:"right",url:t.url,onClick:t.onClick})):e.createElement("li",{className:"in-page-navigation-links__link-button",key:n},e.createElement(h,{theme:r,label:t.label,hollow:n%2!=0,url:t.url,onClick:t.onClick}))})))}function Ma(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.heading,c=t.cards,i=t.link;return e.createElement("div",{className:l("most-read-news",a&&"theme-".concat(a))},e.createElement("h2",{className:"most-read-news__title"},r),e.createElement("ul",{className:"most-read-news__card-container"},c.map(function(t,n){return e.createElement("li",{className:"most-read-news__card",key:n},e.createElement(qe,{theme:a,title:t.title,href:t.href,titleTag:"h3",publishDate:t.publishDate}))})),i&&e.createElement(p,{theme:a,inverse:!0,url:i.url,title:i.title}))}function Sa(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.type,l=t.image,i=t.title,o=t.url,s=t.description,m=t.details,d=t.showCategory,u=void 0!==d&&d;return e.createElement(e.Fragment,null,l&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(w,a({},l))),e.createElement("div",{className:"listing-result-card__text"},u&&e.createElement("p",{className:"listing-result-card__category"},c),e.createElement("h2",null,e.createElement("a",{className:"listing-result-card__title",href:o},i)),s&&e.createElement("p",{className:"listing-result-card__description"},s),(null==m?void 0:m.length)>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(Ie,{details:m,theme:r}))))}function Ha(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.type,l=t.image,i=t.title,o=t.titleTag,s=void 0===o?"h2":o,m=t.url,d=t.description,u=t.supervisors,h=t.department,p=t.details,v=t.showCategory,g=void 0!==v&&v;return e.createElement(e.Fragment,null,l&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(w,a({},l))),e.createElement("div",{className:"listing-result-card__text"},g&&e.createElement("p",{className:"listing-result-card__category"},c),e.createElement(f,{htmlTag:"h3"===s?"h3":"h2"},e.createElement("a",{className:"listing-result-card__title",href:m},i)),(u||h)&&e.createElement("div",{className:"listing-result-card__course-info"},u&&e.createElement("p",{className:"listing-result-card__supervisors"},"Supervisors: ",u),h&&e.createElement("p",{className:"listing-result-card__department"},h)),d&&e.createElement("p",{className:"listing-result-card__description"},d),(null==p?void 0:p.length)>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(Ie,{details:p,theme:r}))))}function Pa(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.inverse,l=void 0===c||c,i=t.type,o=t.image,s=t.title,m=t.url,d=t.description,u=t.details,h=t.showCategory,p=void 0!==h&&h,v=t.cardDescriptionIsRichText,E=void 0!==v&&v,_=t.titleTag,b=void 0===_?"h2":_,C=t.eventStatus,y=void 0===C?void 0:C;return e.createElement(e.Fragment,null,o&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(w,a({},o)),y&&e.createElement("div",{className:"listing-result-card__event-graphic"},e.createElement(Te,{theme:"uobmain",status:y,day:void 0,month:void 0}))),e.createElement("div",{className:"listing-result-card__text"},p&&e.createElement("p",{className:"listing-result-card__category"},i),e.createElement(f,{htmlTag:b},e.createElement("a",{className:"listing-result-card__title",href:m},s)),d&&!E&&e.createElement("p",{className:"listing-result-card__description"},d),d&&E&&e.createElement(g,{theme:r,inverse:l,text:d}),(null==u?void 0:u.length)>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(Ie,{details:u,theme:r}))))}function Va(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.type,l=t.image,i=t.title,o=t.url,s=t.description,m=t.author,d=t.details,u=t.showCategory,h=void 0!==u&&u,p=Array.isArray(m)?m:[m];return e.createElement(e.Fragment,null,l&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(w,a({},l))),e.createElement("div",{className:"listing-result-card__text"},h&&e.createElement("p",{className:"listing-result-card__category"},c),e.createElement("h2",null,e.createElement("a",{className:"listing-result-card__title",href:o},i)),m&&e.createElement("p",{className:"listing-result-card__author"},"by ",e.createElement(la,{items:p})),s&&e.createElement("p",{className:"listing-result-card__description"},s),(null==d?void 0:d.length)>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(Ie,{details:d,theme:r}))))}function Oa(t){var n=t.image,r=t.title,c=t.url,l=t.description;return e.createElement(e.Fragment,null,n&&e.createElement("div",{className:"listing-result-card__image"},n&&e.createElement(w,a({},n))),e.createElement("div",{className:"listing-result-card__text"},e.createElement("h2",null,e.createElement("a",{className:"listing-result-card__title",href:c},r)),l&&e.createElement("p",{className:"listing-result-card__description"},l)))}function Za(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.type,l=t.image,i=t.title,o=t.url,s=t.description,m=t.jobTitle,d=t.department,u=t.details,h=t.showCategory,p=void 0!==h&&h;return e.createElement(e.Fragment,null,l&&e.createElement("div",{className:"listing-result-card__image"},l&&e.createElement(w,a({},l))),e.createElement("div",{className:"listing-result-card__text"},p&&e.createElement("p",{className:"listing-result-card__category"},c),e.createElement("h2",null,e.createElement("a",{className:"listing-result-card__title",href:o},i)),(m||d)&&e.createElement("div",{className:"listing-result-card__staff-info"},m&&e.createElement("p",{className:"listing-result-card__job-title"},m),d&&e.createElement("p",{className:"listing-result-card__department"},d)),s&&e.createElement("p",{className:"listing-result-card__description"},s),(null==u?void 0:u.length)>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(Ie,{details:u,theme:r}))))}function qa(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.image,l=t.title,i=t.url,o=t.description,s=t.jobTitle,m=t.department,d=t.details;return e.createElement(e.Fragment,null,c&&e.createElement("div",{className:"listing-result-card__image"},c&&e.createElement(w,a({},c))),e.createElement("div",{className:"listing-result-card__text"},e.createElement("h2",null,e.createElement("a",{className:"listing-result-card__title",href:i},l)),(s||m)&&e.createElement("div",{className:"listing-result-card__staff-info"},s&&e.createElement("p",{className:"listing-result-card__job-title"},s),m&&e.createElement("p",{className:"listing-result-card__department"},m)),o&&e.createElement("p",{className:"listing-result-card__description"},o.length>120?"".concat(o.slice(0,120),"..."):o),(null==d?void 0:d.length)>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(Ie,{details:d,theme:r}))))}function Ba(t){return e.createElement("article",{className:l("listing-result-card",t.theme&&"theme-".concat(t.theme))},"page"===t.type&&e.createElement(Oa,a({},t)),"course"===t.type&&e.createElement(Ha,a({},t)),"accomodation"===t.type&&e.createElement(Sa,a({},t)),"event"===t.type&&e.createElement(Pa,a({},t)),"news"===t.type&&e.createElement(Va,a({},t)),"staff"===t.type&&e.createElement(Za,a({},t)),"profile"===t.type&&e.createElement(qa,a({},t)))}function Fa(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.numOfPages,c=t.onClick,i=t.currentPage,o=ve("768px"),s=e.createElement("li",null,e.createElement("span",{className:"pagination__ellipse"},"..."));return o&&r<=4?e.createElement(e.Fragment,null,Array(r).fill(0).map(function(t,n){return e.createElement("li",{className:l("pagination__number",i===n&&"pagination__number--selected"),key:n},e.createElement(h,{label:(n+1).toString(),onClick:function(){return c(n)},hollow:!(i===n),theme:a}))})):o&&r>4?e.createElement(e.Fragment,null,i>0&&e.createElement("li",{key:0,className:"pagination__number"},e.createElement(h,{label:"1",onClick:function(){return c(0)},theme:a,hollow:!0})),i+1>=3&&s,e.createElement("li",{key:i,className:"pagination__number pagination__number--selected"},e.createElement(h,{label:"".concat(i+1," "),onClick:function(){return c(i)},theme:a})),i+1<r-1&&s,i!==r-1&&e.createElement("li",{key:r-1,className:"pagination__number"},e.createElement(h,{label:r.toString(),onClick:function(){return c(r-1)},theme:a,hollow:!0}))):!o&&r<=6?e.createElement(e.Fragment,null,Array(r).fill(0).map(function(t,n){return e.createElement("li",{key:n,className:l("pagination__number",i===n&&"pagination__number--selected","test")},e.createElement(h,{label:(n+1).toString(),onClick:function(){return c(n)},hollow:!(i===n),theme:a}))})):!o&&r>6?e.createElement(e.Fragment,null,i>0&&e.createElement("li",{key:0,className:"pagination__number start"},e.createElement(h,{label:"1",onClick:function(){return c(0)},theme:a,hollow:!0})),i+1>=4&&s,i>1&&e.createElement("li",{key:i-1,className:"pagination__number before"},e.createElement(h,{label:(i>=1?i:i-1).toString(),onClick:function(){return c(i-1)},theme:a,hollow:!0})),e.createElement("li",{key:i,className:"pagination__number pagination__number--selected current"},e.createElement(h,{label:"".concat(i+1),onClick:function(){return c(i)},theme:a})),i+1<r-1&&e.createElement("li",{key:i+1,className:"pagination__number after"},e.createElement(h,{label:"".concat(i+2),onClick:function(){return c(i+1)},theme:a,hollow:!0})),i+1<r-2&&s,i+1!==r&&e.createElement("li",{key:r-1,className:"pagination__number end"},e.createElement(h,{label:"".concat(r),onClick:function(){return c(r-1)},theme:a,hollow:!0}))):e.createElement(e.Fragment,null)}function Da(e,t){return o("".concat(null!=e?e:""," ").concat(t))}function Ia(t){var n=t.children,a=t.theme,r=void 0===a?"uobmain":a,c=t.inverse,i=void 0!==c&&c;return e.createElement("div",{className:l("tabs__list__container",r&&"theme-".concat(r),i&&"theme-".concat(r,"--inverse"))},e.createElement("ul",{className:"tabs__list",role:"tablist"},n))}function Aa(t){var n=t.title,a=t.htmlTag,r=void 0===a?"h3":a,c=t.theme,i=void 0===c?"uobmain":c,o=t.inverse,s=void 0!==o&&o,m=t.isActive,d=t.children,u=t.tabsBlockName;if(!m)return null;var h=Da(null!=u?u:"",n);return e.createElement("div",{id:u,className:l("tabs__panel",i&&"theme-".concat(i),s&&"theme-".concat(i,"--inverse")),role:"tabpanel","aria-labelledby":"tab_"+h},e.createElement(f,{htmlTag:r,classNames:"tabs__panel-title"},n),d)}function Ra(t){var n=t.id,a=t.theme,r=void 0===a?"uobmain":a,c=t.inverse,i=void 0!==c&&c,o=t.tabItem,s=t.isActive,m=t.hasFocus,d=t.tabsBlockName,u=t.handleClick,h=t.handleKeyboardNavigation,p=e.useRef(null);e.useEffect(function(){s&&m&&p.current&&(p.current.focus(),window.matchMedia("min-width: 768px").matches&&p.current.scrollIntoView())});var v=Da(null!=d?d:"",o.title);return e.createElement("li",{className:"tabs__list-item",role:"presentation"},e.createElement("button",{className:l("tabs__tab",r&&"theme-".concat(r),i&&"theme-".concat(r,"--inverse"),s&&"active"),onClick:function(e){return u(e,n)},onKeyDown:h,ref:p,id:"tab_"+v,role:"tab","aria-controls":v,"aria-selected":s?"true":"false",tabIndex:s?0:-1,type:"button"},o.title))}function $a(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.label,c=t.url,i=t.externalLink;return e.createElement("a",{className:l("pill",a&&"theme-".concat(a)),href:c,target:i?"_blank":"_self",rel:i?"noopener noreferrer":""},r)}La.displayName="HeroCardContent",n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n(),n();var ja,za={exports:{}};var Wa,Ua=(ja||(ja=1,Wa=za,function(e,t){Wa.exports=t()}(0,function(){var e=[],t=[],n={},a={},r={};function c(e){return"string"==typeof e?new RegExp("^"+e+"$","i"):e}function l(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function i(e,t){return e.replace(t[0],function(n,a){var r,c,i=(r=t[1],c=arguments,r.replace(/\$(\d{1,2})/g,function(e,t){return c[t]||""}));return l(""===n?e[a-1]:n,i)})}function o(e,t,a){if(!e.length||n.hasOwnProperty(e))return t;for(var r=a.length;r--;){var c=a[r];if(c[0].test(t))return i(t,c)}return t}function s(e,t,n){return function(a){var r=a.toLowerCase();return t.hasOwnProperty(r)?l(a,r):e.hasOwnProperty(r)?l(a,e[r]):o(r,a,n)}}function m(e,t,n,a){return function(a){var r=a.toLowerCase();return!!t.hasOwnProperty(r)||!e.hasOwnProperty(r)&&o(r,r,n)===r}}function d(e,t,n){return(n?t+" ":"")+(1===t?d.singular(e):d.plural(e))}return d.plural=s(r,a,e),d.isPlural=m(r,a,e),d.singular=s(a,r,t),d.isSingular=m(a,r,t),d.addPluralRule=function(t,n){e.push([c(t),n])},d.addSingularRule=function(e,n){t.push([c(e),n])},d.addUncountableRule=function(e){"string"!=typeof e?(d.addPluralRule(e,"$0"),d.addSingularRule(e,"$0")):n[e.toLowerCase()]=!0},d.addIrregularRule=function(e,t){t=t.toLowerCase(),e=e.toLowerCase(),r[e]=t,a[t]=e},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(e){return d.addIrregularRule(e[0],e[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(e){return d.addPluralRule(e[0],e[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(e){return d.addSingularRule(e[0],e[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(d.addUncountableRule),d})),za.exports),Ga=bt(Ua);function Ka(t){var n=t.theme,r=t.heading,c=t.selectContent,i=t.defaultIsOpen,o=void 0!==i&&i;c&&(o=!!c.defaultValue||o);var s=e.useState(o),d=s[0],u=s[1];return e.createElement("fieldset",{className:l("filter-accordion-select",d&&"filter-accordion-select--open",n&&"theme-".concat(n))},e.createElement("legend",{className:"filter-accordion-select__legend"},e.createElement("button",{className:"filter-accordion-select__button",onClick:function(){return u(function(e){return!e})},"aria-expanded":d,"aria-controls":r.replace(" ","")},r,e.createElement(m,{icon:"chevron-down",theme:n,inverse:!0,ariaHidden:!0}))),d&&e.createElement("div",{className:"filter-accordion-select__select-wrapper"},e.createElement(aa,a({theme:n,inverse:!0},c))))}function Ya(t){var n=t.theme,a=t.name,r=t.id,c=t.label,i=t.defaultValue,o=t.onChange;return e.createElement("div",{className:l("date-input",n&&"theme-".concat(n))},e.createElement("label",{htmlFor:r,className:"date-input__label"},c),e.createElement("input",{type:"date",className:"date-input__input",defaultValue:i,onChange:o,name:a,id:r}))}n(),n(),n();var Ja,Qa=function(e){var t=e.split(" "),n=t[t.length-1];return t[t.length-1]=Ga(n),t.join(" ")};function Xa(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.imageSrc,c=t.onClick;return e.createElement("div",{className:l("video-placeholder",a&&"theme-".concat(a))},r&&e.createElement(w,{src:r,altText:""}),e.createElement("button",{className:"video-placeholder__button",onClick:c},e.createElement("div",{className:"video-placeholder__svg-wrapper"},e.createElement("svg",{width:"11",height:"14",viewBox:"0 0 11 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},e.createElement("path",{d:"M0 0V14L11 7L0 0Z",fill:"currentColor"}))),e.createElement("span",{className:"sr-only"},"Watch the video")))}function er(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.imageSrc,c=t.videoUrl,i=t.videoId,o=e.useState(!1),s=o[0],m=o[1];return e.createElement("div",{className:l("video-with-placeholder",a&&"theme-".concat(a))},s?e.createElement(Ce,{url:c,id:i,autoPlay:!0,theme:a}):e.createElement(Xa,{imageSrc:r,onClick:function(){return m(!0)},theme:a}))}function tr(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.inverse,c=void 0!==r&&r,i=t.url,o=t.title,s=t.externalLink,m=void 0!==s&&s,d=t.mobileTitle;return e.createElement("a",{className:l("back-link",a&&"theme-".concat(a),c&&"theme-".concat(a,"--inverse")),href:i,target:m?"_blank":"_self",rel:m?"noopener noreferrer":""},d?e.createElement(e.Fragment,null,e.createElement("span",{className:"back-link__title back-link__title--mobile"},d),e.createElement("span",{className:"back-link__title back-link__title--desktop"},o)):e.createElement("span",{className:"back-link__title"},o))}n(),n(),n(),n(),n(),n(),function(e){e.NotSpecified="NotSpecified",e.ColumnAndRowHeadings="ColumnAndRowHeadings",e.ColumnHeadingsOnly="ColumnHeadingsOnly"}(Ja||(Ja={})),n(),n(),n(),n(),n(),n(),n(),n(),n();exports.Accordion=b,exports.AcreditationPromotion=function(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.heading,i=t.intro,o=t.accreditations,m=t.htmlTag,d=void 0===m?"h2":m,u=t.fullWidth,h=void 0!==u&&u;return e.createElement("section",{className:l("accreditation-promotion",r&&"theme-".concat(r),h&&"accreditation-promotion--full-width")},e.createElement("div",{className:"accreditation-promotion__container"},c&&e.createElement(f,{classNames:"accreditation-promotion__heading",htmlTag:d},c),i&&e.createElement("p",{className:"accreditation-promotion__intro"},i),e.createElement("ul",null,o.map(function(t,n){return e.createElement("li",{className:l("accreditation-promotion__accreditation",n%2==0?"accreditation-promotion__accreditation--right":"accreditation-promotion__accreditation--left"),key:n},t.image&&e.createElement("div",{className:"accreditation-promotion__image-wrapper"},e.createElement(w,a({},t.image))),e.createElement(s,{theme:r,text:t.text,inverse:!0,fullWidth:!0}))}))))},exports.AlertBanner=function(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.inverse,c=void 0!==r&&r,i=t.type,o=t.richText,d=e.useState(!0),u=d[0],h=d[1];return e.useEffect(function(){try{window.sessionStorage.getItem("alertBannerIsHidden")&&h(!window.sessionStorage.getItem("alertBannerIsHidden"))}catch(e){console.error(e)}},[]),e.createElement(e.Fragment,null,u&&e.createElement("div",{className:l("alert-banner",a&&"theme-".concat(a),c&&"theme-".concat(a,"--inverse"))},e.createElement("div",{className:"alert-banner__container"},e.createElement("div",{className:"alert-banner__left-wrapper"},e.createElement("div",{className:"alert-banner__status-icon"},"warning"===i&&e.createElement(m,{theme:a,icon:c?"warning-light":"warning-dark",inverse:c}),"success"===i&&e.createElement(m,{theme:a,icon:"success",inverse:c}),"information"===i&&e.createElement(m,{theme:a,icon:"information",inverse:c})),e.createElement(s,{theme:a,text:o.text,inverse:c})),e.createElement(C,{theme:a,icon:"cross",inverse:c,title:"Hide alert banner",onClick:function(){return function(){h(!1);var e=JSON.stringify(u);window.sessionStorage.setItem("alertBannerIsHidden",e)}()}}))))},exports.AnchorTarget=function(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.inverse,c=void 0===r||r,i=t.includeDivider,o=void 0===i||i,s=t.targetLabel,m=t.landmarkLabel,d=t.children,u=e.useRef(null);return e.useEffect(function(){var e=u.current;if(e){var t=!1,n=e.querySelector("h1,h2,h3,h4,h5,h6"),a=function(e){return!!e&&(e.hasAttribute("tabindex")||(e.setAttribute("tabindex","-1"),t=!0),n=e,!0)};if(!a(n)){var r=new MutationObserver(function(){var t=e.querySelector("h1,h2,h3,h4,h5,h6");a(t)&&r.disconnect()});return r.observe(e,{childList:!0,subtree:!0}),function(){return r.disconnect()}}return function(){t&&n&&n.removeAttribute("tabindex")}}},[s]),e.createElement("div",{id:s,ref:u,role:m?"region":void 0,"aria-label":m||void 0,className:l("anchor-target",a&&"theme-".concat(a),c&&"theme-".concat(a,"--inverse"))},o&&e.createElement("hr",{className:"anchor-target__divider",role:"none"}),d)},exports.Breadcrumbs=function(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.inverse,i=void 0!==c&&c,o=t.links;return e.createElement("nav",{className:l("breadcrumbs",r&&"theme-".concat(r),i&&"theme-".concat(r,"--inverse"))},e.createElement("ol",{className:"breadcrumbs__list"},o.slice(0,-1).map(function(t){return e.createElement("li",{className:"breadcrumbs__link",key:t.title},e.createElement(m,{icon:"chevron-right",theme:r,ariaHidden:!0}),e.createElement(y,a({theme:r,inverse:i},t)))})))},exports.CTAComponent=function(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.inverse,i=t.highlight,o=void 0!==i&&i,s=t.image,m=t.heading,d=t.copy,u=t.primaryCTA,v=t.secondaryCTA,g=t.link,E=t.fullWidth,_=void 0!==E&&E,b=t.htmlTag,C=void 0===b?"h2":b,y=!o&&!!c;return e.createElement("div",{className:l("cta-component",r&&"theme-".concat(r),c&&"theme-".concat(r,"--inverse"),o&&"theme-".concat(r,"--highlight"),_&&"cta-component--full-width",s&&"cta-component--with-image")},e.createElement("div",{className:"cta-component__container"},e.createElement("div",{className:"cta-component__inner-wrapper"},e.createElement("div",{className:"cta-component__main-content"},s&&e.createElement("div",{className:"cta-component__image-wrapper"},e.createElement(w,a({},s))),e.createElement("div",{className:"cta-component__text-wrapper"},e.createElement(f,{htmlTag:C,classNames:"cta-component__heading"},m),d&&e.createElement("p",{className:"cta-component__copy"},d))),e.createElement("div",{className:"cta-component__button-wrapper"},u&&e.createElement(h,a({},u,{inverse:y})),v&&e.createElement(h,a({},v,{hollow:!0,inverse:y}))),g&&e.createElement(p,a({},g,{inverse:!y})))))},exports.CardImageAndText=function(t){var n=t.theme,r=t.inverse,c=t.image,i=t.title,o=t.titleTag,s=void 0===o?"h2":o,m=t.text;return e.createElement("div",{className:l("card-image-and-text",n&&"theme-".concat(n),r&&"theme-".concat(n,"--inverse"),!i&&"card-image-and-text__no-title")},c&&e.createElement("div",{className:"card-image-and-text__image"},e.createElement(w,a({},c))),e.createElement("div",{className:"card-image-and-text__text"},i&&e.createElement(f,{classNames:l("card-image-and-text__heading-padding","card-image-and-text__".concat(s)),htmlTag:s},i),m&&e.createElement(g,{theme:n,inverse:r,text:m})))},exports.CardProfile=function(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.inverse,i=void 0===c||c,o=t.image,s=t.name,m=t.courseTitle,d=t.href,u=t.copy,h=t.titleTag,p=void 0===h?"h3":h;return e.createElement("article",{className:l("card-profile",r&&"theme-".concat(r),i&&"theme-".concat(r,"--inverse"))},e.createElement("div",{className:"card-profile__container"},e.createElement("figure",{className:"card-profile__figure"},o&&e.createElement("div",{className:"card-profile__image-wrapper"},e.createElement(w,a({},o,{altText:"",loadingAttr:"lazy"}))),e.createElement("figcaption",null,e.createElement("a",{className:"card-profile__link",href:d},"h2"===p&&e.createElement("h2",{className:"card-profile__title"},s),"h3"===p&&e.createElement("h3",{className:"card-profile__title"},s)),m&&e.createElement("p",{className:"card-profile__course-title"},m),u&&e.createElement("p",{className:"card-profile__copy"}," ",u.length>120?"".concat(u.slice(0,120),"..."):u)))))},exports.CardPromoProfile=Ae,exports.CardPromoSignpost=Se,exports.CardStaff=Ve,exports.Carousel=$e,exports.CentreWrapper=function(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.children;return e.createElement("div",{className:l("centre-wrapper",a&&"theme-".concat(a))},e.createElement("div",{className:"centre-wrapper__grid-container"},e.createElement("div",{className:"centre-wrapper__children"},r)))},exports.ClearingBanner=function(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.text,c=t.showIcon,i=void 0===c||c,o=t.smallLink,s=t.mainLink;return e.createElement("div",{className:l("clearing-banner",a&&"theme-".concat(a))},e.createElement("div",{className:"clearing-banner__container"},e.createElement("div",{className:"clearing-banner__top-wrapper"},i&&e.createElement("div",{className:"clearing-banner__icon"},e.createElement(Pe,{theme:a,icon:"clearing-tick"})),e.createElement("div",null,e.createElement("span",null,r),o&&e.createElement("a",{className:"clearing-banner__small-link",href:o.url},o.label))),s&&e.createElement("div",{className:"clearing-banner__main-link"},e.createElement(xe,{theme:a,inverse:!1,label:s.label,url:s.url,icon:s.icon,iconPosition:s.iconPosition}))))},exports.CourseDeliveryPills=function(t){var n=t.pills,r=t.theme,c=void 0===r?"uobmain":r;return e.createElement("div",{className:l("course-delivery-pills",c&&c&&"theme-".concat(c))},n.map(function(t,n){return e.createElement(d,a({key:n},t,{theme:c}))}))},exports.EmbedWrapper=je,exports.FactBoxes=function(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.inverse,i=void 0!==c&&c,o=t.title,s=t.description,m=t.linkProps,d=t.cards,u=t.fullWidth,h=void 0!==u&&u,p=t.htmlTag,v=t.showCardColumn,f=void 0===v||v;return e.createElement("section",{className:l("fact-boxes",r&&"theme-".concat(r),i&&"theme-".concat(r,"--inverse"),h&&"fact-boxes--full-width",f&&3===d.length&&"fact-boxes--three-facts",f&&2===d.length&&"fact-boxes--two-facts",f&&1===d.length&&"fact-boxes--one-fact")},(o||s)&&e.createElement(_,{theme:r,inverse:i,htmlTag:p,title:o,description:s,linkProps:m}),e.createElement("div",{className:"fact-boxes__container"},e.createElement("ul",{className:"fact-boxes__grid"},d.map(function(t,n){return e.createElement("li",{className:"fact-boxes__card",key:n},e.createElement(ze,a({},t,{inverse:!i})))}))))},exports.FeaturedContent=function(n){var a=n.theme,r=n.cards,c=r.length>1,i=e.useState(0),o=i[0],s=i[1],m=e.useState("first"),d=m[0],u=m[1],h=e.useState("0"),p=h[0],v=h[1],f=e.useState("0"),g=f[0],E=f[1],_=e.useState("0"),b=_[0],w=_[1],C=e.useState("0"),y=C[0],N=C[1],k=r[o],x=e.useRef(null),L=ve("768px"),T=ve("1248px");e.useEffect(function(){switch(o){case 0:u("first"),v(ge.first.top),E(Ee.first.bottom),w(_e.first.top),N(be.first.bottom);break;case 1:u("second"),v(ge.second.top),E(Ee.second.bottom),w(_e.second.top),N(be.second.bottom);break;case 2:u("third"),v(ge.third.top),E(Ee.third.bottom),w(_e.third.top),N(be.third.bottom)}},[o,d]);var M=c?e.createElement(Re,{theme:a,totalNumber:r.length,currentNumber:o+1,carouselId:"featured-content",onClickPrev:function(){s(function(e){return e-1})},onClickNext:function(){s(function(e){return e+1})},prevButtonDisabled:0===o,nextButtonDisabled:o===r.length-1}):e.createElement(e.Fragment,null);return e.createElement("div",{className:l("featured-content",a&&"theme-".concat(a)),id:"featured-content"},e.createElement("div",{className:"featured-content__top"},e.createElement("div",{className:"featured-content__content"},e.createElement("div",{className:"featured-content__cards"},L&&e.createElement($e,{theme:a,type:"featured",inverse:!0,cards:r}),!L&&e.createElement(e.Fragment,null,e.createElement(t.motion.section,{className:"featured-content__active-card",key:o,initial:{opacity:0},animate:{opacity:1}},e.createElement(we,{theme:a,imagePrimary:k.imagePrimary,imageSecondary:k.imageSecondary,imageTertiary:k.imageTertiary,categoryLabel:k.categoryLabel,slideTitle:k.slideTitle,subTitle:k.subTitle,introText:k.introText,link:k.link,linkText:k.linkText,cardOrder:k.cardOrder,activeVariant:d,leftInitialPositionTablet:p,rightInitialPositionTablet:g,leftInitialPositionDesktop:b,rightInitialPositionDesktop:y,isMobile:!1,isTablet:T,ref:x}))))),!L&&c&&r.map(function(t,n){return e.createElement("div",{className:"featured-content__invisible-card featured-content__invisible-card--desktop",key:n,"aria-hidden":!0},e.createElement("section",null,e.createElement(we,{theme:a,categoryLabel:t.categoryLabel,slideTitle:t.slideTitle,subTitle:t.subTitle,introText:t.introText,link:t.link,linkText:t.linkText,cardOrder:t.cardOrder,activeVariant:d,imagePrimary:{src:{default:""}},imageSecondary:{src:{default:""}},imageTertiary:{src:{default:""}}})))})),e.createElement("div",{className:"featured-content__nav featured-content__nav--desktop"},M))},exports.FeaturedSignpost=function(t){var n=t.theme,a=t.inverse,r=t.position,c=t.category,i=t.title,o=t.description,s=t.linkUrl,m=t.linkLabel,d=t.linkIsExternal,u=void 0!==d&&d,h=t.imageAlt,v=t.imageSrc,f=ve("1248px");return e.createElement("div",{className:l("featured-signpost","featured-signpost--".concat(r),n&&"theme-".concat(n),a&&"theme-".concat(n,"--inverse"))},"left"===r&&e.createElement("div",{className:"featured-signpost__image-container featured-signpost__image-container--mobile"},e.createElement(lt,{isMobile:!0,isTablet:!1,position:r,imageSrc:v,imageAlt:h}),e.createElement(ot,{isMobile:!0,isTablet:!1,position:r})),"left"===r&&e.createElement("div",{className:"featured-signpost__image-container featured-signpost__image-container--desktop"},e.createElement(lt,{isMobile:!1,isTablet:f,position:r,imageSrc:v,imageAlt:h}),e.createElement(ot,{isMobile:!1,isTablet:f,position:r})),e.createElement("div",{className:"featured-signpost__content-wrapper"},e.createElement("div",{className:"featured-signpost__content"},c&&e.createElement("p",{className:"featured-signpost__category"},c)," ",e.createElement("h2",{className:"featured-signpost__title"},i),o&&e.createElement("p",{className:"featured-signpost__description"},o),e.createElement("div",{className:"featured-signpost__cta"},e.createElement(p,{url:s,title:m,theme:n,inverse:a,externalLink:u})))),"right"===r&&e.createElement("div",{className:"featured-signpost__image-container featured-signpost__image-container--mobile"},e.createElement(lt,{isMobile:!0,isTablet:!1,position:r,imageSrc:v,imageAlt:h}),e.createElement(ot,{isMobile:!0,isTablet:!1,position:r})),"right"===r&&e.createElement("div",{className:"featured-signpost__image-container featured-signpost__image-container--desktop"},e.createElement(lt,{isMobile:!1,isTablet:f,position:r,imageSrc:v,imageAlt:h}),e.createElement(ot,{isMobile:!1,isTablet:f,position:r})))},exports.FeaturedVideo=function(t){var n,a,r=t.theme,c=t.title,i=t.image,o=t.youtubeId,s=t.youtubeButtonLabel,m=void 0===s?"Watch the video":s,d=t.audioYoutubeButtonLabel,u=void 0===d?"Watch the audio described video":d,h=t.audioYoutubeId,p=e.useState(!1),v=p[0],f=p[1],g=e.useRef(o),E=ve("768px"),_=function(){f(!1),document.body.classList.remove("lock-scroll")},b=function(e){g.current=e,v?_():(f(!0),document.body.classList.add("lock-scroll"))};return e.createElement(e.Fragment,null,e.createElement("section",{className:l("featured-video",r&&"theme-".concat(r))},E?e.createElement("div",{className:"featured-video__mobile-image"},e.createElement("div",{className:"featured-video__image-wrapper",style:{backgroundImage:"url(".concat(null===(n=null==i?void 0:i.src)||void 0===n?void 0:n.default,")"),backgroundPosition:"50% 50%",backgroundSize:"cover",backgroundRepeat:"no-repeat"}})):e.createElement(st,{offset:100},e.createElement("div",{className:"featured-video__image-wrapper",style:{backgroundImage:"url(".concat(null===(a=null==i?void 0:i.src)||void 0===a?void 0:a.default,")"),backgroundPosition:"50% 50%",backgroundSize:"cover",backgroundRepeat:"no-repeat"}})),e.createElement("div",{className:"featured-video__container"},e.createElement("h2",{className:"featured-video__title"},c),e.createElement("div",{className:"featured-video__button-wrapper"},e.createElement(xe,{theme:r,inverse:!0,label:m,icon:"play",onClick:function(){return b(o)}}),h&&e.createElement("button",{className:"featured-video__button-audio",type:"button",onClick:function(){return b(h)}},u)))),v&&e.createElement(ke,{theme:r,closeModal:_,isOpen:v},e.createElement(Ce,{theme:r,id:g.current,autoPlay:!0})))},exports.FiveArticlesGrid=function(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.heading,i=t.featuredArticle,o=t.otherLeadArticles;return e.createElement("section",{className:l("five-articles-grid",r&&"theme-".concat(r))},e.createElement("div",{className:"five-articles-grid__container"},c&&e.createElement("h2",{className:"five-articles-grid__heading"},c),e.createElement("div",{className:"five-articles-grid__main-container"},e.createElement("div",{className:"five-articles-grid__featured-card"},e.createElement(qe,a({},i,{isPrimary:!0}))),e.createElement("ul",{className:"five-articles-grid__secondary-card-container"},o.map(function(t,n){return e.createElement("li",{className:"five-articles-grid__secondary-card",key:n},e.createElement(qe,{theme:r,image:t.image,title:t.title,href:t.href,titleTag:t.titleTag,publishDate:t.publishDate}))})))))},exports.Footer=function(t){var n=t.theme,a=t.locations,r=t.summaryLinks,c=t.hygieneLinks,l=t.activeCampus,i=void 0===l?"uk":l,o=t.address,s=t.telephoneAsNumber,d=t.telephoneAsDisplay,u=t.telIntroText,h=void 0===u?"":u,v=t.socialIcons,f=t.minimalFooter,g=void 0!==f&&f;return e.createElement("footer",{id:"footer",className:"footer theme-".concat(n),"data-element":"footer"},!g&&e.createElement("div",{className:"footer__container"},e.createElement("div",{className:"footer__column-container"},e.createElement("div",{className:"footer__column-left"},e.createElement("div",{className:"footer__logo-wrapper"},e.createElement(ut,{activeCampus:i,imageMode:"dark",classNames:"footer__logo-link",imageWidth:240,imageHeight:79,imageAltText:"uk"===i?"University of Birmingham":"University of Birmingham Dubai"})),e.createElement("address",{className:"footer__address"},o&&(null==o?void 0:o.map(function(t,n){return e.createElement("p",{className:"footer__address-line",key:n},t)}))),s&&d&&e.createElement("div",{className:"footer__telephone"},h&&e.createElement("p",null,h),"Tel:",e.createElement(mt,{theme:n,url:"tel: ".concat(s),title:d,externalLink:!1})),v&&e.createElement("ul",{className:"footer__social-wrapper"},null==v?void 0:v.map(function(t,a){return e.createElement("li",{key:a},e.createElement(ye,{icon:t.icon,theme:n,url:t.url,title:t.title,externalLink:!1}))}))),e.createElement("div",{className:"footer__column-middle"},e.createElement("details",{className:"footer__details",open:!r},e.createElement("summary",{className:"footer__summary-links"},"Global Footprint",e.createElement("i",{className:"footer__summary-icon"},e.createElement(m,{icon:"chevron-down",theme:n}))),a&&e.createElement("ul",null,a.map(function(t,a){return e.createElement("li",{className:"footer__location",key:a},e.createElement("i",{className:"footer__location-icon"},e.createElement(m,{icon:"location",theme:n})),e.createElement(mt,{theme:n,url:t.href,title:t.label,externalLink:t.externalLink}))}))),r&&e.createElement("ul",null,null==r?void 0:r.map(function(t,a){return e.createElement("li",{className:"footer__arrow-link",key:a},e.createElement(p,{theme:n,title:t.label,url:t.href,externalLink:t.externalLink}))}))),e.createElement("div",{className:"footer__map"},e.createElement(w,{src:{default:"data:image/svg+xml,%3c%3fxml version='1.0' encoding='utf-8'%3f%3e%3c!-- Generator: Adobe Illustrator 27.8.0%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 466 304' style='enable-background:new 0 0 466 304%3b' xml:space='preserve'%3e%3cstyle type='text/css'%3e .st0%7bfill:white%3bfilter:url(%23Adobe_OpacityMaskFilter)%3b%7d .st1%7bmask:url(%23mask0_4124_14261_00000137847102346873784780000003499357769935946391_)%3b%7d .st2%7bfill:%233C3C3B%3b%7d .st3%7bfill:white%3bstroke:%233C3C3B%3bstroke-width:0.5%3bstroke-miterlimit:10%3b%7d .st4%7bfill:%23C59A00%3bstroke:%233C3C3B%3bstroke-width:0.5%3bstroke-miterlimit:10%3b%7d .st5%7bfill:%23F7F7F7%3b%7d%3c/style%3e%3cdefs%3e %3cfilter id='Adobe_OpacityMaskFilter' filterUnits='userSpaceOnUse' x='0' y='24' width='466' height='279.1'%3e %3cfeColorMatrix type='matrix' values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0'/%3e %3c/filter%3e%3c/defs%3e%3cmask maskUnits='userSpaceOnUse' x='0' y='24' width='466' height='279.1' id='mask0_4124_14261_00000137847102346873784780000003499357769935946391_'%3e %3cpath class='st0' d='M466%2c24H0v279.1h466V24z'/%3e%3c/mask%3e%3cg class='st1'%3e %3cpath class='st2' d='M109%2c74.6l-4.1%2c4.4l-1.1-2.7l-2.2%2c1.9l-5.8-1.2L94%2c74.6l-3.8%2c1.4l-0.6%2c3.1l-0.7-3.6l-7.1-2.1l2.9-1.1L84.1%2c70 h-2.6l-3.5-5.1L74.8%2c66l0.9-2.9l-2.8%2c2.5v-5.2l-2.7%2c2.2l-9.8%2c1.9l-5.3-7.4l-6.5-4.4l-2.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.3-4.2l3.4-1.1l5.2%2c2.9l0.2-3 l-3-2.2l3-1.8l-0.3-1.9l-6.8-1.2v2.4l-2.4-4.2l-13-2.2l-10.9%2c0.8l3.5%2c4.3l-1.1%2c1l-4.2-2.6l-5.9%2c2.4l-0.9%2c1.6L396.3%2c50.3z'/%3e %3cpath class='st2' d='M414.7%2c228.3l-2.3%2c4.4l6.7%2c4.7l3.6-11.1l2.8%2c5.5l2%2c8l4.5%2c7l3.5%2c6.1l-4.1%2c13l-5.9%2c9.3l-5.7%2c3.1l-1.8-2.4 l-1.7%2c1.5l-4.1-2.4l-1.8-9.9l-4.1%2c3.4l-0.8-5.3l-4.8-2l-9.5%2c2.4l-1.2%2c2.2l-5.8-0.8l-3.7%2c2.6l-3.4-2.8l2.6-4.6l-1.7-8.4l1.3-6.9 l7.4-4.2l3.9-0.9l2.9-5.2l6.7-3.5l3%2c1.4l2.2-4.3l5.9-0.5L414.7%2c228.3z'/%3e %3cpath class='st2' d='M287.2%2c226.5l-2.2%2c4.2l-5.1%2c2.7l-0.5%2c2.5l0.5%2c1.8l-1.8%2c4.6l0.6%2c3.4l2.2%2c1.3l2.3-0.5l4.6-11.8l0.1-1.8l0.9-0.9 l-0.4-4.2L287.2%2c226.5z'/%3e %3cpath class='st2' d='M416.7%2c280.4l1.8%2c1.4l2.6-0.6l-1.4%2c4.4l-3%2c1.9l-1.1-3.2L416.7%2c280.4z'/%3e %3cpath class='st2' d='M354.6%2c200.4c0.2%2c0.1%2c3.9%2c1.8%2c3.9%2c1.8l3.4%2c3l4.2%2c3l1%2c2.4l3%2c2.4l-0.4%2c4.5l-3.9-1.7l-5-7.2l-4.5-5.5l-2.2-2.1 L354.6%2c200.4z'/%3e %3cpath class='st2' d='M374.9%2c206.2l-0.7%2c2.8l1.7%2c2.1l0.3%2c2l6.2%2c1v0.8l2.2-0.8l2.4-6.6l1.9-0.2l-1.9-1.5l0.1-3l2.1-0.7l-1.2-2.2 l-2.4-1.6l-2.2%2c3.3l-1.6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1-0.5l1.9-0.3l2.3-1.8L212.9%2c111.7z' /%3e %3cpath class='st2' d='M209.5%2c120.7l-1.2%2c0.7v3.4l-3.6%2c1.5l-2.1-1.3l2-2.3l-1.3-1.6l1.1-0.9l1%2c0.4l0.3-1l-0.3-0.4l2.2-1l1.3%2c1 L209.5%2c120.7z'/%3e %3cpath class='st2' d='M284.9%2c53.8l0.4%2c3l-7.3%2c6.6l-1.5%2c9.5l3.1%2c4.3l-7.1-2l1-10.7l6.3-7.7L284.9%2c53.8z'/%3e %3cpath class='st2' d='M190%2c92.5c0.1%2c0.2%2c1.9%2c2.2%2c1.9%2c2.2l2.2-1.1l3.6-1.1l3%2c3.1l-2.5%2c3.5l-4.6%2c1.7l-3.8-2.3l0.2-1.5l-1.7-1l-0.2-2 L190%2c92.5z'/%3e %3cpath class='st2' d='M113.3%2c58.6h-2.6l-0.9-1.1l-1.7%2c3.9l-1.8-0.7l0.3%2c4.3l0.7%2c2.2l2.8-1.2l1.7-3.2l-1.1-0.9L113.3%2c58.6z'/%3e %3cpath class='st2' d='M164.8%2c32.2l-14.7%2c10.2h-5.6v3.7l-5.3%2c4.3l-3.4-1.2l2.9%2c3.2l-2.9%2c2l-9.3-3.7l6.7-5.6l-3.2-2.8l-1.1-8l6.9-5.5 l3%2c7.6l7-0.1l-0.3-1.3l-5.8-0.1l-1.5-7.6l7.2-1.4l1.7%2c1.8l2.2-3.8l9.4%2c1.1l3.7%2c2.4L164.8%2c32.2z'/%3e %3cpath class='st2' d='M142.2%2c124.1l-1.2%2c1.4l-3.8%2c5.9l5.6%2c0.4l0.5%2c0.7l2.2-2.1l-0.9-2.1l-3.2%2c0.3l0.4-2l1.8-2.3L142.2%2c124.1z'/%3e %3cpath class='st2' d='M101.5%2c42.9l-5.5%2c3.9l5.5%2c2.3l-4.3%2c1.5l6.9%2c0.3l2.8%2c0.5l2.1-3.5l-1.3-4.3l-3.7%2c3.8L101.5%2c42.9z'/%3e %3cpath class='st2' d='M111.5%2c47.1l0.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2c204.1c-0.5-0.5-0.8-1.1-0.9-1.8c-0.1-0.7%2c0-1.4%2c0.3-2s0.8-1.1%2c1.3-1.5c0.6-0.4%2c1.3-0.5%2c2-0.5 c0.7%2c0%2c1.4%2c0.2%2c1.9%2c0.6c0.6%2c0.4%2c1%2c0.9%2c1.2%2c1.6c0.2%2c0.6%2c0.3%2c1.3%2c0.1%2c2c-0.1%2c0.7-0.5%2c1.3-1%2c1.7l-2.4%2c3.1L377.9%2c204.1z'/%3e%3cpath class='st2' d='M389.5%2c172'/%3e%3c/svg%3e"},altText:"",width:368,height:240})))),e.createElement("div",{className:"footer__bottom-container"},e.createElement("div",{className:"footer__bottom-wrapper"},e.createElement("ul",{className:"footer__hygiene-link-wrapper"},c&&(null==c?void 0:c.map(function(t,a){return e.createElement("li",{className:"footer__hygiene-link",key:"hygiene-".concat(a)},e.createElement(mt,{theme:n,url:t.href,title:t.label,externalLink:t.externalLink}))}))),e.createElement("p",{className:"footer__copyright"},"© University of Birmingham ",(new Date).getFullYear()))))},exports.GeneralSearchFilter=function(t){var n=t.theme,a=t.heading,r=t.typeName,c=t.typeGroups,i=t.onClearFilters,o=t.onViewResults,s=t.defaultCheckedType,m=c.find(function(e){return e.value===s});return e.createElement("div",{className:l("general-search-filter",n&&"theme-".concat(n))},e.createElement("p",{className:"general-search-filter__heading"},a),e.createElement("ul",{className:"general-search-filter__list"},e.createElement("li",{className:"general-search-filter__item",key:"type"},e.createElement(_t,{type:"radio",heading:"Type",theme:n,defaultIsOpen:!0,inputs:c.map(function(e){return{name:r,value:e.value,label:e.label,id:e.id,defaultChecked:!!s&&s===e.value,onChange:e.onChange}})})),(null==m?void 0:m.checkboxGroups)&&m.checkboxGroups.length>0&&m.checkboxGroups.map(function(t){return e.createElement("li",{className:"standard-listing-filter__item",key:t.name},e.createElement(_t,{type:"checkbox",heading:t.heading,theme:n,inputs:t.inputs.map(function(e){return{name:t.name,value:e.value,label:e.label,id:e.id,defaultChecked:!!t.defaultValues&&t.defaultValues.includes(e.value),onChange:t.onChange}})}))})),o&&e.createElement("div",{className:"general-search-filter__results-button"},e.createElement(h,{label:"View filtered results",onClick:o,theme:n})),e.createElement("div",{className:"general-search-filter__clear-button"},e.createElement(h,{label:"Clear filters",onClick:i,theme:n,hollow:!0})))},exports.GenericDetailSection=function(t){var n=t.theme,r=t.title,c=t.detailColumns,i=t.buttons;return e.createElement("section",{className:l("generic-detail-section",n&&"theme-".concat(n))},e.createElement("div",{className:"generic-detail-section__container"},r&&e.createElement("h2",{className:"generic-detail-section__title"},r),e.createElement("ul",{className:"generic-detail-section__details-container"},c.map(function(t,r){return e.createElement("ul",{key:r,className:"generic-detail-section__column"},t.map(function(t){return e.createElement("li",{className:"generic-detail-section__detail",key:t.title},e.createElement(vt,a({},t,{theme:n})))}),3===c.length&&2===r&&i&&i.map(function(t,c){return e.createElement("li",{key:c,className:"generic-detail-section__detail generic-detail-section__detail--button"},ft(t)?e.createElement(xe,a({},t,{theme:n,hollow:r%2!=0})):e.createElement(h,a({},t,{theme:n,hollow:r%2!=0})))}))}),c.length<3&&i&&e.createElement("ul",null,i.map(function(t,r){return e.createElement("li",{key:r,className:"generic-detail-section__detail generic-detail-section__detail--button"},ft(t)?e.createElement(xe,a({},t,{theme:n})):e.createElement(h,a({},t,{theme:n,hollow:r%2!=0})))})))))},exports.Header=function(n){var a=n.theme,r=void 0===a?"uobmain":a,c=n.inverse,i=void 0!==c&&c,o=n.primaryLinks,s=n.secondaryLinks,m=n.menuCards,d=n.dubaiUrl,u=n.ukUrl,p=n.logoTitleTagH1,v=void 0===p||p,f=n.activeCampus,g=void 0===f?"uk":f,E=n.searchProps,_=function(){var t=e.useState(null),n=t[0],a=t[1];return e.useEffect(function(){var e=window.scrollY,t=function(){var t=window.scrollY,r=t>e?"down":"up";r!==n&&(t-e>3||t-e<-3)&&a(r),e=t>0?t:0};return window.addEventListener("scroll",t),function(){window.removeEventListener("scroll",t)}},[n]),n}(),b=ve("768px"),w=Qn({primaryLinks:o,secondaryLinks:s,searchProps:E}),C=w.openMenuButtonRef,y=w.headerRef,N=w.desktopCampusSelectorRef,k=w.isOpen,x=w.menuLevel,L=w.searchIsOpen,T=w.searchOpenedFromHeader,M=w.mainMenuSelectedLink,S=w.firstLevelSelectedLink,H=w.openMenu,P=w.closeMenu,V=w.openSearch,O=w.openSearchFromHeader,Z=w.onClickMainMenuNavLink,q=w.onClickLevelOneNavLink,B=w.goBackToMainMenu,F=w.goBackToLevelOne,D=w.closeLowestLevelSearch,I=w.handleSearchChange,A=w.handleSearchSubmit;e.useEffect(function(){if(y.current&&"down"===_){var e=y.current.offsetHeight;y.current.style.top="-".concat(e,"px")}else if(y.current&&"up"===_){var t=0;N.current&&y.current&&(t=N.current.offsetHeight),y.current.style.top="-".concat(t,"px")}},[N,y,_]);var R=e.createElement("div",{className:"header__campus-selector header__campus-selector--mobile"},e.createElement(Jn,{theme:r,dubaiUrl:d,ukUrl:u,active:g,mobile:!0})),$=e.createElement("div",{className:"header__campus-selector header__campus-selector--desktop",ref:N},e.createElement(Jn,{theme:r,dubaiUrl:d,ukUrl:u,active:g,mobile:!1})),j=e.createElement("div",{className:"header__campus-selector header__campus-selector--desktop"},e.createElement(Jn,{theme:r,dubaiUrl:d,ukUrl:u,active:g,mobile:!1}));return e.createElement("header",{className:l("header",r&&"theme-".concat(r),i&&"theme-".concat(r,"--inverse"),!k&&"header--is-closed","header--".concat(g)),id:"header",ref:y},e.createElement("div",{className:"header__closed"},$,e.createElement("div",{className:"header__top-container"},e.createElement("div",{className:"header__logo-wrapper"},e.createElement("div",{className:"header__logo-wrapper"},v?e.createElement("h1",{className:"header__logo-heading"},e.createElement(ut,{activeCampus:g,imageMode:"light",classNames:"header__logo-link",imageAltText:"uk"===g?"University of Birmingham":"University of Birmingham Dubai",loadingAttr:"eager"})):e.createElement(ut,{activeCampus:g,imageMode:"light",classNames:"header__logo-link",loadingAttr:"eager"},e.createElement("span",{className:"sr-only"},"uk"===g?"University of Birmingham":"University of Birmingham Dubai")))),e.createElement("div",{className:"header__right-wrapper"},e.createElement("div",{className:"header__search-button"},e.createElement(h,{theme:r,label:"Search",onClick:O,hollow:!0})),e.createElement("div",{className:"header__menu-button"},e.createElement("span",null,"Menu"),e.createElement(ye,{theme:"uobmain",icon:"hamburger",onClick:H,title:"Open menu",ariaControls:"header",ref:C,ariaExpanded:k}))))),e.createElement(t.AnimatePresence,null,k&&e.createElement(An,null,e.createElement(t.motion.div,{className:"header__open",initial:{x:"100%"},animate:{x:"0"},exit:{x:"100%"},transition:{type:"tween"},key:"header__open"},j,e.createElement("div",{className:"header__top-container"},e.createElement("div",{className:"header__logo-wrapper"},e.createElement(ut,{activeCampus:g,imageMode:"dark",classNames:"header__logo-link"},e.createElement("h1",{className:"sr-only"},"uk"===g?"University of Birmingham":"University of Birmingham Dubai"))),e.createElement("div",{className:"header__right-wrapper"},!b&&!L&&e.createElement("div",{className:"header__search-button-menu"},e.createElement(h,{theme:r,inverse:!0,label:"Search",onClick:V,hollow:!0})),e.createElement("div",{className:"header__menu-button"},e.createElement("span",null,"Menu"),e.createElement(ye,{theme:"uobmain",inverse:!0,icon:"cross",onClick:P,title:"Close menu",ariaControls:"header"})))),b&&!L&&e.createElement("div",{className:"header__search-button-mobile"},e.createElement(h,{theme:r,inverse:!0,label:"Search",onClick:V,hollow:!0})),0===x&&!L&&e.createElement(zn,{primaryLinks:o,secondaryLinks:s,menuCards:m,onClickNavLink:Z,theme:r,inverse:i}),0===x&&L&&e.createElement(Kn,{theme:r,introText:E.introText,placeholder:E.placeholder,title:E.title,handleSearchChange:I,handleSearchSubmit:A,onClickGoBack:T?void 0:B,backLinkLabel:T?"":"Back to menu",recommendedLinks:E.recommendedLinks,recommendedLinkTitle:E.recommendedLinkTitle}),1===x&&M&&!L&&e.createElement(Un,{headingLink:M,onClickNavLink:q,theme:r,inverse:i,onClickGoBack:B,backLinkLabel:"Back to menu"}),1===x&&M&&L&&e.createElement(Kn,{theme:r,introText:E.introText,placeholder:E.placeholder,title:E.title,handleSearchChange:I,handleSearchSubmit:A,onClickGoBack:F,backLinkLabel:"Back to ".concat(M.label),recommendedLinks:E.recommendedLinks,recommendedLinkTitle:E.recommendedLinkTitle}),2===x&&M&&S&&!L&&e.createElement(Un,{headingLink:S,onClickNavLink:function(){},theme:r,inverse:i,onClickGoBack:F,backLinkLabel:"Back to ".concat(M.label)}),2===x&&M&&S&&L&&e.createElement(Kn,{theme:r,introText:E.introText,placeholder:E.placeholder,title:E.title,handleSearchChange:I,handleSearchSubmit:A,onClickGoBack:D,backLinkLabel:"Back to ".concat(S.label),recommendedLinks:E.recommendedLinks,recommendedLinkTitle:E.recommendedLinkTitle}),R))))},exports.HeaderLanding=function(n){var a=n.theme,r=void 0===a?"uobmain":a,c=n.inverse,i=void 0!==c&&c,o=n.primaryLinks,s=n.secondaryLinks,m=n.menuCards,d=n.logoTitleTagH1,u=void 0===d||d,h=n.backLinkUrl,p=n.backLinkLabelMobile,v=n.backLinkLabel,f=n.hideSubMenu,g=void 0===f||f,E=n.hideBackLink,_=void 0===E||E,b=Qn({primaryLinks:o,secondaryLinks:s}),w=b.openMenuButtonRef,C=b.headerRef,y=b.isOpen,N=b.menuLevel,k=b.searchIsOpen,x=b.mainMenuSelectedLink,L=b.firstLevelSelectedLink,T=b.openMenu,M=b.closeMenu,S=b.onClickMainMenuNavLink,H=b.onClickLevelOneNavLink,P=b.goBackToMainMenu,V=b.goBackToLevelOne;return e.createElement("header",{className:l("header",r&&"theme-".concat(r),!y&&"header--is-closed",i&&"theme-".concat(r,"--inverse")),id:"landing-header",ref:C},e.createElement("div",{className:"header__closed"},e.createElement("div",{className:"header__top-container"},e.createElement("div",{className:"header__logo-wrapper"},e.createElement("div",{className:"header__logo-wrapper"},u?e.createElement("h1",{className:"header__logo-heading"},e.createElement(ut,{activeCampus:"uk",imageMode:i?"dark":"light",classNames:"header__logo-link",imageAltText:"University of Birmingham",loadingAttr:"eager"})):e.createElement(ut,{activeCampus:"uk",imageMode:i?"dark":"light",classNames:"header__logo-link",loadingAttr:"eager"},e.createElement("span",{className:"sr-only"},"University of Birmingham")))),e.createElement("div",{className:"header__right-wrapper"},e.createElement("div",{className:"header__menu-button"},!_&&e.createElement(tr,{theme:"uobmain",url:h,title:v,mobileTitle:p,externalLink:!1}),!g&&e.createElement(ye,{theme:"uobmain",inverse:i,icon:"plus",onClick:T,title:"Open menu",ariaControls:"landing-header",ref:w,ariaExpanded:y}))))),e.createElement(t.AnimatePresence,null,y&&e.createElement(An,null,e.createElement(t.motion.div,{className:"header__open",initial:{x:"100%"},animate:{x:"0"},exit:{x:"100%"},transition:{type:"tween"},key:"header__open"},e.createElement("div",{className:"header__top-container"},e.createElement("div",{className:"header__logo-wrapper"},e.createElement(ut,{activeCampus:"uk",imageMode:i?"light":"dark",classNames:"header__logo-link"},e.createElement("h1",{className:"sr-only"},"University of Birmingham"))),e.createElement("div",{className:"header__right-wrapper"},e.createElement("div",{className:"header__menu-button"},e.createElement("span",null,"Menu"),e.createElement(ye,{theme:"uobmain",inverse:!i,icon:"cross",onClick:M,title:"Close menu",ariaControls:"landing-header"})))),0===N&&e.createElement(zn,{primaryLinks:o,secondaryLinks:s,menuCards:m,onClickNavLink:S,theme:r,inverse:i}),1===N&&x&&e.createElement(Un,{headingLink:x,onClickNavLink:H,theme:r,inverse:i,onClickGoBack:P,backLinkLabel:"Back to menu"}),2===N&&x&&L&&!k&&e.createElement(Un,{headingLink:L,onClickNavLink:function(){},theme:r,inverse:i,onClickGoBack:V,backLinkLabel:"Back to ".concat(x.label)})))))},exports.Heading=_,exports.Hero=function(t){var n=t.theme,r=t.inverse,c=t.title,i=t.titleTag,o=void 0===i?"h2":i,s=t.description,m=t.image,d=t.publishDate,u=t.links,p=t.courseSearchProps,v=ve("768px"),f=ve("1248px");return e.createElement("div",{className:l("hero",n&&"theme-".concat(n),r&&"theme-".concat(n,"--inverse"),m&&"hero--with-image"),id:"hero"},m&&"rectangle"===m.style&&e.createElement("div",{className:"hero__image-wrapper hero__image-wrapper--mobile hero__image-wrapper--rectangle"},e.createElement(w,a({},m,{altText:m.alt,fetchPriority:m.fetchPriority}))),m&&"lines-of-intent"===m.style&&v&&e.createElement("div",{className:"hero__image-wrapper hero__image-wrapper--mobile"},e.createElement(ea,{isMobile:!0,isTablet:!1,image:m}),e.createElement(na,{isMobile:!0,isTablet:!1})),e.createElement("div",{className:"hero__container"},e.createElement("div",{className:"hero__content"},e.createElement(o,{className:"hero__title"},c),s&&e.createElement("div",{className:"hero__description"},e.createElement(g,{text:s,theme:n,inverse:r})),d&&e.createElement("div",{className:"hero__meta-data"},e.createElement("div",{className:"hero__publish-date"},d)),u&&u.length>0&&e.createElement("div",{className:"hero__buttons"},u.map(function(t,a){return e.createElement(h,{theme:n,key:a,url:t.url,label:t.title,externalLink:t.externalLink,inverse:!r,hollow:1===a})})),p&&e.createElement(ra,a({theme:n,inverse:r,wrapped:!0},p))),m&&"rectangle"===m.style&&e.createElement("div",{className:"hero__image-wrapper hero__image-wrapper--desktop hero__image-wrapper--rectangle"},e.createElement(w,a({},m,{altText:m.alt,fetchPriority:m.fetchPriority}))),m&&"lines-of-intent"===m.style&&f&&e.createElement("div",{className:"hero__image-wrapper hero__image-wrapper--desktop hero__image-wrapper--polygon"},e.createElement(ea,{isMobile:!1,isTablet:!0,image:m}),e.createElement(na,{isMobile:!1,isTablet:!0})),m&&"lines-of-intent"===m.style&&!v&&!f&&e.createElement("div",{className:"hero__image-wrapper hero__image-wrapper--desktop hero__image-wrapper--polygon"},e.createElement(ea,{isMobile:!1,isTablet:!1,image:m}),e.createElement(na,{isMobile:!1,isTablet:!1}))))},exports.HeroArticle=function(t){var n=t.theme,r=t.inverse,c=t.title,i=t.titleTag,o=void 0===i?"h2":i,s=t.description,m=t.cardImage,d=t.publishDate,u=t.readTime,h=t.shareButtons,p=t.author,v=Array.isArray(p)?p:[p];return e.createElement("section",{className:l("hero-article",n&&"theme-".concat(n),r&&"theme-".concat(n,"--inverse"))},e.createElement("div",{className:"hero-article__container"},e.createElement("div",{className:"hero-article__content"},e.createElement(o,{className:"hero-article__title"},c),e.createElement("p",{className:"hero-article__description"},s),e.createElement("div",{className:"hero-article__meta-data"},d&&e.createElement("span",{className:"hero-article__publish-date"},d),d&&u&&e.createElement("span",{className:"hero-article__separator"},"•"),u&&e.createElement("span",{className:"hero-article__read-time"},u),p&&e.createElement(e.Fragment,null,e.createElement("span",{className:"hero-article__separator"},"•"),e.createElement("span",{className:"hero-article__author"},"by ",e.createElement(la,{items:v})))),e.createElement("div",{className:"hero-article__sharing-buttons"},e.createElement(ca,{theme:n,label:h.label,icons:h.icons,inverse:r})))),m&&e.createElement("div",{className:"hero-article__image-wrapper"},e.createElement(Ze,a({},m,{inverse:r}))))},exports.HeroCarousel=function(n){var a=n.theme,r=n.cards,c=r.length>1,i=e.useState(0),o=i[0],s=i[1],m=r[o],d=e.useRef(null),u=ve("768px"),h=ve("1248px"),p="";switch(o){case 0:p="first";break;case 1:p="second";break;case 2:p="third"}var v=c?e.createElement(Re,{theme:a,totalNumber:r.length,currentNumber:o+1,carouselId:"hero-carousel",onClickPrev:function(){s(function(e){return e-1})},onClickNext:function(){s(function(e){return e+1})},prevButtonDisabled:0===o,nextButtonDisabled:o===r.length-1,showNumbers:!0}):e.createElement(e.Fragment,null);return e.createElement("div",{className:l("hero-carousel",a&&"theme-".concat(a)),id:"hero-carousel"},e.createElement("div",{className:"hero-carousel__top"},e.createElement("div",{className:"hero-carousel__content"},u&&e.createElement("div",{className:"hero-carousel__image-container hero-carousel__image-container--mobile"},e.createElement(xa,{isMobile:!0,isTablet:!1,activeVariant:p,imageSrc:m.imageSrc,imageAlt:m.imageAlt}),e.createElement(ka,{isMobile:!0,isTablet:!1,activeVariant:p})),e.createElement("div",{className:"hero-carousel__cards"},e.createElement(t.motion.section,{className:"hero-carousel__active-card",key:o,initial:{opacity:0},animate:{opacity:1}},e.createElement(La,{category:m.category,title:m.title,description:m.description,linkUrl:m.linkUrl,linkLabel:m.linkLabel,theme:a,ref:d})),u&&c&&r.map(function(t,n){return e.createElement("section",{className:"hero-carousel__invisible-card hero-carousel__invisible-card--mobile",key:n,"aria-hidden":!0},e.createElement(La,{category:t.category,title:t.title,description:t.description,linkUrl:t.linkUrl,linkLabel:t.linkLabel,theme:a}))}),e.createElement("div",{className:"hero-carousel__nav hero-carousel__nav--desktop"},v)),e.createElement("div",{className:"hero-carousel__image-container hero-carousel__image-container--desktop"},e.createElement(xa,{isMobile:!1,isTablet:h,activeVariant:p,imageSrc:null==m?void 0:m.imageSrc,imageAlt:m.imageAlt}),e.createElement(ka,{isMobile:!1,isTablet:h,activeVariant:p}))),!u&&c&&r.map(function(t,n){return e.createElement("div",{className:"hero-carousel__invisible-card hero-carousel__invisible-card--desktop",key:n,"aria-hidden":!0},e.createElement("section",null,e.createElement(La,{category:t.category,title:t.title,description:t.description,linkUrl:t.linkUrl,linkLabel:t.linkLabel,theme:a})))})),u&&e.createElement("div",{className:"hero-carousel__nav hero-carousel__nav--mobile"},v))},exports.HeroCourses=function(t){var n,r=t.theme,c=t.title,i=t.titleTag,o=void 0===i?"h2":i,s=t.awardShort,m=t.links,d=t.ranking,u=t.award,p=t.campus,v=t.ucas,g=t.duration,E=t.entryRequirements,_=t.startDate,b=t.yearOfEntry,w=t.fees,C=t.deliveryFormat,y=t.locationDetails,N=t.modalCTA;return e.createElement("section",{className:l("hero-courses",r&&"theme-".concat(r)),id:"hero-courses"},e.createElement("div",{className:"hero-courses__container"},e.createElement("div",{className:"hero-courses__content"},e.createElement("div",{className:"hero-courses__title-wrapper"},e.createElement(f,{htmlTag:o,classNames:"hero-courses__title"},c&&c.length>0&&s&&s.length>0?c+" ":c,e.createElement("span",{className:"hero-courses__title-award"},s))),y&&e.createElement("div",{className:"hero-courses__location-wrapper"},e.createElement(da,a({},y,{inverse:!1}))),e.createElement("ul",{className:(n="hero-courses__grid--four",d&&(p||C||v)?n="hero-courses__grid--six":(d&&!p&&!C&&!v||!d&&(p||C||v))&&(n="hero-courses__grid--five"),"hero-courses__grid "+n)},d&&e.createElement("li",{className:"hero-courses__column hero-courses__column--ranking"},e.createElement(ma,a({},d))),(v||p||C)&&e.createElement("li",{className:"hero-courses__column hero-courses__column--split hero-courses__column--award"},v&&e.createElement(oa,a({},v)),p&&e.createElement(oa,a({},p)),C&&e.createElement(oa,a({},C))),g&&b?e.createElement("li",{className:"hero-courses__column hero-courses__column--split hero-courses__column--duration"},e.createElement(sa,a({},b)),e.createElement(oa,a({},g))):g&&_?e.createElement("li",{className:"hero-courses__column hero-courses__column--split hero-courses__column--duration"},e.createElement(oa,a({},_)),e.createElement(oa,a({},g))):e.createElement("li",{className:"hero-courses__column hero-courses__column--duration"},e.createElement(oa,a({},g))),u&&e.createElement("li",{className:"hero-courses__column hero-courses__column--delivery-format"},e.createElement(oa,a({},u))),e.createElement("li",{className:"hero-courses__column hero-courses__column--entry-requirements"},e.createElement(oa,a({},E))),e.createElement("li",{className:"hero-courses__column hero-courses__column--fees"},e.createElement(oa,a({},w)))),e.createElement("div",{className:"hero-courses__button-wrapper"},e.createElement("ul",{className:"hero-courses__buttons"},m&&m.map(function(t,n){return t.externalLink?e.createElement("li",{className:"hero-courses__button",key:n},e.createElement(xe,{theme:r,label:t.label,icon:"external",hollow:n%2!=0,iconPosition:"right",url:t.url,inverse:!0,onClick:t.onClick})):e.createElement("li",{className:"hero-courses__button",key:n},e.createElement(h,{theme:r,label:t.label,hollow:n%2!=0,url:t.url,inverse:!0,onClick:t.onClick}))})),N&&e.createElement(ia,{theme:r,inverse:!N.inverse,hollow:!0,buttonLabel:N.buttonLabel,modalChildren:N.modalChildren})))))},exports.HeroProfile=function(t){var n=t.theme,r=t.studentName,c=t.studentStatus,i=t.courseName,o=t.courseDetails,s=t.studyLevel,m=t.titleTag,d=void 0===m?"h2":m,u=t.homeCountry,h=t.studentIntro,p=t.image,v=t.inverse;return e.createElement("div",{className:l("heroProfile",n&&"theme-".concat(n),v&&"theme-".concat(n,"--inverse")),id:"hero"},e.createElement("div",{className:"heroProfile__container"},e.createElement("div",{className:"heroProfile__details"},r&&e.createElement(d,{className:"heroProfile__title"},r),c&&e.createElement("p",{className:"heroProfile__status"},c),i&&e.createElement("p",{className:"heroProfile__courseName"},i),(s||u||o&&o.length>0)&&e.createElement("ul",{className:"heroProfile__studentDetails"},o&&o.length>0&&e.createElement("li",null,e.createElement("div",{className:"heroProfile__iconContainer"},e.createElement(Pe,{icon:"mortar-board",theme:n,backgroundColor:"pale"}),e.createElement("div",{className:"heroProfile__courseIconText"},e.createElement("span",null,1===o.length?"Course":"Courses",":"),e.createElement("div",{className:"heroProfile__courseDetails"},o.map(function(t,a){return e.createElement(g,{theme:n,key:a,text:t,inverse:v})}))))),s&&e.createElement("li",null,e.createElement("div",{className:"heroProfile__iconContainer"},e.createElement(Pe,{icon:"scroll",theme:n,backgroundColor:"pale"}),e.createElement("div",{className:"heroProfile__iconText"},e.createElement("span",null,"Study level:"),e.createElement("span",null,s)))),u&&e.createElement("li",null,e.createElement("div",{className:"heroProfile__iconContainer"},e.createElement(Pe,{icon:"flag",theme:n,backgroundColor:"pale"}),e.createElement("div",{className:"heroProfile__iconText"},e.createElement("span",null,"Home country:"),e.createElement("span",null,u))))),h&&e.createElement(g,{theme:n,text:h,inverse:v})),e.createElement("div",{className:"heroProfile__image-wrapper"},p&&e.createElement(w,a({},p,{altText:null==p?void 0:p.alt,fetchPriority:p.fetchPriority})))))},exports.HeroVideo=function(t){var n=t.theme,a=t.title,r=t.titleTag,c=void 0===r?"h1":r,i=t.description,o=t.bgVideoUrl,s=t.bgVideoMobileThumbnail,m=t.bgVideoAltText,d=t.fullVideoId,u=t.fullVideoButtonLabel,h=void 0===u?"Watch full video":u,p=t.describedVideoId,v=t.describedVideoButtonLabel,f=void 0===v?"Audio described video":v,g=t.includesAudio,E=e.useRef(null),_=e.useState(!1),b=_[0],w=_[1],C=e.useState(!0),y=C[0],N=C[1],k=e.useState(!1),x=k[0],L=k[1],T=e.useRef(d),M=e.useId(),S="video-".concat(M);e.useEffect(function(){var e,t=window.matchMedia("(prefers-reduced-motion: reduce)"),n=navigator.connection,a=!(!n||!n.saveData&&!["slow-2g","2g","3g"].includes(null!==(e=n.effectiveType)&&void 0!==e?e:""));!E.current||t.matches||a||E.current.play().catch(function(){});var r=function(){E.current&&(w(!E.current.paused),N(E.current.muted))},c=E.current;return null==c||c.addEventListener("play",r),null==c||c.addEventListener("pause",r),null==c||c.addEventListener("volumechange",r),function(){null==c||c.removeEventListener("play",r),null==c||c.removeEventListener("pause",r),null==c||c.removeEventListener("volumechange",r)}},[o]);var H=function(e){var t;T.current=e,L(!0),document.body.classList.add("lock-scroll"),null===(t=E.current)||void 0===t||t.pause()},P=c;return e.createElement(e.Fragment,null,e.createElement("section",{className:l("hero-video","theme-".concat(n))},e.createElement("div",{className:"hero-video__bg-wrapper",style:{backgroundImage:"url(".concat(s,")")}},e.createElement("video",{id:S,ref:E,role:"img",className:"hero-video__bg-element",src:"".concat(o,"#t=0.1"),poster:s,muted:!g||y,loop:!0,playsInline:!0,preload:"metadata","aria-label":m})),e.createElement("div",{className:"hero-video__container"},e.createElement("div",{className:"hero-video__card"},e.createElement(P,{className:"hero-video__title"},a),e.createElement("p",{className:"hero-video__description"},i),e.createElement("div",{className:"hero-video__controls"},e.createElement("div",{className:"hero-video__playback-btns"},e.createElement(ye,{theme:n,inverse:!0,title:b?"Pause":"Play",icon:b?"pause":"play",onClick:function(){var e=E.current;e&&(b?e.pause():e.play().catch(function(){}))},"aria-controls":S,"aria-pressed":b}),g&&e.createElement(ye,{theme:n,inverse:!0,title:y?"Unmute":"Mute",icon:y?"mute-off":"mute-on",onClick:function(){E.current&&g&&(E.current.muted=!E.current.muted,N(E.current.muted))},"aria-controls":S,"aria-pressed":!y})),e.createElement("div",{className:"hero-video__action-btns"},e.createElement(xe,{theme:n,inverse:!1,hollow:!0,label:h,icon:"play",onClick:function(){return H(d)}}),p&&e.createElement(xe,{theme:n,inverse:!1,hollow:!0,label:f,icon:"play",onClick:function(){return H(p)}})))))),x&&e.createElement(ke,{theme:n,closeModal:function(){L(!1),document.body.classList.remove("lock-scroll")},isOpen:x},e.createElement(Ce,{theme:n,id:T.current,autoPlay:!0})))},exports.ImageBlock=function(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.inverse,i=t.title,o=t.description,s=t.linkProps,m=t.fullWidth,d=t.makeHeadingFullWidth,u=t.images,h=t.htmlTag;if(!u||0===u.length)return null;var p=3===u.length&&!m;return e.createElement("div",{className:l("image-block","theme-".concat(r),c&&"theme-".concat(r,"--inverse"),m?"image-block--full-width":"image-block--standard-width","image-block--count-".concat(u.length))},(i||o||s)&&e.createElement(_,{theme:r,inverse:c,title:i,description:o,linkProps:s,fullWidth:!!d,htmlTag:h}),e.createElement("div",{className:"image-block__container"},p?e.createElement("div",{className:"image-block__inner-grid"},u.map(function(t,n){return e.createElement("div",{key:n,className:"image-block__item"},e.createElement(Ze,a({},t,{theme:r,inverse:c})))})):u.map(function(t,n){return e.createElement("div",{key:n,className:l("image-block__item","image-block__item--index-".concat(n+1))},e.createElement(Ze,a({},t,{theme:r,inverse:c})))})))},exports.ImageCarousel=function(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.inverse,c=void 0!==r&&r,i=t.title,o=t.description,s=t.linkProps,m=t.fullWidth,d=void 0!==m&&m,u=t.widerImage,h=t.images,p=t.htmlTag;return e.createElement("section",{className:l("image-carousel",a&&"theme-".concat(a),c&&"theme-".concat(a,"--inverse"),d&&"image-carousel--full-width",u&&"image-carousel--wider-image")},(i||o)&&e.createElement(_,{theme:a,htmlTag:p,inverse:c,title:i,description:o,linkProps:s}),e.createElement("div",{className:"image-carousel__grid"},e.createElement($e,{theme:a,inverse:c,type:"image",cards:h})))},exports.InPageNavigation=function(n){var r,c,i=n.theme,o=void 0===i?"uobmain":i,s=n.inverse,m=void 0!==s&&s,d=n.links,u=n.expandableHeader,h=void 0===u?"Page contents":u,p=e.useState(!1),v=p[0],f=p[1],g=e.useState("not-docked"),E=g[0],_=g[1],b=e.useState(null),w=b[0],C=b[1],y=e.useRef(null),N=e.useRef(null),k=e.useRef(null),x=e.useRef(null),L=e.useRef(null),T=function(){f(!1)};return r=L,c=function(){return T()},e.useEffect(function(){var e=function(e){!r.current||e.target instanceof HTMLElement&&r.current.contains(e.target)||c()};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),function(){document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[r,c]),e.useEffect(function(){var e;k.current=new IntersectionObserver(function(t){var n;e=null===(n=t.find(function(e){return e.isIntersecting}))||void 0===n?void 0:n.target,_(e?"docked":"not-docked")},{rootMargin:"0px 0px -100%"}),N.current=new IntersectionObserver(function(t){var n,a=null===(n=t.find(function(e){return e.isIntersecting}))||void 0===n?void 0:n.target;a?_("docked-at-bottom"):!a&&e&&_("docked")}),y.current=new IntersectionObserver(function(e){var t,n=null===(t=e.find(function(e){return e.isIntersecting}))||void 0===t?void 0:t.target;n&&C(n.id)},{rootMargin:"0px 0px -".concat(.7*window.innerHeight,"px 0px")});var t=document.querySelectorAll(".anchor-target");t.forEach(function(e){y&&y.current&&y.current.observe(e)});var n=document.querySelectorAll("#footer");n.forEach(function(e){N&&N.current&&N.current.observe(e)});var a=document.querySelectorAll("#sidebar");return a.forEach(function(e){k&&k.current&&k.current.observe(e)}),function(){t.forEach(function(e){y&&y.current&&y.current.unobserve(e)}),a.forEach(function(e){k&&k.current&&k.current.unobserve(e)}),n.forEach(function(e){N&&N.current&&N.current.unobserve(e)})}},[]),d.links.map(function(e){return e.url.substring(1)===w?e.active=!0:e.active=!1}),e.createElement("div",{className:l("in-page-navigation",o&&"theme-".concat(o),m&&"theme-".concat(o,"--inverse"))},e.createElement("div",{className:l("in-page-navigation--mobile",E)},e.createElement("div",{className:"in-page-navigation__closed"},e.createElement("div",{className:"in-page-navigation__top-container"},e.createElement("div",{className:"in-page-navigation__right-wrapper"},e.createElement("div",{className:"in-page-navigation__menu-button"},e.createElement("span",{className:"in-page-navigation__expandable-header"},h),e.createElement(ye,{theme:"uobmain",icon:"menu",onClick:function(){f(!0)},title:"Open menu",ariaControls:"in-page-navigation",ref:x,ariaExpanded:v})))))),v&&e.createElement("div",{className:"in-page-navigation__overlay"}),e.createElement(t.AnimatePresence,null,v&&e.createElement(t.motion.div,{className:"in-page-navigation__open",initial:{x:"100%"},animate:{x:"0"},exit:{x:"100%"},transition:{type:"tween"},key:"in-page-navigation__open",ref:L},e.createElement(Ne,null,e.createElement("div",{className:"in-page-navigation__nav"},e.createElement("div",{className:"in-page-navigation__top-container"},e.createElement("div",{className:"in-page-navigation__right-wrapper"},e.createElement("div",{className:"in-page-navigation__close-button"},e.createElement("span",null,"Close"),e.createElement(ye,{theme:"uobmain",inverse:!0,icon:"cross",onClick:T,title:"Close menu",ariaControls:"in-page-navigation"})))),e.createElement(Ta,a({},d,{theme:"uobmain"})))))),e.createElement("div",{className:l("in-page-navigation--desktop",E)},e.createElement(Ta,a({},d,{theme:o}))))},exports.IntroText=function(t){var n=t.text,a=t.theme,r=void 0===a?"uobmain":a,c=t.inverse,i=t.fullWidth,o=t.removeBottomPadding,s=void 0!==o&&o,m=t.removeTopPadding,d=void 0!==m&&m;return e.createElement("div",{className:l("intro-text",r&&"theme-".concat(r),c&&"theme-".concat(r,"--inverse"),i&&"intro-text--full-width",s&&"intro-text--no-bottom-padding",d&&"intro-text--no-top-padding")},e.createElement("div",{className:"intro-text__container"},e.createElement("p",{className:"intro-text__text"},n)))},exports.LeadNewsArticles=function(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.featuredArticle,i=t.otherLeadArticles,o=t.mostReadNews;return e.createElement("section",{className:l("lead-news-articles",r&&"theme-".concat(r))},e.createElement("div",{className:"lead-news-articles__container"},e.createElement("div",{className:"lead-news-articles__main-container"},e.createElement("div",{className:"lead-news-articles__featured-card"},e.createElement(qe,a({},c,{isPrimary:!0}))),e.createElement("ul",{className:"lead-news-articles__secondary-card-container"},i.map(function(t,n){return e.createElement("li",{className:"lead-news-articles__secondary-card",key:n},e.createElement(qe,{theme:r,image:t.image,title:t.title,href:t.href,titleTag:t.titleTag,publishDate:t.publishDate}))}))),e.createElement("div",{className:"lead-news-articles__side-container"},e.createElement(Ma,a({},o)))))},exports.ListTable=function(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.listItems;return e.createElement("div",{className:l("list-table",a&&"theme-".concat(a))},(null==r?void 0:r.length)?e.createElement("ul",{className:"list-table__list"},null==r?void 0:r.map(function(t,n){return e.createElement("li",{key:t+n,className:"list-table__list-item"},e.createElement(g,{inverse:!0,theme:"uobmain",text:t}))})):null)},exports.ListingFilterWrapper=function(n){var a=n.theme,r=n.showFilterButtonLabel,c=n.numSelected,i=n.filterElement,o=e.useState(!1),s=o[0],d=o[1],u=e.useRef(null),h=function(e){"Escape"===e.key&&s&&d(!1)};return e.useEffect(function(){return document.addEventListener("keydown",h),function(){document.removeEventListener("keydown",h)}}),e.useEffect(function(){var e,t;s?null===(e=u.current)||void 0===e||e.showModal():null===(t=u.current)||void 0===t||t.close()},[s]),e.createElement(e.Fragment,null,e.createElement("div",{className:l("listing-filter-wrapper","theme-".concat(a))},e.createElement("div",{className:"listing-filter-wrapper__mobile"},e.createElement("button",{className:"listing-filter-wrapper__show-filter-button",onClick:function(){d(!0),document.body.classList.add("lock-scroll")}},e.createElement(m,{theme:"uobmain",icon:"settings"}),r,c&&e.createElement("span",{className:"listing-filter-wrapper__num-selected"},c,e.createElement("span",{className:"sr-only"},c>1?"filters":"filter"," selected"))))),e.createElement(Ne,null,e.createElement(t.motion.dialog,{className:l("listing-filter-wrapper__dialog","theme-".concat(a)),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},ref:u},e.createElement("div",{className:"listing-filter-wrapper__popup-wrapper"},e.createElement("div",{className:"listing-filter-wrapper__popup"},e.createElement("button",{className:"listing-filter-wrapper__close-button",onClick:function(){d(!1),document.body.classList.remove("lock-scroll")}},e.createElement(m,{icon:"slim-cross",theme:a,ariaHidden:!0}),e.createElement("span",{className:"sr-only"},"Close")),i)))),e.createElement("div",{className:"listing-filter-wrapper__desktop"},i))},exports.ListingResults=function(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.showCategory,i=void 0!==c&&c,o=t.cards,s=t.headingInfo;return e.createElement(e.Fragment,null,s&&e.createElement(_,a({},s,{theme:r,fullWidth:!0})),e.createElement("ul",{className:l("listing-results",r&&"theme-".concat(r))},o.map(function(t,n){return e.createElement("li",{className:"listing-results__card",key:n},e.createElement(Ba,a({},t,{showCategory:i,theme:r})))})))},exports.ListingResultsCount=function(t){var n=t.count,a=t.theme,r=void 0===a?"uobmain":a;return e.createElement("p",{className:l("listing-results-count",r&&"theme-".concat(r))},e.createElement("span",{className:"listing-results-count__number"},n.toLocaleString())," results were found based on your search term")},exports.LocationSection=function(t){var n=t.theme,r=t.embedChildren,c=t.googleMapLink,i=t.address,o=t.services,s=t.link,m=t.titleTag,d=void 0===m?"h2":m;return e.createElement("section",{className:l("location-section",n&&"theme-".concat(n),(!o||o.length<1)&&"location-section--no-services")},e.createElement("div",{className:"location-section__container"},e.createElement(f,{htmlTag:d,classNames:l("location-section__title","h3"===d&&"location-section__title--h3")},"Location"),e.createElement("div",{className:"location-section__grid-wrapper"},e.createElement("div",{className:"location-section__embed"},e.createElement(je,null,r)),e.createElement("div",{className:"location-section__address-wrapper"},e.createElement("div",{className:"location-section__address"},e.createElement(vt,{theme:n,title:"Address",iconType:"slim-location",value:i.map(function(e){return"<span>".concat(e,"</span>")}).join("")})),s&&(null==s?void 0:s.title)&&(null==s?void 0:s.url)&&e.createElement("div",{className:"location-section__link-wrapper"},e.createElement(p,a({},s,{inverse:!0}))),c?e.createElement("div",{className:"location-section__button"},e.createElement(h,{label:"View on Google Maps",theme:n,url:c})):null),(null==o?void 0:o.length)?e.createElement("div",{className:"location-section__services"},null==o?void 0:o.map(function(t,r){return e.createElement(vt,a({},t,{theme:n,key:r}))})):null)))},exports.LocationSelector=da,exports.LogoWall=function(t){var n,r,c=t.theme,i=void 0===c?"uobmain":c,o=t.inverse,s=t.logos,m=null!==(r=null==s?void 0:s.length)&&void 0!==r?r:0,d=s&&s.length%2!=0;return e.createElement("div",{className:l("logo-wall",i&&"theme-".concat(i),o&&"theme-".concat(i,"--inverse"))},e.createElement("div",null,e.createElement("ul",{className:l("logo-wall__container",d&&"logo-wall__container--odd"),style:(n={},n["--logo-wall-cols"]=String(m),n)},s&&s.map(function(t,n){var r;return e.createElement("li",{key:"li-".concat(n)},e.createElement(Ze,a({key:"".concat((null===(r=t.image)||void 0===r?void 0:r.title)||"imageTitle","-").concat(n),theme:i,inverse:o},t)))}))))},exports.MainWrapper=function(t){var n=t.children;return e.createElement("main",{id:"main"},n)},exports.ModalCTA=function(t){var n=t.theme,a=t.heading,r=t.inverse,c=t.description,i=t.buttonLabel,o=t.buttonModifier,s=t.modalChildren,m=t.htmlTag,d=void 0===m?"h3":m,u=e.useState(!1),p=u[0],v=u[1],g=function(){v(!1),document.body.classList.remove("lock-scroll")};return e.createElement("div",{className:l("modal-cta",n&&"theme-".concat(n),r&&"theme-".concat(n,"--inverse"))},e.createElement(f,{htmlTag:d,classNames:"modal-cta__heading"},a),c&&e.createElement("p",{className:"modal-cta__description"},c),e.createElement("div",{className:l("modal-cta__button",o&&"theme-".concat(n,"--buttonModifier"))},e.createElement(h,{inverse:!r,label:i,onClick:function(){p?g():(v(!0),document.body.classList.add("lock-scroll"))},theme:n,buttonModifier:o})),p&&e.createElement(ke,{centred:!0,theme:n,closeModal:g,isOpen:p},e.createElement(je,{className:"modal-cta__embed-wrapper"},s)))},exports.ModuleCardGroup=function(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.inverse,i=void 0===c||c,o=t.cards,s=Array.isArray(o)?o:[o];return e.createElement("div",{className:l("module-card-group",r&&"theme-".concat(r),i&&"theme-".concat(r,"--inverse"))},e.createElement("div",{className:"module-card-group__container"},e.createElement("div",{className:"module-card-group__grid"},s.map(function(t,n){return e.createElement(u,a({key:n},t,{theme:r}))}))))},exports.NewsArticlesPromoBlock=function(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.heading,i=t.cards,o=t.cardType,s=void 0===o?"featured-news":o;return e.createElement("section",{className:l("news-articles-promo-block",r&&"theme-".concat(r),s&&"news-articles-promo-block--".concat(s))},e.createElement("div",{className:"news-articles-promo-block__heading-container"},c&&e.createElement("h2",{className:"news-articles-promo-block__heading"},c)),e.createElement("div",{className:"news-articles-promo-block__cards news-articles-promo-block__cards--mobile"},"featured-news"===s&&e.createElement($e,{theme:r,type:"featured-news",cards:i,inverse:!0,cardTitleTag:"h3"}),"promo-video"===s&&e.createElement($e,{theme:r,type:"promo-video",cards:i,inverse:!0,cardTitleTag:"h3",setCardInverse:"dark"})),e.createElement("ul",{className:"news-articles-promo-block__cards news-articles-promo-block__cards--desktop"},i.map(function(t,n){return e.createElement("li",{key:n},"featured-news"===s&&e.createElement(qe,a({},t,{inverse:!0,titleTag:"h3"})),"promo-video"===s&&e.createElement(He,a({},t,{inverse:!1,titleTag:"h3"})))})))},exports.Pagination=function(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.numOfPages,c=t.onClick,i=t.currentPage,o=!ve("1248px");return r<=1?e.createElement(e.Fragment,null):e.createElement("div",{className:l("pagination",a&&"theme-".concat(a))},e.createElement("ul",{className:"pagination__container"},e.createElement("li",{className:"pagination__prev",key:"prev"},o?e.createElement(h,{theme:a,label:"Previous",onClick:function(){return c(i-1)},hollow:!0,disabled:i<1}):e.createElement(ye,{theme:a,icon:"arrow-left",title:"Previous",onClick:function(){return c(i-1)},disabled:i<1,inverse:!0})),e.createElement(Fa,{currentPage:i,onClick:c,theme:a,numOfPages:r}),e.createElement("li",{className:"pagination__next",key:"next"},o?e.createElement(h,{theme:a,label:"Next",onClick:function(){return c(i+1)},hollow:!0,disabled:i+1===r}):e.createElement(ye,{theme:a,icon:"arrow-right",title:"Next",onClick:function(){return c(i+1)},disabled:i+1===r,inverse:!0}))))},exports.PromoBlock=function(t){var n,r=t.theme,c=t.inverse,i=t.type,o=t.title,m=t.description,d=t.link,u=t.cards,h=t.imageOrientation,v=void 0===h?"left":h,g=t.titleTag,E=void 0===g?"h2":g,_=t.cardTitleTag,b=void 0===_?"h3":_,w=t.cardCopyIsRichText,C=void 0!==w&&w,y=t.fullWidth,N=void 0!==y&&y,k=t.fullWidthTitle,x=void 0!==k&&k,L=t.showFilters,T=void 0!==L&&L,M=t.firstFilterSelect,S=t.secondFilterSelect,H=t.imageHeight,P=void 0===H?"default":H,V=!1;ve("768px")?u.length>1&&(V=!0):(N&&u.length>2||u.length>3)&&(V=!0);var O=l(((n={})["promo-block__grid"]=!0,n["promo-block__grid--single"]=1===u.length,n["promo-block__grid--two-cards"]=2===u.length,n["promo-block__grid--three-cards"]=3===u.length,n["promo-block__grid--four-plus-cards"]=u.length>3,n));return e.createElement("div",{className:l("promo-block","promo-block--".concat(i),r&&"theme-".concat(r),c&&"theme-".concat(r,"--inverse"),N&&"promo-block--full-width")},e.createElement("div",{className:"promo-block__container"},e.createElement("div",{className:l("promo-block__top",x&&"promo-block__top--full-width")},o&&e.createElement(f,{htmlTag:E,classNames:l("promo-block__title","h3"===E&&"promo-block__title--h3")},o),m&&e.createElement(s,{theme:"uobmain",inverse:c,text:m}),d&&e.createElement("div",{className:"promo-block__text-link"},e.createElement(p,{theme:r,inverse:c,url:d.url,title:d.title,externalLink:d.externalLink}))),T&&e.createElement("div",{className:"promo-block__filters"},e.createElement("div",{className:"promo-block__filter-wrapper"},M&&e.createElement(aa,a({},M))),e.createElement("div",{className:"promo-block__filter-wrapper"},S&&e.createElement(aa,a({},S)))),e.createElement("div",{className:"promo-block__content"},e.createElement("div",{className:"promo-block__cards"},!V&&e.createElement("ul",{className:O},u.map(function(t,n){return e.createElement("li",{className:"promo-block__card-item",key:n},function(t){var n=a(a({},t),{cardCopyIsRichText:C,imageHeight:P});switch(i){case"promo":return e.createElement(Me,a({},n));case"promo-signpost":return e.createElement(Se,a({},t));case"promo-video":return e.createElement(He,a({},t));case"promo-profile":return e.createElement(Ae,a({},t));default:return e.createElement(e.Fragment,null)}}(a(a({},t),{inverse:c,isSingle:1===u.length,imageOrientation:v,titleTag:b})))})),V&&e.createElement($e,{theme:r,inverse:c,type:i,cards:u,cardTitleTag:b,cardCopyIsRichText:C})))))},exports.PromoBlockGrid=function(t){var n=t.theme,r=t.inverse,c=t.type,i=t.title,o=t.description,m=t.link,d=t.cards,u=t.imageOrientation,h=void 0===u?"left":u,v=t.fullWidth;return e.createElement("div",{className:l("promo-block-grid","promo-block-grid--".concat(c),n&&"theme-".concat(n),r&&"theme-".concat(n,"--inverse"),v&&"promo-block-grid--full-width"),id:"promo-block-grid"},e.createElement("div",{className:"promo-block-grid__container"},e.createElement("div",{className:"promo-block-grid__top"},i&&e.createElement("h2",null,i),o&&e.createElement(s,{theme:"uobmain",inverse:r,text:o}),m&&e.createElement("div",{className:"promo-block-grid__text-link"},e.createElement(p,{theme:"uobmain",inverse:r,url:m.url,title:m.title,externalLink:m.externalLink}))),e.createElement("div",{className:"promo-block-grid__content"},e.createElement("div",{className:"promo-block-grid__cards"},d.length>0&&e.createElement("ul",{className:"promo-block-grid__grid"},d.map(function(t,n){return e.createElement("li",{className:"promo-block-grid__card-item",key:n},function(t){switch(c){case"promo":return e.createElement(Me,a({},t));case"promo-signpost":return e.createElement(Se,a({},t));case"promo-video":return e.createElement(He,a({},t));default:return e.createElement(e.Fragment,null)}}(a(a({},t),{inverse:r,isSingle:1===d.length,imageOrientation:h,titleTag:i?"h3":"h2"})))}))))))},exports.QuoteBlock=function(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.inverse,c=t.title,i=t.description,o=t.cite,s=t.role,d=t.quote,u=t.quoteeProfileImage,h=t.quoteeProfileImageAltText,v=t.cta,f=t.fullWidth,g=void 0!==f&&f,E=t.htmlTag;return e.createElement("div",{className:l("quote-block","theme-".concat(a),r&&"theme-".concat(a,"--inverse"),g&&"quote-block--full-width")},(c||i)&&e.createElement(_,{theme:a,inverse:r,htmlTag:E,title:c,description:i}),e.createElement("blockquote",{className:l("quote-block__container",!u&&"quote-block__container--no-image")},e.createElement("div",{className:"quote-block__doublequote quote-block__doublequote--open"},e.createElement(m,{icon:"quote-marks",theme:a})),e.createElement("p",{className:"quote-block__quote"},d),u&&e.createElement("div",{className:"quote-block__quotee-image"},e.createElement(w,{src:{default:u},altText:h})),(o||s)&&e.createElement("footer",{className:"quote-block__cite"},o&&e.createElement("cite",{className:"quote-block__cite-cite"},o),s&&e.createElement("div",{className:"quote-block__cite-role"},s)),e.createElement("div",{className:"quote-block__doublequote quote-block__doublequote--close"},e.createElement(m,{icon:"quote-marks",theme:a})),v&&e.createElement("div",{className:"quote-block__optional-link"},e.createElement(p,{inverse:r,onKeyDown:function(){},theme:a,title:v.title,url:v.url}))))},exports.RelatedCourses=function(t){var n,r=t.theme,c=void 0===r?"uobmain":r,i=t.inverse,o=void 0===i||i,s=t.heading,m=t.description,d=t.linkProps,u=t.headingStyle,h=t.fullWidth,v=t.cards,f=ve("768px"),g=f&&v.length>1||!f&&h&&v.length>2||!f&&!h&&v.length>3,E=l(((n={})["related-courses__grid"]=!0,n["related-courses__grid--single"]=1===v.length,n["related-courses__grid--two-cards"]=2===v.length,n["related-courses__grid--three-cards"]=3===v.length,n["related-courses__grid--four-plus-cards"]=v.length>3,n));return e.createElement("section",{className:l("related-courses",c&&"theme-".concat(c),o&&"theme-".concat(c,"--inverse"),h&&"related-courses--full-width")},e.createElement("div",{className:"related-courses__container"},e.createElement("h2",{className:l("related-courses__heading",u&&"related-courses__heading--".concat(u))},s),m&&e.createElement("div",{className:"related-courses__description"},m),d&&d.url&&d.title&&e.createElement("div",{className:"related-courses__arrow-link-container"},e.createElement(p,{theme:c,inverse:o,title:d.title,url:d.url})),e.createElement("div",{className:"related-courses__cards"},!g&&e.createElement("ul",{className:E},v.map(function(t,n){return e.createElement("li",{className:"related-courses__card-item",key:n},e.createElement(Oe,a({},t)))})),g&&e.createElement($e,{theme:c,inverse:o,type:"related",cards:v,cardTitleTag:"h3"}))))},exports.ResearchStoryCarousel=function(t){var n,r=t.theme,c=void 0===r?"uobmain":r,i=t.inverse,o=void 0===i||i,s=t.fullWidth,m=void 0!==s&&s,d=t.heading,u=t.description,h=t.cards,p=t.singleLink,v=t.titleTag,f=void 0===v?"h2":v,g=t.cardTitleTag,E=void 0===g?"h3":g,b=ve("768px"),w=b&&h.length>1||!b&&h.length>2,C=l(((n={})["research-story-carousel__grid"]=!0,n["research-story-carousel__grid--single"]=1===h.length,n["research-story-carousel__grid--two-cards"]=2===h.length,n["research-story-carousel__grid--three-plus-cards"]=h.length>3,n));return e.createElement("section",{className:l("research-story-carousel",c&&"theme-".concat(c),o&&"theme-".concat(c,"--inverse"),m&&"research-story-carousel--full-width")},e.createElement("div",{className:"research-story-carousel__container"},(d||u||p)&&e.createElement(_,{theme:c,inverse:!0,htmlTag:f,title:d,description:u,linkProps:p,fullWidth:!0}),e.createElement("div",{className:"research-story-carousel__cards"},!w&&e.createElement("ul",{className:C},h.map(function(t,n){return e.createElement("li",{key:n},e.createElement(Be,a({},t)))})),w&&e.createElement($e,{theme:c,inverse:o,type:"research-story",cards:h,cardTitleTag:E}))))},exports.RichText=s,exports.ScholarshipCarousel=function(t){var n,r=t.theme,c=void 0===r?"uobmain":r,i=t.inverse,o=void 0===i||i,s=t.fullWidth,m=void 0!==s&&s,d=t.headingProps,u=t.cards,h=ve("768px"),p=h&&u.length>1||!h&&u.length>2,v=l(((n={})["scholarship-carousel__grid"]=!0,n["scholarship-carousel__grid--single"]=1===u.length,n["scholarship-carousel__grid--two-cards"]=2===u.length,n["scholarship-carousel__grid--three-plus-cards"]=u.length>3,n));return e.createElement("section",{className:l("scholarship-carousel",c&&"theme-".concat(c),o&&"theme-".concat(c,"--inverse"),m&&"scholarship-carousel--full-width")},e.createElement("div",{className:"scholarship-carousel__container"},d&&e.createElement(_,a({},d,{theme:c,inverse:o,fullWidth:m})),e.createElement("div",{className:"scholarship-carousel__cards"},!p&&e.createElement("ul",{className:v},u.map(function(t,n){return e.createElement("li",{className:"related-courses__card-item",key:n},e.createElement(Fe,a({},t,{inverse:o})))})),p&&e.createElement($e,{theme:c,inverse:o,type:"scholarship",cards:u,cardTitleTag:"h3"}))))},exports.ScrollableTable=function(t){var n=t.text,a=t.theme,r=void 0===a?"uobmain":a,c=t.inverse,i=t.fullWidth,o=void 0!==i&&i,s=t.removeBottomPadding,m=void 0!==s&&s,d=t.tableCategory,u=void 0===d?Ja.NotSpecified:d,h=e.useRef(null),p=e.useState(!1),v=p[0],f=p[1],g=e.useState(!0),E=g[0],_=g[1],b=e.useState(!1),w=b[0],C=b[1],y=e.useId(),N=function(){var e=h.current;e&&(f(e.scrollLeft>0),_(e.scrollLeft<e.scrollWidth-e.clientWidth))},k=e.useCallback(function(){var e=h.current;if(e){var t=e.scrollWidth>e.clientWidth;C(t),N()}},[]),x=function(e){var t=h.current;if(t){var n="left"===e?t.scrollLeft-200:t.scrollLeft+200;t.scrollTo({left:n,behavior:"smooth"})}};return e.useEffect(function(){k();var e=h.current;e&&e.addEventListener("scroll",N);var t=function(){return k()};return window.addEventListener("resize",t),function(){e&&e.removeEventListener("scroll",N),window.removeEventListener("resize",t)}},[k]),e.createElement("div",{className:l("scrollable-table",o&&"scrollable-table--full-width",r&&"theme-".concat(r),c&&"theme-".concat(r,"--inverse"),m&&"scrollable-table--no-bottom-padding")},e.createElement("div",{className:"scrollable-table__container"},e.createElement("span",null,w&&e.createElement("div",{className:"scrollable-table__scroll-button-wrapper"},e.createElement("p",null,"Scroll buttons"),e.createElement(ye,{key:"iconButtonLeft",theme:r,icon:"arrow-left",onClick:function(){return x("left")},title:"Scroll left",ariaControls:y,disabled:!v,inverse:c}),e.createElement(ye,{key:"iconButtonRight",theme:r,icon:"arrow-right",onClick:function(){return x("right")},title:"Scroll right",ariaControls:y,disabled:!E,inverse:c})),e.createElement("div",{className:l("scrollable-table__table-wrapper","scrollable-table__".concat(u),c&&"scrollable-table__".concat(u,"--inverse")),ref:h,id:y,tabIndex:0},e.createElement("span",{dangerouslySetInnerHTML:{__html:n}})))))},exports.SearchCourses=ra,exports.SidebarWrapper=function(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.sidebarElement,c=t.children;return e.createElement("div",{id:"sidebar",className:l("sidebar-wrapper",a&&"theme-".concat(a),!r&&"sidebar-wrapper--no-side-element")},e.createElement("div",{className:"sidebar-wrapper__grid-container"},r&&e.createElement("div",{className:"sidebar-wrapper__sidebar"},r),e.createElement("div",{className:"sidebar-wrapper__children"},c)))},exports.SignPost=function(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.inverse,c=void 0!==r&&r,i=t.items,o=t.fullWidth,s=void 0!==o&&o,m=t.htmlTag,d=void 0===m?"h2":m;return e.createElement("div",{className:l("signpost",s&&"signpost--full-width",a&&"theme-".concat(a),c&&"theme-".concat(a,"--inverse"))},e.createElement("div",{className:"signpost__container"},e.createElement("div",{className:"signpost__grid"},i.map(function(t){return e.createElement("div",{className:"signpost__item",key:t.title},t.tag&&e.createElement("p",{className:"signpost__tag"},t.tag),e.createElement(f,{htmlTag:d,classNames:"signpost__title"},t.title),e.createElement(p,{url:t.linkUrl,title:t.linkLabel,theme:a,inverse:c,externalLink:t.external}))}))))},exports.SingleButton=function(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.inverse,i=void 0!==c&&c,o=t.includeIcon,s=t.link,m=t.fullWidth;return e.createElement("div",{className:l("single-button",r&&"theme-".concat(r),i&&"theme-".concat(r,"--inverse"),m&&"single-button--full-width")},e.createElement("div",{className:"single-button__container"},o?e.createElement(xe,a({},s,{inverse:!i})):e.createElement(h,a({},s,{inverse:!i}))))},exports.SkipToContent=function(t){var n=t.theme,a=void 0===n?"uobmain":n;return e.createElement("div",{className:l("skip-to-content",a&&"theme-".concat(a))},e.createElement("a",{className:"skip-to-content__link",href:"#main"},"Skip to main content"))},exports.SocialFeed=function(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.inverse,c=void 0!==r&&r,i=t.curatorFeedId,o=t.curatorScriptSrc,s=t.heading;e.useEffect(function(){var e=document.createElement("script");return e.src=o,e.async=!0,e.id="curator-script",document.body.appendChild(e),function(){var e=document.getElementById("curator-script");e&&e.remove();var t=window;t.Curator&&(t.Curator=void 0);var n=document.getElementById(i);n&&(n.innerHTML="")}},[o,i]);var m=l("social-feed",a&&"theme-".concat(a),c&&"theme-".concat(a,"--inverse"));return e.createElement("section",{className:m},s&&e.createElement(_,{title:s.title,description:s.description,inverse:c,theme:"uobmain",linkProps:s.linkProps}),e.createElement("div",{className:"social-feed__container"},e.createElement("div",{id:i,className:"social-feed__embed","data-testid":"curator-feed-container"})))},exports.StaffListingCarousel=function(t){var n,r=t.theme,c=void 0===r?"uobmain":r,i=t.inverse,o=void 0===i||i,s=t.fullWidth,m=void 0!==s&&s,d=t.heading,u=t.headingStyle,h=void 0===u?null:u,v=t.cards,g=t.singleLink,E=t.titleTag,_=void 0===E?"h2":E,b=t.useCarousel,w=void 0===b||b,C=t.cardType,y=void 0===C?"staff":C,N=ve("768px"),k=w&&N&&v.length>1||w&&!N&&v.length>2,x="staff"===y,L=l(((n={})["staff-listing-carousel__grid"]=!0,n["staff-listing-carousel__grid--single"]=1===v.length,n["staff-listing-carousel__grid--two-cards"]=2===v.length,n["staff-listing-carousel__grid--three-plus-cards"]=v.length>3,n));return e.createElement("section",{className:l("staff-listing-carousel",c&&"theme-".concat(c),o&&"theme-".concat(c,"--inverse"),m&&"staff-listing-carousel--full-width",!w&&"staff-listing-carousel--no-carousel")},e.createElement("div",{className:"staff-listing-carousel__container"},d&&e.createElement(f,{htmlTag:_,classNames:l("staff-listing-carousel__heading","staff-listing-carousel__heading--".concat(_),h&&"staff-listing-carousel__heading--".concat(h))},d),e.createElement("div",{className:"staff-listing-carousel__cards"},!k&&e.createElement("ul",{className:L},v.map(function(t,n){return e.createElement("li",{className:"related-courses__card-item",key:n},x?e.createElement(Ve,a({},t,{theme:c,inverse:o,isSingle:1===v.length})):e.createElement(Ae,a({},t,{theme:c,inverse:o})))})),k&&e.createElement($e,{theme:c,inverse:o,type:y,cards:v,cardTitleTag:"h3"})),1===v.length&&g&&e.createElement(p,{theme:c,url:g.url,title:g.title,inverse:!0})))},exports.StandardListingFilter=function(t){var n=t.theme,r=t.heading,c=t.listingGroups,i=t.onClearFilters,o=t.onViewResults;return e.createElement("div",{className:l("standard-listing-filter",n&&"theme-".concat(n))},e.createElement("p",{className:"standard-listing-filter__heading"},r),e.createElement("ul",{className:"standard-listing-filter__list"},c.map(function(t){var r;return"date"===t.type?e.createElement("li",{className:"standard-listing-filter__item",key:t.name},e.createElement(Ya,a({},t,{theme:n,defaultValue:null!==(r=t.defaultValue)&&void 0!==r?r:"",onChange:t.onChange}))):"radio"===t.type?e.createElement("li",{className:"standard-listing-filter__item",key:t.name},e.createElement(_t,{type:"radio",heading:t.heading,theme:n,showMoreText:Qa(t.heading)||"",inputs:t.inputs.map(function(e){return{name:t.name,value:e.value,label:e.label,id:e.id,defaultChecked:!!t.defaultValue&&t.defaultValue===e.value,onChange:t.onChange}})})):"checkbox"===t.type?e.createElement("li",{className:"standard-listing-filter__item",key:t.name},e.createElement(_t,{type:"checkbox",heading:t.heading,theme:n,showMoreText:Qa(t.heading)||"",inputs:t.inputs.map(function(e){return{name:t.name,value:e.value,label:e.label,id:e.id,defaultChecked:!!t.defaultValues&&t.defaultValues.includes(e.value),onChange:t.onChange}})})):"select"===t.type?e.createElement("li",{className:"standard-listing-filter__item",key:t.name},e.createElement(Ka,{heading:t.heading,selectContent:t.selectContent,theme:n})):void 0})),o&&e.createElement("div",{className:"standard-listing-filter__results-button"},e.createElement(h,{label:"View selected results",onClick:o,theme:n})),e.createElement("div",{className:"standard-listing-filter__clear-button"},e.createElement(h,{label:"Clear filters",onClick:i,theme:n,hollow:!0})))},exports.TabsBlock=function(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.inverse,i=void 0!==c&&c,o=t.title,m=t.description,d=t.tabItems,u=t.fullWidth,f=t.htmlTag,g=void 0===f?"h2":f,E=t.removeBottomPadding,w=void 0!==E&&E,C=t.name,y=t.enableHashNavigation,N=void 0!==y&&y,k=e.useRef(null),x=e.useCallback(function(){return d.findIndex(function(e){return Da(null!=C?C:"",e.title)===window.location.hash.substring(1)})},[d,C]),L=e.useState(0),T=L[0],M=L[1],S=e.useState(-1),H=S[0],P=S[1],V=ve("1248px");function O(e){if(N){var t=window.location.href.replace(window.location.hash,""),n=Da(null!=C?C:"",d[e].title);history.pushState(null,"null",t.concat("#",n))}}function Z(e,t){e.preventDefault(),M(t),O(t)}e.useEffect(function(){if(0!==window.location.hash.length){var e=x();e<0||(M(e),P(e))}},[x,M]);var q=function(e){switch(e.key){case"ArrowLeft":case"ArrowUp":case"Left":case"Up":if(0===T)return;M(T-1),P(T-1),O(T-1);break;case"ArrowRight":case"ArrowDown":case"Right":case"Down":if(T>=d.length-1)return;M(T+1),P(T+1),O(T+1);break;case"Home":M(0),P(0),O(0);break;case"End":M(d.length-1),P(d.length-1),O(d.length-1)}};function B(){var e="h3";return o&&"h2"===g?e="h3":o&&"h3"===g&&(e="h4"),e}return e.useEffect(function(){var e=function(e){if(e.preventDefault(),0!==window.location.hash.length){var t=x();t<0||(M(t),P(t))}};return window.addEventListener("hashchange",e),function(){window.removeEventListener("hashchange",e)}},[T,x]),e.createElement(e.Fragment,null,V&&e.createElement(b,{heading:{title:o,description:m,fullWidth:u,htmlTag:g},theme:r,inverse:i,fullWidth:u,accordionItems:d.map(function(e,t){return{key:e.title||t,title:e.title,text:e.content,titleTag:e.titleTag?e.titleTag:B(),primaryButton:e.primaryButton,secondaryButton:e.secondaryButton,link:e.link}})}),e.createElement("div",{className:l("tabs",r&&"theme-".concat(r),i&&"theme-".concat(r,"--inverse"),u&&"tabs--full-width",w&&"tabs--no-bottom-padding"),id:"tabs",ref:k},!V&&e.createElement(e.Fragment,null,e.createElement(_,{theme:r,inverse:i,htmlTag:g,title:o,description:m,fullWidth:u}),e.createElement("div",{className:"tabs__container"},e.createElement("span",null,e.createElement(Ia,{theme:r,inverse:i},d.map(function(t,n){return e.createElement(Ra,{key:n,id:n,theme:r,inverse:i,tabItem:t,tabListTopRef:k,isActive:n===T,hasFocus:n===H,enableHashNavigation:N,tabsBlockName:C,handleClick:Z,handleKeyboardNavigation:q})})),d.map(function(t,n){return e.createElement(Aa,{key:n,isActive:n===T,inverse:i,theme:r,title:t.title,tabsBlockName:C,htmlTag:t.titleTag?t.titleTag:B()},t.content&&e.createElement(s,{theme:r,inverse:i,text:t.content}),t.accordionItems&&t.accordionItems.map(function(t){return e.createElement(v,a({key:t.key},t,{inverse:i}))}),(t.primaryButton&&t.primaryButton.text||t.secondaryButton&&t.secondaryButton.text)&&e.createElement("div",{className:"tabs__optional-buttons"},t.primaryButton&&t.primaryButton.text&&e.createElement(h,{label:t.primaryButton.text,url:t.primaryButton.url,theme:r,inverse:!i}),t.secondaryButton&&t.secondaryButton.text&&e.createElement(h,{hollow:!0,label:t.secondaryButton.text,url:t.secondaryButton.url,theme:r,inverse:!i})),t.link&&t.link.text&&e.createElement("div",{className:"tabs__optional-link"},e.createElement(p,{theme:r,inverse:i,url:t.link.url,title:t.link.text})))}))))))},exports.TextOverMedia=function(t){var n=t.theme,r=t.inverse,c=t.image,i=t.imageCaption,o=t.imageCredit,s=t.contentPosition,m=void 0===s?"left":s,d=t.children,u=ve("768px"),h=i||o;return c&&c.src&&d?e.createElement("section",{className:l("text-over-media",n&&"theme-".concat(n),r&&"theme-".concat(n,"--inverse"))},e.createElement("div",{className:l("text-over-media__container","right"===m&&"text-over-media__mobile--right")},u&&e.createElement("div",{className:"text-over-media__mobile-block"},e.createElement("div",{className:"text-over-media__image-wrapper"},e.createElement(w,a({},c))),h&&e.createElement("figcaption",{className:"text-over-media__figcaption"},i&&e.createElement("p",{className:"text-over-media__caption"},i),o&&e.createElement("p",{className:"text-over-media__credit"},o))),!u&&e.createElement(e.Fragment,null,e.createElement("figure",{className:"text-over-media__image-container"},e.createElement("div",{className:"text-over-media__height-wrapper"},e.createElement("div",{className:"text-over-media__image-wrapper"},e.createElement(w,a({},c)))),e.createElement("div",{className:"text-over-media__parallax-container"},e.createElement(st,{offset:100},e.createElement("div",{className:"text-over-media__parallax-content"},e.createElement("div",{className:"text-over-media__image-wrapper"},e.createElement(w,a({},c))))))),h&&e.createElement("figcaption",{className:"text-over-media__figcaption"},i&&e.createElement("p",{className:"text-over-media__caption"},i),o&&e.createElement("p",{className:"text-over-media__credit"},o))),e.createElement("div",{className:l("text-over-media__media-container","left"===m&&"text-over-media__media-container--left","right"===m&&"text-over-media__media-container--right")},d))):null},exports.TextWithBackground=function(t){var n=t.text,a=t.theme,r=void 0===a?"uobmain":a,c=t.inverse,i=t.headingLevel,o=t.headingText,m=t.url,d=t.linkTitle,u=t.externalLink,p=t.linkStyle,v=t.fullWidth,f=t.removeBottomPadding,g=void 0!==f&&f,E=i;return e.createElement("div",{className:l("text-with-background",r&&"theme-".concat(r),c&&"theme-".concat(r,"--inverse"),v&&"text-with-background--full-width",g&&"text-with-background--no-bottom-padding")},o&&e.createElement("div",{className:"text-with-background__heading-wrapper"},e.createElement(E,null,o)),e.createElement(s,{text:n,inverse:c,theme:r}),m&&d&&e.createElement("div",{className:"text-with-background__link-wrapper"},e.createElement("div",{className:"text-with-background__link-inner-wrapper"},("primary"===p||"secondary"===p)&&e.createElement(h,{url:m,theme:r,label:d,externalLink:u,hollow:"secondary"===p,inverse:!c}),"paragraph-link"===p&&e.createElement(la,{url:m,label:d,externalLink:u,theme:r,inverse:c}))))},exports.TopicSelector=function(t){var n=t.topics,a=t.theme,r=void 0===a?"uobmain":a,c=t.titleTag,i=t.heading;return e.createElement("section",{className:l("topics-selector",r&&"theme-".concat(r))},e.createElement("div",{className:"topics-selector__container"},"h2"===c?e.createElement("h2",{className:"topics-selector__heading"},i):e.createElement("h3",{className:"topics-selector__heading"},i),e.createElement("ul",{className:"topics-selector__topics-container"},n.map(function(t,n){return e.createElement("li",{className:"topics-selector__topic",key:n},e.createElement($a,{theme:r,label:t.label,url:t.url,externalLink:t.externalLink}))}))))},exports.TwoColumnWrapper=function(t){var n=t.theme,a=void 0===n?"uobmain":n,r=t.firstColumn,c=t.secondColumn;return e.createElement("div",{className:l("two-column-wrapper",a&&"theme-".concat(a))},e.createElement("div",{className:"two-column-wrapper__grid-container"},e.createElement("div",{className:l("two-column-wrapper__first-column",!c&&"two-column-wrapper__first-column-centred")},r),c&&e.createElement("div",{className:"two-column-wrapper__second-column"},c)))},exports.VideoCardComponent=function(n){var a=n.theme,r=n.tag,c=n.title,i=n.linkUrl,o=n.linkText,s=n.externalLink,m=n.cards,d={initial:{opacity:0,y:150},animate:function(e){return{opacity:1,y:0,transition:{duration:.8,type:"spring",bounce:.2,delay:.2*e}}}};return e.createElement("div",{className:l("video-card-component",a&&"theme-".concat(a)),id:"video-card-component"},e.createElement("div",{className:"video-card-component__content"},r&&e.createElement("p",{className:"video-card-component__tag"},r),e.createElement("h2",{className:"video-card-component__title"},c),i&&o&&e.createElement("div",{className:"video-card-component__link"},e.createElement(p,{theme:a,url:i,title:o,inverse:!0,externalLink:s})),e.createElement("div",{className:"video-card-component__carousel"},e.createElement($e,{theme:a,type:"video",inverse:!0,cards:m,cardTitleTag:"h3"})),e.createElement("ul",{className:l("video-card-component__cards-desktop",(!i||!o)&&"video-card-component__cards-desktop--no-link")},m.map(function(n,r){return e.createElement(t.motion.li,{key:r,variants:d,initial:"initial",whileInView:"animate",viewport:{once:!0,amount:.2},custom:r},r<=1?e.createElement("div",{className:"video-card-component__lines video-card-component__lines--".concat(r)},1===r&&e.createElement("svg",{width:"406",height:"128",viewBox:"0 0 406 128",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M1 1L123 29L210 127.5",stroke:"black"}),e.createElement("path",{d:"M13 112L123 29L405 51",stroke:"black"}))):"",e.createElement(Le,{theme:a,image:{src:{default:n.image.src.default,medium:n.image.src.medium,small:n.image.src.small},altText:""},title:n.title,youtubeId:n.youtubeId,buttonLabel:n.buttonLabel,titleTag:"h3"}))}))))},exports.VideoEmbed=function(t){var n=t.theme,r=void 0===n?"uobmain":n,c=t.inverse,i=void 0!==c&&c,o=t.imageSrc,s=t.videoUrl,m=t.videoId,d=t.heading,u=t.audioDescribedVideoId,h=t.audioDescribedVideoUrl,p=t.transcript,f=t.fullWidth,g=void 0!==f&&f,E=t.videoCaption,b=t.videoCredit,w=e.useState(!1),C=w[0],y=w[1];return e.createElement("div",{className:l("video-embed",g&&"video-embed--full-width",r&&"theme-".concat(r),i&&"theme-".concat(r,"--inverse"))},d&&e.createElement(_,a({},d,{theme:r,inverse:i})),e.createElement("div",{className:"video-embed__grid"},e.createElement("div",{className:"video-embed__content-wrapper"},e.createElement(er,{theme:r,imageSrc:o,videoUrl:C?s:h,videoId:C?u:m}),(E||b)&&e.createElement("div",{className:"video-embed__caption-wrapper"},E&&e.createElement("p",{className:"video-embed__caption"},E),b&&e.createElement("p",{className:"video-embed__credit"},b)),(u||h)&&(C?e.createElement("button",{className:"video-embed__audio-described-button",onClick:function(){return y(!1)}},"Non-audio described version"):e.createElement("button",{className:"video-embed__audio-described-button",onClick:function(){return y(!0)}},"Audio described version")),p&&e.createElement("div",{className:"video-embed__transcript"},e.createElement(v,{titleTag:"h3",theme:r,title:"Transcript",text:p,inverse:i})))))};
|