@uob-web-and-digital/component-library 2.12.1 → 2.12.3
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.css +1 -1
- package/dist/main.js +1 -1
- package/dist/module.js +1 -1
- package/package.json +1 -1
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 qt(e,c){(null==c||c>e.length)&&(c=e.length);for(var t=0,a=Array(c);t<c;t++)a[t]=e[t];return a}function yt(e,c,t){return(c=function(e){var c=function(e,c){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,c);if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===c?String:Number)(e)}(e,"string");return"symbol"==typeof c?c:c+""}(c))in e?Object.defineProperty(e,c,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[c]=t,e}function Mt(e,c){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);c&&(a=a.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),t.push.apply(t,a)}return t}function Ct(e){for(var c=1;c<arguments.length;c++){var t=null!=arguments[c]?arguments[c]:{};c%2?Mt(Object(t),!0).forEach(function(c){yt(e,c,t[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Mt(Object(t)).forEach(function(c){Object.defineProperty(e,c,Object.getOwnPropertyDescriptor(t,c))})}return e}function Nt(e){return function(e){if(Array.isArray(e))return qt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,c){if(e){if("string"==typeof e)return qt(e,c);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?qt(e,c):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 kt,xt,Tt=function(e,c){if(e.length>0){var t=e[e.length-1];t!==c&&t._setPausedState(!0)}var a=e.indexOf(c);-1===a||e.splice(a,1),e.push(c)},Lt=function(e,c){var t=e.indexOf(c);-1!==t&&e.splice(t,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)},zt=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},St=function(e){return zt(e)&&!e.shiftKey},Ht=function(e){return zt(e)&&e.shiftKey},Vt=function(e){return setTimeout(e,0)},Pt=function(e){for(var c=arguments.length,t=new Array(c>1?c-1:0),a=1;a<c;a++)t[a-1]=arguments[a];return"function"==typeof e?e.apply(void 0,t):e},Ot=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},Zt=[],Bt=qc(Object.freeze({__proto__:null,createFocusTrap:function(e,c){var t,a=(null==c?void 0:c.document)||document,l=(null==c?void 0:c.trapStack)||Zt,n=Ct({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:St,isKeyBackward:Ht},c),r={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},i=function(e,c,t){return e&&void 0!==e[c]?e[c]:n[t||c]},o=function(e,c){var t="function"==typeof(null==c?void 0:c.composedPath)?c.composedPath():void 0;return r.containerGroups.findIndex(function(c){var a=c.container,l=c.tabbableNodes;return a.contains(e)||(null==t?void 0:t.includes(a))||l.find(function(c){return c===e})})},s=function(e){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=c.hasFallback,l=void 0!==t&&t,r=c.params,i=void 0===r?[]:r,o=n[e];if("function"==typeof o&&(o=o.apply(void 0,Nt(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(c){throw new Error("`".concat(e,'` appears to be an invalid selector; error="').concat(c.message,'"'))}if(!s&&!l)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&&!bt(e,n.tabbableOptions))if(o(a.activeElement)>=0)e=a.activeElement;else{var c=r.tabbableGroups[0];e=c&&c.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},h=function(){if(r.containerGroups=r.containers.map(function(e){var c=ft(e,n.tabbableOptions),t=gt(e,n.tabbableOptions),a=c.length>0?c[0]:void 0,l=c.length>0?c[c.length-1]:void 0,r=t.find(function(e){return Et(e)}),i=t.slice().reverse().find(function(e){return Et(e)}),o=!!c.find(function(e){return rt(e)>0});return{container:e,tabbableNodes:c,focusableNodes:t,posTabIndexesFound:o,firstTabbableNode:a,lastTabbableNode:l,firstDomTabbableNode:r,lastDomTabbableNode:i,nextTabbableNode:function(e){var a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],l=c.indexOf(e);return l<0?a?t.slice(t.indexOf(e)+1).find(function(e){return Et(e)}):t.slice(0,t.indexOf(e)).reverse().find(function(e){return Et(e)}):c[l+(a?1:-1)]}}}),r.tabbableGroups=r.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),r.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(r.containerGroups.find(function(e){return e.posTabIndexesFound})&&r.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.")},d=function(e){var c=e.activeElement;if(c)return c.shadowRoot&&null!==c.shadowRoot.activeElement?d(c.shadowRoot):c},u=function(e){!1!==e&&e!==d(document)&&(e&&e.focus?(e.focus({preventScroll:!!n.preventScroll}),r.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):u(m()))},v=function(e){var c=s("setReturnFocus",{params:[e]});return c||!1!==c&&e},p=function(e){var c=e.target,t=e.event,a=e.isBackward,l=void 0!==a&&a;c=c||Ot(t),h();var i=null;if(r.tabbableGroups.length>0){var m=o(c,t),d=m>=0?r.containerGroups[m]:void 0;if(m<0)i=l?r.tabbableGroups[r.tabbableGroups.length-1].lastTabbableNode:r.tabbableGroups[0].firstTabbableNode;else if(l){var u=r.tabbableGroups.findIndex(function(e){var t=e.firstTabbableNode;return c===t});if(u<0&&(d.container===c||bt(c,n.tabbableOptions)&&!Et(c,n.tabbableOptions)&&!d.nextTabbableNode(c,!1))&&(u=m),u>=0){var v=0===u?r.tabbableGroups.length-1:u-1,p=r.tabbableGroups[v];i=rt(c)>=0?p.lastTabbableNode:p.lastDomTabbableNode}else zt(t)||(i=d.nextTabbableNode(c,!1))}else{var f=r.tabbableGroups.findIndex(function(e){var t=e.lastTabbableNode;return c===t});if(f<0&&(d.container===c||bt(c,n.tabbableOptions)&&!Et(c,n.tabbableOptions)&&!d.nextTabbableNode(c))&&(f=m),f>=0){var g=f===r.tabbableGroups.length-1?0:f+1,E=r.tabbableGroups[g];i=rt(c)>=0?E.firstTabbableNode:E.firstDomTabbableNode}else zt(t)||(i=d.nextTabbableNode(c))}}else i=s("fallbackFocus");return i},f=function(e){var c=Ot(e);o(c,e)>=0||(Pt(n.clickOutsideDeactivates,e)?t.deactivate({returnFocus:n.returnFocusOnDeactivate}):Pt(n.allowOutsideClick,e)||e.preventDefault())},g=function(e){var c=Ot(e),t=o(c,e)>=0;if(t||c instanceof Document)t&&(r.mostRecentlyFocusedNode=c);else{var a;e.stopImmediatePropagation();var l=!0;if(r.mostRecentlyFocusedNode)if(rt(r.mostRecentlyFocusedNode)>0){var i=o(r.mostRecentlyFocusedNode),s=r.containerGroups[i].tabbableNodes;if(s.length>0){var h=s.findIndex(function(e){return e===r.mostRecentlyFocusedNode});h>=0&&(n.isKeyForward(r.recentNavEvent)?h+1<s.length&&(a=s[h+1],l=!1):h-1>=0&&(a=s[h-1],l=!1))}}else r.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return rt(e)>0})})||(l=!1);else l=!1;l&&(a=p({target:r.mostRecentlyFocusedNode,isBackward:n.isKeyBackward(r.recentNavEvent)})),u(a||(r.mostRecentlyFocusedNode||m()))}r.recentNavEvent=void 0},E=function(e){(n.isKeyForward(e)||n.isKeyBackward(e))&&function(e){var c=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.recentNavEvent=e;var t=p({event:e,isBackward:c});t&&(zt(e)&&e.preventDefault(),u(t))}(e,n.isKeyBackward(e))},_=function(e){var c;"Escape"!==(null==(c=e)?void 0:c.key)&&"Esc"!==(null==c?void 0:c.key)&&27!==(null==c?void 0:c.keyCode)||!1===Pt(n.escapeDeactivates,e)||(e.preventDefault(),t.deactivate())},b=function(e){var c=Ot(e);o(c,e)>=0||Pt(n.clickOutsideDeactivates,e)||Pt(n.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},w=function(){if(r.active)return Tt(l,t),r.delayInitialFocusTimer=n.delayInitialFocus?Vt(function(){u(m())}):u(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",_),t},q=function(){if(r.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",_),t},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===r.mostRecentlyFocusedNode})})&&u(m())}):void 0,M=function(){y&&(y.disconnect(),r.active&&!r.paused&&r.containers.map(function(e){y.observe(e,{subtree:!0,childList:!0})}))};return t={get active(){return r.active},get paused(){return r.paused},activate:function(e){if(r.active)return this;var c=i(e,"onActivate"),t=i(e,"onPostActivate"),l=i(e,"checkCanFocusTrap");l||h(),r.active=!0,r.paused=!1,r.nodeFocusedBeforeActivation=d(a),null==c||c();var n=function(){l&&h(),w(),M(),null==t||t()};return l?(l(r.containers.concat()).then(n,n),this):(n(),this)},deactivate:function(e){if(!r.active)return this;var c=Ct({onDeactivate:n.onDeactivate,onPostDeactivate:n.onPostDeactivate,checkCanReturnFocus:n.checkCanReturnFocus},e);clearTimeout(r.delayInitialFocusTimer),r.delayInitialFocusTimer=void 0,q(),r.active=!1,r.paused=!1,M(),Lt(l,t);var a=i(c,"onDeactivate"),o=i(c,"onPostDeactivate"),s=i(c,"checkCanReturnFocus"),m=i(c,"returnFocus","returnFocusOnDeactivate");null==a||a();var h=function(){Vt(function(){m&&u(v(r.nodeFocusedBeforeActivation)),null==o||o()})};return m&&s?(s(v(r.nodeFocusedBeforeActivation)).then(h,h),this):(h(),this)},pause:function(e){return r.active?(r.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return r.active?(r.manuallyPaused=!1,l[l.length-1]!==this?this:this._setPausedState(!1,e)):this},updateContainerElements:function(e){var c=[].concat(e).filter(Boolean);return r.containers=c.map(function(e){return"string"==typeof e?a.querySelector(e):e}),r.active&&h(),M(),this}},Object.defineProperties(t,{_isManuallyPaused:{value:function(){return r.manuallyPaused}},_setPausedState:{value:function(e,c){if(r.paused===e)return this;if(r.paused=e,e){var t=i(c,"onPause"),a=i(c,"onPostPause");null==t||t(),q(),M(),null==a||a()}else{var l=i(c,"onUnpause"),n=i(c,"onPostUnpause");null==l||l(),h(),w(),M(),null==n||n()}return this}}}),t.updateContainerElements(e),t}})),Ft=qc(wt);var Dt=function(){if(xt)return kt;function c(e){return c="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},c(e)}function t(e,c,t){return c&&function(e,c){for(var t=0;t<c.length;t++){var a=c[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,i(a.key),a)}}(e.prototype,c),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e,t,a){return t=n(t),function(e,t){if(t&&("object"==c(t)||"function"==typeof t))return t;if(void 0!==t)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,l()?Reflect.construct(t,a||[],n(e).constructor):t.apply(e,a))}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(l=function(){return!!e})()}function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}function r(e,c){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,c){return e.__proto__=c,e},r(e,c)}function i(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var l=a.call(e,t);if("object"!=c(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}xt=1;var o=e,s=Yc(),m=Bt.createFocusTrap,h=Ft.isFocusable,d=function(e){function c(e){var t;!function(e,c){if(!(e instanceof c))throw new TypeError("Cannot call a class as a function")}(this,c),function(e,c,t){(c=i(c))in e?Object.defineProperty(e,c,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[c]=t}(t=a(this,c,[e]),"getNodeForOption",function(e){var c,t=null!==(c=this.internalOptions[e])&&void 0!==c?c:this.originalOptions[e];if("function"==typeof t){for(var a=arguments.length,l=new Array(a>1?a-1:0),n=1;n<a;n++)l[n-1]=arguments[n];t=t.apply(void 0,l)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var r,i=t;if("string"==typeof t&&!(i=null===(r=this.getDocument())||void 0===r?void 0:r.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return i}),t.handleDeactivate=t.handleDeactivate.bind(t),t.handlePostDeactivate=t.handlePostDeactivate.bind(t),t.handleClickOutsideDeactivates=t.handleClickOutsideDeactivates.bind(t),t.internalOptions={returnFocusOnDeactivate:!1,checkCanReturnFocus:null,onDeactivate:t.handleDeactivate,onPostDeactivate:t.handlePostDeactivate,clickOutsideDeactivates:t.handleClickOutsideDeactivates},t.originalOptions={returnFocusOnDeactivate:!0,onDeactivate:null,onPostDeactivate:null,checkCanReturnFocus:null,clickOutsideDeactivates:!1};var l=e.focusTrapOptions;for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&("returnFocusOnDeactivate"!==n&&"onDeactivate"!==n&&"onPostDeactivate"!==n&&"checkCanReturnFocus"!==n&&"clickOutsideDeactivates"!==n?t.internalOptions[n]=l[n]:t.originalOptions[n]=l[n]);return t.outsideClick=null,t.focusTrapElements=e.containerElements||[],t.updatePreviousElement(),t}return function(e,c){if("function"!=typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(c&&c.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),c&&r(e,c)}(c,e),t(c,[{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 c="function"==typeof this.originalOptions.clickOutsideDeactivates?this.originalOptions.clickOutsideDeactivates.call(null,e):this.originalOptions.clickOutsideDeactivates;return c&&(this.outsideClick={target:e.target,allowDeactivation:c}),c}},{key:"handleDeactivate",value:function(){this.originalOptions.onDeactivate&&this.originalOptions.onDeactivate.call(null),this.deactivateTrap()}},{key:"handlePostDeactivate",value:function(){var e=this,c=function(){var c=e.getReturnFocusNode(),t=!(!e.originalOptions.returnFocusOnDeactivate||null==c||!c.focus||e.outsideClick&&(!e.outsideClick.allowDeactivation||h(e.outsideClick.target,e.internalOptions.tabbableOptions))),a=e.internalOptions.preventScroll,l=void 0!==a&&a;t&&c.focus({preventScroll:l}),e.originalOptions.onPostDeactivate&&e.originalOptions.onPostDeactivate.call(null),e.outsideClick=null};this.originalOptions.checkCanReturnFocus?this.originalOptions.checkCanReturnFocus.call(null,this.getReturnFocusNode()).then(c,c):c()}},{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 c=!e.active&&this.props.active,t=e.active&&!this.props.active,a=!e.paused&&this.props.paused,l=e.paused&&!this.props.paused;if(c&&(this.updatePreviousElement(),this.focusTrap.activate()),t)return void this.deactivateTrap();a&&this.focusTrap.pause(),l&&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,c=this.props.children?o.Children.only(this.props.children):void 0;if(c){if(c.type&&c.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(c,{ref:function(t){var a=e.props.containerElements;c&&("function"==typeof c.ref?c.ref(t):c.ref&&(c.ref.current=t)),e.focusTrapElements=a||[t]}})}return null}}])}(o.Component),u="undefined"==typeof Element?Function:Element;return d.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(u),s.string,s.bool,s.func]),fallbackFocus:s.oneOfType([s.instanceOf(u),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(u),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(u)),children:s.oneOfType([s.element,s.instanceOf(u)])},d.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:m},kt=d}(),It=wc(Dt);t();var At=function(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.onClick,n=c.label,i=c.level,o=c.autoFocus,s=void 0!==o&&o;return e.createElement("button",{className:r("nav-link",a&&"theme-".concat(a),"nav-link--".concat(i)),onClick:l,autoFocus:s},e.createElement("span",{className:"nav-link__label"},n,e.createElement("span",{className:"nav-link__icon"},e.createElement(m,{icon:"chevron-right",theme:a,ariaHidden:!0}))))};t();var Rt=function(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.url,n=c.label,i=c.level,o=c.autoFocus,s=void 0!==o&&o,m=c.externalLink,h=void 0!==m&&m,d=e.useRef(null);return e.useEffect(function(){s&&d.current&&d.current.focus()},[s]),e.createElement("a",{className:r("page-link",a&&"theme-".concat(a),"page-link--".concat(i)),href:l,ref:d,target:h?"_blank":"_self",rel:h?"noopener noreferrer":""},n)};function $t(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.inverse,i=void 0===n||n,o=c.image,s=c.tag,h=c.title,d=c.href,u=c.linkText,p=c.description,f=c.type;return e.createElement("div",{className:r("card-menu",f&&"card-menu--".concat(f),l&&"theme-".concat(l),i&&"theme-".concat(l,"--inverse"))},e.createElement("figure",{className:"card-menu__figure"},e.createElement("div",{className:"card-menu__image-wrapper"},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:d},e.createElement("h2",{className:"card-menu__title"},h))),"primary"===f?e.createElement(e.Fragment,null,e.createElement("h2",{className:"card-menu__title"},h),e.createElement("p",{className:"card-menu__description"},p),e.createElement("div",{className:"card-menu__cta"},e.createElement(v,{theme:l,url:d,title:u||h}))):e.createElement("div",{className:"card-menu__arrow"},e.createElement(m,{icon:"arrow-right",theme:l,ariaHidden:!0})))))}t();var jt=function(c){var t=c.primaryLinks,a=c.secondaryLinks,l=c.onClickNavLink,n=c.menuCards,r=c.theme;return e.createElement("div",{className:"header__main-menu"},e.createElement("div",{className:"header__main-menu-menu-wrapper"},e.createElement("ul",{className:"header__main-menu-primary-list"},t.map(function(c,t){return c.children?e.createElement(At,{label:c.label,onClick:function(){return l(t)},key:c.label,theme:r,level:"level-one",autoFocus:0===t}):e.createElement(Rt,{label:c.label,url:c.url,key:c.label,theme:r,level:"level-one",autoFocus:0===t,externalLink:c.externalLink})})),e.createElement("ul",{className:"header__main-menu-secondary-list"},a.map(function(c,a){return c.children?e.createElement(At,{label:c.label,onClick:function(){return l(a+t.length)},key:c.label,theme:r,level:"level-two"}):e.createElement(Rt,{label:c.label,url:c.url,key:c.label,theme:r,level:"level-two",externalLink:c.externalLink})}))),e.createElement("ul",{className:"header__main-menu-promo-cards"},n&&n.map(function(c,t){return e.createElement("li",{key:t},e.createElement($t,{theme:r,image:{src:{small:c.image.src.small,medium:c.image.src.medium,default:c.image.src.default}},description:c.description,tag:c.tag,title:c.title,linkText:c.linkText,href:c.href,type:c.type}))})))};t();var Wt=function(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.inverse,n=void 0!==l&&l,i=c.label,o=c.onClick;return e.createElement("button",{className:r("reverse-link-with-arrow",a&&"theme-".concat(a),n&&"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:n,ariaHidden:!0})),i))},Ut=function(c){var t=c.headingLink,a=c.onClickGoBack,l=c.onClickNavLink,n=c.theme,i=c.backLinkLabel;return e.createElement("div",{className:"header__nested-menu"},e.createElement(Wt,{label:i,onClick:a,theme:n}),e.createElement("div",{className:"header__heading-link"},e.createElement(Rt,{theme:n,url:t.url,label:t.label,level:"level-one",autoFocus:!0})),e.createElement("div",{className:"header__content-wrapper"},t.description&&e.createElement("p",{className:"header__description"},t.description),t.children&&e.createElement("ul",{className:r("header__link-list",t.description&&"header__link-list--with-desc")},t.children.map(function(c,t){return c.children?e.createElement(At,{label:c.label,onClick:function(){return l(t)},key:c.label,theme:n,level:"level-two"}):e.createElement(Rt,{label:c.label,url:c.url,key:c.label,theme:n,level:"level-two",externalLink:c.externalLink})}))))};t();var Gt=function(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.inverse,n=void 0!==l&&l,i=c.fieldName,o=c.hiddenLabel,s=void 0!==o&&o,m=c.defaultValue,h=c.placeholder,d=c.required,u=void 0!==d&&d,v=c.onChange;return e.createElement("div",{className:r("form-input",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"))},e.createElement("label",{htmlFor:i,className:r("form-input__label",s&&"sr-only")},"Select ",i),e.createElement("input",{className:"form-input__input",id:i,name:i,type:"text",required:u,defaultValue:m,placeholder:h,onChange:v}))},Kt=function(c){var t=c.title,a=void 0===t?"Search":t,l=c.placeholder,n=void 0===l?"Start typing":l,r=c.introText,i=c.handleSearchChange,o=c.handleSearchSubmit,s=c.theme,m=c.inverse,h=c.onClickGoBack,d=c.backLinkLabel,v=c.recommendedLinks,p=c.recommendedLinkTitle;return e.createElement("div",{className:"header-search"},h&&d&&e.createElement("div",{className:"header-search__back-link"},e.createElement(Wt,{label:d,onClick:h,theme:s})),e.createElement("div",{className:"header-search__container"},e.createElement("h2",{className:"header-search__title"},a),e.createElement("p",{className:"header-search__intro"},r),e.createElement("form",{className:"header-search__form",method:"post",onSubmit:o},e.createElement("div",{className:"header-search__search-wrapper"},e.createElement(Gt,{theme:s,inverse:!1,fieldName:"search",hiddenLabel:!0,placeholder:n,onChange:i}),e.createElement(ye,{theme:s,inverse:!m,title:"Search",icon:"search",isSubmit:!0})),e.createElement(u,{theme:s,inverse:!m,label:"Search",isSubmit:!0}))),v&&e.createElement("div",{className:"header-search__recommended-links-wrapper"},p&&e.createElement("h3",{className:"header-search__recommended-link-title"},p),e.createElement("ul",{className:"header-search__recommended-links"},v.map(function(c,t){return e.createElement("li",{className:"header-search__recommended-link",key:t},e.createElement(mc,{theme:s,url:c.url,title:c.label,externalLink:c.externalLink}))}))))};function Yt(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.label,n=c.url,i=c.externalLink,o=c.active,s=void 0!==o&&o;return e.createElement("a",{className:r("campus-selector-link",a&&"theme-".concat(a),s&&"campus-selector-link--active"),href:n,target:i?"_blank":"_self",rel:"noreferrer"},l)}function Jt(c){var t=c.active,a=c.theme,l=c.ukUrl,n=c.dubaiUrl,i=c.mobile;return e.createElement("div",{className:r("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(u,{label:"UK",theme:a,inverse:!0,url:l,hollow:"uk"!==t}),e.createElement(u,{label:"Dubai",theme:a,inverse:!0,url:n,hollow:"dubai"!==t})):e.createElement(e.Fragment,null,e.createElement(Yt,{label:"UK",theme:a,url:l,active:"uk"===t}),e.createElement(Yt,{label:"Dubai",theme:a,url:n,active:"dubai"===t}))))}t(),t(),t();var Qt={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 Xt(t){var a,l,n=t.isMobile,r=t.isTablet,i=t.image,o=n?Qt.mobile:r?Qt.tablet:Qt.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(c.motion.div,{className:"hero__polygon-image-wrapper"},e.createElement(c.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!==(l=i.src.medium)&&void 0!==l?l:i.src.default," 992w, ").concat(i.src.default," 1440w"),alt:i.alt,fetchPriority:i.fetchPriority,animate:{clipPath:o.image},transition:{type:"tween"}}),e.createElement(c.motion.div,{key:m,className:"hero__polygon-image-background",animate:{opacity:1,clipPath:o.background},transition:{type:"tween"},initial:{opacity:0}})))}t();var ea={initial:{pathLength:0},animate:{pathLength:1},transition:{delay:.5,duration:1}};function ca(t){var l=t.isMobile,n=t.isTablet;return l?e.createElement(e.Fragment,null,e.createElement(c.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(c.motion.path,a({d:"M0 1H140"},ea)))),e.createElement(c.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(c.motion.path,a({d:"M0 1H140"},ea))))):n?e.createElement(e.Fragment,null,e.createElement(c.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(c.motion.path,a({d:"M0 1H140"},ea)))),e.createElement(c.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(c.motion.path,a({d:"M0 1H140"},ea))))):e.createElement(e.Fragment,null,e.createElement(c.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(c.motion.path,a({d:"M0 1H140"},ea)))),e.createElement(c.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(c.motion.path,a({d:"M0 1H140"},ea)))))}t();var ta=function(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.inverse,n=void 0!==l&&l,i=c.fieldName,o=c.selectOptions,s=c.defaultValue,h=void 0===s?"all":s,d=c.hiddenLabel,u=void 0!==d&&d,v=c.customLabel,p=c.title,f=c.onChange,g=c.value;return e.createElement("div",{className:r("form-select",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"))},v?e.createElement("label",{htmlFor:i,className:r("form-select__label",u&&"sr-only")},v):e.createElement("label",{htmlFor:i,className:r("form-select__label",u&&"sr-only")},"Select ",i),e.createElement("div",{className:"form-select__select-wrapper"},e.createElement("select",{className:"form-select__select",defaultValue:h,value:g,id:i,name:i,onChange:f},e.createElement("option",{value:"all"},p),o&&o.map(function(c,t){return e.createElement("option",{value:c.value,key:t},c.label)})),e.createElement("div",{className:"form-select__icon"},e.createElement(m,{icon:"arrow-down",theme:a,inverse:n}))))};function aa(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.inverse,n=void 0!==l&&l,i=c.title,o=c.description,s=c.defaultSearchTerm,m=c.placeholder,h=c.filterTitle,d=c.filterFieldName,v=c.filterOptions,p=c.defaultFilter,f=void 0===p?"all":p,E=c.wrapped,_=void 0!==E&&E,b=c.fullWidth,w=void 0!==b&&b,q=c.onGrid,y=void 0!==q&&q,M=c.titleTag,C=void 0===M?"h2":M,N=c.formSubmitHandler,k=c.filterChangeHandler,x=c.searchTermChangeHandler,T=C;return e.createElement("div",{className:r("search-course",w&&"search-course--full-width",y&&"search-course--on-grid",_&&"search-course--wrapped",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"),!d&&"search-course--no-filter")},e.createElement("div",{className:"search-course__container"},i&&e.createElement(T,{className:"search-course__title"},i),o&&e.createElement("div",{className:"search-course__description"},e.createElement(g,{text:o,theme:a,inverse:n})),e.createElement("form",{className:"search-course__form",method:"post",onSubmit:N},e.createElement("div",{className:"search-course__search-wrapper"},e.createElement(Gt,{theme:a,inverse:n,fieldName:"search",hiddenLabel:!0,defaultValue:s,placeholder:m,onChange:x}),e.createElement(ye,{theme:a,inverse:!n,title:"Search",icon:"search",isSubmit:!0}),_&&e.createElement(u,{theme:a,inverse:!n,label:"Search",isSubmit:!0})),d&&h&&v&&e.createElement(ta,{theme:a,inverse:n,title:h,fieldName:d,selectOptions:v,defaultValue:f,hiddenLabel:!0,onChange:k}),!_&&e.createElement(u,{theme:a,inverse:!n,label:"Search",isSubmit:!0}))))}function la(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.inverse,n=c.label,i=c.icons;return e.createElement("div",{className:r("share-buttons",a&&"theme-".concat(a),l&&"theme-".concat(a,"--inverse"))},n&&e.createElement("div",{className:"share-buttons__label"},n),i&&e.createElement("ul",{className:"share-buttons__icon-wrapper"},i.map(function(c,t){return e.createElement("li",{className:"share-buttons__icon",key:t},e.createElement(ye,{theme:a,title:c.title,icon:c.icon,url:c.url,inverse:l}))})))}function na(c){var t="items"in c?c.items:[c];console.info("props in Paragraph Link",c),console.info("items in Paragraph Link",t);var a=(null!=t?t:[]).filter(function(e){return Boolean(e)});return e.createElement(e.Fragment,null,a.map(function(c,t){var l=c.theme,n=void 0===l?"uobmain":l,i=c.inverse,o=void 0!==i&&i,s=c.label,m=c.url,h=c.externalLink;return e.createElement(e.Fragment,{key:"".concat(m,"-").concat(s,"-").concat(t)},e.createElement("a",{className:r("paragraph-link",n&&"theme-".concat(n),o&&"theme-".concat(n,"--inverse")),href:m,target:h?"_blank":"_self",rel:"noreferrer"},s),t<a.length-1?" ":null)}))}function ra(c){var t=c.theme,a=c.inverse,l=c.buttonLabel,n=c.hollow,i=c.modalChildren,o=e.useState(!1),s=o[0],m=o[1],h=function(){m(!1),document.body.classList.remove("lock-scroll")};return e.createElement("div",{className:r("modal-cta-button",t&&"theme-".concat(t),a&&"theme-".concat(t,"--inverse"))},e.createElement(u,{inverse:a,label:l,onClick:function(){s?h():(m(!0),document.body.classList.add("lock-scroll"))},theme:t,hollow:n}),s&&e.createElement(Ce,{centred:!0,theme:t,closeModal:h,isOpen:s},e.createElement($e,{className:"modal-cta-button__embed-wrapper"},i)))}function ia(c){var t=c.title,l=c.value,n=c.link;return e.createElement("article",{className:"course-tile"},e.createElement("div",{className:"course-tile__top"},e.createElement("div",{className:"course-tile__title"},t),e.createElement("div",{className:"course-tile__value"},l)),n&&e.createElement("div",{className:"course-tile__link-wrapper"},e.createElement(vc,a({},n,{inverse:!0,onClick:function(e){return pc(e,n.url||"#")}}))))}function oa(c){var t=c.title,l=c.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"},t),e.createElement(ta,a({},l,{inverse:!0}))))}function sa(c){var t=c.title,l=c.rank,n=c.rankText,r=c.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"},t),e.createElement("div",{className:"course-tile-ranking__rank"},l),e.createElement("div",{className:"course-tile-ranking__rank-text"},n)),r&&e.createElement("div",{className:"course-tile-ranking__link-wrapper"},e.createElement(vc,a({},r,{inverse:!0,onClick:function(e){return pc(e,r.url||"#")}}))))}function ma(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.inverse,i=void 0===n||n,o=c.topPadding,s=void 0!==o&&o,m=c.selectorProps;return e.createElement("div",{className:r("location-selector",l&&"theme-".concat(l),i&&"theme-".concat(l,"--inverse"))},e.createElement("div",{className:r("location-selector__container",s&&"location-selector__container--padding-top")},e.createElement(ta,a({},m,{inverse:i}))))}t(),t(),t(),t(),t(),t(),t();var ha={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}},da={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))"}},ua={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%"}},pa={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}},fa={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%"}},ga={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)"}},Ea={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)"}},_a={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)"}},ba={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)"}},wa={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)"}},qa={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)"}},ya={initial:{pathLength:0},animate:{pathLength:1},transition:{delay:.5,duration:1}};function Ma(t){var l=t.isMobile,n=t.isTablet,r=t.activeVariant;return l?e.createElement(e.Fragment,null,e.createElement(c.motion.div,{className:"hero-carousel__line",variants:ga,animate:r,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(c.motion.path,a({d:"M0 1H140",stroke:"black"},ya)))),e.createElement(c.motion.div,{className:"hero-carousel__line",variants:Ea,animate:r,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(c.motion.path,a({d:"M0 1H140",stroke:"black"},ya))))):n?e.createElement(e.Fragment,null,e.createElement(c.motion.div,{className:"hero-carousel__line",variants:_a,animate:r,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(c.motion.path,a({d:"M0 1H260",stroke:"black"},ya)))),e.createElement(c.motion.div,{className:"hero-carousel__line",variants:ba,animate:r,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(c.motion.path,a({d:"M0 1H260",stroke:"black"},ya))))):e.createElement(e.Fragment,null,e.createElement(c.motion.div,{className:"hero-carousel__line",variants:wa,animate:r,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(c.motion.path,a({d:"M0 1H360",stroke:"black"},ya)))),e.createElement(c.motion.div,{className:"hero-carousel__line",variants:qa,animate:r,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(c.motion.path,a({d:"M0 1H360",stroke:"black"},ya)))))}function Ca(t){var a,l,n=t.isMobile,r=t.isTablet,i=t.activeVariant,o=t.imageSrc,s=t.imageAlt,m=t.imageFetchPriority,h=e.useRef(null),d=e.useId();return e.useEffect(function(){h.current&&h.current.setAttribute("fetchpriority",null!=m?m:"high")}),e.createElement(e.Fragment,null,e.createElement(c.AnimatePresence,null,e.createElement(c.motion.div,{className:"hero-carousel__image-wrapper",transition:{delayChildren:1}},e.createElement(c.motion.img,{ref:h,className:"hero-carousel__image",src:o.default,srcSet:"".concat(null!==(a=o.small)&&void 0!==a?a:o.default," 576w, ").concat(null!==(l=o.medium)&&void 0!==l?l:o.default," 992w, ").concat(o.default," 1440w"),alt:s,variants:n?da:r?va:fa,animate:i,initial:{clipPath:"polygon(0 0, 0 0, 0 0, 0 0)"},transition:{type:"tween"}}),e.createElement(c.motion.div,{key:d,className:"hero-carousel__image-background",variants:n?ha:r?ua:pa,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 Na=e.forwardRef(function(c,t){var a=c.theme,l=c.category,n=c.title,r=c.description,i=c.linkUrl,o=c.linkLabel,s=c.onKeyDown;return e.createElement(e.Fragment,null,e.createElement("p",{className:"hero-carousel__category"},l),e.createElement("h2",{className:"hero-carousel__title"},n),e.createElement("p",{className:"hero-carousel__description"},r),e.createElement("div",{className:"hero-carousel__cta"},e.createElement(v,{url:i,title:o,theme:a,inverse:!0,onKeyDown:s,ref:t})))});function ka(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.heading,i=void 0===n?"Page contents":n,o=c.links,s=c.buttonLinks,m=c.locationDetails,h=function(e){var c=document.getElementById(e);if(c){var t=c.getBoundingClientRect().top+window.pageYOffset-20;window.scrollTo({top:t,behavior:"smooth"});var a=null,l=null,n=0,r=function(){a&&(a.disconnect(),a=null),l&&(l.disconnect(),l=null),n&&(clearTimeout(n),n=0)},i=function(e){return!!e&&(a=new IntersectionObserver(function(c){c.some(function(e){return e.isIntersecting})&&function(e){try{e.focus({preventScroll:!0})}catch(e){}finally{r()}}(e)},{root:null,threshold:.1,rootMargin:"0px 0px -20% 0px"}),a.observe(e),!0)},o=c.querySelector("h1,h2,h3,h4,h5,h6");i(o)||(l=new MutationObserver(function(){o=c.querySelector("h1,h2,h3,h4,h5,h6"),i(o)&&l&&(l.disconnect(),l=null)})).observe(c,{childList:!0,subtree:!0}),n=window.setTimeout(function(){r();var e=c.querySelector('a, button, input, select, textarea, [tabindex]:not([tabindex="-1"])');if(e){var t=!e.hasAttribute("tabindex");t&&e.setAttribute("tabindex","-1"),e.focus({preventScroll:!0}),t&&e.removeAttribute("tabindex")}},1e3)}},d=function(e,c){e.preventDefault(),h(c.replace("#",""))};return e.createElement("div",{className:r("in-page-navigation-links",l&&"theme-".concat(l))},e.createElement("h2",{className:"in-page-navigation-links__heading"},i),m&&e.createElement(ma,a({},m,{inverse:!0})),e.createElement("nav",null,e.createElement("ul",{className:"in-page-navigation-links__link-container"},o.map(function(c){return e.createElement("li",{className:r("in-page-navigation-links__link-wrapper",c.active&&"in-page-navigation-links__link-wrapper--active"),key:c.url},e.createElement("a",{className:"in-page-navigation-links__link",href:c.url,onClick:function(e){return d(e,c.url)},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||d(e,c.url)}},c.title))}))),e.createElement("ul",null,s&&s.map(function(c,t){return c.externalLink?e.createElement("li",{className:"in-page-navigation-links__link-button",key:t},e.createElement(Ne,{theme:l,label:c.label,icon:"external",hollow:t%2!=0,iconPosition:"right",url:c.url,onClick:c.onClick})):e.createElement("li",{className:"in-page-navigation-links__link-button",key:t},e.createElement(u,{theme:l,label:c.label,hollow:t%2!=0,url:c.url,onClick:c.onClick}))})))}function xa(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.heading,n=c.cards,i=c.link;return e.createElement("div",{className:r("most-read-news",a&&"theme-".concat(a))},e.createElement("h2",{className:"most-read-news__title"},l),e.createElement("ul",{className:"most-read-news__card-container"},n.map(function(c,t){return e.createElement("li",{className:"most-read-news__card",key:t},e.createElement(Oe,{theme:a,title:c.title,href:c.href,titleTag:"h3",publishDate:c.publishDate}))})),i&&e.createElement(v,{theme:a,inverse:!0,url:i.url,title:i.title}))}function Ta(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.type,r=c.image,i=c.title,o=c.url,s=c.description,m=c.details,h=c.showCategory,d=void 0!==h&&h;return e.createElement(e.Fragment,null,r&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(w,a({},r))),e.createElement("div",{className:"listing-result-card__text"},d&&e.createElement("p",{className:"listing-result-card__category"},n),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),m.length>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(De,{details:m,theme:l}))))}function La(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.type,r=c.image,i=c.title,o=c.titleTag,s=void 0===o?"h2":o,m=c.url,h=c.description,d=c.supervisors,u=c.department,v=c.details,p=c.showCategory,g=void 0!==p&&p;return e.createElement(e.Fragment,null,r&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(w,a({},r))),e.createElement("div",{className:"listing-result-card__text"},g&&e.createElement("p",{className:"listing-result-card__category"},n),e.createElement(f,{htmlTag:"h3"===s?"h3":"h2"},e.createElement("a",{className:"listing-result-card__title",href:m},i)),(d||u)&&e.createElement("div",{className:"listing-result-card__course-info"},d&&e.createElement("p",{className:"listing-result-card__supervisors"},"Supervisors: ",d),u&&e.createElement("p",{className:"listing-result-card__department"},u)),h&&e.createElement("p",{className:"listing-result-card__description"},h),v.length>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(De,{details:v,theme:l}))))}function za(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.inverse,r=void 0===n||n,i=c.type,o=c.image,s=c.title,m=c.url,h=c.description,d=c.details,u=c.showCategory,v=void 0!==u&&u,p=c.cardDescriptionIsRichText,E=void 0!==p&&p,_=c.titleTag,b=void 0===_?"h2":_,q=c.eventStatus,y=void 0===q?void 0:q;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(xe,{theme:"uobmain",status:y,day:void 0,month:void 0}))),e.createElement("div",{className:"listing-result-card__text"},v&&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)),h&&!E&&e.createElement("p",{className:"listing-result-card__description"},h),h&&E&&e.createElement(g,{theme:l,inverse:r,text:h}),d.length>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(De,{details:d,theme:l}))))}function Sa(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.type,r=c.image,i=c.title,o=c.url,s=c.description,m=c.author,h=c.details,d=c.showCategory,u=void 0!==d&&d;return e.createElement(e.Fragment,null,r&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(w,a({},r))),e.createElement("div",{className:"listing-result-card__text"},u&&e.createElement("p",{className:"listing-result-card__category"},n),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 ",m),s&&e.createElement("p",{className:"listing-result-card__description"},s),h.length>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(De,{details:h,theme:l}))))}function Ha(c){var t=c.image,l=c.title,n=c.url,r=c.description;return e.createElement(e.Fragment,null,t&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(w,a({},t))),e.createElement("div",{className:"listing-result-card__text"},e.createElement("h2",null,e.createElement("a",{className:"listing-result-card__title",href:n},l)),r&&e.createElement("p",{className:"listing-result-card__description"},r)))}function Va(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.type,r=c.image,i=c.title,o=c.url,s=c.description,m=c.jobTitle,h=c.department,d=c.details,u=c.showCategory,v=void 0!==u&&u;return e.createElement(e.Fragment,null,r&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(w,a({},r))),e.createElement("div",{className:"listing-result-card__text"},v&&e.createElement("p",{className:"listing-result-card__category"},n),e.createElement("h2",null,e.createElement("a",{className:"listing-result-card__title",href:o},i)),(m||h)&&e.createElement("div",{className:"listing-result-card__staff-info"},m&&e.createElement("p",{className:"listing-result-card__job-title"},m),h&&e.createElement("p",{className:"listing-result-card__department"},h)),s&&e.createElement("p",{className:"listing-result-card__description"},s),d.length>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(De,{details:d,theme:l}))))}function Pa(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.image,r=c.title,i=c.url,o=c.description,s=c.jobTitle,m=c.department,h=c.details;return e.createElement(e.Fragment,null,n&&e.createElement("div",{className:"listing-result-card__image"},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:i},r)),(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),h.length>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(De,{details:h,theme:l}))))}function Oa(c){return e.createElement("article",{className:r("listing-result-card",c.theme&&"theme-".concat(c.theme))},"page"===c.type&&e.createElement(Ha,a({},c)),"course"===c.type&&e.createElement(La,a({},c)),"accomodation"===c.type&&e.createElement(Ta,a({},c)),"event"===c.type&&e.createElement(za,a({},c)),"news"===c.type&&e.createElement(Sa,a({},c)),"staff"===c.type&&e.createElement(Va,a({},c)),"profile"===c.type&&e.createElement(Pa,a({},c)))}function Za(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.numOfPages,n=c.onClick,i=c.currentPage,o=pe("768px"),s=e.createElement("li",null,e.createElement("span",{className:"pagination__ellipse"},"..."));return o&&l<=4?e.createElement(e.Fragment,null,Array(l).fill(0).map(function(c,t){return e.createElement("li",{className:r("pagination__number",i===t&&"pagination__number--selected"),key:t},e.createElement(u,{label:(t+1).toString(),onClick:function(){return n(t)},hollow:!(i===t),theme:a}))})):o&&l>4?e.createElement(e.Fragment,null,i>0&&e.createElement("li",{key:0,className:"pagination__number"},e.createElement(u,{label:"1",onClick:function(){return n(0)},theme:a,hollow:!0})),i+1>=3&&s,e.createElement("li",{key:i,className:"pagination__number pagination__number--selected"},e.createElement(u,{label:"".concat(i+1," "),onClick:function(){return n(i)},theme:a})),i+1<l-1&&s,i!==l-1&&e.createElement("li",{key:l-1,className:"pagination__number"},e.createElement(u,{label:l.toString(),onClick:function(){return n(l-1)},theme:a,hollow:!0}))):!o&&l<=6?e.createElement(e.Fragment,null,Array(l).fill(0).map(function(c,t){return e.createElement("li",{key:t,className:r("pagination__number",i===t&&"pagination__number--selected","test")},e.createElement(u,{label:(t+1).toString(),onClick:function(){return n(t)},hollow:!(i===t),theme:a}))})):!o&&l>6?e.createElement(e.Fragment,null,i>0&&e.createElement("li",{key:0,className:"pagination__number start"},e.createElement(u,{label:"1",onClick:function(){return n(0)},theme:a,hollow:!0})),i+1>=4&&s,i>1&&e.createElement("li",{key:i-1,className:"pagination__number before"},e.createElement(u,{label:(i>=1?i:i-1).toString(),onClick:function(){return n(i-1)},theme:a,hollow:!0})),e.createElement("li",{key:i,className:"pagination__number pagination__number--selected current"},e.createElement(u,{label:"".concat(i+1),onClick:function(){return n(i)},theme:a})),i+1<l-1&&e.createElement("li",{key:i+1,className:"pagination__number after"},e.createElement(u,{label:"".concat(i+2),onClick:function(){return n(i+1)},theme:a,hollow:!0})),i+1<l-2&&s,i+1!==l&&e.createElement("li",{key:l-1,className:"pagination__number end"},e.createElement(u,{label:"".concat(l),onClick:function(){return n(l-1)},theme:a,hollow:!0}))):e.createElement(e.Fragment,null)}function Ba(e,c){return o("".concat(null!=e?e:""," ").concat(c))}function Fa(c){var t=c.children,a=c.theme,l=void 0===a?"uobmain":a,n=c.inverse,i=void 0!==n&&n;return e.createElement("div",{className:r("tabs__list__container",l&&"theme-".concat(l),i&&"theme-".concat(l,"--inverse"))},e.createElement("ul",{className:"tabs__list",role:"tablist"},t))}function Da(c){var t=c.title,a=c.htmlTag,l=void 0===a?"h3":a,n=c.theme,i=void 0===n?"uobmain":n,o=c.inverse,s=void 0!==o&&o,m=c.isActive,h=c.children,d=c.tabsBlockName;if(!m)return null;var u=Ba(null!=d?d:"",t);return e.createElement("div",{id:d,className:r("tabs__panel",i&&"theme-".concat(i),s&&"theme-".concat(i,"--inverse")),role:"tabpanel","aria-labelledby":"tab_"+u},e.createElement(f,{htmlTag:l,classNames:"tabs__panel-title"},t),h)}function Ia(c){var t=c.id,a=c.theme,l=void 0===a?"uobmain":a,n=c.inverse,i=void 0!==n&&n,o=c.tabItem,s=c.isActive,m=c.hasFocus,h=c.tabsBlockName,d=c.handleClick,u=c.handleKeyboardNavigation,v=e.useRef(null);e.useEffect(function(){s&&m&&v.current&&(v.current.focus(),window.matchMedia("min-width: 768px").matches&&v.current.scrollIntoView())});var p=Ba(null!=h?h:"",o.title);return e.createElement("li",{className:"tabs__list-item",role:"presentation"},e.createElement("button",{className:r("tabs__tab",l&&"theme-".concat(l),i&&"theme-".concat(l,"--inverse"),s&&"active"),onClick:function(e){return d(e,t)},onKeyDown:u,ref:v,id:"tab_"+p,role:"tab","aria-controls":p,"aria-selected":s?"true":"false",tabIndex:s?0:-1,type:"button"},o.title))}function Aa(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.label,n=c.url,i=c.externalLink;return e.createElement("a",{className:r("pill",a&&"theme-".concat(a)),href:n,target:i?"_blank":"_self",rel:i?"noopener noreferrer":""},l)}Na.displayName="HeroCardContent",t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t();var Ra,$a={exports:{}};var ja,Wa=(Ra||(Ra=1,ja=$a,function(e,c){ja.exports=c()}(0,function(){var e=[],c=[],t={},a={},l={};function n(e){return"string"==typeof e?new RegExp("^"+e+"$","i"):e}function r(e,c){return e===c?c:e===e.toLowerCase()?c.toLowerCase():e===e.toUpperCase()?c.toUpperCase():e[0]===e[0].toUpperCase()?c.charAt(0).toUpperCase()+c.substr(1).toLowerCase():c.toLowerCase()}function i(e,c){return e.replace(c[0],function(t,a){var l,n,i=(l=c[1],n=arguments,l.replace(/\$(\d{1,2})/g,function(e,c){return n[c]||""}));return r(""===t?e[a-1]:t,i)})}function o(e,c,a){if(!e.length||t.hasOwnProperty(e))return c;for(var l=a.length;l--;){var n=a[l];if(n[0].test(c))return i(c,n)}return c}function s(e,c,t){return function(a){var l=a.toLowerCase();return c.hasOwnProperty(l)?r(a,l):e.hasOwnProperty(l)?r(a,e[l]):o(l,a,t)}}function m(e,c,t,a){return function(a){var l=a.toLowerCase();return!!c.hasOwnProperty(l)||!e.hasOwnProperty(l)&&o(l,l,t)===l}}function h(e,c,t){return(t?c+" ":"")+(1===c?h.singular(e):h.plural(e))}return h.plural=s(l,a,e),h.isPlural=m(l,a,e),h.singular=s(a,l,c),h.isSingular=m(a,l,c),h.addPluralRule=function(c,t){e.push([n(c),t])},h.addSingularRule=function(e,t){c.push([n(e),t])},h.addUncountableRule=function(e){"string"!=typeof e?(h.addPluralRule(e,"$0"),h.addSingularRule(e,"$0")):t[e.toLowerCase()]=!0},h.addIrregularRule=function(e,c){c=c.toLowerCase(),e=e.toLowerCase(),l[e]=c,a[c]=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 h.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 h.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 h.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(h.addUncountableRule),h})),$a.exports),Ua=wc(Wa);function Ga(c){var t=c.theme,l=c.heading,n=c.selectContent,i=c.defaultIsOpen,o=void 0!==i&&i;n&&(o=!!n.defaultValue||o);var s=e.useState(o),h=s[0],d=s[1];return e.createElement("fieldset",{className:r("filter-accordion-select",h&&"filter-accordion-select--open",t&&"theme-".concat(t))},e.createElement("legend",{className:"filter-accordion-select__legend"},e.createElement("button",{className:"filter-accordion-select__button",onClick:function(){return d(function(e){return!e})},"aria-expanded":h,"aria-controls":l.replace(" ","")},l,e.createElement(m,{icon:"chevron-down",theme:t,inverse:!0,ariaHidden:!0}))),h&&e.createElement("div",{className:"filter-accordion-select__select-wrapper"},e.createElement(ta,a({theme:t,inverse:!0},n))))}function Ka(c){var t=c.theme,a=c.name,l=c.id,n=c.label,i=c.defaultValue,o=c.onChange;return e.createElement("div",{className:r("date-input",t&&"theme-".concat(t))},e.createElement("label",{htmlFor:l,className:"date-input__label"},n),e.createElement("input",{type:"date",className:"date-input__input",defaultValue:i,onChange:o,name:a,id:l}))}t(),t(),t();var Ya,Ja=function(e){var c=e.split(" "),t=c[c.length-1];return c[c.length-1]=Ua(t),c.join(" ")};function Qa(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.imageSrc,n=c.onClick;return e.createElement("div",{className:r("video-placeholder",a&&"theme-".concat(a))},e.createElement(w,{src:l,altText:""}),e.createElement("button",{className:"video-placeholder__button",onClick:n},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 Xa(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.imageSrc,n=c.videoUrl,i=c.videoId,o=e.useState(!1),s=o[0],m=o[1];return e.createElement("div",{className:r("video-with-placeholder",a&&"theme-".concat(a))},s?e.createElement(qe,{url:n,id:i,autoPlay:!0,theme:a}):e.createElement(Qa,{imageSrc:l,onClick:function(){return m(!0)},theme:a}))}t(),t(),t(),t(),t(),t(),function(e){e.NotSpecified="NotSpecified",e.ColumnAndRowHeadings="ColumnAndRowHeadings",e.ColumnHeadingsOnly="ColumnHeadingsOnly"}(Ya||(Ya={})),t(),t(),t(),t(),t(),t(),exports.Accordion=b,exports.AcreditationPromotion=function(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.heading,i=c.intro,o=c.accreditations,m=c.htmlTag,h=void 0===m?"h2":m,d=c.fullWidth,u=void 0!==d&&d;return e.createElement("section",{className:r("accreditation-promotion",l&&"theme-".concat(l),u&&"accreditation-promotion--full-width")},e.createElement("div",{className:"accreditation-promotion__container"},n&&e.createElement(f,{classNames:"accreditation-promotion__heading",htmlTag:h},n),i&&e.createElement("p",{className:"accreditation-promotion__intro"},i),e.createElement("ul",null,o.map(function(c,t){return e.createElement("li",{className:r("accreditation-promotion__accreditation",t%2==0?"accreditation-promotion__accreditation--right":"accreditation-promotion__accreditation--left"),key:t},c.image&&e.createElement("div",{className:"accreditation-promotion__image-wrapper"},e.createElement(w,a({},c.image))),e.createElement(s,{theme:l,text:c.text,inverse:!0,fullWidth:!0}))}))))},exports.AlertBanner=function(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.inverse,n=void 0!==l&&l,i=c.type,o=c.richText,h=e.useState(!0),d=h[0],u=h[1];return e.useEffect(function(){try{window.sessionStorage.getItem("alertBannerIsHidden")&&u(!window.sessionStorage.getItem("alertBannerIsHidden"))}catch(e){console.error(e)}},[]),e.createElement(e.Fragment,null,d&&e.createElement("div",{className:r("alert-banner",a&&"theme-".concat(a),n&&"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:n?"warning-light":"warning-dark",inverse:n}),"success"===i&&e.createElement(m,{theme:a,icon:"success",inverse:n}),"information"===i&&e.createElement(m,{theme:a,icon:"information",inverse:n})),e.createElement(s,{theme:a,text:o.text,inverse:n})),e.createElement(q,{theme:a,icon:"cross",inverse:n,title:"Hide alert banner",onClick:function(){return function(){u(!1);var e=JSON.stringify(d);window.sessionStorage.setItem("alertBannerIsHidden",e)}()}}))))},exports.AnchorTarget=function(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.inverse,n=void 0===l||l,i=c.includeDivider,o=void 0===i||i,s=c.targetLabel,m=c.landmarkLabel,h=c.children,d=e.useRef(null);return e.useEffect(function(){var e=d.current;if(e){var c=!1,t=e.querySelector("h1,h2,h3,h4,h5,h6"),a=function(e){return!!e&&(e.hasAttribute("tabindex")||(e.setAttribute("tabindex","-1"),c=!0),t=e,!0)};if(!a(t)){var l=new MutationObserver(function(){var c=e.querySelector("h1,h2,h3,h4,h5,h6");a(c)&&l.disconnect()});return l.observe(e,{childList:!0,subtree:!0}),function(){return l.disconnect()}}return function(){c&&t&&t.removeAttribute("tabindex")}}},[s]),e.createElement("div",{id:s,ref:d,role:m?"region":void 0,"aria-label":m||void 0,className:r("anchor-target",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"))},o&&e.createElement("hr",{className:"anchor-target__divider",role:"none"}),h)},exports.Breadcrumbs=function(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.inverse,i=void 0!==n&&n,o=c.links;return e.createElement("nav",{className:r("breadcrumbs",l&&"theme-".concat(l),i&&"theme-".concat(l,"--inverse"))},e.createElement("ol",{className:"breadcrumbs__list"},o.slice(0,-1).map(function(c){return e.createElement("li",{className:"breadcrumbs__link",key:c.title},e.createElement(m,{icon:"chevron-right",theme:l,ariaHidden:!0}),e.createElement(y,a({theme:l,inverse:i},c)))})))},exports.CTAComponent=function(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.inverse,i=c.highlight,o=void 0!==i&&i,s=c.image,m=c.heading,h=c.copy,d=c.primaryCTA,p=c.secondaryCTA,g=c.link,E=c.fullWidth,_=void 0!==E&&E,b=c.htmlTag,q=void 0===b?"h2":b,y=!o&&!!n;return e.createElement("div",{className:r("cta-component",l&&"theme-".concat(l),n&&"theme-".concat(l,"--inverse"),o&&"theme-".concat(l,"--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:q,classNames:"cta-component__heading"},m),h&&e.createElement("p",{className:"cta-component__copy"},h))),e.createElement("div",{className:"cta-component__button-wrapper"},d&&e.createElement(u,a({},d,{inverse:y})),p&&e.createElement(u,a({},p,{hollow:!0,inverse:y}))),g&&e.createElement(v,a({},g,{inverse:!y})))))},exports.CardImageAndText=function(c){var t=c.theme,l=c.inverse,n=c.image,i=c.title,o=c.titleTag,s=void 0===o?"h2":o,m=c.text;return e.createElement("div",{className:r("card-image-and-text",t&&"theme-".concat(t),l&&"theme-".concat(t,"--inverse"),!i&&"card-image-and-text__no-title")},n&&e.createElement("div",{className:"card-image-and-text__image"},e.createElement(w,a({},n))),e.createElement("div",{className:"card-image-and-text__text"},i&&e.createElement(f,{classNames:r("card-image-and-text__heading-padding","card-image-and-text__".concat(s)),htmlTag:s},i),m&&e.createElement(g,{theme:t,inverse:l,text:m})))},exports.CardProfile=function(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.inverse,i=void 0===n||n,o=c.image,s=c.name,m=c.courseTitle,h=c.href,d=c.copy,u=c.titleTag,v=void 0===u?"h3":u;return e.createElement("article",{className:r("card-profile",l&&"theme-".concat(l),i&&"theme-".concat(l,"--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:h},"h2"===v&&e.createElement("h2",{className:"card-profile__title"},s),"h3"===v&&e.createElement("h3",{className:"card-profile__title"},s)),m&&e.createElement("p",{className:"card-profile__course-title"},m),d&&e.createElement("p",{className:"card-profile__copy"}," ",d.length>120?"".concat(d.slice(0,120),"..."):d)))))},exports.CardPromoProfile=Ie,exports.CardPromoSignpost=Le,exports.CardStaff=He,exports.Carousel=Re,exports.CentreWrapper=function(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.children;return e.createElement("div",{className:r("centre-wrapper",a&&"theme-".concat(a))},e.createElement("div",{className:"centre-wrapper__grid-container"},e.createElement("div",{className:"centre-wrapper__children"},l)))},exports.ClearingBanner=function(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.text,n=c.showIcon,i=void 0===n||n,o=c.smallLink,s=c.mainLink;return e.createElement("div",{className:r("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(Se,{theme:a,icon:"clearing-tick"})),e.createElement("div",null,e.createElement("span",null,l),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(Ne,{theme:a,inverse:!1,label:s.label,url:s.url,icon:s.icon,iconPosition:s.iconPosition}))))},exports.CourseDeliveryPills=function(c){var t=c.pills,l=c.theme,n=void 0===l?"uobmain":l;return e.createElement("div",{className:r("course-delivery-pills",n&&n&&"theme-".concat(n))},t.map(function(c,t){return e.createElement(h,a({key:t},c,{theme:n}))}))},exports.EmbedWrapper=$e,exports.FactBoxes=function(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.inverse,i=void 0!==n&&n,o=c.title,s=c.description,m=c.linkProps,h=c.cards,d=c.fullWidth,u=void 0!==d&&d,v=c.htmlTag,p=c.showCardColumn,f=void 0===p||p;return e.createElement("section",{className:r("fact-boxes",l&&"theme-".concat(l),i&&"theme-".concat(l,"--inverse"),u&&"fact-boxes--full-width",f&&3===h.length&&"fact-boxes--three-facts",f&&2===h.length&&"fact-boxes--two-facts",f&&1===h.length&&"fact-boxes--one-fact")},(o||s)&&e.createElement(_,{theme:l,inverse:i,htmlTag:v,title:o,description:s,linkProps:m}),e.createElement("div",{className:"fact-boxes__container"},e.createElement("ul",{className:"fact-boxes__grid"},h.map(function(c,t){return e.createElement("li",{className:"fact-boxes__card",key:t},e.createElement(je,a({},c,{inverse:!i})))}))))},exports.FeaturedContent=function(t){var a=t.theme,l=t.cards,n=l.length>1,i=e.useState(0),o=i[0],s=i[1],m=e.useState("first"),h=m[0],d=m[1],u=e.useState("0"),v=u[0],p=u[1],f=e.useState("0"),g=f[0],E=f[1],_=e.useState("0"),b=_[0],w=_[1],q=e.useState("0"),y=q[0],M=q[1],C=l[o],N=e.useRef(null),k=pe("768px"),x=pe("1248px");e.useEffect(function(){switch(o){case 0:d("first"),p(ge.first.top),E(Ee.first.bottom),w(_e.first.top),M(be.first.bottom);break;case 1:d("second"),p(ge.second.top),E(Ee.second.bottom),w(_e.second.top),M(be.second.bottom);break;case 2:d("third"),p(ge.third.top),E(Ee.third.bottom),w(_e.third.top),M(be.third.bottom)}},[o,h]);var T=n?e.createElement(Ae,{theme:a,totalNumber:l.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===l.length-1}):e.createElement(e.Fragment,null);return e.createElement("div",{className:r("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"},k&&e.createElement(Re,{theme:a,type:"featured",inverse:!0,cards:l}),!k&&e.createElement(e.Fragment,null,e.createElement(c.motion.section,{className:"featured-content__active-card",key:o,initial:{opacity:0},animate:{opacity:1}},e.createElement(we,{theme:a,imagePrimary:C.imagePrimary,imageSecondary:C.imageSecondary,imageTertiary:C.imageTertiary,categoryLabel:C.categoryLabel,slideTitle:C.slideTitle,subTitle:C.subTitle,introText:C.introText,link:C.link,linkText:C.linkText,cardOrder:C.cardOrder,activeVariant:h,leftInitialPositionTablet:v,rightInitialPositionTablet:g,leftInitialPositionDesktop:b,rightInitialPositionDesktop:y,isMobile:!1,isTablet:x,ref:N}))))),!k&&n&&l.map(function(c,t){return e.createElement("div",{className:"featured-content__invisible-card featured-content__invisible-card--desktop",key:t,"aria-hidden":!0},e.createElement("section",null,e.createElement(we,{theme:a,categoryLabel:c.categoryLabel,slideTitle:c.slideTitle,subTitle:c.subTitle,introText:c.introText,link:c.link,linkText:c.linkText,cardOrder:c.cardOrder,activeVariant:h,imagePrimary:{src:{default:""}},imageSecondary:{src:{default:""}},imageTertiary:{src:{default:""}}})))})),e.createElement("div",{className:"featured-content__nav featured-content__nav--desktop"},T))},exports.FeaturedSignpost=function(c){var t=c.theme,a=c.inverse,l=c.position,n=c.category,i=c.title,o=c.description,s=c.linkUrl,m=c.linkLabel,h=c.linkIsExternal,d=void 0!==h&&h,u=c.imageAlt,p=c.imageSrc,f=pe("1248px");return e.createElement("div",{className:r("featured-signpost","featured-signpost--".concat(l),t&&"theme-".concat(t),a&&"theme-".concat(t,"--inverse"))},"left"===l&&e.createElement("div",{className:"featured-signpost__image-container featured-signpost__image-container--mobile"},e.createElement(rc,{isMobile:!0,isTablet:!1,position:l,imageSrc:p,imageAlt:u}),e.createElement(oc,{isMobile:!0,isTablet:!1,position:l})),"left"===l&&e.createElement("div",{className:"featured-signpost__image-container featured-signpost__image-container--desktop"},e.createElement(rc,{isMobile:!1,isTablet:f,position:l,imageSrc:p,imageAlt:u}),e.createElement(oc,{isMobile:!1,isTablet:f,position:l})),e.createElement("div",{className:"featured-signpost__content-wrapper"},e.createElement("div",{className:"featured-signpost__content"},n&&e.createElement("p",{className:"featured-signpost__category"},n)," ",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(v,{url:s,title:m,theme:t,inverse:a,externalLink:d})))),"right"===l&&e.createElement("div",{className:"featured-signpost__image-container featured-signpost__image-container--mobile"},e.createElement(rc,{isMobile:!0,isTablet:!1,position:l,imageSrc:p,imageAlt:u}),e.createElement(oc,{isMobile:!0,isTablet:!1,position:l})),"right"===l&&e.createElement("div",{className:"featured-signpost__image-container featured-signpost__image-container--desktop"},e.createElement(rc,{isMobile:!1,isTablet:f,position:l,imageSrc:p,imageAlt:u}),e.createElement(oc,{isMobile:!1,isTablet:f,position:l})))},exports.FeaturedVideo=function(c){var t=c.theme,a=c.title,l=c.image,n=c.youtubeId,i=c.youtubeButtonLabel,o=void 0===i?"Watch the video":i,s=c.audioYoutubeButtonLabel,m=void 0===s?"Watch the audio described video":s,h=c.audioYoutubeId,d=e.useState(!1),u=d[0],v=d[1],p=e.useRef(n),f=pe("768px"),g=function(){v(!1),document.body.classList.remove("lock-scroll")},E=function(e){p.current=e,u?g():(v(!0),document.body.classList.add("lock-scroll"))};return e.createElement(e.Fragment,null,e.createElement("section",{className:r("featured-video",t&&"theme-".concat(t))},f?e.createElement("div",{className:"featured-video__mobile-image"},e.createElement("div",{className:"featured-video__image-wrapper",style:{backgroundImage:"url(".concat(l.src.default,")"),backgroundPosition:"50% 50%",backgroundSize:"cover",backgroundRepeat:"no-repeat"}})):e.createElement(sc,{offset:100},e.createElement("div",{className:"featured-video__image-wrapper",style:{backgroundImage:"url(".concat(l.src.default,")"),backgroundPosition:"50% 50%",backgroundSize:"cover",backgroundRepeat:"no-repeat"}})),e.createElement("div",{className:"featured-video__container"},e.createElement("h2",{className:"featured-video__title"},a),e.createElement("div",{className:"featured-video__button-wrapper"},e.createElement(Ne,{theme:t,inverse:!0,label:o,icon:"play",onClick:function(){return E(n)}}),h&&e.createElement("button",{className:"featured-video__button-audio",type:"button",onClick:function(){return E(h)}},m)))),u&&e.createElement(Ce,{theme:t,closeModal:g,isOpen:u},e.createElement(qe,{theme:t,id:p.current,autoPlay:!0})))},exports.FiveArticlesGrid=function(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.heading,i=c.featuredArticle,o=c.otherLeadArticles;return e.createElement("section",{className:r("five-articles-grid",l&&"theme-".concat(l))},e.createElement("div",{className:"five-articles-grid__container"},n&&e.createElement("h2",{className:"five-articles-grid__heading"},n),e.createElement("div",{className:"five-articles-grid__main-container"},e.createElement("div",{className:"five-articles-grid__featured-card"},e.createElement(Oe,a({},i,{isPrimary:!0}))),e.createElement("ul",{className:"five-articles-grid__secondary-card-container"},o.map(function(c,t){return e.createElement("li",{className:"five-articles-grid__secondary-card",key:t},e.createElement(Oe,{theme:l,image:c.image,title:c.title,href:c.href,titleTag:c.titleTag,publishDate:c.publishDate}))})))))},exports.Footer=function(c){var t=c.theme,a=c.locations,l=c.summaryLinks,n=c.hygieneLinks,r=c.activeCampus,i=void 0===r?"uk":r,o=c.address,s=c.telephoneAsNumber,h=c.telephoneAsDisplay,d=c.telIntroText,u=void 0===d?"":d,p=c.socialIcons;return e.createElement("footer",{id:"footer",className:"footer theme-".concat(t),"data-element":"footer"},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(uc,{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.map(function(c,t){return e.createElement("p",{className:"footer__address-line",key:t},c)})),e.createElement("div",{className:"footer__telephone"},u&&e.createElement("p",null,u),"Tel:",e.createElement(mc,{theme:t,url:"tel: ".concat(s),title:h,externalLink:!1})),e.createElement("ul",{className:"footer__social-wrapper"},p.map(function(c,a){return e.createElement("li",{key:a},e.createElement(ye,{icon:c.icon,theme:t,url:c.url,title:c.title,externalLink:!1}))}))),e.createElement("div",{className:"footer__column-middle"},e.createElement("details",{className:"footer__details",open:!l},e.createElement("summary",{className:"footer__summary-links"},"Global Footprint",e.createElement("i",{className:"footer__summary-icon"},e.createElement(m,{icon:"chevron-down",theme:t}))),e.createElement("ul",null,a.map(function(c,a){return e.createElement("li",{className:"footer__location",key:a},e.createElement("i",{className:"footer__location-icon"},e.createElement(m,{icon:"location",theme:t})),e.createElement(mc,{theme:t,url:c.href,title:c.label,externalLink:c.externalLink}))}))),e.createElement("ul",null,l&&l.map(function(c,a){return e.createElement("li",{className:"footer__arrow-link",key:a},e.createElement(v,{theme:t,title:c.label,url:c.href,externalLink:c.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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8.2-5.5l-6.7-11.5l-2.1-1.9v-2.4l2.6-7.6l3.5-3.5L104.1%2c199.6z'/%3e %3cpath class='st2' d='M442.8%2c295.9l4.5-4.7l4.6-2.8l3.4-4.5l0.7%2c2l1.2-0.2l-0.3%2c1.7l-3.5%2c3.9l0.9%2c0.5l-3.1%2c0.8l-2.1%2c3.2l-3.3%2c2.8 L442.8%2c295.9z'/%3e %3cpath class='st2' d='M458.2%2c281.5l1.3%2c1.7l-0.1%2c1.2l-1.4%2c2l0.9%2c0.6l3.6-3.9l0.2-1.3l1.4-0.5l2-3.1l-1-0.4l-1%2c1.2l-1.6-1.5l-0.1-1.1 l-1-0.6v-1l-0.2-1l0.5-0.9l-2.1-2.6l-0.1%2c2l0.7%2c2.3l0.5%2c2.7l-0.7%2c2l-0.7%2c1.2L458.2%2c281.5z'/%3e %3cpath class='st2' d='M79.8%2c59.8V57l-1-1.2l7.8-8.5l6.4%2c3.2l0.9%2c3.5L79.8%2c59.8z'/%3e %3cpath class='st2' d='M93.4%2c55.6l4.6%2c4.7v2.9l2.9-5.9l1.9%2c2.1l-2.1%2c7.5l2.1%2c3.8L99%2c73.1l-4.1-2.7l-8%2c1.8l-0.5-3.1L84%2c67.9l0.7-3.6 l5.9%2c1.6l-5.9-3.2l3.8-1.4l-2.6-2.2L93.4%2c55.6z'/%3e %3cpath class='st2' d='M128.4%2c62.7l-4-1.3l-7.1%2c6.2v4.2l2.9%2c2.5l4%2c1.6l4.2-0.7l4%2c7.4l-3.2%2c6.3l-5.5%2c0.8l-0.2%2c2.1h4l2.7%2c5.4l5%2c2.7 l-2.1-5.2l4.3%2c2.9l0.5-4.5l-1.8-3.3l1.2-2.3l2.7%2c4.8l4.8-3.8l-6.6-6.5l2.6-2.2l-1.5-5.5l-5.9-5.6l0.1-3.3l-1.8-2.3L128.4%2c62.7z'/%3e %3cpath class='st2' d='M162.1%2c106.8l3.6-5.9l3.4-7.5l6.2-0.7l4.3-5.4l11.4-4.5l1.3-4.2v-7.3l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l3%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' d='M390.7%2c168.1c0%2c0-1.2%2c1.6-1.4%2c2.1s-0.1%2c1.2-0.1%2c1.2l0.8%2c2.5l1.4-4.9l0.6-0.9l-0.5-0.4L390.7%2c168.1z'/%3e%3c/g%3e%3cpath class='st3' d='M324.9%2c171.8c-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.1L324.9%2c171.8z'/%3e%3cpath class='st4' d='M292.1%2c166.6c-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.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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.1L387.8%2c167.2z'/%3e%3cpath class='st5' d='M377.9%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"},n.map(function(c,a){return e.createElement("li",{className:"footer__hygiene-link",key:"hygiene-".concat(a)},e.createElement(mc,{theme:t,url:c.href,title:c.label,externalLink:c.externalLink}))})),e.createElement("p",{className:"footer__copyright"},"© University of Birmingham ",(new Date).getFullYear()))))},exports.GeneralSearchFilter=function(c){var t=c.theme,a=c.heading,l=c.typeName,n=c.typeGroups,i=c.onClearFilters,o=c.onViewResults,s=c.defaultCheckedType,m=n.find(function(e){return e.value===s});return e.createElement("div",{className:r("general-search-filter",t&&"theme-".concat(t))},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(bc,{type:"radio",heading:"Type",theme:t,defaultIsOpen:!0,inputs:n.map(function(e){return{name:l,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(c){return e.createElement("li",{className:"standard-listing-filter__item",key:c.name},e.createElement(bc,{type:"checkbox",heading:c.heading,theme:t,inputs:c.inputs.map(function(e){return{name:c.name,value:e.value,label:e.label,id:e.id,defaultChecked:!!c.defaultValues&&c.defaultValues.includes(e.value),onChange:c.onChange}})}))})),o&&e.createElement("div",{className:"general-search-filter__results-button"},e.createElement(u,{label:"View filtered results",onClick:o,theme:t})),e.createElement("div",{className:"general-search-filter__clear-button"},e.createElement(u,{label:"Clear filters",onClick:i,theme:t,hollow:!0})))},exports.GenericDetailSection=function(c){var t=c.theme,l=c.title,n=c.detailColumns,i=c.buttons;return e.createElement("section",{className:r("generic-detail-section",t&&"theme-".concat(t))},e.createElement("div",{className:"generic-detail-section__container"},l&&e.createElement("h2",{className:"generic-detail-section__title"},l),e.createElement("ul",{className:"generic-detail-section__details-container"},n.map(function(c,l){return e.createElement("ul",{key:l,className:"generic-detail-section__column"},c.map(function(c){return e.createElement("li",{className:"generic-detail-section__detail",key:c.title},e.createElement(fc,a({},c,{theme:t})))}),3===n.length&&2===l&&i&&i.map(function(c,n){return e.createElement("li",{key:n,className:"generic-detail-section__detail generic-detail-section__detail--button"},gc(c)?e.createElement(Ne,a({},c,{theme:t,hollow:l%2!=0})):e.createElement(u,a({},c,{theme:t,hollow:l%2!=0})))}))}),n.length<3&&i&&e.createElement("ul",null,i.map(function(c,l){return e.createElement("li",{key:l,className:"generic-detail-section__detail generic-detail-section__detail--button"},gc(c)?e.createElement(Ne,a({},c,{theme:t})):e.createElement(u,a({},c,{theme:t,hollow:l%2!=0})))})))))},exports.Header=function(t){var a=t.theme,n=void 0===a?"uobmain":a,i=t.primaryLinks,o=t.secondaryLinks,s=t.menuCards,m=t.dubaiUrl,h=t.ukUrl,d=t.logoTitleTagH1,v=void 0===d||d,p=t.activeCampus,f=void 0===p?"uk":p,g=t.searchProps,E=function(){var c=e.useState(null),t=c[0],a=c[1];return e.useEffect(function(){var e=window.scrollY,c=function(){var c=window.scrollY,l=c>e?"down":"up";l!==t&&(c-e>3||c-e<-3)&&a(l),e=c>0?c:0};return window.addEventListener("scroll",c),function(){window.removeEventListener("scroll",c)}},[t]),t}(),_=e.useState(!1),b=_[0],w=_[1],q=e.useRef(null),y=e.useRef(null),M=e.useRef(null),C=pe("768px"),N=e.useState(0),k=N[0],x=N[1],T=e.useState(null),L=T[0],z=T[1],S=e.useState(null),H=S[0],V=S[1],P=e.useState(!1),O=P[0],Z=P[1],B=e.useState(!1),F=B[0],D=B[1],I=e.useState(""),A=I[0],R=I[1],$=function(){w(!0),document.body.classList.add("lock-scroll")},j=function(){Z(!0),$()},W=function(){Z(!1),D(!1)},U=function(){w(!1),W(),document.body.classList.remove("lock-scroll"),x(0),z(null),V(null),q.current&&q.current.focus()},G=function(){x(0),z(null),W()},K=function(){x(1),V(null),W()},Y=function(e){"Escape"===e.key&&b&&U()};e.useEffect(function(){return document.addEventListener("keydown",Y),function(){document.removeEventListener("keydown",Y)}}),e.useEffect(function(){if(y.current&&"down"===E){var e=y.current.offsetHeight;y.current.style.top="-".concat(e,"px")}else if(y.current&&"up"===E){var c=0;M.current&&y.current&&(c=M.current.offsetHeight),y.current.style.top="-".concat(c,"px")}},[E]);var J=null,Q=null;null!==L&&(J=l(l([],i,!0),o,!0)[L],null!==H&&J.children&&(Q=J.children[H]));var X=e.createElement("div",{className:"header__campus-selector header__campus-selector--mobile"},e.createElement(Jt,{theme:n,dubaiUrl:m,ukUrl:h,active:f,mobile:!0})),ee=e.createElement("div",{className:"header__campus-selector header__campus-selector--desktop",ref:M},e.createElement(Jt,{theme:n,dubaiUrl:m,ukUrl:h,active:f,mobile:!1})),ce=e.createElement("div",{className:"header__campus-selector header__campus-selector--desktop"},e.createElement(Jt,{theme:n,dubaiUrl:m,ukUrl:h,active:f,mobile:!1})),te=function(e){R(e.target.value)},ae=function(e){if(e.preventDefault(),"undefined"!=typeof window){var c=g.resultsUrl;window.location.href=A?"".concat(c,"?term=").concat(A):"".concat(c)}};return e.createElement("header",{className:r("header",n&&"theme-".concat(n),!b&&"header--is-closed","header--".concat(f)),id:"header",ref:y},e.createElement("div",{className:"header__closed"},ee,e.createElement("div",{className:"header__top-container"},e.createElement("div",{className:"header__logo-wrapper"},e.createElement(uc,{activeCampus:f,imageMode:"light",classNames:"header__logo-link"},v?e.createElement("h1",{className:"sr-only"},"uk"===f?"University of Birmingham":"University of Birmingham Dubai"):e.createElement("span",{className:"sr-only"},"uk"===f?"University of Birmingham":"University of Birmingham Dubai"))),e.createElement("div",{className:"header__right-wrapper"},e.createElement("div",{className:"header__search-button"},e.createElement(u,{theme:n,label:"Search",onClick:function(){D(!0),j()},hollow:!0})),e.createElement("div",{className:"header__menu-button"},e.createElement("span",null,"Menu"),e.createElement(ye,{theme:"uobmain",icon:"hamburger",onClick:$,title:"Open menu",ariaControls:"header",ref:q,ariaExpanded:b}))))),e.createElement(c.AnimatePresence,null,b&&e.createElement(It,null,e.createElement(c.motion.div,{className:"header__open",initial:{x:"100%"},animate:{x:"0"},exit:{x:"100%"},transition:{type:"tween"},key:"header__open"},ce,e.createElement("div",{className:"header__top-container"},e.createElement("div",{className:"header__logo-wrapper"},e.createElement(uc,{activeCampus:f,imageMode:"dark",classNames:"header__logo-link"},e.createElement("h1",{className:"sr-only"},"uk"===f?"University of Birmingham":"University of Birmingham Dubai"))),e.createElement("div",{className:"header__right-wrapper"},!C&&!O&&e.createElement("div",{className:"header__search-button-menu"},e.createElement(u,{theme:n,inverse:!0,label:"Search",onClick:j,hollow:!0})),e.createElement("div",{className:"header__menu-button"},e.createElement("span",null,"Menu"),e.createElement(ye,{theme:"uobmain",inverse:!0,icon:"cross",onClick:U,title:"Close menu",ariaControls:"header"})))),C&&!O&&e.createElement("div",{className:"header__search-button-mobile"},e.createElement(u,{theme:n,inverse:!0,label:"Search",onClick:j,hollow:!0})),0===k&&!O&&e.createElement(jt,{primaryLinks:i,secondaryLinks:o,menuCards:s,onClickNavLink:function(e){x(1),z(e)},theme:n}),0===k&&O&&e.createElement(Kt,{theme:n,introText:g.introText,placeholder:g.placeholder,title:g.title,handleSearchChange:te,handleSearchSubmit:ae,onClickGoBack:F?void 0:G,backLinkLabel:F?"":"Back to menu",recommendedLinks:g.recommendedLinks,recommendedLinkTitle:g.recommendedLinkTitle}),1===k&&J&&!O&&e.createElement(Ut,{headingLink:J,onClickNavLink:function(e){x(2),V(e)},theme:n,onClickGoBack:G,backLinkLabel:"Back to menu"}),1===k&&J&&O&&e.createElement(Kt,{theme:n,introText:g.introText,placeholder:g.placeholder,title:g.title,handleSearchChange:te,handleSearchSubmit:ae,onClickGoBack:K,backLinkLabel:"Back to ".concat(J.label),recommendedLinks:g.recommendedLinks,recommendedLinkTitle:g.recommendedLinkTitle}),2===k&&J&&Q&&!O&&e.createElement(Ut,{headingLink:Q,onClickNavLink:function(){},theme:n,onClickGoBack:K,backLinkLabel:"Back to ".concat(J.label)}),2===k&&J&&Q&&O&&e.createElement(Kt,{theme:n,introText:g.introText,placeholder:g.placeholder,title:g.title,handleSearchChange:te,handleSearchSubmit:ae,onClickGoBack:function(){x(2),W()},backLinkLabel:"Back to ".concat(Q.label),recommendedLinks:g.recommendedLinks,recommendedLinkTitle:g.recommendedLinkTitle}),X))))},exports.Heading=_,exports.Hero=function(c){var t=c.theme,l=c.inverse,n=c.title,i=c.titleTag,o=void 0===i?"h2":i,s=c.description,m=c.image,h=c.links,d=c.courseSearchProps,v=pe("768px"),p=pe("1248px");return e.createElement("div",{className:r("hero",t&&"theme-".concat(t),l&&"theme-".concat(t,"--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(Xt,{isMobile:!0,isTablet:!1,image:m}),e.createElement(ca,{isMobile:!0,isTablet:!1})),e.createElement("div",{className:"hero__container"},e.createElement("div",{className:"hero__content"},e.createElement(o,{className:"hero__title"},n),s&&e.createElement("div",{className:"hero__description"},e.createElement(g,{text:s,theme:t,inverse:l})),h&&h.length>0&&e.createElement("div",{className:"hero__buttons"},h.map(function(c,a){return e.createElement(u,{theme:t,key:a,url:c.url,label:c.title,externalLink:c.externalLink,inverse:!l,hollow:1===a})})),d&&e.createElement(aa,a({theme:t,inverse:l,wrapped:!0},d))),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&&p&&e.createElement("div",{className:"hero__image-wrapper hero__image-wrapper--desktop hero__image-wrapper--polygon"},e.createElement(Xt,{isMobile:!1,isTablet:!0,image:m}),e.createElement(ca,{isMobile:!1,isTablet:!0})),m&&"lines-of-intent"===m.style&&!v&&!p&&e.createElement("div",{className:"hero__image-wrapper hero__image-wrapper--desktop hero__image-wrapper--polygon"},e.createElement(Xt,{isMobile:!1,isTablet:!1,image:m}),e.createElement(ca,{isMobile:!1,isTablet:!1}))))},exports.HeroArticle=function(c){var t=c.theme,l=c.inverse,n=c.title,i=c.titleTag,o=void 0===i?"h2":i,s=c.description,m=c.cardImage,h=c.publishDate,d=c.readTime,u=c.shareButtons,v=c.author,p=Array.isArray(v)?v:[v];return console.info("authors from HeroArticle",p),e.createElement("section",{className:r("hero-article",t&&"theme-".concat(t),l&&"theme-".concat(t,"--inverse"))},e.createElement("div",{className:"hero-article__container"},e.createElement("div",{className:"hero-article__content"},e.createElement(o,{className:"hero-article__title"},n),e.createElement("p",{className:"hero-article__description"},s),e.createElement("div",{className:"hero-article__meta-data"},h&&e.createElement("span",{className:"hero-article__publish-date"},h),h&&d&&e.createElement("span",{className:"hero-article__separator"},"•"),d&&e.createElement("span",{className:"hero-article__read-time"},d),v&&e.createElement(e.Fragment,null,e.createElement("span",{className:"hero-article__separator"},"•"),e.createElement("span",{className:"hero-article__author"},"by ",e.createElement(na,{items:p})))),e.createElement("div",{className:"hero-article__sharing-buttons"},e.createElement(la,{theme:t,label:u.label,icons:u.icons,inverse:l})))),m&&e.createElement("div",{className:"hero-article__image-wrapper"},e.createElement(Pe,a({},m,{inverse:l}))))},exports.HeroCarousel=function(t){var a=t.theme,l=t.cards,n=l.length>1,i=e.useState(0),o=i[0],s=i[1],m=l[o],h=e.useRef(null),d=pe("768px"),u=pe("1248px"),v="";switch(o){case 0:v="first";break;case 1:v="second";break;case 2:v="third"}var p=n?e.createElement(Ae,{theme:a,totalNumber:l.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===l.length-1,showNumbers:!0}):e.createElement(e.Fragment,null);return e.createElement("div",{className:r("hero-carousel",a&&"theme-".concat(a)),id:"hero-carousel"},e.createElement("div",{className:"hero-carousel__top"},e.createElement("div",{className:"hero-carousel__content"},d&&e.createElement("div",{className:"hero-carousel__image-container hero-carousel__image-container--mobile"},e.createElement(Ca,{isMobile:!0,isTablet:!1,activeVariant:v,imageSrc:m.imageSrc,imageAlt:m.imageAlt}),e.createElement(Ma,{isMobile:!0,isTablet:!1,activeVariant:v})),e.createElement("div",{className:"hero-carousel__cards"},e.createElement(c.motion.section,{className:"hero-carousel__active-card",key:o,initial:{opacity:0},animate:{opacity:1}},e.createElement(Na,{category:m.category,title:m.title,description:m.description,linkUrl:m.linkUrl,linkLabel:m.linkLabel,theme:a,ref:h})),d&&n&&l.map(function(c,t){return e.createElement("section",{className:"hero-carousel__invisible-card hero-carousel__invisible-card--mobile",key:t,"aria-hidden":!0},e.createElement(Na,{category:c.category,title:c.title,description:c.description,linkUrl:c.linkUrl,linkLabel:c.linkLabel,theme:a}))}),e.createElement("div",{className:"hero-carousel__nav hero-carousel__nav--desktop"},p)),e.createElement("div",{className:"hero-carousel__image-container hero-carousel__image-container--desktop"},e.createElement(Ca,{isMobile:!1,isTablet:u,activeVariant:v,imageSrc:m.imageSrc,imageAlt:m.imageAlt}),e.createElement(Ma,{isMobile:!1,isTablet:u,activeVariant:v}))),!d&&n&&l.map(function(c,t){return e.createElement("div",{className:"hero-carousel__invisible-card hero-carousel__invisible-card--desktop",key:t,"aria-hidden":!0},e.createElement("section",null,e.createElement(Na,{category:c.category,title:c.title,description:c.description,linkUrl:c.linkUrl,linkLabel:c.linkLabel,theme:a})))})),d&&e.createElement("div",{className:"hero-carousel__nav hero-carousel__nav--mobile"},p))},exports.HeroCourses=function(c){var t,l=c.theme,n=c.title,i=c.titleTag,o=void 0===i?"h2":i,s=c.awardShort,m=c.links,h=c.ranking,d=c.award,v=c.campus,p=c.ucas,g=c.duration,E=c.entryRequirements,_=c.startDate,b=c.yearOfEntry,w=c.fees,q=c.deliveryFormat,y=c.locationDetails,M=c.modalCTA;return e.createElement("section",{className:r("hero-courses",l&&"theme-".concat(l)),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"},n&&n.length>0&&s&&s.length>0?n+" ":n,e.createElement("span",{className:"hero-courses__title-award"},s))),y&&e.createElement("div",{className:"hero-courses__location-wrapper"},e.createElement(ma,a({},y,{inverse:!1}))),e.createElement("ul",{className:(t="hero-courses__grid--four",h&&(v||q||p)?t="hero-courses__grid--six":(h&&!v&&!q&&!p||!h&&(v||q||p))&&(t="hero-courses__grid--five"),"hero-courses__grid "+t)},h&&e.createElement("li",{className:"hero-courses__column hero-courses__column--ranking"},e.createElement(sa,a({},h))),(p||v||q)&&e.createElement("li",{className:"hero-courses__column hero-courses__column--split hero-courses__column--award"},p&&e.createElement(ia,a({},p)),v&&e.createElement(ia,a({},v)),q&&e.createElement(ia,a({},q))),g&&b?e.createElement("li",{className:"hero-courses__column hero-courses__column--split hero-courses__column--duration"},e.createElement(oa,a({},b)),e.createElement(ia,a({},g))):g&&_?e.createElement("li",{className:"hero-courses__column hero-courses__column--split hero-courses__column--duration"},e.createElement(ia,a({},_)),e.createElement(ia,a({},g))):e.createElement("li",{className:"hero-courses__column hero-courses__column--duration"},e.createElement(ia,a({},g))),d&&e.createElement("li",{className:"hero-courses__column hero-courses__column--delivery-format"},e.createElement(ia,a({},d))),e.createElement("li",{className:"hero-courses__column hero-courses__column--entry-requirements"},e.createElement(ia,a({},E))),e.createElement("li",{className:"hero-courses__column hero-courses__column--fees"},e.createElement(ia,a({},w)))),e.createElement("div",{className:"hero-courses__button-wrapper"},e.createElement("ul",{className:"hero-courses__buttons"},m&&m.map(function(c,t){return c.externalLink?e.createElement("li",{className:"hero-courses__button",key:t},e.createElement(Ne,{theme:l,label:c.label,icon:"external",hollow:t%2!=0,iconPosition:"right",url:c.url,inverse:!0,onClick:c.onClick})):e.createElement("li",{className:"hero-courses__button",key:t},e.createElement(u,{theme:l,label:c.label,hollow:t%2!=0,url:c.url,inverse:!0,onClick:c.onClick}))})),M&&e.createElement(ra,{theme:l,inverse:!M.inverse,hollow:!0,buttonLabel:M.buttonLabel,modalChildren:M.modalChildren})))))},exports.HeroProfile=function(c){var t=c.theme,l=c.studentName,n=c.studentStatus,i=c.courseName,o=c.courseDetails,s=c.studyLevel,m=c.titleTag,h=void 0===m?"h2":m,d=c.homeCountry,u=c.studentIntro,v=c.image,p=c.inverse;return e.createElement("div",{className:r("heroProfile",t&&"theme-".concat(t),p&&"theme-".concat(t,"--inverse")),id:"hero"},e.createElement("div",{className:"heroProfile__container"},e.createElement("div",{className:"heroProfile__details"},l&&e.createElement(h,{className:"heroProfile__title"},l),n&&e.createElement("p",{className:"heroProfile__status"},n),i&&e.createElement("p",{className:"heroProfile__courseName"},i),(s||d||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(Se,{icon:"mortar-board",theme:t,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(c,a){return e.createElement(g,{theme:t,key:a,text:c,inverse:p})}))))),s&&e.createElement("li",null,e.createElement("div",{className:"heroProfile__iconContainer"},e.createElement(Se,{icon:"scroll",theme:t,backgroundColor:"pale"}),e.createElement("div",{className:"heroProfile__iconText"},e.createElement("span",null,"Study level:"),e.createElement("span",null,s)))),d&&e.createElement("li",null,e.createElement("div",{className:"heroProfile__iconContainer"},e.createElement(Se,{icon:"flag",theme:t,backgroundColor:"pale"}),e.createElement("div",{className:"heroProfile__iconText"},e.createElement("span",null,"Home country:"),e.createElement("span",null,d))))),u&&e.createElement(g,{theme:t,text:u,inverse:p})),e.createElement("div",{className:"heroProfile__image-wrapper"},v&&e.createElement(w,a({},v,{altText:null==v?void 0:v.alt,fetchPriority:v.fetchPriority})))))},exports.ImageBlock=function(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.inverse,i=c.title,o=c.description,s=c.linkProps,m=c.fullWidth,h=c.makeHeadingFullWidth,d=c.images,u=c.htmlTag;if(!d||0===d.length)return null;var v=d.length>2?Array.from(d.slice(0,2)):Array.from(d);return e.createElement("div",{className:r("image-block",l&&"theme-".concat(l),n&&"theme-".concat(l,"--inverse"),m&&"image-block--full-width")},(i||o||s)&&e.createElement(_,{theme:l,inverse:n,title:i,description:o,linkProps:s,fullWidth:!!h,htmlTag:u}),e.createElement("div",{className:"image-block__container"},v&&v.map(function(c,t){var i=r({"image-block__image-container-single-image-full-width-true":1===d.length&&m,"image-block__image-container-single-image-full-width-false":1===d.length&&!m,"image-block__image-container-first-image-full-width-true":d.length>1&&0===t&&m,"image-block__image-container-first-image-full-width-false":d.length>1&&0===t&&!m,"image-block__image-container-second-image-full-width-true":d.length>1&&1===t&&m,"image-block__image-container-second-image-full-width-false":d.length>1&&1===t&&!m});return e.createElement("div",{key:t,className:i},e.createElement(Pe,a({},c,{theme:l,inverse:n})))})))},exports.ImageCarousel=function(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.inverse,n=void 0!==l&&l,i=c.title,o=c.description,s=c.linkProps,m=c.fullWidth,h=void 0!==m&&m,d=c.widerImage,u=c.images,v=c.htmlTag;return e.createElement("section",{className:r("image-carousel",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"),h&&"image-carousel--full-width",d&&"image-carousel--wider-image")},(i||o)&&e.createElement(_,{theme:a,htmlTag:v,inverse:n,title:i,description:o,linkProps:s}),e.createElement("div",{className:"image-carousel__grid"},e.createElement(Re,{theme:a,inverse:n,type:"image",cards:u})))},exports.InPageNavigation=function(t){var l,n,i=t.theme,o=void 0===i?"uobmain":i,s=t.inverse,m=void 0!==s&&s,h=t.links,d=t.expandableHeader,u=void 0===d?"Page contents":d,v=e.useState(!1),p=v[0],f=v[1],g=e.useState("not-docked"),E=g[0],_=g[1],b=e.useState(null),w=b[0],q=b[1],y=e.useRef(null),M=e.useRef(null),C=e.useRef(null),N=e.useRef(null),k=e.useRef(null),x=function(){f(!1)};return l=k,n=function(){return x()},e.useEffect(function(){var e=function(e){!l.current||e.target instanceof HTMLElement&&l.current.contains(e.target)||n()};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),function(){document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[l,n]),e.useEffect(function(){var e;C.current=new IntersectionObserver(function(c){var t;e=null===(t=c.find(function(e){return e.isIntersecting}))||void 0===t?void 0:t.target,_(e?"docked":"not-docked")},{rootMargin:"0px 0px -100%"}),M.current=new IntersectionObserver(function(c){var t,a=null===(t=c.find(function(e){return e.isIntersecting}))||void 0===t?void 0:t.target;a?_("docked-at-bottom"):!a&&e&&_("docked")}),y.current=new IntersectionObserver(function(e){var c,t=null===(c=e.find(function(e){return e.isIntersecting}))||void 0===c?void 0:c.target;t&&q(t.id)},{rootMargin:"0px 0px -".concat(.7*window.innerHeight,"px 0px")});var c=document.querySelectorAll(".anchor-target");c.forEach(function(e){y&&y.current&&y.current.observe(e)});var t=document.querySelectorAll("#footer");t.forEach(function(e){M&&M.current&&M.current.observe(e)});var a=document.querySelectorAll("#sidebar");return a.forEach(function(e){C&&C.current&&C.current.observe(e)}),function(){c.forEach(function(e){y&&y.current&&y.current.unobserve(e)}),a.forEach(function(e){C&&C.current&&C.current.unobserve(e)}),t.forEach(function(e){M&&M.current&&M.current.unobserve(e)})}},[]),h.links.map(function(e){return e.url.substring(1)===w?e.active=!0:e.active=!1}),e.createElement("div",{className:r("in-page-navigation",o&&"theme-".concat(o),m&&"theme-".concat(o,"--inverse"))},e.createElement("div",{className:r("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"},u),e.createElement(ye,{theme:"uobmain",icon:"menu",onClick:function(){f(!0)},title:"Open menu",ariaControls:"in-page-navigation",ref:N,ariaExpanded:p})))))),p&&e.createElement("div",{className:"in-page-navigation__overlay"}),e.createElement(c.AnimatePresence,null,p&&e.createElement(c.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:k},e.createElement(Me,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:x,title:"Close menu",ariaControls:"in-page-navigation"})))),e.createElement(ka,a({},h,{theme:"uobmain"})))))),e.createElement("div",{className:r("in-page-navigation--desktop",E)},e.createElement(ka,a({},h,{theme:o}))))},exports.IntroText=function(c){var t=c.text,a=c.theme,l=void 0===a?"uobmain":a,n=c.inverse,i=c.fullWidth,o=c.removeBottomPadding,s=void 0!==o&&o,m=c.removeTopPadding,h=void 0!==m&&m;return e.createElement("div",{className:r("intro-text",l&&"theme-".concat(l),n&&"theme-".concat(l,"--inverse"),i&&"intro-text--full-width",s&&"intro-text--no-bottom-padding",h&&"intro-text--no-top-padding")},e.createElement("div",{className:"intro-text__container"},e.createElement("p",{className:"intro-text__text"},t)))},exports.LeadNewsArticles=function(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.featuredArticle,i=c.otherLeadArticles,o=c.mostReadNews;return e.createElement("section",{className:r("lead-news-articles",l&&"theme-".concat(l))},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(Oe,a({},n,{isPrimary:!0}))),e.createElement("ul",{className:"lead-news-articles__secondary-card-container"},i.map(function(c,t){return e.createElement("li",{className:"lead-news-articles__secondary-card",key:t},e.createElement(Oe,{theme:l,image:c.image,title:c.title,href:c.href,titleTag:c.titleTag,publishDate:c.publishDate}))}))),e.createElement("div",{className:"lead-news-articles__side-container"},e.createElement(xa,a({},o)))))},exports.ListTable=function(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.listItems;return e.createElement("div",{className:r("list-table",a&&"theme-".concat(a))},(null==l?void 0:l.length)?e.createElement("ul",{className:"list-table__list"},null==l?void 0:l.map(function(c,t){return e.createElement("li",{key:c+t,className:"list-table__list-item"},e.createElement(g,{inverse:!0,theme:"uobmain",text:c}))})):null)},exports.ListingFilterWrapper=function(t){var a=t.theme,l=t.showFilterButtonLabel,n=t.numSelected,i=t.filterElement,o=e.useState(!1),s=o[0],h=o[1],d=e.useRef(null),u=function(e){"Escape"===e.key&&s&&h(!1)};return e.useEffect(function(){return document.addEventListener("keydown",u),function(){document.removeEventListener("keydown",u)}}),e.useEffect(function(){var e,c;s?null===(e=d.current)||void 0===e||e.showModal():null===(c=d.current)||void 0===c||c.close()},[s]),e.createElement(e.Fragment,null,e.createElement("div",{className:r("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(){h(!0),document.body.classList.add("lock-scroll")}},e.createElement(m,{theme:"uobmain",icon:"settings"}),l,n&&e.createElement("span",{className:"listing-filter-wrapper__num-selected"},n,e.createElement("span",{className:"sr-only"},n>1?"filters":"filter"," selected"))))),e.createElement(Me,null,e.createElement(c.motion.dialog,{className:r("listing-filter-wrapper__dialog","theme-".concat(a)),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},ref:d},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(){h(!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(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.showCategory,i=void 0!==n&&n,o=c.cards,s=c.headingInfo;return e.createElement(e.Fragment,null,s&&e.createElement(_,a({},s,{theme:l,fullWidth:!0})),e.createElement("ul",{className:r("listing-results",l&&"theme-".concat(l))},o.map(function(c,t){return e.createElement("li",{className:"listing-results__card",key:t},e.createElement(Oa,a({},c,{showCategory:i,theme:l})))})))},exports.ListingResultsCount=function(c){var t=c.count,a=c.theme,l=void 0===a?"uobmain":a;return e.createElement("p",{className:r("listing-results-count",l&&"theme-".concat(l))},e.createElement("span",{className:"listing-results-count__number"},t.toLocaleString())," results were found based on your search term")},exports.LocationSection=function(c){var t=c.theme,l=c.embedChildren,n=c.googleMapLink,i=c.address,o=c.services,s=c.link,m=c.titleTag,h=void 0===m?"h2":m;return e.createElement("section",{className:r("location-section",t&&"theme-".concat(t),(!o||o.length<1)&&"location-section--no-services")},e.createElement("div",{className:"location-section__container"},e.createElement(f,{htmlTag:h,classNames:r("location-section__title","h3"===h&&"location-section__title--h3")},"Location"),e.createElement("div",{className:"location-section__grid-wrapper"},e.createElement("div",{className:"location-section__embed"},e.createElement($e,null,l)),e.createElement("div",{className:"location-section__address-wrapper"},e.createElement("div",{className:"location-section__address"},e.createElement(fc,{theme:t,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(v,a({},s,{inverse:!0}))),n?e.createElement("div",{className:"location-section__button"},e.createElement(u,{label:"View on Google Maps",theme:t,url:n})):null),(null==o?void 0:o.length)?e.createElement("div",{className:"location-section__services"},null==o?void 0:o.map(function(c,l){return e.createElement(fc,a({},c,{theme:t,key:l}))})):null)))},exports.LocationSelector=ma,exports.LogoWall=function(c){var t,l,n=c.theme,i=void 0===n?"uobmain":n,o=c.inverse,s=c.logos,m=null!==(l=null==s?void 0:s.length)&&void 0!==l?l:0,h=s&&s.length%2!=0;return e.createElement("div",{className:r("logo-wall",i&&"theme-".concat(i),o&&"theme-".concat(i,"--inverse"))},e.createElement("div",null,e.createElement("ul",{className:r("logo-wall__container",h&&"logo-wall__container--odd"),style:(t={},t["--logo-wall-cols"]=String(m),t)},s&&s.map(function(c,t){var l;return e.createElement("li",{key:"li-".concat(t)},e.createElement(Pe,a({key:"".concat((null===(l=c.image)||void 0===l?void 0:l.title)||"imageTitle","-").concat(t),theme:i,inverse:o},c)))}))))},exports.MainWrapper=function(c){var t=c.children;return e.createElement("main",{id:"main"},t)},exports.ModalCTA=function(c){var t=c.theme,a=c.heading,l=c.inverse,n=c.description,i=c.buttonLabel,o=c.buttonModifier,s=c.modalChildren,m=c.htmlTag,h=void 0===m?"h3":m,d=e.useState(!1),v=d[0],p=d[1],g=function(){p(!1),document.body.classList.remove("lock-scroll")};return e.createElement("div",{className:r("modal-cta",t&&"theme-".concat(t),l&&"theme-".concat(t,"--inverse"))},e.createElement(f,{htmlTag:h,classNames:"modal-cta__heading"},a),n&&e.createElement("p",{className:"modal-cta__description"},n),e.createElement("div",{className:r("modal-cta__button",o&&"theme-".concat(t,"--buttonModifier"))},e.createElement(u,{inverse:!l,label:i,onClick:function(){v?g():(p(!0),document.body.classList.add("lock-scroll"))},theme:t,buttonModifier:o})),v&&e.createElement(Ce,{centred:!0,theme:t,closeModal:g,isOpen:v},e.createElement($e,{className:"modal-cta__embed-wrapper"},s)))},exports.ModuleCardGroup=function(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.inverse,i=void 0===n||n,o=c.cards,s=Array.isArray(o)?o:[o];return e.createElement("div",{className:r("module-card-group",l&&"theme-".concat(l),i&&"theme-".concat(l,"--inverse"))},e.createElement("div",{className:"module-card-group__container"},e.createElement("div",{className:"module-card-group__grid"},s.map(function(c,t){return e.createElement(d,a({key:t},c,{theme:l}))}))))},exports.NewsArticlesPromoBlock=function(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.heading,i=c.cards,o=c.cardType,s=void 0===o?"featured-news":o;return e.createElement("section",{className:r("news-articles-promo-block",l&&"theme-".concat(l),s&&"news-articles-promo-block--".concat(s))},e.createElement("div",{className:"news-articles-promo-block__heading-container"},n&&e.createElement("h2",{className:"news-articles-promo-block__heading"},n)),e.createElement("div",{className:"news-articles-promo-block__cards news-articles-promo-block__cards--mobile"},"featured-news"===s&&e.createElement(Re,{theme:l,type:"featured-news",cards:i,inverse:!0,cardTitleTag:"h3"}),"promo-video"===s&&e.createElement(Re,{theme:l,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(c,t){return e.createElement("li",{key:t},"featured-news"===s&&e.createElement(Oe,a({},c,{inverse:!0,titleTag:"h3"})),"promo-video"===s&&e.createElement(ze,a({},c,{inverse:!1,titleTag:"h3"})))})))},exports.Pagination=function(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.numOfPages,n=c.onClick,i=c.currentPage,o=!pe("1248px");return l<=1?e.createElement(e.Fragment,null):e.createElement("div",{className:r("pagination",a&&"theme-".concat(a))},e.createElement("ul",{className:"pagination__container"},e.createElement("li",{className:"pagination__prev",key:"prev"},o?e.createElement(u,{theme:a,label:"Previous",onClick:function(){return n(i-1)},hollow:!0,disabled:i<1}):e.createElement(ye,{theme:a,icon:"arrow-left",title:"Previous",onClick:function(){return n(i-1)},disabled:i<1,inverse:!0})),e.createElement(Za,{currentPage:i,onClick:n,theme:a,numOfPages:l}),e.createElement("li",{className:"pagination__next",key:"next"},o?e.createElement(u,{theme:a,label:"Next",onClick:function(){return n(i+1)},hollow:!0,disabled:i+1===l}):e.createElement(ye,{theme:a,icon:"arrow-right",title:"Next",onClick:function(){return n(i+1)},disabled:i+1===l,inverse:!0}))))},exports.PromoBlock=function(c){var t,l=c.theme,n=c.inverse,i=c.type,o=c.title,m=c.description,h=c.link,d=c.cards,u=c.imageOrientation,p=void 0===u?"left":u,g=c.titleTag,E=void 0===g?"h2":g,_=c.cardTitleTag,b=void 0===_?"h3":_,w=c.cardCopyIsRichText,q=void 0!==w&&w,y=c.fullWidth,M=void 0!==y&&y,C=c.fullWidthTitle,N=void 0!==C&&C,k=c.showFilters,x=void 0!==k&&k,T=c.firstFilterSelect,L=c.secondFilterSelect,z=!1;pe("768px")?d.length>1&&(z=!0):(M&&d.length>2||d.length>3)&&(z=!0);var S=r(((t={})["promo-block__grid"]=!0,t["promo-block__grid--single"]=1===d.length,t["promo-block__grid--two-cards"]=2===d.length,t["promo-block__grid--three-cards"]=3===d.length,t["promo-block__grid--four-plus-cards"]=d.length>3,t));return e.createElement("div",{className:r("promo-block","promo-block--".concat(i),l&&"theme-".concat(l),n&&"theme-".concat(l,"--inverse"),M&&"promo-block--full-width")},e.createElement("div",{className:"promo-block__container"},e.createElement("div",{className:r("promo-block__top",N&&"promo-block__top--full-width")},o&&e.createElement(f,{htmlTag:E,classNames:r("promo-block__title","h3"===E&&"promo-block__title--h3")},o),m&&e.createElement(s,{theme:"uobmain",inverse:n,text:m}),h&&e.createElement("div",{className:"promo-block__text-link"},e.createElement(v,{theme:l,inverse:n,url:h.url,title:h.title,externalLink:h.externalLink}))),x&&e.createElement("div",{className:"promo-block__filters"},e.createElement("div",{className:"promo-block__filter-wrapper"},T&&e.createElement(ta,a({},T))),e.createElement("div",{className:"promo-block__filter-wrapper"},L&&e.createElement(ta,a({},L)))),e.createElement("div",{className:"promo-block__content"},e.createElement("div",{className:"promo-block__cards"},!z&&e.createElement("ul",{className:S},d.map(function(c,t){return e.createElement("li",{className:"promo-block__card-item",key:t},function(c){var t=a(a({},c),{cardCopyIsRichText:q});switch(i){case"promo":return e.createElement(Te,a({},t));case"promo-signpost":return e.createElement(Le,a({},c));case"promo-video":return e.createElement(ze,a({},c));case"promo-profile":return e.createElement(Ie,a({},c));default:return e.createElement(e.Fragment,null)}}(a(a({},c),{inverse:n,isSingle:1===d.length,imageOrientation:p,titleTag:b})))})),z&&e.createElement(Re,{theme:l,inverse:n,type:i,cards:d,cardTitleTag:b,cardCopyIsRichText:q})))))},exports.PromoBlockGrid=function(c){var t=c.theme,l=c.inverse,n=c.type,i=c.title,o=c.description,m=c.link,h=c.cards,d=c.imageOrientation,u=void 0===d?"left":d,p=c.fullWidth;return e.createElement("div",{className:r("promo-block-grid","promo-block-grid--".concat(n),t&&"theme-".concat(t),l&&"theme-".concat(t,"--inverse"),p&&"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:l,text:o}),m&&e.createElement("div",{className:"promo-block-grid__text-link"},e.createElement(v,{theme:"uobmain",inverse:l,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"},h.length>0&&e.createElement("ul",{className:"promo-block-grid__grid"},h.map(function(c,t){return e.createElement("li",{className:"promo-block-grid__card-item",key:t},function(c){switch(n){case"promo":return e.createElement(Te,a({},c));case"promo-signpost":return e.createElement(Le,a({},c));case"promo-video":return e.createElement(ze,a({},c));default:return e.createElement(e.Fragment,null)}}(a(a({},c),{inverse:l,isSingle:1===h.length,imageOrientation:u,titleTag:i?"h3":"h2"})))}))))))},exports.QuoteBlock=function(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.inverse,n=c.title,i=c.description,o=c.cite,s=c.role,h=c.quote,d=c.quoteeProfileImage,u=c.quoteeProfileImageAltText,p=c.cta,f=c.fullWidth,g=void 0!==f&&f,E=c.htmlTag;return e.createElement("div",{className:r("quote-block","theme-".concat(a),l&&"theme-".concat(a,"--inverse"),g&&"quote-block--full-width")},(n||i)&&e.createElement(_,{theme:a,inverse:l,htmlTag:E,title:n,description:i}),e.createElement("blockquote",{className:r("quote-block__container",!d&&"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"},h),d&&e.createElement("div",{className:"quote-block__quotee-image"},e.createElement(w,{src:{default:d},altText:u})),(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})),p&&e.createElement("div",{className:"quote-block__optional-link"},e.createElement(v,{inverse:l,onKeyDown:function(){},theme:a,title:p.title,url:p.url}))))},exports.RelatedCourses=function(c){var t,l=c.theme,n=void 0===l?"uobmain":l,i=c.inverse,o=void 0===i||i,s=c.heading,m=c.description,h=c.linkProps,d=c.headingStyle,u=c.fullWidth,p=c.cards,f=pe("768px"),g=f&&p.length>1||!f&&u&&p.length>2||!f&&!u&&p.length>3,E=r(((t={})["related-courses__grid"]=!0,t["related-courses__grid--single"]=1===p.length,t["related-courses__grid--two-cards"]=2===p.length,t["related-courses__grid--three-cards"]=3===p.length,t["related-courses__grid--four-plus-cards"]=p.length>3,t));return e.createElement("section",{className:r("related-courses",n&&"theme-".concat(n),o&&"theme-".concat(n,"--inverse"),u&&"related-courses--full-width")},e.createElement("div",{className:"related-courses__container"},e.createElement("h2",{className:r("related-courses__heading",d&&"related-courses__heading--".concat(d))},s),m&&e.createElement("div",{className:"related-courses__description"},m),h&&h.url&&h.title&&e.createElement("div",{className:"related-courses__arrow-link-container"},e.createElement(v,{theme:n,inverse:o,title:h.title,url:h.url})),e.createElement("div",{className:"related-courses__cards"},!g&&e.createElement("ul",{className:E},p.map(function(c,t){return e.createElement("li",{className:"related-courses__card-item",key:t},e.createElement(Ve,a({},c)))})),g&&e.createElement(Re,{theme:n,inverse:o,type:"related",cards:p,cardTitleTag:"h3"}))))},exports.ResearchStoryCarousel=function(c){var t,l=c.theme,n=void 0===l?"uobmain":l,i=c.inverse,o=void 0===i||i,s=c.fullWidth,m=void 0!==s&&s,h=c.heading,d=c.description,u=c.cards,v=c.singleLink,p=c.titleTag,f=void 0===p?"h2":p,g=c.cardTitleTag,E=void 0===g?"h3":g,b=pe("768px"),w=b&&u.length>1||!b&&u.length>2,q=r(((t={})["research-story-carousel__grid"]=!0,t["research-story-carousel__grid--single"]=1===u.length,t["research-story-carousel__grid--two-cards"]=2===u.length,t["research-story-carousel__grid--three-plus-cards"]=u.length>3,t));return e.createElement("section",{className:r("research-story-carousel",n&&"theme-".concat(n),o&&"theme-".concat(n,"--inverse"),m&&"research-story-carousel--full-width")},e.createElement("div",{className:"research-story-carousel__container"},(h||d||v)&&e.createElement(_,{theme:n,inverse:!0,htmlTag:f,title:h,description:d,linkProps:v,fullWidth:!0}),e.createElement("div",{className:"research-story-carousel__cards"},!w&&e.createElement("ul",{className:q},u.map(function(c,t){return e.createElement("li",{key:t},e.createElement(Ze,a({},c)))})),w&&e.createElement(Re,{theme:n,inverse:o,type:"research-story",cards:u,cardTitleTag:E}))))},exports.RichText=s,exports.ScholarshipCarousel=function(c){var t,l=c.theme,n=void 0===l?"uobmain":l,i=c.inverse,o=void 0===i||i,s=c.fullWidth,m=void 0!==s&&s,h=c.headingProps,d=c.cards,u=pe("768px"),v=u&&d.length>1||!u&&d.length>2,p=r(((t={})["scholarship-carousel__grid"]=!0,t["scholarship-carousel__grid--single"]=1===d.length,t["scholarship-carousel__grid--two-cards"]=2===d.length,t["scholarship-carousel__grid--three-plus-cards"]=d.length>3,t));return e.createElement("section",{className:r("scholarship-carousel",n&&"theme-".concat(n),o&&"theme-".concat(n,"--inverse"),m&&"scholarship-carousel--full-width")},e.createElement("div",{className:"scholarship-carousel__container"},h&&e.createElement(_,a({},h,{theme:n,inverse:o,fullWidth:m})),e.createElement("div",{className:"scholarship-carousel__cards"},!v&&e.createElement("ul",{className:p},d.map(function(c,t){return e.createElement("li",{className:"related-courses__card-item",key:t},e.createElement(Be,a({},c,{inverse:o})))})),v&&e.createElement(Re,{theme:n,inverse:o,type:"scholarship",cards:d,cardTitleTag:"h3"}))))},exports.ScrollableTable=function(c){var t=c.text,a=c.theme,l=void 0===a?"uobmain":a,n=c.inverse,i=c.fullWidth,o=void 0!==i&&i,s=c.removeBottomPadding,m=void 0!==s&&s,h=c.tableCategory,d=void 0===h?Ya.NotSpecified:h,u=e.useRef(null),v=e.useState(!1),p=v[0],f=v[1],g=e.useState(!0),E=g[0],_=g[1],b=e.useState(!1),w=b[0],q=b[1],y=e.useId(),M=function(){var e=u.current;e&&(f(e.scrollLeft>0),_(e.scrollLeft<e.scrollWidth-e.clientWidth))},C=e.useCallback(function(){var e=u.current;if(e){var c=e.scrollWidth>e.clientWidth;q(c),M()}},[]),N=function(e){var c=u.current;if(c){var t="left"===e?c.scrollLeft-200:c.scrollLeft+200;c.scrollTo({left:t,behavior:"smooth"})}};return e.useEffect(function(){C();var e=u.current;e&&e.addEventListener("scroll",M);var c=function(){return C()};return window.addEventListener("resize",c),function(){e&&e.removeEventListener("scroll",M),window.removeEventListener("resize",c)}},[C]),e.createElement("div",{className:r("scrollable-table",o&&"scrollable-table--full-width",l&&"theme-".concat(l),n&&"theme-".concat(l,"--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:l,icon:"arrow-left",onClick:function(){return N("left")},title:"Scroll left",ariaControls:y,disabled:!p,inverse:n}),e.createElement(ye,{key:"iconButtonRight",theme:l,icon:"arrow-right",onClick:function(){return N("right")},title:"Scroll right",ariaControls:y,disabled:!E,inverse:n})),e.createElement("div",{className:r("scrollable-table__table-wrapper","scrollable-table__".concat(d),n&&"scrollable-table__".concat(d,"--inverse")),ref:u,id:y,tabIndex:0},e.createElement("span",{dangerouslySetInnerHTML:{__html:t}})))))},exports.SearchCourses=aa,exports.SidebarWrapper=function(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.sidebarElement,n=c.children;return e.createElement("div",{id:"sidebar",className:r("sidebar-wrapper",a&&"theme-".concat(a),!l&&"sidebar-wrapper--no-side-element")},e.createElement("div",{className:"sidebar-wrapper__grid-container"},l&&e.createElement("div",{className:"sidebar-wrapper__sidebar"},l),e.createElement("div",{className:"sidebar-wrapper__children"},n)))},exports.SignPost=function(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.inverse,n=void 0!==l&&l,i=c.items,o=c.fullWidth,s=void 0!==o&&o,m=c.htmlTag,h=void 0===m?"h2":m;return e.createElement("div",{className:r("signpost",s&&"signpost--full-width",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"))},e.createElement("div",{className:"signpost__container"},e.createElement("div",{className:"signpost__grid"},i.map(function(c){return e.createElement("div",{className:"signpost__item",key:c.title},c.tag&&e.createElement("p",{className:"signpost__tag"},c.tag),e.createElement(f,{htmlTag:h,classNames:"signpost__title"},c.title),e.createElement(v,{url:c.linkUrl,title:c.linkLabel,theme:a,inverse:n,externalLink:c.external}))}))))},exports.SingleButton=function(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.inverse,i=void 0!==n&&n,o=c.includeIcon,s=c.link,m=c.fullWidth;return e.createElement("div",{className:r("single-button",l&&"theme-".concat(l),i&&"theme-".concat(l,"--inverse"),m&&"single-button--full-width")},e.createElement("div",{className:"single-button__container"},o?e.createElement(Ne,a({},s,{inverse:!i})):e.createElement(u,a({},s,{inverse:!i}))))},exports.SkipToContent=function(c){var t=c.theme,a=void 0===t?"uobmain":t;return e.createElement("div",{className:r("skip-to-content",a&&"theme-".concat(a))},e.createElement("a",{className:"skip-to-content__link",href:"#main"},"Skip to main content"))},exports.StaffListingCarousel=function(c){var t,l=c.theme,n=void 0===l?"uobmain":l,i=c.inverse,o=void 0===i||i,s=c.fullWidth,m=void 0!==s&&s,h=c.heading,d=c.headingStyle,u=void 0===d?null:d,p=c.cards,g=c.singleLink,E=c.titleTag,_=void 0===E?"h2":E,b=c.useCarousel,w=void 0===b||b,q=c.cardType,y=void 0===q?"staff":q,M=pe("768px"),C=w&&M&&p.length>1||w&&!M&&p.length>2,N="staff"===y,k=r(((t={})["staff-listing-carousel__grid"]=!0,t["staff-listing-carousel__grid--single"]=1===p.length,t["staff-listing-carousel__grid--two-cards"]=2===p.length,t["staff-listing-carousel__grid--three-plus-cards"]=p.length>3,t));return e.createElement("section",{className:r("staff-listing-carousel",n&&"theme-".concat(n),o&&"theme-".concat(n,"--inverse"),m&&"staff-listing-carousel--full-width",!w&&"staff-listing-carousel--no-carousel")},e.createElement("div",{className:"staff-listing-carousel__container"},h&&e.createElement(f,{htmlTag:_,classNames:r("staff-listing-carousel__heading","staff-listing-carousel__heading--".concat(_),u&&"staff-listing-carousel__heading--".concat(u))},h),e.createElement("div",{className:"staff-listing-carousel__cards"},!C&&e.createElement("ul",{className:k},p.map(function(c,t){return e.createElement("li",{className:"related-courses__card-item",key:t},N?e.createElement(He,a({},c,{theme:n,inverse:o,isSingle:1===p.length})):e.createElement(Ie,a({},c,{theme:n,inverse:o})))})),C&&e.createElement(Re,{theme:n,inverse:o,type:y,cards:p,cardTitleTag:"h3"})),1===p.length&&g&&e.createElement(v,{theme:n,url:g.url,title:g.title,inverse:!0})))},exports.StandardListingFilter=function(c){var t=c.theme,l=c.heading,n=c.listingGroups,i=c.onClearFilters,o=c.onViewResults;return e.createElement("div",{className:r("standard-listing-filter",t&&"theme-".concat(t))},e.createElement("p",{className:"standard-listing-filter__heading"},l),e.createElement("ul",{className:"standard-listing-filter__list"},n.map(function(c){var l;return"date"===c.type?e.createElement("li",{className:"standard-listing-filter__item",key:c.name},e.createElement(Ka,a({},c,{theme:t,defaultValue:null!==(l=c.defaultValue)&&void 0!==l?l:"",onChange:c.onChange}))):"radio"===c.type?e.createElement("li",{className:"standard-listing-filter__item",key:c.name},e.createElement(bc,{type:"radio",heading:c.heading,theme:t,showMoreText:Ja(c.heading)||"",inputs:c.inputs.map(function(e){return{name:c.name,value:e.value,label:e.label,id:e.id,defaultChecked:!!c.defaultValue&&c.defaultValue===e.value,onChange:c.onChange}})})):"checkbox"===c.type?e.createElement("li",{className:"standard-listing-filter__item",key:c.name},e.createElement(bc,{type:"checkbox",heading:c.heading,theme:t,showMoreText:Ja(c.heading)||"",inputs:c.inputs.map(function(e){return{name:c.name,value:e.value,label:e.label,id:e.id,defaultChecked:!!c.defaultValues&&c.defaultValues.includes(e.value),onChange:c.onChange}})})):"select"===c.type?e.createElement("li",{className:"standard-listing-filter__item",key:c.name},e.createElement(Ga,{heading:c.heading,selectContent:c.selectContent,theme:t})):void 0})),o&&e.createElement("div",{className:"standard-listing-filter__results-button"},e.createElement(u,{label:"View selected results",onClick:o,theme:t})),e.createElement("div",{className:"standard-listing-filter__clear-button"},e.createElement(u,{label:"Clear filters",onClick:i,theme:t,hollow:!0})))},exports.TabsBlock=function(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.inverse,i=void 0!==n&&n,o=c.title,m=c.description,h=c.tabItems,d=c.fullWidth,f=c.htmlTag,g=void 0===f?"h2":f,E=c.removeBottomPadding,w=void 0!==E&&E,q=c.name,y=c.enableHashNavigation,M=void 0!==y&&y,C=e.useRef(null),N=e.useCallback(function(){return h.findIndex(function(e){return Ba(null!=q?q:"",e.title)===window.location.hash.substring(1)})},[h,q]),k=e.useState(0),x=k[0],T=k[1],L=e.useState(-1),z=L[0],S=L[1],H=pe("1248px");function V(e){if(M){var c=window.location.href.replace(window.location.hash,""),t=Ba(null!=q?q:"",h[e].title);history.pushState(null,"null",c.concat("#",t))}}function P(e,c){e.preventDefault(),T(c),V(c)}e.useEffect(function(){if(0!==window.location.hash.length){var e=N();e<0||(T(e),S(e))}},[N,T]);var O=function(e){switch(e.key){case"ArrowLeft":case"ArrowUp":case"Left":case"Up":if(0===x)return;T(x-1),S(x-1),V(x-1);break;case"ArrowRight":case"ArrowDown":case"Right":case"Down":if(x>=h.length-1)return;T(x+1),S(x+1),V(x+1);break;case"Home":T(0),S(0),V(0);break;case"End":T(h.length-1),S(h.length-1),V(h.length-1)}};function Z(){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 c=N();c<0||(T(c),S(c))}};return window.addEventListener("hashchange",e),function(){window.removeEventListener("hashchange",e)}},[x,N]),e.createElement(e.Fragment,null,H&&e.createElement(b,{heading:{title:o,description:m,fullWidth:d,htmlTag:g},theme:l,inverse:i,fullWidth:d,accordionItems:h.map(function(e,c){return{key:e.title||c,title:e.title,text:e.content,titleTag:e.titleTag?e.titleTag:Z(),primaryButton:e.primaryButton,secondaryButton:e.secondaryButton,link:e.link}})}),e.createElement("div",{className:r("tabs",l&&"theme-".concat(l),i&&"theme-".concat(l,"--inverse"),d&&"tabs--full-width",w&&"tabs--no-bottom-padding"),id:"tabs",ref:C},!H&&e.createElement(e.Fragment,null,e.createElement(_,{theme:l,inverse:i,htmlTag:g,title:o,description:m,fullWidth:d}),e.createElement("div",{className:"tabs__container"},e.createElement("span",null,e.createElement(Fa,{theme:l,inverse:i},h.map(function(c,t){return e.createElement(Ia,{key:t,id:t,theme:l,inverse:i,tabItem:c,tabListTopRef:C,isActive:t===x,hasFocus:t===z,enableHashNavigation:M,tabsBlockName:q,handleClick:P,handleKeyboardNavigation:O})})),h.map(function(c,t){return e.createElement(Da,{key:t,isActive:t===x,inverse:i,theme:l,title:c.title,tabsBlockName:q,htmlTag:c.titleTag?c.titleTag:Z()},c.content&&e.createElement(s,{theme:l,inverse:i,text:c.content}),c.accordionItems&&c.accordionItems.map(function(c){return e.createElement(p,a({key:c.key},c,{inverse:i}))}),(c.primaryButton&&c.primaryButton.text||c.secondaryButton&&c.secondaryButton.text)&&e.createElement("div",{className:"tabs__optional-buttons"},c.primaryButton&&c.primaryButton.text&&e.createElement(u,{label:c.primaryButton.text,url:c.primaryButton.url,theme:l,inverse:!i}),c.secondaryButton&&c.secondaryButton.text&&e.createElement(u,{hollow:!0,label:c.secondaryButton.text,url:c.secondaryButton.url,theme:l,inverse:!i})),c.link&&c.link.text&&e.createElement("div",{className:"tabs__optional-link"},e.createElement(v,{theme:l,inverse:i,url:c.link.url,title:c.link.text})))}))))))},exports.TextWithBackground=function(c){var t=c.text,a=c.theme,l=void 0===a?"uobmain":a,n=c.inverse,i=c.headingLevel,o=c.headingText,m=c.url,h=c.linkTitle,d=c.externalLink,v=c.linkStyle,p=c.fullWidth,f=c.removeBottomPadding,g=void 0!==f&&f,E=i;return e.createElement("div",{className:r("text-with-background",l&&"theme-".concat(l),n&&"theme-".concat(l,"--inverse"),p&&"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:t,inverse:n,theme:l}),m&&h&&e.createElement("div",{className:"text-with-background__link-wrapper"},e.createElement("div",{className:"text-with-background__link-inner-wrapper"},("primary"===v||"secondary"===v)&&e.createElement(u,{url:m,theme:l,label:h,externalLink:d,hollow:"secondary"===v,inverse:!n}),"paragraph-link"===v&&e.createElement(na,{url:m,label:h,externalLink:d,theme:l,inverse:n}))))},exports.TopicSelector=function(c){var t=c.topics,a=c.theme,l=void 0===a?"uobmain":a,n=c.titleTag,i=c.heading;return e.createElement("section",{className:r("topics-selector",l&&"theme-".concat(l))},e.createElement("div",{className:"topics-selector__container"},"h2"===n?e.createElement("h2",{className:"topics-selector__heading"},i):e.createElement("h3",{className:"topics-selector__heading"},i),e.createElement("ul",{className:"topics-selector__topics-container"},t.map(function(c,t){return e.createElement("li",{className:"topics-selector__topic",key:t},e.createElement(Aa,{theme:l,label:c.label,url:c.url,externalLink:c.externalLink}))}))))},exports.TwoColumnWrapper=function(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.firstColumn,n=c.secondColumn;return e.createElement("div",{className:r("two-column-wrapper",a&&"theme-".concat(a))},e.createElement("div",{className:"two-column-wrapper__grid-container"},e.createElement("div",{className:r("two-column-wrapper__first-column",!n&&"two-column-wrapper__first-column-centred")},l),n&&e.createElement("div",{className:"two-column-wrapper__second-column"},n)))},exports.VideoCardComponent=function(t){var a=t.theme,l=t.tag,n=t.title,i=t.linkUrl,o=t.linkText,s=t.externalLink,m=t.cards,h={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:r("video-card-component",a&&"theme-".concat(a)),id:"video-card-component"},e.createElement("div",{className:"video-card-component__content"},l&&e.createElement("p",{className:"video-card-component__tag"},l),e.createElement("h2",{className:"video-card-component__title"},n),i&&o&&e.createElement("div",{className:"video-card-component__link"},e.createElement(v,{theme:a,url:i,title:o,inverse:!0,externalLink:s})),e.createElement("div",{className:"video-card-component__carousel"},e.createElement(Re,{theme:a,type:"video",inverse:!0,cards:m,cardTitleTag:"h3"})),e.createElement("ul",{className:r("video-card-component__cards-desktop",(!i||!o)&&"video-card-component__cards-desktop--no-link")},m.map(function(t,l){return e.createElement(c.motion.li,{key:l,variants:h,initial:"initial",whileInView:"animate",viewport:{once:!0,amount:.2},custom:l},l<=1?e.createElement("div",{className:"video-card-component__lines video-card-component__lines--".concat(l)},1===l&&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(ke,{theme:a,image:{src:{default:t.image.src.default,medium:t.image.src.medium,small:t.image.src.small},altText:""},title:t.title,youtubeId:t.youtubeId,buttonLabel:t.buttonLabel,titleTag:"h3"}))}))))},exports.VideoEmbed=function(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.inverse,i=void 0!==n&&n,o=c.imageSrc,s=c.videoUrl,m=c.videoId,h=c.heading,d=c.audioDescribedVideoId,u=c.audioDescribedVideoUrl,v=c.transcript,f=c.fullWidth,g=void 0!==f&&f,E=c.videoCaption,b=c.videoCredit,w=e.useState(!1),q=w[0],y=w[1];return e.createElement("div",{className:r("video-embed",g&&"video-embed--full-width",l&&"theme-".concat(l),i&&"theme-".concat(l,"--inverse"))},h&&e.createElement(_,a({},h,{theme:l,inverse:i})),e.createElement("div",{className:"video-embed__grid"},e.createElement("div",{className:"video-embed__content-wrapper"},e.createElement(Xa,{theme:l,imageSrc:o,videoUrl:q?s:u,videoId:q?d: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)),(d||u)&&(q?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")),v&&e.createElement("div",{className:"video-embed__transcript"},e.createElement(p,{titleTag:"h3",theme:l,title:"Transcript",text:v,inverse:i})))))};
|
|
23
|
+
function qt(e,c){(null==c||c>e.length)&&(c=e.length);for(var t=0,a=Array(c);t<c;t++)a[t]=e[t];return a}function yt(e,c,t){return(c=function(e){var c=function(e,c){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,c);if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===c?String:Number)(e)}(e,"string");return"symbol"==typeof c?c:c+""}(c))in e?Object.defineProperty(e,c,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[c]=t,e}function Mt(e,c){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);c&&(a=a.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),t.push.apply(t,a)}return t}function Ct(e){for(var c=1;c<arguments.length;c++){var t=null!=arguments[c]?arguments[c]:{};c%2?Mt(Object(t),!0).forEach(function(c){yt(e,c,t[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Mt(Object(t)).forEach(function(c){Object.defineProperty(e,c,Object.getOwnPropertyDescriptor(t,c))})}return e}function Nt(e){return function(e){if(Array.isArray(e))return qt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,c){if(e){if("string"==typeof e)return qt(e,c);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?qt(e,c):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 kt,xt,Tt=function(e,c){if(e.length>0){var t=e[e.length-1];t!==c&&t._setPausedState(!0)}var a=e.indexOf(c);-1===a||e.splice(a,1),e.push(c)},Lt=function(e,c){var t=e.indexOf(c);-1!==t&&e.splice(t,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)},zt=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},St=function(e){return zt(e)&&!e.shiftKey},Ht=function(e){return zt(e)&&e.shiftKey},Vt=function(e){return setTimeout(e,0)},Pt=function(e){for(var c=arguments.length,t=new Array(c>1?c-1:0),a=1;a<c;a++)t[a-1]=arguments[a];return"function"==typeof e?e.apply(void 0,t):e},Ot=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},Zt=[],Bt=qc(Object.freeze({__proto__:null,createFocusTrap:function(e,c){var t,a=(null==c?void 0:c.document)||document,l=(null==c?void 0:c.trapStack)||Zt,n=Ct({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:St,isKeyBackward:Ht},c),r={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},i=function(e,c,t){return e&&void 0!==e[c]?e[c]:n[t||c]},o=function(e,c){var t="function"==typeof(null==c?void 0:c.composedPath)?c.composedPath():void 0;return r.containerGroups.findIndex(function(c){var a=c.container,l=c.tabbableNodes;return a.contains(e)||(null==t?void 0:t.includes(a))||l.find(function(c){return c===e})})},s=function(e){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=c.hasFallback,l=void 0!==t&&t,r=c.params,i=void 0===r?[]:r,o=n[e];if("function"==typeof o&&(o=o.apply(void 0,Nt(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(c){throw new Error("`".concat(e,'` appears to be an invalid selector; error="').concat(c.message,'"'))}if(!s&&!l)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&&!bt(e,n.tabbableOptions))if(o(a.activeElement)>=0)e=a.activeElement;else{var c=r.tabbableGroups[0];e=c&&c.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},h=function(){if(r.containerGroups=r.containers.map(function(e){var c=ft(e,n.tabbableOptions),t=gt(e,n.tabbableOptions),a=c.length>0?c[0]:void 0,l=c.length>0?c[c.length-1]:void 0,r=t.find(function(e){return Et(e)}),i=t.slice().reverse().find(function(e){return Et(e)}),o=!!c.find(function(e){return rt(e)>0});return{container:e,tabbableNodes:c,focusableNodes:t,posTabIndexesFound:o,firstTabbableNode:a,lastTabbableNode:l,firstDomTabbableNode:r,lastDomTabbableNode:i,nextTabbableNode:function(e){var a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],l=c.indexOf(e);return l<0?a?t.slice(t.indexOf(e)+1).find(function(e){return Et(e)}):t.slice(0,t.indexOf(e)).reverse().find(function(e){return Et(e)}):c[l+(a?1:-1)]}}}),r.tabbableGroups=r.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),r.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(r.containerGroups.find(function(e){return e.posTabIndexesFound})&&r.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.")},d=function(e){var c=e.activeElement;if(c)return c.shadowRoot&&null!==c.shadowRoot.activeElement?d(c.shadowRoot):c},u=function(e){!1!==e&&e!==d(document)&&(e&&e.focus?(e.focus({preventScroll:!!n.preventScroll}),r.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):u(m()))},v=function(e){var c=s("setReturnFocus",{params:[e]});return c||!1!==c&&e},p=function(e){var c=e.target,t=e.event,a=e.isBackward,l=void 0!==a&&a;c=c||Ot(t),h();var i=null;if(r.tabbableGroups.length>0){var m=o(c,t),d=m>=0?r.containerGroups[m]:void 0;if(m<0)i=l?r.tabbableGroups[r.tabbableGroups.length-1].lastTabbableNode:r.tabbableGroups[0].firstTabbableNode;else if(l){var u=r.tabbableGroups.findIndex(function(e){var t=e.firstTabbableNode;return c===t});if(u<0&&(d.container===c||bt(c,n.tabbableOptions)&&!Et(c,n.tabbableOptions)&&!d.nextTabbableNode(c,!1))&&(u=m),u>=0){var v=0===u?r.tabbableGroups.length-1:u-1,p=r.tabbableGroups[v];i=rt(c)>=0?p.lastTabbableNode:p.lastDomTabbableNode}else zt(t)||(i=d.nextTabbableNode(c,!1))}else{var f=r.tabbableGroups.findIndex(function(e){var t=e.lastTabbableNode;return c===t});if(f<0&&(d.container===c||bt(c,n.tabbableOptions)&&!Et(c,n.tabbableOptions)&&!d.nextTabbableNode(c))&&(f=m),f>=0){var g=f===r.tabbableGroups.length-1?0:f+1,E=r.tabbableGroups[g];i=rt(c)>=0?E.firstTabbableNode:E.firstDomTabbableNode}else zt(t)||(i=d.nextTabbableNode(c))}}else i=s("fallbackFocus");return i},f=function(e){var c=Ot(e);o(c,e)>=0||(Pt(n.clickOutsideDeactivates,e)?t.deactivate({returnFocus:n.returnFocusOnDeactivate}):Pt(n.allowOutsideClick,e)||e.preventDefault())},g=function(e){var c=Ot(e),t=o(c,e)>=0;if(t||c instanceof Document)t&&(r.mostRecentlyFocusedNode=c);else{var a;e.stopImmediatePropagation();var l=!0;if(r.mostRecentlyFocusedNode)if(rt(r.mostRecentlyFocusedNode)>0){var i=o(r.mostRecentlyFocusedNode),s=r.containerGroups[i].tabbableNodes;if(s.length>0){var h=s.findIndex(function(e){return e===r.mostRecentlyFocusedNode});h>=0&&(n.isKeyForward(r.recentNavEvent)?h+1<s.length&&(a=s[h+1],l=!1):h-1>=0&&(a=s[h-1],l=!1))}}else r.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return rt(e)>0})})||(l=!1);else l=!1;l&&(a=p({target:r.mostRecentlyFocusedNode,isBackward:n.isKeyBackward(r.recentNavEvent)})),u(a||(r.mostRecentlyFocusedNode||m()))}r.recentNavEvent=void 0},E=function(e){(n.isKeyForward(e)||n.isKeyBackward(e))&&function(e){var c=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.recentNavEvent=e;var t=p({event:e,isBackward:c});t&&(zt(e)&&e.preventDefault(),u(t))}(e,n.isKeyBackward(e))},_=function(e){var c;"Escape"!==(null==(c=e)?void 0:c.key)&&"Esc"!==(null==c?void 0:c.key)&&27!==(null==c?void 0:c.keyCode)||!1===Pt(n.escapeDeactivates,e)||(e.preventDefault(),t.deactivate())},b=function(e){var c=Ot(e);o(c,e)>=0||Pt(n.clickOutsideDeactivates,e)||Pt(n.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},w=function(){if(r.active)return Tt(l,t),r.delayInitialFocusTimer=n.delayInitialFocus?Vt(function(){u(m())}):u(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",_),t},q=function(){if(r.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",_),t},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===r.mostRecentlyFocusedNode})})&&u(m())}):void 0,M=function(){y&&(y.disconnect(),r.active&&!r.paused&&r.containers.map(function(e){y.observe(e,{subtree:!0,childList:!0})}))};return t={get active(){return r.active},get paused(){return r.paused},activate:function(e){if(r.active)return this;var c=i(e,"onActivate"),t=i(e,"onPostActivate"),l=i(e,"checkCanFocusTrap");l||h(),r.active=!0,r.paused=!1,r.nodeFocusedBeforeActivation=d(a),null==c||c();var n=function(){l&&h(),w(),M(),null==t||t()};return l?(l(r.containers.concat()).then(n,n),this):(n(),this)},deactivate:function(e){if(!r.active)return this;var c=Ct({onDeactivate:n.onDeactivate,onPostDeactivate:n.onPostDeactivate,checkCanReturnFocus:n.checkCanReturnFocus},e);clearTimeout(r.delayInitialFocusTimer),r.delayInitialFocusTimer=void 0,q(),r.active=!1,r.paused=!1,M(),Lt(l,t);var a=i(c,"onDeactivate"),o=i(c,"onPostDeactivate"),s=i(c,"checkCanReturnFocus"),m=i(c,"returnFocus","returnFocusOnDeactivate");null==a||a();var h=function(){Vt(function(){m&&u(v(r.nodeFocusedBeforeActivation)),null==o||o()})};return m&&s?(s(v(r.nodeFocusedBeforeActivation)).then(h,h),this):(h(),this)},pause:function(e){return r.active?(r.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return r.active?(r.manuallyPaused=!1,l[l.length-1]!==this?this:this._setPausedState(!1,e)):this},updateContainerElements:function(e){var c=[].concat(e).filter(Boolean);return r.containers=c.map(function(e){return"string"==typeof e?a.querySelector(e):e}),r.active&&h(),M(),this}},Object.defineProperties(t,{_isManuallyPaused:{value:function(){return r.manuallyPaused}},_setPausedState:{value:function(e,c){if(r.paused===e)return this;if(r.paused=e,e){var t=i(c,"onPause"),a=i(c,"onPostPause");null==t||t(),q(),M(),null==a||a()}else{var l=i(c,"onUnpause"),n=i(c,"onPostUnpause");null==l||l(),h(),w(),M(),null==n||n()}return this}}}),t.updateContainerElements(e),t}})),Ft=qc(wt);var Dt=function(){if(xt)return kt;function c(e){return c="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},c(e)}function t(e,c,t){return c&&function(e,c){for(var t=0;t<c.length;t++){var a=c[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,i(a.key),a)}}(e.prototype,c),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e,t,a){return t=n(t),function(e,t){if(t&&("object"==c(t)||"function"==typeof t))return t;if(void 0!==t)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,l()?Reflect.construct(t,a||[],n(e).constructor):t.apply(e,a))}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(l=function(){return!!e})()}function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}function r(e,c){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,c){return e.__proto__=c,e},r(e,c)}function i(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var l=a.call(e,t);if("object"!=c(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}xt=1;var o=e,s=Yc(),m=Bt.createFocusTrap,h=Ft.isFocusable,d=function(e){function c(e){var t;!function(e,c){if(!(e instanceof c))throw new TypeError("Cannot call a class as a function")}(this,c),function(e,c,t){(c=i(c))in e?Object.defineProperty(e,c,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[c]=t}(t=a(this,c,[e]),"getNodeForOption",function(e){var c,t=null!==(c=this.internalOptions[e])&&void 0!==c?c:this.originalOptions[e];if("function"==typeof t){for(var a=arguments.length,l=new Array(a>1?a-1:0),n=1;n<a;n++)l[n-1]=arguments[n];t=t.apply(void 0,l)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var r,i=t;if("string"==typeof t&&!(i=null===(r=this.getDocument())||void 0===r?void 0:r.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return i}),t.handleDeactivate=t.handleDeactivate.bind(t),t.handlePostDeactivate=t.handlePostDeactivate.bind(t),t.handleClickOutsideDeactivates=t.handleClickOutsideDeactivates.bind(t),t.internalOptions={returnFocusOnDeactivate:!1,checkCanReturnFocus:null,onDeactivate:t.handleDeactivate,onPostDeactivate:t.handlePostDeactivate,clickOutsideDeactivates:t.handleClickOutsideDeactivates},t.originalOptions={returnFocusOnDeactivate:!0,onDeactivate:null,onPostDeactivate:null,checkCanReturnFocus:null,clickOutsideDeactivates:!1};var l=e.focusTrapOptions;for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&("returnFocusOnDeactivate"!==n&&"onDeactivate"!==n&&"onPostDeactivate"!==n&&"checkCanReturnFocus"!==n&&"clickOutsideDeactivates"!==n?t.internalOptions[n]=l[n]:t.originalOptions[n]=l[n]);return t.outsideClick=null,t.focusTrapElements=e.containerElements||[],t.updatePreviousElement(),t}return function(e,c){if("function"!=typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(c&&c.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),c&&r(e,c)}(c,e),t(c,[{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 c="function"==typeof this.originalOptions.clickOutsideDeactivates?this.originalOptions.clickOutsideDeactivates.call(null,e):this.originalOptions.clickOutsideDeactivates;return c&&(this.outsideClick={target:e.target,allowDeactivation:c}),c}},{key:"handleDeactivate",value:function(){this.originalOptions.onDeactivate&&this.originalOptions.onDeactivate.call(null),this.deactivateTrap()}},{key:"handlePostDeactivate",value:function(){var e=this,c=function(){var c=e.getReturnFocusNode(),t=!(!e.originalOptions.returnFocusOnDeactivate||null==c||!c.focus||e.outsideClick&&(!e.outsideClick.allowDeactivation||h(e.outsideClick.target,e.internalOptions.tabbableOptions))),a=e.internalOptions.preventScroll,l=void 0!==a&&a;t&&c.focus({preventScroll:l}),e.originalOptions.onPostDeactivate&&e.originalOptions.onPostDeactivate.call(null),e.outsideClick=null};this.originalOptions.checkCanReturnFocus?this.originalOptions.checkCanReturnFocus.call(null,this.getReturnFocusNode()).then(c,c):c()}},{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 c=!e.active&&this.props.active,t=e.active&&!this.props.active,a=!e.paused&&this.props.paused,l=e.paused&&!this.props.paused;if(c&&(this.updatePreviousElement(),this.focusTrap.activate()),t)return void this.deactivateTrap();a&&this.focusTrap.pause(),l&&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,c=this.props.children?o.Children.only(this.props.children):void 0;if(c){if(c.type&&c.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(c,{ref:function(t){var a=e.props.containerElements;c&&("function"==typeof c.ref?c.ref(t):c.ref&&(c.ref.current=t)),e.focusTrapElements=a||[t]}})}return null}}])}(o.Component),u="undefined"==typeof Element?Function:Element;return d.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(u),s.string,s.bool,s.func]),fallbackFocus:s.oneOfType([s.instanceOf(u),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(u),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(u)),children:s.oneOfType([s.element,s.instanceOf(u)])},d.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:m},kt=d}(),It=wc(Dt);t();var At=function(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.onClick,n=c.label,i=c.level,o=c.autoFocus,s=void 0!==o&&o;return e.createElement("button",{className:r("nav-link",a&&"theme-".concat(a),"nav-link--".concat(i)),onClick:l,autoFocus:s},e.createElement("span",{className:"nav-link__label"},n,e.createElement("span",{className:"nav-link__icon"},e.createElement(m,{icon:"chevron-right",theme:a,ariaHidden:!0}))))};t();var Rt=function(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.url,n=c.label,i=c.level,o=c.autoFocus,s=void 0!==o&&o,m=c.externalLink,h=void 0!==m&&m,d=e.useRef(null);return e.useEffect(function(){s&&d.current&&d.current.focus()},[s]),e.createElement("a",{className:r("page-link",a&&"theme-".concat(a),"page-link--".concat(i)),href:l,ref:d,target:h?"_blank":"_self",rel:h?"noopener noreferrer":""},n)};function $t(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.inverse,i=void 0===n||n,o=c.image,s=c.tag,h=c.title,d=c.href,u=c.linkText,p=c.description,f=c.type;return e.createElement("div",{className:r("card-menu",f&&"card-menu--".concat(f),l&&"theme-".concat(l),i&&"theme-".concat(l,"--inverse"))},e.createElement("figure",{className:"card-menu__figure"},e.createElement("div",{className:"card-menu__image-wrapper"},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:d},e.createElement("h2",{className:"card-menu__title"},h))),"primary"===f?e.createElement(e.Fragment,null,e.createElement("h2",{className:"card-menu__title"},h),e.createElement("p",{className:"card-menu__description"},p),e.createElement("div",{className:"card-menu__cta"},e.createElement(v,{theme:l,url:d,title:u||h}))):e.createElement("div",{className:"card-menu__arrow"},e.createElement(m,{icon:"arrow-right",theme:l,ariaHidden:!0})))))}t();var jt=function(c){var t=c.primaryLinks,a=c.secondaryLinks,l=c.onClickNavLink,n=c.menuCards,r=c.theme;return e.createElement("div",{className:"header__main-menu"},e.createElement("div",{className:"header__main-menu-menu-wrapper"},e.createElement("ul",{className:"header__main-menu-primary-list"},t.map(function(c,t){return c.children?e.createElement(At,{label:c.label,onClick:function(){return l(t)},key:c.label,theme:r,level:"level-one",autoFocus:0===t}):e.createElement(Rt,{label:c.label,url:c.url,key:c.label,theme:r,level:"level-one",autoFocus:0===t,externalLink:c.externalLink})})),e.createElement("ul",{className:"header__main-menu-secondary-list"},a.map(function(c,a){return c.children?e.createElement(At,{label:c.label,onClick:function(){return l(a+t.length)},key:c.label,theme:r,level:"level-two"}):e.createElement(Rt,{label:c.label,url:c.url,key:c.label,theme:r,level:"level-two",externalLink:c.externalLink})}))),e.createElement("ul",{className:"header__main-menu-promo-cards"},n&&n.map(function(c,t){return e.createElement("li",{key:t},e.createElement($t,{theme:r,image:{src:{small:c.image.src.small,medium:c.image.src.medium,default:c.image.src.default}},description:c.description,tag:c.tag,title:c.title,linkText:c.linkText,href:c.href,type:c.type}))})))};t();var Wt=function(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.inverse,n=void 0!==l&&l,i=c.label,o=c.onClick;return e.createElement("button",{className:r("reverse-link-with-arrow",a&&"theme-".concat(a),n&&"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:n,ariaHidden:!0})),i))},Ut=function(c){var t=c.headingLink,a=c.onClickGoBack,l=c.onClickNavLink,n=c.theme,i=c.backLinkLabel;return e.createElement("div",{className:"header__nested-menu"},e.createElement(Wt,{label:i,onClick:a,theme:n}),e.createElement("div",{className:"header__heading-link"},e.createElement(Rt,{theme:n,url:t.url,label:t.label,level:"level-one",autoFocus:!0})),e.createElement("div",{className:"header__content-wrapper"},t.description&&e.createElement("p",{className:"header__description"},t.description),t.children&&e.createElement("ul",{className:r("header__link-list",t.description&&"header__link-list--with-desc")},t.children.map(function(c,t){return c.children?e.createElement(At,{label:c.label,onClick:function(){return l(t)},key:c.label,theme:n,level:"level-two"}):e.createElement(Rt,{label:c.label,url:c.url,key:c.label,theme:n,level:"level-two",externalLink:c.externalLink})}))))};t();var Gt=function(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.inverse,n=void 0!==l&&l,i=c.fieldName,o=c.hiddenLabel,s=void 0!==o&&o,m=c.defaultValue,h=c.placeholder,d=c.required,u=void 0!==d&&d,v=c.onChange;return e.createElement("div",{className:r("form-input",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"))},e.createElement("label",{htmlFor:i,className:r("form-input__label",s&&"sr-only")},"Select ",i),e.createElement("input",{className:"form-input__input",id:i,name:i,type:"text",required:u,defaultValue:m,placeholder:h,onChange:v}))},Kt=function(c){var t=c.title,a=void 0===t?"Search":t,l=c.placeholder,n=void 0===l?"Start typing":l,r=c.introText,i=c.handleSearchChange,o=c.handleSearchSubmit,s=c.theme,m=c.inverse,h=c.onClickGoBack,d=c.backLinkLabel,v=c.recommendedLinks,p=c.recommendedLinkTitle;return e.createElement("div",{className:"header-search"},h&&d&&e.createElement("div",{className:"header-search__back-link"},e.createElement(Wt,{label:d,onClick:h,theme:s})),e.createElement("div",{className:"header-search__container"},e.createElement("h2",{className:"header-search__title"},a),e.createElement("p",{className:"header-search__intro"},r),e.createElement("form",{className:"header-search__form",method:"post",onSubmit:o},e.createElement("div",{className:"header-search__search-wrapper"},e.createElement(Gt,{theme:s,inverse:!1,fieldName:"search",hiddenLabel:!0,placeholder:n,onChange:i}),e.createElement(ye,{theme:s,inverse:!m,title:"Search",icon:"search",isSubmit:!0})),e.createElement(u,{theme:s,inverse:!m,label:"Search",isSubmit:!0}))),v&&e.createElement("div",{className:"header-search__recommended-links-wrapper"},p&&e.createElement("h3",{className:"header-search__recommended-link-title"},p),e.createElement("ul",{className:"header-search__recommended-links"},v.map(function(c,t){return e.createElement("li",{className:"header-search__recommended-link",key:t},e.createElement(mc,{theme:s,url:c.url,title:c.label,externalLink:c.externalLink}))}))))};function Yt(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.label,n=c.url,i=c.externalLink,o=c.active,s=void 0!==o&&o;return e.createElement("a",{className:r("campus-selector-link",a&&"theme-".concat(a),s&&"campus-selector-link--active"),href:n,target:i?"_blank":"_self",rel:"noreferrer"},l)}function Jt(c){var t=c.active,a=c.theme,l=c.ukUrl,n=c.dubaiUrl,i=c.mobile;return e.createElement("div",{className:r("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(u,{label:"UK",theme:a,inverse:!0,url:l,hollow:"uk"!==t}),e.createElement(u,{label:"Dubai",theme:a,inverse:!0,url:n,hollow:"dubai"!==t})):e.createElement(e.Fragment,null,e.createElement(Yt,{label:"UK",theme:a,url:l,active:"uk"===t}),e.createElement(Yt,{label:"Dubai",theme:a,url:n,active:"dubai"===t}))))}t(),t(),t();var Qt={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 Xt(t){var a,l,n=t.isMobile,r=t.isTablet,i=t.image,o=n?Qt.mobile:r?Qt.tablet:Qt.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(c.motion.div,{className:"hero__polygon-image-wrapper"},e.createElement(c.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!==(l=i.src.medium)&&void 0!==l?l:i.src.default," 992w, ").concat(i.src.default," 1440w"),alt:i.alt,fetchPriority:i.fetchPriority,animate:{clipPath:o.image},transition:{type:"tween"}}),e.createElement(c.motion.div,{key:m,className:"hero__polygon-image-background",animate:{opacity:1,clipPath:o.background},transition:{type:"tween"},initial:{opacity:0}})))}t();var ea={initial:{pathLength:0},animate:{pathLength:1},transition:{delay:.5,duration:1}};function ca(t){var l=t.isMobile,n=t.isTablet;return l?e.createElement(e.Fragment,null,e.createElement(c.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(c.motion.path,a({d:"M0 1H140"},ea)))),e.createElement(c.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(c.motion.path,a({d:"M0 1H140"},ea))))):n?e.createElement(e.Fragment,null,e.createElement(c.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(c.motion.path,a({d:"M0 1H140"},ea)))),e.createElement(c.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(c.motion.path,a({d:"M0 1H140"},ea))))):e.createElement(e.Fragment,null,e.createElement(c.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(c.motion.path,a({d:"M0 1H140"},ea)))),e.createElement(c.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(c.motion.path,a({d:"M0 1H140"},ea)))))}t();var ta=function(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.inverse,n=void 0!==l&&l,i=c.fieldName,o=c.selectOptions,s=c.defaultValue,h=void 0===s?"all":s,d=c.hiddenLabel,u=void 0!==d&&d,v=c.customLabel,p=c.title,f=c.onChange,g=c.value;return e.createElement("div",{className:r("form-select",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"))},v?e.createElement("label",{htmlFor:i,className:r("form-select__label",u&&"sr-only")},v):e.createElement("label",{htmlFor:i,className:r("form-select__label",u&&"sr-only")},"Select ",i),e.createElement("div",{className:"form-select__select-wrapper"},e.createElement("select",{className:"form-select__select",defaultValue:h,value:g,id:i,name:i,onChange:f},e.createElement("option",{value:"all"},p),o&&o.map(function(c,t){return e.createElement("option",{value:c.value,key:t},c.label)})),e.createElement("div",{className:"form-select__icon"},e.createElement(m,{icon:"arrow-down",theme:a,inverse:n}))))};function aa(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.inverse,n=void 0!==l&&l,i=c.title,o=c.description,s=c.defaultSearchTerm,m=c.placeholder,h=c.filterTitle,d=c.filterFieldName,v=c.filterOptions,p=c.defaultFilter,f=void 0===p?"all":p,E=c.wrapped,_=void 0!==E&&E,b=c.fullWidth,w=void 0!==b&&b,q=c.onGrid,y=void 0!==q&&q,M=c.titleTag,C=void 0===M?"h2":M,N=c.formSubmitHandler,k=c.filterChangeHandler,x=c.searchTermChangeHandler,T=C;return e.createElement("div",{className:r("search-course",w&&"search-course--full-width",y&&"search-course--on-grid",_&&"search-course--wrapped",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"),!d&&"search-course--no-filter")},e.createElement("div",{className:"search-course__container"},i&&e.createElement(T,{className:"search-course__title"},i),o&&e.createElement("div",{className:"search-course__description"},e.createElement(g,{text:o,theme:a,inverse:n})),e.createElement("form",{className:"search-course__form",method:"post",onSubmit:N},e.createElement("div",{className:"search-course__search-wrapper"},e.createElement(Gt,{theme:a,inverse:n,fieldName:"search",hiddenLabel:!0,defaultValue:s,placeholder:m,onChange:x}),e.createElement(ye,{theme:a,inverse:!n,title:"Search",icon:"search",isSubmit:!0}),_&&e.createElement(u,{theme:a,inverse:!n,label:"Search",isSubmit:!0})),d&&h&&v&&e.createElement(ta,{theme:a,inverse:n,title:h,fieldName:d,selectOptions:v,defaultValue:f,hiddenLabel:!0,onChange:k}),!_&&e.createElement(u,{theme:a,inverse:!n,label:"Search",isSubmit:!0}))))}function la(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.inverse,n=c.label,i=c.icons;return e.createElement("div",{className:r("share-buttons",a&&"theme-".concat(a),l&&"theme-".concat(a,"--inverse"))},n&&e.createElement("div",{className:"share-buttons__label"},n),i&&e.createElement("ul",{className:"share-buttons__icon-wrapper"},i.map(function(c,t){return e.createElement("li",{className:"share-buttons__icon",key:t},e.createElement(ye,{theme:a,title:c.title,icon:c.icon,url:c.url,inverse:l}))})))}function na(c){var t="items"in c?c.items:[c],a=(null!=t?t:[]).filter(function(e){return Boolean(e)});return e.createElement(e.Fragment,null,a.map(function(c,t){var l=c.theme,n=void 0===l?"uobmain":l,i=c.inverse,o=void 0!==i&&i,s=c.label,m=c.url,h=c.externalLink;return e.createElement(e.Fragment,{key:"".concat(m,"-").concat(s,"-").concat(t)},e.createElement("a",{className:r("paragraph-link",n&&"theme-".concat(n),o&&"theme-".concat(n,"--inverse")),href:m,target:h?"_blank":"_self",rel:"noreferrer"},s),t<a.length-1?" ":null)}))}function ra(c){var t=c.theme,a=c.inverse,l=c.buttonLabel,n=c.hollow,i=c.modalChildren,o=e.useState(!1),s=o[0],m=o[1],h=function(){m(!1),document.body.classList.remove("lock-scroll")};return e.createElement("div",{className:r("modal-cta-button",t&&"theme-".concat(t),a&&"theme-".concat(t,"--inverse"))},e.createElement(u,{inverse:a,label:l,onClick:function(){s?h():(m(!0),document.body.classList.add("lock-scroll"))},theme:t,hollow:n}),s&&e.createElement(Ce,{centred:!0,theme:t,closeModal:h,isOpen:s},e.createElement($e,{className:"modal-cta-button__embed-wrapper"},i)))}function ia(c){var t=c.title,l=c.value,n=c.link;return e.createElement("article",{className:"course-tile"},e.createElement("div",{className:"course-tile__top"},e.createElement("div",{className:"course-tile__title"},t),e.createElement("div",{className:"course-tile__value"},l)),n&&e.createElement("div",{className:"course-tile__link-wrapper"},e.createElement(vc,a({},n,{inverse:!0,onClick:function(e){return pc(e,n.url||"#")}}))))}function oa(c){var t=c.title,l=c.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"},t),e.createElement(ta,a({},l,{inverse:!0}))))}function sa(c){var t=c.title,l=c.rank,n=c.rankText,r=c.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"},t),e.createElement("div",{className:"course-tile-ranking__rank"},l),e.createElement("div",{className:"course-tile-ranking__rank-text"},n)),r&&e.createElement("div",{className:"course-tile-ranking__link-wrapper"},e.createElement(vc,a({},r,{inverse:!0,onClick:function(e){return pc(e,r.url||"#")}}))))}function ma(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.inverse,i=void 0===n||n,o=c.topPadding,s=void 0!==o&&o,m=c.selectorProps;return e.createElement("div",{className:r("location-selector",l&&"theme-".concat(l),i&&"theme-".concat(l,"--inverse"))},e.createElement("div",{className:r("location-selector__container",s&&"location-selector__container--padding-top")},e.createElement(ta,a({},m,{inverse:i}))))}t(),t(),t(),t(),t(),t(),t();var ha={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}},da={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))"}},ua={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%"}},pa={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}},fa={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%"}},ga={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)"}},Ea={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)"}},_a={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)"}},ba={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)"}},wa={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)"}},qa={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)"}},ya={initial:{pathLength:0},animate:{pathLength:1},transition:{delay:.5,duration:1}};function Ma(t){var l=t.isMobile,n=t.isTablet,r=t.activeVariant;return l?e.createElement(e.Fragment,null,e.createElement(c.motion.div,{className:"hero-carousel__line",variants:ga,animate:r,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(c.motion.path,a({d:"M0 1H140",stroke:"black"},ya)))),e.createElement(c.motion.div,{className:"hero-carousel__line",variants:Ea,animate:r,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(c.motion.path,a({d:"M0 1H140",stroke:"black"},ya))))):n?e.createElement(e.Fragment,null,e.createElement(c.motion.div,{className:"hero-carousel__line",variants:_a,animate:r,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(c.motion.path,a({d:"M0 1H260",stroke:"black"},ya)))),e.createElement(c.motion.div,{className:"hero-carousel__line",variants:ba,animate:r,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(c.motion.path,a({d:"M0 1H260",stroke:"black"},ya))))):e.createElement(e.Fragment,null,e.createElement(c.motion.div,{className:"hero-carousel__line",variants:wa,animate:r,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(c.motion.path,a({d:"M0 1H360",stroke:"black"},ya)))),e.createElement(c.motion.div,{className:"hero-carousel__line",variants:qa,animate:r,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(c.motion.path,a({d:"M0 1H360",stroke:"black"},ya)))))}function Ca(t){var a,l,n=t.isMobile,r=t.isTablet,i=t.activeVariant,o=t.imageSrc,s=t.imageAlt,m=t.imageFetchPriority,h=e.useRef(null),d=e.useId();return e.useEffect(function(){h.current&&h.current.setAttribute("fetchpriority",null!=m?m:"high")}),e.createElement(e.Fragment,null,e.createElement(c.AnimatePresence,null,e.createElement(c.motion.div,{className:"hero-carousel__image-wrapper",transition:{delayChildren:1}},e.createElement(c.motion.img,{ref:h,className:"hero-carousel__image",src:o.default,srcSet:"".concat(null!==(a=o.small)&&void 0!==a?a:o.default," 576w, ").concat(null!==(l=o.medium)&&void 0!==l?l:o.default," 992w, ").concat(o.default," 1440w"),alt:s,variants:n?da:r?va:fa,animate:i,initial:{clipPath:"polygon(0 0, 0 0, 0 0, 0 0)"},transition:{type:"tween"}}),e.createElement(c.motion.div,{key:d,className:"hero-carousel__image-background",variants:n?ha:r?ua:pa,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 Na=e.forwardRef(function(c,t){var a=c.theme,l=c.category,n=c.title,r=c.description,i=c.linkUrl,o=c.linkLabel,s=c.onKeyDown;return e.createElement(e.Fragment,null,e.createElement("p",{className:"hero-carousel__category"},l),e.createElement("h2",{className:"hero-carousel__title"},n),e.createElement("p",{className:"hero-carousel__description"},r),e.createElement("div",{className:"hero-carousel__cta"},e.createElement(v,{url:i,title:o,theme:a,inverse:!0,onKeyDown:s,ref:t})))});function ka(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.heading,i=void 0===n?"Page contents":n,o=c.links,s=c.buttonLinks,m=c.locationDetails,h=function(e){var c=document.getElementById(e);if(c){var t=c.getBoundingClientRect().top+window.pageYOffset-20;window.scrollTo({top:t,behavior:"smooth"});var a=null,l=null,n=0,r=function(){a&&(a.disconnect(),a=null),l&&(l.disconnect(),l=null),n&&(clearTimeout(n),n=0)},i=function(e){return!!e&&(a=new IntersectionObserver(function(c){c.some(function(e){return e.isIntersecting})&&function(e){try{e.focus({preventScroll:!0})}catch(e){}finally{r()}}(e)},{root:null,threshold:.1,rootMargin:"0px 0px -20% 0px"}),a.observe(e),!0)},o=c.querySelector("h1,h2,h3,h4,h5,h6");i(o)||(l=new MutationObserver(function(){o=c.querySelector("h1,h2,h3,h4,h5,h6"),i(o)&&l&&(l.disconnect(),l=null)})).observe(c,{childList:!0,subtree:!0}),n=window.setTimeout(function(){r();var e=c.querySelector('a, button, input, select, textarea, [tabindex]:not([tabindex="-1"])');if(e){var t=!e.hasAttribute("tabindex");t&&e.setAttribute("tabindex","-1"),e.focus({preventScroll:!0}),t&&e.removeAttribute("tabindex")}},1e3)}},d=function(e,c){e.preventDefault(),h(c.replace("#",""))};return e.createElement("div",{className:r("in-page-navigation-links",l&&"theme-".concat(l))},e.createElement("h2",{className:"in-page-navigation-links__heading"},i),m&&e.createElement(ma,a({},m,{inverse:!0})),e.createElement("nav",null,e.createElement("ul",{className:"in-page-navigation-links__link-container"},o.map(function(c){return e.createElement("li",{className:r("in-page-navigation-links__link-wrapper",c.active&&"in-page-navigation-links__link-wrapper--active"),key:c.url},e.createElement("a",{className:"in-page-navigation-links__link",href:c.url,onClick:function(e){return d(e,c.url)},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||d(e,c.url)}},c.title))}))),e.createElement("ul",null,s&&s.map(function(c,t){return c.externalLink?e.createElement("li",{className:"in-page-navigation-links__link-button",key:t},e.createElement(Ne,{theme:l,label:c.label,icon:"external",hollow:t%2!=0,iconPosition:"right",url:c.url,onClick:c.onClick})):e.createElement("li",{className:"in-page-navigation-links__link-button",key:t},e.createElement(u,{theme:l,label:c.label,hollow:t%2!=0,url:c.url,onClick:c.onClick}))})))}function xa(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.heading,n=c.cards,i=c.link;return e.createElement("div",{className:r("most-read-news",a&&"theme-".concat(a))},e.createElement("h2",{className:"most-read-news__title"},l),e.createElement("ul",{className:"most-read-news__card-container"},n.map(function(c,t){return e.createElement("li",{className:"most-read-news__card",key:t},e.createElement(Oe,{theme:a,title:c.title,href:c.href,titleTag:"h3",publishDate:c.publishDate}))})),i&&e.createElement(v,{theme:a,inverse:!0,url:i.url,title:i.title}))}function Ta(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.type,r=c.image,i=c.title,o=c.url,s=c.description,m=c.details,h=c.showCategory,d=void 0!==h&&h;return e.createElement(e.Fragment,null,r&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(w,a({},r))),e.createElement("div",{className:"listing-result-card__text"},d&&e.createElement("p",{className:"listing-result-card__category"},n),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),m.length>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(De,{details:m,theme:l}))))}function La(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.type,r=c.image,i=c.title,o=c.titleTag,s=void 0===o?"h2":o,m=c.url,h=c.description,d=c.supervisors,u=c.department,v=c.details,p=c.showCategory,g=void 0!==p&&p;return e.createElement(e.Fragment,null,r&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(w,a({},r))),e.createElement("div",{className:"listing-result-card__text"},g&&e.createElement("p",{className:"listing-result-card__category"},n),e.createElement(f,{htmlTag:"h3"===s?"h3":"h2"},e.createElement("a",{className:"listing-result-card__title",href:m},i)),(d||u)&&e.createElement("div",{className:"listing-result-card__course-info"},d&&e.createElement("p",{className:"listing-result-card__supervisors"},"Supervisors: ",d),u&&e.createElement("p",{className:"listing-result-card__department"},u)),h&&e.createElement("p",{className:"listing-result-card__description"},h),v.length>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(De,{details:v,theme:l}))))}function za(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.inverse,r=void 0===n||n,i=c.type,o=c.image,s=c.title,m=c.url,h=c.description,d=c.details,u=c.showCategory,v=void 0!==u&&u,p=c.cardDescriptionIsRichText,E=void 0!==p&&p,_=c.titleTag,b=void 0===_?"h2":_,q=c.eventStatus,y=void 0===q?void 0:q;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(xe,{theme:"uobmain",status:y,day:void 0,month:void 0}))),e.createElement("div",{className:"listing-result-card__text"},v&&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)),h&&!E&&e.createElement("p",{className:"listing-result-card__description"},h),h&&E&&e.createElement(g,{theme:l,inverse:r,text:h}),d.length>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(De,{details:d,theme:l}))))}function Sa(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.type,r=c.image,i=c.title,o=c.url,s=c.description,m=c.author,h=c.details,d=c.showCategory,u=void 0!==d&&d;return e.createElement(e.Fragment,null,r&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(w,a({},r))),e.createElement("div",{className:"listing-result-card__text"},u&&e.createElement("p",{className:"listing-result-card__category"},n),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 ",m),s&&e.createElement("p",{className:"listing-result-card__description"},s),h.length>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(De,{details:h,theme:l}))))}function Ha(c){var t=c.image,l=c.title,n=c.url,r=c.description;return e.createElement(e.Fragment,null,t&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(w,a({},t))),e.createElement("div",{className:"listing-result-card__text"},e.createElement("h2",null,e.createElement("a",{className:"listing-result-card__title",href:n},l)),r&&e.createElement("p",{className:"listing-result-card__description"},r)))}function Va(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.type,r=c.image,i=c.title,o=c.url,s=c.description,m=c.jobTitle,h=c.department,d=c.details,u=c.showCategory,v=void 0!==u&&u;return e.createElement(e.Fragment,null,r&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(w,a({},r))),e.createElement("div",{className:"listing-result-card__text"},v&&e.createElement("p",{className:"listing-result-card__category"},n),e.createElement("h2",null,e.createElement("a",{className:"listing-result-card__title",href:o},i)),(m||h)&&e.createElement("div",{className:"listing-result-card__staff-info"},m&&e.createElement("p",{className:"listing-result-card__job-title"},m),h&&e.createElement("p",{className:"listing-result-card__department"},h)),s&&e.createElement("p",{className:"listing-result-card__description"},s),d.length>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(De,{details:d,theme:l}))))}function Pa(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.image,r=c.title,i=c.url,o=c.description,s=c.jobTitle,m=c.department,h=c.details;return e.createElement(e.Fragment,null,n&&e.createElement("div",{className:"listing-result-card__image"},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:i},r)),(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),h.length>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(De,{details:h,theme:l}))))}function Oa(c){return e.createElement("article",{className:r("listing-result-card",c.theme&&"theme-".concat(c.theme))},"page"===c.type&&e.createElement(Ha,a({},c)),"course"===c.type&&e.createElement(La,a({},c)),"accomodation"===c.type&&e.createElement(Ta,a({},c)),"event"===c.type&&e.createElement(za,a({},c)),"news"===c.type&&e.createElement(Sa,a({},c)),"staff"===c.type&&e.createElement(Va,a({},c)),"profile"===c.type&&e.createElement(Pa,a({},c)))}function Za(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.numOfPages,n=c.onClick,i=c.currentPage,o=pe("768px"),s=e.createElement("li",null,e.createElement("span",{className:"pagination__ellipse"},"..."));return o&&l<=4?e.createElement(e.Fragment,null,Array(l).fill(0).map(function(c,t){return e.createElement("li",{className:r("pagination__number",i===t&&"pagination__number--selected"),key:t},e.createElement(u,{label:(t+1).toString(),onClick:function(){return n(t)},hollow:!(i===t),theme:a}))})):o&&l>4?e.createElement(e.Fragment,null,i>0&&e.createElement("li",{key:0,className:"pagination__number"},e.createElement(u,{label:"1",onClick:function(){return n(0)},theme:a,hollow:!0})),i+1>=3&&s,e.createElement("li",{key:i,className:"pagination__number pagination__number--selected"},e.createElement(u,{label:"".concat(i+1," "),onClick:function(){return n(i)},theme:a})),i+1<l-1&&s,i!==l-1&&e.createElement("li",{key:l-1,className:"pagination__number"},e.createElement(u,{label:l.toString(),onClick:function(){return n(l-1)},theme:a,hollow:!0}))):!o&&l<=6?e.createElement(e.Fragment,null,Array(l).fill(0).map(function(c,t){return e.createElement("li",{key:t,className:r("pagination__number",i===t&&"pagination__number--selected","test")},e.createElement(u,{label:(t+1).toString(),onClick:function(){return n(t)},hollow:!(i===t),theme:a}))})):!o&&l>6?e.createElement(e.Fragment,null,i>0&&e.createElement("li",{key:0,className:"pagination__number start"},e.createElement(u,{label:"1",onClick:function(){return n(0)},theme:a,hollow:!0})),i+1>=4&&s,i>1&&e.createElement("li",{key:i-1,className:"pagination__number before"},e.createElement(u,{label:(i>=1?i:i-1).toString(),onClick:function(){return n(i-1)},theme:a,hollow:!0})),e.createElement("li",{key:i,className:"pagination__number pagination__number--selected current"},e.createElement(u,{label:"".concat(i+1),onClick:function(){return n(i)},theme:a})),i+1<l-1&&e.createElement("li",{key:i+1,className:"pagination__number after"},e.createElement(u,{label:"".concat(i+2),onClick:function(){return n(i+1)},theme:a,hollow:!0})),i+1<l-2&&s,i+1!==l&&e.createElement("li",{key:l-1,className:"pagination__number end"},e.createElement(u,{label:"".concat(l),onClick:function(){return n(l-1)},theme:a,hollow:!0}))):e.createElement(e.Fragment,null)}function Ba(e,c){return o("".concat(null!=e?e:""," ").concat(c))}function Fa(c){var t=c.children,a=c.theme,l=void 0===a?"uobmain":a,n=c.inverse,i=void 0!==n&&n;return e.createElement("div",{className:r("tabs__list__container",l&&"theme-".concat(l),i&&"theme-".concat(l,"--inverse"))},e.createElement("ul",{className:"tabs__list",role:"tablist"},t))}function Da(c){var t=c.title,a=c.htmlTag,l=void 0===a?"h3":a,n=c.theme,i=void 0===n?"uobmain":n,o=c.inverse,s=void 0!==o&&o,m=c.isActive,h=c.children,d=c.tabsBlockName;if(!m)return null;var u=Ba(null!=d?d:"",t);return e.createElement("div",{id:d,className:r("tabs__panel",i&&"theme-".concat(i),s&&"theme-".concat(i,"--inverse")),role:"tabpanel","aria-labelledby":"tab_"+u},e.createElement(f,{htmlTag:l,classNames:"tabs__panel-title"},t),h)}function Ia(c){var t=c.id,a=c.theme,l=void 0===a?"uobmain":a,n=c.inverse,i=void 0!==n&&n,o=c.tabItem,s=c.isActive,m=c.hasFocus,h=c.tabsBlockName,d=c.handleClick,u=c.handleKeyboardNavigation,v=e.useRef(null);e.useEffect(function(){s&&m&&v.current&&(v.current.focus(),window.matchMedia("min-width: 768px").matches&&v.current.scrollIntoView())});var p=Ba(null!=h?h:"",o.title);return e.createElement("li",{className:"tabs__list-item",role:"presentation"},e.createElement("button",{className:r("tabs__tab",l&&"theme-".concat(l),i&&"theme-".concat(l,"--inverse"),s&&"active"),onClick:function(e){return d(e,t)},onKeyDown:u,ref:v,id:"tab_"+p,role:"tab","aria-controls":p,"aria-selected":s?"true":"false",tabIndex:s?0:-1,type:"button"},o.title))}function Aa(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.label,n=c.url,i=c.externalLink;return e.createElement("a",{className:r("pill",a&&"theme-".concat(a)),href:n,target:i?"_blank":"_self",rel:i?"noopener noreferrer":""},l)}Na.displayName="HeroCardContent",t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t();var Ra,$a={exports:{}};var ja,Wa=(Ra||(Ra=1,ja=$a,function(e,c){ja.exports=c()}(0,function(){var e=[],c=[],t={},a={},l={};function n(e){return"string"==typeof e?new RegExp("^"+e+"$","i"):e}function r(e,c){return e===c?c:e===e.toLowerCase()?c.toLowerCase():e===e.toUpperCase()?c.toUpperCase():e[0]===e[0].toUpperCase()?c.charAt(0).toUpperCase()+c.substr(1).toLowerCase():c.toLowerCase()}function i(e,c){return e.replace(c[0],function(t,a){var l,n,i=(l=c[1],n=arguments,l.replace(/\$(\d{1,2})/g,function(e,c){return n[c]||""}));return r(""===t?e[a-1]:t,i)})}function o(e,c,a){if(!e.length||t.hasOwnProperty(e))return c;for(var l=a.length;l--;){var n=a[l];if(n[0].test(c))return i(c,n)}return c}function s(e,c,t){return function(a){var l=a.toLowerCase();return c.hasOwnProperty(l)?r(a,l):e.hasOwnProperty(l)?r(a,e[l]):o(l,a,t)}}function m(e,c,t,a){return function(a){var l=a.toLowerCase();return!!c.hasOwnProperty(l)||!e.hasOwnProperty(l)&&o(l,l,t)===l}}function h(e,c,t){return(t?c+" ":"")+(1===c?h.singular(e):h.plural(e))}return h.plural=s(l,a,e),h.isPlural=m(l,a,e),h.singular=s(a,l,c),h.isSingular=m(a,l,c),h.addPluralRule=function(c,t){e.push([n(c),t])},h.addSingularRule=function(e,t){c.push([n(e),t])},h.addUncountableRule=function(e){"string"!=typeof e?(h.addPluralRule(e,"$0"),h.addSingularRule(e,"$0")):t[e.toLowerCase()]=!0},h.addIrregularRule=function(e,c){c=c.toLowerCase(),e=e.toLowerCase(),l[e]=c,a[c]=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 h.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 h.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 h.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(h.addUncountableRule),h})),$a.exports),Ua=wc(Wa);function Ga(c){var t=c.theme,l=c.heading,n=c.selectContent,i=c.defaultIsOpen,o=void 0!==i&&i;n&&(o=!!n.defaultValue||o);var s=e.useState(o),h=s[0],d=s[1];return e.createElement("fieldset",{className:r("filter-accordion-select",h&&"filter-accordion-select--open",t&&"theme-".concat(t))},e.createElement("legend",{className:"filter-accordion-select__legend"},e.createElement("button",{className:"filter-accordion-select__button",onClick:function(){return d(function(e){return!e})},"aria-expanded":h,"aria-controls":l.replace(" ","")},l,e.createElement(m,{icon:"chevron-down",theme:t,inverse:!0,ariaHidden:!0}))),h&&e.createElement("div",{className:"filter-accordion-select__select-wrapper"},e.createElement(ta,a({theme:t,inverse:!0},n))))}function Ka(c){var t=c.theme,a=c.name,l=c.id,n=c.label,i=c.defaultValue,o=c.onChange;return e.createElement("div",{className:r("date-input",t&&"theme-".concat(t))},e.createElement("label",{htmlFor:l,className:"date-input__label"},n),e.createElement("input",{type:"date",className:"date-input__input",defaultValue:i,onChange:o,name:a,id:l}))}t(),t(),t();var Ya,Ja=function(e){var c=e.split(" "),t=c[c.length-1];return c[c.length-1]=Ua(t),c.join(" ")};function Qa(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.imageSrc,n=c.onClick;return e.createElement("div",{className:r("video-placeholder",a&&"theme-".concat(a))},e.createElement(w,{src:l,altText:""}),e.createElement("button",{className:"video-placeholder__button",onClick:n},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 Xa(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.imageSrc,n=c.videoUrl,i=c.videoId,o=e.useState(!1),s=o[0],m=o[1];return e.createElement("div",{className:r("video-with-placeholder",a&&"theme-".concat(a))},s?e.createElement(qe,{url:n,id:i,autoPlay:!0,theme:a}):e.createElement(Qa,{imageSrc:l,onClick:function(){return m(!0)},theme:a}))}t(),t(),t(),t(),t(),t(),function(e){e.NotSpecified="NotSpecified",e.ColumnAndRowHeadings="ColumnAndRowHeadings",e.ColumnHeadingsOnly="ColumnHeadingsOnly"}(Ya||(Ya={})),t(),t(),t(),t(),t(),t(),exports.Accordion=b,exports.AcreditationPromotion=function(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.heading,i=c.intro,o=c.accreditations,m=c.htmlTag,h=void 0===m?"h2":m,d=c.fullWidth,u=void 0!==d&&d;return e.createElement("section",{className:r("accreditation-promotion",l&&"theme-".concat(l),u&&"accreditation-promotion--full-width")},e.createElement("div",{className:"accreditation-promotion__container"},n&&e.createElement(f,{classNames:"accreditation-promotion__heading",htmlTag:h},n),i&&e.createElement("p",{className:"accreditation-promotion__intro"},i),e.createElement("ul",null,o.map(function(c,t){return e.createElement("li",{className:r("accreditation-promotion__accreditation",t%2==0?"accreditation-promotion__accreditation--right":"accreditation-promotion__accreditation--left"),key:t},c.image&&e.createElement("div",{className:"accreditation-promotion__image-wrapper"},e.createElement(w,a({},c.image))),e.createElement(s,{theme:l,text:c.text,inverse:!0,fullWidth:!0}))}))))},exports.AlertBanner=function(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.inverse,n=void 0!==l&&l,i=c.type,o=c.richText,h=e.useState(!0),d=h[0],u=h[1];return e.useEffect(function(){try{window.sessionStorage.getItem("alertBannerIsHidden")&&u(!window.sessionStorage.getItem("alertBannerIsHidden"))}catch(e){console.error(e)}},[]),e.createElement(e.Fragment,null,d&&e.createElement("div",{className:r("alert-banner",a&&"theme-".concat(a),n&&"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:n?"warning-light":"warning-dark",inverse:n}),"success"===i&&e.createElement(m,{theme:a,icon:"success",inverse:n}),"information"===i&&e.createElement(m,{theme:a,icon:"information",inverse:n})),e.createElement(s,{theme:a,text:o.text,inverse:n})),e.createElement(q,{theme:a,icon:"cross",inverse:n,title:"Hide alert banner",onClick:function(){return function(){u(!1);var e=JSON.stringify(d);window.sessionStorage.setItem("alertBannerIsHidden",e)}()}}))))},exports.AnchorTarget=function(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.inverse,n=void 0===l||l,i=c.includeDivider,o=void 0===i||i,s=c.targetLabel,m=c.landmarkLabel,h=c.children,d=e.useRef(null);return e.useEffect(function(){var e=d.current;if(e){var c=!1,t=e.querySelector("h1,h2,h3,h4,h5,h6"),a=function(e){return!!e&&(e.hasAttribute("tabindex")||(e.setAttribute("tabindex","-1"),c=!0),t=e,!0)};if(!a(t)){var l=new MutationObserver(function(){var c=e.querySelector("h1,h2,h3,h4,h5,h6");a(c)&&l.disconnect()});return l.observe(e,{childList:!0,subtree:!0}),function(){return l.disconnect()}}return function(){c&&t&&t.removeAttribute("tabindex")}}},[s]),e.createElement("div",{id:s,ref:d,role:m?"region":void 0,"aria-label":m||void 0,className:r("anchor-target",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"))},o&&e.createElement("hr",{className:"anchor-target__divider",role:"none"}),h)},exports.Breadcrumbs=function(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.inverse,i=void 0!==n&&n,o=c.links;return e.createElement("nav",{className:r("breadcrumbs",l&&"theme-".concat(l),i&&"theme-".concat(l,"--inverse"))},e.createElement("ol",{className:"breadcrumbs__list"},o.slice(0,-1).map(function(c){return e.createElement("li",{className:"breadcrumbs__link",key:c.title},e.createElement(m,{icon:"chevron-right",theme:l,ariaHidden:!0}),e.createElement(y,a({theme:l,inverse:i},c)))})))},exports.CTAComponent=function(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.inverse,i=c.highlight,o=void 0!==i&&i,s=c.image,m=c.heading,h=c.copy,d=c.primaryCTA,p=c.secondaryCTA,g=c.link,E=c.fullWidth,_=void 0!==E&&E,b=c.htmlTag,q=void 0===b?"h2":b,y=!o&&!!n;return e.createElement("div",{className:r("cta-component",l&&"theme-".concat(l),n&&"theme-".concat(l,"--inverse"),o&&"theme-".concat(l,"--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:q,classNames:"cta-component__heading"},m),h&&e.createElement("p",{className:"cta-component__copy"},h))),e.createElement("div",{className:"cta-component__button-wrapper"},d&&e.createElement(u,a({},d,{inverse:y})),p&&e.createElement(u,a({},p,{hollow:!0,inverse:y}))),g&&e.createElement(v,a({},g,{inverse:!y})))))},exports.CardImageAndText=function(c){var t=c.theme,l=c.inverse,n=c.image,i=c.title,o=c.titleTag,s=void 0===o?"h2":o,m=c.text;return e.createElement("div",{className:r("card-image-and-text",t&&"theme-".concat(t),l&&"theme-".concat(t,"--inverse"),!i&&"card-image-and-text__no-title")},n&&e.createElement("div",{className:"card-image-and-text__image"},e.createElement(w,a({},n))),e.createElement("div",{className:"card-image-and-text__text"},i&&e.createElement(f,{classNames:r("card-image-and-text__heading-padding","card-image-and-text__".concat(s)),htmlTag:s},i),m&&e.createElement(g,{theme:t,inverse:l,text:m})))},exports.CardProfile=function(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.inverse,i=void 0===n||n,o=c.image,s=c.name,m=c.courseTitle,h=c.href,d=c.copy,u=c.titleTag,v=void 0===u?"h3":u;return e.createElement("article",{className:r("card-profile",l&&"theme-".concat(l),i&&"theme-".concat(l,"--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:h},"h2"===v&&e.createElement("h2",{className:"card-profile__title"},s),"h3"===v&&e.createElement("h3",{className:"card-profile__title"},s)),m&&e.createElement("p",{className:"card-profile__course-title"},m),d&&e.createElement("p",{className:"card-profile__copy"}," ",d.length>120?"".concat(d.slice(0,120),"..."):d)))))},exports.CardPromoProfile=Ie,exports.CardPromoSignpost=Le,exports.CardStaff=He,exports.Carousel=Re,exports.CentreWrapper=function(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.children;return e.createElement("div",{className:r("centre-wrapper",a&&"theme-".concat(a))},e.createElement("div",{className:"centre-wrapper__grid-container"},e.createElement("div",{className:"centre-wrapper__children"},l)))},exports.ClearingBanner=function(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.text,n=c.showIcon,i=void 0===n||n,o=c.smallLink,s=c.mainLink;return e.createElement("div",{className:r("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(Se,{theme:a,icon:"clearing-tick"})),e.createElement("div",null,e.createElement("span",null,l),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(Ne,{theme:a,inverse:!1,label:s.label,url:s.url,icon:s.icon,iconPosition:s.iconPosition}))))},exports.CourseDeliveryPills=function(c){var t=c.pills,l=c.theme,n=void 0===l?"uobmain":l;return e.createElement("div",{className:r("course-delivery-pills",n&&n&&"theme-".concat(n))},t.map(function(c,t){return e.createElement(h,a({key:t},c,{theme:n}))}))},exports.EmbedWrapper=$e,exports.FactBoxes=function(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.inverse,i=void 0!==n&&n,o=c.title,s=c.description,m=c.linkProps,h=c.cards,d=c.fullWidth,u=void 0!==d&&d,v=c.htmlTag,p=c.showCardColumn,f=void 0===p||p;return e.createElement("section",{className:r("fact-boxes",l&&"theme-".concat(l),i&&"theme-".concat(l,"--inverse"),u&&"fact-boxes--full-width",f&&3===h.length&&"fact-boxes--three-facts",f&&2===h.length&&"fact-boxes--two-facts",f&&1===h.length&&"fact-boxes--one-fact")},(o||s)&&e.createElement(_,{theme:l,inverse:i,htmlTag:v,title:o,description:s,linkProps:m}),e.createElement("div",{className:"fact-boxes__container"},e.createElement("ul",{className:"fact-boxes__grid"},h.map(function(c,t){return e.createElement("li",{className:"fact-boxes__card",key:t},e.createElement(je,a({},c,{inverse:!i})))}))))},exports.FeaturedContent=function(t){var a=t.theme,l=t.cards,n=l.length>1,i=e.useState(0),o=i[0],s=i[1],m=e.useState("first"),h=m[0],d=m[1],u=e.useState("0"),v=u[0],p=u[1],f=e.useState("0"),g=f[0],E=f[1],_=e.useState("0"),b=_[0],w=_[1],q=e.useState("0"),y=q[0],M=q[1],C=l[o],N=e.useRef(null),k=pe("768px"),x=pe("1248px");e.useEffect(function(){switch(o){case 0:d("first"),p(ge.first.top),E(Ee.first.bottom),w(_e.first.top),M(be.first.bottom);break;case 1:d("second"),p(ge.second.top),E(Ee.second.bottom),w(_e.second.top),M(be.second.bottom);break;case 2:d("third"),p(ge.third.top),E(Ee.third.bottom),w(_e.third.top),M(be.third.bottom)}},[o,h]);var T=n?e.createElement(Ae,{theme:a,totalNumber:l.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===l.length-1}):e.createElement(e.Fragment,null);return e.createElement("div",{className:r("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"},k&&e.createElement(Re,{theme:a,type:"featured",inverse:!0,cards:l}),!k&&e.createElement(e.Fragment,null,e.createElement(c.motion.section,{className:"featured-content__active-card",key:o,initial:{opacity:0},animate:{opacity:1}},e.createElement(we,{theme:a,imagePrimary:C.imagePrimary,imageSecondary:C.imageSecondary,imageTertiary:C.imageTertiary,categoryLabel:C.categoryLabel,slideTitle:C.slideTitle,subTitle:C.subTitle,introText:C.introText,link:C.link,linkText:C.linkText,cardOrder:C.cardOrder,activeVariant:h,leftInitialPositionTablet:v,rightInitialPositionTablet:g,leftInitialPositionDesktop:b,rightInitialPositionDesktop:y,isMobile:!1,isTablet:x,ref:N}))))),!k&&n&&l.map(function(c,t){return e.createElement("div",{className:"featured-content__invisible-card featured-content__invisible-card--desktop",key:t,"aria-hidden":!0},e.createElement("section",null,e.createElement(we,{theme:a,categoryLabel:c.categoryLabel,slideTitle:c.slideTitle,subTitle:c.subTitle,introText:c.introText,link:c.link,linkText:c.linkText,cardOrder:c.cardOrder,activeVariant:h,imagePrimary:{src:{default:""}},imageSecondary:{src:{default:""}},imageTertiary:{src:{default:""}}})))})),e.createElement("div",{className:"featured-content__nav featured-content__nav--desktop"},T))},exports.FeaturedSignpost=function(c){var t=c.theme,a=c.inverse,l=c.position,n=c.category,i=c.title,o=c.description,s=c.linkUrl,m=c.linkLabel,h=c.linkIsExternal,d=void 0!==h&&h,u=c.imageAlt,p=c.imageSrc,f=pe("1248px");return e.createElement("div",{className:r("featured-signpost","featured-signpost--".concat(l),t&&"theme-".concat(t),a&&"theme-".concat(t,"--inverse"))},"left"===l&&e.createElement("div",{className:"featured-signpost__image-container featured-signpost__image-container--mobile"},e.createElement(rc,{isMobile:!0,isTablet:!1,position:l,imageSrc:p,imageAlt:u}),e.createElement(oc,{isMobile:!0,isTablet:!1,position:l})),"left"===l&&e.createElement("div",{className:"featured-signpost__image-container featured-signpost__image-container--desktop"},e.createElement(rc,{isMobile:!1,isTablet:f,position:l,imageSrc:p,imageAlt:u}),e.createElement(oc,{isMobile:!1,isTablet:f,position:l})),e.createElement("div",{className:"featured-signpost__content-wrapper"},e.createElement("div",{className:"featured-signpost__content"},n&&e.createElement("p",{className:"featured-signpost__category"},n)," ",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(v,{url:s,title:m,theme:t,inverse:a,externalLink:d})))),"right"===l&&e.createElement("div",{className:"featured-signpost__image-container featured-signpost__image-container--mobile"},e.createElement(rc,{isMobile:!0,isTablet:!1,position:l,imageSrc:p,imageAlt:u}),e.createElement(oc,{isMobile:!0,isTablet:!1,position:l})),"right"===l&&e.createElement("div",{className:"featured-signpost__image-container featured-signpost__image-container--desktop"},e.createElement(rc,{isMobile:!1,isTablet:f,position:l,imageSrc:p,imageAlt:u}),e.createElement(oc,{isMobile:!1,isTablet:f,position:l})))},exports.FeaturedVideo=function(c){var t=c.theme,a=c.title,l=c.image,n=c.youtubeId,i=c.youtubeButtonLabel,o=void 0===i?"Watch the video":i,s=c.audioYoutubeButtonLabel,m=void 0===s?"Watch the audio described video":s,h=c.audioYoutubeId,d=e.useState(!1),u=d[0],v=d[1],p=e.useRef(n),f=pe("768px"),g=function(){v(!1),document.body.classList.remove("lock-scroll")},E=function(e){p.current=e,u?g():(v(!0),document.body.classList.add("lock-scroll"))};return e.createElement(e.Fragment,null,e.createElement("section",{className:r("featured-video",t&&"theme-".concat(t))},f?e.createElement("div",{className:"featured-video__mobile-image"},e.createElement("div",{className:"featured-video__image-wrapper",style:{backgroundImage:"url(".concat(l.src.default,")"),backgroundPosition:"50% 50%",backgroundSize:"cover",backgroundRepeat:"no-repeat"}})):e.createElement(sc,{offset:100},e.createElement("div",{className:"featured-video__image-wrapper",style:{backgroundImage:"url(".concat(l.src.default,")"),backgroundPosition:"50% 50%",backgroundSize:"cover",backgroundRepeat:"no-repeat"}})),e.createElement("div",{className:"featured-video__container"},e.createElement("h2",{className:"featured-video__title"},a),e.createElement("div",{className:"featured-video__button-wrapper"},e.createElement(Ne,{theme:t,inverse:!0,label:o,icon:"play",onClick:function(){return E(n)}}),h&&e.createElement("button",{className:"featured-video__button-audio",type:"button",onClick:function(){return E(h)}},m)))),u&&e.createElement(Ce,{theme:t,closeModal:g,isOpen:u},e.createElement(qe,{theme:t,id:p.current,autoPlay:!0})))},exports.FiveArticlesGrid=function(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.heading,i=c.featuredArticle,o=c.otherLeadArticles;return e.createElement("section",{className:r("five-articles-grid",l&&"theme-".concat(l))},e.createElement("div",{className:"five-articles-grid__container"},n&&e.createElement("h2",{className:"five-articles-grid__heading"},n),e.createElement("div",{className:"five-articles-grid__main-container"},e.createElement("div",{className:"five-articles-grid__featured-card"},e.createElement(Oe,a({},i,{isPrimary:!0}))),e.createElement("ul",{className:"five-articles-grid__secondary-card-container"},o.map(function(c,t){return e.createElement("li",{className:"five-articles-grid__secondary-card",key:t},e.createElement(Oe,{theme:l,image:c.image,title:c.title,href:c.href,titleTag:c.titleTag,publishDate:c.publishDate}))})))))},exports.Footer=function(c){var t=c.theme,a=c.locations,l=c.summaryLinks,n=c.hygieneLinks,r=c.activeCampus,i=void 0===r?"uk":r,o=c.address,s=c.telephoneAsNumber,h=c.telephoneAsDisplay,d=c.telIntroText,u=void 0===d?"":d,p=c.socialIcons;return e.createElement("footer",{id:"footer",className:"footer theme-".concat(t),"data-element":"footer"},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(uc,{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.map(function(c,t){return e.createElement("p",{className:"footer__address-line",key:t},c)})),e.createElement("div",{className:"footer__telephone"},u&&e.createElement("p",null,u),"Tel:",e.createElement(mc,{theme:t,url:"tel: ".concat(s),title:h,externalLink:!1})),e.createElement("ul",{className:"footer__social-wrapper"},p.map(function(c,a){return e.createElement("li",{key:a},e.createElement(ye,{icon:c.icon,theme:t,url:c.url,title:c.title,externalLink:!1}))}))),e.createElement("div",{className:"footer__column-middle"},e.createElement("details",{className:"footer__details",open:!l},e.createElement("summary",{className:"footer__summary-links"},"Global Footprint",e.createElement("i",{className:"footer__summary-icon"},e.createElement(m,{icon:"chevron-down",theme:t}))),e.createElement("ul",null,a.map(function(c,a){return e.createElement("li",{className:"footer__location",key:a},e.createElement("i",{className:"footer__location-icon"},e.createElement(m,{icon:"location",theme:t})),e.createElement(mc,{theme:t,url:c.href,title:c.label,externalLink:c.externalLink}))}))),e.createElement("ul",null,l&&l.map(function(c,a){return e.createElement("li",{className:"footer__arrow-link",key:a},e.createElement(v,{theme:t,title:c.label,url:c.href,externalLink:c.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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.1-1.9l0.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%2c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-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%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' d='M377.9%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"},n.map(function(c,a){return e.createElement("li",{className:"footer__hygiene-link",key:"hygiene-".concat(a)},e.createElement(mc,{theme:t,url:c.href,title:c.label,externalLink:c.externalLink}))})),e.createElement("p",{className:"footer__copyright"},"© University of Birmingham ",(new Date).getFullYear()))))},exports.GeneralSearchFilter=function(c){var t=c.theme,a=c.heading,l=c.typeName,n=c.typeGroups,i=c.onClearFilters,o=c.onViewResults,s=c.defaultCheckedType,m=n.find(function(e){return e.value===s});return e.createElement("div",{className:r("general-search-filter",t&&"theme-".concat(t))},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(bc,{type:"radio",heading:"Type",theme:t,defaultIsOpen:!0,inputs:n.map(function(e){return{name:l,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(c){return e.createElement("li",{className:"standard-listing-filter__item",key:c.name},e.createElement(bc,{type:"checkbox",heading:c.heading,theme:t,inputs:c.inputs.map(function(e){return{name:c.name,value:e.value,label:e.label,id:e.id,defaultChecked:!!c.defaultValues&&c.defaultValues.includes(e.value),onChange:c.onChange}})}))})),o&&e.createElement("div",{className:"general-search-filter__results-button"},e.createElement(u,{label:"View filtered results",onClick:o,theme:t})),e.createElement("div",{className:"general-search-filter__clear-button"},e.createElement(u,{label:"Clear filters",onClick:i,theme:t,hollow:!0})))},exports.GenericDetailSection=function(c){var t=c.theme,l=c.title,n=c.detailColumns,i=c.buttons;return e.createElement("section",{className:r("generic-detail-section",t&&"theme-".concat(t))},e.createElement("div",{className:"generic-detail-section__container"},l&&e.createElement("h2",{className:"generic-detail-section__title"},l),e.createElement("ul",{className:"generic-detail-section__details-container"},n.map(function(c,l){return e.createElement("ul",{key:l,className:"generic-detail-section__column"},c.map(function(c){return e.createElement("li",{className:"generic-detail-section__detail",key:c.title},e.createElement(fc,a({},c,{theme:t})))}),3===n.length&&2===l&&i&&i.map(function(c,n){return e.createElement("li",{key:n,className:"generic-detail-section__detail generic-detail-section__detail--button"},gc(c)?e.createElement(Ne,a({},c,{theme:t,hollow:l%2!=0})):e.createElement(u,a({},c,{theme:t,hollow:l%2!=0})))}))}),n.length<3&&i&&e.createElement("ul",null,i.map(function(c,l){return e.createElement("li",{key:l,className:"generic-detail-section__detail generic-detail-section__detail--button"},gc(c)?e.createElement(Ne,a({},c,{theme:t})):e.createElement(u,a({},c,{theme:t,hollow:l%2!=0})))})))))},exports.Header=function(t){var a=t.theme,n=void 0===a?"uobmain":a,i=t.primaryLinks,o=t.secondaryLinks,s=t.menuCards,m=t.dubaiUrl,h=t.ukUrl,d=t.logoTitleTagH1,v=void 0===d||d,p=t.activeCampus,f=void 0===p?"uk":p,g=t.searchProps,E=function(){var c=e.useState(null),t=c[0],a=c[1];return e.useEffect(function(){var e=window.scrollY,c=function(){var c=window.scrollY,l=c>e?"down":"up";l!==t&&(c-e>3||c-e<-3)&&a(l),e=c>0?c:0};return window.addEventListener("scroll",c),function(){window.removeEventListener("scroll",c)}},[t]),t}(),_=e.useState(!1),b=_[0],w=_[1],q=e.useRef(null),y=e.useRef(null),M=e.useRef(null),C=pe("768px"),N=e.useState(0),k=N[0],x=N[1],T=e.useState(null),L=T[0],z=T[1],S=e.useState(null),H=S[0],V=S[1],P=e.useState(!1),O=P[0],Z=P[1],B=e.useState(!1),F=B[0],D=B[1],I=e.useState(""),A=I[0],R=I[1],$=function(){w(!0),document.body.classList.add("lock-scroll")},j=function(){Z(!0),$()},W=function(){Z(!1),D(!1)},U=function(){w(!1),W(),document.body.classList.remove("lock-scroll"),x(0),z(null),V(null),q.current&&q.current.focus()},G=function(){x(0),z(null),W()},K=function(){x(1),V(null),W()},Y=function(e){"Escape"===e.key&&b&&U()};e.useEffect(function(){return document.addEventListener("keydown",Y),function(){document.removeEventListener("keydown",Y)}}),e.useEffect(function(){if(y.current&&"down"===E){var e=y.current.offsetHeight;y.current.style.top="-".concat(e,"px")}else if(y.current&&"up"===E){var c=0;M.current&&y.current&&(c=M.current.offsetHeight),y.current.style.top="-".concat(c,"px")}},[E]);var J=null,Q=null;null!==L&&(J=l(l([],i,!0),o,!0)[L],null!==H&&J.children&&(Q=J.children[H]));var X=e.createElement("div",{className:"header__campus-selector header__campus-selector--mobile"},e.createElement(Jt,{theme:n,dubaiUrl:m,ukUrl:h,active:f,mobile:!0})),ee=e.createElement("div",{className:"header__campus-selector header__campus-selector--desktop",ref:M},e.createElement(Jt,{theme:n,dubaiUrl:m,ukUrl:h,active:f,mobile:!1})),ce=e.createElement("div",{className:"header__campus-selector header__campus-selector--desktop"},e.createElement(Jt,{theme:n,dubaiUrl:m,ukUrl:h,active:f,mobile:!1})),te=function(e){R(e.target.value)},ae=function(e){if(e.preventDefault(),"undefined"!=typeof window){var c=g.resultsUrl;window.location.href=A?"".concat(c,"?term=").concat(A):"".concat(c)}};return e.createElement("header",{className:r("header",n&&"theme-".concat(n),!b&&"header--is-closed","header--".concat(f)),id:"header",ref:y},e.createElement("div",{className:"header__closed"},ee,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(uc,{activeCampus:f,imageMode:"light",classNames:"header__logo-link",imageAltText:"uk"===f?"University of Birmingham":"University of Birmingham Dubai"})):e.createElement(uc,{activeCampus:f,imageMode:"light",classNames:"header__logo-link"},e.createElement("span",{className:"sr-only"},"uk"===f?"University of Birmingham":"University of Birmingham Dubai")))),e.createElement("div",{className:"header__right-wrapper"},e.createElement("div",{className:"header__search-button"},e.createElement(u,{theme:n,label:"Search",onClick:function(){D(!0),j()},hollow:!0})),e.createElement("div",{className:"header__menu-button"},e.createElement("span",null,"Menu"),e.createElement(ye,{theme:"uobmain",icon:"hamburger",onClick:$,title:"Open menu",ariaControls:"header",ref:q,ariaExpanded:b}))))),e.createElement(c.AnimatePresence,null,b&&e.createElement(It,null,e.createElement(c.motion.div,{className:"header__open",initial:{x:"100%"},animate:{x:"0"},exit:{x:"100%"},transition:{type:"tween"},key:"header__open"},ce,e.createElement("div",{className:"header__top-container"},e.createElement("div",{className:"header__logo-wrapper"},e.createElement(uc,{activeCampus:f,imageMode:"dark",classNames:"header__logo-link"},e.createElement("h1",{className:"sr-only"},"uk"===f?"University of Birmingham":"University of Birmingham Dubai"))),e.createElement("div",{className:"header__right-wrapper"},!C&&!O&&e.createElement("div",{className:"header__search-button-menu"},e.createElement(u,{theme:n,inverse:!0,label:"Search",onClick:j,hollow:!0})),e.createElement("div",{className:"header__menu-button"},e.createElement("span",null,"Menu"),e.createElement(ye,{theme:"uobmain",inverse:!0,icon:"cross",onClick:U,title:"Close menu",ariaControls:"header"})))),C&&!O&&e.createElement("div",{className:"header__search-button-mobile"},e.createElement(u,{theme:n,inverse:!0,label:"Search",onClick:j,hollow:!0})),0===k&&!O&&e.createElement(jt,{primaryLinks:i,secondaryLinks:o,menuCards:s,onClickNavLink:function(e){x(1),z(e)},theme:n}),0===k&&O&&e.createElement(Kt,{theme:n,introText:g.introText,placeholder:g.placeholder,title:g.title,handleSearchChange:te,handleSearchSubmit:ae,onClickGoBack:F?void 0:G,backLinkLabel:F?"":"Back to menu",recommendedLinks:g.recommendedLinks,recommendedLinkTitle:g.recommendedLinkTitle}),1===k&&J&&!O&&e.createElement(Ut,{headingLink:J,onClickNavLink:function(e){x(2),V(e)},theme:n,onClickGoBack:G,backLinkLabel:"Back to menu"}),1===k&&J&&O&&e.createElement(Kt,{theme:n,introText:g.introText,placeholder:g.placeholder,title:g.title,handleSearchChange:te,handleSearchSubmit:ae,onClickGoBack:K,backLinkLabel:"Back to ".concat(J.label),recommendedLinks:g.recommendedLinks,recommendedLinkTitle:g.recommendedLinkTitle}),2===k&&J&&Q&&!O&&e.createElement(Ut,{headingLink:Q,onClickNavLink:function(){},theme:n,onClickGoBack:K,backLinkLabel:"Back to ".concat(J.label)}),2===k&&J&&Q&&O&&e.createElement(Kt,{theme:n,introText:g.introText,placeholder:g.placeholder,title:g.title,handleSearchChange:te,handleSearchSubmit:ae,onClickGoBack:function(){x(2),W()},backLinkLabel:"Back to ".concat(Q.label),recommendedLinks:g.recommendedLinks,recommendedLinkTitle:g.recommendedLinkTitle}),X))))},exports.Heading=_,exports.Hero=function(c){var t=c.theme,l=c.inverse,n=c.title,i=c.titleTag,o=void 0===i?"h2":i,s=c.description,m=c.image,h=c.links,d=c.courseSearchProps,v=pe("768px"),p=pe("1248px");return e.createElement("div",{className:r("hero",t&&"theme-".concat(t),l&&"theme-".concat(t,"--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(Xt,{isMobile:!0,isTablet:!1,image:m}),e.createElement(ca,{isMobile:!0,isTablet:!1})),e.createElement("div",{className:"hero__container"},e.createElement("div",{className:"hero__content"},e.createElement(o,{className:"hero__title"},n),s&&e.createElement("div",{className:"hero__description"},e.createElement(g,{text:s,theme:t,inverse:l})),h&&h.length>0&&e.createElement("div",{className:"hero__buttons"},h.map(function(c,a){return e.createElement(u,{theme:t,key:a,url:c.url,label:c.title,externalLink:c.externalLink,inverse:!l,hollow:1===a})})),d&&e.createElement(aa,a({theme:t,inverse:l,wrapped:!0},d))),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&&p&&e.createElement("div",{className:"hero__image-wrapper hero__image-wrapper--desktop hero__image-wrapper--polygon"},e.createElement(Xt,{isMobile:!1,isTablet:!0,image:m}),e.createElement(ca,{isMobile:!1,isTablet:!0})),m&&"lines-of-intent"===m.style&&!v&&!p&&e.createElement("div",{className:"hero__image-wrapper hero__image-wrapper--desktop hero__image-wrapper--polygon"},e.createElement(Xt,{isMobile:!1,isTablet:!1,image:m}),e.createElement(ca,{isMobile:!1,isTablet:!1}))))},exports.HeroArticle=function(c){var t=c.theme,l=c.inverse,n=c.title,i=c.titleTag,o=void 0===i?"h2":i,s=c.description,m=c.cardImage,h=c.publishDate,d=c.readTime,u=c.shareButtons,v=c.author,p=Array.isArray(v)?v:[v];return e.createElement("section",{className:r("hero-article",t&&"theme-".concat(t),l&&"theme-".concat(t,"--inverse"))},e.createElement("div",{className:"hero-article__container"},e.createElement("div",{className:"hero-article__content"},e.createElement(o,{className:"hero-article__title"},n),e.createElement("p",{className:"hero-article__description"},s),e.createElement("div",{className:"hero-article__meta-data"},h&&e.createElement("span",{className:"hero-article__publish-date"},h),h&&d&&e.createElement("span",{className:"hero-article__separator"},"•"),d&&e.createElement("span",{className:"hero-article__read-time"},d),v&&e.createElement(e.Fragment,null,e.createElement("span",{className:"hero-article__separator"},"•"),e.createElement("span",{className:"hero-article__author"},"by ",e.createElement(na,{items:p})))),e.createElement("div",{className:"hero-article__sharing-buttons"},e.createElement(la,{theme:t,label:u.label,icons:u.icons,inverse:l})))),m&&e.createElement("div",{className:"hero-article__image-wrapper"},e.createElement(Pe,a({},m,{inverse:l}))))},exports.HeroCarousel=function(t){var a=t.theme,l=t.cards,n=l.length>1,i=e.useState(0),o=i[0],s=i[1],m=l[o],h=e.useRef(null),d=pe("768px"),u=pe("1248px"),v="";switch(o){case 0:v="first";break;case 1:v="second";break;case 2:v="third"}var p=n?e.createElement(Ae,{theme:a,totalNumber:l.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===l.length-1,showNumbers:!0}):e.createElement(e.Fragment,null);return e.createElement("div",{className:r("hero-carousel",a&&"theme-".concat(a)),id:"hero-carousel"},e.createElement("div",{className:"hero-carousel__top"},e.createElement("div",{className:"hero-carousel__content"},d&&e.createElement("div",{className:"hero-carousel__image-container hero-carousel__image-container--mobile"},e.createElement(Ca,{isMobile:!0,isTablet:!1,activeVariant:v,imageSrc:m.imageSrc,imageAlt:m.imageAlt}),e.createElement(Ma,{isMobile:!0,isTablet:!1,activeVariant:v})),e.createElement("div",{className:"hero-carousel__cards"},e.createElement(c.motion.section,{className:"hero-carousel__active-card",key:o,initial:{opacity:0},animate:{opacity:1}},e.createElement(Na,{category:m.category,title:m.title,description:m.description,linkUrl:m.linkUrl,linkLabel:m.linkLabel,theme:a,ref:h})),d&&n&&l.map(function(c,t){return e.createElement("section",{className:"hero-carousel__invisible-card hero-carousel__invisible-card--mobile",key:t,"aria-hidden":!0},e.createElement(Na,{category:c.category,title:c.title,description:c.description,linkUrl:c.linkUrl,linkLabel:c.linkLabel,theme:a}))}),e.createElement("div",{className:"hero-carousel__nav hero-carousel__nav--desktop"},p)),e.createElement("div",{className:"hero-carousel__image-container hero-carousel__image-container--desktop"},e.createElement(Ca,{isMobile:!1,isTablet:u,activeVariant:v,imageSrc:m.imageSrc,imageAlt:m.imageAlt}),e.createElement(Ma,{isMobile:!1,isTablet:u,activeVariant:v}))),!d&&n&&l.map(function(c,t){return e.createElement("div",{className:"hero-carousel__invisible-card hero-carousel__invisible-card--desktop",key:t,"aria-hidden":!0},e.createElement("section",null,e.createElement(Na,{category:c.category,title:c.title,description:c.description,linkUrl:c.linkUrl,linkLabel:c.linkLabel,theme:a})))})),d&&e.createElement("div",{className:"hero-carousel__nav hero-carousel__nav--mobile"},p))},exports.HeroCourses=function(c){var t,l=c.theme,n=c.title,i=c.titleTag,o=void 0===i?"h2":i,s=c.awardShort,m=c.links,h=c.ranking,d=c.award,v=c.campus,p=c.ucas,g=c.duration,E=c.entryRequirements,_=c.startDate,b=c.yearOfEntry,w=c.fees,q=c.deliveryFormat,y=c.locationDetails,M=c.modalCTA;return e.createElement("section",{className:r("hero-courses",l&&"theme-".concat(l)),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"},n&&n.length>0&&s&&s.length>0?n+" ":n,e.createElement("span",{className:"hero-courses__title-award"},s))),y&&e.createElement("div",{className:"hero-courses__location-wrapper"},e.createElement(ma,a({},y,{inverse:!1}))),e.createElement("ul",{className:(t="hero-courses__grid--four",h&&(v||q||p)?t="hero-courses__grid--six":(h&&!v&&!q&&!p||!h&&(v||q||p))&&(t="hero-courses__grid--five"),"hero-courses__grid "+t)},h&&e.createElement("li",{className:"hero-courses__column hero-courses__column--ranking"},e.createElement(sa,a({},h))),(p||v||q)&&e.createElement("li",{className:"hero-courses__column hero-courses__column--split hero-courses__column--award"},p&&e.createElement(ia,a({},p)),v&&e.createElement(ia,a({},v)),q&&e.createElement(ia,a({},q))),g&&b?e.createElement("li",{className:"hero-courses__column hero-courses__column--split hero-courses__column--duration"},e.createElement(oa,a({},b)),e.createElement(ia,a({},g))):g&&_?e.createElement("li",{className:"hero-courses__column hero-courses__column--split hero-courses__column--duration"},e.createElement(ia,a({},_)),e.createElement(ia,a({},g))):e.createElement("li",{className:"hero-courses__column hero-courses__column--duration"},e.createElement(ia,a({},g))),d&&e.createElement("li",{className:"hero-courses__column hero-courses__column--delivery-format"},e.createElement(ia,a({},d))),e.createElement("li",{className:"hero-courses__column hero-courses__column--entry-requirements"},e.createElement(ia,a({},E))),e.createElement("li",{className:"hero-courses__column hero-courses__column--fees"},e.createElement(ia,a({},w)))),e.createElement("div",{className:"hero-courses__button-wrapper"},e.createElement("ul",{className:"hero-courses__buttons"},m&&m.map(function(c,t){return c.externalLink?e.createElement("li",{className:"hero-courses__button",key:t},e.createElement(Ne,{theme:l,label:c.label,icon:"external",hollow:t%2!=0,iconPosition:"right",url:c.url,inverse:!0,onClick:c.onClick})):e.createElement("li",{className:"hero-courses__button",key:t},e.createElement(u,{theme:l,label:c.label,hollow:t%2!=0,url:c.url,inverse:!0,onClick:c.onClick}))})),M&&e.createElement(ra,{theme:l,inverse:!M.inverse,hollow:!0,buttonLabel:M.buttonLabel,modalChildren:M.modalChildren})))))},exports.HeroProfile=function(c){var t=c.theme,l=c.studentName,n=c.studentStatus,i=c.courseName,o=c.courseDetails,s=c.studyLevel,m=c.titleTag,h=void 0===m?"h2":m,d=c.homeCountry,u=c.studentIntro,v=c.image,p=c.inverse;return e.createElement("div",{className:r("heroProfile",t&&"theme-".concat(t),p&&"theme-".concat(t,"--inverse")),id:"hero"},e.createElement("div",{className:"heroProfile__container"},e.createElement("div",{className:"heroProfile__details"},l&&e.createElement(h,{className:"heroProfile__title"},l),n&&e.createElement("p",{className:"heroProfile__status"},n),i&&e.createElement("p",{className:"heroProfile__courseName"},i),(s||d||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(Se,{icon:"mortar-board",theme:t,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(c,a){return e.createElement(g,{theme:t,key:a,text:c,inverse:p})}))))),s&&e.createElement("li",null,e.createElement("div",{className:"heroProfile__iconContainer"},e.createElement(Se,{icon:"scroll",theme:t,backgroundColor:"pale"}),e.createElement("div",{className:"heroProfile__iconText"},e.createElement("span",null,"Study level:"),e.createElement("span",null,s)))),d&&e.createElement("li",null,e.createElement("div",{className:"heroProfile__iconContainer"},e.createElement(Se,{icon:"flag",theme:t,backgroundColor:"pale"}),e.createElement("div",{className:"heroProfile__iconText"},e.createElement("span",null,"Home country:"),e.createElement("span",null,d))))),u&&e.createElement(g,{theme:t,text:u,inverse:p})),e.createElement("div",{className:"heroProfile__image-wrapper"},v&&e.createElement(w,a({},v,{altText:null==v?void 0:v.alt,fetchPriority:v.fetchPriority})))))},exports.ImageBlock=function(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.inverse,i=c.title,o=c.description,s=c.linkProps,m=c.fullWidth,h=c.makeHeadingFullWidth,d=c.images,u=c.htmlTag;if(!d||0===d.length)return null;var v=d.length>2?Array.from(d.slice(0,2)):Array.from(d);return e.createElement("div",{className:r("image-block",l&&"theme-".concat(l),n&&"theme-".concat(l,"--inverse"),m&&"image-block--full-width")},(i||o||s)&&e.createElement(_,{theme:l,inverse:n,title:i,description:o,linkProps:s,fullWidth:!!h,htmlTag:u}),e.createElement("div",{className:"image-block__container"},v&&v.map(function(c,t){var i=r({"image-block__image-container-single-image-full-width-true":1===d.length&&m,"image-block__image-container-single-image-full-width-false":1===d.length&&!m,"image-block__image-container-first-image-full-width-true":d.length>1&&0===t&&m,"image-block__image-container-first-image-full-width-false":d.length>1&&0===t&&!m,"image-block__image-container-second-image-full-width-true":d.length>1&&1===t&&m,"image-block__image-container-second-image-full-width-false":d.length>1&&1===t&&!m});return e.createElement("div",{key:t,className:i},e.createElement(Pe,a({},c,{theme:l,inverse:n})))})))},exports.ImageCarousel=function(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.inverse,n=void 0!==l&&l,i=c.title,o=c.description,s=c.linkProps,m=c.fullWidth,h=void 0!==m&&m,d=c.widerImage,u=c.images,v=c.htmlTag;return e.createElement("section",{className:r("image-carousel",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"),h&&"image-carousel--full-width",d&&"image-carousel--wider-image")},(i||o)&&e.createElement(_,{theme:a,htmlTag:v,inverse:n,title:i,description:o,linkProps:s}),e.createElement("div",{className:"image-carousel__grid"},e.createElement(Re,{theme:a,inverse:n,type:"image",cards:u})))},exports.InPageNavigation=function(t){var l,n,i=t.theme,o=void 0===i?"uobmain":i,s=t.inverse,m=void 0!==s&&s,h=t.links,d=t.expandableHeader,u=void 0===d?"Page contents":d,v=e.useState(!1),p=v[0],f=v[1],g=e.useState("not-docked"),E=g[0],_=g[1],b=e.useState(null),w=b[0],q=b[1],y=e.useRef(null),M=e.useRef(null),C=e.useRef(null),N=e.useRef(null),k=e.useRef(null),x=function(){f(!1)};return l=k,n=function(){return x()},e.useEffect(function(){var e=function(e){!l.current||e.target instanceof HTMLElement&&l.current.contains(e.target)||n()};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),function(){document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[l,n]),e.useEffect(function(){var e;C.current=new IntersectionObserver(function(c){var t;e=null===(t=c.find(function(e){return e.isIntersecting}))||void 0===t?void 0:t.target,_(e?"docked":"not-docked")},{rootMargin:"0px 0px -100%"}),M.current=new IntersectionObserver(function(c){var t,a=null===(t=c.find(function(e){return e.isIntersecting}))||void 0===t?void 0:t.target;a?_("docked-at-bottom"):!a&&e&&_("docked")}),y.current=new IntersectionObserver(function(e){var c,t=null===(c=e.find(function(e){return e.isIntersecting}))||void 0===c?void 0:c.target;t&&q(t.id)},{rootMargin:"0px 0px -".concat(.7*window.innerHeight,"px 0px")});var c=document.querySelectorAll(".anchor-target");c.forEach(function(e){y&&y.current&&y.current.observe(e)});var t=document.querySelectorAll("#footer");t.forEach(function(e){M&&M.current&&M.current.observe(e)});var a=document.querySelectorAll("#sidebar");return a.forEach(function(e){C&&C.current&&C.current.observe(e)}),function(){c.forEach(function(e){y&&y.current&&y.current.unobserve(e)}),a.forEach(function(e){C&&C.current&&C.current.unobserve(e)}),t.forEach(function(e){M&&M.current&&M.current.unobserve(e)})}},[]),h.links.map(function(e){return e.url.substring(1)===w?e.active=!0:e.active=!1}),e.createElement("div",{className:r("in-page-navigation",o&&"theme-".concat(o),m&&"theme-".concat(o,"--inverse"))},e.createElement("div",{className:r("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"},u),e.createElement(ye,{theme:"uobmain",icon:"menu",onClick:function(){f(!0)},title:"Open menu",ariaControls:"in-page-navigation",ref:N,ariaExpanded:p})))))),p&&e.createElement("div",{className:"in-page-navigation__overlay"}),e.createElement(c.AnimatePresence,null,p&&e.createElement(c.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:k},e.createElement(Me,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:x,title:"Close menu",ariaControls:"in-page-navigation"})))),e.createElement(ka,a({},h,{theme:"uobmain"})))))),e.createElement("div",{className:r("in-page-navigation--desktop",E)},e.createElement(ka,a({},h,{theme:o}))))},exports.IntroText=function(c){var t=c.text,a=c.theme,l=void 0===a?"uobmain":a,n=c.inverse,i=c.fullWidth,o=c.removeBottomPadding,s=void 0!==o&&o,m=c.removeTopPadding,h=void 0!==m&&m;return e.createElement("div",{className:r("intro-text",l&&"theme-".concat(l),n&&"theme-".concat(l,"--inverse"),i&&"intro-text--full-width",s&&"intro-text--no-bottom-padding",h&&"intro-text--no-top-padding")},e.createElement("div",{className:"intro-text__container"},e.createElement("p",{className:"intro-text__text"},t)))},exports.LeadNewsArticles=function(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.featuredArticle,i=c.otherLeadArticles,o=c.mostReadNews;return e.createElement("section",{className:r("lead-news-articles",l&&"theme-".concat(l))},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(Oe,a({},n,{isPrimary:!0}))),e.createElement("ul",{className:"lead-news-articles__secondary-card-container"},i.map(function(c,t){return e.createElement("li",{className:"lead-news-articles__secondary-card",key:t},e.createElement(Oe,{theme:l,image:c.image,title:c.title,href:c.href,titleTag:c.titleTag,publishDate:c.publishDate}))}))),e.createElement("div",{className:"lead-news-articles__side-container"},e.createElement(xa,a({},o)))))},exports.ListTable=function(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.listItems;return e.createElement("div",{className:r("list-table",a&&"theme-".concat(a))},(null==l?void 0:l.length)?e.createElement("ul",{className:"list-table__list"},null==l?void 0:l.map(function(c,t){return e.createElement("li",{key:c+t,className:"list-table__list-item"},e.createElement(g,{inverse:!0,theme:"uobmain",text:c}))})):null)},exports.ListingFilterWrapper=function(t){var a=t.theme,l=t.showFilterButtonLabel,n=t.numSelected,i=t.filterElement,o=e.useState(!1),s=o[0],h=o[1],d=e.useRef(null),u=function(e){"Escape"===e.key&&s&&h(!1)};return e.useEffect(function(){return document.addEventListener("keydown",u),function(){document.removeEventListener("keydown",u)}}),e.useEffect(function(){var e,c;s?null===(e=d.current)||void 0===e||e.showModal():null===(c=d.current)||void 0===c||c.close()},[s]),e.createElement(e.Fragment,null,e.createElement("div",{className:r("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(){h(!0),document.body.classList.add("lock-scroll")}},e.createElement(m,{theme:"uobmain",icon:"settings"}),l,n&&e.createElement("span",{className:"listing-filter-wrapper__num-selected"},n,e.createElement("span",{className:"sr-only"},n>1?"filters":"filter"," selected"))))),e.createElement(Me,null,e.createElement(c.motion.dialog,{className:r("listing-filter-wrapper__dialog","theme-".concat(a)),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},ref:d},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(){h(!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(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.showCategory,i=void 0!==n&&n,o=c.cards,s=c.headingInfo;return e.createElement(e.Fragment,null,s&&e.createElement(_,a({},s,{theme:l,fullWidth:!0})),e.createElement("ul",{className:r("listing-results",l&&"theme-".concat(l))},o.map(function(c,t){return e.createElement("li",{className:"listing-results__card",key:t},e.createElement(Oa,a({},c,{showCategory:i,theme:l})))})))},exports.ListingResultsCount=function(c){var t=c.count,a=c.theme,l=void 0===a?"uobmain":a;return e.createElement("p",{className:r("listing-results-count",l&&"theme-".concat(l))},e.createElement("span",{className:"listing-results-count__number"},t.toLocaleString())," results were found based on your search term")},exports.LocationSection=function(c){var t=c.theme,l=c.embedChildren,n=c.googleMapLink,i=c.address,o=c.services,s=c.link,m=c.titleTag,h=void 0===m?"h2":m;return e.createElement("section",{className:r("location-section",t&&"theme-".concat(t),(!o||o.length<1)&&"location-section--no-services")},e.createElement("div",{className:"location-section__container"},e.createElement(f,{htmlTag:h,classNames:r("location-section__title","h3"===h&&"location-section__title--h3")},"Location"),e.createElement("div",{className:"location-section__grid-wrapper"},e.createElement("div",{className:"location-section__embed"},e.createElement($e,null,l)),e.createElement("div",{className:"location-section__address-wrapper"},e.createElement("div",{className:"location-section__address"},e.createElement(fc,{theme:t,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(v,a({},s,{inverse:!0}))),n?e.createElement("div",{className:"location-section__button"},e.createElement(u,{label:"View on Google Maps",theme:t,url:n})):null),(null==o?void 0:o.length)?e.createElement("div",{className:"location-section__services"},null==o?void 0:o.map(function(c,l){return e.createElement(fc,a({},c,{theme:t,key:l}))})):null)))},exports.LocationSelector=ma,exports.LogoWall=function(c){var t,l,n=c.theme,i=void 0===n?"uobmain":n,o=c.inverse,s=c.logos,m=null!==(l=null==s?void 0:s.length)&&void 0!==l?l:0,h=s&&s.length%2!=0;return e.createElement("div",{className:r("logo-wall",i&&"theme-".concat(i),o&&"theme-".concat(i,"--inverse"))},e.createElement("div",null,e.createElement("ul",{className:r("logo-wall__container",h&&"logo-wall__container--odd"),style:(t={},t["--logo-wall-cols"]=String(m),t)},s&&s.map(function(c,t){var l;return e.createElement("li",{key:"li-".concat(t)},e.createElement(Pe,a({key:"".concat((null===(l=c.image)||void 0===l?void 0:l.title)||"imageTitle","-").concat(t),theme:i,inverse:o},c)))}))))},exports.MainWrapper=function(c){var t=c.children;return e.createElement("main",{id:"main"},t)},exports.ModalCTA=function(c){var t=c.theme,a=c.heading,l=c.inverse,n=c.description,i=c.buttonLabel,o=c.buttonModifier,s=c.modalChildren,m=c.htmlTag,h=void 0===m?"h3":m,d=e.useState(!1),v=d[0],p=d[1],g=function(){p(!1),document.body.classList.remove("lock-scroll")};return e.createElement("div",{className:r("modal-cta",t&&"theme-".concat(t),l&&"theme-".concat(t,"--inverse"))},e.createElement(f,{htmlTag:h,classNames:"modal-cta__heading"},a),n&&e.createElement("p",{className:"modal-cta__description"},n),e.createElement("div",{className:r("modal-cta__button",o&&"theme-".concat(t,"--buttonModifier"))},e.createElement(u,{inverse:!l,label:i,onClick:function(){v?g():(p(!0),document.body.classList.add("lock-scroll"))},theme:t,buttonModifier:o})),v&&e.createElement(Ce,{centred:!0,theme:t,closeModal:g,isOpen:v},e.createElement($e,{className:"modal-cta__embed-wrapper"},s)))},exports.ModuleCardGroup=function(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.inverse,i=void 0===n||n,o=c.cards,s=Array.isArray(o)?o:[o];return e.createElement("div",{className:r("module-card-group",l&&"theme-".concat(l),i&&"theme-".concat(l,"--inverse"))},e.createElement("div",{className:"module-card-group__container"},e.createElement("div",{className:"module-card-group__grid"},s.map(function(c,t){return e.createElement(d,a({key:t},c,{theme:l}))}))))},exports.NewsArticlesPromoBlock=function(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.heading,i=c.cards,o=c.cardType,s=void 0===o?"featured-news":o;return e.createElement("section",{className:r("news-articles-promo-block",l&&"theme-".concat(l),s&&"news-articles-promo-block--".concat(s))},e.createElement("div",{className:"news-articles-promo-block__heading-container"},n&&e.createElement("h2",{className:"news-articles-promo-block__heading"},n)),e.createElement("div",{className:"news-articles-promo-block__cards news-articles-promo-block__cards--mobile"},"featured-news"===s&&e.createElement(Re,{theme:l,type:"featured-news",cards:i,inverse:!0,cardTitleTag:"h3"}),"promo-video"===s&&e.createElement(Re,{theme:l,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(c,t){return e.createElement("li",{key:t},"featured-news"===s&&e.createElement(Oe,a({},c,{inverse:!0,titleTag:"h3"})),"promo-video"===s&&e.createElement(ze,a({},c,{inverse:!1,titleTag:"h3"})))})))},exports.Pagination=function(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.numOfPages,n=c.onClick,i=c.currentPage,o=!pe("1248px");return l<=1?e.createElement(e.Fragment,null):e.createElement("div",{className:r("pagination",a&&"theme-".concat(a))},e.createElement("ul",{className:"pagination__container"},e.createElement("li",{className:"pagination__prev",key:"prev"},o?e.createElement(u,{theme:a,label:"Previous",onClick:function(){return n(i-1)},hollow:!0,disabled:i<1}):e.createElement(ye,{theme:a,icon:"arrow-left",title:"Previous",onClick:function(){return n(i-1)},disabled:i<1,inverse:!0})),e.createElement(Za,{currentPage:i,onClick:n,theme:a,numOfPages:l}),e.createElement("li",{className:"pagination__next",key:"next"},o?e.createElement(u,{theme:a,label:"Next",onClick:function(){return n(i+1)},hollow:!0,disabled:i+1===l}):e.createElement(ye,{theme:a,icon:"arrow-right",title:"Next",onClick:function(){return n(i+1)},disabled:i+1===l,inverse:!0}))))},exports.PromoBlock=function(c){var t,l=c.theme,n=c.inverse,i=c.type,o=c.title,m=c.description,h=c.link,d=c.cards,u=c.imageOrientation,p=void 0===u?"left":u,g=c.titleTag,E=void 0===g?"h2":g,_=c.cardTitleTag,b=void 0===_?"h3":_,w=c.cardCopyIsRichText,q=void 0!==w&&w,y=c.fullWidth,M=void 0!==y&&y,C=c.fullWidthTitle,N=void 0!==C&&C,k=c.showFilters,x=void 0!==k&&k,T=c.firstFilterSelect,L=c.secondFilterSelect,z=!1;pe("768px")?d.length>1&&(z=!0):(M&&d.length>2||d.length>3)&&(z=!0);var S=r(((t={})["promo-block__grid"]=!0,t["promo-block__grid--single"]=1===d.length,t["promo-block__grid--two-cards"]=2===d.length,t["promo-block__grid--three-cards"]=3===d.length,t["promo-block__grid--four-plus-cards"]=d.length>3,t));return e.createElement("div",{className:r("promo-block","promo-block--".concat(i),l&&"theme-".concat(l),n&&"theme-".concat(l,"--inverse"),M&&"promo-block--full-width")},e.createElement("div",{className:"promo-block__container"},e.createElement("div",{className:r("promo-block__top",N&&"promo-block__top--full-width")},o&&e.createElement(f,{htmlTag:E,classNames:r("promo-block__title","h3"===E&&"promo-block__title--h3")},o),m&&e.createElement(s,{theme:"uobmain",inverse:n,text:m}),h&&e.createElement("div",{className:"promo-block__text-link"},e.createElement(v,{theme:l,inverse:n,url:h.url,title:h.title,externalLink:h.externalLink}))),x&&e.createElement("div",{className:"promo-block__filters"},e.createElement("div",{className:"promo-block__filter-wrapper"},T&&e.createElement(ta,a({},T))),e.createElement("div",{className:"promo-block__filter-wrapper"},L&&e.createElement(ta,a({},L)))),e.createElement("div",{className:"promo-block__content"},e.createElement("div",{className:"promo-block__cards"},!z&&e.createElement("ul",{className:S},d.map(function(c,t){return e.createElement("li",{className:"promo-block__card-item",key:t},function(c){var t=a(a({},c),{cardCopyIsRichText:q});switch(i){case"promo":return e.createElement(Te,a({},t));case"promo-signpost":return e.createElement(Le,a({},c));case"promo-video":return e.createElement(ze,a({},c));case"promo-profile":return e.createElement(Ie,a({},c));default:return e.createElement(e.Fragment,null)}}(a(a({},c),{inverse:n,isSingle:1===d.length,imageOrientation:p,titleTag:b})))})),z&&e.createElement(Re,{theme:l,inverse:n,type:i,cards:d,cardTitleTag:b,cardCopyIsRichText:q})))))},exports.PromoBlockGrid=function(c){var t=c.theme,l=c.inverse,n=c.type,i=c.title,o=c.description,m=c.link,h=c.cards,d=c.imageOrientation,u=void 0===d?"left":d,p=c.fullWidth;return e.createElement("div",{className:r("promo-block-grid","promo-block-grid--".concat(n),t&&"theme-".concat(t),l&&"theme-".concat(t,"--inverse"),p&&"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:l,text:o}),m&&e.createElement("div",{className:"promo-block-grid__text-link"},e.createElement(v,{theme:"uobmain",inverse:l,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"},h.length>0&&e.createElement("ul",{className:"promo-block-grid__grid"},h.map(function(c,t){return e.createElement("li",{className:"promo-block-grid__card-item",key:t},function(c){switch(n){case"promo":return e.createElement(Te,a({},c));case"promo-signpost":return e.createElement(Le,a({},c));case"promo-video":return e.createElement(ze,a({},c));default:return e.createElement(e.Fragment,null)}}(a(a({},c),{inverse:l,isSingle:1===h.length,imageOrientation:u,titleTag:i?"h3":"h2"})))}))))))},exports.QuoteBlock=function(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.inverse,n=c.title,i=c.description,o=c.cite,s=c.role,h=c.quote,d=c.quoteeProfileImage,u=c.quoteeProfileImageAltText,p=c.cta,f=c.fullWidth,g=void 0!==f&&f,E=c.htmlTag;return e.createElement("div",{className:r("quote-block","theme-".concat(a),l&&"theme-".concat(a,"--inverse"),g&&"quote-block--full-width")},(n||i)&&e.createElement(_,{theme:a,inverse:l,htmlTag:E,title:n,description:i}),e.createElement("blockquote",{className:r("quote-block__container",!d&&"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"},h),d&&e.createElement("div",{className:"quote-block__quotee-image"},e.createElement(w,{src:{default:d},altText:u})),(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})),p&&e.createElement("div",{className:"quote-block__optional-link"},e.createElement(v,{inverse:l,onKeyDown:function(){},theme:a,title:p.title,url:p.url}))))},exports.RelatedCourses=function(c){var t,l=c.theme,n=void 0===l?"uobmain":l,i=c.inverse,o=void 0===i||i,s=c.heading,m=c.description,h=c.linkProps,d=c.headingStyle,u=c.fullWidth,p=c.cards,f=pe("768px"),g=f&&p.length>1||!f&&u&&p.length>2||!f&&!u&&p.length>3,E=r(((t={})["related-courses__grid"]=!0,t["related-courses__grid--single"]=1===p.length,t["related-courses__grid--two-cards"]=2===p.length,t["related-courses__grid--three-cards"]=3===p.length,t["related-courses__grid--four-plus-cards"]=p.length>3,t));return e.createElement("section",{className:r("related-courses",n&&"theme-".concat(n),o&&"theme-".concat(n,"--inverse"),u&&"related-courses--full-width")},e.createElement("div",{className:"related-courses__container"},e.createElement("h2",{className:r("related-courses__heading",d&&"related-courses__heading--".concat(d))},s),m&&e.createElement("div",{className:"related-courses__description"},m),h&&h.url&&h.title&&e.createElement("div",{className:"related-courses__arrow-link-container"},e.createElement(v,{theme:n,inverse:o,title:h.title,url:h.url})),e.createElement("div",{className:"related-courses__cards"},!g&&e.createElement("ul",{className:E},p.map(function(c,t){return e.createElement("li",{className:"related-courses__card-item",key:t},e.createElement(Ve,a({},c)))})),g&&e.createElement(Re,{theme:n,inverse:o,type:"related",cards:p,cardTitleTag:"h3"}))))},exports.ResearchStoryCarousel=function(c){var t,l=c.theme,n=void 0===l?"uobmain":l,i=c.inverse,o=void 0===i||i,s=c.fullWidth,m=void 0!==s&&s,h=c.heading,d=c.description,u=c.cards,v=c.singleLink,p=c.titleTag,f=void 0===p?"h2":p,g=c.cardTitleTag,E=void 0===g?"h3":g,b=pe("768px"),w=b&&u.length>1||!b&&u.length>2,q=r(((t={})["research-story-carousel__grid"]=!0,t["research-story-carousel__grid--single"]=1===u.length,t["research-story-carousel__grid--two-cards"]=2===u.length,t["research-story-carousel__grid--three-plus-cards"]=u.length>3,t));return e.createElement("section",{className:r("research-story-carousel",n&&"theme-".concat(n),o&&"theme-".concat(n,"--inverse"),m&&"research-story-carousel--full-width")},e.createElement("div",{className:"research-story-carousel__container"},(h||d||v)&&e.createElement(_,{theme:n,inverse:!0,htmlTag:f,title:h,description:d,linkProps:v,fullWidth:!0}),e.createElement("div",{className:"research-story-carousel__cards"},!w&&e.createElement("ul",{className:q},u.map(function(c,t){return e.createElement("li",{key:t},e.createElement(Ze,a({},c)))})),w&&e.createElement(Re,{theme:n,inverse:o,type:"research-story",cards:u,cardTitleTag:E}))))},exports.RichText=s,exports.ScholarshipCarousel=function(c){var t,l=c.theme,n=void 0===l?"uobmain":l,i=c.inverse,o=void 0===i||i,s=c.fullWidth,m=void 0!==s&&s,h=c.headingProps,d=c.cards,u=pe("768px"),v=u&&d.length>1||!u&&d.length>2,p=r(((t={})["scholarship-carousel__grid"]=!0,t["scholarship-carousel__grid--single"]=1===d.length,t["scholarship-carousel__grid--two-cards"]=2===d.length,t["scholarship-carousel__grid--three-plus-cards"]=d.length>3,t));return e.createElement("section",{className:r("scholarship-carousel",n&&"theme-".concat(n),o&&"theme-".concat(n,"--inverse"),m&&"scholarship-carousel--full-width")},e.createElement("div",{className:"scholarship-carousel__container"},h&&e.createElement(_,a({},h,{theme:n,inverse:o,fullWidth:m})),e.createElement("div",{className:"scholarship-carousel__cards"},!v&&e.createElement("ul",{className:p},d.map(function(c,t){return e.createElement("li",{className:"related-courses__card-item",key:t},e.createElement(Be,a({},c,{inverse:o})))})),v&&e.createElement(Re,{theme:n,inverse:o,type:"scholarship",cards:d,cardTitleTag:"h3"}))))},exports.ScrollableTable=function(c){var t=c.text,a=c.theme,l=void 0===a?"uobmain":a,n=c.inverse,i=c.fullWidth,o=void 0!==i&&i,s=c.removeBottomPadding,m=void 0!==s&&s,h=c.tableCategory,d=void 0===h?Ya.NotSpecified:h,u=e.useRef(null),v=e.useState(!1),p=v[0],f=v[1],g=e.useState(!0),E=g[0],_=g[1],b=e.useState(!1),w=b[0],q=b[1],y=e.useId(),M=function(){var e=u.current;e&&(f(e.scrollLeft>0),_(e.scrollLeft<e.scrollWidth-e.clientWidth))},C=e.useCallback(function(){var e=u.current;if(e){var c=e.scrollWidth>e.clientWidth;q(c),M()}},[]),N=function(e){var c=u.current;if(c){var t="left"===e?c.scrollLeft-200:c.scrollLeft+200;c.scrollTo({left:t,behavior:"smooth"})}};return e.useEffect(function(){C();var e=u.current;e&&e.addEventListener("scroll",M);var c=function(){return C()};return window.addEventListener("resize",c),function(){e&&e.removeEventListener("scroll",M),window.removeEventListener("resize",c)}},[C]),e.createElement("div",{className:r("scrollable-table",o&&"scrollable-table--full-width",l&&"theme-".concat(l),n&&"theme-".concat(l,"--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:l,icon:"arrow-left",onClick:function(){return N("left")},title:"Scroll left",ariaControls:y,disabled:!p,inverse:n}),e.createElement(ye,{key:"iconButtonRight",theme:l,icon:"arrow-right",onClick:function(){return N("right")},title:"Scroll right",ariaControls:y,disabled:!E,inverse:n})),e.createElement("div",{className:r("scrollable-table__table-wrapper","scrollable-table__".concat(d),n&&"scrollable-table__".concat(d,"--inverse")),ref:u,id:y,tabIndex:0},e.createElement("span",{dangerouslySetInnerHTML:{__html:t}})))))},exports.SearchCourses=aa,exports.SidebarWrapper=function(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.sidebarElement,n=c.children;return e.createElement("div",{id:"sidebar",className:r("sidebar-wrapper",a&&"theme-".concat(a),!l&&"sidebar-wrapper--no-side-element")},e.createElement("div",{className:"sidebar-wrapper__grid-container"},l&&e.createElement("div",{className:"sidebar-wrapper__sidebar"},l),e.createElement("div",{className:"sidebar-wrapper__children"},n)))},exports.SignPost=function(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.inverse,n=void 0!==l&&l,i=c.items,o=c.fullWidth,s=void 0!==o&&o,m=c.htmlTag,h=void 0===m?"h2":m;return e.createElement("div",{className:r("signpost",s&&"signpost--full-width",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"))},e.createElement("div",{className:"signpost__container"},e.createElement("div",{className:"signpost__grid"},i.map(function(c){return e.createElement("div",{className:"signpost__item",key:c.title},c.tag&&e.createElement("p",{className:"signpost__tag"},c.tag),e.createElement(f,{htmlTag:h,classNames:"signpost__title"},c.title),e.createElement(v,{url:c.linkUrl,title:c.linkLabel,theme:a,inverse:n,externalLink:c.external}))}))))},exports.SingleButton=function(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.inverse,i=void 0!==n&&n,o=c.includeIcon,s=c.link,m=c.fullWidth;return e.createElement("div",{className:r("single-button",l&&"theme-".concat(l),i&&"theme-".concat(l,"--inverse"),m&&"single-button--full-width")},e.createElement("div",{className:"single-button__container"},o?e.createElement(Ne,a({},s,{inverse:!i})):e.createElement(u,a({},s,{inverse:!i}))))},exports.SkipToContent=function(c){var t=c.theme,a=void 0===t?"uobmain":t;return e.createElement("div",{className:r("skip-to-content",a&&"theme-".concat(a))},e.createElement("a",{className:"skip-to-content__link",href:"#main"},"Skip to main content"))},exports.StaffListingCarousel=function(c){var t,l=c.theme,n=void 0===l?"uobmain":l,i=c.inverse,o=void 0===i||i,s=c.fullWidth,m=void 0!==s&&s,h=c.heading,d=c.headingStyle,u=void 0===d?null:d,p=c.cards,g=c.singleLink,E=c.titleTag,_=void 0===E?"h2":E,b=c.useCarousel,w=void 0===b||b,q=c.cardType,y=void 0===q?"staff":q,M=pe("768px"),C=w&&M&&p.length>1||w&&!M&&p.length>2,N="staff"===y,k=r(((t={})["staff-listing-carousel__grid"]=!0,t["staff-listing-carousel__grid--single"]=1===p.length,t["staff-listing-carousel__grid--two-cards"]=2===p.length,t["staff-listing-carousel__grid--three-plus-cards"]=p.length>3,t));return e.createElement("section",{className:r("staff-listing-carousel",n&&"theme-".concat(n),o&&"theme-".concat(n,"--inverse"),m&&"staff-listing-carousel--full-width",!w&&"staff-listing-carousel--no-carousel")},e.createElement("div",{className:"staff-listing-carousel__container"},h&&e.createElement(f,{htmlTag:_,classNames:r("staff-listing-carousel__heading","staff-listing-carousel__heading--".concat(_),u&&"staff-listing-carousel__heading--".concat(u))},h),e.createElement("div",{className:"staff-listing-carousel__cards"},!C&&e.createElement("ul",{className:k},p.map(function(c,t){return e.createElement("li",{className:"related-courses__card-item",key:t},N?e.createElement(He,a({},c,{theme:n,inverse:o,isSingle:1===p.length})):e.createElement(Ie,a({},c,{theme:n,inverse:o})))})),C&&e.createElement(Re,{theme:n,inverse:o,type:y,cards:p,cardTitleTag:"h3"})),1===p.length&&g&&e.createElement(v,{theme:n,url:g.url,title:g.title,inverse:!0})))},exports.StandardListingFilter=function(c){var t=c.theme,l=c.heading,n=c.listingGroups,i=c.onClearFilters,o=c.onViewResults;return e.createElement("div",{className:r("standard-listing-filter",t&&"theme-".concat(t))},e.createElement("p",{className:"standard-listing-filter__heading"},l),e.createElement("ul",{className:"standard-listing-filter__list"},n.map(function(c){var l;return"date"===c.type?e.createElement("li",{className:"standard-listing-filter__item",key:c.name},e.createElement(Ka,a({},c,{theme:t,defaultValue:null!==(l=c.defaultValue)&&void 0!==l?l:"",onChange:c.onChange}))):"radio"===c.type?e.createElement("li",{className:"standard-listing-filter__item",key:c.name},e.createElement(bc,{type:"radio",heading:c.heading,theme:t,showMoreText:Ja(c.heading)||"",inputs:c.inputs.map(function(e){return{name:c.name,value:e.value,label:e.label,id:e.id,defaultChecked:!!c.defaultValue&&c.defaultValue===e.value,onChange:c.onChange}})})):"checkbox"===c.type?e.createElement("li",{className:"standard-listing-filter__item",key:c.name},e.createElement(bc,{type:"checkbox",heading:c.heading,theme:t,showMoreText:Ja(c.heading)||"",inputs:c.inputs.map(function(e){return{name:c.name,value:e.value,label:e.label,id:e.id,defaultChecked:!!c.defaultValues&&c.defaultValues.includes(e.value),onChange:c.onChange}})})):"select"===c.type?e.createElement("li",{className:"standard-listing-filter__item",key:c.name},e.createElement(Ga,{heading:c.heading,selectContent:c.selectContent,theme:t})):void 0})),o&&e.createElement("div",{className:"standard-listing-filter__results-button"},e.createElement(u,{label:"View selected results",onClick:o,theme:t})),e.createElement("div",{className:"standard-listing-filter__clear-button"},e.createElement(u,{label:"Clear filters",onClick:i,theme:t,hollow:!0})))},exports.TabsBlock=function(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.inverse,i=void 0!==n&&n,o=c.title,m=c.description,h=c.tabItems,d=c.fullWidth,f=c.htmlTag,g=void 0===f?"h2":f,E=c.removeBottomPadding,w=void 0!==E&&E,q=c.name,y=c.enableHashNavigation,M=void 0!==y&&y,C=e.useRef(null),N=e.useCallback(function(){return h.findIndex(function(e){return Ba(null!=q?q:"",e.title)===window.location.hash.substring(1)})},[h,q]),k=e.useState(0),x=k[0],T=k[1],L=e.useState(-1),z=L[0],S=L[1],H=pe("1248px");function V(e){if(M){var c=window.location.href.replace(window.location.hash,""),t=Ba(null!=q?q:"",h[e].title);history.pushState(null,"null",c.concat("#",t))}}function P(e,c){e.preventDefault(),T(c),V(c)}e.useEffect(function(){if(0!==window.location.hash.length){var e=N();e<0||(T(e),S(e))}},[N,T]);var O=function(e){switch(e.key){case"ArrowLeft":case"ArrowUp":case"Left":case"Up":if(0===x)return;T(x-1),S(x-1),V(x-1);break;case"ArrowRight":case"ArrowDown":case"Right":case"Down":if(x>=h.length-1)return;T(x+1),S(x+1),V(x+1);break;case"Home":T(0),S(0),V(0);break;case"End":T(h.length-1),S(h.length-1),V(h.length-1)}};function Z(){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 c=N();c<0||(T(c),S(c))}};return window.addEventListener("hashchange",e),function(){window.removeEventListener("hashchange",e)}},[x,N]),e.createElement(e.Fragment,null,H&&e.createElement(b,{heading:{title:o,description:m,fullWidth:d,htmlTag:g},theme:l,inverse:i,fullWidth:d,accordionItems:h.map(function(e,c){return{key:e.title||c,title:e.title,text:e.content,titleTag:e.titleTag?e.titleTag:Z(),primaryButton:e.primaryButton,secondaryButton:e.secondaryButton,link:e.link}})}),e.createElement("div",{className:r("tabs",l&&"theme-".concat(l),i&&"theme-".concat(l,"--inverse"),d&&"tabs--full-width",w&&"tabs--no-bottom-padding"),id:"tabs",ref:C},!H&&e.createElement(e.Fragment,null,e.createElement(_,{theme:l,inverse:i,htmlTag:g,title:o,description:m,fullWidth:d}),e.createElement("div",{className:"tabs__container"},e.createElement("span",null,e.createElement(Fa,{theme:l,inverse:i},h.map(function(c,t){return e.createElement(Ia,{key:t,id:t,theme:l,inverse:i,tabItem:c,tabListTopRef:C,isActive:t===x,hasFocus:t===z,enableHashNavigation:M,tabsBlockName:q,handleClick:P,handleKeyboardNavigation:O})})),h.map(function(c,t){return e.createElement(Da,{key:t,isActive:t===x,inverse:i,theme:l,title:c.title,tabsBlockName:q,htmlTag:c.titleTag?c.titleTag:Z()},c.content&&e.createElement(s,{theme:l,inverse:i,text:c.content}),c.accordionItems&&c.accordionItems.map(function(c){return e.createElement(p,a({key:c.key},c,{inverse:i}))}),(c.primaryButton&&c.primaryButton.text||c.secondaryButton&&c.secondaryButton.text)&&e.createElement("div",{className:"tabs__optional-buttons"},c.primaryButton&&c.primaryButton.text&&e.createElement(u,{label:c.primaryButton.text,url:c.primaryButton.url,theme:l,inverse:!i}),c.secondaryButton&&c.secondaryButton.text&&e.createElement(u,{hollow:!0,label:c.secondaryButton.text,url:c.secondaryButton.url,theme:l,inverse:!i})),c.link&&c.link.text&&e.createElement("div",{className:"tabs__optional-link"},e.createElement(v,{theme:l,inverse:i,url:c.link.url,title:c.link.text})))}))))))},exports.TextWithBackground=function(c){var t=c.text,a=c.theme,l=void 0===a?"uobmain":a,n=c.inverse,i=c.headingLevel,o=c.headingText,m=c.url,h=c.linkTitle,d=c.externalLink,v=c.linkStyle,p=c.fullWidth,f=c.removeBottomPadding,g=void 0!==f&&f,E=i;return e.createElement("div",{className:r("text-with-background",l&&"theme-".concat(l),n&&"theme-".concat(l,"--inverse"),p&&"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:t,inverse:n,theme:l}),m&&h&&e.createElement("div",{className:"text-with-background__link-wrapper"},e.createElement("div",{className:"text-with-background__link-inner-wrapper"},("primary"===v||"secondary"===v)&&e.createElement(u,{url:m,theme:l,label:h,externalLink:d,hollow:"secondary"===v,inverse:!n}),"paragraph-link"===v&&e.createElement(na,{url:m,label:h,externalLink:d,theme:l,inverse:n}))))},exports.TopicSelector=function(c){var t=c.topics,a=c.theme,l=void 0===a?"uobmain":a,n=c.titleTag,i=c.heading;return e.createElement("section",{className:r("topics-selector",l&&"theme-".concat(l))},e.createElement("div",{className:"topics-selector__container"},"h2"===n?e.createElement("h2",{className:"topics-selector__heading"},i):e.createElement("h3",{className:"topics-selector__heading"},i),e.createElement("ul",{className:"topics-selector__topics-container"},t.map(function(c,t){return e.createElement("li",{className:"topics-selector__topic",key:t},e.createElement(Aa,{theme:l,label:c.label,url:c.url,externalLink:c.externalLink}))}))))},exports.TwoColumnWrapper=function(c){var t=c.theme,a=void 0===t?"uobmain":t,l=c.firstColumn,n=c.secondColumn;return e.createElement("div",{className:r("two-column-wrapper",a&&"theme-".concat(a))},e.createElement("div",{className:"two-column-wrapper__grid-container"},e.createElement("div",{className:r("two-column-wrapper__first-column",!n&&"two-column-wrapper__first-column-centred")},l),n&&e.createElement("div",{className:"two-column-wrapper__second-column"},n)))},exports.VideoCardComponent=function(t){var a=t.theme,l=t.tag,n=t.title,i=t.linkUrl,o=t.linkText,s=t.externalLink,m=t.cards,h={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:r("video-card-component",a&&"theme-".concat(a)),id:"video-card-component"},e.createElement("div",{className:"video-card-component__content"},l&&e.createElement("p",{className:"video-card-component__tag"},l),e.createElement("h2",{className:"video-card-component__title"},n),i&&o&&e.createElement("div",{className:"video-card-component__link"},e.createElement(v,{theme:a,url:i,title:o,inverse:!0,externalLink:s})),e.createElement("div",{className:"video-card-component__carousel"},e.createElement(Re,{theme:a,type:"video",inverse:!0,cards:m,cardTitleTag:"h3"})),e.createElement("ul",{className:r("video-card-component__cards-desktop",(!i||!o)&&"video-card-component__cards-desktop--no-link")},m.map(function(t,l){return e.createElement(c.motion.li,{key:l,variants:h,initial:"initial",whileInView:"animate",viewport:{once:!0,amount:.2},custom:l},l<=1?e.createElement("div",{className:"video-card-component__lines video-card-component__lines--".concat(l)},1===l&&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(ke,{theme:a,image:{src:{default:t.image.src.default,medium:t.image.src.medium,small:t.image.src.small},altText:""},title:t.title,youtubeId:t.youtubeId,buttonLabel:t.buttonLabel,titleTag:"h3"}))}))))},exports.VideoEmbed=function(c){var t=c.theme,l=void 0===t?"uobmain":t,n=c.inverse,i=void 0!==n&&n,o=c.imageSrc,s=c.videoUrl,m=c.videoId,h=c.heading,d=c.audioDescribedVideoId,u=c.audioDescribedVideoUrl,v=c.transcript,f=c.fullWidth,g=void 0!==f&&f,E=c.videoCaption,b=c.videoCredit,w=e.useState(!1),q=w[0],y=w[1];return e.createElement("div",{className:r("video-embed",g&&"video-embed--full-width",l&&"theme-".concat(l),i&&"theme-".concat(l,"--inverse"))},h&&e.createElement(_,a({},h,{theme:l,inverse:i})),e.createElement("div",{className:"video-embed__grid"},e.createElement("div",{className:"video-embed__content-wrapper"},e.createElement(Xa,{theme:l,imageSrc:o,videoUrl:q?s:u,videoId:q?d: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)),(d||u)&&(q?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")),v&&e.createElement("div",{className:"video-embed__transcript"},e.createElement(p,{titleTag:"h3",theme:l,title:"Transcript",text:v,inverse:i})))))};
|